File: //srv/wordpress/core/beta/wp-includes/js/dist/block-editor.min.js
/*! This file is auto-generated */
"use strict";var wp;(wp||={}).blockEditor=(()=>{var jIe=Object.create;var Z1=Object.defineProperty;var HIe=Object.getOwnPropertyDescriptor;var UIe=Object.getOwnPropertyNames;var GIe=Object.getPrototypeOf,WIe=Object.prototype.hasOwnProperty;var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ir=(e,t)=>{for(var o in t)Z1(e,o,{get:t[o],enumerable:!0})},EY=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of UIe(t))!WIe.call(e,n)&&n!==o&&Z1(e,n,{get:()=>t[n],enumerable:!(r=HIe(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?jIe(GIe(e)):{},EY(t||!e||!e.__esModule?Z1(o,"default",{value:e,enumerable:!0}):o,e)),$Ie=e=>EY(Z1({},"__esModule",{value:!0}),e);var ce=Se((Zet,RY)=>{RY.exports=window.wp.blocks});var F=Se((Xet,BY)=>{BY.exports=window.wp.element});var Q=Se((Qet,PY)=>{PY.exports=window.wp.data});var fe=Se((Jet,IY)=>{IY.exports=window.wp.compose});var bo=Se((ett,OY)=>{OY.exports=window.wp.hooks});var U=Se((itt,UY)=>{UY.exports=window.wp.components});var Tx=Se((stt,GY)=>{GY.exports=window.wp.privateApis});var Bt=Se((ptt,qY)=>{qY.exports=window.wp.deprecated});var E=Se((mtt,ZY)=>{ZY.exports=window.ReactJSXRuntime});var Vs=Se((gtt,QY)=>{QY.exports=window.wp.url});var G=Se((Ttt,iq)=>{iq.exports=window.wp.i18n});var Zh=Se((Rtt,sq)=>{"use strict";sq.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var de=Se((Vtt,vq)=>{vq.exports=window.wp.primitives});var $o=Se((ist,Sq)=>{Sq.exports=window.wp.richText});var _q=Se((sst,kq)=>{kq.exports=window.wp.blockSerializationDefaultParser});var ov=Se((cst,wq)=>{wq.exports=window.wp.styleEngine});var hB=Se((gst,Oq)=>{"use strict";var gAe=function(t){return bAe(t)&&!yAe(t)};function bAe(e){return!!e&&typeof e=="object"}function yAe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||kAe(e)}var vAe=typeof Symbol=="function"&&Symbol.for,SAe=vAe?Symbol.for("react.element"):60103;function kAe(e){return e.$$typeof===SAe}function _Ae(e){return Array.isArray(e)?[]:{}}function pw(e,t){return t.clone!==!1&&t.isMergeableObject(e)?rv(_Ae(e),e,t):e}function xAe(e,t,o){return e.concat(t).map(function(r){return pw(r,o)})}function wAe(e,t){if(!t.customMerge)return rv;var o=t.customMerge(e);return typeof o=="function"?o:rv}function CAe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Pq(e){return Object.keys(e).concat(CAe(e))}function Iq(e,t){try{return t in e}catch{return!1}}function EAe(e,t){return Iq(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function TAe(e,t,o){var r={};return o.isMergeableObject(e)&&Pq(e).forEach(function(n){r[n]=pw(e[n],o)}),Pq(t).forEach(function(n){EAe(e,n)||(Iq(e,n)&&o.isMergeableObject(t[n])?r[n]=wAe(n,o)(e[n],t[n],o):r[n]=pw(t[n],o))}),r}function rv(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||xAe,o.isMergeableObject=o.isMergeableObject||gAe,o.cloneUnlessOtherwiseSpecified=pw;var r=Array.isArray(t),n=Array.isArray(e),i=r===n;return i?r?o.arrayMerge(e,t,o):TAe(e,t,o):pw(t,o)}rv.all=function(t,o){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return rv(r,n,o)},{})};var RAe=rv;Oq.exports=RAe});var Xr=Se((Mat,VZ)=>{VZ.exports=window.wp.a11y});var ss=Se((Dat,UZ)=>{UZ.exports=window.wp.notices});var dv=Se((Vat,GZ)=>{GZ.exports=window.wp.preferences});var TX=Se((Dlt,YB)=>{var wX={\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"},CX=Object.keys(wX).join("|"),xDe=new RegExp(CX,"g"),wDe=new RegExp(CX,"");function CDe(e){return wX[e]}var EX=function(e){return e.replace(xDe,CDe)},EDe=function(e){return!!e.match(wDe)};YB.exports=EX;YB.exports.has=EDe;YB.exports.remove=EX});var so=Se((Tut,_Q)=>{_Q.exports=window.wp.keycodes});var Rt=Se(($ut,MQ)=>{MQ.exports=window.wp.dom});var ue=Se((ddt,ZQ)=>{ZQ.exports=window.React});var QQ=Se((fdt,XQ)=>{"use strict";var xVe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";XQ.exports=xVe});var oJ=Se((pdt,tJ)=>{"use strict";var wVe=QQ();function JQ(){}function eJ(){}eJ.resetWarningCache=JQ;tJ.exports=function(){function e(r,n,i,s,a,l){if(l!==wVe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:eJ,resetWarningCache:JQ};return o.PropTypes=o,o}});var nJ=Se((gdt,rJ)=>{rJ.exports=oJ()();var mdt,hdt});var sJ=Se((wP,iJ)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["module","exports"],t);else if(typeof wP<"u")t(iJ,wP);else{var o={exports:{}};t(o,o.exports),e.autosize=o.exports}})(wP,function(e,t){"use strict";var o=typeof Map=="function"?new Map:(function(){var l=[],u=[];return{has:function(f){return l.indexOf(f)>-1},get:function(f){return u[l.indexOf(f)]},set:function(f,p){l.indexOf(f)===-1&&(l.push(f),u.push(p))},delete:function(f){var p=l.indexOf(f);p>-1&&(l.splice(p,1),u.splice(p,1))}}})(),r=function(u){return new Event(u,{bubbles:!0})};try{new Event("test")}catch{r=function(d){var f=document.createEvent("Event");return f.initEvent(d,!0,!1),f}}function n(l){if(!l||!l.nodeName||l.nodeName!=="TEXTAREA"||o.has(l))return;var u=null,d=null,f=null;function p(){var k=window.getComputedStyle(l,null);k.resize==="vertical"?l.style.resize="none":k.resize==="both"&&(l.style.resize="horizontal"),k.boxSizing==="content-box"?u=-(parseFloat(k.paddingTop)+parseFloat(k.paddingBottom)):u=parseFloat(k.borderTopWidth)+parseFloat(k.borderBottomWidth),isNaN(u)&&(u=0),b()}function h(k){{var S=l.style.width;l.style.width="0px",l.offsetWidth,l.style.width=S}l.style.overflowY=k}function m(k){for(var S=[];k&&k.parentNode&&k.parentNode instanceof Element;)k.parentNode.scrollTop&&S.push({node:k.parentNode,scrollTop:k.parentNode.scrollTop}),k=k.parentNode;return S}function g(){if(l.scrollHeight!==0){var k=m(l),S=document.documentElement&&document.documentElement.scrollTop;l.style.height="",l.style.height=l.scrollHeight+u+"px",d=l.clientWidth,k.forEach(function(_){_.node.scrollTop=_.scrollTop}),S&&(document.documentElement.scrollTop=S)}}function b(){g();var k=Math.round(parseFloat(l.style.height)),S=window.getComputedStyle(l,null),_=S.boxSizing==="content-box"?Math.round(parseFloat(S.height)):l.offsetHeight;if(_<k?S.overflowY==="hidden"&&(h("scroll"),g(),_=S.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight):S.overflowY!=="hidden"&&(h("hidden"),g(),_=S.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight),f!==_){f=_;var x=r("autosize:resized");try{l.dispatchEvent(x)}catch{}}}var v=function(){l.clientWidth!==d&&b()},y=function(k){window.removeEventListener("resize",v,!1),l.removeEventListener("input",b,!1),l.removeEventListener("keyup",b,!1),l.removeEventListener("autosize:destroy",y,!1),l.removeEventListener("autosize:update",b,!1),Object.keys(k).forEach(function(S){l.style[S]=k[S]}),o.delete(l)}.bind(l,{height:l.style.height,resize:l.style.resize,overflowY:l.style.overflowY,overflowX:l.style.overflowX,wordWrap:l.style.wordWrap});l.addEventListener("autosize:destroy",y,!1),"onpropertychange"in l&&"oninput"in l&&l.addEventListener("keyup",b,!1),window.addEventListener("resize",v,!1),l.addEventListener("input",b,!1),l.addEventListener("autosize:update",b,!1),l.style.overflowX="hidden",l.style.wordWrap="break-word",o.set(l,{destroy:y,update:b}),p()}function i(l){var u=o.get(l);u&&u.destroy()}function s(l){var u=o.get(l);u&&u.update()}var a=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(a=function(u){return u},a.destroy=function(l){return l},a.update=function(l){return l}):(a=function(u,d){return u&&Array.prototype.forEach.call(u.length?u:[u],function(f){return n(f,d)}),u},a.destroy=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],i),l},a.update=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],s),l}),t.default=a,e.exports=t.default})});var lJ=Se((bdt,aJ)=>{var CVe=function(e,t,o){return o=window.getComputedStyle,(o?o(e):e.currentStyle)[t.replace(/-(\w)/gi,function(r,n){return n.toUpperCase()})]};aJ.exports=CVe});var uJ=Se((ydt,cJ)=>{var Gz=lJ();function EVe(e){var t=Gz(e,"line-height"),o=parseFloat(t,10);if(t===o+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=Gz(e,"line-height"),o=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(o*=4,o/=3):t.indexOf("mm")!==-1?(o*=96,o/=25.4):t.indexOf("cm")!==-1?(o*=96,o/=2.54):t.indexOf("in")!==-1?o*=96:t.indexOf("pc")!==-1&&(o*=16),o=Math.round(o),t==="normal"){var n=e.nodeName,i=document.createElement(n);i.innerHTML=" ",n.toUpperCase()==="TEXTAREA"&&i.setAttribute("rows","1");var s=Gz(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i);var l=i.offsetHeight;o=l,a.removeChild(i)}return o}cJ.exports=EVe});var fJ=Se(kd=>{"use strict";var TVe=kd&&kd.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r])};return function(t,o){e(t,o);function r(){this.constructor=t}t.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}})(),Wz=kd&&kd.__assign||Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},RVe=kd&&kd.__rest||function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&(o[r[n]]=e[r[n]]);return o};kd.__esModule=!0;var EP=ue(),Uw=nJ(),CP=sJ(),BVe=uJ(),PVe=BVe,dJ="autosize:resized",IVe=(function(e){TVe(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.state={lineHeight:null},o.textarea=null,o.onResize=function(r){o.props.onResize&&o.props.onResize(r)},o.updateLineHeight=function(){o.textarea&&o.setState({lineHeight:PVe(o.textarea)})},o.onChange=function(r){var n=o.props.onChange;o.currentValue=r.currentTarget.value,n&&n(r)},o}return t.prototype.componentDidMount=function(){var o=this,r=this.props,n=r.maxRows,i=r.async;typeof n=="number"&&this.updateLineHeight(),typeof n=="number"||i?setTimeout(function(){return o.textarea&&CP(o.textarea)}):this.textarea&&CP(this.textarea),this.textarea&&this.textarea.addEventListener(dJ,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(dJ,this.onResize),CP.destroy(this.textarea))},t.prototype.render=function(){var o=this,r=this,n=r.props,i=n.onResize,s=n.maxRows,a=n.onChange,l=n.style,u=n.innerRef,d=n.children,f=RVe(n,["onResize","maxRows","onChange","style","innerRef","children"]),p=r.state.lineHeight,h=s&&p?p*s:null;return EP.createElement("textarea",Wz({},f,{onChange:this.onChange,style:h?Wz({},l,{maxHeight:h}):l,ref:function(m){o.textarea=m,typeof o.props.innerRef=="function"?o.props.innerRef(m):o.props.innerRef&&(o.props.innerRef.current=m)}}),d)},t.prototype.componentDidUpdate=function(){this.textarea&&CP.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:Uw.number,maxRows:Uw.number,onResize:Uw.func,innerRef:Uw.any,async:Uw.bool},t})(EP.Component);kd.TextareaAutosize=EP.forwardRef(function(e,t){return EP.createElement(IVe,Wz({},e,{innerRef:t}))})});var $z=Se((Sdt,pJ)=>{"use strict";var OVe=fJ();pJ.exports=OVe.TextareaAutosize});var Gw=Se((xdt,bJ)=>{bJ.exports=window.wp.warning});var xd=Se((jdt,pee)=>{pee.exports=window.ReactDOM});var $l=Se((Bft,tte)=>{tte.exports=window.wp.keyboardShortcuts});var bte=Se((Upt,gte)=>{gte.exports=window.wp.htmlEntities});var Bre=Se(Rre=>{"use strict";var Yv=ue();function A4e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var L4e=typeof Object.is=="function"?Object.is:A4e,N4e=Yv.useState,M4e=Yv.useEffect,D4e=Yv.useLayoutEffect,V4e=Yv.useDebugValue;function F4e(e,t){var o=t(),r=N4e({inst:{value:o,getSnapshot:t}}),n=r[0].inst,i=r[1];return D4e(function(){n.value=o,n.getSnapshot=t,W8(n)&&i({inst:n})},[e,o,t]),M4e(function(){return W8(n)&&i({inst:n}),e(function(){W8(n)&&i({inst:n})})},[e]),V4e(o),o}function W8(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!L4e(e,o)}catch{return!0}}function z4e(e,t){return t()}var j4e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?z4e:F4e;Rre.useSyncExternalStore=Yv.useSyncExternalStore!==void 0?Yv.useSyncExternalStore:j4e});var $8=Se((jyt,Pre)=>{"use strict";Pre.exports=Bre()});var Ore=Se(Ire=>{"use strict";var JI=ue(),H4e=$8();function U4e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var G4e=typeof Object.is=="function"?Object.is:U4e,W4e=H4e.useSyncExternalStore,$4e=JI.useRef,K4e=JI.useEffect,Y4e=JI.useMemo,q4e=JI.useDebugValue;Ire.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var i=$4e(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Y4e(function(){function l(h){if(!u){if(u=!0,d=h,h=r(h),n!==void 0&&s.hasValue){var m=s.value;if(n(m,h))return f=m}return f=h}if(m=f,G4e(d,h))return m;var g=r(h);return n!==void 0&&n(m,g)?(d=h,m):(d=h,f=g)}var u=!1,d,f,p=o===void 0?null:o;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,o,r,n]);var a=W4e(e,i[0],i[1]);return K4e(function(){s.hasValue=!0,s.value=a},[a]),q4e(a),a}});var Lre=Se((Uyt,Are)=>{"use strict";Are.exports=Ore()});var pae=Se((bIt,fae)=>{fae.exports=window.wp.theme});var $le=Se(($At,Wle)=>{Wle.exports=window.wp.uploadMedia});var aue=Se((ILt,eU)=>{var mt=String,sue=function(){return{isColorSupported:!1,reset:mt,bold:mt,dim:mt,italic:mt,underline:mt,inverse:mt,hidden:mt,strikethrough:mt,black:mt,red:mt,green:mt,yellow:mt,blue:mt,magenta:mt,cyan:mt,white:mt,gray:mt,bgBlack:mt,bgRed:mt,bgGreen:mt,bgYellow:mt,bgBlue:mt,bgMagenta:mt,bgCyan:mt,bgWhite:mt,blackBright:mt,redBright:mt,greenBright:mt,yellowBright:mt,blueBright:mt,magentaBright:mt,cyanBright:mt,whiteBright:mt,bgBlackBright:mt,bgRedBright:mt,bgGreenBright:mt,bgYellowBright:mt,bgBlueBright:mt,bgMagentaBright:mt,bgCyanBright:mt,bgWhiteBright:mt}};eU.exports=sue();eU.exports.createColors=sue});var tU=Se(()=>{});var OA=Se((LLt,uue)=>{"use strict";var lue=aue(),cue=tU(),pC=class e extends Error{constructor(t,o,r,n,i,s){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),n&&(this.source=n),s&&(this.plugin=s),typeof o<"u"&&typeof r<"u"&&(typeof o=="number"?(this.line=o,this.column=r):(this.line=o.line,this.column=o.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let o=this.source;t==null&&(t=lue.isColorSupported);let r=d=>d,n=d=>d,i=d=>d;if(t){let{bold:d,gray:f,red:p}=lue.createColors(!0);n=h=>d(p(h)),r=h=>f(h),cue&&(i=h=>cue(h))}let s=o.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(a,l).map((d,f)=>{let p=a+1+f,h=" "+(" "+p).slice(-u)+" | ";if(p===this.line){if(d.length>160){let g=20,b=Math.max(0,this.column-g),v=Math.max(this.column+g,this.endColumn+g),y=d.slice(b,v),k=r(h.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return n(">")+r(h)+i(y)+`
`+k+n("^")}let m=r(h.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(h)+i(d)+`
`+m+n("^")}return" "+r(h)+i(d)}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`
`+t+`
`),this.name+": "+this.message+t}};uue.exports=pC;pC.default=pC});var oU=Se((NLt,fue)=>{"use strict";var C8e=/(<)(\/?style\b)/gi,E8e=/(<)(!--)/g;function sm(e){return typeof e!="string"||!e.includes("<")?e:e.replace(C8e,"\\3c $2").replace(E8e,"\\3c $2")}var due={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function T8e(e){return e[0].toUpperCase()+e.slice(1)}var mC=class{constructor(t){this.builder=t}atrule(t,o){let r=t.raws,n="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(typeof r.afterName<"u"?n+=r.afterName:i&&(n+=" "),t.nodes)this.block(t,n+i);else{let s=(r.between||"")+(o?";":"");this.builder(sm(n+i+s),t)}}beforeAfter(t,o){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):o==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
`)){let s=this.raw(t,null,"indent");if(s.length)for(let a=0;a<i;a++)r+=s}return r}block(t,o){let r=this.raw(t,"between","beforeOpen");this.builder(sm(o+r)+"{",t,"start");let n;t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(sm(n)),this.builder("}",t,"end")}body(t){let o=t.nodes,r=o.length-1;for(;r>0&&o[r].type==="comment";)r-=1;let n=this.raw(t,"semicolon"),i=t.type==="document";for(let s=0;s<o.length;s++){let a=o[s],l=this.raw(a,"before");l&&this.builder(i?l:sm(l)),this.stringify(a,r!==s||n)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder(sm("/*"+o+t.text+r+"*/"),t)}decl(t,o){let r=t.raws,n=this.raw(t,"between","colon"),i=t.prop+n+this.rawValue(t,"value");t.important&&(i+=r.important||" !important"),o&&(i+=";"),this.builder(sm(i),t)}document(t){this.body(t)}raw(t,o,r){let n;if(r||(r=o),o&&(n=t.raws[o],typeof n<"u"))return n;let i=t.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===t||i&&i.type==="document"))return"";if(!i)return due[r];let s=t.root(),a=s.rawCache||(s.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let l="raw"+T8e(r);this[l]?n=this[l](s,t):s.walk(u=>{if(n=u.raws[o],typeof n<"u")return!1})}return typeof n>"u"&&(n=due[r]),a[r]=n,n}rawBeforeClose(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return o=r.raws.after,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let r;return t.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,o){let r;return t.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let o;return t.walk(r=>{if(r.type!=="decl"&&(o=r.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return o=r.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return o=r.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(o=r.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(o=r.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let r=t[o],n=t.raws[o];return n&&n.value===r?n.raw:r}root(t){if(this.body(t),t.raws.after){let o=t.raws.after,r=t.parent&&t.parent.type==="document";this.builder(r?o:sm(o))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(sm(t.raws.ownSemicolon),t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}};fue.exports=mC;mC.default=mC});var AA=Se((MLt,pue)=>{"use strict";var R8e=oU();function rU(e,t){new R8e(t).stringify(e)}pue.exports=rU;rU.default=rU});var LA=Se((DLt,nU)=>{"use strict";nU.exports.isClean=Symbol("isClean");nU.exports.my=Symbol("my")});var NA=Se((VLt,mue)=>{"use strict";var B8e=OA(),P8e=oU(),I8e=AA(),{isClean:hC,my:O8e}=LA();function iU(e,t){let o=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let n=e[r],i=typeof n;r==="parent"&&i==="object"?t&&(o[r]=t):r==="source"?o[r]=n:Array.isArray(n)?o[r]=n.map(s=>iU(s,o)):(i==="object"&&n!==null&&(n=iU(n)),o[r]=n)}return o}function fu(e,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,r=1,n=0;for(let i=0;i<e.length;i++){if(r===t.line&&o===t.column){n=i;break}e[i]===`
`?(o=1,r+=1):o+=1}return n}var gC=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[hC]=!1,this[O8e]=!0;for(let o in t)if(o==="nodes"){this.nodes=[];for(let r of t[o])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}else this[o]=t[o]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let o=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let o in t)this[o]=t[o];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let o=iU(this);for(let r in t)o[r]=t[r];return o}cloneAfter(t={}){let o=this.clone(t);return this.parent.insertAfter(this,o),o}cloneBefore(t={}){let o=this.clone(t);return this.parent.insertBefore(this,o),o}error(t,o={}){if(this.source){let{end:r,start:n}=this.rangeBy(o);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},o)}return new B8e(t)}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:o==="root"?()=>t.root().toProxy():t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&t.markDirty()),!0}}}markClean(){this[hC]=!0}markDirty(){if(this[hC]){this[hC]=!1;let t=this;for(;t=t.parent;)t[hC]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:fu(o,this.source.start)};if(t.index)r=this.positionInside(t.index);else if(t.word){let i=o.slice(fu(o,this.source.start),fu(o,this.source.end)).indexOf(t.word);i!==-1&&(r=this.positionInside(i))}return r}positionInside(t){let o=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=fu(n,this.source.start),s=i+t;for(let a=i;a<s;a++)n[a]===`
`?(o=1,r+=1):o+=1;return{column:o,line:r,offset:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:fu(o,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:fu(o,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(t.word){let s=o.slice(fu(o,this.source.start),fu(o,this.source.end)).indexOf(t.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+t.word.length))}else t.start?r={column:t.start.column,line:t.start.line,offset:fu(o,t.start)}:typeof t.index=="number"&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line,offset:fu(o,t.end)}:typeof t.endIndex=="number"?n=this.positionInside(t.endIndex):typeof t.index=="number"&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(t,o){return new P8e().raw(this,t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let o=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(o,n),o=n):this.parent.insertBefore(o,n);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,o){let r={},n=o==null;o=o||new Map;let i=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))r[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,o):l);else if(typeof a=="object"&&a.toJSON)r[s]=a.toJSON(null,o);else if(s==="source"){if(a==null)continue;let l=o.get(a.input);l==null&&(l=i,o.set(a.input,i),i++),r[s]={end:a.end,inputId:l,start:a.start}}else r[s]=a}return n&&(r.inputs=[...o.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=I8e){t.stringify&&(t=t.stringify);let o="";return t(this,r=>{o+=r}),o}warn(t,o,r={}){let n={node:this};for(let i in r)n[i]=r[i];return t.warn(o,n)}};mue.exports=gC;gC.default=gC});var sU=Se((FLt,hue)=>{"use strict";var A8e=NA(),bC=class extends A8e{constructor(t){super(t),this.type="comment"}};hue.exports=bC;bC.default=bC});var aU=Se((zLt,gue)=>{"use strict";var L8e=NA(),yC=class extends L8e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};gue.exports=yC;yC.default=yC});var lb=Se((jLt,Cue)=>{"use strict";var bue=sU(),yue=aU(),N8e=NA(),{isClean:vue,my:Sue}=LA(),lU,kue,_ue,cU;function xue(e){return e.map(t=>(t.nodes&&(t.nodes=xue(t.nodes)),delete t.source,t))}function wue(e){if(e[vue]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)wue(t)}var nc=class e extends N8e{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let o of t){let r=this.normalize(o,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let o of this.nodes)o.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let o=this.getIterator(),r,n;for(;this.indexes[o]<this.proxyOf.nodes.length&&(r=this.indexes[o],n=t(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[o]+=1;return delete this.indexes[o],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:t[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?(...r)=>t[o](...r.map(n=>typeof n=="function"?(i,s)=>n(i.toProxy(),s):n)):o==="every"||o==="some"?r=>t[o]((n,...i)=>r(n.toProxy(),...i)):o==="root"?()=>t.root().toProxy():o==="nodes"?t.nodes.map(r=>r.toProxy()):o==="first"||o==="last"?t[o].toProxy():t[o]:t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="name"||o==="params"||o==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,o){let r=this.index(t),n=this.normalize(o,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let s of n)this.proxyOf.nodes.splice(r+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],r<i&&(this.indexes[s]=i+n.length);return this.markDirty(),this}insertBefore(t,o){let r=this.index(t),n=r===0?"prepend":!1,i=this.normalize(o,this.proxyOf.nodes[r],n).reverse();r=this.index(t);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let s;for(let a in this.indexes)s=this.indexes[a],r<=s&&(this.indexes[a]=s+i.length);return this.markDirty(),this}normalize(t,o){if(typeof t=="string")t=xue(kue(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new yue(t)]}else if(t.selector||t.selectors)t=[new cU(t)];else if(t.name)t=[new lU(t)];else if(t.text)t=[new bue(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[Sue]||e.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[vue]&&wue(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(n.raws.before=o.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...t){t=t.reverse();for(let o of t){let r=this.normalize(o,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let o;for(let r in this.indexes)o=this.indexes[r],o>=t&&(this.indexes[r]=o-1);return this.markDirty(),this}replaceValues(t,o,r){return r||(r=o,o={}),this.walkDecls(n=>{o.props&&!o.props.includes(n.prop)||o.fast&&!n.value.includes(o.fast)||(n.value=n.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((o,r)=>{let n;try{n=t(o,r)}catch(i){throw o.addToError(i)}return n!==!1&&o.walk&&(n=o.walk(t)),n})}walkAtRules(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&t.test(r.name))return o(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="atrule")return o(r,n)}))}walkComments(t){return this.walk((o,r)=>{if(o.type==="comment")return t(o,r)})}walkDecls(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&t.test(r.prop))return o(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="decl")return o(r,n)}))}walkRules(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&t.test(r.selector))return o(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="rule")return o(r,n)}))}};nc.registerParse=e=>{kue=e};nc.registerRule=e=>{cU=e};nc.registerAtRule=e=>{lU=e};nc.registerRoot=e=>{_ue=e};Cue.exports=nc;nc.default=nc;nc.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,lU.prototype):e.type==="rule"?Object.setPrototypeOf(e,cU.prototype):e.type==="decl"?Object.setPrototypeOf(e,yue.prototype):e.type==="comment"?Object.setPrototypeOf(e,bue.prototype):e.type==="root"&&Object.setPrototypeOf(e,_ue.prototype),e[Sue]=!0,e.nodes&&e.nodes.forEach(t=>{nc.rebuild(t)})}});var uU=Se((HLt,Rue)=>{"use strict";var M8e=lb(),Eue,Tue,cb=class extends M8e{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Eue(new Tue,this,t).stringify()}};cb.registerLazyResult=e=>{Eue=e};cb.registerProcessor=e=>{Tue=e};Rue.exports=cb;cb.default=cb});var MA=Se(()=>{});var DA=Se(()=>{});var dU=Se(()=>{});var Pue=Se((qLt,Bue)=>{var D8e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",V8e=(e,t=21)=>(o=t)=>{let r="",n=o|0;for(;n--;)r+=e[Math.random()*e.length|0];return r},F8e=(e=21)=>{let t="",o=e|0;for(;o--;)t+=D8e[Math.random()*64|0];return t};Bue.exports={nanoid:F8e,customAlphabet:V8e}});var Iue=Se(()=>{});var Nue=Se((QLt,Lue)=>{"use strict";var{existsSync:z8e,readFileSync:j8e}=Iue(),{dirname:fU,join:H8e}=MA(),{SourceMapConsumer:Oue,SourceMapGenerator:Aue}=DA();function U8e(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var vC=class{constructor(t,o){if(o.map===!1)return;o.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=o.map?o.map.prev:void 0,n=this.loadMap(o.from,r);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=fU(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Oue(this.json||this.text)),this.consumerCache}decodeInline(t){let o=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,s=t.match(n)||t.match(i);if(s)return decodeURIComponent(t.substr(s[0].length));let a=t.match(o)||t.match(r);if(a)return U8e(t.substr(a[0].length));let l=t.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let o=t.match(/\/\*\s*# sourceMappingURL=/g);if(!o)return;let r=t.lastIndexOf(o.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}loadFile(t,o,r){if(!(!r&&!this.unsafeMap&&!/\.map$/i.test(t))&&(this.root=fU(t),z8e(t)))return this.mapFile=t,j8e(t,"utf-8").toString().trim()}loadMap(t,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let r=o(t);if(r){let n=this.loadFile(r,t,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(o instanceof Oue)return Aue.fromSourceMap(o).toString();if(o instanceof Aue)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;t&&(r=H8e(fU(t),r));let n=this.loadFile(r,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,o){return t?t.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Lue.exports=vC;vC.default=vC});var bU=Se((JLt,zue)=>{"use strict";var{nanoid:G8e}=Pue(),{isAbsolute:hU,resolve:gU}=MA(),{SourceMapConsumer:W8e,SourceMapGenerator:$8e}=DA(),{fileURLToPath:Mue,pathToFileURL:VA}=dU(),Due=OA(),K8e=Nue(),pU=tU(),mU=Symbol("lineToIndexCache"),Y8e=!!(W8e&&$8e),Vue=!!(gU&&hU);function Fue(e){if(e[mU])return e[mU];let t=e.css.split(`
`),o=new Array(t.length),r=0;for(let n=0,i=t.length;n<i;n++)o[n]=r,r+=t[n].length+1;return e[mU]=o,o}var AS=class{get from(){return this.file||this.id}constructor(t,o={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,o.document&&(this.document=o.document.toString()),o.from&&(!Vue||/^\w+:\/\//.test(o.from)||hU(o.from)?this.file=o.from:this.file=gU(o.from)),Vue&&Y8e){let r=new K8e(this.css,o);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+G8e(6)+">"),this.map&&(this.map.file=this.from)}error(t,o,r,n={}){let i,s,a,l,u;if(o&&typeof o=="object"){let f=o,p=r;if(typeof f.offset=="number"){l=f.offset;let h=this.fromOffset(l);o=h.line,r=h.col}else o=f.line,r=f.column,l=this.fromLineAndColumn(o,r);if(typeof p.offset=="number"){a=p.offset;let h=this.fromOffset(a);s=h.line,i=h.col}else s=p.line,i=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(r)l=this.fromLineAndColumn(o,r);else{l=o;let f=this.fromOffset(l);o=f.line,r=f.col}let d=this.origin(o,r,s,i);return d?u=new Due(t,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):u=new Due(t,s===void 0?o:{column:r,line:o},s===void 0?r:{column:i,line:s},this.css,this.file,n.plugin),u.input={column:r,endColumn:i,endLine:s,endOffset:a,line:o,offset:l,source:this.css},this.file&&(VA&&(u.input.url=VA(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(t,o){return Fue(this)[t-1]+o-1}fromOffset(t){let o=Fue(this),r=o[o.length-1],n=0;if(t>=r)n=o.length-1;else{let i=o.length-2,s;for(;n<i;)if(s=n+(i-n>>1),t<o[s])i=s-1;else if(t>=o[s+1])n=s+1;else{n=s;break}}return{col:t-o[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:gU(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,o,r,n){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:o-1,line:t});if(!s.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:n-1,line:r}));let l;hU(s.source)?l=VA(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||VA(this.map.mapFile));let u={column:s.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Mue)u.file=Mue(l);else throw new Error("file: protocol is not available in this PostCSS build");let d=i.sourceContentFor(s.source);return d&&(u.source=d),u}toJSON(){let t={};for(let o of["hasBOM","css","file","id"])this[o]!=null&&(t[o]=this[o]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};zue.exports=AS;AS.default=AS;pU&&pU.registerInput&&pU.registerInput(AS)});var vU=Se((eNt,$ue)=>{"use strict";var{dirname:FA,relative:Hue,resolve:Uue,sep:Gue}=MA(),{SourceMapConsumer:Wue,SourceMapGenerator:zA}=DA(),{pathToFileURL:jue}=dU(),q8e=bU(),Z8e=!!(Wue&&zA),X8e=!!(FA&&Uue&&Hue&&Gue),yU=class{constructor(t,o,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=o,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let o=`
`;this.css.includes(`\r
`)&&(o=`\r
`),this.css+=o+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let o=this.toUrl(this.path(t.file)),r=t.root||FA(t.file),n;this.mapOpts.sourcesContent===!1?(n=new Wue(t.text),n.sourcesContent&&(n.sourcesContent=null)):n=t.consumer(),this.map.applySourceMap(n,o,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let t;for(let o=this.root.nodes.length-1;o>=0;o--)t=this.root.nodes[o],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else if(this.css){let t;for(;(t=this.css.lastIndexOf("/*#"))!==-1;){let o=this.css.indexOf("*/",t+3);if(o===-1)break;for(;t>0&&this.css[t-1]===`
`;)t--;this.css=this.css.slice(0,t)+this.css.slice(o+2)}}}}generate(){if(this.clearAnnotation(),X8e&&Z8e&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,o=>{t+=o}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=zA.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new zA({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new zA({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,o=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(n.generated.line=t,n.generated.column=o-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=a.match(/\n/g),s?(t+=s.length,i=a.lastIndexOf(`
`),o=a.length-i):o+=a.length,l&&u!=="start"){let d=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==d.last||d.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=t,n.generated.column=o-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=t,n.generated.column=o-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let o=this.memoizedPaths.get(t);if(o)return o;let r=this.opts.to?FA(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=FA(Uue(r,this.mapOpts.annotation)));let n=Hue(r,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let o=t.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let t=new q8e(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(o=>{if(o.source){let r=o.source.input.from;if(r&&!t[r]){t[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let o=this.memoizedFileURLs.get(t);if(o)return o;if(jue){let r=jue(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let o=this.memoizedURLs.get(t);if(o)return o;Gue==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};$ue.exports=yU});var que=Se((tNt,Yue)=>{"use strict";var Kue=lb(),LS=class extends Kue{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Yue.exports=LS;LS.default=LS;Kue.registerAtRule(LS)});var jA=Se((oNt,Jue)=>{"use strict";var Zue=lb(),Xue,Que,am=class extends Zue{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,o,r){let n=super.normalize(t);if(o){if(r==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let i of n)i.raws.before=o.raws.before}return n}removeChild(t,o){let r=this.index(t);return!o&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new Xue(new Que,this,t).stringify()}};am.registerLazyResult=e=>{Xue=e};am.registerProcessor=e=>{Que=e};Jue.exports=am;am.default=am;Zue.registerRoot(am)});var tde=Se((rNt,ede)=>{"use strict";var SC={comma(e){return SC.split(e,[","],!0)},space(e){let t=[" ",`
`," "];return SC.split(e,t)},split(e,t,o){let r=[],n="",i=!1,s=0,a=!1,l="",u=!1;for(let d of e)u?u=!1:d==="\\"?u=!0:a?d===l&&(a=!1):d==='"'||d==="'"?(a=!0,l=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&t.includes(d)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=d;return(o||n!=="")&&r.push(n.trim()),r}};ede.exports=SC;SC.default=SC});var nde=Se((nNt,rde)=>{"use strict";var ode=lb(),Q8e=tde(),NS=class extends ode{get selectors(){return Q8e.comma(this.selector)}set selectors(t){let o=this.selector?this.selector.match(/,\s*/):null,r=o?o[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};rde.exports=NS;NS.default=NS;ode.registerRule(NS)});var ade=Se((iNt,sde)=>{"use strict";var HA=/[\t\n\f\r "#'()/;[\\\]{}]/g,UA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,J8e=/.[\r\n"'(/\\]/,ide=/[\da-f]/i;sde.exports=function(t,o={}){let r=t.css.valueOf(),n=o.ignoreErrors,i,s,a,l,u,d,f,p,h,m,g=r.length,b=0,v=[],y=[],k=-1;function S(){return b}function _(R){throw t.error("Unclosed "+R,b)}function x(){return y.length===0&&b>=g}function w(R){if(y.length)return y.pop();if(b>=g)return;let B=R?R.ignoreUnclosed:!1;switch(i=r.charCodeAt(b),i){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,i=r.charCodeAt(l);while(i===32||i===10||i===9||i===13||i===12);d=["space",r.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let I=String.fromCharCode(i);d=[I,I,b];break}case 40:{if(m=v.length?v.pop()[1]:"",h=r.charCodeAt(b+1),m==="url"&&h!==39&&h!==34&&h!==32&&h!==10&&h!==9&&h!==12&&h!==13){l=b;do{if(f=!1,l=r.indexOf(")",l+1),l===-1)if(n||B){l=b;break}else _("bracket");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["brackets",r.slice(b,l+1),b,l],b=l}else b<=k?d=["(","(",b]:(l=r.indexOf(")",b+1),s=r.slice(b,l+1),l===-1||J8e.test(s)?(k=l===-1?g:l,d=["(","(",b]):(d=["brackets",s,b,l],b=l));break}case 39:case 34:{u=i===39?"'":'"',l=b;do{if(f=!1,l=r.indexOf(u,l+1),l===-1)if(n||B){l=b+1;break}else _("string");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["string",r.slice(b,l+1),b,l],b=l;break}case 64:{HA.lastIndex=b+1,HA.test(r),HA.lastIndex===0?l=r.length-1:l=HA.lastIndex-2,d=["at-word",r.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(i=r.charCodeAt(l+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(l+=1,ide.test(r.charAt(l)))){for(;ide.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}d=["word",r.slice(b,l+1),b,l],b=l;break}default:{i===47&&r.charCodeAt(b+1)===42?(l=r.indexOf("*/",b+2)+1,l===0&&(n||B?l=r.length:_("comment")),d=["comment",r.slice(b,l+1),b,l],b=l):(UA.lastIndex=b+1,UA.test(r),UA.lastIndex===0?l=r.length-1:l=UA.lastIndex-2,d=["word",r.slice(b,l+1),b,l],v.push(d),b=l);break}}return b++,d}function T(R){y.push(R)}return{back:T,endOfFile:x,nextToken:w,position:S}}});var dde=Se((sNt,ude)=>{"use strict";var eHe=que(),tHe=sU(),oHe=aU(),rHe=jA(),lde=nde(),nHe=ade(),cde={empty:!0,space:!0};function iHe(e){for(let t=e.length-1;t>=0;t--){let o=e[t],r=o[3]||o[2];if(r)return r}}function SU(e,t,o){let r="";for(let n=t;n<o;n++)r+=e[n][1];return r}var kU=class{constructor(t){this.input=t,this.root=new rHe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new eHe;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let r,n,i,s=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(i=l.length-1,n=l[i];n&&n[0]==="space";)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(t=l[l.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let r=0,n;for(let i=o-1;i>=0&&(n=t[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(t){let o=0,r,n,i;for(let[s,a]of t.entries()){if(n=a,i=n[0],i==="("&&(o+=1),i===")"&&(o-=1),o===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(t){let o=new tHe;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let r=t[1].slice(2,-2);if(!r.trim())o.text="",o.raws.left=r,o.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);o.text=n[2],o.raws.left=n[1],o.raws.right=n[3]}}createTokenizer(){this.tokenizer=nHe(this.input)}decl(t,o){let r=new oHe;this.init(r,t[0][2]);let n=t[t.length-1];n[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(n[3]||n[2]||iHe(t)),r.source.end.offset++;let i=0;for(;t[i][0]!=="word";)i===t.length-1&&this.unknownWord([t[i]]),i++;r.raws.before+=SU(t,0,i),r.source.start=this.getPosition(t[i][2]);let s=i;for(;i<t.length;){let p=t[i][0];if(p===":"||p==="space"||p==="comment")break;i++}r.prop=SU(t,s,i);let a=i,l;for(;i<t.length&&(l=t[i],i++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=SU(t,a,i),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let u=i;for(;i<t.length;){let p=t[i][0];if(p!=="space"&&p!=="comment")break;i++}let d=t.slice(u,i);t=t.slice(i),this.precheckMissedSemicolon(t);for(let p=t.length-1;p>=0;p--){if(l=t[p],l[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(t,p);h=this.spacesFromEnd(t)+h,h!==" !important"&&(r.raws.important=h);break}else if(l[1].toLowerCase()==="important"){let h=t.slice(0),m="";for(let g=p;g>0;g--){let b=h[g][0];if(m.trim().startsWith("!")&&b!=="space")break;m=h.pop()[1]+m}m.trim().startsWith("!")&&(r.important=!0,r.raws.important=m,t=h)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=d.map(p=>p[1]).join(""),d=[]),this.raw(r,"value",d.concat(t),o),r.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new lde;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="",o.source.end=this.getPosition(t[2]),o.source.end.offset+=o.raws.ownSemicolon.length)}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,r=null,n=!1,i=null,s=[],a=t[1].startsWith("--"),l=[],u=t;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")i||(i=u),s.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=u),s.push("}");else if(s.length===0)if(r===";")if(n){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),o=!0;break}else r===":"&&(n=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),s.length>0&&this.unclosedBracket(i),o&&n){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,r,n){let i,s,a=r.length,l="",u=!0,d,f;for(let p=0;p<a;p+=1)i=r[p],s=i[0],s==="space"&&p===a-1&&!n?u=!1:s==="comment"?(f=r[p-1]?r[p-1][0]:"empty",d=r[p+1]?r[p+1][0]:"empty",!cde[f]&&!cde[d]?l.slice(-1)===","?u=!1:l+=i[1]:u=!1):l+=i[1];if(!u){let p=r.reduce((h,m)=>h+m[1],"");t.raws[o]={raw:p,value:l}}t[o]=l}rule(t){t.pop();let o=new lde;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,r="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let o,r="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let o,r="";for(;t.length&&(o=t[t.length-1][0],o==="space");)r=t.pop()[1]+r;return r}stringFrom(t,o){let r="";for(let n=o;n<t.length;n++)r+=t[n][1];return t.splice(o,t.length-o),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}};ude.exports=kU});var _U=Se((aNt,fde)=>{"use strict";var sHe=lb(),aHe=bU(),lHe=dde();function GA(e,t){let o=new aHe(e,t),r=new lHe(o);try{r.parse()}catch(n){throw n}return r.root}fde.exports=GA;GA.default=GA;sHe.registerParse(GA)});var mde=Se((lNt,pde)=>{"use strict";var kC=class{constructor(t,o={}){if(this.type="warning",this.text=t,o.node&&o.node.source){let r=o.node.rangeBy(o);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in o)this[r]=o[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};pde.exports=kC;kC.default=kC});var xU=Se((cNt,hde)=>{"use strict";var cHe=mde(),_C=class{get content(){return this.css}constructor(t,o,r){this.processor=t,this.messages=[],this.root=o,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(t,o={}){o.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(o.plugin=this.lastPlugin.postcssPlugin);let r=new cHe(t,o);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}};hde.exports=_C;_C.default=_C});var wU=Se((uNt,bde)=>{"use strict";var gde={};bde.exports=function(t){gde[t]||(gde[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var _de=Se((fNt,kde)=>{"use strict";var uHe=lb(),dHe=uU(),fHe=vU(),pHe=_U(),yde=xU(),mHe=jA(),hHe=AA(),{isClean:pu,my:gHe}=LA(),dNt=wU(),bHe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},yHe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vHe={Once:!0,postcssPlugin:!0,prepare:!0},MS=0;function xC(e){return typeof e=="object"&&typeof e.then=="function"}function Sde(e){let t=!1,o=bHe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[o,o+"-"+t,MS,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:e.append?[o,MS,o+"Exit"]:[o,o+"Exit"]}function vde(e){let t;return e.type==="document"?t=["Document",MS,"DocumentExit"]:e.type==="root"?t=["Root",MS,"RootExit"]:t=Sde(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function CU(e){return e[pu]=!1,e.nodes&&e.nodes.forEach(t=>CU(t)),e}var EU={},lm=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,o,r){this.stringified=!1,this.processed=!1;let n;if(typeof o=="object"&&o!==null&&(o.type==="root"||o.type==="document"))n=CU(o);else if(o instanceof e||o instanceof yde)n=CU(o.root),o.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=o.map);else{let i=pHe;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(o,r)}catch(s){this.processed=!0,this.error=s}n&&!n[gHe]&&uHe.rebuild(n)}this.result=new yde(t,n,r),this.helpers={...EU,postcss:EU,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,o){let r=this.result.lastPlugin;try{o&&o.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return t}prepareVisitors(){this.listeners={};let t=(o,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([o,n])};for(let o of this.plugins)if(typeof o=="object")for(let r in o){if(!yHe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${o.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vHe[r])if(typeof o[r]=="object")for(let n in o[r])n==="*"?t(o,r,o[r][n]):t(o,r+"-"+n.toLowerCase(),o[r][n]);else typeof o[r]=="function"&&t(o,r,o[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let o=this.plugins[t],r=this.runOnRoot(o);if(xC(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[pu];){t[pu]=!0;let o=[vde(t)];for(;o.length>0;){let r=this.visitTick(o);if(xC(r))try{await r}catch(n){let i=o[o.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[o,r]of this.listeners.OnceExit){this.result.lastPlugin=o;try{if(t.type==="document"){let n=t.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(t,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let o=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return xC(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(o){throw this.handleError(o)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,o=hHe;t.syntax&&(o=t.syntax.stringify),t.stringifier&&(o=t.stringifier),o.stringify&&(o=o.stringify);let r=this.result.root.source;if(t.map===void 0&&!(r&&r.input&&r.input.map)){let s="";return o(this.result.root,a=>{s+=a}),this.result.css=s,this.result}let i=new fHe(o,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let o=this.runOnRoot(t);if(xC(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[pu];)t[pu]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let o of t.nodes)this.visitSync(this.listeners.OnceExit,o);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,o){return this.async().then(t,o)}toString(){return this.css}visitSync(t,o){for(let[r,n]of t){this.result.lastPlugin=r;let i;try{i=n(o,this.helpers)}catch(s){throw this.handleError(s,o.proxyOf)}if(o.type!=="root"&&o.type!=="document"&&!o.parent)return!0;if(xC(i))throw this.getAsyncError()}}visitTick(t){let o=t[t.length-1],{node:r,visitors:n}=o;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(n.length>0&&o.visitorIndex<n.length){let[s,a]=n[o.visitorIndex];o.visitorIndex+=1,o.visitorIndex===n.length&&(o.visitors=[],o.visitorIndex=0),this.result.lastPlugin=s;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(o.iterator!==0){let s=o.iterator,a;for(;a=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!a[pu]){a[pu]=!0,t.push(vde(a));return}o.iterator=0,delete r.indexes[s]}let i=o.events;for(;o.eventIndex<i.length;){let s=i[o.eventIndex];if(o.eventIndex+=1,s===MS){r.nodes&&r.nodes.length&&(r[pu]=!0,o.iterator=r.getIterator());return}else if(this.listeners[s]){o.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[pu]=!0;let o=Sde(t);for(let r of o)if(r===MS)t.nodes&&t.each(n=>{n[pu]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,t.toProxy()))return}}warnings(){return this.sync().warnings()}};lm.registerPostcss=e=>{EU=e};kde.exports=lm;lm.default=lm;mHe.registerLazyResult(lm);dHe.registerLazyResult(lm)});var wde=Se((mNt,xde)=>{"use strict";var SHe=vU(),kHe=_U(),_He=xU(),xHe=AA(),pNt=wU(),wC=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,o=kHe;try{t=o(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,o,r){o=o.toString(),this.stringified=!1,this._processor=t,this._css=o,this._opts=r,this._map=void 0;let n=xHe;this.result=new _He(this._processor,void 0,this._opts),this.result.css=o;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new SHe(n,void 0,this._opts,o);if(s.isMap()){let[a,l]=s.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,o){return this.async().then(t,o)}toString(){return this._css}warnings(){return[]}};xde.exports=wC;wC.default=wC});var Ede=Se((hNt,Cde)=>{"use strict";var wHe=uU(),CHe=_de(),EHe=wde(),THe=jA(),ub=class{constructor(t=[]){this.version="8.5.16",this.plugins=this.normalize(t)}normalize(t){let o=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))o=o.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)o.push(r);else if(typeof r=="function")o.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return o}process(t,o={}){return!this.plugins.length&&!o.parser&&!o.stringifier&&!o.syntax?new EHe(this,t,o):new CHe(this,t,o)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};Cde.exports=ub;ub.default=ub;THe.registerProcessor(ub);wHe.registerProcessor(ub)});var Bde=Se((gNt,Rde)=>{Rde.exports=function(t){let o=t.prefix,r=/\s+$/.test(o)?o:`${o} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return function(s){n.length&&s.source.input.file&&Tde(s.source.input.file,n)||i.length&&s.source.input.file&&!Tde(s.source.input.file,i)||s.walkRules(a=>{let l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(u=>t.exclude&&RHe(u,t.exclude)?u:t.transform?t.transform(o,u,r+u,s.source.input.file,a):r+u))})}};function Tde(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e.includes(o))}function RHe(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e===o)}});var Ide=Se((bNt,Pde)=>{var TU=40,RU=41,WA=39,BU=34,PU=92,DS=47,IU=44,OU=58,$A=42,BHe=117,PHe=85,IHe=43,OHe=/^[a-f0-9?-]+$/i;Pde.exports=function(e){for(var t=[],o=e,r,n,i,s,a,l,u,d,f=0,p=o.charCodeAt(f),h=o.length,m=[{nodes:t}],g=0,b,v="",y="",k="";f<h;)if(p<=32){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);s=o.slice(f,r),i=t[t.length-1],p===RU&&g?k=s:i&&i.type==="div"?(i.after=s,i.sourceEndIndex+=s.length):p===IU||p===OU||p===DS&&o.charCodeAt(r+1)!==$A&&(!b||b&&b.type==="function"&&b.value!=="calc")?y=s:t.push({type:"space",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}else if(p===WA||p===BU){r=f,n=p===WA?"'":'"',s={type:"string",sourceIndex:f,quote:n};do if(a=!1,r=o.indexOf(n,r+1),~r)for(l=r;o.charCodeAt(l-1)===PU;)l-=1,a=!a;else o+=n,r=o.length-1,s.unclosed=!0;while(a);s.value=o.slice(f+1,r),s.sourceEndIndex=s.unclosed?r:r+1,t.push(s),f=r+1,p=o.charCodeAt(f)}else if(p===DS&&o.charCodeAt(f+1)===$A)r=o.indexOf("*/",f),s={type:"comment",sourceIndex:f,sourceEndIndex:r+2},r===-1&&(s.unclosed=!0,r=o.length,s.sourceEndIndex=r),s.value=o.slice(f+2,r),t.push(s),f=r+2,p=o.charCodeAt(f);else if((p===DS||p===$A)&&b&&b.type==="function"&&b.value==="calc")s=o[f],t.push({type:"word",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s}),f+=1,p=o.charCodeAt(f);else if(p===DS||p===IU||p===OU)s=o[f],t.push({type:"div",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s,before:y,after:""}),y="",f+=1,p=o.charCodeAt(f);else if(TU===p){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);if(d=f,s={type:"function",sourceIndex:f-v.length,value:v,before:o.slice(d+1,r)},f=r,v==="url"&&p!==WA&&p!==BU){r-=1;do if(a=!1,r=o.indexOf(")",r+1),~r)for(l=r;o.charCodeAt(l-1)===PU;)l-=1,a=!a;else o+=")",r=o.length-1,s.unclosed=!0;while(a);u=r;do u-=1,p=o.charCodeAt(u);while(p<=32);d<u?(f!==u+1?s.nodes=[{type:"word",sourceIndex:f,sourceEndIndex:u+1,value:o.slice(f,u+1)}]:s.nodes=[],s.unclosed&&u+1!==r?(s.after="",s.nodes.push({type:"space",sourceIndex:u+1,sourceEndIndex:r,value:o.slice(u+1,r)})):(s.after=o.slice(u+1,r),s.sourceEndIndex=r)):(s.after="",s.nodes=[]),f=r+1,s.sourceEndIndex=s.unclosed?r:f,p=o.charCodeAt(f),t.push(s)}else g+=1,s.after="",s.sourceEndIndex=f+1,t.push(s),m.push(s),t=s.nodes=[],b=s;v=""}else if(RU===p&&g)f+=1,p=o.charCodeAt(f),b.after=k,b.sourceEndIndex+=k.length,k="",g-=1,m[m.length-1].sourceEndIndex=f,m.pop(),b=m[g],t=b.nodes;else{r=f;do p===PU&&(r+=1),r+=1,p=o.charCodeAt(r);while(r<h&&!(p<=32||p===WA||p===BU||p===IU||p===OU||p===DS||p===TU||p===$A&&b&&b.type==="function"&&b.value==="calc"||p===DS&&b.type==="function"&&b.value==="calc"||p===RU&&g));s=o.slice(f,r),TU===p?v=s:(BHe===s.charCodeAt(0)||PHe===s.charCodeAt(0))&&IHe===s.charCodeAt(1)&&OHe.test(s.slice(2))?t.push({type:"unicode-range",sourceIndex:f,sourceEndIndex:r,value:s}):t.push({type:"word",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}for(f=m.length-1;f;f-=1)m[f].unclosed=!0,m[f].sourceEndIndex=o.length;return m[0].nodes}});var Ade=Se((yNt,Ode)=>{Ode.exports=function e(t,o,r){var n,i,s,a;for(n=0,i=t.length;n<i;n+=1)s=t[n],r||(a=o(s,n,t)),a!==!1&&s.type==="function"&&Array.isArray(s.nodes)&&e(s.nodes,o,r),r&&o(s,n,t)}});var Dde=Se((vNt,Mde)=>{function Lde(e,t){var o=e.type,r=e.value,n,i;return t&&(i=t(e))!==void 0?i:o==="word"||o==="space"?r:o==="string"?(n=e.quote||"",n+r+(e.unclosed?"":n)):o==="comment"?"/*"+r+(e.unclosed?"":"*/"):o==="div"?(e.before||"")+r+(e.after||""):Array.isArray(e.nodes)?(n=Nde(e.nodes,t),o!=="function"?n:r+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):r}function Nde(e,t){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=Lde(e[r],t)+o;return o}return Lde(e,t)}Mde.exports=Nde});var Fde=Se((SNt,Vde)=>{var KA=45,YA=43,AU=46,AHe=101,LHe=69;function NHe(e){var t=e.charCodeAt(0),o;if(t===YA||t===KA){if(o=e.charCodeAt(1),o>=48&&o<=57)return!0;var r=e.charCodeAt(2);return o===AU&&r>=48&&r<=57}return t===AU?(o=e.charCodeAt(1),o>=48&&o<=57):t>=48&&t<=57}Vde.exports=function(e){var t=0,o=e.length,r,n,i;if(o===0||!NHe(e))return!1;for(r=e.charCodeAt(t),(r===YA||r===KA)&&t++;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),r===AU&&n>=48&&n<=57)for(t+=2;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),i=e.charCodeAt(t+2),(r===AHe||r===LHe)&&(n>=48&&n<=57||(n===YA||n===KA)&&i>=48&&i<=57))for(t+=n===YA||n===KA?3:2;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;return{number:e.slice(0,t),unit:e.slice(t)}}});var Ude=Se((kNt,Hde)=>{var MHe=Ide(),zde=Ade(),jde=Dde();function cm(e){return this instanceof cm?(this.nodes=MHe(e),this):new cm(e)}cm.prototype.toString=function(){return Array.isArray(this.nodes)?jde(this.nodes):""};cm.prototype.walk=function(e,t){return zde(this.nodes,e,t),this};cm.unit=Fde();cm.walk=zde;cm.stringify=jde;Hde.exports=cm});var Wde=Se((_Nt,LU)=>{var Gde=Ude();LU.exports=e=>{let o=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(r){let n=Gde(r.value),i=!1;n.walk(s=>{if(s.type!=="function"||s.value!=="url")return;let a=s.nodes[0].value,l=new URL(a,e.rootUrl);return l.pathname===a&&o.skipHostRelativeUrls||(s.nodes[0].value=l.toString(),i=!0),!1}),i&&(r.value=Gde.stringify(n))}}};LU.exports.postcss=!0});var nfe=Se((MNt,rfe)=>{rfe.exports=window.wp.priorityQueue});var QU=Se((PDt,npe)=>{npe.exports=window.wp.blob});var jC=Se((aFt,hme)=>{hme.exports=window.wp.isShallowEqual});var WL=Se((Szt,sbe)=>{sbe.exports=window.wp.tokenList});var fye=Se((P8t,dye)=>{dye.exports=window.wp.commands});var Tu=Se((s9t,TSe)=>{TSe.exports=window.wp.date});var rke=Se((q9t,oke)=>{var XSe=!1,qb,jG,HG,rM,nM,QSe,iM,UG,GG,WG,JSe,$G,KG,eke,tke;function ws(){if(!XSe){XSe=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if($G=/\b(iPhone|iP[ao]d)/.exec(e),KG=/\b(iP[ao]d)/.exec(e),WG=/Android/i.exec(e),eke=/FBAN\/\w+;/i.exec(e),tke=/Mobile/i.exec(e),JSe=!!/Win64/.exec(e),t){qb=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qb&&document&&document.documentMode&&(qb=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);QSe=r?parseFloat(r[1])+4:qb,jG=t[2]?parseFloat(t[2]):NaN,HG=t[3]?parseFloat(t[3]):NaN,rM=t[4]?parseFloat(t[4]):NaN,rM?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),nM=t&&t[1]?parseFloat(t[1]):NaN):nM=NaN}else qb=jG=HG=nM=rM=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);iM=n?parseFloat(n[1].replace("_",".")):!0}else iM=!1;UG=!!o[2],GG=!!o[3]}else iM=UG=GG=!1}}var YG={ie:function(){return ws()||qb},ieCompatibilityMode:function(){return ws()||QSe>qb},ie64:function(){return YG.ie()&&JSe},firefox:function(){return ws()||jG},opera:function(){return ws()||HG},webkit:function(){return ws()||rM},safari:function(){return YG.webkit()},chrome:function(){return ws()||nM},windows:function(){return ws()||UG},osx:function(){return ws()||iM},linux:function(){return ws()||GG},iphone:function(){return ws()||$G},mobile:function(){return ws()||$G||KG||WG||tke},nativeApp:function(){return ws()||eke},android:function(){return ws()||WG},ipad:function(){return ws()||KG}};oke.exports=YG});var ike=Se((Z9t,nke)=>{"use strict";var sM=!!(typeof window<"u"&&window.document&&window.document.createElement),GWe={canUseDOM:sM,canUseWorkers:typeof Worker<"u",canUseEventListeners:sM&&!!(window.addEventListener||window.attachEvent),canUseViewport:sM&&!!window.screen,isInWorker:!sM};nke.exports=GWe});var cke=Se((X9t,lke)=>{"use strict";var ske=ike(),ake;ske.canUseDOM&&(ake=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function WWe(e,t){if(!ske.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,r=o in document;if(!r){var n=document.createElement("div");n.setAttribute(o,"return;"),r=typeof n[o]=="function"}return!r&&ake&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}lke.exports=WWe});var hke=Se((Q9t,mke)=>{"use strict";var $We=rke(),KWe=cke(),uke=10,dke=40,fke=800;function pke(e){var t=0,o=0,r=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=t*uke,n=o*uke,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(e.deltaMode==1?(r*=dke,n*=dke):(r*=fke,n*=fke)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}pke.getEventType=function(){return $We.firefox()?"DOMMouseScroll":KWe("wheel")?"wheel":"mousewheel"};mke.exports=pke});var bke=Se((J9t,gke)=>{gke.exports=hke()});var Y_e=Se((WWt,K_e)=>{"use strict";K_e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var Ket={};Ir(Ket,{AlignmentControl:()=>KB,AlignmentToolbar:()=>xX,Autocomplete:()=>HX,BlockAlignmentControl:()=>dP,BlockAlignmentToolbar:()=>uQ,BlockBindingsAttributeControl:()=>Vw,BlockBindingsSourceFieldsList:()=>Dw,BlockBreadcrumb:()=>AQ,BlockCanvas:()=>bye,BlockColorsStyleSelector:()=>kye,BlockContextProvider:()=>nT,BlockControls:()=>No,BlockEdit:()=>zB,BlockEditorKeyboardShortcuts:()=>gA,BlockEditorProvider:()=>mce,BlockFormatControls:()=>P9,BlockIcon:()=>Tt,BlockInspector:()=>QEe,BlockList:()=>zS,BlockMover:()=>fL,BlockNavigationDropdown:()=>Pve,BlockPopover:()=>Xpe,BlockPreview:()=>gs,BlockSelectionClearer:()=>ume,BlockSettingsMenu:()=>VL,BlockSettingsMenuControls:()=>AL,BlockStyles:()=>Kk,BlockTitle:()=>zw,BlockToolbar:()=>Zbe,BlockTools:()=>dE,BlockVerticalAlignmentControl:()=>sP,BlockVerticalAlignmentToolbar:()=>Qve,ButtonBlockAppender:()=>ym,ButtonBlockerAppender:()=>jpe,ColorPalette:()=>SSe,ColorPaletteControl:()=>xSe,ContrastChecker:()=>ESe,CopyHandler:()=>t1e,DefaultBlockAppender:()=>lk,DimensionControl:()=>Yb,FontSizePicker:()=>vz,HeadingLevelDropdown:()=>Fve,HeightControl:()=>ZSe,InnerBlocks:()=>UC,Inserter:()=>Za,InspectorAdvancedControls:()=>xm,InspectorControls:()=>Oe,JustifyContentControl:()=>_v,JustifyToolbar:()=>a_e,LineHeightControl:()=>BM,LinkControl:()=>eh,MediaPlaceholder:()=>Rxe,MediaReplaceFlow:()=>p_,MediaUpload:()=>bu,MediaUploadCheck:()=>Xs,MultiSelectScrollIntoView:()=>i1e,NavigableToolbar:()=>Ck,ObserveTyping:()=>uye,PanelColorSettings:()=>Pxe,PlainText:()=>Mwe,RecursionProvider:()=>j$,RichText:()=>S_,RichTextShortcut:()=>Bwe,RichTextToolbarButton:()=>IW,SETTINGS_DEFAULTS:()=>Px,SkipToSelectedBlock:()=>oD,ToolSelector:()=>g1e,Typewriter:()=>l1e,URLInput:()=>Qm,URLInputButton:()=>Gwe,URLPopover:()=>rh,Warning:()=>hp,WritingFlow:()=>RA,__experimentalBlockAlignmentMatrixControl:()=>CQ,__experimentalBlockFullHeightAligmentControl:()=>kQ,__experimentalBlockPatternSetup:()=>qve,__experimentalBlockPatternsList:()=>hu,__experimentalBlockVariationPicker:()=>zve,__experimentalBlockVariationTransforms:()=>ON,__experimentalBorderRadiusControl:()=>VN,__experimentalColorGradientControl:()=>$m,__experimentalColorGradientSettingsDropdown:()=>JN,__experimentalDateFormatPicker:()=>RSe,__experimentalDuotoneControl:()=>jN,__experimentalFontAppearanceControl:()=>UN,__experimentalFontFamilyControl:()=>GN,__experimentalGetBorderClassesAndStyles:()=>nF,__experimentalGetColorClassesAndStyles:()=>iF,__experimentalGetDimensionsClassesAndStyles:()=>rF,__experimentalGetElementClassName:()=>Uet,__experimentalGetGapCSSValue:()=>Ri,__experimentalGetGradientClass:()=>gv,__experimentalGetGradientObjectByGradientValue:()=>pX,__experimentalGetShadowClassesAndStyles:()=>lY,__experimentalGetSpacingClassesAndStyles:()=>dY,__experimentalImageEditor:()=>e_e,__experimentalImageSizeControl:()=>n_e,__experimentalImageURLInputUI:()=>Xwe,__experimentalInspectorPopoverHeader:()=>gV,__experimentalLetterSpacingControl:()=>$N,__experimentalLibrary:()=>r1e,__experimentalLinkControl:()=>RM,__experimentalLinkControlSearchInput:()=>O_e,__experimentalLinkControlSearchItem:()=>v_e,__experimentalLinkControlSearchResults:()=>C_e,__experimentalListView:()=>RN,__experimentalPanelColorGradientSettings:()=>tM,__experimentalPreviewOptions:()=>p0e,__experimentalPublishDateTimePicker:()=>p1e,__experimentalRecursionProvider:()=>c1e,__experimentalResponsiveBlockControl:()=>zwe,__experimentalSpacingSizesControl:()=>E_,__experimentalTextDecorationControl:()=>YN,__experimentalTextTransformControl:()=>ZN,__experimentalUnitControl:()=>Hwe,__experimentalUseBlockOverlayActive:()=>NQ,__experimentalUseBlockPreview:()=>cfe,__experimentalUseBorderProps:()=>aY,__experimentalUseColorProps:()=>uY,__experimentalUseCustomSides:()=>DK,__experimentalUseGradient:()=>uDe,__experimentalUseHasRecursion:()=>u1e,__experimentalUseMultipleOriginColorsAndGradients:()=>Ym,__experimentalUseResizeCanvas:()=>h0e,__experimentalWritingModeControl:()=>QN,__unstableBlockSettingsMenuFirstItem:()=>_L,__unstableBlockToolbarLastItem:()=>bL,__unstableEditorStyles:()=>Ld,__unstableIframe:()=>OS,__unstableInserterMenuExtension:()=>g2,__unstableRichTextInputEvent:()=>Pwe,__unstableUseBlockSelectionClearer:()=>kb,__unstableUseClipboardHandler:()=>e1e,__unstableUseMouseMoveTypingReset:()=>pE,__unstableUseTypewriter:()=>V$,__unstableUseTypingObserver:()=>mE,createCustomColorsHOC:()=>dX,getColorClassName:()=>xa,getColorObjectByAttributeValues:()=>zc,getColorObjectByColorValue:()=>oT,getComputedFluidTypographyValue:()=>gX,getCustomValueFromPreset:()=>WX,getDimensionsClassesAndStyles:()=>rF,getFontSize:()=>bv,getFontSizeClass:()=>gp,getFontSizeObjectByValue:()=>yz,getGradientSlugByValue:()=>mX,getGradientValueBySlug:()=>WB,getPxFromCssUnit:()=>pIe,getSpacingPresetCssVar:()=>zl,getTypographyClassesAndStyles:()=>fY,isValueSpacingPreset:()=>iP,privateApis:()=>_Y,store:()=>C,storeConfig:()=>pv,transformStyles:()=>VS,useBlockBindingsUtils:()=>yd,useBlockCommands:()=>dN,useBlockDisplayInformation:()=>Mo,useBlockEditContext:()=>ht,useBlockEditingMode:()=>Cr,useBlockProps:()=>u0,useCachedTruthy:()=>pY,useHasRecursion:()=>H$,useInnerBlocksProps:()=>Eb,useSetting:()=>aX,useSettings:()=>Le,useStyleOverride:()=>el,withColorContext:()=>FN,withColors:()=>fX,withFontSizes:()=>kX});function TY(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=TY(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function KIe(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=TY(e))&&(r&&(r+=" "),r+=t);return r}var $=KIe;var b1e=c(ce(),1),wl=c(F(),1),yV=c(Q(),1),$$=c(fe(),1),h1=c(bo(),1);var X1=c(F(),1),Nl=Symbol("mayDisplayControls"),Vy=Symbol("mayDisplayParentControls"),$f=Symbol("mayDisplayPatternEditingControls"),Q1=Symbol("blockEditingMode"),Fy=Symbol("blockBindings"),J1=Symbol("isPreviewMode"),Cx=Symbol("isInListViewBlockSupportTree"),bF={name:"",isSelected:!1},yF=(0,X1.createContext)(bF);yF.displayName="BlockEditContext";var{Provider:eT}=yF;function ht(){return(0,X1.useContext)(yF)}var YIe={grad:.9,turn:360,rad:360/(2*Math.PI)},rd=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Sn=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},_a=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},zY=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},AY=function(e){return{r:_a(e.r,0,255),g:_a(e.g,0,255),b:_a(e.b,0,255),a:_a(e.a)}},vF=function(e){return{r:Sn(e.r),g:Sn(e.g),b:Sn(e.b),a:Sn(e.a,3)}},qIe=/^#([0-9a-f]{3,8})$/i,tT=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},jY=function(e){var t=e.r,o=e.g,r=e.b,n=e.a,i=Math.max(t,o,r),s=i-Math.min(t,o,r),a=s?i===t?(o-r)/s:i===o?2+(r-t)/s:4+(t-o)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:n}},HY=function(e){var t=e.h,o=e.s,r=e.v,n=e.a;t=t/360*6,o/=100,r/=100;var i=Math.floor(t),s=r*(1-o),a=r*(1-(t-i)*o),l=r*(1-(1-t+i)*o),u=i%6;return{r:255*[r,a,s,s,l,r][u],g:255*[l,r,r,a,s,s][u],b:255*[s,s,l,r,r,a][u],a:n}},LY=function(e){return{h:zY(e.h),s:_a(e.s,0,100),l:_a(e.l,0,100),a:_a(e.a)}},NY=function(e){return{h:Sn(e.h),s:Sn(e.s),l:Sn(e.l),a:Sn(e.a,3)}},MY=function(e){return HY((o=(t=e).s,{h:t.h,s:(o*=((r=t.l)<50?r:100-r)/100)>0?2*o/(r+o)*100:0,v:r+o,a:t.a}));var t,o,r},Ex=function(e){return{h:(t=jY(e)).h,s:(n=(200-(o=t.s))*(r=t.v)/100)>0&&n<200?o*r/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,o,r,n},ZIe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,XIe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,QIe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,JIe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_F={string:[[function(e){var t=qIe.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?Sn(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?Sn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=QIe.exec(e)||JIe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:AY({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=ZIe.exec(e)||XIe.exec(e);if(!t)return null;var o,r,n=LY({h:(o=t[1],r=t[2],r===void 0&&(r="deg"),Number(o)*(YIe[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return MY(n)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,r=e.b,n=e.a,i=n===void 0?1:n;return rd(t)&&rd(o)&&rd(r)?AY({r:Number(t),g:Number(o),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,o=e.s,r=e.l,n=e.a,i=n===void 0?1:n;if(!rd(t)||!rd(o)||!rd(r))return null;var s=LY({h:Number(t),s:Number(o),l:Number(r),a:Number(i)});return MY(s)},"hsl"],[function(e){var t=e.h,o=e.s,r=e.v,n=e.a,i=n===void 0?1:n;if(!rd(t)||!rd(o)||!rd(r))return null;var s=(function(a){return{h:zY(a.h),s:_a(a.s,0,100),v:_a(a.v,0,100),a:_a(a.a)}})({h:Number(t),s:Number(o),v:Number(r),a:Number(i)});return HY(s)},"hsv"]]},DY=function(e,t){for(var o=0;o<t.length;o++){var r=t[o][0](e);if(r)return[r,t[o][1]]}return[null,void 0]},eOe=function(e){return typeof e=="string"?DY(e.trim(),_F.string):typeof e=="object"&&e!==null?DY(e,_F.object):[null,void 0]};var SF=function(e,t){var o=Ex(e);return{h:o.h,s:_a(o.s+100*t,0,100),l:o.l,a:o.a}},kF=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},VY=function(e,t){var o=Ex(e);return{h:o.h,s:o.s,l:_a(o.l+100*t,0,100),a:o.a}},xF=(function(){function e(t){this.parsed=eOe(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 Sn(kF(this.rgba),2)},e.prototype.isDark=function(){return kF(this.rgba)<.5},e.prototype.isLight=function(){return kF(this.rgba)>=.5},e.prototype.toHex=function(){return t=vF(this.rgba),o=t.r,r=t.g,n=t.b,s=(i=t.a)<1?tT(Sn(255*i)):"","#"+tT(o)+tT(r)+tT(n)+s;var t,o,r,n,i,s},e.prototype.toRgb=function(){return vF(this.rgba)},e.prototype.toRgbString=function(){return t=vF(this.rgba),o=t.r,r=t.g,n=t.b,(i=t.a)<1?"rgba("+o+", "+r+", "+n+", "+i+")":"rgb("+o+", "+r+", "+n+")";var t,o,r,n,i},e.prototype.toHsl=function(){return NY(Ex(this.rgba))},e.prototype.toHslString=function(){return t=NY(Ex(this.rgba)),o=t.h,r=t.s,n=t.l,(i=t.a)<1?"hsla("+o+", "+r+"%, "+n+"%, "+i+")":"hsl("+o+", "+r+"%, "+n+"%)";var t,o,r,n,i},e.prototype.toHsv=function(){return t=jY(this.rgba),{h:Sn(t.h),s:Sn(t.s),v:Sn(t.v),a:Sn(t.a,3)};var t},e.prototype.invert=function(){return Ao({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),Ao(SF(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ao(SF(this.rgba,-t))},e.prototype.grayscale=function(){return Ao(SF(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ao(VY(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ao(VY(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"?Ao({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):Sn(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=Ex(this.rgba);return typeof t=="number"?Ao({h:t,s:o.s,l:o.l,a:o.a}):Sn(o.h)},e.prototype.isEqual=function(t){return this.toHex()===Ao(t).toHex()},e})(),Ao=function(e){return e instanceof xF?e:new xF(e)},FY=[],Kf=function(e){e.forEach(function(t){FY.indexOf(t)<0&&(t(xF,_F),FY.push(t))})};function Yf(e,t){var o={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"},r={};for(var n in o)r[o[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 a,l,u=r[this.toHex()];if(u)return u;if(s?.closest){var d=this.toRgb(),f=1/0,p="black";if(!i.length)for(var h in o)i[h]=new e(o[h]).toRgb();for(var m in o){var g=(a=d,l=i[m],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));g<f&&(f=g,p=m)}return p}},t.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":o[a];return l?new e(l).toRgb():null},"name"])}var wF=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},CF=function(e){return .2126*wF(e.r)+.7152*wF(e.g)+.0722*wF(e.b)};function zy(e){e.prototype.luminance=function(){return t=CF(this.rgba),(o=2)===void 0&&(o=0),r===void 0&&(r=Math.pow(10,o)),Math.round(r*t)/r+0;var t,o,r},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var o,r,n,i,s,a,l,u=t instanceof e?t:new e(t);return i=this.rgba,s=u.toRgb(),a=CF(i),l=CF(s),o=a>l?(a+.05)/(l+.05):(l+.05)/(a+.05),(r=2)===void 0&&(r=0),n===void 0&&(n=Math.pow(10,r)),Math.floor(n*o)/n+0},e.prototype.isReadable=function(t,o){return t===void 0&&(t="#FFF"),o===void 0&&(o={}),this.contrast(t)>=(a=(s=(r=o).size)===void 0?"normal":s,(i=(n=r.level)===void 0?"AA":n)==="AAA"&&a==="normal"?7:i==="AA"&&a==="large"?3:4.5);var r,n,i,s,a}}var KY=c(U(),1);var WY=c(Tx(),1),{lock:$Y,unlock:H}=(0,WY.__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-editor");Kf([Yf,zy]);var{kebabCase:tOe}=H(KY.privateApis),zc=(e,t,o)=>{if(t){let r=e?.find(n=>n.slug===t);if(r)return r}return{color:o}},oT=(e,t)=>e?.find(o=>o.color===t);function xa(e,t){if(!(!e||!t))return`has-${tOe(t)}-${e}`}function YY(e,t){let o=Ao(t),r=({color:i})=>o.contrast(i),n=Math.max(...e.map(r));return e.find(i=>r(i)===n).color}var jB=c(F(),1),bg=c(fe(),1),cX=c(U(),1);var iX=c(Q(),1),sX=c(Bt(),1);var FB=c(F(),1),VB=c(ce(),1);var nd=c(ce(),1),rq=c(U(),1),Bx=c(Q(),1),qh=c(F(),1);var jy=c(F(),1),XY=c(E(),1),rT=(0,jy.createContext)({});rT.displayName="BlockContext";function nT({value:e,children:t}){let o=(0,jy.useContext)(rT),r=(0,jy.useMemo)(()=>({...o,...e}),[o,e]);return(0,XY.jsx)(rT.Provider,{value:r,children:t})}var kn=rT;var Hy=c(Vs(),1);function $h(e){return e?.startsWith("#")&&(0,Hy.isValidFragment)(e)}function Kh(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function Yh(e){if(e.includes(" "))return!1;let o=(0,Hy.getProtocol)(e),r=(0,Hy.isValidProtocol)(o),n=oOe(e),i=e?.startsWith("www.");return r||i||$h(e)||n||Kh(e)}function oOe(e,t=6){let o=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(o)}var rOe="__default",JY="core/pattern-overrides",nOe={};function eq(e,t,o){let r;if(t)for(let[n,i]of Object.entries(e))t.includes(n)&&(r===void 0&&(r={}),r[n]=i);if(o)for(let n of o)n?.usesContext?.forEach(i=>{i in e&&(r===void 0&&(r={}),r[i]=e[i])});return r??nOe}function Rx(e){return e?.[rOe]?.source===JY}function iT(e,t){if(!Rx(e))return e;let o={};for(let r of t){let n=e[r]?e[r]:{source:JY};o[r]=n}return o}var tq=c(F(),1),Dn=(0,tq.createContext)({});Dn.displayName="PrivateBlockContext";var sT=c(E(),1),iOe=e=>{let{name:t}=e,o=(0,nd.getBlockType)(t);if(!o)return null;let r=o.edit||o.save;return(0,sT.jsx)(r,{...e})},oq=(0,rq.withFilters)("editor.BlockEdit")(iOe),sOe=e=>{let{name:t,clientId:o,attributes:r,setAttributes:n}=e,i=(0,Bx.useRegistry)(),s=(0,nd.getBlockType)(t),a=(0,qh.useContext)(kn),l=(0,Bx.useSelect)(v=>H(v(nd.store)).getAllBlockBindingsSources(),[]),{bindableAttributes:u}=(0,qh.useContext)(Dn),{blockBindings:d,context:f,hasPatternOverrides:p}=(0,qh.useMemo)(()=>({blockBindings:iT(r?.metadata?.bindings,u),context:eq(a,s?.usesContext,r?.metadata?.bindings?Object.values(r.metadata.bindings).map(v=>l[v?.source]):void 0),hasPatternOverrides:Rx(r?.metadata?.bindings)}),[s?.usesContext,a,r?.metadata?.bindings,u,l]),h=(0,Bx.useSelect)(v=>{if(!d)return r;let y={},k=new Map;for(let[S,_]of Object.entries(d)){let{source:x,args:w}=_,T=l[x];!T||!u?.includes(S)||k.set(T,{...k.get(T),[S]:{args:w}})}if(k.size)for(let[S,_]of k){let x={};S.getValues?x=S.getValues({select:v,context:f,clientId:o,bindings:_}):Object.keys(_).forEach(w=>{x[w]=S.label});for(let[w,T]of Object.entries(x))w==="url"&&(!T||!Yh(T))?y[w]=null:y[w]=T}return{...r,...y}},[r,u,d,o,f,l]),m=(0,qh.useCallback)(v=>{if(!d){n(v);return}i.batch(()=>{let y={...v},k=new Map;for(let[_,x]of Object.entries(y)){if(!d[_]||!u?.includes(_))continue;let w=d[_],T=l[w?.source];T?.setValues&&(k.set(T,{...k.get(T),[_]:{args:w.args,newValue:x}}),delete y[_])}if(k.size)for(let[_,x]of k)_.setValues({select:i.select,dispatch:i.dispatch,context:f,clientId:o,bindings:x});let S=!!f["pattern/overrides"];!(p&&S)&&Object.keys(y).length&&(p&&delete y.href,n(y))})},[u,d,o,f,p,n,l,i]);if(!s)return null;if(s.apiVersion>1)return(0,sT.jsx)(oq,{...e,attributes:h,context:f,setAttributes:m});let g=(0,nd.hasBlockSupport)(s,"className",!0)?(0,nd.getBlockDefaultClassName)(t):null,b=$(g,r?.className,e.className);return(0,sT.jsx)(oq,{...e,attributes:h,className:b,context:f,setAttributes:m})},nq=sOe;var oX=c(ce(),1),bz=c(U(),1),rX=c(Q(),1),DB=c(G(),1);var MB=c(Q(),1);var Gy=c(Zh(),1),RF=c(fe(),1),Ax=c(Q(),1),hq=c(Bt(),1),mT=c(ce(),1);var Pt=c(G(),1),aq={insertUsage:{}},Px={alignWide:!1,supportsLayout:!0,colors:[{name:(0,Pt.__)("Black"),slug:"black",color:"#000000"},{name:(0,Pt.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,Pt.__)("White"),slug:"white",color:"#ffffff"},{name:(0,Pt.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,Pt.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,Pt.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,Pt.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,Pt.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,Pt.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,Pt.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,Pt.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,Pt.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,Pt._x)("Small","font size name"),size:13,slug:"small"},{name:(0,Pt._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,Pt._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,Pt._x)("Large","font size name"),size:36,slug:"large"},{name:(0,Pt._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,Pt.__)("Thumbnail")},{slug:"medium",name:(0,Pt.__)("Medium")},{slug:"large",name:(0,Pt.__)("Large")},{slug:"full",name:(0,Pt.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,canEditCSS:!1,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],isPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,Pt.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,Pt.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,Pt.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,Pt.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,Pt.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,Pt.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,Pt.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,Pt.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,Pt.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,Pt.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,Pt.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,Pt.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function aT(e,t,o){return[...e.slice(0,o),...Array.isArray(t)?t:[t],...e.slice(o)]}function lT(e,t,o,r=1){let n=[...e];return n.splice(t,r),aT(n,e.slice(t,t+r),o)}var os=Symbol("globalStylesDataKey"),Uy=Symbol("globalStylesLinks"),qf=Symbol("selectBlockPatternsKey"),cT=Symbol("reusableBlocksSelect"),id=Symbol("userPatternCategoriesSelect"),Zf=Symbol("sectionRootClientIdKey"),uT=Symbol("mediaEditKey"),dT=Symbol("getMediaSelect"),Xf=Symbol("isIsolatedEditor"),wa=Symbol("deviceTypeKey"),fT=Symbol("isNavigationOverlayContext"),lq=Symbol("isNavigationPostEditor"),Ix=Symbol("mediaUploadOnSuccess"),cq=Symbol("mediaSideloadFromUrl"),uq=Symbol("openMediaEditorModal");var{isContentBlock:aOe}=H(mT.privateApis),lOe=e=>e;function pT(e,t=""){let o=new Map,r=[];return o.set(t,r),e.forEach(n=>{let{clientId:i,innerBlocks:s}=n;r.push(i),pT(s,i).forEach((a,l)=>{o.set(l,a)})}),o}function EF(e,t=""){let o=[],r=[[t,e]];for(;r.length;){let[n,i]=r.shift();i.forEach(({innerBlocks:s,...a})=>{o.push([a.clientId,n]),s?.length&&r.push([a.clientId,s])})}return o}function gq(e,t=lOe){let o=[],r=[...e];for(;r.length;){let{innerBlocks:n,...i}=r.shift();r.push(...n),o.push([i.clientId,t(i)])}return o}function BF(e){let t={},o=[...e];for(;o.length;){let{innerBlocks:r,...n}=o.shift();o.push(...r),t[n.clientId]=!0}return t}function dq(e){return gq(e,t=>{let{attributes:o,...r}=t;return r})}function fq(e){return gq(e,t=>t.attributes)}function cOe(e,t){return(0,Gy.default)(Object.keys(e),Object.keys(t))}function uOe(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&(0,Gy.default)(e.clientIds,t.clientIds)&&cOe(e.attributes,t.attributes)}function pq(e,t){let o=e.tree,r=[...t],n=[...t];for(;r.length;){let i=r.shift();r.push(...i.innerBlocks),n.push(...i.innerBlocks)}for(let i of n)o.set(i.clientId,{});for(let i of n)o.set(i.clientId,Object.assign(o.get(i.clientId),{...e.byClientId.get(i.clientId),attributes:e.attributes.get(i.clientId),innerBlocks:i.innerBlocks.map(s=>o.get(s.clientId))}))}function Qf(e,t,o=!1){let r=e.tree,n=new Set([]),i=new Set;for(let s of t){let a=o?s:e.parents.get(s);do if(e.controlledInnerBlocks.has(a)){i.add(a);break}else n.add(a),a=e.parents.get(a);while(a!==void 0)}for(let s of n)r.set(s,{...r.get(s)});for(let s of n)r.get(s).innerBlocks=(e.order.get(s)||[]).map(a=>r.get(a));for(let s of i)r.set("controlled||"+s,{innerBlocks:(e.order.get(s)||[]).map(a=>r.get(a))})}var dOe=e=>(t={},o)=>{let r=e(t,o);if(r===t)return t;switch(r.tree=t.tree?t.tree:new Map,o.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{r.tree=new Map(r.tree),pq(r,o.blocks),Qf(r,o.rootClientId?[o.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":r.tree=new Map(r.tree),r.tree.set(o.clientId,{...r.tree.get(o.clientId),...r.byClientId.get(o.clientId),attributes:r.attributes.get(o.clientId)}),Qf(r,[o.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{r.tree=new Map(r.tree),o.clientIds.forEach(i=>{r.tree.set(i,{...r.tree.get(i),attributes:r.attributes.get(i)})}),Qf(r,o.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let i=BF(o.blocks);r.tree=new Map(r.tree),o.replacedClientIds.forEach(a=>{r.tree.delete(a),i[a]||r.tree.delete("controlled||"+a)}),pq(r,o.blocks),Qf(r,o.blocks.map(a=>a.clientId),!1);let s=[];for(let a of o.clientIds){let l=t.parents.get(a);l!==void 0&&(l===""||r.byClientId.get(l))&&s.push(l)}Qf(r,s,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":let n=[];for(let i of o.clientIds){let s=t.parents.get(i);s!==void 0&&(s===""||r.byClientId.get(s))&&n.push(s)}r.tree=new Map(r.tree),o.removedClientIds.forEach(i=>{r.tree.delete(i),r.tree.delete("controlled||"+i)}),Qf(r,n,!0);break;case"MOVE_BLOCKS_TO_POSITION":{let i=[];o.fromRootClientId?i.push(o.fromRootClientId):i.push(""),o.toRootClientId&&i.push(o.toRootClientId),r.tree=new Map(r.tree),Qf(r,i,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{let i=[o.rootClientId?o.rootClientId:""];r.tree=new Map(r.tree),Qf(r,i,!0);break}}return r};function fOe(e){let t,o;return(r,n)=>{let i=e(r,n),s=o;o=n.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"?n.history??"merge":void 0;let a=n.type==="MARK_LAST_CHANGE_AS_PERSISTENT"||s;if(r===i&&!a)return r.isPersistentChange!==void 0?r:{...i,isPersistentChange:!0};let l=a?!s:!uOe(n,t);if(t=n,s==="ignore")return{...i,isPersistentChange:l,lastBlockChangeHistoryMode:"ignore"};let{lastBlockChangeHistoryMode:u,...d}=i;return{...d,isPersistentChange:l}}}function pOe(e){let t=new Set(["RECEIVE_BLOCKS"]);return(o,r)=>{let n=e(o,r);return n!==o&&(n.isIgnoredChange=t.has(r.type)),n}}var mOe=e=>(t,o)=>{let r=n=>{let i=n;for(let s=0;s<i.length;s++)!t.order.get(i[s])||o.keepControlledInnerBlocks&&o.keepControlledInnerBlocks[i[s]]||(i===n&&(i=[...i]),i.push(...t.order.get(i[s])));return i};if(t)switch(o.type){case"REMOVE_BLOCKS":o={...o,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(o.clientIds)};break;case"REPLACE_BLOCKS":o={...o,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(o.clientIds)};break}return e(t,o)},hOe=e=>(t,o)=>{if(o.type==="RESET_BLOCKS"){let r=e(void 0,{type:"INSERT_BLOCKS",rootClientId:"",blocks:o.blocks}),n=t?.controlledInnerBlocks??new Set;if(t?.order)for(let s of n){if(!r.byClientId.has(s))continue;r.controlledInnerBlocks.add(s);let a=t.order.get(s);if(!a?.length)continue;r.order.set(s,a);let l=(u,d)=>{let f=t.byClientId.get(u);if(!f)return;r.byClientId.set(u,f),r.attributes.set(u,t.attributes.get(u)),r.parents.set(u,d);let p=t.order.get(u)||[];r.order.set(u,p),p.forEach(h=>l(h,u))};a.forEach(u=>l(u,s))}for(let s of r.controlledInnerBlocks){let a=r.order.get(s);if(!a?.length)continue;let l=a.map(f=>t.tree.get(f)),u=r.tree.get(s);u&&(u.innerBlocks=l),r.tree.set("controlled||"+s,{innerBlocks:l});let d=f=>{let p=t.tree.get(f);if(!p)return;r.tree.set(f,p),(r.order.get(f)||[]).forEach(d)};a.forEach(d)}let i=t?.blockEditingModes??new Map;for(let[s,a]of i)r.tree.has(s)&&r.blockEditingModes.set(s,a);return r}return e(t,o)},gOe=e=>(t,o)=>{if(o.type!=="REPLACE_INNER_BLOCKS")return e(t,o);let r={};if(t.controlledInnerBlocks.size){let s=[...o.blocks];for(;s.length;){let{innerBlocks:a,...l}=s.shift();s.push(...a),t.controlledInnerBlocks.has(l.clientId)&&(r[l.clientId]=!0)}}let n=t;t.order.get(o.rootClientId)&&(n=e(n,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order.get(o.rootClientId)}));let i=n;if(o.blocks.length){i=e(i,{...o,type:"INSERT_BLOCKS",index:0});let s=new Map(i.order);Object.keys(r).forEach(a=>{t.order.get(a)&&s.set(a,t.order.get(a))}),i.order=s,i.tree=new Map(i.tree),Object.keys(r).forEach(a=>{let l=`controlled||${a}`;t.tree.has(l)&&i.tree.set(l,t.tree.get(l))})}return i},bOe=e=>(t,o)=>{if(o.type==="SET_HAS_CONTROLLED_INNER_BLOCKS"){if(t.order.get(o.clientId)?.length){let n=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:o.clientId,blocks:[]});return e(n,o)}return e(t,o)}return e(t,o)},yOe=(0,RF.pipe)(Ax.combineReducers,dOe,mOe,gOe,hOe,fOe,pOe,bOe)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return dq(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;let{attributes:o,...r}=t.updates;if(Object.values(r).length===0)return e;let n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...r}),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),dq(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return fq(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;let o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),o}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(n=>!e.get(n)))return e;let o=!1,r=new Map(e);for(let n of t.clientIds){let i=Object.entries(t.options?.uniqueByBlock?t.attributes[n]:t.attributes??{});if(i.length===0)continue;let s=!1,a=e.get(n),l={};i.forEach(([u,d])=>{a[u]!==d&&(s=!0,l[u]=d)}),o=o||s,s&&r.set(n,{...a,...l})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),fq(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{let o=pT(t.blocks),r=new Map(e);return o.forEach((n,i)=>{i!==""&&r.set(i,n)}),r.set("",(e.get("")??[]).concat(o[""])),r}case"INSERT_BLOCKS":{let{rootClientId:o=""}=t,r=e.get(o)||[],n=pT(t.blocks,o),{index:i=r.length}=t,s=new Map(e);return n.forEach((a,l)=>{s.set(l,a)}),s.set(o,aT(r,n.get(o),i)),s}case"MOVE_BLOCKS_TO_POSITION":{let{fromRootClientId:o="",toRootClientId:r="",clientIds:n}=t,{index:i=e.get(r).length}=t;if(o===r){let l=e.get(r).indexOf(n[0]);if(l===-1)return e;let u=new Map(e);return u.set(r,lT(e.get(r),l,i,n.length)),u}let s=new Map(e);return s.set(o,e.get(o)?.filter(a=>!n.includes(a))??[]),s.set(r,aT(e.get(r),n,i)),s}case"MOVE_BLOCKS_UP":{let{clientIds:o,rootClientId:r=""}=t,n=o[0],i=e.get(r);if(!i.length||n===i[0])return e;let s=i.indexOf(n),a=new Map(e);return a.set(r,lT(i,s,s-1,o.length)),a}case"MOVE_BLOCKS_DOWN":{let{clientIds:o,rootClientId:r=""}=t,n=o[0],i=o[o.length-1],s=e.get(r);if(!s.length||i===s[s.length-1])return e;let a=s.indexOf(n),l=new Map(e);return l.set(r,lT(s,a,a+1,o.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let{clientIds:o}=t;if(!t.blocks)return e;let r=pT(t.blocks),n=new Map(e);return t.replacedClientIds.forEach(i=>{n.delete(i)}),r.forEach((i,s)=>{s!==""&&n.set(s,i)}),n.forEach((i,s)=>{let a=Object.values(i).reduce((l,u)=>u===o[0]?[...l,...r.get("")]:(o.indexOf(u)===-1&&l.push(u),l),[]);n.set(s,a)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o.forEach((r,n)=>{let i=r?.filter(s=>!t.removedClientIds.includes(s))??[];i.length!==r.length&&o.set(n,i)}),o}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{let o=new Map(e);return EF(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"INSERT_BLOCKS":{let o=new Map(e);return EF(t.blocks,t.rootClientId||"").forEach(([r,n])=>{o.set(r,n)}),o}case"MOVE_BLOCKS_TO_POSITION":{let o=new Map(e);return t.clientIds.forEach(r=>{o.set(r,t.toRootClientId||"")}),o}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),EF(t.blocks,e.get(t.clientIds[0])).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},controlledInnerBlocks(e=new Set,{type:t,clientId:o,hasControlledInnerBlocks:r}){if(t==="SET_HAS_CONTROLLED_INNER_BLOCKS"){if(r)return e.has(o)?e:new Set(e).add(o);if(!e.has(o))return e;let n=new Set(e);return n.delete(o),n}return e},blockEditingModes(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return e.get(t.clientId)===t.mode?e:new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{if(!e.has(t.clientId))return e;let o=new Map(e);return o.delete(t.clientId),o}}return e}});function vOe(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function SOe(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function kOe(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function _Oe(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function xOe(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function mq(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return!t.updateSelection||!t.blocks.length?e:{clientId:t.blocks[0].clientId};case"REMOVE_BLOCKS":return!t.clientIds||!t.clientIds.length||t.clientIds.indexOf(e.clientId)===-1?e:{};case"REPLACE_BLOCKS":{if(t.clientIds.indexOf(e.clientId)===-1)return e;let o=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}function wOe(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":let{selectionStart:n,selectionEnd:i}=t;return{selectionStart:n,selectionEnd:i};case"MULTI_SELECT":let s={selectionStart:{clientId:t.start},selectionEnd:{clientId:t.end}};return(0,Gy.default)(e,s)?e:s;case"RESET_BLOCKS":let a=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!a&&!l)return e;if(!t.blocks.some(u=>u.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(u=>u.clientId===l))return{...e,selectionEnd:e.selectionStart}}let o=mq(e.selectionStart,t),r=mq(e.selectionEnd,t);return o===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:o,selectionEnd:r}}function COe(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function EOe(e=!0,t){return t.type==="TOGGLE_SELECTION"?t.isSelectionEnabled:e}function TOe(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e}function ROe(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":let{clientIds:o,selectPrevious:r,message:n}=t;return{clientIds:o,selectPrevious:r,message:n};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e}function BOe(e=!1,t){return t.type==="SET_BLOCK_REMOVAL_RULES"?t.rules:e}function POe(e=null,t){return t.type==="REPLACE_BLOCKS"&&t.initialPosition!==void 0||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e}function IOe(e={},t){if(t.type==="TOGGLE_BLOCK_MODE"){let{clientId:o}=t;return{...e,[o]:e[o]&&e[o]==="html"?"visual":"html"}}return e}function OOe(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{let{rootClientId:o,index:r,__unstableWithInserter:n,operation:i,nearestSide:s}=t,a={rootClientId:o,index:r,__unstableWithInserter:n,operation:i,nearestSide:s};return(0,Gy.default)(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e}function AOe(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function LOe(e=Px,t){if(t.type==="UPDATE_SETTINGS"){let o=t.reset?{...Px,...t.settings}:{...e,...t.settings};return Object.defineProperty(o,"__unstableIsPreviewMode",{get(){return(0,hq.default)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),o}return e}function NOe(e=aq,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{let o=t.blocks.reduce((r,n)=>{let{attributes:i,name:s}=n,a=s,l=(0,Ax.select)(mT.store).getActiveBlockVariation(s,i);return l?.name&&(a+="/"+l.name),s==="core/block"&&(a+="/"+i.ref),{...r,[a]:{time:t.time,count:r[a]?r[a].count+1:1}}},e.insertUsage);return{...e,insertUsage:o}}}return e}var MOe=(e=new Map,t)=>{switch(t.type){case"REPLACE_BLOCKS":{let o=new Set,r=[...t.blocks];for(;r.length;){let i=r.shift();o.add(i.clientId),r.push(...i.innerBlocks)}let n=new Map(e);for(let i of t.clientIds)o.has(i)||n.delete(i);return n}case"REMOVE_BLOCKS":{let o=new Map(e);for(let r of t.clientIds)o.delete(r);return o}case"UPDATE_BLOCK_LIST_SETTINGS":{let r=(typeof t.clientId=="string"?[[t.clientId,t.settings]]:Object.entries(t.clientId)).filter(([i,s])=>s?!(0,Gy.default)(e.get(i),s):e.has(i));if(!r.length)return e;let n=new Map(e);for(let[i,s]of r)s?n.set(i,s):n.delete(i);return n}}return e};function DOe(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((o,r)=>({...o,[r]:t.options?.uniqueByBlock?t.attributes[r]:t.attributes}),{})}return e}function VOe(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":let{clientId:o,isHighlighted:r}=t;return r?o:e===o?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function FOe(e,t){switch(t.type){case"TOGGLE_BLOCK_SPOTLIGHT":let{clientId:o,hasBlockSpotlight:r}=t;return r?o:e===o?null:e;case"SELECT_BLOCK":return t.clientId!==e?null:e;case"SELECTION_CHANGE":return t.start?.clientId!==e||t.end?.clientId!==e?null:e;case"CLEAR_SELECTED_BLOCK":return null}return e}function zOe(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function jOe(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;let o=t.blocks.map(n=>n.clientId),r=t.meta?.source;return{clientIds:o,source:r};case"RESET_BLOCKS":return{}}return e}function HOe(e,t){if(t.type==="EDIT_CONTENT_ONLY_SECTION")return t.clientId;if(!e)return e;switch(t.type){case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":if(t.clientIds.includes(e))return;break;case"RESET_BLOCKS":if(!BF(t.blocks)[e])return;break}return e}function UOe(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{let o=new Map(e);return o.delete(t.id),o}}return e}function GOe(e=[],t){return t.type==="REGISTER_INSERTER_MEDIA_CATEGORY"?[...e,t.category]:e}function WOe(e=!1,t){return t.type==="LAST_FOCUS"?t.lastFocus:e}function $Oe(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e}function KOe(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e}function YOe(e={allOpen:!1,panels:{}},t){switch(t.type){case"SET_OPEN_LIST_VIEW_PANEL":return{allOpen:!1,panels:t.clientId?{[t.clientId]:!0}:{}};case"SET_ALL_LIST_VIEW_PANELS_OPEN":return{allOpen:!0,panels:{}};case"TOGGLE_LIST_VIEW_PANEL":return{allOpen:!1,panels:{...e.panels,[t.clientId]:t.isOpen}};case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":{if(!t.clientIds||t.clientIds.length===0)return e;let o={...e.panels},r=!1;return t.clientIds.forEach(n=>{n in o&&(delete o[n],r=!0)}),r?{...e,panels:o}:e}}return e}function qOe(e=0,t){return t.type==="INCREMENT_LIST_VIEW_EXPAND_REVISION"?e+1:e}function ZOe(e=!1,t){switch(t.type){case"OPEN_LIST_VIEW_CONTENT_PANEL":return!0;case"CLOSE_LIST_VIEW_CONTENT_PANEL":return!1;case"CLEAR_SELECTED_BLOCK":return!1}return e}function XOe(e=null,t){switch(t.type){case"REQUEST_INSPECTOR_TAB":return{tabName:t.tabName,options:t.options};case"CLEAR_REQUESTED_INSPECTOR_TAB":return null}return e}function QOe(e=void 0,t){switch(t.type){case"SET_SELECTED_BLOCK_STYLE_STATE":{if(!t.clientId||!t.value)return;let o=e?.clientId===t.clientId?e.showStateOnCanvas??!0:!0,r=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:o,value:{pseudo:"default",...r,...t.value}}}case"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW":{if(!t.clientId||typeof t.value!="boolean")return e;let o=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:t.value,value:{pseudo:"default",...o}}}case"SELECT_BLOCK":case"SELECTION_CHANGE":{if(e?.clientId&&e.clientId!==t.clientId)return;break}case"RESET_SELECTION":{if(e?.clientId&&e.clientId!==t.selectionStart?.clientId)return;break}case"CLEAR_SELECTED_BLOCK":case"MULTI_SELECT":return;case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":{if(e?.clientId&&t.clientIds?.includes(e.clientId))return;break}case"RESET_BLOCKS":{if(e?.clientId&&!BF(t.blocks)[e.clientId])return;break}}return e}function JOe(e="default",t){return t.type==="SET_STYLE_STATE_VIEWPORT"?t.viewport??"default":e}function eAe(e=!1,t){return t.type==="SET_RESPONSIVE_EDITING"?t.enabled:e}var tAe=(0,Ax.combineReducers)({blocks:yOe,isDragging:kOe,isTyping:SOe,isBlockInterfaceHidden:vOe,draggedBlocks:_Oe,selection:wOe,isMultiSelecting:COe,isSelectionEnabled:EOe,initialPosition:POe,blocksMode:IOe,blockListSettings:MOe,insertionPoint:KOe,insertionCue:OOe,template:AOe,settings:LOe,preferences:NOe,lastBlockAttributesChange:DOe,lastFocus:WOe,expandedBlock:zOe,highlightedBlock:VOe,lastBlockInserted:jOe,editedContentOnlySection:HOe,blockVisibility:xOe,viewportModalClientIds:TOe,styleOverrides:UOe,removalPromptData:ROe,blockRemovalRules:BOe,registeredInserterMediaCategories:GOe,zoomLevel:$Oe,hasBlockSpotlight:FOe,openedListViewPanels:YOe,listViewExpandRevision:qOe,listViewContentPanelOpen:ZOe,requestedInspectorTab:XOe,selectedBlockStyleState:QOe,styleStateViewport:JOe,isResponsiveEditing:eAe});function bq(e,t){if(t===""){let n=e.blocks.tree.get(t);return n?{clientId:"",...n}:void 0}if(!e.blocks.controlledInnerBlocks.has(t))return e.blocks.tree.get(t);let o=e.blocks.tree.get(`controlled||${t}`);return{...e.blocks.tree.get(t),innerBlocks:o?.innerBlocks}}function PF(e,t,o){let r=bq(e,t);if(r&&(o(r),!!r?.innerBlocks?.length))for(let n of r?.innerBlocks)PF(e,n.clientId,o)}function Ox(e,t,o){if(!o.length)return;let r=e.blocks.parents.get(t);for(;r!==void 0;){if(o.includes(r))return r;r=e.blocks.parents.get(r)}}function oAe(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}function TF(e,t=""){let o=e?.zoomLevel<100||e?.zoomLevel==="auto-scaled",r=new Map,n=e.settings?.[Zf],i=e.blocks.order.get(n),s=Array.from(e.blocks.blockEditingModes).some(([,g])=>g==="disabled"),a=[],l=[];e.blocks.controlledInnerBlocks.forEach(g=>{let b=e.blocks.byClientId?.get(g);b?.name==="core/template-part"&&a.push(g),b?.name==="core/block"&&l.push(g)});let u=Array.from(e.blockListSettings).flatMap(([g,b])=>b?.templateLock==="contentOnly"?[g]:[]),d=e.settings?.[Xf],f=e.settings?.disableContentOnlyForUnsyncedPatterns,p=d||f?[]:Array.from(e.blocks.attributes.keys()).filter(g=>e.blocks.attributes.get(g)?.metadata?.patternName),h=e.settings?.disableContentOnlyForTemplateParts,m=[...u,...p,...d||h?[]:a];return PF(e,t,g=>{let{clientId:b,name:v}=g,y=!!e.editedContentOnlySection,k=!1;if(y&&(k=b===e.editedContentOnlySection||!!Ox(e,b,[e.editedContentOnlySection]),!k)){r.set(b,"disabled");return}if(!e.blocks.blockEditingModes.has(b)){if(s){let S,_=e.blocks.parents.get(b);for(;_!==void 0&&(e.blocks.blockEditingModes.has(_)&&(S=e.blocks.blockEditingModes.get(_)),!S);)_=e.blocks.parents.get(_);if(S==="disabled"){r.set(b,"disabled");return}}if(o){if(b===n){r.set(b,"contentOnly");return}if(!i?.length){r.set(b,"disabled");return}if(i.includes(b)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}if(l.length){if(l.includes(b)){if(Ox(e,b,l)){r.set(b,"disabled");return}return}let S=Ox(e,b,l);if(S){if(Ox(e,S,l)){r.set(b,"disabled");return}if(oAe(g)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}}if(y&&k){r.set(b,"default");return}m.length&&Ox(e,b,m)&&(aOe(v)?r.set(b,"contentOnly"):r.set(b,"disabled"))}}),r}function Jf({prevState:e,nextState:t,addedBlocks:o,removedClientIds:r}){let n=e.derivedBlockEditingModes,i;return r?.forEach(s=>{PF(e,s,a=>{n.has(a.clientId)&&(i||(i=new Map(n)),i.delete(a.clientId))})}),o?.forEach(s=>{let a=TF(t,s.clientId);a.size&&(i?i=new Map([...i?.size?i:[],...a]):i=new Map([...n?.size?n:[],...a]))}),i}function rAe(e){return(t,o)=>{let r=e(t,o);if(o.type!=="SET_EDITOR_MODE"&&r===t)return t;switch(o.type){case"REMOVE_BLOCKS":{let n=Jf({prevState:t,nextState:r,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let n=Jf({prevState:t,nextState:r,addedBlocks:o.blocks});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_ATTRIBUTES":{if(r.settings?.disableContentOnlyForUnsyncedPatterns)break;let i=[],s=[];for(let l of o?.clientIds){let u=o.options?.uniqueByBlock?o.attributes[l]:o.attributes;if(!u)break;u.metadata?.patternName&&!t.blocks.attributes.get(l)?.metadata?.patternName?i.push(r.blocks.tree.get(l)):u.metadata&&!u.metadata?.patternName&&t.blocks.attributes.get(l)?.metadata?.patternName&&s.push(l)}if(!i?.length&&!s?.length)break;let a=Jf({prevState:t,nextState:r,addedBlocks:i,removedClientIds:s});if(a)return{...r,derivedBlockEditingModes:a??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_LIST_SETTINGS":{let n=[],i=[],s=typeof o.clientId=="string"?{[o.clientId]:o.settings}:o.clientId;for(let l in s){let u=t.blockListSettings.get(l)?.templateLock!=="contentOnly"&&r.blockListSettings.get(l)?.templateLock==="contentOnly",d=t.blockListSettings.get(l)?.templateLock==="contentOnly"&&r.blockListSettings.get(l)?.templateLock!=="contentOnly";u?n.push(r.blocks.tree.get(l)):d&&i.push(l)}if(!n.length&&!i.length)break;let a=Jf({prevState:t,nextState:r,addedBlocks:n,removedClientIds:i});if(a)return{...r,derivedBlockEditingModes:a??t.derivedBlockEditingModes};break}case"SET_BLOCK_EDITING_MODE":case"UNSET_BLOCK_EDITING_MODE":case"SET_HAS_CONTROLLED_INNER_BLOCKS":{let n=bq(r,o.clientId);if(!n)break;let i=Jf({prevState:t,nextState:r,removedClientIds:[o.clientId],addedBlocks:[n]});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{let n=Jf({prevState:t,nextState:r,addedBlocks:o.blocks,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"REPLACE_INNER_BLOCKS":{let n=t.blocks.order.get(o.rootClientId),i=Jf({prevState:t,nextState:r,addedBlocks:o.blocks,removedClientIds:n});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"MOVE_BLOCKS_TO_POSITION":{let n=o.clientIds.map(s=>r.blocks.byClientId.get(s)),i=Jf({prevState:t,nextState:r,addedBlocks:n,removedClientIds:o.clientIds});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":{if(t?.settings?.[Zf]!==r?.settings?.[Zf]||!!t?.settings?.disableContentOnlyForUnsyncedPatterns!=!!r?.settings?.disableContentOnlyForUnsyncedPatterns||!!t?.settings?.[Xf]!=!!r?.settings?.[Xf]||!!t?.settings?.disableContentOnlyForTemplateParts!=!!r?.settings?.disableContentOnlyForTemplateParts)return{...r,derivedBlockEditingModes:TF(r)};break}case"RESET_BLOCKS":case"EDIT_CONTENT_ONLY_SECTION":case"SET_EDITOR_MODE":case"RESET_ZOOM_LEVEL":case"SET_ZOOM_LEVEL":return{...r,derivedBlockEditingModes:TF(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}}function nAe(e){return(t,o)=>{let r=e(t,o);return t?(r.automaticChangeStatus=t.automaticChangeStatus,o.type==="MARK_AUTOMATIC_CHANGE"?{...r,automaticChangeStatus:"pending"}:o.type==="MARK_AUTOMATIC_CHANGE_FINAL"&&t.automaticChangeStatus==="pending"?{...r,automaticChangeStatus:"final"}:r.blocks===t.blocks&&r.selection===t.selection||r.automaticChangeStatus!=="final"&&r.selection!==t.selection?r:{...r,automaticChangeStatus:void 0}):r}}var yq=(0,RF.pipe)(rAe,nAe)(tAe);var uz={};Ir(uz,{__experimentalGetActiveBlockIdByBlockNames:()=>gNe,__experimentalGetAllowedBlocks:()=>JLe,__experimentalGetAllowedPatterns:()=>rNe,__experimentalGetBlockListSettingsForBlocks:()=>cNe,__experimentalGetDirectInsertBlock:()=>eNe,__experimentalGetGlobalBlocksByName:()=>cLe,__experimentalGetLastBlockAttributeChanges:()=>fNe,__experimentalGetParsedPattern:()=>tNe,__experimentalGetPatternTransformItems:()=>sNe,__experimentalGetPatternsByBlockTypes:()=>iNe,__experimentalGetReusableBlockTitle:()=>uNe,__unstableGetBlockWithoutInnerBlocks:()=>nLe,__unstableGetClientIdWithClientIdsTree:()=>sLe,__unstableGetClientIdsTree:()=>aLe,__unstableGetContentLockingParent:()=>wNe,__unstableGetLastBlockChangeHistoryMode:()=>lNe,__unstableGetSelectedBlocksWithPartialSelection:()=>ILe,__unstableGetTemporarilyEditingAsBlocks:()=>CNe,__unstableGetVisibleBlocks:()=>SNe,__unstableHasActiveBlockOverlayActive:()=>DZ,__unstableIsFullySelected:()=>TLe,__unstableIsLastBlockChangeIgnored:()=>dNe,__unstableIsSelectionCollapsed:()=>RLe,__unstableIsSelectionMergeable:()=>PLe,__unstableIsWithinBlockOverlay:()=>kNe,__unstableSelectionHasUnmergeableBlock:()=>BLe,areInnerBlocksControlled:()=>AB,canEditBlock:()=>LZ,canInsertBlockType:()=>mg,canInsertBlocks:()=>WLe,canLockBlockType:()=>KLe,canMoveBlock:()=>AZ,canMoveBlocks:()=>$Le,canRemoveBlock:()=>lz,canRemoveBlocks:()=>OZ,didAutomaticChange:()=>mNe,getAdjacentBlockClientId:()=>rz,getAllowedBlocks:()=>ez,getBlock:()=>md,getBlockAttributes:()=>Ta,getBlockCount:()=>dLe,getBlockEditingMode:()=>Hs,getBlockHierarchyRootClientId:()=>bLe,getBlockIndex:()=>TZ,getBlockInsertionPoint:()=>jLe,getBlockListSettings:()=>av,getBlockMode:()=>MLe,getBlockName:()=>Xt,getBlockNamesByClientId:()=>uLe,getBlockOrder:()=>Vn,getBlockParents:()=>js,getBlockParentsByBlockName:()=>oz,getBlockRootClientId:()=>yr,getBlockSelectionEnd:()=>pLe,getBlockSelectionStart:()=>fLe,getBlockTransformItems:()=>XLe,getBlocks:()=>iLe,getBlocksByClientId:()=>PB,getBlocksByName:()=>xZ,getClientIdsOfDescendants:()=>_Z,getClientIdsWithDescendants:()=>sv,getDirectInsertBlock:()=>MZ,getDraggedBlockClientIds:()=>VLe,getFirstMultiSelectedBlockClientId:()=>nz,getGlobalBlockCount:()=>lLe,getHoveredBlockClientId:()=>vNe,getInserterItems:()=>ZLe,getLastMultiSelectedBlockClientId:()=>CZ,getLowestCommonAncestorWithSelectedBlock:()=>yLe,getMultiSelectedBlockClientIds:()=>pp,getMultiSelectedBlocks:()=>_Le,getMultiSelectedBlocksEndClientId:()=>ELe,getMultiSelectedBlocksStartClientId:()=>CLe,getNextBlockClientId:()=>SLe,getPatternsByBlockTypes:()=>nNe,getPreviousBlockClientId:()=>vLe,getSelectedBlock:()=>gLe,getSelectedBlockClientId:()=>cv,getSelectedBlockClientIds:()=>uv,getSelectedBlockCount:()=>mLe,getSelectedBlocksInitialCaretPosition:()=>kLe,getSelectionEnd:()=>Cw,getSelectionStart:()=>ww,getSettings:()=>ud,getTemplate:()=>GLe,getTemplateLock:()=>Wc,hasBlockMovingClientId:()=>pNe,hasDraggedInnerBlock:()=>PZ,hasInserterItems:()=>QLe,hasMultiSelection:()=>ALe,hasSelectedBlock:()=>hLe,hasSelectedInnerBlock:()=>BZ,isAncestorBeingDragged:()=>FLe,isAncestorMultiSelected:()=>wLe,isBlockBeingDragged:()=>iz,isBlockHighlighted:()=>hNe,isBlockInsertionPointVisible:()=>HLe,isBlockMultiSelected:()=>EZ,isBlockSelected:()=>RZ,isBlockValid:()=>rLe,isBlockVisible:()=>yNe,isBlockWithinSelection:()=>OLe,isCaretWithinFormattedText:()=>zLe,isDraggingBlocks:()=>IZ,isFirstMultiSelectedBlock:()=>xLe,isGroupable:()=>xNe,isLastBlockChangePersistent:()=>aNe,isMultiSelecting:()=>LLe,isSelectionEnabled:()=>NLe,isTyping:()=>DLe,isUngroupable:()=>_Ne,isValidTemplate:()=>ULe,wasBlockJustInserted:()=>bNe});var kt=c(ce(),1),SZ=c(bo(),1);var hT=c(F(),1),gt=(0,hT.forwardRef)(({icon:e,size:t=24,...o},r)=>(0,hT.cloneElement)(e,{width:t,height:t,...o,ref:r}));var gT=c(de(),1),IF=c(E(),1),Xh=(0,IF.jsx)(gT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IF.jsx)(gT.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var bT=c(de(),1),OF=c(E(),1),AF=(0,OF.jsx)(bT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OF.jsx)(bT.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});var yT=c(de(),1),LF=c(E(),1),ep=(0,LF.jsx)(yT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LF.jsx)(yT.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var vT=c(de(),1),NF=c(E(),1),Qh=(0,NF.jsx)(vT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NF.jsx)(vT.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var ST=c(de(),1),MF=c(E(),1),tp=(0,MF.jsx)(ST.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MF.jsx)(ST.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var kT=c(de(),1),DF=c(E(),1),VF=(0,DF.jsx)(kT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DF.jsx)(kT.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})});var _T=c(de(),1),FF=c(E(),1),Lx=(0,FF.jsx)(_T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FF.jsx)(_T.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});var xT=c(de(),1),zF=c(E(),1),Nx=(0,zF.jsx)(xT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zF.jsx)(xT.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})});var wT=c(de(),1),jF=c(E(),1),HF=(0,jF.jsx)(wT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jF.jsx)(wT.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})});var CT=c(de(),1),UF=c(E(),1),GF=(0,UF.jsx)(CT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UF.jsx)(CT.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 ET=c(de(),1),WF=c(E(),1),Mx=(0,WF.jsx)(ET.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WF.jsx)(ET.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 TT=c(de(),1),$F=c(E(),1),KF=(0,$F.jsx)(TT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$F.jsx)(TT.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 RT=c(de(),1),YF=c(E(),1),qF=(0,YF.jsx)(RT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YF.jsx)(RT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})});var BT=c(de(),1),ZF=c(E(),1),rs=(0,ZF.jsx)(BT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZF.jsx)(BT.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})});var PT=c(de(),1),XF=c(E(),1),cn=(0,XF.jsx)(PT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XF.jsx)(PT.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var IT=c(de(),1),QF=c(E(),1),Dx=(0,QF.jsx)(IT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QF.jsx)(IT.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var OT=c(de(),1),JF=c(E(),1),Ei=(0,JF.jsx)(OT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JF.jsx)(OT.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var AT=c(de(),1),e3=c(E(),1),op=(0,e3.jsx)(AT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e3.jsx)(AT.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 LT=c(de(),1),t3=c(E(),1),un=(0,t3.jsx)(LT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t3.jsx)(LT.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var NT=c(de(),1),o3=c(E(),1),Jh=(0,o3.jsx)(NT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o3.jsx)(NT.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var MT=c(de(),1),r3=c(E(),1),eg=(0,r3.jsx)(MT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r3.jsx)(MT.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});var DT=c(de(),1),n3=c(E(),1),i3=(0,n3.jsx)(DT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n3.jsx)(DT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z"})});var VT=c(de(),1),s3=c(E(),1),a3=(0,s3.jsx)(VT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,s3.jsx)(VT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});var FT=c(de(),1),l3=c(E(),1),tg=(0,l3.jsx)(FT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l3.jsx)(FT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});var zT=c(de(),1),c3=c(E(),1),u3=(0,c3.jsx)(zT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c3.jsx)(zT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Zm-12.5 9v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})});var og=c(de(),1),Wy=c(E(),1),d3=(0,Wy.jsxs)(og.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Wy.jsx)(og.G,{opacity:".25",children:(0,Wy.jsx)(og.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,Wy.jsx)(og.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 15v3c0 .138.112.25.25.25h3v1.5H6A1.75 1.75 0 0 1 4.25 18v-3h1.5Z"})]});var rg=c(de(),1),$y=c(E(),1),f3=(0,$y.jsxs)(rg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,$y.jsx)(rg.G,{opacity:".25",children:(0,$y.jsx)(rg.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,$y.jsx)(rg.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 18.25h3a.25.25 0 0 0 .25-.25v-3h1.5v3A1.75 1.75 0 0 1 18 19.75h-3v-1.5Z"})]});var ng=c(de(),1),Ky=c(E(),1),p3=(0,Ky.jsxs)(ng.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Ky.jsx)(ng.G,{opacity:".25",children:(0,Ky.jsx)(ng.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,Ky.jsx)(ng.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.75a.25.25 0 0 0-.25.25v3h-1.5V6c0-.966.784-1.75 1.75-1.75h3v1.5H6Z"})]});var ig=c(de(),1),Yy=c(E(),1),m3=(0,Yy.jsxs)(ig.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Yy.jsx)(ig.G,{opacity:".25",children:(0,Yy.jsx)(ig.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,Yy.jsx)(ig.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Z"})]});var jT=c(de(),1),h3=c(E(),1),g3=(0,h3.jsx)(jT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h3.jsx)(jT.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})});var HT=c(de(),1),b3=c(E(),1),Vx=(0,b3.jsx)(HT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,b3.jsx)(HT.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});var UT=c(de(),1),y3=c(E(),1),v3=(0,y3.jsx)(UT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y3.jsx)(UT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Zm2-.5h14c.3 0 .5.2.5.5v1L12 13.5 4.5 7.9V7c0-.3.2-.5.5-.5Zm-.5 3.3V17c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V9.8L12 15.4 4.5 9.8Z"})});var GT=c(de(),1),S3=c(E(),1),sg=(0,S3.jsx)(GT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S3.jsx)(GT.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var WT=c(de(),1),k3=c(E(),1),_3=(0,k3.jsx)(WT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k3.jsx)(WT.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 $T=c(de(),1),x3=c(E(),1),w3=(0,x3.jsx)($T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,x3.jsx)($T.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 KT=c(de(),1),C3=c(E(),1),E3=(0,C3.jsx)(KT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,C3.jsx)(KT.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var YT=c(de(),1),T3=c(E(),1),R3=(0,T3.jsx)(YT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,T3.jsx)(YT.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})});var qT=c(de(),1),B3=c(E(),1),P3=(0,B3.jsx)(qT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B3.jsx)(qT.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})});var ZT=c(de(),1),I3=c(E(),1),O3=(0,I3.jsx)(ZT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,I3.jsx)(ZT.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})});var XT=c(de(),1),A3=c(E(),1),L3=(0,A3.jsx)(XT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,A3.jsx)(XT.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})});var QT=c(de(),1),N3=c(E(),1),M3=(0,N3.jsx)(QT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,N3.jsx)(QT.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})});var JT=c(de(),1),D3=c(E(),1),V3=(0,D3.jsx)(JT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D3.jsx)(JT.Path,{d:"M12.75 19.45 15 17.5l1 1.1-4 3.4-4-3.4 1-1.1 2.25 1.95V14.5h1.5v4.95ZM19 12.75H5v-1.5h14v1.5ZM16 5.4l-1 1.1-2.25-1.95V9.5h-1.5V4.55L9 6.5 8 5.4 12 2l4 3.4Z"})});var eR=c(de(),1),F3=c(E(),1),tR=(0,F3.jsx)(eR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,F3.jsx)(eR.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 oR=c(de(),1),z3=c(E(),1),Fx=(0,z3.jsx)(oR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z3.jsx)(oR.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-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})});var rR=c(de(),1),j3=c(E(),1),zx=(0,j3.jsx)(rR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j3.jsx)(rR.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 nR=c(de(),1),H3=c(E(),1),jx=(0,H3.jsx)(nR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H3.jsx)(nR.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 iR=c(de(),1),U3=c(E(),1),G3=(0,U3.jsx)(iR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U3.jsx)(iR.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var sR=c(de(),1),W3=c(E(),1),$3=(0,W3.jsx)(sR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,W3.jsx)(sR.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 aR=c(de(),1),K3=c(E(),1),Y3=(0,K3.jsx)(aR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K3.jsx)(aR.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 lR=c(de(),1),q3=c(E(),1),Z3=(0,q3.jsx)(lR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,q3.jsx)(lR.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var cR=c(de(),1),X3=c(E(),1),Q3=(0,X3.jsx)(cR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,X3.jsx)(cR.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 uR=c(de(),1),J3=c(E(),1),e4=(0,J3.jsx)(uR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J3.jsx)(uR.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 dR=c(de(),1),t4=c(E(),1),o4=(0,t4.jsx)(dR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t4.jsx)(dR.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var fR=c(de(),1),r4=c(E(),1),Hx=(0,r4.jsx)(fR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r4.jsx)(fR.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 pR=c(de(),1),n4=c(E(),1),i4=(0,n4.jsx)(pR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n4.jsx)(pR.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});var mR=c(de(),1),s4=c(E(),1),Ux=(0,s4.jsx)(mR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,s4.jsx)(mR.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})});var hR=c(de(),1),a4=c(E(),1),Gx=(0,a4.jsx)(hR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a4.jsx)(hR.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})});var gR=c(de(),1),l4=c(E(),1),rp=(0,l4.jsx)(gR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l4.jsx)(gR.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})});var bR=c(de(),1),c4=c(E(),1),np=(0,c4.jsx)(bR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c4.jsx)(bR.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})});var yR=c(de(),1),u4=c(E(),1),ip=(0,u4.jsx)(yR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u4.jsx)(yR.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})});var vR=c(de(),1),d4=c(E(),1),Wx=(0,d4.jsx)(vR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,d4.jsx)(vR.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})});var SR=c(de(),1),f4=c(E(),1),qy=(0,f4.jsx)(SR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f4.jsx)(SR.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})});var kR=c(de(),1),p4=c(E(),1),$x=(0,p4.jsx)(kR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,p4.jsx)(kR.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})});var _R=c(de(),1),m4=c(E(),1),Zy=(0,m4.jsx)(_R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m4.jsx)(_R.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})});var xR=c(de(),1),h4=c(E(),1),Kx=(0,h4.jsx)(xR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h4.jsx)(xR.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})});var wR=c(de(),1),g4=c(E(),1),sd=(0,g4.jsx)(wR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,g4.jsx)(wR.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 CR=c(de(),1),b4=c(E(),1),y4=(0,b4.jsx)(CR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,b4.jsx)(CR.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 ER=c(de(),1),v4=c(E(),1),ns=(0,v4.jsx)(ER.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,v4.jsx)(ER.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 TR=c(de(),1),S4=c(E(),1),is=(0,S4.jsx)(TR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S4.jsx)(TR.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 RR=c(de(),1),k4=c(E(),1),Yx=(0,k4.jsx)(RR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k4.jsx)(RR.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});var BR=c(de(),1),_4=c(E(),1),x4=(0,_4.jsx)(BR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_4.jsx)(BR.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})});var PR=c(de(),1),w4=c(E(),1),C4=(0,w4.jsx)(PR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,w4.jsx)(PR.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});var IR=c(de(),1),E4=c(E(),1),ag=(0,E4.jsx)(IR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,E4.jsx)(IR.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})});var qx=c(de(),1),Zx=c(E(),1),Xy=(0,Zx.jsxs)(qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Zx.jsx)(qx.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Zx.jsx)(qx.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 OR=c(de(),1),T4=c(E(),1),Xx=(0,T4.jsx)(OR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,T4.jsx)(OR.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})});var AR=c(de(),1),R4=c(E(),1),Fs=(0,R4.jsx)(AR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,R4.jsx)(AR.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Qx=c(de(),1),Jx=c(E(),1),lg=(0,Jx.jsxs)(Qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Jx.jsx)(Qx.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Jx.jsx)(Qx.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 LR=c(de(),1),B4=c(E(),1),P4=(0,B4.jsx)(LR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B4.jsx)(LR.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 NR=c(de(),1),I4=c(E(),1),cg=(0,I4.jsx)(NR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,I4.jsx)(NR.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var MR=c(de(),1),O4=c(E(),1),A4=(0,O4.jsx)(MR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O4.jsx)(MR.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})});var DR=c(de(),1),L4=c(E(),1),Ca=(0,L4.jsx)(DR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,L4.jsx)(DR.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var VR=c(de(),1),N4=c(E(),1),M4=(0,N4.jsx)(VR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,N4.jsx)(VR.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var FR=c(de(),1),D4=c(E(),1),V4=(0,D4.jsx)(FR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D4.jsx)(FR.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var zR=c(de(),1),F4=c(E(),1),z4=(0,F4.jsx)(zR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,F4.jsx)(zR.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var jR=c(de(),1),j4=c(E(),1),H4=(0,j4.jsx)(jR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j4.jsx)(jR.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 HR=c(de(),1),U4=c(E(),1),G4=(0,U4.jsx)(HR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U4.jsx)(HR.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 UR=c(de(),1),W4=c(E(),1),dn=(0,W4.jsx)(UR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,W4.jsx)(UR.Path,{d:"M7 11.5h10V13H7z"})});var GR=c(de(),1),$4=c(E(),1),K4=(0,$4.jsx)(GR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$4.jsx)(GR.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 WR=c(de(),1),Y4=c(E(),1),q4=(0,Y4.jsx)(WR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Y4.jsx)(WR.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 $R=c(de(),1),Z4=c(E(),1),X4=(0,Z4.jsx)($R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Z4.jsx)($R.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 KR=c(de(),1),Q4=c(E(),1),ug=(0,Q4.jsx)(KR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Q4.jsx)(KR.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})});var ew=c(de(),1),tw=c(E(),1),J4=(0,tw.jsxs)(ew.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,tw.jsx)(ew.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,tw.jsx)(ew.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]});var YR=c(de(),1),e6=c(E(),1),t6=(0,e6.jsx)(YR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e6.jsx)(YR.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})});var qR=c(de(),1),o6=c(E(),1),ZR=(0,o6.jsx)(qR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o6.jsx)(qR.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})});var ow=c(de(),1),rw=c(E(),1),r6=(0,rw.jsxs)(ow.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,rw.jsx)(ow.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,rw.jsx)(ow.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]});var Qy=c(de(),1),Jy=c(E(),1),n6=(0,Jy.jsxs)(Qy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Jy.jsx)(Qy.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Jy.jsx)(Qy.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,Jy.jsx)(Qy.Path,{d:"m18 7.5v9h1.5v-9z"})]});var nw=c(de(),1),iw=c(E(),1),i6=(0,iw.jsxs)(nw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,iw.jsx)(nw.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,iw.jsx)(nw.Path,{d:"m4.5 16.5v-9h1.5v9z"})]});var sw=c(de(),1),aw=c(E(),1),s6=(0,aw.jsxs)(sw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,aw.jsx)(sw.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,aw.jsx)(sw.Path,{d:"m18 16.5v-9h1.5v9z"})]});var lw=c(de(),1),cw=c(E(),1),a6=(0,cw.jsxs)(lw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,cw.jsx)(lw.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,cw.jsx)(lw.Path,{d:"m16.5 6h-9v-1.5h9z"})]});var ev=c(de(),1),tv=c(E(),1),l6=(0,tv.jsxs)(ev.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,tv.jsx)(ev.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,tv.jsx)(ev.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,tv.jsx)(ev.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]});var XR=c(de(),1),c6=c(E(),1),u6=(0,c6.jsx)(XR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c6.jsx)(XR.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 QR=c(de(),1),d6=c(E(),1),uw=(0,d6.jsx)(QR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,d6.jsx)(QR.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})});var JR=c(de(),1),f6=c(E(),1),dg=(0,f6.jsx)(JR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f6.jsx)(JR.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var eB=c(de(),1),p6=c(E(),1),m6=(0,p6.jsx)(eB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,p6.jsx)(eB.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})});var tB=c(de(),1),h6=c(E(),1),jc=(0,h6.jsx)(tB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h6.jsx)(tB.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 oB=c(de(),1),g6=c(E(),1),b6=(0,g6.jsx)(oB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,g6.jsx)(oB.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})});var rB=c(de(),1),y6=c(E(),1),v6=(0,y6.jsx)(rB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y6.jsx)(rB.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 nB=c(de(),1),S6=c(E(),1),k6=(0,S6.jsx)(nB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S6.jsx)(nB.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})});var iB=c(de(),1),_6=c(E(),1),x6=(0,_6.jsx)(iB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_6.jsx)(iB.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})});var sB=c(de(),1),w6=c(E(),1),C6=(0,w6.jsx)(sB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,w6.jsx)(sB.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});var aB=c(de(),1),E6=c(E(),1),T6=(0,E6.jsx)(aB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,E6.jsx)(aB.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})});var lB=c(de(),1),R6=c(E(),1),ad=(0,R6.jsx)(lB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,R6.jsx)(lB.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})});var cB=c(de(),1),B6=c(E(),1),Ml=(0,B6.jsx)(cB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B6.jsx)(cB.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})});var uB=c(de(),1),P6=c(E(),1),I6=(0,P6.jsx)(uB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,P6.jsx)(uB.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 dB=c(de(),1),O6=c(E(),1),A6=(0,O6.jsx)(dB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O6.jsx)(dB.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 fB=c(de(),1),L6=c(E(),1),N6=(0,L6.jsx)(fB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,L6.jsx)(fB.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 pd=c($o(),1),Us=c(Bt(),1),_t=c(Q(),1);var gZ=c(ce(),1),bZ=c(_q(),1);var rr="core/block-editor";var TB={};Ir(TB,{getAllPatterns:()=>T2e,getBlockRemovalRules:()=>k2e,getBlockSettings:()=>oZ,getBlockStyles:()=>A2e,getBlockWithoutAttributes:()=>f2e,getClientIdWithClientIdsTree:()=>K6,getClientIdsTree:()=>Y6,getClosestAllowedInsertionPoint:()=>aZ,getClosestAllowedInsertionPointForPattern:()=>N2e,getContentLockingParent:()=>Z6,getEditedContentOnlySection:()=>X6,getEnabledBlockParents:()=>v2e,getEnabledClientIdsTree:()=>b2e,getExpandedBlock:()=>O2e,getInserterMediaCategories:()=>w2e,getInsertionPoint:()=>M2e,getLastFocus:()=>P2e,getLastInsertedBlocksClientIds:()=>d2e,getListViewClientIdsTree:()=>y2e,getListViewExpandRevision:()=>G2e,getParentSectionBlock:()=>dd,getPatternBySlug:()=>E2e,getRegisteredInserterMediaCategories:()=>x2e,getRemovalPromptData:()=>S2e,getRequestedInspectorTab:()=>K2e,getReusableBlocks:()=>B2e,getSectionRootClientId:()=>pg,getSelectedBlockStyleState:()=>pZ,getStyleOverrides:()=>_2e,getStyleStateViewport:()=>fZ,getViewportModalClientIds:()=>$2e,getZoomLevel:()=>L2e,hasAllowedPatterns:()=>C2e,hasBlockSpotlight:()=>z2e,hasSelectedStyleState:()=>q2e,isBlockHiddenAnywhere:()=>D2e,isBlockHiddenAtViewport:()=>lZ,isBlockHiddenEverywhere:()=>J6,isBlockInterfaceHidden:()=>u2e,isBlockParentHiddenAtViewport:()=>F2e,isBlockParentHiddenEverywhere:()=>V2e,isBlockSubtreeDisabled:()=>p2e,isContainerInsertableToInContentOnlyMode:()=>bw,isDragging:()=>I2e,isEditLockedBlock:()=>cZ,isListViewContentPanelOpen:()=>H2e,isListViewPanelOpened:()=>U2e,isLockedBlock:()=>j2e,isMoveLockedBlock:()=>uZ,isRemoveLockedBlock:()=>dZ,isResponsiveEditing:()=>Y2e,isSectionBlock:()=>up,isSelectedBlockStyleStateShownOnCanvas:()=>Z2e,isWithinEditedContentOnlySection:()=>EB,isZoomOut:()=>Q6,shouldRenderBlockListView:()=>W2e});var Zr=c(Q(),1),iv=c(ce(),1);function xq(e,t,o){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let r=t.pop(),n=e;for(let i of t){let s=n[i];n=n[i]=Array.isArray(s)?[...s]:{...s}}return n[r]=o,e}var Lo=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var Eq=c(ov(),1);var iAe="1600px",sAe="320px",aAe=1,lAe=.25,cAe=.75,uAe="14px";function Cq({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=sAe,maximumViewportWidth:n=iAe,scaleFactor:i=aAe,minimumFontSizeLimit:s}){if(s=Hc(s)?s:uAe,o){let k=Hc(o);if(!k?.unit||!k?.value)return null;let S=Hc(s,{coerceTo:k.unit});if(S?.value&&!e&&!t&&k?.value<=S?.value)return null;if(t||(t=`${k.value}${k.unit}`),!e){let _=k.unit==="px"?k.value:k.value*16,x=Math.min(Math.max(1-.075*Math.log2(_),lAe),cAe),w=dw(k.value*x,3);S?.value&&w<S?.value?e=`${S.value}${S.unit}`:e=`${w}${k.unit}`}}let a=Hc(e),l=a?.unit||"rem",u=Hc(t,{coerceTo:l});if(!a||!u)return null;let d=Hc(e,{coerceTo:"rem"}),f=Hc(n,{coerceTo:l}),p=Hc(r,{coerceTo:l});if(!f||!p||!d)return null;let h=f.value-p.value;if(!h)return null;let m=dw(p.value/100,3),g=dw(m,3)+l,b=100*((u.value-a.value)/h),v=dw((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${g}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function Hc(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:o,rootSizeValue:r,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=n?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),a=e.toString().match(s);if(!a||a.length<3)return null;let[,l,u]=a,d=parseFloat(l);return o==="px"&&(u==="em"||u==="rem")&&(d=d*r,u=o),u==="px"&&(o==="em"||o==="rem")&&(d=d/r,u=o),(o==="em"||o==="rem")&&(u==="em"||u==="rem")&&(u=o),u?{value:dw(d,3),unit:u}:null}function dw(e,t=3){let o=Math.pow(10,t);return Math.round(e*o)/o}function M6(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function dAe(e){let t=e?.typography??{},o=e?.layout,r=Hc(o?.wideSize)?o?.wideSize:null;return M6(t)&&r?{fluid:{maxViewportWidth:r,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function ld(e,t){let{size:o}=e;if(!o||o==="0"||e?.fluid===!1||!M6(t?.typography)&&!M6(e))return o;let r=dAe(t)?.fluid??{},n=Cq({minimumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.min,maximumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.max,fontSize:o,minimumFontSizeLimit:typeof r=="object"?r?.minFontSize:void 0,maximumViewportWidth:typeof r=="object"?r?.maxViewportWidth:void 0,minimumViewportWidth:typeof r=="object"?r?.minViewportWidth:void 0});return n||o}var Gc="body",fw=":root";function Uc(e){if(!e.includes(","))return[e];let t=[],o="",r=0;for(let n of e){if(n==="(")r++;else if(n===")"&&r>0)r--;else if(n===","&&r===0){t.push(o),o="";continue}o+=n}return t.push(o),t}var pB=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>ld(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}];function Dl(e,t){if(!e||!t)return t;let o=Uc(e),r=Uc(t),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`${i.trim()} ${s.trim()}`)})}),n.join(", ")}function Tq(e,t){if(!e||!t)return;let o={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(o[r]=Dl(e,n)),typeof n=="object"&&(o[r]={},Object.entries(n).forEach(([i,s])=>{o[r][i]=Dl(e,s)}))}),o}function mB(e,t){return e.includes(",")?Uc(e).map(n=>n+t).join(","):e+t}function D6(e,t){let o=`.is-style-${e}`;if(!t)return o;let r=/[^\s:]+/,n=s=>s+o;return Uc(t).map(s=>s.replace(r,n)).join(",")}function Rq(e,t){let o=`.is-style-${e}`,r=Uc(t).map(n=>{let i=n.trim(),s=`${o} `;return i.startsWith(s)?i.slice(s.length):i});return D6(e,r.join(","))}function fAe(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let o=(0,Eq.getCSSValueFromRawStyle)(Lo(t,e.ref));return typeof o=="object"&&o!==null&&"ref"in o&&o?.ref?void 0:o===void 0?e:o}return e}function pAe(e,t){if(!e||!t||!Array.isArray(t))return e;let o=t.find(r=>r?.name===e);return o?.href?o?.href:e}function sp(e,t){if(!e||!t)return e;let o=fAe(e,t);return typeof o=="object"&&o!==null&&"url"in o&&o?.url&&(o.url=pAe(o.url,t?._links?.["wp:theme-file"])),o}function Bq(e,t,o=[],r="slug",n){let i=[t?Lo(e,["blocks",t,...o]):void 0,Lo(e,o)].filter(Boolean);for(let s of i)if(s){let a=["custom","theme","default"];for(let l of a){let u=s[l];if(u){let d=u.find(f=>f[r]===n);if(d)return r==="slug"||Bq(e,t,o,"slug",d.slug)[r]===d[r]?d:void 0}}}}function mAe(e,t,o,[r,n]=[]){let i=pB.find(a=>a.cssVarInfix===r);if(!i||!e.settings)return o;let s=Bq(e.settings,t,i.path,"slug",n);if(s){let{valueKey:a}=i,l=s[a];return Ea(e,t,l)}return o}function hAe(e,t,o,r=[]){let n=(t?Lo(e?.settings??{},["blocks",t,"custom",...r]):void 0)??Lo(e?.settings??{},["custom",...r]);return n?Ea(e,t,n):o}function Ea(e,t,o){if(!o||typeof o!="string")if(typeof o=="object"&&o!==null&&"ref"in o&&typeof o.ref=="string"){let u=Lo(e,o.ref);if(!u||typeof u=="object"&&"ref"in u)return u;o=u}else return o;let r="var:",n="var(--wp--",i=")",s;if(o.startsWith(r))s=o.slice(r.length).split("|");else if(o.startsWith(n)&&o.endsWith(i))s=o.slice(n.length,-i.length).split("--");else return o;let[a,...l]=s;return a==="preset"?mAe(e,t,o,l):a==="custom"?hAe(e,t,o,l):o}var Nq=c(hB(),1);function Aq(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lq(e){var t,o;return Aq(e)===!1?!1:(t=e.constructor,t===void 0?!0:(o=t.prototype,!(Aq(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}function gB(e,t){return(0,Nq.default)(e,t,{isMergeableObject:Lq,customMerge:o=>{if(o==="backgroundImage")return(r,n)=>n??r}})}var Ti=c(ce(),1),hw=c(ov(),1),Hq=c(Q(),1);function zs(e,t="root",o={}){if(!t)return null;let{fallback:r=!1}=o,{name:n,selectors:i,supports:s}=e,a=i&&Object.keys(i).length>0,l=Array.isArray(t)?t.join("."):t,u=null;if(a&&i.root?u=i?.root:s?.__experimentalSelector?u=s.__experimentalSelector:u=".wp-block-"+n.replace("core/","").replace("/","-"),l==="root")return u;let d=Array.isArray(t)?t:t.split(".");if(d.length===1){let p=r?u:null;if(a)return Lo(i,`${l}.root`,null)||Lo(i,l,null)||p;let h=s?Lo(s,`${l}.__experimentalSelector`,null):void 0;return h?Dl(u,h):p}let f;return a&&(f=Lo(i,l,null)),f||(r?zs(e,d[0],o):null)}function nv(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([a-zA-Z])/g,"$1-$2").replace(/([a-zA-Z])([0-9])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function V6(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function BAe(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function F6(e,t="0"){let o=BAe(e);if(!o)return null;let r=V6(o?.top)||t,n=V6(o?.left)||t;return r===n?r:`${r} ${n}`}var Mq={backgroundSize:"cover",backgroundPosition:"50% 50%"};function Dq(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Mq.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:Mq.backgroundPosition}),t}var Vq={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};var Fq={mobile:"480px",tablet:"782px"},zq=/^(\d+|\d*\.\d+)(px|em|rem)$/,PAe=16;function IAe(e){return"mobile"in e||"tablet"in e}function OAe(e){return!e||typeof e!="object"?{}:IAe(e)?e:e.settings?.viewport??{}}function AAe(e){return typeof e=="string"&&zq.test(e.trim())}function z6(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(zq);if(!t)return;let o=Number.parseFloat(t[1]);return t[2]==="px"?o:o*PAe}function j6(e){let t=OAe(e),o={},r={};Object.keys(Fq).forEach(a=>{let l=a,u=t[l],d=z6(u);d!==void 0&&AAe(u)&&(o[l]=u.trim(),r[l]=d)});let n=Object.keys(o);if(!n.length)return{...Fq};if(n.length===1)return o;let i=o.mobile,s=o.tablet;return r.mobile>=r.tablet?{mobile:i}:{mobile:i,tablet:s}}function mw(e){let t=j6(e),o={};return t.mobile&&(o["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(o["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),o}var LAe={button:"wp-element-button",caption:"wp-element-caption"},NAe={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},Uq={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},MAe={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]};function DAe(e="*",t={}){return pB.reduce((o,{path:r,cssVarInfix:n,classes:i})=>{if(!i)return o;let s=Lo(t,r,[]);return["default","theme","custom"].forEach(a=>{s[a]&&s[a].forEach(({slug:l})=>{i.forEach(({classSuffix:u,propertyName:d})=>{let f=`.has-${nv(l)}-${u}`,p=e.split(",").map(m=>`${m}${f}`).join(","),h=`var(--wp--preset--${n}--${nv(l)})`;o+=`${p}{${d}: ${h} !important;}`})})}),o},"")}var VAe=(e,t,o)=>{if(o!=="core/paragraph"||(t?.blocks?.["core/paragraph"]?.typography?.textIndent??t?.typography?.textIndent??"subsequent")!=="all")return e;let i=".wp-block-paragraph + .wp-block-paragraph",s=".wp-block-paragraph";if(i in e){let a=e[i],l={...e};return delete l[i],l[s]=a,l}return e},FAe=(e,t)=>{let o=".wp-block-button";if(!(o in e))return e;let r={...e};return r[o]=r[o].map(n=>{let i=n.match(/^width:\s*(.+)$/);if(!i)return n;let s=i[1],a=null;s.endsWith("%")&&(a=parseFloat(s));let l="var(--wp--preset--dimension--";if(a===null&&s.startsWith(l)&&s.endsWith(")")){let u=s.slice(l.length,-1),d={...t?.dimensions?.dimensionSizes??{},...t?.blocks?.["core/button"]?.dimensions?.dimensionSizes??{}};for(let f of Object.values(d))if(Array.isArray(f)){for(let p of f)if(p.slug===u&&typeof p.size=="string"&&p.size.endsWith("%")){a=parseFloat(p.size);break}if(a!==null)break}}return a===null||isNaN(a)?n:`width: calc(${a} * 1% - (var(--wp--style--block-gap, 0.5em) * (1 - ${a} / 100)))`}),r},zAe=(e,t)=>{let o={};return Object.entries(e).forEach(([r,n])=>{if(r==="root"||!t?.[r])return;let i=typeof n=="string";if(!i&&typeof n=="object"&&n!==null&&Object.entries(n).forEach(([s,a])=>{if(s==="root"||!t?.[r][s])return;let l={[r]:{[s]:t[r][s]}},u=yB(l);o[a]=[...o[a]||[],...u],delete t[r][s]}),i||typeof n=="object"&&n!==null&&"root"in n){let s=i?n:n.root,a={[r]:t[r]},l=yB(a);o[s]=[...o[s]||[],...l],delete t[r]}}),o};function yB(e={},t="",o,r={},n=!1){let i=Gc===t,s=Object.entries(Ti.__EXPERIMENTAL_STYLE_PROPERTY).reduce((l,[u,{value:d,properties:f,useEngine:p,rootOnly:h}])=>{if(h&&!i)return l;let m=d;if(m[0]==="elements"||p)return l;let g=Lo(e,m);if(u==="--wp--style--root--padding"&&(typeof g=="string"||!o))return l;if(f&&typeof g!="string")Object.entries(f).forEach(b=>{let[v,y]=b;if(!Lo(g,[y],!1))return;let k=v.startsWith("--")?v:nv(v);l.push(`${k}: ${(0,hw.getCSSValueFromRawStyle)(Lo(g,[y]))}`)});else if(Lo(e,m,!1)){let b=u.startsWith("--")?u:nv(u);l.push(`${b}: ${(0,hw.getCSSValueFromRawStyle)(Lo(e,m))}`)}return l},[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=sp(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Dq(e.background)}})),(0,hw.getCSSRules)(e).forEach(l=>{if(i&&(o||n)&&l.key.startsWith("padding"))return;let u=l.key.startsWith("--")?l.key:nv(l.key),d=sp(l.value,r);u==="font-size"&&(d=ld({name:"",slug:"",size:d},r?.settings)),u==="aspect-ratio"&&s.push("min-height: unset"),s.push(`${u}: ${d}`)}),s}function Gq({layoutDefinitions:e=Vq,style:t,selector:o,hasBlockGapSupport:r,hasFallbackGapSupport:n,fallbackGapValue:i}){let s="",a=r?F6(t?.spacing?.blockGap):"";if(n&&(o===Gc?a=a||"0.5em":!r&&i&&(a=i)),a&&e&&(Object.values(e).forEach(({className:l,name:u,spacingStyles:d})=>{!r&&u!=="flex"&&u!=="grid"||d?.length&&d.forEach(f=>{let p=[];if(f.rules&&Object.entries(f.rules).forEach(([h,m])=>{p.push(`${h}: ${m||a}`)}),p.length){let h="";r?h=o===Gc?`:root :where(.${l})${f?.selector||""}`:`:root :where(${o}-${l})${f?.selector||""}`:h=o===Gc?`:where(.${l}${f?.selector||""})`:`:where(${o}.${l}${f?.selector||""})`,s+=`${h} { ${p.join("; ")}; }`}})}),o===Gc&&r&&(s+=`${fw} { --wp--style--block-gap: ${a}; }`)),o===Gc&&e){let l=["block","flex","grid"];Object.values(e).forEach(({className:u,displayMode:d,baseStyles:f})=>{d&&l.includes(d)&&(s+=`${o} .${u} { display:${d}; }`),f?.length&&f.forEach(p=>{let h=[];if(p.rules&&Object.entries(p.rules).forEach(([m,g])=>{h.push(`${m}: ${g}`)}),h.length){let m=`.${u}${p?.selector||""}`;s+=`${m} { ${h.join("; ")}; }`}})})}return s}var jAe=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function HAe(e,t){return bB(e,void 0,t)}function bB(e,t,o){if(!e)return{};let r=Object.entries(e),n=t?Uq[t]??[]:[],s=r.filter(([a])=>jAe.includes(a)||n.includes(a)||o[a]).map(([a,l])=>[a,JSON.parse(JSON.stringify(l))]);return Object.fromEntries(s)}function jq(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,mediaQuery:s,variationName:a}=e,l=n?Uq[n]??[]:MAe[i??""]??[];return l.length?l.flatMap(u=>{let d=t?.[u];return!d||typeof d!="object"?[]:[{styles:JSON.parse(JSON.stringify(d)),selector:o,selectorSuffix:u,mediaQuery:s,featureSelectors:r&&typeof r!="string"?r:void 0,name:n,elementName:i,variationName:a}]}):[]}function UAe(e,t){let{styles:o,selector:r,fallbackGapValue:n,featureSelectors:i,hasLayoutSupport:s,layoutHasBlockGapSupport:a,layoutSelector:l,name:u,elementName:d,isStyleVariation:f,variationName:p}=e;return!u&&!d?[]:Object.entries(t).flatMap(([h,m])=>{let g=o?.[h];return!g||typeof g!="object"?[]:[{styles:JSON.parse(JSON.stringify(g)),selector:r,mediaQuery:m,featureSelectors:i&&typeof i!="string"?i:void 0,fallbackGapValue:n,hasLayoutSupport:s,name:u,elementName:d,isStyleVariation:f,variationName:p,layoutSelector:l,layoutHasBlockGapSupport:a}]})}var GAe=(e,t)=>{let o=[];if(!e?.styles)return o;let r=mw(e),n=HAe(e.styles,r);return n&&o.push({styles:n,selector:Gc,skipSelectorWrapper:!0}),Object.entries(Ti.__EXPERIMENTAL_ELEMENTS).forEach(([i,s])=>{e.styles?.elements?.[i]&&o.push({styles:e.styles?.elements?.[i]??{},selector:s,elementName:i,skipSelectorWrapper:!LAe[i]})}),Object.entries(e.styles?.blocks??{}).forEach(([i,s])=>{let a=bB(s,i,r),l=s,u=[],d=[];l?.variations&&Object.entries(l.variations).forEach(([f,p])=>{let h=p,m=bB(h,i,r);h?.css&&(m.css=h.css);let g=typeof t!="string"?t[i]?.styleVariationSelectors?.[f]:void 0;if(g&&typeof t!="string"){let b=t[i];d.push({styles:m,selector:g,featureSelectors:b?.featureSelectors,fallbackGapValue:b?.fallbackGapValue,hasLayoutSupport:b?.hasLayoutSupport,isStyleVariation:!0,variationName:f,layoutSelector:g+b.selector,layoutHasBlockGapSupport:!0,name:i})}Object.entries(h?.elements??{}).forEach(([b,v])=>{v&&Ti.__EXPERIMENTAL_ELEMENTS[b]&&u.push({styles:v,selector:Dl(g,Ti.__EXPERIMENTAL_ELEMENTS[b]),elementName:b,isStyleVariation:!0})}),Object.entries(h?.blocks??{}).forEach(([b,v])=>{let y=typeof t!="string"?Dl(g,t[b]?.selector):void 0,k=typeof t!="string"?Dl(g,t[b]?.duotoneSelector):void 0,S=typeof t!="string"?Tq(g,t[b]?.featureSelectors??{}):void 0,_=bB(v,b,r);v?.css&&(_.css=v.css),!(!y||typeof t=="string")&&(u.push({selector:y,name:b,isStyleVariation:!0,duotoneSelector:k,featureSelectors:S,fallbackGapValue:t[b]?.fallbackGapValue,hasLayoutSupport:t[b]?.hasLayoutSupport,styles:_}),Object.entries(v.elements??{}).forEach(([x,w])=>{w&&Ti.__EXPERIMENTAL_ELEMENTS[x]&&u.push({styles:w,selector:Dl(y,Ti.__EXPERIMENTAL_ELEMENTS[x]),elementName:x,isStyleVariation:!0})}))})}),typeof t!="string"&&t?.[i]?.selector&&o.push({duotoneSelector:t[i].duotoneSelector,fallbackGapValue:t[i].fallbackGapValue,hasLayoutSupport:t[i].hasLayoutSupport,selector:t[i].selector,styles:a,featureSelectors:t[i].featureSelectors,name:i}),o.push(...d),Object.entries(l?.elements??{}).forEach(([f,p])=>{typeof t!="string"&&p&&t?.[i]&&Ti.__EXPERIMENTAL_ELEMENTS[f]&&o.push({styles:p,selector:t[i]?.selector.split(",").map(h=>Ti.__EXPERIMENTAL_ELEMENTS[f].split(",").map(g=>h+" "+g)).join(","),elementName:f})}),o.push(...u)}),o},WAe=(e,t)=>{let o=[];if(!e?.settings)return o;let r=s=>{let a={};return pB.forEach(({path:l})=>{let u=Lo(s,l,!1);u!==!1&&(a=xq(a,l,u))}),a},n=r(e.settings),i=e.settings?.custom;return(Object.keys(n).length>0||i)&&o.push({presets:n,custom:i,selector:fw}),Object.entries(e.settings?.blocks??{}).forEach(([s,a])=>{let l=a.custom;if(typeof t=="string"||!t[s])return;let u=r(a);(Object.keys(u).length>0||l)&&o.push({presets:u,custom:l,selector:t[s]?.selector,featureSelectors:t[s]?.featureSelectors})}),o};function $Ae(e,{tree:t,useRootPaddingAlign:o,disableLayoutStyles:r,hasBlockGapSupport:n,hasFallbackGapSupport:i,disableRootPadding:s}){let{selector:a,selectorSuffix:l,mediaQuery:u,duotoneSelector:d,styles:f,fallbackGapValue:p,hasLayoutSupport:h,featureSelectors:m,layoutSelector:g,layoutHasBlockGapSupport:b,skipSelectorWrapper:v,name:y,variationName:k}=e,S="",_=l?mB(a,l):a;if(m&&typeof m!="string"){let R=zAe(m,f);R=VAe(R,t.settings,y),R=FAe(R,t.settings),Object.entries(R).forEach(([B,I])=>{if(I.length){let O=k?Rq(k,B):B;O=l?mB(O,l):O;let P=I.join(";");S+=`:root :where(${O}){${P};}`}})}if(d){let R={};f?.filter&&(R.filter=f.filter,delete f.filter);let B=yB(R);B.length&&(S+=`${d}{${B.join(";")};}`)}let x=g??_;!r&&(Gc===x||h)&&(S+=Gq({style:f,selector:x,hasBlockGapSupport:b??n,hasFallbackGapSupport:i,fallbackGapValue:p}));let T=yB(f,_,o,t,s);if(T?.length){let R=v?_:`:root :where(${_})`;S+=`${R}{${T.join(";")};}`}return f?.css&&(S+=kB(f.css,`:root :where(${_})`)),u&&S?`${u}{${S}}`:S}var vB=(e,t,o,r,n=!1,i=!1,s={})=>{let a={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},l=e,u=GAe(l,t),d=WAe(l,t),f=l?.settings?.useRootPaddingAwareAlignments,{contentSize:p,wideSize:h}=l?.settings?.layout||{},m=a.marginReset||a.rootPadding||a.layoutStyles,g="";if(a.presets&&(p||h)&&(g+=`${fw} {`,g=p?g+` --wp--style--global--content-size: ${p};`:g,g=h?g+` --wp--style--global--wide-size: ${h};`:g,g+="}"),m&&(g+=":where(body) {margin: 0;",a.rootPadding&&f&&(g+=`padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }
.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;
`),g+="}"),a.blockStyles){let b=mw(e);u.forEach(v=>{if(v.isStyleVariation&&!a.variationStyles)return;let y=UAe(v,b);[v,...y,...jq(v),...y.flatMap(jq)].forEach(k=>{g+=$Ae(k,{tree:l,useRootPaddingAlign:f,disableLayoutStyles:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,disableRootPadding:i})})})}if(a.layoutStyles&&(g=g+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g=g+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g=g+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&o){let b=F6(l?.styles?.spacing?.blockGap)||"0.5em";g=g+`:root :where(.wp-site-blocks) > * { margin-block-start: ${b}; margin-block-end: 0; }`,g=g+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g=g+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&d.forEach(({selector:b,presets:v})=>{(Gc===b||fw===b)&&(b="");let y=DAe(b,v);y.length>0&&(g+=y)}),g};var KAe=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(NAe).forEach(([r,n])=>{let i=zs(e,r);i&&(o[n]=i)}),o},SB=(e,t)=>{let{getBlockStyles:o}=(0,Hq.select)(Ti.store),r={};return e.forEach(n=>{let i=n.name,s=zs(n);if(!s)return;let a=zs(n,"filter.duotone");if(!a){let h=zs(n),m=(0,Ti.getBlockSupport)(n,"color.__experimentalDuotone",!1);typeof m=="string"&&h&&(a=Dl(h,m))}let l=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,u=n?.supports?.spacing?.blockGap?.__experimentalDefault,d=o(i),f={};d?.forEach(h=>{let m=t?`-${t}`:"",g=`${h.name}${m}`,b=D6(g,s);f[g]=b});let p=KAe(n,s);r[i]={duotoneSelector:a??void 0,fallbackGapValue:u,featureSelectors:Object.keys(p).length?p:void 0,hasLayoutSupport:l,name:i,selector:s,styleVariationSelectors:d?.length?f:void 0}}),r};function kB(e,t){let o="";return!e||e.trim()===""||e.split("&").forEach(n=>{if(!n||n.trim()==="")return;if(!n.includes("{"))o+=`:root :where(${t}){${n.trim()}}`;else{let s=n.replace("}","").split("{");if(s.length!==2)return;let[a,l]=s,u=a.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",f=u?a.replace(d,"").trim():a.trim(),p;f===""?p=t:p=a.startsWith(" ")?Dl(t,f):mB(t,f),o+=`:root :where(${p})${d}{${l.trim()}}`}}),o}function _B(e,t,o,{resolveRefs:r=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[o])return;let n=s=>{Object.keys(s).forEach(a=>{let l=s[a];if(typeof l=="object"&&l!==null)if(l.ref!==void 0)if(typeof l.ref!="string"||l.ref.trim()==="")delete s[a];else{let u=Lo(e,l.ref);u!=null?s[a]=u:delete s[a]}else n(l),Object.keys(l).length===0&&delete s[a]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[o]));return r&&n(i),i}var G6="default";function Yq(e){let t=e?.viewport,o=e?.pseudoState;return(!t||t===G6)&&(!o||o===G6)}function YAe(e){return Yq(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==G6)}function qAe(e,t){let o=YAe(t);return o.length?Lo(e,o):e}var ZAe=new Set(["blocks","variations","css"]),H6=Object.freeze({value:{},sources:{}}),XAe={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function ap(e){let t=XAe[e];return t?{...t}:null}function lp(e,t){return!e||!t?null:{styles:e,source:t}}function QAe(e){return e.join(".")}function JAe(e){return{...e}}function qq(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function U6(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function cp(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let o of Object.keys(e))if(!ZAe.has(o)){if(o==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}qq(e[o])||(t[o]=e[o])}return Object.keys(t).length===0?null:t}var Wq=new Set(["backgroundImage"]);function Zq(e,t,o,r,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let a=t[s];if(qq(a))continue;if(U6(a)){if(a.ref.trim()==="")continue;let u=Lo(o,a.ref);if(u==null||U6(u))continue;a=u}let l=[...i,s];if(!Wq.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!U6(a)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=Zq({...u},a,o,r,n,l)}else e[s]=Wq.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,r&&n&&(n[QAe(l)]=JAe(r))}return e}function xB(e,t){if(!e)return null;let o=qAe(e,t);return o&&typeof o=="object"&&!Array.isArray(o)?o:null}var e2e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function t2e(e){return e.startsWith("elements.")?!1:e2e.some(t=>e===t||e.startsWith(`${t}.`))}function Xq(e,t){if(!e||typeof e!="object")return;let[o,...r]=t;if(r.length===0){delete e[o];return}let n=e[o];n&&typeof n=="object"&&(Xq(n,r),Object.keys(n).length===0&&delete e[o])}function o2e(e,t){for(let o of Object.keys(t))t[o].layer==="root"&&t2e(o)&&(Xq(e,o.split(".")),delete t[o])}function r2e(e,t,o){let r=e?.background?.backgroundImage;if(!r)return;let n=sp(r,{...t,_links:o??void 0});n!==void 0&&(e.background.backgroundImage=n)}function $q(e,{blockName:t,variationName:o=null,elements:r=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return H6;let s=e.styles,a={viewport:n,pseudoState:i},l=s,u=s.blocks?.[t]??null,d=(r??[]).map(b=>s.elements?.[b]??null).filter(b=>!!b),f=o?_B(e,t,o)??null:null,p=[lp(cp(l),ap("root")),...d.map(b=>lp(cp(b),ap("element"))),u?lp(cp(u),ap("block")):null,f?lp(cp(f),ap("blockVariation")):null];Yq(a)||p.push(lp(cp(xB(l,a)),ap("root")),...d.map(b=>lp(cp(xB(b,a)),ap("element"))),u?lp(cp(xB(u,a)),ap("block")):null,f?lp(cp(xB(f,a)),ap("blockVariation")):null);let h=p.filter(Boolean);if(h.length===0)return H6;let m={},g=h.reduce((b,v)=>Zq(b,v.styles,e,v.source,m),{});return o2e(g,m),r2e(g,e,e._links??null),{value:g,sources:m}}var n2e={},Kq=new WeakMap;function Qq(e,t={}){let o=e?.styles;if(!o||typeof o!="object")return $q(e,t);let r=Kq.get(o);r||(r=new WeakMap,Kq.set(o,r));let n=e?._links??n2e,i=r.get(n);i||(i=new Map,r.set(n,i));let s=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,a=(t.blockName||"")+""+(t.variationName||"")+""+s;if(i.has(a))return i.get(a);let l=$q(e,t);return i.set(a,l),l}var Jq=c(Tx(),1),{lock:eZ,unlock:$st}=(0,Jq.__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 br={};eZ(br,{getResponsiveMediaQueries:mw,getViewportBreakpoints:j6,getViewportBreakpointValueInPixels:z6,resolveStyle:Qq,getVariationStyle:_B});var wB=c(G(),1);var io={desktop:{label:(0,wB.__)("Desktop"),icon:g3,key:"desktop"},tablet:{label:(0,wB.__)("Tablet"),icon:b6,key:"tablet"},mobile:{label:(0,wB.__)("Mobile"),icon:Xx,key:"mobile"}},W6=Object.entries(io);var CB=c(ce(),1),tZ=c(bo(),1);function Me(e,t,o){let r=Array.isArray(t)?[...t]:[t],n=Array.isArray(e)?[...e]:{...e},i=r.pop(),s=n;for(let a of r){let l=s[a];s[a]=s=Array.isArray(l)?[...l]:{...l}}return s[i]=o,n}var cd=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var i2e=["color","border","dimensions","typography","spacing"],s2e={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>e.disableCustomColors===void 0?void 0:!e.disableCustomColors,"color.customGradient":e=>e.disableCustomGradients===void 0?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>e.disableCustomFontSizes===void 0?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(e.enableCustomUnits!==void 0)return e.enableCustomUnits===!0?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},a2e={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},l2e=e=>a2e[e]||e;function oZ(e,t,...o){let r=Xt(e,t),n=[];if(t){let i=t;do{let s=Xt(e,i);(0,CB.hasBlockSupport)(s,"__experimentalSettings",!1)&&n.push(i)}while(i=e.blocks.parents.get(i))}return o.map(i=>{if(i2e.includes(i)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let s=(0,tZ.applyFilters)("blockEditor.useSetting.before",void 0,i,t,r);if(s!==void 0)return s;let a=l2e(i);for(let d of n){let f=Ta(e,d);if(s=cd(f.settings?.blocks?.[r],a)??cd(f.settings,a),s!==void 0)break}let l=ud(e);if(s===void 0&&r&&(s=cd(l.__experimentalFeatures?.blocks?.[r],a)),s===void 0&&(s=cd(l.__experimentalFeatures,a)),s!==void 0)return CB.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[a]?s.custom??s.theme??s.default:s;let u=s2e[a]?.(l);return u!==void 0?u:a==="typography.dropCap"?!0:void 0})}var{isContentBlock:$6}=H(iv.privateApis),{getViewportBreakpoints:c2e}=H(br);function rZ(e,t){return t===io.desktop.key?!0:c2e(ud(e)?.__experimentalFeatures?.viewport)[t]!==void 0}function u2e(e){return e.isBlockInterfaceHidden}function d2e(e){return e?.lastBlockInserted?.clientIds}function f2e(e,t){return e.blocks.byClientId.get(t)}var p2e=(e,t)=>{let o=r=>Hs(e,r)==="disabled"&&Vn(e,r).every(o);return Vn(e,t).every(o)};function bw(e,t,o){let r=$6(t),n=Xt(e,o),i=$6(n);return pg(e)===o||i&&r}function nZ(e,t){return{clientId:t,innerBlocks:iZ(e,t)}}function iZ(e,t=""){return Vn(e,t).map(o=>nZ(e,o))}var K6=(0,Zr.createSelector)(nZ,e=>[e.blocks.order]),Y6=(0,Zr.createSelector)(iZ,e=>[e.blocks.order]);function q6(e,t,o){let r=Vn(e,t),n=[];for(let i of r){let s=q6(e,i,o);o(e,i)?n.push({clientId:i,innerBlocks:s}):n.push(...s)}return n}function m2e(e,t){return q6(e,t,(o,r)=>Hs(o,r)!=="disabled")}function h2e(e,t){let o=e.blocks.parents.get(t);for(;o!==void 0;){let r=e.blocks.blockEditingModes.get(o);if(r)return r==="disabled";o=e.blocks.parents.get(o)}return!1}function g2e(e,t){return q6(e,t,(o,r)=>{if(Hs(o,r)!=="disabled")return!0;let n=o.blocks.blockEditingModes.get(r);if(n)return n!=="disabled";if(h2e(o,r))return!1;if(o.editedContentOnlySection){if(EB(o,r))return!1;if(!dd(o,r)||$6(Xt(o,r)))return!0}return!1})}var b2e=(0,Zr.createRegistrySelector)(()=>(0,Zr.createSelector)(m2e,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes])),y2e=(0,Zr.createRegistrySelector)(()=>(0,Zr.createSelector)(g2e,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes,e.blocks.parents,e.blocks.byClientId,e.blocks.attributes,e.blockListSettings,e.editedContentOnlySection,e.settings])),v2e=(0,Zr.createSelector)((e,t,o=!1)=>js(e,t,o).filter(r=>Hs(e,r)!=="disabled"),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function S2e(e){return e.removalPromptData}function k2e(e){return e.blockRemovalRules}var _2e=(0,Zr.createSelector)(e=>{let o=sv(e).reduce((r,n,i)=>(r[n]=i,r),{});return[...e.styleOverrides].sort((r,n)=>{let[,{clientId:i}]=r,[,{clientId:s}]=n,a=o[i]??-1,l=o[s]??-1;return a-l})},e=>[e.blocks.order,e.styleOverrides]);function x2e(e){return e.registeredInserterMediaCategories}var w2e=(0,Zr.createSelector)(e=>{let{settings:{inserterMediaCategories:t,allowedMimeTypes:o,enableOpenverseMediaCategory:r},registeredInserterMediaCategories:n}=e;if(!t&&!n.length||!o)return;let i=t?.map(({name:a})=>a)||[];return[...t||[],...(n||[]).filter(({name:a})=>!i.includes(a))].filter(a=>!r&&a.name==="openverse"?!1:Object.values(o).some(l=>l.startsWith(`${a.mediaType}/`)))},e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]),C2e=(0,Zr.createRegistrySelector)(e=>(0,Zr.createSelector)((t,o=null)=>{let{getAllPatterns:r}=H(e(rr)),n=r(),{allowedBlockTypes:i}=ud(t);return n.some(s=>{let{inserter:a=!0}=s;if(!a)return!1;let l=fg(s);return vw(l,i)&&l.every(({name:u})=>mg(t,u,o))})},(t,o)=>[...Sw(e)(t),...dp(e)(t,o)])),E2e=(0,Zr.createRegistrySelector)(e=>(0,Zr.createSelector)((t,o)=>{if(o?.startsWith("core/block/")){let r=parseInt(o.slice(11),10),n=H(e(rr)).getReusableBlocks().find(({id:i})=>i===r);return n?yw(n,t.settings[id]?.(e)??t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[qf]?.(e)??[]].find(({name:r})=>r===o)},(t,o)=>o?.startsWith("core/block/")?[H(e(rr)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[qf]?.(e)])),T2e=(0,Zr.createRegistrySelector)(e=>(0,Zr.createSelector)(t=>[...H(e(rr)).getReusableBlocks().map(o=>yw(o,t.settings[id]?.(e)??t.settings.__experimentalUserPatternCategories)),...t.settings.__experimentalBlockPatterns??[],...t.settings[qf]?.(e)??[]].filter((o,r,n)=>r===n.findIndex(i=>o.name===i.name)),Sw(e))),R2e=[],B2e=(0,Zr.createRegistrySelector)(e=>t=>{let o=t.settings[cT];return(o?o(e):t.settings.__experimentalReusableBlocks)??R2e});function P2e(e){return e.lastFocus}function I2e(e){return e.isDragging}function O2e(e){return e.expandedBlock}var Z6=(e,t)=>{let o=t,r;for(;!r&&(o=e.blocks.parents.get(o));)Wc(e,o)==="contentOnly"&&(r=o);return r};function sZ(e,t){let o=Xt(e,t);if(o==="core/block")return!0;let r=Ta(e,t),n=o==="core/template-part",i=e.settings?.[Xf],s=e.settings?.disableContentOnlyForUnsyncedPatterns,a=e.settings?.disableContentOnlyForTemplateParts;if((!s&&r?.metadata?.patternName||n&&!a)&&!i)return!0;let l=Wc(e,t)==="contentOnly",u=yr(e,t),d=Wc(e,u)==="contentOnly";return!!(l&&!d)}var dd=(e,t)=>{if(EB(e,t))return;let o=t,r;for(;o=e.blocks.parents.get(o);)sZ(e,o)&&(r=o);return r};function up(e,t){return EB(e,t)||dd(e,t)?!1:sZ(e,t)}function X6(e){return e.editedContentOnlySection}function EB(e,t){if(!e.editedContentOnlySection)return!1;if(e.editedContentOnlySection===t)return!0;let o=t;for(;o=e.blocks.parents.get(o);)if(e.editedContentOnlySection===o)return!0;return!1}var A2e=(0,Zr.createSelector)((e,t)=>t.reduce((o,r)=>(o[r]=e.blocks.attributes.get(r)?.style,o),{}),(e,t)=>[...t.map(o=>e.blocks.attributes.get(o)?.style)]);function pg(e){return e.settings?.[Zf]}function Q6(e){return e.zoomLevel==="auto-scaled"||e.zoomLevel<100}function L2e(e){return e.zoomLevel}function aZ(e,t,o=""){let r=Array.isArray(t)?t:[t],n=s=>r.every(a=>mg(e,a,s));if(!o){if(n(o))return o;let s=pg(e);return s&&n(s)?s:null}let i=o;for(;i!==null&&!n(i);)i=yr(e,i);return i}function N2e(e,t,o){let{allowedBlockTypes:r}=ud(e);if(!vw(fg(t),r))return null;let i=fg(t).map(({blockName:s})=>s);return aZ(e,i,o)}function M2e(e){return e.insertionPoint}var D2e=(e,t)=>{let o=Xt(e,t);if(!(0,iv.hasBlockSupport)(o,"visibility",!0))return!1;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility;return n===!1?!0:typeof n?.viewport=="object"&&n?.viewport!==null?Object.values(io).some(i=>rZ(e,i.key)&&n?.viewport?.[i.key]===!1):!1},J6=(e,t)=>{let o=Xt(e,t);return(0,iv.hasBlockSupport)(o,"visibility",!0)?e.blocks.attributes.get(t)?.metadata?.blockVisibility===!1:!1},V2e=(e,t)=>js(e,t).some(r=>J6(e,r)),lZ=(e,t,o)=>{if(J6(e,t))return!0;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility?.viewport;if(typeof n=="object"&&n!==null&&typeof o=="string"){let i=o.toLowerCase();return rZ(e,i)&&n?.[i]===!1}return!1},F2e=(e,t,o)=>js(e,t).some(n=>lZ(e,n,o));function z2e(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function cZ(e,t){return!!Ta(e,t)?.lock?.edit}function uZ(e,t){let o=Ta(e,t);if(o?.lock?.move!==void 0)return!!o?.lock?.move;let r=yr(e,t);return Wc(e,r)==="all"}function dZ(e,t){let o=Ta(e,t);if(o?.lock?.remove!==void 0)return!!o?.lock?.remove;let r=yr(e,t),n=Wc(e,r);return n==="all"||n==="insert"}function j2e(e,t){return cZ(e,t)||uZ(e,t)||dZ(e,t)}function H2e(e){return e.listViewContentPanelOpen}function U2e(e,t){return e.openedListViewPanels?.allOpen?!0:e.openedListViewPanels?.panels?.[t]===!0}function G2e(e){return e.listViewExpandRevision||0}function W2e(e,t){let o=Xt(e,t);if(o==="core/navigation")return!0;if(!(0,iv.hasBlockSupport)(o,"listView"))return!1;let r=av(e,t)?.allowedBlocks;return!(Vn(e,t).length===0&&(r===!1||Array.isArray(r)&&r.length===0))}function $2e(e){return e.viewportModalClientIds}function K2e(e){return e.requestedInspectorTab}var gw={viewport:"default",pseudo:"default"};function fZ(e){return e.styleStateViewport??gw.viewport}function Y2e(e){return e.isResponsiveEditing}var pZ=(0,Zr.createSelector)((e,t)=>({...e.selectedBlockStyleState?.clientId===t?e.selectedBlockStyleState.value??gw:gw,viewport:fZ(e)}),e=>[e.styleStateViewport,e.selectedBlockStyleState]);function q2e(e,t){let o=pZ(e,t);return o.viewport!==gw.viewport||o.pseudo!==gw.pseudo}function Z2e(e,t){return e.selectedBlockStyleState?.clientId!==t?!0:e.selectedBlockStyleState.showStateOnCanvas??!0}var _w=c(G(),1),Ko={user:"user",theme:"theme",directory:"directory"},kw={full:"fully",unsynced:"unsynced"},hg={name:"allPatterns",label:(0,_w._x)("All","patterns")},fd={name:"myPatterns",label:(0,_w.__)("My patterns")},lv={name:"core/starter-content",label:(0,_w.__)("Starter content")};function RB(e,t,o){let r=e.name.startsWith("core/block"),n=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===Ko.theme&&(r||n)||t===Ko.directory&&(r||!n)||t===Ko.user&&e.type!==Ko.user||o===kw.full&&e.syncStatus!==""||o===kw.unsynced&&e.syncStatus!=="unsynced"&&r)}var fp=Symbol("isFiltered"),mZ=new WeakMap,hZ=new WeakMap;function yw(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:Ko.user,title:e.title?.raw,categories:e.wp_pattern_category?.map(o=>{let r=t.find(({id:n})=>n===o);return r?r.slug:o}),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function X2e(e){let t=(0,gZ.parse)(e.content,{__unstableSkipMigrationLogs:!0});return t.length===1&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}function BB(e){let t=mZ.get(e);return t||(t=X2e(e),mZ.set(e,t)),t}function fg(e){let t=hZ.get(e);return t||(t=(0,bZ.parse)(e.content),t=t.filter(o=>o.blockName!==null),hZ.set(e,t)),t}var gg=(e,t,o=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):o,vw=(e,t)=>{if(typeof t=="boolean")return t;let o=[...e];for(;o.length>0;){let r=o.shift();if(!gg(t,r.name||r.blockName,!0))return!1;r.innerBlocks?.forEach(i=>{o.push(i)})}return!0},Sw=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[id]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[qf]?.(e),t.blockPatterns,H(e(rr)).getReusableBlocks()],dp=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,Hs(e,t),pg(e),up(e,t),dd(e,t)];function yZ(e,t){return typeof e=="string"&&typeof t=="string"?e>t:Number(e)>Number(t)}var Q2e=(e,t,o)=>(r,n)=>{let i,s;if(typeof e=="function"?(i=e(r),s=e(n)):(i=r[e],s=n[e]),yZ(i,s))return o==="asc"?1:-1;if(yZ(s,i))return o==="asc"?-1:1;let a=t.findIndex(u=>u===r),l=t.findIndex(u=>u===n);return a>l?1:l>a?-1:0};function $c(e,t,o="asc"){return e.concat().sort(Q2e(t,e,o))}var{isContentBlock:tz}=H(kt.privateApis),J2e=3600*1e3,eLe=24*3600*1e3,tLe=168*3600*1e3,Fn=[],oLe=new Set,kZ={[fp]:!0};function Xt(e,t){let o=e.blocks.byClientId.get(t);return o?o.name:null}function rLe(e,t){let o=e.blocks.byClientId.get(t);return!!o&&o.isValid}function Ta(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function md(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}var nLe=(0,_t.createSelector)((e,t)=>{let o=e.blocks.byClientId.get(t);return o?{...o,attributes:Ta(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function iLe(e,t){let o=!t||!AB(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(o)?.innerBlocks||Fn}function sLe(e,t){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),K6(e,t)}function aLe(e,t){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Y6(e,t)}var _Z=(0,_t.createSelector)((e,t)=>{t=Array.isArray(t)?[...t]:[t];let o=[];for(let n of t){let i=e.blocks.order.get(n);i&&o.push(...i)}let r=0;for(;r<o.length;){let n=o[r],i=e.blocks.order.get(n);i&&o.splice(r+1,0,...i),r++}return o},e=>[e.blocks.order]),sv=e=>_Z(e,""),lLe=(0,_t.createSelector)((e,t)=>{let o=sv(e);if(!t)return o.length;let r=0;for(let n of o)e.blocks.byClientId.get(n).name===t&&r++;return r},e=>[e.blocks.order,e.blocks.byClientId]),xZ=(0,_t.createSelector)((e,t)=>{if(!t)return Fn;let o=Array.isArray(t)?t:[t],n=sv(e).filter(i=>{let s=e.blocks.byClientId.get(i);return o.includes(s.name)});return n.length>0?n:Fn},e=>[e.blocks.order,e.blocks.byClientId]);function cLe(e,t){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),xZ(e,t)}var PB=(0,_t.createSelector)((e,t)=>(Array.isArray(t)?t:[t]).map(o=>md(e,o)),(e,t)=>(Array.isArray(t)?t:[t]).map(o=>e.blocks.tree.get(o))),uLe=(0,_t.createSelector)((e,t)=>PB(e,t).filter(Boolean).map(o=>o.name),(e,t)=>PB(e,t));function dLe(e,t){return Vn(e,t).length}function ww(e){return e.selection.selectionStart}function Cw(e){return e.selection.selectionEnd}function fLe(e){return e.selection.selectionStart.clientId}function pLe(e){return e.selection.selectionEnd.clientId}function mLe(e){let t=pp(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function hLe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return!!t.clientId&&t.clientId===o.clientId}function cv(e){let{selectionStart:t,selectionEnd:o}=e.selection,{clientId:r}=t;return!r||r!==o.clientId?null:r}function gLe(e){let t=cv(e);return t?md(e,t):null}function yr(e,t){return e.blocks.parents.get(t)??null}var js=(0,_t.createSelector)((e,t,o=!1)=>{let r=[],n=t;for(;n=e.blocks.parents.get(n);)r.push(n);return r.length?o?r:r.reverse():Fn},e=>[e.blocks.parents]),oz=(0,_t.createSelector)((e,t,o,r=!1)=>{let n=js(e,t,r),i=Array.isArray(o)?s=>o.includes(s):s=>o===s;return n.filter(s=>i(Xt(e,s)))},e=>[e.blocks.parents]);function bLe(e,t){let o=t,r;do r=o,o=e.blocks.parents.get(o);while(o);return r}function yLe(e,t){let o=cv(e),r=[...js(e,t),t],n=[...js(e,o),o],i,s=Math.min(r.length,n.length);for(let a=0;a<s&&r[a]===n[a];a++)i=r[a];return i}function rz(e,t,o=1){if(t===void 0&&(t=cv(e)),t===void 0&&(o<0?t=nz(e):t=CZ(e)),!t)return null;let r=yr(e,t);if(r===null)return null;let{order:n}=e.blocks,i=n.get(r),a=i.indexOf(t)+1*o;return a<0||a===i.length?null:i[a]}function vLe(e,t){return rz(e,t,-1)}function SLe(e,t){return rz(e,t,1)}function kLe(e){return e.initialPosition}function wZ(e){let{selectionStart:t,selectionEnd:o}=e.selection,r=t.clientId,n=o.clientId;if(!(!r||!n||r===n)){if(js(e,n).includes(r))return r;if(js(e,r).includes(n))return n}}var uv=(0,_t.createSelector)(e=>{let{selectionStart:t,selectionEnd:o}=e.selection;if(!t.clientId||!o.clientId)return Fn;if(t.clientId===o.clientId)return[t.clientId];let r=wZ(e);if(r)return[r];let n=yr(e,t.clientId);if(n===null)return Fn;let i=Vn(e,n),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId);return s>a?i.slice(a,s+1):i.slice(s,a+1)},e=>[e.blocks.order,e.blocks.parents,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function pp(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?Fn:uv(e)}var _Le=(0,_t.createSelector)(e=>{let t=pp(e);return t.length?t.map(o=>md(e,o)):Fn},e=>[...uv.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function nz(e){return pp(e)[0]||null}function CZ(e){let t=pp(e);return t[t.length-1]||null}function xLe(e,t){return nz(e)===t}function EZ(e,t){return pp(e).indexOf(t)!==-1}var wLe=(0,_t.createSelector)((e,t)=>{let o=t,r=!1;for(;o&&!r;)o=yr(e,o),r=EZ(e,o);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function CLe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:t.clientId||null}function ELe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:o.clientId||null}function TLe(e){if(wZ(e))return!0;let t=ww(e),o=Cw(e);return!t.attributeKey&&!o.attributeKey&&typeof t.offset>"u"&&typeof o.offset>"u"}function RLe(e){let t=ww(e),o=Cw(e);return!!t&&!!o&&t.clientId===o.clientId&&t.attributeKey===o.attributeKey&&t.offset===o.offset}function BLe(e){return uv(e).some(t=>{let o=Xt(e,t);return!(0,kt.getBlockType)(o).merge})}function PLe(e,t){let o=ww(e),r=Cw(e);if(o.clientId===r.clientId||!o.attributeKey||!r.attributeKey||typeof o.offset>"u"||typeof r.offset>"u")return!1;let n=yr(e,o.clientId),i=yr(e,r.clientId);if(n!==i)return!1;let s=Vn(e,n),a=s.indexOf(o.clientId),l=s.indexOf(r.clientId),u,d;a>l?(u=r,d=o):(u=o,d=r);let f=t?d.clientId:u.clientId,p=t?u.clientId:d.clientId,h=Xt(e,f);if(!(0,kt.getBlockType)(h).merge)return!1;let g=md(e,p);if(g.name===h)return!0;let b=(0,kt.switchToBlockType)(g,h);return b&&b.length}var ILe=e=>{let t=ww(e),o=Cw(e);if(t.clientId===o.clientId||!t.attributeKey||!o.attributeKey||typeof t.offset>"u"||typeof o.offset>"u")return Fn;let r=yr(e,t.clientId),n=yr(e,o.clientId);if(r!==n)return Fn;let i=Vn(e,r),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId),[l,u]=s>a?[o,t]:[t,o],d=md(e,l.clientId),f=md(e,u.clientId),p=d.attributes[l.attributeKey],h=f.attributes[u.attributeKey],m=(0,pd.create)({html:p}),g=(0,pd.create)({html:h});return m=(0,pd.remove)(m,0,l.offset),g=(0,pd.remove)(g,u.offset,g.text.length),[{...d,attributes:{...d.attributes,[l.attributeKey]:(0,pd.toHTMLString)({value:m})}},{...f,attributes:{...f.attributes,[u.attributeKey]:(0,pd.toHTMLString)({value:g})}}]};function Vn(e,t){return e.blocks.order.get(t||"")||Fn}function TZ(e,t){let o=yr(e,t);return Vn(e,o).indexOf(t)}function RZ(e,t){let{selectionStart:o,selectionEnd:r}=e.selection;return o.clientId!==r.clientId?!1:o.clientId===t}function BZ(e,t,o=!1){let r=uv(e);return r.length?o?r.some(n=>js(e,n,!0).includes(t)):r.some(n=>yr(e,n)===t):!1}function PZ(e,t,o=!1){return Vn(e,t).some(r=>iz(e,r)||o&&PZ(e,r,o))}function OLe(e,t){if(!t)return!1;let o=pp(e),r=o.indexOf(t);return r>-1&&r<o.length-1}function ALe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId!==o.clientId}function LLe(e){return e.isMultiSelecting}function NLe(e){return e.isSelectionEnabled}function MLe(e,t){return e.blocksMode[t]||"visual"}function DLe(e){return e.isTyping}function IZ(e){return!!e.draggedBlocks.length}function VLe(e){return e.draggedBlocks}function iz(e,t){return e.draggedBlocks.includes(t)}function FLe(e,t){return IZ(e)?js(e,t).some(r=>iz(e,r)):!1}function zLe(){return(0,Us.default)('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}var jLe=(0,_t.createSelector)(e=>{let t,o,{insertionCue:r,selection:{selectionEnd:n}}=e;if(r!==null)return r;let{clientId:i}=n;return i?(t=yr(e,i)||void 0,o=TZ(e,n.clientId)+1):o=Vn(e).length,{rootClientId:t,index:o}},e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function HLe(e){return e.insertionCue!==null}function ULe(e){return e.template.isValid}function GLe(e){return e.settings.template}function Wc(e,t){if(!t)return e.settings.templateLock??!1;let o=av(e,t)?.templateLock;return o==="contentOnly"&&e.editedContentOnlySection===t?!1:o??!1}var sz=(e,t,o=null)=>{let r,n;if(t&&typeof t=="object"?(r=t,n=t.name):(r=(0,kt.getBlockType)(t),n=t),!r)return!1;let{allowedBlockTypes:i}=ud(e);if(!gg(i,n,!0))return!1;let a=(Array.isArray(r.parent)?r.parent:[]).concat(Array.isArray(r.ancestor)?r.ancestor:[]);if(a.length>0){if(a.includes("core/post-content"))return!0;let l=o,u=!1;do{if(a.includes(Xt(e,l))){u=!0;break}l=e.blocks.parents.get(l)}while(l);return u}return!0},Ew=(e,t,o=null)=>{if(e.settings.isPreviewMode||!sz(e,t,o))return!1;let r;t&&typeof t=="object"?(r=t,t=r.name):r=(0,kt.getBlockType)(t);let n=Wc(e,o);if(n&&n!=="contentOnly"||az(e,o))return!1;let i=Hs(e,o??""),s=!!up(e,o),a=s?o:dd(e,o),l=!!a;if(i==="disabled"&&(!l||t!==(0,kt.getDefaultBlockName)()))return!1;let u=av(e,o);if(o&&u===void 0)return!1;let d=tz(t);if(l&&!d||l&&Xt(e,a)==="core/block")return!1;if(l&&(s||i==="contentOnly"||i==="disabled")&&!bw(e,t,o)){let S=(0,kt.getDefaultBlockName)();if(t===S){if(!Vn(e,o).some(w=>Xt(e,w)===S))return!1}else return!1}let f=Xt(e,o),h=(0,kt.getBlockType)(f)?.allowedBlocks,m=gg(h,t);if(m!==!1){let S=u?.allowedBlocks,_=gg(S,t);_!==null&&(m=_)}let g=r.parent,b=gg(g,f),v=!0,y=r.ancestor;y&&(v=[o,...js(e,o)].some(_=>gg(y,Xt(e,_))));let k=v&&(m===null&&b===null||m===!0||b===!0);return k&&(0,SZ.applyFilters)("blockEditor.__unstableCanInsertBlockType",k,r,o,{getBlock:md.bind(null,e),getBlockParentsByBlockName:oz.bind(null,e)})},mg=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)(Ew,(t,o,r)=>dp(e)(t,r)));function WLe(e,t,o=null){return t.every(r=>mg(e,Xt(e,r),o))}function az(e,t){return!!t&&Xt(e,t)==="core/html"}function lz(e,t){if(e.settings.isPreviewMode||az(e,yr(e,t)))return!1;let o=Ta(e,t);if(o===null)return!0;if(o.lock?.remove!==void 0)return!o.lock.remove;let r=yr(e,t),n=Wc(e,r);if(n&&n!=="contentOnly")return!1;let i=!!up(e,r),s=i?r:dd(e,r),a=!!s,l=tz(Xt(e,t));if(a&&!l||a&&Xt(e,s)==="core/block")return!1;let u=Hs(e,r),d=Xt(e,t),f=(0,kt.getDefaultBlockName)();return a&&(i||d===f||u==="contentOnly")&&!bw(e,Xt(e,t),r)?d===f?Vn(e,r).filter(m=>Xt(e,m)===f).length>1:!1:u!=="disabled"}function OZ(e,t){return t.every(o=>lz(e,o))}function AZ(e,t){if(e.settings.isPreviewMode||az(e,yr(e,t)))return!1;let o=Ta(e,t);if(o===null)return!0;if(o.lock?.move!==void 0)return!o.lock.move;let r=yr(e,t);if(Wc(e,r)==="all")return!1;let i=!!dd(e,t),s=tz(Xt(e,t));if(i&&!s)return!1;let a=!!up(e,r),l=Hs(e,r);return i&&(a||l==="contentOnly")&&!bw(e,Xt(e,t),r)?!1:Hs(e,r)!=="disabled"}function $Le(e,t){return t.every(o=>AZ(e,o))}function LZ(e,t){if(e.settings.isPreviewMode)return!1;let o=Ta(e,t);if(o===null)return!0;let{lock:r}=o;return!r?.edit}function KLe(e,t){return e.settings.isPreviewMode||!(0,kt.hasBlockSupport)(t,"lock",!0)?!1:!!e.settings?.canLockBlocks}function IB(e,t){return e.preferences.insertUsage?.[t]??null}var xw=(e,t,o)=>(0,kt.hasBlockSupport)(t,"inserter",!0)?Ew(e,t.name,o):!1,YLe=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=IB(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,description:o.description||t.description,category:o.category||t.category,example:o.hasOwnProperty("example")?o.example:t.example,initialAttributes:{...t.initialAttributes,...o.attributes},innerBlocks:o.innerBlocks,innerContent:o.innerContent,keywords:o.keywords||t.keywords,frecency:OB(n,i),isSearchOnly:o.isSearchOnly}},OB=(e,t)=>{if(!e)return t;let o=Date.now()-e;switch(!0){case o<J2e:return t*4;case o<eLe:return t*2;case o<tLe:return t/2;default:return t/4}},NZ=(e,{buildScope:t="inserter"})=>o=>{let r=o.name,n=!1;(0,kt.hasBlockSupport)(o.name,"multiple",!0)||(n=PB(e,sv(e)).some(({name:f})=>f===o.name));let{time:i,count:s=0}=IB(e,r)||{},a={id:r,name:o.name,title:o.title,icon:o.icon,isDisabled:n,frecency:OB(i,s)};if(t==="transform")return a;let l=(0,kt.getBlockVariations)(o.name,"inserter"),u=(0,kt.getBlockVariations)(o.name,"block"),d=[...l,...u.filter(f=>o.name==="core/heading"&&["h1","h2","h3","h4","h5","h6"].includes(f.name)).map(f=>({...f,isSearchOnly:!0}))];return{...a,initialAttributes:{},description:o.description,category:o.category,keywords:o.keywords,parent:o.parent,ancestor:o.ancestor,variations:d,example:o.example,utility:1}},qLe=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=IB(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,frecency:OB(n,i),variationName:o.name}},ZLe=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o=null,r=kZ)=>{let n=h=>{let m=h.wp_pattern_sync_status?jc:{src:jc,foreground:"var(--wp-block-synced-color)"},g=yw(h),{time:b,count:v=0}=IB(t,g.name)||{},y=OB(b,v);return{id:g.name,name:"core/block",initialAttributes:{ref:h.id},title:g.title,icon:m,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:y,content:g.content,get blocks(){return BB(g).blocks},syncStatus:g.syncStatus}},i=Ew(t,"core/block",o)?H(e(rr)).getReusableBlocks().map(n):[],s=NZ(t,{buildScope:"inserter"}),a=(0,kt.getBlockTypes)().filter(h=>(0,kt.hasBlockSupport)(h,"inserter",!0)).map(s);if(r[fp]!==!1)a=a.filter(h=>xw(t,h,o));else{let{getClosestAllowedInsertionPoint:h}=H(e(rr));a=a.filter(m=>sz(t,m,o)&&h(m.name,o)!==null).map(m=>({...m,isAllowedInCurrentRoot:xw(t,m,o)}))}let l=a.reduce((h,m)=>{let{variations:g=[]}=m;if(g.some(({isDefault:b})=>b)||h.push(m),g.length){let b=YLe(t,m);h.push(...g.map(b))}return h},[]),u=(h,m)=>{let{core:g,noncore:b}=h;return(m.name.startsWith("core/")?g:b).push(m),h},{core:d,noncore:f}=l.reduce(u,{core:[],noncore:[]});return[...[...d,...f],...i]},(t,o)=>[(0,kt.getBlockTypes)(),H(e(rr)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...dp(e)(t,o)])),XLe=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o,r=null)=>{let n=Array.isArray(o)?o:[o],i=NZ(t,{buildScope:"transform"}),s=(0,kt.getBlockTypes)().filter(u=>xw(t,u,r)).map(i),a=Object.fromEntries(Object.entries(s).map(([,u])=>[u.name,u])),l=(0,kt.getPossibleBlockTransformations)(n).reduce((u,d)=>{let f=a[d?.name];if(!f)return u;let{variationName:p}=d;if(!p)return u.push(f),u;let h=(0,kt.getBlockVariations)(f.name,"transform")?.find(({name:m})=>m===p);return h?(u.push(qLe(t,f)(h)),u):(u.push(f),u)},[]);return $c(l,u=>u.frecency,"desc")},(t,o,r)=>[(0,kt.getBlockTypes)(),t.preferences.insertUsage,...dp(e)(t,r)])),QLe=(e,t=null)=>(0,kt.getBlockTypes)().some(n=>xw(e,n,t))?!0:Ew(e,"core/block",t),ez=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o=null)=>{if(!o)return;let r=(0,kt.getBlockTypes)().filter(i=>xw(t,i,o));return Ew(t,"core/block",o)&&r.push("core/block"),r},(t,o)=>[(0,kt.getBlockTypes)(),...dp(e)(t,o)])),JLe=(0,_t.createSelector)((e,t=null)=>((0,Us.default)('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),ez(e,t)),(e,t)=>ez.getDependants(e,t));function MZ(e,t=null){if(!t)return;let{defaultBlock:o,directInsert:r}=e.blockListSettings.get(t)??{};if(!(!o||!r))return o}function eNe(e,t=null){return(0,Us.default)('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),MZ(e,t)}var tNe=(0,_t.createRegistrySelector)(e=>(t,o)=>{let r=H(e(rr)).getPatternBySlug(o);return r?BB(r):null}),cz=e=>(t,o)=>[...Sw(e)(t),...dp(e)(t,o)],vZ=new WeakMap;function oNe(e){let t=vZ.get(e);return t||(t={...e,get blocks(){return BB(e).blocks}},vZ.set(e,t)),t}var rNe=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o=null,r=kZ)=>{let{getAllPatterns:n}=H(e(rr)),i=n(),{allowedBlockTypes:s}=ud(t);return i.filter(({inserter:d=!0})=>!!d).map(oNe).filter(d=>vw(fg(d),s)).filter(d=>fg(d).every(({blockName:f})=>r[fp]!==!1?mg(t,f,o):sz(t,f,o)))},cz(e))),nNe=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o,r=null)=>{if(!o)return Fn;let n=e(rr).__experimentalGetAllowedPatterns(r),i=Array.isArray(o)?o:[o],s=n.filter(a=>a?.blockTypes?.some?.(l=>i.includes(l)));return s.length===0?Fn:s},(t,o,r)=>cz(e)(t,r))),iNe=(0,_t.createRegistrySelector)(e=>((0,Us.default)('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(rr).getPatternsByBlockTypes)),sNe=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o,r=null)=>{if(!o||o.some(({clientId:i,innerBlocks:s})=>s.length||AB(t,i)))return Fn;let n=Array.from(new Set(o.map(({name:i})=>i)));return e(rr).getPatternsByBlockTypes(n,r)},(t,o,r)=>cz(e)(t,r)));function av(e,t){return e.blockListSettings.get(t)}function ud(e){return e.settings}function aNe(e){return e.blocks.isPersistentChange}function lNe(e){return e.blocks.lastBlockChangeHistoryMode?e.blocks.lastBlockChangeHistoryMode:e.blocks.isPersistentChange===!1?"merge":"persistent"}var cNe=(0,_t.createSelector)((e,t=[])=>{let o={};for(let r of t){let n=av(e,r);n&&(o[r]=n)}return o},e=>[e.blockListSettings]),uNe=(0,_t.createRegistrySelector)(e=>(0,_t.createSelector)((t,o)=>{(0,Us.default)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});let r=H(e(rr)).getReusableBlocks().find(n=>n.id===o);return r?r.title?.raw:null},()=>[H(e(rr)).getReusableBlocks()]));function dNe(e){return e.blocks.isIgnoredChange}function fNe(e){return e.lastBlockAttributesChange}function pNe(){return(0,Us.default)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function mNe(e){return!!e.automaticChangeStatus}function hNe(e,t){return e.highlightedBlock===t}function AB(e,t){return e.blocks.controlledInnerBlocks.has(t)}var gNe=(0,_t.createSelector)((e,t)=>{if(!t.length)return null;let o=cv(e);if(t.includes(Xt(e,o)))return o;let r=pp(e),n=oz(e,o||r[0],t);return n?n[n.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function bNe(e,t,o){let{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===o}function yNe(e,t){return e.blockVisibility?.[t]??!0}function vNe(){(0,Us.default)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var SNe=(0,_t.createSelector)(e=>{let t=new Set(Object.keys(e.blockVisibility).filter(o=>e.blockVisibility[o]));return t.size===0?oLe:t},e=>[e.blockVisibility]);function DZ(e,t){if(Hs(e,t)!=="default")return!1;if(!LZ(e,t))return!0;if(Q6(e)){let n=pg(e);if(n){if(Vn(e,n)?.includes(t))return!0}else if(t&&!yr(e,t))return!0}return((0,kt.hasBlockSupport)(Xt(e,t),"__experimentalDisableBlockOverlay",!1)?!1:AB(e,t))&&!RZ(e,t)&&!BZ(e,t,!0)}function kNe(e,t){let o=e.blocks.parents.get(t);for(;o;){if(DZ(e,o))return!0;o=e.blocks.parents.get(o)}return!1}function Hs(e,t=""){return t===null&&(t=""),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blocks.blockEditingModes.has(t)?e.blocks.blockEditingModes.get(t):"default"}var _Ne=(0,_t.createRegistrySelector)(e=>(t,o="")=>{let r=o||cv(t);if(!r||up(t,r))return!1;let{getGroupingBlockName:n}=e(kt.store),i=md(t,r),s=n();return i&&(i.name===s||(0,kt.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&lz(t,r)}),xNe=(0,_t.createRegistrySelector)(e=>(t,o=Fn)=>{let{getGroupingBlockName:r}=e(kt.store),n=r(),i=o?.length?o:uv(t),s=i?.length?yr(t,i[0]):void 0;return mg(t,n,s)&&i.length&&OZ(t,i)}),wNe=(e,t)=>((0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Z6(e,t));function CNe(e){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),X6(e)}var LB={};Ir(LB,{__experimentalUpdateSettings:()=>dz,clearBlockRemovalPrompt:()=>INe,clearRequestedInspectorTab:()=>qNe,closeListViewContentPanel:()=>WNe,deleteStyleOverride:()=>LNe,editContentOnlySection:()=>pz,ensureDefaultBlock:()=>HZ,expandBlock:()=>VNe,hideBlockInterface:()=>RNe,hideViewportModal:()=>KNe,openListViewContentPanel:()=>GNe,privateRemoveBlocks:()=>fz,requestInspectorTab:()=>YNe,resetZoomLevel:()=>HNe,setBlockRemovalRules:()=>ONe,setInsertionPoint:()=>FNe,setLastFocus:()=>NNe,setResponsiveEditing:()=>JNe,setSelectedBlockStyleState:()=>ZNe,setSelectedBlockStyleStateCanvasPreview:()=>XNe,setStyleOverride:()=>ANe,setStyleStateViewport:()=>QNe,setZoomLevel:()=>jNe,showBlockInterface:()=>BNe,showViewportModal:()=>$Ne,startDragging:()=>MNe,stopDragging:()=>DNe,stopEditingContentOnlySection:()=>zNe,toggleBlockSpotlight:()=>UNe});var FZ=c(Bt(),1),zZ=c(Xr(),1),jZ=c(G(),1),ENe=e=>Array.isArray(e)?e:[e],TNe=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function dz(e,{stripExperimentalSettings:t=!1,reset:o=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,FZ.default)("__unstableIsPreviewMode argument in wp.data.dispatch('core/block-editor').updateSettings",{since:"6.8",alternative:"isPreviewMode"}),r={...r},r.isPreviewMode=r.__unstableIsPreviewMode,delete r.__unstableIsPreviewMode);let n=r;if(t){n={};for(let i in r)TNe.includes(i)||(n[i]=r[i])}return{type:"UPDATE_SETTINGS",settings:n,reset:o}}function RNe(){return{type:"HIDE_BLOCK_INTERFACE"}}function BNe(){return{type:"SHOW_BLOCK_INTERFACE"}}var fz=(e,t=!0,o=!1)=>({select:r,dispatch:n,registry:i})=>{if(!e||!e.length||(e=ENe(e),!r.canRemoveBlocks(e)))return;let a=!o&&r.getBlockRemovalRules();if(a){let u=function(h){let m=[],g=[...h];for(;g.length;){let{innerBlocks:b,...v}=g.shift();g.push(...b),m.push(v)}return m};var l=u;let d=e.map(r.getBlock),f=u(d),p;for(let h of a)if(p=h.callback(f),p){n(PNe(e,t,p));return}}t&&n.selectPreviousBlock(e[0],t),i.batch(()=>{n({type:"REMOVE_BLOCKS",clientIds:e}),n(HZ())})},HZ=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;let{__unstableHasCustomAppender:r}=e.getSettings();r||t.insertDefaultBlock()};function PNe(e,t,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:o}}function INe(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function ONe(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function ANe(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function LNe(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function NNe(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function MNe(){return{type:"START_DRAGGING"}}function DNe(){return{type:"STOP_DRAGGING"}}function VNe(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function FNe(e){return{type:"SET_INSERTION_POINT",value:e}}function pz(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function zNe(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var jNe=(e=100)=>({select:t,dispatch:o})=>{if(e!==100){let r=t.getBlockSelectionStart(),n=t.getSectionRootClientId();if(r){let i;if(n){let s=t.getBlockOrder(n);s?.includes(r)?i=r:i=t.getBlockParents(r).find(a=>s.includes(a))}else i=t.getBlockHierarchyRootClientId(r);i?o.selectBlock(i):o.clearSelectedBlock(),(0,zZ.speak)((0,jZ.__)("You are currently in zoom-out mode."))}}o({type:"SET_ZOOM_LEVEL",zoom:e})};function HNe(){return{type:"RESET_ZOOM_LEVEL"}}function UNe(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function GNe(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function WNe(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function $Ne(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function KNe(){return{type:"HIDE_VIEWPORT_MODAL"}}function YNe(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function qNe(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function ZNe(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function XNe(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}function QNe(e){return{type:"SET_STYLE_STATE_VIEWPORT",viewport:e}}function JNe(e){return{type:"SET_RESPONSIVE_EDITING",enabled:e}}var gz={};Ir(gz,{__unstableDeleteSelection:()=>xMe,__unstableExpandSelection:()=>CMe,__unstableIncrementListViewExpandRevision:()=>iDe,__unstableMarkAutomaticChange:()=>UMe,__unstableMarkLastChangeAsPersistent:()=>jMe,__unstableMarkNextChangeAsNotPersistent:()=>HMe,__unstableSaveReusableBlock:()=>zMe,__unstableSetAllListViewPanelsOpen:()=>rDe,__unstableSetEditorMode:()=>GMe,__unstableSetOpenListViewPanel:()=>oDe,__unstableSetTemporarilyEditingAsBlocks:()=>QMe,__unstableSplitSelection:()=>wMe,__unstableToggleListViewPanel:()=>nDe,clearSelectedBlock:()=>fMe,duplicateBlocks:()=>$Me,enterFormattedText:()=>LMe,exitFormattedText:()=>NMe,flashBlock:()=>qMe,hideInsertionPoint:()=>SMe,hoverBlock:()=>sMe,insertAfterBlock:()=>YMe,insertBeforeBlock:()=>KMe,insertBlock:()=>yMe,insertBlocks:()=>QZ,insertDefaultBlock:()=>DMe,mergeBlocks:()=>EMe,moveBlockToPosition:()=>bMe,moveBlocksDown:()=>hMe,moveBlocksToPosition:()=>XZ,moveBlocksUp:()=>gMe,multiSelect:()=>dMe,receiveBlocks:()=>oMe,registerInserterMediaCategory:()=>JMe,removeBlock:()=>TMe,removeBlocks:()=>JZ,replaceBlock:()=>mMe,replaceBlocks:()=>qZ,replaceInnerBlocks:()=>RMe,resetBlocks:()=>eMe,resetSelection:()=>tMe,selectBlock:()=>iMe,selectNextBlock:()=>lMe,selectPreviousBlock:()=>aMe,selectionChange:()=>MMe,setBlockEditingMode:()=>eDe,setBlockMovingClientId:()=>WMe,setBlockVisibility:()=>XMe,setHasControlledInnerBlocks:()=>ZMe,setTemplateValidity:()=>kMe,showInsertionPoint:()=>vMe,startDraggingBlocks:()=>OMe,startMultiSelect:()=>cMe,startTyping:()=>PMe,stopDraggingBlocks:()=>AMe,stopMultiSelect:()=>uMe,stopTyping:()=>IMe,synchronizeTemplate:()=>_Me,toggleBlockHighlight:()=>hz,toggleBlockMode:()=>BMe,toggleSelection:()=>pMe,unsetBlockEditingMode:()=>tDe,updateBlock:()=>nMe,updateBlockAttributes:()=>rMe,updateBlockListSettings:()=>VMe,updateSettings:()=>FMe,validateBlocksToTemplate:()=>YZ});var Je=c(ce(),1),NB=c(Xr(),1),mp=c(G(),1),$Z=c(ss(),1),yo=c($o(),1),gd=c(Bt(),1),KZ=c(dv(),1);var WZ=c($o(),1),hd="\x86";function Tw(e){if(e)return Object.keys(e).find(t=>{let o=e[t];return(typeof o=="string"||o instanceof WZ.RichTextData)&&o.toString().indexOf(hd)!==-1})}function mz(e){for(let[t,o]of Object.entries(e.attributes))if(o.source==="rich-text"||o.source==="html")return t}var fv=e=>Array.isArray(e)?e:[e],eMe=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(YZ(e))},YZ=e=>({select:t,dispatch:o})=>{let r=t.getTemplate(),n=t.getTemplateLock(),i=!r||n!=="all"||(0,Je.doBlocksMatchTemplate)(e,r),s=t.isValidTemplate();if(i!==s)return o.setTemplateValidity(i),i};function tMe(e,t,o){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:o}}function oMe(e){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function rMe(e,t,o={uniqueByBlock:!1}){return typeof o=="boolean"&&(o={uniqueByBlock:o}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:fv(e),attributes:t,options:o}}function nMe(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function iMe(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function sMe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var aMe=(e,t=!1)=>({select:o,dispatch:r})=>{let n=o.getPreviousBlockClientId(e);if(n)r.selectBlock(n,-1);else if(t){let i=o.getBlockRootClientId(e);if(i)r.selectBlock(i,-1);else{let s=o.getNextBlockClientId(e);s&&r.selectBlock(s,0)}}},lMe=e=>({select:t,dispatch:o})=>{let r=t.getNextBlockClientId(e);r&&o.selectBlock(r)};function cMe(){return{type:"START_MULTI_SELECT"}}function uMe(){return{type:"STOP_MULTI_SELECT"}}var dMe=(e,t,o=0)=>({select:r,dispatch:n})=>{let i=r.getBlockRootClientId(e),s=r.getBlockRootClientId(t);if(i!==s)return;n({type:"MULTI_SELECT",start:e,end:t,initialPosition:o});let a=r.getSelectedBlockCount();(0,NB.speak)((0,mp.sprintf)((0,mp._n)("%s block selected.","%s blocks selected.",a),a),"assertive")};function fMe(){return{type:"CLEAR_SELECTED_BLOCK"}}function pMe(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var qZ=(e,t,o,r=0,n)=>({select:i,dispatch:s,registry:a})=>{e=fv(e),t=fv(t);let l=i.getBlockRootClientId(e[0]);for(let u=0;u<t.length;u++){let d=t[u];if(!i.canInsertBlockType(d.name,l))return}a.batch(()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:o,initialPosition:r,meta:n}),s.ensureDefaultBlock()})};function mMe(e,t){return qZ(e,t)}var ZZ=e=>(t,o)=>({select:r,dispatch:n})=>{r.canMoveBlocks(t)&&n({type:e,clientIds:fv(t),rootClientId:o})},hMe=ZZ("MOVE_BLOCKS_DOWN"),gMe=ZZ("MOVE_BLOCKS_UP"),XZ=(e,t="",o="",r)=>({select:n,dispatch:i})=>{n.canMoveBlocks(e)&&(t!==o&&(!n.canRemoveBlocks(e)||!n.canInsertBlocks(e,o))||i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:o,clientIds:e,index:r}))};function bMe(e,t="",o="",r){return XZ([e],t,o,r)}function yMe(e,t,o,r,n,i){return QZ([e],t,o,r,n,i)}var QZ=(e,t,o,r=!0,n=0,i)=>({select:s,dispatch:a})=>{n!==null&&typeof n=="object"&&(i=n,n=0,(0,gd.default)("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=fv(e);let l=[];for(let u of e)s.canInsertBlockType(u.name,o)&&l.push(u);l.length&&a({type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:o,time:Date.now(),updateSelection:r,initialPosition:r?n:null,meta:i})};function vMe(e,t,o={}){let{__unstableWithInserter:r,operation:n,nearestSide:i}=o;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:n,nearestSide:i}}var SMe=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function kMe(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var _Me=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});let o=e.getBlocks(),r=e.getTemplate(),n=(0,Je.synchronizeBlocksWithTemplate)(o,r);t.resetBlocks(n)},xMe=e=>({registry:t,select:o,dispatch:r})=>{let n=o.getSelectionStart(),i=o.getSelectionEnd();if(n.clientId===i.clientId)return;if(!n.attributeKey||!i.attributeKey||typeof n.offset>"u"||typeof i.offset>"u")return!1;let s=o.getBlockRootClientId(n.clientId),a=o.getBlockRootClientId(i.clientId);if(s!==a)return;let l=o.getBlockOrder(s),u=l.indexOf(n.clientId),d=l.indexOf(i.clientId),f,p;u>d?(f=i,p=n):(f=n,p=i);let h=e?p:f,m=o.getBlock(h.clientId),g=(0,Je.getBlockType)(m.name);if(!g.merge)return;let b=f,v=p,y=o.getBlock(b.clientId),k=o.getBlock(v.clientId),S=y.attributes[b.attributeKey],_=k.attributes[v.attributeKey],x=(0,yo.create)({html:S}),w=(0,yo.create)({html:_});x=(0,yo.remove)(x,b.offset,x.text.length),w=(0,yo.insert)(w,hd,0,v.offset);let T=(0,Je.cloneBlock)(y,{[b.attributeKey]:(0,yo.toHTMLString)({value:x})}),R=(0,Je.cloneBlock)(k,{[v.attributeKey]:(0,yo.toHTMLString)({value:w})}),B=e?T:R,I=y.name===k.name?[B]:(0,Je.switchToBlockType)(B,g.name);if(!I||!I.length)return;let O;if(e){let j=I.pop();O=g.merge(j.attributes,R.attributes)}else{let j=I.shift();O=g.merge(T.attributes,j.attributes)}let P=Tw(O),A=O[P],M=(0,yo.create)({html:A}),z=M.text.indexOf(hd),V=(0,yo.remove)(M,z,z+1),L=(0,yo.toHTMLString)({value:V});O[P]=L;let D=o.getSelectedBlockClientIds(),N=[...e?I:[],{...m,attributes:{...m.attributes,...O},innerBlocks:k.innerBlocks},...e?[]:I];t.batch(()=>{r.selectionChange(m.clientId,P,z,z),r.replaceBlocks(D,N,0,o.getSelectedBlocksInitialCaretPosition())})},wMe=(e=[])=>({registry:t,select:o,dispatch:r})=>{let n=o.getSelectionStart(),i=o.getSelectionEnd(),s=o.getBlockRootClientId(n.clientId),a=o.getBlockRootClientId(i.clientId);if(s!==a)return;let l=o.getBlockOrder(s),u=l.indexOf(n.clientId),d=l.indexOf(i.clientId),f,p;u>d?(f=i,p=n):(f=n,p=i);let h=f,m=p,g=o.getBlock(h.clientId),b=o.getBlock(m.clientId),v=(0,Je.getBlockType)(g.name),y=(0,Je.getBlockType)(b.name),k=typeof h.attributeKey=="string"?h.attributeKey:mz(v),S=typeof m.attributeKey=="string"?m.attributeKey:mz(y),_=o.getBlockAttributes(h.clientId);if(_?.metadata?.bindings?.[k]){if(e.length){let{createWarningNotice:J}=t.dispatch($Z.store);J((0,mp.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}r.insertAfterBlock(h.clientId);return}if(!k||!S||typeof n.offset>"u"||typeof i.offset>"u")return;if(h.clientId===m.clientId&&k===S&&h.offset===m.offset){if(e.length){if((0,Je.isUnmodifiedDefaultBlock)(g,"content")){r.replaceBlocks([h.clientId],e,e.length-1,-1);return}}else if(!o.getBlockOrder(h.clientId).length){let J=function(){let ee=(0,Je.getDefaultBlockName)();return o.canInsertBlockType(ee,s)?(0,Je.createBlock)(ee):(0,Je.createBlock)(o.getBlockName(h.clientId))};var w=J;let te=_[k].length;if(h.offset===0&&te){r.insertBlocks([J()],o.getBlockIndex(h.clientId),s,!1);return}if(h.offset===te){r.insertBlocks([J()],o.getBlockIndex(h.clientId)+1,s);return}}}let T=g.attributes[k],R=b.attributes[S],B=(0,yo.create)({html:T}),I=(0,yo.create)({html:R});B=(0,yo.remove)(B,h.offset,B.text.length),I=(0,yo.remove)(I,0,m.offset);let O={...g,innerBlocks:g.clientId===b.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[k]:(0,yo.toHTMLString)({value:B})}},P={...b,clientId:g.clientId===b.clientId?(0,Je.createBlock)(b.name).clientId:b.clientId,attributes:{...b.attributes,[S]:(0,yo.toHTMLString)({value:I})}},A=(0,Je.getDefaultBlockName)();if(g.clientId===b.clientId&&A&&P.name!==A&&o.canInsertBlockType(A,s)){let J=(0,Je.switchToBlockType)(P,A);J?.length===1&&(P=J[0])}if(!e.length){r.replaceBlocks(o.getSelectedBlockClientIds(),[O,P]);return}let M,z=[],V=[...e],L=V.shift(),D=(0,Je.getBlockType)(O.name),N=D.merge&&L.name===D.name?[L]:(0,Je.switchToBlockType)(L,D.name);if(N?.length){let J=N.shift();O={...O,attributes:{...O.attributes,...D.merge(O.attributes,J.attributes)}},z.push(O),M={clientId:O.clientId,attributeKey:k,offset:(0,yo.create)({html:O.attributes[k]}).text.length},V.unshift(...N)}else(0,Je.isUnmodifiedBlock)(O)||z.push(O),z.push(L);let j=V.pop(),X=(0,Je.getBlockType)(P.name);if(V.length&&z.push(...V),j){let J=X.merge&&X.name===j.name?[j]:(0,Je.switchToBlockType)(j,X.name);if(J?.length){let te=J.pop();z.push({...P,attributes:{...P.attributes,...X.merge(te.attributes,P.attributes)}}),z.push(...J),M={clientId:P.clientId,attributeKey:S,offset:(0,yo.create)({html:te.attributes[S]}).text.length}}else z.push(j),(0,Je.isUnmodifiedBlock)(P)||z.push(P)}else(0,Je.isUnmodifiedBlock)(P)||z.push(P);t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),z,z.length-1,0),M&&r.selectionChange(M.clientId,M.attributeKey,M.offset,M.offset)})},CMe=()=>({select:e,dispatch:t})=>{let o=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},EMe=(e,t)=>({registry:o,select:r,dispatch:n})=>{let i=e,s=t,a=r.getBlock(i),l=(0,Je.getBlockType)(a.name);if(!l||r.getBlockEditingMode(i)==="disabled"||r.getBlockEditingMode(s)==="disabled")return;let u=r.getBlock(s);if(!l.merge&&(0,Je.getBlockSupport)(a.name,"__experimentalOnMerge")){let _=(0,Je.switchToBlockType)(u,l.name);if(_?.length!==1){n.selectBlock(a.clientId);return}let[x]=_;if(x.innerBlocks.length<1){n.selectBlock(a.clientId);return}o.batch(()=>{n.insertBlocks(x.innerBlocks,void 0,i),n.removeBlock(s),n.selectBlock(x.innerBlocks[0].clientId);let w=r.getNextBlockClientId(i);if(w&&r.getBlockName(i)===r.getBlockName(w)){let T=r.getBlockAttributes(i),R=r.getBlockAttributes(w);Object.keys(T).every(B=>T[B]===R[B])&&(n.moveBlocksToPosition(r.getBlockOrder(w),w,i),n.removeBlock(w,!1))}});return}if((0,Je.isUnmodifiedDefaultBlock)(a)){n.removeBlock(i,r.isBlockSelected(i));return}if((0,Je.isUnmodifiedDefaultBlock)(u)){n.removeBlock(s,r.isBlockSelected(s));return}if(!l.merge){(0,Je.isUnmodifiedBlock)(u,"content")?n.removeBlock(s,r.isBlockSelected(s)):n.selectBlock(a.clientId);return}let d=(0,Je.getBlockType)(u.name),{clientId:f,attributeKey:p,offset:h}=r.getSelectionStart(),g=(f===i?l:d).attributes[p],b=(f===i||f===s)&&p!==void 0&&h!==void 0&&!!g;g||(typeof p=="number"?window.console.error(`RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ${typeof p}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));let v=(0,Je.cloneBlock)(a),y=(0,Je.cloneBlock)(u);if(b){let _=f===i?v:y,x=_.attributes[p],w=(0,yo.insert)((0,yo.create)({html:x}),hd,h,h);_.attributes[p]=(0,yo.toHTMLString)({value:w})}let k=a.name===u.name?[y]:(0,Je.switchToBlockType)(y,a.name);if(!k||!k.length)return;let S=l.merge(v.attributes,k[0].attributes);if(b){let _=Tw(S),x=S[_],w=(0,yo.create)({html:x}),T=w.text.indexOf(hd),R=(0,yo.remove)(w,T,T+1),B=(0,yo.toHTMLString)({value:R});S[_]=B,n.selectionChange(a.clientId,_,T,T)}n.replaceBlocks([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...S}},...k.slice(1)],0)},JZ=(e,t=!0)=>fz(e,t);function TMe(e,t){return JZ([e],t)}function RMe(e,t,o=!1,r=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:o,initialPosition:o?r:null,time:Date.now()}}function BMe(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function PMe(){return{type:"START_TYPING"}}function IMe(){return{type:"STOP_TYPING"}}function OMe(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function AMe(){return{type:"STOP_DRAGGING_BLOCKS"}}function LMe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function NMe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function MMe(e,t,o,r){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:o,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var DMe=(e,t,o)=>({dispatch:r})=>{let n=(0,Je.getDefaultBlockName)();if(!n)return;let i=(0,Je.createBlock)(n,e);return r.insertBlock(i,o,t)};function VMe(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function FMe(e){return dz(e,{stripExperimentalSettings:!0})}function zMe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function jMe(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function HMe({history:e="merge"}={}){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",history:e}}var UMe=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});let{requestIdleCallback:t=o=>setTimeout(o,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},GMe=e=>({registry:t})=>{t.dispatch(KZ.store).set("core","editorTool",e),e==="navigation"?(0,NB.speak)((0,mp.__)("You are currently in Write mode.")):e==="edit"&&(0,NB.speak)((0,mp.__)("You are currently in Design mode."))};function WMe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}var $Me=(e,t=!0)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;let n=o.getBlocksByClientId(e);if(n.some(d=>!d)||n.map(d=>d.name).some(d=>!(0,Je.hasBlockSupport)(d,"multiple",!0)))return;let s=o.getBlockRootClientId(e[0]),a=fv(e),l=o.getBlockIndex(a[a.length-1]),u=n.map(d=>(0,Je.cloneSanitizedBlock)(d));return r.insertBlocks(u,l+1,s,t),u.length>1&&t&&r.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map(d=>d.clientId)},KMe=e=>({select:t,dispatch:o})=>{if(!e)return;let r=t.getBlockRootClientId(e),n=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return o.insertDefaultBlock({},r,n);let s={};if(i.attributesToCopy){let l=t.getBlockAttributes(e);i.attributesToCopy.forEach(u=>{l[u]&&(s[u]=l[u])})}let a=(0,Je.createBlock)(i.name,{...i.attributes,...s});return o.insertBlock(a,n,r)},YMe=e=>({select:t,dispatch:o})=>{if(!e)return;let r=t.getBlockRootClientId(e),n=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return o.insertDefaultBlock({},r,n+1);let s={};if(i.attributesToCopy){let l=t.getBlockAttributes(e);i.attributesToCopy.forEach(u=>{l[u]&&(s[u]=l[u])})}let a=(0,Je.createBlock)(i.name,{...i.attributes,...s});return o.insertBlock(a,n+1,r)};function hz(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var qMe=(e,t=150)=>async({dispatch:o})=>{o(hz(e,!0)),await new Promise(r=>setTimeout(r,t)),o(hz(e,!1))};function ZMe(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function XMe(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function QMe(e){return(0,gd.default)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),pz(e)}var JMe=e=>({select:t,dispatch:o})=>{if(!e||typeof e!="object"){console.error("Category should be an `InserterMediaCategory` object.");return}if(!e.name){console.error("Category should have a `name` that should be unique among all media categories.");return}if(!e.labels?.name){console.error("Category should have a `labels.name`.");return}if(!["image","audio","video"].includes(e.mediaType)){console.error("Category should have `mediaType` property that is one of `image|audio|video`.");return}if(!e.fetch||typeof e.fetch!="function"){console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]|InserterMediaResponse>`.");return}let r=t.getRegisteredInserterMediaCategories();if(r.some(({name:n})=>n===e.name)){console.error(`A category is already registered with the same name: "${e.name}".`);return}if(r.some(({labels:{name:n}={}})=>n===e.labels?.name)){console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`);return}o({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function eDe(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function tDe(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}function oDe(e){return{type:"SET_OPEN_LIST_VIEW_PANEL",clientId:e}}function rDe(){return{type:"SET_ALL_LIST_VIEW_PANELS_OPEN"}}function nDe(e,t){return{type:"TOGGLE_LIST_VIEW_PANEL",clientId:e,isOpen:t}}function iDe(){return{type:"INCREMENT_LIST_VIEW_EXPAND_REVISION"}}var pv={reducer:yq,selectors:uz,actions:gz},C=(0,MB.createReduxStore)(rr,{...pv,persist:["preferences"]}),eX=(0,MB.registerStore)(rr,{...pv,persist:["preferences"]});H(eX).registerPrivateActions(LB);H(eX).registerPrivateSelectors(TB);H(C).registerPrivateActions(LB);H(C).registerPrivateSelectors(TB);var mv=c(U(),1),tX=c(G(),1);var Vl=c(E(),1);function sDe({className:e,actions:t,children:o,secondaryActions:r}){return(0,Vl.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,Vl.jsx)("div",{className:$(e,"block-editor-warning"),children:(0,Vl.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,Vl.jsx)("p",{className:"block-editor-warning__message",children:o}),(t?.length>0||r)&&(0,Vl.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map((n,i)=>(0,Vl.jsx)("span",{className:"block-editor-warning__action",children:n},i)),r&&(0,Vl.jsx)(mv.DropdownMenu,{className:"block-editor-warning__secondary",icon:Fs,label:(0,tX.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,Vl.jsx)(mv.MenuGroup,{children:r.map((n,i)=>(0,Vl.jsx)(mv.MenuItem,{onClick:n.onClick,children:n.title},i))})})]})]})})})}var hp=sDe;var hv=c(E(),1);function nX({originalBlockClientId:e,name:t,onReplace:o}){let{selectBlock:r}=(0,rX.useDispatch)(C),n=(0,oX.getBlockType)(t);return(0,hv.jsxs)(hp,{actions:[(0,hv.jsx)(bz.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,DB.__)("Find original")},"find-original"),(0,hv.jsx)(bz.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o([]),children:(0,DB.__)("Remove")},"remove")],children:[(0,hv.jsxs)("strong",{children:[n?.title,": "]}),(0,DB.__)("This block can only be used once.")]})}var Rw=c(E(),1);function zB({mayDisplayControls:e,mayDisplayParentControls:t,mayDisplayPatternEditingControls:o,blockEditingMode:r,isPreviewMode:n,...i}){let{name:s,isSelected:a,clientId:l,attributes:u={},__unstableLayoutClassNames:d}=i,{layout:f=null,metadata:p={}}=u,{bindings:h}=p,m=(0,VB.hasBlockSupport)(s,"layout",!1)||(0,VB.hasBlockSupport)(s,"__experimentalLayout",!1),b=!!ht()[Cx]||(0,VB.hasBlockSupport)(s,"listView")||s==="core/navigation",{originalBlockClientId:v}=(0,FB.useContext)(Dn);return(0,Rw.jsxs)(eT,{value:(0,FB.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:m?f:null,__unstableLayoutClassNames:d,[Nl]:e,[Vy]:t,[$f]:o&&r!=="disabled",[Q1]:r,[Fy]:h,[J1]:n,[Cx]:b}),[s,a,l,m,f,d,e,t,o,r,h,n,b]),children:[(0,Rw.jsx)(nq,{...i}),v&&(0,Rw.jsx)(nX,{originalBlockClientId:v,name:s,onReplace:i.onReplace})]})}function Le(...e){let{clientId:t=null}=ht();return(0,iX.useSelect)(o=>H(o(C)).getBlockSettings(t,...e),[t,...e])}function aX(e){(0,sX.default)("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});let[t]=Le(e);return t}var HB=c(E(),1),{kebabCase:aDe}=H(cX.privateApis),lX=([e,...t])=>e.toUpperCase()+t.join(""),lDe=e=>(0,bg.createHigherOrderComponent)(t=>function(r){return(0,HB.jsx)(t,{...r,colors:e})},"withCustomColorPalette"),cDe=()=>(0,bg.createHigherOrderComponent)(e=>function(o){let[r,n,i]=Le("color.palette.custom","color.palette.theme","color.palette.default"),s=(0,jB.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]);return(0,HB.jsx)(e,{...o,colors:s})},"withEditorColorPalette");function uX(e,t){let o=e.reduce((r,n)=>({...r,...typeof n=="string"?{[n]:aDe(n)}:n}),{});return(0,bg.compose)([t,r=>class extends jB.Component{constructor(i){super(i),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(i){let{colors:s}=this.props;return YY(s,i)}createSetters(){return Object.keys(o).reduce((i,s)=>{let a=lX(s),l=`custom${a}`;return i[`set${a}`]=this.createSetColor(s,l),i},{})}createSetColor(i,s){return a=>{let l=oT(this.props.colors,a);this.props.setAttributes({[i]:l&&l.slug?l.slug:void 0,[s]:l&&l.slug?void 0:a})}}static getDerivedStateFromProps({attributes:i,colors:s},a){return Object.entries(o).reduce((l,[u,d])=>{let f=zc(s,i[u],i[`custom${lX(u)}`]),p=a[u];return p?.color===f.color&&p?l[u]=p:l[u]={...f,class:xa(d,f.slug)},l},{})}render(){return(0,HB.jsx)(r,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function dX(e){return(...t)=>{let o=lDe(e);return(0,bg.createHigherOrderComponent)(uX(t,o),"withCustomColors")}}function fX(...e){let t=cDe();return(0,bg.createHigherOrderComponent)(uX(e,t),"withColors")}var UB=c(F(),1),GB=c(Q(),1);function gv(e){if(e)return`has-${e}-gradient-background`}function WB(e,t){let o=e?.find(r=>r.slug===t);return o&&o.gradient}function pX(e,t){return e?.find(r=>r.gradient===t)}function mX(e,t){let o=pX(e,t);return o&&o.slug}function uDe({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){let{clientId:o}=ht(),[r,n,i]=Le("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,UB.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]),{gradient:a,customGradient:l}=(0,GB.useSelect)(h=>{let{getBlockAttributes:m}=h(C),g=m(o)||{};return{customGradient:g[t],gradient:g[e]}},[o,e,t]),{updateBlockAttributes:u}=(0,GB.useDispatch)(C),d=(0,UB.useCallback)(h=>{let m=mX(s,h);if(m){u(o,{[e]:m,[t]:void 0});return}u(o,{[e]:void 0,[t]:h})},[s,o,u]),f=gv(a),p;return a?p=WB(s,a):p=l,{gradientClass:f,gradientValue:p,setGradient:d}}var hX=c(U(),1);var{kebabCase:dDe}=H(hX.privateApis),bv=(e,t,o)=>{if(t){let r=e?.find(({slug:n})=>n===t);if(r)return r}return{size:o}};function yz(e,t){let o=e?.find(({size:r})=>r===t);return o||{size:t}}function gp(e){if(e)return`has-${dDe(e)}-font-size`}var fDe="1600px",pDe="320px",mDe=1,hDe=.25,gDe=.75,bDe="14px";function gX({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=pDe,maximumViewportWidth:n=fDe,scaleFactor:i=mDe,minimumFontSizeLimit:s}){if(s=bp(s)?s:bDe,o){let k=bp(o);if(!k?.unit)return null;let S=bp(s,{coerceTo:k.unit});if(S?.value&&!e&&!t&&k?.value<=S?.value)return null;if(t||(t=`${k.value}${k.unit}`),!e){let _=k.unit==="px"?k.value:k.value*16,x=Math.min(Math.max(1-.075*Math.log2(_),hDe),gDe),w=Bw(k.value*x,3);S?.value&&w<S?.value?e=`${S.value}${S.unit}`:e=`${w}${k.unit}`}}let a=bp(e),l=a?.unit||"rem",u=bp(t,{coerceTo:l});if(!a||!u)return null;let d=bp(e,{coerceTo:"rem"}),f=bp(n,{coerceTo:l}),p=bp(r,{coerceTo:l});if(!f||!p||!d)return null;let h=f.value-p.value;if(!h)return null;let m=Bw(p.value/100,3),g=Bw(m,3)+l,b=100*((u.value-a.value)/h),v=Bw((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${g}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function bp(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:o,rootSizeValue:r,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=n?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),a=e.match(s);if(!a||a.length<3)return null;let[,l,u]=a,d=parseFloat(l);return o==="px"&&(u==="em"||u==="rem")&&(d=d*r,u=o),u==="px"&&(o==="em"||o==="rem")&&(d=d/r,u=o),(o==="em"||o==="rem")&&(u==="em"||u==="rem")&&(u=o),{value:Bw(d,3),unit:u}}function Bw(e,t=3){let o=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*o)/o):void 0}var bX=c(U(),1);var yX=c(E(),1);function yDe(e){let[t,o]=Le("typography.fontSizes","typography.customFontSize");return(0,yX.jsx)(bX.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!o})}var vz=yDe;var Pw=c(fe(),1),SX=c(F(),1);var Sz=c(E(),1),vDe=[],vX=([e,...t])=>e.toUpperCase()+t.join(""),kX=(...e)=>{let t=e.reduce((o,r)=>(o[r]=`custom${vX(r)}`,o),{});return(0,Pw.createHigherOrderComponent)((0,Pw.compose)([(0,Pw.createHigherOrderComponent)(o=>function(n){let[i]=Le("typography.fontSizes");return(0,Sz.jsx)(o,{...n,fontSizes:i||vDe})},"withFontSizes"),o=>class extends SX.Component{constructor(n){super(n),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce((n,[i,s])=>{let a=vX(i);return n[`set${a}`]=this.createSetFontSize(i,s),n},{})}createSetFontSize(n,i){return s=>{let a=this.props.fontSizes?.find(({size:l})=>l===Number(s));this.props.setAttributes({[n]:a&&a.slug?a.slug:void 0,[i]:a&&a.slug?void 0:s})}}static getDerivedStateFromProps({attributes:n,fontSizes:i},s){let a=(u,d)=>s[d]?n[d]?n[d]!==s[d].slug:s[d].size!==n[u]:!0;if(!Object.values(t).some(a))return null;let l=Object.entries(t).filter(([u,d])=>a(d,u)).reduce((u,[d,f])=>{let p=n[d],h=bv(i,p,n[f]);return u[d]={...h,class:gp(p)},u},{});return{...s,...l}}render(){return(0,Sz.jsx)(o,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var yp=c(G(),1),$B=c(U(),1);var _X=c(E(),1),SDe=[{icon:ep,title:(0,yp.__)("Align text left"),align:"left"},{icon:Xh,title:(0,yp.__)("Align text center"),align:"center"},{icon:tp,title:(0,yp.__)("Align text right"),align:"right"}],kDe={placement:"bottom-start"};function _De({value:e,onChange:t,alignmentControls:o=SDe,label:r=(0,yp.__)("Align text"),description:n=(0,yp.__)("Change text alignment"),isCollapsed:i=!0,isToolbar:s}){function a(p){return()=>t(e===p?void 0:p)}let l=o.find(p=>p.align===e);function u(){return l?l.icon:(0,yp.isRTL)()?tp:ep}let d=s?$B.ToolbarGroup:$B.ToolbarDropdownMenu,f=s?{isCollapsed:i}:{toggleProps:{description:n},popoverProps:kDe};return(0,_X.jsx)(d,{icon:u(),label:r,controls:o.map(p=>{let{align:h}=p;return{...p,isActive:e===h,role:i?"menuitemradio":void 0,onClick:a(h)}}),...f})}var kz=_De;var _z=c(E(),1),KB=e=>(0,_z.jsx)(kz,{...e,isToolbar:!1}),xX=e=>(0,_z.jsx)(kz,{...e,isToolbar:!0});var eP=c(bo(),1),tP=c(U(),1),VX=c(F(),1),oP=c(ce(),1);var MX=c(Q(),1),Sp=c(ce(),1),Tz=c(F(),1);var OX=c(TX(),1);var xz=function(e,t){return xz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])},xz(e,t)};function RX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xz(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var fn=function(){return fn=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},fn.apply(this,arguments)};function BX(e){return e.toLowerCase()}var TDe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],RDe=/[^A-Z0-9]+/gi;function IX(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?TDe:o,n=t.stripRegexp,i=n===void 0?RDe:n,s=t.transform,a=s===void 0?BX:s,l=t.delimiter,u=l===void 0?" ":l,d=PX(PX(e,r,"$1\0$2"),i,"\0"),f=0,p=d.length;d.charAt(f)==="\0";)f++;for(;d.charAt(p-1)==="\0";)p--;return d.slice(f,p).split("\0").map(a).join(u)}function PX(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}var BDe=e=>e.name||"",PDe=e=>e.title,IDe=e=>e.description||"",ODe=e=>e.keywords||[],ADe=e=>e.category,LDe=()=>null,NDe=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],MDe=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),wz=new Map,Cz=new Map;function qB(e=""){if(wz.has(e))return wz.get(e);let t=IX(e,{splitRegexp:NDe,stripRegexp:MDe}).split(" ").filter(Boolean);return wz.set(e,t),t}function Iw(e=""){if(Cz.has(e))return Cz.get(e);let t=(0,OX.default)(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),Cz.set(e,t),t}var Ow=(e="")=>qB(Iw(e)),DDe=(e,t)=>e.filter(o=>!Ow(t).some(r=>r.includes(o))),ZB=(e,t,o,r)=>Ow(r).length===0?e:Aw(e,r,{getCategory:s=>t.find(({slug:a})=>a===s.category)?.title,getCollection:s=>o[s.name.split("/")[0]]?.title}),Aw=(e=[],t="",o={})=>{if(Ow(t).length===0)return e;let n=e.map(i=>[i,VDe(i,t,o)]).filter(([,i])=>i>0);return n.sort(([,i],[,s])=>s-i),n.map(([i])=>i)};function VDe(e,t,o={}){let{getName:r=BDe,getTitle:n=PDe,getDescription:i=IDe,getKeywords:s=ODe,getCategory:a=ADe,getCollection:l=LDe}=o,u=r(e),d=n(e),f=i(e),p=s(e),h=a(e),m=l(e),g=Iw(t),b=Iw(d),v=0;if(g===b)v+=30;else if(b.startsWith(g))v+=20;else{let y=[u,d,f,...p,h,m].join(" "),k=qB(g);DDe(k,y).length===0&&(v+=10)}if(v!==0&&u.startsWith("core/")){let y=u!==e.id;v+=y?1:2}return v}var Kc=c(ce(),1),yv=c(Q(),1),XB=c(F(),1),AX=c(ss(),1),QB=c(G(),1);var FDe=(e,t,o)=>{let r=(0,XB.useMemo)(()=>({[fp]:!!o}),[o]),[n]=(0,yv.useSelect)(d=>[d(C).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=H((0,yv.useSelect)(C)),{createErrorNotice:s}=(0,yv.useDispatch)(AX.store),[a,l]=(0,yv.useSelect)(d=>{let{getCategories:f,getCollections:p}=d(Kc.store);return[f(),p()]},[]),u=(0,XB.useCallback)(({name:d,initialAttributes:f,innerBlocks:p,innerContent:h,syncStatus:m,content:g},b)=>{let v=i(d,e);if(v===null){let k=(0,Kc.getBlockType)(d)?.title??d;s((0,QB.sprintf)((0,QB.__)(`Block "%s" can't be inserted.`),k),{type:"snackbar",id:"inserter-notice"});return}let y=m==="unsynced"?(0,Kc.parse)(g,{__unstableSkipMigrationLogs:!0}):(0,Kc.createBlock)(d,f,(0,Kc.createBlocksFromInnerBlocksTemplate)(p),h);t(y,void 0,b,v)},[i,e,t,s]);return[n,a,l,u]},vp=FDe;var LX=c(U(),1);var NX=c(F(),1),Ez=c(E(),1);function zDe({icon:e,showColors:t=!1,className:o,context:r}){e?.src==="block-default"&&(e={src:Mx});let n=(0,Ez.jsx)(LX.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,Ez.jsx)("span",{style:i,className:$("block-editor-block-icon",o,{"has-colors":t}),children:n})}var Tt=(0,NX.memo)(zDe);var JB=(e,t)=>(t&&e.sort(({id:o},{id:r})=>{let n=t.indexOf(o),i=t.indexOf(r);return n<0&&(n=t.length),i<0&&(i=t.length),n-i}),e);var vv=c(E(),1),jDe=()=>{},HDe=9;function UDe(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){let{rootClientId:t,selectedBlockId:o,prioritizedBlocks:r}=(0,MX.useSelect)(u=>{let{getSelectedBlockClientId:d,getBlock:f,getBlockListSettings:p,getBlockRootClientId:h}=u(C),{getActiveBlockVariation:m}=u(Sp.store),g=d(),{name:b,attributes:v}=f(g),y=m(b,v),k=h(g);return{selectedBlockId:y?`${b}/${y.name}`:b,rootClientId:k,prioritizedBlocks:p(k)?.prioritizedInserterBlocks}},[]),[n,i,s]=vp(t,jDe,!0),a=(0,Tz.useMemo)(()=>(e.trim()?ZB(n,i,s,e):JB($c(n,"frecency","desc"),r)).filter(d=>d.id!==o).slice(0,HDe),[e,o,n,i,s,r]);return[(0,Tz.useMemo)(()=>a.map(u=>{let{title:d,icon:f,isDisabled:p}=u;return{key:`block-${u.id}`,value:u,label:(0,vv.jsxs)(vv.Fragment,{children:[(0,vv.jsx)(Tt,{icon:f,showColors:!0},"icon"),d]}),isDisabled:p}}),[a])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){let{name:t,initialAttributes:o,innerBlocks:r,innerContent:n,syncStatus:i,blocks:s}=e;return{action:"replace",value:i==="unsynced"?(s??[]).map(a=>(0,Sp.cloneBlock)(a)):(0,Sp.createBlock)(t,o,(0,Sp.createBlocksFromInnerBlocksTemplate)(r),n)}}}}var DX=UDe();var FX=c(E(),1),GDe=[];function zX({completers:e=GDe}){let{name:t}=ht();return(0,VX.useMemo)(()=>{let o=[...e];return(t===(0,oP.getDefaultBlockName)()||(0,oP.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(o=[...o,DX]),(0,eP.hasFilter)("editor.Autocomplete.completers")&&(o===e&&(o=o.map(r=>({...r}))),o=(0,eP.applyFilters)("editor.Autocomplete.completers",o,t)),o},[e,t])}function jX(e){return(0,tP.__unstableUseAutocompleteProps)({...e,completers:zX(e)})}function WDe(e){return(0,FX.jsx)(tP.Autocomplete,{...e,completers:zX(e)})}var HX=WDe;var Oz=c(G(),1),wp=c(U(),1);var lQ=c(Q(),1);var lP=c(F(),1);var nr=c(G(),1);var _n=c(U(),1);var Sv=c(G(),1);var Gs={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function as(e,t=""){return e.split(",").map(o=>`${o}${t?` ${t}`:""}`).join(",")}function kp(e,t=Gs,o,r){let n="";return t?.[o]?.spacingStyles?.length&&r&&t[o].spacingStyles.forEach(i=>{n+=`${as(e,i.selector.trim())} { `,n+=Object.entries(i.rules).map(([s,a])=>`${s}: ${a||r}`).join("; "),n+="; }"}),n}function rP(e){let{contentSize:t,wideSize:o,type:r="default"}=e,n={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&&r==="constrained"&&(n.none=(0,Sv.sprintf)((0,Sv.__)("Max %s wide"),t)),i.test(o)&&(n.wide=(0,Sv.sprintf)((0,Sv.__)("Max %s wide"),o)),n}var Fl=c(G(),1);var UX=8,_p=["top","bottom","left","right"],GX={top:void 0,right:void 0,bottom:void 0,left:void 0},nP={custom:ZR,axial:ZR,horizontal:n6,vertical:l6,top:a6,right:s6,bottom:r6,left:i6},Yc={default:(0,Fl.__)("Spacing control"),top:(0,Fl.__)("Top"),bottom:(0,Fl.__)("Bottom"),left:(0,Fl.__)("Left"),right:(0,Fl.__)("Right"),mixed:(0,Fl.__)("Mixed"),vertical:(0,Fl.__)("Vertical"),horizontal:(0,Fl.__)("Horizontal"),axial:(0,Fl.__)("Horizontal & vertical"),custom:(0,Fl.__)("Custom")},bd={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function iP(e){return e?.includes?e==="0"||e.includes("var:preset|spacing|"):!1}function WX(e,t){if(!iP(e))return e;let o=$De(e);return t.find(n=>String(n.slug)===o)?.size}function kv(e,t){if(!e||iP(e)||e==="0")return e;let o=t.find(r=>String(r.size)===String(e));return o?.slug?`var:preset|spacing|${o.slug}`:e}function zl(e){if(!e||typeof e!="string")return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function $De(e){if(!e)return;if(e==="0"||e==="default")return e;let t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function Rz(e,t){if(!e||!e.length)return!1;let o=e.includes("horizontal")||e.includes("left")&&e.includes("right"),r=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return t==="horizontal"?o:t==="vertical"?r:o||r}function KDe(e=[]){let t={top:0,right:0,bottom:0,left:0};return e.forEach(o=>t[o]+=1),(t.top+t.bottom)%2===0&&(t.left+t.right)%2===0}function $X(e={},t){let{top:o,right:r,bottom:n,left:i}=e,s=[o,r,n,i].filter(Boolean),a=o===n&&i===r&&(!!o||!!i),l=!s.length&&KDe(t),u=t?.includes("horizontal")&&t?.includes("vertical")&&t?.length===2;if(Rz(t)&&(a||l))return bd.axial;if(u&&s.length===1){let d;return Object.entries(e).some(([f,p])=>(d=f,p!==void 0)),d}return t?.length===1&&!s.length?t[0]:bd.custom}function Lw(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function Ri(e,t="0"){let o=Lw(e);if(!o)return null;let r=zl(o?.top)||t,n=zl(o?.left)||t;return r===n?r:`${r} ${n}`}var vo=c(E(),1),YDe={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},KX={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},qDe={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},YX={horizontal:"center",vertical:"top"},ZDe={top:{icon:Kx,label:(0,nr._x)("Align top","Block vertical alignment setting")},center:{icon:Gx,label:(0,nr._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Ux,label:(0,nr._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:$x,label:(0,nr._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Wx,label:(0,nr._x)("Space between","Block vertical alignment setting")}},XDe=["wrap","nowrap"],XX={name:"flex",label:(0,nr.__)("Flex"),inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowOrientation:s=!0,allowJustification:a=!0,allowVerticalAlignment:l=!0,allowWrap:u=!0}=r,d=(k,S)=>(t?.[k]??S)!==(n?.[k]??S),f=()=>d("justifyContent","left"),p=()=>d("verticalAlignment",QX(t)),h=()=>d("orientation","horizontal"),m=()=>d("flexWrap","wrap"),g=()=>o(Ge({...t,justifyContent:n?.justifyContent})),b=()=>o(Ge({...t,verticalAlignment:QDe(n?.verticalAlignment,t?.orientation)})),v=()=>{let{verticalAlignment:k,justifyContent:S}=t,_=n?.orientation,x=!_||_==="horizontal";o(Ge({...t,orientation:_,verticalAlignment:n?.verticalAlignment??(x&&k==="space-between"?"center":k),justifyContent:n?.justifyContent??(x&&S==="stretch"?"left":S)}))},y=()=>o(Ge({...t,flexWrap:n?.flexWrap}));return(0,vo.jsxs)(vo.Fragment,{children:[(a||s)&&(0,vo.jsxs)(_n.Flex,{align:"flex-start",className:"block-editor-hooks__flex-layout-controls",gap:4,justify:"flex-start",children:[a&&(0,vo.jsx)(_n.__experimentalToolsPanelItem,{label:(0,nr.__)("Justification"),hasValue:f,onDeselect:g,isShownByDefault:!0,panelId:i,children:(0,vo.jsx)(ZX,{layout:t,onChange:o})}),s&&(0,vo.jsx)(_n.__experimentalToolsPanelItem,{label:(0,nr.__)("Orientation"),hasValue:h,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,vo.jsx)(oVe,{layout:t,onChange:o})})]}),l&&(0,vo.jsx)(_n.__experimentalToolsPanelItem,{label:(0,nr.__)("Alignment"),hasValue:p,onDeselect:b,panelId:i,children:(0,vo.jsx)(qX,{layout:t,onChange:o})}),u&&(0,vo.jsx)(_n.__experimentalToolsPanelItem,{label:(0,nr.__)("Wrapping"),hasValue:m,onDeselect:y,panelId:i,children:(0,vo.jsx)(tVe,{layout:t,onChange:o})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowVerticalAlignment:i=!0,allowJustification:s=!0}=r;return!s&&!i?null:(0,vo.jsxs)(No,{group:n,__experimentalShareWithChildBlocks:!0,children:[s&&(0,vo.jsx)(ZX,{layout:t,onChange:o,isToolbar:!0}),i&&(0,vo.jsx)(qX,{layout:t,onChange:o,isToolbar:!0})]})},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=Gs}){let u=r!==void 0,d=u?{...o,...r}:o,f=B=>Object.hasOwn(r||{},B),{orientation:p="horizontal"}=d,h="0.5em";if(a){let B=Lw(a);h=zl(B?.left)||zl(B?.top)||"0.5em"}let m=n?.spacing?.blockGap&&!Gt(i,"spacing","blockGap")?Ri(n?.spacing?.blockGap,h):void 0,g=!u||Object.hasOwn(n?.spacing||{},"blockGap"),b=YDe[d.justifyContent],v=XDe.includes(d.flexWrap)?d.flexWrap:"wrap",y=qDe[d.verticalAlignment],k=KX[d.justifyContent]||KX.left,S="",_=[],x=!u||f("flexWrap"),w=!u||f("orientation"),T=!u||f("justifyContent")||f("orientation"),R=!u||f("verticalAlignment")||f("orientation");return x&&v&&v!=="wrap"&&_.push(`flex-wrap: ${v}`),p==="horizontal"?(R&&y&&_.push(`align-items: ${y}`),T&&b&&_.push(`justify-content: ${b}`)):(R&&y&&_.push(`justify-content: ${y}`),w&&_.push("flex-direction: column"),T&&_.push(`align-items: ${k}`)),_.length&&(S=`${as(t)} {
${_.join("; ")};
}`),s&&g&&m&&(S+=kp(t,l,"flex",m)),S},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function QX({orientation:e="horizontal"}={}){return e==="horizontal"?YX.horizontal:YX.vertical}function QDe(e,t){if(!(t==="horizontal"&&e==="space-between"||t==="vertical"&&e==="stretch"))return e}function JDe(e){return e==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]}function qX({layout:e,onChange:t,isToolbar:o=!1}){let{orientation:r="horizontal"}=e,{verticalAlignment:n=QX(e)}=e,i=a=>{t({...e,verticalAlignment:a})},s=JDe(r);return o?(0,vo.jsx)(sP,{onChange:i,value:n,controls:s}):(0,vo.jsx)(_n.__experimentalToggleGroupControl,{label:(0,nr.__)("Alignment"),onChange:i,value:n,className:"block-editor-hooks__flex-layout-alignment-controls",children:s.map(a=>{let{icon:l,label:u}=ZDe[a];return(0,vo.jsx)(_n.__experimentalToggleGroupControlOptionIcon,{value:a,icon:l,label:u},a)})})}var eVe={placement:"bottom-start"};function ZX({layout:e,onChange:t,isToolbar:o=!1}){let{justifyContent:r="left",orientation:n="horizontal"}=e,i=l=>{t({...e,justifyContent:l})},s=["left","center","right"];if(n==="horizontal"?s.push("space-between"):s.push("stretch"),o)return(0,vo.jsx)(_v,{allowedControls:s,value:r,onChange:i,popoverProps:eVe});let a=[{value:"left",icon:np,label:(0,nr.__)("Justify items left")},{value:"center",icon:rp,label:(0,nr.__)("Justify items center")},{value:"right",icon:ip,label:(0,nr.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:qy,label:(0,nr.__)("Space between items")}):a.push({value:"stretch",icon:Zy,label:(0,nr.__)("Stretch items")}),(0,vo.jsx)(_n.__experimentalToggleGroupControl,{label:(0,nr.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:u,label:d})=>(0,vo.jsx)(_n.__experimentalToggleGroupControlOptionIcon,{value:l,icon:u,label:d},l))})}function tVe({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,vo.jsx)(_n.ToggleControl,{label:(0,nr.__)("Allow to wrap to multiple lines"),onChange:r=>{t({...e,flexWrap:r?"wrap":"nowrap"})},checked:o==="wrap"})}function oVe({layout:e,onChange:t}){let{orientation:o="horizontal",verticalAlignment:r,justifyContent:n}=e;return(0,vo.jsxs)(_n.__experimentalToggleGroupControl,{className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,nr.__)("Orientation"),value:o,onChange:i=>{let s=r,a=n;return i==="horizontal"?(r==="space-between"&&(s="center"),n==="stretch"&&(a="left")):(r==="stretch"&&(s="top"),n==="space-between"&&(a="left")),t({...e,orientation:i,verticalAlignment:s,justifyContent:a})},children:[(0,vo.jsx)(_n.__experimentalToggleGroupControlOptionIcon,{icon:Nx,value:"horizontal",label:(0,nr.__)("Horizontal")}),(0,vo.jsx)(_n.__experimentalToggleGroupControlOptionIcon,{icon:VF,value:"vertical",label:(0,nr.__)("Vertical")})]})}var JX=c(G(),1);var eQ={name:"default",label:(0,JX.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=Gs}){let s=Ri(o?.spacing?.blockGap),a="";Gt(r,"spacing","blockGap")||(s?.top?a=Ri(s?.top):typeof s=="string"&&(a=Ri(s)));let l="";return n&&a&&(l+=kp(t,i,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){let o=rP(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(n=>({name:n,info:o[n]}));let r=[{name:"left"},{name:"center"},{name:"right"}];if(!t){let{contentSize:n,wideSize:i}=e;n&&r.unshift({name:"full"}),i&&r.unshift({name:"wide",info:o.wide})}return r.unshift({name:"none",info:o.none}),r}};var ri=c(U(),1),Ra=c(G(),1);var tQ=c(ov(),1);var vr=c(E(),1),rVe="var(--wp--style--global--content-size, none)",nVe="var(--wp--style--global--wide-size, none)",oQ={name:"constrained",label:(0,Ra.__)("Constrained"),inspectorControls:function({layout:t,onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{wideSize:s,contentSize:a,justifyContent:l="center"}=t,{allowJustification:u=!0,allowCustomContentAndWideSize:d=!0}=r,f=x=>{o({...t,justifyContent:x})},p=[{value:"left",icon:np,label:(0,Ra.__)("Justify items left")},{value:"center",icon:rp,label:(0,Ra.__)("Justify items center")},{value:"right",icon:ip,label:(0,Ra.__)("Justify items right")}],[h]=Le("spacing.units"),m=(0,ri.__experimentalUseCustomUnits)({availableUnits:h||["%","px","em","rem","vw"]}),g=(x,w)=>(t?.[x]??w)!==(n?.[x]??w),b=()=>o(Ge({...t,contentSize:n?.contentSize})),v=()=>o(Ge({...t,wideSize:n?.wideSize})),y=()=>o(Ge({...t,justifyContent:n?.justifyContent})),k=()=>g("contentSize"),S=()=>g("wideSize"),_=()=>g("justifyContent","center");return(0,vr.jsxs)(vr.Fragment,{children:[d&&(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(ri.__experimentalToolsPanelItem,{label:(0,Ra.__)("Content width"),hasValue:k,onDeselect:b,panelId:i,children:(0,vr.jsx)(ri.__experimentalUnitControl,{label:(0,Ra.__)("Content width"),labelPosition:"top",value:a===null?"":a||s||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o({...t,contentSize:x!==""?x:void 0})},units:m,prefix:(0,vr.jsx)(ri.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,vr.jsx)(gt,{icon:Qh})})})}),(0,vr.jsxs)(ri.__experimentalToolsPanelItem,{label:(0,Ra.__)("Wide width"),hasValue:S,onDeselect:v,panelId:i,children:[(0,vr.jsx)(ri.__experimentalUnitControl,{label:(0,Ra.__)("Wide width"),labelPosition:"top",value:s===null?"":s||a||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o({...t,wideSize:x!==""?x:void 0})},units:m,prefix:(0,vr.jsx)(ri.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,vr.jsx)(gt,{icon:dg})})}),(0,vr.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,Ra.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]})]}),u&&(0,vr.jsx)(ri.__experimentalToolsPanelItem,{label:(0,Ra.__)("Justification"),hasValue:_,onDeselect:y,panelId:i,children:(0,vr.jsx)(ri.__experimentalToggleGroupControl,{label:(0,Ra.__)("Justification"),value:l,onChange:f,children:p.map(({value:x,icon:w,label:T})=>(0,vr.jsx)(ri.__experimentalToggleGroupControlOptionIcon,{value:x,icon:w,label:T},x))})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowJustification:i=!0}=r;return i?(0,vr.jsx)(No,{group:n,__experimentalShareWithChildBlocks:!0,children:(0,vr.jsx)(sVe,{layout:t,onChange:o})}):null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,layoutDefinitions:a=Gs}){let l=r!==void 0,u=l?{...o,...r}:o,d=P=>Object.hasOwn(r||{},P),{contentSize:f,wideSize:p,justifyContent:h}=u,m=Ri(n?.spacing?.blockGap),g=!l||Object.hasOwn(n?.spacing||{},"blockGap"),b=!l||Object.hasOwn(n?.spacing||{},"padding"),v="";Gt(i,"spacing","blockGap")||(m?.top?v=Ri(m?.top):typeof m=="string"&&(v=Ri(m)));let y=h==="left"?"0 !important":"auto !important",k=h==="right"?"0 !important":"auto !important",S=l&&d("justifyContent"),_=l&&d("contentSize"),x=l&&d("wideSize"),w=!l||_||x,T=l&&(_&&!f||x&&!p),R=f||(p&&!_?p:rVe),B=p||(f&&!x?f:nVe),I=[`max-width: ${R}`];(!l||S)&&I.push(`margin-left: ${y}`,`margin-right: ${k}`);let O=w&&(f||p||T)?`
${as(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {
${I.join("; ")};
}
${as(t,"> .alignwide")} {
max-width: ${B};
}
${as(t,"> .alignfull")} {
max-width: none;
}
`:"";return S&&!w?O+=`${as(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-left: ${y}; margin-right: ${k}; }`:l||(h==="left"?O+=`${as(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-left: ${y}; }`:h==="right"&&(O+=`${as(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-right: ${k}; }`)),b&&n?.spacing?.padding&&(0,tQ.getCSSRules)(n).forEach(A=>{if(A.key==="paddingRight"){let M=A.value==="0"?"0px":A.value;O+=`
${as(t,"> .alignfull")} {
margin-right: calc(${M} * -1);
}
`}else if(A.key==="paddingLeft"){let M=A.value==="0"?"0px":A.value;O+=`
${as(t,"> .alignfull")} {
margin-left: calc(${M} * -1);
}
`}}),s&&g&&v&&(O+=kp(t,a,"constrained",v)),O},getOrientation(){return"vertical"},getAlignments(e){let t=rP(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(i=>({name:i,info:t[i]}));let{contentSize:o,wideSize:r}=e,n=[{name:"left"},{name:"center"},{name:"right"}];return o&&n.unshift({name:"full"}),r&&n.unshift({name:"wide",info:t.wide}),n.unshift({name:"none",info:t.none}),n}},iVe={placement:"bottom-start"};function sVe({layout:e,onChange:t}){let{justifyContent:o="center"}=e;return(0,vr.jsx)(_v,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:iVe})}var Or=c(G(),1),Nt=c(U(),1),aP=c(F(),1);var It=c(E(),1),aVe={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},lVe=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],rQ={name:"grid",label:(0,Or.__)("Grid"),inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowSizingOnChildren:s=!1}=r,a=!0,l=!t?.isManualPlacement||window.__experimentalEnableGridInteractivity,u=!t?.isManualPlacement,d=t.isManualPlacement?3:void 0,f=(S,_)=>(t?.[S]??_)!==(n?.[S]??_),p=()=>f("isManualPlacement",!1),h=()=>f("columnCount",d)||f("rowCount"),m=()=>f("minimumColumnWidth"),g=()=>f("autoFit",!1),b=()=>o(Ge({...t,isManualPlacement:n?.isManualPlacement,rowCount:n?.rowCount,minimumColumnWidth:n?.minimumColumnWidth})),v=()=>o(Ge({...t,columnCount:n?.columnCount??d,rowCount:n?.rowCount})),y=()=>o(Ge({...t,minimumColumnWidth:n?.minimumColumnWidth})),k=()=>o(Ge({...t,autoFit:n?.autoFit}));return(0,It.jsxs)(It.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,It.jsx)(Nt.__experimentalToolsPanelItem,{label:(0,Or.__)("Grid item position"),hasValue:p,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,It.jsx)(fVe,{layout:t,onChange:o})}),a&&(0,It.jsx)(Nt.__experimentalToolsPanelItem,{label:(0,Or.__)("Columns and rows"),hasValue:h,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,It.jsx)(uVe,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,It.jsx)(Nt.__experimentalToolsPanelItem,{label:(0,Or.__)("Min. column width"),hasValue:m,onDeselect:y,isShownByDefault:!0,panelId:i,children:(0,It.jsx)(cVe,{layout:t,onChange:o})}),u&&(0,It.jsx)(Nt.__experimentalToolsPanelItem,{label:(0,Or.__)("Fill available space"),hasValue:g,onDeselect:k,panelId:i,children:(0,It.jsx)(dVe,{layout:t,onChange:o})})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=Gs}){let u=r!==void 0,d=u?{...o,...r}:o,f=T=>Object.hasOwn(r||{},T),{minimumColumnWidth:p=null,columnCount:h=null,rowCount:m=null,autoFit:g=!1}=d,b=g?"auto-fit":"auto-fill",v="1.2rem";if(a){let T=Lw(a);v=zl(T?.left)||zl(T?.top)||"1.2rem"}let y=n?.spacing?.blockGap&&!Gt(i,"spacing","blockGap")?Ri(n?.spacing?.blockGap,v):void 0,k=!u||Object.hasOwn(n?.spacing||{},"blockGap"),S="",_=[],x=!u||f("minimumColumnWidth")||f("columnCount")||f("autoFit")||k&&p&&h>0,w=(!u||f("rowCount"))&&h&&m;if(x&&p&&h>0){let T=y||v;(T==="0"||T===0)&&(T="0px");let R=`max(min( ${p}, 100%), ( 100% - (${T}*${h-1}) ) / ${h})`;_.push(`grid-template-columns: repeat(${b}, minmax(${R}, 1fr))`)}else x&&h?_.push(`grid-template-columns: repeat(${h}, minmax(0, 1fr))`):x&&_.push(`grid-template-columns: repeat(${b}, minmax(min(${p||"12rem"}, 100%), 1fr))`);if(x){let T=!o?.columnCount||o?.columnCount&&o?.minimumColumnWidth;(!h||p)&&(!u||!T)&&_.push("container-type: inline-size")}return w&&_.push(`grid-template-rows: repeat(${m}, minmax(1rem, auto))`),_.length&&(S=`${as(t)} { ${_.join("; ")}; }`),s&&k&&y&&(S+=kp(t,l,"grid",y)),S},getOrientation(){return"horizontal"},getAlignments(){return[]}};function cVe({layout:e,onChange:t}){let{minimumColumnWidth:o,columnCount:r,isManualPlacement:n}=e,s=o||(n||r?null:"12rem"),[a,l="rem"]=(0,Nt.__experimentalParseQuantityAndUnitFromRawValue)(s),u=f=>{t({...e,minimumColumnWidth:[f,l].join("")})},d=f=>{let p;["em","rem"].includes(f)&&l==="px"?p=(a/16).toFixed(2)+f:["em","rem"].includes(l)&&f==="px"&&(p=Math.round(a*16)+f),t({...e,minimumColumnWidth:p})};return(0,It.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,It.jsx)(Nt.BaseControl.VisualLabel,{as:"legend",children:(0,Or.__)("Min. column width")}),(0,It.jsxs)(Nt.Flex,{gap:4,children:[(0,It.jsx)(Nt.FlexItem,{isBlock:!0,children:(0,It.jsx)(Nt.__experimentalUnitControl,{onChange:f=>{t({...e,minimumColumnWidth:f===""?void 0:f})},onUnitChange:d,value:s,units:lVe,min:0,label:(0,Or.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,It.jsx)(Nt.FlexItem,{isBlock:!0,children:(0,It.jsx)(Nt.RangeControl,{onChange:u,value:a||0,min:0,max:aVe[l]||600,withInputField:!1,label:(0,Or.__)("Minimum column width"),hideLabelFromVision:!0})})]}),(0,It.jsx)("p",{className:"components-base-control__help",children:(0,Or.__)("Columns will wrap to fewer per row when they can no longer maintain the minimum width.")})]})}function uVe({layout:e,onChange:t,allowSizingOnChildren:o}){let{columnCount:n=void 0,rowCount:i,isManualPlacement:s}=e;return(0,It.jsx)(It.Fragment,{children:(0,It.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[!s&&(0,It.jsx)(Nt.BaseControl.VisualLabel,{as:"legend",children:(0,Or.__)("Max. columns")}),(0,It.jsxs)(Nt.Flex,{gap:4,children:[(0,It.jsx)(Nt.FlexItem,{isBlock:!0,children:(0,It.jsx)(Nt.__experimentalNumberControl,{onChange:a=>{let u=a===""||a==="0"?s?1:void 0:parseInt(a,10);t({...e,columnCount:u})},value:n??"",min:1,label:(0,Or.__)("Columns"),hideLabelFromVision:!s})}),(0,It.jsx)(Nt.FlexItem,{isBlock:!0,children:o&&s?(0,It.jsx)(Nt.__experimentalNumberControl,{onChange:a=>{let l=a===""||a==="0"?1:parseInt(a,10);t({...e,rowCount:l})},value:i,min:1,label:(0,Or.__)("Rows")}):(0,It.jsx)(Nt.RangeControl,{value:n??1,onChange:a=>t({...e,columnCount:a===""||a==="0"?1:a}),min:1,max:16,withInputField:!1,label:(0,Or.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function dVe({layout:e,onChange:t}){let{autoFit:o=!1}=e;return(0,It.jsx)(Nt.ToggleControl,{label:(0,Or.__)("Fill available space"),help:(0,Or.__)("Stretch columns to fill the available space, instead of leaving gaps when there are too few items to fill a row."),checked:o,onChange:r=>t({...e,autoFit:r})})}function fVe({layout:e,onChange:t}){let{columnCount:o,rowCount:r,minimumColumnWidth:n,isManualPlacement:i}=e,[s,a]=(0,aP.useState)(o||3),[l,u]=(0,aP.useState)(r),[d,f]=(0,aP.useState)(n||"12rem"),p=i?"manual":"auto",h=g=>{g==="manual"?f(n||"12rem"):(a(o||3),u(r)),t({...e,columnCount:s,rowCount:g==="manual"?l:void 0,isManualPlacement:g==="manual"?!0:void 0,minimumColumnWidth:g==="auto"?d:null})},m=p==="manual"?(0,Or.__)("Grid items can be manually placed in any position on the grid."):(0,Or.__)("Grid items are placed automatically depending on their order.");return(0,It.jsxs)(Nt.__experimentalToggleGroupControl,{label:(0,Or.__)("Grid item position"),value:p,onChange:h,isBlock:!0,help:m,children:[(0,It.jsx)(Nt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Or.__)("Auto")},"auto"),(0,It.jsx)(Nt.__experimentalToggleGroupControlOption,{value:"manual",label:(0,Or.__)("Manual")},"manual")]})}var nQ=[eQ,XX,oQ,rQ];function Ba(e="default"){return nQ.find(t=>t.name===e)}function iQ(){return nQ}var Bz=c(E(),1),Pz={type:"default"},Iz=(0,lP.createContext)(Pz);Iz.displayName="BlockLayoutContext";var cP=Iz.Provider;function yg(){return(0,lP.useContext)(Iz)}function sQ({layout:e={},css:t,...o}){let r=Ba(e.type),[n]=Le("spacing.blockGap"),i=n!==null;if(r){if(t)return(0,Bz.jsx)("style",{children:t});let s=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...o});if(s)return(0,Bz.jsx)("style",{children:s})}return null}var uP=[],aQ=["none","left","center","right","wide","full"],pVe=["wide","full"];function Nw(e=aQ){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",[o,r,n]=(0,lQ.useSelect)(l=>{if(t)return[!1,!1,!1];let u=l(C).getSettings();return[u.alignWide??!1,u.supportsLayout,u.__unstableIsBlockBasedTheme]},[t]),i=yg();if(t)return uP;let s=Ba(i?.type);if(r){let u=s.getAlignments(i,n).filter(d=>e.includes(d.name));return u.length===1&&u[0].name==="none"?uP:u}if(s.name!=="default"&&s.name!=="constrained")return uP;let a=e.filter(l=>i.alignments?i.alignments.includes(l):!o&&pVe.includes(l)?!1:aQ.includes(l)).map(l=>({name:l}));return a.length===1&&a[0].name==="none"?uP:a}var xp=c(G(),1);var Mw={none:{icon:Qh,title:(0,xp._x)("None","Alignment option")},left:{icon:V4,title:(0,xp.__)("Align left")},center:{icon:M4,title:(0,xp.__)("Align center")},right:{icon:z4,title:(0,xp.__)("Align right")},wide:{icon:dg,title:(0,xp.__)("Wide width")},full:{icon:uw,title:(0,xp.__)("Full width")}},cQ="none";var vg=c(E(),1);function mVe({value:e,onChange:t,controls:o,isToolbar:r,isCollapsed:n=!0}){let i=Nw(o);if(!!!i.length)return null;function a(h){t([e,"none"].includes(h)?void 0:h)}let l=Mw[e],u=Mw[cQ],d=r?wp.ToolbarGroup:wp.ToolbarDropdownMenu,f={icon:l?l.icon:u.icon,label:(0,Oz.__)("Align")},p=r?{isCollapsed:n,controls:i.map(({name:h})=>({...Mw[h],isActive:e===h||!e&&h==="none",role:n?"menuitemradio":void 0,onClick:()=>a(h)}))}:{toggleProps:{description:(0,Oz.__)("Change alignment")},children:({onClose:h})=>(0,vg.jsx)(vg.Fragment,{children:(0,vg.jsx)(wp.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:i.map(({name:m,info:g})=>{let{icon:b,title:v}=Mw[m],y=m===e||!e&&m==="none";return(0,vg.jsx)(wp.MenuItem,{icon:b,iconPosition:"left",className:$("components-dropdown-menu__menu-item",{"is-active":y}),isSelected:y,onClick:()=>{a(m),h()},role:"menuitemradio",info:g,children:v},m)})})})};return(0,vg.jsx)(d,{...f,...p})}var Az=mVe;var Lz=c(E(),1),dP=e=>(0,Lz.jsx)(Az,{...e,isToolbar:!1}),uQ=e=>(0,Lz.jsx)(Az,{...e,isToolbar:!0});var hQ=c(Zh(),1),hP=c(G(),1),gP=c(ce(),1),Hl=c(U(),1),Dz=c(Q(),1),gQ=c(F(),1),bQ=c(fe(),1);var Mz=c(Zh(),1),dQ=c(ce(),1),fQ=c(U(),1),pQ=c(Q(),1),pP=c(F(),1),mQ=c(fe(),1);var fP=c(Q(),1);function Nz(e){return!e||Object.keys(e).length===0}function yd(e){let{clientId:t}=ht(),o=e||t,{updateBlockAttributes:r}=(0,fP.useDispatch)(C),{getBlockAttributes:n}=(0,fP.useRegistry)().select(C);return{updateBlockBindings:a=>{let{metadata:{bindings:l,...u}={}}=n(o),d={...l};Object.entries(a).forEach(([p,h])=>{if(!h&&d[p]){delete d[p];return}d[p]=h});let f={...u,bindings:d};Nz(f.bindings)&&delete f.bindings,r(o,{metadata:Nz(f)?void 0:f})},removeAllBlockBindings:()=>{let{metadata:{bindings:a,...l}={}}=n(o);r(o,{metadata:Nz(l)?void 0:l})}}}var jl=c(E(),1),{Menu:Cp}=H(fQ.privateApis);function hVe({args:e,attribute:t,field:o,source:r,sourceKey:n}){let i=(0,pP.useMemo)(()=>({source:n,args:o.args||{key:o.key}}),[o.args,o.key,n]),s=(0,pP.useContext)(kn),a=(0,pQ.useSelect)(u=>r.getValues({select:u,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=yd();return(0,jl.jsxs)(Cp.CheckboxItem,{onChange:()=>{let u=(0,Mz.default)(e,o.args)??o.key===e?.key;l(u?{[t]:void 0}:{[t]:i})},name:t+"-binding",value:a[t],checked:(0,Mz.default)(e,o.args)??o.key===e?.key,children:[(0,jl.jsx)(Cp.ItemLabel,{children:o.label}),(0,jl.jsx)(Cp.ItemHelpText,{children:a[t]})]})}function Dw({args:e,attribute:t,sourceKey:o,fields:r}){let n=(0,mQ.useViewportMatch)("medium","<");if(!r||r.length===0)return null;let i=(0,dQ.getBlockBindingsSource)(o);return(0,jl.jsxs)(Cp,{placement:n?"bottom-start":"left-start",children:[(0,jl.jsx)(Cp.SubmenuTriggerItem,{children:(0,jl.jsx)(Cp.ItemLabel,{children:i.label})}),(0,jl.jsx)(Cp.Popover,{gutter:8,children:(0,jl.jsx)(Cp.Group,{children:r.map(s=>(0,jl.jsx)(hVe,{args:e,attribute:t,field:s,source:i,sourceKey:o},o+JSON.stringify(s.args)||s.key))})})]},o)}var Pa=c(E(),1),{Menu:mP}=H(Hl.privateApis);function Vw({attribute:e,binding:t,blockName:o}){let{updateBlockBindings:r}=yd(),n=(0,bQ.useViewportMatch)("medium","<"),i=(0,gQ.useContext)(kn),s=(0,Dz.useSelect)(g=>{let{getAllBlockBindingsSources:b,getBlockBindingsSourceFieldsList:v,getBlockType:y}=H(g(gP.store)),k=y(o).attributes?.[e];if(k?.enum)return{};let S=k?.type==="rich-text"?"string":k?.type,_={};return Object.entries(b()).forEach(([x,w])=>{let T=v(w,i);if(!T?.length)return;let R=T.filter(B=>B.type===S);R.length&&(_[x]=R)}),_},[e,o,i]),{canUpdateBlockBindings:a}=(0,Dz.useSelect)(g=>({canUpdateBlockBindings:g(C).getSettings().canUpdateBlockBindings})),l=Object.keys(s).length>0,u=!a||!l,{source:d,args:f}=t||{},p=(0,gP.getBlockBindingsSource)(d),h,m=!0;return t===void 0?(l?h=(0,hP.__)("Not connected"):h=(0,hP.__)("No sources available"),m=!0):p?h=s?.[d]?.find(g=>(0,hQ.default)(g.args,f))?.label||p?.label||d:(m=!1,h=(0,hP.__)("Source not registered")),(0,Pa.jsx)(Hl.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:!!l&&(()=>{r({[e]:void 0})}),children:(0,Pa.jsxs)(mP,{placement:n?"bottom-start":"left-start",children:[(0,Pa.jsx)(mP.TriggerButton,{render:(0,Pa.jsx)(Hl.__experimentalItem,{}),disabled:!l,children:(0,Pa.jsxs)(Hl.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,Pa.jsx)(Hl.__experimentalText,{truncate:!0,children:e}),(0,Pa.jsx)(Hl.__experimentalText,{truncate:!0,variant:m?"muted":void 0,isDestructive:!m,children:h})]})}),!u&&(0,Pa.jsx)(mP.Popover,{gutter:n?8:36,children:(0,Pa.jsx)(mP,{placement:n?"bottom-start":"left-start",children:Object.entries(s).map(([g,b])=>(0,Pa.jsx)(Dw,{args:t?.args,attribute:e,sourceKey:g,fields:b},g))})})]})})}var yQ=c(G(),1),vQ=c(U(),1);var SQ=c(E(),1);function gVe({isActive:e,label:t=(0,yQ.__)("Full height"),onToggle:o,isDisabled:r}){return(0,SQ.jsx)(vQ.ToolbarButton,{isActive:e,icon:V3,label:t,onClick:()=>o(!e),disabled:r})}var kQ=gVe;var xQ=c(G(),1),wQ=c(so(),1),Sg=c(U(),1),Fw=c(E(),1),bVe=()=>{};function yVe(e){let{label:t=(0,xQ.__)("Change matrix alignment"),onChange:o=bVe,value:r="center",isDisabled:n}=e,i=(0,Fw.jsx)(Sg.AlignmentMatrixControl.Icon,{value:r});return(0,Fw.jsx)(Sg.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:s,isOpen:a})=>(0,Fw.jsx)(Sg.ToolbarButton,{onClick:s,"aria-haspopup":"true","aria-expanded":a,onKeyDown:u=>{!a&&u.keyCode===wQ.DOWN&&(u.preventDefault(),s())},label:t,icon:i,showTooltip:!0,disabled:n}),renderContent:()=>(0,Fw.jsx)(Sg.AlignmentMatrixControl,{onChange:o,value:r})})}var CQ=yVe;var zz=c(U(),1),vP=c(Q(),1),SP=c(G(),1);var OQ=c(F(),1);var EQ=c(Q(),1),bP=c(ce(),1);function zn({clientId:e,maximumLength:t,context:o}){let r=(0,EQ.useSelect)(n=>{if(!e)return null;let{getBlockName:i,getBlockAttributes:s,getBlock:a}=n(C),{getBlockType:l,getActiveBlockVariation:u}=n(bP.store),d=i(e),f=l(d);if(!f)return null;let p=s(e),h=(0,bP.__experimentalGetBlockLabel)(f,p,o);return h!==f.title?h:u(d,p,void 0,a?.(e)?.innerContent)?.title||f.title},[e,o]);return r?t&&t>0&&r.length>t?r.slice(0,t-3)+"...":r:null}function zw({clientId:e,maximumLength:t,context:o}){return zn({clientId:e,maximumLength:t,context:o})}var kg=c(F(),1),BQ=c(fe(),1);var yP=c(F(),1),Vz=c(fe(),1),TQ=c(E(),1),vd=(0,yP.createContext)({refsMap:(0,Vz.observableMap)(),eventHandlers:new Map});vd.displayName="BlockRefsContext";function RQ({children:e}){let t=(0,yP.useMemo)(()=>({refsMap:(0,Vz.observableMap)(),eventHandlers:new Map}),[]);return(0,TQ.jsx)(vd.Provider,{value:t,children:e})}function PQ(e){let{refsMap:t}=(0,kg.useContext)(vd);return(0,BQ.useRefEffect)(o=>(t.set(e,o),()=>t.delete(e)),[e])}function Fz(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _g(e,t){let{refsMap:o}=(0,kg.useContext)(vd);(0,kg.useLayoutEffect)(()=>{Fz(t,o.get(e));let r=o.subscribe(e,()=>Fz(t,o.get(e)));return()=>{r(),Fz(t,null)}},[o,e,t])}function Mt(e){let[t,o]=(0,kg.useState)(null);return _g(e,o),t}function IQ(e){if(!e)return null;let t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find(o=>(o.contentDocument||o.contentWindow.document)===e.ownerDocument)??e;return t?.closest('[role="region"]')??t}var Ws=c(E(),1);function vVe({rootLabelText:e}){let{selectBlock:t,clearSelectedBlock:o}=(0,vP.useDispatch)(C),{clientId:r,parents:n,hasSelection:i}=(0,vP.useSelect)(l=>{let{getSelectionStart:u,getSelectedBlockClientId:d,getEnabledBlockParents:f}=H(l(C)),p=d();return{parents:f(p),clientId:p,hasSelection:!!u().clientId}},[]),s=e||(0,SP._x)("Document","noun, breadcrumb"),a=(0,OQ.useRef)();return _g(r,a),(0,Ws.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,SP.__)("Block breadcrumb"),children:[(0,Ws.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,Ws.jsx)(zz.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{let l=a.current?.closest(".editor-styles-wrapper");o(),IQ(l)?.focus()},children:s}),!i&&(0,Ws.jsx)("span",{children:s}),!!r&&(0,Ws.jsx)(gt,{icon:op,className:"block-editor-block-breadcrumb__separator"})]}),n.map(l=>(0,Ws.jsxs)("li",{children:[(0,Ws.jsx)(zz.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(l),children:(0,Ws.jsx)(zw,{clientId:l,maximumLength:35,context:"breadcrumb"})}),(0,Ws.jsx)(gt,{icon:op,className:"block-editor-block-breadcrumb__separator"})]},l)),!!r&&(0,Ws.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,Ws.jsx)(zw,{clientId:r,maximumLength:35,context:"breadcrumb"})})]})}var AQ=vVe;var LQ=c(Q(),1);function NQ(e){return(0,LQ.useSelect)(t=>{let{__unstableHasActiveBlockOverlayActive:o}=t(C);return o(e)},[e])}var pN=c(fe(),1),mye=c(F(),1),hye=c(Q(),1),gye=c(U(),1);var Qa=c(Q(),1),$2=c(fe(),1),km=c(F(),1),Vme=c(ce(),1);var Vp=c(F(),1),Wt=c(ce(),1),mte=c(U(),1),mI=c(Q(),1),hI=c(fe(),1),hte=c(Rt(),1);var Ep=c(G(),1),_P=c(U(),1),xg=c(F(),1),Hw=c(ce(),1),xP=c(Q(),1);var jw=class{diff(t,o,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(t,r),s=this.castInput(o,r),a=this.removeEmpty(this.tokenize(i,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(a,l,r,n)}diffWithOptionsObj(t,o,r,n){var i;let s=y=>{if(y=this.postProcess(y,r),n){setTimeout(function(){n(y)},0);return}else return y},a=o.length,l=t.length,u=1,d=a+l;r.maxEditLength!=null&&(d=Math.min(d,r.maxEditLength));let f=(i=r.timeout)!==null&&i!==void 0?i:1/0,p=Date.now()+f,h=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(h[0],o,t,0,r);if(h[0].oldPos+1>=l&&m+1>=a)return s(this.buildValues(h[0].lastComponent,o,t));let g=-1/0,b=1/0,v=()=>{for(let y=Math.max(g,-u);y<=Math.min(b,u);y+=2){let k,S=h[y-1],_=h[y+1];S&&(h[y-1]=void 0);let x=!1;if(_){let T=_.oldPos-y;x=_&&0<=T&&T<a}let w=S&&S.oldPos+1<l;if(!x&&!w){h[y]=void 0;continue}if(!w||x&&S.oldPos<_.oldPos?k=this.addToPath(_,!0,!1,0,r):k=this.addToPath(S,!1,!0,1,r),m=this.extractCommon(k,o,t,y,r),k.oldPos+1>=l&&m+1>=a)return s(this.buildValues(k.lastComponent,o,t))||!0;h[y]=k,k.oldPos+1>=l&&(b=Math.min(b,y-1)),m+1>=a&&(g=Math.max(g,y+1))}u++};if(n)(function y(){setTimeout(function(){if(u>d||Date.now()>p)return n(void 0);v()||y()},0)})();else for(;u<=d&&Date.now()<=p;){let y=v();if(y)return y}}addToPath(t,o,r,n,i){let s=t.lastComponent;return s&&!i.oneChangePerToken&&s.added===o&&s.removed===r?{oldPos:t.oldPos+n,lastComponent:{count:s.count+1,added:o,removed:r,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+n,lastComponent:{count:1,added:o,removed:r,previousComponent:s}}}extractCommon(t,o,r,n,i){let s=o.length,a=r.length,l=t.oldPos,u=l-n,d=0;for(;u+1<s&&l+1<a&&this.equals(r[l+1],o[u+1],i);)u++,l++,d++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return d&&!i.oneChangePerToken&&(t.lastComponent={count:d,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,o,r){return r.comparator?r.comparator(t,o):t===o||!!r.ignoreCase&&t.toLowerCase()===o.toLowerCase()}removeEmpty(t){let o=[];for(let r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o}castInput(t,o){return t}tokenize(t,o){return Array.from(t)}join(t){return t.join("")}postProcess(t,o){return t}get useLongestToken(){return!1}buildValues(t,o,r){let n=[],i;for(;t;)n.push(t),i=t.previousComponent,delete t.previousComponent,t=i;n.reverse();let s=n.length,a=0,l=0,u=0;for(;a<s;a++){let d=n[a];if(d.removed)d.value=this.join(r.slice(u,u+d.count)),u+=d.count;else{if(!d.added&&this.useLongestToken){let f=o.slice(l,l+d.count);f=f.map(function(p,h){let m=r[u+h];return m.length>p.length?m:p}),d.value=this.join(f)}else d.value=this.join(o.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}}return n}};var jz=class extends jw{},DQ=new jz;function Hz(e,t,o){return DQ.diff(e,t,o)}var kP=c(G(),1),jQ=c(ce(),1);var VQ=c(U(),1),FQ=c(F(),1),zQ=c(Rt(),1),qc=c(E(),1);function Uz({title:e,rawContent:t,renderedContent:o,action:r,actionText:n,className:i}){return(0,qc.jsxs)("div",{className:i,children:[(0,qc.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,qc.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,qc.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,qc.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,qc.jsx)(FQ.RawHTML,{children:(0,zQ.safeHTML)(o)})})]}),(0,qc.jsx)("div",{className:"block-editor-block-compare__action",children:(0,qc.jsx)(VQ.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:n})})]})}var xv=c(E(),1);function SVe({block:e,onKeep:t,onConvert:o,convertor:r,convertButtonText:n}){function i(u,d){return Hz(u,d).map((p,h)=>{let m=$({"block-editor-block-compare__added":p.added,"block-editor-block-compare__removed":p.removed});return(0,xv.jsx)("span",{className:m,children:p.value},h)})}function s(u){return(Array.isArray(u)?u:[u]).map(p=>(0,jQ.getSaveContent)(p.name,p.attributes,p.innerBlocks)).join("")}let a=s(r(e)),l=i(e.originalContent,a);return(0,xv.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,xv.jsx)(Uz,{title:(0,kP.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,kP.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,xv.jsx)(Uz,{title:(0,kP.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:n,rawContent:l,renderedContent:a})]})}var HQ=SVe;var Sd=c(E(),1),UQ=e=>(0,Hw.rawHandler)({HTML:e.originalContent});function GQ({clientId:e}){let{block:t,canInsertHTMLBlock:o}=(0,xP.useSelect)(u=>{let{canInsertBlockType:d,getBlock:f,getBlockRootClientId:p}=u(C),h=p(e);return{block:f(e),canInsertHTMLBlock:d("core/html",h)}},[e]),{replaceBlock:r}=(0,xP.useDispatch)(C),[n,i]=(0,xg.useState)(!1),s=(0,xg.useCallback)(()=>i(!1),[]),a=(0,xg.useMemo)(()=>({toHTML(){let u=(0,Hw.createBlock)("core/html",{},[],[t.originalContent]);return r(t.clientId,u)},toBlocks(){let u=UQ(t);return r(t.clientId,u)},toRecoveredBlock(){let u=(0,Hw.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,u)}}),[t,r]),l=(0,xg.useMemo)(()=>[{title:(0,Ep._x)("Resolve","imperative verb"),onClick:()=>i(!0)},o&&{title:(0,Ep.__)("Convert to HTML"),onClick:a.toHTML}].filter(Boolean),[o,a]);return(0,Sd.jsxs)(Sd.Fragment,{children:[(0,Sd.jsx)(hp,{actions:[(0,Sd.jsx)(_P.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,Ep.__)("Attempt recovery")},"recover")],secondaryActions:l,children:(0,Ep.__)("Block contains unexpected or invalid content.")}),n&&(0,Sd.jsx)(_P.Modal,{title:(0,Ep.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare",children:(0,Sd.jsx)(HQ,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:UQ,convertButtonText:(0,Ep.__)("Convert to Blocks")})})]})}var WQ=c(G(),1);var $Q=c(E(),1),kVe=(0,$Q.jsx)(hp,{className:"block-editor-block-list__block-crash-warning",children:(0,WQ.__)("This block has encountered an error and cannot be previewed.")});function KQ(){return kVe}var YQ=c(F(),1),_Ve=class extends YQ.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},qQ=_Ve;var mJ=c($z(),1),wv=c(F(),1),TP=c(Q(),1),Zc=c(ce(),1);var hJ=c(E(),1);function AVe({clientId:e}){let[t,o]=(0,wv.useState)(""),r=(0,TP.useSelect)(a=>a(C).getBlock(e),[e]),{updateBlock:n}=(0,TP.useDispatch)(C),i=(0,wv.useMemo)(()=>r?(0,Zc.getBlockContent)(r):"",[r]),s=()=>{let a=(0,Zc.getBlockType)(r.name);if(!a)return;let l=(0,Zc.getBlockAttributes)(a,t,r.attributes),u=t||(0,Zc.getSaveContent)(a,l),[d]=t?(0,Zc.validateBlock)({...r,attributes:l,originalContent:u}):[!0];n(e,{attributes:l,originalContent:u,isValid:d}),t||o(u)};return(0,wv.useEffect)(()=>{o(i)},[i]),(0,hJ.jsx)(mJ.default,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:s,onChange:a=>o(a.target.value)})}var gJ=AVe;var dte=c(F(),1),fI=c(G(),1),fte=c(ce(),1),Fv=c(fe(),1),pte=c(Gw(),1);var Yz=$w(),st=e=>Ww(e,Yz),qz=$w();st.write=e=>Ww(e,qz);var RP=$w();st.onStart=e=>Ww(e,RP);var Zz=$w();st.onFrame=e=>Ww(e,Zz);var Xz=$w();st.onFinish=e=>Ww(e,Xz);var Cv=[];st.setTimeout=(e,t)=>{let o=st.now()+t,r=()=>{let i=Cv.findIndex(s=>s.cancel==r);~i&&Cv.splice(i,1),Rp-=~i?1:0},n={time:o,handler:e,cancel:r};return Cv.splice(yJ(o),0,n),Rp+=1,vJ(),n};var yJ=e=>~(~Cv.findIndex(t=>t.time>e)||~Cv.length);st.cancel=e=>{RP.delete(e),Zz.delete(e),Xz.delete(e),Yz.delete(e),qz.delete(e)};st.sync=e=>{Kz=!0,st.batchedUpdates(e),Kz=!1};st.throttle=e=>{let t;function o(){try{e(...t)}finally{t=null}}function r(...n){t=n,st.onStart(o)}return r.handler=e,r.cancel=()=>{RP.delete(o),t=null},r};var Qz=typeof window<"u"?window.requestAnimationFrame:()=>{};st.use=e=>Qz=e;st.now=typeof performance<"u"?()=>performance.now():Date.now;st.batchedUpdates=e=>e();st.catch=console.error;st.frameLoop="always";st.advance=()=>{st.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):kJ()};var Tp=-1,Rp=0,Kz=!1;function Ww(e,t){Kz?(t.delete(e),e(0)):(t.add(e),vJ())}function vJ(){Tp<0&&(Tp=0,st.frameLoop!=="demand"&&Qz(SJ))}function LVe(){Tp=-1}function SJ(){~Tp&&(Qz(SJ),st.batchedUpdates(kJ))}function kJ(){let e=Tp;Tp=st.now();let t=yJ(Tp);if(t&&(_J(Cv.splice(0,t),o=>o.handler()),Rp-=t),!Rp){LVe();return}RP.flush(),Yz.flush(e?Math.min(64,Tp-e):16.667),Zz.flush(),qz.flush(),Xz.flush()}function $w(){let e=new Set,t=e;return{add(o){Rp+=t==e&&!e.has(o)?1:0,e.add(o)},delete(o){return Rp-=t==e&&e.has(o)?1:0,e.delete(o)},flush(o){t.size&&(e=new Set,Rp-=t.size,_J(t,r=>r(o)&&e.add(r)),Rp+=e.size,t=e)}}}function _J(e,t){e.forEach(o=>{try{t(o)}catch(r){st.catch(r)}})}var Oa=c(ue());function AP(){}var RJ=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),Ce={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Xc(e,t){if(Ce.arr(e)){if(!Ce.arr(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}return e===t}var _o=(e,t)=>e.forEach(t);function Aa(e,t,o){if(Ce.arr(e)){for(let r=0;r<e.length;r++)t.call(o,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(o,e[r],r)}var ls=e=>Ce.und(e)?[]:Ce.arr(e)?e:[e];function Bv(e,t){if(e.size){let o=Array.from(e);e.clear(),_o(o,t)}}var Pv=(e,...t)=>Bv(e,o=>o(...t)),nj=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ij,BJ,Bp=null,PJ=!1,sj=AP,NVe=e=>{e.to&&(BJ=e.to),e.now&&(st.now=e.now),e.colors!==void 0&&(Bp=e.colors),e.skipAnimation!=null&&(PJ=e.skipAnimation),e.createStringInterpolator&&(ij=e.createStringInterpolator),e.requestAnimationFrame&&st.use(e.requestAnimationFrame),e.batchedUpdates&&(st.batchedUpdates=e.batchedUpdates),e.willAdvance&&(sj=e.willAdvance),e.frameLoop&&(st.frameLoop=e.frameLoop)},$s=Object.freeze({__proto__:null,get createStringInterpolator(){return ij},get to(){return BJ},get colors(){return Bp},get skipAnimation(){return PJ},get willAdvance(){return sj},assign:NVe}),Kw=new Set,Ia=[],Jz=[],IP=0,Iv={get idle(){return!Kw.size&&!Ia.length},start(e){IP>e.priority?(Kw.add(e),st.onStart(MVe)):(IJ(e),st(oj))},advance:oj,sort(e){if(IP)st.onFrame(()=>Iv.sort(e));else{let t=Ia.indexOf(e);~t&&(Ia.splice(t,1),OJ(e))}},clear(){Ia=[],Kw.clear()}};function MVe(){Kw.forEach(IJ),Kw.clear(),st(oj)}function IJ(e){Ia.includes(e)||OJ(e)}function OJ(e){Ia.splice(DVe(Ia,t=>t.priority>e.priority),0,e)}function oj(e){let t=Jz;for(let o=0;o<Ia.length;o++){let r=Ia[o];IP=r.priority,r.idle||(sj(r),r.advance(e),r.idle||t.push(r))}return IP=0,Jz=Ia,Jz.length=0,Ia=t,Ia.length>0}function DVe(e,t){let o=e.findIndex(t);return o<0?e.length:o}var AJ={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ul="[-+]?\\d*\\.?\\d+",OP=Ul+"%";function LP(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var VVe=new RegExp("rgb"+LP(Ul,Ul,Ul)),FVe=new RegExp("rgba"+LP(Ul,Ul,Ul,Ul)),zVe=new RegExp("hsl"+LP(Ul,OP,OP)),jVe=new RegExp("hsla"+LP(Ul,OP,OP,Ul)),HVe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,UVe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,GVe=/^#([0-9a-fA-F]{6})$/,WVe=/^#([0-9a-fA-F]{8})$/;function $Ve(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=GVe.exec(e))?parseInt(t[1]+"ff",16)>>>0:Bp&&Bp[e]!==void 0?Bp[e]:(t=VVe.exec(e))?(Ev(t[1])<<24|Ev(t[2])<<16|Ev(t[3])<<8|255)>>>0:(t=FVe.exec(e))?(Ev(t[1])<<24|Ev(t[2])<<16|Ev(t[3])<<8|CJ(t[4]))>>>0:(t=HVe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=WVe.exec(e))?parseInt(t[1],16)>>>0:(t=UVe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zVe.exec(e))?(xJ(wJ(t[1]),BP(t[2]),BP(t[3]))|255)>>>0:(t=jVe.exec(e))?(xJ(wJ(t[1]),BP(t[2]),BP(t[3]))|CJ(t[4]))>>>0:null}function ej(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function xJ(e,t,o){let r=o<.5?o*(1+t):o+t-o*t,n=2*o-r,i=ej(n,r,e+1/3),s=ej(n,r,e),a=ej(n,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Ev(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function wJ(e){return(parseFloat(e)%360+360)%360/360}function CJ(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function BP(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function EJ(e){let t=$Ve(e);if(t===null)return e;t=t||0;let o=(t&4278190080)>>>24,r=(t&16711680)>>>16,n=(t&65280)>>>8,i=(t&255)/255;return`rgba(${o}, ${r}, ${n}, ${i})`}var Pp=(e,t,o)=>{if(Ce.fun(e))return e;if(Ce.arr(e))return Pp({range:e,output:t,extrapolate:o});if(Ce.str(e.output[0]))return ij(e);let r=e,n=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{let d=YVe(u,i);return KVe(u,i[d],i[d+1],n[d],n[d+1],l,s,a,r.map)}};function KVe(e,t,o,r,n,i,s,a,l){let u=l?l(e):e;if(u<t){if(s==="identity")return u;s==="clamp"&&(u=t)}if(u>o){if(a==="identity")return u;a==="clamp"&&(u=o)}return r===n?r:t===o?e<=t?r:n:(t===-1/0?u=-u:o===1/0?u=u-t:u=(u-t)/(o-t),u=i(u),r===-1/0?u=-u:n===1/0?u=u+r:u=u*(n-r)+r,u)}function YVe(e,t){for(var o=1;o<t.length-1&&!(t[o]>=e);++o);return o-1}function rj(){return rj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rj.apply(this,arguments)}var Tv=Symbol.for("FluidValue.get"),wg=Symbol.for("FluidValue.observers"),Bi=e=>!!(e&&e[Tv]),jn=e=>e&&e[Tv]?e[Tv]():e,aj=e=>e[wg]||null;function qVe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Cg(e,t){let o=e[wg];o&&o.forEach(r=>{qVe(r,t)})}var Rv=class{constructor(t){if(this[Tv]=void 0,this[wg]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");ZVe(this,t)}},ZVe=(e,t)=>LJ(e,Tv,t);function Ip(e,t){if(e[Tv]){let o=e[wg];o||LJ(e,wg,o=new Set),o.has(t)||(o.add(t),e.observerAdded&&e.observerAdded(o.size,t))}return t}function Op(e,t){let o=e[wg];if(o&&o.has(t)){let r=o.size-1;r?o.delete(t):e[wg]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var LJ=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),PP=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,XVe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,TJ=new RegExp(`(${PP.source})(%|[a-z]+)`,"i"),QVe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,NP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,NJ=e=>{let[t,o]=JVe(e);if(!t||nj())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(o&&o.startsWith("--")){let n=window.getComputedStyle(document.documentElement).getPropertyValue(o);return n||e}else{if(o&&NP.test(o))return NJ(o);if(o)return o}return e},JVe=e=>{let t=NP.exec(e);if(!t)return[,];let[,o,r]=t;return[o,r]},tj,e5e=(e,t,o,r,n)=>`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(r)}, ${n})`,MP=e=>{tj||(tj=Bp?new RegExp(`(${Object.keys(Bp).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>jn(i).replace(NP,NJ).replace(XVe,EJ).replace(tj,EJ)),o=t.map(i=>i.match(PP).map(Number)),n=o[0].map((i,s)=>o.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>Pp(rj({},e,{output:i})));return i=>{var s;let a=!TJ.test(t[0])&&((s=t.find(u=>TJ.test(u)))==null?void 0:s.replace(PP,"")),l=0;return t[0].replace(PP,()=>`${n[l++](i)}${a||""}`).replace(QVe,e5e)}},MJ="react-spring: ",DJ=e=>{let t=e,o=!1;if(typeof t!="function")throw new TypeError(`${MJ}once requires a function parameter`);return(...r)=>{o||(t(...r),o=!0)}},t5e=DJ(console.warn);function VJ(){t5e(`${MJ}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Edt=DJ(console.warn);function Ov(e){return Ce.str(e)&&(e[0]=="#"||/\d/.test(e)||!nj()&&NP.test(e)||e in(Bp||{}))}var Yw=nj()?Oa.useEffect:Oa.useLayoutEffect,o5e=()=>{let e=(0,Oa.useRef)(!1);return Yw(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function lj(){let e=(0,Oa.useState)()[1],t=o5e();return()=>{t.current&&e(Math.random())}}function FJ(e,t){let[o]=(0,Oa.useState)(()=>({inputs:t,result:e()})),r=(0,Oa.useRef)(),n=r.current,i=n;return i?t&&i.inputs&&r5e(t,i.inputs)||(i={inputs:t,result:e()}):i=o,(0,Oa.useEffect)(()=>{r.current=i,n==o&&(o.inputs=o.result=void 0)},[i]),i.result}function r5e(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var cj=e=>(0,Oa.useEffect)(e,n5e),n5e=[];var n0=c(ue()),i0=c(ue());var UJ=c(ue()),_d=c(ue()),qw=Symbol.for("Animated:node"),i5e=e=>!!e&&e[qw]===e,Gl=e=>e&&e[qw],zP=(e,t)=>RJ(e,qw,t),Zw=e=>e&&e[qw]&&e[qw].getPayload(),DP=class{constructor(){this.payload=void 0,zP(this,this)}getPayload(){return this.payload||[]}},Eg=class e extends DP{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,Ce.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,o){return Ce.num(t)&&(this.lastPosition=t,o&&(t=Math.round(t/o)*o,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,Ce.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Tg=class e extends Eg{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Pp({output:[t,t]})}static create(t){return new e(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Ce.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Pp({output:[this.getValue(),t]})),this._value=0,super.reset()}},VP={dependencies:null},Rg=class extends DP{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let o={};return Aa(this.source,(r,n)=>{i5e(r)?o[n]=r.getValue(t):Bi(r)?o[n]=jn(r):t||(o[n]=r)}),o}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&_o(this.payload,t=>t.reset())}_makePayload(t){if(t){let o=new Set;return Aa(t,this._addToPayload,o),Array.from(o)}}_addToPayload(t){VP.dependencies&&Bi(t)&&VP.dependencies.add(t);let o=Zw(t);o&&_o(o,r=>this.add(r))}},uj=class e extends Rg{constructor(t){super(t)}static create(t){return new e(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let o=this.getPayload();return t.length==o.length?o.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(s5e)),!0)}};function s5e(e){return(Ov(e)?Tg:Eg).create(e)}function jP(e){let t=Gl(e);return t?t.constructor:Ce.arr(e)?uj:Ov(e)?Tg:Eg}function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},FP.apply(this,arguments)}var zJ=(e,t)=>{let o=!Ce.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,_d.forwardRef)((r,n)=>{let i=(0,_d.useRef)(null),s=o&&(0,_d.useCallback)(m=>{i.current=l5e(n,m)},[n]),[a,l]=a5e(r,t),u=lj(),d=()=>{let m=i.current;if(o&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&u()},f=new dj(d,l),p=(0,_d.useRef)();Yw(()=>(p.current=f,_o(l,m=>Ip(m,f)),()=>{p.current&&(_o(p.current.deps,m=>Op(m,p.current)),st.cancel(p.current.update))})),(0,_d.useEffect)(d,[]),cj(()=>()=>{let m=p.current;_o(m.deps,g=>Op(g,m))});let h=t.getComponentProps(a.getValue());return UJ.createElement(e,FP({},h,{ref:s}))})},dj=class{constructor(t,o){this.update=t,this.deps=o}eventObserved(t){t.type=="change"&&st.write(this.update)}};function a5e(e,t){let o=new Set;return VP.dependencies=o,e.style&&(e=FP({},e,{style:t.createAnimatedStyle(e.style)})),e=new Rg(e),VP.dependencies=null,[e,o]}function l5e(e,t){return e&&(Ce.fun(e)?e(t):e.current=t),t}var jJ=Symbol.for("AnimatedComponent"),GJ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:o=n=>new Rg(n),getComponentProps:r=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:o,getComponentProps:r},i=s=>{let a=HJ(s)||"Anonymous";return Ce.str(s)?s=i[s]||(i[s]=zJ(s,n)):s=s[jJ]||(s[jJ]=zJ(s,n)),s.displayName=`Animated(${a})`,s};return Aa(e,(s,a)=>{Ce.arr(e)&&(a=HJ(s)),i[a]=i(s)}),{animated:i}},HJ=e=>Ce.str(e)?e:e&&Ce.str(e.displayName)?e.displayName:Ce.fun(e)&&e.name||null;function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Pi.apply(this,arguments)}function Bg(e,...t){return Ce.fun(e)?e(...t):e}var e0=(e,t)=>e===!0||!!(t&&e&&(Ce.fun(e)?e(t):ls(e).includes(t))),oee=(e,t)=>Ce.obj(e)?t&&e[t]:e,ree=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,c5e=e=>e,nee=(e,t=c5e)=>{let o=u5e;e.default&&e.default!==!0&&(e=e.default,o=Object.keys(e));let r={};for(let n of o){let i=t(e[n],n);Ce.und(i)||(r[n]=i)}return r},u5e=["config","onProps","onStart","onChange","onPause","onResume","onRest"],d5e={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function f5e(e){let t={},o=0;if(Aa(e,(r,n)=>{d5e[n]||(t[n]=r,o++)}),o)return t}function iee(e){let t=f5e(e);if(t){let o={to:t};return Aa(e,(r,n)=>n in t||(o[n]=r)),o}return Pi({},e)}function t0(e){return e=jn(e),Ce.arr(e)?e.map(t0):Ov(e)?$s.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function mj(e){return Ce.fun(e)||Ce.arr(e)&&Ce.obj(e[0])}var p5e={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},GP=1.70158,HP=GP*1.525,WJ=GP+1,$J=2*Math.PI/3,KJ=2*Math.PI/4.5,UP=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,m5e={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>WJ*e*e*e-GP*e*e,easeOutBack:e=>1+WJ*Math.pow(e-1,3)+GP*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((HP+1)*2*e-HP)/2:(Math.pow(2*e-2,2)*((HP+1)*(e*2-2)+HP)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$J),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$J)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*KJ))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*KJ)/2+1,easeInBounce:e=>1-UP(1-e),easeOutBounce:UP,easeInOutBounce:e=>e<.5?(1-UP(1-2*e))/2:(1+UP(2*e-1))/2},hj=Pi({},p5e.default,{mass:1,damping:1,easing:m5e.linear,clamp:!1}),gj=class{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,hj)}};function h5e(e,t,o){o&&(o=Pi({},o),YJ(o,t),t=Pi({},o,t)),YJ(e,t),Object.assign(e,t);for(let s in hj)e[s]==null&&(e[s]=hj[s]);let{mass:r,frequency:n,damping:i}=e;return Ce.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*r,e.friction=4*Math.PI*i*r/n),e}function YJ(e,t){if(!Ce.und(t.decay))e.duration=void 0;else{let o=!Ce.und(t.tension)||!Ce.und(t.friction);(o||!Ce.und(t.frequency)||!Ce.und(t.damping)||!Ce.und(t.mass))&&(e.duration=void 0,e.decay=void 0),o&&(e.frequency=void 0)}}var qJ=[],bj=class{constructor(){this.changed=!1,this.values=qJ,this.toValues=null,this.fromValues=qJ,this.to=void 0,this.from=void 0,this.config=new gj,this.immediate=!1}};function see(e,{key:t,props:o,defaultProps:r,state:n,actions:i}){return new Promise((s,a)=>{var l;let u,d,f=e0((l=o.cancel)!=null?l:r?.cancel,t);if(f)m();else{Ce.und(o.pause)||(n.paused=e0(o.pause,t));let g=r?.pause;g!==!0&&(g=n.paused||e0(g,t)),u=Bg(o.delay||0,t),g?(n.resumeQueue.add(h),i.pause()):(i.resume(),h())}function p(){n.resumeQueue.add(h),n.timeouts.delete(d),d.cancel(),u=d.time-st.now()}function h(){u>0&&!$s.skipAnimation?(n.delayed=!0,d=st.setTimeout(m,u),n.pauseQueue.add(p),n.timeouts.add(d)):m()}function m(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(p),n.timeouts.delete(d),e<=(n.cancelId||0)&&(f=!0);try{i.start(Pi({},o,{callId:e,cancel:f}),s)}catch(g){a(g)}}})}var wj=(e,t)=>t.length==1?t[0]:t.some(o=>o.cancelled)?Av(e.get()):t.every(o=>o.noop)?aee(e.get()):Wl(e.get(),t.every(o=>o.finished)),aee=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Wl=(e,t,o=!1)=>({value:e,finished:t,cancelled:o}),Av=e=>({value:e,cancelled:!0,finished:!1});function lee(e,t,o,r){let{callId:n,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=o;return!i&&e===a&&!t.reset?l:o.promise=(async()=>{o.asyncId=n,o.asyncTo=e;let u=nee(t,(b,v)=>v==="onRest"?void 0:b),d,f,p=new Promise((b,v)=>(d=b,f=v)),h=b=>{let v=n<=(o.cancelId||0)&&Av(r)||n!==o.asyncId&&Wl(r,!1);if(v)throw b.result=v,f(b),b},m=(b,v)=>{let y=new WP,k=new $P;return(async()=>{if($s.skipAnimation)throw o0(o),k.result=Wl(r,!1),f(k),k;h(y);let S=Ce.obj(b)?Pi({},b):Pi({},v,{to:b});S.parentId=n,Aa(u,(x,w)=>{Ce.und(S[w])&&(S[w]=x)});let _=await r.start(S);return h(y),o.paused&&await new Promise(x=>{o.resumeQueue.add(x)}),_})()},g;if($s.skipAnimation)return o0(o),Wl(r,!1);try{let b;Ce.arr(e)?b=(async v=>{for(let y of v)await m(y)})(e):b=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([b.then(d),p]),g=Wl(r.get(),!0,!1)}catch(b){if(b instanceof WP)g=b.result;else if(b instanceof $P)g=b.result;else throw b}finally{n==o.asyncId&&(o.asyncId=i,o.asyncTo=i?a:void 0,o.promise=i?l:void 0)}return Ce.fun(s)&&st.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function o0(e,t){Bv(e.timeouts,o=>o.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var WP=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},$P=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},yj=e=>e instanceof r0,g5e=1,r0=class extends Rv{constructor(...t){super(...t),this.id=g5e++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=Gl(this);return t&&t.getValue()}to(...t){return $s.to(this,t)}interpolate(...t){return VJ(),$s.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,o=!1){Cg(this,{type:"change",parent:this,value:t,idle:o})}_onPriorityChange(t){this.idle||Iv.sort(this),Cg(this,{type:"priority",parent:this,priority:t})}},Pg=Symbol.for("SpringPhase"),cee=1,vj=2,Sj=4,fj=e=>(e[Pg]&cee)>0,Ap=e=>(e[Pg]&vj)>0,Xw=e=>(e[Pg]&Sj)>0,ZJ=(e,t)=>t?e[Pg]|=vj|cee:e[Pg]&=~vj,XJ=(e,t)=>t?e[Pg]|=Sj:e[Pg]&=~Sj,kj=class extends r0{constructor(t,o){if(super(),this.key=void 0,this.animation=new bj,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ce.und(t)||!Ce.und(o)){let r=Ce.obj(t)?Pi({},t):Pi({},o,{from:t});Ce.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Ap(this)||this._state.asyncTo)||Xw(this)}get goal(){return jn(this.animation.to)}get velocity(){let t=Gl(this);return t instanceof Eg?t.lastVelocity||0:t.getPayload().map(o=>o.lastVelocity||0)}get hasAnimated(){return fj(this)}get isAnimating(){return Ap(this)}get isPaused(){return Xw(this)}get isDelayed(){return this._state.delayed}advance(t){let o=!0,r=!1,n=this.animation,{config:i,toValues:s}=n,a=Zw(n.to);!a&&Bi(n.to)&&(s=ls(jn(n.to))),n.values.forEach((d,f)=>{if(d.done)return;let p=d.constructor==Tg?1:a?a[f].lastPosition:s[f],h=n.immediate,m=p;if(!h){if(m=d.lastPosition,i.tension<=0){d.done=!0;return}let g=d.elapsedTime+=t,b=n.fromValues[f],v=d.v0!=null?d.v0:d.v0=Ce.arr(i.velocity)?i.velocity[f]:i.velocity,y,k=i.precision||(b==p?.005:Math.min(1,Math.abs(p-b)*.001));if(Ce.und(i.duration))if(i.decay){let S=i.decay===!0?.998:i.decay,_=Math.exp(-(1-S)*g);m=b+v/(1-S)*(1-_),h=Math.abs(d.lastPosition-m)<=k,y=v*_}else{y=d.lastVelocity==null?v:d.lastVelocity;let S=i.restVelocity||k/10,_=i.clamp?0:i.bounce,x=!Ce.und(_),w=b==p?d.v0>0:b<p,T,R=!1,B=1,I=Math.ceil(t/B);for(let O=0;O<I&&(T=Math.abs(y)>S,!(!T&&(h=Math.abs(p-m)<=k,h)));++O){x&&(R=m==p||m>p==w,R&&(y=-y*_,m=p));let P=-i.tension*1e-6*(m-p),A=-i.friction*.001*y,M=(P+A)/i.mass;y=y+M*B,m=m+y*B}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,d.durationProgress>0&&(d.elapsedTime=i.duration*d.durationProgress,g=d.elapsedTime+=t)),S=(i.progress||0)+g/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),m=b+i.easing(S)*(p-b),y=(m-d.lastPosition)/t,h=S==1}d.lastVelocity=y,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}a&&!a[f].done&&(h=!1),h?d.done=!0:o=!1,d.setValue(m,i.round)&&(r=!0)});let l=Gl(this),u=l.getValue();if(o){let d=jn(n.to);(u!==d||r)&&!i.decay?(l.setValue(d),this._onChange(d)):r&&i.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(t){return st.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ap(this)){let{to:t,config:o}=this.animation;st.batchedUpdates(()=>{this._onStart(),o.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,o){let r;return Ce.und(t)?(r=this.queue||[],this.queue=[]):r=[Ce.obj(t)?t:Pi({},o,{to:t})],Promise.all(r.map(n=>this._update(n))).then(n=>wj(this,n))}stop(t){let{to:o}=this.animation;return this._focus(this.get()),o0(this._state,t&&this._lastCallId),st.batchedUpdates(()=>this._stop(o,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){let o=this.key||"",{to:r,from:n}=t;r=Ce.obj(r)?r[o]:r,(r==null||mj(r))&&(r=void 0),n=Ce.obj(n)?n[o]:n,n==null&&(n=void 0);let i={to:r,from:n};return fj(this)||(t.reverse&&([r,n]=[n,r]),n=jn(n),Ce.und(n)?Gl(this)||this._set(r):this._set(n)),i}_update(t,o){let r=Pi({},t),{key:n,defaultProps:i}=this;r.default&&Object.assign(i,nee(r,(l,u)=>/^on/.test(u)?oee(l,n):l)),JJ(this,r,"onProps"),Jw(this,"onProps",r,this);let s=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return see(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{Xw(this)||(XJ(this,!0),Pv(a.pauseQueue),Jw(this,"onPause",Wl(this,Qw(this,this.animation.to)),this))},resume:()=>{Xw(this)&&(XJ(this,!1),Ap(this)&&this._resume(),Pv(a.resumeQueue),Jw(this,"onResume",Wl(this,Qw(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(r.loop&&l.finished&&!(o&&l.noop)){let u=uee(r);if(u)return this._update(u,!0)}return l})}_merge(t,o,r){if(o.cancel)return this.stop(!0),r(Av(this));let n=!Ce.und(t.to),i=!Ce.und(t.from);if(n||i)if(o.callId>this._lastToId)this._lastToId=o.callId;else return r(Av(this));let{key:s,defaultProps:a,animation:l}=this,{to:u,from:d}=l,{to:f=u,from:p=d}=t;i&&!n&&(!o.default||Ce.und(f))&&(f=p),o.reverse&&([f,p]=[p,f]);let h=!Xc(p,d);h&&(l.from=p),p=jn(p);let m=!Xc(f,u);m&&this._focus(f);let g=mj(o.to),{config:b}=l,{decay:v,velocity:y}=b;(n||i)&&(b.velocity=0),o.config&&!g&&h5e(b,Bg(o.config,s),o.config!==a.config?Bg(a.config,s):void 0);let k=Gl(this);if(!k||Ce.und(f))return r(Wl(this,!0));let S=Ce.und(o.reset)?i&&!o.default:!Ce.und(p)&&e0(o.reset,s),_=S?p:this.get(),x=t0(f),w=Ce.num(x)||Ce.arr(x)||Ov(x),T=!g&&(!w||e0(a.immediate||o.immediate,s));if(m){let O=jP(f);if(O!==k.constructor)if(T)k=this._set(x);else throw Error(`Cannot animate between ${k.constructor.name} and ${O.name}, as the "to" prop suggests`)}let R=k.constructor,B=Bi(f),I=!1;if(!B){let O=S||!fj(this)&&h;(m||O)&&(I=Xc(t0(_),x),B=!I),(!Xc(l.immediate,T)&&!T||!Xc(b.decay,v)||!Xc(b.velocity,y))&&(B=!0)}if(I&&Ap(this)&&(l.changed&&!S?B=!0:B||this._stop(u)),!g&&((B||Bi(u))&&(l.values=k.getPayload(),l.toValues=Bi(f)?null:R==Tg?[1]:ls(x)),l.immediate!=T&&(l.immediate=T,!T&&!S&&this._set(u)),B)){let{onRest:O}=l;_o(b5e,A=>JJ(this,o,A));let P=Wl(this,Qw(this,u));Pv(this._pendingCalls,P),this._pendingCalls.add(r),l.changed&&st.batchedUpdates(()=>{l.changed=!S,O?.(P,this),S?Bg(a.onRest,P):l.onStart==null||l.onStart(P,this)})}S&&this._set(_),g?r(lee(o.to,o,this._state,this)):B?this._start():Ap(this)&&!m?this._pendingCalls.add(r):r(aee(_))}_focus(t){let o=this.animation;t!==o.to&&(aj(this)&&this._detach(),o.to=t,aj(this)&&this._attach())}_attach(){let t=0,{to:o}=this.animation;Bi(o)&&(Ip(o,this),yj(o)&&(t=o.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;Bi(t)&&Op(t,this)}_set(t,o=!0){let r=jn(t);if(!Ce.und(r)){let n=Gl(this);if(!n||!Xc(r,n.getValue())){let i=jP(r);!n||n.constructor!=i?zP(this,i.create(r)):n.setValue(r),n&&st.batchedUpdates(()=>{this._onChange(r,o)})}}return Gl(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,Jw(this,"onStart",Wl(this,Qw(this,t.to)),this))}_onChange(t,o){o||(this._onStart(),Bg(this.animation.onChange,t,this)),Bg(this.defaultProps.onChange,t,this),super._onChange(t,o)}_start(){let t=this.animation;Gl(this).reset(jn(t.to)),t.immediate||(t.fromValues=t.values.map(o=>o.lastPosition)),Ap(this)||(ZJ(this,!0),Xw(this)||this._resume())}_resume(){$s.skipAnimation?this.finish():Iv.start(this)}_stop(t,o){if(Ap(this)){ZJ(this,!1);let r=this.animation;_o(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Cg(this,{type:"idle",parent:this});let n=o?Av(this.get()):Wl(this.get(),Qw(this,t??r.to));Pv(this._pendingCalls,n),r.changed&&(r.changed=!1,Jw(this,"onRest",n,this))}}};function Qw(e,t){let o=t0(t),r=t0(e.get());return Xc(r,o)}function uee(e,t=e.loop,o=e.to){let r=Bg(t);if(r){let n=r!==!0&&iee(r),i=(n||e).reverse,s=!n||n.reset;return _j(Pi({},e,{loop:t,default:!1,pause:void 0,to:!i||mj(o)?o:void 0,from:s?e.from:void 0,reset:s},n))}}function _j(e){let{to:t,from:o}=e=iee(e),r=new Set;return Ce.obj(t)&&QJ(t,r),Ce.obj(o)&&QJ(o,r),e.keys=r.size?Array.from(r):null,e}function QJ(e,t){Aa(e,(o,r)=>o!=null&&t.add(r))}var b5e=["onStart","onRest","onChange","onPause","onResume"];function JJ(e,t,o){e.animation[o]=t[o]!==ree(t,o)?oee(t[o],e.key):void 0}function Jw(e,t,...o){var r,n,i,s;(r=(n=e.animation)[t])==null||r.call(n,...o),(i=(s=e.defaultProps)[t])==null||i.call(s,...o)}var y5e=["onStart","onChange","onRest"],v5e=1,KP=class{constructor(t,o){this.id=v5e++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),o&&(this._flush=o),t&&this.start(Pi({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((o,r)=>t[r]=o.get()),t}set(t){for(let o in t){let r=t[o];Ce.und(r)||this.springs[o].set(r)}}update(t){return t&&this.queue.push(_j(t)),this}start(t){let{queue:o}=this;return t?o=ls(t).map(_j):this.queue=[],this._flush?this._flush(this,o):(fee(this,o),S5e(this,o))}stop(t,o){if(t!==!!t&&(o=t),o){let r=this.springs;_o(ls(o),n=>r[n].stop(!!t))}else o0(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(Ce.und(t))this.start({pause:!0});else{let o=this.springs;_o(ls(t),r=>o[r].pause())}return this}resume(t){if(Ce.und(t))this.start({pause:!1});else{let o=this.springs;_o(ls(t),r=>o[r].resume())}return this}each(t){Aa(this.springs,t)}_onFrame(){let{onStart:t,onChange:o,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Bv(t,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));let s=!n&&this._started,a=i||s&&r.size?this.get():null;i&&o.size&&Bv(o,([l,u])=>{u.value=a,l(u,this,this._item)}),s&&(this._started=!1,Bv(r,([l,u])=>{u.value=a,l(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;st.onFrame(this._onFrame)}};function S5e(e,t){return Promise.all(t.map(o=>dee(e,o))).then(o=>wj(e,o))}async function dee(e,t,o){let{keys:r,to:n,from:i,loop:s,onRest:a,onResolve:l}=t,u=Ce.obj(t.default)&&t.default;s&&(t.loop=!1),n===!1&&(t.to=null),i===!1&&(t.from=null);let d=Ce.arr(n)||Ce.fun(n)?n:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):_o(y5e,g=>{let b=t[g];if(Ce.fun(b)){let v=e._events[g];t[g]=({finished:y,cancelled:k})=>{let S=v.get(b);S?(y||(S.finished=!1),k&&(S.cancelled=!0)):v.set(b,{value:null,finished:y||!1,cancelled:k||!1})},u&&(u[g]=t[g])}});let f=e._state;t.pause===!f.paused?(f.paused=t.pause,Pv(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||ree(t,"cancel")===!0;(d||h&&f.asyncId)&&p.push(see(++e._lastAsyncId,{props:t,state:f,actions:{pause:AP,resume:AP,start(g,b){h?(o0(f,e._lastAsyncId),b(Av(e))):(g.onRest=a,b(lee(d,g,f,e)))}}})),f.paused&&await new Promise(g=>{f.resumeQueue.add(g)});let m=wj(e,await Promise.all(p));if(s&&m.finished&&!(o&&m.noop)){let g=uee(t,s,n);if(g)return fee(e,[g]),dee(e,g,!0)}return l&&st.batchedUpdates(()=>l(m,e,e.item)),m}function k5e(e,t){let o=new kj;return o.key=e,t&&Ip(o,t),o}function _5e(e,t,o){t.keys&&_o(t.keys,r=>{(e[r]||(e[r]=o(r)))._prepareNode(t)})}function fee(e,t){_o(t,o=>{_5e(e.springs,o,r=>k5e(r,e))})}function x5e(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var w5e=["children"],Cj=e=>{let{children:t}=e,o=x5e(e,w5e),r=(0,i0.useContext)(YP),n=o.pause||!!r.pause,i=o.immediate||!!r.immediate;o=FJ(()=>({pause:n,immediate:i}),[n,i]);let{Provider:s}=YP;return n0.createElement(s,{value:o},t)},YP=C5e(Cj,{});Cj.Provider=YP.Provider;Cj.Consumer=YP.Consumer;function C5e(e,t){return Object.assign(e,n0.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var eee;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(eee||(eee={}));var xj=class extends r0{constructor(t,o){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Pp(...o);let r=this._get(),n=jP(r);zP(this,n.create(r))}advance(t){let o=this._get(),r=this.get();Xc(o,r)||(Gl(this).setValue(o),this._onChange(o,this.idle)),!this.idle&&tee(this._active)&&pj(this)}_get(){let t=Ce.arr(this.source)?this.source.map(jn):ls(jn(this.source));return this.calc(...t)}_start(){this.idle&&!tee(this._active)&&(this.idle=!1,_o(Zw(this),t=>{t.done=!1}),$s.skipAnimation?(st.batchedUpdates(()=>this.advance()),pj(this)):Iv.start(this))}_attach(){let t=1;_o(ls(this.source),o=>{Bi(o)&&Ip(o,this),yj(o)&&(o.idle||this._active.add(o),t=Math.max(t,o.priority+1))}),this.priority=t,this._start()}_detach(){_o(ls(this.source),t=>{Bi(t)&&Op(t,this)}),this._active.clear(),pj(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=ls(this.source).reduce((o,r)=>Math.max(o,(yj(r)?r.priority:0)+1),0))}};function E5e(e){return e.idle!==!1}function tee(e){return!e.size||Array.from(e).every(E5e)}function pj(e){e.idle||(e.idle=!0,_o(Zw(e),t=>{t.done=!0}),Cg(e,{type:"idle",parent:e}))}$s.assign({createStringInterpolator:MP,to:(e,t)=>new xj(e,t)});var Mdt=Iv.advance;var hee=c(xd());function Bj(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var T5e=["style","children","scrollTop","scrollLeft"],gee=/^--/;function R5e(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!gee.test(e)&&!(s0.hasOwnProperty(e)&&s0[e])?t+"px":(""+t).trim()}var mee={};function B5e(e,t){if(!e.nodeType||!e.setAttribute)return!1;let o=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:n,children:i,scrollTop:s,scrollLeft:a}=r,l=Bj(r,T5e),u=Object.values(l),d=Object.keys(l).map(f=>o||e.hasAttribute(f)?f:mee[f]||(mee[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(e.textContent=i);for(let f in n)if(n.hasOwnProperty(f)){let p=R5e(f,n[f]);gee.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a)}var s0={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},P5e=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),I5e=["Webkit","Ms","Moz","O"];s0=Object.keys(s0).reduce((e,t)=>(I5e.forEach(o=>e[P5e(o,t)]=e[t]),e),s0);var O5e=["x","y","z"],A5e=/^(matrix|translate|scale|rotate|skew)/,L5e=/^(translate)/,N5e=/^(rotate|skew)/,Ej=(e,t)=>Ce.num(e)&&e!==0?e+t:e,qP=(e,t)=>Ce.arr(e)?e.every(o=>qP(o,t)):Ce.num(e)?e===t:parseFloat(e)===t,Tj=class extends Rg{constructor(t){let{x:o,y:r,z:n}=t,i=Bj(t,O5e),s=[],a=[];(o||r||n)&&(s.push([o||0,r||0,n||0]),a.push(l=>[`translate3d(${l.map(u=>Ej(u,"px")).join(",")})`,qP(l,0)])),Aa(i,(l,u)=>{if(u==="transform")s.push([l||""]),a.push(d=>[d,d===""]);else if(A5e.test(u)){if(delete i[u],Ce.und(l))return;let d=L5e.test(u)?"px":N5e.test(u)?"deg":"";s.push(ls(l)),a.push(u==="rotate3d"?([f,p,h,m])=>[`rotate3d(${f},${p},${h},${Ej(m,d)})`,qP(m,0)]:f=>[`${u}(${f.map(p=>Ej(p,d)).join(",")})`,qP(f,u.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new Rj(s,a)),super(i)}},Rj=class extends Rv{constructor(t,o){super(),this._value=null,this.inputs=t,this.transforms=o}get(){return this._value||(this._value=this._get())}_get(){let t="",o=!0;return _o(this.inputs,(r,n)=>{let i=jn(r[0]),[s,a]=this.transforms[n](Ce.arr(i)?i:r.map(jn));t+=" "+s,o=o&&a}),o?"none":t}observerAdded(t){t==1&&_o(this.inputs,o=>_o(o,r=>Bi(r)&&Ip(r,this)))}observerRemoved(t){t==0&&_o(this.inputs,o=>_o(o,r=>Bi(r)&&Op(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Cg(this,t)}},M5e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],D5e=["scrollTop","scrollLeft"];$s.assign({batchedUpdates:hee.unstable_batchedUpdates,createStringInterpolator:MP,colors:AJ});var V5e=GJ(M5e,{applyAnimatedValues:B5e,createAnimatedStyle:e=>new Tj(e),getComponentProps:e=>Bj(e,D5e)}),bee=V5e.animated;var Lv=c(F(),1),vee=c(Rt(),1),See=c(Q(),1);var F5e=200;function yee(e){return{top:e.offsetTop,left:e.offsetLeft}}function z5e({triggerAnimationOnChange:e,clientId:t}){let o=(0,Lv.useRef)(),{isTyping:r,getGlobalBlockCount:n,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:a,isAncestorMultiSelected:l,isDraggingBlocks:u}=(0,See.useSelect)(C),{previous:d,prevRect:f}=(0,Lv.useMemo)(()=>({previous:o.current&&yee(o.current),prevRect:o.current&&o.current.getBoundingClientRect()}),[e]);return(0,Lv.useLayoutEffect)(()=>{if(!d||!o.current)return;let p=(0,vee.getScrollContainer)(o.current),h=i(t),m=h||s(t),g=u();function b(){if(!g&&m&&f){let R=o.current.getBoundingClientRect().top-f.top;R&&(p.scrollTop+=R)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||r()||n()>F5e){b();return}let y=h||a(t)||l(t);if(y&&g)return;let k=y?"1":"",S=new KP({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:T}){if(!o.current)return;let{x:R,y:B}=T;R=Math.round(R),B=Math.round(B);let I=R===0&&B===0;o.current.style.transformOrigin="center center",o.current.style.transform=I?null:`translate3d(${R}px,${B}px,0)`,o.current.style.zIndex=k,b()}});o.current.style.transform=void 0;let _=yee(o.current),x=Math.round(d.left-_.left),w=Math.round(d.top-_.top);return S.start({x:0,y:0,from:{x,y:w}}),()=>{S.stop(),S.set({x:0,y:0})}},[d,f,t,r,n,i,s,a,l,u]),o}var ZP=z5e;var QP=c(F(),1),wd=c(Rt(),1),_ee=c(Q(),1);var XP=".block-editor-block-list__block",j5e=".block-list-appender",H5e=".block-editor-button-block-appender";function kee(e,t){return e.closest(XP)===t.closest(XP)}function Qc(e,t){return t.closest([XP,j5e,H5e].join(","))===e}function La(e,t){let{anchorNode:o,focusNode:r}=e;if(!o||!r)return;let i=(o.nodeType===o.ELEMENT_NODE?o:o.parentElement)?.closest('[contenteditable="true"]');if(!(!i||i===t||!i.contains(r)))return i}function Sr(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;let o=e.closest(XP);if(o)return o.id.slice(6)}function Pj(e,t){let o=Math.min(e.left,t.left),r=Math.max(e.right,t.right),n=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(o,i,r-o,n-i)}function U5e(e){let t=e.ownerDocument.defaultView;if(!t||e.hasAttribute("data-visually-hidden"))return!1;let o=e.getBoundingClientRect();if(o.width===0||o.height===0)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});let r=t.getComputedStyle(e);return!(r.display==="none"||r.visibility==="hidden"||r.opacity==="0")}function G5e(e){let t=window.getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}var W5e=["core/navigation"];function Nv(e){let t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let o=e.getBoundingClientRect(),r=e.getAttribute("data-type");if(r&&W5e.includes(r)){let s=[e],a;for(;a=s.pop();)if(!G5e(a)){for(let l of a.children)if(U5e(l)){let u=l.getBoundingClientRect();o=Pj(o,u),s.push(l)}}}let n=Math.max(o.left,0),i=Math.min(o.right,t.innerWidth);return o=new window.DOMRectReadOnly(n,o.top,i-n,o.height),o}function xee({clientId:e,initialPosition:t}){let o=(0,QP.useRef)(),{isBlockSelected:r,isMultiSelecting:n,isZoomOut:i,getSelectionStart:s}=H((0,_ee.useSelect)(C));return(0,QP.useEffect)(()=>{if(!r(e)||n()||i()||t==null||!o.current)return;let{ownerDocument:a}=o.current;if(Qc(o.current,a.activeElement))return;let l=wd.focus.tabbable.find(o.current).filter(v=>(0,wd.isTextField)(v)),u=t===-1,d=l[u?l.length-1:0]||o.current;if(!Qc(o.current,d)){o.current.focus();return}if(!o.current.getAttribute("contenteditable")){let v=wd.focus.tabbable.findNext(o.current);if(v&&Qc(o.current,v)&&(0,wd.isFormElement)(v)){v.focus();return}}let{activeElement:f}=a,p=a.defaultView.getSelection(),{clientId:h,offset:m}=s();f?.isContentEditable&&f.contains(d)&&p.anchorNode&&d.contains(p.anchorNode)&&(t===0||m!==void 0&&h===e)||(0,wd.placeCaretAtHorizontalEdge)(d,u)},[t,e]),o}var JP=c(fe(),1);var{subscribeDelegatedListener:wee}=H(JP.privateApis);function Cee({isEnabled:e=!0}={}){return(0,JP.useRefEffect)(t=>{if(!e)return;function o(i){i.defaultPrevented||(i.preventDefault(),t.classList.toggle("is-hovered",i.type==="mouseover"))}let r=wee(t,"mouseout",o),n=wee(t,"mouseover",o);return()=>{r(),n(),t.classList.remove("is-hovered")}},[e])}var oI=c(Q(),1),rI=c(fe(),1);var Tee=c(G(),1),Ree=c(Rt(),1),Na=c(ce(),1);var Eee=c(Rt(),1);function $5e(e){let t="<!--StartFragment-->",o=e.indexOf(t);if(o>-1)e=e.substring(o+t.length);else return e;let n=e.indexOf("<!--EndFragment-->");return n>-1&&(e=e.substring(0,n)),e}function K5e(e){let t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}function Mv({clipboardData:e}){let t="",o="";try{t=e.getData("text/plain"),o=e.getData("text/html")}catch{return}o=$5e(o),o=K5e(o);let r=(0,Eee.getFilesFromDataTransfer)(e);return r.length&&!Y5e(r,o)?{files:r}:{html:o,plainText:t,files:[]}}function Y5e(e,t){if(t&&e?.length===1&&e[0].type.indexOf("image/")===0){let o=/<\s*img\b/gi;if(t.match(o)?.length!==1)return!0;let r=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(r))return!0}return!1}var Ij=Symbol("requiresWrapperOnCopy");function eI(e,t,o){let r=t,[n]=t;if(n&&o.select(Na.store).getBlockType(n.name)[Ij]){let{getBlockRootClientId:a,getBlockName:l,getBlockAttributes:u}=o.select(C),d=a(n.clientId),f=l(d);f&&(r=(0,Na.createBlock)(f,u(d),r))}let i=(0,Na.serialize)(r);e.clipboardData.setData("text/plain",q5e(i)),e.clipboardData.setData("text/html",i)}function Bee(e,t){let{plainText:o,html:r,files:n}=Mv(e),i=[];if(n.length){let s=(0,Na.getBlockTransforms)("from");i=n.reduce((a,l)=>{let u=(0,Na.findTransform)(s,d=>d.type==="files"&&d.isMatch([l]));return u&&a.push(u.transform([l])),a},[]).flat()}else i=(0,Na.pasteHandler)({HTML:r,plainText:o,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}function q5e(e){return e=e.replace(/<br>/g,`
`),(0,Ree.__unstableStripHTML)(e).trim().replace(/\n\n+/g,`
`)}var Pee=!1;function tI(e){Pee=e}function Iee(){return Pee}function ir(e,t,{focus:o=!0}={}){return e.contentEditable===String(t)?t:(e.contentEditable=t,t?e.isContentEditable?(e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","true"),e.setAttribute("aria-label",(0,Tee.__)("Editor canvas")),o&&e.focus(),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}var{subscribeDelegatedListener:Z5e}=H(rI.privateApis);function Oee(e){let{isBlockSelected:t,isBlockMultiSelected:o}=(0,oI.useSelect)(C),{selectBlock:r,selectionChange:n}=(0,oI.useDispatch)(C);return(0,rI.useRefEffect)(i=>{function s(a){if(t(e)){a.target.isContentEditable||n(e);return}if(!Iee()&&!o(e)&&Qc(i,a.target)){if(a.target.isContentEditable){r(e,null);return}r(e)}}return Z5e(i,"focusin",s)},[t,r])}var Lp=c(F(),1);var Lee=c(Q(),1),Nee=c(fe(),1),Mee=c(F(),1);var Oj={onKeyDown:"keydown",onKeyUp:"keyup",onBeforeInput:"beforeinput",onInput:"input",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onCompositionEnd:"compositionend"},X5e=Object.values(Oj);function Dee(e){let t;for(let o in Oj)typeof e[o]=="function"&&(t=t||{},t[Oj[o]]=e[o]);return t}var Vee=["eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted"],Aee=[...Vee,"view","detail","key","code","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","keyCode","which"],a0=[...Vee,"data"],Q5e={keydown:Aee,keyup:Aee,beforeinput:a0,input:a0,compositionstart:a0,compositionupdate:a0,compositionend:a0};function J5e(e,t){let o=!1,r={nativeEvent:e,type:e.type,target:t,currentTarget:null,preventDefault(){e.preventDefault(),r.defaultPrevented=!0},isDefaultPrevented(){return r.defaultPrevented},stopPropagation(){e.stopPropagation(),o=!0},isPropagationStopped(){return o},persist(){},isPersistent(){return!0}};for(let n of Q5e[e.type]){let i=e[n];r[n]=typeof i=="function"?i.bind(e):i}return r}function Fee(){let{hasMultiSelection:e,getBlockParents:t}=(0,Lee.useSelect)(C),{refsMap:o,eventHandlers:r}=(0,Mee.useContext)(vd);return(0,Nee.useRefEffect)(n=>{function i(l){if(!r.size||l.target!==n||!l.isTrusted||n.contentEditable!=="true"||e())return;let u=n.ownerDocument.defaultView.getSelection();if(!u.rangeCount)return;let d=La(u,n),f=Sr(d);if(!f)return;let p=[f,...t(f,!0)],h;for(let m of p){let g=r.get(m)?.current?.[l.type],b=g&&o.get(m);if(b&&(h||(h=J5e(l,d)),h.currentTarget=b,g(h),h.isPropagationStopped()))break}}let s=n.ownerDocument.documentElement,a=X5e.map(l=>(s.addEventListener(l,i),()=>s.removeEventListener(l,i)));return()=>a.forEach(l=>l())},[e,t,o,r])}function zee(e,t){let{eventHandlers:o}=(0,Lp.useContext)(vd),r=Dee(t),n=(0,Lp.useRef)();(0,Lp.useInsertionEffect)(()=>{n.current=r});let i=!!r;(0,Lp.useEffect)(()=>{if(i)return o.set(e,n),()=>o.delete(e)},[o,e,i])}var Dv=c(ce(),1),Hee=c(Rt(),1),Np=c(so(),1),nI=c(Q(),1),Uee=c(fe(),1);function jee(e){return!e||e==="transparent"||e==="rgba(0, 0, 0, 0)"}function Gee({clientId:e,isSelected:t}){let{getBlockRootClientId:o,isZoomOut:r,hasMultiSelection:n,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=H((0,nI.useSelect)(C)),{insertAfterBlock:l,removeBlock:u,resetZoomLevel:d,startDraggingBlocks:f,stopDraggingBlocks:p,editContentOnlySection:h}=H((0,nI.useDispatch)(C));return(0,Uee.useRefEffect)(m=>{if(!t)return;function g(y){let{keyCode:k,target:S}=y;k!==Np.ENTER&&k!==Np.BACKSPACE&&k!==Np.DELETE||S!==m||(0,Hee.isTextField)(S)||(y.preventDefault(),k===Np.ENTER&&r()?d():k===Np.ENTER?l(e):u(e))}function b(y){if(m!==y.target||m.isContentEditable||m.ownerDocument.activeElement!==m||n()){y.preventDefault();return}let k=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:o(e)});y.dataTransfer.effectAllowed="move",y.dataTransfer.clearData(),y.dataTransfer.setData("wp-blocks",k);let{ownerDocument:S}=m,{defaultView:_}=S;_.getSelection().removeAllRanges();let w=S.createElement("div");w.style.width="1px",w.style.height="1px",w.style.position="fixed",w.style.visibility="hidden",S.body.appendChild(w),y.dataTransfer.setDragImage(w,0,0);let T=m.getBoundingClientRect(),R=m.id,B=m.cloneNode();B.style.display="none",m.id=null,m.after(B);let I=1;{let K=m;for(;K=K.parentElement;){let{scale:Y}=_.getComputedStyle(K);if(Y&&Y!=="none"){I=parseFloat(Y);break}}}let O=1/I,P={};for(let K of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])P[K]=m.style[K];let A=_.scrollY,M=_.scrollX,z=y.clientX,V=y.clientY;m.style.position="relative",m.style.top="0px",m.style.left="0px";let L=y.clientX-T.left,D=y.clientY-T.top,N=T.height>200?200/T.height:1;if(m.style.zIndex="1000",m.style.transformOrigin=`${L*O}px ${D*O}px`,m.style.transition="transform 0.2s ease-out",m.style.transform=`scale(${N})`,m.style.opacity="0.9",jee(_.getComputedStyle(m).backgroundColor)){let K="transparent",Y=m;for(;Y=Y.parentElement;){let{backgroundColor:Z}=_.getComputedStyle(Y);if(!jee(Z)){K=Z;break}}m.style.backgroundColor=K}let j=!1,X=z,J=V;function te(K){K.clientX===X&&K.clientY===J||(X=K.clientX,J=K.clientY,ee())}function ee(){j||(j=!0,m.style.pointerEvents="none");let K=J-V,Y=X-z,Z=_.scrollY,oe=_.scrollX,ie=Z-A,q=oe-M,re=K+ie,ae=Y+q;m.style.top=`${re*O}px`,m.style.left=`${ae*O}px`}function W(){S.removeEventListener("dragover",te),S.removeEventListener("dragend",W),S.removeEventListener("drop",W),S.removeEventListener("scroll",ee);for(let[K,Y]of Object.entries(P))m.style[K]=Y;B.remove(),m.id=R,w.remove(),p(),document.body.classList.remove("is-dragging-components-draggable"),S.documentElement.classList.remove("is-dragging")}S.addEventListener("dragover",te),S.addEventListener("dragend",W),S.addEventListener("drop",W),S.addEventListener("scroll",ee),f([e]),document.body.classList.add("is-dragging-components-draggable"),S.documentElement.classList.add("is-dragging")}m.addEventListener("keydown",g),m.addEventListener("dragstart",b);function v(y){let k=i(e),S=a(e),_=(0,Dv.isReusableBlock)(S),x=(0,Dv.isTemplatePart)(S);!k||s===e||_||x||(y.preventDefault(),h(e))}return m.addEventListener("dblclick",v),()=>{m.removeEventListener("keydown",g),m.removeEventListener("dragstart",b),m.removeEventListener("dblclick",v)}},[e,t,o,a,Dv.isReusableBlock,Dv.isTemplatePart,l,u,r,d,n,f,p,i,s,h])}var Wee=c(fe(),1),$ee=c(F(),1);function Kee(){let e=(0,$ee.useContext)(iI);return(0,Wee.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}var sI=c(fe(),1);function Yee({isSelected:e}){let t=(0,sI.useReducedMotion)();return(0,sI.useRefEffect)(o=>{if(e){let{ownerDocument:r}=o,{defaultView:n}=r;if(!n.IntersectionObserver)return;let i=new n.IntersectionObserver(s=>{s[0].isIntersecting||o.scrollIntoView({behavior:t?"instant":"smooth"}),i.disconnect()});return i.observe(o),()=>{i.disconnect()}}},[e])}var qee=c(fe(),1),Zee=c(Q(),1);function aI({clientId:e="",isEnabled:t=!0}={}){let{getEnabledClientIdsTree:o}=H((0,Zee.useSelect)(C));return(0,qee.useRefEffect)(r=>{if(!t)return;let n=()=>{o(e).forEach(({clientId:s})=>{let a=r.querySelector(`[data-block="${s}"]`);a&&(a.classList.remove("has-editable-outline"),a.offsetWidth,a.classList.add("has-editable-outline"))})},i=s=>{(s.target===r||s.target.classList.contains("is-root-container"))&&(s.defaultPrevented||(s.preventDefault(),n()))};return r.addEventListener("click",i),()=>r.removeEventListener("click",i)},[t])}var Xee=c(fe(),1),l0=new Map;function eFe(e,t){let o=l0.get(e);o||(o=new Set,l0.set(e,o),e.addEventListener("pointerdown",Jee)),o.add(t)}function tFe(e,t){let o=l0.get(e);o&&(o.delete(t),Qee(t),o.size===0&&(l0.delete(e),e.removeEventListener("pointerdown",Jee)))}function Qee(e){let t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),t==="true"&&!e.getAttribute("draggable")&&e.setAttribute("draggable","true"))}function Jee(e){let{target:t}=e,{ownerDocument:o,isContentEditable:r,tagName:n}=t,i=["INPUT","TEXTAREA"].includes(n),s=l0.get(o);if(r||i)for(let a of s)a.getAttribute("draggable")==="true"&&a.contains(t)&&(a.removeAttribute("draggable"),a.setAttribute("data-draggable","true"));else for(let a of s)Qee(a)}function ete(){return(0,Xee.useRefEffect)(e=>(eFe(e.ownerDocument,e),()=>{tFe(e.ownerDocument,e)}),[])}var Ar=c(G(),1),Ii=c(F(),1),Oi=c(U(),1),Ig=c(Q(),1),nte=c($l(),1),ite=c(ss(),1);var c0=c(G(),1);var{getViewportBreakpoints:oFe}=H(br);function Aj(e){let t=oFe(e);return W6.filter(([o])=>(o!==io.tablet.key||t.tablet!==void 0)&&(o!==io.mobile.key||t.mobile!==void 0))}function rFe(e,t){if(!e)return!1;let o=e.attributes?.metadata?.blockVisibility;if(o===!0||typeof o!="object")return!1;let r=o.viewport;return!r||typeof r!="object"||!W6.some(([,{key:n}])=>n===t)?!1:r[t]===!1}function ote(e,t){if(!e?.length)return!1;let o=e.filter(r=>rFe(r,t)).length;return o===0?!1:o===e.length?!0:null}function rte(e){if(!e?.length)return!1;let t=e.filter(o=>o&&o.attributes?.metadata?.blockVisibility===!1).length;return t===0?!1:t===e.length?!0:null}function Lj(e,t){if(!e&&e!==!1)return null;if(e===!1)return(0,c0.__)("Block is hidden");if(e?.viewport){let o=Aj(t).filter(([r])=>e.viewport?.[r]===!1).map(([,r])=>r.label);if(o.length>0)return(0,c0.sprintf)((0,c0.__)("Block is hidden on %s"),o.join(", "))}return null}var kr=c(E(),1),nFe={[io.mobile.key]:!1,[io.tablet.key]:!1,[io.desktop.key]:!1},iFe=[];function Nj({clientIds:e,onClose:t}){let{createSuccessNotice:o}=(0,Ig.useDispatch)(ite.store),{updateBlockAttributes:r}=(0,Ig.useDispatch)(C),n=(0,Ig.useSelect)(S=>S(C).getBlocksByClientId(e)??iFe,[e]),i=(0,Ig.useSelect)(S=>S(nte.store).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,Ig.useSelect)(S=>S(C).getSettings().__experimentalFeatures?.viewport,[]),a=(0,Ii.useMemo)(()=>Aj(s),[s]),l=(0,Ii.useMemo)(()=>{if(n?.length===0)return{hideEverywhere:!1,viewportChecked:{}};let S={};return a.forEach(([,{key:_}])=>{S[_]=ote(n,_)}),{hideEverywhere:rte(n),viewportChecked:S}},[n,a]),[u,d]=(0,Ii.useState)(l?.viewportChecked??{}),[f,p]=(0,Ii.useState)(l?.hideEverywhere??!1),h=(0,Ii.useCallback)((S,_)=>{d({...u,[S]:_})},[u]),m=(0,Ii.useMemo)(()=>{if(!f)return(0,Ar.sprintf)((0,Ar.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);let S=n?.length>1?(0,Ar.__)("Blocks hidden. You can access them via the List View (%s)."):(0,Ar.__)("Block hidden. You can access it via the List View (%s).");return(0,Ar.sprintf)(S,i)},[f,n?.length,i]),g=(0,Ii.useMemo)(()=>Object.values(u).some(S=>S===!0||S===null),[u]),b=(0,Ii.useMemo)(()=>f!==l.hideEverywhere?!0:a.some(([,{key:S}])=>u[S]!==l.viewportChecked[S]),[f,u,l,a]),v=(0,Ii.useMemo)(()=>f===null?!0:Object.values(u).some(S=>S===null),[f,u]),y=(0,Ii.useCallback)(S=>{S.preventDefault();let _=f?!1:{viewport:a.reduce((w,[,{key:T}])=>(u[T]&&(w[T]=!1),w),{})},x=Object.fromEntries(n.map(({clientId:w,attributes:T})=>[w,{metadata:Ge({...T?.metadata,blockVisibility:_})}]));r(e,x,{uniqueByBlock:!0}),o(m,{id:f?"block-visibility-hidden":"block-visibility-viewports-updated",type:"snackbar"}),t()},[n,e,o,f,m,t,r,a,u]),k=n?.length>1;return(0,kr.jsx)(Oi.Modal,{title:e?.length>1?(0,Ar.__)("Hide blocks"):(0,Ar.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,kr.jsxs)("form",{onSubmit:y,children:[(0,kr.jsxs)("fieldset",{children:[(0,kr.jsx)("legend",{children:k?(0,Ar.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,Ar.__)("Select the viewport size for which you want to hide the block.")}),(0,kr.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,kr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,kr.jsx)(Oi.CheckboxControl,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,Ar.__)("Omit from published content"),checked:f===!0,indeterminate:f===null,onChange:S=>{p(S),d(nFe)}}),f!==!0&&(0,kr.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:a.map(([,{label:S,icon:_,key:x}])=>(0,kr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,kr.jsx)(Oi.CheckboxControl,{label:(0,Ar.sprintf)((0,Ar.__)("Hide on %s"),S),checked:u[x]??!1,indeterminate:u[x]===null,onChange:w=>h(x,w)}),(0,kr.jsx)(Oi.Icon,{icon:_,className:$({"block-editor-block-visibility-modal__options-icon--checked":u[x]})})]},x))})]})}),k&&v&&(0,kr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Ar.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!k&&f===!0&&(0,kr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Ar.sprintf)((0,Ar.__)("Block will be hidden in the editor, and omitted from the published markup on the frontend. You can configure it again by selecting it in the List View (%s)."),i)}),!k&&!f&&g&&(0,kr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Ii.createInterpolateElement)((0,Ar.sprintf)((0,Ar.__)("Block will be hidden according to the selected viewports. It will be <strong>included in the published markup on the frontend</strong>. You can configure it again by selecting it in the List View (%s)."),i),{strong:(0,kr.jsx)("strong",{})})})]}),(0,kr.jsxs)(Oi.Flex,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,kr.jsx)(Oi.FlexItem,{children:(0,kr.jsx)(Oi.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Ar.__)("Cancel")})}),(0,kr.jsx)(Oi.FlexItem,{children:(0,kr.jsx)(Oi.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Ar.__)("Apply")})})]})]})})}var Mj=c(fe(),1);var{getViewportBreakpoints:sFe}=H(br);function Ma(e={}){let{blockVisibility:t=void 0,deviceType:o=io.desktop.key,viewportSettings:r,view:n=window}=e,i=sFe(r),s=i.mobile?`(width <= ${i.mobile})`:void 0,a=(0,Mj.useMediaQuery)(s,n),l;i.tablet&&(l=i.mobile?`(${i.mobile} < width <= ${i.tablet})`:`(width <= ${i.tablet})`);let u=(0,Mj.useMediaQuery)(l,n),d;return o===io.mobile.key&&i.mobile?d=io.mobile.key:o===io.tablet.key&&i.tablet?d=io.tablet.key:a?d=io.mobile.key:u&&i.tablet?d=io.tablet.key:d=io.desktop.key,{isBlockCurrentlyHidden:t===!1||t?.viewport?.[d]===!1,currentViewport:d}}var Dj=c(G(),1),lI=c(U(),1),cI=c(F(),1);var ste=c(ce(),1),uI=c(Q(),1);var Vj=c(E(),1);function Fj({clientIds:e}){let t=(0,cI.useRef)(!1),[o]=Le("blockVisibility.allowEditing"),{canToggleBlockVisibility:r,areBlocksHiddenAnywhere:n}=(0,uI.useSelect)(a=>{let{getBlocksByClientId:l,getBlockName:u,isBlockHiddenAnywhere:d}=H(a(C));return{canToggleBlockVisibility:l(e).every(({clientId:p})=>(0,ste.hasBlockSupport)(u(p),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(p=>d(p))}},[e]),i=(0,uI.useDispatch)(C);if((0,cI.useEffect)(()=>{n&&(t.current=!0)},[n]),o===!1||!n&&!t.current)return null;let{showViewportModal:s}=H(i);return(0,Vj.jsx)(lI.ToolbarGroup,{className:"block-editor-block-visibility-toolbar",children:(0,Vj.jsx)(lI.ToolbarButton,{disabled:!r,icon:n?Ml:ug,label:n?(0,Dj.__)("Hidden"):(0,Dj.__)("Visible"),onClick:()=>s(e),"aria-haspopup":"dialog"})})}var zj=c(G(),1),ate=c(U(),1),dI=c(Q(),1),lte=c($l(),1);var cte=c(E(),1);function jj({clientIds:e}){let[t]=Le("blockVisibility.allowEditing"),{areBlocksHiddenAnywhere:o,shortcut:r}=(0,dI.useSelect)(s=>{let{isBlockHiddenAnywhere:a}=H(s(C));return{areBlocksHiddenAnywhere:e?.every(l=>a(l)),shortcut:s(lte.store).getShortcutRepresentation("core/block-editor/toggle-block-visibility")}},[e]),n=(0,dI.useDispatch)(C);if(t===!1)return null;let{showViewportModal:i}=H(n);return(0,cte.jsx)(ate.MenuItem,{onClick:()=>i(e),shortcut:r,children:o?(0,zj.__)("Show"):(0,zj.__)("Hide")})}var Dp=c(U(),1),Hj=c(Q(),1),Mp=c(G(),1);var Vv=c(E(),1),{Badge:aFe}=H(Dp.privateApis),lFe={currentBlockVisibility:void 0,hasParentHiddenEverywhere:!1,selectedDeviceType:io.desktop.key};function ute({clientId:e}){let{currentBlockVisibility:t,selectedDeviceType:o,viewportSettings:r,hasParentHiddenEverywhere:n}=(0,Hj.useSelect)(p=>{if(!e)return lFe;let{getBlockAttributes:h,isBlockParentHiddenEverywhere:m,getSettings:g}=H(p(C)),b=g();return{currentBlockVisibility:h(e)?.metadata?.blockVisibility,selectedDeviceType:b?.[wa]?.toLowerCase()||io.desktop.key,viewportSettings:b?.__experimentalFeatures?.viewport,hasParentHiddenEverywhere:m(e)}},[e]),s=Mt(e)?.ownerDocument?.defaultView,a=s===null?void 0:s,{isBlockCurrentlyHidden:l,currentViewport:u}=Ma({blockVisibility:t,deviceType:o,viewportSettings:r,view:a}),d=(0,Hj.useSelect)(p=>!e||!u?!1:H(p(C)).isBlockParentHiddenAtViewport(e,u),[e,u]);if(!(l||n||d))return null;let f;if(l)if(t===!1)f=(0,Mp.__)("Block is hidden");else{let p=io[u]?.label||u;f=(0,Mp.sprintf)((0,Mp.__)("Block is hidden on %s"),p)}if(n)f=(0,Mp.__)("Parent block is hidden");else if(d){let p=io[u]?.label||u;f=(0,Mp.sprintf)((0,Mp.__)("Parent block is hidden on %s"),p)}return(0,Vv.jsx)(aFe,{className:"block-editor-block-visibility-info",children:(0,Vv.jsxs)(Dp.__experimentalHStack,{spacing:2,justify:"start",children:[(0,Vv.jsx)(Dp.Icon,{icon:Ml}),(0,Vv.jsx)(Dp.__experimentalText,{children:f})]})})}function u0(e={},{__unstableIsHtml:t}={}){let{clientId:o,className:r,wrapperProps:n={},isAligned:i,index:s,mode:a,name:l,blockApiVersion:u,blockTitle:d,isSelected:f,isSubtreeDisabled:p,hasOverlay:h,initialPosition:m,blockEditingMode:g,isHighlighted:b,isMultiSelected:v,isPartiallySelected:y,isReusable:k,isDragging:S,hasChildSelected:_,isEditingDisabled:x,hasEditableOutline:w,isEditingContentOnlySection:T,defaultClassName:R,isSectionBlock:B,isWithinSectionBlock:I,canMove:O,blockVisibility:P,deviceType:A,viewportSettings:M,ariaLabel:z}=(0,dte.useContext)(Dn);zee(o,n);let V=(0,Fv.useRefEffect)(Y=>{if(Y){let{ownerDocument:Z}=Y,{defaultView:oe}=Z;V.current=oe}},[]),L=(0,fI.sprintf)((0,fI.__)("Block: %s"),d),D=a==="html"&&!t?"-visual":"",N=ete(),j=!I,X=(0,Fv.useMergeRefs)([e.ref,V,xee({clientId:o,initialPosition:m}),PQ(o),Oee(o),Gee({clientId:o,isSelected:f}),Cee({isEnabled:j}),Kee(),ZP({triggerAnimationOnChange:s,clientId:o}),(0,Fv.useDisabled)({isDisabled:!h}),aI({clientId:o,isEnabled:B}),Yee({isSelected:f}),O?N:void 0]),J=ht(),ee=!!J[Fy]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{},{isBlockCurrentlyHidden:W}=Ma({blockVisibility:P,deviceType:A,viewportSettings:M,view:V.current});u<2&&o===J.clientId&&(0,pte.default)(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let K=!1;return(n?.style?.marginTop?.charAt(0)==="-"||n?.style?.marginBottom?.charAt(0)==="-"||n?.style?.marginLeft?.charAt(0)==="-"||n?.style?.marginRight?.charAt(0)==="-")&&(K=!0),{tabIndex:g==="disabled"?-1:0,draggable:O&&!_?!0:void 0,...n,...e,ref:X,id:`block-${o}${D}`,role:"document","aria-label":z??L,"data-block":o,"data-type":l,"data-title":d,inert:p?"true":void 0,className:$("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":h,"is-selected":f,"is-highlighted":b,"is-multi-selected":v,"is-partially-selected":y,"is-reusable":k,"is-dragging":S,"has-child-selected":_,"is-editing-disabled":x,"has-editable-outline":w,"has-negative-margin":K,"is-editing-content-only-section":T,"is-block-hidden":W},r,e.className,n.className,R),style:{...n.style,...e.style,...ee}}}u0.save=fte.__unstableGetBlockProps;var Lr=c(E(),1);function cFe(e,t){let o={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(o.className=$(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(o.style={...e.style,...t.style}),o}function pI({children:e,isHtml:t,...o}){return(0,Lr.jsx)("div",{...u0(o,{__unstableIsHtml:t}),children:e})}function Uj({block:{__unstableBlockSource:e},mode:t,isLocked:o,canRemove:r,clientId:n,isSelected:i,isSelectionEnabled:s,className:a,__unstableLayoutClassNames:l,name:u,isValid:d,attributes:f,wrapperProps:p,setAttributes:h,onReplace:m,onRemove:g,onInsertBlocksAfter:b,onMerge:v,toggleSelection:y}){let{mayDisplayControls:k,mayDisplayParentControls:S,isSelectionWithinCurrentSection:_,themeSupportsLayout:x,...w}=(0,Vp.useContext)(Dn),T=yg()||{},R=(0,Lr.jsx)(zB,{name:u,isSelected:i,attributes:f,setAttributes:h,insertBlocksAfter:o?void 0:b,onReplace:r?m:void 0,onRemove:r?g:void 0,mergeBlocks:r?v:void 0,clientId:n,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(T).length?T:void 0,mayDisplayControls:k,mayDisplayParentControls:S,mayDisplayPatternEditingControls:_,blockEditingMode:w.blockEditingMode,isPreviewMode:w.isPreviewMode}),B=(0,Wt.getBlockType)(u);B?.getEditWrapperProps&&(p=cFe(p,B.getEditWrapperProps(f)));let I=p&&!!p["data-align"]&&!x,O=a?.includes("is-position-sticky");I&&(R=(0,Lr.jsx)("div",{className:$("wp-block",O&&a),"data-align":p["data-align"],children:R}));let P;if(d)t==="html"?P=(0,Lr.jsxs)(Lr.Fragment,{children:[(0,Lr.jsx)("div",{style:{display:"none"},children:R}),(0,Lr.jsx)(pI,{isHtml:!0,children:(0,Lr.jsx)(gJ,{clientId:n})})]}):B?.apiVersion>1?P=R:P=(0,Lr.jsx)(pI,{children:R});else{let V=e?(0,Wt.serializeRawBlock)(e):(0,Wt.getSaveContent)(B,f);P=(0,Lr.jsxs)(pI,{className:"has-warning",children:[(0,Lr.jsx)(GQ,{clientId:n}),(0,Lr.jsx)(Vp.RawHTML,{children:(0,hte.safeHTML)(V)})]})}let{"data-align":A,...M}=p??{},z={...M,className:$(M.className,A&&x&&`align${A}`,!(A&&O)&&a)};return(0,Lr.jsx)(Dn.Provider,{value:{wrapperProps:z,isAligned:I,isSelectionWithinCurrentSection:_,...w},children:(0,Lr.jsx)(qQ,{fallback:(0,Lr.jsx)(pI,{className:"has-warning",children:(0,Lr.jsx)(KQ,{})}),children:P})})}var uFe=(0,mI.withDispatch)((e,t,o)=>{let{updateBlockAttributes:r,insertBlocks:n,mergeBlocks:i,replaceBlocks:s,toggleSelection:a,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:u,removeBlock:d,selectBlock:f}=e(C);return{setAttributes(p){let{getMultiSelectedBlockClientIds:h}=o.select(C),m=h(),{clientId:g,attributes:b}=t,v=m.length?m:[g],y=typeof p=="function"?p(b):p;r(v,y)},onInsertBlocks(p,h){let{rootClientId:m}=t;n(p,h,m)},onInsertBlocksAfter(p){let{clientId:h,rootClientId:m}=t,{getBlockIndex:g}=o.select(C),b=g(h);n(p,b+1,m)},onMerge(p){let{clientId:h,rootClientId:m}=t,{getPreviousBlockClientId:g,getNextBlockClientId:b,getBlock:v,getBlockAttributes:y,getBlockName:k,getBlockOrder:S,getBlockIndex:_,getBlockRootClientId:x,canInsertBlockType:w}=o.select(C);function T(){let B=v(h),I=(0,Wt.getDefaultBlockName)(),O=(0,Wt.getBlockType)(I);if(k(h)!==I){let P=(0,Wt.switchToBlockType)(B,I);P&&P.length&&s(h,P)}else if((0,Wt.isUnmodifiedDefaultBlock)(B)){let P=b(h);P&&o.batch(()=>{d(h),f(P)})}else if(O.merge){let P=O.merge({},B.attributes);s([h],[(0,Wt.createBlock)(I,P)])}}function R(B,I=!0){let O=k(B),A=(0,Wt.getBlockType)(O).category==="text",M=x(B),z=S(B),[V]=z;z.length===1&&(0,Wt.isUnmodifiedBlock)(v(V))?d(B):A?o.batch(()=>{if(w(k(V),M))u([V],B,M,_(B));else{let L=(0,Wt.switchToBlockType)(v(V),(0,Wt.getDefaultBlockName)());L&&L.length&&L.every(D=>w(D.name,M))?(n(L,_(B),M,I),d(V,!1)):T()}!S(B).length&&(0,Wt.isUnmodifiedBlock)(v(B))&&d(B,!1)}):T()}if(p){if(m){let I=b(m);if(I)if(k(m)===k(I)){let O=y(m),P=y(I);if(Object.keys(O).every(A=>O[A]===P[A])){o.batch(()=>{u(S(I),I,m),d(I,!1)});return}}else{i(m,I);return}}let B=b(h);if(!B)return;S(B).length?R(B,!1):i(h,B)}else{let B=g(h);if(B)i(B,h);else if(m){let I=g(m);if(I&&k(m)===k(I)){let O=y(m),P=y(I);if(Object.keys(O).every(A=>O[A]===P[A])){o.batch(()=>{u(S(m),m,I),d(m,!1)});return}}R(m)}else T()}},onReplace(p,h,m){p.length&&!(0,Wt.isUnmodifiedDefaultBlock)(p[p.length-1])&&l();let g=p?.length===1&&Array.isArray(p[0])?p[0]:p;s([t.clientId],g,h,m)},onRemove(){d(t.clientId)},toggleSelection(p){a(p)}}});Uj=(0,hI.compose)(uFe,(0,mte.withFilters)("editor.BlockListBlock"))(Uj);function dFe(e){let{clientId:t,rootClientId:o}=e,r=(0,mI.useSelect)(q=>{let{isBlockSelected:re,getBlockMode:ae,isSelectionEnabled:ye,getTemplateLock:xe,isSectionBlock:he,getParentSectionBlock:ge,getBlockWithoutAttributes:me,getBlockAttributes:ke,canRemoveBlock:ve,canMoveBlock:Ee,getSettings:Re,getEditedContentOnlySection:se,getBlockEditingMode:ne,getBlockName:Ae,isFirstMultiSelectedBlock:be,getMultiSelectedBlockClientIds:we,hasSelectedInnerBlock:ot,getBlocksByName:vt,getBlockIndex:at,isBlockMultiSelected:St,isBlockSubtreeDisabled:rt,isBlockHighlighted:Vt,__unstableIsFullySelected:lt,__unstableSelectionHasUnmergeableBlock:no,isBlockBeingDragged:ho,isDragging:je,__unstableHasActiveBlockOverlayActive:_e,getSelectedBlocksInitialCaretPosition:He}=H(q(C)),$e=me(t);if(!$e)return;let{hasBlockSupport:Ke,getActiveBlockVariation:ct}=q(Wt.store),pt=ke(t),{name:ut,isValid:hr}=$e,Oo=(0,Wt.getBlockType)(ut),tr=Re(),{supportsLayout:go,isPreviewMode:Uo,__experimentalBlockBindingsSupportedAttributes:Mn}=tr,gr=Mn?.[ut],an=pt?.metadata?.blockVisibility,it=tr?.[wa]?.toLowerCase()||"desktop",wt=tr?.__experimentalFeatures?.viewport,Ft=Oo?.apiVersion>1,ko=St(t),Go=ne(t),or={isPreviewMode:Uo,blockWithoutAttributes:$e,name:ut,attributes:pt,isValid:hr,themeSupportsLayout:go,index:at(t),isReusable:(0,Wt.isReusableBlock)(Oo),className:Ft?pt.className:void 0,defaultClassName:Ft?(0,Wt.getBlockDefaultClassName)(ut):void 0,blockTitle:Oo?.title,bindableAttributes:gr,blockVisibility:an,deviceType:it,viewportSettings:wt,isMultiSelected:ko,blockEditingMode:Go,isEditingDisabled:Go==="disabled"};if(Uo)return or;let Sa=re(t),ka=ve(t),Ol=Ee(t),Be=ct(ut,pt),zt=!0,nt=ot(t,zt),jt=he(t)?t:ge(t),Wo=(0,Wt.hasBlockSupport)(ut,"multiple",!0)?[]:vt(ut),vn=Wo.length&&Wo[0]!==t;return{...or,mode:ae(t),isSelectionEnabled:ye(),isLocked:!!xe(o),isSectionBlock:he(t),isWithinSectionBlock:!!jt,isSelectionWithinCurrentSection:re(jt)||ot(jt,zt),blockType:Oo,canRemove:ka,canMove:Ol,isSelected:Sa,isEditingContentOnlySection:se()===t,blockEditingMode:Go,mayDisplayControls:Sa||be(t)&&we().every(Gh=>Ae(Gh)===ut),mayDisplayParentControls:Ke(Ae(t),"__experimentalExposeControlsToChildren",!1)&&ot(t),blockApiVersion:Oo?.apiVersion||1,blockTitle:Be?.title||Oo?.title,isSubtreeDisabled:Go==="disabled"&&rt(t),hasOverlay:_e(t)&&!je(),initialPosition:Sa?He():void 0,isHighlighted:Vt(t),isMultiSelected:ko,isPartiallySelected:ko&&!lt()&&!no(),isDragging:ho(t),hasChildSelected:nt,isEditingDisabled:Go==="disabled",hasEditableOutline:Go!=="disabled"&&ne(o)==="disabled",originalBlockClientId:vn?Wo[0]:!1,blockVisibility:an,deviceType:it,viewportSettings:wt}},[t,o]),n=(0,hI.useRefEffect)(q=>{if(q){let{ownerDocument:re}=q,{defaultView:ae}=re;n.current=ae}},[]),{isBlockCurrentlyHidden:i}=Ma({blockVisibility:r?.blockVisibility,deviceType:r?.deviceType,viewportSettings:r?.viewportSettings,view:n.current}),s=(0,Vp.useMemo)(()=>({...r?.blockWithoutAttributes,attributes:r?.attributes}),[r?.blockWithoutAttributes,r?.attributes]);if(!r)return null;let{isPreviewMode:a,mode:l="visual",isSelectionEnabled:u=!1,isLocked:d=!1,canRemove:f=!1,canMove:p=!1,name:h,attributes:m,isValid:g,isSelected:b=!1,themeSupportsLayout:v,isEditingContentOnlySection:y,blockEditingMode:k,mayDisplayControls:S,mayDisplayParentControls:_,index:x,blockApiVersion:w,blockType:T,blockTitle:R,isSubtreeDisabled:B,hasOverlay:I,initialPosition:O,isHighlighted:P,isMultiSelected:A,isPartiallySelected:M,isReusable:z,isDragging:V,hasChildSelected:L,isSectionBlock:D,isWithinSectionBlock:N,isSelectionWithinCurrentSection:j,isEditingDisabled:X,hasEditableOutline:J,className:te,defaultClassName:ee,originalBlockClientId:W,bindableAttributes:K,blockVisibility:Y,deviceType:Z,viewportSettings:oe}=r,ie={isPreviewMode:a,clientId:t,className:te,index:x,mode:l,name:h,blockApiVersion:w,blockType:T,blockTitle:R,isSelected:b,isSubtreeDisabled:B,hasOverlay:I,initialPosition:O,blockEditingMode:k,isHighlighted:P,isMultiSelected:A,isPartiallySelected:M,isReusable:z,isDragging:V,hasChildSelected:L,isSectionBlock:D,isWithinSectionBlock:N,isSelectionWithinCurrentSection:j,isEditingDisabled:X,hasEditableOutline:J,isEditingContentOnlySection:y,defaultClassName:ee,mayDisplayControls:S,mayDisplayParentControls:_,originalBlockClientId:W,themeSupportsLayout:v,canMove:p,isBlockCurrentlyHidden:i,bindableAttributes:K,blockVisibility:Y,deviceType:Z,viewportSettings:oe};return i&&!b&&!A&&!L?null:(0,Lr.jsx)(Dn.Provider,{value:ie,children:(0,Lr.jsx)(Uj,{...e,mode:l,isSelectionEnabled:u,isLocked:d,canRemove:f,canMove:p,block:s,name:h,attributes:m,isValid:g,isSelected:b})})}var gI=(0,Vp.memo)(dFe);var a9=c(Q(),1),Hpe=c(ce(),1);var i9=c(G(),1),Dpe=c(bte(),1),R2=c(Q(),1),B2=c(so(),1);var Mpe=c(Xr(),1),jd=c(G(),1),T2=c(U(),1),ak=c(Q(),1),yb=c(ce(),1),n9=c(F(),1);var Jt=c(F(),1),x2=c(U(),1);var Pse=c(F(),1);var Og=c(ue(),1);function Ag({controlled:e,default:t,name:o,state:r="value"}){let{current:n}=Og.useRef(e!==void 0),[i,s]=Og.useState(t),a=n?e:i,l=Og.useCallback(u=>{n||s(u)},[]);return[a,l]}var fFe=c(ue(),1),d0={...fFe};var vte=c(ue(),1),yte={};function co(e,t){let o=vte.useRef(yte);return o.current===yte&&(o.current=e(t)),o}var Gj=d0.useInsertionEffect,pFe=Gj&&Gj!==d0.useLayoutEffect?Gj:e=>e();function pe(e){let t=co(mFe).current;return t.next=e,pFe(t.effect),t.trampoline}function mFe(){let e={next:void 0,callback:hFe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function hFe(){}var Ste=c(ue(),1),gFe=()=>{},le=typeof document<"u"?Ste.useLayoutEffect:gFe;var Fp=c(ue(),1);var bI=c(ue(),1),Wj=bI.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function kte(){return bI.useContext(Wj)}var _te=c(E(),1);function xte(e){let{children:t,elementsRef:o,labelsRef:r,onMapChange:n}=e,i=pe(n),s=Fp.useRef(0),a=co(yFe).current,l=co(bFe).current,[u,d]=Fp.useState(0),f=Fp.useRef(u),p=pe((v,y)=>{l.set(v,y??null),f.current+=1,d(f.current)}),h=pe(v=>{l.delete(v),f.current+=1,d(f.current)}),m=Fp.useMemo(()=>{let v=new Map;return Array.from(l.keys()).filter(k=>k.isConnected).sort(vFe).forEach((k,S)=>{let _=l.get(k)??{};v.set(k,{..._,index:S})}),v},[l,u]);le(()=>{if(typeof MutationObserver!="function"||m.size===0)return;let v=new MutationObserver(y=>{let k=new Set,S=_=>k.has(_)?k.delete(_):k.add(_);y.forEach(_=>{_.removedNodes.forEach(S),_.addedNodes.forEach(S)}),k.size===0&&(f.current+=1,d(f.current))});return m.forEach((y,k)=>{k.parentElement&&v.observe(k.parentElement,{childList:!0})}),()=>{v.disconnect()}},[m]),le(()=>{f.current===u&&(o.current.length!==m.size&&(o.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),s.current=m.size),i(m)},[i,m,o,r,u]),le(()=>()=>{o.current=[]},[o]),le(()=>()=>{r&&(r.current=[])},[r]);let g=pe(v=>(a.add(v),()=>{a.delete(v)}));le(()=>{a.forEach(v=>v(m))},[a,m]);let b=Fp.useMemo(()=>({register:p,unregister:h,subscribeMapChange:g,elementsRef:o,labelsRef:r,nextIndexRef:s}),[p,h,g,o,r,s]);return(0,_te.jsx)(Wj.Provider,{value:b,children:t})}function bFe(){return new Map}function yFe(){return new Set}function vFe(e,t){let o=e.compareDocumentPosition(t);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}var yI=c(ue(),1),SFe=yI.createContext(void 0);function zp(){return yI.useContext(SFe)?.direction??"ltr"}function kFe(e,t){return function(r,...n){let i=new URL(e);return i.searchParams.set("code",r.toString()),n.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${r}; visit ${i} for the full message.`}}var _Fe=kFe("https://base-ui.com/production-error","Base UI"),Ot=_Fe;var Lg=c(ue(),1);function Jc(e,t,o,r){let n=co(Cte).current;return xFe(n,e,t,o,r)&&Ete(n,[e,t,o,r]),n.callback}function wte(e){let t=co(Cte).current;return wFe(t,e)&&Ete(t,e),t.callback}function Cte(){return{callback:null,cleanup:null,refs:[]}}function xFe(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function wFe(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function Ete(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let r=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(o);typeof s=="function"&&(r[n]=s);break}case"object":{i.current=o;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=r[n];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Rte=c(ue(),1);var Tte=c(ue(),1),CFe=parseInt(Tte.version,10);function zv(e){return CFe>=e}function $j(e){if(!Rte.isValidElement(e))return null;let t=e,o=t.props;return(zv(19)?o?.ref:t.ref)??null}function f0(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Ht(){}var p0=Object.freeze([]),Qt=Object.freeze({});function Bte(e,t){let o={};for(let r in e){let n=e[r];if(t?.hasOwnProperty(r)){let i=t[r](n);i!=null&&Object.assign(o,i);continue}n===!0?o[`data-${r.toLowerCase()}`]="":n&&(o[`data-${r.toLowerCase()}`]=n.toString())}return o}function Pte(e,t){return typeof e=="function"?e(t):e}function vI(e,t){return typeof e=="function"?e(t):e}var Kj={};function Ut(e,t,o,r,n){if(!o&&!r&&!n&&!e)return SI(t);let i=SI(e);return t&&(i=m0(i,t)),o&&(i=m0(i,o)),r&&(i=m0(i,r)),n&&(i=m0(i,n)),i}function Ite(e){if(e.length===0)return Kj;if(e.length===1)return SI(e[0]);let t=SI(e[0]);for(let o=1;o<e.length;o+=1)t=m0(t,e[o]);return t}function SI(e){return Yj(e)?{...Ate(e,Kj)}:EFe(e)}function m0(e,t){return Yj(t)?Ate(t,e):TFe(e,t)}function EFe(e){let t={...e};for(let o in t){let r=t[o];Ote(o,r)&&(t[o]=Lte(r))}return t}function TFe(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=f0(e.style,r);break}case"className":{e[o]=qj(e.className,r);break}default:Ote(o,r)?e[o]=RFe(e[o],r):e[o]=r}}return e}function Ote(e,t){let o=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2);return o===111&&r===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function Yj(e){return typeof e=="function"}function Ate(e,t){return Yj(e)?e(t):e??Kj}function RFe(e,t){return t?e?(...o)=>{let r=o[0];if(Nte(r)){let i=r;h0(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let n=t(...o);return e?.(...o),n}:Lte(t):e}function Lte(e){return e&&((...t)=>{let o=t[0];return Nte(o)&&h0(o),e(...t)})}function h0(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function qj(e,t){return t?e?t+" "+e:t:e}function Nte(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Zj=c(ue(),1);function We(e,t,o={}){let r=t.render,n=BFe(t,o);if(o.enabled===!1)return null;let i=o.state??Qt;return OFe(e,r,n,i)}function BFe(e,t={}){let{className:o,style:r,render:n}=e,{state:i=Qt,ref:s,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?Pte(o,i):void 0,f=u?vI(r,i):void 0,p=u?Bte(i,l):Qt,h=u&&a?PFe(a):void 0,m=u?f0(p,h)??{}:Qt;return typeof document<"u"&&(u?Array.isArray(s)?m.ref=wte([m.ref,$j(n),...s]):m.ref=Jc(m.ref,$j(n),s):Jc(null,null)),u?(d!==void 0&&(m.className=qj(m.className,d)),f!==void 0&&(m.style=f0(m.style,f)),m):Qt}function PFe(e){return Array.isArray(e)?Ite(e):Ut(void 0,e)}var IFe=Symbol.for("react.lazy");function OFe(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=Ut(o,t.props);n.ref=o.ref;let i=t;return i?.$$typeof===IFe&&(i=Lg.Children.toArray(t)[0]),Lg.cloneElement(i,n)}if(e&&typeof e=="string")return AFe(e,o);throw new Error(Ot(8))}function AFe(e,t){return e==="button"?(0,Zj.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Zj.createElement)("img",{alt:"",...t,key:t.key}):Lg.createElement(e,t)}var kI=c(ue(),1);var Mte=0;function LFe(e,t="mui"){let[o,r]=kI.useState(e),n=e||o;return kI.useEffect(()=>{o==null&&(Mte+=1,r(`${t}-${Mte}`))},[o,t]),n}var Dte=d0.useId;function jp(e,t){if(Dte!==void 0){let o=Dte();return e??(t?`${t}-${o}`:o)}return LFe(e,t)}function ni(e){return jp(e,"base-ui")}var wI=c(ue(),1);var Te={};Ir(Te,{cancelOpen:()=>l3e,chipRemovePress:()=>GFe,clearPress:()=>UFe,closePress:()=>jFe,closeWatcher:()=>t3e,decrementPress:()=>KFe,disabled:()=>u3e,drag:()=>i3e,escapeKey:()=>e3e,focusOut:()=>JFe,imperativeAction:()=>p3e,incrementPress:()=>$Fe,initial:()=>f3e,inputBlur:()=>ZFe,inputChange:()=>YFe,inputClear:()=>qFe,inputPaste:()=>XFe,inputPress:()=>QFe,itemPress:()=>zFe,keyboard:()=>r3e,linkPress:()=>HFe,listNavigation:()=>o3e,missing:()=>d3e,none:()=>NFe,outsidePress:()=>FFe,pointer:()=>n3e,scrub:()=>a3e,siblingOpen:()=>c3e,swipe:()=>m3e,trackPress:()=>WFe,triggerFocus:()=>VFe,triggerHover:()=>DFe,triggerPress:()=>MFe,wheel:()=>s3e,windowResize:()=>h3e});var NFe="none",MFe="trigger-press",DFe="trigger-hover",VFe="trigger-focus",FFe="outside-press",zFe="item-press",jFe="close-press",HFe="link-press",UFe="clear-press",GFe="chip-remove-press",WFe="track-press",$Fe="increment-press",KFe="decrement-press",YFe="input-change",qFe="input-clear",ZFe="input-blur",XFe="input-paste",QFe="input-press",JFe="focus-out",e3e="escape-key",t3e="close-watcher",o3e="list-navigation",r3e="keyboard",n3e="pointer",i3e="drag",s3e="wheel",a3e="scrub",l3e="cancel-open",c3e="sibling-open",u3e="disabled",d3e="missing",f3e="initial",p3e="imperative-action",m3e="swipe",h3e="window-resize";function Ue(e,t,o,r){let n=!1,i=!1,s=r??Qt;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){i=!0},get isCanceled(){return n},get isPropagationAllowed(){return i},trigger:o,...s}}var Qj=c(ue(),1);var Vte=c(ue(),1),g3e=[];function jv(e){Vte.useEffect(e,g3e)}var _I=null,Dmt=globalThis.requestAnimationFrame,Xj=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let n=0;n<o.length;n+=1)o[n]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},xI=new Xj,Hn=class e{static create(){return new e}static request(t){return xI.request(t)}static cancel(t){return xI.cancel(t)}currentId=_I;request(t){this.cancel(),this.currentId=xI.request(()=>{this.currentId=_I,t()})}cancel=()=>{this.currentId!==_I&&(xI.cancel(this.currentId),this.currentId=_I)};disposeEffect=()=>this.cancel};function Ai(){let e=co(Hn.create).current;return jv(e.disposeEffect),e}function cs(e,t=!1,o=!1){let[r,n]=Qj.useState(e&&t?"idle":void 0),[i,s]=Qj.useState(e);return e&&!i&&(s(!0),n("starting")),!e&&i&&r!=="ending"&&!o&&n("ending"),!e&&!i&&r==="ending"&&n(void 0),le(()=>{if(!e&&i&&r!=="ending"&&o){let a=Hn.request(()=>{n("ending")});return()=>{Hn.cancel(a)}}},[e,i,r,o]),le(()=>{if(!e||t)return;let a=Hn.request(()=>{n(void 0)});return()=>{Hn.cancel(a)}},[t,e]),le(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&n("starting");let a=Hn.request(()=>{n("idle")});return()=>{Hn.cancel(a)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}function Fte(e){let{open:t,defaultOpen:o,onOpenChange:r,disabled:n}=e,[i,s]=Ag({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=cs(i,!0,!0),d=ni(),[f,p]=wI.useState(),h=f??d,m=pe(g=>{let b=!i,v=Ue(Te.triggerPress,g.nativeEvent);r(b,v),!v.isCanceled&&s(b)});return wI.useMemo(()=>({disabled:n,handleTrigger:m,mounted:a,open:i,panelId:h,setMounted:l,setOpen:s,setPanelIdState:p,transitionStatus:u}),[n,m,a,i,h,l,s,p,u])}var CI=c(ue(),1),Jj=CI.createContext(void 0);function EI(){let e=CI.useContext(Jj);if(e===void 0)throw new Error(Ot(15));return e}var Ng=c(ue(),1);var e8=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function zte(e={}){let{label:t,metadata:o,textRef:r,indexGuessBehavior:n,index:i}=e,{register:s,unregister:a,subscribeMapChange:l,elementsRef:u,labelsRef:d,nextIndexRef:f}=kte(),p=Ng.useRef(-1),[h,m]=Ng.useState(i??(n===e8.GuessFromOrder?()=>{if(p.current===-1){let v=f.current;f.current+=1,p.current=v}return p.current}:-1)),g=Ng.useRef(null),b=Ng.useCallback(v=>{if(g.current=v,h!==-1&&v!==null&&(u.current[h]=v,d)){let y=t!==void 0;d.current[h]=y?t:r?.current?.textContent??v.textContent}},[h,u,d,t,r]);return le(()=>{if(i!=null)return;let v=g.current;if(v)return s(v,o),()=>{a(v)}},[i,s,a,o]),le(()=>{if(i==null)return l(v=>{let y=g.current?v.get(g.current)?.index:null;y!=null&&m(y)})},[i,l,m]),{ref:b,index:h}}var eu=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),b3e={[eu.startingStyle]:""},y3e={[eu.endingStyle]:""},xn={transitionStatus(e){return e==="starting"?b3e:e==="ending"?y3e:null}};var g0=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=eu.startingStyle]="startingStyle",e[e.endingStyle=eu.endingStyle]="endingStyle",e})({});var jte=(function(e){return e.panelOpen="data-panel-open",e})({});var v3e={[g0.open]:""},S3e={[g0.closed]:""},Hte={open(e){return e?{[jte.panelOpen]:""}:null}},Ute={open(e){return e?v3e:S3e}};var Hv=c(ue(),1);function TI(){return typeof window<"u"}function Nr(e){return RI(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yl(e){var t;return(t=(RI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RI(e){return TI()?e instanceof Node||e instanceof Ct(e).Node:!1}function Xe(e){return TI()?e instanceof Element||e instanceof Ct(e).Element:!1}function Et(e){return TI()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function tu(e){return!TI()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}function ou(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Gte(e){return/^(table|td|th)$/.test(Nr(e))}function b0(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var k3e=/transform|translate|scale|rotate|perspective|filter/,_3e=/paint|layout|strict|content/,Mg=e=>!!e&&e!=="none",t8;function BI(e){let t=Xe(e)?Qr(e):e;return Mg(t.transform)||Mg(t.translate)||Mg(t.scale)||Mg(t.rotate)||Mg(t.perspective)||!PI()&&(Mg(t.backdropFilter)||Mg(t.filter))||k3e.test(t.willChange||"")||_3e.test(t.contain||"")}function Wte(e){let t=Kl(e);for(;Et(t)&&!ql(t);){if(BI(t))return t;if(b0(t))return null;t=Kl(t)}return null}function PI(){return t8==null&&(t8=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t8}function ql(e){return/^(html|body|#document)$/.test(Nr(e))}function Qr(e){return Ct(e).getComputedStyle(e)}function y0(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kl(e){if(Nr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tu(e)&&e.host||Yl(e);return tu(t)?t.host:t}function $te(e){let t=Kl(e);return ql(t)?e.ownerDocument?e.ownerDocument.body:e.body:Et(t)&&ou(t)?t:$te(t)}function Hp(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=$te(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Ct(n);if(i){let a=II(s);return t.concat(s,s.visualViewport||[],ou(n)?n:[],a&&o?Hp(a):[])}else return t.concat(n,Hp(n,[],o))}function II(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var OI=c(ue(),1),x3e=OI.createContext(void 0);function Kte(e=!1){let t=OI.useContext(x3e);if(t===void 0&&!e)throw new Error(Ot(16));return t}var Yte=c(ue(),1);function qte(e){let{focusableWhenDisabled:t,disabled:o,composite:r=!1,tabIndex:n=0,isNativeButton:i}=e,s=r&&t!==!1,a=r&&t===!1;return{props:Yte.useMemo(()=>{let u={onKeyDown(d){o&&t&&d.key!=="Tab"&&d.preventDefault()}};return r||(u.tabIndex=n,!i&&o&&(u.tabIndex=t?n:-1)),(i&&(t||s)||!i&&o)&&(u["aria-disabled"]=o),i&&(!t||a)&&(u.disabled=o),u},[r,o,t,s,a,i,n])}}function Dg(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:r=0,native:n=!0,composite:i}=e,s=Hv.useRef(null),a=Kte(!0),l=i??a!==void 0,{props:u}=qte({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:r,isNativeButton:n}),d=Hv.useCallback(()=>{let h=s.current;o8(h)&&l&&t&&u.disabled===void 0&&h.disabled&&(h.disabled=!1)},[t,u.disabled,l]);le(d,[d]);let f=Hv.useCallback((h={})=>{let{onClick:m,onMouseDown:g,onKeyUp:b,onKeyDown:v,onPointerDown:y,...k}=h;return Ut({onClick(S){if(t){S.preventDefault();return}m?.(S)},onMouseDown(S){t||g?.(S)},onKeyDown(S){if(t||(h0(S),v?.(S),S.baseUIHandlerPrevented))return;let _=S.target===S.currentTarget,x=S.currentTarget,w=o8(x),T=!n&&w3e(x),R=_&&(n?w:!T),B=S.key==="Enter",I=S.key===" ",O=x.getAttribute("role"),P=O?.startsWith("menuitem")||O==="option"||O==="gridcell";if(_&&l&&I){if(S.defaultPrevented&&P)return;S.preventDefault(),T||n&&w?(x.click(),S.preventBaseUIHandler()):R&&(m?.(S),S.preventBaseUIHandler());return}R&&(!n&&(I||B)&&S.preventDefault(),!n&&B&&m?.(S))},onKeyUp(S){if(!t){if(h0(S),b?.(S),S.target===S.currentTarget&&n&&l&&o8(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!n&&!l&&S.key===" "&&m?.(S)}},onPointerDown(S){if(t){S.preventDefault();return}y?.(S)}},n?{type:"button"}:{role:"button"},u,k)},[t,u,l,n]),p=pe(h=>{s.current=h,d()});return{getButtonProps:f,buttonRef:p}}function o8(e){return Et(e)&&e.tagName==="BUTTON"}function w3e(e){return!!(e?.tagName==="A"&&e?.href)}var Li=c(ue(),1);function et(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function $t(e){let t=co(C3e,e).current;return t.next=e,le(t.effect),t}function C3e(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function qe(e){return e?.ownerDocument||document}var Xte=c(ue(),1);var Zte=c(xd(),1);function Zl(e){return e==null?e:"current"in e?e.current:e}function Up(e,t=!1,o=!0){let r=Ai();return pe((n,i=null)=>{r.cancel();let s=Zl(e);if(s==null)return;let a=s,l=()=>{Zte.flushSync(n)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function u(){Promise.all(a.getAnimations().map(d=>d.finished)).then(()=>{i?.aborted||l()}).catch(()=>{if(o){i?.aborted||l();return}let d=a.getAnimations();!i?.aborted&&d.length>0&&d.some(f=>f.pending||f.playState!=="finished")&&u()})}if(t){let d=eu.startingStyle;if(!a.hasAttribute(d)){r.request(u);return}let f=new MutationObserver(()=>{a.hasAttribute(d)||(f.disconnect(),u())});f.observe(a,{attributes:!0,attributeFilter:[d]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}r.request(u)})}function ii(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,i=pe(n),s=Up(r,o,!1);Xte.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var v0={height:void 0,width:void 0};function Jte(e){let{externalRef:t,hiddenUntilFound:o,id:r,keepMounted:n,mounted:i,onOpenChange:s,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,f=Li.useRef(null),p=Li.useRef(null),[h,m]=Li.useState(v0),g=Li.useRef(v0),b=Li.useRef(!1),v=Li.useRef(a),y=Li.useRef(!1),[k,S]=Li.useState(!1),_=Li.useRef(null),x=Jc(t,f),w=$t({mounted:i,open:a}),T=Up(f,!1,!1),R=!a&&!i,B=k?"idle":d,I=a&&(v.current||y.current),O=!a&&i&&p.current==="css-animation"&&h.height===void 0&&h.width===void 0?g.current:h,P=o&&R&&p.current!=="css-animation",A=pe((D,N=!0)=>{N&&(g.current=D),m(D)}),M=pe(()=>{_.current?.(),_.current=null}),z=pe(D=>{M(),_.current=()=>{_.current=null,D()}}),V=pe(()=>{a&&i&&p.current==="css-animation"&&(y.current=!0)});le(()=>{!k||d==="starting"||S(!1)},[k,d]),Li.useEffect(()=>()=>{V(),M()},[V,M]),le(()=>{let D=f.current;if(!D)return;!a&&_.current&&M();let N=E3e(D,I);if(p.current=N,a&&d==="idle"&&v.current&&N==="css-animation"){g.current=Uv(D);return}if(a&&d==="starting"){let J=b.current;if(b.current=!1,N==="none"){A(Uv(D)),S(!0);return}if(N==="css-transition"){let te=T3e(D);if(A(Uv(D)),!J)return te;let ee=S0(D,"transition-duration","0s");return z(ee),S(!0),te}if(N==="css-animation"){if(A(Uv(D)),!J){S0(D,"animation-name","none")();return}let te=S0(D,"animation-name","none"),ee=S0(D,"animation-duration","0s");te(),z(ee),S(!0);return}}if(!a&&i&&(d==="idle"||d==="starting")){if(v.current=!1,y.current=!1,N==="none"){A(v0,!1),l(!1);return}A(Uv(D));return}if(d!=="ending")return;if(N==="none"){l(!1);return}let j=Uv(D);if(!((j.height??0)>0||(j.width??0)>0)){l(!1);return}A(j),N==="css-animation"&&S0(D,"animation-name","none")()},[i,a,M,A,l,z,I,d]),ii({enabled:a&&i&&B==="idle",open:!0,ref:f,onComplete(){a&&A(v0,!1)}}),Li.useEffect(()=>{if(a||!i||B!=="ending"||!f.current)return;let N=new AbortController,j=-1;function X(){w.current.open||(l(!1),A(v0,!1))}return j=Hn.request(()=>{N.signal.aborted||T(X,N.signal)}),()=>{Hn.cancel(j),N.abort()}},[w,i,a,B,T,A,l]),le(()=>{let D=f.current;!D||!o||!R||D.setAttribute("hidden","until-found")},[R,o]),Li.useEffect(function(){let N=f.current;if(!N)return;function j(X){let J=Ue(Te.none,X);s(!0,J),!J.isCanceled&&(b.current=!0,u(!0))}return et(N,"beforematch",j)},[s,u]);let L=n||o||i||a;return{height:O.height,props:{...P?{[g0.startingStyle]:""}:void 0,hidden:R,id:r},ref:x,shouldPreventOpenAnimation:I,shouldRender:L,transitionStatus:B,width:O.width}}function Uv(e){return{height:e.scrollHeight,width:e.scrollWidth}}function E3e(e,t=!1){let o=Ct(e).getComputedStyle(e),r=(o.animationName.split(",").map(i=>i.trim()).some(i=>i!==""&&i!=="none")||t)&&Qte(o.animationDuration),n=Qte(o.transitionDuration);return r&&n||n?"css-transition":r?"css-animation":"none"}function Qte(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function S0(e,t,o){let r=e.style.getPropertyValue(t),n=e.style.getPropertyPriority(t);return e.style.setProperty(t,o),()=>{if(r===""){e.style.removeProperty(t);return}e.style.setProperty(t,r,n)}}function T3e(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(n=>{e.style.setProperty(n,"initial","important")});function o(){Object.entries(t).forEach(([n,i])=>{if(i===""){e.style.removeProperty(n);return}e.style.setProperty(n,i)})}let r=Hn.request(o);return()=>{Hn.cancel(r),o()}}var eoe=c(ue(),1);function AI(e){let t=eoe.useRef(!0);t.current&&(t.current=!1,e())}var uo={};Ir(uo,{engine:()=>a8,env:()=>c8,os:()=>i8,screenReader:()=>l8});var i8={};Ir(i8,{android:()=>roe,apple:()=>n8,ios:()=>r8,linux:()=>O3e,mac:()=>noe,windows:()=>I3e});function R3e(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:B3e,platform:P3e,maxTouchPoints:toe}=R3e(),Vg=B3e.toLowerCase(),Fg=P3e.toLowerCase();var r8=/^i(os$|p)/.test(Fg)||Fg==="macintel"&&toe>1,ooe="android",roe=Fg===ooe||Vg.includes(ooe),noe=!r8&&Fg.startsWith("mac"),I3e=Fg.startsWith("win"),O3e=!roe&&/^(linux|chrome os)/.test(Fg),n8=noe||r8;var a8={};Ir(a8,{blink:()=>L3e,gecko:()=>A3e,webkit:()=>s8});var s8=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),A3e=!s8&&Vg.includes("firefox"),L3e=!s8&&Vg.includes("chrom");var l8={};Ir(l8,{voiceOver:()=>N3e});var N3e=n8;var c8={};Ir(c8,{jsdom:()=>M3e});var M3e=/jsdom|happydom/.test(Vg);var k0=0,si=class e{static create(){return new e}currentId=k0;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=k0,o()},t)}isStarted(){return this.currentId!==k0}clear=()=>{this.currentId!==k0&&(clearTimeout(this.currentId),this.currentId=k0)};disposeEffect=()=>this.clear};function xo(){let e=co(si.create).current;return jv(e.disposeEffect),e}var ioe={},soe={},aoe="";function D3e(e){if(typeof document>"u")return!1;let t=qe(e);return Ct(t).innerWidth-t.documentElement.clientWidth>0}function V3e(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let o=qe(e),r=o.documentElement,n=o.body,i=ou(r)?r:n,s=i.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let l=i.offsetWidth;i.style.overflowY="hidden";let u=i.offsetWidth;return i.style.overflowY=s,r.style.scrollbarGutter=a,l===u}function F3e(e){let t=qe(e),o=t.documentElement,r=t.body,n=ou(o)?o:r,i={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,i)}}function z3e(e){let t=qe(e),o=t.documentElement,r=t.body,n=Ct(o),i=0,s=0,a=!1,l=Hn.create();if(uo.engine.webkit&&(n.visualViewport?.scale??1)!==1)return()=>{};function u(){let h=n.getComputedStyle(o),m=n.getComputedStyle(r),v=(h.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=o.scrollTop,s=o.scrollLeft,ioe={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},aoe=o.style.scrollBehavior,soe={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let y=o.scrollHeight>o.clientHeight,k=o.scrollWidth>o.clientWidth,S=h.overflowY==="scroll"||m.overflowY==="scroll",_=h.overflowX==="scroll"||m.overflowX==="scroll",x=Math.max(0,n.innerWidth-r.clientWidth),w=Math.max(0,n.innerHeight-r.clientHeight),T=parseFloat(m.marginTop)+parseFloat(m.marginBottom),R=parseFloat(m.marginLeft)+parseFloat(m.marginRight),B=ou(o)?o:r;if(a=V3e(e),a){o.style.scrollbarGutter=v,B.style.overflowY="hidden",B.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(y||S)&&(o.style.overflowY="scroll"),(k||_)&&(o.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:T||w?`calc(100dvh - ${T+w}px)`:"100dvh",width:R||x?`calc(100vw - ${R+x}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function d(){Object.assign(o.style,ioe),Object.assign(r.style,soe),a||(o.scrollTop=i,o.scrollLeft=s,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=aoe)}function f(){d(),l.request(u)}u();let p=et(n,"resize",f);return()=>{l.cancel(),d(),typeof n.removeEventListener=="function"&&p()}}var u8=class{lockCount=0;restore=null;timeoutLock=si.create();timeoutUnlock=si.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let r=qe(t).documentElement,n=Ct(r).getComputedStyle(r).overflowY;if(n==="hidden"||n==="clip"){this.restore=Ht;return}let i=uo.os.ios||!D3e(t);this.restore=i?F3e(t):z3e(t)}},j3e=new u8;function loe(e=!0,t=null){le(()=>{if(e)return j3e.acquire(t)},[e,t])}var ai=c(ue(),1);function Ks(e){e.preventDefault(),e.stopPropagation()}function coe(e){return"nativeEvent"in e}function Gv(e){return e.pointerType===""&&e.isTrusted?!0:uo.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function LI(e){return uo.env.jsdom?!1:!uo.os.android&&e.width===0&&e.height===0||uo.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Da(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function uoe(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var _0="data-base-ui-focusable";var d8="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",x0="ArrowLeft",w0="ArrowRight",f8="ArrowUp",NI="ArrowDown";function Mr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Fe(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&tu(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function wo(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Gp(e,t){if(!Xe(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(Fe(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function MI(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function doe(e){return e.matches("html,body")}function zg(e){return Et(e)&&e.matches(d8)}function p8(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${d8}`)!=null}function C0(e){return e?e.getAttribute("role")==="combobox"&&zg(e):!1}function foe(e){if(!e||uo.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function jg(e){return e?e.hasAttribute(_0)?e:e.querySelector(`[${_0}]`)||e:null}function H3e(e,t){return t!=null&&!Da(t)?0:typeof e=="function"?e():e}function Cd(e,t,o){let r=H3e(e,o);return typeof r=="number"?r:r?.[t]}function m8(e){return typeof e=="function"?e():e}function DI(e,t){return t||e==="click"||e==="mousedown"}function poe(e){return e?.includes("mouse")&&e!=="mousedown"}var moe=c(E(),1),hoe=ai.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new si,currentIdRef:{current:null},currentContextRef:{current:null}});function U3e(e,t){e.current=t.current}function h8(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=ai.useRef(o),i=ai.useRef(o),s=ai.useRef(null),a=ai.useRef(null),l=xo();return le(()=>{if(i.current=o,!s.current){n.current=o;return}n.current={open:Cd(n.current,"open"),close:Cd(o,"close")}},[o,s,n,i]),(0,moe.jsx)(hoe.Provider,{value:ai.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:l}),[r,l]),children:t})}function g8(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),i=ai.useContext(hoe),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:f,timeout:p}=i,[h,m]=ai.useState(!1),g=ai.useRef(o),b=ai.useRef(!1);return le(()=>{g.current=o},[o]),le(()=>()=>{b.current=!0},[]),le(()=>{function v(){b.current||m(!1),d.current?.setIsInstantPhase(!1),s.current=null,d.current=null,a.current=u.current,p.clear()}if(s.current&&!o&&s.current===n){if(m(!1),l){let y=n;return p.start(l,()=>{r.select("open")||s.current&&s.current!==y||v()}),()=>{(g.current||s.current!==y)&&p.clear()}}v()}},[o,n,s,a,l,u,d,p,r]),le(()=>{if(!o)return;let v=d.current,y=s.current;p.clear(),d.current={onOpenChange:r.setOpen,setIsInstantPhase:m},s.current=n,a.current={open:0,close:Cd(u.current,"close")},y!==null&&y!==n?(m(!0),v?.setIsInstantPhase(!0),v?.onOpenChange(!1,Ue(Te.none))):(m(!1),v?.setIsInstantPhase(!1))},[o,n,r,s,a,u,d,p]),le(()=>()=>{if(s.current===n){if(d.current=null,!g.current)return;s.current=null,U3e(a,u),p.clear()}},[d,s,a,n,u,p]),ai.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:h}),[f,a,h])}var ci=c(ue(),1);function li(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var FI=c(ue(),1);var goe={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},VI={...goe,position:"fixed",top:0,left:0},boe={...goe,position:"absolute"};var yoe=c(E(),1),Wv=FI.forwardRef(function(t,o){let[r,n]=FI.useState();return le(()=>{uo.screenReader.voiceOver&&uo.engine.webkit&&n("button")},[]),(0,yoe.jsx)("span",{...t,ref:o,style:VI,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var koe=["top","right","bottom","left"];var Wp=Math.min,Ni=Math.max,$p=Math.round,T0=Math.floor,Xl=e=>({x:e,y:e}),G3e={left:"right",right:"left",bottom:"top",top:"bottom"};function R0(e,t,o){return Ni(e,Wp(t,o))}function Ql(e,t){return typeof e=="function"?e(t):e}function Un(e){return e.split("-")[0]}function Jl(e){return e.split("-")[1]}function jI(e){return e==="x"?"y":"x"}function B0(e){return e==="y"?"height":"width"}function us(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function P0(e){return jI(us(e))}function _oe(e,t,o){o===void 0&&(o=!1);let r=Jl(e),n=P0(e),i=B0(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=E0(s)),[s,E0(s)]}function xoe(e){let t=E0(e);return[zI(e),t,zI(t)]}function zI(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var voe=["left","right"],Soe=["right","left"],W3e=["top","bottom"],$3e=["bottom","top"];function K3e(e,t,o){switch(e){case"top":case"bottom":return o?t?Soe:voe:t?voe:Soe;case"left":case"right":return t?W3e:$3e;default:return[]}}function woe(e,t,o,r){let n=Jl(e),i=K3e(Un(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(zI)))),i}function E0(e){let t=Un(e);return G3e[t]+e.slice(t.length)}function Y3e(e){return{top:0,right:0,bottom:0,left:0,...e}}function HI(e){return typeof e!="number"?Y3e(e):{top:e,right:e,bottom:e,left:e}}function Ed(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function b8(e,t){return t<0||t>=e.length}function UI(e,t){return Hg(e.current,{disabledIndices:t})}function y8(e,t){return Hg(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Hg(e,{startingIndex:t=-1,decrement:o=!1,disabledIndices:r,amount:n=1}={}){let i=t;do i+=o?-n:n;while(i>=0&&i<=e.length-1&&v8(e,i,r));return i}function v8(e,t,o){if(typeof o=="function"?o(t):o?.includes(t)??!1)return!0;let n=e[t];return n?Ug(n)?!o&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!0:!1}function q3e(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Ug(e,t=e?Qr(e):null){return!e||!e.isConnected||!t||q3e(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var Z3e='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function X3e(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let o=e.getRootNode();return tu(o)?o.host:null}function k8(e){for(let t of Array.from(e.children))if(Nr(t)==="summary")return t;return null}function Q3e(e,t){let o=k8(t);return!!o&&(e===o||Fe(o,e))}function Coe(e){let t=e?Nr(e):"";return e!=null&&e.matches(Z3e)&&(t!=="summary"||e.parentElement!=null&&Nr(e.parentElement)==="details"&&k8(e.parentElement)===e)&&(t!=="details"||k8(e)==null)&&(t!=="input"||e.type!=="hidden")}function Eoe(e){if(!Coe(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=X3e(t)){let o=t!==e,r=Nr(t)==="slot";if(t.hasAttribute("inert")||o&&Nr(t)==="details"&&!t.open&&!Q3e(e,t)||t.hasAttribute("hidden")||!r&&!J3e(t,o))return!1}return!0}function J3e(e,t){let o=Qr(e);return t?o.display!=="none":Ug(e,o)}function Toe(e){let t=e.tabIndex;if(t<0){let o=Nr(e);if(o==="details"||o==="audio"||o==="video"||Et(e)&&e.isContentEditable)return 0}return t}function S8(e){if(Nr(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function e4e(e,t){let o=S8(e);if(!o)return!0;let r=t.find(n=>{let i=S8(n);return i?.name===o.name&&i.form===o.form&&i.checked});return r?r===o:t.find(n=>{let i=S8(n);return i?.name===o.name&&i.form===o.form})===o}function Roe(e){if(Et(e)&&Nr(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Et(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Boe(e,t){Roe(e).forEach(o=>{Coe(o)&&t.push(o),Boe(o,t)})}function Poe(e,t,o){Roe(e).forEach(r=>{Et(r)&&r.matches(t)&&o.push(r),Poe(r,t,o)})}function GI(e){return Eoe(e)&&Toe(e)>=0}function _8(e){let t=[];return Boe(e,t),t.filter(Eoe)}function I0(e){let t=_8(e);return t.filter(o=>Toe(o)>=0&&e4e(o,t))}function Ioe(e,t){let o=I0(e),r=o.length;if(r===0)return;let n=Mr(qe(e)),i=o.indexOf(n),s=i===-1?t===1?0:r-1:i+t;return o[s]}function WI(e){return Ioe(qe(e).body,1)||e}function $I(e){return Ioe(qe(e).body,-1)||e}function Gg(e,t){let o=t||e.currentTarget,r=e.relatedTarget;return!r||!Fe(o,r)}function Ooe(e){I0(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function x8(e){let t=[];Poe(e,"[data-tabindex]",t),t.forEach(o=>{let r=o.dataset.tabindex;delete o.dataset.tabindex,r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")})}function Va(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...Va(e,n.id,o)])}function w8(e,t){let o=[],r=e.find(n=>n.id===t)?.parentId;for(;r;){let n=e.find(i=>i.id===r);r=n?.parentId,n&&(o=o.concat(n))}return o}function Td(e){return`data-base-ui-${e}`}var KI=0;function $v(e,t={}){let{preventScroll:o=!1,sync:r=!1,shouldFocus:n}=t;cancelAnimationFrame(KI);function i(){n&&!n()||e?.focus({preventScroll:o})}if(r)return i(),Ht;let s=requestAnimationFrame(i);return KI=s,()=>{KI===s&&(cancelAnimationFrame(s),KI=0)}}var C8={inert:new WeakMap,"aria-hidden":new WeakMap},Aoe="data-base-ui-inert",T8={inert:new WeakSet,"aria-hidden":new WeakSet},O0=new WeakMap,E8=0;function t4e(e){return T8[e]}function Doe(e){return e?tu(e)?e.host:Doe(e.parentNode):null}var Loe=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=Doe(o);return e.contains(r)?r:null}).filter(o=>o!=null),Noe=e=>{let t=new Set;return e.forEach(o=>{let r=o;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},Moe=(e,t,o)=>{let r=[],n=i=>{!i||o.has(i)||Array.from(i.children).forEach(s=>{Nr(s)!=="script"&&(t.has(s)?n(s):r.push(s))})};return n(e),r};function o4e(e,t,o,r,{mark:n=!0}){let i=null;r?i="inert":o&&(i="aria-hidden");let s=null,a=null,l=Loe(t,e),u=n?Moe(t,Noe(l),new Set(l)):[],d=[],f=[];if(i){let p=C8[i],h=t4e(i);a=h,s=p;let m=Loe(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(m);Moe(t,Noe(g),new Set(g)).forEach(v=>{let y=v.getAttribute(i),k=y!==null&&y!=="false",S=(p.get(v)||0)+1;p.set(v,S),d.push(v),S===1&&k&&h.add(v),k||v.setAttribute(i,i==="inert"?"":"true")})}return n&&u.forEach(p=>{let h=(O0.get(p)||0)+1;O0.set(p,h),f.push(p),h===1&&p.setAttribute(Aoe,"")}),E8+=1,()=>{s&&d.forEach(p=>{let m=(s.get(p)||0)-1;s.set(p,m),m||(!a?.has(p)&&i&&p.removeAttribute(i),a?.delete(p))}),n&&f.forEach(p=>{let h=(O0.get(p)||0)-1;O0.set(p,h),h||p.removeAttribute(Aoe)}),E8-=1,E8||(C8.inert=new WeakMap,C8["aria-hidden"]=new WeakMap,T8.inert=new WeakSet,T8["aria-hidden"]=new WeakSet,O0=new WeakMap)}}function R8(e,t={}){let{ariaHidden:o=!1,inert:r=!1,mark:n=!0}=t,i=qe(e[0]).body;return o4e(e,i,o,r,{mark:n})}var sr=c(ue(),1),B8=c(xd(),1);var Voe={style:{transition:"none"}},Foe="data-base-ui-click-trigger",r4e="data-base-ui-swipe-ignore",n4e="data-swipe-ignore",Jgt=`[${r4e}]`,ebt=`[${n4e}]`,zoe={fallbackAxisSide:"none"},joe={fallbackAxisSide:"end"},Hoe={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Wg=c(E(),1),Uoe=sr.createContext(null),P8=()=>sr.useContext(Uoe),i4e=Td("portal");function YI(e={}){let{ref:t,container:o,componentProps:r=Qt,elementProps:n}=e,i=jp(),a=P8()?.portalNode,[l,u]=sr.useState(null),[d,f]=sr.useState(null),p=pe(b=>{b!==null&&f(b)}),h=sr.useRef(null);le(()=>{if(o===null){h.current&&(h.current=null,f(null),u(null));return}if(i==null)return;let b=(o&&(RI(o)?o:o.current))??a??document.body;if(b==null){h.current&&(h.current=null,f(null),u(null));return}h.current!==b&&(h.current=b,f(null),u(b))},[o,a,i]);let m=We("div",r,{ref:[t,p],props:[{id:i,[i4e]:""},n]});return{portalNode:d,portalSubtree:l&&m?B8.createPortal(m,l):null}}var I8=sr.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,container:a,renderGuards:l,...u}=t,{portalNode:d,portalSubtree:f}=YI({container:a,ref:o,componentProps:t,elementProps:u}),p=sr.useRef(null),h=sr.useRef(null),m=sr.useRef(null),g=sr.useRef(null),[b,v]=sr.useState(null),y=sr.useRef(!1),k=b?.modal,S=b?.open,_=typeof l=="boolean"?l:!!b&&!b.modal&&b.open&&!!d;sr.useEffect(()=>{if(!d||k)return;function w(T){d&&T.relatedTarget&&Gg(T)&&(T.type==="focusin"?y.current&&(x8(d),y.current=!1):(Ooe(d),y.current=!0))}return li(et(d,"focusin",w,!0),et(d,"focusout",w,!0))},[d,k]),le(()=>{!d||S!==!0||!y.current||(x8(d),y.current=!1)},[S,d]);let x=sr.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:h,beforeInsideRef:m,afterInsideRef:g,portalNode:d,setFocusManagerState:v}),[d]);return(0,Wg.jsxs)(sr.Fragment,{children:[f,(0,Wg.jsxs)(Uoe.Provider,{value:x,children:[_&&d&&(0,Wg.jsx)(Wv,{"data-type":"outside",ref:p,onFocus:w=>{if(Gg(w,d))m.current?.focus();else{let T=b?b.domReference:null;$I(T)?.focus()}}}),_&&d&&(0,Wg.jsx)("span",{"aria-owns":d.id,style:Hoe}),d&&B8.createPortal(s,d),_&&d&&(0,Wg.jsx)(Wv,{"data-type":"outside",ref:h,onFocus:w=>{if(Gg(w,d))g.current?.focus();else{let T=b?b.domReference:null;WI(T)?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,Ue(Te.focusOut,w.nativeEvent))}}})]})]})});var $g=c(ue(),1);function Goe(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(r=>r(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var s4e=c(E(),1),a4e=$g.createContext(null),l4e=$g.createContext(null),Kp=()=>$g.useContext(a4e)?.id||null,Fa=e=>{let t=$g.useContext(l4e);return e??t};var A0=c(E(),1);function c4e(e,t){let o=Ct(wo(e));return e instanceof o.KeyboardEvent?"keyboard":e instanceof o.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof o.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var Woe=20,Yp=[];function O8(){Yp=Yp.filter(e=>e.deref()?.isConnected)}function $oe(e){O8(),e&&Nr(e)!=="body"&&(Yp.push(new WeakRef(e)),Yp.length>Woe&&(Yp=Yp.slice(-Woe)))}function Koe(){return O8(),Yp[Yp.length-1]?.deref()}function u4e(e){return e?GI(e)?e:I0(e)[0]||e:null}function Yoe(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let o=_8(e).filter(n=>{let i=n.getAttribute("data-tabindex")||"";return GI(n)||n.hasAttribute("data-tabindex")&&!i.startsWith("-")}),r=e.getAttribute("tabindex");o.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function A8(e){let{context:t,children:o,disabled:r=!1,initialFocus:n=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:h,getInsideElements:m}=e,g="rootStore"in t?t.rootStore:t,b=g.useState("open"),v=g.useState("domReferenceElement"),y=g.useState("floatingElement"),{events:k,dataRef:S}=g.context,_=pe(()=>S.current.floatingContext?.nodeId),x=n===!1,w=C0(v)&&x,T=$t(n),R=$t(i),B=$t(u),I=$t(b),O=Fa(h),P=P8(),A=ci.useRef(!1),M=ci.useRef(!1),z=ci.useRef(!1),V=ci.useRef(null),L=ci.useRef(""),D=ci.useRef(""),N=ci.useRef(null),j=ci.useRef(null),X=Jc(N,p,P?.beforeInsideRef),J=Jc(j,P?.afterInsideRef),te=xo(),ee=xo(),W=Ai(),K=P!=null,Y=jg(y),Z=pe((q=Y)=>q?I0(q):[]),oe=pe(()=>m?.().filter(q=>q!=null)??[]);ci.useEffect(()=>{if(r||!a)return;function q(ae){ae.key==="Tab"&&Fe(Y,Mr(qe(Y)))&&Z().length===0&&!w&&Ks(ae)}let re=qe(Y);return et(re,"keydown",q)},[r,Y,a,w,Z]),ci.useEffect(()=>{if(r||!b)return;let q=qe(Y);function re(){z.current=!1}function ae(xe){let he=wo(xe),ge=oe(),me=Fe(y,he)||Fe(v,he)||Fe(P?.portalNode,he)||ge.some(ke=>ke===he||Fe(ke,he));z.current=!me,D.current=xe.pointerType||"keyboard",he?.closest(`[${Foe}]`)&&(M.current=!0,ee.start(0,()=>{M.current=!1}))}function ye(){D.current="keyboard"}return li(et(q,"pointerdown",ae,!0),et(q,"pointerup",re,!0),et(q,"pointercancel",re,!0),et(q,"keydown",ye,!0),re)},[r,y,v,Y,b,P,ee,oe]),ci.useEffect(()=>{if(r||!l)return;let q=qe(Y);function re(){M.current=!0,ee.start(0,()=>{M.current=!1})}function ae(ge){let me=wo(ge);GI(me)&&(V.current=me)}function ye(ge){let me=ge.relatedTarget,ke=ge.currentTarget,ve=wo(ge);a&&me==null&&ve!=null&&Fe(y,ve)&&$oe(ve),queueMicrotask(()=>{let Ee=_(),Re=g.context.triggerElements,se=oe(),ne=me?.hasAttribute(Td("focus-guard"))&&[N.current,j.current,P?.beforeInsideRef.current,P?.afterInsideRef.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,Zl(f),Zl(d)].includes(me),Ae=!(Fe(v,me)||Fe(y,me)||Fe(me,y)||Fe(P?.portalNode,me)||se.some(be=>be===me||Fe(be,me))||me!=null&&Re.hasElement(me)||Re.hasMatchingElement(be=>Fe(be,me))||ne||O&&(Va(O.nodesRef.current,Ee).find(be=>Fe(be.context?.elements.floating,me)||Fe(be.context?.elements.domReference,me))||w8(O.nodesRef.current,Ee).find(be=>[be.context?.elements.floating,jg(be.context?.elements.floating)].includes(me)||be.context?.elements.domReference===me)));if(ke===v&&Y&&Yoe(Y),s&&ke!==v&&!Ug(ve)&&Mr(q)===q.body){if(Et(Y)&&(Y.focus(),s==="popup")){W.request(()=>{Y.focus()});return}let be=Z(),we=V.current,ot=(we&&be.includes(we)?we:null)||be[be.length-1]||Y;Et(ot)&&ot.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(w||!a)&&me&&Ae&&!M.current&&(w||me!==Koe())&&(A.current=!0,g.setOpen(!1,Ue(Te.focusOut,ge)))})}function xe(){z.current||(S.current.insideReactTree=!0,te.start(0,()=>{S.current.insideReactTree=!1}))}let he=Et(v)?v:null;if(!(!y&&!he))return li(he&&et(he,"focusout",ye),he&&et(he,"pointerdown",re),y&&et(y,"focusin",ae),y&&et(y,"focusout",ye),y&&P&&et(y,"focusout",xe,!0))},[r,v,y,Y,a,O,P,g,l,s,Z,w,_,S,te,ee,W,d,f,oe]),ci.useEffect(()=>{if(r||!y||!b)return;let q=Array.from(P?.portalNode?.querySelectorAll(`[${Td("portal")}]`)||[]),ae=(O?w8(O.nodesRef.current,_()):[]).find(ke=>C0(ke.context?.elements.domReference||null))?.context?.elements.domReference,xe=[...[y,...q,N.current,j.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,...oe()],ae,Zl(f),Zl(d),w?v:null].filter(ke=>ke!=null),he=R8(xe,{ariaHidden:a||w,mark:!1}),ge=[y,...q].filter(ke=>ke!=null),me=R8(ge);return()=>{me(),he()}},[b,r,v,y,a,P,w,O,_,d,f,oe]),le(()=>{if(!b||r||!Et(Y))return;let q=qe(Y),re=Mr(q);queueMicrotask(()=>{let ae=T.current,ye=typeof ae=="function"?ae(B.current||""):ae;if(ye===void 0||ye===!1||Fe(Y,re))return;let he=null,ge=()=>(he==null&&(he=Z(Y)),he[0]||Y),me;ye===!0||ye===null?me=ge():me=Zl(ye),me=me||ge();let ke=Fe(Y,Mr(q));$v(me,{preventScroll:me===Y,shouldFocus(){if(!I.current)return!1;if(ke)return!0;let ve=Mr(q);return!(ve!==me&&Fe(Y,ve))}})})},[r,b,Y,Z,T,B,I]),le(()=>{if(r||!Y)return;let q=qe(Y),re=Mr(q),ae=B.current==null;$oe(re);function ye(he){if(he.open||(L.current=c4e(he.nativeEvent,D.current)),he.reason===Te.triggerHover&&he.nativeEvent.type==="mouseleave"&&(A.current=!0),he.reason===Te.outsidePress)if(he.nested)A.current=!1;else if(Gv(he.nativeEvent)||LI(he.nativeEvent))A.current=!1;else{let ge=!1;qe(Y).createElement("div").focus({get preventScroll(){return ge=!0,!1}}),ge?A.current=!1:A.current=!0}}k.on("openchange",ye);function xe(){let he=R.current,ge=typeof he=="function"?he(L.current):he;if(ge===void 0||ge===!1)return null;ge===null&&(ge=!0);let me=v?.isConnected?v:null,ke=re?.isConnected&&Nr(re)!=="body"?re:null,ve=ae?ke||me:me||ke;return ve||(ve=Koe()||null),typeof ge=="boolean"?ve:Zl(ge)||ve||null}return()=>{k.off("openchange",ye);let he=Mr(q),ge=oe(),me=Fe(y,he)||ge.some(Ee=>Ee===he||Fe(Ee,he))||O&&Va(O.nodesRef.current,_(),!1).some(Ee=>Fe(Ee.context?.elements.floating,he)),ke=R.current,ve=xe();queueMicrotask(()=>{let Ee=u4e(ve),Re=typeof ke!="boolean";ke&&!A.current&&Et(Ee)&&(!(!Re&&Ee!==he&&he!==q.body)||me)&&Ee.focus({preventScroll:!0}),A.current=!1})}},[r,y,Y,R,B,k,O,v,_,oe]),le(()=>{if(!uo.engine.webkit||b||!y)return;let q=Mr(qe(y));!Et(q)||!zg(q)||Fe(y,q)&&q.blur()},[b,y]),le(()=>{if(!(r||!P))return P.setFocusManagerState({modal:a,closeOnFocusOut:l,open:b,onOpenChange:g.setOpen,domReference:v}),()=>{P.setFocusManagerState(null)}},[r,P,a,b,g,l,v]),le(()=>{if(!(r||!Y))return Yoe(Y),()=>{queueMicrotask(O8)}},[r,Y]);let ie=!r&&(a?!w:!0)&&(K||a);return(0,A0.jsxs)(ci.Fragment,{children:[ie&&(0,A0.jsx)(Wv,{"data-type":"inside",ref:X,onFocus:q=>{if(a){let re=Z();$v(re[re.length-1])}else P?.portalNode&&(A.current=!1,Gg(q,P.portalNode)?WI(v)?.focus():Zl(f??P.beforeOutsideRef)?.focus())}}),o,ie&&(0,A0.jsx)(Wv,{"data-type":"inside",ref:J,onFocus:q=>{a?$v(Z()[0]):P?.portalNode&&(l&&(A.current=!0),Gg(q,P.portalNode)?$I(v)?.focus():Zl(d??P.afterOutsideRef)?.focus())}})]})}var L0=c(ue(),1);function L8(e,t={}){let{enabled:o=!0,event:r="click",toggle:n=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:l=Te.triggerPress}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,f=L0.useRef(void 0),p=Ai(),h=xo(),m=L0.useMemo(()=>{function g(v,y,k,S){let _=Ue(l,y,k);v&&S==="touch"&&a>0?h.start(a,()=>{u.setOpen(!0,_)}):u.setOpen(v,_)}function b(v,y,k){let S=d.current.openEvent,_=u.select("domReferenceElement")!==y;return v&&_||!v||!n?!0:S&&s?!k(S.type):!1}return{onPointerDown(v){f.current=v.pointerType},onMouseDown(v){let y=f.current,k=v.nativeEvent,S=u.select("open");if(v.button!==0||r==="click"||Da(y,!0)&&i)return;let _=b(S,v.currentTarget,T=>T==="click"||T==="mousedown"),x=wo(k);if(zg(x)){g(_,k,x,y);return}let w=v.currentTarget;p.request(()=>{g(_,k,w,y)})},onClick(v){if(r==="mousedown-only")return;let y=f.current;if(r==="mousedown"&&y){f.current=void 0;return}if(Da(y,!0)&&i)return;let k=u.select("open"),S=b(k,v.currentTarget,_=>_==="click"||_==="mousedown"||_==="keydown"||_==="keyup");g(S,v.nativeEvent,v.currentTarget,y)},onKeyDown(){f.current=void 0}}},[d,r,i,l,u,s,n,p,h,a]);return L0.useMemo(()=>o?{reference:m}:Qt,[o,m])}var ds=c(ue(),1);function d4e(e,t){let o=null,r=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=i.width,d=i.height,f=i.x,p=i.y;return o==null&&t.x&&s&&(o=i.x-t.x),r==null&&t.y&&a&&(r=i.y-t.y),f-=o||0,p-=r||0,u=0,d=0,!n||l?(u=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,f=s&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):n&&!l&&(d=t.axis==="x"?i.height:d,u=t.axis==="y"?i.width:u),n=!0,{width:u,height:d,x:f,y:p,top:p,right:f+u,bottom:p+d,left:f}}}}function qoe(e){return e!=null&&e.clientX!=null}function N8(e,t={}){let{enabled:o=!0,axis:r="both"}=t,n="rootStore"in e?e.rootStore:e,i=n.useState("open"),s=n.useState("floatingElement"),a=n.useState("domReferenceElement"),l=n.context.dataRef,u=ds.useRef(!1),d=ds.useRef(null),[f,p]=ds.useState(),[h,m]=ds.useState([]),g=pe(S=>{n.set("positionReference",S)}),b=pe((S,_,x)=>{u.current||l.current.openEvent&&!qoe(l.current.openEvent)||n.set("positionReference",d4e(x??a,{x:S,y:_,axis:r,dataRef:l,pointerType:f}))}),v=pe(S=>{i?d.current||(b(S.clientX,S.clientY,S.currentTarget),m([])):b(S.clientX,S.clientY,S.currentTarget)}),y=Da(f)?s:i;ds.useEffect(()=>{if(!o){g(a);return}if(!y)return;function S(){d.current?.(),d.current=null}let _=Ct(s);function x(w){let T=wo(w);Fe(s,T)?S():b(w.clientX,w.clientY)}return!l.current.openEvent||qoe(l.current.openEvent)?d.current=et(_,"mousemove",x):g(a),S},[y,o,s,l,a,n,b,g,h]),ds.useEffect(()=>()=>{n.set("positionReference",null)},[n]),ds.useEffect(()=>{o&&!s&&(u.current=!1)},[o,s]),ds.useEffect(()=>{!o&&i&&(u.current=!0)},[o,i]);let k=ds.useMemo(()=>{function S(_){p(_.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:v,onMouseEnter:v}},[v]);return ds.useMemo(()=>o?{reference:k,trigger:k}:{},[o,k])}var fs=c(ue(),1);function f4e(){return!1}function p4e(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function N0(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:i="sloppy",referencePress:s=f4e,bubbles:a,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,d=u.useState("open"),f=u.useState("floatingElement"),{dataRef:p}=u.context,h=Fa(l),m=pe(typeof n=="function"?n:()=>!1),g=typeof n=="function"?m:n,b=g!==!1,v=pe(()=>i),{escapeKey:y,outsidePress:k}=p4e(a),S=fs.useRef(!1),_=fs.useRef(!1),x=fs.useRef(!1),w=fs.useRef(!1),T=fs.useRef(""),R=fs.useRef(null),B=xo(),I=xo(),O=pe(()=>{I.clear(),p.current.insideReactTree=!1}),P=pe(X=>{let J=p.current.floatingContext?.nodeId;return(h?Va(h.nodesRef.current,J):[]).some(ee=>ee.context?.open&&!ee.context.dataRef.current[X])}),A=pe(X=>MI(X,u.select("floatingElement"))||MI(X,u.select("domReferenceElement"))),M=pe(X=>{s()&&u.setOpen(!1,Ue(Te.triggerPress,X.nativeEvent))}),z=pe(X=>{if(!d||!o||!r||X.key!=="Escape"||w.current||!y&&P("__escapeKeyBubbles"))return;let J=coe(X)?X.nativeEvent:X,te=Ue(Te.escapeKey,J);u.setOpen(!1,te),te.isCanceled||X.preventDefault(),!y&&!te.isPropagationAllowed&&X.stopPropagation()}),V=pe(()=>{p.current.insideReactTree=!0,I.start(0,O)}),L=pe(X=>{if(!d||!o||X.button!==0)return;let J=wo(X.nativeEvent);Fe(u.select("floatingElement"),J)&&(S.current||(S.current=!0,_.current=!1))}),D=pe(X=>{!d||!o||(X.defaultPrevented||X.nativeEvent.defaultPrevented)&&S.current&&(_.current=!0)});fs.useEffect(()=>{if(!d||!o)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=k;let X=new si,J=new si;function te(){X.clear(),w.current=!0}function ee(){X.start(uo.engine.webkit?5:0,()=>{w.current=!1})}function W(){x.current=!0,J.start(0,()=>{x.current=!1})}function K(){S.current=!1,_.current=!1}function Y(){let se=T.current,ne=se==="pen"||!se?"mouse":se,Ae=v(),be=typeof Ae=="function"?Ae():Ae;return typeof be=="string"?be:be[ne]}function Z(se){let ne=Y();return ne==="intentional"&&se.type!=="click"||ne==="sloppy"&&se.type==="click"}function oe(se){let ne=p.current.floatingContext?.nodeId,Ae=h&&Va(h.nodesRef.current,ne).some(be=>MI(se,be.context?.elements.floating));return A(se)||Ae}function ie(se){if(Z(se)){se.type!=="click"&&!A(se)&&(J.clear(),x.current=!1),O();return}if(p.current.insideReactTree){O();return}let ne=wo(se),Ae=`[${Td("inert")}]`,be=Xe(ne)?ne.getRootNode():null,we=Array.from((tu(be)?be:qe(u.select("floatingElement"))).querySelectorAll(Ae)),ot=u.context.triggerElements;if(ne&&(ot.hasElement(ne)||ot.hasMatchingElement(at=>Fe(at,ne))))return;let vt=Xe(ne)?ne:null;for(;vt&&!ql(vt);){let at=Kl(vt);if(ql(at)||!Xe(at))break;vt=at}if(!(we.length&&Xe(ne)&&!doe(ne)&&!Fe(ne,u.select("floatingElement"))&&we.every(at=>!Fe(vt,at)))){if(Et(ne)&&!("touches"in se)){let at=ql(ne),St=Qr(ne),rt=/auto|scroll/,Vt=at||rt.test(St.overflowX),lt=at||rt.test(St.overflowY),no=Vt&&ne.clientWidth>0&&ne.scrollWidth>ne.clientWidth,ho=lt&&ne.clientHeight>0&&ne.scrollHeight>ne.clientHeight,je=St.direction==="rtl",_e=ho&&(je?se.offsetX<=ne.offsetWidth-ne.clientWidth:se.offsetX>ne.clientWidth),He=no&&se.offsetY>ne.clientHeight;if(_e||He)return}if(!oe(se)){if(Y()==="intentional"&&x.current){J.clear(),x.current=!1;return}typeof g=="function"&&!g(se)||P("__outsidePressBubbles")||(u.setOpen(!1,Ue(Te.outsidePress,se)),O())}}}function q(se){Y()!=="sloppy"||se.pointerType==="touch"||!u.select("open")||!o||A(se)||ie(se)}function re(se){if(Y()!=="sloppy"||!u.select("open")||!o||A(se))return;let ne=se.touches[0];ne&&(R.current={startTime:Date.now(),startX:ne.clientX,startY:ne.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},B.start(1e3,()=>{R.current&&(R.current.dismissOnTouchEnd=!1,R.current.dismissOnMouseDown=!1)}))}function ae(se,ne){let Ae=wo(se);if(!Ae)return;let be=et(Ae,se.type,()=>{ne(se),be()})}function ye(se){T.current="touch",ae(se,re)}function xe(se){B.clear(),se.type==="pointerdown"&&(T.current=se.pointerType),!(se.type==="mousedown"&&R.current&&!R.current.dismissOnMouseDown)&&ae(se,ne=>{ne.type==="pointerdown"?q(ne):ie(ne)})}function he(se){if(!S.current)return;let ne=_.current;if(K(),Y()==="intentional"){if(se.type==="pointercancel"){ne&&W();return}if(!oe(se)){if(ne){W();return}typeof g=="function"&&!g(se)||(J.clear(),x.current=!0,O())}}}function ge(se){if(Y()!=="sloppy"||!R.current||A(se))return;let ne=se.touches[0];if(!ne)return;let Ae=Math.abs(ne.clientX-R.current.startX),be=Math.abs(ne.clientY-R.current.startY),we=Math.sqrt(Ae*Ae+be*be);we>5&&(R.current.dismissOnTouchEnd=!0),we>10&&(ie(se),B.clear(),R.current=null)}function me(se){ae(se,ge)}function ke(se){Y()!=="sloppy"||!R.current||A(se)||(R.current.dismissOnTouchEnd&&ie(se),B.clear(),R.current=null)}function ve(se){ae(se,ke)}let Ee=qe(f),Re=li(r&&li(et(Ee,"keydown",z),et(Ee,"compositionstart",te),et(Ee,"compositionend",ee)),b&&li(et(Ee,"click",xe,!0),et(Ee,"pointerdown",xe,!0),et(Ee,"pointerup",he,!0),et(Ee,"pointercancel",he,!0),et(Ee,"mousedown",xe,!0),et(Ee,"mouseup",he,!0),et(Ee,"touchstart",ye,!0),et(Ee,"touchmove",me,!0),et(Ee,"touchend",ve,!0)));return()=>{Re(),X.clear(),J.clear(),K(),x.current=!1}},[p,f,r,b,g,d,o,y,k,z,O,v,P,A,h,u,B]),fs.useEffect(O,[g,O]);let N=fs.useMemo(()=>({onKeyDown:z,onPointerDown:M,onClick:M}),[z,M]),j=fs.useMemo(()=>({onKeyDown:z,onPointerDown:D,onMouseDown:D,onClickCapture:V,onMouseDownCapture(X){V(),L(X)},onPointerDownCapture(X){V(),L(X)},onMouseUpCapture:V,onTouchEndCapture:V,onTouchMoveCapture:V}),[z,V,L,D]);return fs.useMemo(()=>o?{reference:N,floating:j,trigger:N}:{},[o,N,j])}var ui=c(ue(),1);function Zoe(e,t,o){let{reference:r,floating:n}=e,i=us(t),s=P0(t),a=B0(s),l=Un(t),u=i==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,h;switch(l){case"top":h={x:d,y:r.y-n.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-n.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Jl(t)){case"start":h[s]-=p*(o&&u?-1:1);break;case"end":h[s]+=p*(o&&u?-1:1);break}return h}async function Joe(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ql(t,e),m=HI(h),b=a[p?f==="floating"?"reference":"floating":f],v=Ed(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(b)))==null||o?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},_=Ed(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:k,strategy:l}):y);return{top:(v.top-_.top+m.top)/S.y,bottom:(_.bottom-v.bottom+m.bottom)/S.y,left:(v.left-_.left+m.left)/S.x,right:(_.right-v.right+m.right)/S.x}}var m4e=50,ere=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:Joe},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=Zoe(u,r,l),p=r,h=0,m={};for(let g=0;g<i.length;g++){let b=i[g];if(!b)continue;let{name:v,fn:y}=b,{x:k,y:S,data:_,reset:x}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});d=k??d,f=S??f,m[v]={...m[v],..._},x&&h<m4e&&(h++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:d,y:f}=Zoe(u,p,l)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};var tre=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ql(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let v=Un(n),y=us(a),k=Un(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=p||(k||!g?[E0(a)]:xoe(a)),x=m!=="none";!p&&x&&_.push(...woe(a,g,m,S));let w=[a,..._],T=await l.detectOverflow(t,b),R=[],B=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(T[v]),f){let A=_oe(n,s,S);R.push(T[A[0]],T[A[1]])}if(B=[...B,{placement:n,overflows:R}],!R.every(A=>A<=0)){var I,O;let A=(((I=i.flip)==null?void 0:I.index)||0)+1,M=w[A];if(M&&(!(f==="alignment"?y!==us(M):!1)||B.every(L=>us(L.placement)===y?L.overflows[0]>0:!0)))return{data:{index:A,overflows:B},reset:{placement:M}};let z=(O=B.filter(V=>V.overflows[0]<=0).sort((V,L)=>V.overflows[1]-L.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(h){case"bestFit":{var P;let V=(P=B.filter(L=>{if(x){let D=us(L.placement);return D===y||D==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(D=>D>0).reduce((D,N)=>D+N,0)]).sort((L,D)=>L[1]-D[1])[0])==null?void 0:P[0];V&&(z=V);break}case"initialPlacement":z=a;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function Xoe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qoe(e){return koe.some(t=>e[t]>=0)}var ore=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...i}=Ql(e,t);switch(n){case"referenceHidden":{let s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Xoe(s,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qoe(a)}}}case"escaped":{let s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Xoe(s,o.floating);return{data:{escapedOffsets:a,escaped:Qoe(a)}}}default:return{}}}}};var rre=new Set(["left","top"]);async function h4e(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Un(o),a=Jl(o),l=us(o)==="y",u=rre.has(s)?-1:1,d=i&&l?-1:1,f=Ql(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*d,y:p*u}:{x:p*u,y:h*d}}var nre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:s,middlewareData:a}=t,l=await h4e(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},ire=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:y,y:k}=v;return{x:y,y:k}}},...u}=Ql(e,t),d={x:o,y:r},f=await i.detectOverflow(t,u),p=us(Un(n)),h=jI(p),m=d[h],g=d[p];if(s){let v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",k=m+f[v],S=m-f[y];m=R0(k,m,S)}if(a){let v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",k=g+f[v],S=g-f[y];g=R0(k,g,S)}let b=l.fn({...t,[h]:m,[p]:g});return{...b,data:{x:b.x-o,y:b.y-r,enabled:{[h]:s,[p]:a}}}}}},sre=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ql(e,t),d={x:o,y:r},f=us(n),p=jI(f),h=d[p],m=d[f],g=Ql(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let k=p==="y"?"height":"width",S=i.reference[p]-i.floating[k]+b.mainAxis,_=i.reference[p]+i.reference[k]-b.mainAxis;h<S?h=S:h>_&&(h=_)}if(u){var v,y;let k=p==="y"?"width":"height",S=rre.has(Un(n)),_=i.reference[f]-i.floating[k]+(S&&((v=s.offset)==null?void 0:v[f])||0)+(S?0:b.crossAxis),x=i.reference[f]+i.reference[k]+(S?0:((y=s.offset)==null?void 0:y[f])||0)-(S?b.crossAxis:0);m<_?m=_:m>x&&(m=x)}return{[p]:h,[f]:m}}}},are=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ql(e,t),d=await s.detectOverflow(t,u),f=Un(n),p=Jl(n),h=us(n)==="y",{width:m,height:g}=i.floating,b,v;f==="top"||f==="bottom"?(b=f,v=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,b=p==="end"?"top":"bottom");let y=g-d.top-d.bottom,k=m-d.left-d.right,S=Wp(g-d[b],y),_=Wp(m-d[v],k),x=!t.middlewareData.shift,w=S,T=_;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(T=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=y),x&&!p){let B=Ni(d.left,0),I=Ni(d.right,0),O=Ni(d.top,0),P=Ni(d.bottom,0);h?T=m-2*(B!==0||I!==0?B+I:Ni(d.left,d.right)):w=g-2*(O!==0||P!==0?O+P:Ni(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:w});let R=await s.getDimensions(a.floating);return m!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function dre(e){let t=Qr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Et(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=$p(o)!==i||$p(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function D8(e){return Xe(e)?e:e.contextElement}function Kv(e){let t=D8(e);if(!Et(t))return Xl(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=dre(t),s=(i?$p(o.width):o.width)/r,a=(i?$p(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var g4e=Xl(0);function fre(e){let t=Ct(e);return!PI()||!t.visualViewport?g4e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b4e(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ct(e)?!1:t}function Kg(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=D8(e),s=Xl(1);t&&(r?Xe(r)&&(s=Kv(r)):s=Kv(e));let a=b4e(i,o,r)?fre(i):Xl(0),l=(n.left+a.x)/s.x,u=(n.top+a.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(i){let p=Ct(i),h=r&&Xe(r)?Ct(r):r,m=p,g=II(m);for(;g&&r&&h!==m;){let b=Kv(g),v=g.getBoundingClientRect(),y=Qr(g),k=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,S=v.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=k,u+=S,m=Ct(g),g=II(m)}}return Ed({width:d,height:f,x:l,y:u})}function qI(e,t){let o=y0(e).scrollLeft;return t?t.left+o:Kg(Yl(e)).left+o}function pre(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-qI(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function y4e(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",s=Yl(r),a=t?b0(t.floating):!1;if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},u=Xl(1),d=Xl(0),f=Et(r);if((f||!f&&!i)&&((Nr(r)!=="body"||ou(s))&&(l=y0(r)),f)){let h=Kg(r);u=Kv(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}let p=s&&!f&&!i?pre(s,l):Xl(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:o.y*u.y-l.scrollTop*u.y+d.y+p.y}}function v4e(e){return Array.from(e.getClientRects())}function S4e(e){let t=Yl(e),o=y0(e),r=e.ownerDocument.body,n=Ni(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ni(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+qI(e),a=-o.scrollTop;return Qr(r).direction==="rtl"&&(s+=Ni(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:a}}var lre=25;function k4e(e,t){let o=Ct(e),r=Yl(e),n=o.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;let d=PI();(!d||d&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}let u=qI(r);if(u<=0){let d=r.ownerDocument,f=d.body,p=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-f.clientWidth-h);m<=lre&&(i-=m)}else u<=lre&&(i+=u);return{width:i,height:s,x:a,y:l}}function _4e(e,t){let o=Kg(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=Et(e)?Kv(e):Xl(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=n*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function cre(e,t,o){let r;if(t==="viewport")r=k4e(e,o);else if(t==="document")r=S4e(Yl(e));else if(Xe(t))r=_4e(t,o);else{let n=fre(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ed(r)}function mre(e,t){let o=Kl(e);return o===t||!Xe(o)||ql(o)?!1:Qr(o).position==="fixed"||mre(o,t)}function x4e(e,t){let o=t.get(e);if(o)return o;let r=Hp(e,[],!1).filter(a=>Xe(a)&&Nr(a)!=="body"),n=null,i=Qr(e).position==="fixed",s=i?Kl(e):e;for(;Xe(s)&&!ql(s);){let a=Qr(s),l=BI(s);!l&&a.position==="fixed"&&(n=null),(i?!l&&!n:!l&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ou(s)&&!l&&mre(e,s))?r=r.filter(d=>d!==s):n=a,s=Kl(s)}return t.set(e,r),r}function w4e(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?b0(t)?[]:x4e(t,this._c):[].concat(o),r],a=cre(t,s[0],n),l=a.top,u=a.right,d=a.bottom,f=a.left;for(let p=1;p<s.length;p++){let h=cre(t,s[p],n);l=Ni(h.top,l),u=Wp(h.right,u),d=Wp(h.bottom,d),f=Ni(h.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function C4e(e){let{width:t,height:o}=dre(e);return{width:t,height:o}}function E4e(e,t,o){let r=Et(t),n=Yl(t),i=o==="fixed",s=Kg(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=Xl(0);function u(){l.x=qI(n)}if(r||!r&&!i)if((Nr(t)!=="body"||ou(n))&&(a=y0(t)),r){let h=Kg(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else n&&u();i&&!r&&n&&u();let d=n&&!r&&!i?pre(n,a):Xl(0),f=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function M8(e){return Qr(e).position==="static"}function ure(e,t){if(!Et(e)||Qr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Yl(e)===o&&(o=o.ownerDocument.body),o}function hre(e,t){let o=Ct(e);if(b0(e))return o;if(!Et(e)){let n=Kl(e);for(;n&&!ql(n);){if(Xe(n)&&!M8(n))return n;n=Kl(n)}return o}let r=ure(e,t);for(;r&&Gte(r)&&M8(r);)r=ure(r,t);return r&&ql(r)&&M8(r)&&!BI(r)?o:r||Wte(e)||o}var T4e=async function(e){let t=this.getOffsetParent||hre,o=this.getDimensions,r=await o(e.floating);return{reference:E4e(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function R4e(e){return Qr(e).direction==="rtl"}var M0={convertOffsetParentRelativeRectToViewportRelativeRect:y4e,getDocumentElement:Yl,getClippingRect:w4e,getOffsetParent:hre,getElementRects:T4e,getClientRects:v4e,getDimensions:C4e,getScale:Kv,isElement:Xe,isRTL:R4e};function gre(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function B4e(e,t){let o=null,r,n=Yl(e);function i(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();let u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=u;if(a||t(),!p||!h)return;let m=T0(f),g=T0(n.clientWidth-(d+p)),b=T0(n.clientHeight-(f+h)),v=T0(d),k={rootMargin:-m+"px "+-g+"px "+-b+"px "+-v+"px",threshold:Ni(0,Wp(1,l))||1},S=!0;function _(x){let w=x[0].intersectionRatio;if(w!==l){if(!S)return s();w?s(!1,w):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w===1&&!gre(u,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(_,{...k,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,k)}o.observe(e)}return s(!0),i}function D0(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=D8(e),d=n||i?[...u?Hp(u):[],...t?Hp(t):[]]:[];d.forEach(v=>{n&&v.addEventListener("scroll",o,{passive:!0}),i&&v.addEventListener("resize",o)});let f=u&&a?B4e(u,o):null,p=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),o()}),u&&!l&&h.observe(u),t&&h.observe(t));let m,g=l?Kg(e):null;l&&b();function b(){let v=Kg(e);g&&!gre(g,v)&&o(),g=v,m=requestAnimationFrame(b)}return o(),()=>{var v;d.forEach(y=>{n&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),f?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var bre=nre;var yre=ire,vre=tre,Sre=are,kre=ore;var _re=sre,ZI=(e,t,o)=>{let r=new Map,n={platform:M0,...o},i={...n.platform,_c:r};return ere(e,t,{...n,platform:i})};var Jr=c(ue(),1),wre=c(ue(),1),Cre=c(xd(),1),I4e=typeof document<"u",O4e=function(){},XI=I4e?wre.useLayoutEffect:O4e;function QI(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!QI(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let i=n[r];if(!(i==="_owner"&&e.$$typeof)&&!QI(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ere(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xre(e,t){let o=Ere(e);return Math.round(t*o)/o}function V8(e){let t=Jr.useRef(e);return XI(()=>{t.current=e}),t}function Tre(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=Jr.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Jr.useState(r);QI(p,r)||h(r);let[m,g]=Jr.useState(null),[b,v]=Jr.useState(null),y=Jr.useCallback(L=>{L!==x.current&&(x.current=L,g(L))},[]),k=Jr.useCallback(L=>{L!==w.current&&(w.current=L,v(L))},[]),S=i||m,_=s||b,x=Jr.useRef(null),w=Jr.useRef(null),T=Jr.useRef(d),R=l!=null,B=V8(l),I=V8(n),O=V8(u),P=Jr.useCallback(()=>{if(!x.current||!w.current)return;let L={placement:t,strategy:o,middleware:p};I.current&&(L.platform=I.current),ZI(x.current,w.current,L).then(D=>{let N={...D,isPositioned:O.current!==!1};A.current&&!QI(T.current,N)&&(T.current=N,Cre.flushSync(()=>{f(N)}))})},[p,t,o,I,O]);XI(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[u]);let A=Jr.useRef(!1);XI(()=>(A.current=!0,()=>{A.current=!1}),[]),XI(()=>{if(S&&(x.current=S),_&&(w.current=_),S&&_){if(B.current)return B.current(S,_,P);P()}},[S,_,P,B,R]);let M=Jr.useMemo(()=>({reference:x,floating:w,setReference:y,setFloating:k}),[y,k]),z=Jr.useMemo(()=>({reference:S,floating:_}),[S,_]),V=Jr.useMemo(()=>{let L={position:o,left:0,top:0};if(!z.floating)return L;let D=xre(z.floating,d.x),N=xre(z.floating,d.y);return a?{...L,transform:"translate("+D+"px, "+N+"px)",...Ere(z.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:D,top:N}},[o,a,z.floating,d.x,d.y]);return Jr.useMemo(()=>({...d,update:P,refs:M,elements:z,floatingStyles:V}),[d,P,M,z,V])}var F8=(e,t)=>{let o=bre(e);return{name:o.name,fn:o.fn,options:[e,t]}},z8=(e,t)=>{let o=yre(e);return{name:o.name,fn:o.fn,options:[e,t]}},j8=(e,t)=>({fn:_re(e).fn,options:[e,t]}),H8=(e,t)=>{let o=vre(e);return{name:o.name,fn:o.fn,options:[e,t]}},U8=(e,t)=>{let o=Sre(e);return{name:o.name,fn:o.fn,options:[e,t]}};var G8=(e,t)=>{let o=kre(e);return{name:o.name,fn:o.fn,options:[e,t]}};var Xv=c(ue(),1),Ure=c(xd(),1);var jre=c(ue(),1);var De=(e,t,o,r,n,i,...s)=>{if(s.length>0)throw new Error(Ot(1));let a;if(e&&t&&o&&r&&n&&i)a=(l,u,d,f)=>{let p=e(l,u,d,f),h=t(l,u,d,f),m=o(l,u,d,f),g=r(l,u,d,f),b=n(l,u,d,f);return i(p,h,m,g,b,u,d,f)};else if(e&&t&&o&&r&&n)a=(l,u,d,f)=>{let p=e(l,u,d,f),h=t(l,u,d,f),m=o(l,u,d,f),g=r(l,u,d,f);return n(p,h,m,g,u,d,f)};else if(e&&t&&o&&r)a=(l,u,d,f)=>{let p=e(l,u,d,f),h=t(l,u,d,f),m=o(l,u,d,f);return r(p,h,m,u,d,f)};else if(e&&t&&o)a=(l,u,d,f)=>{let p=e(l,u,d,f),h=t(l,u,d,f);return o(p,h,u,d,f)};else if(e&&t)a=(l,u,d,f)=>{let p=e(l,u,d,f);return t(p,u,d,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var Fre=c(ue(),1),Z8=c($8(),1),zre=c(Lre(),1);var Nre=c(ue(),1);var K8=[],Y8;function Mre(){return Y8}function Dre(e){K8.push(e)}function q8(e){let t=(o,r)=>{let n=co(Z4e).current,i;try{Y8=n;for(let s of K8)s.before(n);i=e(o,r);for(let s of K8)s.after(n);n.didInitialize=!0}finally{Y8=void 0}return i};return t.displayName=e.displayName||e.name,t}function Vre(e){return Nre.forwardRef(q8(e))}function Z4e(){return{didInitialize:!1}}var X4e=zv(19),Q4e=X4e?e6e:t6e;function Pe(e,t,o,r,n){return Q4e(e,t,o,r,n)}function J4e(e,t,o,r,n){let i=Fre.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,Z8.useSyncExternalStore)(e.subscribe,i,i)}Dre({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let r=e.syncHooks[o],n=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,n)||(t=!0,r.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let n of e.syncHooks)o.add(n.store);let r=[];for(let n of o)r.push(n.subscribe(t));return()=>{for(let n of r)n()}}),(0,Z8.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function e6e(e,t,o,r,n){let i=Mre();if(!i)return J4e(e,t,o,r,n);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,r)||!Object.is(a.a3,n))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=r,a.a3=n,a.value=t(e.getSnapshot(),o,r,n))):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n)},i.syncHooks.push(a)),a.value}function t6e(e,t,o,r,n){return(0,zre.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,r,n))}var qv=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let r of this.listeners){if(o!==this.updateTick)return;r(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,r,n){return Pe(this,t,o,r,n)}};var Yg=c(ue(),1);var Zv=class extends qv{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){Yg.useDebugValue(t);let r=this;le(()=>{r.state[t]!==o&&r.set(t,o)},[r,t,o])}useSyncedValueWithCleanup(t,o){let r=this;le(()=>(r.state[t]!==o&&r.set(t,o),()=>{r.set(t,void 0)}),[r,t,o])}useSyncedValues(t){let o=this,r=Object.values(t);le(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){Yg.useDebugValue(t);let r=this,n=o!==void 0;le(()=>{n&&!Object.is(r.state[t],o)&&r.setState({...r.state,[t]:o})},[r,t,o,n])}select(t,o,r,n){let i=this.selectors[t];return i(this.state,o,r,n)}useState(t,o,r,n){return Yg.useDebugValue(t),Pe(this,this.selectors[t],o,r,n)}useContextCallback(t,o){Yg.useDebugValue(t);let r=pe(o??Ht);this.context[t]=r}useStateSetter(t){let o=Yg.useRef(void 0);return o.current===void 0&&(o.current=r=>{this.set(t,r)}),o.current}observe(t,o){let r;typeof t=="function"?r=t:r=this.selectors[t];let n=r(this.state);return o(n,n,this),this.subscribe(i=>{let s=r(i);if(!Object.is(n,s)){let a=n;n=s,o(s,a,this)}})}};var o6e={open:De(e=>e.open),transitionStatus:De(e=>e.transitionStatus),domReferenceElement:De(e=>e.domReferenceElement),referenceElement:De(e=>e.positionReference??e.referenceElement),floatingElement:De(e=>e.floatingElement),floatingId:De(e=>e.floatingId)},ru=class extends Zv{constructor(t){let{syncOnly:o,nested:r,onOpenChange:n,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:Goe(),nested:r,triggerElements:i},o6e),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&uoe(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let r={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function Hre(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:r,floatingId:n,nested:i,onOpenChange:s}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(o?"popupElement":"positionerElement"),d=t.context.triggerElements,f=s,p=jre.useRef(null);r===void 0&&p.current===null&&(p.current=new ru({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:f,floatingId:n,syncOnly:!0,nested:i}));let h=r??p.current;return t.useSyncedValue("floatingId",n),le(()=>{let m={open:a,floatingId:n,referenceElement:l,floatingElement:u};Xe(l)&&(m.domReferenceElement=l),h.state.positionReference===h.state.referenceElement&&(m.positionReference=l),h.update(m)},[a,n,l,u,h]),h.context.onOpenChange=f,h.context.nested=i,h}var eO={tabIndex:-1,[_0]:""};function Gre(e,t,o=!1){let r=jp(),n=Kp()!=null,i=Xv.useRef(null);e===void 0&&i.current===null&&(i.current=t(r,n));let s=e??i.current;return Hre({popupStore:s,treatPopupAsFloatingElement:o,floatingRootContext:s.state.floatingRootContext,floatingId:r,nested:n,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}function r6e(e,t){let o=Xv.useRef(null),r=Xv.useRef(null);return Xv.useCallback(n=>{if(e===void 0)return;let i=!1;if(o.current!==null){let s=o.current,a=r.current,l=t.context.triggerElements.getById(s);a&&l===a&&(t.context.triggerElements.delete(s),i=!0),o.current=null,r.current=null}if(n!==null&&(o.current=e,r.current=n,t.context.triggerElements.add(e,n),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function n6e(e,t,o,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let n=o?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=o??null)}function i6e(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Wre(e,t,o,r={}){let n=o.reason,i=n===Te.triggerHover,s=t&&n===Te.triggerFocus,a=!t&&(n===Te.triggerPress||n===Te.escapeKey),l=i6e(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let u=()=>{let d={...r.extraState,open:t};s?d.instantType="focus":a?d.instantType="dismiss":i&&(d.instantType=void 0),n6e(d,t,o.trigger,l()),e.update(d)};i?Ure.flushSync(u):u()}function $re(e,t,o,r){AI(()=>{t===void 0&&e.state.open===!1&&o&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Kre(e,t,o,r){let n=o.useState("isMountedByTrigger",e),i=r6e(e,o),s=pe(a=>{if(i(a),!a)return;let l=o.select("open"),u=o.select("activeTriggerId");if(u===e){o.update({activeTriggerElement:a,...l?r:null});return}u==null&&l&&o.update({activeTriggerId:e,activeTriggerElement:a,...r})});return le(()=>{n&&o.update({activeTriggerElement:t.current,...r})},[n,o,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:n}}function Yre(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,r=e.useState("open"),n=e.useState("triggerCount");le(()=>{if(!r){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let i=e.context.triggerElements.size,s={};e.state.triggerCount!==i&&(s.triggerCount=i);let a=e.select("activeTriggerId"),l=null;if(a){let u=e.context.triggerElements.getById(a);u?u!==e.state.activeTriggerElement&&(s.activeTriggerElement=u):l=a}if(!l&&!a&&i===1){let u=e.context.triggerElements.entries().next();if(!u.done){let[d,f]=u.value;s.activeTriggerId=d,s.activeTriggerElement=f}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0||s.activeTriggerElement!==void 0)&&e.update(s),l&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===l&&!e.context.triggerElements.getById(l)){let u=Ue(Te.none);e.setOpen(!1,u),u.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,n,o])}function qre(e,t,o){let{mounted:r,setMounted:n,transitionStatus:i}=cs(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:a});let l=pe(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return ii({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}function Zre(e,t){e.useSyncedValues(t),le(()=>()=>{e.update({activeTriggerProps:Qt,inactiveTriggerProps:Qt,popupProps:Qt})},[e])}var qp=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,o){let r=this.idMap.get(t);r!==o&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(o),this.idMap.set(t,o))}delete(t){let o=this.idMap.get(t);o&&(this.elementsSet.delete(o),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let o of this.elementsSet)if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Xre(){return new ru({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new qp,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Jre(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Xre(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Qt,inactiveTriggerProps:Qt,popupProps:Qt}}function ene(e,t,o=!1){return new ru({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var V0=De(e=>e.triggerIdProp??e.activeTriggerId),X8=De(e=>e.openProp??e.open),Qre=De(e=>(e.popupElement?.id??e.floatingId)||void 0);function tne(e,t){return t!==void 0&&X8(e)&&V0(e)===t}function s6e(e,t){return tne(e,t)?!0:t!==void 0&&X8(e)&&V0(e)==null&&e.triggerCount===1}var one={open:X8,mounted:De(e=>e.mounted),transitionStatus:De(e=>e.transitionStatus),floatingRootContext:De(e=>e.floatingRootContext),triggerCount:De(e=>e.triggerCount),preventUnmountingOnClose:De(e=>e.preventUnmountingOnClose),payload:De(e=>e.payload),activeTriggerId:V0,activeTriggerElement:De(e=>e.mounted?e.activeTriggerElement:null),popupId:Qre,isTriggerActive:De((e,t)=>t!==void 0&&V0(e)===t),isOpenedByTrigger:De((e,t)=>tne(e,t)),isMountedByTrigger:De((e,t)=>t!==void 0&&V0(e)===t&&e.mounted),triggerProps:De((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:De((e,t)=>s6e(e,t)?Qre(e):void 0),popupProps:De(e=>e.popupProps),popupElement:De(e=>e.popupElement),positionerElement:De(e=>e.positionerElement)};function F0(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=jp(),i=Kp()!=null,s=co(()=>new ru({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new qp,floatingId:n,syncOnly:!1,nested:i})).current;return le(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=Xe(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),s.update(a)},[t,n,r.reference,r.floating,s]),s.context.onOpenChange=o,s.context.nested=i,s}function Q8(e={}){let{nodeId:t,externalTree:o}=e,r=F0(e),n=e.rootContext||r,i=n.useState("referenceElement"),s=n.useState("floatingElement"),a=n.useState("domReferenceElement"),l=n.useState("open"),u=n.useState("floatingId"),[d,f]=ui.useState(null),[p,h]=ui.useState(void 0),[m,g]=ui.useState(void 0),b=ui.useRef(null),v=Fa(o),y=ui.useMemo(()=>({reference:i,floating:s,domReference:a}),[i,s,a]),k=Tre({...e,elements:{...y,...d&&{reference:d}}}),S=Xe(p)?p:null,_=m===void 0?n.state.floatingElement:m;n.useSyncedValue("referenceElement",p??null),n.useSyncedValue("domReferenceElement",p===void 0?a:S),n.useSyncedValue("floatingElement",_);let x=ui.useCallback(O=>{let P=Xe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;f(P),k.refs.setReference(P)},[k.refs]),w=ui.useCallback(O=>{(Xe(O)||O===null)&&(b.current=O,h(O)),(Xe(k.refs.reference.current)||k.refs.reference.current===null||O!==null&&!Xe(O))&&k.refs.setReference(O)},[k.refs,h]),T=ui.useCallback(O=>{g(O),k.refs.setFloating(O)},[k.refs]),R=ui.useMemo(()=>({...k.refs,setReference:w,setFloating:T,setPositionReference:x,domReference:b}),[k.refs,w,T,x]),B=ui.useMemo(()=>({...k.elements,domReference:a}),[k.elements,a]),I=ui.useMemo(()=>({...k,dataRef:n.context.dataRef,open:l,onOpenChange:n.setOpen,events:n.context.events,floatingId:u,refs:R,elements:B,nodeId:t,rootStore:n}),[k,R,B,t,n,l,u]);return le(()=>{a&&(b.current=a)},[a]),le(()=>{n.context.dataRef.current.floatingContext=I;let O=v?.nodesRef.current.find(P=>P.id===t);O&&(O.context=I)}),ui.useMemo(()=>({...k,context:I,refs:R,elements:B,rootStore:n}),[k,R,B,I,n])}var nu=c(ue(),1);var J8=uo.os.mac&&uo.engine.webkit;function eH(e,t={}){let{enabled:o=!0,delay:r}=t,n="rootStore"in e?e.rootStore:e,{events:i,dataRef:s}=n.context,a=nu.useRef(!1),l=nu.useRef(null),u=nu.useRef(!0),d=xo();nu.useEffect(()=>{let p=n.select("domReferenceElement");if(!o)return;let h=Ct(p);function m(){let v=n.select("domReferenceElement");!n.select("open")&&Et(v)&&v===Mr(qe(v))&&(a.current=!0)}function g(){u.current=!0}function b(){u.current=!1}return li(et(h,"blur",m),J8&&et(h,"keydown",g,!0),J8&&et(h,"pointerdown",b,!0))},[n,o]),nu.useEffect(()=>{if(!o)return;function p(h){if(h.reason===Te.triggerPress||h.reason===Te.escapeKey){let m=n.select("domReferenceElement");Xe(m)&&(l.current=m,a.current=!0)}}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,o,n]);let f=nu.useMemo(()=>{function p(){a.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(h){let m=h.currentTarget;if(a.current){if(l.current===m)return;p()}let g=wo(h.nativeEvent);if(Xe(g)){if(J8&&!h.relatedTarget){if(!u.current&&!zg(g))return}else if(!foe(g))return}let b=Gp(h.relatedTarget,n.context.triggerElements),{nativeEvent:v,currentTarget:y}=h,k=typeof r=="function"?r():r;if(n.select("open")&&b||k===0||k===void 0){n.setOpen(!0,Ue(Te.triggerFocus,v,y));return}d.start(k,()=>{a.current||n.setOpen(!0,Ue(Te.triggerFocus,v,y))})},onBlur(h){p();let m=h.relatedTarget,g=h.nativeEvent,b=Xe(m)&&m.hasAttribute(Td("focus-guard"))&&m.getAttribute("data-type")==="outside";d.start(0,()=>{let v=n.select("domReferenceElement"),y=Mr(qe(v));!m&&y===v||Fe(s.current.floatingContext?.refs.floating.current,y)||Fe(v,y)||b||Gp(m??y,n.context.triggerElements)||n.setOpen(!1,Ue(Te.triggerFocus,g))})}}},[s,r,n,d]);return nu.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var oH=c(ue(),1);var tH=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new si,this.restTimeout=new si,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},tO=new WeakMap;function Qv(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&tO.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),tO.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function oO(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,i=tO.get(o);i&&i!==e&&Qv(i),Qv(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,tO.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function Jv(e){let t=e.context.dataRef.current,o=co(()=>t.hoverInteractionState??tH.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),jv(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function rH(e,t={}){let{enabled:o=!0,closeDelay:r=0,nodeId:n}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),l=i.useState("domReferenceElement"),{dataRef:u}=i.context,d=Fa(),f=Kp(),p=Jv(i),h=xo(),m=pe(()=>DI(u.current.openEvent?.type,p.interactedInside)),g=pe(()=>poe(u.current.openEvent?.type)),b=pe(()=>{Qv(p)});le(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,b())},[s,p,b]),oH.useEffect(()=>b,[b]),le(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&g()&&Xe(l)&&a){let v=l,y=a,k=qe(a),S=d?.nodesRef.current.find(T=>T.id===f)?.context?.elements.floating;S&&(S.style.pointerEvents="");let _=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,x=S!==y?S:null,w=p.handleCloseOptions?.getScope?.()??_??x??v.closest("[data-rootownerid]")??k.body;return oO(p,{scopeElement:w,referenceElement:v,floatingElement:y}),()=>{b()}}},[o,s,l,a,p,g,d,f,b]),oH.useEffect(()=>{if(!o)return;function v(){return!!(d&&f&&Va(d.nodesRef.current,f).length>0)}function y(T){let R=Cd(r,"close",p.pointerType),B=()=>{i.setOpen(!1,Ue(Te.triggerHover,T)),d?.events.emit("floating.closed",T)};R?p.openChangeTimeout.start(R,B):(p.openChangeTimeout.clear(),B())}function k(T){let R=wo(T);if(!p8(R)){p.interactedInside=!1;return}p.interactedInside=R?.closest("[aria-haspopup]")!=null}function S(){p.openChangeTimeout.clear(),h.clear(),d?.events.off("floating.closed",x),b()}function _(T){if(v()&&d){d.events.on("floating.closed",x);return}if(Gp(T.relatedTarget,i.context.triggerElements))return;let R=u.current.floatingContext?.nodeId??n,B=T.relatedTarget;if(!(d&&R&&Xe(B)&&Va(d.nodesRef.current,R,!1).some(O=>Fe(O.context?.elements.floating,B)))){if(p.handler){p.handler(T);return}b(),g()&&!m()&&y(T)}}function x(T){!d||!f||v()||h.start(0,()=>{d.events.off("floating.closed",x),i.setOpen(!1,Ue(Te.triggerHover,T)),d.events.emit("floating.closed",T)})}let w=a;return li(w&&et(w,"mouseenter",S),w&&et(w,"mouseleave",_),w&&et(w,"pointerdown",k,!0),()=>{d?.events.off("floating.closed",x)})},[o,a,i,u,r,n,g,m,b,p,d,f,h])}var Zp=c(ue(),1),rne=c(xd(),1);var a6e={current:null};function nH(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:l=a6e,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:h}=t,m="rootStore"in e?e.rootStore:e,{dataRef:g,events:b}=m.context,v=Fa(u),y=Jv(m),k=Zp.useRef(!1),S=$t(n),_=$t(r),x=$t(s),w=$t(o),T=$t(h),R=$t(p),B=pe(()=>DI(g.current.openEvent?.type,y.interactedInside)),I=pe(()=>T.current?.()!==!1),O=pe((M,z,V)=>{let L=m.context.triggerElements;if(L.hasElement(z))return!M||!Fe(M,z);if(!Xe(V))return!1;let D=V;return L.hasMatchingElement(N=>Fe(N,D))&&(!M||!Fe(M,D))}),P=pe(()=>{if(!y.handler)return;qe(m.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),A=pe(()=>{Qv(y)});return d&&(y.handleCloseOptions=S.current?.__options),Zp.useEffect(()=>P,[P]),Zp.useEffect(()=>{if(!o)return;function M(z){z.open?k.current=!1:(k.current=z.reason===Te.triggerHover,P(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return b.on("openchange",M),()=>{b.off("openchange",M)}},[o,b,y,P]),Zp.useEffect(()=>{if(!o)return;function M(D,N=!0){let j=Cd(_.current,"close",y.pointerType);j?y.openChangeTimeout.start(j,()=>{m.setOpen(!1,Ue(Te.triggerHover,D)),v?.events.emit("floating.closed",D)}):N&&(y.openChangeTimeout.clear(),m.setOpen(!1,Ue(Te.triggerHover,D)),v?.events.emit("floating.closed",D))}let z=l.current??(d?m.select("domReferenceElement"):null);if(!Xe(z))return;function V(D){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,i&&!Da(y.pointerType))return;let N=m8(x.current),j=Cd(_.current,"open",y.pointerType),X=wo(D),J=D.currentTarget??null,te=m.select("domReferenceElement"),ee=J;if(Xe(X)&&!m.context.triggerElements.hasElement(X)){for(let ae of m.context.triggerElements.elements())if(Fe(ae,X)){ee=ae;break}}Xe(J)&&Xe(te)&&!m.context.triggerElements.hasElement(J)&&Fe(J,te)&&(ee=te);let W=ee==null?!1:O(te,ee,X),K=m.select("open"),Y=R.current?.()??m.select("transitionStatus")==="ending",Z=!K&&Y&&k.current,oe=!W&&Xe(ee)&&Xe(te)&&Fe(te,ee)&&Z,ie=N>0&&!j,q=W&&(K||Z)||oe,re=!K||W;if(q){I()&&m.setOpen(!0,Ue(Te.triggerHover,D,ee));return}ie||(j?y.openChangeTimeout.start(j,()=>{re&&I()&&m.setOpen(!0,Ue(Te.triggerHover,D,ee))}):re&&I()&&m.setOpen(!0,Ue(Te.triggerHover,D,ee)))}function L(D){if(B()){A();return}P();let N=m.select("domReferenceElement"),j=qe(N);y.restTimeout.clear(),y.restTimeoutPending=!1;let X=g.current.floatingContext??f?.();if(Gp(D.relatedTarget,m.context.triggerElements))return;if(S.current&&X){m.select("open")||y.openChangeTimeout.clear();let te=l.current;y.handler=S.current({...X,tree:v,x:D.clientX,y:D.clientY,onClose(){A(),P(),w.current&&!B()&&te===m.select("domReferenceElement")&&M(D,!0)}}),j.addEventListener("mousemove",y.handler),y.handler(D);return}(y.pointerType!=="touch"||!Fe(m.select("floatingElement"),D.relatedTarget))&&M(D)}return a?li(et(z,"mousemove",V,{once:!0}),et(z,"mouseenter",V),et(z,"mouseleave",L)):li(et(z,"mouseenter",V),et(z,"mouseleave",L))},[P,A,g,_,m,o,S,y,d,O,B,i,a,x,l,v,w,f,R,I]),Zp.useMemo(()=>{if(!o)return;function M(z){y.pointerType=z.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(z){let{nativeEvent:V}=z,L=z.currentTarget,D=m.select("domReferenceElement"),N=m.select("open"),j=O(D,L,z.target);if(i&&!Da(y.pointerType))return;if(N&&j&&y.handleCloseOptions?.blockPointerEvents){let te=m.select("floatingElement");if(te){let ee=y.handleCloseOptions?.getScope?.()??L.ownerDocument.body;oO(y,{scopeElement:ee,referenceElement:L,floatingElement:te})}}let X=m8(x.current);if(N&&!j||X===0||!j&&y.restTimeoutPending&&z.movementX**2+z.movementY**2<2)return;y.restTimeout.clear();function J(){if(y.restTimeoutPending=!1,B())return;let te=m.select("open");!y.blockMouseMove&&(!te||j)&&I()&&m.setOpen(!0,Ue(Te.triggerHover,V,L))}y.pointerType==="touch"?rne.flushSync(()=>{J()}):j&&N?J():(y.restTimeoutPending=!0,y.restTimeout.start(X,J))}}},[o,y,B,O,i,m,x,I])}var Gn=c(ue(),1);var l6e="Escape";function nO(e,t,o){switch(e){case"vertical":return t;case"horizontal":return o;default:return t||o}}function rO(e,t){return nO(t,e===f8||e===NI,e===x0||e===w0)}function iH(e,t,o){return nO(t,e===NI,o?e===x0:e===w0)||e==="Enter"||e===" "||e===""}function c6e(e,t,o){return nO(t,o?e===x0:e===w0,e===NI)}function u6e(e,t,o,r){let n=o?e===w0:e===x0,i=e===f8;return t==="both"||t==="horizontal"&&r?e===l6e:nO(t,n,i)}function sH(e,t){let{listRef:o,activeIndex:r,onNavigate:n=()=>{},enabled:i=!0,selectedIndex:s=null,allowEscape:a=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:m=!0,disabledIndices:g=void 0,orientation:b="vertical",parentOrientation:v,id:y,resetOnPointerLeave:k=!0,externalTree:S,grid:_}=t,x=_!=null,w="rootStore"in e?e.rootStore:e,T=w.useState("open"),R=w.useState("floatingElement"),B=w.useState("domReferenceElement"),I=w.context.dataRef,O=jg(R),P=C0(B),A=$t(O),M=Kp(),z=Fa(S),V=Gn.useRef(p),L=Gn.useRef(s??-1),D=Gn.useRef(null),N=Gn.useRef(!0),j=pe(se=>{n(L.current===-1?null:L.current,se)}),X=Gn.useRef(!!R),J=Gn.useRef(T),te=Gn.useRef(!1),ee=Gn.useRef(!1),W=Gn.useRef(null),K=$t(g),Y=$t(T),Z=$t(s),oe=$t(k),ie=Ai(),q=Ai(),re=pe(()=>{function se(we){f?z?.events.emit("virtualfocus",we):W.current=$v(we,{sync:te.current,preventScroll:!0})}let ne=o.current[L.current],Ae=ee.current;ne&&se(ne),(te.current?we=>we():we=>ie.request(we))(()=>{let we=o.current[L.current]||ne;if(!we)return;ne||se(we),me&&(Ae||!N.current)&&we.scrollIntoView?.({block:"nearest",inline:"nearest"})})});le(()=>{I.current.orientation=b},[I,b]),le(()=>{i&&(T&&R?(L.current=s??-1,V.current&&s!=null&&(ee.current=!0,j())):X.current&&(L.current=-1,j()))},[i,T,R,s,j]),le(()=>{if(i){if(!T){te.current=!1;return}if(R)if(r==null){if(te.current=!1,Z.current!=null)return;if(X.current&&(L.current=-1,re()),(!J.current||!X.current)&&V.current&&(D.current!=null||V.current===!0&&D.current==null)){let se=0,ne=()=>{o.current[0]==null?(se<2&&(se?be=>q.request(be):queueMicrotask)(ne),se+=1):(L.current=D.current==null||iH(D.current,b,d)||u?UI(o):y8(o),D.current=null,j())};ne()}}else b8(o.current,r)||(L.current=r,re(),ee.current=!1)}},[i,T,R,r,Z,u,o,b,d,j,re,q]),le(()=>{if(!i||R||!z||f||!X.current)return;let se=z.nodesRef.current,ne=se.find(we=>we.id===M)?.context?.elements.floating,Ae=Mr(qe(B??ne??null)),be=se.some(we=>we.context&&Fe(we.context.elements.floating,Ae));ne&&!be&&N.current&&ne.focus({preventScroll:!0})},[i,R,B,z,M,f]),le(()=>{J.current=T,X.current=!!R}),le(()=>{T||(D.current=null,V.current=p)},[T,p]);let ae=r!=null,ye=pe(se=>{if(!Y.current)return;let ne=o.current.indexOf(se.currentTarget);ne!==-1&&(L.current!==ne||r!==ne)&&(L.current=ne,j(se))}),xe=pe(()=>v??z?.nodesRef.current.find(se=>se.id===M)?.context?.dataRef?.current.orientation),he=pe(()=>UI(o,K.current)),ge=pe(se=>{if(N.current=!1,te.current=!0,se.which===229||!Y.current&&se.currentTarget===A.current)return;if(u&&u6e(se.key,b,d,x)){rO(se.key,xe())||Ks(se),w.setOpen(!1,Ue(Te.listNavigation,se.nativeEvent)),Et(B)&&(f?z?.events.emit("virtualfocus",B):B.focus());return}let ne=L.current,Ae=UI(o,g),be=y8(o,g);if(P||(se.key==="Home"&&(Ks(se),L.current=Ae,j(se)),se.key==="End"&&(Ks(se),L.current=be,j(se))),_!=null){let we=_(se,L.current,o,b,l,d,g,Ae,be);if(we!=null&&(L.current=we,j(se)),b==="both")return}if(rO(se.key,b)){if(Ks(se),T&&!f&&Mr(se.currentTarget.ownerDocument)===se.currentTarget){L.current=iH(se.key,b,d)?Ae:be,j(se);return}iH(se.key,b,d)?l?ne>=be?a&&ne!==o.current.length?L.current=-1:(te.current=!1,L.current=Ae):L.current=Hg(o.current,{startingIndex:ne,disabledIndices:g}):L.current=Math.min(be,Hg(o.current,{startingIndex:ne,disabledIndices:g})):l?ne<=Ae?a&&ne!==-1?L.current=o.current.length:(te.current=!1,L.current=be):L.current=Hg(o.current,{startingIndex:ne,decrement:!0,disabledIndices:g}):L.current=Math.max(Ae,Hg(o.current,{startingIndex:ne,decrement:!0,disabledIndices:g})),b8(o.current,L.current)&&(L.current=-1),j(se)}}),me=Gn.useMemo(()=>({onFocus(ne){te.current=!0,ye(ne)},onClick:({currentTarget:ne})=>ne.focus({preventScroll:!0}),onMouseMove(ne){te.current=!0,ee.current=!1,h&&ye(ne)},onPointerLeave(ne){if(!Y.current||!N.current||ne.pointerType==="touch")return;te.current=!0;let Ae=ne.relatedTarget;if(!(!h||o.current.includes(Ae))&&oe.current&&(W.current?.(),W.current=null,L.current=-1,j(ne),!f)){let be=A.current,we=Mr(qe(be));be&&Fe(be,we)&&be.focus({preventScroll:!0})}}}),[ye,Y,A,h,o,j,oe,f]),ke=Gn.useMemo(()=>f&&T&&ae&&{"aria-activedescendant":`${y}-${r}`},[f,T,ae,y,r]),ve=Gn.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...P?{}:ke,onKeyDown(se){if(se.key==="Tab"&&se.shiftKey&&T&&!f){let ne=wo(se.nativeEvent);if(ne&&!Fe(A.current,ne))return;Ks(se),w.setOpen(!1,Ue(Te.focusOut,se.nativeEvent)),Et(B)&&B.focus();return}ge(se)},onPointerMove(){N.current=!0}}),[ke,ge,A,b,P,w,T,f,B]),Ee=Gn.useMemo(()=>{function se(be){w.setOpen(!0,Ue(Te.listNavigation,be.nativeEvent,be.currentTarget))}function ne(be){p==="auto"&&Gv(be.nativeEvent)&&(V.current=!f)}function Ae(be){V.current=p,p==="auto"&&LI(be.nativeEvent)&&(V.current=!0)}return{onKeyDown(be){let we=w.select("open");N.current=!1;let ot=be.key.startsWith("Arrow"),vt=c6e(be.key,xe(),d),at=rO(be.key,b),St=(u?vt:at)||be.key==="Enter"||be.key.trim()==="";if(f&&we)return ge(be);if(!(!we&&!m&&ot)){if(St){let rt=rO(be.key,xe());D.current=u&&rt?null:be.key}if(u){vt&&(Ks(be),we?(L.current=he(),j(be)):se(be));return}at&&(Z.current!=null&&(L.current=Z.current),Ks(be),!we&&m?se(be):ge(be),we&&j(be))}},onFocus(be){w.select("open")&&!f&&(L.current=-1,j(be))},onPointerDown:Ae,onPointerEnter:Ae,onMouseDown:ne,onClick:ne}},[ge,p,he,u,j,w,m,b,xe,d,Z,f]),Re=Gn.useMemo(()=>({...ke,...Ee}),[ke,Ee]);return Gn.useMemo(()=>i?{reference:Re,floating:ve,item:me,trigger:Ee}:{},[i,Re,ve,Ee,me])}var qg=c(ue(),1);function aH(e,t){let{listRef:o,elementsRef:r,activeIndex:n,onMatch:i,disabledIndices:s,onTyping:a,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f="rootStore"in e?e.rootStore:e,p=f.useState("open"),h=xo(),m=qg.useRef(""),g=qg.useRef(d??n??-1),b=qg.useRef(null),v=pe(S=>{function _(A){let M=r?.current[A];return!M||Ug(M)}function x(A){return _(A)?s==null||!v8(p0,A,s):!1}function w(A,M,z=0){if(A.length===0)return-1;let V=(z%A.length+A.length)%A.length,L=M.toLowerCase();for(let D=0;D<A.length;D+=1){let N=(V+D)%A.length;if(!(!A[N]?.toLowerCase().startsWith(L)||!x(N)))return N}return-1}let T=o.current;if(m.current.length>0&&S.key===" "&&(Ks(S),a?.(!0)),m.current.length>0&&m.current[0]!==" "&&w(T,m.current)===-1&&S.key!==" "&&a?.(!1),T==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;p&&S.key!==" "&&(Ks(S),a?.(!0));let R=m.current==="";R&&(g.current=d??n??-1),T.every((A,M)=>A&&x(M)?A[0]?.toLowerCase()!==A[1]?.toLowerCase():!0)&&m.current===S.key&&(m.current="",g.current=b.current),m.current+=S.key,h.start(u,()=>{m.current="",g.current=b.current,a?.(!1)});let O=((R?d??n??-1:g.current)??0)+1,P=w(T,m.current,O);P!==-1?(i?.(P),b.current=P):S.key!==" "&&(m.current="",a?.(!1))}),y=pe(S=>{let _=S.relatedTarget,x=f.select("domReferenceElement"),w=f.select("floatingElement");Fe(x,_)||Fe(w,_)||(h.clear(),m.current="",g.current=b.current,a?.(!1))});le(()=>{!p&&d!==null||(h.clear(),b.current=null,m.current!==""&&(m.current=""))},[p,d,h]),le(()=>{p&&m.current===""&&(g.current=d??n??-1)},[p,d,n]);let k=qg.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return qg.useMemo(()=>l?{reference:k,floating:k}:{},[l,k])}var nne=.1,d6e=nne*nne,fo=.5;function iO(e,t,o,r,n,i){return r>=t!=i>=t&&e<=(n-o)*(t-r)/(i-r)+o}function sO(e,t,o,r,n,i,s,a,l,u){let d=!1;return iO(e,t,o,r,n,i)&&(d=!d),iO(e,t,n,i,s,a)&&(d=!d),iO(e,t,s,a,l,u)&&(d=!d),iO(e,t,l,u,o,r)&&(d=!d),d}function f6e(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function aO(e,t,o,r,n,i){let s=Math.min(o,n),a=Math.max(o,n),l=Math.min(r,i),u=Math.max(r,i);return e>=s&&e<=a&&t>=l&&t<=u}function lH(e={}){let{blockPointerEvents:t=!1}=e,o=new si,r=({x:n,y:i,placement:s,elements:a,onClose:l,nodeId:u,tree:d})=>{let f=s?.split("-")[0],p=!1,h=null,m=null,g=typeof performance<"u"?performance.now():0;function b(y,k){let S=performance.now(),_=S-g;if(h===null||m===null||_===0)return h=y,m=k,g=S,!1;let x=y-h,w=k-m,T=x*x+w*w,R=_*_*d6e;return h=y,m=k,g=S,T<R}function v(){o.clear(),l()}return function(k){o.clear();let S=a.domReference,_=a.floating;if(!S||!_||f==null||n==null||i==null)return;let{clientX:x,clientY:w}=k,T=wo(k),R=k.type==="mouseleave",B=Fe(_,T),I=Fe(S,T);if(B&&(p=!0,!R))return;if(I&&(p=!1,!R)){p=!0;return}if(R&&Xe(k.relatedTarget)&&Fe(_,k.relatedTarget))return;function O(){return!!(d&&Va(d.nodesRef.current,u).length>0)}function P(){O()||v()}if(O())return;let A=S.getBoundingClientRect(),M=_.getBoundingClientRect(),z=n>M.right-M.width/2,V=i>M.bottom-M.height/2,L=M.width>A.width,D=M.height>A.height,N=(L?A:M).left,j=(L?A:M).right,X=(D?A:M).top,J=(D?A:M).bottom;if(f==="top"&&i>=A.bottom-1||f==="bottom"&&i<=A.top+1||f==="left"&&n>=A.right-1||f==="right"&&n<=A.left+1){P();return}let te=!1;switch(f){case"top":te=aO(x,w,N,A.top+1,j,M.bottom-1);break;case"bottom":te=aO(x,w,N,M.top+1,j,A.bottom-1);break;case"left":te=aO(x,w,M.right-1,J,A.left+1,X);break;case"right":te=aO(x,w,A.right-1,J,M.left+1,X);break;default:}if(te)return;if(p&&!f6e(x,w,A)){P();return}if(!R&&b(x,w)){P();return}let ee=!1;switch(f){case"top":{let W=L?fo/2:fo*4,K=L||z?n+W:n-W,Y=L?n-W:z?n+W:n-W,Z=i+fo+1,oe=z||L?M.bottom-fo:M.top,ie=z?L?M.bottom-fo:M.top:M.bottom-fo;ee=sO(x,w,K,Z,Y,Z,M.left,oe,M.right,ie);break}case"bottom":{let W=L?fo/2:fo*4,K=L||z?n+W:n-W,Y=L?n-W:z?n+W:n-W,Z=i-fo,oe=z||L?M.top+fo:M.bottom,ie=z?L?M.top+fo:M.bottom:M.top+fo;ee=sO(x,w,K,Z,Y,Z,M.left,oe,M.right,ie);break}case"left":{let W=D?fo/2:fo*4,K=D||V?i+W:i-W,Y=D?i-W:V?i+W:i-W,Z=n+fo+1,oe=V||D?M.right-fo:M.left,ie=V?D?M.right-fo:M.left:M.right-fo;ee=sO(x,w,oe,M.top,ie,M.bottom,Z,K,Z,Y);break}case"right":{let W=D?fo/2:fo*4,K=D||V?i+W:i-W,Y=D?i-W:V?i+W:i-W,Z=n-fo,oe=V||D?M.left+fo:M.right,ie=V?D?M.left+fo:M.right:M.left+fo;ee=sO(x,w,Z,K,Z,Y,oe,M.top,ie,M.bottom);break}default:}ee?p||o.start(40,P):P()}};return r.__options={...e,blockPointerEvents:t},r}var cH=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=eu.startingStyle]="startingStyle",e[e.endingStyle=eu.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),z0=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),p6e={[z0.popupOpen]:""},m6e={[z0.popupOpen]:"",[z0.pressed]:""},h6e={[cH.open]:""},g6e={[cH.closed]:""},b6e={[cH.anchorHidden]:""},lO={open(e){return e?p6e:null}},ine={open(e){return e?m6e:null}},za={open(e){return e?h6e:g6e},anchorHidden(e){return e?b6e:null}};var y6e="ArrowUp",v6e="ArrowDown",S6e="ArrowLeft",k6e="ArrowRight",_6e="Home",x6e="End";var w6e=new Set([S6e,k6e]);var C6e=new Set([y6e,v6e]);var E6e=new Set([...w6e,...C6e]),sne=new Set([...E6e,_6e,x6e]);function cO(e){return zv(19)?e:e?"true":void 0}var ane=c(ue(),1),lne=c(E(),1),cne=ane.forwardRef(function(t,o){let{cutout:r,...n}=t,i;if(r){let s=r.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,lne.jsx)("div",{ref:o,role:"presentation","data-base-ui-inert":"",...n,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var H0=c(ue(),1);var j0=c(ue(),1);function une(e){let t=j0.useRef(""),o=j0.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:j0.useCallback(n=>{if(n.detail===0){e(n,"keyboard");return}"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:o}}var dne=c(ue(),1);function uO(e,t){let o=dne.useRef(e),r=pe(t);le(()=>{o.current!==e&&r(o.current)},[e,r]),le(()=>{o.current=e},[e])}function T6e(e,t){let o=pe((i,s)=>{(typeof e=="function"?e():e)||t(s||(uo.os.ios?"touch":""))}),{onClick:r,onPointerDown:n}=une(o);return H0.useMemo(()=>({onClick:r,onPointerDown:n}),[r,n])}function fne(e){let[t,o]=H0.useState(null),r=T6e(e,o);return uO(e,n=>{n&&!e&&o(null)}),H0.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var pne=(e,t)=>Object.is(e,t);function iu(e,t,o){return e==null||t==null?Object.is(e,t):o(e,t)}function mne(e,t,o){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:iu(t,r,o))}function Zg(e,t,o){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:iu(r,t,o))}function hne(e,t,o){return e.filter(r=>!iu(t,r,o))}var gne=c(ue(),1);function dO(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var bne=c(E(),1);function yne(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function vne(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(yne(t)){for(let o of t)for(let r of o.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(let o of t)if(o&&o.value==null&&o.label!=null)return!0;return!1}function uH(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return dO(e)}function Rd(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?dO(e.value):dO(e)}function dH(e,t,o){function r(){return uH(e,o)}if(o&&e!=null)return o(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=yne(n)?n.flatMap(s=>s.items):n;if(e==null||typeof e!="object"){let s=i.find(a=>a.value===e);return s&&s.label!=null?s.label:r()}if("value"in e){let s=i.find(a=>a&&a.value===e.value);if(s&&s.label!=null)return s.label}}return r()}function Sne(e,t,o){return e.reduce((r,n,i)=>(i>0&&r.push(", "),r.push((0,bne.jsx)(gne.Fragment,{children:dH(n,t,o)},i)),r),[])}var fO=c(ue(),1);var fH=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});var Xg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},eS={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},kne={disabled:!1,...eS},di={valid(e){return e===null?null:e?{[fH.valid]:""}:{[fH.invalid]:""}}};var R6e={invalid:void 0,name:void 0,validityData:{state:Xg,errors:[],error:"",value:"",initialValue:null},setValidityData:Ht,disabled:void 0,touched:eS.touched,setTouched:Ht,dirty:eS.dirty,setDirty:Ht,filled:eS.filled,setFilled:Ht,focused:eS.focused,setFocused:Ht,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:kne,markedDirtyRef:{current:!1},registerFieldControl:Ht,validation:{getValidationProps:(e,t=Qt)=>t,inputRef:{current:null},registerInput:Ht,commit:async()=>{},change:Ht}},pH=fO.createContext(R6e);function en(e=!0){let t=fO.useContext(pH);if(t.setValidityData===Ht&&!e)throw new Error(Ot(28));return t}var _ne=c(ue(),1);function pO(e,t,o,r,n=!0,i){let{registerFieldControl:s}=en(),a=_ne.useRef(null);a.current||(a.current=Symbol()),le(()=>{let l=a.current;return!l||!n?void 0:(s(l,{controlRef:e,getValue:r,id:t,name:i,value:o}),()=>{s(l,void 0)})},[e,n,r,t,i,s,o])}var mO=c(ue(),1);var B6e=mO.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Ht,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function ja(){return mO.useContext(B6e)}var U0=c(ue(),1);var hO=c(ue(),1);var mH=hO.createContext({controlId:void 0,registerControlId:Ht,labelId:void 0,setLabelId:Ht,messageIds:[],setMessageIds:Ht,getDescriptionProps:e=>e});function wn(){return hO.useContext(mH)}function tS(e={}){let{id:t,implicit:o=!1,controlRef:r}=e,{controlId:n,registerControlId:i}=wn(),s=ni(t),a=o?n:void 0,l=co(()=>Symbol("labelable-control")),u=U0.useRef(!1),d=U0.useRef(t!=null),f=pe(()=>{!u.current||i===Ht||(u.current=!1,i(l.current,void 0))});return le(()=>{if(i===Ht)return;let p;if(o){let h=r?.current;Xe(h)&&h.closest("label")!=null?p=t??null:p=a??s}else if(t!=null)d.current=!0,p=t;else if(d.current)p=s;else{f();return}if(p===void 0){f();return}u.current=!0,i(l.current,p)},[t,r,a,i,o,s,l,f]),U0.useEffect(()=>f,[f]),n??s}function xne(e,t,o=(r,n)=>r===n){return e.length===t.length&&e.every((r,n)=>o(r,t[n]))}function wne(e){let t=e.getBoundingClientRect(),o=Ct(e);if(uo.env.jsdom)return t;let r=o.getComputedStyle(e,"::before"),n=o.getComputedStyle(e,"::after");if(!(r.content!=="none"||n.content!=="none"))return t;let s=parseFloat(r.width)||0,a=parseFloat(r.height)||0,l=parseFloat(n.width)||0,u=parseFloat(n.height)||0,d=Math.max(t.width,s,l),f=Math.max(t.height,a,u),p=d-t.width,h=f-t.height;return{left:t.left-p/2,right:t.right+p/2,top:t.top-h/2,bottom:t.bottom+h/2}}function Cne(e){return e==null?void 0:`${e}-label`}function Ene(e,t){return e??t}var Ys=c(ue(),1);var P6e=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:f="real"}=Ql(e,t)||{};if(u==null)return{};let p=HI(d),h={x:o,y:r},m=P0(n),g=B0(m),b=await s.getDimensions(u),v=m==="y",y=v?"top":"left",k=v?"bottom":"right",S=v?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[m]-h[m]-i.floating[g],x=h[m]-i.reference[m],w=f==="real"?await s.getOffsetParent?.(u):a.floating,T=a.floating[S]||i.floating[g];(!T||!await s.isElement?.(w))&&(T=a.floating[S]||i.floating[g]);let R=_/2-x/2,B=T/2-b[g]/2-1,I=Math.min(p[y],B),O=Math.min(p[k],B),P=I,A=T-b[g]-O,M=T/2-b[g]/2+R,z=R0(P,M,A),V=!l.arrow&&Jl(n)!=null&&M!==z&&i.reference[g]/2-(M<P?I:O)-b[g]/2<0,L=V?M<P?M-P:M-A:0;return{[m]:h[m]+L,data:{[m]:z,centerOffset:M-z-L,...V&&{alignmentOffset:L}},reset:V}}}),Tne=(e,t)=>({...P6e(e),options:[e,t]});var I6e=G8().fn,Rne={name:"hide",async fn(e){let{width:t,height:o,x:r,y:n}=e.rects.reference,i=t===0&&o===0&&r===0&&n===0;return{data:{referenceHidden:(await I6e(e)).data?.referenceHidden||i}}}};var G0={sideX:"left",sideY:"top"},Bne={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:i,strategy:s,placement:a}=e,l=Ct(n),u=l.getComputedStyle(n);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:o,data:G0};let f=await i.getOffsetParent?.(n),p={width:0,height:0};if(s==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(f===l){let y=qe(n);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let h=Un(a),m=t,g=o;h==="left"&&(m=p.width-(t+r.width)),h==="top"&&(g=p.height-(o+r.height));let b=h==="left"?"right":G0.sideX,v=h==="top"?"bottom":G0.sideY;return{x:m,y:g,data:{sideX:b,sideY:v}}}};function One(e,t,o){let r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?o?"inline-start":"inline-end":"right",bottom:"bottom",left:r?o?"inline-end":"inline-start":"left"}[t]}function Pne(e,t,o){let{rects:r,placement:n}=e;return{side:One(t,Un(n),o),align:Jl(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function gO(e){let{anchor:t,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:h=!1,floatingRootContext:m,mounted:g,collisionAvoidance:b,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:k,lazyFlip:S=!1,externalTree:_}=e,[x,w]=Ys.useState(null);!g&&x!==null&&w(null);let T=b.side||"flip",R=b.align||"flip",B=b.fallbackAxisSide||"end",I=typeof t=="function"?t:void 0,O=pe(I),P=I?O:t,A=$t(t),M=$t(g),V=zp()==="rtl",L=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":V?"left":"right","inline-start":V?"right":"left"}[r],D=i==="center"?L:`${L}-${i}`,N=l,j=1,X=r==="bottom"?j:0,J=r==="top"?j:0,te=r==="right"?j:0,ee=r==="left"?j:0;typeof N=="number"?N={top:N+X,right:N+ee,bottom:N+J,left:N+te}:N&&(N={top:(N.top||0)+X,right:(N.right||0)+ee,bottom:(N.bottom||0)+J,left:(N.left||0)+te});let W={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:N},K=Ys.useRef(null),Y=$t(n),Z=$t(s),oe=typeof n!="function"?n:0,ie=typeof s!="function"?s:0,q=[];p&&q.push(p),q.push(F8(_e=>{let He=Pne(_e,r,V),$e=typeof Y.current=="function"?Y.current(He):Y.current,Ke=typeof Z.current=="function"?Z.current(He):Z.current;return{mainAxis:$e,crossAxis:Ke,alignmentAxis:Ke}},[oe,ie,V,r]));let re=R==="none"&&T!=="shift",ae=!re&&(u||v||T==="shift"),ye=T==="none"?null:H8({...W,padding:{top:N.top+j,right:N.right+j,bottom:N.bottom+j,left:N.left+j},mainAxis:!v&&T==="flip",crossAxis:R==="flip"?"alignment":!1,fallbackAxisSideDirection:B}),xe=re?null:z8(_e=>{let He=qe(_e.elements.floating).documentElement;return{...W,rootBoundary:v?{x:0,y:0,width:He.clientWidth,height:He.clientHeight}:void 0,mainAxis:R!=="none",crossAxis:ae,limiter:u||v?void 0:j8($e=>{if(!K.current)return{};let{width:Ke,height:ct}=K.current.getBoundingClientRect(),pt=us(Un($e.placement)),ut=pt==="y"?Ke:ct,hr=pt==="y"?N.left+N.right:N.top+N.bottom;return{offset:ut/2+hr/2}})}},[W,u,v,N,R]);T==="shift"||R==="shift"||i==="center"?q.push(xe,ye):q.push(ye,xe),q.push(U8({...W,apply({elements:{floating:_e},availableWidth:He,availableHeight:$e,rects:Ke}){if(!M.current)return;let ct=_e.style;ct.setProperty("--available-width",`${He}px`),ct.setProperty("--available-height",`${$e}px`);let pt=Ct(_e).devicePixelRatio||1,{x:ut,y:hr,width:Oo,height:tr}=Ke.reference,go=(Math.round((ut+Oo)*pt)-Math.round(ut*pt))/pt,Uo=(Math.round((hr+tr)*pt)-Math.round(hr*pt))/pt;ct.setProperty("--anchor-width",`${go}px`),ct.setProperty("--anchor-height",`${Uo}px`)}}),Tne(_e=>({element:K.current||qe(_e.elements.floating).createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(_e){let{elements:He,middlewareData:$e,placement:Ke,rects:ct,y:pt}=_e,ut=Un(Ke),hr=us(ut),Oo=K.current,tr=$e.arrow?.x||0,go=$e.arrow?.y||0,Uo=Oo?.clientWidth||0,Mn=Oo?.clientHeight||0,gr=tr+Uo/2,an=go+Mn/2,it=Math.abs($e.shift?.y||0),wt=ct.reference.height/2,Ft=typeof n=="function"?n(Pne(_e,r,V)):n,ko=it>Ft,Go={top:`${gr}px calc(100% + ${Ft}px)`,bottom:`${gr}px ${-Ft}px`,left:`calc(100% + ${Ft}px) ${an}px`,right:`${-Ft}px ${an}px`}[ut],or=`${gr}px ${ct.reference.y+wt-pt}px`;return He.floating.style.setProperty("--transform-origin",ae&&hr==="y"&&ko?or:Go),{}}},Rne,k),le(()=>{!g&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,m]);let he=Ys.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:ge,elements:me,x:ke,y:ve,middlewareData:Ee,update:Re,placement:se,context:ne,isPositioned:Ae,floatingStyles:be}=Q8({rootContext:m,open:h?g:void 0,placement:D,middleware:q,strategy:o,whileElementsMounted:h?void 0:(..._e)=>D0(..._e,he),nodeId:y,externalTree:_}),{sideX:we,sideY:ot}=Ee.adaptiveOrigin||G0,vt=Ae?o:"fixed",at=Ys.useMemo(()=>{let _e=k?{position:vt,[we]:ke,[ot]:ve}:{position:vt,...be};return Ae||(_e.opacity=0),_e},[k,vt,we,ke,ot,ve,be,Ae]),St=Ys.useRef(null);le(()=>{if(!g)return;let _e=A.current,He=typeof _e=="function"?_e():_e,Ke=(Ine(He)?He.current:He)||null||null;Ke!==St.current&&(ge.setPositionReference(Ke),St.current=Ke)},[g,ge,P,A]),Ys.useEffect(()=>{if(!g)return;let _e=A.current;typeof _e!="function"&&Ine(_e)&&_e.current!==St.current&&(ge.setPositionReference(_e.current),St.current=_e.current)},[g,ge,P,A]),Ys.useEffect(()=>{if(h&&g&&me.reference&&me.floating)return D0(me.reference,me.floating,Re,he)},[h,g,me,Re,he]);let rt=Un(se),Vt=One(r,rt,V),lt=Jl(se)||"center",no=!!Ee.hide?.referenceHidden;le(()=>{S&&g&&Ae&&w(rt)},[S,g,Ae,rt]);let ho=Ys.useMemo(()=>({position:"absolute",top:Ee.arrow?.y,left:Ee.arrow?.x}),[Ee.arrow]),je=Ee.arrow?.centerOffset!==0;return Ys.useMemo(()=>({positionerStyles:at,arrowStyles:ho,arrowRef:K,arrowUncentered:je,side:Vt,align:lt,physicalSide:rt,anchorHidden:no,refs:ge,context:ne,isPositioned:Ae,update:Re}),[at,ho,K,je,Vt,lt,rt,no,ge,ne,Ae,Re])}function Ine(e){return e!=null&&"current"in e}function oS(e){return e==="starting"?Voe:Qt}function bO(e,t,{styles:o,transitionStatus:r,props:n,refs:i,hidden:s,inert:a=!1}){let l={...o};return a&&(l.pointerEvents="none"),We("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:l},oS(r),n],stateAttributesMapping:za})}var Ane=c(ue(),1);var O6e=20;function Lne(e,t,o,r){let[n,i]=Ane.useState(!1);le(()=>{if(!e||!t||o==null){i(!1);return}let s=qe(o).documentElement.clientWidth,a=o.offsetWidth;i(s>0&&a>0&&a>=s-O6e)},[e,t,o]),loe(e&&(!t||n),r)}var Nne=c(ue(),1);var Mne=Nne.forwardRef(function(t,o){let{className:r,render:n,orientation:i="horizontal",style:s,...a}=t;return We("div",t,{state:{orientation:i},ref:o,props:[{role:"separator","aria-orientation":i},a]})});var yO=c(ue(),1),hH=yO.createContext({disabled:!1});function vO(){return yO.useContext(hH)}var SO=c(ue(),1),A6e=SO.createContext(void 0);function Dne(e=!0){let t=SO.useContext(A6e);if(t===void 0&&!e)throw new Error(Ot(3));return t}var Xp={};Ir(Xp,{Panel:()=>Une,Root:()=>Fne,Trigger:()=>jne});var W0=c(ue(),1);var kO={...Ute,...xn};var Vne=c(E(),1),Fne=W0.forwardRef(function(t,o){let{render:r,className:n,defaultOpen:i=!1,disabled:s=!1,onOpenChange:a,open:l,style:u,...d}=t,f=pe(a),p=Fte({open:l,defaultOpen:i,onOpenChange:f,disabled:s}),h=W0.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),m=W0.useMemo(()=>({...p,onOpenChange:f,state:h}),[p,f,h]),g=We("div",t,{state:h,ref:o,props:d,stateAttributesMapping:kO});return(0,Vne.jsx)(Jj.Provider,{value:m,children:g})});var zne=c(ue(),1);var L6e={...Hte,...xn},jne=zne.forwardRef(function(t,o){let{panelId:r,open:n,handleTrigger:i,state:s,disabled:a}=EI(),{className:l,disabled:u=a,render:d,nativeButton:f=!0,style:p,...h}=t,{getButtonProps:m,buttonRef:g}=Dg({disabled:u,focusableWhenDisabled:!0,native:f});return We("button",t,{state:s,ref:[o,g],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},h,m],stateAttributesMapping:L6e})});var Hne=c(ue(),1);var gH=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});var Une=Hne.forwardRef(function(t,o){let{className:r,hiddenUntilFound:n,keepMounted:i,render:s,id:a,style:l,...u}=t,{mounted:d,onOpenChange:f,open:p,panelId:h,setMounted:m,setPanelIdState:g,setOpen:b,state:v,transitionStatus:y}=EI(),k=n??!1,S=i??!1;le(()=>{if(a)return g(a),()=>{g(void 0)}},[a,g]);let{height:_,props:x,ref:w,shouldPreventOpenAnimation:T,shouldRender:R,transitionStatus:B,width:I}=Jte({externalRef:o,hiddenUntilFound:k,id:h,keepMounted:S,mounted:d,onOpenChange:f,open:p,setMounted:m,setOpen:b,transitionStatus:y}),O={...v,transitionStatus:B},P=vI(l,O),A=We("div",{...t,style:void 0},{state:O,ref:w,props:[x,{style:{[gH.collapsiblePanelHeight]:_===void 0?"auto":`${_}px`,[gH.collapsiblePanelWidth]:I===void 0?"auto":`${I}px`}},u,P?{style:P}:void 0,T?{style:{animationName:"none"}}:void 0],stateAttributesMapping:kO});return R?A:null});function Gne(e,t){let o=ni(e);return le(()=>(t(o),()=>{t(void 0)}),[o,t]),o}function _O(e={}){let{id:t,fallbackControlId:o,native:r=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:a}=wn(),l=pe(h=>{a(h),n?.(h)}),u=Gne(t,l),d=s??o;function f(h){if(i){i(h,d);return}if(!d)return;let m=qe(h.currentTarget).getElementById(d);Et(m)&&N6e(m)}function p(h){wo(h.nativeEvent)?.closest("button,input,select,textarea")||(!h.defaultPrevented&&h.detail>1&&h.preventDefault(),!r&&f(h))}return r?{id:u,htmlFor:d??void 0,onMouseDown:p}:{id:u,onClick:p,onPointerDown(h){h.preventDefault()}}}function N6e(e){e.focus({focusVisible:!0})}var xO=c(ue(),1),M6e=xO.createContext(void 0);function Wne(e){let t=xO.useContext(M6e);if(t===void 0&&!e)throw new Error(Ot(69));return t}var fi=c(ue(),1),Zne=c(xd(),1);var $ne=c(ue(),1);function wO(e){let[t,o]=$ne.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var rS=c(ue(),1);function bH(e){let t=Qr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Et(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r;return($p(o)!==i||$p(r)!==s)&&(o=i,r=s),{width:o,height:r}}function Yne(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:l}=e,u=Up(t,!0,!1),d=Ai(),f=rS.useRef(null),p=rS.useRef(!0),h=rS.useRef(Ht),m=pe(i),g=pe(s),b=rS.useMemo(()=>{let v=a==="top",y=a==="left";return l==="rtl"?(v=v||a==="inline-end",y=y||a==="inline-end"):(v=v||a==="inline-start",y=y||a==="inline-start"),v?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[y?"right":"left"]:"0"}:Qt},[a,l]);le(()=>{if(!n){h.current=Ht,p.current=!0,f.current=null;return}if(!t||!o)return;h.current=Kne(t,b),yH(t,"auto");let v=EO(t,"position","static"),y=EO(t,"transform","none"),k=EO(t,"scale","1"),S=Kne(o,{"--available-width":"max-content","--available-height":"max-content"});function _(){v(),y(),S()}function x(){_(),k()}if(m?.(),p.current||f.current===null){CO(o,"max-content");let B=bH(t);return f.current=B,CO(o,B),x(),g?.(null,B),p.current=!1,()=>{h.current(),h.current=Ht}}CO(o,"max-content");let w=f.current,T=bH(t);f.current=T,yH(t,w),x(),g?.(w,T),CO(o,T);let R=new AbortController;return d.request(()=>{yH(t,T),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},R.signal)}),()=>{R.abort(),d.cancel(),h.current(),h.current=Ht}},[r,t,o,u,d,n,m,g,b])}function EO(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function Kne(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(EO(e,r,n));return o.length?()=>{o.forEach(r=>r())}:Ht}function yH(e,t){let o=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",r)}function CO(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",r)}var nS=c(E(),1);function Xne(e){let{store:t,side:o,cssVars:r,children:n}=e,i=zp(),s=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),l=t.useState("open"),u=t.useState("payload"),d=t.useState("mounted"),f=t.useState("popupElement"),p=t.useState("positionerElement"),h=wO(l?s:null),m=F6e(a,u),g=fi.useRef(null),[b,v]=fi.useState(null),[y,k]=fi.useState(null),S=fi.useRef(null),_=fi.useRef(null),x=Up(S,!0,!1),w=Ai(),[T,R]=fi.useState(null),[B,I]=fi.useState(!1);le(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let O=pe(()=>{S.current?.style.setProperty("animation","none"),S.current?.style.setProperty("transition","none"),_.current?.style.setProperty("display","none")}),P=pe(L=>{S.current?.style.removeProperty("animation"),S.current?.style.removeProperty("transition"),_.current?.style.removeProperty("display"),L&&R(L)}),A=fi.useRef(null);le(()=>{(!l||!d)&&(A.current=null)},[l,d]),le(()=>{if(s&&h&&s!==h&&A.current!==s&&g.current){v(g.current),I(!0);let L=V6e(h,s);k(L),w.request(()=>{Zne.flushSync(()=>{I(!1)}),x(()=>{v(null),R(null),g.current=null})}),A.current=s}},[s,h,b,x,w]),le(()=>{let L=S.current;if(!L)return;let D=qe(L).createElement("div");for(let N of Array.from(L.childNodes))D.appendChild(N.cloneNode(!0));g.current=D});let M=b!=null,z;M?z=(0,nS.jsxs)(fi.Fragment,{children:[(0,nS.jsx)("div",{"data-previous":!0,inert:cO(!0),ref:_,style:{...T?{[r.popupWidth]:`${T.width}px`,[r.popupHeight]:`${T.height}px`}:null,position:"absolute"},"data-ending-style":B?void 0:""},"previous"),(0,nS.jsx)("div",{"data-current":!0,ref:S,"data-starting-style":B?"":void 0,children:n},m)]}):z=(0,nS.jsx)("div",{"data-current":!0,ref:S,children:n},m),le(()=>{let L=_.current;!L||!b||L.replaceChildren(...Array.from(b.childNodes))},[b]),Yne({popupElement:f,positionerElement:p,mounted:d,content:u,onMeasureLayout:O,onMeasureLayoutComplete:P,side:o,direction:i});let V={activationDirection:D6e(y),transitioning:M};return{children:z,state:V}}function D6e(e){if(e)return`${qne(e.horizontal,5,"right","left")} ${qne(e.vertical,5,"down","up")}`}function qne(e,t,o,r){return e>t?o:e<-t?r:""}function V6e(e,t){let o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n={x:o.left+o.width/2,y:o.top+o.height/2},i={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:i.x-n.x,vertical:i.y-n.y}}function F6e(e,t){let[o,r]=fi.useState(0),n=fi.useRef(e),i=fi.useRef(t),s=fi.useRef(!1);return le(()=>{let a=n.current,l=i.current,u=e!==a,d=t!==l;u?(r(f=>f+1),s.current=!d):s.current&&d&&(r(f=>f+1),s.current=!1),n.current=e,i.current=t},[e,t]),`${e??"current"}-${o}`}function Qne(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var TO=c(ue(),1),z6e=TO.createContext(void 0),j6e={disableStyleElements:!1};function Jne(){return TO.useContext(z6e)??j6e}function Qg(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}var ps={};Ir(ps,{Control:()=>uie,Description:()=>cie,Error:()=>aie,Item:()=>pie,Label:()=>sie,Root:()=>iie,Validity:()=>fie});var Dr=c(ue(),1);var RO=c(ue(),1),H6e=RO.createContext(void 0);function eie(e=!1){let t=RO.useContext(H6e);if(!t&&!e)throw new Error(Ot(86));return t}var Qp=c(ue(),1);var tie=c(E(),1),BO=function(t){let o=ni(),r=t.controlId===void 0?o:t.controlId,[n,i]=Qp.useState(r),[s,a]=Qp.useState(t.labelId),[l,u]=Qp.useState([]),d=co(()=>new Map),{messageIds:f}=wn(),p=pe((g,b)=>{let v=d.current;if(b===void 0){v.delete(g);return}v.set(g,b),i(y=>{if(v.size===0)return;let k;for(let S of v.values()){if(y!==void 0&&S===y)return y;k===void 0&&(k=S)}return k})}),h=Qp.useCallback(g=>{let b=g["aria-describedby"]?g["aria-describedby"].split(" "):[];return b.push(...f,...l),{...g,"aria-describedby":Array.from(new Set(b)).join(" ")||void 0}},[f,l]),m=Qp.useMemo(()=>({controlId:n,registerControlId:p,labelId:s,setLabelId:a,messageIds:l,setMessageIds:u,getDescriptionProps:h}),[n,p,s,a,l,u,h]);return(0,tie.jsx)(mH.Provider,{value:m,children:t.children})};var Jp=c(ue(),1);function Jg(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var PO=Object.keys(Xg);function U6e(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let o of PO)o!=="valid"&&(o==="valueMissing"?t=e[o]:e[o]&&(t=!1));return t}function G6e(e){let t=null;for(let o of e)if(!o.disabled){if(!o.validity.valid)return o;t??=o}return t}function oie(e,t){let o=!1;for(let r of t)r.setCustomValidity(""),o||=r===e;o||e.setCustomValidity("")}function rie(e){let{formRef:t}=ja(),{setValidityData:o,validate:r,validityData:n,validationDebounceTime:i,invalid:s,markedDirtyRef:a,state:l,shouldValidateOnChange:u,getRegisteredFieldId:d}=e,{controlId:f,getDescriptionProps:p}=wn(),h=xo(),m=Jp.useRef(null),g=co(()=>new Set).current,b=Jp.useRef(0),v=Jp.useCallback(_=>{if(_)return g.add(_),()=>{g.delete(_)}},[g]),y=pe(async(_,x=!1)=>{let w=G6e(g)??m.current;if(!w)return;b.current+=1;let T=b.current;function R(V,L=s){let D=d()??f;if(D==null)return;let N=t.current.fields.get(D);if(!N)return;let j=Jg(V,L);t.current.fields.set(D,{...N,validityData:j})}if(x){if(l.valid!==!1)return;let V=w.validity;if(!V.valueMissing){let D={value:_,state:{...Xg,valid:!0},error:"",errors:[],initialValue:n.initialValue};oie(w,g),R(D,!1),o(D);return}let L=PO.reduce((D,N)=>(D[N]=V[N],D),{});if(!L.valid&&!U6e(L))return}function B(V){let L=PO.reduce((N,j)=>(N[j]=V.validity[j],N),{}),D=!1;for(let N of PO)if(N!=="valid"){if(N==="valueMissing"&&L[N])D=!0;else if(L[N])return L}return D&&!a.current&&(L.valid=!0,L.valueMissing=!1),L}h.clear();let I=null,O=[],P=B(w),A,M=u();if(w.validationMessage&&!M)A=w.validationMessage,O=[w.validationMessage];else{let V=Array.from(t.current.fields.values()).reduce((D,N)=>(N.name&&(D[N.name]=N.getValue()),D),{}),L=r(_,V);if(typeof L=="object"&&L!==null&&"then"in L){if(I=await L,T!==b.current)return}else I=L;I!==null?(P.valid=!1,P.customError=!0,Array.isArray(I)?(O=I,w.setCustomValidity(I.join(`
`))):I&&(O=[I],w.setCustomValidity(I))):M&&(oie(w,g),P.customError=!1,w.validationMessage?(A=w.validationMessage,O=[w.validationMessage]):w.validity.valid&&!P.valid&&(P.valid=!0))}let z={value:_,state:P,error:A??(Array.isArray(I)?I[0]:I??""),errors:O,initialValue:n.initialValue};R(z),o(z)}),k=pe(_=>{h.clear();let x=u();x&&_!==""&&i?(b.current+=1,h.start(i,()=>{y(_)})):y(_,!x)}),S=Jp.useCallback((_,x={})=>Ut(p(x),l.valid===!1&&!l.disabled&&!_?{"aria-invalid":!0}:Qt),[p,l.disabled,l.valid]);return Jp.useMemo(()=>({getValidationProps:S,inputRef:m,registerInput:v,commit:y,change:k}),[S,v,y,k])}var IO=c(ue(),1);function nie(e){let{commit:t,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:i,setRegisteredFieldId:s,setValidityData:a,validityData:l}=e,{formRef:u}=ja(),d=IO.useRef(null),f=IO.useRef(null),p=IO.useRef(null),h=pe(()=>{let S=f.current;if(S)return S.getValue?S.getValue():S.value});function m(S){return S.value===void 0?h():S.value}let g=pe(()=>{let S=f.current;if(r.current=!0,!S){t(l.value);return}t(m(S))});function b(){let S=f.current;!S||!S.id||u.current.fields.set(S.id,{getValue:h,name:n??S.name,controlRef:S.controlRef??p,validityData:Jg(l,o),validate:g})}function v(S=f.current?.id){S&&u.current.fields.delete(S)}function y(){let S=f.current;if(!S)return;let _=m(S);l.initialValue===null&&_!==null&&a(x=>({...x,initialValue:_}))}le(()=>{let S=f.current;!S||!S.id||(i(n?void 0:S.name),u.current.fields.set(S.id,{getValue:h,name:n??S.name,controlRef:S.controlRef??p,validityData:Jg(l,o),validate:g}))},[u,h,o,n,i,g,l]),le(()=>{let S=u.current.fields;return()=>{let _=f.current?.id;_&&S.delete(_)}},[u]);let k=pe((S,_)=>{if(!_){d.current===S&&(d.current=null,v(),f.current=null,i(void 0),s(void 0));return}let x=f.current?.id;d.current=S,f.current=_,n||i(_.name),s(_.id),x&&x!==_.id&&v(x),y(),b()});return[g,k]}var OO=c(E(),1),W6e=Dr.forwardRef(function(t,o){let{errors:r,validationMode:n,submitAttemptedRef:i}=ja(),{render:s,className:a,validate:l,validationDebounceTime:u=0,validationMode:d=n,name:f,disabled:p=!1,invalid:h,dirty:m,touched:g,actionsRef:b,style:v,...y}=t,k=eie(!0)?.disabled,S=pe(l||(()=>null)),_=k||p,[x,w]=Dr.useState(!1),[T,R]=Dr.useState(!1),[B,I]=Dr.useState(!1),[O,P]=Dr.useState(!1),A=m??T,M=g??x,z=Dr.useRef(A),V=Dr.useRef(void 0),[L,D]=Dr.useState(),N=f??L;le(()=>{m!==void 0&&(z.current=m)},[m]);let j=Dr.useCallback(()=>V.current,[]),X=Dr.useCallback(ge=>{V.current=ge},[]),J=pe(ge=>{m===void 0&&(ge&&(z.current=!0),R(ge))}),te=pe(ge=>{g===void 0&&w(ge)}),ee=pe(()=>d==="onChange"||d==="onSubmit"&&i.current),W=N&&Object.hasOwn(r,N)?r[N]:null,K=!!(Array.isArray(W)?W.length:W),Y=h===!0||K,[Z,oe]=Dr.useState({state:Xg,error:"",errors:[],value:null,initialValue:null}),ie=_?null:!Y&&Z.state.valid,q=Dr.useMemo(()=>({disabled:_,touched:M,dirty:A,valid:ie,filled:B,focused:O}),[_,M,A,ie,B,O]),re=rie({setValidityData:oe,validate:S,validityData:Z,validationDebounceTime:u,invalid:Y,markedDirtyRef:z,state:q,shouldValidateOnChange:ee,getRegisteredFieldId:j}),[ae,ye]=nie({commit:re.commit,invalid:Y,markedDirtyRef:z,name:f,setRegisteredFieldName:D,setRegisteredFieldId:X,setValidityData:oe,validityData:Z});Dr.useImperativeHandle(b,()=>({validate:ae}),[ae]);let xe=Dr.useMemo(()=>({invalid:Y,name:N,validityData:Z,setValidityData:oe,disabled:_,touched:M,setTouched:te,dirty:A,setDirty:J,filled:B,setFilled:I,focused:O,setFocused:P,validate:S,validationMode:d,validationDebounceTime:u,shouldValidateOnChange:ee,state:q,markedDirtyRef:z,registerFieldControl:ye,validation:re}),[Y,N,Z,_,M,te,A,J,B,I,O,P,S,d,u,ee,q,ye,re]),he=We("div",t,{ref:o,state:q,props:y,stateAttributesMapping:di});return(0,OO.jsx)(pH.Provider,{value:xe,children:he})}),iie=Dr.forwardRef(function(t,o){return(0,OO.jsx)(BO,{children:(0,OO.jsx)(W6e,{...t,ref:o})})});var $0=c(ue(),1);var sie=$0.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,nativeLabel:a=!0,...l}=t,u=en(!1),d=vO(),{labelId:f}=wn(),p={...u.state,disabled:u.disabled||d.disabled},h=$0.useRef(null),m=_O({id:f??s,native:a});return We("label",t,{ref:[o,h],state:p,props:[m,l],stateAttributesMapping:di})});var eb=c(ue(),1);var vH=c(E(),1),$6e={...di,...xn},aie=eb.forwardRef(function(t,o){let{render:r,id:n,className:i,match:s,style:a,...l}=t,u=ni(n),{validityData:d,state:f,name:p}=en(!1),{setMessageIds:h}=wn(),{errors:m}=ja(),g=p&&Object.hasOwn(m,p)?m[p]:null,b=!!(Array.isArray(g)?g.length:g),v=typeof s=="string",y=!1;s===!0?y=!0:f.disabled?y=!1:v?y=!!d.state[s]:y=b||d.state.valid===!1;let{mounted:k,transitionStatus:S,setMounted:_}=cs(y);le(()=>{if(!(!y||!u))return h(z=>z.concat(u)),()=>{h(z=>z.filter(V=>V!==u))}},[y,u,h]);let x=eb.useRef(null),[w,T]=eb.useState(null),[R,B]=eb.useState(null),I=d.error;!v&&b?I=g:d.errors.length>1&&(I=d.errors);let O=I??"";Array.isArray(I)&&(O=I.length>1?(0,vH.jsx)("ul",{children:I.map(z=>(0,vH.jsx)("li",{children:z},z))}):I[0]??"");let P=Array.isArray(I)?JSON.stringify(I):I;y&&P!==R&&(B(P),T(O)),ii({open:y,ref:x,onComplete(){y||_(!1)}});let A={...f,transitionStatus:S},M=We("div",t,{ref:[o,x],state:A,props:[{id:u,children:y?O:w},l],stateAttributesMapping:$6e,enabled:k});return k?M:null});var lie=c(ue(),1);var cie=lie.forwardRef(function(t,o){let{render:r,id:n,className:i,style:s,...a}=t,l=ni(n),u=en(!1),d=vO(),{setMessageIds:f}=wn(),p={...u.state,disabled:u.disabled||d.disabled};return le(()=>{if(l)return f(m=>m.concat(l)),()=>{f(m=>m.filter(g=>g!==l))}},[l,f]),We("p",t,{ref:o,state:p,props:[{id:l},a],stateAttributesMapping:di})});var AO=c(ue(),1);var uie=AO.forwardRef(function(t,o){let{render:r,className:n,id:i,name:s,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:f=!1,style:p,...h}=t,{state:m,name:g,disabled:b,setTouched:v,setDirty:y,validityData:k,setFocused:S,setFilled:_,validationMode:x,validation:w}=en(),{clearErrors:T}=ja(),R=b||l,B=g??s,I={...m,disabled:R},{labelId:O}=wn(),P=tS({id:i});le(()=>{let N=a!=null;w.inputRef.current?.value||N&&a!==""?_(!0):N&&a===""&&_(!1)},[w.inputRef,_,a]);let A=AO.useRef(null);le(()=>{f&&A.current===Mr(qe(A.current))&&S(!0)},[f,S]);let[M]=Ag({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,V=z?M:void 0,L=pe(()=>w.inputRef.current?.value);return pO(w.inputRef,P,V,L,!R,s),We("input",t,{ref:[o,A],state:I,props:[{id:P,disabled:R,name:B,ref:w.inputRef,"aria-labelledby":O,autoFocus:f,...z?{value:V}:{defaultValue:d},onChange(N){let j=N.currentTarget.value;u?.(j,Ue(Te.none,N.nativeEvent)),y(j!==k.initialValue),_(j!==""),N.nativeEvent.defaultPrevented||(T(B),w.change(j))},onFocus(){S(!0)},onBlur(N){v(!0),S(!1),x==="onBlur"&&w.commit(N.currentTarget.value)},onKeyDown(N){N.currentTarget.tagName==="INPUT"&&N.key==="Enter"&&(v(!0),w.commit(N.currentTarget.value))}},h,N=>w.getValidationProps(R,N)],stateAttributesMapping:di})});var K0=c(ue(),1);var die=c(E(),1),fie=function(t){let{children:o}=t,{validityData:r,invalid:n}=en(!1),i=K0.useMemo(()=>Jg(r,n),[r,n]),s=i.state.valid===!1,{transitionStatus:a}=cs(s),l=K0.useMemo(()=>({...i,validity:i.state,transitionStatus:a}),[i,a]);return(0,die.jsx)(K0.Fragment,{children:o(l)})};var LO=c(ue(),1);var SH=c(E(),1),pie=LO.forwardRef(function(t,o){let{render:r,className:n,style:i,disabled:s=!1,...a}=t,{state:l,disabled:u}=en(!1),d=u||s,f={...l,disabled:d},p=Dne(),m=p?.allValues!==void 0?p?.parent.id:void 0,g=LO.useMemo(()=>({disabled:d}),[d]),b=We("div",t,{ref:o,state:f,props:a,stateAttributesMapping:di});return(0,SH.jsx)(BO,{controlId:m,children:(0,SH.jsx)(hH.Provider,{value:g,children:b})})});var NO=c(ue(),1),mie=c(xd(),1);var hie=c(E(),1),gie=NO.forwardRef(function(t,o){let{children:r,container:n,className:i,render:s,style:a,...l}=t,{portalNode:u,portalSubtree:d}=YI({container:n,ref:o,componentProps:t,elementProps:l});return!d&&!u?null:(0,hie.jsxs)(NO.Fragment,{children:[d,u&&mie.createPortal(r,u)]})});var bie=c(E(),1),MO="base-ui-disable-scrollbar",Y0={className:MO,getElement(e){return(0,bie.jsx)("style",{nonce:e,href:MO,precedence:"base-ui:low",children:`.${MO}{scrollbar-width:none}.${MO}::-webkit-scrollbar{display:none}`})}};var qs=1;function iS(e,t){return Math.max(0,e-t)}function sS(e,t){if(t<=0)return 0;let o=Qg(e,0,t),r=o,n=t-o,i=r<=qs,s=n<=qs;return i&&s?r<=n?0:t:i?0:s?t:o}var Wn={};Ir(Wn,{Arrow:()=>Gie,Backdrop:()=>Pie,Group:()=>ese,GroupLabel:()=>ose,Icon:()=>Cie,Item:()=>Fie,ItemIndicator:()=>jie,ItemText:()=>Hie,Label:()=>Sie,List:()=>Die,Popup:()=>Nie,Portal:()=>Rie,Positioner:()=>Iie,Root:()=>yie,ScrollDownArrow:()=>Yie,ScrollUpArrow:()=>Xie,Separator:()=>Mne,Trigger:()=>kie,Value:()=>xie});var ar=c(ue(),1);var aS=c(ue(),1),kH=aS.createContext(null),_H=aS.createContext(null);function Co(){let e=aS.useContext(kH);if(e===null)throw new Error(Ot(60));return e}function DO(){let e=aS.useContext(_H);if(e===null)throw new Error(Ot(61));return e}var Ie={id:De(e=>e.id),labelId:De(e=>e.labelId),modal:De(e=>e.modal),multiple:De(e=>e.multiple),items:De(e=>e.items),itemToStringLabel:De(e=>e.itemToStringLabel),itemToStringValue:De(e=>e.itemToStringValue),isItemEqualToValue:De(e=>e.isItemEqualToValue),value:De(e=>e.value),hasSelectedValue:De(e=>{let{value:t,multiple:o,itemToStringValue:r}=e;return t==null?!1:o&&Array.isArray(t)?t.length>0:Rd(t,r)!==""}),hasNullItemLabel:De((e,t)=>t?vne(e.items):!1),open:De(e=>e.open),mounted:De(e=>e.mounted),forceMount:De(e=>e.forceMount),transitionStatus:De(e=>e.transitionStatus),openMethod:De(e=>e.openMethod),activeIndex:De(e=>e.activeIndex),selectedIndex:De(e=>e.selectedIndex),isActive:De((e,t)=>e.activeIndex===t),isSelected:De((e,t)=>{let o=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(n=>iu(t,n,o)):iu(t,r,o)}),isSelectedByFocus:De((e,t)=>e.selectedIndex===t),popupProps:De(e=>e.popupProps),triggerProps:De(e=>e.triggerProps),triggerElement:De(e=>e.triggerElement),positionerElement:De(e=>e.positionerElement),listElement:De(e=>e.listElement),popupSide:De(e=>e.popupSide),scrollUpArrowVisible:De(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:De(e=>e.scrollDownArrowVisible),hasScrollArrows:De(e=>e.hasScrollArrows)};var lS=c(E(),1);function yie(e){let{id:t,value:o,defaultValue:r=null,onValueChange:n,open:i,defaultOpen:s=!1,onOpenChange:a,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:p=!1,required:h=!1,modal:m=!0,actionsRef:g,inputRef:b,onOpenChangeComplete:v,items:y,multiple:k=!1,itemToStringLabel:S,itemToStringValue:_,isItemEqualToValue:x=pne,highlightItemOnHover:w=!0,children:T}=e,{clearErrors:R}=ja(),{setDirty:B,setTouched:I,setFocused:O,validityData:P,setFilled:A,name:M,disabled:z,validation:V,validationMode:L}=en(),D=tS({id:t}),N=z||f,j=M??l,[X,J]=Ag({controlled:o,default:k?r??p0:r,name:"Select",state:"value"}),[te,ee]=Ag({controlled:i,default:s,name:"Select",state:"open"}),W=ar.useRef([]),K=ar.useRef([]),Y=ar.useRef(null),Z=ar.useRef(null),oe=ar.useRef(0),ie=ar.useRef(null),q=ar.useRef([]),re=ar.useRef(!1),ae=ar.useRef(null),ye=ar.useRef(null),xe=ar.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),he=ar.useRef(!1),{mounted:ge,setMounted:me,transitionStatus:ke}=cs(te),{openMethod:ve,triggerProps:Ee}=fne(te),Re=co(()=>new qv({id:D,labelId:void 0,modal:m,multiple:k,itemToStringLabel:S,itemToStringValue:_,isItemEqualToValue:x,value:X,open:te,mounted:ge,transitionStatus:ke,items:y,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,se=Pe(Re,Ie.activeIndex),ne=Pe(Re,Ie.selectedIndex),Ae=Pe(Re,Ie.triggerElement),be=Pe(Re,Ie.positionerElement),we=wO(ve),ot=ve??we??null,vt=ar.useMemo(()=>k?"":Rd(X,_),[k,X,_]),at=ar.useMemo(()=>k&&Array.isArray(X)?X.map(it=>Rd(it,_)):Rd(X,_),[k,X,_]),St=$t(Re.state.triggerElement),rt=pe(()=>at);pO(St,D,X,rt,!N,l);let Vt=ar.useRef(X),lt=k?Array.isArray(X)&&X.length>0:X!=null&&Rd(X,_)!=="";le(()=>{X!==Vt.current&&Re.set("forceMount",!0)},[Re,X]),le(()=>{A(lt)},[lt,A]),le(function(){let wt=q.current,Ft;if(k){let ko=Array.isArray(X)?X:[];if(ko.length===0)Ft=null;else{let Go=ko[ko.length-1],or=Zg(wt,Go,x);Ft=or===-1?null:or}}else{let ko=Zg(wt,X,x);Ft=ko===-1?null:ko}Ft===null&&(ye.current=null),!te&&Re.set("selectedIndex",Ft)},[lt,k,te,X,q,x,Re,ye]);function no(it){let wt=P.initialValue;return Array.isArray(it)&&Array.isArray(wt)?!xne(it,wt,(Ft,ko)=>iu(Ft,ko,x)):it!==wt}uO(X,()=>{R(j),B(no(X)),V.change(X)});let ho=pe((it,wt)=>{a?.(it,wt),!wt.isCanceled&&(ee(it),!it&&(wt.reason===Te.focusOut||wt.reason===Te.outsidePress)&&(I(!0),O(!1),L==="onBlur"&&V.commit(X)))}),je=pe(()=>{me(!1),Re.update({activeIndex:null,openMethod:null}),v?.(!1)});ii({enabled:!g,open:te,ref:Y,onComplete(){te||je()}}),ar.useImperativeHandle(g,()=>({unmount:je}),[je]);let _e=pe((it,wt)=>{n?.(it,wt),!wt.isCanceled&&J(it)}),He=pe(()=>{let it=Re.state.listElement||Y.current;if(!it)return;let wt=iS(it.scrollHeight,it.clientHeight),Ft=sS(it.scrollTop,wt),ko=Ft>0,Go=Ft<wt;Re.state.scrollUpArrowVisible!==ko&&Re.set("scrollUpArrowVisible",ko),Re.state.scrollDownArrowVisible!==Go&&Re.set("scrollDownArrowVisible",Go)}),$e=F0({open:te,onOpenChange:ho,elements:{reference:Ae,floating:be}}),Ke=L8($e,{enabled:!p&&!N,event:"mousedown"}),ct=N0($e),pt=sH($e,{enabled:!p&&!N,listRef:W,activeIndex:se,selectedIndex:ne,disabledIndices:p0,onNavigate(it){it===null&&!te||Re.set("activeIndex",it)},focusItemOnHover:w}),ut=aH($e,{enabled:!p&&!N&&(te||!k),listRef:K,activeIndex:se,selectedIndex:ne,disabledIndices:it=>Qne(W.current[it]),onMatch(it){te?Re.set("activeIndex",it):_e(q.current[it],Ue("none"))},onTyping(it){re.current=it}}),hr=ar.useMemo(()=>{let it=Ut(ut.reference,pt.reference,ct.reference,Ke.reference,Ee);return D&&(it.id=D),it},[Ke.reference,ut.reference,pt.reference,ct.reference,Ee,D]),Oo=ar.useMemo(()=>Ut(eO,ut.floating,pt.floating,ct.floating),[ut.floating,pt.floating,ct.floating]),tr=pt.item??Qt;AI(()=>{Re.update({popupProps:Oo,triggerProps:hr})}),le(()=>{Re.update({id:D,modal:m,multiple:k,value:X,open:te,mounted:ge,transitionStatus:ke,popupProps:Oo,triggerProps:hr,items:y,itemToStringLabel:S,itemToStringValue:_,isItemEqualToValue:x,openMethod:ot})},[Re,D,m,k,X,te,ge,ke,Oo,hr,y,S,_,x,ot]);let go=ar.useMemo(()=>({store:Re,name:j,required:h,disabled:N,readOnly:p,multiple:k,highlightItemOnHover:w,setValue:_e,setOpen:ho,listRef:W,popupRef:Y,scrollHandlerRef:Z,handleScrollArrowVisibility:He,scrollArrowsMountedCountRef:oe,itemProps:tr,valueRef:ie,valuesRef:q,labelsRef:K,typingRef:re,selectionRef:xe,firstItemTextRef:ae,selectedItemTextRef:ye,validation:V,onOpenChangeComplete:v,alignItemWithTriggerActiveRef:he,initialValueRef:Vt}),[Re,j,h,N,p,k,w,_e,ho,tr,V,v,He]),Uo=Jc(b,V.inputRef),Mn=k&&Array.isArray(X)&&X.length>0,gr=k?void 0:j,an=ar.useMemo(()=>!k||!Array.isArray(X)||!j?null:X.map(it=>{let wt=Rd(it,_);return(0,lS.jsx)("input",{type:"hidden",form:u,name:j,value:wt,disabled:N},wt)}),[k,X,u,j,_,N]);return(0,lS.jsx)(kH.Provider,{value:go,children:(0,lS.jsxs)(_H.Provider,{value:$e,children:[T,(0,lS.jsx)("input",{...V.getValidationProps(N,{onFocus(){Re.state.triggerElement?.focus({focusVisible:!0})},onChange(it){if(it.nativeEvent.defaultPrevented||N||p)return;let wt=it.currentTarget.value,Ft=Ue(Te.none,it.nativeEvent);function ko(){if(k)return;let Go=wt.toLowerCase(),or=q.current.findIndex(ka=>Rd(ka,_).toLowerCase()===Go||uH(ka,S).toLowerCase()===Go);or===-1&&(or=q.current.findIndex((ka,Ol)=>{let Be=K.current[Ol];return Be!=null&&Be.toLowerCase()===Go}));let Sa=or===-1?void 0:q.current[or];Sa!=null&&_e(Sa,Ft)}Re.set("forceMount",!0),queueMicrotask(ko)}}),id:D&&gr==null?`${D}-hidden-input`:void 0,form:u,name:gr,autoComplete:d,value:vt,disabled:N,required:h&&!Mn,readOnly:p,ref:Uo,style:j?boe:VI,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),an]})})}var vie=c(ue(),1);var Sie=vie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=s;delete a.id;let l=en(),{store:u}=Co(),d=Pe(u,Ie.triggerElement),f=Pe(u,Ie.id),p=Cne(f),h=_O({id:p,fallbackControlId:d?.id??f,setLabelId(m){u.set("labelId",m)}});return We("div",t,{ref:o,state:l.state,props:[h,s],stateAttributesMapping:di})});var cS=c(ue(),1);var VO=2,K6e=400,Y6e={...ine,...di,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},kie=cS.forwardRef(function(t,o){let{render:r,className:n,id:i,disabled:s=!1,nativeButton:a=!0,style:l,...u}=t,{setTouched:d,setFocused:f,validationMode:p,state:h,disabled:m}=en(),{labelId:g}=wn(),{store:b,setOpen:v,selectionRef:y,validation:k,readOnly:S,required:_,alignItemWithTriggerActiveRef:x,disabled:w}=Co(),T=m||w||s,R=Pe(b,Ie.open),B=Pe(b,Ie.mounted),I=Pe(b,Ie.value),O=Pe(b,Ie.triggerProps),P=Pe(b,Ie.positionerElement),A=Pe(b,Ie.listElement),M=Pe(b,Ie.popupSide),z=Pe(b,Ie.id),V=Pe(b,Ie.labelId),L=Pe(b,Ie.hasSelectedValue),D=B&&P?M:null,N=i??z,j=Ene(g,V);tS({id:N});let X=$t(P),J=cS.useRef(null),{getButtonProps:te,buttonRef:ee}=Dg({disabled:T,native:a}),W=pe(re=>{b.set("triggerElement",re)}),K=xo(),Y=xo(),Z=xo();cS.useEffect(()=>{if(R)return Z.start(K6e,()=>{y.current.allowUnselectedMouseUp=!0,y.current.allowSelectedMouseUp=!0}),()=>{Z.clear()};y.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},Y.clear()},[R,y,Y,Z]);let oe=Ut(O,{id:N,role:"combobox","aria-expanded":R?"true":"false","aria-haspopup":"listbox","aria-controls":R?A?.id??jg(P)?.id:void 0,"aria-labelledby":j,"aria-readonly":S||void 0,"aria-required":_||void 0,tabIndex:T?-1:0,onFocus(re){f(!0),R&&x.current&&v(!1,Ue(Te.none,re.nativeEvent)),K.start(0,()=>{b.set("forceMount",!0)})},onBlur(re){Fe(P,re.relatedTarget)||(d(!0),f(!1),p==="onBlur"&&k.commit(I))},onMouseDown(re){if(R)return;let ae=qe(re.currentTarget);function ye(xe){if(!J.current)return;let he=xe.target;if(Fe(J.current,he)||Fe(X.current,he))return;let ge=wne(J.current);xe.clientX>=ge.left-VO&&xe.clientX<=ge.right+VO&&xe.clientY>=ge.top-VO&&xe.clientY<=ge.bottom+VO||v(!1,Ue(Te.cancelOpen,xe))}Y.start(0,()=>{ae.addEventListener("mouseup",ye,{once:!0})})}},u,te),ie=k.getValidationProps(T,oe);ie.role="combobox";let q={...h,open:R,disabled:T,value:I,readOnly:S,popupSide:D,placeholder:!L};return We("button",t,{ref:[o,J,ee,W],state:q,stateAttributesMapping:Y6e,props:ie})});var _ie=c(ue(),1);var q6e={value:()=>null},xie=_ie.forwardRef(function(t,o){let{className:r,render:n,children:i,placeholder:s,style:a,...l}=t,{store:u,valueRef:d}=Co(),f=Pe(u,Ie.value),p=Pe(u,Ie.items),h=Pe(u,Ie.itemToStringLabel),m=Pe(u,Ie.hasSelectedValue),g=!m&&s!=null&&i==null,b=Pe(u,Ie.hasNullItemLabel,g),v={value:f,placeholder:!m},y=null;return typeof i=="function"?y=i(f):i!=null?y=i:!m&&s!=null&&!b?y=s:Array.isArray(f)?y=Sne(f,p,h):y=dH(f,p,h),We("span",t,{state:v,ref:[o,d],props:[{children:y},l],stateAttributesMapping:q6e})});var wie=c(ue(),1);var Cie=wie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=Co(),u={open:Pe(a,Ie.open)};return We("span",t,{state:u,ref:o,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:lO})});var Tie=c(ue(),1);var xH=c(ue(),1),Eie=xH.createContext(void 0);var wH=c(E(),1),Rie=Tie.forwardRef(function(t,o){let{store:r}=Co(),n=Pe(r,Ie.mounted),i=Pe(r,Ie.forceMount);return n||i?(0,wH.jsx)(Eie.Provider,{value:!0,children:(0,wH.jsx)(I8,{ref:o,...t})}):null});var Bie=c(ue(),1);var Z6e={...za,...xn},Pie=Bie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=Co(),l=Pe(a,Ie.open),u=Pe(a,Ie.mounted),d=Pe(a,Ie.transitionStatus);return We("div",t,{state:{open:l,transitionStatus:d},ref:o,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:Z6e})});var Ha=c(ue(),1);var FO=c(ue(),1),CH=FO.createContext(void 0);function em(){let e=FO.useContext(CH);if(!e)throw new Error(Ot(59));return e}function uS(e,t){e&&Object.assign(e.style,t)}var zO={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var q0=c(E(),1),X6e={position:"fixed"},Iie=Ha.forwardRef(function(t,o){let{anchor:r,positionMethod:n="absolute",className:i,render:s,side:a="bottom",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p,arrowPadding:h=5,sticky:m=!1,disableAnchorTracking:g,alignItemWithTrigger:b=!0,collisionAvoidance:v=zoe,style:y,...k}=t,{store:S,listRef:_,labelsRef:x,alignItemWithTriggerActiveRef:w,selectedItemTextRef:T,valuesRef:R,initialValueRef:B,popupRef:I,setValue:O}=Co(),P=DO(),A=Pe(S,Ie.open),M=Pe(S,Ie.mounted),z=Pe(S,Ie.modal),V=Pe(S,Ie.value),L=Pe(S,Ie.openMethod),D=Pe(S,Ie.positionerElement),N=Pe(S,Ie.triggerElement),j=Pe(S,Ie.isItemEqualToValue),X=Pe(S,Ie.transitionStatus),J=Ha.useRef(null),te=Ha.useRef(null),[ee,W]=Ha.useState(b),K=M&&ee&&L!=="touch";!M&&ee!==b&&W(b),le(()=>{M||(Ie.scrollUpArrowVisible(S.state)&&S.set("scrollUpArrowVisible",!1),Ie.scrollDownArrowVisible(S.state)&&S.set("scrollDownArrowVisible",!1))},[S,M]),Ha.useImperativeHandle(w,()=>K),Lne((K||z)&&A,L==="touch",D,N);let Y=gO({anchor:r,floatingRootContext:P,positionMethod:n,mounted:M,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:m,disableAnchorTracking:g??K,collisionAvoidance:v,keepMounted:!0}),Z=K?"none":Y.side,oe=K?X6e:Y.positionerStyles,ie={open:A,side:Z,align:Y.align,anchorHidden:Y.anchorHidden};le(()=>{S.set("popupSide",Y.side)},[S,Y.side]);let q=pe(he=>{S.set("positionerElement",he)}),re=bO(t,ie,{styles:oe,transitionStatus:X,props:k,refs:[o,q],hidden:!M,inert:!A}),ae=Ha.useRef(0),ye=pe(he=>{if(he.size===0&&ae.current===0||R.current.length===0)return;let ge=ae.current;if(ae.current=he.size,he.size===ge)return;let me=Ue(Te.none);if(ge!==0&&!S.state.multiple&&V!==null&&Zg(R.current,V,j)===-1){let ve=B.current,Re=ve!=null&&Zg(R.current,ve,j)!==-1?ve:null;O(Re,me),Re===null&&(S.set("selectedIndex",null),T.current=null)}if(ge!==0&&S.state.multiple&&Array.isArray(V)){let ke=Ee=>Zg(R.current,Ee,j)!==-1,ve=V.filter(Ee=>ke(Ee));(ve.length!==V.length||ve.some(Ee=>!mne(V,Ee,j)))&&(O(ve,me),ve.length===0&&(S.set("selectedIndex",null),T.current=null))}if(A&&K){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ke={height:""};uS(D,ke),uS(I.current,ke)}}),xe=Ha.useMemo(()=>({...Y,side:Z,alignItemWithTriggerActive:K,setControlledAlignItemWithTrigger:W,scrollUpArrowRef:J,scrollDownArrowRef:te}),[Y,Z,K,W]);return(0,q0.jsx)(xte,{elementsRef:_,labelsRef:x,onMapChange:ye,children:(0,q0.jsxs)(CH.Provider,{value:xe,children:[M&&z&&(0,q0.jsx)(cne,{inert:cO(!A),cutout:N}),re]})})});var Ua=c(ue(),1);var UO=c(E(),1),Q6e={...za,...xn},Nie=Ua.forwardRef(function(t,o){let{render:r,className:n,style:i,finalFocus:s,...a}=t,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:f,valueRef:p,firstItemTextRef:h,selectedItemTextRef:m,multiple:g,handleScrollArrowVisibility:b,scrollHandlerRef:v,listRef:y,highlightItemOnHover:k}=Co(),{side:S,align:_,alignItemWithTriggerActive:x,isPositioned:w,setControlledAlignItemWithTrigger:T}=em(),R=Wne(!0)!=null,B=DO(),I=zp(),{nonce:O,disableStyleElements:P}=Jne(),A=Pe(l,Ie.id),M=Pe(l,Ie.open),z=Pe(l,Ie.openMethod),V=Pe(l,Ie.mounted),L=Pe(l,Ie.popupProps),D=Pe(l,Ie.transitionStatus),N=Pe(l,Ie.triggerElement),j=Pe(l,Ie.positionerElement),X=Pe(l,Ie.listElement),J=Ua.useRef(!1),te=Ua.useRef(!1),ee=Ua.useRef({}),W=Ai(),K=pe(ie=>{if(!j||!u.current||!te.current)return;if(J.current||!x){b();return}let q=j.style.top==="0px",re=j.style.bottom==="0px";if(!q&&!re){b();return}let ae=Aie(j),ye=Z0(j.getBoundingClientRect().height,"y",ae),xe=qe(j),he=Ct(j),ge=he.getComputedStyle(j),me=parseFloat(ge.marginTop),ke=parseFloat(ge.marginBottom),ve=Oie(he.getComputedStyle(u.current)),Ee=Math.min(xe.documentElement.clientHeight-me-ke,ve),Re=ie.scrollTop,se=jO(ie),ne=0,Ae=null,be=!1,we=!1,ot=rt=>{j.style.height=`${rt}px`},vt=(rt,Vt)=>{let lt=Qg(rt,0,Ee-ye);lt>0&&ot(ye+lt),ie.scrollTop=Vt,Ee-(ye+lt)<=qs&&(J.current=!0),b()},at=q?se-Re:Re,St=Math.min(ye+at,Ee);if(ne=St,at<=qs){vt(at,q?se:0);return}if(Ee-St>qs)q?we=!0:Ae=0;else if(be=!0,re&&Re<se){let rt=ye+at-Ee;Ae=Re-(at-rt)}if(ne=Math.ceil(ne),ne!==0&&ot(ne),we||Ae!=null){let rt=jO(ie),Vt=we?rt:Qg(Ae,0,rt);Math.abs(ie.scrollTop-Vt)>qs&&(ie.scrollTop=Vt)}(be||ne>=Ee-qs)&&(J.current=!0),b()});Ua.useImperativeHandle(v,()=>K,[K]),ii({open:M,ref:u,onComplete(){M&&d?.(!0)}});let Y={open:M,transitionStatus:D,side:S,align:_};le(()=>{!j||!u.current||Object.keys(ee.current).length||(ee.current={top:j.style.top||"0",left:j.style.left||"0",right:j.style.right,height:j.style.height,bottom:j.style.bottom,minHeight:j.style.minHeight,maxHeight:j.style.maxHeight,marginTop:j.style.marginTop,marginBottom:j.style.marginBottom})},[u,j]),le(()=>{M||x||(te.current=!1,J.current=!1,uS(j,ee.current))},[M,x,j,u]),le(()=>{let ie=u.current;if(!M||!N||!j||!ie||x&&!w||l.state.transitionStatus==="ending")return;if(!x){te.current=!0,W.request(b),ie.style.removeProperty("--transform-origin");return}let q=J6e(ie);ie.style.removeProperty("--transform-origin");try{let re=m.current;re?.isConnected||(re=!Ie.hasSelectedValue(l.state)&&h.current?.isConnected?h.current:null);let ae=p.current,ye=Ct(j),xe=ye.getComputedStyle(j),he=ye.getComputedStyle(ie),ge=qe(N),me=Aie(N),ke=HO(N.getBoundingClientRect(),me),ve=HO(j.getBoundingClientRect(),me),Ee=ke.height,Re=X||ie,se=Re.scrollHeight,ne=parseFloat(he.borderBottomWidth),Ae=parseFloat(xe.marginTop)||10,be=parseFloat(xe.marginBottom)||10,we=parseFloat(xe.minHeight)||100,ot=Oie(he),vt=5,at=5,St=20,rt=ge.documentElement.clientHeight-Ae-be,Vt=ge.documentElement.clientWidth,lt=rt-ke.bottom+Ee,no,ho=I==="rtl"?ke.right-ve.width:ke.left,je=0;if(re&&ae){let go=HO(ae.getBoundingClientRect(),me);no=HO(re.getBoundingClientRect(),me),ho=ve.left+(I==="rtl"?go.right-no.right:go.left-no.left);let Uo=go.top-ke.top+go.height/2;je=no.top-ve.top+no.height/2-Uo}let _e=lt+je+be+ne,He=Math.min(rt,_e),$e=rt-Ae-be,Ke=_e-He,ct=Vt-at;j.style.left=`${Qg(ho,vt,ct-ve.width)}px`,j.style.height=`${He}px`,j.style.maxHeight="none",j.style.marginTop=`${Ae}px`,j.style.marginBottom=`${be}px`,ie.style.height="100%";let pt=jO(Re),ut=Ke>=pt-qs;ut&&(He=Math.min(rt,ve.height)-(Ke-pt));let hr=ke.top<St||ke.bottom>rt-St||Math.ceil(He)+qs<Math.min(se,we),Oo=(ye.visualViewport?.scale??1)!==1&&uo.engine.webkit;if(hr||Oo){te.current=!0,uS(j,ee.current),T(!1);return}let tr=Math.max(we,He);if(ut){let go=Math.max(0,rt-_e);j.style.top=ve.height>=$e?"0":`${go}px`,j.style.height=`${He}px`,Re.scrollTop=jO(Re)}else j.style.bottom="0",Re.scrollTop=Ke;if(no){let go=ve.top,Uo=ve.height,Mn=no.top+no.height/2,gr=Uo>0?(Mn-go)/Uo*100:50,an=Qg(gr,0,100);ie.style.setProperty("--transform-origin",`50% ${an}%`)}(tr===rt||He>=ot)&&(J.current=!0),b(),k&&l.state.selectedIndex===null&&l.state.activeIndex===null&&y.current[0]!=null&&l.set("activeIndex",0),te.current=!0}finally{q()}},[l,M,j,N,p,h,m,u,b,x,T,W,X,y,k,I,w]),Ua.useEffect(()=>{if(!x||!j||!M)return;let ie=Ct(j);function q(re){f(!1,Ue(Te.windowResize,re))}return et(ie,"resize",q)},[f,x,j,M]);let Z={...X?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${A}-list`},onKeyDown(ie){R&&sne.has(ie.key)&&ie.stopPropagation()},onScroll(ie){X||K(ie.currentTarget)},...x&&{style:X?{height:"100%"}:zO}},oe=We("div",t,{ref:[o,u],state:Y,stateAttributesMapping:Q6e,props:[L,Z,oS(D),{className:!X&&x?Y0.className:void 0},a]});return(0,UO.jsxs)(Ua.Fragment,{children:[!P&&Y0.getElement(O),(0,UO.jsx)(A8,{context:B,modal:!1,disabled:!V,openInteractionType:z,returnFocus:s,restoreFocus:!0,children:oe})]})});function Oie(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function jO(e){return iS(e.scrollHeight,e.clientHeight)}function Aie(e){return M0.getScale(e)}function Z0(e,t,o){return e/o[t]}function HO(e,t){return Ed({x:Z0(e.x,"x",t),y:Z0(e.y,"y",t),width:Z0(e.width,"x",t),height:Z0(e.height,"y",t)})}var Lie=[["transform","none"],["scale","1"],["translate","0 0"]];function J6e(e){let{style:t}=e,o={};for(let[r,n]of Lie)o[r]=t.getPropertyValue(r),t.setProperty(r,n,"important");return()=>{for(let[r]of Lie){let n=o[r];n?t.setProperty(r,n):t.removeProperty(r)}}}var Mie=c(ue(),1);var Die=Mie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a,scrollHandlerRef:l}=Co(),{alignItemWithTriggerActive:u}=em(),d=Pe(a,Ie.hasScrollArrows),f=Pe(a,Ie.openMethod),p=Pe(a,Ie.multiple),m={id:`${Pe(a,Ie.id)}-list`,role:"listbox","aria-multiselectable":p||void 0,onScroll(b){l.current?.(b.currentTarget)},...u&&{style:zO},className:d&&f!=="touch"?Y0.className:void 0},g=pe(b=>{a.set("listElement",b)});return We("div",t,{ref:[o,g],props:[m,s]})});var Ga=c(ue(),1);var GO=c(ue(),1),EH=GO.createContext(void 0);function X0(){let e=GO.useContext(EH);if(!e)throw new Error(Ot(57));return e}var Vie=c(E(),1),Fie=Ga.memo(Ga.forwardRef(function(t,o){let{render:r,className:n,style:i,value:s=null,label:a,disabled:l=!1,nativeButton:u=!1,...d}=t,f=Ga.useRef(null),p=zte({label:a,textRef:f,indexGuessBehavior:e8.GuessFromOrder}),{store:h,itemProps:m,setOpen:g,setValue:b,selectionRef:v,typingRef:y,valuesRef:k,multiple:S,selectedItemTextRef:_,disabled:x,readOnly:w}=Co(),T=Pe(h,Ie.isActive,p.index),R=Pe(h,Ie.open),B=Pe(h,Ie.isSelected,s),I=Pe(h,Ie.isSelectedByFocus,p.index),O=Pe(h,Ie.isItemEqualToValue),P=p.index,A=P!==-1,M=Ga.useRef(null);le(()=>{if(!A)return;let K=k.current;return K[P]=s,()=>{delete K[P]}},[A,P,s,k]),le(()=>{if(!A)return;let K=h.state.value,Y=K;S&&Array.isArray(K)&&(Y=K.length>0?K[K.length-1]:void 0),Y!==void 0&&iu(s,Y,O)&&(h.set("selectedIndex",P),f.current&&(_.current=f.current))},[A,P,S,O,h,s,_]);let z=Ga.useRef(null),V=Ga.useRef("mouse"),L=Ga.useRef(!1),{getButtonProps:D,buttonRef:N}=Dg({disabled:l,focusableWhenDisabled:!0,native:u,composite:!0}),j={disabled:l,selected:B,highlighted:T};function X(K){if(x||w)return;let Y=h.state.value;if(S){let Z=Array.isArray(Y)?Y:[],oe=B?hne(Z,s,O):[...Z,s];b(oe,Ue(Te.itemPress,K))}else b(s,Ue(Te.itemPress,K)),g(!1,Ue(Te.itemPress,K))}function J(){v.current.dragY=0}let te={role:"option","aria-selected":B,tabIndex:R&&T?0:-1,onKeyDown(K){z.current=K.key,h.set("activeIndex",P),K.key===" "&&y.current&&K.preventDefault()},onClick(K){let Y=K.type==="click"&&V.current!=="touch",Z=K.nativeEvent.pointerType,oe=Y&&Gv(K.nativeEvent)&&(Z!==void 0||T),ie=Y&&!oe&&!L.current;L.current=!1,!(K.type==="keydown"&&z.current===null)&&(l||K.type==="keydown"&&z.current===" "&&y.current||ie||(z.current=null,X(K.nativeEvent)))},onPointerEnter(K){V.current=K.pointerType},onPointerMove(K){if(K.pointerType==="mouse"&&K.buttons===1){let Y=v.current;Y.dragY+=K.movementY,Y.dragY**2>=64&&(Y.allowUnselectedMouseUp=!0)}},onPointerDown(K){V.current=K.pointerType,L.current=!0,J()},onMouseUp(){if(J(),l||V.current==="touch"||L.current)return;let K=!v.current.allowSelectedMouseUp&&B,Y=!v.current.allowUnselectedMouseUp&&!B;K||Y||(L.current=!0,M.current?.click(),L.current=!1)}},ee=We("div",t,{ref:[N,o,p.ref,M],state:j,props:[m,te,d,D]}),W=Ga.useMemo(()=>({selected:B,index:P,textRef:f,selectedByFocus:I,hasRegistered:A}),[B,P,f,I,A]);return(0,Vie.jsx)(EH.Provider,{value:W,children:ee})}));var tb=c(ue(),1);var zie=c(E(),1),jie=tb.forwardRef(function(t,o){let r=t.keepMounted??!1,{selected:n}=X0();return r||n?(0,zie.jsx)(eze,{...t,ref:o}):null}),eze=tb.memo(tb.forwardRef((e,t)=>{let{render:o,className:r,style:n,keepMounted:i,...s}=e,{selected:a}=X0(),l=tb.useRef(null),{transitionStatus:u,setMounted:d}=cs(a),p=We("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:xn});return ii({open:a,ref:l,onComplete(){a||d(!1)}}),p}));var dS=c(ue(),1);var Hie=dS.memo(dS.forwardRef(function(t,o){let{index:r,textRef:n,selectedByFocus:i,hasRegistered:s}=X0(),{firstItemTextRef:a,selectedItemTextRef:l}=Co(),{render:u,className:d,style:f,...p}=t,h=dS.useCallback(g=>{g&&(s&&r===0&&(a.current=g),s&&i&&(l.current=g))},[a,l,r,i,s]);return We("div",t,{ref:[h,o,n],props:p})}));var Uie=c(ue(),1);var tze={...za,...xn},Gie=Uie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=Co(),{side:l,align:u,arrowRef:d,arrowStyles:f,arrowUncentered:p,alignItemWithTriggerActive:h}=em(),g={open:Pe(a,Ie.open),side:l,align:u,uncentered:p},b=We("div",t,{state:g,ref:[d,o],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:tze});return h?null:b});var $ie=c(ue(),1);var Wie=c(ue(),1);var WO=Wie.forwardRef(function(t,o){let{render:r,className:n,style:i,direction:s,keepMounted:a=!1,...l}=t,u=s==="up",{store:d,popupRef:f,listRef:p,handleScrollArrowVisibility:h,scrollArrowsMountedCountRef:m}=Co(),{side:g,scrollDownArrowRef:b,scrollUpArrowRef:v}=em(),y=u?Ie.scrollUpArrowVisible:Ie.scrollDownArrowVisible,k=Pe(d,y),S=Pe(d,Ie.openMethod),_=k&&S!=="touch",x=xo(),w=u?v:b,{mounted:T,transitionStatus:R,setMounted:B}=cs(_);le(()=>(m.current+=1,d.state.hasScrollArrows||d.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&d.state.hasScrollArrows&&d.set("hasScrollArrows",!1)}),[d,m]),ii({open:_,ref:w,onComplete(){_||B(!1)}});let P=We("div",t,{ref:[o,w],state:{direction:s,visible:_,side:g,transitionStatus:R},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(M){if(M.movementX===0&&M.movementY===0||x.isStarted())return;d.set("activeIndex",null);function z(){let V=d.state.listElement??f.current;if(!V)return;d.set("activeIndex",null),h();let L=iS(V.scrollHeight,V.clientHeight),D=sS(V.scrollTop,L),N=D===(u?0:L),j=p.current;if(D!==V.scrollTop&&(V.scrollTop=D),j.length===0&&d.set(u?"scrollUpArrowVisible":"scrollDownArrowVisible",!N),N){x.clear();return}if(j.length>0){let X=w.current?.offsetHeight||0;V.scrollTop=oze(j,u,D,V.clientHeight,X,L)}x.start(40,z)}x.start(40,z)},onMouseLeave(){x.clear()}},l],stateAttributesMapping:xn});return T||a?P:null});function oze(e,t,o,r,n,i){if(t){let d=0,f=o+n-qs;for(let m=0;m<e.length;m+=1){let g=e[m];if(g&&g.offsetTop>=f){d=m;break}}let p=Math.max(0,d-1),h=e[p];return p<d&&h?sS(h.offsetTop-n,i):0}let s=e.length-1,a=o+r-n+qs;for(let d=0;d<e.length;d+=1){let f=e[d];if(f&&f.offsetTop+f.offsetHeight>a){s=Math.max(0,d-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?sS(u.offsetTop+u.offsetHeight-r+n,i):i}var Kie=c(E(),1),Yie=$ie.forwardRef(function(t,o){return(0,Kie.jsx)(WO,{...t,ref:o,direction:"down"})});var qie=c(ue(),1);var Zie=c(E(),1),Xie=qie.forwardRef(function(t,o){return(0,Zie.jsx)(WO,{...t,ref:o,direction:"up"})});var fS=c(ue(),1);var $O=c(ue(),1),TH=$O.createContext(void 0);function Qie(){let e=$O.useContext(TH);if(e===void 0)throw new Error(Ot(56));return e}var Jie=c(E(),1),ese=fS.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,[a,l]=fS.useState(),u=fS.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=We("div",t,{ref:o,props:[{role:"group","aria-labelledby":a},s]});return(0,Jie.jsx)(TH.Provider,{value:u,children:d})});var tse=c(ue(),1);var ose=tse.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,...a}=t,{setLabelId:l}=Qie(),u=ni(s);return le(()=>{l(u)},[u,l]),We("div",t,{ref:o,props:[{id:u},a]})});var ms={};Ir(ms,{Arrow:()=>yse,Handle:()=>Q0,Popup:()=>gse,Portal:()=>fse,Positioner:()=>mse,Provider:()=>vse,Root:()=>nse,Trigger:()=>cse,Viewport:()=>_se,createHandle:()=>xse});var su=c(ue(),1);var KO=c(ue(),1),RH=KO.createContext(void 0);function Wa(e){let t=KO.useContext(RH);if(t===void 0&&!e)throw new Error(Ot(72));return t}var rse=c(ue(),1);var rze={...one,disabled:De(e=>e.disabled),instantType:De(e=>e.instantType),isInstantPhase:De(e=>e.isInstantPhase),trackCursorAxis:De(e=>e.trackCursorAxis),disableHoverablePopup:De(e=>e.disableHoverablePopup),lastOpenChangeReason:De(e=>e.openChangeReason),closeOnClick:De(e=>e.closeOnClick),closeDelay:De(e=>e.closeDelay),hasViewport:De(e=>e.hasViewport)},pS=class e extends Zv{constructor(t,o,r=!1){let n=new qp,i={...nze(),...t};i.floatingRootContext=ene(n,o,r),super(i,{popupRef:rse.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},rze)}setOpen=(t,o)=>{Wre(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,Ue(Te.triggerPress,t))}static useStore(t,o){return Gre(t,(n,i)=>new e(o,n,i)).store}};function nze(){return{...Jre(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var YO=c(E(),1),nse=q8(function(t){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:f,defaultTriggerId:p=null,children:h}=t,m=pS.useStore(d?.store,{open:r,openProp:n,activeTriggerId:p,triggerIdProp:f});$re(m,n,r,p),m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);let g=m.useState("open"),b=!o&&g,v=m.useState("activeTriggerId"),y=m.useState("mounted"),k=m.useState("payload");m.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i}),m.useSyncedValue("disabled",o),Yre(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:_}=qre(b,m),x=m.useState("isInstantPhase"),w=m.useState("instantType"),T=m.useState("lastOpenChangeReason"),R=su.useRef(null);le(()=>{g&&o&&m.setOpen(!1,Ue(Te.disabled))},[g,o,m]),le(()=>{_==="ending"&&T===Te.none||_!=="ending"&&x?(w!=="delay"&&(R.current=w),m.set("instantType","delay")):R.current!==null&&(m.set("instantType",R.current),R.current=null)},[_,x,T,w,m]),le(()=>{b&&v==null&&m.set("payload",void 0)},[m,v,b]);let B=su.useCallback(()=>{m.setOpen(!1,Ue(Te.imperativeAction))},[m]);su.useImperativeHandle(a,()=>({unmount:S,close:B}),[S,B]);let I=b||y||!o&&s!=="none";return(0,YO.jsxs)(RH.Provider,{value:m,children:[I&&(0,YO.jsx)(ize,{store:m,disabled:o,trackCursorAxis:s}),typeof h=="function"?h({payload:k}):h]})});function ize({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=N0(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=N8(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=su.useMemo(()=>Ut(i.reference,n.reference),[i.reference,n.reference]),a=su.useMemo(()=>Ut(i.trigger,n.trigger),[i.trigger,n.trigger]),l=su.useMemo(()=>Ut(eO,i.floating,n.floating),[i.floating,n.floating]);return Zre(e,{activeTriggerProps:s,inactiveTriggerProps:a,popupProps:l}),null}var ZO=c(ue(),1);var qO=c(ue(),1),BH=qO.createContext(void 0);function ise(){return qO.useContext(BH)}var sse=(function(e){return e[e.popupOpen=z0.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var lse="data-base-ui-tooltip-trigger";function ase(e){if("composedPath"in e){let o=e.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(Xe(n))return n}}let t=e.target;return Xe(t)?t:null}function sze(e){let t=e;for(;t;){if(t.hasAttribute(lse))return t;let o=t.parentElement;if(o){t=o;continue}let r=t.getRootNode();t="host"in r&&Xe(r.host)?r.host:null}return null}var cse=Vre(function(t,o){let{render:r,className:n,style:i,handle:s,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:f,id:p,...h}=t,m=Wa(!0),g=s?.store??m;if(!g)throw new Error(Ot(82));let b=ni(p),v=g.useState("isTriggerActive",b),y=g.useState("isOpenedByTrigger",b),k=g.useState("floatingRootContext"),S=ZO.useRef(null),_=u??600,x=f??0,{registerTrigger:w,isMountedByThisTrigger:T}=Kre(b,S,g,{payload:a,closeOnClick:d,closeDelay:x}),R=ise(),{delayRef:B,isInstantPhase:I,hasProvider:O}=g8(k,{open:y}),P=Jv(k);g.useSyncedValue("isInstantPhase",I);let A=g.useState("disabled"),M=l??A,z=$t(M),V=g.useState("trackCursorAxis"),L=g.useState("disableHoverablePopup"),D=ZO.useRef(!1),N=xo(),j=ZO.useRef(void 0);function X(){let q=R?.delay,re=typeof B.current=="object"?B.current.open:void 0,ae=_;return O&&(re!==0?ae=u??q??_:ae=0),ae}function J(q){let re=S.current;if(!re||!q)return!1;let ae=sze(q);return ae!==null&&ae!==re&&Fe(re,ae)}function te(q){let re=J(q);return D.current=re,re&&(P.openChangeTimeout.clear(),P.restTimeout.clear(),P.restTimeoutPending=!1,N.clear()),re}let ee=nH(k,{enabled:!M,mouseOnly:!0,move:!1,handleClose:!L&&V!=="both"?lH():null,restMs:X,delay(){let q=typeof B.current=="object"?B.current.close:void 0,re=x;return f==null&&O&&(re=q),{close:re}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>g.select("transitionStatus")==="ending",shouldOpen(){return!D.current}}),W=eH(k,{enabled:!M}).reference,K=q=>{let re=D.current,ae=ase(q),ye=te(ae),xe=S.current,he=xe&&ae&&Fe(xe,ae);if(ye&&g.select("open")&&g.select("lastOpenChangeReason")===Te.triggerHover){g.setOpen(!1,Ue(Te.triggerHover,q));return}if(re&&!ye&&he&&!z.current&&!g.select("open")&&xe&&Da(j.current)){let ge=()=>{!D.current&&!z.current&&!g.select("open")&&g.setOpen(!0,Ue(Te.triggerHover,q,xe))},me=X();me===0?(N.clear(),ge()):N.start(me,ge)}},Y=g.useState("triggerProps",T);return We("button",t,{state:{open:y},ref:[o,w,S],props:[ee,W,T||V!=="none"?Y:void 0,{onMouseOver(q){K(q.nativeEvent)},onFocus(q){J(ase(q.nativeEvent))&&q.preventBaseUIHandler()},onMouseLeave(){D.current=!1,N.clear(),j.current=void 0},onPointerEnter(q){j.current=q.pointerType},onPointerDown(q){j.current=q.pointerType,g.set("closeOnClick",d),d&&!g.select("open")&&g.cancelPendingOpen(q.nativeEvent)},onClick(q){d&&!g.select("open")&&g.cancelPendingOpen(q.nativeEvent)},id:b,[sse.triggerDisabled]:M?"":void 0,[lse]:M?void 0:""},h],stateAttributesMapping:lO})});var dse=c(ue(),1);var XO=c(ue(),1),PH=XO.createContext(void 0);function use(){let e=XO.useContext(PH);if(e===void 0)throw new Error(Ot(70));return e}var IH=c(E(),1),fse=dse.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return Wa().useState("mounted")||r?(0,IH.jsx)(PH.Provider,{value:r,children:(0,IH.jsx)(gie,{ref:o,...n})}):null});var JO=c(ue(),1);var QO=c(ue(),1),OH=QO.createContext(void 0);function mS(){let e=QO.useContext(OH);if(e===void 0)throw new Error(Ot(71));return e}var pse=c(E(),1),mse=JO.forwardRef(function(t,o){let{render:r,className:n,anchor:i,positionMethod:s="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:h=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:b=joe,style:v,...y}=t,k=Wa(),S=use(),_=k.useState("open"),x=k.useState("mounted"),w=k.useState("trackCursorAxis"),T=k.useState("disableHoverablePopup"),R=k.useState("floatingRootContext"),B=k.useState("instantType"),I=k.useState("transitionStatus"),O=k.useState("hasViewport"),P=gO({anchor:i,positionMethod:s,floatingRootContext:R,mounted:x,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:f,collisionPadding:p,sticky:m,arrowPadding:h,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:b,adaptiveOrigin:O?Bne:void 0}),A=JO.useMemo(()=>({open:_,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:w!=="none"?"tracking-cursor":B}),[_,P.side,P.align,P.anchorHidden,w,B]),M=bO(t,A,{styles:P.positionerStyles,transitionStatus:I,props:y,refs:[o,k.useStateSetter("positionerElement")],hidden:!x,inert:!_||w==="both"||T});return(0,pse.jsx)(OH.Provider,{value:P,children:M})});var hse=c(ue(),1);var aze={...za,...xn},gse=hse.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=Wa(),{side:l,align:u}=mS(),d=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),h=a.useState("popupProps"),m=a.useState("floatingRootContext"),g=a.useState("disabled"),b=a.useState("closeDelay");ii({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),rH(m,{enabled:!g,closeDelay:b});let v=a.useStateSetter("popupElement");return We("div",t,{state:{open:d,side:l,align:u,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,v],props:[h,oS(p),s],stateAttributesMapping:aze})});var bse=c(ue(),1);var yse=bse.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=Wa(),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=mS(),h=a.useState("open"),m=a.useState("instantType");return We("div",t,{state:{open:h,side:u,align:d,uncentered:f,instant:m},ref:[o,l],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:za})});var AH=c(ue(),1);var LH=c(E(),1),vse=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,i=AH.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),s=AH.useMemo(()=>({open:o,close:r}),[o,r]);return(0,LH.jsx)(BH.Provider,{value:i,children:(0,LH.jsx)(h8,{delay:s,timeoutMs:n,children:t.children})})};var kse=c(ue(),1);var Sse=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var lze={activationDirection:e=>e?{"data-activation-direction":e}:null},_se=kse.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,l=Wa(),u=mS(),d=l.useState("instantType"),{children:f,state:p}=Xne({store:l,side:u.side,cssVars:Sse,children:s}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return We("div",t,{state:h,ref:o,props:[a,{children:f}],stateAttributesMapping:lze})});var Q0=class{constructor(){this.store=new pS}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(Ot(81,t));this.store.setOpen(!0,Ue(Te.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,Ue(Te.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function xse(){return new Q0}function pi(e){return We(e.defaultTagName??"div",e,e)}var Ese=c(F(),1),NH="data-wp-hash";function MH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&uze(document)),e.__wpStyleRuntime}function cze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${NH}]`))if(o.getAttribute(NH)===t)return!0;return!1}function Tse(e,t,o){if(!e.head)return;let r=MH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(cze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(NH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function uze(e){let t=MH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Tse(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Rse(e,t){let o=MH();o.styles.set(e,t);for(let r of o.documents.keys())Tse(r,e,t)}typeof process>"u",Rse("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{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 wse={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",Rse("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Cse={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},Bd=(0,Ese.forwardRef)(function({variant:t="body-md",render:o,className:r,...n},i){return pi({render:o,defaultTagName:"span",ref:i,props:Ut(n,{className:$(wse.text,Cse.heading,Cse.p,wse[t],r)})})});var Ose=c(E(),1),DH="data-wp-hash";function VH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&fze(document)),e.__wpStyleRuntime}function dze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${DH}]`))if(o.getAttribute(DH)===t)return!0;return!1}function Ise(e,t,o){if(!e.head)return;let r=VH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(dze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(DH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function fze(e){let t=VH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ise(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function pze(e,t){let o=VH();o.styles.set(e,t);for(let r of o.documents.keys())Ise(r,e,t)}typeof process>"u",pze("9db2873e7f","@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,#f6e6e3);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,#c6f7cd);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 Bse={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"},FH=(0,Pse.forwardRef)(function({intent:t="none",className:o,...r},n){return(0,Ose.jsx)(Bd,{ref:n,className:$(Bse.badge,Bse[`is-${t}-intent`],o),...r,variant:"body-sm"})});var Ase=c(F(),1),Lse=c(de(),1),Nse=c(E(),1),ob=(0,Ase.forwardRef)(function({icon:t,size:o=24,...r},n){return(0,Nse.jsx)(Lse.SVG,{ref:n,...t.props,...r,width:o,height:o})});var au={};Ir(au,{Content:()=>oA,FullBleed:()=>Wse,Header:()=>tA,Root:()=>eA,Title:()=>Kse});var Mse=c(F(),1),zH="data-wp-hash";function jH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&hze(document)),e.__wpStyleRuntime}function mze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${zH}]`))if(o.getAttribute(zH)===t)return!0;return!1}function Dse(e,t,o){if(!e.head)return;let r=jH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(mze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(zH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function hze(e){let t=jH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Dse(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Vse(e,t){let o=jH();o.styles.set(e,t);for(let r of o.documents.keys())Dse(r,e,t)}typeof process>"u",Vse("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var gze={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Vse("5d38cbdd27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var bze={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},eA=(0,Mse.forwardRef)(function({render:t,...o},r){let n=$(bze.root,gze["box-sizing"]);return pi({defaultTagName:"div",render:t,ref:r,props:Ut({className:n},o)})});var Fse=c(F(),1),HH="data-wp-hash";function UH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vze(document)),e.__wpStyleRuntime}function yze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${HH}]`))if(o.getAttribute(HH)===t)return!0;return!1}function zse(e,t,o){if(!e.head)return;let r=UH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(yze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(HH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function vze(e){let t=UH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)zse(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Sze(e,t){let o=UH();o.styles.set(e,t);for(let r of o.documents.keys())zse(r,e,t)}typeof process>"u",Sze("5d38cbdd27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var kze={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},tA=(0,Fse.forwardRef)(function({render:t,...o},r){return pi({defaultTagName:"div",render:t,ref:r,props:Ut({className:kze.header},o)})});var jse=c(F(),1),GH="data-wp-hash";function WH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&xze(document)),e.__wpStyleRuntime}function _ze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${GH}]`))if(o.getAttribute(GH)===t)return!0;return!1}function Hse(e,t,o){if(!e.head)return;let r=WH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(_ze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(GH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function xze(e){let t=WH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Hse(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function wze(e,t){let o=WH();o.styles.set(e,t);for(let r of o.documents.keys())Hse(r,e,t)}typeof process>"u",wze("5d38cbdd27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var Cze={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},oA=(0,jse.forwardRef)(function({render:t,...o},r){return pi({defaultTagName:"div",render:t,ref:r,props:Ut({className:Cze.content},o)})});var Use=c(F(),1),$H="data-wp-hash";function KH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Tze(document)),e.__wpStyleRuntime}function Eze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${$H}]`))if(o.getAttribute($H)===t)return!0;return!1}function Gse(e,t,o){if(!e.head)return;let r=KH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Eze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute($H,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Tze(e){let t=KH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Gse(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Rze(e,t){let o=KH();o.styles.set(e,t);for(let r of o.documents.keys())Gse(r,e,t)}typeof process>"u",Rze("5d38cbdd27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var Bze={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},Wse=(0,Use.forwardRef)(function({render:t,...o},r){return pi({defaultTagName:"div",render:t,ref:r,props:Ut({className:Bze.fullbleed},o)})});var $se=c(F(),1);var YH=c(E(),1),Pze=(0,YH.jsx)("div",{}),Kse=(0,$se.forwardRef)(function({render:t=Pze,children:o,...r},n){return(0,YH.jsx)(Bd,{ref:n,variant:"heading-lg",render:t,...r,children:o})});var Yse=c(F(),1),qse=c(E(),1),qH=(0,Yse.forwardRef)(function(t,o){return(0,qse.jsx)(Xp.Panel,{ref:o,...t})});var Zse=c(F(),1),Xse=c(E(),1),ZH=(0,Zse.forwardRef)(function(t,o){return(0,Xse.jsx)(Xp.Root,{ref:o,...t})});var Qse=c(F(),1),Jse=c(E(),1),XH=(0,Qse.forwardRef)(function(t,o){return(0,Jse.jsx)(Xp.Trigger,{ref:o,...t})});var rb={};Ir(rb,{Content:()=>uae,Header:()=>iae,HeaderDescription:()=>aae,Root:()=>tae});var eae=c(F(),1);var JH=c(E(),1),tae=(0,eae.forwardRef)(function({render:t,...o},r){return(0,JH.jsx)(ZH,{ref:r,render:(0,JH.jsx)(eA,{render:t}),...o})});var gS=c(F(),1);var oae=c(F(),1),rA=(0,oae.createContext)({setDescriptionId:()=>{}});var Pd=c(E(),1),e7="data-wp-hash";function t7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Oze(document)),e.__wpStyleRuntime}function Ize(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${e7}]`))if(o.getAttribute(e7)===t)return!0;return!1}function nae(e,t,o){if(!e.head)return;let r=t7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Ize(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(e7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Oze(e){let t=t7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)nae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function o7(e,t){let o=t7();o.styles.set(e,t);for(let r of o.documents.keys())nae(r,e,t)}typeof process>"u",o7("78199613cf","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");var hS={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"};typeof process>"u",o7("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var rae={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",o7("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 Aze={"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"},iae=(0,gS.forwardRef)(function({children:t,className:o,render:r,...n},i){let[s,a]=(0,gS.useState)(),l=(0,gS.useMemo)(()=>({setDescriptionId:a}),[a]);return pi({defaultTagName:"div",render:r,ref:i,props:Ut(n,{className:$(rae.heading,hS["heading-wrapper"],o),children:(0,Pd.jsx)(rA.Provider,{value:l,children:(0,Pd.jsxs)(XH,{className:hS.header,render:(0,Pd.jsx)(tA,{}),nativeButton:!1,"aria-describedby":s,children:[(0,Pd.jsx)("div",{className:hS["header-content"],children:t}),(0,Pd.jsx)("div",{className:$(hS["header-trigger-positioner"]),children:(0,Pd.jsx)("div",{className:$(hS["header-trigger-wrapper"],rae.div,Aze["outset-ring--focus-parent-visible"]),children:(0,Pd.jsx)(ob,{icon:cn,className:hS["header-trigger"]})})})]})})})})});var tm=c(F(),1);var sae=c(E(),1),aae=(0,tm.forwardRef)(function({children:t,className:o,...r},n){let i=(0,tm.useId)(),{setDescriptionId:s}=(0,tm.useContext)(rA);return(0,tm.useEffect)(()=>(s(i),()=>s(void 0)),[i,s]),(0,sae.jsx)("div",{ref:n,id:i,"aria-hidden":"true",className:o,...r,children:t})});var lae=c(F(),1);var i7=c(E(),1),n7="data-wp-hash";function s7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Nze(document)),e.__wpStyleRuntime}function Lze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${n7}]`))if(o.getAttribute(n7)===t)return!0;return!1}function cae(e,t,o){if(!e.head)return;let r=s7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Lze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(n7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Nze(e){let t=s7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)cae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Mze(e,t){let o=s7();o.styles.set(e,t);for(let r of o.documents.keys())cae(r,e,t)}typeof process>"u",Mze("78199613cf","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");var r7={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},uae=(0,lae.forwardRef)(function({className:t,render:o,children:r,hiddenUntilFound:n=!0,...i},s){return(0,i7.jsx)(qH,{ref:s,className:a=>$(r7.content,a.open&&a.transitionStatus==="idle"&&r7["overflow-visible"],t),hiddenUntilFound:n,...i,children:(0,i7.jsx)(oA,{className:r7["content-inner"],render:o,children:r})})});var dae=c(F(),1);function bS(e,t,o){return(0,dae.cloneElement)(e??t,{children:o})}var Dze=c(pae(),1);var mae=c(Tx(),1),{lock:yIt,unlock:hae}=(0,mae.__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/ui");function Vze(){let e=Dze;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return hae(e.privateApis).ThemeProvider}var nA=Vze();var gae=c(F(),1),a7="data-wp-hash";function l7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zze(document)),e.__wpStyleRuntime}function Fze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${a7}]`))if(o.getAttribute(a7)===t)return!0;return!1}function bae(e,t,o){if(!e.head)return;let r=l7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Fze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(a7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function zze(e){let t=l7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)bae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function jze(e,t){let o=l7();o.styles.set(e,t);for(let r of o.documents.keys())bae(r,e,t)}typeof process>"u",jze("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var Hze={stack:"_19ce0419607e1896__stack"},Uze={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)"},Qe=(0,gae.forwardRef)(function({direction:t,gap:o,align:r,justify:n,wrap:i,render:s,...a},l){let u={gap:o&&Uze[o],alignItems:r,justifyContent:n,flexDirection:t,flexWrap:i};return pi({render:s,ref:l,props:Ut(a,{style:u,className:Hze.stack})})});var xt={};Ir(xt,{Popup:()=>Bae,Portal:()=>sA,Positioner:()=>aA,Provider:()=>Mae,Root:()=>Lae,Trigger:()=>Oae});var Tae=c(F(),1);var kae=c(F(),1);var u7="data-wp-hash";function d7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Wze(document)),e.__wpStyleRuntime}function Gze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${u7}]`))if(o.getAttribute(u7)===t)return!0;return!1}function vae(e,t,o){if(!e.head)return;let r=d7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Gze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(u7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Wze(e){let t=d7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)vae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function $ze(e,t){let o=d7();o.styles.set(e,t);for(let r of o.documents.keys())vae(r,e,t)}typeof process>"u",$ze("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var yae={slot:"_11fc52b637ff8a7e__slot"},Sae="data-wp-compat-overlay-slot";function Kze(){return typeof document>"u"?null:document}function Yze(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var lu=null;function c7(e){return e.setAttribute("aria-hidden","false"),e}function qze(e){let t=e.createElement("div");return t.setAttribute(Sae,""),yae.slot&&t.classList.add(yae.slot),e.body.appendChild(t),t}function iA(){if(typeof window>"u"||!Yze()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=Kze();if(!e||!e.body)return;if(lu&&lu.ownerDocument===e&&lu.isConnected)return c7(lu);let t=e.querySelector(`[${Sae}]`);return t instanceof HTMLDivElement?(lu=c7(t),lu):(lu?.isConnected&&lu.remove(),lu=c7(qze(e)),lu)}var _ae=c(E(),1),sA=(0,kae.forwardRef)(function({container:t,...o},r){return(0,_ae.jsx)(ms.Portal,{container:t??iA(),...o,ref:r})});var xae=c(F(),1),Eae=c(E(),1),f7="data-wp-hash";function p7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Xze(document)),e.__wpStyleRuntime}function Zze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${f7}]`))if(o.getAttribute(f7)===t)return!0;return!1}function wae(e,t,o){if(!e.head)return;let r=p7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Zze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(f7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Xze(e){let t=p7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)wae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Cae(e,t){let o=p7();o.styles.set(e,t);for(let r of o.documents.keys())wae(r,e,t)}typeof process>"u",Cae("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Qze={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Cae("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);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-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var Jze={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},aA=(0,xae.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...i},s){return(0,Eae.jsx)(ms.Positioner,{ref:s,align:t,side:r,sideOffset:n,...i,className:$(Qze["box-sizing"],Jze.positioner,o)})});var J0=c(E(),1),m7="data-wp-hash";function h7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&tje(document)),e.__wpStyleRuntime}function eje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${m7}]`))if(o.getAttribute(m7)===t)return!0;return!1}function Rae(e,t,o){if(!e.head)return;let r=h7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(eje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(m7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function tje(e){let t=h7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Rae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function oje(e,t){let o=h7();o.styles.set(e,t);for(let r of o.documents.keys())Rae(r,e,t)}typeof process>"u",oje("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);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-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var rje={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},nje={background:"#1e1e1e"},Bae=(0,Tae.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...i},s){let a=(0,J0.jsx)(nA,{color:nje,children:(0,J0.jsx)(ms.Popup,{ref:s,className:$(rje.popup,n),...i,children:r})}),l=bS(o,(0,J0.jsx)(aA,{}),a);return bS(t,(0,J0.jsx)(sA,{}),l)});var Pae=c(F(),1),Iae=c(E(),1),Oae=(0,Pae.forwardRef)(function(t,o){return(0,Iae.jsx)(ms.Trigger,{ref:o,...t})});var Aae=c(E(),1);function Lae(e){return(0,Aae.jsx)(ms.Root,{...e})}var Nae=c(E(),1);function Mae({...e}){return(0,Nae.jsx)(ms.Provider,{...e})}var eC=c(F(),1),tC=c(E(),1),g7="data-wp-hash";function b7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&sje(document)),e.__wpStyleRuntime}function ije(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${g7}]`))if(o.getAttribute(g7)===t)return!0;return!1}function Dae(e,t,o){if(!e.head)return;let r=b7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(ije(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(g7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function sje(e){let t=b7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Dae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function y7(e,t){let o=b7();o.styles.set(e,t);for(let r of o.documents.keys())Dae(r,e,t)}typeof process>"u",y7("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var aje={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",y7("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var lje={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",y7("bc14d8e61b",'@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-weak,#0000);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]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}}.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 yS={"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"},Vae=(0,eC.forwardRef)(function({className:t,children:o,visuallyDisabled:r,size:n="default",isBorderless:i,prefix:s,suffix:a,...l},u){return(0,tC.jsxs)("div",{ref:u,className:$(aje.div,lje["box-sizing"],yS["input-layout"],yS[`is-size-${n}`],r&&yS["is-disabled"],i&&yS["is-borderless"],t),...l,children:[eC.Children.count(s)>0&&(0,tC.jsx)("div",{className:yS["slot-wrapper"],"data-slot-type":"prefix",children:s}),o,eC.Children.count(a)>0&&(0,tC.jsx)("div",{className:yS["slot-wrapper"],"data-slot-type":"suffix",children:a})]})});var zae=c(F(),1),Hae=c(E(),1),v7="data-wp-hash";function S7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&uje(document)),e.__wpStyleRuntime}function cje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${v7}]`))if(o.getAttribute(v7)===t)return!0;return!1}function jae(e,t,o){if(!e.head)return;let r=S7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(cje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(v7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function uje(e){let t=S7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)jae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function dje(e,t){let o=S7();o.styles.set(e,t);for(let r of o.documents.keys())jae(r,e,t)}typeof process>"u",dje("bc14d8e61b",'@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-weak,#0000);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]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}}.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 Fae={"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"},k7=(0,zae.forwardRef)(function({padding:t="default",className:o,...r},n){return(0,Hae.jsx)("div",{ref:n,className:$(Fae["input-layout-slot"],Fae[`is-padding-${t}`],o),...r})});k7.displayName="InputLayout.Slot";var Uae=Object.assign(Vae,{Slot:k7});var Gae={align:"start",sideOffset:8,collisionPadding:12};var nb={};Ir(nb,{Control:()=>mle,Description:()=>ale,Details:()=>dle,Item:()=>Zae,Label:()=>ole,Root:()=>Kae});var Wae=c(F(),1);var w7=c(E(),1),_7="data-wp-hash";function x7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&pje(document)),e.__wpStyleRuntime}function fje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${_7}]`))if(o.getAttribute(_7)===t)return!0;return!1}function $ae(e,t,o){if(!e.head)return;let r=x7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(fje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(_7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function pje(e){let t=x7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)$ae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function mje(e,t){let o=x7();o.styles.set(e,t);for(let r of o.documents.keys())$ae(r,e,t)}typeof process>"u",mje("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var hje={"box-sizing":"_336cd3e4e743482f__box-sizing"},gje=e=>(0,w7.jsx)(Qe,{...e,direction:"column",gap:"sm"}),Kae=(0,Wae.forwardRef)(function({className:t,render:o=gje,...r},n){return(0,w7.jsx)(ps.Root,{ref:n,className:$(hje["box-sizing"],t),render:o,...r})});var Yae=c(F(),1),qae=c(E(),1),Zae=(0,Yae.forwardRef)(function(t,o){return(0,qae.jsx)(ps.Item,{ref:o,...t})});var ele=c(F(),1);var Xae=c(F(),1),C7="data-wp-hash";function E7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yje(document)),e.__wpStyleRuntime}function bje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${C7}]`))if(o.getAttribute(C7)===t)return!0;return!1}function Qae(e,t,o){if(!e.head)return;let r=E7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(bje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(C7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function yje(e){let t=E7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Qae(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function vje(e,t){let o=E7();o.styles.set(e,t);for(let r of o.documents.keys())Qae(r,e,t)}typeof process>"u",vje("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 Sje={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},bt=(0,Xae.forwardRef)(function({render:t,...o},r){return pi({render:t,ref:r,props:Ut({className:Sje["visually-hidden"]},o,{"data-visually-hidden":""})})});var R7=c(E(),1),T7="data-wp-hash";function B7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_je(document)),e.__wpStyleRuntime}function kje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${T7}]`))if(o.getAttribute(T7)===t)return!0;return!1}function tle(e,t,o){if(!e.head)return;let r=B7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(kje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(T7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function _je(e){let t=B7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)tle(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function xje(e,t){let o=B7();o.styles.set(e,t);for(let r of o.documents.keys())tle(r,e,t)}typeof process>"u",xje("e08ffbfdae",'@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);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 Jae={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},ole=(0,ele.forwardRef)(function({className:t,hideFromVision:o,variant:r,...n},i){let s=(0,R7.jsx)(ps.Label,{ref:i,className:$(Jae.label,r&&Jae[`is-${r}`],t),...n});return o?(0,R7.jsx)(bt,{render:s}):s});var rle=c(F(),1),sle=c(E(),1),P7="data-wp-hash";function I7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Cje(document)),e.__wpStyleRuntime}function wje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${P7}]`))if(o.getAttribute(P7)===t)return!0;return!1}function nle(e,t,o){if(!e.head)return;let r=I7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(wje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(P7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Cje(e){let t=I7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)nle(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function ile(e,t){let o=I7();o.styles.set(e,t);for(let r of o.documents.keys())nle(r,e,t)}typeof process>"u",ile("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Eje={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",ile("e08ffbfdae",'@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);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 Tje={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},ale=(0,rle.forwardRef)(function({className:t,...o},r){return(0,sle.jsx)(ps.Description,{ref:r,className:$(Eje.p,Tje.description,t),...o})});var lle=c(F(),1),cle=c(G(),1);var om=c(E(),1),O7="data-wp-hash";function A7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Bje(document)),e.__wpStyleRuntime}function Rje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${O7}]`))if(o.getAttribute(O7)===t)return!0;return!1}function ule(e,t,o){if(!e.head)return;let r=A7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Rje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(O7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Bje(e){let t=A7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ule(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Pje(e,t){let o=A7();o.styles.set(e,t);for(let r of o.documents.keys())ule(r,e,t)}typeof process>"u",Pje("e08ffbfdae",'@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);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 Ije={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},dle=(0,lle.forwardRef)(function({className:t,...o},r){return(0,om.jsxs)(om.Fragment,{children:[(0,om.jsx)(bt,{render:(0,om.jsx)(ps.Description,{}),children:(0,cle.__)("More details follow the field.")}),(0,om.jsx)("div",{ref:r,className:$(Ije.description,t),...o})]})});var fle=c(F(),1),ple=c(E(),1),mle=(0,fle.forwardRef)(function(t,o){return(0,ple.jsx)(ps.Control,{ref:o,...t})});var rm={};Ir(rm,{Item:()=>yle,Popup:()=>Tle,Portal:()=>cA,Positioner:()=>uA,Root:()=>Ble,Trigger:()=>Lle});var hle=c(F(),1);var oC=c(E(),1),L7="data-wp-hash";function N7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Aje(document)),e.__wpStyleRuntime}function Oje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${L7}]`))if(o.getAttribute(L7)===t)return!0;return!1}function gle(e,t,o){if(!e.head)return;let r=N7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Oje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(L7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Aje(e){let t=N7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)gle(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function ble(e,t){let o=N7();o.styles.set(e,t);for(let r of o.documents.keys())gle(r,e,t)}typeof process>"u",ble("5705fc490f",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);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);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;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);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var lA={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion",list:"f43dc7c768d7b622__list","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-compact":"f181b98b0d33282a__is-size-compact","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",ble("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Lje={"box-sizing":"_336cd3e4e743482f__box-sizing"},yle=(0,hle.forwardRef)(function({className:t,value:o,size:r="default",children:n,...i},s){return(0,oC.jsxs)(Wn.Item,{className:$(Lje["box-sizing"],lA.item,lA[`is-size-${r}`],t),value:o,ref:s,...i,children:[(0,oC.jsx)(ob,{icon:rs,className:$(lA["item-icon"],lA["item-indicator-icon"]),size:r==="small"?20:24}),(0,oC.jsx)(Wn.ItemText,{children:n})]})});var Cle=c(F(),1);var vle=c(F(),1);var Sle=c(E(),1),cA=(0,vle.forwardRef)(function({container:t,...o},r){return(0,Sle.jsx)(Wn.Portal,{container:t??iA(),...o,ref:r})});var kle=c(F(),1);var wle=c(E(),1),M7="data-wp-hash";function D7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Mje(document)),e.__wpStyleRuntime}function Nje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${M7}]`))if(o.getAttribute(M7)===t)return!0;return!1}function _le(e,t,o){if(!e.head)return;let r=D7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Nje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(M7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Mje(e){let t=D7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)_le(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function xle(e,t){let o=D7();o.styles.set(e,t);for(let r of o.documents.keys())_le(r,e,t)}typeof process>"u",xle("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Dje={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",xle("8c70612dd7","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}}}");var Vje={positioner:"_0ab863136fb95530__positioner"},uA=(0,kle.forwardRef)(function({className:t,...o},r){return(0,wle.jsx)(Wn.Positioner,{...Gae,alignItemWithTrigger:!1,...o,ref:r,className:$(Dje["box-sizing"],Vje.positioner,t)})});var ib=c(E(),1),F7="data-wp-hash";function z7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zje(document)),e.__wpStyleRuntime}function Fje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${F7}]`))if(o.getAttribute(F7)===t)return!0;return!1}function Ele(e,t,o){if(!e.head)return;let r=z7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Fje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(F7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function zje(e){let t=z7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ele(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function jje(e,t){let o=z7();o.styles.set(e,t);for(let r of o.documents.keys())Ele(r,e,t)}typeof process>"u",jje("5705fc490f",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);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);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;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);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var V7={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion",list:"f43dc7c768d7b622__list","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-compact":"f181b98b0d33282a__is-size-compact","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",empty:"_06c7ff39d2f685b9__empty"},Tle=(0,Cle.forwardRef)(function({className:t,portal:o,positioner:r,children:n,...i},s){let a=(0,ib.jsx)(nA,{children:(0,ib.jsx)(Wn.Popup,{ref:s,className:$(V7.popup,t),...i,children:(0,ib.jsx)(Wn.List,{className:V7.list,children:(0,ib.jsx)("div",{className:V7["list-scrollable-container"],children:n})})})}),l=bS(r,(0,ib.jsx)(uA,{}),a);return bS(o,(0,ib.jsx)(cA,{}),l)});var Rle=c(E(),1);function Ble(e){return(0,Rle.jsx)(Wn.Root,{...e})}var Ple=c(F(),1);var Ile=c(G(),1);var SS=c(E(),1),j7="data-wp-hash";function H7(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Uje(document)),e.__wpStyleRuntime}function Hje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${j7}]`))if(o.getAttribute(j7)===t)return!0;return!1}function Ole(e,t,o){if(!e.head)return;let r=H7(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Hje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(j7,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Uje(e){let t=H7();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ole(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Ale(e,t){let o=H7();o.styles.set(e,t);for(let r of o.documents.keys())Ole(r,e,t)}typeof process>"u",Ale("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 Gje={"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",Ale("7b4a0ac519","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._6e4e0445ef20426b__trigger-wrapper{&.fa98c865fb77e675__is-minimal{width:fit-content}}._7893295e3f6d1af7__trigger{align-items:center;background-color:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:inherit;font-size:inherit;gap:var(--wpds-dimension-gap-xs,4px);justify-content:space-between;line-height:1.4;padding-block:4px;padding-inline-end:calc(var(--wp-ui-input-layout-padding-inline) - 4px);padding-inline-start:var(--wp-ui-input-layout-padding-inline);text-align:start;user-select:none;width:100%;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.fa98c865fb77e675__is-minimal{width:auto}&:focus{outline:none}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}.e760c9339965ce84__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;._7893295e3f6d1af7__trigger[data-placeholder] &{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}._308bc63e43681f99__trigger-caret{flex:0 0 auto}}}");var vS={"trigger-wrapper":"_6e4e0445ef20426b__trigger-wrapper","is-minimal":"fa98c865fb77e675__is-minimal",trigger:"_7893295e3f6d1af7__trigger","trigger-value":"e760c9339965ce84__trigger-value","trigger-caret":"_308bc63e43681f99__trigger-caret"},Lle=(0,Ple.forwardRef)(function({className:t,size:o,variant:r,children:n,placeholder:i=(0,Ile.__)("Select"),...s},a){return(0,SS.jsx)(Uae,{className:$(Gje["outset-ring--focus-within-except-active"],vS["trigger-wrapper"],r==="minimal"&&vS["is-minimal"],t),size:o,isBorderless:r==="minimal",children:(0,SS.jsxs)(Wn.Trigger,{...s,className:$(vS.trigger,r==="minimal"&&vS["is-minimal"]),"data-can-disable-input-layout":!0,ref:a,children:[(0,SS.jsx)(Wn.Value,{placeholder:i,className:vS["trigger-value"],children:n}),(0,SS.jsx)(ob,{className:vS["trigger-caret"],icon:cn,size:18})]})})});var Vle=c(F(),1);var dA=c(F(),1),U7=(0,dA.createContext)(void 0),Nle=()=>(0,dA.useContext)(U7);var Mle=c(F(),1);var Dle=c(E(),1),rC=(0,Mle.forwardRef)(function({size:t,...o},r){let n=Nle(),i=t??n;return(0,Dle.jsx)(rm.Item,{size:i,ref:r,...o})});var ec=c(E(),1),Fle=(0,Vle.forwardRef)(function({className:t,children:o,items:r,label:n,description:i,details:s,hideLabelFromVision:a,placeholder:l,size:u="default",triggerContent:d,...f},p){return(0,ec.jsxs)(nb.Root,{className:t,children:[(0,ec.jsx)(nb.Label,{hideFromVision:a,children:n}),(0,ec.jsxs)(rm.Root,{items:r,...f,children:[(0,ec.jsx)(rm.Trigger,{ref:p,placeholder:l,size:u,children:d}),(0,ec.jsx)(rm.Popup,{children:(0,ec.jsx)(U7.Provider,{value:u,children:o!==void 0?o:r?.map(h=>(0,ec.jsx)(rC,{value:h,label:h.label,disabled:h.disabled,children:h.label},h.value??"null"))})})]}),i&&(0,ec.jsx)(nb.Description,{children:i}),s&&(0,ec.jsx)(nb.Details,{children:s})]})});rC.displayName="SelectControl.Item";var G7=Object.assign(Fle,{Item:rC});var bm=c(G(),1),NC=c(fe(),1),Ipe=c(Q(),1);var kS=c(G(),1),_S=c(F(),1),jle=c(U(),1),nC=c(E(),1),zle=[(0,_S.createInterpolateElement)((0,kS.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,nC.jsx)("kbd",{})}),(0,_S.createInterpolateElement)((0,kS.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,nC.jsx)("kbd",{})}),(0,_S.createInterpolateElement)((0,kS.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,nC.jsx)("kbd",{})}),(0,kS.__)("Drag files into the editor to automatically insert media blocks."),(0,kS.__)("Change a block's type by pressing the block icon on the toolbar.")];function Wje(){let[e]=(0,_S.useState)(()=>Math.floor(Math.random()*zle.length));return(0,nC.jsx)(jle.Tip,{children:zle[e]})}var Hle=Wje;var HS=c(ce(),1),ufe=c(F(),1),dfe=c(G(),1);var sb=c(U(),1);var fA=c(Q(),1),Ule=c(Bt(),1),nm=c(G(),1);var Gle=c(ce(),1);var $n=c(E(),1),{Badge:$je}=H(sb.privateApis);function Kje({children:e,onClick:t}){return t?(0,$n.jsx)(sb.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}function Yje({title:e,icon:t,description:o,blockType:r,className:n,name:i,allowParentNavigation:s,parentClientId:a,isChild:l,children:u,clientId:d,controls:f}){r&&((0,Ule.default)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:o}=r);let{parentBlockClientId:p,parentBlockName:h}=(0,fA.useSelect)(b=>{if(a||l||!s)return{};let{getBlockParents:v,getBlockName:y,shouldRenderBlockListView:k}=H(b(C)),_=v(d,!1).find(x=>k(x));return{parentBlockClientId:_,parentBlockName:_?y(_):null}},[d,s,l,a]),{selectBlock:m}=(0,fA.useDispatch)(C),g=a?"div":"h2";return(0,$n.jsx)("div",{className:$("block-editor-block-card",{"is-parent":a,"is-child":l},n),children:(0,$n.jsxs)(Qe,{direction:"column",gap:"sm",children:[(0,$n.jsxs)(Qe,{direction:"row",align:"center",justify:"space-between",children:[(0,$n.jsxs)(Qe,{direction:"row",align:"center",justify:"flex-start",children:[p&&(0,$n.jsx)(sb.Button,{onClick:()=>m(p),label:h?(0,nm.sprintf)((0,nm.__)('Go to "%s" block'),(0,Gle.getBlockType)(h)?.title):(0,nm.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,nm.isRTL)()?un:Ei,size:"small"}),l&&(0,$n.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,$n.jsx)(sb.Icon,{icon:(0,nm.isRTL)()?Lx:Nx})}),(0,$n.jsxs)(Kje,{onClick:a?()=>{m(a)}:void 0,children:[(0,$n.jsx)(Tt,{icon:t,showColors:!0}),(0,$n.jsxs)(Qe,{direction:"column",gap:"xs",children:[(0,$n.jsxs)(g,{className:"block-editor-block-card__title",children:[(0,$n.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,$n.jsx)($je,{children:e})]}),u]})]})]}),f]}),!a&&!l&&o&&(0,$n.jsx)(Bd,{className:"block-editor-block-card__description",children:o})]})})}var iC=Yje;var ZA=c(fe(),1),DU=c(Q(),1),db=c(F(),1),MU=c(Bt(),1);var dce=c(Q(),1),im=c(F(),1),fce=c(U(),1),tc=c($le(),1);var Kle=c(F(),1),xS=c(Q(),1),Yle=c(fe(),1);var pA=c(E(),1);function qje(e,t,o){if(!o)return t;let r=e.get(t);return r||(r=(0,xS.createRegistry)({},t),r.registerStore(rr,pv),e.set(t,r)),r}var Zje=(0,Yle.createHigherOrderComponent)(e=>function({useSubRegistry:o=!0,...r}){let n=(0,xS.useRegistry)(),[i]=(0,Kle.useState)(()=>new WeakMap),s=qje(i,n,o);return s===n?(0,pA.jsx)(e,{registry:n,...r}):(0,pA.jsx)(xS.RegistryProvider,{value:s,children:(0,pA.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),qle=Zje;var Mi=c(F(),1),Jle=c(Q(),1),ece=c(ce(),1);var Zle=c(F(),1),Xje=()=>{},mA=(0,Zle.createContext)({getSelection:()=>{},onChangeSelection:Xje});var Xle=()=>{};function tce(e,t){let o=(0,ece.cloneBlock)(e);return t.externalToInternal.set(e.clientId,o.clientId),t.internalToExternal.set(o.clientId,e.clientId),e.innerBlocks?.length&&(o.innerBlocks=e.innerBlocks.map(r=>tce(r,t))),o}function oce(e,t){return e.map(o=>{let r=t.internalToExternal.get(o.clientId);return{...o,clientId:r??o.clientId,innerBlocks:oce(o.innerBlocks,t)}})}function Qle(e,t){let{selectionStart:o,selectionEnd:r,initialPosition:n}=e,i=s=>{if(!s?.clientId)return s;let a=t.internalToExternal.get(s.clientId);return{...s,clientId:a??s.clientId}};return{selectionStart:i(o),selectionEnd:i(r),initialPosition:n}}function hA({clientId:e=null,value:t,onChange:o=Xle,onInput:r=Xle}){let n=(0,Jle.useRegistry)(),{getSelection:i,onChangeSelection:s}=(0,Mi.useContext)(mA),{resetBlocks:a,resetSelection:l,replaceInnerBlocks:u,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(C),{getBlockName:p,getBlocks:h,getSelectionStart:m,getSelectionEnd:g}=n.select(C),b=(0,Mi.useRef)({incoming:null,outgoing:[]}),v=(0,Mi.useRef)(!1),y=(0,Mi.useRef)({externalToInternal:new Map,internalToExternal:new Map}),k=(0,Mi.useRef)(null),S=(0,Mi.useRef)(!1),_=()=>{let B=i();if(!B?.selectionStart?.clientId||B===k.current)return;let I=B.selectionStart.clientId;if(e?y.current.externalToInternal.has(I):!!p(I)){k.current=B;let P=A=>!A?.clientId||!e?A:{...A,clientId:y.current.externalToInternal.get(A.clientId)??A.clientId};S.current=!0,l(P(B.selectionStart),P(B.selectionEnd),B.initialPosition),S.current=!1}},x=()=>{t&&(e?n.batch(()=>{y.current.externalToInternal.clear(),y.current.internalToExternal.clear();let B=t.map(I=>tce(I,y.current));f(),d(e,!0),v.current&&(b.current.incoming=B),f(),u(e,B),k.current=null}):(v.current&&(b.current.incoming=t),f(),a(t)))},w=()=>{e?(f(),d(e,!1),f(),u(e,[])):(f(),a([]))},T=(0,Mi.useRef)(r),R=(0,Mi.useRef)(o);(0,Mi.useEffect)(()=>{T.current=r,R.current=o},[r,o]),(0,Mi.useEffect)(()=>{let B=b.current.outgoing.includes(t),I=h(e)===t;B?b.current.outgoing[b.current.outgoing.length-1]===t&&(b.current.outgoing=[]):I||(b.current.outgoing=[],x(),_())},[t,e]),(0,Mi.useEffect)(()=>{let{getSelectedBlocksInitialCaretPosition:B,isLastBlockChangePersistent:I,__unstableGetLastBlockChangeHistoryMode:O,__unstableIsLastBlockChangeIgnored:P,areInnerBlocksControlled:A,getBlockParents:M}=n.select(C),z=h(e),V=I(),L=O(),D=!1,N=m(),j=g();v.current=!0;let X=n.subscribe(()=>{if(e!==null&&p(e)===null)return;let J=I(),te=O(),ee=h(e),W=ee!==z;if(z=ee,W&&(b.current.incoming||P())){b.current.incoming=null,V=J,L=te;return}let Y=W||D&&!W&&J&&!V,Z=m(),oe=g(),ie=Z!==N||oe!==j;ie&&(N=Z,j=oe),(Y||ie)&&n.batch(()=>{if(Y){V=J,L=te;let q=e?oce(z,y.current):z,re={selectionStart:Z,selectionEnd:oe,initialPosition:B()},ae=e?Qle(re,y.current):re;b.current.outgoing.push(q);let ye=V?R.current:T.current,xe={selection:ae};L==="ignore"&&(xe.undoIgnore=!0),ye(q,xe)}if(ie&&!Y&&Z?.clientId&&!S.current&&(e?y.current.internalToExternal.has(Z.clientId):!M(Z.clientId).some(re=>A(re)))){let re={selectionStart:Z,selectionEnd:oe,initialPosition:B()};s(e?Qle(re,y.current):re)}}),D=W},C);return()=>{v.current=!1,X()}},[n,e]),(0,Mi.useEffect)(()=>()=>{w()},[])}var rce=c(F(),1),nce=c(Q(),1),ice=c($l(),1),Vr=c(G(),1);function sce(){return null}function Qje(){let{registerShortcut:e,unregisterShortcut:t}=(0,nce.useDispatch)(ice.store),[o]=Le("blockVisibility.allowEditing");return(0,rce.useEffect)(()=>{e({name:"core/block-editor/copy",category:"block",description:(0,Vr.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,Vr.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,Vr.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,Vr.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,Vr.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,Vr.__)("Paste the copied style to the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"v"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,Vr.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,Vr.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:(0,Vr.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,Vr.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,Vr.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:(0,Vr.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,Vr.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,Vr.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,Vr.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,Vr.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,Vr.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,Vr.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),o===!1?t("core/block-editor/toggle-block-visibility"):e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,Vr.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,Vr.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e,t,o]),null}sce.Register=Qje;var gA=sce;var ace=c(F(),1);function Jje(e={}){return(0,ace.useMemo)(()=>({mediaUpload:e.mediaUpload,mediaSideload:e.mediaSideload,mediaFinalize:e.mediaFinalize,mediaDelete:e.mediaDelete,maxUploadFileSize:e.maxUploadFileSize,allowedMimeTypes:e.allowedMimeTypes,allImageSizes:e.allImageSizes,bigImageSizeThreshold:e.bigImageSizeThreshold,imageStripMeta:e.imageStripMeta,imageMaxBitDepth:e.imageMaxBitDepth}),[e])}var lce=Jje;var Id=c(E(),1),bA=()=>{},cce=!1,wS=null,CS=null,uce=["image/heic","image/heif"];function pce(){if(wS!==null)return wS;if(!window.__clientSideMediaProcessing||typeof tc.detectClientSideMediaSupport!="function")return wS=!1,!1;let e=(0,tc.detectClientSideMediaSupport)();return!e||!e.supported?(cce||(console.info(`Client-side media processing unavailable: ${e.reason}. Using server-side processing.`),cce=!0),wS=!1,!1):(wS=!0,!0)}function e8e(){return CS!==null?CS:pce()||!window.__clientSideMediaProcessing||typeof tc.isHeicCanvasSupported!="function"||!(0,tc.isHeicCanvasSupported)()?(CS=!1,!1):(CS=!0,!0)}function t8e(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=bA,onFileChange:s,onSuccess:a,onBatchSuccess:l}){e.dispatch(tc.store).addItems({files:Array.from(n),onChange:s,onSuccess:u=>{t?.[Ix]?.(u),a?.(u)},onBatchSuccess:l,onError:u=>i(typeof u=="string"?u:u?.message??""),additionalData:r,allowedTypes:o})}function o8e(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=bA,onFileChange:s,onSuccess:a,onBatchSuccess:l}){let u=Array.from(n),d=u.filter(g=>uce.includes(g.type)),f=u.filter(g=>!uce.includes(g.type)),p=d.length>0&&f.length>0&&t?.mediaUpload,h=p?2:1,m=p?()=>{h--,h<=0&&l?.()}:l;d.length>0&&e.dispatch(tc.store).addItems({files:d,onChange:s,onSuccess:g=>{t?.[Ix]?.(g),a?.(g)},onBatchSuccess:m,onError:g=>i(typeof g=="string"?g:g?.message??""),additionalData:r,allowedTypes:o}),f.length>0&&t?.mediaUpload&&t.mediaUpload({allowedTypes:o,additionalData:r,filesList:f,onError:i,onFileChange:s,onSuccess:a,onBatchSuccess:m})}function r8e(e){return hA(e),null}var ES=qle(e=>{let{settings:t,registry:o,stripExperimentalSettings:r=!1}=e,n=lce(t),i=pce(),s=e8e(),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,u=(0,im.useMemo)(()=>{if(a&&t?.mediaUpload&&!l){let v=(i?t8e:o8e).bind(null,o,t);return v.__isMediaUploadInterceptor=!0,{...t,mediaUpload:v}}return t},[t,o,a,i,l]),{__experimentalUpdateSettings:d}=H((0,dce.useDispatch)(C));(0,im.useEffect)(()=>{d({...u,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[u,r,d]);let f=(0,im.useRef)(e.selection);f.current=e.selection;let p=(0,im.useRef)(e.onChangeSelection??bA);p.current=e.onChangeSelection??bA;let h=(0,im.useMemo)(()=>({getSelection:()=>f.current,onChangeSelection:(...b)=>p.current(...b)}),[]),m=(0,Id.jsxs)(fce.SlotFillProvider,{passthrough:!0,children:[!u?.isPreviewMode&&(0,Id.jsx)(gA.Register,{}),(0,Id.jsx)(RQ,{children:e.children})]}),g=(0,Id.jsxs)(mA.Provider,{value:h,children:[(0,Id.jsx)(r8e,{clientId:e.clientId,value:e.value,onChange:e.onChange,onInput:e.onInput}),m]});return a&&!l?(0,Id.jsx)(tc.MediaUploadProvider,{settings:n,useSubRegistry:!1,children:g}):g}),n8e=e=>(0,Id.jsx)(ES,{...e,stripExperimentalSettings:!0,children:e.children}),mce=n8e;var CC=c(fe(),1),efe=c(Q(),1),qA=c(F(),1),tfe=c(U(),1);var tue=c(ue(),1),ab=c(F(),1),oue=c(G(),1),Ad=c(fe(),1),rue=c(U(),1),Q7=c(Q(),1);var qce=c(Q(),1),Z7=c(G(),1),dC=c(fe(),1),Zce=c(F(),1);var sC=c(Q(),1),hce=c(fe(),1),gce=c(ce(),1);function W7(e,t){let{getBlockName:o,getBlockEditingMode:r,getBlockMode:n,getBlockRootClientId:i,getBlockOrder:s}=e;if(!t||r(t)!=="default"||n(t)!=="visual"||!(0,gce.hasBlockSupport)(o(t),"editableRoot",!1))return!1;let a=s(i(t));return a.length>1&&a.every(l=>r(l)==="default")}function $7(){return(0,sC.useSelect)(e=>{let t=e(C);return W7(t,t.getSelectedBlockClientId())},[])}function bce(){let e=(0,sC.useRegistry)(),t=(0,sC.useSelect)(r=>H(r(C)).isZoomOut(),[]),o=$7()&&!t;return(0,hce.useRefEffect)(r=>{if(!o)return;let{getSelectedBlockClientId:n,hasMultiSelection:i,isMultiSelecting:s}=e.select(C);if(!ir(r,!0,{focus:!1}))return;let{activeElement:a}=r.ownerDocument,l=r.ownerDocument.defaultView.getSelection();return a!==r&&a?.isContentEditable&&r.contains(a)&&Sr(a)===n()&&l.anchorNode&&a.contains(l.anchorNode)&&r.focus(),()=>{if(!(i()||s())&&(ir(r,!1),r.ownerDocument.activeElement===r)){let u=La(r.ownerDocument.defaultView.getSelection(),r);u&&Sr(u)===n()&&u.focus()}}},[o,e])}var aC=c(so(),1),yce=c(Q(),1),vce=c(fe(),1);function Sce(){let{hasMultiSelection:e}=(0,yce.useSelect)(C);return(0,vce.useRefEffect)(t=>{function o(r){if(r.defaultPrevented||r.keyCode!==aC.HOME&&r.keyCode!==aC.END||r.metaKey||r.ctrlKey||r.altKey||!r.target.isContentEditable||e())return;let n=t.ownerDocument.defaultView.getSelection();La(n,t)&&(r.preventDefault(),n.modify(r.shiftKey?"extend":"move",r.keyCode===aC.HOME?"backward":"forward","lineboundary"))}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[])}var kce=c(fe(),1),_ce=c(Q(),1);function i8e(e){let{isMultiSelecting:t,getMultiSelectedBlockClientIds:o,hasMultiSelection:r,getSelectedBlockClientId:n,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(C);return{isMultiSelecting:t(),multiSelectedBlockClientIds:o(),hasMultiSelection:r(),selectedBlockClientId:n(),initialPosition:i(),isFullSelection:s()}}function xce(){let{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:o,hasMultiSelection:r,selectedBlockClientId:n,isFullSelection:i}=(0,_ce.useSelect)(i8e,[]);return(0,kce.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;if(e==null||!r||t)return;let{length:u}=o;u<2||i&&(ir(s,!0),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var TS=c(Rt(),1),K7=c(so(),1),yA=c(Q(),1),vA=c(fe(),1),lC=c(F(),1);var Y7=c(E(),1);function wce(){let e=(0,lC.useRef)(),t=(0,lC.useRef)(),o=(0,lC.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:n,getBlockCount:i,getBlockOrder:s,getLastFocus:a,getSectionRootClientId:l,isZoomOut:u}=H((0,yA.useSelect)(C)),{setLastFocus:d}=H((0,yA.useDispatch)(C)),f=(0,lC.useRef)();function p(v){let y=e.current.ownerDocument===v.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement;if(f.current)f.current=null;else if(r())e.current.focus();else if(n())a()?.current?a().current.focus():e.current.querySelector(`[data-block="${n()}"]`).focus();else if(u()){let k=l(),S=s(k);S.length?e.current.querySelector(`[data-block="${S[0]}"]`).focus():k?e.current.querySelector(`[data-block="${k}"]`).focus():y.focus()}else{let k=v.target.compareDocumentPosition(y)&v.target.DOCUMENT_POSITION_FOLLOWING,S=TS.focus.tabbable.find(e.current);S.length&&(k?S[0]:S[S.length-1]).focus()}}let h=(0,Y7.jsx)("div",{ref:t,tabIndex:"0",onFocus:p}),m=(0,Y7.jsx)("div",{ref:o,tabIndex:"0",onFocus:p}),g=(0,vA.useRefEffect)(v=>{function y(w){if(w.defaultPrevented||w.keyCode!==K7.TAB||!o.current||!t.current)return;let{target:T,shiftKey:R}=w,B=R?"findPrevious":"findNext",I=TS.focus.tabbable[B](T),O=T.closest("[data-block]"),P=O&&I&&(kee(O,I)||Qc(O,I));if((0,TS.isFormElement)(I)&&P)return;let A=R?t:o;f.current=!0,A.current.focus({preventScroll:!0})}function k(w){d({...a(),current:w.target});let{ownerDocument:T}=v;!w.relatedTarget&&w.target.hasAttribute("data-block")&&T.activeElement===T.body&&i()===0&&v.focus()}function S(w){if(w.keyCode!==K7.TAB||w.target?.getAttribute("role")==="region"||e.current===w.target)return;let R=w.shiftKey?"findPrevious":"findNext",B=TS.focus.tabbable[R](w.target);(B===t.current||B===o.current)&&(w.preventDefault(),B.focus({preventScroll:!0}))}let{ownerDocument:_}=v,{defaultView:x}=_;return x.addEventListener("keydown",S),v.addEventListener("keydown",y),v.addEventListener("focusout",k),()=>{x.removeEventListener("keydown",S),v.removeEventListener("keydown",y),v.removeEventListener("focusout",k)}},[]),b=(0,vA.useMergeRefs)([e,g]);return[h,b,m]}var Fr=c(Rt(),1),cu=c(so(),1),SA=c(Q(),1),Cce=c(fe(),1);function s8e(e,t,o){let r=t===cu.UP||t===cu.DOWN,{tagName:n}=e,i=e.getAttribute("type");return r&&!o?n==="INPUT"?!["date","datetime-local","month","number","range","time","week"].includes(i):!0:n==="INPUT"?["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i):n!=="TEXTAREA"}function q7(e,t,o,r){let n=Fr.focus.focusable.find(o);t&&n.reverse(),n=n.slice(n.indexOf(e)+1);let i;r&&(i=e.getBoundingClientRect());function s(a){if(a.contentEditable!=="true"&&Sr(a)&&Fr.focus.focusable.find(a).filter(l=>!(0,Fr.isFormElement)(l)).length!==0||!Fr.focus.tabbable.isTabbableIndex(a)||a.isContentEditable&&a.contentEditable!=="true"&&Sr(a.closest('[contenteditable="true"]')))return!1;if(r){let l=a.getBoundingClientRect();if(l.left>=i.right||l.right<=i.left)return!1}return!0}return n.find(s)}function Ece(){let{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:o,hasMultiSelection:r,__unstableIsFullySelected:n}=(0,SA.useSelect)(C),{selectBlock:i}=(0,SA.useDispatch)(C);return(0,Cce.useRefEffect)(s=>{let a;function l(){a=null}function u(f,p){let h=q7(f,p,s);return h&&Sr(h)}function d(f){if(f.defaultPrevented)return;let{keyCode:p,shiftKey:h,ctrlKey:m,altKey:g,metaKey:b}=f,v=f.target===s&&La(s.ownerDocument.defaultView.getSelection(),s)||f.target,y=p===cu.UP,k=p===cu.DOWN,S=p===cu.LEFT,_=p===cu.RIGHT,x=y||S,w=S||_,T=y||k,R=w||T,B=h||m||g||b,I=T?Fr.isVerticalEdge:Fr.isHorizontalEdge,{ownerDocument:O}=s,{defaultView:P}=O;if(!R||o().isPreviewMode)return;if(r()){if(h||!n())return;f.preventDefault(),x?i(e()):i(t(),-1);return}if(!s8e(v,p,B))return;T?a||(a=(0,Fr.computeCaretRect)(P)):a=null;let A=(0,Fr.isRTL)(v)?!x:x,{keepCaretInsideBlock:M}=o();if(h)I(v,x)&&(u(v,x)?ir(s,!0):s.contentEditable==="true"&&(P.getSelection().extend(v,x?0:v.childNodes.length),f.preventDefault()));else if(T&&(0,Fr.isVerticalEdge)(v,x)&&(!g||(0,Fr.isHorizontalEdge)(v,A))&&!M){let z=q7(v,x,s,!0);z&&((0,Fr.placeCaretAtVerticalEdge)(z,g?!x:x,g?void 0:a),f.preventDefault())}else if(w&&P.getSelection().isCollapsed&&(0,Fr.isHorizontalEdge)(v,A)&&!M){let z=q7(v,A,s);(0,Fr.placeCaretAtHorizontalEdge)(z,x),f.preventDefault()}}return s.addEventListener("mousedown",l),s.addEventListener("keydown",d),()=>{s.removeEventListener("mousedown",l),s.removeEventListener("keydown",d)}},[])}var Tce=c(fe(),1),Rce=c(Q(),1),uu=c(so(),1);function Bce(){let e=(0,Rce.useSelect)(t=>t(C).getSettings().isPreviewMode,[]);return(0,Tce.useRefEffect)(t=>{if(!e)return;function o(r){let{keyCode:n,shiftKey:i,target:s}=r,a=n===uu.TAB,l=n===uu.UP,u=n===uu.DOWN,d=n===uu.LEFT;if(!a&&!(l||u||d||n===uu.RIGHT))return;let h=a?i:l||d,m=Array.from(t.querySelectorAll("[data-block]"));if(!m.length)return;let g=s.closest("[data-block]"),b=g?m.indexOf(g):-1;if(b===-1||a&&(h&&b===0||!h&&b===m.length-1))return;let v;h?v=b<=0?m.length-1:b-1:v=b===-1||b>=m.length-1?0:b+1,r.preventDefault(),m[v].focus()}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[e])}var Pce=c(Rt(),1),kA=c(Q(),1),Ice=c($l(),1),Oce=c(fe(),1);function Ace(){let{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:o}=(0,kA.useSelect)(C),{multiSelect:r,selectBlock:n}=(0,kA.useDispatch)(C),i=(0,Ice.__unstableUseShortcutEventMatch)();return(0,Oce.useRefEffect)(s=>{function a(l){if(!i("core/block-editor/select-all",l))return;let u=t(),{ownerDocument:d}=s,f=d.defaultView.getSelection(),p=l.target===s&&La(f,s)||l.target;if(u.length<2&&!(0,Pce.isEntirelySelected)(p)){if(l.target===s&&p!==s){l.preventDefault();let v=d.createRange();v.selectNodeContents(p),f.removeAllRanges(),f.addRange(v),d.dispatchEvent(new Event("selectionchange"))}return}l.preventDefault();let[h]=u,m=Sr(d.activeElement);if(m&&m!==h&&!Qc(d.getElementById("block-"+h),d.activeElement)){n(m);return}let g=o(h),b=e(g);if(u.length===b.length){g&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),n(g));return}r(b[0],b[b.length-1])}return s.addEventListener("keydown",a),()=>{s.removeEventListener("keydown",a)}},[])}var _A=c(Q(),1),Lce=c(fe(),1);function Nce(){let{startMultiSelect:e,stopMultiSelect:t}=(0,_A.useDispatch)(C),{getSettings:o,isSelectionEnabled:r,hasSelectedBlock:n,isDraggingBlocks:i,isMultiSelecting:s}=(0,_A.useSelect)(C);return(0,Lce.useRefEffect)(a=>{let{ownerDocument:l}=a,{defaultView:u}=l,d,f;function p(){t(),u.removeEventListener("mouseup",p),f=u.requestAnimationFrame(()=>{if(!n())return;ir(a,!1);let b=u.getSelection();if(b.rangeCount){let v=b.getRangeAt(0),{commonAncestorContainer:y}=v,k=v.cloneRange();d.contains(y)&&(d.focus(),b.removeAllRanges(),b.addRange(k))}})}let h;function m({target:b}){h=b}function g({buttons:b,target:v,relatedTarget:y}){v.contains(h)&&(v.contains(y)||i()||b===1&&(s()||a!==v&&(v.getAttribute("contenteditable")!=="true"&&!o().isPreviewMode||r()&&(d=v,e(),u.addEventListener("mouseup",p),ir(a,!0)))))}return a.addEventListener("mouseout",g),a.addEventListener("mousedown",m),()=>{a.removeEventListener("mouseout",g),u.removeEventListener("mouseup",p),u.cancelAnimationFrame(f)}},[e,t,r,n])}var wA=c(Q(),1),Vce=c(fe(),1),RS=c($o(),1),Fce=c(Rt(),1);var{ownsSelection:a8e}=H(RS.privateApis);function Mce(e){let{anchorNode:t,anchorOffset:o}=e;return t.nodeType===t.TEXT_NODE||o===0?t:t.childNodes[o-1]}function Dce(e,t){let{focusNode:o,focusOffset:r}=e;return o.nodeType===o.TEXT_NODE||r===o.childNodes.length?o:r===0&&(0,Fce.isSelectionForward)(e)&&t?o.previousSibling??o.parentElement:o.childNodes[r]}function l8e(e,t){let o=0;for(;e[o]===t[o];)o++;return o}function xA(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function zce(){let{multiSelect:e,selectBlock:t,selectionChange:o}=(0,wA.useDispatch)(C),r=(0,wA.useSelect)(C),{getBlockParents:n,getBlockSelectionStart:i,isMultiSelecting:s,getSelectionStart:a,getSelectionEnd:l,getSelectedBlockClientId:u}=r;return(0,Vce.useRefEffect)(d=>{let{ownerDocument:f}=d,{defaultView:p}=f,h=!1;function m(k){h=k.detail===3,tI(k.shiftKey)}function g(){h=!1,tI(!1)}function b(k){let S=p.getSelection();if(!S.rangeCount)return;let _=Mce(S),x=Dce(S,h);if(!d.contains(_)||!d.contains(x))return;let w=k.shiftKey&&k.type==="mouseup";if(S.isCollapsed&&!w){let I=Sr(_);if(!s()&&I&&I===u()&&W7(r,I)){ir(d,!0);let{activeElement:O}=f;O!==d&&O?.isContentEditable&&d.contains(O)&&Sr(O)===I&&d.focus();return}if(d.contentEditable==="true"&&!s()){ir(d,!1);let O=_.nodeType===_.ELEMENT_NODE?_:_.parentElement;O=O?.closest("[contenteditable]"),O?.focus()}return}let T=Sr(_),R=Sr(x);if(w){let I=i(),O=Sr(k.target),P=O!==R;(T===R&&S.isCollapsed||!R||P)&&(R=O),T!==I&&(T=I)}if(T===void 0&&R===void 0){ir(d,!1);return}if(k.type==="mouseup"&&!k.shiftKey&&!s()&&T===R){let I=Sr(k.target);if(I&&I!==T){S.removeAllRanges();return}}if(T===R)if(s())e(T,T);else{let I=!S.isCollapsed&&(xA(_)||xA(x));if(I&&(I.contentEditable!=="true"||f.activeElement!==I&&!a8e(I))){let O=S.getRangeAt(0),P=(0,RS.create)({element:I,range:O,__unstableIsEditableTree:!0}),A={start:{clientId:T,attributeKey:I.dataset.wpBlockAttributeKey,offset:P.start??0},end:{clientId:T,attributeKey:I.dataset.wpBlockAttributeKey,offset:P.end??P.text.length}},{start:M,end:z}=A,V=a(),L=l();(V.clientId!==M.clientId||L.clientId!==z.clientId||V.attributeKey!==M.attributeKey||V.offset!==M.offset||L.offset!==z.offset)&&o(A)}else t(T)}else{let I=[...n(T),T],O=[...n(R),R],P=l8e(I,O);if(!(P>=I.length||P>=O.length)&&(I[P]!==T||O[P]!==R)){e(I[P],O[P]);return}let M=xA(_),z=xA(x);if(M&&z){let V=S.getRangeAt(0),L=(0,RS.create)({element:M,range:V,__unstableIsEditableTree:!0}),D=(0,RS.create)({element:z,range:V,__unstableIsEditableTree:!0}),N=L.start??L.end,j=D.start??D.end;o({start:{clientId:T,attributeKey:M.dataset.wpBlockAttributeKey,offset:N},end:{clientId:R,attributeKey:z.dataset.wpBlockAttributeKey,offset:j}})}else e(T,R)}}function v(k){let S=p.getSelection();if(!S.rangeCount||S.isCollapsed)return;let _=Sr(Mce(S)),x=Sr(Dce(S,h));_!==x&&b(k)}f.addEventListener("selectionchange",b);function y(k){b(k),tI(!1)}return p.addEventListener("mouseup",y),d.addEventListener("mousedown",m),d.addEventListener("keydown",g),f.addEventListener("copy",v,!0),f.addEventListener("cut",v,!0),f.addEventListener("paste",v,!0),()=>{f.removeEventListener("selectionchange",b),p.removeEventListener("mouseup",y),d.removeEventListener("mousedown",m),d.removeEventListener("keydown",g),f.removeEventListener("copy",v,!0),f.removeEventListener("cut",v,!0),f.removeEventListener("paste",v,!0)}},[e,t,o,n])}var CA=c(Q(),1),jce=c(fe(),1);function Hce(){let{selectBlock:e}=(0,CA.useDispatch)(C),{isSelectionEnabled:t,getBlockSelectionStart:o,hasMultiSelection:r}=(0,CA.useSelect)(C);return(0,jce.useRefEffect)(n=>{function i(s){if(!t()||s.button!==0)return;let a=o(),l=Sr(s.target);s.shiftKey?a&&a!==l&&ir(n,!0):r()&&e(l)}return n.addEventListener("mousedown",i),()=>{n.removeEventListener("mousedown",i)}},[e,t,o,r])}var EA=c(Q(),1),Uce=c(fe(),1),Od=c(so(),1),oc=c(ce(),1);function Gce(){let{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:o,__unstableIsSelectionMergeable:r,hasMultiSelection:n,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:a,getSelectionStart:l,getSelectionEnd:u,getBlockAttributes:d}=(0,EA.useSelect)(C),{replaceBlocks:f,__unstableSplitSelection:p,removeBlocks:h,__unstableDeleteSelection:m,__unstableExpandSelection:g,__unstableMarkAutomaticChange:b}=(0,EA.useDispatch)(C);return(0,Uce.useRefEffect)(v=>{function y(_){if(v.contentEditable!=="true")return;if(n()){_.preventDefault();return}let x=v.ownerDocument.defaultView.getSelection();La(x,v)||_.preventDefault()}function k(_){if(!_.defaultPrevented){if(!n()){if(_.keyCode===Od.ENTER){if(_.shiftKey||e())return;let x=o(),w=i(x),T=l(),R=u();if(T.attributeKey===R.attributeKey){let B=d(x)[T.attributeKey],I=(0,oc.getBlockTransforms)("from").filter(({type:P})=>P==="enter"),O=(0,oc.findTransform)(I,P=>P.regExp.test(B));if(O){f(x,O.transform({content:B})),b();return}}if(!(0,oc.hasBlockSupport)(w,"splitting",!1)&&!_.__deprecatedOnSplit)return;(s((0,oc.getDefaultBlockName)(),a(x))||s(w,a(x)))&&(p(),_.preventDefault())}return}_.keyCode===Od.ENTER?(ir(v,!1),_.preventDefault(),e()?f(t(),(0,oc.createBlock)((0,oc.getDefaultBlockName)())):p()):_.keyCode===Od.BACKSPACE||_.keyCode===Od.DELETE?(ir(v,!1),_.preventDefault(),e()?h(t()):r()?m(_.keyCode===Od.DELETE):g()):_.key.length===1&&!(_.metaKey||_.ctrlKey)&&(ir(v,!1),r()?m(_.keyCode===Od.DELETE):(_.preventDefault(),v.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function S(_){n()&&(ir(v,!1),r()?m():(_.preventDefault(),v.ownerDocument.defaultView.getSelection().removeAllRanges()))}return v.addEventListener("beforeinput",y),v.addEventListener("keydown",k),v.addEventListener("compositionstart",S),()=>{v.removeEventListener("beforeinput",y),v.removeEventListener("keydown",k),v.removeEventListener("compositionstart",S)}},[])}var du=c(ce(),1),TA=c(Rt(),1),PS=c(Q(),1),Yce=c(fe(),1);var Wce=c(F(),1),$ce=c(ce(),1),cC=c(Q(),1),$a=c(G(),1),Kce=c(ss(),1);function BS(){let{getBlockName:e}=(0,cC.useSelect)(C),{getBlockType:t}=(0,cC.useSelect)($ce.store),{createSuccessNotice:o}=(0,cC.useDispatch)(Kce.store);return(0,Wce.useCallback)((r,n)=>{let i="";if(r==="copyStyles")i=(0,$a.__)("Styles copied to clipboard.");else if(n.length===1){let s=n[0],a=t(e(s))?.title;r==="copy"?i=(0,$a.sprintf)((0,$a.__)('Copied "%s" to clipboard.'),a):i=(0,$a.sprintf)((0,$a.__)('Moved "%s" to clipboard.'),a)}else r==="copy"?i=(0,$a.sprintf)((0,$a._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",n.length),n.length):i=(0,$a.sprintf)((0,$a._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",n.length),n.length);o(i,{type:"snackbar"})},[o,e,t])}function uC(){let e=(0,PS.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:o,hasMultiSelection:r,getSettings:n,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:f}=(0,PS.useSelect)(C),{flashBlock:p,removeBlocks:h,replaceBlocks:m,__unstableDeleteSelection:g,__unstableExpandSelection:b,__unstableSplitSelection:v}=(0,PS.useDispatch)(C),y=BS();return(0,Yce.useRefEffect)(k=>{function S(_){if(_.defaultPrevented)return;let x=o();if(x.length===0)return;if(!r()){let{target:I}=_,{ownerDocument:O}=I;if(_.type==="copy"||_.type==="cut"?(0,TA.documentHasUncollapsedSelection)(O):(0,TA.documentHasSelection)(O)&&!O.activeElement.isContentEditable)return}let{activeElement:w}=_.target.ownerDocument;if(!k.contains(w))return;let T=l(),R=a()||s(),B=!R&&!T;if(_.type==="copy"||_.type==="cut")if(_.preventDefault(),x.length===1&&p(x[0]),B)b();else{y(_.type,x);let I;if(R)I=t(x);else{let[O,P]=u(),A=t(x.slice(1,x.length-1));I=[O,...A,P]}eI(_,I,e)}if(_.type==="cut")R&&!B?h(x):(ir(_.target.ownerDocument.activeElement,!1),g());else if(_.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:I,mediaUpload:O}=n();if(_.clipboardData.getData("rich-text")==="true")return;let{plainText:A,html:M,files:z}=Mv(_),V=s(),L=[];if(z.length){if(!O){_.preventDefault();return}let X=(0,du.getBlockTransforms)("from");L=z.reduce((J,te)=>{let ee=(0,du.findTransform)(X,W=>W.type==="files"&&W.isMatch([te]));return ee&&J.push(ee.transform([te])),J},[]).flat()}else L=(0,du.pasteHandler)({HTML:M,plainText:A,mode:V?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:I});if(typeof L=="string")return;if(V){m(x,L,L.length-1,-1),_.preventDefault();return}if(!r()&&!(0,du.hasBlockSupport)(i(x[0]),"splitting",!1)&&!_.__deprecatedOnSplit)return;let[D]=x,N=f(D),j=[];for(let X of L)if(d(X.name,N))j.push(X);else{let J=i(N),te=X.name!==J?(0,du.switchToBlockType)(X,J):[X];if(!te)return;for(let ee of te)for(let W of ee.innerBlocks)j.push(W)}v(j),_.preventDefault()}}return k.ownerDocument.addEventListener("copy",S),k.ownerDocument.addEventListener("cut",S),k.ownerDocument.addEventListener("paste",S),()=>{k.ownerDocument.removeEventListener("copy",S),k.ownerDocument.removeEventListener("cut",S),k.ownerDocument.removeEventListener("paste",S)}},[])}var IS=c(E(),1);function X7(){let[e,t,o]=wce(),r=(0,qce.useSelect)(n=>n(C).hasMultiSelection(),[]);return[e,(0,dC.useMergeRefs)([t,Fee(),uC(),Gce(),bce(),Sce(),Nce(),zce(),Hce(),xce(),Ace(),Ece(),Bce(),(0,dC.useRefEffect)(n=>(n.tabIndex=0,n.dataset.hasMultiSelection=r,r?(n.setAttribute("aria-label",(0,Z7.__)("Multiple selected blocks")),()=>{delete n.dataset.hasMultiSelection,n.contentEditable==="true"?n.setAttribute("aria-label",(0,Z7.__)("Editor canvas")):n.removeAttribute("aria-label")}):()=>{delete n.dataset.hasMultiSelection}),[r])]),o]}function c8e({children:e,...t},o){let[r,n,i]=X7();return(0,IS.jsxs)(IS.Fragment,{children:[r,(0,IS.jsx)("div",{...t,ref:(0,dC.useMergeRefs)([n,o]),className:$(t.className,"block-editor-writing-flow"),children:e}),i]})}var RA=(0,Zce.forwardRef)(c8e);var BA=null;function Xce(){return BA||(BA=Array.from(document.styleSheets).reduce((e,t)=>{try{t.cssRules}catch{return e}let{ownerNode:o,cssRules:r}=t;if(o===null||!r||o.id.startsWith("wp-")||!o.id)return e;function n(i){return Array.from(i).find(({selectorText:s,conditionText:a,cssRules:l})=>a?n(l):s&&(s.includes(".editor-styles-wrapper")||s.includes(".wp-block")))}if(n(r)){let i=o.tagName==="STYLE";if(i){let s=o.id.replace("-inline-css","-css"),a=document.getElementById(s);a&&e.push(a.cloneNode(!0))}if(e.push(o.cloneNode(!0)),!i){let s=o.id.replace("-css","-inline-css"),a=document.getElementById(s);a&&e.push(a.cloneNode(!0))}}return e},[]),BA)}var hs=c(F(),1),fC=c(fe(),1);function Qce({frameSize:e,containerWidth:t,maxContainerWidth:o,scaleContainerWidth:r}){return(Math.min(t,o)-e*2)/r}function u8e(e,t){let{scaleValue:o,scrollHeight:r}=e,{frameSize:n,scaleValue:i}=t;return r*(i/o)+n*2}function d8e(e,t){let{containerHeight:o,frameSize:r,scaleValue:n,scrollTop:i}=e,{containerHeight:s,frameSize:a,scaleValue:l,scrollHeight:u}=t,d=i;d=(d+o/2-r)/n-o/2,d=(d+s/2)*l+a-s/2,d=i<=r?0:d;let f=u-s;return Math.round(Math.min(Math.max(0,d),Math.max(0,f)))}function f8e(e,t){let{scaleValue:o,frameSize:r,scrollTop:n}=e,{scaleValue:i,frameSize:s,scrollTop:a}=t;return[{translate:"0 0",scale:o,paddingTop:`${r/o}px`,paddingBottom:`${r/o}px`},{translate:`0 ${n-a}px`,scale:i,paddingTop:`${s/i}px`,paddingBottom:`${s/i}px`}]}function Jce({frameSize:e,iframeDocument:t,maxContainerWidth:o=750,scale:r}){let[n,{height:i}]=(0,fC.useResizeObserver)(),[s,{width:a,height:l}]=(0,fC.useResizeObserver)(),u=(0,hs.useRef)(0),d=r!==1,f=(0,fC.useReducedMotion)(),p=r==="auto-scaled",h=(0,hs.useRef)(!1),m=(0,hs.useRef)(null);(0,hs.useEffect)(()=>{d||(u.current=a)},[a,d]);let g=Math.max(u.current,a),b=p?Qce({frameSize:e,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:g}):r,v=(0,hs.useRef)({scaleValue:b,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),y=(0,hs.useRef)({scaleValue:b,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),k=(0,hs.useCallback)(()=>{let{scrollTop:x}=v.current,{scrollTop:w}=y.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`${x}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`${w}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",v.current.scrollHeight===v.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(f8e(v.current,y.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})},[t]),S=(0,hs.useCallback)(()=>{h.current=!1,m.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",y.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${y.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=y.current.scrollTop,t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior"),v.current=y.current},[t]),_=(0,hs.useRef)(!1);return(0,hs.useEffect)(()=>{if(!t)return;let x=_.current!==d;if(_.current=d,!!x&&(h.current=!0,!!d))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}},[t,d]),(0,hs.useEffect)(()=>{if(t&&(p&&v.current.scaleValue!==1&&(v.current.scaleValue=Qce({frameSize:v.current.frameSize,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:a})),b<1&&(h.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",b),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${e}px`)),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`${i}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`${l}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`${a}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale-container-width",`${g}px`)),h.current))if(h.current=!1,m.current){m.current.reverse();let x=v.current,w=y.current;v.current=w,y.current=x}else v.current.scrollTop=t.documentElement.scrollTop,v.current.scrollHeight=t.documentElement.scrollHeight,v.current.containerHeight=l,y.current={scaleValue:b,frameSize:e,containerHeight:t.documentElement.clientHeight},y.current.scrollHeight=u8e(v.current,y.current),y.current.scrollTop=d8e(v.current,y.current),m.current=k(),f?S():m.current.onfinish=S},[k,S,f,p,b,e,t,i,a,l,o,g]),{isZoomedOut:d,scaleContainerWidth:g,contentResizeListener:n,containerResizeListener:s}}var rc=c(E(),1);function nue(e,t,o){let r={};for(let s in e)r[s]=e[s];if(e instanceof o.contentDocument.defaultView.MouseEvent){let s=o.getBoundingClientRect();r.clientX+=s.left,r.clientY+=s.top}let n=new t(e.type,r);r.defaultPrevented&&n.preventDefault(),!o.dispatchEvent(n)&&e.preventDefault()}function p8e(e){return(0,Ad.useRefEffect)(()=>{let{defaultView:t}=e;if(!t)return;let{frameElement:o}=t,r=e.documentElement,n=["dragover","mousemove"],i={};for(let s of n)i[s]=a=>{let u=Object.getPrototypeOf(a).constructor.name,d=window[u];nue(a,d,o)},r.addEventListener(s,i[s]);return()=>{for(let s of n)r.removeEventListener(s,i[s])}})}var eue=new WeakMap,m8e=globalThis.FinalizationRegistry?new globalThis.FinalizationRegistry(e=>URL.revokeObjectURL(e)):void 0;function h8e(e){let t=eue.get(e);if(t)return t;let o="";tue.version.split(".")[0]==="18"&&(o="<body><script>document.currentScript.parentElement.remove()<\/script></body>");let r=`<!doctype html>
<html>
<head>
<meta charset="utf-8">
<base href="${window.location.href}">
<style>
html{
height: auto !important;
min-height: 100%;
}
/* Lowest specificity to not override global styles */
:where(body) {
margin: 0;
/* Default background color in case zoom out mode background
colors the html element */
background-color: white;
}
</style>
${e.styles??""}
${e.scripts??""}
</head>
${o}
</html>`;return t=URL.createObjectURL(new Blob([r],{type:"text/html"})),eue.set(e,t),m8e?.register(e,t),t}function g8e({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,readonly:i,forwardedRef:s,title:a=(0,oue.__)("Editor canvas"),...l}){let{resolvedAssets:u,isPreviewMode:d}=(0,Q7.useSelect)(P=>{let A=P(C).getSettings();return{resolvedAssets:A.__unstableResolvedAssets,isPreviewMode:A.isPreviewMode}},[]),[f,p]=(0,ab.useState)(),[h,m]=(0,ab.useState)([]),[g,b,v]=X7(),y=(0,Ad.useRefEffect)(P=>{let A;function M(D){D.preventDefault()}function z(D){D.target.tagName==="A"&&D.target.getAttribute("href")?.startsWith("#")&&(D.preventDefault(),A.defaultView.location.hash=D.target.getAttribute("href").slice(1))}let{ownerDocument:V}=P;m(Array.from(V.body.classList).filter(D=>D.startsWith("admin-color-")||D.startsWith("post-type-")||D==="wp-embed-responsive"));function L(){let{contentDocument:D}=P,{documentElement:N}=D;A=D,p(D),N.classList.add("block-editor-iframe__html"),D.dir=V.dir;for(let j of Xce())D.getElementById(j.id)||(D.head.appendChild(j.cloneNode(!0)),d||console.warn(`${j.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,j));A.addEventListener("dragover",M,!1),A.addEventListener("drop",M,!1),A.addEventListener("click",z)}return P.addEventListener("load",L),()=>{p(void 0),P.removeEventListener("load",L),A?.removeEventListener("dragover",M),A?.removeEventListener("drop",M),A?.removeEventListener("click",z)}},[]),{contentResizeListener:k,containerResizeListener:S,isZoomedOut:_,scaleContainerWidth:x}=Jce({scale:r,frameSize:parseInt(n),iframeDocument:f}),w=(0,Ad.useDisabled)({isDisabled:!i}),T=(0,Ad.useMergeRefs)([p8e(f),e,b,w]),R=(0,Ad.useRefEffect)(P=>P.ownerDocument.defaultView?(T(P),()=>T(null)):()=>{},[T]),B=h8e(u),I=o>=0&&!d,O=(0,rc.jsxs)(rc.Fragment,{children:[I&&g,(0,rc.jsx)("iframe",{...l,style:{...l.style,height:l.style?.height,border:0},ref:(0,Ad.useMergeRefs)([s,y]),tabIndex:o,src:B,title:a,onKeyDown:P=>{if(l.onKeyDown&&l.onKeyDown(P),P.currentTarget.ownerDocument!==P.target.ownerDocument){let{stopPropagation:A}=P.nativeEvent;P.nativeEvent.stopPropagation=()=>{},P.stopPropagation(),P.nativeEvent.stopPropagation=A,nue(P,window.KeyboardEvent,P.currentTarget)}},children:f&&(0,ab.createPortal)((0,rc.jsxs)("body",{ref:R,className:$("block-editor-iframe__body","editor-styles-wrapper",...h),children:[k,(0,rc.jsx)(rue.__experimentalStyleProvider,{document:f,children:t})]}),f.documentElement)}),I&&v]});return(0,rc.jsxs)("div",{className:"block-editor-iframe__container",children:[S,(0,rc.jsx)("div",{className:$("block-editor-iframe__scale-container",_&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":_&&`${x}px`},children:O})]})}function b8e(e,t){return(0,Q7.useSelect)(r=>r(C).getSettings().__internalIsInitialized,[])?(0,rc.jsx)(g8e,{...e,forwardedRef:t}):null}var OS=(0,ab.forwardRef)(b8e);var Qde=c(U(),1),FS=c(F(),1),Jde=c(Q(),1);var IA={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},y8e=new Set(["combinator","comma"]);var v8e=e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(IA[e].source.replace("(?<argument>\xB6*)","(?<argument>.*)"),"gu");default:return IA[e]}};function S8e(e,t){let o=0,r="";for(;t<e.length;t++){let n=e[t];switch(n){case"(":++o;break;case")":--o;break}if(r+=n,o===0)return r}return r}function k8e(e,t=IA){if(!e)return[];let o=[e];for(let[n,i]of Object.entries(t))for(let s=0;s<o.length;s++){let a=o[s];if(typeof a!="string")continue;i.lastIndex=0;let l=i.exec(a);if(!l)continue;let u=l.index-1,d=[],f=l[0],p=a.slice(0,u+1);p&&d.push(p),d.push({...l.groups,type:n,content:f});let h=a.slice(u+f.length+1);h&&d.push(h),o.splice(s,1,...d)}let r=0;for(let n of o)switch(typeof n){case"string":throw new Error(`Unexpected sequence ${n} found at index ${r}`);case"object":r+=n.content.length,n.pos=[r-n.content.length,r],y8e.has(n.type)&&(n.content=n.content.trim()||" ");break}return o}var _8e=/(['"])([^\\\n]+?)\1/g,x8e=/\\./g;function J7(e,t=IA){if(e=e.trim(),e==="")return[];let o=[];e=e.replace(x8e,(i,s)=>(o.push({value:i,offset:s}),"\uE000".repeat(i.length))),e=e.replace(_8e,(i,s,a,l)=>(o.push({value:i,offset:l}),`${s}${"\uE001".repeat(a.length)}${s}`));{let i=0,s;for(;(s=e.indexOf("(",i))>-1;){let a=S8e(e,s);o.push({value:a,offset:s}),e=`${e.substring(0,s)}(${"\xB6".repeat(a.length-2)})${e.substring(s+a.length)}`,i=s+a.length}}let r=k8e(e,t),n=new Set;for(let i of o.reverse())for(let s of r){let{offset:a,value:l}=i;if(!(s.pos[0]<=a&&a+l.length<=s.pos[1]))continue;let{content:u}=s,d=a-s.pos[0];s.content=u.slice(0,d)+l+u.slice(d+l.length),s.content!==u&&n.add(s)}for(let i of n){let s=v8e(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let a=s.exec(i.content);if(!a)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,a.groups)}return r}function*PA(e,t){switch(e.type){case"list":for(let o of e.list)yield*PA(o,e);break;case"complex":yield*PA(e.left,e),yield*PA(e.right,e);break;case"compound":yield*e.list.map(o=>[o,e]);break;default:yield[e,t]}}function iue(e){let t;return Array.isArray(e)?t=e:t=[...PA(e)].map(([o])=>o),t.map(o=>o.content).join("")}var Kde=c(Ede(),1),Yde=c(OA(),1),qde=c(Bde(),1),Zde=c(Wde(),1),$de=new Map,Xde=[{type:"type",content:"body"},{type:"type",content:"html"},{type:"pseudo-class",content:":root"},{type:"pseudo-class",content:":where(body)"},{type:"pseudo-class",content:":where(:root)"},{type:"pseudo-class",content:":where(html)"}];function DHe(e,t){let o=J7(t),r=o.findLastIndex(({content:s,type:a})=>Xde.some(l=>s===l.content&&a===l.type)),n=-1;for(let s=r+1;s<o.length;s++)if(o[s].type==="combinator"){n=s;break}let i=J7(e);return o.splice(n===-1?o.length:n,0,{type:"combinator",content:" ",pos:[0,0]},...i),iue(o)}function VHe({css:e,ignoredSelectors:t=[],baseURL:o},r="",n){if(!r&&!o)return e;try{let i=[...t,...n?.ignoredSelectors??[],r];return new Kde.default([r&&(0,qde.default)({prefix:r,transform(s,a,l){return i.some(d=>d instanceof RegExp?a.match(d):a.includes(d))?a:Xde.some(d=>a.startsWith(d.content))?DHe(s,a):l}}),o&&(0,Zde.default)({rootUrl:o})].filter(Boolean)).process(e,{}).css}catch(i){return i instanceof Yde.default?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i.message+`
`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}var FHe=(e,t="",o)=>{let r=$de.get(t);return r||(r=new WeakMap,$de.set(t,r)),e.map(n=>{let i=r.get(n);return i||(i=VHe(n,t,o),r.set(n,i)),i})},VS=FHe;var um=c(E(),1);Kf([Yf,zy]);function zHe(e,t){return(0,FS.useCallback)(o=>{if(!o)return;let{ownerDocument:r}=o,{defaultView:n,body:i}=r,s=t?r.querySelector(t):i,a;if(s)a=n?.getComputedStyle(s,null).getPropertyValue("background-color");else{let u=r.createElement("div");u.classList.add("editor-styles-wrapper"),i.appendChild(u),a=n?.getComputedStyle(u,null).getPropertyValue("background-color"),i.removeChild(u)}let l=Ao(a);l.luminance()>.5||l.alpha()===0?i.classList.remove("is-dark-theme"):i.classList.add("is-dark-theme")},[e,t])}function jHe({styles:e,scope:t,transformOptions:o}){let r=(0,Jde.useSelect)(s=>H(s(C)).getStyleOverrides(),[]),[n,i]=(0,FS.useMemo)(()=>{let s=Object.values(e??[]),a=[...r.filter(([,l])=>l?.__unstableType!=="custom-css"),...r.filter(([,l])=>l?.__unstableType==="custom-css")];for(let[l,u]of a){let d=s.findIndex(({id:p})=>l===p),f={...u,id:l};d===-1?s.push(f):s[d]=f}return[VS(s.filter(l=>l?.css),t,o),s.filter(l=>l.__unstableType==="svgs").map(l=>l.assets).join("")]},[e,r,t,o]);return(0,um.jsxs)(um.Fragment,{children:[(0,um.jsx)("style",{ref:zHe(n,t)}),n.map((s,a)=>(0,um.jsx)("style",{children:s},a)),(0,um.jsx)(Qde.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:i}})]})}var Ld=(0,FS.memo)(jHe);var Ka=c(E(),1),HHe=(0,qA.memo)(zS),NU=2e3,UHe=[];function GHe({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=UHe}){e||(e=t);let[n,{height:i}]=(0,CC.useResizeObserver)(),{styles:s}=(0,efe.useSelect)(d=>({styles:d(C).getSettings().styles}),[]),a=(0,qA.useMemo)(()=>s&&[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r],[s,r]),l=t/e,u=i?t/(i*l):0;return(0,Ka.jsx)(tfe.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:u,maxHeight:i>NU?NU*l:void 0,minHeight:o},children:(0,Ka.jsxs)(OS,{contentRef:(0,CC.useRefEffect)(d=>{let{ownerDocument:{documentElement:f}}=d;f.classList.add("block-editor-block-preview__content-iframe"),f.style.position="absolute",f.style.width="100%",d.style.boxSizing="border-box",d.style.position="absolute",d.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:NU,minHeight:l!==0&&l<1&&o?o/l:o},children:[(0,Ka.jsx)(Ld,{styles:a}),n,(0,Ka.jsx)(HHe,{renderAppender:!1})]})})}function ofe(e){let[t,{width:o}]=(0,CC.useResizeObserver)();return(0,Ka.jsxs)(Ka.Fragment,{children:[(0,Ka.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Ka.jsx)("div",{className:"block-editor-block-preview__container",children:!!o&&(0,Ka.jsx)(GHe,{...e,containerWidth:o})})]})}var jS=c(F(),1),sfe=c(nfe(),1),ife=(0,sfe.createQueue)();function afe({children:e,placeholder:t}){let[o,r]=(0,jS.useState)(!1);return(0,jS.useEffect)(()=>{let n={};return ife.add(n,()=>{(0,jS.flushSync)(()=>{r(!0)})}),()=>{ife.cancel(n)}},[]),o?e:t}var fb=c(E(),1),WHe=[];function $He({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=WHe,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,MU.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],(0,MU.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,DU.useSelect)(u=>u(C).getSettings(),[]),a=(0,db.useMemo)(()=>({...s,focusMode:!1,isPreviewMode:!0}),[s]),l=(0,db.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,fb.jsx)(ES,{value:l,settings:a,children:(0,fb.jsx)(ofe,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var lfe=(0,db.memo)($He);lfe.Async=afe;var gs=lfe;function cfe({blocks:e,props:t={},layout:o}){let r=(0,DU.useSelect)(u=>u(C).getSettings(),[]),n=(0,db.useMemo)(()=>({...r,styles:void 0,focusMode:!1,isPreviewMode:!0}),[r]),i=(0,ZA.useDisabled)(),s=(0,ZA.useMergeRefs)([t.ref,i]),a=(0,db.useMemo)(()=>Array.isArray(e)?e:[e],[e]),l=(0,fb.jsxs)(ES,{value:a,settings:n,children:[(0,fb.jsx)(Ld,{}),(0,fb.jsx)(EC,{renderAppender:!1,layout:o})]});return{...t,ref:s,className:$(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}var dm=c(E(),1);function KHe({item:e}){let{name:t,title:o,icon:r,description:n,initialAttributes:i,example:s}=e,a=(0,HS.isReusableBlock)(e),l=(0,ufe.useMemo)(()=>s?(0,HS.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks,innerContent:s.innerContent}):(0,HS.createBlock)(t,i),[t,s,i]),u=144,d=280,f=s?.viewportWidth??500,p=d/f,h=p!==0&&p<1&&u?u/p:u;return(0,dm.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,dm.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,dm.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,dm.jsx)(gs,{blocks:l,viewportWidth:f,minHeight:u,additionalStyles:[{css:`
body {
padding: 24px;
min-height:${Math.round(h)}px;
display:flex;
align-items:center;
}
.is-root-container { width: 100%; }
`}]})}):(0,dm.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,dfe.__)("No preview available.")})}),!a&&(0,dm.jsx)(iC,{title:o,icon:r,description:n})]})}var ffe=KHe;var qS=c(G(),1),Dd=c(F(),1),GU=c(fe(),1);var Efe=c(ce(),1),Tfe=c(fe(),1);var YS=c(F(),1),fm=c(ce(),1),wfe=c(U(),1),TC=c(so(),1);var Sfe=c(U(),1),kfe=c(F(),1);var US=c(F(),1),pfe=c(G(),1),mfe=c(Xr(),1),hfe=c(E(),1);function YHe(e,t){let[o,r]=(0,US.useState)(!1);return(0,US.useEffect)(()=>{o&&(0,mfe.speak)((0,pfe.__)("Use left and right arrow keys to move through blocks"))},[o]),(0,hfe.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:n=>{!n.currentTarget.contains(n.relatedTarget)&&r(!1)},...e})}var VU=(0,US.forwardRef)(YHe);var gfe=c(F(),1),bfe=c(U(),1),yfe=c(E(),1);function qHe(e,t){return(0,yfe.jsx)(bfe.Composite.Group,{role:"presentation",ref:t,...e})}var FU=(0,gfe.forwardRef)(qHe);var QA=c(U(),1),vfe=c(F(),1),XA=c(E(),1);function ZHe({isFirst:e,as:t,children:o,...r},n){return(0,XA.jsx)(QA.Composite.Item,{ref:n,role:"option",accessibleWhenDisabled:!0,...r,render:i=>{let s={...i,tabIndex:e?0:i.tabIndex};return t?(0,XA.jsx)(t,{...s,children:o}):typeof o=="function"?o(s):(0,XA.jsx)(QA.Button,{__next40pxDefaultSize:!0,...s,children:o})}})}var zU=(0,vfe.forwardRef)(ZHe);var jU=c(E(),1);function XHe({key:e,children:t}){return(0,jU.jsx)(kfe.Fragment,{children:t},e)}function QHe({children:e}){return(0,jU.jsx)(Sfe.Composite,{focusShift:!0,focusWrap:"horizontal",render:XHe,children:e})}var GS=QHe;var _fe=c(U(),1),e2=c(ce(),1),t2=c(Q(),1),xfe=c(F(),1);var $S=c(G(),1),WS=c(U(),1);var ic=c(E(),1);function JA({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,$S.__)("Pattern");return(0,ic.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,ic.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,ic.jsxs)(WS.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,ic.jsx)(WS.FlexItem,{children:t?(0,ic.jsx)(Tt,{icon:t}):n||(0,$S.sprintf)((0,$S._n)("%d block","%d blocks",e),e)}),(0,ic.jsx)(WS.FlexItem,{children:(0,ic.jsx)(Tt,{icon:Vx})}),r&&(0,ic.jsx)(WS.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,ic.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var HU=c(E(),1),JHe=({isEnabled:e,blocks:t,icon:o,children:r,pattern:n})=>{let i=t.length===1?t[0].name:void 0,s=(0,t2.useSelect)(f=>i&&f(e2.store).getBlockType(i)?.icon,[i]),{startDragging:a,stopDragging:l}=H((0,t2.useDispatch)(C)),u=(0,xfe.useMemo)(()=>n?.type===Ko.user&&n?.syncStatus!=="unsynced"?[(0,e2.createBlock)("core/block",{ref:n.id})]:void 0,[n?.type,n?.syncStatus,n?.id]);if(!e)return r({draggable:!1,onDragStart:void 0,onDragEnd:void 0});let d=u??t;return(0,HU.jsx)(_fe.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:d},onDragStart:f=>{a();let p=new Set;for(let h of d){let m=`wp-block:${h.name}`;p.has(m)||(f.dataTransfer.items.add("",m),p.add(m))}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,HU.jsx)(JA,{count:t.length,icon:o||!n&&s,isPattern:!!n}),children:({onDraggableStart:f,onDraggableEnd:p})=>r({draggable:!0,onDragStart:f,onDragEnd:p})})},KS=JHe;var Nd=c(E(),1);function e7e({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,YS.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},u=(0,YS.useMemo)(()=>[(0,fm.createBlock)(o.name,o.initialAttributes,(0,fm.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),o.innerContent)],[o.name,o.initialAttributes,o.innerBlocks,o.innerContent]),d=(0,fm.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,fm.isTemplatePart)(o);return(0,Nd.jsx)(KS,{isEnabled:i&&!o.isDisabled,blocks:u,icon:o.icon,children:({draggable:f,onDragStart:p,onDragEnd:h})=>(0,Nd.jsx)("div",{className:$("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:f,onDragStart:m=>{a.current=!0,p&&(n(null),p(m))},onDragEnd:m=>{a.current=!1,h&&h(m)},children:(0,Nd.jsxs)(zU,{isFirst:t,className:$("block-editor-block-types-list__item",e),disabled:o.isDisabled,onClick:m=>{m.preventDefault(),r(o,(0,TC.isAppleOS)()?m.metaKey:m.ctrlKey),n(null)},onKeyDown:m=>{let{keyCode:g}=m;g===TC.ENTER&&(m.preventDefault(),r(o,(0,TC.isAppleOS)()?m.metaKey:m.ctrlKey),n(null))},onMouseEnter:()=>{a.current||n(o)},onMouseLeave:()=>n(null),...s,children:[(0,Nd.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,Nd.jsx)(Tt,{icon:o.icon,showColors:!0})}),(0,Nd.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,Nd.jsx)(wfe.__experimentalTruncate,{numberOfLines:3,children:o.title})})]})})})}var Cfe=(0,YS.memo)(e7e);var RC=c(E(),1);function t7e(e,t){let o=[];for(let r=0,n=e.length;r<n;r+=t)o.push(e.slice(r,r+t));return o}function Rfe({items:e=[],onSelect:t,onHover:o=()=>{},children:r,label:n,isDraggable:i=!0}){let s="block-editor-block-types-list",a=(0,Tfe.useInstanceId)(Rfe,s);return(0,RC.jsxs)(VU,{className:s,"aria-label":n,children:[t7e(e,3).map((l,u)=>(0,RC.jsx)(FU,{children:l.map((d,f)=>(0,RC.jsx)(Cfe,{item:d,className:(0,Efe.getBlockMenuDefaultClassName)(d.id),onSelect:t,onHover:o,isDraggable:i&&!d.isDisabled,isFirst:u===0&&f===0,rowId:`${a}-${u}`},d.id))},u)),r]})}var pb=Rfe;var Bfe=c(U(),1),Md=c(E(),1);function o7e({title:e,icon:t,children:o}){return(0,Md.jsxs)(Md.Fragment,{children:[(0,Md.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,Md.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,Md.jsx)(Bfe.Icon,{icon:t})]}),(0,Md.jsx)("div",{className:"block-editor-inserter__panel-content",children:o})]})}var pm=o7e;var Pfe=c(G(),1),UU=c(E(),1);function r7e({children:e=(0,Pfe.__)("No results found.")}){return(0,UU.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,UU.jsx)("p",{children:e})})}var sc=r7e;var pn=c(E(),1),n7e=e=>e.name.split("/")[0],i7e=6,s7e=[];function Ife({items:e,collections:t,categories:o,onSelectItem:r,onHover:n,showMostUsedBlocks:i,className:s}){let a=(0,Dd.useMemo)(()=>$c(e,"frecency","desc").slice(0,i7e),[e]),l=(0,Dd.useMemo)(()=>e.filter(m=>!m.category),[e]),u=(0,Dd.useMemo)(()=>{let m={...t};return Object.keys(t).forEach(g=>{m[g]=e.filter(b=>n7e(b)===g),m[g].length===0&&delete m[g]}),m},[e,t]);(0,Dd.useEffect)(()=>()=>n(null),[]);let d=(0,GU.useAsyncList)(o),f=o.length===d.length,p=(0,Dd.useMemo)(()=>Object.entries(t),[t]),h=(0,GU.useAsyncList)(f?p:s7e);return(0,pn.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,pn.jsx)(pm,{title:(0,qS._x)("Most used","blocks"),children:(0,pn.jsx)(pb,{items:a,onSelect:r,onHover:n,label:(0,qS._x)("Most used","blocks")})}),d.map(m=>{let g=e.filter(b=>b.category===m.slug);return!g||!g.length?null:(0,pn.jsx)(pm,{title:m.title,icon:m.icon,children:(0,pn.jsx)(pb,{items:g,onSelect:r,onHover:n,label:m.title})},m.slug)}),f&&l.length>0&&(0,pn.jsx)(pm,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,qS.__)("Uncategorized"),children:(0,pn.jsx)(pb,{items:l,onSelect:r,onHover:n,label:(0,qS.__)("Uncategorized")})}),h.map(([m,g])=>{let b=u[m];return!b||!b.length?null:(0,pn.jsx)(pm,{title:g.title,icon:g.icon,children:(0,pn.jsx)(pb,{items:b,onSelect:r,onHover:n,label:g.title})},m)})]})}function a7e({rootClientId:e,onInsert:t,onHover:o,showMostUsedBlocks:r},n){let[i,s,a,l]=vp(e,t);if(!i.length)return(0,pn.jsx)(sc,{});let u=[],d=[];for(let f of i)f.category!=="reusable"&&(f.isSearchOnly||(f.isAllowedInCurrentRoot?u.push(f):d.push(f)));return(0,pn.jsx)(GS,{children:(0,pn.jsxs)("div",{ref:n,children:[!!u.length&&(0,pn.jsx)(pn.Fragment,{children:(0,pn.jsx)(Ife,{items:u,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,pn.jsx)(Ife,{items:d,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__all-blocks"})]})})}var Ofe=(0,Dd.forwardRef)(a7e);var Jfe=c(F(),1),epe=c(fe(),1),tpe=c(U(),1),ope=c(G(),1);var Kfe=c(U(),1),ZU=c(F(),1),Yfe=c(G(),1);var o2=c(U(),1),WU=c(G(),1),Vd=c(E(),1);function l7e({selectedCategory:e,patternCategories:t,onClickCategory:o}){let r="block-editor-block-patterns-explorer__sidebar";return(0,Vd.jsx)("div",{className:`${r}__categories-list`,children:t.map(({name:n,label:i})=>(0,Vd.jsx)(o2.Button,{__next40pxDefaultSize:!0,label:i,className:`${r}__categories-list__item`,isPressed:e===n,onClick:()=>{o(n)},children:i},n))})}function c7e({searchValue:e,setSearchValue:t}){return(0,Vd.jsx)("div",{className:"block-editor-block-patterns-explorer__search",children:(0,Vd.jsx)(o2.SearchControl,{onChange:t,value:e,label:(0,WU.__)("Search"),placeholder:(0,WU.__)("Search")})})}function u7e({selectedCategory:e,patternCategories:t,onClickCategory:o,searchValue:r,setSearchValue:n}){return(0,Vd.jsxs)("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[(0,Vd.jsx)(c7e,{searchValue:r,setSearchValue:n}),!r&&(0,Vd.jsx)(l7e,{selectedCategory:e,patternCategories:t,onClickCategory:o})]})}var Afe=u7e;var Fd=c(F(),1),ek=c(G(),1),Hfe=c(fe(),1),Ufe=c(U(),1),Gfe=c(Xr(),1);var Lfe=c(ce(),1),mu=c(F(),1),BC=c(U(),1);var Nfe=c(fe(),1),Mfe=c(G(),1);var bs=c(U(),1),Ya=c(G(),1),mi=c(E(),1);function ZS({currentPage:e,numPages:t,changePage:o,totalItems:r}){return(0,mi.jsxs)(bs.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,mi.jsx)(bs.__experimentalText,{variant:"muted",children:(0,Ya.sprintf)((0,Ya._n)("%s item","%s items",r),r)}),t>1&&(0,mi.jsxs)(bs.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,mi.jsxs)(bs.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,mi.jsx)(bs.Button,{variant:"tertiary",onClick:()=>o(1),disabled:e===1,"aria-label":(0,Ya.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,mi.jsx)("span",{children:"\xAB"})}),(0,mi.jsx)(bs.Button,{variant:"tertiary",onClick:()=>o(e-1),disabled:e===1,"aria-label":(0,Ya.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,mi.jsx)("span",{children:"\u2039"})})]}),(0,mi.jsx)(bs.__experimentalText,{variant:"muted",children:(0,Ya.sprintf)((0,Ya._x)("%1$s of %2$s","paging"),e,t)}),(0,mi.jsxs)(bs.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,mi.jsx)(bs.Button,{variant:"tertiary",onClick:()=>o(e+1),disabled:e===t,"aria-label":(0,Ya.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,mi.jsx)("span",{children:"\u203A"})}),(0,mi.jsx)(bs.Button,{variant:"tertiary",onClick:()=>o(t),disabled:e===t,"aria-label":(0,Ya.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,mi.jsx)("span",{children:"\xBB"})})]})]})]})}var Eo=c(E(),1),d7e=({showTooltip:e,title:t,children:o})=>e?(0,Eo.jsxs)(xt.Root,{children:[(0,Eo.jsx)(xt.Trigger,{render:o}),(0,Eo.jsx)(xt.Popup,{children:t})]}):(0,Eo.jsx)(Eo.Fragment,{children:o});function Dfe({id:e,isDraggable:t,pattern:o,onClick:r,onHover:n,showTitlesAsTooltip:i,category:s,isSelected:a}){let[l,u]=(0,mu.useState)(!1),{blocks:d,viewportWidth:f}=o,h=`block-editor-block-patterns-list__item-description-${(0,Nfe.useInstanceId)(Dfe)}`,m=o.type===Ko.user,g=(0,mu.useMemo)(()=>!s||!t?d:(d??[]).map(b=>{let v=(0,Lfe.cloneBlock)(b);return v.attributes.metadata?.categories?.includes(s)&&(v.attributes.metadata.categories=[s]),v}),[d,t,s]);return(0,Eo.jsx)(KS,{isEnabled:t,blocks:g,pattern:o,children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,Eo.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:b,onDragStart:k=>{u(!0),v&&(n?.(null),v(k))},onDragEnd:k=>{u(!1),y&&y(k)},children:(0,Eo.jsx)(d7e,{showTooltip:i&&!m,title:o.title,children:(0,Eo.jsxs)(BC.Composite.Item,{render:(0,Eo.jsx)("div",{role:"option","aria-label":o.title,"aria-describedby":o.description?h:void 0,className:$("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":o.type===Ko.user&&!o.syncStatus,"is-selected":a})}),id:e,onClick:()=>{r(o,d),n?.(null)},onMouseEnter:()=>{l||n?.(o)},onMouseLeave:()=>n?.(null),children:[(0,Eo.jsx)(gs.Async,{placeholder:(0,Eo.jsx)(f7e,{}),children:(0,Eo.jsx)(gs,{blocks:d,viewportWidth:f})}),(!i||m)&&(0,Eo.jsxs)(BC.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[m&&!o.syncStatus&&(0,Eo.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,Eo.jsx)(gt,{className:"block-editor-patterns__pattern-icon",icon:jc})}),(0,Eo.jsx)(Bd,{render:(0,Eo.jsx)("div",{}),className:"block-editor-block-patterns-list__item-title",variant:"body-sm",children:o.title})]}),!!o.description&&(0,Eo.jsx)(bt,{id:h,children:o.description})]})})})})}function f7e(){return(0,Eo.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function p7e({isDraggable:e,blockPatterns:t,onHover:o,onClickPattern:r,orientation:n,category:i,label:s=(0,Mfe.__)("Patterns"),showTitlesAsTooltip:a,pagingProps:l},u){let[d,f]=(0,mu.useState)(void 0),[p,h]=(0,mu.useState)(null);(0,mu.useEffect)(()=>{let g=t[0]?.name;f(g)},[t]);let m=(g,b)=>{h(g.name),r(g,b)};return(0,Eo.jsxs)(BC.Composite,{orientation:n,activeId:d,setActiveId:f,role:"listbox",className:"block-editor-block-patterns-list","aria-label":s,ref:u,children:[t.map(g=>(0,Eo.jsx)(Dfe,{id:g.name,pattern:g,onClick:m,onHover:o,isDraggable:e,showTitlesAsTooltip:a,category:i,isSelected:!!p&&p===g.name},g.name)),l&&(0,Eo.jsx)(ZS,{...l})]})}var hu=(0,mu.forwardRef)(p7e);var mb=c(Q(),1),Ffe=c(ce(),1),r2=c(G(),1),zfe=c(Xr(),1),$U=c(F(),1);function Vfe({destinationRootClientId:e,destinationIndex:t,rootClientId:o,registry:r}){if(o===e)return t;let n=["",...r.select(C).getBlockParents(e),e],i=n.indexOf(o);return i!==-1?r.select(C).getBlockIndex(n[i+1])+1:r.select(C).getBlockOrder(o).length}function m7e({rootClientId:e="",insertionIndex:t,clientId:o,isAppender:r,onSelect:n,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){let a=(0,mb.useRegistry)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:u,isBlockInsertionPointVisible:d}=H((0,mb.useSelect)(C)),{destinationRootClientId:f,destinationIndex:p}=(0,mb.useSelect)(S=>{let{getSelectedBlockClientId:_,getBlockRootClientId:x,getBlockIndex:w,getBlockOrder:T,getInsertionPoint:R}=H(S(C)),B=_(),I=e,O,P=R();return t!==void 0?O=t:P&&P.hasOwnProperty("index")?(I=P?.rootClientId?P.rootClientId:e,O=P.index):o?O=w(o):!r&&B?(I=x(B),O=w(B)+1):O=T(I).length,{destinationRootClientId:I,destinationIndex:O}},[e,t,o,r]),{replaceBlocks:h,insertBlocks:m,showInsertionPoint:g,hideInsertionPoint:b,setLastFocus:v}=H((0,mb.useDispatch)(C)),y=(0,$U.useCallback)((S,_,x=!1,w)=>{(x||i||s)&&v(null);let T=l();!r&&T&&(0,Ffe.isUnmodifiedDefaultBlock)(T,"content")?h(T.clientId,S,null,i||x?0:null,_):m(S,r||w===void 0?p:Vfe({destinationRootClientId:f,destinationIndex:p,rootClientId:w,registry:a}),r||w===void 0?f:w,s,i||x?0:null,_);let R=Array.isArray(S)?S.length:1,B=(0,r2.sprintf)((0,r2._n)("%d block added.","%d blocks added.",R),R);(0,zfe.speak)(B),n&&n(S)},[r,l,h,m,f,p,n,i,s,v,a]),k=(0,$U.useCallback)(S=>{if(S&&!d()){let _=u(S.name,f);_!==null&&g(_,Vfe({destinationRootClientId:f,destinationIndex:p,rootClientId:_,registry:a}))}else b()},[u,d,g,b,f,p,a]);return[f,y,k]}var mm=m7e;var XS=c(F(),1),n2=c(ce(),1),QS=c(Q(),1),i2=c(G(),1),jfe=c(ss(),1);var h7e=(e,t,o,r)=>{let n=(0,XS.useMemo)(()=>({[fp]:!!r}),[r]),i=(0,QS.useSelect)(m=>{let{getSettings:g}=H(m(C));return g()[fT]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,QS.useSelect)(m=>{let{getSettings:g,__experimentalGetAllowedPatterns:b}=H(m(C)),v=g(),y=v[id];return{patterns:b(t,n),userPatternCategories:y?y(m):v.__experimentalUserPatternCategories,patternCategories:v.__experimentalBlockPatternCategories}},[t,n]),u=(0,XS.useMemo)(()=>a.filter(m=>!(m.categories?.includes("navigation")&&!i)),[a,i]),{getClosestAllowedInsertionPointForPattern:d}=H((0,QS.useSelect)(C)),f=(0,XS.useMemo)(()=>{let m=[...s];return l?.forEach(g=>{m.find(b=>b.name===g.name)||m.push(g)}),m},[s,l]),{createSuccessNotice:p}=(0,QS.useDispatch)(jfe.store),h=(0,XS.useCallback)((m,g)=>{let b=r?t:d(m,t);if(b===null)return;let v=m.type===Ko.user&&m.syncStatus!=="unsynced"?[(0,n2.createBlock)("core/block",{ref:m.id})]:g;e((v??[]).map(y=>{let k=(0,n2.cloneBlock)(y);return k.attributes.metadata?.categories?.includes(o)&&(k.attributes.metadata.categories=[o]),k}),m.name,!1,b),p((0,i2.sprintf)((0,i2.__)('Pattern "%s" inserted.'),m.title),{type:"snackbar",id:"inserter-notice"})},[p,e,o,t,d,r]);return[u,f,h]},hm=h7e;var JS=c(F(),1),KU=c(fe(),1),YU=c(Rt(),1),s2=20;function a2(e,t,o,r=""){let[n,i]=(0,JS.useState)(1),s=(0,KU.usePrevious)(t),a=(0,KU.usePrevious)(r);(s!==t||a!==r)&&n!==1&&i(1);let l=e.length,u=n-1,d=(0,JS.useMemo)(()=>e.slice(u*s2,u*s2+s2),[u,e]),f=Math.ceil(e.length/s2),p=h=>{(0,YU.getScrollContainer)(o?.current)?.scrollTo(0,0),i(h)};return(0,JS.useEffect)(function(){(0,YU.getScrollContainer)(o?.current)?.scrollTo(0,0)},[t,o]),{totalItems:l,categoryPatterns:d,numPages:f,changePage:p,currentPage:n}}var ac=c(E(),1);function g7e({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,ac.jsx)(Ufe.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:(0,ek.sprintf)((0,ek._n)("%d pattern found","%d patterns found",t),t)}):null}function b7e({searchValue:e,selectedCategory:t,patternCategories:o,rootClientId:r,onModalClose:n}){let i=(0,Fd.useRef)(),s=(0,Hfe.useDebounce)(Gfe.speak,500),[a,l]=mm({rootClientId:r,shouldFocusBlock:!0}),[u,,d]=hm(l,a,t),f=(0,Fd.useMemo)(()=>o.map(v=>v.name),[o]),p=(0,Fd.useMemo)(()=>{let v=u.filter(y=>{if(t===hg.name||t===fd.name&&y.type===Ko.user||t===lv.name&&y.blockTypes?.includes("core/post-content"))return!0;if(t==="uncategorized"){let k=y.categories?.some(S=>f.includes(S))??!1;return!y.categories?.length||!k}return y.categories?.includes(t)});return e?Aw(v,e):v},[e,u,t,f]);(0,Fd.useEffect)(()=>{if(!e)return;let v=p.length,y=(0,ek.sprintf)((0,ek._n)("%d result found.","%d results found.",v),v);s(y)},[e,s,p.length]);let h=a2(p,t,i),[m,g]=(0,Fd.useState)(e);e!==m&&(g(e),h.changePage(1));let b=!!p?.length;return(0,ac.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:[(0,ac.jsx)(g7e,{filterValue:e,filteredBlockPatternsLength:p.length}),(0,ac.jsx)(GS,{children:b&&(0,ac.jsxs)(ac.Fragment,{children:[(0,ac.jsx)(hu,{blockPatterns:h.categoryPatterns,onClickPattern:(v,y)=>{d(v,y),n()},isDraggable:!1}),(0,ac.jsx)(ZS,{...h})]})})]})}var Wfe=b7e;var qU=c(F(),1),tk=c(G(),1),$fe=c(Xr(),1);function y7e(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(o=>t.some(r=>r.name===o))}function ok(e,t="all"){let[o,r]=hm(void 0,e),n=(0,qU.useMemo)(()=>t==="all"?o:o.filter(s=>!RB(s,t)),[t,o]);return(0,qU.useMemo)(()=>{let s=r.filter(a=>n.some(l=>l.categories?.includes(a.name))).sort((a,l)=>a.label.localeCompare(l.label));return n.some(a=>!y7e(a,r))&&!s.find(a=>a.name==="uncategorized")&&s.push({name:"uncategorized",label:(0,tk._x)("Uncategorized")}),n.some(a=>a.blockTypes?.includes("core/post-content"))&&s.unshift(lv),n.some(a=>a.type===Ko.user)&&s.unshift(fd),n.length>0&&s.unshift({name:hg.name,label:hg.label}),(0,$fe.speak)((0,tk.sprintf)((0,tk._n)("%d category button displayed.","%d category buttons displayed.",s.length),s.length)),s},[r,n])}var hb=c(E(),1);function v7e({initialCategory:e,rootClientId:t,onModalClose:o}){let[r,n]=(0,ZU.useState)(""),[i,s]=(0,ZU.useState)(e?.name),a=ok(t);return(0,hb.jsxs)("div",{className:"block-editor-block-patterns-explorer",children:[(0,hb.jsx)(Afe,{selectedCategory:i,patternCategories:a,onClickCategory:s,searchValue:r,setSearchValue:n}),(0,hb.jsx)(Wfe,{searchValue:r,selectedCategory:i,patternCategories:a,rootClientId:t,onModalClose:o})]})}function S7e({onModalClose:e,...t}){return(0,hb.jsx)(Kfe.Modal,{title:(0,Yfe.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,hb.jsx)(v7e,{onModalClose:e,...t})})}var qfe=S7e;var rk=c(G(),1),Yo=c(U(),1);var Cn=c(E(),1);function k7e({title:e}){return(0,Cn.jsx)(Yo.__experimentalVStack,{spacing:0,children:(0,Cn.jsx)(Yo.__experimentalView,{children:(0,Cn.jsx)(Yo.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Cn.jsxs)(Yo.__experimentalHStack,{spacing:2,children:[(0,Cn.jsx)(Yo.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,rk.isRTL)()?un:Ei,size:"small",label:(0,rk.__)("Back")}),(0,Cn.jsx)(Yo.__experimentalSpacer,{children:(0,Cn.jsx)(Yo.__experimentalHeading,{level:5,children:e})})]})})})})}function l2({categories:e,children:t,screenClassName:o}){return(0,Cn.jsxs)(Yo.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,Cn.jsx)(Yo.Navigator.Screen,{path:"/",children:(0,Cn.jsx)(Yo.__experimentalItemGroup,{children:e.map(r=>(0,Cn.jsx)(Yo.Navigator.Button,{path:`/category/${r.name}`,as:Yo.__experimentalItem,isAction:!0,children:(0,Cn.jsxs)(Yo.__experimentalHStack,{children:[(0,Cn.jsx)(Yo.FlexBlock,{children:r.label}),(0,Cn.jsx)(gt,{icon:(0,rk.isRTL)()?Ei:un})]})},r.name))})}),e.map(r=>(0,Cn.jsxs)(Yo.Navigator.Screen,{className:o,path:`/category/${r.name}`,children:[(0,Cn.jsx)(k7e,{title:(0,rk.__)("Back")}),t(r)]},r.name))]})}var qa=c(F(),1),XU=c(G(),1),lc=c(U(),1);var vs=c(U(),1),ys=c(G(),1);var c2=c(F(),1);var Kn=c(E(),1),Zfe=e=>e!=="all"&&e!=="user",_7e=e=>e.name===fd.name,x7e=[{value:"all",label:(0,ys._x)("All","patterns")},{value:Ko.directory,label:(0,ys.__)("Pattern Directory")},{value:Ko.theme,label:(0,ys.__)("Theme & Plugins")},{value:Ko.user,label:(0,ys.__)("User")}];function Xfe({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:o,patternSourceFilter:r,scrollContainerRef:n,category:i}){let s=i.name===fd.name?Ko.user:r,a=Zfe(s),l=_7e(i),u=(0,c2.useMemo)(()=>[{value:"all",label:(0,ys._x)("All","patterns")},{value:kw.full,label:(0,ys._x)("Synced","patterns"),disabled:a},{value:kw.unsynced,label:(0,ys._x)("Not synced","patterns"),disabled:a}],[a]);function d(f){t(f),Zfe(f)&&e("all")}return(0,Kn.jsx)(Kn.Fragment,{children:(0,Kn.jsx)(vs.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,ys.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,Kn.jsx)(gt,{icon:(0,Kn.jsx)(vs.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Kn.jsx)(vs.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,Kn.jsxs)(Kn.Fragment,{children:[!l&&(0,Kn.jsx)(vs.MenuGroup,{label:(0,ys.__)("Source"),children:(0,Kn.jsx)(vs.MenuItemsChoice,{choices:x7e,onSelect:f=>{d(f),n.current?.scrollTo(0,0)},value:s})}),(0,Kn.jsx)(vs.MenuGroup,{label:(0,ys.__)("Type"),children:(0,Kn.jsx)(vs.MenuItemsChoice,{choices:u,onSelect:f=>{e(f),n.current?.scrollTo(0,0)},value:o})}),(0,Kn.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,c2.createInterpolateElement)((0,ys.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,Kn.jsx)(vs.ExternalLink,{href:(0,ys.__)("https://wordpress.org/patterns/")})})})]})})})}var Di=c(E(),1),w7e=()=>{};function u2({rootClientId:e,onInsert:t,onHover:o=w7e,category:r,showTitlesAsTooltip:n}){let[i,,s]=hm(t,e,r?.name),[a,l]=(0,qa.useState)("all"),[u,d]=(0,qa.useState)("all"),f=ok(e,u),p=(0,qa.useRef)(),h=(0,qa.useMemo)(()=>i.filter(y=>RB(y,u,a)?!1:r.name===hg.name||r.name===fd.name&&y.type===Ko.user||r.name===lv.name&&y.blockTypes?.includes("core/post-content")?!0:r.name==="uncategorized"?y.categories?!y.categories.some(k=>f.some(S=>S.name===k)):!0:y.categories?.includes(r.name)),[i,f,r.name,u,a]),m=a2(h,r,p),{changePage:g}=m;(0,qa.useEffect)(()=>()=>o(null),[]);let b=(0,qa.useCallback)(y=>{l(y),g(1)},[l,g]),v=(0,qa.useCallback)(y=>{d(y),g(1)},[d,g]);return(0,Di.jsxs)(Di.Fragment,{children:[(0,Di.jsxs)(lc.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,Di.jsxs)(lc.__experimentalHStack,{children:[(0,Di.jsx)(lc.FlexBlock,{children:(0,Di.jsx)(lc.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,Di.jsx)(Xfe,{patternSyncFilter:a,patternSourceFilter:u,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:p,category:r})]}),!h.length&&(0,Di.jsx)(lc.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,XU.__)("No results found")})]}),h.length>0&&(0,Di.jsxs)(Di.Fragment,{children:[(0,Di.jsx)(lc.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,XU.__)("Drag and drop patterns into the canvas.")}),(0,Di.jsx)(hu,{ref:p,blockPatterns:m.categoryPatterns,onClickPattern:s,onHover:o,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:n,patternFilter:u,pagingProps:m})]})]})}var f2=c(fe(),1),p2=c(U(),1),Qfe=c(F(),1);var gb=c(E(),1),{Tabs:d2}=H(p2.privateApis);function C7e({categories:e,selectedCategory:t,onSelectCategory:o,children:r}){let s={type:"tween",duration:(0,f2.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},a=(0,f2.usePrevious)(t),l=t?t.name:null,[u,d]=(0,Qfe.useState)(),f=e?.[0]?.name;return l===null&&!u&&f&&d(f),(0,gb.jsxs)(d2,{selectOnMove:!1,selectedTabId:l,orientation:"vertical",onSelect:p=>{o(e.find(h=>h.name===p))},activeTabId:u,onActiveTabIdChange:d,children:[(0,gb.jsx)(d2.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(p=>(0,gb.jsx)(d2.Tab,{tabId:p.name,"aria-current":p===t?"true":void 0,children:p.label},p.name))}),e.map(p=>(0,gb.jsx)(d2.TabPanel,{tabId:p.name,focusable:!1,children:(0,gb.jsx)(p2.__unstableMotion.div,{className:"block-editor-inserter__category-panel",initial:a?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:s,children:r})},p.name))]})}var m2=C7e;var Zs=c(E(),1);function E7e({onSelectCategory:e,selectedCategory:t,onInsert:o,rootClientId:r,children:n}){let[i,s]=(0,Jfe.useState)(!1),a=ok(r),l=(0,epe.useViewportMatch)("medium","<");return a.length?(0,Zs.jsxs)(Zs.Fragment,{children:[!l&&(0,Zs.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,Zs.jsx)(m2,{categories:a,selectedCategory:t,onSelectCategory:e,children:n}),(0,Zs.jsx)(tpe.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,ope.__)("Explore all patterns")})]}),l&&(0,Zs.jsx)(l2,{categories:a,children:u=>(0,Zs.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,Zs.jsx)(u2,{onInsert:o,rootClientId:r,category:u},u.name)})}),i&&(0,Zs.jsx)(qfe,{initialCategory:t||a[0],patternCategories:a,onModalClose:()=>s(!1),rootClientId:r})]}):(0,Zs.jsx)(sc,{})}var rpe=E7e;var xpe=c(G(),1),wpe=c(fe(),1),Cpe=c(U(),1),nk=c(F(),1);var yu=c(U(),1),cr=c(G(),1),gi=c(F(),1),IC=c(fe(),1),Spe=c(Q(),1),kpe=c(Rt(),1),_pe=c(ss(),1);var dpe=c(U(),1),fpe=c(G(),1);var lr=c(U(),1),hi=c(G(),1),gu=c(F(),1),JU=c(ce(),1);var PC=c(Q(),1),ape=c(ss(),1),lpe=c(QU(),1),cpe=c(Vs(),1);var ipe=c(ce(),1),spe=c(E(),1),T7e={image:"img",video:"video",audio:"audio"};function h2(e,t){let o={id:e.id||void 0,caption:e.caption||void 0},r=e.url,n=e.alt||void 0;t==="image"?(o.url=r,o.alt=n):["video","audio"].includes(t)&&(o.src=r);let i=T7e[t],s=(0,spe.jsx)(i,{src:e.previewUrl||r,alt:n,controls:t==="audio"?!0:void 0,inert:"true",onError:({currentTarget:a})=>{a.src===e.previewUrl&&(a.src=r)}});return[(0,ipe.createBlock)(`core/${t}`,o),s]}var Kt=c(E(),1),R7e=["image"],B7e={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function P7e({category:e,media:t,onDetach:o}){if(!e.getReportUrl&&!o)return null;let r=e.getReportUrl?.(t);return(0,Kt.jsx)(lr.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,hi.__)("Options"),popoverProps:B7e,icon:Fs,children:()=>(0,Kt.jsxs)(lr.MenuGroup,{children:[r&&(0,Kt.jsx)(lr.MenuItem,{onClick:()=>window.open(r,"_blank").focus(),icon:_3,children:(0,hi.sprintf)((0,hi.__)("Report %s"),e.mediaType)}),o&&(0,Kt.jsx)(lr.MenuItem,{onClick:()=>o(t),icon:ns,children:e.postTypeLabel?(0,hi.sprintf)((0,hi.__)("Detach from %s"),e.postTypeLabel):(0,hi.__)("Detach from post")})]})})}function I7e({onClose:e,onSubmit:t}){return(0,Kt.jsxs)(lr.Modal,{title:(0,hi.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,Kt.jsxs)(lr.__experimentalVStack,{spacing:3,children:[(0,Kt.jsx)("p",{children:(0,hi.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,Kt.jsx)("p",{children:(0,hi.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,Kt.jsxs)(lr.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Kt.jsx)(lr.FlexItem,{children:(0,Kt.jsx)(lr.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,hi.__)("Cancel")})}),(0,Kt.jsx)(lr.FlexItem,{children:(0,Kt.jsx)(lr.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,hi.__)("Insert")})})]})]})}function upe({media:e,onClick:t,onDetach:o,category:r}){let[n,i]=(0,gu.useState)(!1),[s,a]=(0,gu.useState)(!1),[l,u]=(0,gu.useState)(!1),[d,f]=(0,gu.useMemo)(()=>h2(e,r.mediaType),[e,r.mediaType]),{createErrorNotice:p,createSuccessNotice:h}=(0,PC.useDispatch)(ape.store),{getSettings:m,getBlock:g}=(0,PC.useSelect)(C),{updateBlockAttributes:b}=(0,PC.useDispatch)(C),v=(0,gu.useCallback)(_=>{if(l)return;let x=m(),w=(0,JU.cloneBlock)(_),{id:T,url:R,caption:B}=w.attributes;if(!T&&!x.mediaUpload){i(!0);return}if(T){t(w);return}u(!0),window.fetch(R).then(I=>I.blob()).then(I=>{let O=(0,cpe.getFilename)(R)||"image.jpg",P=new File([I],O,{type:I.type});x.mediaUpload({filesList:[P],additionalData:{caption:B},onFileChange([A]){(0,lpe.isBlobURL)(A.url)||(g(w.clientId)?b(w.clientId,{...w.attributes,id:A.id,url:A.url}):(t({...w,attributes:{...w.attributes,id:A.id,url:A.url}}),h((0,hi.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),u(!1))},allowedTypes:R7e,onError(A){p(A,{type:"snackbar",id:"inserter-notice"}),u(!1)}})}).catch(()=>{i(!0),u(!1)})},[l,m,t,h,b,p,g]),y=typeof e.title=="string"?e.title:e.title?.rendered||(0,hi.__)("no title"),k=(0,gu.useCallback)(()=>a(!0),[]),S=(0,gu.useCallback)(()=>a(!1),[]);return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(KS,{isEnabled:!0,blocks:[d],children:({draggable:_,onDragStart:x,onDragEnd:w})=>(0,Kt.jsx)("div",{className:$("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:_,onDragStart:x,onDragEnd:w,children:(0,Kt.jsxs)("div",{onMouseEnter:k,onMouseLeave:S,children:[(0,Kt.jsxs)(xt.Root,{children:[(0,Kt.jsx)(xt.Trigger,{render:(0,Kt.jsx)(lr.Composite.Item,{render:(0,Kt.jsx)("div",{"aria-label":y,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>v(d),children:(0,Kt.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[f,l&&(0,Kt.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,Kt.jsx)(lr.Spinner,{})})]})})}),(0,Kt.jsx)(xt.Popup,{children:y})]}),!l&&(0,Kt.jsx)(P7e,{category:r,media:e,onDetach:o})]})})}),n&&(0,Kt.jsx)(I7e,{onClose:()=>i(!1),onSubmit:()=>{t((0,JU.cloneBlock)(d)),h((0,hi.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),i(!1)}})]})}var e9=c(E(),1);function O7e({mediaList:e,category:t,onClick:o,onDetach:r,label:n=(0,fpe.__)("Media List")}){return(0,e9.jsx)(dpe.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":n,children:e.map((i,s)=>(0,e9.jsx)(upe,{media:i,category:t,onClick:o,onDetach:r},i.id||i.sourceId||s))})}var ppe=O7e;var mpe=c(U(),1),A7e=()=>null,bu=(0,mpe.withFilters)("editor.MediaUpload")(A7e);var hpe=c(Q(),1);function L7e({fallback:e=null,children:t}){return(0,hpe.useSelect)(r=>{let{getSettings:n}=r(C);return!!n().mediaUpload},[])?t:e}var Xs=L7e;var Vi=c(F(),1),t9=c(Q(),1);function gpe(e){return Array.isArray(e)?{mediaItems:e}:{mediaItems:e?.mediaItems??[],totalItems:e?.totalItems,totalPages:e?.totalPages}}function bpe(e,t={},o){let[r,n]=(0,Vi.useState)(),[i,s]=(0,Vi.useState)({}),[a,l]=(0,Vi.useState)(!1),u=(0,Vi.useRef)(),d=(0,Vi.useRef)(),f=(0,Vi.useRef)(),p=(0,Vi.useRef)();return(0,Vi.useEffect)(()=>{(async()=>{let h=JSON.stringify({category:e.name,...t}),m={};u.current=m,l(!0),(d.current!==h||f.current!==e.fetch)&&n([]),(p.current!==e.name||f.current!==e.fetch)&&s({}),d.current=h,f.current=e.fetch,p.current=e.name;let{page:g,...b}=t,v=g>1?t:b,{mediaItems:y,totalItems:k,totalPages:S}=gpe(await e.fetch?.(v));m===u.current&&(n(y),s({totalItems:k,totalPages:S}),l(!1))})()},[e.name,e.fetch,...Object.values(t),o]),{mediaList:r,isLoading:a,totalItems:i.totalItems,totalPages:i.totalPages}}function ype(e,t=400){let[o,r]=(0,Vi.useState)(!1);return(0,Vi.useEffect)(()=>{if(!e)return;let n=setTimeout(()=>r(!0),t);return()=>{clearTimeout(n),r(!1)}},[e,t]),o}function vpe(e){let[t,o]=(0,Vi.useState)([]),r=(0,t9.useSelect)(a=>H(a(C)).getInserterMediaCategories(),[]),{canInsertImage:n,canInsertVideo:i,canInsertAudio:s}=(0,t9.useSelect)(a=>{let{canInsertBlockType:l}=a(C);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return(0,Vi.useEffect)(()=>{(async()=>{let a=[];if(!r)return;let l=new Map(await Promise.all(r.map(async d=>{if(d.isExternalResource)return[d.name,!0];let f=[];try{let{mediaItems:p}=gpe(await d.fetch({per_page:1}));f=p}catch{}return[d.name,!!f.length]}))),u={image:n,video:i,audio:s};r.forEach(d=>{u[d.mediaType]&&(l.get(d.name)||d.emptyMessage)&&a.push(d)}),a.length&&o(a)})()},[n,i,s,r]),t}var tn=c(E(),1),N7e=20,M7e=["image"];function D7e({onSelect:e}){return(0,tn.jsx)(Xs,{children:(0,tn.jsx)(bu,{multiple:"add",onSelect:e,allowedTypes:M7e,title:(0,cr.__)("Attach images"),render:({open:t})=>(0,tn.jsx)(yu.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__media-panel-attach","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",onClick:o=>{o.target.focus(),t()},variant:"secondary",children:(0,cr.__)("Attach images")})})})}function OC({rootClientId:e,onInsert:t,category:o}){let[r,n,i]=(0,IC.useDebouncedInput)(),[s,a]=(0,gi.useState)(1),l=(0,IC.usePrevious)(o.name),u=(0,IC.usePrevious)(i);(l!==o.name||u!==i)&&s!==1&&a(1);let d=(0,gi.useMemo)(()=>({per_page:N7e,page:s,search:i}),[s,i]),[f,p]=(0,gi.useState)(0),{mediaList:h,isLoading:m,totalItems:g,totalPages:b}=bpe(o,d,f),v=b||1;typeof b=="number"&&s>v&&a(v);let y=!o.isExternalResource,k=y?o.attach:void 0,S=y?o.detach:void 0,_=y?o.subscribe:void 0,x=v>1,w=x||!!k,T=(0,gi.useRef)(),R=(0,gi.useCallback)(X=>{(0,kpe.getScrollContainer)(T.current)?.scrollTo(0,0),a(X)},[]),{createErrorNotice:B,createSuccessNotice:I,createWarningNotice:O}=(0,Spe.useDispatch)(_pe.store),P=ype(m),A=(0,gi.useCallback)(()=>{y&&o.invalidate?.(d),p(X=>X+1)},[o,d,y]);(0,gi.useEffect)(()=>{if(_)return _(()=>p(X=>X+1),d)},[_,d]);let M=(0,gi.useCallback)(async X=>{try{let J=await k(X);if(!J){O((0,cr.__)("No images were attached."),{type:"snackbar",id:"inserter-notice"});return}A(),I(o.postTypeLabel?(0,cr.sprintf)((0,cr._n)("%1$d image attached to %2$s.","%1$d images attached to %2$s.",J),J,o.postTypeLabel):(0,cr.sprintf)((0,cr._n)("%d image attached to post.","%d images attached to post.",J),J),{type:"snackbar",id:"inserter-notice"})}catch{B((0,cr.__)("Could not attach images."),{type:"snackbar",id:"inserter-notice"})}},[k,o,A,B,I,O]),z=(0,gi.useCallback)(async X=>{try{await S(X),A(),I(o.postTypeLabel?(0,cr.sprintf)((0,cr.__)("Image detached from %s."),o.postTypeLabel):(0,cr.__)("Image detached from post."),{type:"snackbar",id:"inserter-notice"})}catch{B((0,cr.__)("Could not detach image."),{type:"snackbar",id:"inserter-notice"})}},[S,o,A,B,I]),[V,L]=(0,gi.useState)(),D=(0,gi.useCallback)(()=>{let X=V;L(void 0),z(X)},[z,V]),N="block-editor-inserter__media-panel",j=o.labels.search_items||(0,cr.__)("Search");return(0,tn.jsxs)("div",{ref:T,className:$(N,{"has-footer":w}),children:[(0,tn.jsx)(yu.SearchControl,{className:`${N}-search`,onChange:n,value:r,label:j,placeholder:j}),m&&!h?.length&&(0,tn.jsx)("div",{className:`${N}-spinner`,children:(0,tn.jsx)(yu.Spinner,{})}),!m&&!h?.length&&(0,tn.jsx)(sc,{children:o.emptyMessage&&!i?o.emptyMessage:(0,cr.__)("No results found.")}),!!h?.length&&(0,tn.jsx)("div",{className:$(`${N}-results`,{"is-loading":P}),"aria-busy":P,children:(0,tn.jsx)(ppe,{rootClientId:e,onClick:t,onDetach:S?L:void 0,mediaList:h,category:o})}),w&&(0,tn.jsxs)(Qe,{direction:"column",gap:"sm",className:`${N}-footer`,children:[x&&(0,tn.jsx)(ZS,{currentPage:s,numPages:v,changePage:R,totalItems:g}),k&&(0,tn.jsx)(D7e,{onSelect:M})]}),V&&(0,tn.jsxs)(yu.Modal,{title:(0,cr.__)("Detach image"),onRequestClose:()=>L(void 0),overlayClassName:`${N}-detach-modal`,children:[(0,tn.jsx)("p",{children:o.postTypeLabel?(0,cr.sprintf)((0,cr.__)("Detach this image from the current %s? The image will remain in the Media Library."),o.postTypeLabel):(0,cr.__)("Detach this image from the current post? The image will remain in the Media Library.")}),(0,tn.jsxs)("div",{className:`${N}-detach-actions`,children:[(0,tn.jsx)(yu.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>L(void 0),children:(0,cr.__)("Cancel")}),(0,tn.jsx)(yu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:D,children:(0,cr.__)("Detach")})]})]})]})}var Qs=c(E(),1),V7e=["image","video","audio"];function F7e({rootClientId:e,selectedCategory:t,onSelectCategory:o,onInsert:r,children:n}){let i=vpe(e),s=(0,wpe.useViewportMatch)("medium","<"),a="block-editor-inserter__media-tabs",l=(0,nk.useCallback)(d=>{if(!d?.url)return;let f=window.__experimentalDataViewsMediaModal&&d.mime_type?d.mime_type.split("/")[0]:d.type,[p]=h2(d,f);r(p)},[r]),u=(0,nk.useMemo)(()=>i.map(d=>({...d,label:d.labels.name})),[i]);return(0,nk.useEffect)(()=>{if(!t)return;let d=u.find(f=>f.name===t.name);d&&d!==t?o(d):d||o(null)},[u,o,t]),u.length?(0,Qs.jsxs)(Qs.Fragment,{children:[!s&&(0,Qs.jsxs)("div",{className:`${a}-container`,children:[(0,Qs.jsx)(m2,{categories:u,selectedCategory:t,onSelectCategory:o,children:n}),(0,Qs.jsx)(Xs,{children:(0,Qs.jsx)(bu,{multiple:!1,onSelect:l,allowedTypes:V7e,render:({open:d})=>(0,Qs.jsx)(Cpe.Button,{__next40pxDefaultSize:!0,onClick:f=>{f.target.focus(),d()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,xpe.__)("Open Media Library")})})})]}),s&&(0,Qs.jsx)(l2,{categories:u,screenClassName:"block-editor-inserter__media-mobile-screen",children:d=>(0,Qs.jsx)(OC,{onInsert:r,rootClientId:e,category:d})})]}):(0,Qs.jsx)(sc,{})}var o9=F7e;var AC=c(F(),1),gm=c(G(),1);var b2=c(fe(),1),Rpe=c(Xr(),1),Bpe=c(Q(),1);var Epe=c(U(),1),{Fill:Tpe,Slot:z7e}=(0,Epe.createSlotFill)("__unstableInserterMenuExtension");Tpe.Slot=z7e;var g2=Tpe;var Ss=c(E(),1),j7e=9,H7e=[];function U7e({filterValue:e,onSelect:t,onHover:o,onHoverPattern:r,rootClientId:n,clientId:i,isAppender:s,__experimentalInsertionIndex:a,maxBlockPatterns:l,maxBlockTypes:u,showBlockDirectory:d=!1,isDraggable:f=!0,shouldFocusBlock:p=!0,prioritizePatterns:h,selectBlockOnInsert:m,isQuick:g}){let b=(0,b2.useDebounce)(Rpe.speak,500),{prioritizedBlocks:v}=(0,Bpe.useSelect)(V=>({prioritizedBlocks:V(C).getBlockListSettings(n)?.prioritizedInserterBlocks||H7e}),[n]),[y,k]=mm({onSelect:t,rootClientId:n,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:p,selectBlockOnInsert:m}),[S,_,x,w]=vp(y,k,g),[T,,R]=hm(k,y,void 0,g),B=(0,AC.useMemo)(()=>{if(l===0)return[];let V=Aw(T,e);return l!==void 0?V.slice(0,l):V},[e,T,l]),I=u;h&&B.length>2&&(I=0);let O=(0,AC.useMemo)(()=>{if(I===0)return[];let V=S.filter(N=>N.name!=="core/block"),L=$c(V,"frecency","desc");!e&&v.length&&(L=JB(L,v));let D=ZB(L,_,x,e);return I!==void 0?D.slice(0,I):D},[e,S,_,x,I,v]);(0,AC.useEffect)(()=>{if(!e)return;let V=O.length+B.length,L=(0,gm.sprintf)((0,gm._n)("%d result found.","%d results found.",V),V);b(L)},[e,b,O,B]);let P=(0,b2.useAsyncList)(O,{step:j7e}),A=O.length>0||B.length>0,M=!!O.length&&(0,Ss.jsx)(pm,{title:(0,Ss.jsx)(bt,{children:(0,gm.__)("Blocks")}),children:(0,Ss.jsx)(pb,{items:P,onSelect:w,onHover:o,label:(0,gm.__)("Blocks"),isDraggable:f})}),z=!!B.length&&(0,Ss.jsx)(pm,{title:(0,Ss.jsx)(bt,{children:(0,gm.__)("Patterns")}),children:(0,Ss.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,Ss.jsx)(hu,{blockPatterns:B,onClickPattern:R,onHover:r,isDraggable:f})})});return(0,Ss.jsxs)(GS,{children:[!d&&!A&&(0,Ss.jsx)(sc,{}),h?z:M,!!O.length&&!!B.length&&(0,Ss.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),h?M:z,d&&(0,Ss.jsx)(g2.Slot,{fillProps:{onSelect:w,onHover:o,filterValue:e,hasItems:A,rootClientId:y},children:V=>V.length?V:A?null:(0,Ss.jsx)(sc,{})})]})}var y2=U7e;var S2=c(U(),1),Ppe=c(F(),1);var zd=c(E(),1),{Tabs:v2}=H(S2.privateApis);function G7e({defaultTabId:e,onClose:t,onSelect:o,selectedTab:r,tabs:n,closeButtonLabel:i},s){return(0,zd.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,zd.jsxs)(v2,{selectOnMove:!1,defaultTabId:e,onSelect:o,selectedTabId:r,children:[(0,zd.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,zd.jsx)(S2.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:eg,label:i,onClick:()=>t(),size:"compact"}),(0,zd.jsx)(v2.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:n.map(a=>(0,zd.jsx)(v2.Tab,{tabId:a.name,className:"block-editor-tabbed-sidebar__tab",children:a.title},a.name))})]}),n.map(a=>(0,zd.jsx)(v2.TabPanel,{tabId:a.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:a.panelRef,children:a.panel},a.name))]})})}var k2=(0,Ppe.forwardRef)(G7e);var _2=c(Q(),1),ik=c(F(),1);function LC(e=!0){let{setZoomLevel:t,resetZoomLevel:o}=H((0,_2.useDispatch)(C)),{isZoomedOut:r,isZoomOut:n}=(0,_2.useSelect)(a=>{let{isZoomOut:l}=H(a(C));return{isZoomedOut:l(),isZoomOut:l}},[]),i=(0,ik.useRef)(!1),s=(0,ik.useRef)(e);(0,ik.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,ik.useEffect)(()=>(s.current=e,e!==n()&&(i.current=!0,e?t("auto-scaled"):o()),()=>{i.current&&n()&&o()}),[e,n,o,t])}var Yt=c(E(),1),Ope=()=>{};function W7e({rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,onSelect:n,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:a="",shouldFocusBlock:l=!0,onPatternCategorySelection:u,onClose:d,__experimentalInitialTab:f,__experimentalInitialCategory:p},h){let{isZoomOutMode:m,hasSectionRootClientId:g}=(0,Ipe.useSelect)(me=>{let{isZoomOut:ke,getSectionRootClientId:ve}=H(me(C));return{isZoomOutMode:ke(),hasSectionRootClientId:!!ve()}},[]),[b,v,y]=(0,NC.useDebouncedInput)(a),[k,S]=(0,Jt.useState)(null),[_,x]=(0,Jt.useState)(p),[w,T]=(0,Jt.useState)("all"),[R,B]=(0,Jt.useState)(null),I=(0,NC.useViewportMatch)("large"),P=(0,NC.useViewportMatch)("medium","<")?d:Ope;function A(){return f||(m?"patterns":"blocks")}let[M,z]=(0,Jt.useState)(A());LC(g&&(M==="patterns"||M==="media")&&I);let[L,D,N]=mm({rootClientId:e,clientId:t,isAppender:o,insertionIndex:r,shouldFocusBlock:l}),j=(0,Jt.useRef)(),X=(0,Jt.useCallback)((me,ke,ve,Ee)=>{D(me,ke,ve,Ee),n(me),P(),window.requestAnimationFrame(()=>{!l&&!j.current?.contains(h.current.ownerDocument.activeElement)&&j.current?.querySelector("button").focus()})},[D,P,n,h,l]),J=(0,Jt.useCallback)((me,ke,...ve)=>{N(!1),D(me,{patternName:ke},...ve),n(),P()},[D,P,n,N]),te=(0,Jt.useCallback)(me=>{N(me),S(me)},[N,S]),ee=(0,Jt.useCallback)((me,ke)=>{x(me),T(ke),u?.()},[x,u]),W=M==="patterns"&&!y&&!!_,K=M==="media"&&!!R,[Y,Z]=(0,Jt.useState)(!1),oe=(0,Jt.useRef)(null),ie=(0,Jt.useRef)(null),q=(0,Jt.useRef)(null);(0,Jt.useEffect)(()=>{let me=ve=>{Z(ve.currentTarget.scrollTop>0)},ke=[oe.current,ie.current,q.current].filter(Boolean);return ke.forEach(ve=>ve.addEventListener("scroll",me)),()=>{ke.forEach(ve=>ve.removeEventListener("scroll",me))}},[]);let re=(0,Jt.useMemo)(()=>M==="media"?null:(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsx)(x2.SearchControl,{className:$("block-editor-inserter__search",{"is-scrolled":Y}),onChange:me=>{k&&S(null),v(me)},value:b,label:(0,bm.__)("Search"),placeholder:(0,bm.__)("Search")}),!!y&&(0,Yt.jsx)(y2,{filterValue:y,onSelect:n,onHover:te,rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:M==="patterns"})]}),[M,k,S,v,b,y,n,te,l,t,e,r,o,Y]),ae=(0,Jt.useMemo)(()=>(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,Yt.jsx)(Ofe,{ref:j,rootClientId:L,onInsert:X,onHover:te,showMostUsedBlocks:s})}),i&&(0,Yt.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,Yt.jsx)(bt,{render:(0,Yt.jsx)("h2",{}),children:(0,bm.__)("A tip for using the block editor")}),(0,Yt.jsx)(Hle,{})]})]}),[L,X,te,s,i]),ye=(0,Jt.useMemo)(()=>(0,Yt.jsx)(rpe,{rootClientId:L,onInsert:J,onSelectCategory:ee,selectedCategory:_,children:W&&(0,Yt.jsx)(u2,{rootClientId:L,onInsert:J,category:_,patternFilter:w,showTitlesAsTooltip:!0})}),[L,J,ee,w,_,W]),xe=(0,Jt.useMemo)(()=>(0,Yt.jsx)(o9,{rootClientId:L,selectedCategory:R,onSelectCategory:B,onInsert:X,children:K&&(0,Yt.jsx)(OC,{rootClientId:L,onInsert:X,category:R})}),[L,X,R,B,K]),he=me=>{me!=="patterns"&&x(null),z(me)},ge=(0,Jt.useRef)();return(0,Jt.useLayoutEffect)(()=>{ge.current&&window.requestAnimationFrame(()=>{ge.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()})},[]),(0,Yt.jsxs)("div",{className:$("block-editor-inserter__menu",{"show-panel":W||K,"is-zoom-out":m}),ref:h,children:[(0,Yt.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,Yt.jsx)(k2,{ref:ge,onSelect:he,onClose:d,selectedTab:M,closeButtonLabel:(0,bm.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,bm.__)("Blocks"),panelRef:oe,panel:(0,Yt.jsxs)(Yt.Fragment,{children:[re,M==="blocks"&&!y&&ae]})},{name:"patterns",title:(0,bm.__)("Patterns"),panelRef:ie,panel:(0,Yt.jsxs)(Yt.Fragment,{children:[re,M==="patterns"&&!y&&ye]})},{name:"media",title:(0,bm.__)("Media"),panelRef:q,panel:(0,Yt.jsxs)(Yt.Fragment,{children:[re,xe]})}]})}),i&&k&&(0,Yt.jsx)(x2.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,Yt.jsx)(ffe,{item:k})})]})}var r9=(0,Jt.forwardRef)(W7e);function $7e(e,t){return(0,Yt.jsx)(r9,{...e,onPatternCategorySelection:Ope,ref:t})}var Ape=(0,Jt.forwardRef)($7e);var w2=c(F(),1),MC=c(G(),1),C2=c(U(),1),Lpe=c(Q(),1);var bb=c(E(),1),K7e=6,Y7e=6,q7e=2;function E2({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n,hasSearch:i=!0}){let[s,a]=(0,w2.useState)(""),[l,u]=mm({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n}),[d]=vp(l,u,!0),{setInserterIsOpened:f,insertionIndex:p}=(0,Lpe.useSelect)(g=>{let{getSettings:b,getBlockIndex:v,getBlockCount:y}=g(C),k=b(),S=v(o),_=y();return{setInserterIsOpened:k.__experimentalSetIsInserterOpened,insertionIndex:S===-1?_:S}},[o]),h=i&&d.length>K7e;(0,w2.useEffect)(()=>{f&&f(!1)},[f]);let m=()=>{f({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:p})};return(0,bb.jsxs)("div",{className:$("block-editor-inserter__quick-inserter",{"has-search":h,"has-expand":f}),children:[h&&(0,bb.jsx)(C2.SearchControl,{className:"block-editor-inserter__search",value:s,onChange:g=>{a(g)},label:(0,MC.__)("Search"),placeholder:(0,MC.__)("Search")}),(0,bb.jsx)("div",{className:"block-editor-inserter__quick-inserter-results",children:(0,bb.jsx)(y2,{filterValue:s,onSelect:e,rootClientId:t,clientId:o,isAppender:r,maxBlockPatterns:s?q7e:0,maxBlockTypes:Y7e,isDraggable:!1,selectBlockOnInsert:n,isQuick:!0})}),f&&(0,bb.jsx)(C2.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__quick-inserter-expand",onClick:m,"aria-label":(0,MC.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,MC.__)("Browse all")})]})}var Z7e=50;function Npe(e,t){if(!e||!e.attributes||!t?.__experimentalLabel)return null;let o=t.__experimentalLabel(e.attributes,{context:"appender"});return typeof o=="string"&&o.length<Z7e&&o.length>0?o:null}var sk=c(E(),1),X7e=({onToggle:e,disabled:t,isOpen:o,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s={}},a)=>{let{as:l=T2.Button,label:u,onClick:d,...f}=s,p=u;!p&&i?p=i:!p&&n?p=(0,jd.sprintf)((0,jd._x)("Add %s","directly add the only allowed block"),r.toLowerCase()):p||(p=(0,jd._x)("Add block","Generic label for block inserter button"));function h(m){e&&e(m),d&&d(m)}return(0,sk.jsx)(l,{ref:a,__next40pxDefaultSize:s.as?void 0:!0,icon:Ca,label:p,tooltipPosition:"bottom",onClick:h,className:"block-editor-inserter__toggle","aria-haspopup":n?!1:"true","aria-expanded":n?!1:o,isPressed:!n&&o,disabled:t,...f})},Q7e=(0,n9.forwardRef)(X7e),J7e=({clientId:e,rootClientId:t,disabled:o,isAppender:r,position:n,selectBlockOnInsert:i,shouldDirectInsert:s=!0,showInserterHelpPanel:a,__experimentalIsQuick:l,onSelectOrClose:u,onToggle:d,renderToggle:f,toggleProps:p},h)=>{let{hasItems:m,hasSingleBlockType:g,blockTitle:b,allowedBlockType:v,blockToInsert:y,appenderLabel:k,targetRootClientId:S}=(0,ak.useSelect)(V=>{let{getBlockRootClientId:L,hasInserterItems:D,getAllowedBlocks:N,getDirectInsertBlock:j,getBlockListSettings:X}=V(C),{getBlockVariations:J,getBlockType:te}=V(yb.store),ee=t||L(e)||void 0,W=N(ee),K=s&&j(ee),{defaultBlock:Y}=X(ee)??{},Z=W?.length===1&&J(W[0].name,"inserter")?.length===0,oe=Z?W[0]:null,ie=K||null;!ie&&Z&&Y?.name===oe.name&&(ie=Y);let q=K?te(K.name):null;return{hasItems:D(ee),hasSingleBlockType:Z,blockTitle:oe?oe.title:"",allowedBlockType:oe,blockToInsert:ie,appenderLabel:Npe(K,q),targetRootClientId:ee}},[t,e,s]),{insertBlock:_}=(0,ak.useDispatch)(C),{getBlock:x,getBlockIndex:w,getBlockOrder:T,getBlockRootClientId:R,getBlockSelectionEnd:B,getPreviousBlockClientId:I}=(0,ak.useSelect)(C),{getActiveBlockVariation:O,getBlockType:P}=(0,ak.useSelect)(yb.store);if(!m&&(r||S||e))return null;function A(){let V=y?.name??v.name;function L(te){if(!te?.length)return{};let ee;if(e){let W=x(e),K=x(I(e));W?.name===K?.name&&(ee=K?.attributes)}else if(S){let W=x(S)?.innerBlocks?.at(-1);W?.name===V&&(ee=W.attributes)}return ee?Object.fromEntries(te.filter(W=>W in ee).map(W=>[W,ee[W]])):{}}function D(){if(e)return w(e);let te=B();return!r&&te&&R(te)===S?w(te)+1:T(S).length}let N=L(y?.attributesToCopy),j=(0,yb.createBlock)(V,{...y?.attributes,...N});_(j,D(),S,i),u?.(j);let X=P(V),J;if(X&&(J=(0,yb.__experimentalGetBlockLabel)(X,j.attributes),J===X.title&&(J=O(V,j.attributes)?.title||J)),J){let te=(0,jd.sprintf)((0,jd.__)("%s block added"),J);(0,Mpe.speak)(te)}}function M({onToggle:V,isOpen:L}){let D={onToggle:V,isOpen:L,disabled:o||!m,blockTitle:b,hasSingleBlockType:g,appenderLabel:k,toggleProps:p};return f?f(D):(0,sk.jsx)(Q7e,{ref:h,...D})}function z({onClose:V}){return l?(0,sk.jsx)(E2,{onSelect:L=>{let D=Array.isArray(L)&&L?.length?L[0]:L;u&&typeof u=="function"&&u(D),V()},rootClientId:S,clientId:e,isAppender:r,selectBlockOnInsert:i}):(0,sk.jsx)(Ape,{onSelect:()=>{V()},onClose:V,rootClientId:S,clientId:e,isAppender:r,showInserterHelpPanel:a})}return g||y?M({onToggle:A}):(0,sk.jsx)(T2.Dropdown,{className:"block-editor-inserter",contentClassName:$("block-editor-inserter__popover",{"is-quick":l}),popoverProps:{position:n,shift:!0},onToggle:d,expandOnMobile:!0,headerTitle:(0,jd.__)("Add a block"),renderToggle:M,renderContent:z,onClose:u})},eUe=(0,n9.forwardRef)(J7e),Za=eUe;var DC=c(E(),1),tUe="\uFEFF";function lk({rootClientId:e}){let{showPrompt:t,isLocked:o,placeholder:r,isManualGrid:n}=(0,R2.useSelect)(u=>{let{getBlockCount:d,getSettings:f,getTemplateLock:p,getBlockAttributes:h}=u(C),m=!d(e),{bodyPlaceholder:g}=f();return{showPrompt:m,isLocked:!!p(e),placeholder:g,isManualGrid:h(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:i,startTyping:s}=(0,R2.useDispatch)(C);if(o||n)return null;let a=(0,Dpe.decodeEntities)(r)||(0,i9.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,DC.jsxs)("div",{"data-root-client-id":e||"",className:$("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,DC.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,i9.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:u=>{(B2.ENTER===u.keyCode||B2.SPACE===u.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?a:tUe}),(0,DC.jsx)(Za,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var Vpe=c(U(),1),s9=c(F(),1),VC=c(G(),1);var Fpe=c(Bt(),1);var P2=c(E(),1);function zpe({rootClientId:e,className:t,onFocus:o,tabIndex:r,onSelect:n},i){return(0,P2.jsx)(Za,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...s)=>{n&&typeof n=="function"&&n(...s)},renderToggle:({onToggle:s,disabled:a,isOpen:l,blockTitle:u,hasSingleBlockType:d,appenderLabel:f})=>{let p=!d,h;return f?h=f:d?h=(0,VC.sprintf)((0,VC._x)("Add %s","directly add the only allowed block"),u.toLowerCase()):h=(0,VC._x)("Add block","Generic label for block inserter button"),(0,P2.jsx)(Vpe.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:o,tabIndex:r,className:$(t,"block-editor-button-block-appender"),onClick:s,"aria-haspopup":p?"true":void 0,"aria-expanded":p?l:void 0,disabled:a,label:h,showTooltip:!0,children:(0,P2.jsx)(gt,{icon:Ca})})},isAppender:!0})}var jpe=(0,s9.forwardRef)((e,t)=>((0,Fpe.default)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),zpe(e,t))),ym=(0,s9.forwardRef)(zpe);var ck=c(E(),1);function oUe({rootClientId:e}){return(0,a9.useSelect)(o=>o(C).canInsertBlockType((0,Hpe.getDefaultBlockName)(),e))?(0,ck.jsx)(lk,{rootClientId:e}):(0,ck.jsx)(ym,{rootClientId:e,className:"block-list-appender__toggle"})}function Upe({rootClientId:e,CustomAppender:t,className:o,tagName:r="div"}){let n=(0,a9.useSelect)(i=>{let{getBlockInsertionPoint:s,isBlockInsertionPointVisible:a,getBlockCount:l}=i(C),u=s();return a()&&e===u?.rootClientId&&l(e)===0},[e]);return(0,ck.jsx)(r,{tabIndex:-1,className:$("block-list-appender wp-block",o,{"is-drag-over":n}),contentEditable:!1,"data-block":!0,children:t?(0,ck.jsx)(t,{}):(0,ck.jsx)(oUe,{rootClientId:e})})}var nme=c(fe(),1),zC=c(Q(),1),ime=c(F(),1),sme=c(G(),1);var uk=c(Q(),1),Sm=c(F(),1),A2=c(U(),1),ome=c(fe(),1);var $pe=c(Q(),1),vm=c(F(),1),Kpe=c(U(),1),Ype=c(G(),1);var Wpe=c(fe(),1),l9=c(Rt(),1),Gpe=new WeakMap;function rUe(e){let t=(0,Wpe.useRefEffect)(o=>{function r(i){let{deltaX:s,deltaY:a,target:l}=i,u=e.current,d=Gpe.get(u);d||(d=(0,l9.getScrollContainer)(u),Gpe.set(u,d));let f=(0,l9.getScrollContainer)(l);o.contains(f)||d.scrollBy(s,a)}let n={passive:!0};return o.addEventListener("wheel",r,n),()=>{o.removeEventListener("wheel",r,n)}},[e]);return e?t:null}var vb=rUe;var c9=c(E(),1),nUe=Number.MAX_SAFE_INTEGER;function iUe({previousClientId:e,nextClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,operation:i="insert",nearestSide:s="right",...a}){let[l,u]=(0,vm.useReducer)(y=>(y+1)%nUe,0),{orientation:d,rootClientId:f,isVisible:p}=(0,$pe.useSelect)(y=>{let{getBlockListSettings:k,getBlockRootClientId:S,isBlockVisible:_}=y(C),x=S(e??t);return{orientation:k(x)?.orientation||"vertical",rootClientId:x,isVisible:_(e)&&_(t)}},[e,t]),h=Mt(e),m=Mt(t),g=d==="vertical",b=(0,vm.useMemo)(()=>l<0||!h&&!m||!p?void 0:{contextElement:i==="group"?m||h:h||m,getBoundingClientRect(){let k=h?h.getBoundingClientRect():null,S=m?m.getBoundingClientRect():null,_=0,x=0,w=0,T=0;if(i==="group"){let R=S||k;x=R.top,w=0,T=R.bottom-R.top,_=s==="left"?R.left-2:R.right-2}else g?(x=k?k.bottom:S.top,w=k?k.width:S.width,T=S&&k?S.top-k.bottom:0,_=k?k.left:S.left):(x=k?k.top:S.top,T=k?k.height:S.height,(0,Ype.isRTL)()?(_=S?S.right:k.left,w=k&&S?k.left-S.right:0):(_=k?k.right:S.left,w=k&&S?S.left-k.right:0),w=Math.max(w,0));return new window.DOMRect(_,x,w,T)}},[h,m,l,g,p,i,s]),v=vb(n);return(0,vm.useLayoutEffect)(()=>{if(!h)return;let y=new window.MutationObserver(u);return y.observe(h,{attributes:!0}),()=>{y.disconnect()}},[h]),(0,vm.useLayoutEffect)(()=>{if(!m)return;let y=new window.MutationObserver(u);return y.observe(m,{attributes:!0}),()=>{y.disconnect()}},[m]),(0,vm.useLayoutEffect)(()=>{if(h)return h.ownerDocument.defaultView.addEventListener("resize",u),()=>{h.ownerDocument.defaultView?.removeEventListener("resize",u)}},[h]),!h&&!m||!p?null:(0,c9.jsx)(Kpe.Popover,{ref:v,animate:!1,anchor:b,focusOnMount:!1,__unstableSlotName:r,inline:!r,...a,className:$("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,c9.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:o})},t+"--"+f)}var I2=iUe;var Qpe=c(Q(),1),Jpe=c(fe(),1),eme=c(U(),1);var Ud=c(F(),1);var qpe=c(fe(),1),Zpe=c(U(),1),Hd=c(F(),1);var u9=c(E(),1),sUe=Number.MAX_SAFE_INTEGER;function aUe({clientId:e,bottomClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,shift:i=!0,...s},a){let l=Mt(e),u=Mt(t??e),d=(0,qpe.useMergeRefs)([a,vb(n)]),[f,p]=(0,Hd.useReducer)(m=>(m+1)%sUe,0);(0,Hd.useLayoutEffect)(()=>{if(!l)return;let m,g=new window.MutationObserver(()=>{m||(m=window.requestAnimationFrame(()=>{m=null,p()}))});return g.observe(l,{attributes:!0}),()=>{g.disconnect(),m&&window.cancelAnimationFrame(m)}},[l]);let h=(0,Hd.useMemo)(()=>{if(!(f<0||!l||t&&!u))return{getBoundingClientRect(){return u?Pj(Nv(l),Nv(u)):Nv(l)},contextElement:l}},[f,l,t,u]);return!l||t&&!u?null:(0,u9.jsx)(Zpe.Popover,{ref:d,animate:!1,focusOnMount:!1,anchor:h,__unstableSlotName:r,inline:!r,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:$("block-editor-block-popover",s.className),variant:"unstyled",children:o})}var Sb=(0,Hd.forwardRef)(aUe),lUe=({clientId:e,bottomClientId:t,children:o,...r},n)=>(0,u9.jsx)(Sb,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:n,children:o}),Xpe=(0,Hd.forwardRef)(lUe);var O2=c(E(),1);function cUe({clientId:e,bottomClientId:t,children:o,shift:r=!1,additionalStyles:n,...i},s){t??=e;let a=Mt(e);return(0,O2.jsx)(Sb,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,O2.jsx)(uUe,{selectedElement:a,additionalStyles:n,children:o}):o})}function uUe({selectedElement:e,additionalStyles:t={},children:o}){let[r,n]=(0,Ud.useState)(e.offsetWidth),[i,s]=(0,Ud.useState)(e.offsetHeight);(0,Ud.useEffect)(()=>{let l=new window.ResizeObserver(()=>{n(e.offsetWidth),s(e.offsetHeight)});return l.observe(e,{box:"border-box"}),()=>l.disconnect()},[e]);let a=(0,Ud.useMemo)(()=>({position:"absolute",width:r,height:i,...t}),[r,i,t]);return(0,O2.jsx)("div",{style:a,children:o})}var Xa=(0,Ud.forwardRef)(cUe);var d9=c(E(),1),FC={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function dUe({__unstablePopoverSlot:e,__unstableContentRef:t}){let{clientId:o}=(0,Qpe.useSelect)(n=>{let{getBlockOrder:i,getBlockInsertionPoint:s}=n(C),a=s(),l=i(a.rootClientId);return l.length?{clientId:l[a.index]}:{}},[]),r=(0,Jpe.useReducedMotion)();return(0,d9.jsx)(Xa,{clientId:o,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,d9.jsx)(eme.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?FC.show:FC.hide,animate:FC.show,exit:r?FC.show:FC.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}var tme=dUe;var Gd=c(E(),1),dk=(0,Sm.createContext)();dk.displayName="InsertionPointOpenRefContext";function fUe({__unstablePopoverSlot:e,__unstableContentRef:t,operation:o="insert",nearestSide:r="right"}){let{selectBlock:n,hideInsertionPoint:i}=(0,uk.useDispatch)(C),s=(0,Sm.useContext)(dk),a=(0,Sm.useRef)(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:f,isInserterShown:p,isDistractionFree:h,isZoomOutMode:m}=(0,uk.useSelect)(R=>{let{getBlockOrder:B,getBlockListSettings:I,getBlockInsertionPoint:O,isBlockBeingDragged:P,getPreviousBlockClientId:A,getNextBlockClientId:M,getSettings:z,isZoomOut:V}=H(R(C)),L=O(),D=B(L.rootClientId);if(!D.length)return{};let N=D[L.index-1],j=D[L.index];for(;P(N);)N=A(N);for(;P(j);)j=M(j);let X=z();return{previousClientId:N,nextClientId:j,orientation:I(L.rootClientId)?.orientation||"vertical",rootClientId:L.rootClientId,isDistractionFree:X.isDistractionFree,isInserterShown:L?.__unstableWithInserter,isZoomOutMode:V()}},[]),{getBlockEditingMode:g}=(0,uk.useSelect)(C),b=(0,ome.useReducedMotion)();function v(R){R.target===a.current&&d&&g(d)!=="disabled"&&n(d,-1)}function y(R){R.target===a.current&&!s.current&&i()}function k(R){R.target!==a.current&&(s.current=!0)}let S=(0,Sm.useCallback)(R=>{!R&&s.current&&(s.current=!1)},[s]),_={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:p?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},x={start:{scale:b?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(h||m&&o!=="insert")return null;let T=$("block-editor-block-list__insertion-point",l==="horizontal"||o==="group"?"is-horizontal":"is-vertical");return(0,Gd.jsx)(I2,{previousClientId:u,nextClientId:d,__unstablePopoverSlot:e,__unstableContentRef:t,operation:o,nearestSide:r,children:(0,Gd.jsxs)(A2.__unstableMotion.div,{layout:!b,initial:b?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:v,onFocus:k,className:$(T,{"is-with-inserter":p}),onHoverEnd:y,children:[(0,Gd.jsx)(A2.__unstableMotion.div,{variants:_,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),p&&(0,Gd.jsx)(A2.__unstableMotion.div,{variants:x,className:$("block-editor-block-list__insertion-point-inserter"),children:(0,Gd.jsx)(Za,{ref:S,position:"bottom center",clientId:d,rootClientId:f,__experimentalIsQuick:!0,onToggle:R=>{s.current=R},onSelectOrClose:()=>{s.current=!1}})})]})})}function rme(e){let{insertionPoint:t,isVisible:o,isBlockListEmpty:r}=(0,uk.useSelect)(n=>{let{getBlockInsertionPoint:i,isBlockInsertionPointVisible:s,getBlockCount:a}=n(C),l=i();return{insertionPoint:l,isVisible:s(),isBlockListEmpty:a(l?.rootClientId)===0}},[]);return!o||r?null:t.operation==="replace"?(0,Gd.jsx)(tme,{...e},`${t.rootClientId}-${t.index}`):(0,Gd.jsx)(fUe,{operation:t.operation,nearestSide:t.nearestSide,...e})}function ame(){let e=(0,ime.useContext)(dk),t=(0,zC.useSelect)(g=>{let b=g(C).getSettings();return b.isDistractionFree||b.isPreviewMode||H(g(C)).isZoomOut()},[]),{getBlockListSettings:o,getBlockIndex:r,isMultiSelecting:n,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:a,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:u,getBlockName:d,getBlockAttributes:f,getParentSectionBlock:p}=H((0,zC.useSelect)(C)),{showInsertionPoint:h,hideInsertionPoint:m}=(0,zC.useDispatch)(C);return(0,nme.useRefEffect)(g=>{if(t)return;function b(v){if(e===void 0||e.current||v.target.nodeType===v.target.TEXT_NODE||n())return;if(!v.target.classList.contains("block-editor-block-list__layout")){m();return}let y;if(v.target.classList.contains("is-root-container")||(y=(v.target.getAttribute("data-block")?v.target:v.target.closest("[data-block]")).getAttribute("data-block")),a(y)||u(y)==="disabled"||d(y)==="core/block"||y&&f(y).layout?.isManualPlacement)return;let k=o(y),S=k?.orientation||"vertical",_=!!k?.__experimentalCaptureToolbars,x=v.clientY,w=v.clientX,R=Array.from(v.target.children).find(P=>{let A=P.getBoundingClientRect();return P.classList.contains("wp-block")&&S==="vertical"&&A.top>x||P.classList.contains("wp-block")&&S==="horizontal"&&((0,sme.isRTL)()?A.right<w:A.left>w)});if(!R){m();return}if(!R.id&&(R=R.firstElementChild,!R)){m();return}let B=R.id.slice(6);if(!B||l(B)||p(B)||i().includes(B)&&S==="vertical"&&!_&&!s().hasFixedToolbar)return;let I=R.getBoundingClientRect();if(S==="horizontal"&&(v.clientY>I.bottom||v.clientY<I.top)||S==="vertical"&&(v.clientX>I.right||v.clientX<I.left)){m();return}let O=r(B);if(O===0){m();return}h(y,O,{__unstableWithInserter:!0})}return g.addEventListener("mousemove",b),()=>{g.removeEventListener("mousemove",b)}},[e,o,r,n,h,m,i,t])}var L2=c(Q(),1),lme=c(fe(),1);var cme=c(E(),1);function kb(){let{getSettings:e,hasSelectedBlock:t,hasMultiSelection:o}=(0,L2.useSelect)(C),{clearSelectedBlock:r}=(0,L2.useDispatch)(C),{clearBlockSelection:n}=e();return(0,lme.useRefEffect)(i=>{if(!n)return;function s(a){!t()&&!o()||a.target===i&&r()}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[t,o,r,n])}function ume(e){return(0,cme.jsx)("div",{ref:kb(),...e})}var Ime=c(fe(),1),pk=c(F(),1),Ome=c(Q(),1),Cb=c(ce(),1);var dme=c(E(),1);function fme({showSeparator:e,isFloating:t,onAddBlock:o,isToggle:r}){let{clientId:n}=ht();return(0,dme.jsx)(ym,{className:$({"block-list-appender__toggle":r}),rootClientId:n,showSeparator:e,isFloating:t,onAddBlock:o})}var pme=c(E(),1);function mme(){let{clientId:e}=ht();return(0,pme.jsx)(lk,{rootClientId:e})}var M2=c(F(),1),bme=c(Q(),1),N2=c(Bt(),1),yme=c(jC(),1);var HC=new WeakMap;function pUe(){let e;return t=>((e===void 0||!(0,yme.isShallowEqual)(e,t))&&(e=t),e)}function gme(e){let[t]=(0,M2.useState)(pUe);return t(e)}function vme(e,t,o,r,n,i,s,a,l,u,d,f){let p=(0,bme.useRegistry)(),h=gme(o),m=gme(r),g=l===void 0||t==="contentOnly"?t:l;(0,M2.useLayoutEffect)(()=>{let b={allowedBlocks:h,prioritizedInserterBlocks:m,templateLock:g};if(u!==void 0&&(b.__experimentalCaptureToolbars=u),d!==void 0)b.orientation=d;else{let v=Ba(f?.type);b.orientation=v.getOrientation(f)}s!==void 0&&((0,N2.default)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),b.defaultBlock=s),n!==void 0&&(b.defaultBlock=n),a!==void 0&&((0,N2.default)("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),b.directInsert=a),i!==void 0&&(b.directInsert=i),b.directInsert!==void 0&&typeof b.directInsert!="boolean"&&(0,N2.default)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),HC.get(p)||HC.set(p,{}),HC.get(p)[e]=b,window.queueMicrotask(()=>{let v=HC.get(p);if(Object.keys(v).length){let{updateBlockListSettings:y}=p.dispatch(C);y(v),HC.set(p,{})}})},[e,h,m,g,n,i,s,a,u,d,f,p])}var f9=c(Zh(),1),D2=c(F(),1),Sme=c(Q(),1),kme=c(ce(),1);function _me(e,t,o,r){let n=(0,Sme.useRegistry)(),i=(0,D2.useRef)(null);(0,D2.useLayoutEffect)(()=>{let s=!1,{getBlocks:a,getSelectedBlocksInitialCaretPosition:l,isBlockSelected:u}=n.select(C),{replaceInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(C);return window.queueMicrotask(()=>{if(s)return;let p=a(e),h=p.length===0||o==="all"||o==="contentOnly",m=!(0,f9.default)(t,i.current);if(!h||!m)return;i.current=t;let g=(0,kme.synchronizeBlocksWithTemplate)(p,t);(0,f9.default)(g,p)||(f({history:"ignore"}),d(e,g,p.length===0&&r&&g.length!==0&&u(e),l()))}),()=>{s=!0}},[t,o,e,n,r])}var xme=c(ce(),1),wme=c(Q(),1);function Cme(e){return(0,wme.useSelect)(t=>{let o=t(C).getBlock(e);if(!o)return;let r=t(xme.store).getBlockType(o.name);if(r&&Object.keys(r.providesContext).length!==0)return Object.fromEntries(Object.entries(r.providesContext).map(([n,i])=>[n,o.attributes[i]]))},[e])}var wb=c(Q(),1),z2=c(F(),1),j2=c(fe(),1),Bme=c(G(),1),fk=c(ce(),1);var p9=c(F(),1),ks=c(ce(),1),_b=c(Q(),1),Eme=c(Rt(),1);function m9(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch{return t}return t}function mUe(e,t,o,r,n,i,s,a,l){return u=>{let{srcRootClientId:d,srcClientIds:f,type:p,blocks:h}=m9(u);if(p==="inserter"){s();let m=h.map(g=>(0,ks.cloneBlock)(g));i(m,!0,null)}if(p==="block"){let m=o(f[0]);if(d===e&&m===t||f.includes(e)||r(f).some(y=>y===e))return;if(a==="group"){let y=f.map(k=>l(k));i(y,!0,null,f);return}let g=d===e,b=f.length,v=g&&m<t?t-b:t;n(f,d,v)}}}function hUe(e,t,o,r,n){return i=>{if(!t().mediaUpload)return;let s=(0,ks.findTransform)((0,ks.getBlockTransforms)("from"),a=>a.type==="files"&&r(a.blockName,e)&&a.isMatch(i));if(s){let a=s.transform(i,o);n(a)}}}function gUe(e){return t=>{let o=(0,ks.pasteHandler)({HTML:t,mode:"BLOCKS"});o.length&&e(o)}}function V2(e,t,o={}){let{operation:r="insert",nearestSide:n="right"}=o,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:a,getBlockOrder:l,getBlocksByClientId:u,getSettings:d,getBlock:f}=(0,_b.useSelect)(C),{getGroupingBlockName:p}=(0,_b.useSelect)(ks.store),{insertBlocks:h,moveBlocksToPosition:m,updateBlockAttributes:g,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:y}=(0,_b.useDispatch)(C),k=(0,_b.useRegistry)(),S=(0,p9.useCallback)((R,B=!0,I=0,O=[])=>{Array.isArray(R)||(R=[R]);let A=l(e)[t];if(r==="replace")v(A,R,void 0,I);else if(r==="group"){let M=f(A);n==="left"?R.push(M):R.unshift(M);let z=R.map(N=>(0,ks.cloneSanitizedBlock)(N)),V=R.every(N=>N.name==="core/image"),L=i("core/gallery",e),D=(0,ks.createBlock)(V&&L?"core/gallery":p(),{layout:{type:"flex",flexWrap:V&&L?null:"nowrap"}},z);v([A,...O],D,void 0,I)}else h(R,t,e,B,I)},[l,e,t,r,v,f,n,i,p,h]),_=(0,p9.useCallback)((R,B,I)=>{if(r==="replace"){let O=u(R),A=l(e)[t];k.batch(()=>{y(R,!1),v(A,O,void 0,0)})}else m(R,B,e,I)},[r,l,u,m,k,y,v,t,e]),x=mUe(e,t,s,a,_,S,b,r,f),w=hUe(e,d,g,i,S),T=gUe(S);return R=>{let B=(0,Eme.getFilesFromDataTransfer)(R.dataTransfer),I=R.dataTransfer.getData("text/html");I?T(I):B.length?w(B):x(R)}}function bUe(e,t,o){let r=o==="top"||o==="bottom",{x:n,y:i}=e,s=r?n:i,a=r?i:n,l=r?t.left:t.top,u=r?t.right:t.bottom,d=t[o],f;return s>=l&&s<=u?f=s:s<u?f=l:f=u,Math.sqrt((s-f)**2+(a-d)**2)}function xb(e,t,o=["top","bottom","left","right"]){let r,n;return o.forEach(i=>{let s=bUe(e,t,i);(r===void 0||s<r)&&(r=s,n=i)}),[r,n]}function F2(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function Tme(e,t){return t.top<=e.y&&t.bottom>=e.y}var h9=30,yUe=120,vUe=120;function SUe(e,t,o="vertical",r={}){let n=o==="horizontal"?["left","right"]:["top","bottom"],i=0,s="before",a=1/0,l=null,u="right",{dropZoneElement:d,parentBlockOrientation:f,rootBlockIndex:p=0}=r;if(d&&f!=="horizontal"){let v=d.getBoundingClientRect(),[y,k]=xb(t,v,["top","bottom"]);if(v.height>yUe&&y<h9){if(k==="top")return[p,"before"];if(k==="bottom")return[p+1,"after"]}}let h=(0,Bme.isRTL)();if(d&&f==="horizontal"){let v=d.getBoundingClientRect(),[y,k]=xb(t,v,["left","right"]);if(v.width>vUe&&y<h9){if(h&&k==="right"||!h&&k==="left")return[p,"before"];if(h&&k==="left"||!h&&k==="right")return[p+1,"after"]}}e.forEach(({isUnmodifiedDefaultBlock:v,getBoundingClientRect:y,blockIndex:k,blockOrientation:S})=>{let _=y();if(!_)return;let[x,w]=xb(t,_,n),[T,R]=xb(t,_,["left","right"]),B=F2(t,_);v&&B?x=0:o==="vertical"&&S!=="horizontal"&&(B&&T<h9||!B&&Tme(t,_))&&(l=k,u=R),x<a&&(s=w==="bottom"||!h&&w==="right"||h&&w==="left"?"after":"before",a=x,i=k)});let m=i+(s==="after"?1:-1),g=!!e[i]?.isUnmodifiedDefaultBlock,b=!!e[m]?.isUnmodifiedDefaultBlock;return l!==null?[l,"group",u]:!g&&!b?[s==="after"?i+1:i,"insert"]:[g?i:m,"replace"]}function H2(e,t,o,r){let n=!0;if(t){let a=t?.map(({name:l})=>l);n=o.every(l=>a?.includes(l))}let s=o.map(a=>e(a)).every(a=>{let[l]=a?.parent||[];return l?l===r:!0});return n&&s}function Rme(e,t){let{defaultView:o}=t;return!!(o&&e instanceof o.HTMLElement&&e.closest("[data-is-insertion-point]"))}function Pme({dropZoneElement:e,rootClientId:t="",parentClientId:o="",isDisabled:r=!1}={}){let n=(0,wb.useRegistry)(),[i,s]=(0,z2.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:u}=(0,wb.useSelect)(fk.store),{canInsertBlockType:d,getBlockListSettings:f,getBlocks:p,getBlockIndex:h,getDraggedBlockClientIds:m,getBlockNamesByClientId:g,getAllowedBlocks:b,isDragging:v,isGroupable:y,isZoomOut:k,getSectionRootClientId:S,getBlockParents:_}=H((0,wb.useSelect)(C)),{showInsertionPoint:x,hideInsertionPoint:w,startDragging:T,stopDragging:R}=H((0,wb.useDispatch)(C)),B=V2(i.operation==="before"||i.operation==="after"?o:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),I=(0,j2.useThrottle)((0,z2.useCallback)((O,P)=>{v()||T();let A=m(),M=[t,..._(t,!0)];if(A.some(Z=>M.includes(Z)))return;let V=b(t),L=g([t])[0],D=g(A);if(!H2(a,V,D,L))return;let j=S();if(k()&&j!==t)return;let X=p(t).filter(Z=>!((0,fk.hasBlockSupport)(Z.name,"visibility",!0)&&Z.attributes?.metadata?.blockVisibility===!1));if(X.length===0){n.batch(()=>{s({index:0,operation:"insert"}),x(t,0,{operation:"insert"})});return}let J=X.map(Z=>{let oe=Z.clientId;return{isUnmodifiedDefaultBlock:(0,fk.isUnmodifiedDefaultBlock)(Z),getBoundingClientRect:()=>{let ie=P.getElementById(`block-${oe}`);return ie?ie.getBoundingClientRect():null},blockIndex:h(oe),blockOrientation:f(oe)?.orientation}}),te=SUe(J,{x:O.clientX,y:O.clientY},f(t)?.orientation,{dropZoneElement:e,parentBlockClientId:o,parentBlockOrientation:o?f(o)?.orientation:void 0,rootBlockIndex:h(t)}),[ee,W,K]=te,Y=J[ee]?.isUnmodifiedDefaultBlock;if(!(k()&&!Y&&W!=="insert")){if(W==="group"){let Z=X[ee],oe=[Z.name,...D].every(ye=>ye==="core/image"),ie=d("core/gallery",t),q=y([Z.clientId,m()]),re=l(u(),"block"),ae=re&&re.find(({name:ye})=>ye==="group-row");if(oe&&!ie&&(!q||!ae)||!oe&&(!q||!ae))return}n.batch(()=>{s({index:ee,operation:W,nearestSide:K});let Z=["before","after"].includes(W)?o:t;x(Z,ee,{operation:W,nearestSide:K})})}},[v,b,t,g,m,a,S,k,p,f,e,o,h,n,T,x,d,y,l,u]),200);return(0,j2.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:r,onDrop:B,onDragOver(O){I(O,O.currentTarget.ownerDocument)},onDragLeave(O){let{ownerDocument:P}=O.currentTarget;Rme(O.relatedTarget,P)||Rme(O.target,P)||(I.cancel(),w())},onDragEnd(){I.cancel(),R(),w()}})}var Wd=c(E(),1),kUe={};function _Ue({children:e,clientId:t}){let o=Cme(t);return(0,Wd.jsx)(nT,{value:o,children:e})}var xUe=(0,pk.memo)(EC);function Ame(e){let{clientId:t,allowedBlocks:o,prioritizedInserterBlocks:r,defaultBlock:n,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:a,template:l,templateLock:u,wrapperRef:d,templateInsertUpdatesSelection:f,__experimentalCaptureToolbars:p,__experimentalAppenderTagName:h,renderAppender:m,orientation:g,placeholder:b,layout:v,name:y,blockType:k,parentLock:S,defaultLayout:_}=e;vme(t,S,o,r,n,i,s,a,u,p,g,v),_me(t,l,u,f);let x=(0,Cb.getBlockSupport)(y,"layout")||(0,Cb.getBlockSupport)(y,"__experimentalLayout")||kUe,{allowSizingOnChildren:w=!1}=x,T=v||x,R=(0,pk.useMemo)(()=>({..._,...T,...w&&{allowSizingOnChildren:!0}}),[_,T,w]),B=(0,Wd.jsx)(xUe,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:h,layout:R,wrapperRef:d,placeholder:b});return!k?.providesContext||Object.keys(k.providesContext).length===0?B:(0,Wd.jsx)(_Ue,{clientId:t,children:B})}function wUe(e){return hA(e),(0,Wd.jsx)(Ame,{...e})}var U2=(0,pk.forwardRef)((e,t)=>{let o=Eb({ref:t},e);return(0,Wd.jsx)("div",{className:"block-editor-inner-blocks",children:(0,Wd.jsx)("div",{...o})})});function Eb(e={},t={}){let{__unstableDisableLayoutClassNames:o,__unstableDisableDropZone:r,dropZoneElement:n}=t,{clientId:i,layout:s=null,__unstableLayoutClassNames:a=""}=ht(),l=(0,Ome.useSelect)(S=>{let{getBlockName:_,isZoomOut:x,getTemplateLock:w,getBlockRootClientId:T,getBlockEditingMode:R,getBlockSettings:B,getSectionRootClientId:I}=H(S(C));if(!i){let D=I();return{isDropZoneDisabled:x()&&D!==""}}let{hasBlockSupport:O,getBlockType:P}=S(Cb.store),A=_(i),M=R(i),z=T(i),[V]=B(i,"layout"),L=M==="disabled";if(x()){let D=I();L=i!==D}return{__experimentalCaptureToolbars:O(A,"__experimentalExposeControlsToChildren",!1),name:A,blockType:P(A),parentLock:w(z),parentClientId:z,isDropZoneDisabled:L,defaultLayout:V}},[i]),{__experimentalCaptureToolbars:u,name:d,blockType:f,parentLock:p,parentClientId:h,isDropZoneDisabled:m,defaultLayout:g}=l,b=Pme({dropZoneElement:n,rootClientId:i,parentClientId:h}),v=(0,Ime.useMergeRefs)([e.ref,r||m||s?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:b]),y={__experimentalCaptureToolbars:u,layout:s,name:d,blockType:f,parentLock:p,defaultLayout:g,...t},k=y.value&&y.onChange?wUe:Ame;return{...e,ref:v,className:$(e.className,"block-editor-block-list__layout",o?"":a),children:i?(0,Wd.jsx)(k,{...y,clientId:i}):(0,Wd.jsx)(EC,{...t})}}Eb.save=Cb.__unstableGetInnerBlocksProps;U2.DefaultBlockAppender=mme;U2.ButtonBlockAppender=fme;U2.Content=()=>Eb.save().children;var UC=U2;var GC=c(U(),1),Lme=c(fe(),1),Nme=c(Q(),1),Mme=c(F(),1),Dme=c(G(),1);var G2=c(E(),1);function g9({clientId:e,rootClientId:t="",position:o="top"}){let[r,n]=(0,Mme.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:u,blocksBeingDragged:d}=(0,Nme.useSelect)(_=>{let{getInsertionPoint:x,getBlockOrder:w,getSectionRootClientId:T,isBlockInsertionPointVisible:R,getBlockInsertionPoint:B,getDraggedBlockClientIds:I}=H(_(C)),O=T(),P=w(O);return{sectionRootClientId:O,sectionClientIds:P,insertionPoint:x(),blockInsertionPoint:B(),blockInsertionPointVisible:R(),blocksBeingDragged:I()}},[]),f=(0,Lme.useReducedMotion)();if(!e)return;let p=!1;if(!(t===i&&s&&s.includes(e)))return null;let m=a?.index===0&&e===s[a.index],g=a&&a.hasOwnProperty("index")&&e===s[a.index-1];o==="top"&&(p=m||l&&u.index===0&&e===s[u.index]),o==="bottom"&&(p=g||l&&e===s[u.index-1]);let b=d[0],v=d.includes(e),y=s.indexOf(b),S=(y>0?s[y-1]:null)===e;return(v||S)&&(p=!1),(0,G2.jsx)(GC.__unstableAnimatePresence,{children:p&&(0,G2.jsx)(GC.__unstableMotion.div,{initial:{height:0},animate:{height:"calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"},exit:{height:0},transition:{type:"tween",duration:f?0:.2,ease:[.6,0,.4,1]},className:$("block-editor-block-list__zoom-out-separator",{"is-dragged-over":r}),"data-is-insertion-point":"true",onDragOver:()=>n(!0),onDragLeave:()=>n(!1),children:(0,G2.jsx)(GC.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,Dme.__)("Drop pattern.")})})})}var Fi=c(E(),1),iI=(0,km.createContext)();iI.displayName="IntersectionObserverContext";var W2=new WeakMap,CUe={trailing:!0};function EUe({className:e,...t}){let{isOutlineMode:o,isFocusMode:r,isPreviewMode:n,editedContentOnlySection:i}=(0,Qa.useSelect)(f=>{let{getSettings:p,isTyping:h,hasBlockSpotlight:m,getEditedContentOnlySection:g}=H(f(C)),{outlineMode:b,focusMode:v,isPreviewMode:y}=p();return{isOutlineMode:b&&!h(),isFocusMode:v||m(),isPreviewMode:y,editedContentOnlySection:g()}},[]),s=(0,Qa.useRegistry)(),{setBlockVisibility:a}=(0,Qa.useDispatch)(C),l=(0,$2.useDebounce)((0,km.useCallback)(()=>{let f={};W2.get(s).forEach(([p,h])=>{f[p]=h}),a(f)},[s]),300,CUe),u=(0,km.useMemo)(()=>{let{IntersectionObserver:f}=window;if(f)return new f(p=>{W2.get(s)||W2.set(s,[]);for(let h of p){let m=h.target.getAttribute("data-block");W2.get(s).push([m,h.isIntersecting])}l()})},[]),d=Eb({ref:(0,$2.useMergeRefs)([kb(),ame()]),className:$("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r,"is-preview-mode":n})},t);return(0,Fi.jsxs)(iI.Provider,{value:u,children:[(0,Fi.jsx)("div",{...d}),!!i&&(0,Fi.jsx)(TUe,{clientId:i})]})}function TUe({clientId:e}){let{stopEditingContentOnlySection:t}=H((0,Qa.useDispatch)(C)),o=(0,Qa.useSelect)(r=>{let{isBlockSelected:n,hasSelectedInnerBlock:i,getBlockSelectionStart:s}=r(C);return!s()||n(e)||i(e,!0)},[e]);return(0,km.useEffect)(()=>{o||t()},[o,t]),null}function zS(e){return(0,Fi.jsx)(eT,{value:bF,children:(0,Fi.jsx)(EUe,{...e})})}var RUe=[],BUe=new Set;function PUe({placeholder:e,rootClientId:t,renderAppender:o,__experimentalAppenderTagName:r,layout:n=Pz}){let i=o!==!1,s=!!o,{order:a,isZoomOut:l,selectedBlocks:u,visibleBlocks:d,shouldRenderAppender:f}=(0,Qa.useSelect)(p=>{let{getSettings:h,getBlockOrder:m,getSelectedBlockClientIds:g,__unstableGetVisibleBlocks:b,getTemplateLock:v,getBlockEditingMode:y,isSectionBlock:k,isContainerInsertableToInContentOnlyMode:S,getBlockName:_,isZoomOut:x,canInsertBlockType:w}=H(p(C)),T=m(t);if(h().isPreviewMode)return{order:T,selectedBlocks:RUe,visibleBlocks:BUe};let R=g(),B=R[0],I=!t&&!B&&(!T.length||!w((0,Vme.getDefaultBlockName)(),t)),O=!!(t&&B&&t===B),P=v(t);return{order:T,selectedBlocks:R,visibleBlocks:b(),isZoomOut:x(),shouldRenderAppender:(!k(t)||S(_(B),t))&&y(t)!=="disabled"&&(!P||P==="contentOnly")&&i&&!x()&&(s||O||I)}},[t,i,s]);return(0,Fi.jsxs)(cP,{value:n,children:[a.map(p=>(0,Fi.jsxs)(Qa.AsyncModeProvider,{value:!d.has(p)&&!u.includes(p),children:[l&&(0,Fi.jsx)(g9,{clientId:p,rootClientId:t,position:"top"}),(0,Fi.jsx)(gI,{rootClientId:t,clientId:p}),l&&(0,Fi.jsx)(g9,{clientId:p,rootClientId:t,position:"bottom"})]},p)),a.length<1&&e,f&&(0,Fi.jsx)(Upe,{tagName:r,rootClientId:t,CustomAppender:o})]})}function EC(e){return(0,Fi.jsx)(Qa.AsyncModeProvider,{value:!1,children:(0,Fi.jsx)(PUe,{...e})})}var Nk=c(Q(),1),oG=c(Rt(),1),rG=c(U(),1),lye=c($l(),1),uN=c(F(),1),Mk=c(ce(),1),nG=c(Xr(),1),Dk=c(G(),1);var hhe=c(fe(),1),ghe=c(Q(),1),bhe=c(Rt(),1),vu=c(F(),1);var uc=c(G(),1),Rb=c(ce(),1),che=c(fe(),1),uhe=c(Q(),1),oL=c(F(),1);var KC=c(U(),1),$me=c(Gw(),1),Kme=c(Bt(),1),hk=c(F(),1);var En=c(U(),1),Fme=(0,En.createSlotFill)("InspectorControls"),IUe=(0,En.createSlotFill)("InspectorAdvancedControls"),OUe=(0,En.createSlotFill)("InspectorControlsBindings"),AUe=(0,En.createSlotFill)("InspectorControlsBackground"),LUe=(0,En.createSlotFill)("InspectorControlsBorder"),NUe=(0,En.createSlotFill)("InspectorControlsColor"),MUe=(0,En.createSlotFill)("InspectorControlsFilter"),DUe=(0,En.createSlotFill)("InspectorControlsDimensions"),VUe=(0,En.createSlotFill)("InspectorControlsLayout"),FUe=(0,En.createSlotFill)("InspectorControlsElements"),zUe=(0,En.createSlotFill)("InspectorControlsPosition"),jUe=(0,En.createSlotFill)("InspectorControlsTypography"),HUe=(0,En.createSlotFill)("InspectorControlsListView"),UUe=(0,En.createSlotFill)("InspectorControlsStyles"),GUe=(0,En.createSlotFill)("InspectorControlsEffects"),WUe=(0,En.createSlotFill)("InspectorControlsContent"),$Ue={default:Fme,advanced:IUe,background:AUe,bindings:OUe,border:LUe,color:NUe,content:WUe,dimensions:DUe,effects:GUe,elements:FUe,filter:MUe,layout:VUe,list:HUe,position:zUe,settings:Fme,styles:UUe,typography:jUe},cc=$Ue,WC=(0,En.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));var K2=c(F(),1);var $C="default",Js={viewport:$C,pseudo:$C},zme=(0,K2.createContext)(Js),Y2=zme.Provider;function Ja(){return(0,K2.useContext)(zme)}function zi(e){return!!e?.viewport&&e.viewport!==$C}function ea(e){return!!e?.pseudo&&e.pseudo!==$C}function Tn(e){return!zi(e)&&!ea(e)}function jme(e){return Tn(e)?[]:[e.viewport,e.pseudo].filter(t=>t&&t!==$C)}function To(e,t){let o=jme(t);return o.length?cd(e,o):e}function Rn(e,t,o){let r=jme(t);return r.length?Ge(Me(e,r,o)):Ge(o)}function Hme(e,t){return!t||Tn(e)?t:o=>{let r=To(o?.style,e)||{},n=t({style:r}),i=n&&typeof n=="object"&&!Array.isArray(n)&&Object.prototype.hasOwnProperty.call(n,"style")?n.style:n;return{style:Rn(o?.style,e,i)}}}var mk=c(U(),1),Z2=c(F(),1),Ume=c(fe(),1),X2=c(Q(),1);var q2=c(E(),1),Gme=Symbol("ListViewContentPopover"),{Fill:Wme,Slot:KUe}=(0,mk.createSlotFill)(Gme);function YUe(){return(0,Ume.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:35,resize:!1}}}function Q2({listViewRef:e}){let{popoverProps:t}=YUe(),o=(0,mk.__experimentalUseSlotFills)(Gme),r=!!(o&&o.length),{selectedClientId:n,isOpen:i}=(0,X2.useSelect)(u=>{let{getSelectedBlockClientId:d}=u(C),f=H(u(C));return{selectedClientId:d(),isOpen:f.isListViewContentPanelOpen()}},[]),[s,a]=(0,Z2.useState)(null);(0,Z2.useLayoutEffect)(()=>{if(!n||!e?.current){a(null);return}let u=e.current.querySelector(`[data-block="${n}"]`);a(u)},[n,e]);let{closeListViewContentPanel:l}=H((0,X2.useDispatch)(C));return!i||!r||!s?null:(0,q2.jsx)(mk.Popover,{...t??{},className:"block-editor-inspector-list-view-content-popover",anchor:s,onClose:l,children:(0,q2.jsx)("div",{style:{width:"280px"},children:(0,q2.jsx)(KUe,{})})})}var _m=c(E(),1),qUe=["content","list"];function Tb({children:e,group:t="default",__experimentalGroup:o,resetAllFilter:r}){o&&((0,Kme.default)("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=o);let n=ht(),i=cc[t]?.Fill;if(!i)return(0,$me.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(n[$f]){let s=n.name==="core/template-part",a=qUe.includes(t);if(!(s||a))return null}return!n[$f]&&!n[Nl]?null:t==="content"&&n[Cx]&&n[$f]?n[Nl]?(0,_m.jsx)(KC.__experimentalStyleProvider,{document,children:(0,_m.jsx)(Wme,{children:e})}):null:(0,_m.jsx)(KC.__experimentalStyleProvider,{document,children:(0,_m.jsx)(i,{children:s=>(0,_m.jsx)(XUe,{fillProps:s,children:e,resetAllFilter:r})})})}function ZUe({resetAllFilter:e,children:t}){let{registerResetAllFilter:o,deregisterResetAllFilter:r}=(0,hk.useContext)(KC.__experimentalToolsPanelContext),n=Ja(),i=(0,hk.useMemo)(()=>Hme(n,e),[e,n]);return(0,hk.useEffect)(()=>{if(i&&o&&r)return o(i),()=>{r(i)}},[i,o,r]),t}function XUe({children:e,resetAllFilter:t,fillProps:o}){let{forwardedContext:r=[]}=o,n=(0,_m.jsx)(ZUe,{resetAllFilter:t,children:e});return r.reduce((i,[s,a])=>(0,_m.jsx)(s,{...a,children:i}),n)}var the=c(U(),1),ohe=c(F(),1),rhe=c(Gw(),1),nhe=c(Bt(),1);var qme=c(U(),1),J2=c(Q(),1),Zme=c(F(),1);var Yme=c(fe(),1);function _r(){return(0,Yme.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function gk(e,t){if(!e||!t)return t;let o=e.split(","),r=t.split(","),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`${i.trim()} ${s.trim()}`)})}),n.join(", ")}var Xme=c(E(),1);function Qme({children:e,group:t,label:o}){let{updateBlockAttributes:r}=(0,J2.useDispatch)(C),{getBlockAttributes:n,getBlockName:i,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,J2.useSelect)(C),u=_r(),d=a(),f=(0,Zme.useCallback)((p=[])=>{let h={},m=l()?s():[d];m.forEach(g=>{let b=n(g)||{},{style:v}=b,y={style:v},k={attributes:b,clientId:g,name:i(g)};p.forEach(S=>{y={...y,...S(y,k)}}),y={...y,style:Ge(y.style)},h[g]=y}),r(m,h,!0)},[n,i,s,l,d,r]);return(0,Xme.jsx)(qme.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:o,resetAll:f,panelId:d,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:u,children:e},d)}var b9=c(U(),1),eL=c(F(),1),Jme=c(E(),1);function ehe({Slot:e,fillProps:t,...o}){let r=(0,eL.useContext)(b9.__experimentalToolsPanelContext),n=(0,eL.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[b9.__experimentalToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,Jme.jsx)(e,{...o,fillProps:n,bubblesVirtually:!0})}var tL=c(E(),1);function QUe({__experimentalGroup:e,group:t="default",label:o,fillProps:r,...n},i){e&&((0,nhe.default)("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);let s=cc[t],a=(0,the.__experimentalUseSlotFills)(s?.name);if(!s)return(0,rhe.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(!a?.length)return null;let{Slot:l}=s;return o?(0,tL.jsx)(Qme,{group:t,label:o,children:(0,tL.jsx)(ehe,{...n,fillProps:r,Slot:l})}):(0,tL.jsx)(l,{...n,ref:i,fillProps:r,bubblesVirtually:!0})}var y9=(0,ohe.forwardRef)(QUe);var v9=c(E(),1),ihe=Tb;ihe.Slot=y9;var xm=e=>(0,v9.jsx)(Tb,{...e,group:"advanced"});xm.Slot=function(t){return(0,v9.jsx)(y9,{...t,group:"advanced"})};xm.slotName="InspectorAdvancedControls";var Oe=ihe;var ahe=c(Q(),1),wm=c(ce(),1),YC=c(G(),1);function she(e){let t=e?.style?.position?.type;return t==="sticky"?(0,YC.__)("Sticky"):t==="fixed"?(0,YC.__)("Fixed"):null}function Mo(e){return(0,ahe.useSelect)(t=>{if(!e)return null;let o=t(C),{getBlockName:r,getBlockAttributes:n,getBlock:i,__experimentalGetParsedPattern:s}=o,{getBlockType:a,getActiveBlockVariation:l}=t(wm.store),u=r(e),d=a(u);if(!d)return null;let f=n(e),{isSectionBlock:p}=H(o),h=f?.metadata?.patternName;if(h&&p(e)){let S=s(h),_=she(f);return{isSynced:!1,title:(0,YC.__)("Pattern"),icon:jc,description:S?.description||(0,YC.__)("A block pattern."),anchor:f?.anchor,positionLabel:_,positionType:f?.style?.position?.type,name:S?.title||f?.metadata?.name}}let m=l(u,f,void 0,i?.(e)?.innerContent),g=(0,wm.isReusableBlock)(d)||(0,wm.isTemplatePart)(d),v=(g?(0,wm.__experimentalGetBlockLabel)(d,f):void 0)||d.title,y=she(f),k={isSynced:g,title:v,icon:d.icon,description:d.description,anchor:f?.anchor,positionLabel:y,positionType:f?.style?.position?.type,name:f?.metadata?.name};return m?{isSynced:g,title:m.title||d.title,icon:m.icon||d.icon,description:m.description||d.description,anchor:f?.anchor,positionLabel:y,positionType:f?.style?.position?.type,name:f?.metadata?.name}:k},[e])}var Cm=c(E(),1),qC="position",S9={key:"default",value:"",label:(0,uc.__)("Default")},k9={key:"sticky",value:"sticky",label:(0,uc._x)("Sticky","Name for the value of the CSS position property"),hint:(0,uc.__)("The block will stick to the top of the window instead of scrolling.")},lhe={key:"fixed",value:"fixed",label:(0,uc._x)("Fixed","Name for the value of the CSS position property"),hint:(0,uc.__)("The block will not move when the page is scrolled.")},JUe=["top","right","bottom","left"],e9e=["sticky","fixed"];function t9e({selector:e,style:t}){let o="",{type:r}=t?.position||{};return e9e.includes(r)&&(o+=`${e} {`,o+=`position: ${r};`,JUe.forEach(n=>{t?.position?.[n]!==void 0&&(o+=`${n}: ${t.position[n]};`)}),(r==="sticky"||r==="fixed")&&(o+="z-index: 10"),o+="}"),o}function o9e(e){let t=(0,Rb.getBlockSupport)(e,qC);return!!(t===!0||t?.sticky)}function r9e(e){let t=(0,Rb.getBlockSupport)(e,qC);return!!(t===!0||t?.fixed)}function n9e(e){return!!(0,Rb.getBlockSupport)(e,qC)}function dhe(e){let t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function fhe({name:e}={}){let[t,o]=Le("position.fixed","position.sticky"),r=!t&&!o;return!n9e(e)||r}function i9e({style:e={},clientId:t,name:o,setAttributes:r}){let n=r9e(o),i=o9e(o),s=e?.position?.type,{firstParentClientId:a}=(0,uhe.useSelect)(m=>{let{getBlockParents:g}=m(C),b=g(t);return{firstParentClientId:b[b.length-1]}},[t]),l=Mo(a),u=i&&s===k9.value&&l?(0,uc.sprintf)((0,uc.__)("The block will stick to the scrollable area of the parent %s block."),l.title):null,d=(0,oL.useMemo)(()=>{let m=[S9];return(i||s===k9.value)&&m.push(k9),(n||s===lhe.value)&&m.push(lhe),m},[n,i,s]),f=m=>{let b={...e,position:{...e?.position,type:m,top:m==="sticky"||m==="fixed"?"0px":void 0}};r({style:Ge(b)})},p=s&&d.find(m=>m.value===s)||S9,h=(0,oL.useId)();return d.length>1?(0,Cm.jsx)(Oe,{group:"position",children:(0,Cm.jsx)(G7,{label:(0,uc.__)("Position"),hideLabelFromVision:!0,description:u,items:d,value:p,onValueChange:m=>{f(m.value)},children:d.map(m=>{let g=m.hint?`${h}-${m.key}`:void 0;return(0,Cm.jsxs)(G7.Item,{value:m,label:m.label,className:"block-editor-hooks__position-control-item","aria-describedby":g,children:[(0,Cm.jsx)("div",{children:m.label}),m.hint&&(0,Cm.jsx)("div",{id:g,className:"block-editor-hooks__position-control-item-hint","aria-hidden":"true",children:m.hint})]},m.key)})})}):null}var _9={edit:function(t){return fhe(t)?null:(0,Cm.jsx)(i9e,{...t})},useBlockProps:a9e,attributeKeys:["style"],hasSupport(e){return(0,Rb.hasBlockSupport)(e,qC)}},s9e={};function a9e({name:e,style:t}){let o=(0,Rb.hasBlockSupport)(e,qC),r=fhe({name:e}),n=o&&!r,i=(0,che.useInstanceId)(s9e),s=`.wp-container-${i}.wp-container-${i}`,a;n&&(a=t9e({selector:s,style:t})||"");let l=$({[`wp-container-${i}`]:n&&!!a,[`is-position-${t?.position?.type}`]:n&&!!a&&!!t?.position?.type});return el({css:a}),{className:l}}var yhe={placement:"top-start"},phe={...yhe,flip:!1,shift:!0},l9e={...yhe,flip:!0,shift:!1};function mhe(e,t,o,r,n){if(!e||!t)return phe;let i=o?.scrollTop||0,s=Nv(t),a=e.getBoundingClientRect(),l=i+a.top,u=e.ownerDocument.documentElement.clientHeight,d=l+r,f=s.top>d,p=s.height>u-r;return!n&&(f||p)?phe:l9e}function rL({contentElement:e,clientId:t}){let o=Mt(t),[r,n]=(0,vu.useState)(0),{blockIndex:i,isSticky:s}=(0,ghe.useSelect)(p=>{let{getBlockIndex:h,getBlockAttributes:m}=p(C);return{blockIndex:h(t),isSticky:dhe(m(t))}},[t]),a=(0,vu.useMemo)(()=>{if(e)return(0,bhe.getScrollContainer)(e)},[e]),[l,u]=(0,vu.useState)(()=>mhe(e,o,a,r,s)),d=(0,hhe.useRefEffect)(p=>{n(p.offsetHeight)},[]),f=(0,vu.useCallback)(()=>u(mhe(e,o,a,r,s)),[e,o,a,r,s]);return(0,vu.useLayoutEffect)(f,[i,f]),(0,vu.useLayoutEffect)(()=>{if(!e||!o)return;let p=e?.ownerDocument?.defaultView;p?.addEventListener?.("resize",f);let h,m=o?.ownerDocument?.defaultView;return m?.ResizeObserver&&(h=new m.ResizeObserver(f),h.observe(o)),()=>{p?.removeEventListener?.("resize",f),h&&h.disconnect()}},[f,e,o]),{...l,ref:d}}var vhe=c(Q(),1);function nL(e){return(0,vhe.useSelect)(o=>{let{getBlockRootClientId:r,getBlockParents:n,__experimentalGetBlockListSettingsForBlocks:i,isBlockInsertionPointVisible:s,getBlockInsertionPoint:a,getBlockOrder:l,hasMultiSelection:u,getLastMultiSelectedBlockClientId:d}=o(C),f=n(e),p=i(f),h=f.find(g=>p[g]?.__experimentalCaptureToolbars),m=!1;if(s()){let g=a();m=l(g.rootClientId)[g.index]===e}return{capturingClientId:h,isInsertionPointVisible:m,lastClientId:u()?d():null,rootClientId:r(e)}},[e])}var iL=c(E(),1);function She({clientId:e,__unstableContentRef:t}){let{capturingClientId:o,isInsertionPointVisible:r,lastClientId:n,rootClientId:i}=nL(e),s=rL({contentElement:t?.current,clientId:e});return(0,iL.jsx)(Xa,{clientId:o||e,bottomClientId:n,className:$("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":r}),__unstableContentRef:t,...s,children:(0,iL.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,iL.jsx)(Za,{position:"bottom right",rootClientId:i,clientId:e,__experimentalIsQuick:!0})})})}var Xbe=c(Q(),1),Lk=c(F(),1),Qbe=c($l(),1);var $be=c(G(),1),Kbe=c(Q(),1),Q9=c(F(),1),Ybe=c(fe(),1),tf=c(ce(),1),qbe=c(U(),1);var Bb=c(U(),1),Ihe=c(Q(),1),Ohe=c(G(),1);var Che=c(ce(),1),Ehe=c(U(),1),ZC=c(Q(),1),XC=c(F(),1),The=c(fe(),1);var _he=c(Rt(),1),Su=c(F(),1),sL=50,xhe=25,c9e=1e3,khe=c9e*(xhe/1e3);function whe(){let e=(0,Su.useRef)(null),t=(0,Su.useRef)(null),o=(0,Su.useRef)(null),r=(0,Su.useRef)(null);(0,Su.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]);let n=(0,Su.useCallback)(a=>{e.current=a.clientY,o.current=(0,_he.getScrollContainer)(a.target),r.current=setInterval(()=>{if(o.current&&t.current){let l=o.current.scrollTop+t.current;o.current.scroll({top:l})}},xhe)},[]),i=(0,Su.useCallback)(a=>{if(!o.current)return;let l=o.current.offsetHeight,u=e.current-o.current.offsetTop,d=a.clientY-o.current.offsetTop;if(a.clientY>u){let f=Math.max(l-u-sL,0),p=Math.max(d-u-sL,0),h=f===0||p===0?0:p/f;t.current=khe*h}else if(a.clientY<u){let f=Math.max(u-sL,0),p=Math.max(u-d-sL,0),h=f===0||p===0?0:p/f;t.current=-khe*h}else t.current=0},[]);return[n,i,()=>{e.current=null,o.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}var x9=c(E(),1),u9e=({appendToOwnerDocument:e,children:t,clientIds:o,cloneClassname:r,elementId:n,onDragStart:i,onDragEnd:s,fadeWhenDisabled:a=!1,dragComponent:l})=>{let{srcRootClientId:u,isDraggable:d,icon:f,visibleInserter:p,getBlockType:h}=(0,ZC.useSelect)(B=>{let{canMoveBlocks:I,getBlockRootClientId:O,getBlockName:P,getBlockAttributes:A,isBlockInsertionPointVisible:M}=B(C),{getBlockType:z,getActiveBlockVariation:V}=B(Che.store),L=O(o[0]),D=P(o[0]),N=V(D,A(o[0]));return{srcRootClientId:L,isDraggable:I(o),icon:N?.icon||z(D)?.icon,visibleInserter:M(),getBlockType:z}},[o]),m=(0,XC.useRef)(!1),[g,b,v]=whe(),{getAllowedBlocks:y,getBlockNamesByClientId:k,getBlockRootClientId:S}=(0,ZC.useSelect)(C),{startDraggingBlocks:_,stopDraggingBlocks:x}=(0,ZC.useDispatch)(C);(0,XC.useEffect)(()=>()=>{m.current&&x()},[]);let T=Mt(o[0])?.closest("body");return(0,XC.useEffect)(()=>{if(!T||!a)return;let I=(0,The.throttle)(O=>{if(!O.target.closest("[data-block]"))return;let P=k(o),A=O.target.closest("[data-block]").getAttribute("data-block"),M=y(A),z=k([A])[0],V;if(M?.length===0){let L=S(A),D=k([L])[0],N=y(L);V=H2(h,N,P,D)}else V=H2(h,M,P,z);!V&&!p?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return T.addEventListener("dragover",I),()=>{T.removeEventListener("dragover",I)}},[o,T,a,y,k,S,h,p]),d?(0,x9.jsx)(Ehe.Draggable,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:{type:"block",srcClientIds:o,srcRootClientId:u},onDragStart:B=>{window.requestAnimationFrame(()=>{_(o),m.current=!0,g(B),i&&i()})},onDragOver:b,onDragEnd:()=>{x(),m.current=!1,v(),s&&s()},__experimentalDragComponent:l!==void 0?l:(0,x9.jsx)(JA,{count:o.length,icon:f,fadeWhenDisabled:!0}),elementId:n,children:({onDraggableStart:B,onDraggableEnd:I})=>t({draggable:!0,onDragStart:B,onDragEnd:I})}):t({draggable:!1})},aL=u9e;var Bhe=c(ce(),1),Phe=c(U(),1);var lL=c(fe(),1),cL=c(Q(),1),bk=c(F(),1),tl=c(G(),1),w9=c(so(),1);var tt=c(G(),1),Em=(e,t)=>e==="up"?t==="horizontal"?(0,tt.isRTL)()?"right":"left":"up":e==="down"?t==="horizontal"?(0,tt.isRTL)()?"left":"right":"down":null;function Rhe(e,t,o,r,n,i,s){let a=o+1;if(e>1)return d9e(e,o,r,n,i,s);if(r&&n)return(0,tt.sprintf)((0,tt.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!n){let l=Em("down",s);if(l==="down")return(0,tt.sprintf)((0,tt.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if(l==="left")return(0,tt.sprintf)((0,tt.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if(l==="right")return(0,tt.sprintf)((0,tt.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&n){let l=Em("down",s);if(l==="down")return(0,tt.sprintf)((0,tt.__)("Block %1$s is at the end of the content and can\u2019t be moved down"),t);if(l==="left")return(0,tt.sprintf)((0,tt.__)("Block %1$s is at the end of the content and can\u2019t be moved left"),t);if(l==="right")return(0,tt.sprintf)((0,tt.__)("Block %1$s is at the end of the content and can\u2019t be moved right"),t)}if(i<0&&!r){let l=Em("up",s);if(l==="up")return(0,tt.sprintf)((0,tt.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if(l==="left")return(0,tt.sprintf)((0,tt.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if(l==="right")return(0,tt.sprintf)((0,tt.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){let l=Em("up",s);if(l==="up")return(0,tt.sprintf)((0,tt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved up"),t);if(l==="left")return(0,tt.sprintf)((0,tt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved left"),t);if(l==="right")return(0,tt.sprintf)((0,tt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved right"),t)}}function d9e(e,t,o,r,n,i){let s=t+1;if(o&&r)return(0,tt.__)("All blocks are selected, and cannot be moved");if(n>0&&!r){let a=Em("down",i);if(a==="down")return(0,tt.sprintf)((0,tt.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if(a==="left")return(0,tt.sprintf)((0,tt.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,tt.sprintf)((0,tt.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n>0&&r){let a=Em("down",i);if(a==="down")return(0,tt.__)("Blocks cannot be moved down as they are already at the bottom");if(a==="left")return(0,tt.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,tt.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(n<0&&!o){let a=Em("up",i);if(a==="up")return(0,tt.sprintf)((0,tt.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if(a==="left")return(0,tt.sprintf)((0,tt.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,tt.sprintf)((0,tt.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n<0&&o){let a=Em("up",i);if(a==="up")return(0,tt.__)("Blocks cannot be moved up as they are already at the top");if(a==="left")return(0,tt.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,tt.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}var $d=c(E(),1),f9e=(e,t)=>e==="up"?t==="horizontal"?(0,tl.isRTL)()?un:Ei:Jh:e==="down"?t==="horizontal"?(0,tl.isRTL)()?Ei:un:cn:null,p9e=(e,t)=>e==="up"?t==="horizontal"?(0,tl.isRTL)()?(0,tl.__)("Move right"):(0,tl.__)("Move left"):(0,tl.__)("Move up"):e==="down"?t==="horizontal"?(0,tl.isRTL)()?(0,tl.__)("Move left"):(0,tl.__)("Move right"):(0,tl.__)("Move down"):null,C9=(0,bk.forwardRef)(({clientIds:e,direction:t,orientation:o,...r},n)=>{let i=(0,lL.useInstanceId)(C9),s=(0,bk.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=s.length,l=(0,lL.useViewportMatch)("small","<"),{blockType:u,isDisabled:d,rootClientId:f,isFirst:p,isLast:h,firstIndex:m,orientation:g="vertical"}=(0,cL.useSelect)(_=>{let{getBlockIndex:x,getBlockRootClientId:w,getBlockOrder:T,getBlock:R,getBlockListSettings:B}=_(C),I=s[0],O=w(I),P=x(I),A=x(s[s.length-1]),M=T(O),z=R(I),V=P===0,L=A===M.length-1,{orientation:D}=B(O)||{};return{blockType:z?(0,Bhe.getBlockType)(z.name):null,isDisabled:t==="up"?V:L,rootClientId:O,firstIndex:P,isFirst:V,isLast:L,orientation:o||D}},[t,o,s]),{moveBlocksDown:b,moveBlocksUp:v}=(0,cL.useDispatch)(C),y=t==="up"?v:b,k=_=>{y(e,f),r.onClick&&r.onClick(_)},S=`block-editor-block-mover-button__description-${i}`;return(0,$d.jsxs)($d.Fragment,{children:[(0,$d.jsx)(Phe.Button,{__next40pxDefaultSize:!0,ref:n,className:$("block-editor-block-mover-button",`is-${t}-button`),icon:f9e(t,g),label:p9e(t,g),tooltipPosition:!l&&t==="down"&&g==="vertical"?"bottom":"top","aria-describedby":S,...r,onClick:d?null:k,disabled:d,accessibleWhenDisabled:!0,shortcut:t==="up"?w9.displayShortcut.secondary("t"):w9.displayShortcut.secondary("y")}),(0,$d.jsx)(bt,{id:S,children:Rhe(a,u&&u.title,m,p,h,t==="up"?-1:1,g)})]})}),uL=(0,bk.forwardRef)((e,t)=>(0,$d.jsx)(C9,{direction:"up",ref:t,...e})),dL=(0,bk.forwardRef)((e,t)=>(0,$d.jsx)(C9,{direction:"down",ref:t,...e}));var ku=c(E(),1);function m9e({clientIds:e,hideDragHandle:t}){let{canMove:o,rootClientId:r,isFirst:n,isLast:i,orientation:s,isManualGrid:a}=(0,Ihe.useSelect)(l=>{let{getBlockIndex:u,getBlockListSettings:d,canMoveBlocks:f,getBlockOrder:p,getBlockRootClientId:h,getBlockAttributes:m}=l(C),g=Array.isArray(e)?e:[e],b=g[0],v=h(b),y=u(b),k=u(g[g.length-1]),S=p(v),{layout:_={}}=m(v)??{};return{canMove:f(e),rootClientId:v,isFirst:y===0,isLast:k===S.length-1,orientation:d(v)?.orientation,isManualGrid:_.type==="grid"&&_.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!o||n&&i&&!r||t&&a?null:(0,ku.jsxs)(Bb.ToolbarGroup,{className:$("block-editor-block-mover",{"is-horizontal":s==="horizontal"}),children:[!t&&(0,ku.jsx)(aL,{clientIds:e,fadeWhenDisabled:!0,children:l=>(0,ku.jsx)(Bb.Button,{__next40pxDefaultSize:!0,icon:Vx,className:"block-editor-block-mover__drag-handle",label:(0,Ohe.__)("Drag"),tabIndex:"-1",...l})}),!a&&(0,ku.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,ku.jsx)(Bb.ToolbarItem,{children:l=>(0,ku.jsx)(uL,{clientIds:e,...l})}),(0,ku.jsx)(Bb.ToolbarItem,{children:l=>(0,ku.jsx)(dL,{clientIds:e,...l})})]})]})}var fL=m9e;var Nhe=c(U(),1),mL=c(Q(),1),hL=c(G(),1),Mhe=c(F(),1);var QC=c(Q(),1),Tm=c(F(),1);var{clearTimeout:Ahe,setTimeout:h9e}=window,Lhe=200;function g9e({ref:e,isFocused:t,highlightParent:o,debounceTimeout:r=Lhe}){let{getSelectedBlockClientId:n,getBlockRootClientId:i}=(0,QC.useSelect)(C),{toggleBlockHighlight:s}=(0,QC.useDispatch)(C),a=(0,Tm.useRef)(),l=(0,QC.useSelect)(g=>g(C).getSettings().isDistractionFree,[]),u=g=>{if(g&&l)return;let b=n(),v=o?i(b):b;s(v,g)},d=()=>e?.current&&e.current.matches(":hover"),f=()=>{let g=d();return!t&&!g},p=()=>{let g=a.current;g&&Ahe&&Ahe(g)},h=g=>{g&&g.stopPropagation(),p(),u(!0)},m=g=>{g&&g.stopPropagation(),p(),a.current=h9e(()=>{f()&&u(!1)},r)};return(0,Tm.useEffect)(()=>()=>{u(!1),p()},[]),{debouncedShowGestures:h,debouncedHideGestures:m}}function yk({ref:e,highlightParent:t=!1,debounceTimeout:o=Lhe}){let[r,n]=(0,Tm.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=g9e({ref:e,debounceTimeout:o,isFocused:r,highlightParent:t}),a=(0,Tm.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,Tm.useEffect)(()=>{let u=e.current,d=()=>{l()&&(n(!0),i())},f=()=>{l()||(n(!1),s())};return u&&!a.current&&(u.addEventListener("focus",d,!0),u.addEventListener("blur",f,!0),a.current=!0),()=>{u&&(u.removeEventListener("focus",d),u.removeEventListener("blur",f))}},[e,a,n,i,s]),{onMouseMove:i,onMouseLeave:s}}var pL=c(E(),1);function Dhe(){let{selectBlock:e}=(0,mL.useDispatch)(C),{parentClientId:t}=(0,mL.useSelect)(i=>{let{getBlockParents:s,getSelectedBlockClientIds:a,getParentSectionBlock:l}=H(i(C)),[u]=a(),d=l(u),f=s(u);return{parentClientId:d??f[f.length-1]}},[]),o=Mo(t),r=(0,Mhe.useRef)(),n=yk({ref:r,highlightParent:!0});return(0,pL.jsx)("div",{className:"block-editor-block-parent-selector",ref:r,...n,children:(0,pL.jsx)(Nhe.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,hL.sprintf)((0,hL.__)("Select parent block: %s"),o?.title),showTooltip:!0,icon:(0,pL.jsx)(Tt,{icon:o?.icon})})},t)}var gL=c(U(),1);var Pb=c(U(),1),b9e=(0,Pb.createSlotFill)("BlockControls"),y9e=(0,Pb.createSlotFill)("BlockControlsBlock"),v9e=(0,Pb.createSlotFill)("BlockFormatControls"),S9e=(0,Pb.createSlotFill)("BlockControlsOther"),k9e=(0,Pb.createSlotFill)("BlockControlsParent"),_9e=(0,Pb.createSlotFill)("BlockControlsStyleState"),x9e={default:b9e,block:y9e,inline:v9e,other:S9e,parent:k9e,"style-state":_9e},JC=x9e;function Vhe(e,t){let o=ht();return o[Nl]?JC[e]?.Fill:o[Vy]&&t?JC.parent.Fill:null}var Kd=c(E(),1);function E9({group:e="default",controls:t,children:o,__experimentalShareWithChildBlocks:r=!1}){let n=Vhe(e,r);if(!n)return null;let i=(0,Kd.jsxs)(Kd.Fragment,{children:[e==="default"&&(0,Kd.jsx)(gL.ToolbarGroup,{controls:t}),o]});return(0,Kd.jsx)(gL.__experimentalStyleProvider,{document,children:(0,Kd.jsx)(n,{children:s=>{let{forwardedContext:a=[]}=s;return a.reduce((l,[u,d])=>(0,Kd.jsx)(u,{...d,children:l}),i)}})})}var eE=c(F(),1),Yd=c(U(),1),zhe=c(Gw(),1);var T9=c(E(),1),{ComponentsContext:Fhe}=H(Yd.privateApis);function R9({group:e="default",...t}){let o=(0,eE.useContext)(Yd.__experimentalToolbarContext),r=(0,eE.useContext)(Fhe),n=(0,eE.useMemo)(()=>({forwardedContext:[[Yd.__experimentalToolbarContext.Provider,{value:o}],[Fhe.Provider,{value:r}]]}),[o,r]),i=JC[e],s=(0,Yd.__experimentalUseSlotFills)(i.name);if(!i)return(0,zhe.default)(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;let{Slot:a}=i,l=(0,T9.jsx)(a,{...t,bubblesVirtually:!0,fillProps:n});return e==="default"?l:(0,T9.jsx)(Yd.ToolbarGroup,{children:l})}var B9=c(E(),1),jhe=E9;jhe.Slot=R9;var P9=e=>(0,B9.jsx)(E9,{group:"inline",...e});P9.Slot=function(t){return(0,B9.jsx)(R9,{group:"inline",...t})};var No=jhe;var Hhe=c(U(),1),{Fill:Uhe,Slot:w9e}=(0,Hhe.createSlotFill)("__unstableBlockToolbarLastItem");Uhe.Slot=w9e;var bL=Uhe;var DL=c(U(),1);var xk=c(ce(),1),ji=c(U(),1),Pm=c(Q(),1);var NL=c(F(),1),rl=c(G(),1),Gge=c($l(),1),Xd=c(fe(),1);var Sk=c(Q(),1),Rm=c(ce(),1);var ige=c(F(),1),oE=c(ce(),1),tE=c(Q(),1),sge=c(ss(),1),qd=c(G(),1);var ta=c(ce(),1),C9e="align";var Ghe="__experimentalBorder",yL="color",E9e="customClassName",Whe="typography.__experimentalFontFamily",$he="typography.fontSize",T9e="typography.lineHeight",R9e="typography.__experimentalFontStyle",B9e="typography.__experimentalFontWeight",Khe="typography.textAlign",P9e="typography.textColumns",I9e="typography.__experimentalTextDecoration",O9e="typography.__experimentalWritingMode",A9e="typography.__experimentalTextTransform",L9e="typography.__experimentalLetterSpacing",N9e="layout",M9e=[T9e,$he,R9e,B9e,Whe,Khe,P9e,I9e,A9e,O9e,L9e],D9e=["shadow"],V9e="spacing",F9e=[...D9e,...M9e,Ghe,yL,V9e],Yhe=e=>(0,ta.hasBlockSupport)(e,C9e);function qhe(e,t="any"){let o=(0,ta.getBlockSupport)(e,Ghe);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}var Zhe=e=>{let t=(0,ta.getBlockSupport)(e,yL);return t!==null&&typeof t=="object"&&!!t.gradients},Xhe=e=>{let t=(0,ta.getBlockSupport)(e,yL);return t&&t.background!==!1},Qhe=e=>(0,ta.hasBlockSupport)(e,Khe);var Jhe=e=>{let t=(0,ta.getBlockSupport)(e,yL);return t&&t.text!==!1};var ege=e=>(0,ta.hasBlockSupport)(e,E9e,!0);var tge=e=>(0,ta.hasBlockSupport)(e,Whe);var oge=e=>(0,ta.hasBlockSupport)(e,$he);var rge=e=>(0,ta.hasBlockSupport)(e,N9e);var nge=e=>F9e.some(t=>(0,ta.hasBlockSupport)(e,t));function z9e(e){try{let t=(0,oE.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}var j9e={align:Yhe,borderColor:e=>qhe(e,"color"),backgroundColor:Xhe,textAlign:Qhe,textColor:Jhe,gradient:Zhe,className:ege,fontFamily:tge,fontSize:oge,layout:rge,style:nge};function H9e(e,t){return Object.entries(j9e).reduce((o,[r,n])=>(n(e.name)&&n(t.name)&&(o[r]=e.attributes[r]),o),{})}function I9(e,t,o){for(let r=0;r<Math.min(t.length,e.length);r+=1)o(e[r].clientId,H9e(t[r],e[r])),I9(e[r].innerBlocks,t[r].innerBlocks,o)}function vk(){let e=(0,tE.useRegistry)(),{updateBlockAttributes:t}=(0,tE.useDispatch)(C),{createSuccessNotice:o,createWarningNotice:r,createErrorNotice:n}=(0,tE.useDispatch)(sge.store);return(0,ige.useCallback)(async i=>{let s="";try{if(!window.navigator.clipboard){n((0,qd.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});return}s=await window.navigator.clipboard.readText()}catch{n((0,qd.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!s||!z9e(s)){r((0,qd.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}let a=(0,oE.parse)(s);if(a.length===1?e.batch(()=>{I9(i,i.map(()=>a[0]),t)}):e.batch(()=>{I9(i,a,t)}),i.length===1){let l=(0,oE.getBlockType)(i[0].name)?.title;o((0,qd.sprintf)((0,qd.__)("Pasted styles to %s."),l),{type:"snackbar"})}else o((0,qd.sprintf)((0,qd.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})},[e.batch,t,o,r,n])}function age({clientIds:e,children:t,__experimentalUpdateSelection:o}){let{getDefaultBlockName:r,getGroupingBlockName:n}=(0,Sk.useSelect)(Rm.store),i=(0,Sk.useSelect)(k=>{let{canInsertBlockType:S,getBlockRootClientId:_,getBlocksByClientId:x,getDirectInsertBlock:w,canRemoveBlocks:T}=k(C),R=x(e),B=_(e[0]),I=S(r(),B),O=B?w(B):null;return{canRemove:T(e),canInsertBlock:R.every(P=>(I||!!O)&&S(P.name,B)),canCopyStyles:R.every(P=>!!P&&((0,Rm.hasBlockSupport)(P.name,"color")||(0,Rm.hasBlockSupport)(P.name,"typography"))),canDuplicate:R.every(P=>!!P&&(0,Rm.hasBlockSupport)(P.name,"multiple",!0)&&S(P.name,B))}},[e,r]),{getBlocksByClientId:s,getBlocks:a}=(0,Sk.useSelect)(C),{canRemove:l,canInsertBlock:u,canCopyStyles:d,canDuplicate:f}=i,{removeBlocks:p,replaceBlocks:h,duplicateBlocks:m,insertAfterBlock:g,insertBeforeBlock:b,flashBlock:v}=(0,Sk.useDispatch)(C),y=vk();return t({canCopyStyles:d,canDuplicate:f,canInsertBlock:u,canRemove:l,onDuplicate(){return m(e,o)},onRemove(){return p(e,o)},onInsertBefore(){b(e[0])},onInsertAfter(){g(e[e.length-1])},onGroup(){if(!e.length)return;let k=n(),S=(0,Rm.switchToBlockType)(s(e),k);S&&h(e,S)},onUngroup(){if(!e.length)return;let k=a(e[0]);k.length&&h(e,k)},onCopy(){e.length===1&&v(e[0])},async onPasteStyles(){await y(s(e))}})}var lge=c(U(),1),U9e=(0,lge.createSlotFill)(Symbol("NoteIconSlotFill")),vL=U9e;var cge=c(G(),1),uge=c(U(),1),SL=c(ce(),1),kL=c(Q(),1);var dge=c(E(),1);function G9e({clientId:e}){let t=(0,kL.useSelect)(r=>r(C).getBlock(e),[e]),{replaceBlocks:o}=(0,kL.useDispatch)(C);return!t||t.name!=="core/html"?null:(0,dge.jsx)(uge.MenuItem,{onClick:()=>o(e,(0,SL.rawHandler)({HTML:(0,SL.getBlockContent)(t)})),children:(0,cge.__)("Convert to Blocks")})}var fge=G9e;var pge=c(U(),1),{Fill:mge,Slot:W9e}=(0,pge.createSlotFill)("__unstableBlockSettingsMenuFirstItem");mge.Slot=W9e;var _L=mge;var _k=c(U(),1),Mge=c(ce(),1),Dge=c(Q(),1);var A9=c(U(),1),L9=c(G(),1),bge=c(ce(),1),CL=c(Q(),1),yge=c(so(),1);var hge=c(ce(),1),gge=c(Q(),1);function rE(e){return(0,gge.useSelect)(t=>{let{getBlocksByClientId:o,getSelectedBlockClientIds:r,isUngroupable:n,isGroupable:i}=t(C),{getGroupingBlockName:s,getBlockType:a}=t(hge.store),l=e?.length?e:r(),u=o(l),[d]=u,f=l.length===1&&n(l[0]);return{clientIds:l,isGroupable:i(l),isUngroupable:f,blocksSelection:u,groupingBlockName:s(),onUngroup:f&&a(d.name)?.transforms?.ungroup}},[e])}var xL=c(Q(),1),wL=c(ce(),1),Ib=c(U(),1);var nE=c(G(),1);var Ob=c(E(),1),$9e={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function K9e(){let{blocksSelection:e,clientIds:t,groupingBlockName:o,isGroupable:r}=rE(),{replaceBlocks:n}=(0,xL.useDispatch)(C),{canRemove:i,variations:s}=(0,xL.useSelect)(m=>{let{canRemoveBlocks:g}=m(C),{getBlockVariations:b}=m(wL.store);return{canRemove:g(t),variations:b(o,"transform")}},[t,o]),a=m=>{let g=(0,wL.switchToBlockType)(e,o);typeof m!="string"&&(m="group"),g&&g.length>0&&(g[0].attributes.layout=$9e[m],n(t,g))},l=()=>a("row"),u=()=>a("stack"),d=()=>a("grid");if(!r||!i)return null;let f=!!s.find(({name:m})=>m==="group-row"),p=!!s.find(({name:m})=>m==="group-stack"),h=!!s.find(({name:m})=>m==="group-grid");return(0,Ob.jsxs)(Ib.ToolbarGroup,{children:[(0,Ob.jsx)(Ib.ToolbarButton,{icon:jx,label:(0,nE._x)("Group","action: convert blocks to group"),onClick:a}),f&&(0,Ob.jsx)(Ib.ToolbarButton,{icon:q4,label:(0,nE._x)("Row","action: convert blocks to row"),onClick:l}),p&&(0,Ob.jsx)(Ib.ToolbarButton,{icon:u6,label:(0,nE._x)("Stack","action: convert blocks to stack"),onClick:u}),h&&(0,Ob.jsx)(Ib.ToolbarButton,{icon:zx,label:(0,nE._x)("Grid","action: convert blocks to grid"),onClick:d})]})}var O9=K9e;var Ab=c(E(),1);function vge({clientIds:e,isGroupable:t,isUngroupable:o,onUngroup:r,blocksSelection:n,groupingBlockName:i,onClose:s=()=>{}}){let{getSelectedBlockClientIds:a}=(0,CL.useSelect)(C),{replaceBlocks:l}=(0,CL.useDispatch)(C),u=()=>{let p=(0,bge.switchToBlockType)(n,i);p&&l(e,p)},d=()=>{let p=n[0].innerBlocks;p.length&&(r&&(p=r(n[0].attributes,n[0].innerBlocks)),l(e,p))};if(!t&&!o)return null;let f=a();return(0,Ab.jsxs)(Ab.Fragment,{children:[t&&(0,Ab.jsx)(A9.MenuItem,{shortcut:f.length>1?yge.displayShortcut.primary("g"):void 0,onClick:()=>{u(),s()},children:(0,L9._x)("Group","verb")}),o&&(0,Ab.jsx)(A9.MenuItem,{onClick:()=>{d(),s()},children:(0,L9._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}var N9=c(G(),1),_ge=c(F(),1),xge=c(U(),1);var Sge=c(Q(),1);function oa(e){return(0,Sge.useSelect)(t=>{let{canLockBlockType:o,getBlockName:r,isEditLockedBlock:n,isMoveLockedBlock:i,isRemoveLockedBlock:s,isLockedBlock:a}=H(t(C));return{isEditLocked:n(e),isMoveLocked:i(e),isRemoveLocked:s(e),canLock:o(r(e)),isLocked:a(e)}},[e])}var ol=c(G(),1),iE=c(F(),1),zr=c(U(),1);var EL=c(Q(),1),kge=c(ce(),1);var Do=c(E(),1),Y9e=["core/navigation"];function q9e(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function TL({clientId:e,onClose:t}){let[o,r]=(0,iE.useState)({move:!1,remove:!1}),{isEditLocked:n,isMoveLocked:i,isRemoveLocked:s}=oa(e),{allowsEditLocking:a,templateLock:l,hasTemplateLock:u}=(0,EL.useSelect)(v=>{let{getBlockName:y,getBlockAttributes:k}=v(C),S=y(e),_=(0,kge.getBlockType)(S);return{allowsEditLocking:Y9e.includes(S),templateLock:k(e)?.templateLock,hasTemplateLock:!!_?.attributes?.templateLock}},[e]),[d,f]=(0,iE.useState)(!!l),{updateBlockAttributes:p}=(0,EL.useDispatch)(C),h=Mo(e);(0,iE.useEffect)(()=>{r({move:i,remove:s,...a?{edit:n}:{}})},[n,i,s,a]);let m=Object.values(o).every(Boolean),g=Object.values(o).some(Boolean)&&!m,b=o.move!==i||o.remove!==s||a&&o.edit!==n||u&&d!==!!l;return(0,Do.jsx)(zr.Modal,{title:(0,ol.sprintf)((0,ol.__)("Lock %s"),h.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,Do.jsxs)("form",{onSubmit:v=>{v.preventDefault(),b&&(p([e],{lock:o,templateLock:d?q9e(o):void 0}),t())},children:[(0,Do.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,Do.jsx)("legend",{children:(0,ol.__)("Select the features you want to lock")}),(0,Do.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,Do.jsxs)("li",{children:[(0,Do.jsx)(zr.CheckboxControl,{className:"block-editor-block-lock-modal__options-all",label:(0,ol.__)("Lock all"),checked:m,indeterminate:g,onChange:v=>r({move:v,remove:v,...a?{edit:v}:{}})}),(0,Do.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,Do.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Do.jsx)(zr.CheckboxControl,{label:(0,ol.__)("Lock editing"),checked:!!o.edit,onChange:v=>r(y=>({...y,edit:v}))}),(0,Do.jsx)(zr.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.edit?ag:ad})]}),(0,Do.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Do.jsx)(zr.CheckboxControl,{label:(0,ol.__)("Lock movement"),checked:o.move,onChange:v=>r(y=>({...y,move:v}))}),(0,Do.jsx)(zr.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.move?ag:ad})]}),(0,Do.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Do.jsx)(zr.CheckboxControl,{label:(0,ol.__)("Lock removal"),checked:o.remove,onChange:v=>r(y=>({...y,remove:v}))}),(0,Do.jsx)(zr.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.remove?ag:ad})]})]})]})}),u&&(0,Do.jsx)(zr.ToggleControl,{className:"block-editor-block-lock-modal__template-lock",label:(0,ol.__)("Apply to all blocks inside"),checked:d,disabled:o.move&&!o.remove,onChange:()=>f(!d)})]}),(0,Do.jsxs)(zr.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Do.jsx)(zr.FlexItem,{children:(0,Do.jsx)(zr.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,ol.__)("Cancel")})}),(0,Do.jsx)(zr.FlexItem,{children:(0,Do.jsx)(zr.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,ol.__)("Apply")})})]})]})})}var Lb=c(E(),1);function M9({clientId:e}){let{canLock:t,isLocked:o}=oa(e),[r,n]=(0,_ge.useReducer)(s=>!s,!1);if(!t)return null;let i=o?(0,N9.__)("Unlock"):(0,N9.__)("Lock");return(0,Lb.jsxs)(Lb.Fragment,{children:[(0,Lb.jsx)(xge.MenuItem,{icon:o?ad:x4,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog",children:i}),r&&(0,Lb.jsx)(TL,{clientId:e,onClose:n})]})}var RL=c(G(),1),BL=c(U(),1),kk=c(F(),1);var Bm=c(E(),1);function D9({clientId:e}){let{canLock:t,isLocked:o}=oa(e),[r,n]=(0,kk.useReducer)(a=>!a,!1),i=(0,kk.useRef)(!1);if((0,kk.useEffect)(()=>{o&&(i.current=!0)},[o]),!o&&!i.current)return null;let s=o?(0,RL.__)("Unlock"):(0,RL.__)("Lock");return!t&&o&&(s=(0,RL.__)("Locked")),(0,Bm.jsxs)(Bm.Fragment,{children:[(0,Bm.jsx)(BL.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,Bm.jsx)(BL.ToolbarButton,{disabled:!t,icon:o?ag:ad,label:s,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Bm.jsx)(TL,{clientId:e,onClose:n})]})}var V9=c(G(),1),wge=c(U(),1),PL=c(ce(),1),IL=c(Q(),1);var Cge=c(E(),1),Z9e=()=>{};function Ege({clientId:e,onToggle:t=Z9e}){let{blockType:o,mode:r,enabled:n}=(0,IL.useSelect)(a=>{let{getBlock:l,getBlockMode:u,getSettings:d}=a(C),f=l(e);return{mode:u(e),blockType:f?(0,PL.getBlockType)(f.name):null,enabled:d().codeEditingEnabled&&!!f?.isValid}},[e]),{toggleBlockMode:i}=(0,IL.useDispatch)(C);if(!o||!(0,PL.hasBlockSupport)(o,"html",!0)||!n)return null;let s=r==="visual"?(0,V9.__)("Edit as HTML"):(0,V9.__)("Edit visually");return(0,Cge.jsx)(wge.MenuItem,{onClick:()=>{i(e),t()},children:s})}var Pge=c(U(),1),Ige=c(G(),1),Oge=c(F(),1),Age=c(Q(),1),Lge=c($l(),1);var fc=c(U(),1),dc=c(G(),1),Rge=c(F(),1),Bge=c(Xr(),1),OL=c(Q(),1);function Tge(e){return e?.trim()?.length===0}var Zd=c(E(),1);function Nb({clientId:e,onClose:t}){let[o,r]=(0,Rge.useState)(),n=Mo(e),{metadata:i}=(0,OL.useSelect)(b=>{let{getBlockAttributes:v}=b(C);return{metadata:v(e)?.metadata}},[e]),{updateBlockAttributes:s}=(0,OL.useDispatch)(C),a=i?.name||"",l=n?.title,u=!!a&&!!i?.bindings&&Object.values(i.bindings).some(b=>b.source==="core/pattern-overrides"),d=o!==void 0&&o!==a,f=o===l,p=Tge(o),h=d||f,m=b=>b.target.select(),g=()=>{let b=f||p?void 0:o,v=f||p?(0,dc.sprintf)((0,dc.__)('Block name reset to: "%s".'),o):(0,dc.sprintf)((0,dc.__)('Block name changed to: "%s".'),o);(0,Bge.speak)(v,"assertive"),s([e],{metadata:Ge({...i,name:b})}),t()};return(0,Zd.jsx)(fc.Modal,{title:(0,dc.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,Zd.jsx)("form",{onSubmit:b=>{b.preventDefault(),h&&g()},children:(0,Zd.jsxs)(fc.__experimentalVStack,{spacing:"3",children:[(0,Zd.jsx)(fc.TextControl,{value:o??a,label:(0,dc.__)("Name"),help:u?(0,dc.__)("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:l,onChange:r,onFocus:m}),(0,Zd.jsxs)(fc.__experimentalHStack,{justify:"right",children:[(0,Zd.jsx)(fc.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,dc.__)("Cancel")}),(0,Zd.jsx)(fc.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!h,variant:"primary",type:"submit",children:(0,dc.__)("Save")})]})]})})})}var Mb=c(E(),1);function F9({clientId:e}){let[t,o]=(0,Oge.useState)(!1),r=(0,Age.useSelect)(n=>n(Lge.store).getShortcutRepresentation("core/block-editor/rename"),[]);return(0,Mb.jsxs)(Mb.Fragment,{children:[(0,Mb.jsx)(Pge.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":t,"aria-haspopup":"dialog",shortcut:r,children:(0,Ige.__)("Rename")}),t&&(0,Mb.jsx)(Nb,{clientId:e,onClose:()=>o(!1)})]})}var Nge=c(ce(),1);function Db(e){return{canRename:!!e&&(0,Nge.getBlockSupport)(e,"renaming",!0)}}var pc=c(E(),1),{Fill:X9e,Slot:Q9e}=(0,_k.createSlotFill)("BlockSettingsMenuControls"),J9e=({fillProps:e,clientIds:t=null})=>{let{selectedBlocks:o,selectedClientIds:r,isContentOnly:n,canToggleSelectedBlocksVisibility:i,canEdit:s}=(0,Dge.useSelect)(b=>{let{getBlocksByClientId:v,getBlockNamesByClientId:y,getSelectedBlockClientIds:k,getBlockEditingMode:S,canEditBlock:_}=b(C),x=t!==null?t:k();return{selectedBlocks:y(x),selectedClientIds:x,isContentOnly:S(x[0])==="contentOnly",canToggleSelectedBlocksVisibility:v(x).every(w=>(0,Mge.hasBlockSupport)(w.name,"visibility",!0)),canEdit:_(x[0])}},[t]),{canLock:a}=oa(r[0]),{canRename:l}=Db(o[0]),u=r.length===1&&a&&!n,d=r.length===1&&l&&!n,f=i&&!n,p=rE(r),{isGroupable:h,isUngroupable:m}=p,g=(h||m)&&!n;return(0,pc.jsx)(Q9e,{fillProps:{...e,canEdit:s,selectedBlocks:o,selectedClientIds:r},children:b=>!b?.length>0&&!g&&!u?null:(0,pc.jsxs)(_k.MenuGroup,{children:[g&&(0,pc.jsx)(vge,{...p,onClose:e?.onClose}),s&&u&&(0,pc.jsx)(M9,{clientId:r[0]}),s&&d&&(0,pc.jsx)(F9,{clientId:r[0]}),s&&f&&(0,pc.jsx)(jj,{clientIds:r}),b,s&&e?.count===1&&!n&&(0,pc.jsx)(Ege,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function Vge({...e}){return(0,pc.jsx)(_k.__experimentalStyleProvider,{document,children:(0,pc.jsx)(X9e,{...e})})}Vge.Slot=J9e;var AL=Vge;var Fge=c(F(),1),zge=c(U(),1),jge=c(fe(),1),Hge=c(Q(),1),LL=c(G(),1);var z9=c(E(),1);function Uge({parentClientId:e,parentBlockType:t}){let o=(0,jge.useViewportMatch)("medium","<"),{selectBlock:r}=(0,Hge.useDispatch)(C),n=(0,Fge.useRef)(),i=yk({ref:n,highlightParent:!0});return o?(0,z9.jsx)(zge.MenuItem,{...i,ref:n,icon:(0,z9.jsx)(Tt,{icon:t.icon}),onClick:()=>r(e),children:(0,LL.sprintf)((0,LL.__)("Select parent block (%s)"),t.title)}):null}var eo=c(E(),1),eGe={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function j9({clientIds:e,onCopy:t,label:o,shortcut:r,eventType:n="copy",__experimentalUpdateSelection:i=!1}){let{getBlocksByClientId:s}=(0,Pm.useSelect)(C),{removeBlocks:a}=(0,Pm.useDispatch)(C),l=BS(),u=(0,Xd.useCopyToClipboard)(()=>(0,xk.serialize)(s(e)),()=>{switch(n){case"copy":case"copyStyles":t(),l(n,e);break;case"cut":l(n,e),a(e,i);break;default:break}}),d=o||(0,rl.__)("Copy");return(0,eo.jsx)(ji.MenuItem,{ref:u,shortcut:r,children:d})}function H9({block:e,clientIds:t,children:o,__experimentalSelectBlock:r,isContentOnlyListView:n,...i}){let s=t.length,a=t[0],{firstParentClientId:l,parentBlockType:u,previousBlockClientId:d,selectedBlockClientIds:f,isContentOnly:p,isZoomOut:h,canEdit:m,canMove:g,isFirst:b,isLast:v}=(0,Pm.useSelect)(O=>{let{getBlockName:P,getBlockRootClientId:A,getPreviousBlockClientId:M,getSelectedBlockClientIds:z,getBlockAttributes:V,getBlockEditingMode:L,isZoomOut:D,canEditBlock:N,canMoveBlocks:j,getBlockIndex:X,getBlockCount:J}=H(O(C)),{getActiveBlockVariation:te}=O(xk.store),ee=A(a),W=ee&&P(ee);return{firstParentClientId:ee,parentBlockType:ee&&(te(W,V(ee))||(0,xk.getBlockType)(W)),previousBlockClientId:M(a),selectedBlockClientIds:z(),isContentOnly:L(a)==="contentOnly",isZoomOut:D(),canEdit:N(a),canMove:j(t),isFirst:X(a)===0,isLast:X(a)===J(ee)-1}},[a,t]),{getBlockOrder:y,getSelectedBlockClientIds:k}=(0,Pm.useSelect)(C),{moveBlocksDown:S,moveBlocksUp:_}=(0,Pm.useDispatch)(C),x=(0,Pm.useSelect)(O=>{let{getShortcutRepresentation:P}=O(Gge.store);return{copy:P("core/block-editor/copy"),cut:P("core/block-editor/cut"),duplicate:P("core/block-editor/duplicate"),remove:P("core/block-editor/remove"),insertAfter:P("core/block-editor/insert-after"),insertBefore:P("core/block-editor/insert-before")}},[]),w=f.length>0;async function T(O){if(!r)return;let P=await O;P&&P[0]&&r(P[0],!1)}function R(){if(!r)return;let O=d||l;O||(O=y()[0]);let P=w&&k().length===0;r(O,P)}let I=!f?.includes(l)&&!!l;return(0,eo.jsx)(age,{clientIds:t,__experimentalUpdateSelection:!r,children:({canCopyStyles:O,canDuplicate:P,canInsertBlock:A,canRemove:M,onDuplicate:z,onInsertAfter:V,onInsertBefore:L,onRemove:D,onCopy:N,onPasteStyles:j})=>!M&&!P&&!A&&p?null:(0,eo.jsx)(ji.DropdownMenu,{icon:Fs,label:(0,rl.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:eGe,noIcons:!0,...i,children:({onClose:J})=>(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsxs)(ji.MenuGroup,{children:[(0,eo.jsx)(_L.Slot,{fillProps:{onClose:J}}),I&&(0,eo.jsx)(Uge,{parentClientId:l,parentBlockType:u}),g&&n&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(ji.MenuItem,{icon:Jh,disabled:b,accessibleWhenDisabled:!0,onClick:(0,Xd.pipe)(J,()=>{_(t,l)}),children:(0,rl.__)("Move up")}),(0,eo.jsx)(ji.MenuItem,{icon:cn,disabled:v,accessibleWhenDisabled:!0,onClick:(0,Xd.pipe)(J,()=>{S(t,l)}),children:(0,rl.__)("Move down")})]}),m&&s===1&&(0,eo.jsx)(fge,{clientId:a}),!p&&(0,eo.jsx)(j9,{clientIds:t,onCopy:N,shortcut:x.copy}),M&&!p&&(0,eo.jsx)(j9,{clientIds:t,label:(0,rl.__)("Cut"),eventType:"cut",shortcut:x.cut,__experimentalUpdateSelection:!r}),P&&(0,eo.jsx)(ji.MenuItem,{onClick:(0,Xd.pipe)(J,z,T),shortcut:x.duplicate,children:(0,rl.__)("Duplicate")}),A&&!h&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(ji.MenuItem,{onClick:(0,Xd.pipe)(J,L),shortcut:x.insertBefore,children:(0,rl.__)("Add before")}),(0,eo.jsx)(ji.MenuItem,{onClick:(0,Xd.pipe)(J,V),shortcut:x.insertAfter,children:(0,rl.__)("Add after")})]}),m&&s===1&&(0,eo.jsx)(vL.Slot,{fillProps:{clientId:a,onClose:J}})]}),O&&!p&&(0,eo.jsxs)(ji.MenuGroup,{children:[(0,eo.jsx)(j9,{clientIds:t,onCopy:N,label:(0,rl.__)("Copy styles"),eventType:"copyStyles"}),m&&(0,eo.jsx)(ji.MenuItem,{onClick:j,children:(0,rl.__)("Paste styles")})]}),!p&&(0,eo.jsx)(AL.Slot,{fillProps:{onClose:J,count:s,firstBlockClientId:a},clientIds:t}),typeof o=="function"?o({onClose:J}):NL.Children.map(te=>(0,NL.cloneElement)(te,{onClose:J})),M&&(0,eo.jsx)(ji.MenuGroup,{children:(0,eo.jsx)(ji.MenuItem,{onClick:(0,Xd.pipe)(J,D,R),shortcut:x.remove,children:(0,rl.__)("Delete")})})]})})})}var Wge=H9;var $ge=c(U(),1),tGe=(0,$ge.createSlotFill)(Symbol("NoteIconToolbarSlotFill")),ML=tGe;var wk=c(E(),1);function oGe({clientIds:e,...t}){return(0,wk.jsxs)(DL.ToolbarGroup,{children:[(0,wk.jsx)(ML.Slot,{}),(0,wk.jsx)(DL.ToolbarItem,{children:o=>(0,wk.jsx)(Wge,{clientIds:e,toggleProps:o,...t})})]})}var VL=oGe;var FL=c(U(),1),Kge=c(G(),1),zL=c(Q(),1);var U9=c(E(),1);function Yge({clientIds:e}){let t=e.length===1?e[0]:void 0,o=(0,zL.useSelect)(n=>!!t&&n(C).getBlockMode(t)==="html",[t]),{toggleBlockMode:r}=(0,zL.useDispatch)(C);return o?(0,U9.jsx)(FL.ToolbarGroup,{children:(0,U9.jsx)(FL.ToolbarButton,{onClick:()=>{r(t)},children:(0,Kge.__)("Edit visually")})}):null}var jL=c(U(),1),Hi=c(F(),1),Xge=c(Q(),1),Qge=c(Bt(),1),W9=c(Rt(),1),Jge=c($l(),1),ebe=c(so(),1);var G9=c(E(),1);function rGe(e){let t="toolbarItem";return!e.some(o=>!(t in o.dataset))}function qge(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function Zge(e){return e.contains(e.ownerDocument.activeElement)}function nGe(e){let[t]=W9.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}function iGe(e){let[o,r]=(0,Hi.useState)(!0),n=(0,Hi.useCallback)(()=>{let i=W9.focus.tabbable.find(e.current),s=rGe(i);s||(0,Qge.default)("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),r(s)},[e]);return(0,Hi.useLayoutEffect)(()=>{let i=new window.MutationObserver(n);return i.observe(e.current,{childList:!0,subtree:!0}),()=>i.disconnect()},[n,o,e]),o}function sGe({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:o,defaultIndex:r,onIndexChange:n,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){let[a]=(0,Hi.useState)(t),[l]=(0,Hi.useState)(r),u=(0,Hi.useCallback)(()=>{nGe(e.current)},[e]);(0,Jge.useShortcut)("core/block-editor/focus-toolbar",()=>{i&&u()}),(0,Hi.useEffect)(()=>{a&&u()},[o,a,u]),(0,Hi.useEffect)(()=>{let p=e.current,h=0;return!a&&!Zge(p)&&(h=window.requestAnimationFrame(()=>{let m=qge(p),g=l||0;m[g]&&Zge(p)&&m[g].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(h),!n||!p)return;let g=qge(p).findIndex(b=>b.tabIndex===0);n(g)}},[l,a,n,e]);let{getLastFocus:f}=H((0,Xge.useSelect)(C));(0,Hi.useEffect)(()=>{let p=e.current;if(s){let h=m=>{let g=f();m.keyCode===ebe.ESCAPE&&g?.current&&(m.preventDefault(),g.current.focus())};return p.addEventListener("keydown",h),()=>{p.removeEventListener("keydown",h)}}},[s,f,e])}function Ck({children:e,focusOnMount:t,focusEditorOnEscape:o=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){let l=(0,Hi.useRef)(),u=iGe(l);return sGe({toolbarRef:l,focusOnMount:t,defaultIndex:n,onIndexChange:i,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:o}),u?(0,G9.jsx)(jL.Toolbar,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,G9.jsx)(jL.NavigableMenu,{orientation:s,role:"toolbar",ref:l,...a,children:e})}var tbe=c(Q(),1),HL=c(ce(),1);function UL(){return(0,tbe.useSelect)(t=>{let{getBlockEditingMode:o,getBlockName:r,getBlockSelectionStart:n}=t(C),i=n(),s=i&&(0,HL.getBlockType)(r(i));return s&&(0,HL.hasBlockSupport)(s,"__experimentalToolbar",!0)&&o(i)!=="disabled"},[])}var Im=c(U(),1),obe=c(G(),1),rbe=c(ce(),1),nbe=c(F(),1),GL=c(Q(),1);var Ek=c(E(),1),$9=[],aGe=6,lGe={placement:"bottom-start"};function ibe({clientId:e}){let{categories:t,currentPatternName:o,patterns:r}=(0,GL.useSelect)(a=>{let{getBlockAttributes:l,getBlockRootClientId:u,__experimentalGetAllowedPatterns:d}=a(C),f=l(e),p=f?.metadata?.categories||$9,h=u(e),m=p.length>0?d(h):$9;return{categories:p,currentPatternName:f?.metadata?.patternName,patterns:m}},[e]),{replaceBlocks:n}=(0,GL.useDispatch)(C),i=(0,nbe.useMemo)(()=>t.length===0||!r||r.length===0?$9:r.filter(a=>{let l=a.source==="core"||a.source?.startsWith("pattern-directory")&&a.source!=="pattern-directory/theme";return a.blocks.length===1&&!l&&o!==a.name&&a.categories?.some(u=>t.includes(u))&&(a.syncStatus==="unsynced"||!a.id)}).slice(0,aGe),[t,o,r]);if(i.length<2)return null;let s=a=>{let l=(a.blocks??[]).map(u=>(0,rbe.cloneBlock)(u));l[0].attributes.metadata={...l[0].attributes.metadata,categories:t},n(e,l)};return(0,Ek.jsx)(Im.Dropdown,{popoverProps:lGe,renderToggle:({onToggle:a,isOpen:l})=>(0,Ek.jsx)(Im.ToolbarGroup,{children:(0,Ek.jsx)(Im.ToolbarButton,{onClick:()=>a(!l),"aria-expanded":l,children:(0,obe.__)("Change design")})}),renderContent:()=>(0,Ek.jsx)(Im.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,Ek.jsx)(hu,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}var mc=c(U(),1),dbe=c(G(),1),YL=c(Q(),1);var KL=c(Q(),1),Am=c(ce(),1),ube=c(F(),1);var K9=c(WL(),1),abe=c(G(),1);function lbe(e,t){for(let o of new K9.default(t).values()){if(o.indexOf("is-style-")===-1)continue;let r=o.substring(9),n=e?.find(({name:i})=>i===r);if(n)return n}return $L(e)}function Om(e,t,o){let r=new K9.default(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+o.name),r.value}function cbe(e){return!e||e.length===0?[]:$L(e)?e:[{name:"default",label:(0,abe._x)("Default","block style"),isDefault:!0},...e]}function $L(e){return e?.find(t=>t.isDefault)}function cGe(e,t){return(0,ube.useMemo)(()=>{let o=t?.example,r=t?.name;if(o&&r)return(0,Am.getBlockFromExample)(r,{attributes:o.attributes,innerBlocks:o.innerBlocks,innerContent:o.innerContent});if(e)return(0,Am.cloneBlock)(e)},[e,t?.example,t?.name])}function Tk({clientId:e,onSwitch:t}){let o=p=>{let{getBlock:h}=p(C),m=h(e);if(!m)return{};let g=(0,Am.getBlockType)(m.name),{getBlockStyles:b}=p(Am.store);return{block:g?.example?null:m,blockType:g,styles:b(m.name),className:m.attributes.className||""}},{styles:r,block:n,blockType:i,className:s}=(0,KL.useSelect)(o,[e]),{updateBlockAttributes:a}=(0,KL.useDispatch)(C),l=cbe(r),u=lbe(l,s),d=cGe(n,i);return{onSelect:p=>{let h=Om(s,u,p);a(e,{className:h}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:s}}var Lm=c(E(),1),{getVariationStyle:uGe}=H(br),dGe=(0,Lm.jsxs)(mc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Lm.jsx)(mc.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"}),(0,Lm.jsx)(mc.Path,{stroke:"currentColor",strokeWidth:"1.5",d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"})]});function fGe({clientId:e}){let{stylesToRender:t,activeStyle:o,className:r}=Tk({clientId:e}),{updateBlockAttributes:n}=(0,YL.useDispatch)(C),{globalSettings:i,globalStyles:s,blockName:a}=(0,YL.useSelect)(d=>{let f=d(C).getSettings();return{globalSettings:f.__experimentalFeatures,globalStyles:f[os],blockName:d(C).getBlockName(e)}},[e]),l=o?.name?uGe({settings:i,styles:s},a,o.name)?.color?.background:void 0;return!t||t.length===0?null:(0,Lm.jsx)(mc.ToolbarGroup,{children:(0,Lm.jsx)(mc.ToolbarButton,{onClick:()=>{let f=(t.findIndex(m=>m.name===o.name)+1)%t.length,p=t[f],h=Om(r,o,p);n(e,{className:h})},label:(0,dbe.__)("Shuffle styles"),children:(0,Lm.jsx)(mc.Icon,{icon:dGe,style:{fill:l||"transparent"}})})})}var fbe=fGe;var XL=c(U(),1),Y9=c(G(),1),pbe=c(Q(),1),QL=c(ce(),1);var qL=c(Q(),1);function ZL(e){let{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i}=(0,qL.useSelect)(u=>{let{isSectionBlock:d,getParentSectionBlock:f,getEditedContentOnlySection:p,isWithinEditedContentOnlySection:h}=H(u(C)),m=p();return{isSectionBlock:d(e),isWithinSection:d(e)||!!f(e),isWithinEditedSection:h(e),isEditingContentOnlySection:m===e,editedContentOnlySection:m}},[e]),s=(0,qL.useDispatch)(C),{editContentOnlySection:a,stopEditingContentOnlySection:l}=H(s);return{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i,editContentOnlySection:a,stopEditingContentOnlySection:l}}var q9=c(E(),1);function mbe({clientId:e}){let{isSectionBlock:t,isEditingContentOnlySection:o,editContentOnlySection:r,stopEditingContentOnlySection:n}=ZL(e),i=(0,pbe.useSelect)(l=>{if(!e)return null;let{getBlockName:u}=l(C),d=u(e);return d?{name:d}:null},[e]);if(!e||!t&&!o||(0,QL.isReusableBlock)(i)||(0,QL.isTemplatePart)(i))return null;let s=o;return(0,q9.jsx)(XL.ToolbarGroup,{children:(0,q9.jsx)(XL.ToolbarButton,{onClick:()=>{s?n():r(e)},children:s?(0,Y9.__)("Exit pattern"):(0,Y9.__)("Edit pattern")})})}var jbe=c(U(),1),Hbe=c(G(),1),Ube=c(Q(),1);var uE=c(ce(),1),Gbe=c(dv(),1);var _u=c(G(),1),xu=c(U(),1),Mm=c(ce(),1),sN=c(Q(),1);var kbe=c(G(),1),aE=c(U(),1),eN=c(ce(),1),tN=c(F(),1);var hbe=c(U(),1),gbe=c(fe(),1);var sE=c(E(),1);function Nm({blocks:e,placement:t="right-start",offset:o=16,anchor:r}){return(0,gbe.useViewportMatch)("medium","<")?null:(0,sE.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,sE.jsx)(hbe.Popover,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:o,anchor:r,children:(0,sE.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,sE.jsx)(gs,{viewportWidth:601,blocks:e})})})})}var bbe=c(U(),1),Rk=c(ce(),1),ybe=c(Q(),1),JL=c(F(),1);var Qd=c(E(),1),pGe={};function vbe({clientIds:e,blocks:t}){let{activeBlockVariation:o,blockVariationTransformations:r}=(0,ybe.useSelect)(i=>{let{getBlockAttributes:s,canRemoveBlocks:a}=i(C),{getActiveBlockVariation:l,getBlockVariations:u}=i(Rk.store),d=a(e);if(t.length!==1||!d)return pGe;let[f]=t;return{blockVariationTransformations:u(f.name,"transform"),activeBlockVariation:l(f.name,s(f.clientId))}},[e,t]);return(0,JL.useMemo)(()=>r?.filter(({name:i})=>i!==o?.name),[r,o])}var mGe=({transformations:e,onSelect:t,blocks:o})=>{let[r,n]=(0,JL.useState)();return(0,Qd.jsxs)(Qd.Fragment,{children:[r&&(0,Qd.jsx)(Nm,{blocks:(0,Rk.cloneBlock)(o[0],e.find(({name:i})=>i===r).attributes)}),e?.map(i=>(0,Qd.jsx)(hGe,{item:i,onSelect:t,setHoveredTransformItemName:n},i.name))]})};function hGe({item:e,onSelect:t,setHoveredTransformItemName:o}){let{name:r,icon:n,title:i}=e;return(0,Qd.jsxs)(bbe.MenuItem,{className:(0,Rk.getBlockMenuDefaultClassName)(r),onClick:s=>{s.preventDefault(),t(r)},onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,Qd.jsx)(Tt,{icon:n,showColors:!0}),i]})}var Sbe=mGe;var _s=c(E(),1);function gGe(e){let t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},o=(0,tN.useMemo)(()=>{let r=Object.keys(t),n=e.reduce((i,s)=>{let{name:a}=s;return r.includes(a)?i.priorityTextTransformations.push(s):i.restTransformations.push(s),i},{priorityTextTransformations:[],restTransformations:[]});if(n.priorityTextTransformations.length===1&&n.priorityTextTransformations[0].name==="core/quote"){let i=n.priorityTextTransformations.pop();n.restTransformations.push(i)}return n},[e]);return o.priorityTextTransformations.sort(({name:r},{name:n})=>t[r]<t[n]?-1:1),o}var bGe=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:o,onSelect:r,onSelectVariation:n,blocks:i})=>{let[s,a]=(0,tN.useState)(),{priorityTextTransformations:l,restTransformations:u}=gGe(t),d=l.length&&u.length,f=!!u.length&&(0,_s.jsx)(yGe,{restTransformations:u,onSelect:r,setHoveredTransformItem:a});return(0,_s.jsxs)(_s.Fragment,{children:[(0,_s.jsxs)(aE.MenuGroup,{label:(0,kbe.__)("Transform to"),className:e,children:[s&&(0,_s.jsx)(Nm,{blocks:(0,eN.switchToBlockType)(i,s.name,s.variationName)}),!!o?.length&&(0,_s.jsx)(Sbe,{transformations:o,blocks:i,onSelect:n}),l.map(p=>(0,_s.jsx)(_be,{item:p,onSelect:r,setHoveredTransformItem:a},p.id||p.name)),!d&&f]}),!!d&&(0,_s.jsx)(aE.MenuGroup,{className:e,children:f})]})};function yGe({restTransformations:e,onSelect:t,setHoveredTransformItem:o}){return e.map(r=>(0,_s.jsx)(_be,{item:r,onSelect:t,setHoveredTransformItem:o},r.id||r.name))}function _be({item:e,onSelect:t,setHoveredTransformItem:o}){let{name:r,icon:n,title:i,isDisabled:s}=e;return(0,_s.jsxs)(aE.MenuItem,{className:(0,eN.getBlockMenuDefaultClassName)(r),onClick:a=>{a.preventDefault(),t(r,e.variationName)},disabled:s,onMouseLeave:()=>o(null),onMouseEnter:()=>o(e),onFocus:()=>o(e),onBlur:()=>o(null),children:[(0,_s.jsx)(Tt,{icon:n,showColors:!0}),i]})}var xbe=bGe;var Ebe=c(G(),1),Tbe=c(U(),1),rN=c(F(),1);var oN=c(U(),1);var Bk=c(E(),1),wbe=()=>{};function Cbe({stylesToRender:e,activeStyle:t,onSelect:o=wbe,onHoverStyle:r=wbe}){return!e||e.length===0?null:(0,Bk.jsx)(Bk.Fragment,{children:e.map(n=>{let i=n.label||n.name;return(0,Bk.jsx)(oN.MenuItem,{icon:t.name===n.name?rs:null,onClick:()=>o(n),onFocus:()=>r(n),onBlur:()=>r(null),onMouseEnter:()=>r(n),onMouseLeave:()=>r(null),children:(0,Bk.jsx)(oN.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},n.name)})})}var lE=c(E(),1);function nN({hoveredBlock:e,onSwitch:t}){let{clientId:o}=e,[r,n]=(0,rN.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:u}=Tk({clientId:o,onSwitch:t}),d=(0,rN.useMemo)(()=>{if(!r||!l)return null;let f=Om(u,a,r);return[{...l,attributes:{...l.attributes||{},className:f}}]},[r,l,u,a]);return!s||s.length===0?null:(0,lE.jsxs)(Tbe.MenuGroup,{label:(0,Ebe.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[d&&(0,lE.jsx)(Nm,{blocks:d}),(0,lE.jsx)(Cbe,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:n})]})}var X9=c(G(),1),Abe=c(F(),1),iN=c(fe(),1);var Jd=c(U(),1);var Pbe=c(F(),1),Ibe=c(ce(),1);var Rbe=c(ce(),1),Z9=(e,t,o=new Set)=>{let{clientId:r,name:n,innerBlocks:i=[]}=e;if(!o.has(r)){if(n===t)return e;for(let s of i){let a=Z9(s,t,o);if(a)return a}}},Bbe=(e,t)=>{let o=(0,Rbe.getBlockAttributesNamesByRole)(e,"content");return o?.length?o.reduce((r,n)=>(t[n]&&(r[n]=t[n]),r),{}):t};var vGe=(e,t)=>{let o=Bbe(t.name,t.attributes);e.attributes={...e.attributes,...o}},SGe=(e,t)=>{let o=t.map(n=>(0,Ibe.cloneBlock)(n)),r=new Set;for(let n of e){let i=!1;for(let s of o){let a=Z9(s,n.name,r);if(a){i=!0,r.add(a.clientId),vGe(a,n);break}}if(!i)return}return o},kGe=(e,t)=>(0,Pbe.useMemo)(()=>e.reduce((o,r)=>{let n=SGe(t,r.blocks);return n&&o.push({...r,transformedBlocks:n}),o},[]),[e,t]),Obe=kGe;var Yn=c(E(),1);function _Ge({blocks:e,patterns:t,onSelect:o}){let[r,n]=(0,Abe.useState)(!1),i=Obe(t,e);return i.length?(0,Yn.jsxs)(Jd.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,Yn.jsx)(xGe,{patterns:i,onSelect:o}),(0,Yn.jsx)(Jd.MenuItem,{onClick:s=>{s.preventDefault(),n(!r)},icon:un,children:(0,X9.__)("Patterns")})]}):null}function xGe({patterns:e,onSelect:t}){let o=(0,iN.useViewportMatch)("medium","<");return(0,Yn.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,Yn.jsx)(Jd.Popover,{className:"block-editor-block-switcher__popover-preview",placement:o?"bottom":"right-start",offset:16,children:(0,Yn.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,Yn.jsx)(wGe,{patterns:e,onSelect:t})})})})}function wGe({patterns:e,onSelect:t}){return(0,Yn.jsx)(Jd.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,X9.__)("Patterns list"),children:e.map(o=>(0,Yn.jsx)(Lbe,{pattern:o,onSelect:t},o.name))})}function Lbe({pattern:e,onSelect:t}){let o="block-editor-block-switcher__preview-patterns-container",r=(0,iN.useInstanceId)(Lbe,`${o}-list__item-description`);return(0,Yn.jsxs)("div",{className:`${o}-list__list-item`,children:[(0,Yn.jsxs)(Jd.Composite.Item,{render:(0,Yn.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?r:void 0,className:`${o}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,Yn.jsx)(gs,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,Yn.jsx)("div",{className:`${o}-list__item-title`,children:e.title})]}),!!e.description&&(0,Yn.jsx)(bt,{id:r,children:e.description})]})}var Nbe=_Ge;var ra=c(E(),1);function CGe({onClose:e,clientIds:t}){let{replaceBlocks:o,multiSelect:r,updateBlockAttributes:n}=(0,sN.useDispatch)(C),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:u,hasBlockStyles:d}=(0,sN.useSelect)(T=>{let{getBlockAttributes:R,getBlocksByClientId:B,getBlockRootClientId:I,getBlockTransformItems:O,__experimentalGetPatternTransformItems:P,canRemoveBlocks:A,getBlockName:M}=T(C),{getBlockStyles:z}=T(Mm.store),V=I(t[0]),L=B(t),D=t.length===1,N=D&&M(t[0]),j=D&&!!z(N)?.length;return{blocks:L,possibleBlockTransformations:O(L,V),patterns:P(L,V),isUsingBindings:t.every(X=>!!R(X)?.metadata?.bindings),canRemove:A(t),hasBlockStyles:j}},[t]),f=vbe({clientIds:t,blocks:a});function p(T){T.length>1&&r(T[0].clientId,T[T.length-1].clientId)}function h(T,R){let B=(0,Mm.switchToBlockType)(a,T,R);o(t,B),p(B)}function m(T){n(a[0].clientId,{...f.find(({name:R})=>R===T).attributes})}function g(T){o(t,T),p(T)}let b=a.length===1,v=b&&((0,Mm.isTemplatePart)(a[0])||(0,Mm.isReusableBlock)(a[0])),y=!!i?.length&&u&&!v,k=!!f?.length,S=!!s?.length&&u,_=y||k;if(!(d||_||S))return(0,ra.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,_u.__)("No transforms.")});let w=b?(0,_u._x)("This block is connected.","block toolbar button label and description"):(0,_u._x)("These blocks are connected.","block toolbar button label and description");return(0,ra.jsxs)("div",{className:"block-editor-block-switcher__container",children:[S&&(0,ra.jsx)(Nbe,{blocks:a,patterns:s,onSelect:T=>{g(T),e()}}),_&&(0,ra.jsx)(xbe,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:f,blocks:a,onSelect:(T,R)=>{h(T,R),e()},onSelectVariation:T=>{m(T),e()}}),d&&(0,ra.jsx)(nN,{hoveredBlock:a[0],onSwitch:e}),l&&(0,ra.jsx)(xu.MenuGroup,{children:(0,ra.jsx)(xu.__experimentalText,{className:"block-editor-block-switcher__binding-indicator",children:w})})]})}var EGe=({children:e,clientIds:t,label:o,text:r})=>{let i=t.length===1?(0,_u.__)("Change block type or style"):(0,_u.sprintf)((0,_u._n)("Change type of %d block","Change type of %d blocks",t.length),t.length);return(0,ra.jsx)(xu.ToolbarGroup,{children:(0,ra.jsx)(xu.ToolbarItem,{children:s=>(0,ra.jsx)(xu.DropdownMenu,{className:"block-editor-block-switcher",label:o,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:e,text:r,toggleProps:{description:i,...s},menuProps:{orientation:"both"},children:({onClose:a})=>(0,ra.jsx)(CGe,{onClose:a,clientIds:t})})})})},Mbe=EGe;var Dbe=c(G(),1),Ik=c(U(),1);var Pk=c(E(),1);function Vbe({clientIds:e,children:t,label:o,text:r}){return(0,Pk.jsx)(Ik.ToolbarGroup,{children:(0,Pk.jsx)(Ik.ToolbarItem,{children:n=>(0,Pk.jsx)(Ik.DropdownMenu,{className:"block-editor-block-switcher",label:o,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:t,text:r,toggleProps:{description:(0,Dbe.__)("Change block style"),...n},menuProps:{orientation:"both"},children:({onClose:i})=>(0,Pk.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,Pk.jsx)(nN,{hoveredBlock:{clientId:e[0]},onSwitch:i})})})})})}var Ok=c(U(),1),cE=c(G(),1),aN=c(F(),1),Fbe=c(Q(),1);var ef=c(E(),1);function TGe({clientIds:e,blockTitle:t}){let o=(0,Fbe.useSelect)(i=>{let{getBlockAttributes:s}=i(C);return s(e?.[0])?.metadata?.name},[e]),r=e.length===1,n;return r&&o?n=(0,cE.sprintf)((0,cE.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),o):n=(0,cE.__)("These blocks are editable using overrides."),(0,ef.jsx)(Ok.__experimentalText,{children:n})}function zbe({icon:e,clientIds:t,blockTitle:o,label:r}){let[n,i]=(0,aN.useState)(!1),s=(0,aN.useRef)();return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(Ok.ToolbarButton,{ref:s,className:"block-editor-block-toolbar__pattern-overrides-indicator",icon:e,label:r,onClick:()=>i(!n),"aria-expanded":n}),n&&(0,ef.jsx)(Ok.Popover,{anchor:s.current,onClose:()=>i(!1),placement:"bottom-start",offset:16,className:"block-editor-block-toolbar__pattern-overrides-popover",children:(0,ef.jsx)(TGe,{clientIds:t,blockTitle:o})})]})}var Ak=c(E(),1);function RGe({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlockParentsByBlockName:n,canRemoveBlocks:i,getTemplateLock:s,getBlockEditingMode:a,canEditBlock:l,isSectionBlock:u}=H(e(C)),{getBlockStyles:d}=e(uE.store),f=t.some(B=>s(B)==="contentOnly"),p=t.length===1,h=p&&o(t[0]),m=p&&!!d(h)?.length,g=t.some(B=>!!r(B)?.metadata?.patternName&&u(B)),b=t.every(B=>Rx(r(B)?.metadata?.bindings)),v=t.every(B=>n(B,"core/block",!0).length>0),y=i(t),k=t.every(B=>l(B)),S=a(t[0]),_=S==="default",x=S==="contentOnly",T=!g&&_&&(m||y)&&!f&&k,R=b&&v;return T?"switcher":x&&m&&!b&&k?"styles-only":R?"pattern-overrides":"default"}function BGe({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlock:n,isSectionBlock:i}=H(e(C)),s=t.length===1,a=t[0],l=r(a);if(s&&l?.metadata?.patternName&&i(a))return jc;let u=o(a),d=(0,uE.getBlockType)(u);if(s){let{getActiveBlockVariation:h}=e(uE.store);return h(u,l,void 0,n?.(a)?.innerContent)?.icon||d?.icon}let f=t.map(h=>o(h));return new Set(f).size===1?d?.icon:tg}function Wbe({clientIds:e,isSynced:t}){let{icon:o,showIconLabels:r,variant:n}=(0,Ube.useSelect)(f=>({icon:BGe({select:f,clientIds:e}),showIconLabels:f(Gbe.store).get("core","showIconLabels"),variant:RGe({select:f,clientIds:e})}),[e]),i=zn({clientId:e?.[0],maximumLength:35}),s=e.length===1,a=s&&t&&!r,l=s?i:(0,Hbe.__)("Multiple blocks selected"),u=a&&i?i:void 0,d=(0,Ak.jsx)(Tt,{className:"block-editor-block-toolbar__block-icon",icon:o});return n==="switcher"?(0,Ak.jsx)(Mbe,{clientIds:e,label:l,text:u,children:d}):n==="styles-only"?(0,Ak.jsx)(Vbe,{clientIds:e,label:l,text:u,children:d}):n==="pattern-overrides"?(0,Ak.jsx)(zbe,{icon:d,clientIds:e,blockTitle:i,label:l}):(0,Ak.jsx)(jbe.ToolbarButton,{disabled:!0,className:"block-editor-block-toolbar__block-icon-button",title:l,icon:d,text:u})}var At=c(E(),1);function J9({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,variant:n="unstyled"}){let{blockClientId:i,blockClientIds:s,isDefaultEditingMode:a,blockType:l,toolbarKey:u,shouldShowVisualToolbar:d,showParentSelector:f,isUsingBindings:p,isSectionContainer:h,hasContentOnlyLocking:m,showShuffleButton:g,showSlots:b,showGroupButtons:v,showLockButtons:y,showBlockVisibilityButton:k,showSwitchSectionStyleButton:S,areSelectedBlocksHiddenOnViewport:_,showStyleStateSlot:x,canEdit:w}=(0,Kbe.useSelect)(V=>{let{canEditBlock:L}=V(C),{getBlockName:D,getBlockMode:N,getBlockParents:j,getSelectedBlockClientIds:X,isBlockValid:J,getBlockEditingMode:te,getBlockAttributes:ee,getSettings:W,getTemplateLock:K,getParentSectionBlock:Y,isZoomOut:Z,isSectionBlock:oe,isBlockHiddenAtViewport:ie,getSelectedBlockStyleState:q,isResponsiveEditing:re}=H(V(C)),ae=X(),ye=ae[0],xe=j(ye),ge=Y(ye)??xe[xe.length-1],me=D(ge),ke=(0,tf.getBlockType)(me),ve=te(ye),Ee=ve==="default",Re=D(ye),se=ae.every(lt=>J(lt)),ne=ae.every(lt=>N(lt)==="visual"),Ae=ae.every(lt=>!!ee(lt)?.metadata?.bindings),be=ae.some(lt=>K(lt)==="contentOnly"),we=Z(),ot=oe(ye),vt=L(ye),at=vt&&(we||ot),St=W()?.[wa]?.toLowerCase()||"desktop",rt=ae.length>0&&ae.every(lt=>ie(lt,St)),Vt=re()&&zi(q(ye));return{blockClientId:ye,blockClientIds:ae,isDefaultEditingMode:Ee,blockType:ye&&(0,tf.getBlockType)(Re),shouldShowVisualToolbar:se&&ne,toolbarKey:`${ye}${ge}`,showParentSelector:!we&&ke&&ve!=="contentOnly"&&te(ge)!=="disabled"&&(0,tf.hasBlockSupport)(ke,"__experimentalParentSelector",!0)&&ae.length===1,isUsingBindings:Ae,isSectionContainer:ot,hasContentOnlyLocking:be,showShuffleButton:we,showSlots:!we&&!Vt,showStyleStateSlot:!we&&Vt,showGroupButtons:!we,showLockButtons:!we,showBlockVisibilityButton:!we,showSwitchSectionStyleButton:at,areSelectedBlocksHiddenOnViewport:rt,canEdit:vt}},[]),T=(0,Q9.useRef)(null),R=(0,Q9.useRef)(),B=yk({ref:R}),I=!(0,Ybe.useViewportMatch)("medium","<");if(!UL())return null;let P=s.length>1,A=(0,tf.isReusableBlock)(l)||(0,tf.isTemplatePart)(l),M=$("block-editor-block-contextual-toolbar",{"has-parent":f}),z=$("block-editor-block-toolbar",{"is-synced":A,"is-connected":p});return(0,At.jsx)(Ck,{focusEditorOnEscape:!0,className:M,"aria-label":(0,$be.__)("Block tools"),variant:n==="toolbar"?void 0:n,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,children:(0,At.jsxs)("div",{ref:T,className:z,children:[f&&!P&&I&&(0,At.jsx)(Dhe,{}),(d||P)&&(0,At.jsx)("div",{ref:R,...B,children:(0,At.jsxs)(qbe.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,At.jsx)(Wbe,{clientIds:s,isSynced:A}),a&&k&&(0,At.jsx)(Fj,{clientIds:s}),!P&&a&&y&&(0,At.jsx)(D9,{clientId:i}),(0,At.jsx)(fL,{clientIds:s,hideDragHandle:e})]})}),!_&&!m&&d&&P&&v&&(0,At.jsx)(O9,{}),!P&&w&&(0,At.jsx)(mbe,{clientId:s[0]}),!_&&g&&(0,At.jsx)(ibe,{clientId:s[0]}),!_&&S&&(0,At.jsx)(fbe,{clientId:s[0]}),!_&&d&&(0,At.jsxs)(At.Fragment,{children:[!h&&(0,At.jsxs)(At.Fragment,{children:[b&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(No.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,At.jsx)(No.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,At.jsx)(No.Slot,{className:"block-editor-block-toolbar__slot"}),(0,At.jsx)(No.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"})]}),x&&(0,At.jsx)(No.Slot,{group:"style-state",className:"block-editor-block-toolbar__slot"})]}),b&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(No.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,At.jsx)(bL.Slot,{})]})]}),(0,At.jsx)(Yge,{clientIds:s}),(0,At.jsx)(VL,{clientIds:s})]})},u)}function Zbe({hideDragHandle:e,variant:t}){return(0,At.jsx)(J9,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}var eG=c(E(),1);function Jbe({clientId:e,isTyping:t,__unstableContentRef:o}){let{capturingClientId:r,isInsertionPointVisible:n,lastClientId:i}=nL(e),s=(0,Lk.useRef)();(0,Lk.useEffect)(()=>{s.current=void 0},[e]);let{stopTyping:a}=(0,Xbe.useDispatch)(C),l=(0,Lk.useRef)(!1);(0,Qbe.useShortcut)("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,Lk.useEffect)(()=>{l.current=!1});let u=r||e,d=rL({contentElement:o?.current,clientId:u});return!t&&(0,eG.jsx)(Sb,{clientId:u,bottomClientId:i,className:$("block-editor-block-list__block-popover",{"is-insertion-point-visible":n}),resize:!1,...d,__unstableContentRef:o,children:(0,eG.jsx)(J9,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:f=>{s.current=f},variant:"toolbar"})})}var lN=c(Q(),1),cN=c(F(),1);var eye=c(U(),1);var tye=c(G(),1),oye=c(E(),1);function PGe({onClick:e}){return(0,oye.jsx)(eye.Button,{variant:"primary",icon:Ca,size:"compact",className:$("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,tye._x)("Add pattern","Generic label for pattern inserter button")})}var rye=PGe;var tG=c(E(),1);function IGe(){let[e,t]=(0,cN.useState)(!1),{hasSelection:o,blockOrder:r,setInserterIsOpened:n,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,lN.useSelect)(m=>{let{getSettings:g,getBlockOrder:b,getSelectionStart:v,getSelectedBlockClientId:y,getSectionRootClientId:k,getBlockInsertionPoint:S,isBlockInsertionPointVisible:_}=H(m(C)),x=k();return{hasSelection:!!v().clientId,blockOrder:b(x),sectionRootClientId:x,setInserterIsOpened:g().__experimentalSetIsInserterOpened,selectedBlockClientId:y(),blockInsertionPoint:S(),insertionPointVisible:_()}},[]),{showInsertionPoint:u}=H((0,lN.useDispatch)(C));if((0,cN.useEffect)(()=>{let m=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(m)}},[]),!e||!o)return null;let d=s,p=r.findIndex(m=>s===m)+1,h=r[p];return l&&a?.index===p?null:(0,tG.jsx)(I2,{previousClientId:d,nextClientId:h,children:(0,tG.jsx)(rye,{onClick:()=>{n({rootClientId:i,insertionIndex:p,tab:"patterns",category:"all"}),u(i,p,{operation:"insert"})}})})}var nye=IGe;var iye=c(Q(),1),sye=c(ce(),1);function aye(){return(0,iye.useSelect)(e=>{let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getBlock:r,getBlockMode:n,getSettings:i,isTyping:s,isBlockInterfaceHidden:a}=H(e(C)),l=t()||o(),u=r(l),d=!!l&&!!u,f=d&&(0,sye.isUnmodifiedDefaultBlock)(u,"content")&&n(l)!=="html",p=l&&!s()&&f,h=!a()&&!i().hasFixedToolbar&&!p&&d&&!f;return{showEmptyBlockSideInserter:p,showBlockToolbarPopover:h}},[])}var nl=c(E(),1);function OGe(e){let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getSettings:r,isTyping:n,isDragging:i,isZoomOut:s,getViewportModalClientIds:a}=H(e(C));return{clientId:t()||o(),hasFixedToolbar:r().hasFixedToolbar,isTyping:n(),isZoomOutMode:s(),isDragging:i(),viewportModalClientIds:a(),blockVisibilitySetting:e(C).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing}}function dE({children:e,__unstableContentRef:t,...o}){let{clientId:r,hasFixedToolbar:n,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l,blockVisibilitySetting:u}=(0,Nk.useSelect)(OGe,[]),d=(0,lye.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:f,getSelectedBlockClientIds:p,getBlockRootClientId:h,getBlockEditingMode:m,getBlockName:g,isGroupable:b,getEditedContentOnlySection:v,canEditBlock:y}=H((0,Nk.useSelect)(C)),{getGroupingBlockName:k}=(0,Nk.useSelect)(Mk.store),{showEmptyBlockSideInserter:S,showBlockToolbarPopover:_}=aye(),x=vk(),[w,T]=(0,uN.useState)(null),{canRename:R}=Db(g(p()[0])),{duplicateBlocks:B,removeBlocks:I,replaceBlocks:O,insertAfterBlock:P,insertBeforeBlock:A,selectBlock:M,moveBlocksUp:z,moveBlocksDown:V,expandBlock:L,stopEditingContentOnlySection:D,showViewportModal:N,hideViewportModal:j}=H((0,Nk.useDispatch)(C));function X(ee){if(!ee.defaultPrevented){if(d("core/block-editor/move-up",ee)||d("core/block-editor/move-down",ee)){let W=p();if(W.length){ee.preventDefault();let K=h(W[0]);(d("core/block-editor/move-up",ee)?"up":"down")==="up"?z(W,K):V(W,K);let Z=Array.isArray(W)?W.length:1,oe=(0,Dk.sprintf)((0,Dk._n)("%d block moved.","%d blocks moved.",W.length),Z);(0,nG.speak)(oe)}}else if(d("core/block-editor/duplicate",ee)){let W=p();W.length&&(ee.preventDefault(),B(W))}else if(d("core/block-editor/remove",ee)){let W=p();W.length&&(ee.preventDefault(),I(W))}else if(d("core/block-editor/paste-styles",ee)){let W=p();if(W.length){ee.preventDefault();let K=f(W);x(K)}}else if(d("core/block-editor/insert-after",ee)){let W=p();W.length&&(ee.preventDefault(),P(W[W.length-1]))}else if(d("core/block-editor/insert-before",ee)){let W=p();W.length&&(ee.preventDefault(),A(W[0]))}else if(d("core/block-editor/unselect",ee)){if(ee.target.closest("[role=toolbar]"))return;let W=p();W.length>1&&(ee.preventDefault(),M(W[0]))}else if(d("core/block-editor/collapse-list-view",ee)){if((0,oG.isTextField)(ee.target)||(0,oG.isTextField)(ee.target?.contentWindow?.document?.activeElement))return;ee.preventDefault(),L(r)}else if(d("core/block-editor/group",ee)){let W=p();if(W.length>1&&b(W)){ee.preventDefault();let K=f(W),Y=k(),Z=(0,Mk.switchToBlockType)(K,Y);O(W,Z),(0,nG.speak)((0,Dk.__)("Selected blocks are grouped."))}}else if(d("core/block-editor/rename",ee)){let W=p();if(W.length===1){let K=m(W[0])==="contentOnly";R&&!K&&y(W[0])&&(ee.preventDefault(),T(W[0]))}}else if(d("core/block-editor/toggle-block-visibility",ee)){if(u===!1)return;let W=p();if(W.length){if(ee.preventDefault(),!f(W).every(Z=>(0,Mk.hasBlockSupport)(Z.name,"visibility",!0))||W.some(Z=>m(Z)!=="default"||!y(Z)))return;N(W)}}d("core/block-editor/stop-editing-as-blocks",ee)&&v()&&D()}}let J=vb(t),te=vb(t);return(0,nl.jsxs)("div",{...o,onKeyDown:X,className:$(o.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,nl.jsxs)(dk.Provider,{value:(0,uN.useRef)(!1),children:[!i&&!s&&(0,nl.jsx)(rme,{__unstableContentRef:t}),S&&(0,nl.jsx)(She,{__unstableContentRef:t,clientId:r}),_&&(0,nl.jsx)(Jbe,{__unstableContentRef:t,clientId:r,isTyping:i}),!s&&!n&&(0,nl.jsx)(rG.Popover.Slot,{name:"block-toolbar",ref:J}),e,(0,nl.jsx)(rG.Popover.Slot,{name:"__unstable-block-tools-after",ref:te}),s&&!a&&(0,nl.jsx)(nye,{__unstableContentRef:t})]}),w&&(0,nl.jsx)(Nb,{clientId:w,onClose:()=>T(null)}),l&&(0,nl.jsx)(Nj,{clientIds:l,onClose:j})]})}var fE=c(fe(),1),Vk=c(Q(),1),iG=c(Rt(),1),bi=c(so(),1);var cye=c(E(),1),AGe=new Set([bi.UP,bi.RIGHT,bi.DOWN,bi.LEFT,bi.ENTER,bi.BACKSPACE]);function LGe(e){let{keyCode:t,shiftKey:o}=e;return!o&&AGe.has(t)}function pE(){let e=(0,Vk.useSelect)(o=>o(C).isTyping(),[]),{stopTyping:t}=(0,Vk.useDispatch)(C);return(0,fE.useRefEffect)(o=>{if(!e)return;let{ownerDocument:r}=o,n,i;function s(a){let{clientX:l,clientY:u}=a;n&&i&&(n!==l||i!==u)&&t(),n=l,i=u}return r.addEventListener("mousemove",s),()=>{r.removeEventListener("mousemove",s)}},[e,t])}function mE(){let e=(0,Vk.useSelect)(i=>i(C).isTyping(),[]),{startTyping:t,stopTyping:o}=(0,Vk.useDispatch)(C),r=pE(),n=(0,fE.useRefEffect)(i=>{if(e){let d=function(g){let{target:b}=g;h=m.setTimeout(()=>{(0,iG.isTextField)(b)||o()})},f=function(g){let{keyCode:b}=g;(b===bi.ESCAPE||b===bi.TAB)&&o()},p=function(){m.getSelection().isCollapsed||o()};var s=d,a=f,l=p;let h,{defaultView:m}=i.ownerDocument;return i.addEventListener("focus",d),i.addEventListener("keydown",f),i.ownerDocument.addEventListener("selectionchange",p),()=>{m.clearTimeout(h),i.removeEventListener("focus",d),i.removeEventListener("keydown",f),i.ownerDocument.removeEventListener("selectionchange",p)}}function u(d){let{type:f,target:p}=d;!(0,iG.isTextField)(p)||!i.contains(p)||f==="keydown"&&!LGe(d)||t()}return i.addEventListener("keypress",u),i.addEventListener("keydown",u),()=>{i.removeEventListener("keypress",u),i.removeEventListener("keydown",u)}},[e,t,o]);return(0,fE.useMergeRefs)([r,n])}function NGe({children:e}){return(0,cye.jsx)("div",{ref:mE(),children:e})}var uye=NGe;var il=c(G(),1),wu=c(ce(),1),of=c(Q(),1),sG=c(fye(),1);var MGe=()=>function(){let{replaceBlocks:t,multiSelect:o}=(0,of.useDispatch)(C),{blocks:r,clientIds:n,canRemove:i,possibleBlockTransformations:s,invalidSelection:a}=(0,of.useSelect)(h=>{let{getBlockRootClientId:m,getBlockTransformItems:g,getSelectedBlockClientIds:b,getBlocksByClientId:v,canRemoveBlocks:y}=h(C),k=b(),S=v(k);if(S.filter(x=>!x).length>0)return{invalidSelection:!0};let _=m(k[0]);return{blocks:S,clientIds:k,possibleBlockTransformations:g(S,_),canRemove:y(k),invalidSelection:!1}},[]);if(a)return{isLoading:!1,commands:[]};let l=r.length===1&&(0,wu.isTemplatePart)(r[0]);function u(h){h.length>1&&o(h[0].clientId,h[h.length-1].clientId)}function d(h,m){let g=(0,wu.switchToBlockType)(r,h,m);t(n,g),u(g)}let f=!!s.length&&i&&!l;return!n||n.length<1||!f?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(h=>{let{id:m,name:g,title:b,icon:v,variationName:y}=h,k=!v?.src||v?.src==="block-default"?{src:Mx}:v;return{name:"core/block-editor/transform-to-"+(m||g).replace(/\//g,"-"),label:(0,il.sprintf)((0,il.__)("Transform to %s"),b),icon:k?.src,category:"command",callback:({close:S})=>{d(g,y),S()}}})}},DGe=()=>function(){let{clientIds:t,isUngroupable:o,isGroupable:r,blockVisibilitySetting:n}=(0,of.useSelect)(A=>{let{getSelectedBlockClientIds:M,getSettings:z,isUngroupable:V,isGroupable:L}=A(C);return{clientIds:M(),isUngroupable:V(),isGroupable:L(),blockVisibilitySetting:z().__experimentalFeatures?.blockVisibility?.allowEditing}},[]),{canInsertBlockType:i,getBlockRootClientId:s,getBlocksByClientId:a,canRemoveBlocks:l,isBlockHiddenAnywhere:u}=H((0,of.useSelect)(C)),{getBlockEditingMode:d}=(0,of.useSelect)(C),{getDefaultBlockName:f,getGroupingBlockName:p}=(0,of.useSelect)(wu.store),h=a(t),m=(0,of.useDispatch)(C),{removeBlocks:g,replaceBlocks:b,duplicateBlocks:v,insertAfterBlock:y,insertBeforeBlock:k}=m,S=()=>{if(!h.length)return;let A=p(),M=(0,wu.switchToBlockType)(h,A);M&&b(t,M)},_=()=>{if(!h.length)return;let A=h[0].innerBlocks;A.length&&b(t,A)};if(!t||t.length<1)return{isLoading:!1,commands:[]};let{showViewportModal:x}=H(m),w=s(t[0]),T=i(f(),w),R=h.every(A=>!!A&&(0,wu.hasBlockSupport)(A.name,"multiple",!0)&&i(A.name,w)),B=l(t),I=[];R&&I.push({name:"duplicate",label:(0,il.__)("Duplicate"),callback:()=>v(t,!0),icon:tg}),T&&I.push({name:"add-before",label:(0,il.__)("Add before"),callback:()=>{let A=Array.isArray(t)?t[0]:A;k(A)},icon:Ca},{name:"add-after",label:(0,il.__)("Add after"),callback:()=>{let A=Array.isArray(t)?t[t.length-1]:A;y(A)},icon:Ca}),r&&I.push({name:"Group",label:(0,il.__)("Group"),callback:S,icon:jx}),o&&I.push({name:"ungroup",label:(0,il.__)("Ungroup"),callback:_,icon:T6}),B&&I.push({name:"remove",label:(0,il.__)("Delete"),callback:()=>g(t,!0),icon:C6});let O=h.every(A=>!!A&&(0,wu.hasBlockSupport)(A.name,"visibility",!0)),P=t.every(A=>d(A)==="default");if(O&&P&&n!==!1){let A=t.some(M=>u(M));I.push({name:"toggle-visibility",label:A?(0,il.__)("Show"):(0,il.__)("Hide"),callback:()=>x(t),icon:A?ug:Ml})}return{isLoading:!1,commands:I.map(A=>({...A,name:"core/block-editor/action-"+A.name,category:"command",callback:({close:M})=>{A.callback(),M()}}))}},dN=()=>{(0,sG.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:MGe()}),(0,sG.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:DGe(),context:"block-selection-edit"})};var Ui=c(E(),1),fN=(0,gye.createSlotFill)(Symbol("BlockCanvasCover"));function pye({children:e}){return(0,Ui.jsx)("div",{className:"block-canvas-cover",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:e})}var VGe={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function aG({shouldIframe:e=!0,height:t="300px",children:o=(0,Ui.jsx)(zS,{}),styles:r,contentRef:n,iframeProps:i}){dN();let s=(0,pN.useViewportMatch)("medium","<"),a=pE(),l=kb(),u=(0,mye.useRef)(),d=(0,pN.useMergeRefs)([n,l,u,mE()]),f=(0,hye.useSelect)(h=>H(h(C)).getZoomLevel(),[]),p=f!==100&&!s?{scale:f,frameSize:"40px"}:{};return e?(0,Ui.jsx)(dE,{__unstableContentRef:u,style:{height:t,display:"flex"},children:(0,Ui.jsxs)(OS,{...i,...p,ref:a,contentRef:d,style:{...i?.style},name:"editor-canvas",children:[(0,Ui.jsx)(fN.Slot,{fillProps:{containerRef:u},children:h=>h.map((m,g)=>(0,Ui.jsx)(pye,{children:m},g))}),(0,Ui.jsx)(Ld,{styles:r}),o]})}):(0,Ui.jsxs)(dE,{__unstableContentRef:u,style:{height:t,display:"flex"},children:[(0,Ui.jsx)(fN.Slot,{fillProps:{containerRef:u},children:h=>h.map((m,g)=>(0,Ui.jsx)(pye,{children:m},g))}),(0,Ui.jsx)(Ld,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:VGe}),(0,Ui.jsx)(RA,{ref:d,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%",overflow:"auto"},children:o})]})}function FGe({children:e,height:t,styles:o}){return(0,Ui.jsx)(aG,{height:t,styles:o,children:e})}var bye=FGe;var Cu=c(U(),1),yye=c(G(),1),vye=c(so(),1),Sye=c(Bt(),1),sl=c(E(),1),zGe=()=>(0,sl.jsx)(Cu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,sl.jsx)(Cu.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})}),jGe=({style:e,className:t})=>(0,sl.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,sl.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,sl.jsx)(zGe,{})})}),HGe=({TextColor:e,BackgroundColor:t})=>function({onToggle:r,isOpen:n}){let i=s=>{!n&&s.keyCode===vye.DOWN&&(s.preventDefault(),r())};return(0,sl.jsx)(Cu.ToolbarGroup,{children:(0,sl.jsx)(Cu.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,yye.__)("Open Colors Selector"),onClick:r,onKeyDown:i,icon:(0,sl.jsx)(t,{children:(0,sl.jsx)(e,{children:(0,sl.jsx)(jGe,{})})})})})},UGe=({children:e,...t})=>((0,Sye.default)("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,sl.jsx)(Cu.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:HGe(t),renderContent:()=>e})),kye=UGe;var Tve=c(Bt(),1),BN=c(U(),1),pG=c(G(),1),Rve=c(Q(),1),Bve=c(F(),1);var $k=c(fe(),1),wve=c(U(),1);var bE=c(Q(),1),Cve=c(Bt(),1),Ur=c(F(),1),fG=c(G(),1);var xN=c(U(),1),wN=c(F(),1),CN=c(Q(),1);var xye=c(fe(),1),wye=c(Xr(),1),Cye=c(Q(),1),yN=c(F(),1),Fk=c(G(),1);var mN=c(F(),1),hN=(0,mN.createContext)({});hN.displayName="ListViewContext";var Dm=()=>(0,mN.useContext)(hN);var gN=c(F(),1),_ye=c(E(),1);function bN({children:e,...t}){let o=(0,gN.useRef)();return(0,gN.useEffect)(()=>{o.current&&(o.current.textContent=o.current.textContent)},[e]),(0,_ye.jsx)("div",{hidden:!0,...t,ref:o,children:e})}var hE=c(E(),1),lG=(0,yN.forwardRef)(({nestingLevel:e,blockCount:t,clientId:o,...r},n)=>{let{insertedBlock:i,setInsertedBlock:s}=Dm(),a=(0,xye.useInstanceId)(lG),{directInsert:l,hideInserter:u}=(0,Cye.useSelect)(m=>{let{getBlockListSettings:g,getTemplateLock:b,isZoomOut:v}=H(m(C)),k=g(o)?.directInsert||!1,S=!!b(o)||v();return{directInsert:k,hideInserter:S}},[o]),d=zn({clientId:o,context:"list-view"}),f=zn({clientId:i?.clientId,context:"list-view"});if((0,yN.useEffect)(()=>{f?.length&&(0,wye.speak)((0,Fk.sprintf)((0,Fk.__)("%s block inserted"),f),"assertive")},[f]),u)return null;let p=`list-view-appender__${a}`,h=(0,Fk.sprintf)((0,Fk.__)("Append to %1$s block at position %2$d, Level %3$d"),d,t+1,e);return(0,hE.jsxs)("div",{className:"list-view-appender",children:[(0,hE.jsx)(Za,{ref:n,rootClientId:o,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:l,__experimentalIsQuick:!0,...r,toggleProps:{"aria-describedby":p},onSelectOrClose:m=>{m?.clientId&&s(m)}}),(0,hE.jsx)(bN,{id:p,children:h})]})});var Fm=c(ce(),1),Fb=c(U(),1),kN=c(fe(),1);var Hr=c(F(),1),Hk=c(Q(),1),uG=c(G(),1),_N=c(so(),1),qye=c(jC(),1),Zye=c($l(),1),Xye=c(Xr(),1);var Eye=c(U(),1),Tye=c(fe(),1),Rye=c(F(),1);var Bye=c(E(),1),GGe=bee(Eye.__experimentalTreeGridRow),WGe=(0,Rye.forwardRef)(({isDragged:e,isSelected:t,position:o,level:r,rowCount:n,children:i,className:s,path:a,...l},u)=>{let d=ZP({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:a}),f=(0,Tye.useMergeRefs)([u,d]);return(0,Bye.jsx)(GGe,{ref:f,className:$("block-editor-list-view-leaf",s),level:r,positionInSet:o,setSize:n,isExpanded:void 0,...l,children:i})}),Pye=WGe;var Iye=c(Rt(),1),Oye=c(F(),1);function Aye({isSelected:e,selectedClientIds:t,rowItemRef:o}){let r=t.length===1;(0,Oye.useLayoutEffect)(()=>{if(!e||!r||!o.current)return;let n=(0,Iye.getScrollContainer)(o.current),{ownerDocument:i}=o.current;if(n===i.body||n===i.documentElement||!n)return;let a=o.current.getBoundingClientRect(),l=n.getBoundingClientRect();(a.top<l.top||a.bottom>l.bottom)&&o.current.scrollIntoView()},[e,r,o])}var jye=c(F(),1);var zk=c(U(),1),Fye=c(F(),1);var SN=c(so(),1);var Lye=c(G(),1),cG=c(E(),1);function vN({onClick:e}){return(0,cG.jsx)("span",{className:"block-editor-list-view__expander",onClick:e?t=>e(t,{forceToggle:!0}):void 0,"aria-hidden":"true","data-testid":"list-view-expander",children:(0,cG.jsx)(gt,{icon:(0,Lye.isRTL)()?Dx:op})})}var Nye=c(F(),1),Mye=c(Q(),1);var $Ge=3,Dye={"core/image":({clientId:e,attributes:t})=>{if(t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/cover":({clientId:e,attributes:t})=>{if(t.backgroundType==="image"&&t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/media-text":({clientId:e,attributes:t})=>{if(t.mediaType==="image"&&t.mediaUrl)return{url:t.mediaUrl,alt:t.mediaAlt||"",clientId:e}},"core/gallery":({innerBlocks:e})=>{let t=[],o=e?.length?Dye[e[0].name]:void 0;if(!o)return t;for(let r of e){let n=o(r);if(n&&t.push(n),t.length>=$Ge)return t}return t}};function KGe(e,t){let o=Dye[e.name],r=o?o(e):void 0;return r?Array.isArray(r)?t?[]:r:[r]:[]}function Vye({clientId:e,isExpanded:t}){let{block:o}=(0,Mye.useSelect)(n=>({block:n(C).getBlock(e)}),[e]);return(0,Nye.useMemo)(()=>KGe(o,t),[o,t])}var jr=c(E(),1),{Badge:YGe}=H(zk.privateApis);function qGe({className:e,block:{clientId:t},onClick:o,onContextMenu:r,onMouseDown:n,onToggleExpanded:i,tabIndex:s,onFocus:a,onDragStart:l,onDragEnd:u,draggable:d,isExpanded:f,ariaDescribedBy:p,visibilityLabel:h,isDisabled:m=!1},g){let b=Mo(t),v=zn({clientId:t,context:"list-view"}),{isLocked:y}=oa(t),k=y,S=b?.positionType==="sticky",_=Vye({clientId:t,isExpanded:f}),x=T=>{T.dataTransfer.clearData(),l?.(T)};function w(T){(T.keyCode===SN.ENTER||T.keyCode===SN.SPACE)&&o(T)}return(0,jr.jsxs)("a",{className:$("block-editor-list-view-block-select-button",e),onClick:o,onContextMenu:r,onKeyDown:w,onMouseDown:n,ref:g,tabIndex:s,onFocus:a,onDragStart:x,onDragEnd:u,draggable:d,href:m?void 0:`#block-${t}`,"aria-disabled":m?!0:void 0,"aria-describedby":p,"aria-expanded":f,children:[(0,jr.jsx)(vN,{onClick:i}),(0,jr.jsx)(Tt,{icon:b?.icon,showColors:!0,context:"list-view"}),(0,jr.jsxs)(zk.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,jr.jsx)(zk.__experimentalTruncate,{ellipsizeMode:"auto",children:v})}),b?.anchor&&(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,jr.jsx)(YGe,{className:"block-editor-list-view-block-select-button__anchor",children:b.anchor})}),S&&(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,jr.jsx)(gt,{icon:A4})}),_.length?(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:_.map((T,R)=>(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${T.url})`,zIndex:_.length-R}},T.clientId))}):null,!!h&&(0,jr.jsxs)(xt.Root,{children:[(0,jr.jsx)(xt.Trigger,{render:(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility","aria-hidden":"true",children:(0,jr.jsx)(gt,{icon:Ml})})}),(0,jr.jsx)(xt.Popup,{children:h})]}),k&&(0,jr.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,jr.jsx)(gt,{icon:C4})})]})]})}var zye=(0,Fye.forwardRef)(qGe);var Vm=c(E(),1),ZGe=(0,jye.forwardRef)(({onClick:e,onToggleExpanded:t,block:o,isSelected:r,position:n,siblingBlockCount:i,level:s,isExpanded:a,selectedClientIds:l,...u},d)=>{let{clientId:f}=o,{AdditionalBlockContent:p,insertedBlock:h,setInsertedBlock:m}=Dm(),g=l.includes(f)?l:[f];return(0,Vm.jsxs)(Vm.Fragment,{children:[p&&(0,Vm.jsx)(p,{block:o,insertedBlock:h,setInsertedBlock:m}),(0,Vm.jsx)(aL,{appendToOwnerDocument:!0,clientIds:g,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,Vm.jsx)(zye,{ref:d,className:"block-editor-list-view-block-contents",block:o,onClick:e,onToggleExpanded:t,isSelected:r,position:n,siblingBlockCount:i,level:s,draggable:b,onDragStart:v,onDragEnd:y,isExpanded:a,...u})})]})}),Hye=ZGe;var Vb=c(G(),1),Uye=c(Rt(),1),Gye=(e,t,o)=>(0,Vb.sprintf)((0,Vb.__)("Block %1$d of %2$d, Level %3$d."),e,t,o),Wye=(e,t)=>[e?.positionLabel?`${(0,Vb.sprintf)((0,Vb.__)("Position: %s"),e.positionLabel)}.`:void 0,t?(0,Vb.__)("This block is locked."):void 0].filter(Boolean).join(" "),$ye=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function Kye(e,t,o,r){let n=[...o,e],i=[...r,t],s=Math.min(n.length,i.length)-1,a=n[s],l=i[s];return{start:a,end:l}}function jk(e,t){if(!t)return;let o=`[role=row][data-block="${e}"]`;return new Promise(r=>{if(t.querySelector(o))return r(t.querySelector(o));let n=null,i=new window.MutationObserver(()=>{t.querySelector(o)&&(clearTimeout(n),i.disconnect(),r(t.querySelector(o)))});i.observe(t,{childList:!0,subtree:!0}),n=setTimeout(()=>{i.disconnect(),r(null)},3e3)}).then(r=>{r&&r.isConnected&&Uye.focus.focusable.find(r)?.[0]?.focus()})}function Yye({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:o,clientId:r,firstDraggedBlockIndex:n,isDragged:i}){let s,a,l;if(!i){a=!1;let u=e[r];l=u>n,t!=null&&n!==void 0?u!==void 0&&(u>=n&&u<t?s="up":u<n&&u>=t?s="down":s="normal",a=typeof t=="number"&&t-1===u&&o==="inside"):t===null&&n!==void 0?u!==void 0&&u>=n?s="up":s="normal":t!=null&&n===void 0?u!==void 0&&(u<t?s="normal":s="down"):t===null&&(s="normal")}return{displacement:s,isNesting:a,isAfterDraggedBlocks:l}}var Bn=c(E(),1);function Qye({block:{clientId:e},displacement:t,isAfterDraggedBlocks:o,isDragged:r,isNesting:n,isSelected:i,isBranchSelected:s,selectBlock:a,position:l,level:u,rowCount:d,siblingBlockCount:f,showBlockMovers:p,path:h,isExpanded:m,selectedClientIds:g,isSyncedBranch:b}){let v=(0,Hr.useRef)(null),y=(0,Hr.useRef)(null),k=(0,Hr.useRef)(null),[S,_]=(0,Hr.useState)(!1),[x,w]=(0,Hr.useState)(),[T,R]=(0,Hr.useState)(!1),{isLocked:B}=oa(e),I=i&&g[0]===e,O=i&&g[g.length-1]===e,{toggleBlockHighlight:P,duplicateBlocks:A,multiSelect:M,replaceBlocks:z,removeBlocks:V,insertAfterBlock:L,insertBeforeBlock:D,showViewportModal:N,stopEditingContentOnlySection:j}=H((0,Hk.useDispatch)(C)),X=(0,kN.useDebounce)(P,50),{canInsertBlockType:J,getSelectedBlockClientIds:te,getPreviousBlockClientId:ee,getBlockRootClientId:W,getBlockOrder:K,getBlockParents:Y,getBlockEditingMode:Z,getBlocksByClientId:oe,canEditBlock:ie,canMoveBlock:q,canRemoveBlocks:re,isGroupable:ae}=(0,Hk.useSelect)(C),{getGroupingBlockName:ye}=(0,Hk.useSelect)(Fm.store),xe=Mo(e),he=vk(),{block:ge,blockName:me,blockEditingMode:ke,allowRightClickOverrides:ve,editedSection:Ee,viewportSettings:Re,blockVisibilitySetting:se}=(0,Hk.useSelect)(Be=>{let{getBlock:zt,getBlockName:nt,getBlockEditingMode:jt,getSettings:Pr,getEditedContentOnlySection:Wo}=H(Be(C)),vn=Pr();return{block:zt(e),blockName:nt(e),blockEditingMode:jt(e),allowRightClickOverrides:vn.allowRightClickOverrides,editedSection:Wo(),viewportSettings:vn.__experimentalFeatures?.viewport,blockVisibilitySetting:vn.__experimentalFeatures?.blockVisibility?.allowEditing}},[e]),ne=ke==="disabled",{canRename:Ae}=Db(me),be=(0,Fm.hasBlockSupport)(me,"__experimentalToolbar",!0),ot=`list-view-block-select-button__description-${(0,kN.useInstanceId)(Qye)}`,{expand:vt,collapse:at,collapseAll:St,BlockSettingsMenu:rt,listViewInstanceId:Vt,expandedState:lt,setInsertedBlock:no,treeGridElementRef:ho,rootClientId:je}=Dm(),_e=(0,Zye.__unstableUseShortcutEventMatch)();function He(){let Be=te(),zt=Be.includes(e),nt=zt?Be[0]:e,jt=W(nt);return{blocksToUpdate:zt?Be:[e],firstBlockClientId:nt,firstBlockRootClientId:jt,selectedBlockClientIds:Be}}async function $e(Be){if(Be.defaultPrevented||Be.target.closest("[role=dialog]"))return;if(Ee&&_e("core/block-editor/unselect",Be)){Be.stopPropagation(),Be.preventDefault(),j();return}let zt=[_N.BACKSPACE,_N.DELETE].includes(Be.keyCode);if(_e("core/block-editor/unselect",Be)&&g.length>0)Be.stopPropagation(),Be.preventDefault(),a(Be,void 0);else if(zt||_e("core/block-editor/remove",Be)){let{blocksToUpdate:nt,firstBlockClientId:jt,firstBlockRootClientId:Pr,selectedBlockClientIds:Wo}=He();if(!re(nt))return;let vn=ee(jt)??Pr;V(nt,!1);let Gh=Wo.length>0&&te().length===0;vn||(vn=K()[0]),ut(vn,Gh)}else if(_e("core/block-editor/paste-styles",Be)){Be.preventDefault();let{blocksToUpdate:nt}=He(),jt=oe(nt);he(jt)}else if(_e("core/block-editor/duplicate",Be)){Be.preventDefault();let{blocksToUpdate:nt,firstBlockRootClientId:jt}=He();if(oe(nt).every(Wo=>!!Wo&&(0,Fm.hasBlockSupport)(Wo.name,"multiple",!0)&&J(Wo.name,jt))){let Wo=await A(nt,!1);Wo?.length&&ut(Wo[0],!1)}}else if(_e("core/block-editor/insert-before",Be)){Be.preventDefault();let{blocksToUpdate:nt}=He();await D(nt[0]);let jt=te();ut(jt[0],!1)}else if(_e("core/block-editor/insert-after",Be)){Be.preventDefault();let{blocksToUpdate:nt}=He();await L(nt.at(-1));let jt=te();ut(jt[0],!1)}else if(_e("core/block-editor/select-all",Be)){Be.preventDefault();let{firstBlockRootClientId:nt,selectedBlockClientIds:jt}=He(),Pr=K(nt);if(!Pr.length)return;if((0,qye.isShallowEqual)(jt,Pr)&&nt&&nt!==je){ut(nt,!0);return}M(Pr[0],Pr[Pr.length-1],null)}else if(_e("core/block-editor/collapse-list-view",Be)){Be.preventDefault();let{firstBlockClientId:nt}=He(),jt=Y(nt,!1);St(),vt(jt)}else if(_e("core/block-editor/group",Be)){let{blocksToUpdate:nt}=He();if(nt.length>1&&ae(nt)){Be.preventDefault();let jt=oe(nt),Pr=ye(),Wo=(0,Fm.switchToBlockType)(jt,Pr);z(nt,Wo),(0,Xye.speak)((0,uG.__)("Selected blocks are grouped."));let vn=te();ut(vn[0],!1)}}else if(_e("core/block-editor/toggle-block-visibility",Be)){if(se===!1)return;Be.preventDefault();let{blocksToUpdate:nt}=He();if(!oe(nt).every(Wo=>(0,Fm.hasBlockSupport)(Wo.name,"visibility",!0))||nt.some(Wo=>Z(Wo)!=="default"))return;N(nt)}else if(_e("core/block-editor/rename",Be)){let{blocksToUpdate:nt}=He(),jt=Z(nt[0])==="contentOnly";nt.length===1&&Ae&&!jt&&(Be.preventDefault(),R(!0))}}let Ke=(0,Hr.useCallback)(()=>{_(!0),X(e,!0)},[e,_,X]),ct=(0,Hr.useCallback)(()=>{_(!1),X(e,!1)},[e,_,X]),pt=(0,Hr.useCallback)(Be=>{let zt=Be?.detail===0;a(Be,e,zt?-1:null),Be.preventDefault()},[e,a]),ut=(0,Hr.useCallback)((Be,zt)=>{zt&&a(void 0,Be,null,null),jk(Be,ho?.current)},[a,ho]),hr=(0,Hr.useCallback)(Be=>{Be.preventDefault(),Be.stopPropagation(),m===!0?at(e):m===!1&&vt(e)},[e,vt,at,m]),Oo=(0,Hr.useCallback)(Be=>{let{ownerDocument:zt}=k?.current||{};!zt||!zt.hasFocus()||be&&ve&&(k.current?.click(),w(new window.DOMRect(Be.clientX,Be.clientY,0,0)),Be.preventDefault())},[ve,k,be]),tr=(0,Hr.useCallback)(Be=>{ve&&Be.button===2&&Be.preventDefault()},[ve]),go=(0,Hr.useMemo)(()=>{let{ownerDocument:Be}=y?.current||{};if(!(!x||!Be))return{ownerDocument:Be,getBoundingClientRect(){return x}}},[x]),Uo=(0,Hr.useCallback)(()=>{w(void 0)},[w]);if(Aye({isSelected:i,rowItemRef:y,selectedClientIds:g}),!ge)return null;let Mn=Gye(l,f,u),gr=Wye(xe,B),an=Lj(ge?.attributes?.metadata?.blockVisibility,Re),it=f>0,wt=be&&!ne,Ft=p&&it&&!ne,ko=$("block-editor-list-view-block__mover-cell",{"is-visible":S||i}),Go=$("block-editor-list-view-block__menu-cell",{"is-visible":S||I}),or;Ft?or=2:wt||(or=3);let Sa=$({"is-selected":i,"is-first-selected":I,"is-last-selected":O,"is-branch-selected":s,"is-synced-branch":b,"is-dragging":r,"has-single-cell":!be,"is-synced":xe?.isSynced,"is-draggable":q&&!ne,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":o,"is-nesting":n,"is-disabled":ne}),ka=g.includes(e)?g:[e],Ol=Be=>ne?-1:i&&g.length===1?0:Be;return(0,Bn.jsxs)(Pye,{className:Sa,isDragged:r,onKeyDown:$e,onMouseEnter:ne?void 0:Ke,onMouseLeave:ne?void 0:ct,onFocus:ne?void 0:Ke,onBlur:ne?void 0:ct,level:u,position:l,rowCount:d,path:h,id:`list-view-${Vt}-block-${e}`,"data-block":e,"data-expanded":ie?m:void 0,ref:y,children:[(0,Bn.jsx)(Fb.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:or,ref:v,"aria-selected":!!i,children:({ref:Be,tabIndex:zt,onFocus:nt})=>(0,Bn.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,Bn.jsx)(Hye,{block:ge,onClick:pt,onContextMenu:ne?void 0:Oo,onMouseDown:tr,onToggleExpanded:ne?void 0:hr,isSelected:i,position:l,siblingBlockCount:f,level:u,ref:Be,tabIndex:Ol(zt),onFocus:nt,isExpanded:ie?m:void 0,selectedClientIds:g,ariaDescribedBy:ot,visibilityLabel:an,isDisabled:ne}),(0,Bn.jsx)(bN,{id:ot,children:[Mn,gr,an].filter(Boolean).join(" ")})]})}),Ft&&(0,Bn.jsx)(Bn.Fragment,{children:(0,Bn.jsxs)(Fb.__experimentalTreeGridCell,{className:ko,withoutGridItem:!0,children:[(0,Bn.jsx)(Fb.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:zt,onFocus:nt})=>(0,Bn.jsx)(uL,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:zt,onFocus:nt})}),(0,Bn.jsx)(Fb.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:zt,onFocus:nt})=>(0,Bn.jsx)(dL,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:zt,onFocus:nt})})]})}),wt&&rt&&(0,Bn.jsx)(Fb.__experimentalTreeGridCell,{className:Go,"aria-selected":!!i,ref:k,children:({ref:Be,tabIndex:zt,onFocus:nt})=>(0,Bn.jsx)(rt,{clientIds:ka,block:ge,icon:Fs,label:(0,uG.__)("Options"),popoverProps:{anchor:go},toggleProps:{ref:Be,className:"block-editor-list-view-block__menu",tabIndex:zt,onClick:Uo,onFocus:nt,size:"small"},disableOpenOnArrowDown:!0,expand:vt,expandedState:lt,setInsertedBlock:no,__experimentalSelectBlock:ut,isContentOnlyListView:!!je&&Z(je)==="contentOnly"})}),T&&(0,Bn.jsx)(Nb,{clientId:e,onClose:()=>R(!1)})]})}var Jye=(0,Hr.memo)(Qye);var na=c(E(),1);function eve(e,t,o,r){return o?.includes(e.clientId)?0:t[e.clientId]??r?1+e.innerBlocks.reduce(XGe(t,o,r),0):1}var XGe=(e,t,o)=>(r,n)=>t?.includes(n.clientId)?r:(e[n.clientId]??o)&&n.innerBlocks.length>0?r+eve(n,e,t,o):r+1,QGe=()=>{};function tve(e){let{blocks:t,selectBlock:o=QGe,showBlockMovers:r,selectedClientIds:n,level:i=1,path:s="",isBranchSelected:a=!1,listPosition:l=0,fixedListWindow:u,isExpanded:d,parentId:f,shouldShowInnerBlocks:p=!0,isSyncedBranch:h=!1,showAppender:m=!0}=e,g=Mo(f),b=h||!!g?.isSynced,v=(0,CN.useSelect)(P=>f?P(C).canEditBlock(f):!0,[f]),{blockDropPosition:y,blockDropTargetIndex:k,firstDraggedBlockIndex:S,blockIndexes:_,expandedState:x,draggedClientIds:w}=Dm(),T=(0,wN.useRef)();if(!v)return null;let R=m&&i===1,B=t.filter(Boolean),I=B.length,O=R?I+1:I;return T.current=l,(0,na.jsxs)(na.Fragment,{children:[B.map((P,A)=>{let{clientId:M,innerBlocks:z}=P;A>0&&(T.current+=eve(B[A-1],x,w,d));let V=!!w?.includes(M),{displacement:L,isAfterDraggedBlocks:D,isNesting:N}=Yye({blockIndexes:_,blockDropTargetIndex:k,blockDropPosition:y,clientId:M,firstDraggedBlockIndex:S,isDragged:V}),{itemInView:j}=u,X=j(T.current),J=A+1,te=s.length>0?`${s}_${J}`:`${J}`,ee=!!z?.length,W=ee&&p?x[M]??d:void 0,K=$ye(M,n),Y=a||K&&ee,Z=V||X||K&&M===n[0]||A===0||A===I-1;return(0,na.jsxs)(CN.AsyncModeProvider,{value:!K,children:[Z&&(0,na.jsx)(Jye,{block:P,selectBlock:o,isSelected:K,isBranchSelected:Y,isDragged:V,level:i,position:J,rowCount:O,siblingBlockCount:I,showBlockMovers:r,path:te,isExpanded:V?!1:W,listPosition:T.current,selectedClientIds:n,isSyncedBranch:b,displacement:L,isAfterDraggedBlocks:D,isNesting:N}),!Z&&(0,na.jsx)("tr",{children:(0,na.jsx)("td",{className:"block-editor-list-view-placeholder"})}),ee&&W&&!V&&(0,na.jsx)(tve,{parentId:M,blocks:z,selectBlock:o,showBlockMovers:r,level:i+1,path:te,listPosition:T.current+1,fixedListWindow:u,isBranchSelected:Y,selectedClientIds:n,isExpanded:d,isSyncedBranch:b})]},M)}),R&&(0,na.jsx)(xN.__experimentalTreeGridRow,{level:i,setSize:O,positionInSet:O,isExpanded:!0,children:(0,na.jsx)(xN.__experimentalTreeGridCell,{children:P=>(0,na.jsx)(lG,{clientId:f,nestingLevel:i,blockCount:I,...P})})})]})}var ove=(0,wN.memo)(tve);var Uk=c(U(),1),EN=c(Rt(),1),rf=c(F(),1),dG=c(G(),1);var al=c(E(),1);function rve({draggedBlockClientId:e,listViewRef:t,blockDropTarget:o}){let r=Mo(e),n=zn({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:a}=o||{},[l,u]=(0,rf.useMemo)(()=>{if(!t.current)return[];let y=i?t.current.querySelector(`[data-block="${i}"]`):void 0,k=s?t.current.querySelector(`[data-block="${s}"]`):void 0;return[y,k]},[t,i,s]),d=u||l,f=(0,dG.isRTL)(),p=(0,rf.useCallback)((y,k)=>{if(!d)return 0;let S=d.offsetWidth,_=(0,EN.getScrollContainer)(d,"horizontal"),x=d.ownerDocument,w=_===x.body||_===x.documentElement;if(_&&!w){let T=_.getBoundingClientRect(),R=(0,dG.isRTL)()?T.right-y.right:y.left-T.left,B=_.clientWidth;if(B<S+R&&(S=B-R),!f&&y.left+k<T.left)return S-=T.left-y.left,S;if(f&&y.right-k>T.right)return S-=y.right-T.right,S}return S-k},[f,d]),h=(0,rf.useMemo)(()=>{if(!d)return{};let y=d.getBoundingClientRect();return{width:p(y,0)}},[p,d]),m=(0,rf.useMemo)(()=>{if(!d)return{};let y=(0,EN.getScrollContainer)(d),k=d.ownerDocument,S=y===k.body||y===k.documentElement;if(y&&!S){let _=y.getBoundingClientRect(),x=d.getBoundingClientRect(),w=f?_.right-x.right:x.left-_.left;if(!f&&_.left>x.left)return{transform:`translateX( ${w}px )`};if(f&&_.right<x.right)return{transform:`translateX( ${w*-1}px )`}}return{}},[f,d]),g=(0,rf.useMemo)(()=>{if(!l)return 1;let y=parseInt(l.getAttribute("aria-level"),10);return y?y+1:1},[l]),b=(0,rf.useMemo)(()=>d?d.classList.contains("is-branch-selected"):!1,[d]),v=(0,rf.useMemo)(()=>{if(!(!d||!(a==="top"||a==="bottom"||a==="inside")))return{contextElement:d,getBoundingClientRect(){let k=d.getBoundingClientRect(),S=k.left,_=0,x=(0,EN.getScrollContainer)(d,"horizontal"),w=d.ownerDocument,T=x===w.body||x===w.documentElement;if(x&&!T){let I=x.getBoundingClientRect(),O=f?x.offsetWidth-x.clientWidth:0;S<I.left+O&&(S=I.left+O)}a==="top"?_=k.top-k.height*2:_=k.top;let R=p(k,0),B=k.height;return new window.DOMRect(S,_,R,B)}}},[d,a,p,f]);return d?(0,al.jsx)(Uk.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,al.jsx)("div",{style:h,className:$("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":b}),children:(0,al.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":g,children:[(0,al.jsxs)("div",{className:$("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:m,children:[(0,al.jsx)(vN,{onClick:()=>{}}),(0,al.jsx)(Tt,{icon:r?.icon,showColors:!0,context:"list-view"}),(0,al.jsx)(Uk.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:(0,al.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,al.jsx)(Uk.__experimentalTruncate,{ellipsizeMode:"auto",children:n})})})]}),(0,al.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}var nve=c(Xr(),1),Gk=c(G(),1),gE=c(Q(),1),ive=c(F(),1),ia=c(so(),1),sve=c(ce(),1);function ave(){let{clearSelectedBlock:e,multiSelect:t,selectBlock:o}=(0,gE.useDispatch)(C),{getBlockName:r,getBlockParents:n,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:a,hasSelectedBlock:l}=(0,gE.useSelect)(C),{getBlockType:u}=(0,gE.useSelect)(sve.store);return{updateBlockSelection:(0,ive.useCallback)(async(f,p,h,m)=>{if(!f?.shiftKey&&f?.keyCode!==ia.ESCAPE){o(p,m);return}f.preventDefault();let g=f.type==="keydown"&&f.keyCode===ia.ESCAPE,b=f.type==="keydown"&&(f.keyCode===ia.UP||f.keyCode===ia.DOWN||f.keyCode===ia.HOME||f.keyCode===ia.END);if(!b&&!l()&&!a()){o(p,null);return}let v=s(),y=[...n(p),p];if((g||b&&!v.some(x=>y.includes(x)))&&await e(),!g){let x=i(),w=p;b&&(!l()&&!a()&&(x=p),h&&(w=h));let T=n(x),R=n(w),{start:B,end:I}=Kye(x,w,T,R);await t(B,I,null)}let k=s();if((f.keyCode===ia.HOME||f.keyCode===ia.END)&&k.length>1)return;let S=v.filter(x=>!k.includes(x)),_;if(S.length===1){let x=u(r(S[0]))?.title;x&&(_=(0,Gk.sprintf)((0,Gk.__)("%s deselected."),x))}else S.length>1&&(_=(0,Gk.sprintf)((0,Gk.__)("%s blocks deselected."),S.length));_&&(0,nve.speak)(_,"assertive")},[e,r,u,n,i,s,a,l,t,o])}}var lve=c(F(),1);function cve(e){return(0,lve.useMemo)(()=>{let o={},r=0,n=i=>{i.forEach(s=>{o[s.clientId]=r,r++,s.innerBlocks.length>0&&n(s.innerBlocks)})};return n(e),o},[e])}var uve=c(Q(),1);function dve({blocks:e,rootClientId:t}){return(0,uve.useSelect)(o=>{let{getDraggedBlockClientIds:r,getSelectedBlockClientIds:n,getListViewClientIdsTree:i}=H(o(C));return{selectedClientIds:n(),draggedClientIds:r(),clientIdsTree:e??i(t)}},[e,t])}var fve=c(F(),1),pve=c(Q(),1);function mve({collapseAll:e,expand:t}){let{expandedBlock:o,getBlockParents:r}=(0,pve.useSelect)(n=>{let{getBlockParents:i,getExpandedBlock:s}=H(n(C));return{expandedBlock:s(),getBlockParents:i}},[]);(0,fve.useEffect)(()=>{if(o){let n=r(o,!1);e(),t(n)}},[e,t,o,r])}var hve=c(Q(),1),zb=c(F(),1),jb=c(fe(),1),gve=c(G(),1);var nf=24;function JGe(e,t,o=1,r=!1){let n=r?t.right-o*nf:t.left+o*nf;return r?e.x>n:e.x<n}function eWe(e,t,o=1,r=!1){let n=r?t.right-o*nf:t.left+o*nf,i=r?n-e.x:e.x-n,s=Math.round(i/nf);return Math.abs(s)}function tWe(e,t){let o=[],r=e;for(;r;)o.push({...r}),r=t.find(n=>n.clientId===r.rootClientId);return o}function bve(e,t){let o=e[t+1];return o&&o.isDraggedBlock?bve(e,t+1):o}function oWe(e,t,o=1,r=!1){let n=r?t.right-o*nf:t.left+o*nf;return(r?e.x<n-nf:e.x>n+nf)&&e.y<t.bottom}var rWe=["top","bottom"];function nWe(e,t,o=!1){let r,n,i,s,a;for(let f=0;f<e.length;f++){let p=e[f];if(p.isDraggedBlock)continue;let h=p.element.getBoundingClientRect(),[m,g]=xb(t,h,rWe),b=F2(t,h);if(i===void 0||m<i||b){i=m;let v=e.indexOf(p),y=e[v-1];if(g==="top"&&y&&y.rootClientId===p.rootClientId&&!y.isDraggedBlock?(n=y,r="bottom",s=y.element.getBoundingClientRect(),a=v-1):(n=p,r=g,s=h,a=v),b)break}}if(!n)return;let l=tWe(n,e),u=r==="bottom";if(u&&n.canInsertDraggedBlocksAsChild&&(n.innerBlockCount>0&&n.isExpanded||oWe(t,s,l.length,o))){let f=n.isExpanded?0:n.innerBlockCount||0;return{rootClientId:n.clientId,clientId:n.clientId,blockIndex:f,dropPosition:"inside"}}if(u&&n.rootClientId&&JGe(t,s,l.length,o)){let f=bve(e,a),p=n.nestingLevel,h=f?f.nestingLevel:1;if(p&&h){let m=eWe(t,s,l.length,o),g=Math.max(Math.min(m,p-h),0);if(l[g]){let b=n.blockIndex;if(l[g].nestingLevel===f?.nestingLevel)b=f?.blockIndex;else for(let v=a;v>=0;v--){let y=e[v];if(y.rootClientId===l[g].rootClientId){b=y.blockIndex+1;break}}return{rootClientId:l[g].rootClientId,clientId:n.clientId,blockIndex:b,dropPosition:r}}}}if(!n.canInsertDraggedBlocksAsSibling)return;let d=u?1:0;return{rootClientId:n.rootClientId,clientId:n.clientId,blockIndex:n.blockIndex+d,dropPosition:r}}var iWe={leading:!1,trailing:!0};function yve({dropZoneElement:e,expandedState:t,setExpandedState:o}){let{getBlockRootClientId:r,getBlockIndex:n,getBlockCount:i,getDraggedBlockClientIds:s,canInsertBlocks:a}=(0,hve.useSelect)(C),[l,u]=(0,zb.useState)(),{rootClientId:d,blockIndex:f}=l||{},p=V2(d,f),h=(0,gve.isRTL)(),m=(0,jb.usePrevious)(d),g=(0,zb.useCallback)((S,_)=>{let{rootClientId:x}=_||{};x&&_?.dropPosition==="inside"&&!S[x]&&o({type:"expand",clientIds:[x]})},[o]),b=(0,jb.useThrottle)(g,500,iWe);(0,zb.useEffect)(()=>{if(l?.dropPosition!=="inside"||m!==l?.rootClientId){b.cancel();return}b(t,l)},[t,m,l,b]);let v=s(),y=(0,jb.useThrottle)((0,zb.useCallback)((S,_)=>{let x={x:S.clientX,y:S.clientY},w=!!v?.length,R=Array.from(_.querySelectorAll("[data-block]")).map(I=>{let O=I.dataset.block,P=I.dataset.expanded==="true",A=I.classList.contains("is-dragging"),M=parseInt(I.getAttribute("aria-level"),10),z=r(O);return{clientId:O,isExpanded:P,rootClientId:z,blockIndex:n(O),element:I,nestingLevel:M||void 0,isDraggedBlock:w?A:!1,innerBlockCount:i(O),canInsertDraggedBlocksAsSibling:w?a(v,z):!0,canInsertDraggedBlocksAsChild:w?a(v,O):!0}}),B=nWe(R,x,h);B&&u(B)},[a,v,i,n,r,h]),50);return{ref:(0,jb.__experimentalUseDropZone)({dropZoneElement:e,onDrop(S){y.cancel(),l&&p(S),u(void 0)},onDragLeave(){y.cancel(),u(null)},onDragOver(S){y(S,S.currentTarget)},onDragEnd(){y.cancel(),u(void 0)}}),target:l}}var TN=c(F(),1),vve=c(Q(),1);function Sve({firstSelectedBlockClientId:e,setExpandedState:t}){let[o,r]=(0,TN.useState)(null),{selectedBlockParentClientIds:n}=(0,vve.useSelect)(i=>{let{getBlockParents:s}=i(C);return{selectedBlockParentClientIds:s(e,!1)}},[e]);return(0,TN.useEffect)(()=>{o!==e&&n?.length&&t({type:"expand",clientIds:n})},[e,n,o,t]),{setSelectedTreeId:r}}var Wk=c(Q(),1),kve=c(fe(),1);function _ve({selectBlock:e}){let t=(0,Wk.useRegistry)(),{getBlockOrder:o,getBlockRootClientId:r,getBlocksByClientId:n,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:a,canInsertBlockType:l,canRemoveBlocks:u}=(0,Wk.useSelect)(C),{flashBlock:d,removeBlocks:f,replaceBlocks:p,insertBlocks:h}=(0,Wk.useDispatch)(C),m=BS();return(0,kve.useRefEffect)(g=>{function b(k,S){S&&e(void 0,k,null,null),jk(k,g)}function v(k){let S=s(),_=S.includes(k),x=_?S[0]:k,w=r(x);return{blocksToUpdate:_?S:[k],firstBlockClientId:x,firstBlockRootClientId:w,originallySelectedBlockClientIds:S}}function y(k){if(k.defaultPrevented||!g.contains(k.target.ownerDocument.activeElement))return;let _=k.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!_)return;let{blocksToUpdate:x,firstBlockClientId:w,firstBlockRootClientId:T,originallySelectedBlockClientIds:R}=v(_);if(x.length!==0){if(k.preventDefault(),k.type==="copy"||k.type==="cut"){x.length===1&&d(x[0]),m(k.type,x);let B=n(x);eI(k,B,t)}if(k.type==="cut"){if(!u(x))return;let B=i(w)??T;f(x,!1);let I=R.length>0&&s().length===0;B||(B=o()[0]),b(B,I)}else if(k.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:B}=a(),I=Bee(k,B);if(x.length===1){let[O]=x;if(I.every(P=>l(P.name,O))){h(I,void 0,O),b(I[0]?.clientId,!1);return}}p(x,I,I.length-1,-1),b(I[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener("copy",y),g.ownerDocument.addEventListener("cut",y),g.ownerDocument.addEventListener("paste",y),()=>{g.ownerDocument.removeEventListener("copy",y),g.ownerDocument.removeEventListener("cut",y),g.ownerDocument.removeEventListener("paste",y)}},[])}var sf=c(E(),1),sWe=(e,t)=>t.type==="clear"?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce((o,r)=>({...o,[r]:t.type==="expand"}),{})}:e,xve=32;function Eve({id:e,blocks:t,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:n=!1,showAppender:i=!1,blockSettingsMenu:s=H9,rootClientId:a,description:l,onSelect:u,additionalBlockContent:d},f){t&&(0,Cve.default)("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});let p=(0,$k.useInstanceId)(Eve),{clientIdsTree:h,draggedClientIds:m,selectedClientIds:g}=dve({blocks:t,rootClientId:a}),b=cve(h),{getBlock:v,getSelectedBlockClientIds:y}=(0,bE.useSelect)(C),{visibleBlockCount:k}=(0,bE.useSelect)(oe=>{let{getGlobalBlockCount:ie,getClientIdsOfDescendants:q}=oe(C),re=m?.length>0?q(m).length+1:0;return{visibleBlockCount:ie()-re}},[m]),{updateBlockSelection:S}=ave(),[_,x]=(0,Ur.useReducer)(sWe,{}),[w,T]=(0,Ur.useState)(null),{setSelectedTreeId:R}=Sve({firstSelectedBlockClientId:g[0],setExpandedState:x}),B=(0,Ur.useCallback)((oe,ie,q)=>{S(oe,ie,null,q),R(ie),u&&u(v(ie))},[R,S,u,v]),{ref:I,target:O}=yve({dropZoneElement:o,expandedState:_,setExpandedState:x}),P=(0,Ur.useRef)(),A=_ve({selectBlock:B}),M=(0,Ur.useCallback)(oe=>{let[ie]=y();ie&&oe&&jk(ie,oe)},[y]),z=(0,$k.useMergeRefs)([A,M,P,I,f]),V=(0,Ur.useCallback)(oe=>{if(!oe)return;let ie=Array.isArray(oe)?oe:[oe];x({type:"expand",clientIds:ie})},[x]),L=(0,Ur.useCallback)(oe=>{oe&&x({type:"collapse",clientIds:[oe]})},[x]),D=(0,Ur.useCallback)(()=>{x({type:"clear"})},[x]),N=(0,Ur.useCallback)(oe=>{V(oe?.dataset?.block)},[V]),j=(0,Ur.useCallback)(oe=>{L(oe?.dataset?.block)},[L]),X=(0,Ur.useCallback)((oe,ie,q)=>{oe.shiftKey&&S(oe,ie?.dataset?.block,q?.dataset?.block)},[S]);mve({collapseAll:D,expand:V});let J=m?.[0],{blockDropTargetIndex:te,blockDropPosition:ee,firstDraggedBlockIndex:W}=(0,Ur.useMemo)(()=>{let oe,ie;if(O?.clientId){let q=b[O.clientId];oe=q===void 0||O?.dropPosition==="top"?q:q+1}else O===null&&(oe=null);if(J){let q=b[J];ie=q===void 0||O?.dropPosition==="top"?q:q+1}return{blockDropTargetIndex:oe,blockDropPosition:O?.dropPosition,firstDraggedBlockIndex:ie}},[O,b,J]),K=(0,Ur.useMemo)(()=>({blockDropPosition:ee,blockDropTargetIndex:te,blockIndexes:b,draggedClientIds:m,expandedState:_,expand:V,firstDraggedBlockIndex:W,collapse:L,collapseAll:D,BlockSettingsMenu:s,listViewInstanceId:p,AdditionalBlockContent:d,insertedBlock:w,setInsertedBlock:T,treeGridElementRef:P,rootClientId:a}),[ee,te,b,m,_,V,W,L,D,s,p,d,w,T,a]),[Y]=(0,$k.__experimentalUseFixedWindowList)(P,xve,k,{expandedState:_,useWindowing:!0,windowOverscan:40});if(!h.length&&!i)return null;let Z=l&&`block-editor-list-view-description-${p}`;return(0,sf.jsxs)(bE.AsyncModeProvider,{value:!0,children:[(0,sf.jsx)(rve,{draggedBlockClientId:J,listViewRef:P,blockDropTarget:O}),l&&(0,sf.jsx)(bt,{id:Z,children:l}),(0,sf.jsx)(wve.__experimentalTreeGrid,{id:e,className:$("block-editor-list-view-tree",{"is-dragging":m?.length>0&&te!==void 0}),"aria-label":(0,fG.__)("Block navigation structure"),ref:z,onCollapseRow:j,onExpandRow:N,onFocusRow:X,applicationAriaLabel:(0,fG.__)("Block navigation structure"),"aria-describedby":Z,style:{"--wp-admin--list-view-dragged-items-height":m?.length?`${xve*(m.length-1)}px`:null},children:(0,sf.jsx)(hN.Provider,{value:K,children:(0,sf.jsx)(ove,{blocks:h,parentId:a,selectBlock:B,showBlockMovers:r,fixedListWindow:Y,selectedClientIds:g,isExpanded:n,showAppender:i})})})]})}var yE=(0,Ur.forwardRef)(Eve),RN=(0,Ur.forwardRef)((e,t)=>(0,sf.jsx)(yE,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));var zm=c(E(),1);function aWe({isEnabled:e,onToggle:t,isOpen:o,innerRef:r,...n}){return(0,zm.jsx)(BN.Button,{__next40pxDefaultSize:!0,...n,ref:r,icon:Yx,"aria-expanded":o,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,pG.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}function lWe({isDisabled:e,...t},o){(0,Tve.default)("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});let n=(0,Rve.useSelect)(i=>!!i(C).getBlockCount(),[])&&!e;return(0,zm.jsx)(BN.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:i,onToggle:s})=>(0,zm.jsx)(aWe,{...t,innerRef:o,isOpen:i,onToggle:s,isEnabled:n}),renderContent:()=>(0,zm.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,zm.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,pG.__)("List view")}),(0,zm.jsx)(RN,{})]})})}var Pve=(0,Bve.forwardRef)(lWe);var vE=c(F(),1),Ove=c(Q(),1),Ave=c(fe(),1),jm=c(U(),1),mG=c(G(),1);var af=c(E(),1),Ive=()=>{};function cWe({clientId:e,onSwitch:t=Ive,onHoverClassName:o=Ive}){let r=(0,Ove.useSelect)(_=>_(C).canEditBlock(e),[e]),{onSelect:n,stylesToRender:i,activeStyle:s,genericPreviewBlock:a,className:l}=Tk({clientId:e,onSwitch:t}),[u,d]=(0,vE.useState)(null),[f,p]=(0,vE.useState)(null),h=_r(),m=(0,vE.useMemo)(()=>{if(!u||!a)return null;let _=Om(l,s,u);return[{...a,attributes:{...a.attributes||{},className:_}}]},[u,a,l,s]);if(!r||!i||i.length===0)return null;let g=(0,Ave.debounce)(d,250),b=_=>{n(_),o(null),d(null),g.cancel()},v=_=>{if(u===_){g.cancel();return}g(_),o(_?.name??null)},y=$L(i),k=()=>s?.name!==y?.name,S=()=>{b(y)};return(0,af.jsx)(jm.__experimentalToolsPanel,{label:(0,mG.__)("Styles"),resetAll:S,panelId:e,hasInnerWrapper:!0,dropdownMenuProps:h,children:(0,af.jsx)(jm.__experimentalToolsPanelItem,{hasValue:k,label:(0,mG.__)("Variation"),onDeselect:S,isShownByDefault:!0,panelId:e,children:(0,af.jsxs)("div",{ref:p,className:"block-editor-block-styles",children:[(0,af.jsx)("div",{className:"block-editor-block-styles__variants",children:i.map(_=>{let x=_.label||_.name;return(0,af.jsx)(jm.Button,{__next40pxDefaultSize:!0,className:$("block-editor-block-styles__item",{"is-active":s.name===_.name}),variant:"secondary",label:x,onMouseEnter:()=>v(_),onFocus:()=>v(_),onMouseLeave:()=>v(null),onBlur:()=>v(null),onClick:()=>b(_),"aria-current":s.name===_.name,children:(0,af.jsx)(jm.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:x})},_.name)})}),m&&(0,af.jsx)(Nm,{blocks:m,placement:"left-start",offset:34,anchor:f})]})})})}var Kk=cWe;var Vve=c(U(),1),Yk=c(G(),1);var Nve=c(U(),1),Mve=c(E(),1),Lve={0:P4,1:G3,2:$3,3:Y3,4:Z3,5:Q3,6:e4};function hG({level:e}){return Lve[e]?(0,Mve.jsx)(Nve.Icon,{icon:Lve[e]}):null}var PN=c(E(),1),Dve=[1,2,3,4,5,6],uWe={className:"block-library-heading-level-dropdown"};function Fve({options:e=Dve,value:t,onChange:o}){let r=e.filter(n=>n===0||Dve.includes(n)).sort((n,i)=>n-i);return(0,PN.jsx)(Vve.ToolbarDropdownMenu,{popoverProps:uWe,icon:(0,PN.jsx)(hG,{level:t}),label:(0,Yk.__)("Change level"),controls:r.map(n=>{let i=n===t;return{icon:(0,PN.jsx)(hG,{level:n}),title:n===0?(0,Yk.__)("Paragraph"):(0,Yk.sprintf)((0,Yk.__)("Heading %d"),n),isActive:i,onClick(){o(n)},role:"menuitemradio"}})})}var SE=c(G(),1),kE=c(U(),1);var lf=c(E(),1);function dWe({icon:e=y4,label:t=(0,SE.__)("Choose variation"),instructions:o=(0,SE.__)("Select a variation to start with:"),variations:r,onSelect:n,allowSkip:i}){let s=$("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return(0,lf.jsxs)(kE.Placeholder,{icon:e,label:t,instructions:o,className:s,children:[(0,lf.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,SE.__)("Block variations"),children:r.map(a=>(0,lf.jsxs)("li",{children:[(0,lf.jsx)(kE.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:a.icon&&a.icon.src?a.icon.src:a.icon,iconSize:48,onClick:()=>n(a),className:"block-editor-block-variation-picker__variation",label:a.description||a.title}),(0,lf.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:a.title})]},a.name))}),i&&(0,lf.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,lf.jsx)(kE.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>n(),children:(0,SE.__)("Skip")})})]})}var zve=dWe;var Gve=c(Q(),1),Wve=c(ce(),1),bG=c(U(),1);var gG=c(F(),1),yG=c(fe(),1),$ve=c(G(),1);var cf=c(G(),1),qk=c(U(),1);var Hm={carousel:"carousel",grid:"grid"};var sa=c(E(),1),fWe=({onBlockPatternSelect:e})=>(0,sa.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,sa.jsx)(qk.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,cf.__)("Choose")})}),pWe=({handlePrevious:e,handleNext:t,activeSlide:o,totalSlides:r})=>(0,sa.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,sa.jsx)(qk.Button,{size:"compact",icon:(0,cf.isRTL)()?un:Ei,label:(0,cf.__)("Previous pattern"),onClick:e,disabled:o===0,accessibleWhenDisabled:!0}),(0,sa.jsx)(qk.Button,{size:"compact",icon:(0,cf.isRTL)()?Ei:un,label:(0,cf.__)("Next pattern"),onClick:t,disabled:o===r-1,accessibleWhenDisabled:!0})]}),mWe=({viewMode:e,setViewMode:t,handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i,onBlockPatternSelect:s})=>{let a=e===Hm.carousel,l=(0,sa.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,sa.jsx)(qk.Button,{size:"compact",icon:uw,label:(0,cf.__)("Carousel view"),onClick:()=>t(Hm.carousel),isPressed:a}),(0,sa.jsx)(qk.Button,{size:"compact",icon:zx,label:(0,cf.__)("Grid view"),onClick:()=>t(Hm.grid),isPressed:e===Hm.grid})]});return(0,sa.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[a&&(0,sa.jsx)(pWe,{handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i}),l,a&&(0,sa.jsx)(fWe,{onBlockPatternSelect:s})]})},jve=mWe;var Hve=c(Q(),1);function hWe(e,t,o){return(0,Hve.useSelect)(r=>{let{getBlockRootClientId:n,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=r(C),a=n(e);return o?s(a).filter(o):i(t,a)},[e,t,o])}var Uve=hWe;var qo=c(E(),1),gWe=({viewMode:e,activeSlide:t,patterns:o,onBlockPatternSelect:r,showTitles:n})=>{let i="block-editor-block-pattern-setup__container";if(e===Hm.carousel){let s=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,qo.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,qo.jsx)("div",{className:i,children:(0,qo.jsx)("div",{className:"carousel-container",children:o.map((a,l)=>(0,qo.jsx)(Yve,{active:l===t,className:s.get(l)||"",pattern:a},a.name))})})})}return(0,qo.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,qo.jsx)(bG.Composite,{role:"listbox",className:i,"aria-label":(0,$ve.__)("Patterns list"),children:o.map(s=>(0,qo.jsx)(Kve,{pattern:s,onSelect:r,showTitles:n},s.name))})})};function Kve({pattern:e,onSelect:t,showTitles:o}){let r="block-editor-block-pattern-setup-list",{blocks:n,description:i,viewportWidth:s=700}=e,a=(0,yG.useInstanceId)(Kve,`${r}__item-description`);return(0,qo.jsx)("div",{className:`${r}__list-item`,children:(0,qo.jsxs)(bG.Composite.Item,{render:(0,qo.jsx)("div",{"aria-describedby":i?a:void 0,"aria-label":e.title,className:`${r}__item`}),id:`${r}__pattern__${e.name}`,role:"option",onClick:()=>t(n),children:[(0,qo.jsx)(gs,{blocks:n,viewportWidth:s}),o&&(0,qo.jsx)("div",{className:`${r}__item-title`,children:e.title}),!!i&&(0,qo.jsx)(bt,{id:a,children:i})]})})}function Yve({active:e,className:t,pattern:o,minHeight:r}){let{blocks:n,title:i,description:s}=o,a=(0,yG.useInstanceId)(Yve,"block-editor-block-pattern-setup-list__item-description");return(0,qo.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?a:void 0,children:[(0,qo.jsx)(gs,{blocks:n,minHeight:r}),!!s&&(0,qo.jsx)(bt,{id:a,children:s})]})}var bWe=({clientId:e,blockName:t,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:n=Hm.carousel,showTitles:i=!1})=>{let[s,a]=(0,gG.useState)(n),[l,u]=(0,gG.useState)(0),{replaceBlock:d}=(0,Gve.useDispatch)(C),f=Uve(e,t,o);if(!f?.length)return null;let h=r||(m=>{let g=m.map(b=>(0,Wve.cloneBlock)(b));d(e,g)});return(0,qo.jsx)(qo.Fragment,{children:(0,qo.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,qo.jsx)(gWe,{viewMode:s,activeSlide:l,patterns:f,onBlockPatternSelect:h,showTitles:i}),(0,qo.jsx)(jve,{viewMode:s,setViewMode:a,activeSlide:l,totalSlides:f.length,handleNext:()=>{u(m=>Math.min(m+1,f.length-1))},handlePrevious:()=>{u(m=>Math.max(m-1,0))},onBlockPatternSelect:()=>{h(f[l].blocks)}})]})})},qve=bWe;var vG=c(ce(),1),uf=c(G(),1),df=c(U(),1);var IN=c(Q(),1),Zve=c(F(),1);var Gr=c(E(),1),{Menu:Hb}=H(df.privateApis);function yWe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,Gr.jsxs)("fieldset",{className:e,children:[(0,Gr.jsx)(bt,{render:(0,Gr.jsx)("legend",{}),children:(0,uf.__)("Transform to variation")}),r.map(n=>(0,Gr.jsx)(df.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,Gr.jsx)(Tt,{icon:n.icon,showColors:!0}),isPressed:o===n.name,label:o===n.name?n.title:(0,uf.sprintf)((0,uf.__)("Transform to %s"),n.title),onClick:()=>t(n.name),"aria-label":n.title,showTooltip:!0},n.name))]})}function vWe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,Gr.jsx)("div",{className:e,children:(0,Gr.jsxs)(Hb,{children:[(0,Gr.jsx)(Hb.TriggerButton,{render:(0,Gr.jsx)(df.Button,{className:"block-editor-block-variation-transforms__button",__next40pxDefaultSize:!0,variant:"secondary",children:(0,uf.__)("Transform to variation")})}),(0,Gr.jsx)(Hb.Popover,{position:"bottom",children:(0,Gr.jsx)(Hb.Group,{children:r.map(n=>(0,Gr.jsxs)(Hb.RadioItem,{value:n.name,checked:o===n.name,onChange:()=>t(n.name),children:[(0,Gr.jsx)(Hb.ItemLabel,{children:n.title}),n.description&&(0,Gr.jsx)(Hb.ItemHelpText,{children:n.description})]},n.name))})})]})})}function SWe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,Gr.jsx)("div",{className:e,children:(0,Gr.jsx)(df.__experimentalToggleGroupControl,{label:(0,uf.__)("Transform to variation"),value:o,hideLabelFromVision:!0,onChange:t,children:r.map(n=>(0,Gr.jsx)(df.__experimentalToggleGroupControlOptionIcon,{icon:(0,Gr.jsx)(Tt,{icon:n.icon,showColors:!0}),value:n.name,label:o===n.name?n.title:(0,uf.sprintf)((0,uf.__)("Transform to %s"),n.title)},n.name))})})}function kWe({blockClientId:e}){let{updateBlockAttributes:t}=(0,IN.useDispatch)(C),{activeBlockVariation:o,variations:r,canEdit:n,isContentOnly:i,isSection:s}=(0,IN.useSelect)(m=>{let{getActiveBlockVariation:g,getBlockVariations:b}=m(vG.store),{getBlockName:v,getBlockAttributes:y,getBlockEditingMode:k,isSectionBlock:S}=H(m(C)),{canEditBlock:_}=m(C),x=e&&v(e),{hasContentRoleAttribute:w}=H(m(vG.store)),T=w(x);return{activeBlockVariation:g(x,y(e),"transform"),variations:x&&b(x,"transform"),canEdit:_(e),isContentOnly:k(e)==="contentOnly"&&!T,isSection:S(e)}},[e]),a=o?.name,l=(0,Zve.useMemo)(()=>{let m=new Set;return r?(r.forEach(g=>{g.icon&&m.add(g.icon?.src||g.icon)}),m.size===r.length):!1},[r]),u=m=>{t(e,{...r.find(({name:g})=>g===m).attributes})};if(!r?.length||!n||i||s)return null;let d="block-editor-block-variation-transforms",p=r.length>6?yWe:SWe;return(0,Gr.jsx)(l?p:vWe,{className:d,onSelectVariation:u,selectedValue:a,variations:r})}var ON=kWe;var Ub=c(G(),1),AN=c(U(),1);var Xve=c(E(),1),SG={top:{icon:Kx,title:(0,Ub._x)("Align top","Block vertical alignment setting")},center:{icon:Gx,title:(0,Ub._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Ux,title:(0,Ub._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:$x,title:(0,Ub._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Wx,title:(0,Ub._x)("Space between","Block vertical alignment setting")}},_We=["top","center","bottom"],xWe="top";function wWe({value:e,onChange:t,controls:o=_We,isCollapsed:r=!0,isToolbar:n}){function i(d){return()=>t(e===d?void 0:d)}let s=SG[e],a=SG[xWe],l=n?AN.ToolbarGroup:AN.ToolbarDropdownMenu,u=n?{isCollapsed:r}:{};return(0,Xve.jsx)(l,{icon:s?s.icon:a.icon,label:(0,Ub._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map(d=>({...SG[d],isActive:e===d,role:r?"menuitemradio":void 0,onClick:i(d)})),...u})}var kG=wWe;var _G=c(E(),1),sP=e=>(0,_G.jsx)(kG,{...e,isToolbar:!1}),Qve=e=>(0,_G.jsx)(kG,{...e,isToolbar:!0});var xs=c(U(),1),_E=c(F(),1),DN=c(G(),1);var Jve=c(U(),1);var xG=c(G(),1),eSe=c(E(),1);function tSe({isLinked:e,...t}){let o=e?(0,xG.__)("Unlink radii"):(0,xG.__)("Link radii");return(0,eSe.jsx)(Jve.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?is:ns,iconSize:24,label:o})}var oSe=c(U(),1);function CWe(e){return[...e].sort((o,r)=>e.filter(n=>n===r).length-e.filter(n=>n===o).length).shift()}function rSe(e={}){if(typeof e=="string")return e;let t=Object.values(e).map(a=>{let l=(0,oSe.__experimentalParseQuantityAndUnitFromRawValue)(a);return typeof a=="string"&&l[0]===void 0?[a,""]:l}),o=t.map(a=>a[0]??""),r=t.map(a=>a[1]),n=o.every(a=>a===o[0])?o[0]:"",i=CWe(r);return n===0||n?`${n}${i||""}`:void 0}function nSe(e={}){if(typeof e=="string"||!e||typeof e!="object")return!1;let t=Object.values(e);if(t.length===0)return!1;let o=t[0];return!t.every(n=>n===o)}function iSe(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(o=>!!o||o===0).length:!1}var ll=c(U(),1),dSe=c(fe(),1),Gm=c(G(),1);var Gb=c(F(),1);var wG=24,sSe=8,LN={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rem:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};var Um=(e,t)=>e?.includes?e==="0"||e.includes(`var:preset|${t}|`):!1;function aSe(e,t){if(!e)return;if(e==="0"||e==="default")return e;let o=e.match(new RegExp(`var:preset\\|${t}\\|(.+)`));return o?o[1]:void 0}function lSe(e,t,o){if(e===void 0)return 0;let r=parseFloat(e,10)===0?"0":aSe(e,o),n=t.findIndex(i=>String(i.slug)===r);return n!==-1?n:NaN}function CG(e,t,o){if(!Um(e,o))return e;let r=parseFloat(e,10)===0?"0":aSe(e,o);return t.find(i=>String(i.slug)===r)?.size}function cSe(e,t,o){if(!e||Um(e,o)||e==="0")return e;let r=t.find(n=>String(n.size)===String(e));return r?.slug?`var:preset|${o}|${r.slug}`:e}var NN=c(U(),1);var hc=c(E(),1);function uSe({allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:o,minValue:r,parsedQuantity:n,computedUnit:i,units:s,isMixed:a,step:l,max:u,showTooltip:d,value:f,minimumCustomValue:p,onCustomValueChange:h,onCustomValueSliderChange:m,onUnitChange:g,onMouseOut:b,onMouseOver:v,setMinValue:y}){let k=(0,hc.jsx)(NN.__experimentalUnitControl,{className:"preset-input-control__unit-control",disableUnits:a,hideLabelFromVision:!0,label:t,min:r,onChange:h,onUnitChange:g,onBlur:b,onFocus:v,onMouseOut:b,onMouseOver:v,units:s,value:[n,i].join(""),placeholder:o,onDragStart:()=>{e&&f?.charAt(0)==="-"&&y(0)},onDrag:()=>{e&&f?.charAt(0)==="-"&&y(0)},onDragEnd:()=>{e&&y(p)}}),S=d?(0,hc.jsxs)(xt.Root,{children:[(0,hc.jsx)(xt.Trigger,{render:(0,hc.jsx)("div",{className:"preset-input-control__tooltip-wrapper",children:k})}),(0,hc.jsx)(xt.Popup,{children:t})]}):k;return(0,hc.jsxs)(hc.Fragment,{children:[S,(0,hc.jsx)(NN.RangeControl,{className:"preset-input-control__custom-value-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:u,min:0,onBlur:b,onChange:m,onFocus:v,onMouseOut:b,onMouseOver:v,step:l,value:n,withInputField:!1})]})}var Wm=c(E(),1);function Wb({allowNegativeOnDrag:e=!1,ariaLabel:t,className:o,customValueSettings:r=LN,disableCustomValues:n,icon:i,isMixed:s,value:a,minimumCustomValue:l,onChange:u,onMouseOut:d,onMouseOver:f,onUnitChange:p,placeholder:h,presets:m=[],presetType:g,selectedUnit:b,showTooltip:v,units:y}){let k=(0,Gb.useMemo)(()=>cSe(a,m,g),[a,m,g]),S=o??"preset-input-control",_=m.slice(1,m.length-1).map((Z,oe)=>({value:oe+1,label:void 0})),x=_.length>0,w=m.length<=sSe,T=s?(0,Gm.__)("Mixed"):h??null,[R,B]=(0,Gb.useState)(l),[I,O]=(0,Gb.useState)(!n&&k!==void 0&&!Um(k,g)),P=null,A=(0,dSe.usePrevious)(k);(0,Gb.useEffect)(()=>{k&&A!==k&&!Um(k,g)&&I!==!0&&O(!0)},[k,A,g,I]);let M=!w&&!I&&k!==void 0&&(!Um(k,g)||Um(k,g)&&s),z=m;M?(z=[...m,{name:s?(0,Gm.__)("Mixed"):(0,Gm.sprintf)((0,Gm.__)("Custom (%s)"),k),slug:"custom",size:k}],P=z.length-1):s||(P=I?CG(k,m,g):lSe(k,m,g));let V=z.map((Z,oe)=>({key:oe,name:Z.name})),L=Um(k,g)?CG(k,m,g):k,[D,N]=(0,ll.__experimentalParseQuantityAndUnitFromRawValue)(L),j=N||b||"px",X=y?.find(Z=>Z.value===j),J=X?.step??r[j]?.steps??.1,te=X?.max??r[j]?.max??10,ee=Z=>{if(Z===void 0||Z===""){u(void 0);return}isNaN(parseFloat(Z))||u(Z)},W=Z=>{u([Z,j].join(""))},K=Z=>k===void 0?void 0:m[Z]?.name,Y=(Z,oe)=>{let ie=parseInt(Z,10);if(oe==="selectList"){if(ie===0&&m[0]?.slug==="0")return"0";if(ie===0)return}else if(ie===0)return"0";return`var:preset|${g}|${m[Z]?.slug}`};return(0,Wm.jsxs)(ll.__experimentalHStack,{className:`preset-input-control__wrapper ${S}__wrapper`,children:[i&&(0,Wm.jsx)(ll.Icon,{className:"preset-input-control__icon",icon:i,size:wG}),(!x||I)&&(0,Wm.jsx)(uSe,{allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:T,minValue:R,parsedQuantity:D,computedUnit:j,units:y,isMixed:s,step:J,max:te,showTooltip:v,value:k,minimumCustomValue:l,onCustomValueChange:ee,onCustomValueSliderChange:W,onUnitChange:p,onMouseOut:d,onMouseOver:f,setMinValue:B}),x&&w&&!I&&(0,Wm.jsx)(ll.RangeControl,{"aria-valuenow":P,"aria-valuetext":m[P]?.name,className:"preset-input-control__preset-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:m.length-1,marks:_,min:0,onBlur:d,onChange:Z=>u(Y(Z)),onFocus:f,onMouseDown:Z=>{Z?.nativeEvent?.offsetX<35&&k===void 0&&u("0")},onMouseOut:d,onMouseOver:f,renderTooltipContent:K,step:1,value:P,withInputField:!1}),x&&!w&&!I&&(0,Wm.jsx)(ll.CustomSelectControl,{className:"preset-input-control__custom-select-control",hideLabelFromVision:!0,label:t,onBlur:d,onChange:Z=>{M&&Z.selectedItem.key===V.length-1?O(!0):u(Y(Z.selectedItem.key,"selectList"))},onFocus:f,onMouseOut:d,onMouseOver:f,options:V,value:V.find(Z=>Z.key===P)||""}),x&&!n&&(0,Wm.jsx)(ll.Button,{className:"preset-input-control__custom-toggle",icon:J4,iconSize:wG,isPressed:I,label:I?(0,Gm.__)("Use preset"):(0,Gm.__)("Set custom value"),onClick:()=>{O(!I)},size:"small"})]})}var Zk=c(G(),1);var fSe=8,MN=[],EG={all:(0,Zk.__)("Border radius"),topLeft:(0,Zk.__)("Top left"),topRight:(0,Zk.__)("Top right"),bottomLeft:(0,Zk.__)("Bottom left"),bottomRight:(0,Zk.__)("Bottom right")},TG={all:u3,topLeft:p3,topRight:m3,bottomLeft:d3,bottomRight:f3},RG=0;var ff=c(E(),1);function EWe(e){let t=e?.default??MN,o=e?.custom??MN,r=e?.theme??MN;return(0,_E.useMemo)(()=>{let n=[{name:(0,DN.__)("None"),slug:"0",size:0},...o,...r,...t];return n.length>fSe?[{name:(0,DN.__)("Default"),slug:"default",size:void 0},...n]:n},[o,r,t])}function pSe(e,t){return t==="all"?rSe(e):typeof e=="string"?e:e?.[t]}function mSe(e,t){return t==="all"?e.flat:e[t]}function hSe(e,t,o){return r=>{o(e==="all"?{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r}:{...typeof t!="string"?t||{}:{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t},[e]:r})}}function gSe(e,t,o){return r=>{let n={...t};e==="all"?(n.flat=r,n.topLeft=r,n.topRight=r,n.bottomLeft=r,n.bottomRight=r):n[e]=r,o(n)}}function VN({onChange:e,values:t,presets:o}){let[r,n]=(0,_E.useState)(!iSe(t)||!nSe(t)),i=EWe(o),[s,a]=(0,_E.useState)({flat:typeof t=="string"?(0,xs.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,xs.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,xs.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,xs.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,xs.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[l]=Le("spacing.units"),u=(0,xs.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem"]}),d=()=>n(!r);return(0,ff.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,ff.jsxs)(xs.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,ff.jsx)(xs.BaseControl.VisualLabel,{as:"legend",children:(0,DN.__)("Radius")}),(0,ff.jsx)(tSe,{onClick:d,isLinked:r})]}),r?(0,ff.jsx)(Wb,{ariaLabel:EG.all,className:"components-border-radius-control",icon:TG.all,minimumCustomValue:RG,onChange:hSe("all",t,e),onUnitChange:gSe("all",s,a),presets:i,presetType:"border-radius",selectedUnit:mSe(s,"all"),showTooltip:!0,units:u,value:pSe(t,"all")}):(0,ff.jsx)(xs.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map(f=>(0,ff.jsx)(Wb,{ariaLabel:EG[f],className:"components-border-radius-control",icon:TG[f],minimumCustomValue:RG,onChange:hSe(f,t,e),onUnitChange:gSe(f,s,a),presets:i,presetType:"border-radius",selectedUnit:mSe(s,f),showTooltip:!0,units:u,value:pSe(t,f)},f))})]})}var vSe=c(U(),1);var bSe=c(fe(),1);var ySe=c(E(),1),FN=(0,bSe.createHigherOrderComponent)(e=>function(o){let[r,n,i,s,a]=Le("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),l=a?[...n||[],...r||[],...i||[]]:[...n||[],...i||[]],{colors:u=l,disableCustomColors:d=!s}=o,f=u&&u.length>0||!d;return(0,ySe.jsx)(e,{...o,colors:u,disableCustomColors:d,hasColorsToChoose:f})},"withColorContext");var SSe=FN(vSe.ColorPalette);var BG=c(G(),1),aa=c(U(),1);var Vo=c(E(),1),{Tabs:Xk}=H(aa.privateApis),TWe=["colors","disableCustomColors","gradients","disableCustomGradients"],Eu={color:"color",gradient:"gradient"};function kSe({colors:e,gradients:t,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,className:i,label:s,onColorChange:a,onGradientChange:l,colorValue:u,colorSlug:d,gradientValue:f,clearable:p,showTitle:h=!0,enableAlpha:m,headingLevel:g,noticeProps:b}){let v=a&&(e&&e.length>0||!o),y=l&&(t&&t.length>0||!r);if(!v&&!y)return null;let S=(0,Vo.jsx)(aa.ColorPalette,{value:u,selectedSlug:d,onChange:y?(w,T,R)=>{a(w,R),l()}:(w,T,R)=>a(w,R),colors:e,disableCustomColors:o,__experimentalIsRenderedInSidebar:n,clearable:p,enableAlpha:m,headingLevel:g}),_={[Eu.color]:(0,Vo.jsxs)(Vo.Fragment,{children:[S,b&&(0,Vo.jsx)(aa.Notice,{isDismissible:!1,...b})]}),[Eu.gradient]:(0,Vo.jsx)(aa.GradientPicker,{value:f,onChange:v?w=>{l(w),a()}:l,gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,clearable:p,headingLevel:g})},x=w=>(0,Vo.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:_[w]});return(0,Vo.jsx)(aa.BaseControl,{className:$("block-editor-color-gradient-control",i),children:(0,Vo.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,Vo.jsxs)(aa.__experimentalVStack,{spacing:1,children:[h&&(0,Vo.jsx)("legend",{children:(0,Vo.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,Vo.jsx)(aa.BaseControl.VisualLabel,{children:s})})}),v&&y&&(0,Vo.jsx)("div",{children:(0,Vo.jsxs)(Xk,{defaultTabId:f?Eu.gradient:!!v&&Eu.color,children:[(0,Vo.jsxs)(Xk.TabList,{children:[(0,Vo.jsx)(Xk.Tab,{tabId:Eu.color,children:(0,BG.__)("Color")}),(0,Vo.jsx)(Xk.Tab,{tabId:Eu.gradient,children:(0,BG.__)("Gradient")})]}),(0,Vo.jsx)(Xk.TabPanel,{tabId:Eu.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:_.color}),(0,Vo.jsx)(Xk.TabPanel,{tabId:Eu.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:_.gradient})]})}),!y&&x(Eu.color),!v&&x(Eu.gradient)]})})})}function RWe(e){let[t,o,r,n]=Le("color.palette","color.gradients","color.custom","color.customGradient");return(0,Vo.jsx)(kSe,{colors:t,gradients:o,disableCustomColors:!r,disableCustomGradients:!n,...e})}function BWe(e){return TWe.every(t=>e.hasOwnProperty(t))?(0,Vo.jsx)(kSe,{...e}):(0,Vo.jsx)(RWe,{...e})}var $m=BWe;var _Se=c(E(),1);function xSe({onChange:e,value:t,...o}){return(0,_Se.jsx)($m,{...o,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var gc=c(G(),1),wSe=c(U(),1),CSe=c(Xr(),1),PG=c(E(),1);Kf([Yf,zy]);function IG({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:o,fallbackLinkColor:r,fontSize:n,isLargeText:i,textColor:s,linkColor:a,messageOverride:l,enableAlphaChecker:u=!1}){let d=e||t;if(!d)return null;let f=s||o,p=a||r;if(!f&&!p)return null;let h=[{color:f,description:(0,gc.__)("text color")},{color:p,description:(0,gc.__)("link color")}],m=Ao(d),g=m.alpha()<1,b=m.brightness(),v={level:"AA",size:i||i!==!1&&n>=24?"large":"small"},y="",k="";for(let S of h){if(!S.color)continue;let _=Ao(S.color),x=_.isReadable(m,v),w=_.alpha()<1;if(!x){if(g||w)continue;if(l){y=l,k=l;break}y=b<_.brightness()?(0,gc.sprintf)((0,gc.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),S.description):(0,gc.sprintf)((0,gc.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),S.description),k=(0,gc.__)("This color combination may be hard for people to read.");break}w&&u&&(y=(0,gc.__)("Transparent text may be hard for people to read."),k=(0,gc.__)("Transparent text may be hard for people to read."))}return y?{message:y,speakMessage:k}:null}function PWe(e){let t=IG(e);return t?((0,CSe.speak)(t.speakMessage),(0,PG.jsx)("div",{className:"block-editor-contrast-checker",children:(0,PG.jsx)(wSe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:t.message})})):null}var ESe=PWe;var qn=c(G(),1),xE=c(Tu(),1),zN=c(F(),1),yc=c(U(),1);var bc=c(E(),1),Km=new Date;Km.setDate(20);Km.setMonth(Km.getMonth()-3);Km.getMonth()===4&&Km.setMonth(3);function RSe({format:e,defaultFormat:t,onChange:o}){return(0,bc.jsxs)(yc.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,bc.jsx)(bt,{render:(0,bc.jsx)("legend",{}),children:(0,qn.__)("Date format")}),(0,bc.jsx)(yc.ToggleControl,{label:(0,qn.__)("Default format"),help:`${(0,qn.__)("Example:")} ${(0,xE.dateI18n)(t,Km)}`,checked:!e,onChange:r=>o(r?null:t)}),e&&(0,bc.jsx)(IWe,{format:e,onChange:o})]})}function IWe({format:e,onChange:t}){let r=[...[...new Set(["Y-m-d",(0,qn._x)("n/j/Y","short date format"),(0,qn._x)("n/j/Y g:i A","short date format with time"),(0,qn._x)("M j, Y","medium date format"),(0,qn._x)("M j, Y g:i A","medium date format with time"),(0,qn._x)("F j, Y","long date format"),(0,qn._x)("M j","short date format without the year")])].map((a,l)=>({key:`suggested-${l}`,name:(0,xE.dateI18n)(a,Km),format:a})),{key:"human-diff",name:(0,xE.humanTimeDiff)(Km),format:"human-diff"}],n={key:"custom",name:(0,qn.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,qn.__)("Enter your own date format")},[i,s]=(0,zN.useState)(()=>!!e&&!r.some(a=>a.format===e));return(0,bc.jsxs)(yc.__experimentalVStack,{children:[(0,bc.jsx)(yc.CustomSelectControl,{label:(0,qn.__)("Choose a format"),options:[...r,n],value:i?n:r.find(a=>a.format===e)??n,onChange:({selectedItem:a})=>{a===n?s(!0):(s(!1),t(a.format))}}),i&&(0,bc.jsx)(yc.TextControl,{label:(0,qn.__)("Custom format"),hideLabelFromVision:!0,help:(0,zN.createInterpolateElement)((0,qn.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,bc.jsx)(yc.ExternalLink,{href:(0,qn.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:a=>t(a)})]})}var cl=c(U(),1),wE=c(G(),1),BSe=c(so(),1);var PSe=c(fe(),1),Ru=c(E(),1);function ISe({id:e,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,onChange:s}){let a;i==="unset"?a=(0,Ru.jsx)(cl.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?a=(0,Ru.jsx)(cl.DuotoneSwatch,{values:i}):a=(0,Ru.jsx)(gt,{icon:E3});let l=(0,wE.__)("Apply duotone filter"),d=`${(0,PSe.useInstanceId)(ISe,"duotone-control",e)}__description`;return(0,Ru.jsx)(cl.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,wE.__)("Duotone")},renderToggle:({isOpen:f,onToggle:p})=>(0,Ru.jsx)(cl.ToolbarButton,{showTooltip:!0,onClick:p,"aria-haspopup":"true","aria-expanded":f,onKeyDown:m=>{!f&&m.keyCode===BSe.DOWN&&(m.preventDefault(),p())},label:l,icon:a}),renderContent:()=>(0,Ru.jsxs)(cl.MenuGroup,{label:(0,wE.__)("Duotone"),children:[(0,Ru.jsx)("p",{children:(0,wE.__)("Create a two-tone color effect without losing your original image.")}),(0,Ru.jsx)(cl.DuotonePicker,{"aria-label":l,"aria-describedby":d,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,onChange:s})]})})}var jN=ISe;var NSe=c(U(),1),MSe=c(F(),1),la=c(G(),1);var Pn=c(G(),1);var HN=c(G(),1);function OSe(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=(0,HN._x)("Regular","font style");break;case"italic":t=(0,HN._x)("Italic","font style");break;case"oblique":t=(0,HN._x)("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}var vc=c(G(),1);function OG(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=(0,vc._x)("Regular","font weight");break;case"bold":case"700":t=(0,vc._x)("Bold","font weight");break;case"100":t=(0,vc._x)("Thin","font weight");break;case"200":t=(0,vc._x)("Extra Light","font weight");break;case"300":t=(0,vc._x)("Light","font weight");break;case"500":t=(0,vc._x)("Medium","font weight");break;case"600":t=(0,vc._x)("Semi Bold","font weight");break;case"800":t=(0,vc._x)("Extra Bold","font weight");break;case"900":t=(0,vc._x)("Black","font weight");break;case"1000":t=(0,vc._x)("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}var ASe=[{name:(0,Pn._x)("Regular","font style"),value:"normal"},{name:(0,Pn._x)("Italic","font style"),value:"italic"}],LSe=[{name:(0,Pn._x)("Thin","font weight"),value:"100"},{name:(0,Pn._x)("Extra Light","font weight"),value:"200"},{name:(0,Pn._x)("Light","font weight"),value:"300"},{name:(0,Pn._x)("Regular","font weight"),value:"400"},{name:(0,Pn._x)("Medium","font weight"),value:"500"},{name:(0,Pn._x)("Semi Bold","font weight"),value:"600"},{name:(0,Pn._x)("Bold","font weight"),value:"700"},{name:(0,Pn._x)("Extra Bold","font weight"),value:"800"},{name:(0,Pn._x)("Black","font weight"),value:"900"},{name:(0,Pn._x)("Extra Black","font weight"),value:"1000"}];function Qk(e){let t=[],o=[],r=[],n=!e||e?.length===0,i=!1;return e?.forEach(s=>{if(typeof s.fontWeight=="string"&&/\s/.test(s.fontWeight.trim())){i=!0;let[u,d]=s.fontWeight.split(" "),f=parseInt(u.slice(0,1)),p=d==="1000"?10:parseInt(d.slice(0,1));for(let h=f;h<=p;h++){let m=`${h.toString()}00`;o.some(g=>g.value===m)||o.push(OG(m))}}let a=OG(typeof s.fontWeight=="number"?s.fontWeight.toString():s.fontWeight),l=OSe(s.fontStyle);l&&Object.keys(l).length&&(t.some(u=>u.value===l.value)||t.push(l)),a&&Object.keys(a).length&&(o.some(u=>u.value===a.value)||i||o.push(a))}),o.some(s=>(s.value??"")>="600")||o.push({name:(0,Pn._x)("Bold","font weight"),value:"700"}),t.some(s=>s.value==="italic")||t.push({name:(0,Pn._x)("Italic","font style"),value:"italic"}),n&&(t=ASe,o=LSe),t=t.length===0?ASe:t,o=o.length===0?LSe:o,t.forEach(({name:s,value:a})=>{o.forEach(({name:l,value:u})=>{let d=a==="normal"?l:(0,Pn.sprintf)((0,Pn._x)("%1$s %2$s","font"),l??"",s??"");r.push({key:`${a}-${u}`,name:d??"",style:{fontStyle:a,fontWeight:u}})})}),{fontStyles:t,fontWeights:o,combinedStyleAndWeightOptions:r,isSystemFont:n,isVariableFont:i}}var DSe=c(E(),1),OWe=(e,t)=>e?t?(0,la.__)("Appearance"):(0,la.__)("Font style"):(0,la.__)("Font weight");function UN(e){let{__next40pxDefaultSize:t,onChange:o,hasFontStyles:r=!0,hasFontWeights:n=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:a},...l}=e,u=r||n,d=OWe(r,n),f={key:"default",name:(0,la.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:p,fontWeights:h,combinedStyleAndWeightOptions:m}=Qk(i),g=()=>{let _=[f];return m&&_.push(...m),_},b=()=>{let _=[f];return p.forEach(({name:x,value:w})=>{_.push({key:w,name:x,style:{fontStyle:w,fontWeight:void 0}})}),_},v=()=>{let _=[f];return h.forEach(({name:x,value:w})=>{_.push({key:w,name:x,style:{fontStyle:void 0,fontWeight:w}})}),_},y=(0,MSe.useMemo)(()=>r&&n?g():r?b():v(),[e.options,p,h,m]),k=y.find(_=>_.style.fontStyle===s&&_.style.fontWeight===a)||y[0];return u&&(0,DSe.jsx)(NSe.CustomSelectControl,{...l,className:"components-font-appearance-control",label:d,describedBy:k?r?n?(0,la.sprintf)((0,la.__)("Currently selected font appearance: %s"),k.name):(0,la.sprintf)((0,la.__)("Currently selected font style: %s"),k.name):(0,la.sprintf)((0,la.__)("Currently selected font weight: %s"),k.name):(0,la.__)("No selected font appearance"),options:y,value:k,onChange:({selectedItem:_})=>o(_.style)})}var VSe=c(U(),1),AG=c(G(),1);var FSe=c(E(),1);function GN({__next40pxDefaultSize:e,value:t="",onChange:o,fontFamilies:r,className:n,...i}){let[s]=Le("typography.fontFamilies");if(r||(r=s),!r||r.length===0)return null;let a=[{key:"",name:(0,AG.__)("Default")},...r.map(({fontFamily:u,name:d})=>({key:u,name:d||u,style:{fontFamily:u}}))],l=a.find(u=>u.key===t)??"";return(0,FSe.jsx)(VSe.CustomSelectControl,{label:(0,AG.__)("Font"),value:l,onChange:({selectedItem:u})=>o(u.key),options:a,className:$("block-editor-font-family-control",n),...i})}var WN=c(U(),1),zSe=c(G(),1);var jSe=c(E(),1);function $N({value:e,onChange:t,__unstableInputWidth:o="60px",...r}){let[n]=Le("spacing.units"),i=(0,WN.__experimentalUseCustomUnits)({availableUnits:n||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,jSe.jsx)(WN.__experimentalUnitControl,{...r,label:(0,zSe.__)("Letter spacing"),value:e,__unstableInputWidth:o,units:i,onChange:t})}var CE=c(G(),1),KN=c(U(),1),LG=c(E(),1),AWe=[{label:(0,CE.__)("None"),value:"none",icon:dn},{label:(0,CE.__)("Underline"),value:"underline",icon:L3},{label:(0,CE.__)("Strikethrough"),value:"line-through",icon:O3}];function YN({value:e,onChange:t,className:o}){return(0,LG.jsx)(KN.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,CE.__)("Decoration"),className:$("block-editor-text-decoration-control",o),value:e,onChange:r=>{t(r===e?void 0:r)},children:AWe.map(r=>(0,LG.jsx)(KN.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Jk=c(G(),1);var qN=c(U(),1),NG=c(E(),1),LWe=[{label:(0,Jk.__)("None"),value:"none",icon:dn},{label:(0,Jk.__)("Uppercase"),value:"uppercase",icon:M3},{label:(0,Jk.__)("Lowercase"),value:"lowercase",icon:P3},{label:(0,Jk.__)("Capitalize"),value:"capitalize",icon:R3}];function ZN({className:e,value:t,onChange:o}){return(0,NG.jsx)(qN.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,Jk.__)("Letter case"),className:$("block-editor-text-transform-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:LWe.map(r=>(0,NG.jsx)(qN.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var e_=c(G(),1);var XN=c(U(),1),MG=c(E(),1),NWe=[{label:(0,e_.__)("Horizontal"),value:"horizontal-tb",icon:k6},{label:(0,e_.__)("Vertical"),value:(0,e_.isRTL)()?"vertical-lr":"vertical-rl",icon:x6}];function QN({className:e,value:t,onChange:o}){return(0,MG.jsx)(XN.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,e_.__)("Orientation"),className:$("block-editor-writing-mode-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:NWe.map(r=>(0,MG.jsx)(XN.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Gi=c(U(),1),HSe=c(F(),1),USe=c(G(),1);var mn=c(E(),1),MWe=({setting:e,children:t,panelId:o,...r})=>{let n=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return(0,mn.jsx)(Gi.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:n,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...r,className:$("block-editor-color-gradient-item","block-editor-tools-panel-color-gradient-settings__item"),panelId:o,resetAllFilter:e.resetAllFilter,children:t})},DWe=({colorValue:e,label:t})=>(0,mn.jsxs)(Gi.__experimentalHStack,{justify:"flex-start",children:[(0,mn.jsx)(Gi.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,mn.jsx)(Gi.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),VWe=e=>function({onToggle:o,isOpen:r}){let{clearable:n,colorValue:i,gradientValue:s,onColorChange:a,onGradientChange:l,label:u}=e,d=(0,HSe.useRef)(void 0),f={onClick:o,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":r}),"aria-expanded":r,ref:d},p=()=>{i?a():s&&l()},h=i??s;return(0,mn.jsxs)(mn.Fragment,{children:[(0,mn.jsx)(Gi.Button,{__next40pxDefaultSize:!0,...f,children:(0,mn.jsx)(DWe,{colorValue:h,label:u})}),n&&h&&(0,mn.jsx)(Gi.Button,{__next40pxDefaultSize:!0,label:(0,USe.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:dn,onClick:()=>{p(),r&&o(),d.current?.focus()}})]})};function JN({colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradients:n,settings:i,__experimentalIsRenderedInSidebar:s,...a}){let l;return s&&(l={placement:"left-start",offset:36,shift:!0}),(0,mn.jsx)(mn.Fragment,{children:i.map((u,d)=>{let f={clearable:!1,colorValue:u.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradientValue:u.gradientValue,gradients:n,label:u.label,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...u},p={clearable:u.clearable,label:u.label,colorValue:u.colorValue,gradientValue:u.gradientValue,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange};return u&&(0,mn.jsx)(MWe,{setting:u,...a,children:(0,mn.jsx)(Gi.Dropdown,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:VWe(p),renderContent:()=>(0,mn.jsx)(Gi.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,mn.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,mn.jsx)($m,{...f})})})})},d)})})}var eM=c(U(),1),GSe=c(Q(),1),WSe=c(fe(),1);var DG=c(F(),1),$b=c(G(),1);function Ym(){let[e,t,o,r,n,i,s,a,l,u]=Le("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!i};return d.colors=(0,DG.useMemo)(()=>{let f=[];return o&&o.length&&f.push({name:(0,$b._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:o}),n&&r&&r.length&&f.push({name:(0,$b._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&f.push({name:(0,$b._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),f},[t,o,r,n]),d.gradients=(0,DG.useMemo)(()=>{let f=[];return a&&a.length&&f.push({name:(0,$b._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),u&&l&&l.length&&f.push({name:(0,$b._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&f.push({name:(0,$b._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),f},[s,a,l,u]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}var Sc=c(E(),1),FWe=["colors","disableCustomColors","gradients","disableCustomGradients"],VG=({className:e,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,children:i,settings:s,title:a,showTitle:l=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:d})=>{let f=(0,WSe.useInstanceId)(VG),{batch:p}=(0,GSe.useRegistry)();return(!t||t.length===0)&&(!o||o.length===0)&&r&&n&&s?.every(h=>(!h.colors||h.colors.length===0)&&(!h.gradients||h.gradients.length===0)&&(h.disableCustomColors===void 0||h.disableCustomColors)&&(h.disableCustomGradients===void 0||h.disableCustomGradients))?null:(0,Sc.jsxs)(eM.__experimentalToolsPanel,{className:$("block-editor-panel-color-gradient-settings",e),label:l?a:void 0,resetAll:()=>{p(()=>{s.forEach(({colorValue:h,gradientValue:m,onColorChange:g,onGradientChange:b})=>{h?g():m&&b()})})},panelId:f,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,Sc.jsx)(JN,{settings:s,panelId:f,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,__experimentalIsRenderedInSidebar:u,enableAlpha:d}),!!i&&(0,Sc.jsxs)(Sc.Fragment,{children:[(0,Sc.jsx)(eM.__experimentalSpacer,{marginY:4})," ",i]})]})},zWe=e=>{let t=Ym();return(0,Sc.jsx)(VG,{...t,...e})},jWe=e=>FWe.every(t=>e.hasOwnProperty(t))?(0,Sc.jsx)(VG,{...e}):(0,Sc.jsx)(zWe,{...e}),tM=jWe;var oM=c(F(),1),Kb=c(U(),1),zG=c(G(),1);var EE=c(E(),1),FG=[],HWe={...LN,px:{max:1e3,steps:1},em:{max:50,steps:.1},rem:{max:50,steps:.1}};function UWe(e){let t=e?.default??FG,o=e?.custom??FG,r=e?.theme??FG;return(0,oM.useMemo)(()=>[{name:(0,zG.__)("None"),slug:"0",size:0},...o,...r,...t],[o,r,t])}function Yb({label:e=(0,zG.__)("Dimension"),onChange:t,value:o,placeholder:r,className:n,dimensionSizes:i}){let[s,a]=Le("dimensions.dimensionSizes","spacing.units"),l=i??s,u=(0,Kb.__experimentalUseCustomUnits)({availableUnits:a||["%","px","em","rem","vh","vw"]}),d=UWe(l),[f,p]=(0,oM.useState)(()=>{let[,m]=(0,Kb.__experimentalParseQuantityAndUnitFromRawValue)(o);return m||u[0]?.value||"px"}),h=m=>{let[g,b]=(0,Kb.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(m)&&b==="px"?t((g/16).toFixed(2)+m):["em","rem"].includes(b)&&m==="px"?t(Math.round(g*16)+m):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(m)&&g>100&&t(100+m),p(m)};return(0,EE.jsxs)("fieldset",{className:$("block-editor-dimension-control",n),children:[(0,EE.jsx)(Kb.BaseControl.VisualLabel,{as:"legend",children:e}),(0,EE.jsx)(Wb,{ariaLabel:e,className:"block-editor-dimension-control",customValueSettings:HWe,minimumCustomValue:0,onChange:t,onUnitChange:h,placeholder:r,presets:d,presetType:"dimension",selectedUnit:f,showTooltip:!0,units:u,value:o})]})}var KSe=c(F(),1),In=c(U(),1),YSe=c(G(),1),qSe=c(Bt(),1);var Bu=c(E(),1),$Se={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function ZSe({label:e=(0,YSe.__)("Height"),onChange:t,value:o}){(0,qSe.default)("wp.blockEditor.HeightControl",{since:"7.0",version:"7.2",alternative:"wp.blockEditor.DimensionControl"});let r=parseFloat(o),[n]=Le("spacing.units"),i=(0,In.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vh","vw"]}),s=(0,KSe.useMemo)(()=>(0,In.__experimentalParseQuantityAndUnitFromRawValue)(o),[o])[1]||i[0]?.value||"px",a=u=>{t([u,s].join(""))},l=u=>{let[d,f]=(0,In.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(u)&&f==="px"?t((d/16).toFixed(2)+u):["em","rem"].includes(f)&&u==="px"?t(Math.round(d*16)+u):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(u)&&d>100&&t(100+u)};return(0,Bu.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,Bu.jsx)(In.BaseControl.VisualLabel,{as:"legend",children:e}),(0,Bu.jsxs)(In.Flex,{children:[(0,Bu.jsx)(In.FlexItem,{isBlock:!0,children:(0,Bu.jsx)(In.__experimentalUnitControl,{value:o,units:i,onChange:t,onUnitChange:l,min:0,label:e,hideLabelFromVision:!0})}),(0,Bu.jsx)(In.FlexItem,{isBlock:!0,children:(0,Bu.jsx)(In.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,Bu.jsx)(In.RangeControl,{value:r,min:0,max:$Se[s]?.max??100,step:$Se[s]?.step??.1,withInputField:!1,onChange:a,label:e,hideLabelFromVision:!0})})})]})]})}var PE=c(U(),1),Jke=c(Bt(),1);var ul=c(ue()),_ke=c(bke());function YWe(e,t,o,r,n,i){i===void 0&&(i=0);var s=t_(e,t,i),a=s.width,l=s.height,u=Math.min(a,o),d=Math.min(l,r);return u>d*n?{width:d*n,height:d}:{width:u,height:u/n}}function qWe(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function TE(e,t,o,r,n){n===void 0&&(n=0);var i=t_(t.width,t.height,n),s=i.width,a=i.height;return{x:yke(e.x,s,o.width,r),y:yke(e.y,a,o.height,r)}}function yke(e,t,o,r){var n=t*r/2-o/2;return lM(e,-n,n)}function vke(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Ske(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function ZWe(e,t,o,r,n,i,s){i===void 0&&(i=0),s===void 0&&(s=!0);var a=s?XWe:QWe,l=t_(t.width,t.height,i),u=t_(t.naturalWidth,t.naturalHeight,i),d={x:a(100,((l.width-o.width/n)/2-e.x/n)/l.width*100),y:a(100,((l.height-o.height/n)/2-e.y/n)/l.height*100),width:a(100,o.width/l.width*100/n),height:a(100,o.height/l.height*100/n)},f=Math.round(a(u.width,d.width*u.width/100)),p=Math.round(a(u.height,d.height*u.height/100)),h=u.width>=u.height*r,m=h?{width:Math.round(p*r),height:p}:{width:f,height:Math.round(f/r)},g=fn(fn({},m),{x:Math.round(a(u.width-m.width,d.x*u.width/100)),y:Math.round(a(u.height-m.height,d.y*u.height/100))});return{croppedAreaPercentages:d,croppedAreaPixels:g}}function XWe(e,t){return Math.min(e,Math.max(0,t))}function QWe(e,t){return t}function JWe(e,t,o,r,n,i){var s=t_(t.width,t.height,o),a=lM(r.width/s.width*(100/e.width),n,i),l={x:a*s.width/2-r.width/2-s.width*a*(e.x/100),y:a*s.height/2-r.height/2-s.height*a*(e.y/100)};return{crop:l,zoom:a}}function e$e(e,t,o){var r=qWe(t);return o.height>o.width?o.height/(e.height*r):o.width/(e.width*r)}function t$e(e,t,o,r,n,i){o===void 0&&(o=0);var s=t_(t.naturalWidth,t.naturalHeight,o),a=lM(e$e(e,t,r),n,i),l=r.height>r.width?r.height/e.height:r.width/e.width,u={x:((s.width-e.width)/2-e.x)*l,y:((s.height-e.height)/2-e.y)*l};return{crop:u,zoom:a}}function kke(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function o$e(e){return e*Math.PI/180}function t_(e,t,o){var r=o$e(o);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function lM(e,t,o){return Math.min(Math.max(e,t),o)}function aM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(o){return typeof o=="string"&&o.length>0}).join(" ").trim()}var r$e=`.reactEasyCrop_Container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
user-select: none;
touch-action: none;
cursor: move;
display: flex;
justify-content: center;
align-items: center;
}
.reactEasyCrop_Image,
.reactEasyCrop_Video {
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}
.reactEasyCrop_Contain {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.reactEasyCrop_Cover_Horizontal {
width: 100%;
height: auto;
}
.reactEasyCrop_Cover_Vertical {
width: auto;
height: 100%;
}
.reactEasyCrop_CropArea {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
box-shadow: 0 0 0 9999em;
color: rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 0;
bottom: 0;
left: 33.33%;
right: 33.33%;
border-top: 0;
border-bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
border-left: 0;
border-right: 0;
}
`,n$e=1,i$e=3,s$e=1,xke=(function(e){RX(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.cropperRef=ul.createRef(),o.imageRef=ul.createRef(),o.videoRef=ul.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc=typeof document<"u"?document:null,o.currentWindow=typeof window<"u"?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!o.containerRef)){var r=!0;o.resizeObserver=new window.ResizeObserver(function(n){if(r){r=!1;return}o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(r){return r.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var r=o.computeSizes();r&&(o.previousCropSize=r,o.emitCropData(),o.setInitialCrop(r),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(r){if(o.props.initialCroppedAreaPercentages){var n=JWe(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=n.crop,s=n.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}else if(o.props.initialCroppedAreaPixels){var a=t$e(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=a.crop,s=a.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}},o.computeSizes=function(){var r,n,i,s,a,l,u=o.imageRef.current||o.videoRef.current;if(u&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var d=o.containerRect.width/o.containerRect.height,f=((r=o.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=o.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,p=((i=o.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((s=o.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,h=u.offsetWidth<f||u.offsetHeight<p,m=f/p,g=void 0;if(h)switch(o.state.mediaObjectFit){default:case"contain":g=d>m?{width:o.containerRect.height*m,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/m};break;case"horizontal-cover":g={width:o.containerRect.width,height:o.containerRect.width/m};break;case"vertical-cover":g={width:o.containerRect.height*m,height:o.containerRect.height};break}else g={width:u.offsetWidth,height:u.offsetHeight};o.mediaSize=fn(fn({},g),{naturalWidth:f,naturalHeight:p}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var b=o.props.cropSize?o.props.cropSize:YWe(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(((a=o.state.cropSize)===null||a===void 0?void 0:a.height)!==b.height||((l=o.state.cropSize)===null||l===void 0?void 0:l.width)!==b.width)&&o.props.onCropSizeChange&&o.props.onCropSizeChange(b),o.setState({cropSize:b},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(b),b}},o.saveContainerPosition=function(){if(o.containerRef){var r=o.containerRef.getBoundingClientRect();o.containerPosition={x:r.left,y:r.top}}},o.onMouseDown=function(r){o.currentDoc&&(r.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(r)))},o.onMouseMove=function(r){return o.onDrag(t.getMousePoint(r))},o.onScroll=function(r){o.currentDoc&&(r.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(r){o.currentDoc&&(o.isTouching=!0,!(o.props.onTouchRequest&&!o.props.onTouchRequest(r))&&(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),r.touches.length===2?o.onPinchStart(r):r.touches.length===1&&o.onDragStart(t.getTouchPoint(r.touches[0]))))},o.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?o.onPinchMove(r):r.touches.length===1&&o.onDrag(t.getTouchPoint(r.touches[0]))},o.onGestureStart=function(r){o.currentDoc&&(r.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(r){if(r.preventDefault(),!o.isTouching){var n=t.getMousePoint(r),i=o.gestureZoomStart-1+r.scale;if(o.setNewZoom(i,n,{shouldUpdatePosition:!0}),o.props.onRotationChange){var s=o.gestureRotationStart+r.rotation;o.props.onRotationChange(s)}}},o.onGestureEnd=function(r){o.cleanEvents()},o.onDragStart=function(r){var n,i,s=r.x,a=r.y;o.dragStartPosition={x:s,y:a},o.dragStartCrop=fn({},o.props.crop),(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n)},o.onDrag=function(r){var n=r.x,i=r.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&!(n===void 0||i===void 0)){var s=n-o.dragStartPosition.x,a=i-o.dragStartPosition.y,l={x:o.dragStartCrop.x+s,y:o.dragStartCrop.y+a},u=o.props.restrictPosition?TE(l,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):l;o.props.onCropChange(u)}}))},o.onDragStopped=function(){var r,n;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),(n=(r=o.props).onInteractionEnd)===null||n===void 0||n.call(r)},o.onWheel=function(r){if(o.currentWindow&&!(o.props.onWheelRequest&&!o.props.onWheelRequest(r))){r.preventDefault();var n=t.getMousePoint(r),i=(0,_ke.default)(r).pixelY,s=o.props.zoom-i*o.props.zoomSpeed/200;o.setNewZoom(s,n,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var a,l;return(l=(a=o.props).onInteractionStart)===null||l===void 0?void 0:l.call(a)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var a,l;return(l=(a=o.props).onInteractionEnd)===null||l===void 0?void 0:l.call(a)})},250)}},o.getPointOnContainer=function(r,n){var i=r.x,s=r.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(i-n.x),y:o.containerRect.height/2-(s-n.y)}},o.getPointOnMedia=function(r){var n=r.x,i=r.y,s=o.props,a=s.crop,l=s.zoom;return{x:(n+a.x)/l,y:(i+a.y)/l}},o.setNewZoom=function(r,n,i){var s=i===void 0?{}:i,a=s.shouldUpdatePosition,l=a===void 0?!0:a;if(!(!o.state.cropSize||!o.props.onZoomChange)){var u=lM(r,o.props.minZoom,o.props.maxZoom);if(l){var d=o.getPointOnContainer(n,o.containerPosition),f=o.getPointOnMedia(d),p={x:f.x*u-d.x,y:f.y*u-d.y},h=o.props.restrictPosition?TE(p,o.mediaSize,o.state.cropSize,u,o.props.rotation):p;o.props.onCropChange(h)}o.props.onZoomChange(u)}},o.getCropData=function(){if(!o.state.cropSize)return null;var r=o.props.restrictPosition?TE(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;return ZWe(r,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition)},o.emitCropData=function(){var r=o.getCropData();if(r){var n=r.croppedAreaPercentages,i=r.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(n,i),o.props.onCropAreaChange&&o.props.onCropAreaChange(n,i)}},o.emitCropAreaChange=function(){var r=o.getCropData();if(r){var n=r.croppedAreaPercentages,i=r.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(n,i)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var r=o.props.crop;if(o.isInitialized&&o.previousCropSize){var n=Math.abs(o.previousCropSize.width-o.state.cropSize.width)>1e-6||Math.abs(o.previousCropSize.height-o.state.cropSize.height)>1e-6;if(n){var i=o.state.cropSize.width/o.previousCropSize.width,s=o.state.cropSize.height/o.previousCropSize.height;r={x:o.props.crop.x*i,y:o.props.crop.y*s}}}var a=o.props.restrictPosition?TE(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.previousCropSize=o.state.cropSize,o.props.onCropChange(a),o.emitCropData()}},o.onKeyDown=function(r){var n,i,s=o.props,a=s.crop,l=s.onCropChange,u=s.keyboardStep,d=s.zoom,f=s.rotation,p=u;if(o.state.cropSize){r.shiftKey&&(p*=.2);var h=fn({},a);switch(r.key){case"ArrowUp":h.y-=p,r.preventDefault();break;case"ArrowDown":h.y+=p,r.preventDefault();break;case"ArrowLeft":h.x-=p,r.preventDefault();break;case"ArrowRight":h.x+=p,r.preventDefault();break;default:return}o.props.restrictPosition&&(h=TE(h,o.mediaSize,o.state.cropSize,d,f)),r.repeat||(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n),l(h)}},o.onKeyUp=function(r){var n,i;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}o.emitCropData(),(i=(n=o.props).onInteractionEnd)===null||i===void 0||i.call(n)},o}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=r$e,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var o,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(o=this.resizeObserver)===null||o===void 0||o.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(o){var r,n,i,s,a,l,u,d,f;o.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):o.aspect!==this.props.aspect?this.computeSizes():o.objectFit!==this.props.objectFit?this.computeSizes():o.zoom!==this.props.zoom?this.recomputeCropPosition():((r=o.cropSize)===null||r===void 0?void 0:r.height)!==((n=this.props.cropSize)===null||n===void 0?void 0:n.height)||((i=o.cropSize)===null||i===void 0?void 0:i.width)!==((s=this.props.cropSize)===null||s===void 0?void 0:s.width)?this.computeSizes():(((a=o.crop)===null||a===void 0?void 0:a.x)!==((l=this.props.crop)===null||l===void 0?void 0:l.x)||((u=o.crop)===null||u===void 0?void 0:u.y)!==((d=this.props.crop)===null||d===void 0?void 0:d.y))&&this.emitCropAreaChange(),o.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),o.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load());var p=this.getObjectFit();p!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:p},this.computeSizes)},t.prototype.getAspect=function(){var o=this.props,r=o.cropSize,n=o.aspect;return r?r.width/r.height:n},t.prototype.getObjectFit=function(){var o,r,n,i;if(this.props.objectFit==="cover"){var s=this.imageRef.current||this.videoRef.current;if(s&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var a=this.containerRect.width/this.containerRect.height,l=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,u=((n=this.imageRef.current)===null||n===void 0?void 0:n.naturalHeight)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,d=l/u;return d<a?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(o){var r=t.getTouchPoint(o.touches[0]),n=t.getTouchPoint(o.touches[1]);this.lastPinchDistance=vke(r,n),this.lastPinchRotation=Ske(r,n),this.onDragStart(kke(r,n))},t.prototype.onPinchMove=function(o){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var n=t.getTouchPoint(o.touches[0]),i=t.getTouchPoint(o.touches[1]),s=kke(n,i);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var a=vke(n,i),l=r.props.zoom*(a/r.lastPinchDistance);r.setNewZoom(l,s,{shouldUpdatePosition:!1}),r.lastPinchDistance=a;var u=Ske(n,i),d=r.props.rotation+(u-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(d),r.lastPinchRotation=u})}},t.prototype.render=function(){var o=this,r,n=this.props,i=n.image,s=n.video,a=n.mediaProps,l=n.cropperProps,u=n.transform,d=n.crop,f=d.x,p=d.y,h=n.rotation,m=n.zoom,g=n.cropShape,b=n.showGrid,v=n.roundCropAreaPixels,y=n.style,k=y.containerStyle,S=y.cropAreaStyle,_=y.mediaStyle,x=n.classes,w=x.containerClassName,T=x.cropAreaClassName,R=x.mediaClassName,B=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return ul.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(O){return o.containerRef=O},"data-testid":"container",style:k,className:aM("reactEasyCrop_Container",w)},i?ul.createElement("img",fn({alt:"",className:aM("reactEasyCrop_Image",B==="contain"&&"reactEasyCrop_Contain",B==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",B==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{src:i,ref:this.imageRef,style:fn(fn({},_),{transform:u||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(h,"deg) scale(").concat(m,")")}),onLoad:this.onMediaLoad})):s&&ul.createElement("video",fn({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:aM("reactEasyCrop_Video",B==="contain"&&"reactEasyCrop_Contain",B==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",B==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:fn(fn({},_),{transform:u||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(h,"deg) scale(").concat(m,")")}),controls:!1}),(Array.isArray(s)?s:[{src:s}]).map(function(I){return ul.createElement("source",fn({key:I.src},I))})),this.state.cropSize&&ul.createElement("div",fn({ref:this.cropperRef,style:fn(fn({},S),{width:v?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:v?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:aM("reactEasyCrop_CropArea",g==="round"&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",T)},l)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:i$e,minZoom:n$e,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:s$e},t.getMousePoint=function(o){return{x:Number(o.clientX),y:Number(o.clientY)}},t.getTouchPoint=function(o){return{x:Number(o.clientX),y:Number(o.clientY)}},t})(ul.Component);var Oke=c(F(),1);var r_=c(F(),1);var wke=Object.prototype.hasOwnProperty;function Cke(e,t,o){for(o of e.keys())if(Zb(o,t))return o}function Zb(e,t){var o,r,n;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&Zb(e[r],t[r]););return r===-1}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if(n=r,n&&typeof n=="object"&&(n=Cke(t,n),!n)||!t.has(n))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if(n=r[0],n&&typeof n=="object"&&(n=Cke(t,n),!n)||!Zb(r[1],t.get(n)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!o||typeof e=="object"){r=0;for(o in e)if(wke.call(e,o)&&++r&&!wke.call(t,o)||!(o in t)||!Zb(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var kc=c(F(),1);var o_=1,Eke=5;var cM=e=>e>=0?e%360:(360+e%360)%360,a$e=e=>new Promise((t,o)=>{let r=new Image;r.addEventListener("load",()=>t(r)),r.addEventListener("error",n=>o(n)),r.setAttribute("crossOrigin","anonymous"),r.src=e});function Tke(e){return e*Math.PI/180}function l$e(e,t,o){let r=Tke(o);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}async function Rke(e,t,o=0,r={horizontal:!1,vertical:!1}){try{let n=await a$e(e),i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return null;let a=Tke(o),{width:l,height:u}=l$e(n.width,n.height,o);i.width=l,i.height=u,s.translate(l/2,u/2),s.rotate(a),s.scale(r.horizontal?-1:1,r.vertical?-1:1),s.translate(-n.width/2,-n.height/2),s.drawImage(n,0,0);let d=document.createElement("canvas"),f=d.getContext("2d");return f?(d.width=t.width,d.height=t.height,f.drawImage(i,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise(p=>{d.toBlob(h=>{h&&p(URL.createObjectURL(h))},"image/jpeg")})):null}catch{return null}}var Xb={crop:{x:0,y:0,width:100,height:100},zoom:o_,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1}},c$e={x:0,y:0},qG={crop:c$e,croppedArea:Xb.crop,croppedAreaPixels:null,zoom:Xb.zoom,rotation:Xb.rotation,flip:Xb.flip,aspectRatio:Xb.aspectRatio,mediaSize:null};function Bke(){let[e,t]=(0,kc.useState)(qG),[o,r]=(0,kc.useState)(null),n=(0,kc.useCallback)(u=>{t(d=>{let p={...typeof u=="function"?u(d):u};return"rotation"in p&&p.rotation!==void 0&&(p.rotation=cM(p.rotation)),{...d,...p}})},[]),i=(0,kc.useCallback)((u=null)=>{if(!u){r(null),n(qG);return}if(typeof u=="object"){let d={...Xb,...u};r(d),n(d)}},[n,r]),s=(0,kc.useCallback)(()=>{if(o){let u={crop:{x:0,y:0},croppedAreaPixels:null};o.crop&&(u.croppedArea=o.crop),o.zoom!==void 0&&(u.zoom=o.zoom),o.rotation!==void 0&&(u.rotation=o.rotation),o.aspectRatio!==void 0&&(u.aspectRatio=o.aspectRatio),o.flip!==void 0&&(u.flip=o.flip),n(u)}else n({...qG})},[o,n]),a=(0,kc.useMemo)(()=>{if(o){let d={crop:e.croppedAreaPixels||e.croppedArea,zoom:e.zoom,rotation:cM(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return Zb(d,o)===!1}let u={crop:e.croppedArea,zoom:e.zoom,rotation:cM(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return Zb(u,Xb)===!1},[e,o]),l=(0,kc.useCallback)(async u=>e.croppedAreaPixels?Rke(u,e.croppedAreaPixels,e.rotation,e.flip):null,[e.croppedAreaPixels,e.rotation,e.flip]);return(0,kc.useMemo)(()=>({cropperState:e,setCropperState:n,resetState:o,setResetState:i,isDirty:a,reset:s,getCroppedImage:l}),[e,n,o,i,a,s,l])}var Pke=c(E(),1),Ike=(0,r_.createContext)({cropperState:{crop:{x:0,y:0},croppedArea:{x:0,y:0,width:100,height:100},croppedAreaPixels:null,zoom:o_,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1},mediaSize:null},setCropperState:()=>{},resetState:null,setResetState:()=>{},isDirty:!1,reset:()=>{},getCroppedImage:()=>Promise.resolve(null)});function ZG({children:e}){let t=Bke(),o=(0,r_.useMemo)(()=>({...t}),[t]);return(0,Pke.jsx)(Ike.Provider,{value:o,children:e})}var RE=()=>{let e=(0,r_.useContext)(Ike);if(!e)throw new Error("Missing ImageCropperContext");return e};var Ake=c(E(),1);function XG({src:e,onLoad:t,minZoom:o=o_,maxZoom:r=Eke,...n}){let{cropperState:i,setCropperState:s}=RE(),{crop:a,zoom:l,rotation:u,aspectRatio:d,flip:f}=i,p=v=>s({crop:v}),h=v=>s({zoom:v}),m=v=>s({rotation:v}),g=v=>s({mediaSize:v}),b=(0,Oke.useCallback)((v,y)=>{s({croppedArea:v,croppedAreaPixels:y})},[s]);return(0,Ake.jsx)(xke,{classes:{containerClassName:"image-cropper__container",cropAreaClassName:"image-cropper__crop-area",mediaClassName:"image-cropper__image"},minZoom:o,maxZoom:r,rotation:u,image:e,setMediaSize:g,crop:a,zoom:l,aspect:d,onCropChange:p,onZoomChange:h,onCropComplete:b,onMediaLoaded:v=>{t?.(v)},onRotationChange:m,transform:[`translate(${a.x}px, ${a.y}px)`,`rotateZ(${u}deg)`,`rotateY(${f.horizontal?180:0}deg)`,`rotateX(${f.vertical?180:0}deg)`,`scale(${l})`].join(" "),...n})}var s_=c(U(),1),i_=c(G(),1);var Lke=100,Nke=300,uM={placement:"bottom-start"};var n_=c(F(),1);var dM=c(Q(),1),Qb=c(F(),1),pf=c(G(),1),Mke=c(ss(),1),Dke=c(Rt(),1);var u$e={crop:(0,pf.__)("Image cropped."),rotate:(0,pf.__)("Image rotated."),cropAndRotate:(0,pf.__)("Image cropped and rotated.")};function Vke({crop:e,rotation:t,url:o,id:r,onSaveImage:n,onFinishEditing:i}){let{createErrorNotice:s,createSuccessNotice:a}=(0,dM.useDispatch)(Mke.store),[l,u]=(0,Qb.useState)(!1),{editMediaEntity:d}=(0,dM.useSelect)(h=>({editMediaEntity:h(C).getSettings()?.[uT]}),[]),f=(0,Qb.useCallback)(()=>{u(!1),i()},[i]),p=(0,Qb.useCallback)(async()=>{if(!d){i(),s((0,pf.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});return}u(!0);let h=[];if(t>0&&h.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&h.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),h.length===0){u(!1),i();return}let m=h.length===1?h[0].type:"cropAndRotate";try{let g=await d(r,{src:o,modifiers:h},{throwOnError:!0});g&&(n({id:g.id,url:g.source_url}),a(u$e[m],{type:"snackbar",actions:[{label:(0,pf.__)("Undo"),onClick:()=>{n({id:r,url:o})}}]}))}catch(g){s((0,pf.sprintf)((0,pf.__)("Could not edit image. %s"),(0,Dke.__unstableStripHTML)(g.message)),{id:"image-editing-error",type:"snackbar"})}finally{u(!1),i()}},[e,t,r,o,n,s,a,i,d]);return(0,Qb.useMemo)(()=>({isInProgress:l,apply:p,cancel:f}),[l,p,f])}var _c=c(F(),1),Fke=c(bo(),1);function zke({url:e,naturalWidth:t,naturalHeight:o}){let[r,n]=(0,_c.useState)(),{cropperState:i,setCropperState:s}=RE(),{zoom:a,aspectRatio:l,crop:u,croppedArea:d}=i,f=(0,_c.useCallback)(y=>{s({zoom:y})},[s]),p=(0,_c.useCallback)(y=>{s({aspectRatio:y})},[s]),h=t/o,m=o/t;(0,_c.useEffect)(()=>{p(h)},[]);let[g,b]=(0,_c.useState)(0),v=(0,_c.useCallback)(()=>{let y=(g+90)%360,k=h,_=a!==1||!(h===l||m===l);if(g%180===90&&(k=1/h),y===0){n(),b(y),s({aspectRatio:_?l:h,crop:{x:-(u.y*k),y:u.x*k}});return}function x(R){let B=document.createElement("canvas"),I=0,O=0;y%180?(B.width=R.target.height,B.height=R.target.width):(B.width=R.target.width,B.height=R.target.height),(y===90||y===180)&&(I=B.width),(y===270||y===180)&&(O=B.height);let P=B.getContext("2d");P.translate(I,O),P.rotate(y*Math.PI/180),P.drawImage(R.target,0,0),B.toBlob(A=>{n(URL.createObjectURL(A)),b(y);let M=_?l:B.width/B.height;s({aspectRatio:M,crop:{x:-(u.y*k),y:u.x*k}})})}let w=new window.Image;w.src=e,w.onload=x;let T=(0,Fke.applyFilters)("media.crossOrigin",void 0,e);typeof T=="string"&&(w.crossOrigin=T)},[g,h,e,s,u,a,l,m,b]);return(0,_c.useMemo)(()=>({editedUrl:r,setEditedUrl:n,crop:d,zoom:a,setZoom:f,rotation:g,rotateClockwise:v,aspect:l,setAspect:p,defaultAspect:h}),[r,d,a,f,g,v,l,p,h])}var jke=c(E(),1),QG=(0,n_.createContext)({});QG.displayName="ImageEditingContext";var Pu=()=>(0,n_.useContext)(QG);function Hke({id:e,url:t,naturalWidth:o,naturalHeight:r,onFinishEditing:n,onSaveImage:i,children:s}){let a=zke({url:t,naturalWidth:o,naturalHeight:r}),l=Vke({id:e,url:t,onSaveImage:i,onFinishEditing:n,...a}),u=(0,n_.useMemo)(()=>({...a,...l}),[a,l]);return(0,jke.jsx)(QG.Provider,{value:u,children:s})}var dl=c(E(),1);function fM({aspectRatios:e,isDisabled:t,label:o,onClick:r,value:n}){return(0,dl.jsx)(s_.MenuGroup,{label:o,children:e.map(({name:i,slug:s,ratio:a})=>(0,dl.jsx)(s_.MenuItem,{disabled:t,onClick:()=>{r(a)},role:"menuitemradio",isSelected:a===n,icon:a===n?rs:void 0,children:i},s))})}function d$e(e){let[t,o,...r]=e.split("/").map(Number);return t<=0||o<=0||Number.isNaN(t)||Number.isNaN(o)||r.length?NaN:o?t/o:t}function JG({ratio:e,...t}){return{ratio:d$e(e),...t}}function Uke({toggleProps:e}){let{isInProgress:t,aspect:o,setAspect:r,defaultAspect:n}=Pu(),[i,s,a]=Le("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,dl.jsx)(s_.DropdownMenu,{icon:HF,label:(0,i_.__)("Aspect Ratio"),popoverProps:uM,toggleProps:e,children:({onClose:l})=>(0,dl.jsxs)(dl.Fragment,{children:[(0,dl.jsx)(fM,{isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:[{slug:"original",name:(0,i_.__)("Original"),ratio:n},...a?i.map(JG).filter(({ratio:u})=>u===1):[]]}),s?.length>0&&(0,dl.jsx)(fM,{label:(0,i_.__)("Theme"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:s}),a&&(0,dl.jsx)(fM,{label:(0,i_.__)("Landscape"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(JG).filter(({ratio:u})=>u>1)}),a&&(0,dl.jsx)(fM,{label:(0,i_.__)("Portrait"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(JG).filter(({ratio:u})=>u<1)})]})})}var Gke=c(U(),1),Wke=c(fe(),1);var qm=c(E(),1);function $ke({url:e,width:t,height:o,naturalHeight:r,naturalWidth:n,borderProps:i}){let{isInProgress:s,editedUrl:a,rotation:l}=Pu(),[u,{width:d}]=(0,Wke.useResizeObserver)(),f=o||d*r/n;l%180===90&&(f=d*n/r);let p=(0,qm.jsxs)("div",{className:$("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||d,height:f},children:[(0,qm.jsx)(XG,{src:a||e}),s&&(0,qm.jsx)(Gke.Spinner,{})]});return(0,qm.jsxs)(qm.Fragment,{children:[u,p]})}var Zm=c(U(),1),eW=c(G(),1);var BE=c(E(),1);function Kke(){let{isInProgress:e,zoom:t,setZoom:o}=Pu();return(0,BE.jsx)(Zm.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:uM,renderToggle:({isOpen:r,onToggle:n})=>(0,BE.jsx)(Zm.ToolbarButton,{icon:X4,label:(0,eW.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:e}),renderContent:()=>(0,BE.jsx)(Zm.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,BE.jsx)(Zm.RangeControl,{label:(0,eW.__)("Zoom"),min:Lke,max:Nke,value:Math.round(t*100),onChange:r=>o(r/100)})})})}var Yke=c(U(),1),qke=c(G(),1);var Zke=c(E(),1);function Xke(){let{isInProgress:e,rotateClockwise:t}=Pu();return(0,Zke.jsx)(Yke.ToolbarButton,{icon:K4,label:(0,qke.__)("Rotate"),onClick:t,disabled:e})}var tW=c(U(),1),oW=c(G(),1);var Jb=c(E(),1);function Qke(){let{isInProgress:e,apply:t,cancel:o}=Pu();return(0,Jb.jsxs)(Jb.Fragment,{children:[(0,Jb.jsx)(tW.ToolbarButton,{onClick:t,disabled:e,children:(0,oW.__)("Apply")}),(0,Jb.jsx)(tW.ToolbarButton,{onClick:o,children:(0,oW.__)("Cancel")})]})}var ca=c(E(),1);function e_e({id:e,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i,onSaveImage:s,onFinishEditing:a,borderProps:l}){return(0,Jke.default)("wp.blockEditor.__experimentalImageEditor",{since:"7.1",hint:"The Media Editor modal is now the default crop experience for core blocks. This component will be removed in a future major release."}),(0,ca.jsx)(ZG,{children:(0,ca.jsxs)(Hke,{id:e,url:t,naturalWidth:i,naturalHeight:n,onSaveImage:s,onFinishEditing:a,children:[(0,ca.jsx)($ke,{borderProps:l,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i}),(0,ca.jsxs)(No,{children:[(0,ca.jsxs)(PE.ToolbarGroup,{children:[(0,ca.jsx)(Kke,{}),(0,ca.jsx)(PE.ToolbarItem,{children:u=>(0,ca.jsx)(Uke,{toggleProps:u})}),(0,ca.jsx)(Xke,{})]}),(0,ca.jsx)(PE.ToolbarGroup,{children:(0,ca.jsx)(Qke,{})})]})]})})}var ua=c(U(),1),Xm=c(G(),1);var a_=c(F(),1);function t_e(e,t,o,r,n){let[i,s]=(0,a_.useState)(t??r??""),[a,l]=(0,a_.useState)(e??o??"");return(0,a_.useEffect)(()=>{t===void 0&&r!==void 0&&s(r),e===void 0&&o!==void 0&&l(o)},[r,o]),(0,a_.useEffect)(()=>{t!==void 0&&Number.parseInt(t)!==Number.parseInt(i)&&s(t),e!==void 0&&Number.parseInt(e)!==Number.parseInt(a)&&l(e)},[t,e]),{currentHeight:a,currentWidth:i,updateDimension:(f,p)=>{let h=p===""?void 0:parseInt(p,10);f==="width"?s(h):l(h),n({[f]:h})},updateDimensions:(f,p)=>{l(f??o),s(p??r),n({height:f,width:p})}}}var fl=c(E(),1),o_e=[25,50,75,100],f$e=()=>{};function r_e(e,t,o){let r=Math.round(t*(e/100)),n=Math.round(o*(e/100));return{scaledWidth:r,scaledHeight:n}}function n_e({imageSizeHelp:e,imageWidth:t,imageHeight:o,imageSizeOptions:r=[],isResizable:n=!0,slug:i,width:s,height:a,onChange:l,onChangeImage:u=f$e}){let{currentHeight:d,currentWidth:f,updateDimension:p,updateDimensions:h}=t_e(a,s,o,t,l),m=b=>{if(b===void 0){h();return}let{scaledWidth:v,scaledHeight:y}=r_e(b,t,o);h(y,v)},g=o_e.find(b=>{let{scaledWidth:v,scaledHeight:y}=r_e(b,t,o);return f===v&&d===y});return(0,fl.jsxs)(ua.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[r&&r.length>0&&(0,fl.jsx)(ua.SelectControl,{label:(0,Xm.__)("Resolution"),value:i,options:r,onChange:u,help:e}),n&&(0,fl.jsxs)(fl.Fragment,{children:[(0,fl.jsxs)(ua.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,fl.jsx)(ua.__experimentalNumberControl,{label:(0,Xm.__)("Width"),value:f,min:1,onChange:b=>p("width",b)}),(0,fl.jsx)(ua.__experimentalNumberControl,{label:(0,Xm.__)("Height"),value:d,min:1,onChange:b=>p("height",b)})]}),(0,fl.jsx)(ua.__experimentalToggleGroupControl,{label:(0,Xm.__)("Image size presets"),hideLabelFromVision:!0,onChange:m,value:g,isBlock:!0,children:o_e.map(b=>(0,fl.jsx)(ua.__experimentalToggleGroupControlOption,{value:b,label:(0,Xm.sprintf)((0,Xm.__)("%d%%"),b)},b))})]})]})}var pM=c(U(),1);var ey=c(G(),1),s_e=c(E(),1),i_e={left:np,center:rp,right:ip,"space-between":qy,stretch:Zy};function p$e({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:o,value:r,popoverProps:n,isToolbar:i}){let s=f=>{o(f===r?void 0:f)},a=r?i_e[r]:i_e.left,l=[{name:"left",icon:np,title:(0,ey.__)("Justify items left"),isActive:r==="left",onClick:()=>s("left")},{name:"center",icon:rp,title:(0,ey.__)("Justify items center"),isActive:r==="center",onClick:()=>s("center")},{name:"right",icon:ip,title:(0,ey.__)("Justify items right"),isActive:r==="right",onClick:()=>s("right")},{name:"space-between",icon:qy,title:(0,ey.__)("Space between items"),isActive:r==="space-between",onClick:()=>s("space-between")},{name:"stretch",icon:Zy,title:(0,ey.__)("Stretch items"),isActive:r==="stretch",onClick:()=>s("stretch")}],u=i?pM.ToolbarGroup:pM.ToolbarDropdownMenu,d=i?{isCollapsed:t}:{};return(0,s_e.jsx)(u,{icon:a,popoverProps:n,label:(0,ey.__)("Change items justification"),controls:l.filter(f=>e.includes(f.name)),...d})}var rW=p$e;var nW=c(E(),1),_v=e=>(0,nW.jsx)(rW,{...e,isToolbar:!1}),a_e=e=>(0,nW.jsx)(rW,{...e,isToolbar:!0});var Wi=c(U(),1),xc=c(G(),1),xr=c(F(),1),J_e=c(fe(),1),exe=c(Rt(),1),txe=c(so(),1),oxe=c(jC(),1),EM=c(Q(),1),pW=c(dv(),1);var rxe=c(Bt(),1),TM=c(Vs(),1);var l_=c(U(),1);var mM=c(fe(),1),hM=c(G(),1),l_e=c(F(),1),mf=c(E(),1);function c_e({children:e,settingsOpen:t,setSettingsOpen:o}){let r=(0,mM.useReducedMotion)(),n=r?l_e.Fragment:l_.__unstableAnimatePresence,i=r?"div":l_.__unstableMotion.div,a=`link-control-settings-drawer-${(0,mM.useInstanceId)(c_e)}`;return(0,mf.jsxs)(mf.Fragment,{children:[(0,mf.jsx)(l_.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>o(!t),icon:(0,hM.isRTL)()?Dx:op,"aria-controls":a,children:(0,hM._x)("Advanced","Additional link settings")}),(0,mf.jsx)(n,{children:t&&(0,mf.jsx)(i,{className:"block-editor-link-control__drawer",hidden:!t,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,mf.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}var u_e=c_e;var kM=c(F(),1),dW=c(G(),1),B_e=c(Bt(),1);var IE=c(G(),1),k_e=c(U(),1);var gM=c(G(),1),d_e=c(U(),1),f_e=c(F(),1);var iW=c(E(),1),m$e=({searchTerm:e,onClick:t,itemProps:o,buttonText:r})=>{if(!e)return null;let n;return r?n=typeof r=="function"?r(e):r:n=(0,f_e.createInterpolateElement)((0,gM.sprintf)((0,gM.__)("Create: <mark>%s</mark>"),e),{mark:(0,iW.jsx)("mark",{})}),(0,iW.jsx)(d_e.MenuItem,{...o,iconPosition:"left",icon:Ca,className:"block-editor-link-control__search-item",onClick:t,children:n})},p_e=m$e;var hf=c(G(),1),yM=c(U(),1);var m_e=c(Rt(),1),u_=c(Vs(),1),h_e=c(fe(),1),g_e=c(Bt(),1),c_=c(E(),1),bM={post:{icon:G4,label:(0,hf.__)("Post")},page:{icon:lg,label:(0,hf.__)("Page")},post_tag:{icon:v6,label:(0,hf.__)("Tag")},category:{icon:KF,label:(0,hf.__)("Category")},attachment:{icon:w3,label:(0,hf.__)("Attachment")}};function h$e({isURL:e,suggestion:t}){let o=null;return e?o=Fx:t.type in bM&&(o=bM[t.type].icon,t.type==="page"&&(t.isFrontPage&&(o=o4),t.isBlogHome&&(o=A6))),o?(0,c_.jsx)(gt,{className:"block-editor-link-control__search-item-icon",icon:o}):null}function g$e(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function b$e(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}var y$e=(e,...t)=>(...o)=>e(...o,...t),v$e=e=>t=>t==null||t!==t?e:t;function S$e(e){return e&&(0,h_e.pipe)(u_.safeDecodeURI,u_.getPath,v$e(""),y$e(u_.filterURLForDisplay,24),b$e,g$e)(e)}var b_e=({itemProps:e,suggestion:t,searchTerm:o,onClick:r,isURL:n=!1,shouldShowType:i=!1})=>{let s=n?(0,hf.__)("Press ENTER to add this link"):S$e(t.url);return(0,c_.jsx)(yM.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,c_.jsx)(h$e,{suggestion:t,isURL:n}),onClick:r,shortcut:i&&k$e(t),className:"block-editor-link-control__search-item",children:(0,c_.jsx)(yM.TextHighlight,{text:(0,m_e.__unstableStripHTML)(t.title),highlight:o})})};function k$e(e){return e.isFrontPage?(0,hf.__)("Front page"):e.isBlogHome?(0,hf.__)("Blog home"):e.type in bM?bM[e.type].label:e.type}var y_e=b_e,v_e=e=>((0,g_e.default)("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,c_.jsx)(b_e,{...e}));var S_e=c(G(),1),ty="__CREATE__",sW="tel",vM="link",aW="mailto",lW="internal",d_=[vM,aW,sW,lW],cW=[{id:"opensInNewTab",title:(0,S_e.__)("Open in new tab")}];var __e=c(Bt(),1),oy=c(E(),1);function x_e({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:n,suggestions:i,selectedSuggestion:s,isLoading:a,isInitialSuggestions:l,createSuggestionButtonText:u,suggestionsQuery:d}){let f=$("block-editor-link-control__search-results",{"is-loading":a}),p=i.length===1&&d_.includes(i[0].type),h=e&&!p&&!l,m=!d?.type,g=l?(0,IE.__)("Suggestions"):(0,IE.sprintf)((0,IE.__)('Search results for "%s"'),t);return(0,oy.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,oy.jsx)("div",{...r,className:f,"aria-label":g,children:(0,oy.jsx)(k_e.MenuGroup,{children:i.map((b,v)=>h&&ty===b.type?(0,oy.jsx)(p_e,{searchTerm:t,buttonText:u,onClick:()=>o(b),itemProps:n(b,v),isSelected:v===s},b.type):ty===b.type?null:(0,oy.jsx)(y_e,{itemProps:n(b,v),suggestion:b,index:v,onClick:()=>{o(b)},isSelected:v===s,isURL:d_.includes(b.type),searchTerm:t,shouldShowType:m,isFrontPage:b?.isFrontPage,isBlogHome:b?.isBlogHome},`${b.id}-${b.type}`))})})})}var w_e=x_e,C_e=e=>((0,__e.default)("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,oy.jsx)(x_e,{...e}));var E_e=c(F(),1),T_e=c(Q(),1);var SM=c(Vs(),1);function OE(e){let t=e?.trim();if(!t)return{url:t,type:vM};let o=vM,r=(0,SM.getProtocol)(t)||"";return r.includes("mailto")?o=aW:r.includes("tel")?o=sW:t?.startsWith("#")&&(o=lW),$h(t)||Kh(t)||t.startsWith("?")||r?{url:t,type:o}:{url:(0,SM.prependHTTPS)(t),type:o}}var _$e=()=>Promise.resolve([]),x$e=e=>{let{url:t,type:o}=OE(e);return Promise.resolve([{id:e,title:e,url:t,type:o}])},w$e=async(e,t,o,r,n,i)=>{let{isInitialSuggestions:s}=t,a=await o(e,t);return a.map(l=>Number(l.id)===n?(l.isFrontPage=!0,l):(Number(l.id)===i&&(l.isBlogHome=!0),l)),s||Yh(e)||!r?a:a.concat({title:e,url:e,type:ty})};function R_e(e,t,o){let{fetchSearchSuggestions:r,pageOnFront:n,pageForPosts:i}=(0,T_e.useSelect)(a=>{let{getSettings:l}=a(C);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),s=t?x$e:_$e;return(0,E_e.useCallback)((a,{isInitialSuggestions:l})=>Yh(a)?s(a,{isInitialSuggestions:l}):w$e(a,{...e,isInitialSuggestions:l},r,o,n,i),[s,r,n,i,e,o])}var f_=c(E(),1),C$e=()=>Promise.resolve([]),uW=()=>{},P_e=(0,kM.forwardRef)(({value:e,children:t,currentLink:o={},className:r=null,placeholder:n=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=uW,onChange:a=uW,onSelect:l=uW,showSuggestions:u=!0,renderSuggestions:d=x=>(0,f_.jsx)(w_e,{...x}),fetchSuggestions:f=null,allowDirectEntry:p=!0,showInitialSuggestions:h=!1,suggestionsQuery:m={},withURLSuggestion:g=!0,createSuggestionButtonText:b,hideLabelFromVision:v=!1,suffix:y,isEntity:k=!1,customValidity:S},_)=>{let x=R_e(m,p,i,g),w=u?f||x:C$e,[T,R]=(0,kM.useState)(),B=(M,z)=>{a(M),R(z)},I=M=>d({...M,withCreateSuggestion:i,createSuggestionButtonText:b,suggestionsQuery:m,handleSuggestionClick:z=>{M.handleSuggestionClick&&M.handleSuggestionClick(z),O(z)}}),O=async M=>{let z=M;if(ty===M.type){try{z=await s(M.title),z?.url&&l(z)}catch{}return}if(p||z&&Object.keys(z).length>=1){let{id:V,url:L,kind:D,type:N,...j}=o??{};l({...j,...z},z)}},P=n??(0,dW.__)("Search or type URL"),A=v&&n!==""?P:(0,dW.__)("Link");return(0,f_.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,f_.jsx)(Qm,{disableSuggestions:o?.url===e,label:A,hideLabelFromVision:v,className:r,value:e,onChange:B,placeholder:P,__experimentalRenderSuggestions:u?I:null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,customValidity:S,required:!1,onSubmit:(M,z)=>{let V=M||T;!V&&!e?.trim()?.length?z.preventDefault():O(V||{url:e})},inputRef:_,suffix:y,disabled:k}),t]})}),I_e=P_e,O_e=e=>((0,B_e.default)("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,f_.jsx)(P_e,{...e}));var Jm=c(G(),1),on=c(U(),1),D_e=c(fe(),1),wM=c(Vs(),1);var V_e=c(Rt(),1),CM=c(Q(),1),F_e=c(ss(),1),z_e=c(dv(),1);var A_e=c(U(),1),{Slot:L_e,Fill:N_e}=(0,A_e.createSlotFill)("BlockEditorLinkControlViewer");var M_e=c(Q(),1),_M=c(F(),1);function E$e(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}function T$e(e){let[t,o]=(0,_M.useReducer)(E$e,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,M_e.useSelect)(n=>{let{getSettings:i}=n(C);return{fetchRichUrlData:i().__experimentalFetchRichUrlData}},[]);return(0,_M.useEffect)(()=>{if(e?.length&&r&&typeof AbortController<"u"){o({type:"LOADING"});let n=new window.AbortController,i=n.signal;return r(e,{signal:i}).then(s=>{o({type:"RESOLVED",richData:s})}).catch(()=>{i.aborted||o({type:"ERROR"})}),()=>{n.abort()}}},[e]),t}var xM=T$e;var Ro=c(E(),1),{Badge:R$e}=H(on.privateApis);function j_e({value:e,onEditClick:t,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:n}){let i=(0,CM.useSelect)(b=>b(z_e.store).get("core","showIconLabels"),[]),s=o?e?.url:null,{richData:a,isFetching:l}=xM(s),u=a&&Object.keys(a).length,d=e&&(0,wM.filterURLForDisplay)((0,wM.safeDecodeURI)(e.url),24)||"",f=!e?.url?.length,p=!f&&(0,V_e.__unstableStripHTML)(e?.entityTitle||a?.title||e?.title||d),h;a?.icon?h=(0,Ro.jsx)("img",{src:a?.icon,alt:""}):f?h=(0,Ro.jsx)(gt,{icon:i4,size:32}):h=(0,Ro.jsx)(gt,{icon:Fx});let{createNotice:m}=(0,CM.useDispatch)(F_e.store),g=(0,D_e.useCopyToClipboard)(e.url,()=>{m("info",(0,Jm.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Ro.jsx)(on.Flex,{role:"group","aria-label":(0,Jm.__)("Manage link"),className:$("block-editor-link-control__preview",{"is-current":!0,"is-rich":u,"is-fetching":!!l,"is-preview":!0,"is-error":f,"is-url-title":p===d}),children:(0,Ro.jsxs)(on.Flex,{gap:0,align:"flex-start",children:[(0,Ro.jsxs)(on.Flex,{className:"block-editor-link-control__link-information",role:"figure","aria-label":(0,Jm.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,Ro.jsx)(on.Flex,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,Ro.jsx)("img",{src:e?.image,alt:""})}):(0,Ro.jsx)(on.Flex,{className:$("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:h}),(0,Ro.jsx)(on.Flex,{className:"block-editor-link-control__preview-details",direction:"column",gap:2,children:f?(0,Ro.jsx)("span",{className:"block-editor-link-control__preview-error-notice",children:(0,Jm.__)("Link is empty")}):(0,Ro.jsxs)(Ro.Fragment,{children:[(0,Ro.jsx)(on.ExternalLink,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,Ro.jsx)(on.__experimentalTruncate,{numberOfLines:1,children:p})}),(0,Ro.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,Ro.jsx)(on.__experimentalTruncate,{numberOfLines:1,children:d})}),e?.badges?.length>0&&(0,Ro.jsx)(on.__experimentalHStack,{className:"block-editor-link-control__preview-badges",alignment:"left",gap:1,children:e.badges.map((b,v)=>(0,Ro.jsx)(R$e,{intent:b.intent,children:b.label},`${b.label}|${b.intent}|${v}`))})]})})]}),(0,Ro.jsx)(on.Button,{icon:cg,label:(0,Jm.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,Ro.jsx)(on.Button,{icon:ns,label:(0,Jm.__)("Remove link"),onClick:n,size:"compact",showTooltip:!i}),(0,Ro.jsx)(on.Button,{icon:a3,label:(0,Jm.__)("Copy link"),ref:g,accessibleWhenDisabled:!0,disabled:f,size:"compact",showTooltip:!i}),(0,Ro.jsx)(L_e,{fillProps:e})]})})}var H_e=c(G(),1),U_e=c(U(),1);var ry=c(E(),1),B$e=()=>{},P$e=({value:e,onChange:t=B$e,settings:o})=>{if(!o||!o.length)return null;let r=i=>s=>{t({...e,[i.id]:s})},n=o.map(i=>{if("render"in i){if(typeof i.render=="function"){let s=i.render(i,e,t);return(0,ry.jsx)("div",{className:"block-editor-link-control__setting",children:s},i.id)}return null}return(0,ry.jsx)(U_e.CheckboxControl,{className:"block-editor-link-control__setting",label:i.title,onChange:r(i),checked:e?!!e[i.id]:!1,help:i?.help},i.id)}).filter(Boolean);return(0,ry.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,ry.jsx)(bt,{render:(0,ry.jsx)("legend",{}),children:(0,H_e.__)("Currently selected link settings")}),n]})},G_e=P$e;var W_e=c(G(),1),ny=c(F(),1);function $_e(e){let t=(0,ny.useRef)(),[o,r]=(0,ny.useState)(!1),[n,i]=(0,ny.useState)(null),s=async function(a){r(!0),i(null);try{return t.current=I$e(Promise.resolve(e(a))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw i(l.message||(0,W_e.__)("An unknown error occurred during creation. Please try again.")),l}finally{r(!1)}};return(0,ny.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:s,isCreatingPage:o,errorMessage:n}}var I$e=e=>{let t=!1;return{promise:new Promise((r,n)=>{e.then(i=>t?n({isCanceled:!0}):r(i),i=>n(t?{isCanceled:!0}:i))}),cancel(){t=!0}}};var fW=c(F(),1),q_e=c(Y_e(),1);function Z_e(e){let[t,o]=(0,fW.useState)(e||{}),[r,n]=(0,fW.useState)(e);return(0,q_e.default)(e,r)||(n(e),o(e)),[t,o,l=>{o({...t,url:l})},l=>{o({...t,title:l})},l=>u=>{let d=Object.keys(u).reduce((f,p)=>(l.includes(p)&&(f[p]=u[p]),f),{});o({...t,...d})}]}var Fo=c(E(),1),mW=()=>{},X_e="core/block-editor",Q_e="linkControlSettingsDrawer";function iy({searchInputPlaceholder:e,value:t,settings:o=cW,onChange:r=mW,onInputChange:n,onRemove:i,onCancel:s,noDirectEntry:a=!1,showSuggestions:l=!0,showInitialSuggestions:u,forceIsEditingLink:d,createSuggestion:f,withCreateSuggestion:p,inputValue:h="",suggestionsQuery:m={},noURLSuggestion:g=!1,createSuggestionButtonText:b,hasRichPreviews:v=!1,hasTextControl:y=!1,renderControlBottom:k=null,handleEntities:S=!1}){p===void 0&&f&&(p=!0);let[_,x]=(0,xr.useState)(!1),[w,T]=(0,xr.useState)(void 0),{advancedSettingsPreference:R}=(0,EM.useSelect)(je=>({advancedSettingsPreference:je(pW.store).get(X_e,Q_e)??!1}),[]),{set:B}=(0,EM.useDispatch)(pW.store),I=je=>{B&&B(X_e,Q_e,je),x(je)},O=R||_,P=(0,xr.useRef)(!0),A=(0,xr.useRef)(),M=(0,xr.useRef)(),z=(0,xr.useRef)(),V=(0,xr.useRef)(),L=o.map(({id:je})=>je),[D,N,j,X,J]=Z_e(t),te=je=>{j(je),n?.(je)},ee=S&&!!D?.id,W=(0,J_e.useInstanceId)(iy,"link-control"),K=ee?`${W}__help`:null,Y=t&&!(0,oxe.isShallowEqualObjects)(D,t),[Z,oe]=(0,xr.useState)(d!==void 0?d:!t||!t.url),{createPage:ie,isCreatingPage:q,errorMessage:re}=$_e(f);(0,xr.useEffect)(()=>{d!==void 0&&oe(d)},[d]),(0,xr.useEffect)(()=>{if(P.current)return;(exe.focus.focusable.find(A.current)[0]||A.current).focus()},[Z,q]),(0,xr.useEffect)(()=>(P.current=!1,()=>{P.current=!0}),[]);let ae=(0,xr.useRef)();(0,xr.useEffect)(()=>{if(ae.current===void 0){ae.current=h;return}ae.current!==h&&(console.warn("LinkControl: The inputValue prop is uncontrolled and only sets the initial value. onInputChange is an observer for the input value. Changes to inputValue from the parent will not update the search input."),ae.current=h)},[h]),(0,xr.useEffect)(()=>{if(w?.type==="invalid"){let je=z.current;je&&typeof je.reportValidity=="function"&&je.reportValidity()}},[w]);let ye=t?.url?.trim()?.length>0,xe=()=>{oe(!1)},he=je=>{let _e={type:"invalid",message:(0,xc.__)("Please enter a valid URL.")},He={type:"valid"},$e=je?.trim();if(!$e?.length||!Yh($e))return _e;if($h($e)||Kh($e))return He;let Ke=(0,TM.prependHTTPS)($e);return(0,TM.isURL)(Ke)?He:_e},ge=je=>{if(!(je&&je.id&&je.type&&!d_.includes(je.type))){let $e=je?.url||we,Ke=he($e);if(Ke.type==="invalid"){T(Ke);return}let{url:ct}=OE($e);je={...je,url:ct}}je?.kind==="taxonomy"&&je?.url&&(V.current=je.url);let He=Object.keys(je).reduce(($e,Ke)=>(L.includes(Ke)||($e[Ke]=je[Ke]),$e),{});r({...D,...He,title:D?.title||je?.title}),T(void 0),xe()},me=()=>{if(ot)return!1;let je=we.trim(),_e=D&&D.id&&D.type&&!d_.includes(D.type),He=t?.url===je;if(_e&&He)return T(void 0),!0;let $e=he(we);return $e.type==="invalid"?(T($e),!1):(T(void 0),!0)},ke=()=>{Y&&r({...t,...D,url:OE(we).url}),xe(),T(void 0)},ve=()=>{me()&&ke()},Ee=je=>{let{keyCode:_e}=je;_e===txe.ENTER&&!ot&&(je.preventDefault(),ve())},Re=()=>{N(t)},se=je=>{je.preventDefault(),je.stopPropagation(),Re(),T(void 0),ye?xe():i?.(),s?.()},[ne,Ae]=(0,xr.useState)(!1),be=()=>{let{id:je,kind:_e,type:He,...$e}=D;N({...$e,id:void 0,kind:void 0,type:void 0,url:void 0}),Ae(!0)};(0,xr.useEffect)(()=>{ne&&(z.current?.focus(),Ae(!1))},[ne]);let we=D?.url!==void 0?D.url:h||"",ot=!we?.trim()?.length;(0,xr.useEffect)(()=>{T(void 0)},[we]);let vt=!w,at=i&&t&&!Z&&!q,St=Z&&ye,rt=ye&&y,Vt=(Z||!t)&&!q,lt=ot||!vt||t&&!Y,no=!!o?.length&&Z&&ye,ho=(0,xr.useMemo)(()=>t?.kind==="taxonomy"&&!t?.url&&V.current?{...t,url:V.current}:t,[t]);return(0,Fo.jsxs)("div",{tabIndex:-1,ref:A,className:"block-editor-link-control",children:[q&&(0,Fo.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,Fo.jsx)(Wi.Spinner,{})," ",(0,xc.__)("Creating"),"\u2026"]}),Vt&&(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsxs)("div",{className:$({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":rt,"has-actions":St}),children:[rt&&(0,Fo.jsx)(Wi.TextControl,{ref:M,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,xc.__)("Text"),value:D?.title,onChange:X,onKeyDown:Ee}),(0,Fo.jsx)(I_e,{ref:z,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:we,withCreateSuggestion:p,onCreateSuggestion:ie,onChange:te,onSelect:ge,showInitialSuggestions:u,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:m,withURLSuggestion:!g,createSuggestionButtonText:b,hideLabelFromVision:!rt,isEntity:ee,customValidity:w,suffix:(0,Fo.jsx)(O$e,{isEntity:ee,showActions:St,isDisabled:lt,onUnlink:be,onSubmit:ve,helpTextId:K})}),ee&&K&&(0,Fo.jsx)("p",{id:K,className:"block-editor-link-control__help",children:(0,xc.sprintf)((0,xc.__)("Synced with the selected %s."),D?.type||"item")})]}),re&&(0,Fo.jsx)(Wi.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:re})]}),t&&!Z&&!q&&(0,Fo.jsx)(j_e,{value:ho,onEditClick:()=>oe(!0),hasRichPreviews:v,hasUnlinkControl:at,onRemove:()=>{i(),oe(!0)}},ho?.url),no&&(0,Fo.jsx)("div",{className:"block-editor-link-control__tools",children:!ot&&(0,Fo.jsx)(u_e,{settingsOpen:O,setSettingsOpen:I,children:(0,Fo.jsx)(G_e,{value:D,settings:o,onChange:J(L)})})}),St&&(0,Fo.jsxs)(Wi.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,Fo.jsx)(Wi.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:se,children:(0,xc.__)("Cancel")}),(0,Fo.jsx)(Wi.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:lt?mW:ve,className:"block-editor-link-control__search-submit","aria-disabled":lt,children:(0,xc.__)("Apply")})]}),!q&&k&&k()]})}function O$e({isEntity:e,showActions:t,isDisabled:o,onUnlink:r,onSubmit:n,helpTextId:i}){if(e)return(0,Fo.jsx)(Wi.Button,{icon:ns,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,xc.__)("Unsync and edit"),__next40pxDefaultSize:!0});if(!t)return(0,Fo.jsx)(Wi.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Fo.jsx)(Wi.Button,{onClick:o?mW:n,label:(0,xc.__)("Submit"),icon:sd,className:"block-editor-link-control__search-submit","aria-disabled":o,size:"small"})})}iy.ViewerFill=N_e;iy.DEFAULT_LINK_SETTINGS=cW;var RM=e=>((0,rxe.default)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,Fo.jsx)(iy,{...e}));RM.ViewerFill=iy.ViewerFill;RM.DEFAULT_LINK_SETTINGS=iy.DEFAULT_LINK_SETTINGS;var eh=iy;var ixe=c(G(),1),sxe=c(U(),1);var AE=1.5,hW=.01,gW=10,bW="";function nxe(e){return e!==void 0&&e!==bW}var yW=c(E(),1),A$e=({__next40pxDefaultSize:e,value:t,onChange:o,__unstableInputWidth:r="60px",...n})=>{let i=nxe(t),s=(d,f)=>{if(i)return d;let p=hW*gW;switch(`${d}`){case`${p}`:return AE+p;case"0":return f?d:AE-p;case"":return AE;default:return d}},a=(d,f)=>{let p=["insertText","insertFromPaste"].includes(f.payload.event.nativeEvent?.inputType),h=s(d.value,p);return{...d,value:h}},l=i?t:bW;return(0,yW.jsx)("div",{className:"block-editor-line-height-control",children:(0,yW.jsx)(sxe.__experimentalNumberControl,{placeholder:AE,...n,__unstableInputWidth:r,__unstableStateReducer:a,onChange:(d,{event:f})=>{if(d===""){o();return}if(f.type==="click"){o(s(`${d}`,!1));return}o(`${d}`)},label:(0,ixe.__)("Line height"),step:hW,spinFactor:gW,value:l,min:0,spinControls:"custom"})})},BM=A$e;var Iu=c(G(),1),axe=c(Xr(),1),$i=c(U(),1),IM=c(Q(),1),lxe=c(so(),1);var cxe=c(fe(),1),uxe=c(Rt(),1),dxe=c(ss(),1),fxe=c(F(),1);function PM(e,t,o){if(o)return o;if(!t||typeof t!="object"||Object.keys(t).length===0)return e&&e.length>0?e.map(n=>`${n}/*`).join(","):void 0;if(!e||e.length===0)return;let r=[];for(let[,n]of Object.entries(t))e.some(s=>s.includes("/")?n===s:n.startsWith(`${s}/`))&&r.push(n);return r.length>0?r.join(","):e.map(n=>`${n}/*`).join(",")}var On=c(E(),1),L$e=()=>{},N$e=0,M$e=({mediaURL:e,mediaId:t,mediaIds:o,allowedTypes:r,accept:n,onError:i,onSelect:s,onSelectURL:a,onReset:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:f=L$e,name:p=(0,Iu.__)("Replace"),createNotice:h,removeNotice:m,children:g,multiple:b=!1,addToGallery:v,handleUpload:y=!0,variant:k,popoverProps:S,renderToggle:_,className:x})=>{let{mediaUpload:w,allowedMimeTypes:T}=(0,IM.useSelect)(L=>{let{getSettings:D}=L(C),N=D();return{mediaUpload:N.mediaUpload,allowedMimeTypes:N.allowedMimeTypes}},[]),R=`block-editor/media-replace-flow/error-notice/${++N$e}`,B=(0,fxe.useMemo)(()=>PM(r,T,n),[r,T,n]),I=L=>{let D=(0,uxe.__unstableStripHTML)(L);if(i){i(D);return}setTimeout(()=>{h("error",D,{speak:!0,id:R,isDismissible:!0})},1e3)},O=(L,D)=>{d&&u&&u(),D(),s(L),(0,axe.speak)((0,Iu.__)("The media file has been replaced")),m(R)},P=(L,D)=>{let N=L.target.files;if(!y)return D(),s(N);f(N),w({allowedTypes:r,filesList:N,onFileChange:([j])=>{O(j,D)},onError:I})},A=L=>{L.keyCode===lxe.DOWN&&(L.preventDefault(),L.target.click())},z=b&&(!r||r.length===0?!1:r.every(L=>L==="image"||L.startsWith("image/"))),V={...S,variant:k};return(0,On.jsx)($i.Dropdown,{popoverProps:V,className:x,contentClassName:$("block-editor-media-replace-flow__options",k&&`is-variant-${k}`),renderToggle:({isOpen:L,onToggle:D})=>_?_({"aria-expanded":L,"aria-haspopup":"true",onClick:D,onKeyDown:A,children:p}):(0,On.jsx)($i.ToolbarButton,{"aria-expanded":L,"aria-haspopup":"true",onClick:D,onKeyDown:A,children:p}),renderContent:({onClose:L})=>(0,On.jsxs)(On.Fragment,{children:[(0,On.jsxs)($i.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,On.jsxs)(Xs,{children:[(0,On.jsx)(bu,{gallery:z,addToGallery:v,multiple:b,value:b?o:t,onSelect:D=>O(D,L),allowedTypes:r,render:({open:D})=>(0,On.jsx)($i.MenuItem,{icon:Xy,onClick:D,children:(0,Iu.__)("Open Media Library")})}),(0,On.jsx)($i.FormFileUpload,{onChange:D=>{P(D,L)},accept:B,multiple:!!b,render:({openFileDialog:D})=>(0,On.jsx)($i.MenuItem,{icon:I6,onClick:()=>{D()},children:(0,Iu._x)("Upload","verb")})})]}),u&&(0,On.jsx)($i.MenuItem,{icon:H4,onClick:u,isPressed:d,children:(0,Iu.__)("Use featured image")}),typeof g=="function"?g({onClose:L}):g,e&&l&&(0,On.jsx)($i.MenuItem,{onClick:()=>{l(),L()},children:(0,Iu.__)("Reset")})]}),a&&(0,On.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,On.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,Iu.__)("Current media URL:")}),(0,On.jsx)(eh,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:D})=>{a(D)},searchInputPlaceholder:(0,Iu.__)("Paste or type URL")})]})]})})},p_=(0,cxe.compose)([(0,IM.withDispatch)(e=>{let{createNotice:t,removeNotice:o}=e(dxe.store);return{createNotice:t,removeNotice:o}}),(0,$i.withFilters)("editor.MediaReplaceFlow")])(M$e);var $r=c(U(),1),Wr=c(G(),1),nh=c(F(),1),Exe=c(Q(),1);var Txe=c(Bt(),1);var SW=c(G(),1),AM=c(F(),1),m_=c(U(),1);var Cxe=c(Bt(),1);var hxe=c(G(),1),gxe=c(U(),1);var pxe=c(U(),1),OM=c(Vs(),1),vW=c(E(),1);function mxe({url:e,urlLabel:t,className:o}){let r=$(o,"block-editor-url-popover__link-viewer-url");return e?(0,vW.jsx)(pxe.ExternalLink,{className:r,href:e,children:t||(0,OM.filterURLForDisplay)((0,OM.safeDecodeURI)(e))}):(0,vW.jsx)("span",{className:r})}var LE=c(E(),1);function bxe({className:e,linkClassName:t,onEditLinkClick:o,url:r,urlLabel:n,...i}){return(0,LE.jsxs)("div",{className:$("block-editor-url-popover__link-viewer",e),...i,children:[(0,LE.jsx)(mxe,{url:r,urlLabel:n,className:t}),o&&(0,LE.jsx)(gxe.Button,{icon:cg,label:(0,hxe.__)("Edit"),onClick:o,size:"compact"})]})}var _xe=c(G(),1),xxe=c(U(),1);var gf=c(G(),1),NE=c(F(),1),wc=c(so(),1),Cs=c(U(),1),th=c(fe(),1),yxe=c(Q(),1),vxe=c(Vs(),1);var Ou=c(E(),1),Sxe=c(ue(),1),{ValidatedInputControl:D$e}=H(Cs.privateApis);function kxe(e){return typeof e=="function"}var V$e=class extends NE.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,NE.createRef)(),this.inputRef=e.inputRef||(0,NE.createRef)(),this.hasRenderedValidation={current:!1},this.updateSuggestions=(0,th.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){let{showSuggestions:t,selectedSuggestion:o}=this.state,{value:r,__experimentalShowInitialSuggestions:n=!1}=this.props;t&&o!==null&&this.suggestionNodes[o]&&this.suggestionNodes[o].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),e.value!==r&&!this.props.disableSuggestions&&(r?.length?this.updateSuggestions(r):n&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){let{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){let{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:o}=this.props;if(!t)return;let r=!e?.length;if(e=e.trim(),!r&&(e.length<2||!o&&(0,vxe.isURL)(e))){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});return}this.setState({selectedSuggestion:null,loading:!0});let n=t(e,{isInitialSuggestions:r});n.then(i=>{this.suggestionsRequest===n&&(this.setState({suggestions:i,suggestionsValue:e,loading:!1,showSuggestions:!!i.length}),i.length?this.props.debouncedSpeak((0,gf.sprintf)((0,gf._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",i.length),i.length),"assertive"):this.props.debouncedSpeak((0,gf.__)("No results."),"assertive"))}).catch(()=>{this.suggestionsRequest===n&&this.setState({loading:!1})}).finally(()=>{this.suggestionsRequest===n&&(this.suggestionsRequest=null)}),this.suggestionsRequest=n}onChange(e){this.props.onChange(e)}onFocus(){let{suggestions:e}=this.state,{disableSuggestions:t,value:o}=this.props;o&&!t&&!(e&&e.length)&&this.suggestionsRequest===null&&this.updateSuggestions(o)}onKeyDown(e){this.props.onKeyDown?.(e);let{showSuggestions:t,selectedSuggestion:o,suggestions:r,loading:n}=this.state;if(!t||!r.length||n){switch(e.keyCode){case wc.UP:{e.target.selectionStart!==0&&(e.preventDefault(),e.target.setSelectionRange(0,0));break}case wc.DOWN:{this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break}case wc.ENTER:{this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e));break}}return}let i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case wc.UP:{e.preventDefault();let s=o?o-1:r.length-1;this.setState({selectedSuggestion:s});break}case wc.DOWN:{e.preventDefault();let s=o===null||o===r.length-1?0:o+1;this.setState({selectedSuggestion:s});break}case wc.TAB:{this.state.selectedSuggestion!==null&&(this.selectLink(i),this.props.speak((0,gf.__)("Link selected.")));break}case wc.ENTER:{e.preventDefault(),this.state.selectedSuggestion!==null?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,e)):this.props.onSubmit&&this.props.onSubmit(null,e);break}}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:o,__experimentalShowInitialSuggestions:r=!1},{showSuggestions:n}){let i=n,s=e&&e.length;return!r&&!s&&(i=!1),o===!0&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,Ou.jsxs)(Ou.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){let{label:e=null,className:t,isFullWidth:o,instanceId:r,placeholder:n=(0,gf.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:s="",hideLabelFromVision:a=!1,help:l=null,disabled:u=!1,customValidity:d,markWhenOptional:f}=this.props,{loading:p,showSuggestions:h,selectedSuggestion:m,suggestionsListboxId:g,suggestionOptionIdPrefix:b}=this.state,v=`url-input-control-${r}`,y={id:v,label:e,className:$("block-editor-url-input",t,{"is-full-width":o}),hideLabelFromVision:a},k={id:v,value:s,required:this.props.required??!0,type:"text",name:v,autoComplete:"off",onChange:u?()=>{}:this.onChange,onFocus:u?()=>{}:this.onFocus,placeholder:n,onKeyDown:u?()=>{}:this.onKeyDown,role:"combobox","aria-label":e?void 0:(0,gf.__)("URL"),"aria-expanded":h,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":m!==null?`${b}-${m}`:void 0,ref:this.inputRef,disabled:u,suffix:this.props.suffix,help:l},S={customValidity:d,...f!==void 0&&{markWhenOptional:f}};if(i)return i(y,k,p);d!==void 0&&(this.hasRenderedValidation.current=!0);let _=this.hasRenderedValidation.current?D$e:Cs.__experimentalInputControl;return(0,Ou.jsxs)(Cs.BaseControl,{...y,children:[(0,Ou.jsx)(_,{...k,...this.hasRenderedValidation.current?S:{},__next40pxDefaultSize:!0}),p&&(0,Ou.jsx)(Cs.Spinner,{})]})}renderSuggestions(){let{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:o,suggestions:r,suggestionsValue:n,selectedSuggestion:i,suggestionsListboxId:s,suggestionOptionIdPrefix:a,loading:l}=this.state;if(!o||r.length===0)return null;let u={id:s,ref:this.autocompleteRef,role:"listbox"},d=(f,p)=>({role:"option",tabIndex:"-1",id:`${a}-${p}`,ref:this.bindSuggestionNode(p),"aria-selected":p===i?!0:void 0});return kxe(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:u,buildSuggestionItemProps:d,isLoading:l,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!n?.length,currentInputValue:n}):(0,Ou.jsx)(Cs.Popover,{placement:"bottom",focusOnMount:!1,children:(0,Ou.jsx)("div",{...u,className:$("block-editor-url-input__suggestions",{[`${e}__suggestions`]:e}),children:r.map((f,p)=>(0,Sxe.createElement)(Cs.Button,{__next40pxDefaultSize:!0,...d(f,p),key:f.id,className:$("block-editor-url-input__suggestion",{"is-selected":p===i}),onClick:()=>this.handleOnClick(f)},f.title))})})}},Qm=(0,th.compose)(th.withSafeTimeout,Cs.withSpokenMessages,th.withInstanceId,(0,yxe.withSelect)((e,t)=>{if(kxe(t.__experimentalFetchLinkSuggestions))return;let{getSettings:o}=e(C);return{__experimentalFetchLinkSuggestions:o().__experimentalFetchLinkSuggestions}}))(V$e);var ME=c(E(),1);function wxe({autocompleteRef:e,className:t,onChangeInputValue:o,value:r,...n}){return(0,ME.jsxs)("form",{className:$("block-editor-url-popover__link-editor",t),...n,children:[(0,ME.jsx)(Qm,{value:r,onChange:o,autocompleteRef:e}),(0,ME.jsx)(xxe.Button,{icon:sd,label:(0,_xe.__)("Apply"),type:"submit",size:"compact"})]})}var oh=c(E(),1),{__experimentalPopoverLegacyPositionToPlacement:F$e}=H(m_.privateApis),z$e="bottom",kW=(0,AM.forwardRef)(({additionalControls:e,children:t,renderSettings:o,placement:r,focusOnMount:n="firstElement",position:i,...s},a)=>{i!==void 0&&(0,Cxe.default)("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;r!==void 0?l=r:i!==void 0&&(l=F$e(i)),l=l||z$e;let[u,d]=(0,AM.useState)(!1),f=!!o&&u,p=()=>{d(!u)};return(0,oh.jsxs)(m_.Popover,{ref:a,role:"dialog","aria-modal":"true","aria-label":(0,SW.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:n,placement:l,shift:!0,variant:"toolbar",...s,children:[(0,oh.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,oh.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!o&&(0,oh.jsx)(m_.Button,{className:"block-editor-url-popover__settings-toggle",icon:cn,label:(0,SW.__)("Link settings"),onClick:p,"aria-expanded":u,size:"compact"})]})}),f&&(0,oh.jsx)("div",{className:"block-editor-url-popover__settings",children:o()}),e&&!f&&(0,oh.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});kW.LinkEditor=wxe;kW.LinkViewer=bxe;var rh=kW;var qt=c(E(),1),j$e=()=>{},H$e=({src:e,onChange:t,onSubmit:o,onClose:r,popoverAnchor:n})=>(0,qt.jsx)(rh,{anchor:n,onClose:r,children:(0,qt.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o,children:(0,qt.jsx)($r.__experimentalInputControl,{label:(0,Wr.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,Wr.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,qt.jsx)($r.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,qt.jsx)($r.Button,{size:"small",icon:sd,label:(0,Wr.__)("Apply"),type:"submit"})})})})}),U$e=({src:e,onChangeSrc:t,onSelectURL:o})=>{let[r,n]=(0,nh.useState)(null),[i,s]=(0,nh.useState)(!1),a=()=>{s(!0)},l=()=>{s(!1),r?.focus()},u=d=>{d.preventDefault(),e&&o&&(o(e),l())};return(0,qt.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,qt.jsx)($r.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:a,isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:n,children:(0,Wr.__)("Insert from URL")}),i&&(0,qt.jsx)(H$e,{src:e,onChange:t,onSubmit:u,onClose:l,popoverAnchor:r})]})};function G$e({value:e={},allowedTypes:t,className:o,icon:r,labels:n={},mediaPreview:i,notices:s,isAppender:a,accept:l,addToGallery:u,multiple:d=!1,handleUpload:f=!0,disableDropZone:p,disableMediaButtons:h,onError:m,onSelect:g,onCancel:b,onSelectURL:v,onToggleFeaturedImage:y,onDoubleClick:k,onFilesPreUpload:S=j$e,onHTMLDrop:_,children:x,mediaLibraryButton:w,placeholder:T,style:R}){_&&(0,Txe.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});let{mediaUpload:B,allowedMimeTypes:I}=(0,Exe.useSelect)(W=>{let{getSettings:K}=W(C),Y=K();return{mediaUpload:Y.mediaUpload,allowedMimeTypes:Y.allowedMimeTypes}},[]),[O,P]=(0,nh.useState)("");(0,nh.useEffect)(()=>{P(e?.src??"")},[e?.src]);let A=(0,nh.useMemo)(()=>PM(t,I,l),[t,I,l]),M=()=>!t||t.length===0?!1:t.every(W=>W==="image"||W.startsWith("image/")),z=W=>{if(!f||typeof f=="function"&&!f(W))return g(W);S(W);let K;if(d)if(u){let Y=[];K=Z=>{let oe=(e??[]).filter(ie=>ie.id?!Y.some(({id:q})=>Number(q)===Number(ie.id)):!Y.some(({urlSlug:q})=>ie.url.includes(q)));g(oe.concat(Z)),Y=Z.map(ie=>{let q=ie.url.lastIndexOf("."),re=ie.url.slice(0,q);return{id:ie.id,urlSlug:re}})}}else K=g;else K=([Y])=>g(Y);B({allowedTypes:t,filesList:W,onFileChange:K,onError:m,multiple:d})};async function V(W){let{blocks:K}=m9(W);if(!K?.length)return;let Y=await Promise.all(K.map(Z=>{let oe=Z.name.split("/")[1];return Z.attributes.id?(Z.attributes.type=oe,Z.attributes):new Promise((ie,q)=>{window.fetch(Z.attributes.url).then(re=>re.blob()).then(re=>B({filesList:[re],additionalData:{title:Z.attributes.title,alt_text:Z.attributes.alt,caption:Z.attributes.caption,type:oe},onFileChange:([ae])=>{ae.id&&ie(ae)},allowedTypes:t,onError:q})).catch(()=>ie(Z.attributes.url))})})).catch(Z=>m(Z));Y?.length&&g(d?Y:Y[0])}let L=W=>{z(W.target.files)},N=T??(W=>{let{instructions:K,title:Y}=n;if(!B&&!v&&(K=(0,Wr.__)("To edit this block, you need permission to upload media.")),K===void 0||Y===void 0){let oe=t??[],[ie]=oe,q=oe.length===1,re=q&&ie==="audio",ae=q&&ie==="image",ye=q&&ie==="video";K===void 0&&B&&(K=(0,Wr.__)("Drag and drop an image or video, upload, or choose from your library."),re?K=(0,Wr.__)("Drag and drop an audio file, upload, or choose from your library."):ae?K=(0,Wr.__)("Drag and drop an image, upload, or choose from your library."):ye&&(K=(0,Wr.__)("Drag and drop a video, upload, or choose from your library."))),Y===void 0&&(Y=(0,Wr.__)("Media"),re?Y=(0,Wr.__)("Audio"):ae?Y=(0,Wr.__)("Image"):ye&&(Y=(0,Wr.__)("Video")))}let Z=$("block-editor-media-placeholder",o,{"is-appender":a});return(0,qt.jsxs)($r.Placeholder,{icon:r,label:Y,instructions:K,className:Z,notices:s,onDoubleClick:k,preview:i,style:R,children:[W,x]})}),j=()=>p?null:(0,qt.jsx)($r.DropZone,{onFilesDrop:z,onDrop:V,isEligible:W=>{let K="wp-block:core/",Y=[];for(let Z of W.types)Z.startsWith(K)&&Y.push(Z.slice(K.length));return Y.every(Z=>t.includes(Z))&&(d?!0:Y.length===1)}}),X=()=>b&&(0,qt.jsx)($r.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,Wr.__)("Cancel"),variant:"link",onClick:b,children:(0,Wr.__)("Cancel")}),J=()=>v&&(0,qt.jsx)(U$e,{src:O,onChangeSrc:P,onSelectURL:v}),te=()=>y&&(0,qt.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,qt.jsx)($r.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,Wr.__)("Use featured image")})}),ee=()=>{let K=w??(({open:Z})=>(0,qt.jsx)($r.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{Z()},children:(0,Wr.__)("Media Library")})),Y=(0,qt.jsx)(bu,{addToGallery:u,gallery:d&&M(),multiple:d,onSelect:g,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:Z})=>Z):e.id,render:K});if(B&&a)return(0,qt.jsxs)(qt.Fragment,{children:[j(),(0,qt.jsx)($r.FormFileUpload,{onChange:L,accept:A,multiple:!!d,render:({openFileDialog:Z})=>{let oe=(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)($r.Button,{__next40pxDefaultSize:!0,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:Z,children:(0,Wr._x)("Upload","verb")}),Y,J(),te(),X()]});return N(oe)}})]});if(B){let Z=(0,qt.jsxs)(qt.Fragment,{children:[j(),(0,qt.jsx)($r.FormFileUpload,{render:({openFileDialog:oe})=>(0,qt.jsx)($r.Button,{__next40pxDefaultSize:!0,onClick:oe,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,Wr._x)("Upload","verb")}),onChange:L,accept:A,multiple:!!d}),Y,J(),te(),X()]});return N(Z)}return N(Y)};return h?(0,qt.jsx)(Xs,{children:j()}):(0,qt.jsx)(Xs,{fallback:N(J()),children:ee()})}var Rxe=(0,$r.withFilters)("editor.MediaPlaceholder")(G$e);var Bxe=c(E(),1),W$e=({colorSettings:e,...t})=>{let o=e.map(r=>{if(!r)return r;let{value:n,onChange:i,...s}=r;return{...s,colorValue:n,onColorChange:i}});return(0,Bxe.jsx)(tM,{settings:o,gradients:[],disableCustomGradients:!0,...t})},Pxe=W$e;var Lwe=c($z(),1);var Nwe=c(F(),1);var Iwe=c(F(),1);var wwe=c(Zh(),1),Zn=c(F(),1),yf=c(Q(),1),$M=c(fe(),1),Cwe=c($o(),1),Ewe=c(U(),1),Twe=c(ce(),1),Rwe=c(Bt(),1),__=c(G(),1);var Ixe=c(G(),1),LM=c(U(),1);var _W=c(G(),1),sy=c(U(),1);var bf=c(E(),1),$$e={placement:"bottom-start"},K$e=()=>(0,bf.jsxs)(bf.Fragment,{children:[["bold","italic","link","unknown"].map(e=>(0,bf.jsx)(sy.Slot,{name:`RichText.ToolbarControls.${e}`},e)),(0,bf.jsx)(sy.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;let o=e.map(([{props:r}])=>r).some(({isActive:r})=>r);return(0,bf.jsx)(sy.ToolbarItem,{children:r=>(0,bf.jsx)(sy.DropdownMenu,{icon:cn,label:(0,_W.__)("More"),toggleProps:{...r,className:$(r.className,{"is-pressed":o}),description:(0,_W.__)("Displays more block tools")},controls:$c(e.map(([{props:n}])=>n),"title"),popoverProps:$$e})})}})]}),xW=K$e;var ih=c(E(),1);function Y$e({popoverAnchor:e}){return(0,ih.jsx)(LM.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,ih.jsx)(Ck,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,Ixe.__)("Format tools"),children:(0,ih.jsx)(LM.ToolbarGroup,{children:(0,ih.jsx)(xW,{})})})})}var q$e=({inline:e,editableContentElement:t})=>e?(0,ih.jsx)(Y$e,{popoverAnchor:t}):(0,ih.jsx)(No,{group:"inline",children:(0,ih.jsx)(xW,{})}),Oxe=q$e;var NM=c(F(),1),Axe=c(Q(),1);function Lxe({html:e,value:t}){let o=(0,NM.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:n}=(0,Axe.useDispatch)(C);(0,NM.useLayoutEffect)(()=>{if(!o.current){o.current=t.text;return}if(o.current!==t.text){let i=window.setTimeout(()=>{n()},1e3);return o.current=t.text,()=>{window.clearTimeout(i)}}n()},[e,r])}var v_=c(F(),1),awe=c(fe(),1);var ay=c($o(),1),Nxe=c(bo(),1);var{subscribeOwnedListener:Z$e}=H(ay.privateApis),X$e=["`",'"',"'","\u201C\u201D","\u2018\u2019"],Mxe=e=>t=>{function o(r){let{inputType:n,data:i}=r,{value:s,onChange:a,registry:l}=e.current;if(n!=="insertText"||(0,ay.isCollapsed)(s))return;let u=(0,Nxe.applyFilters)("blockEditor.wrapSelectionSettings",X$e).find(([_,x])=>_===i||x===i);if(!u)return;let[d,f=d]=u,p=s.start,h=s.end+d.length,m=(0,ay.insert)(s,d,p,p);m=(0,ay.insert)(m,f,h,h);let{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:b}=l.dispatch(C);g(),a(m),b();let v={};for(let _ in r)v[_]=r[_];v.data=f;let{ownerDocument:y}=t,{defaultView:k}=y,S=new k.InputEvent("input",v);window.queueMicrotask(()=>{t.dispatchEvent(S)}),r.preventDefault()}return Z$e(t,"beforeinput",o,!0)};var g_=c($o(),1),h_=c(ce(),1);var Dxe=c($o(),1);function Vxe(e){let t="tales of gutenberg",o=" \u{1F421}\u{1F422}\u{1F980}\u{1F424}\u{1F98B}\u{1F418}\u{1F427}\u{1F439}\u{1F981}\u{1F984}\u{1F98D}\u{1F43C}\u{1F43F}\u{1F383}\u{1F434}\u{1F41D}\u{1F406}\u{1F995}\u{1F994}\u{1F331}\u{1F347}\u03C0\u{1F34C}\u{1F409}\u{1F4A7}\u{1F968}\u{1F30C}\u{1F342}\u{1F360}\u{1F966}\u{1F95A}\u{1F95D}\u{1F39F}\u{1F965}\u{1F952}\u{1F6F5}\u{1F956}\u{1F352}\u{1F36F}\u{1F3BE}\u{1F3B2}\u{1F43A}\u{1F41A}\u{1F42E}\u231B\uFE0F",{start:r,text:n}=e;return r<t.length||n.slice(r-t.length,r).toLowerCase()!==t?e:(0,Dxe.insert)(e,o)}var{subscribeOwnedListener:Fxe}=H(g_.privateApis);function zxe(e){let t=e.length;for(;t--;){let o=Tw(e[t].attributes);if(o)return e[t].attributes[o]=e[t].attributes[o].toString().replace(hd,""),[e[t].clientId,o,0,0];let r=zxe(e[t].innerBlocks);if(r)return r}return[]}var jxe=e=>t=>{function o(){let{getValue:s,onReplace:a,selectionChange:l,registry:u}=e.current;if(!a)return;let d=s(),{start:f,text:p}=d;if(p.slice(f-1,f)!==" ")return;let m=p.slice(0,f).trim(),g=(0,h_.getBlockTransforms)("from").filter(({type:k})=>k==="prefix"),b=(0,h_.findTransform)(g,({prefix:k})=>m===k);if(!b)return;let v=(0,g_.toHTMLString)({value:(0,g_.insert)(d,hd,0,f)}),y=b.transform(v);return l(...zxe([y])),a([y]),u.dispatch(C).__unstableMarkAutomaticChange(),!0}function r(s){let{inputType:a,type:l}=s,{getValue:u,onChange:d,__unstableAllowPrefixTransformations:f,formatTypes:p,registry:h,onReplace:m}=e.current;if(a!=="insertText"&&l!=="compositionend"||f&&o())return;let g=u(),b=(0,h_.getBlockTransforms)("from").filter(_=>_.type==="input"),v=(0,h_.findTransform)(b,_=>_.regExp.test(g.text));if(v){m(v.transform()),h.dispatch(C).__unstableMarkAutomaticChange();return}let y=p.reduce((_,{__unstableInputRule:x})=>(x&&(_=x(_)),_),Vxe(g)),{__unstableMarkLastChangeAsPersistent:k,__unstableMarkAutomaticChange:S}=h.dispatch(C);y!==g&&(k(),d({...y,activeFormats:g.activeFormats}),S())}let n=Fxe(t,"input",r,!0),i=Fxe(t,"compositionend",r,!0);return()=>{n(),i()}};var Hxe=c($o(),1);var{subscribeOwnedListener:Q$e}=H(Hxe.privateApis),Uxe=e=>t=>{function o(r){if(r.inputType!=="insertReplacementText")return;let{registry:n}=e.current;n.dispatch(C).__unstableMarkLastChangeAsPersistent()}return Q$e(t,"beforeinput",o)};var MM=c(so(),1),Gxe=c($o(),1);var{subscribeOwnedListener:J$e}=H(Gxe.privateApis),Wxe=()=>e=>{function t(o){(MM.isKeyboardEvent.primary(o,"z")||MM.isKeyboardEvent.primary(o,"y")||MM.isKeyboardEvent.primaryShift(o,"z"))&&o.preventDefault()}return J$e(e,"keydown",t,!0)};var $xe=c($o(),1);var{subscribeOwnedListener:eKe}=H($xe.privateApis),Kxe=e=>t=>{let{keyboardShortcuts:o}=e.current;function r(n){for(let i of o.current)i(n)}return eKe(t,"keydown",r,!0)};var Yxe=c($o(),1);var{subscribeOwnedListener:tKe}=H(Yxe.privateApis),qxe=e=>t=>{let{inputEvents:o}=e.current;function r(n){for(let i of o.current)i(n)}return tKe(t,"input",r)};var DM=c(so(),1),Zxe=c($o(),1);var{subscribeOwnedListener:oKe}=H(Zxe.privateApis),Xxe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented||n!==DM.BACKSPACE&&n!==DM.ESCAPE)return;let{registry:i}=e.current,{didAutomaticChange:s,getSettings:a}=i.select(C),{__experimentalUndo:l}=a();l&&s()&&(r.preventDefault(),l())}return oKe(t,"keydown",o)};var Jxe=c(ce(),1),pl=c($o(),1),ewe=c(Vs(),1),twe=c(fe(),1);var rKe=c(F(),1),nKe=c(ce(),1),iKe=c(E(),1);function Qxe(e,t){if(t?.length){let o=e.formats.length;for(;o--;)e.formats[o]=[...t,...e.formats[o]||[]]}}function VM(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function b_({allowedFormats:e,disableFormats:t}){return t?b_.EMPTY_ARRAY:e}b_.EMPTY_ARRAY=[];var{subscribeDelegatedListener:sKe}=H(twe.privateApis),{ownsSelection:aKe}=H(pl.privateApis),owe=e=>t=>{function o(n){let{disableFormats:i,onChange:s,value:a,formatTypes:l,tagName:u,onReplace:d,__unstableEmbedURLOnPaste:f,preserveWhiteSpace:p,pastePlainText:h,registry:m}=e.current;if(!t.contains(n.target)&&!aKe(t)||n.defaultPrevented)return;let{plainText:g,html:b}=Mv(n);if(n.preventDefault(),window.console.log(`Received HTML (RichText):
`,b),window.console.log(`Received plain text (RichText):
`,g),i){s((0,pl.insert)(a,g));return}let v=n.clipboardData.getData("rich-text")==="true";function y(x){let w=l.reduce((T,{__unstablePasteRule:R})=>(R&&T===a&&(T=R(a,{html:b,plainText:g})),T),a);if(w!==a)s(w);else{let T=(0,pl.create)({html:x});Qxe(T,a.activeFormats),s((0,pl.insert)(a,T))}}if(v){y(b);return}if(h){s((0,pl.insert)(a,(0,pl.create)({text:g})));return}let k="INLINE",S=g.trim();f&&(0,pl.isEmpty)(a)&&(0,ewe.isURL)(S)&&/^https?:/.test(S)&&(k="BLOCKS");let _=(0,Jxe.pasteHandler)({HTML:b,plainText:g,mode:k,tagName:u,preserveWhiteSpace:p});if(typeof _=="string"){y(_);return}!_.length||!d||!(0,pl.isEmpty)(a)||(k==="BLOCKS"&&(y(b),m.dispatch(C).__unstableMarkLastChangeAsPersistent()),d(_,_.length-1,-1))}let{defaultView:r}=t.ownerDocument;return sKe(r,"paste",o)};var DE=c(so(),1),y_=c($o(),1);var{subscribeOwnedListener:lKe}=H(y_.privateApis),rwe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===DE.DELETE||n===DE.BACKSPACE){let{start:l,end:u,text:d}=i,f=n===DE.BACKSPACE,p=i.activeFormats&&!!i.activeFormats.length;if(!(0,y_.isCollapsed)(i)||p||f&&l!==0||!f&&u!==d.length)return;s?s(!f):a&&(0,y_.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return lKe(t,"keydown",o)};var wW=c(so(),1),ly=c($o(),1),nwe=c(fe(),1);var{subscribeOwnedListener:cKe,ownsSelection:uKe}=H(ly.privateApis),{subscribeDelegatedListener:dKe}=H(nwe.privateApis),iwe=e=>t=>{function o(a){if(a.keyCode!==wW.ENTER)return;let{onReplace:l,onSplit:u}=e.current;l&&u&&(a.__deprecatedOnSplit=!0)}function r(a){if(a.defaultPrevented||a.target!==t&&!uKe(t)||a.keyCode!==wW.ENTER)return;let{value:l,onChange:u,disableLineBreaks:d,onSplitAtEnd:f,onSplitAtDoubleLineEnd:p,registry:h}=e.current;a.preventDefault();let{text:m,start:g,end:b}=l;a.shiftKey?d||u((0,ly.insert)(l,`
`)):f&&g===b&&b===m.length?f():p&&g===b&&b===m.length&&m.slice(-2)===`
`?h.batch(()=>{let v={...l};v.start=v.end-2,u((0,ly.remove)(v)),p()}):d||u((0,ly.insert)(l,`
`))}let{defaultView:n}=t.ownerDocument,i=dKe(n,"keydown",r),s=cKe(t,"keydown",o,!0);return()=>{i(),s()}};var swe=e=>t=>{function o(){let{registry:r}=e.current;if(!r.select(C).isMultiSelecting())return;let n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",o),()=>{t.removeEventListener("focus",o)}};var fKe=[Mxe,jxe,Uxe,Wxe,Kxe,qxe,Xxe,owe,rwe,iwe,swe];function FM(e){let t=(0,v_.useRef)(e);(0,v_.useInsertionEffect)(()=>{t.current=e});let o=(0,v_.useMemo)(()=>fKe.map(r=>r(t)),[t]);return(0,awe.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var zM=c($o(),1),jM=c(F(),1);var lwe=c(E(),1),cwe=c(ue(),1),pKe={},CW=Symbol("usesContext");function mKe({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[CW]:l}=n,u=(0,jM.useContext)(kn),d=(0,jM.useMemo)(()=>l?Object.fromEntries(Object.entries(u).filter(([g])=>l.includes(g))):pKe,[l,u]);if(!a)return null;let f=(0,zM.getActiveFormat)(o,s),p=f!==void 0,h=(0,zM.getActiveObject)(o),m=h!==void 0&&h.type===s;return(0,lwe.jsx)(a,{isActive:p,isVisible:i,activeAttributes:p?f.attributes||{}:{},isObjectActive:m,activeObjectAttributes:m?h.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:d},s)}function HM({formatTypes:e,...t}){return e.map(o=>(0,cwe.createElement)(mKe,{settings:o,...t,key:o.name}))}var uwe=c(F(),1),dwe=c(ce(),1),fwe=c(Bt(),1);var EW=c(E(),1);function TW(e,t){if(S_.isEmpty(e)){let o=VM(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,fwe.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),dwe.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function VE({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,EW.jsx)(uwe.RawHTML,{children:TW(e,o)}),t?(0,EW.jsx)(t,{...n,children:e}):e}var bwe=c(F(),1),BW=c(ce(),1),ywe=c($o(),1),vwe=c(Bt(),1);var pwe=c(F(),1),mwe=c(Bt(),1),UM=c(Q(),1),hwe=c(so(),1),k_=c($o(),1);var RW=c(E(),1);function hKe({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,mwe.default)("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});let{clientId:l}=ht(),{getSelectionStart:u,getSelectionEnd:d}=(0,UM.useSelect)(C),{selectionChange:f}=(0,UM.useDispatch)(C),p=VM(i);r=r||`<${p}></${p}>`;let m=`</${p}>${r}<${p}>`.split(`</${p}><${p}>`);m.shift(),m.pop();function g(b){n(`<${p}>${b.join(`</${p}><${p}>`)}</${p}>`)}return(0,RW.jsx)(o,{ref:a,children:m.map((b,v)=>(0,RW.jsx)(GM,{identifier:`${t}-${v}`,tagName:p,value:b,onChange:y=>{let k=m.slice();k[v]=y,g(k)},isSelected:void 0,onKeyDown:y=>{if(y.keyCode!==hwe.ENTER)return;y.preventDefault();let{offset:k}=u(),{offset:S}=d();if(typeof k!="number"||typeof S!="number")return;let _=(0,k_.create)({html:b});_.start=k,_.end=S;let x=(0,k_.split)(_).map(T=>(0,k_.toHTMLString)({value:T})),w=m.slice();w.splice(v,1,...x),g(w),f(l,`${t}-${v+1}`,0,0)},onMerge:y=>{let k=m.slice(),S=0;if(y){if(!k[v+1])return;k.splice(v,2,k[v]+k[v+1]),S=k[v].length-1}else{if(!k[v-1])return;k.splice(v-1,2,k[v-1]+k[v]),S=k[v-1].length-1}g(k),f(l,`${t}-${v-(y?0:1)}`,S,S)},...s},v))})}var gwe=(0,pwe.forwardRef)(hKe);var Swe=c(E(),1);function kwe(e){return(0,bwe.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,vwe.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),r=BW.children.toHTML(t.value),n=s=>t.onChange(BW.children.fromDOM((0,ywe.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?gwe:e;return(0,Swe.jsx)(i,{...t,value:r,onChange:n,ref:o})})}var WM=c(U(),1),_we=c(so(),1),PW=c(E(),1);function IW({name:e,shortcutType:t,shortcutCharacter:o,...r}){let n,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&o&&(n=_we.displayShortcut[t](o)),(0,PW.jsx)(WM.Fill,{name:i,children:(0,PW.jsx)(WM.ToolbarButton,{...r,shortcut:n})})}var da=c(E(),1),{useRichText:gKe,KeyboardShortcutContext:bKe,InputEventContext:yKe,RichTextShortcut:Bwe,RichTextInputEvent:Pwe}=H(Cwe.privateApis),xwe=Symbol("instanceId");function GM({children:e,tagName:t="div",value:o="",onChange:r,isSelected:n,multiline:i,inlineToolbar:s,wrapperClassName:a,autocompleters:l,onReplace:u,placeholder:d,allowedFormats:f,withoutInteractiveFormatting:p,onRemove:h,onMerge:m,onSplit:g,__unstableOnSplitAtEnd:b,__unstableOnSplitAtDoubleLineEnd:v,identifier:y,preserveWhiteSpace:k,__unstablePastePlainText:S,__unstableEmbedURLOnPaste:_,__unstableDisableFormats:x,disableLineBreaks:w,__unstableAllowPrefixTransformations:T,readOnly:R,...B},I){g&&(0,Rwe.default)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});let O=(0,$M.useInstanceId)(GM),P=(0,Zn.useRef)(),[A,M]=(0,Zn.useState)(null),z=ht(),{clientId:V,isSelected:L,name:D}=z,N=z[Fy],j=(0,Zn.useContext)(kn),X=(0,yf.useRegistry)(),J=_e=>{if(!L)return{isSelected:!1};let{getSelectionStart:He,getSelectionEnd:$e}=_e(C),Ke=He(),ct=$e(),pt;return n===void 0?pt=Ke.clientId===V&&ct.clientId===V&&(y?Ke.attributeKey===y:Ke[xwe]===O):n&&(pt=Ke.clientId===V),{selectionStart:pt?Ke.offset:void 0,selectionEnd:pt?ct.offset:void 0,isSelected:pt}},{selectionStart:te,selectionEnd:ee,isSelected:W}=(0,yf.useSelect)(J,[V,y,O,n,L]),{disableBoundBlock:K,bindingsPlaceholder:Y,bindingsLabel:Z}=(0,yf.useSelect)(_e=>{if(!N?.[y])return{};let{__experimentalBlockBindingsSupportedAttributes:He}=_e(C).getSettings();if(!He?.[D])return{};let Ke=N[y],ct=(0,Twe.getBlockBindingsSource)(Ke.source),pt={};if(ct?.usesContext?.length)for(let gr of ct.usesContext)pt[gr]=j[gr];let ut=!ct?.canUserEditValue?.({select:_e,context:pt,args:Ke.args});if(o.length>0)return{disableBoundBlock:ut,bindingsPlaceholder:null,bindingsLabel:null};let{getBlockAttributes:hr}=_e(C),Oo=hr(V),tr=null;ct?.getFieldsList&&(tr=ct.getFieldsList({select:_e,context:pt})?.find(an=>(0,wwe.default)(an.args,Ke?.args))?.label);let go=tr??ct?.label,Uo=ut?go:(0,__.sprintf)((0,__.__)("Add %s"),go),Mn=ut?Ke?.args?.key||ct?.label:(0,__.sprintf)((0,__.__)("Empty %s; start writing to edit its value"),Ke?.args?.key||ct?.label);return{disableBoundBlock:ut,bindingsPlaceholder:Oo?.placeholder||Uo,bindingsLabel:Mn}},[N,y,D,o,V,j]),oe=!!j?.["pattern/overrides"],ie=N?.__default?.source==="core/pattern-overrides",re=R||K||oe&&!ie,ae=$7(),ye=(0,yf.useSelect)(_e=>_e(C).getBlockEditingMode(V)==="default",[V]),{getSelectionStart:xe,getSelectionEnd:he,getBlockRootClientId:ge}=(0,yf.useSelect)(C),{selectionChange:me}=(0,yf.useDispatch)(C),ke=b_({allowedFormats:f,disableFormats:x}),ve=!ke||ke.length>0,Ee=(0,Zn.useCallback)((_e,He)=>{let $e={},Ke=_e===void 0&&He===void 0,ct={clientId:V,[y?"attributeKey":xwe]:y||O};if(typeof _e=="number"||Ke){if(He===void 0&&ge(V)!==ge(he().clientId))return;$e.start={...ct,offset:_e}}if(typeof He=="number"||Ke){if(_e===void 0&&ge(V)!==ge(xe().clientId))return;$e.end={...ct,offset:He}}me($e)},[V,ge,he,xe,y,O,me]),{value:Re,getValue:se,onChange:ne,ref:Ae,formatTypes:be}=gKe({value:o,onChange:r,selectionStart:te,selectionEnd:ee,onSelectionChange:Ee,placeholder:Y||d,__unstableIsSelected:W,__unstableDisableFormats:x,preserveWhiteSpace:k,__unstableDependencies:[t],allowedFormats:ke,withoutInteractiveFormatting:p,__unstableFormatTypeHandlerContext:(0,Zn.useMemo)(()=>({richTextIdentifier:y,blockClientId:V}),[y,V])}),we=jX({onReplace:u,completers:l,record:Re,onChange:ne}),{"aria-autocomplete":ot,"aria-haspopup":vt,"aria-controls":at,"aria-owns":St,"aria-activedescendant":rt}=we;(0,Zn.useEffect)(()=>{if(!ae||!W)return;let _e=P.current?.parentElement?.closest('[contenteditable="true"]');if(!_e)return;let He={"aria-autocomplete":ot,"aria-haspopup":vt,"aria-controls":at,"aria-owns":St,"aria-activedescendant":rt};for(let[$e,Ke]of Object.entries(He))Ke===void 0?_e.removeAttribute($e):_e.setAttribute($e,Ke);return()=>{for(let $e of Object.keys(He))_e.removeAttribute($e)}},[ae,W,ot,vt,at,St,rt]),Lxe({html:o,value:Re});let Vt=(0,Zn.useRef)(new Set),lt=(0,Zn.useRef)(new Set);function no(){P.current?.focus()}let ho=B.tabIndex;re||(ae&&ye&&L?ho=B.tabIndex??0:ae&&B.tabIndex===0&&(ho=null));let je=t;return(0,da.jsxs)(da.Fragment,{children:[W&&(0,da.jsx)(bKe.Provider,{value:Vt,children:(0,da.jsx)(yKe.Provider,{value:lt,children:(0,da.jsxs)(Ewe.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:Re,onChange:ne,onFocus:no}),(0,da.jsx)(HM,{value:Re,onChange:ne,onFocus:no,formatTypes:be,forwardedRef:P})]})})}),W&&ve&&(0,da.jsx)(Oxe,{inline:s,editableContentElement:A}),(0,da.jsx)(je,{role:"textbox","aria-multiline":!w,"aria-readonly":re,...B,draggable:void 0,"aria-label":Z||B["aria-label"]||d,...we,ref:(0,$M.useMergeRefs)([Ae,I,we.ref,B.ref,FM({registry:X,getValue:se,onChange:ne,__unstableAllowPrefixTransformations:T,formatTypes:be,onReplace:u,selectionChange:me,isSelected:W,disableFormats:x,value:Re,tagName:t,onSplit:g,__unstableEmbedURLOnPaste:_,pastePlainText:S,onMerge:m,onRemove:h,disableLineBreaks:w,onSplitAtEnd:b,onSplitAtDoubleLineEnd:v,keyboardShortcuts:Vt,inputEvents:lt}),P,M]),contentEditable:!re,suppressContentEditableWarning:!0,className:$("block-editor-rich-text__editable",B.className,"rich-text"),tabIndex:ho,"data-wp-block-attribute-key":y})]})}var FE=kwe((0,Zn.forwardRef)(GM));FE.Content=VE;FE.isEmpty=e=>!e||e.length===0;var OW=(0,Zn.forwardRef)((e,t)=>{if(ht()[J1]){let{children:n,tagName:i="div",value:s,onChange:a,isSelected:l,multiline:u,inlineToolbar:d,wrapperClassName:f,autocompleters:p,onReplace:h,placeholder:m,allowedFormats:g,withoutInteractiveFormatting:b,onRemove:v,onMerge:y,onSplit:k,__unstableOnSplitAtEnd:S,__unstableOnSplitAtDoubleLineEnd:_,identifier:x,preserveWhiteSpace:w,__unstablePastePlainText:T,__unstableEmbedURLOnPaste:R,__unstableDisableFormats:B,disableLineBreaks:I,__unstableAllowPrefixTransformations:O,readOnly:P,...A}=e;return(0,da.jsx)(i,{ref:t,...A,dangerouslySetInnerHTML:{__html:TW(s,u)||"<br>"}})}return(0,da.jsx)(FE,{ref:t,...e,readOnly:!1})});OW.Content=VE;OW.isEmpty=e=>!e||e.length===0;var S_=OW;var AW=c(E(),1),Owe=(0,Iwe.forwardRef)((e,t)=>(0,AW.jsx)(S_,{ref:t,...e,__unstableDisableFormats:!0}));Owe.Content=function({value:t="",tagName:o="div",...r}){return(0,AW.jsx)(o,{...r,children:t})};var Awe=Owe;var LW=c(E(),1),vKe=(0,Nwe.forwardRef)(({__experimentalVersion:e,...t},o)=>{if(e===2)return(0,LW.jsx)(Awe,{ref:o,...t});let{className:r,onChange:n,...i}=t;return(0,LW.jsx)(Lwe.default,{ref:o,className:$("block-editor-plain-text",r),onChange:s=>n(s.target.value),...i})}),Mwe=vKe;var Au=c(G(),1),Vwe=c(F(),1),Fwe=c(U(),1);var Dwe=c(fe(),1);var KM=c(G(),1),sh=c(E(),1);function YM({property:e,viewport:t,desc:o}){let r=(0,Dwe.useInstanceId)(YM),n=o||(0,KM.sprintf)((0,KM._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return(0,sh.jsxs)(sh.Fragment,{children:[(0,sh.jsx)("span",{"aria-describedby":`rbc-desc-${r}`,children:t.label}),(0,sh.jsx)(bt,{id:`rbc-desc-${r}`,render:(0,sh.jsx)("span",{}),children:n})]})}var Lu=c(E(),1);function SKe(e){let{title:t,property:o,toggleLabel:r,onIsResponsiveChange:n,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:a=!1,defaultLabel:l={id:"all",label:(0,Au._x)("All","screen sizes")},viewports:u=[{id:"small",label:(0,Au.__)("Small screens")},{id:"medium",label:(0,Au.__)("Medium screens")},{id:"large",label:(0,Au.__)("Large screens")}]}=e;if(!t||!o||!i)return null;let d=r||(0,Au.sprintf)((0,Au.__)("Use the same %s on all screen sizes."),o),f=(0,Au.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),p=i((0,Lu.jsx)(YM,{property:o,viewport:l}),l),h=()=>u.map(m=>(0,Lu.jsx)(Vwe.Fragment,{children:i((0,Lu.jsx)(YM,{property:o,viewport:m}),m)},m.id));return(0,Lu.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,Lu.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,Lu.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,Lu.jsx)(Fwe.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:d,checked:!a,onChange:n,help:f}),(0,Lu.jsxs)("div",{className:$("block-editor-responsive-block-control__group",{"is-responsive":a}),children:[!a&&p,a&&(s?s(u):h())]})]})]})}var zwe=SKe;var qM=c(U(),1);var jwe=c(E(),1);function Hwe({units:e,...t}){let[o]=Le("spacing.units"),r=(0,qM.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"],units:e});return(0,jwe.jsx)(qM.__experimentalUnitControl,{units:r,...t})}var zE=c(G(),1),Uwe=c(F(),1),x_=c(U(),1);var Nu=c(E(),1);function kKe({url:e,onChange:t}){let[o,r]=(0,Uwe.useReducer)(i=>!i,!1),n=i=>{i.preventDefault(),r()};return(0,Nu.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,Nu.jsx)(x_.Button,{size:"compact",icon:is,label:e?(0,zE.__)("Edit link"):(0,zE.__)("Insert link"),onClick:r,className:"components-toolbar__control",isPressed:!!e}),o&&(0,Nu.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:n,children:(0,Nu.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,Nu.jsx)(x_.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:Lx,label:(0,zE.__)("Close"),onClick:r}),(0,Nu.jsx)(Qm,{value:e||"",onChange:t,suffix:(0,Nu.jsx)(x_.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Nu.jsx)(x_.Button,{size:"small",icon:sd,label:(0,zE.__)("Submit"),type:"submit"})})})]})})]})}var Gwe=kKe;var Es=c(G(),1),ml=c(F(),1),qwe=c(Rt(),1),hn=c(U(),1);var Zwe=c(Vs(),1);var Bo=c(E(),1),NW="none",Wwe="custom",$we="media",Kwe="attachment",Ywe=["noopener"],Xwe=({linkDestination:e,onChangeUrl:t,url:o,mediaType:r="image",mediaUrl:n,mediaLink:i,linkTarget:s,linkClass:a,rel:l,showLightboxSetting:u,lightboxEnabled:d,onSetLightbox:f,resetLightbox:p})=>{let[h,m]=(0,ml.useState)(!1),[g,b]=(0,ml.useState)(null),v=()=>{m(!0)},[y,k]=(0,ml.useState)(!1),[S,_]=(0,ml.useState)(null),x=(0,ml.useRef)(null),w=(0,ml.useRef)();(0,ml.useEffect)(()=>{if(!w.current)return;(qwe.focus.focusable.find(w.current)[0]||w.current).focus()},[y,o,d]);let T=()=>{(e===$we||e===Kwe)&&_(""),k(!0)},R=()=>{k(!1)},B=()=>{_(null),R(),m(!1)},I=W=>{let K=W?"_blank":void 0,Y;if(K){let Z=(l??"").split(" ");Ywe.forEach(oe=>{Z.includes(oe)||Z.push(oe)}),Y=Z.join(" ")}else{let Z=(l??"").split(" ").filter(oe=>Ywe.includes(oe)===!1);Y=Z.length?Z.join(" "):void 0}return{linkTarget:K,rel:Y}},O=()=>W=>{let K=x.current;K&&K.contains(W.target)||(m(!1),_(null),R())},P=()=>W=>{if(S){let K=M().find(Y=>Y.url===S)?.linkDestination||Wwe;t({href:(0,Zwe.prependHTTPS)(S),linkDestination:K,lightbox:{enabled:!1}})}R(),_(null),W.preventDefault()},A=()=>{t({linkDestination:NW,href:""})},M=()=>{let W=[{linkDestination:$we,title:(0,Es.__)("Link to image file"),url:r==="image"?n:void 0,icon:Hx}];return r==="image"&&i&&W.push({linkDestination:Kwe,title:(0,Es.__)("Link to attachment page"),url:r==="image"?i:void 0,icon:lg}),W},z=W=>{let K=M(),Y;W?Y=(K.find(Z=>Z.url===W)||{linkDestination:Wwe}).linkDestination:Y=NW,t({linkDestination:Y,href:W})},V=W=>{let K=I(W);t(K)},L=W=>{t({rel:W})},D=W=>{t({linkClass:W})},N=(0,Bo.jsxs)(hn.__experimentalVStack,{spacing:"3",children:[(0,Bo.jsx)(hn.ToggleControl,{label:(0,Es.__)("Open in new tab"),onChange:V,checked:s==="_blank"}),(0,Bo.jsx)(hn.TextControl,{label:(0,Es.__)("Link relation"),value:l??"",onChange:L,help:(0,ml.createInterpolateElement)((0,Es.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Bo.jsx)(hn.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,Bo.jsx)(hn.TextControl,{label:(0,Es.__)("Link CSS class"),value:a||"",onChange:D})]}),j=S!==null?S:o,X=!d||d&&!u,J=!j&&X,te=(M().find(W=>W.linkDestination===e)||{}).title,ee=()=>{if(d&&u&&!o&&!y)return(0,Bo.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,Bo.jsx)(gt,{icon:tR}),(0,Bo.jsxs)("div",{className:"text",children:[(0,Bo.jsx)("p",{children:(0,Es.__)("Enlarge on click")}),(0,Bo.jsx)("p",{className:"description",children:(0,Es.__)("Scales the image with a lightbox effect")})]}),(0,Bo.jsx)(hn.Button,{icon:ns,label:(0,Es.__)("Disable enlarge on click"),onClick:()=>{f?.(!1)},size:"compact"})]});if(!o||y)return(0,Bo.jsx)(rh.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:j,onChangeInputValue:_,onSubmit:P(),autocompleteRef:x});if(o&&!y)return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(rh.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:o,onEditLinkClick:T,urlLabel:te}),(0,Bo.jsx)(hn.Button,{icon:ns,label:(0,Es.__)("Remove link"),onClick:()=>{A(),p?.()},size:"compact"})]})};return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(hn.ToolbarButton,{icon:is,className:"components-toolbar__control",label:(0,Es.__)("Link"),"aria-expanded":h,onClick:v,ref:b,isActive:!!o||d&&u}),h&&(0,Bo.jsx)(rh,{ref:w,anchor:g,onFocusOutside:O(),onClose:B,renderSettings:X?()=>N:null,additionalControls:J&&(0,Bo.jsxs)(hn.NavigableMenu,{children:[M().map(W=>(0,Bo.jsx)(hn.MenuItem,{icon:W.icon,iconPosition:"left",onClick:()=>{_(null),z(W.url),R()},children:W.title},W.linkDestination)),u&&(0,Bo.jsx)(hn.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:tR,info:(0,Es.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{_(null),t({linkDestination:NW,href:""}),f?.(!0),R()},children:(0,Es.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:ee()})]})};var C_=c(U(),1),d0e=c(F(),1),QM=c(G(),1);var Qwe=c(F(),1),DW=c(G(),1);var MW=[],_Ke=new Intl.Collator("und",{numeric:!0}).compare;function ZM(){let[e,t,o,r]=Le("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),n=e??MW,i=t??MW,s=o&&r!==!1?o:MW;return(0,Qwe.useMemo)(()=>{let a=[{name:(0,DW.__)("None"),slug:"0",size:0},...n,...i,...s];return a.every(({slug:l})=>/^[0-9]/.test(l))&&a.sort((l,u)=>_Ke(l.slug,u.slug)),a.length>UX?[{name:(0,DW.__)("Default"),slug:"default",size:void 0},...a]:a},[n,i,s])}var Jwe=c(F(),1),e0e=c(Q(),1),XM=c(G(),1),t0e=c(U(),1);var o0e=c(E(),1),xKe={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function w_({icon:e,isMixed:t=!1,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,side:a,spacingSizes:l,type:u,value:d,...f}){let p=(0,e0e.useSelect)(S=>S(C).getSettings()?.disableCustomSpacingSizes),[h]=Le("spacing.units"),m=(0,t0e.__experimentalUseCustomUnits)({availableUnits:h||["px","em","rem"]}),g=(0,Jwe.useMemo)(()=>l?.map(S=>({name:S.name,slug:S.slug,size:S.size}))||[],[l]),b=(_p.includes(a)||["vertical","horizontal"].includes(a))&&s?Yc[a]:"",v=s?u?.toLowerCase():u,y=(0,XM.sprintf)((0,XM._x)("%1$s %2$s","spacing"),b,v).trim(),k=m[0]?.value||"px";return(0,o0e.jsx)(Wb,{allowNegativeOnDrag:o<0,ariaLabel:y,className:"spacing-sizes-control",customValueSettings:xKe,disableCustomValues:p,icon:e,isMixed:t,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,presets:g,presetType:"spacing",selectedUnit:k,units:m,value:d,...f})}var jE=c(E(),1),r0e=["vertical","horizontal"];function n0e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=d=>f=>{if(!t)return;let p={...Object.keys(a).reduce((h,m)=>(h[m]=kv(a[m],i),h),{})};d==="vertical"&&(p.top=f,p.bottom=f),d==="horizontal"&&(p.left=f,p.right=f),t(p)},u=n?.length?r0e.filter(d=>Rz(n,d)):r0e;return(0,jE.jsx)(jE.Fragment,{children:u.map(d=>{let f=d==="vertical"?a.top:a.left;return(0,jE.jsx)(w_,{icon:nP[d],label:Yc[d],minimumCustomValue:e,onChange:l(d),onMouseOut:o,onMouseOver:r,side:d,spacingSizes:i,type:s,value:f,withInputField:!1},`spacing-sizes-control-${d}`)})})}var HE=c(E(),1);function i0e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=n?.length?_p.filter(d=>n.includes(d)):_p,u=d=>f=>{let p={...Object.keys(a).reduce((h,m)=>(h[m]=kv(a[m],i),h),{})};p[d]=f,t(p)};return(0,HE.jsx)(HE.Fragment,{children:l.map(d=>(0,HE.jsx)(w_,{icon:nP[d],label:Yc[d],minimumCustomValue:e,onChange:u(d),onMouseOut:o,onMouseOver:r,side:d,spacingSizes:i,type:s,value:a[d],withInputField:!1},`spacing-sizes-control-${d}`))})}var s0e=c(E(),1);function a0e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,values:l}){let u=d=>f=>{let p={...Object.keys(l).reduce((h,m)=>(h[m]=kv(l[m],s),h),{})};p[d]=f,t(p)};return(0,s0e.jsx)(w_,{label:Yc[i],minimumCustomValue:e,onChange:u(i),onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,value:l[i],withInputField:!1})}var l0e=c(U(),1);var VW=c(G(),1),c0e=c(E(),1);function u0e({isLinked:e,...t}){let o=e?(0,VW.__)("Unlink sides"):(0,VW.__)("Link sides");return(0,c0e.jsx)(l0e.Button,{...t,size:"small",icon:e?is:ns,iconSize:24,label:o})}var Mu=c(E(),1);function E_({inputProps:e,label:t,minimumCustomValue:o=0,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,sides:a=_p,useSelect:l,values:u}){let d=ZM(),f=u||GX,p=a?.length===1,h=a?.includes("horizontal")&&a?.includes("vertical")&&a?.length===2,[m,g]=(0,d0e.useState)($X(f,a)),b=()=>{g(m===bd.axial?bd.custom:bd.axial)},y={...e,minimumCustomValue:o,onChange:x=>{let w={...u,...x};r(w)},onMouseOut:n,onMouseOver:i,sides:a,spacingSizes:d,type:t,useSelect:l,values:f},k=()=>m===bd.axial?(0,Mu.jsx)(n0e,{...y}):m===bd.custom?(0,Mu.jsx)(i0e,{...y}):(0,Mu.jsx)(a0e,{side:m,...y,showSideInLabel:s}),S=_p.includes(m)&&s?Yc[m]:"",_=(0,QM.sprintf)((0,QM._x)("%1$s %2$s","spacing"),t,S).trim();return(0,Mu.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,Mu.jsxs)(C_.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,Mu.jsx)(C_.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:_}),!p&&!h&&(0,Mu.jsx)(u0e,{label:t,onClick:b,isLinked:m===bd.axial})]}),(0,Mu.jsx)(C_.__experimentalVStack,{spacing:.5,children:k()})]})}var f0e=c(Bt(),1);function p0e(){return(0,f0e.default)("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}var m0e=c(Bt(),1);function h0e(){(0,m0e.default)("wp.blockEditor.useResizeCanvas",{since:"7.1",hint:"Device preview is now handled by the editor canvas. This hook no longer does anything."})}var Yi=c(G(),1),$_=c(ce(),1),K_=c(U(),1),p1=c(Q(),1),ZEe=c(F(),1);var T_=c(U(),1),JM=c(G(),1),eD=c(Q(),1),tD=c(ce(),1);var cy=c(E(),1);function wKe({block:e,onNavigateToEntityRecord:t,isSyncedPattern:o,isTemplatePartBlock:r}){let n=e?.attributes||{};return(0,cy.jsx)(T_.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,cy.jsx)(T_.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{if(o)t({postId:n.ref,postType:"wp_block"});else if(r){let{theme:s,slug:a}=n,l=s&&a?`${s}//${a}`:null;l&&t({postId:l,postType:"wp_template_part"})}},children:(0,JM.__)("Edit original")})})}function CKe({clientId:e,editedContentOnlySection:t,editContentOnlySection:o,stopEditingContentOnlySection:r}){let{selectBlock:n}=(0,eD.useDispatch)(C);return(0,cy.jsx)(T_.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,cy.jsx)(T_.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{t?(r(),n(e)):(o(e),n(e))},children:t?(0,JM.__)("Exit pattern"):(0,JM.__)("Edit pattern")})})}function g0e({clientId:e}){let{isWithinSection:t,isWithinEditedSection:o,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i}=ZL(e),{block:s,onNavigateToEntityRecord:a,canEdit:l}=(0,eD.useSelect)(p=>{let{getBlock:h,getSettings:m,canEditBlock:g}=p(C);return{block:h(e),onNavigateToEntityRecord:m().onNavigateToEntityRecord,canEdit:g(e)}},[e]);if(!l||!t&&!o)return null;let u=(0,tD.isReusableBlock)(s),d=(0,tD.isTemplatePart)(s);return(u||d)&&a?(0,cy.jsx)(wKe,{block:s,onNavigateToEntityRecord:a,isSyncedPattern:u,isTemplatePartBlock:d}):(0,cy.jsx)(CKe,{clientId:e,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i})}var b0e=c(Q(),1),y0e=c(G(),1),v0e=c(U(),1),S0e=c(F(),1);var k0e=c(E(),1);function oD(){let e=(0,b0e.useSelect)(r=>r(C).getBlockSelectionStart(),[]),t=(0,S0e.useRef)();return _g(e,t),e?(0,k0e.jsx)(v0e.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,y0e.__)("Skip to the selected block")}):null}var rD=c(G(),1),_0e=c(Q(),1);var x0e=c(U(),1);var UE=c(E(),1);function FW(){let e=(0,_0e.useSelect)(t=>t(C).getSelectedBlockCount(),[]);return(0,UE.jsxs)(x0e.__experimentalHStack,{justify:"flex-start",spacing:2,className:"block-editor-multi-selection-inspector__card",children:[(0,UE.jsx)(Tt,{icon:tg,showColors:!0}),(0,UE.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,rD.sprintf)((0,rD._n)("%d Block","%d Blocks",e),e)})]})}var w0e=c(U(),1),EKe=Symbol("BlockInspectorPreTabs"),{Fill:Rqt,Slot:C0e}=(0,w0e.createSlotFill)(EKe);var dV=c(U(),1),Rc=c(F(),1),FEe=c(dv(),1),W_=c(Q(),1);var GE=c(G(),1),nD={name:"settings",title:(0,GE.__)("Settings"),value:"settings",icon:i3},iD={name:"styles",title:(0,GE.__)("Styles"),value:"styles",icon:m6},sD={name:"content",title:(0,GE.__)("Content"),value:"content",icon:lg},vf={name:"list",title:(0,GE.__)("List View"),value:"list-view",icon:Yx};var zW=c(U(),1);var WE=c(U(),1),E0e=c(G(),1);var $E=c(E(),1),TKe=({initialOpen:e=!1})=>{let t=(0,WE.__experimentalUseSlotFills)(xm.slotName),o=(0,WE.__experimentalUseSlotFills)(WC.name),r=!!(t&&t.length),n=!!(o&&o.length);return!r&&!n?null:(0,$E.jsxs)(WE.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,E0e.__)("Advanced"),initialOpen:e,children:[(0,$E.jsx)(Oe.Slot,{group:"advanced"}),(0,$E.jsx)(WC.Slot,{})]})},aD=TKe;var Sf=c(E(),1),RKe=({showAdvancedControls:e=!1})=>{let t=(0,zW.__experimentalUseSlotFills)(cc.default.name),o=(0,zW.__experimentalUseSlotFills)(cc.bindings.name),r=!!t?.length||!!o?.length;return(0,Sf.jsxs)(Sf.Fragment,{children:[(0,Sf.jsx)(Oe.Slot,{}),(0,Sf.jsx)(Oe.Slot,{group:"bindings"}),e&&(0,Sf.jsx)("div",{children:(0,Sf.jsx)(aD,{initialOpen:!r})})]})},T0e=RKe;var dh=c(G(),1),aV=c(Q(),1),R$=c(F(),1);var R_=c(U(),1),lD=c(Q(),1),jW=c(G(),1);var KE=c(E(),1),BKe=()=>{let{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:o}=(0,lD.useSelect)(s=>{let{getBlocksByClientId:a,getSelectedBlockClientIds:l}=s(C),u=l(),d=a(u);return{selectedClientIds:u,selectedBlocks:d,hasPositionAttribute:d?.some(({attributes:f})=>!!f?.style?.position?.type)}},[]),{updateBlockAttributes:r}=(0,lD.useDispatch)(C),n=_r();function i(){if(!e?.length||!t?.length)return;let s=Object.fromEntries(t?.map(({clientId:a,attributes:l})=>[a,{style:Ge({...l?.style,position:{...l?.style?.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}})}]));r(e,s,!0)}return(0,KE.jsx)(R_.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,jW.__)("Position"),resetAll:i,dropdownMenuProps:n,children:(0,KE.jsx)(R_.__experimentalToolsPanelItem,{isShownByDefault:o,label:(0,jW.__)("Position"),hasValue:()=>o,onDeselect:i,children:(0,KE.jsx)(Oe.Slot,{group:"position"})})})},PKe=()=>{let e=(0,R_.__experimentalUseSlotFills)(cc.position.name);return!(e&&e.length)?null:(0,KE.jsx)(BKe,{})},cD=PKe;var a1=c(ce(),1),l$=c(U(),1),GD=c(F(),1),YCe=c(bo(),1),qCe=c(Q(),1),UD=c(G(),1);var n$={};Ir(n$,{AdvancedPanel:()=>LD,BackgroundPanel:()=>VD,BorderPanel:()=>BD,ColorPanel:()=>gD,DimensionsPanel:()=>CD,FiltersPanel:()=>ID,ImageSettingsPanel:()=>BCe,StateControl:()=>FD,StateControlBadges:()=>zD,TypographyPanel:()=>yD,useHasBackgroundPanel:()=>DD,useHasBorderPanel:()=>RD,useHasBorderPanelControls:()=>XE,useHasColorPanel:()=>hD,useHasDimensionsPanel:()=>wD,useHasFiltersPanel:()=>ECe,useHasImageSettingsPanel:()=>RCe,useHasTypographyPanel:()=>bD,useSettingsForBlockElement:()=>uD});var YE=c(F(),1),R0e=c(Q(),1),HW=c(ce(),1),uy=c(G(),1);function uD(e,t,o){let{supportedStyles:r,supports:n}=(0,R0e.useSelect)(i=>({supportedStyles:H(i(HW.store)).getSupportedStyles(t,o),supports:i(HW.store).getBlockType(t)?.supports}),[t,o]);return(0,YE.useMemo)(()=>{let i={...e};return r.includes("fontSize")||(i.typography={...i.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),r.includes("fontFamily")||(i.typography={...i.typography,fontFamilies:{}}),i.color={...i.color,text:i.color?.text&&r.includes("color"),background:i.color?.background&&(r.includes("background")||r.includes("backgroundColor")),button:i.color?.button&&r.includes("buttonColor"),heading:i.color?.heading&&r.includes("headingColor"),link:i.color?.link&&r.includes("linkColor"),caption:i.color?.caption&&r.includes("captionColor")},!r.includes("background")&&!r.includes("backgroundGradient")&&(i.color.gradients=[],i.color.customGradient=!1),r.includes("filter")||(i.color.defaultDuotone=!1,i.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","textIndent","writingMode"].forEach(s=>{r.includes(s)||(i.typography={...i.typography,[s]:!1})}),r.includes("textIndent")&&(i.typography={...i.typography,textIndent:i.typography?.textIndent??"subsequent"}),r.includes("columnCount")||(i.typography={...i.typography,textColumns:!1}),["contentSize","wideSize"].forEach(s=>{r.includes(s)||(i.layout={...i.layout,[s]:!1})}),["padding","margin","blockGap"].forEach(s=>{r.includes(s)||(i.spacing={...i.spacing,[s]:!1});let a=Array.isArray(n?.spacing?.[s])?n?.spacing?.[s]:n?.spacing?.[s]?.sides;a?.length&&i.spacing?.[s]&&(i.spacing={...i.spacing,[s]:{...i.spacing?.[s],sides:a}})}),["aspectRatio","height","minHeight","minWidth","width"].forEach(s=>{r.includes(s)||(i.dimensions={...i.dimensions,[s]:!1})}),["radius","color","style","width"].forEach(s=>{r.includes("border"+s.charAt(0).toUpperCase()+s.slice(1))||(i.border={...i.border,[s]:!1})}),[["backgroundImage","backgroundImage"],["backgroundSize","backgroundSize"],["backgroundGradient","gradient"]].forEach(([s,a])=>{r.includes(s)||(i.background={...i.background,[a]:!1})}),i.shadow=r.includes("shadow")?i.shadow:!1,i},[e,r,n])}function Du(e){let t=e?.color?.palette?.custom,o=e?.color?.palette?.theme,r=e?.color?.palette?.default,n=e?.color?.defaultPalette;return(0,YE.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,uy._x)("Theme","Indicates this palette comes from the theme."),colors:o}),n&&r&&r.length&&i.push({name:(0,uy._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&i.push({name:(0,uy._x)("Custom","Indicates this palette is created by the user."),colors:t}),i},[t,o,r,n])}function qE(e){let t=e?.color?.gradients?.custom,o=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,n=e?.color?.defaultGradients;return(0,YE.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,uy._x)("Theme","Indicates this palette comes from the theme."),gradients:o}),n&&r&&r.length&&i.push({name:(0,uy._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&i.push({name:(0,uy._x)("Custom","Indicates this palette is created by the user."),gradients:t}),i},[t,o,r,n])}function B_(e){let t=Du(e),o=qE(e),r=e?.color?.custom,n=e?.color?.customGradient,i=(0,YE.useMemo)(()=>t.flatMap(({colors:l})=>l),[t]),s=l=>Ea({settings:e},"",l),a=l=>{let d=o.flatMap(({gradients:f})=>f).find(({gradient:f})=>f===l);return d?"var:preset|gradient|"+d.slug:l};return{colors:t,gradients:o,allColors:i,areCustomSolidsEnabled:r,areCustomGradientsEnabled:n,hasSolidColors:t.length>0||r,hasGradientColors:o.length>0||n,decodeValue:s,encodeGradientValue:a}}var bl=c(U(),1),wr=c(G(),1),dy=c(F(),1);var P_=c(G(),1);var B0e=c(F(),1),dD=c(U(),1),UW=c(E(),1),IKe=[{label:(0,P_.__)("Align text left"),value:"left",icon:ep},{label:(0,P_.__)("Align text center"),value:"center",icon:Xh},{label:(0,P_.__)("Align text right"),value:"right",icon:tp},{label:(0,P_.__)("Justify text"),value:"justify",icon:AF}],OKe=["left","center","right"];function fD({className:e,value:t,onChange:o,options:r=OKe}){let n=(0,B0e.useMemo)(()=>IKe.filter(i=>r.includes(i.value)),[r]);return n.length?(0,UW.jsx)(dD.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,P_.__)("Text alignment"),className:$("block-editor-text-alignment-control",e),value:t,onChange:i=>{o(i===t?void 0:i)},children:n.map(i=>(0,UW.jsx)(dD.__experimentalToggleGroupControlOptionIcon,{value:i.value,icon:i.icon,label:i.label},i.value))}):null}var rn=c(U(),1),ZE=c(G(),1);var hl=c(E(),1);function P0e({value:e,onChange:t,__unstableInputWidth:o="60px",withSlider:r=!1,hasBottomMargin:n=!1,help:i,className:s,placeholder:a,...l}){let[u]=Le("spacing.units"),d=(0,rn.__experimentalUseCustomUnits)({availableUnits:u||["px","em","rem","ch","%","vw","vh"],defaultValues:{px:16,em:2,rem:2,ch:2}}),[f,p]=(0,rn.__experimentalParseQuantityAndUnitFromRawValue)(e,d),h=!!p&&["em","rem","%","ch","vw","vh"].includes(p);return r?(0,hl.jsxs)(rn.__experimentalView,{style:n?{marginBottom:12}:void 0,children:[(0,hl.jsx)(rn.BaseControl.VisualLabel,{children:(0,ZE.__)("Line indent")}),(0,hl.jsxs)(rn.Flex,{children:[(0,hl.jsx)(rn.FlexItem,{isBlock:!0,children:(0,hl.jsx)(rn.__experimentalUnitControl,{label:(0,ZE.__)("Line indent"),labelPosition:"top",hideLabelFromVision:!0,value:e,onChange:t,units:d,__unstableInputWidth:o,min:0,className:s,placeholder:a})}),r&&(0,hl.jsx)(rn.FlexItem,{isBlock:!0,children:(0,hl.jsx)(rn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,hl.jsx)(rn.RangeControl,{label:(0,ZE.__)("Line indent"),hideLabelFromVision:!0,value:f,withInputField:!1,onChange:m=>{t?.(m===void 0?void 0:m+(p??"px"))},min:0,max:h?10:100,step:h?.1:1,initialPosition:0})})})]}),i&&(0,hl.jsx)("p",{className:"components-base-control__help",children:i})]}):(0,hl.jsx)(rn.__experimentalUnitControl,{...l,label:(0,ZE.__)("Line indent"),value:e,__unstableInputWidth:o,units:d,onChange:t,help:i,className:s,placeholder:a})}var nn=c(U(),1),A0e=c(F(),1),GW=c(G(),1);var I_=c(U(),1);var I0e=c(G(),1),ah=c(E(),1),Ki=!1;function gl(e,t,o){let r=!!e&&!t,n=$(o,{"is-inherited-from-global-styles":r,"has-local-override-from-global-styles":!!t});return{...n?{className:n}:{},isInherited:r,hasLocalOverride:!!t}}function kf({onResetToInherited:e,className:t}){return(0,ah.jsxs)(I_.Button,{__next40pxDefaultSize:!1,label:(0,I0e.__)("Reset to inherited value"),showTooltip:!0,className:$("has-local-override-from-global-styles__reset",t),onClick:o=>{o.preventDefault(),o.stopPropagation(),e?.()},children:[(0,ah.jsx)("span",{"aria-hidden":"true",className:"has-local-override-from-global-styles__dot"}),(0,ah.jsx)(I_.Icon,{className:"has-local-override-from-global-styles__reset-icon",icon:dn})]})}function Lt({className:e,isInherited:t,hasLocalOverride:o,label:r,onDeselect:n,showLocalOverrideActionsInLabel:i=!0,hasInlineEndToggle:s=!1,children:a,...l}){return(0,ah.jsxs)(I_.__experimentalToolsPanelItem,{className:e,label:r,onDeselect:n,...l,children:[a,o&&i&&(0,ah.jsx)("div",{className:$("global-styles-inheritance-affordance",{"global-styles-inheritance-affordance--offset-toggle":s}),children:(0,ah.jsx)(kf,{onResetToInherited:n})})]})}var So=c(E(),1),{Tabs:pD}=H(nn.privateApis);function AKe({tabs:e,colorGradientControlSettings:t,contrastWarning:o}){let{key:r,...n}=e[0]??{},i=(e.find(s=>s.userValue!==void 0)??e.find(s=>s.isPlaceholder||s.inheritedValue!==void 0))?.key;return(0,So.jsx)(nn.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,So.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[e.length===1&&(0,So.jsx)(O0e,{...n,colorGradientControlSettings:t,contrastWarning:o},r),e.length>1&&(0,So.jsxs)(pD,{defaultTabId:i,children:[(0,So.jsx)(pD.TabList,{children:e.map(s=>(0,So.jsx)(pD.Tab,{tabId:s.key,children:s.label},s.key))}),e.map(s=>{let{key:a,...l}=s;return(0,So.jsx)(pD.TabPanel,{tabId:a,focusable:!1,children:(0,So.jsx)(O0e,{...l,colorGradientControlSettings:t,contrastWarning:o},a)},a)})]})]})})}var LKe={placement:"left-start",offset:36,shift:!0},NKe=({indicators:e,label:t})=>(0,So.jsxs)(nn.__experimentalHStack,{justify:"flex-start",children:[(0,So.jsx)(nn.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map((o,r)=>(0,So.jsx)(nn.Flex,{expanded:!1,children:(0,So.jsx)(nn.ColorIndicator,{colorValue:o})},r))}),(0,So.jsx)(nn.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function O0e({isGradient:e,inheritedValue:t,inheritedSlug:o,userSlug:r,userValue:n,setValue:i,isPlaceholder:s,colorGradientControlSettings:a,contrastWarning:l}){let u=n??t,d=n!==void 0?r:o,f=(p,h)=>{if(s&&p===void 0){i(t,o);return}i(p,h)};return(0,So.jsx)($m,{...a,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:u,colorSlug:e?void 0:d,gradientValue:e?u:void 0,onColorChange:e?void 0:f,onGradientChange:e?f:void 0,clearable:n!==void 0,headingLevel:3,noticeProps:!e&&l?{children:l,status:"warning",spokenMessage:null,className:"block-editor-panel-color-gradient-settings__contrast-notice"}:void 0})}function lh({label:e,hasValue:t,resetValue:o,isShownByDefault:r,indicators:n,tabs:i,colorGradientControlSettings:s,panelId:a,contrastWarning:l,className:u="block-editor-tools-panel-color-gradient-settings__item",isPlaceholder:d=!1,hasInheritedValue:f=!1,showInheritanceLabelIndicators:p=!0}){let h=(0,A0e.useRef)(void 0),m=$("block-editor-color-gradient-item",u),g=p&&t()&&f,b=p?gl(d,g,m):{className:m};return(0,So.jsx)(Lt,{...b,showLocalOverrideActionsInLabel:!1,hasValue:t,label:e,onDeselect:o,isShownByDefault:r,panelId:a,children:(0,So.jsx)(nn.Dropdown,{popoverProps:LKe,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:v,isOpen:y})=>{let k={onClick:v,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":y,"has-contrast-warning":!!l}),"aria-expanded":y,ref:h};return(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(nn.Button,{...k,__next40pxDefaultSize:!0,children:(0,So.jsx)(NKe,{indicators:n,label:e})}),t()&&(g?(0,So.jsx)(kf,{className:"block-editor-panel-color-gradient-settings__reset",onResetToInherited:()=>{o(),y&&v(),h.current?.focus()}}):(0,So.jsx)(nn.Button,{__next40pxDefaultSize:!0,label:(0,GW.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:dn,onClick:()=>{o(),y&&v(),h.current?.focus()}})),l&&(0,So.jsx)(nn.Button,{__next40pxDefaultSize:!0,size:"small",icon:qF,label:(0,GW.__)("Low contrast"),className:"block-editor-panel-color-gradient-settings__contrast-warning","aria-expanded":y,onClick:v})]})},renderContent:()=>(0,So.jsx)(AKe,{tabs:i,colorGradientControlSettings:s,contrastWarning:l})})})}var L0e=c(U(),1),mD=c(F(),1),Xn=c(G(),1),N0e=c(ov(),1);function sn(e,t){if(typeof e!="string")return;let o=`var:preset|${t}|`;if(e.startsWith(o))return e.slice(o.length);let r=`--wp--preset--${t}--`;return e.match(new RegExp(`^var\\(${r}([^)]+)\\)$`))?.[1]}function _f(e,t,o){if(o)return"var:preset|color|"+o;let r=e.find(({color:n})=>n===t);return r?"var:preset|color|"+r.slug:t}var O_=c(E(),1);function hD(e){let t=M0e(e),o=V0e(e),r=F0e(e),n=D0e(e);return t||o||r||n}function WW(e){let t=Du(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function M0e(e){let t=Du(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function D0e(e){let t=Du(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function V0e(e){let t=Du(e),o=qE(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function F0e(e){let t=Du(e),o=qE(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function $W(e){let t=Du(e),o=qE(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function KW({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=_r(),a=()=>{let l=e(o);t(l)};return(0,O_.jsx)(L0e.__experimentalToolsPanel,{label:i||(0,Xn.__)("Elements"),resetAll:a,panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,O_.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:n})})}var MKe={link:!0,heading:!0,button:!0,caption:!0};function gD({as:e=KW,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=MKe,label:a,children:l,contrastWarning:u,showInheritanceLabelIndicators:d=Ki}){let{colors:f,gradients:p,areCustomSolidsEnabled:h,areCustomGradientsEnabled:m,hasSolidColors:g,hasGradientColors:b,allColors:v,decodeValue:y,encodeGradientValue:k}=B_(n),S=N=>(0,N0e.getCSSValueFromRawStyle)(y(N)),_=M0e(n),x=S(r?.elements?.link?.color?.text),w=y(t?.elements?.link?.color?.text),T=(N,j)=>{o(Me(t,["elements","link","color","text"],_f(v,N,j)))},R=S(r?.elements?.link?.[":hover"]?.color?.text),B=y(t?.elements?.link?.[":hover"]?.color?.text),I=(N,j)=>{o(Me(t,["elements","link",":hover","color","text"],_f(v,N,j)))},O=()=>!!w||!!B,P=()=>{let N=Me(t,["elements","link",":hover","color","text"],void 0);N=Me(N,["elements","link","color","text"],void 0),o(N)},A=D0e(n),M=F0e(n),z=V0e(n),V=(0,mD.useMemo)(()=>[{name:"caption",label:(0,Xn.__)("Captions"),showPanel:A},{name:"button",label:(0,Xn.__)("Button"),showPanel:M},{name:"heading",label:(0,Xn.__)("Heading"),showPanel:z},{name:"h1",label:(0,Xn.__)("H1"),showPanel:z},{name:"h2",label:(0,Xn.__)("H2"),showPanel:z},{name:"h3",label:(0,Xn.__)("H3"),showPanel:z},{name:"h4",label:(0,Xn.__)("H4"),showPanel:z},{name:"h5",label:(0,Xn.__)("H5"),showPanel:z},{name:"h6",label:(0,Xn.__)("H6"),showPanel:z}],[A,M,z]),L=(0,mD.useCallback)(N=>({...N,elements:{...N?.elements,link:{...N?.elements?.link,color:void 0,":hover":{color:void 0}},...V.reduce((j,X)=>({...j,[X.name]:{...N?.elements?.[X.name],color:void 0}}),{})}}),[V]),D=[_&&{key:"link",label:(0,Xn.__)("Link"),hasValue:O,resetValue:P,isShownByDefault:s.link,indicators:[w??x,B??R],isPlaceholder:w===void 0&&B===void 0&&(x!==void 0||R!==void 0),hasInheritedValue:x!==void 0||R!==void 0,contrastWarning:u,tabs:[{key:"link",label:(0,Xn.__)("Default"),inheritedValue:x,inheritedSlug:sn(r?.elements?.link?.color?.text,"color"),userSlug:sn(t?.elements?.link?.color?.text,"color"),setValue:T,userValue:w,isPlaceholder:w===void 0&&x!==void 0},{key:"hover",label:(0,Xn.__)("Hover"),inheritedValue:R,inheritedSlug:sn(r?.elements?.link?.[":hover"]?.color?.text,"color"),userSlug:sn(t?.elements?.link?.[":hover"]?.color?.text,"color"),setValue:I,userValue:B,isPlaceholder:B===void 0&&R!==void 0}]}].filter(Boolean);return V.forEach(({name:N,label:j,showPanel:X})=>{if(!X)return;let J=S(r?.elements?.[N]?.color?.background),te=S(r?.elements?.[N]?.color?.gradient),ee=S(r?.elements?.[N]?.color?.text),W=y(t?.elements?.[N]?.color?.background),K=y(t?.elements?.[N]?.color?.gradient),Y=y(t?.elements?.[N]?.color?.text),Z=()=>!!(Y||W||K),oe=()=>{let ke=Me(t,["elements",N,"color","background"],void 0);ke.elements[N].color.gradient=void 0,ke.elements[N].color.text=void 0,o(ke)},ie=(ke,ve)=>{o(Me(t,["elements",N,"color","text"],_f(v,ke,ve)))},q=(ke,ve)=>{let Ee=Me(t,["elements",N,"color","background"],_f(v,ke,ve));Ee.elements[N].color.gradient=void 0,o(Ee)},re=ke=>{let ve=Me(t,["elements",N,"color","gradient"],k(ke));ve.elements[N].color.background=void 0,o(ve)},ae=N!=="caption",ye=Y===void 0&&ee!==void 0,xe=W===void 0&&J!==void 0,he=K===void 0&&te!==void 0,ge=Y===void 0&&W===void 0&&K===void 0&&(ee!==void 0||J!==void 0||te!==void 0),me=ee!==void 0||J!==void 0||te!==void 0;D.push({key:N,label:j,hasValue:Z,resetValue:oe,isShownByDefault:s[N],indicators:ae?[Y??ee,K??te??W??J]:[Y??ee],isPlaceholder:ge,hasInheritedValue:me,tabs:[g&&{key:"text",label:(0,Xn.__)("Text"),inheritedValue:ee,inheritedSlug:sn(r?.elements?.[N]?.color?.text,"color"),userSlug:sn(t?.elements?.[N]?.color?.text,"color"),setValue:ie,userValue:Y,isPlaceholder:ye},g&&ae&&{key:"background",label:(0,Xn.__)("Background"),inheritedValue:J,inheritedSlug:sn(r?.elements?.[N]?.color?.background,"color"),userSlug:sn(t?.elements?.[N]?.color?.background,"color"),setValue:q,userValue:W,isPlaceholder:xe},b&&ae&&{key:"gradient",label:(0,Xn.__)("Gradient"),inheritedValue:te,setValue:re,userValue:K,isGradient:!0,isPlaceholder:he}].filter(Boolean)})}),(0,O_.jsxs)(e,{resetAllFilter:L,value:t,onChange:o,panelId:i,label:a,children:[D.map(N=>{let{key:j,...X}=N;return(0,O_.jsx)(lh,{...X,showInheritanceLabelIndicators:d,colorGradientControlSettings:{colors:f,disableCustomColors:!h,gradients:p,disableCustomGradients:!m},panelId:i},j)}),l]})}function j0e(e,t){let o=e?.typography?.fontFamilies,r=["default","theme","custom"].flatMap(i=>o?.[i]??[]),n=r.find(i=>i.fontFamily===t)?.fontFace??[];return{fontFamilies:r,fontFamilyFaces:n}}function z0e(e,t){return t=typeof t=="number"?t.toString():t,!t||typeof t!="string"?"":!e||e.length===0?t:e?.reduce((r,{value:n})=>{let i=Math.abs(parseInt(n)-parseInt(t)),s=Math.abs(parseInt(r)-parseInt(t));return i<s?n:r},e[0]?.value)}function DKe(e,t){return typeof t!="string"||!t||!["normal","italic","oblique"].includes(t)?"":!e||e.length===0||e.find(r=>r.value===t)?t:t==="oblique"&&!e.find(r=>r.value==="oblique")?"italic":""}function H0e(e,t,o){let r=t,n=o,{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:a}=Qk(e),l=i?.some(({value:d})=>d===t),u=s?.some(({value:d})=>d?.toString()===o?.toString());return l||(r=t?DKe(i,t):a?.find(d=>d.style.fontWeight===z0e(s,o))?.style?.fontStyle),u||(n=o?z0e(s,o):a?.find(d=>d.style.fontStyle===(r||t))?.style?.fontWeight),{nearestFontStyle:r,nearestFontWeight:n}}var to=c(E(),1),VKe=1,FKe=6;function zKe(e,t){let o=e?.elements?.link?.color?.text;if(o!==void 0)return o===e?.color?.text;let r=t?.elements?.link?.color?.text;return r===void 0||t?.color?.text===r}function bD(e){let t=G0e(e),o=W0e(e),r=$0e(e),n=K0e(e),i=q0e(e),s=Y0e(e),a=Z0e(e),l=J0e(e),u=X0e(e),d=Q0e(e),f=U0e(e),p=WW(e);return t||o||r||n||i||s||f||a||l||u||d||p}function U0e(e){return e?.typography?.defaultFontSizes!==!1&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function G0e(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function W0e(e){return e?.typography?.lineHeight}function $0e(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function jKe(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,wr.__)("Appearance"):(0,wr.__)("Font style"):(0,wr.__)("Font weight")}function K0e(e){return e?.typography?.letterSpacing}function Y0e(e){return e?.typography?.textTransform}function q0e(e){return e?.typography?.textAlign}function Z0e(e){return e?.typography?.textDecoration}function X0e(e){return e?.typography?.writingMode}function Q0e(e){return e?.typography?.textColumns}function J0e(e){return e?.typography?.textIndent}function HKe(e){let t=e?.typography?.fontSizes,o=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...o?t?.default??[]:[]]}function qW({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=_r(),s=()=>{let a=e(o);t(a)};return(0,to.jsx)(bl.__experimentalToolsPanel,{label:(0,wr.__)("Typography"),resetAll:s,panelId:r,__experimentalFirstVisibleItemClass:"first",dropdownMenuProps:i,children:n})}var UKe={textColor:!0,fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,textIndent:!0,writingMode:!0,textColumns:!0},GKe=[void 0,null,""];function Ze(e){return!GKe.includes(e)}function YW(e){if(!Ze(e))return;let[t]=(0,bl.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function yD({as:e=qW,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=UKe,isGlobalStyles:a=!1,showInheritanceLabelIndicators:l=Ki,contrastWarning:u}){let{colors:d,allColors:f,areCustomSolidsEnabled:p,decodeValue:h}=B_(n),m=(Ne,ln,Fc)=>gl(l&&Ne,l&&ln,Fc),g=WW(n),b=h(r?.color?.text),v=h(t?.color?.text),y=()=>!!t?.color?.text,k=(Ne,ln)=>{let Fc=_f(f,Ne,ln),Al=Me(t,["color","text"],Fc);(Ki?zKe(t,r):r?.color?.text===r?.elements?.link?.color?.text)&&(Al=Me(Al,["elements","link","color","text"],Fc)),o(Al)},S=()=>k(void 0),_=G0e(n),x=h(r?.typography?.fontFamily),w=h(t?.typography?.fontFamily)??x,T=!Ze(t?.typography?.fontFamily)&&Ze(x),{fontFamilies:R,fontFamilyFaces:B}=(0,dy.useMemo)(()=>j0e(n,w),[n,w]),I=Ne=>{let ln=R?.find(({fontFamily:Ll})=>Ll===Ne)?.slug,Fc=ln?`var:preset|font-family|${ln}`:Ne,Al=Me(t,["typography","fontFamily"],Ze(Fc)?Fc:void 0),hF=R?.find(({fontFamily:Ll})=>Ll===Ne)?.fontFace??[],{fontStyles:DIe,fontWeights:VIe}=Qk(hF),FIe=DIe?.some(({value:Ll})=>Ll===xe),zIe=VIe?.some(({value:Ll})=>Ll?.toString()===he?.toString());if(!FIe||!zIe){let{nearestFontStyle:Ll,nearestFontWeight:gF}=H0e(hF,xe,he);Ll||gF?Al={...Al,typography:{...Al?.typography,fontStyle:Ze(Ll)?Ll:void 0,fontWeight:Ze(gF)?gF:void 0}}:(xe||he)&&(Al={...Al,typography:{...Al?.typography,fontStyle:void 0,fontWeight:void 0}})}o(Al)},O=()=>Ze(t?.typography?.fontFamily),P=()=>I(void 0),A=U0e(n),M=!n?.typography?.customFontSize,z=HKe(n),V=t?.typography?.fontSize,L=r?.typography?.fontSize,D=V??L,N=h(D),j=h(L),X=!Ze(V)&&Ze(L),J=Ne=>{if(!Ne||typeof Ne!="string")return;if(Ne.startsWith("var:preset|font-size|"))return Ne.replace("var:preset|font-size|","");let ln=Ne.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);if(ln)return ln[1]},te=J(D),ee=J(L),W=(Ne,ln)=>{let Fc=ln?.slug?`var:preset|font-size|${ln?.slug}`:Ne;o(Me(t,["typography","fontSize"],Ze(Fc)?Fc:void 0))},K=(Ne,ln)=>{if(X&&Ne===void 0&&!ln){ee?W(void 0,{slug:ee}):W(j);return}W(Ne,ln)},Y=()=>Ze(t?.typography?.fontSize),Z=()=>W(void 0),oe=$0e(n),ie=jKe(n),q=n?.typography?.fontStyle,re=n?.typography?.fontWeight,ae=h(r?.typography?.fontStyle),ye=h(r?.typography?.fontWeight),xe=h(t?.typography?.fontStyle)??ae,he=h(t?.typography?.fontWeight)??ye,ge=!Ze(t?.typography?.fontStyle)&&!Ze(t?.typography?.fontWeight)&&(Ze(ae)||Ze(ye)),me=(0,dy.useCallback)(({fontStyle:Ne,fontWeight:ln})=>{(Ne!==xe||ln!==he)&&o({...t,typography:{...t?.typography,fontStyle:Ze(Ne)?Ne:void 0,fontWeight:Ze(ln)?ln:void 0}})},[xe,he,o,t]),ke=(0,dy.useCallback)(Ne=>{if(ge&&Ne.fontStyle===xe&&Ne.fontWeight===he){o({...t,typography:{...t?.typography,fontStyle:Ze(xe)?xe:void 0,fontWeight:Ze(he)?he:void 0}});return}me(Ne)},[ge,xe,he,o,t,me]),ve=()=>Ze(t?.typography?.fontStyle)||Ze(t?.typography?.fontWeight),Ee=(0,dy.useCallback)(()=>{me({})},[me]),Re=W0e(n),se=h(t?.typography?.lineHeight),ne=h(r?.typography?.lineHeight),Ae=!Ze(t?.typography?.lineHeight)&&Ze(ne),be=Ne=>{o(Me(t,["typography","lineHeight"],Ze(Ne)?Ne:void 0))},we=()=>Ze(t?.typography?.lineHeight),ot=()=>be(void 0),vt=K0e(n),at=h(t?.typography?.letterSpacing),St=h(r?.typography?.letterSpacing),rt=!Ze(t?.typography?.letterSpacing)&&Ze(St),Vt=Ne=>{o(Me(t,["typography","letterSpacing"],Ze(Ne)?Ne:void 0))},lt=()=>Ze(t?.typography?.letterSpacing),no=()=>Vt(void 0),ho=J0e(n),je=h(t?.typography?.textIndent),_e=h(r?.typography?.textIndent),He=!Ze(t?.typography?.textIndent)&&Ze(_e),Ke=(n?.typography?.textIndent??"subsequent")==="all",ct=Ne=>{o(Me(t,["typography","textIndent"],Ze(Ne)?Ne:void 0))},pt=Ne=>{o({...t,settings:{typography:{textIndent:Ne?"all":"subsequent"}}})},ut=()=>Ze(t?.typography?.textIndent),hr=()=>{o(Me(t,["typography","textIndent"],void 0))},Oo=Ke?(0,wr.__)("Indents the first line of all paragraphs."):(0,wr.__)("Indents the first line of each paragraph after the first one."),tr=Q0e(n),go=h(t?.typography?.textColumns),Uo=h(r?.typography?.textColumns),Mn=!Ze(t?.typography?.textColumns)&&Ze(Uo),gr=Ne=>{o(Me(t,["typography","textColumns"],Ze(Ne)?Ne:void 0))},an=()=>Ze(t?.typography?.textColumns),it=()=>gr(void 0),wt=Y0e(n),Ft=h(r?.typography?.textTransform),ko=h(t?.typography?.textTransform)??Ft,Go=!Ze(t?.typography?.textTransform)&&Ze(Ft),or=Ne=>{o(Me(t,["typography","textTransform"],Ze(Ne)?Ne:void 0))},Sa=Ne=>{if(Go&&Ne===void 0){or(Ft);return}or(Ne)},ka=()=>Ze(t?.typography?.textTransform),Ol=()=>or(void 0),Be=Z0e(n),zt=h(r?.typography?.textDecoration),nt=h(t?.typography?.textDecoration)??zt,jt=!Ze(t?.typography?.textDecoration)&&Ze(zt),Pr=Ne=>{o(Me(t,["typography","textDecoration"],Ze(Ne)?Ne:void 0))},Wo=Ne=>{if(jt&&Ne===void 0){Pr(zt);return}Pr(Ne)},vn=()=>Ze(t?.typography?.textDecoration),Gh=()=>Pr(void 0),fF=X0e(n),Dy=h(r?.typography?.writingMode),Y1=h(t?.typography?.writingMode)??Dy,q1=!Ze(t?.typography?.writingMode)&&Ze(Dy),wx=Ne=>{o(Me(t,["typography","writingMode"],Ze(Ne)?Ne:void 0))},pF=Ne=>{if(q1&&Ne===void 0){wx(Dy);return}wx(Ne)},Wh=()=>Ze(t?.typography?.writingMode),Ye=()=>wx(void 0),oi=q0e(n),od=h(r?.typography?.textAlign),xY=h(t?.typography?.textAlign)??od,wY=!Ze(t?.typography?.textAlign)&&Ze(od),mF=Ne=>{o(Me(t,["typography","textAlign"],Ze(Ne)?Ne:void 0))},LIe=Ne=>{if(wY&&Ne===void 0){mF(od);return}mF(Ne)},CY=()=>Ze(t?.typography?.textAlign),NIe=()=>mF(void 0),MIe=(0,dy.useCallback)(Ne=>g?{...Ne,typography:{},color:{...Ne?.color,text:void 0}}:{...Ne,typography:{}},[g]);return(0,to.jsxs)(e,{resetAllFilter:MIe,value:t,onChange:o,panelId:i,children:[g&&(0,to.jsx)(lh,{label:(0,wr.__)("Color"),hasValue:y,resetValue:S,isShownByDefault:s.textColor,indicators:[v??b],contrastWarning:u,showInheritanceLabelIndicators:l,isPlaceholder:v===void 0&&b!==void 0,hasInheritedValue:b!==void 0,tabs:[{key:"text",label:(0,wr.__)("Color"),inheritedValue:b,inheritedSlug:sn(r?.color?.text,"color"),userSlug:sn(t?.color?.text,"color"),setValue:k,userValue:v,isPlaceholder:v===void 0&&b!==void 0}],colorGradientControlSettings:{colors:d,disableCustomColors:!p},panelId:i}),_&&(0,to.jsx)(Lt,{...m(T,O()&&x!==void 0),label:(0,wr.__)("Font"),hasValue:O,onDeselect:P,isShownByDefault:s.fontFamily,panelId:i,children:(0,to.jsx)(GN,{fontFamilies:R,value:w,onChange:I})}),A&&(0,to.jsx)(Lt,{...m(X,Y()&&L!==void 0),label:(0,wr.__)("Size"),hasValue:Y,hasInlineEndToggle:!0,onDeselect:Z,isShownByDefault:s.fontSize,panelId:i,children:(0,to.jsx)(bl.FontSizePicker,{value:te||N,valueMode:te?"slug":"literal",onChange:K,fontSizes:z,disableCustomFontSizes:M,withReset:!1,withSlider:!0})}),oe&&(0,to.jsx)(Lt,{...m(ge,ve()&&(ae!==void 0||ye!==void 0)),label:ie,hasValue:ve,onDeselect:Ee,isShownByDefault:s.fontAppearance,panelId:i,children:(0,to.jsx)(UN,{value:{fontStyle:xe,fontWeight:he},onChange:ke,hasFontStyles:q,hasFontWeights:re,fontFamilyFaces:B})}),Re&&(0,to.jsx)(Lt,{...m(Ae,we()&&ne!==void 0,"single-column"),label:(0,wr.__)("Line height"),hasValue:we,onDeselect:ot,isShownByDefault:s.lineHeight,panelId:i,children:(0,to.jsx)(BM,{__unstableInputWidth:"auto",value:se??ne,onChange:be,...Ae?{placeholder:YW(ne)}:{}})}),vt&&(0,to.jsx)(Lt,{...m(rt,lt()&&St!==void 0,"single-column"),label:(0,wr.__)("Letter spacing"),hasValue:lt,onDeselect:no,isShownByDefault:s.letterSpacing,panelId:i,children:(0,to.jsx)($N,{value:at??St,onChange:Vt,__unstableInputWidth:"auto",placeholder:rt?YW(St):void 0})}),ho&&(0,to.jsxs)(Lt,{...m(He,ut()&&_e!==void 0),label:(0,wr.__)("Line indent"),hasValue:ut,onDeselect:hr,isShownByDefault:s.textIndent,panelId:i,children:[(0,to.jsx)(P0e,{value:je??_e,onChange:ct,__unstableInputWidth:"auto",withSlider:!0,hasBottomMargin:a,placeholder:He?YW(_e):void 0}),a&&(0,to.jsx)(bl.ToggleControl,{label:(0,wr.__)("Indent all paragraphs"),checked:Ke,onChange:pt,help:Oo})]}),tr&&(0,to.jsx)(Lt,{...m(Mn,an()&&Uo!==void 0,"single-column"),label:(0,wr.__)("Columns"),hasValue:an,onDeselect:it,isShownByDefault:s.textColumns,panelId:i,children:(0,to.jsx)(bl.__experimentalNumberControl,{label:(0,wr.__)("Columns"),max:FKe,min:VKe,onChange:gr,placeholder:Mn?Uo:void 0,spinControls:"custom",value:go,initialPosition:1})}),Be&&(0,to.jsx)(Lt,{...m(jt,vn()&&zt!==void 0,"single-column"),label:(0,wr.__)("Decoration"),hasValue:vn,onDeselect:Gh,isShownByDefault:s.textDecoration,panelId:i,children:(0,to.jsx)(YN,{value:nt,onChange:Wo,size:"__unstable-large",__unstableInputWidth:"auto"})}),fF&&(0,to.jsx)(Lt,{...m(q1,Wh()&&Dy!==void 0,"single-column"),label:(0,wr.__)("Orientation"),hasValue:Wh,onDeselect:Ye,isShownByDefault:s.writingMode,panelId:i,children:(0,to.jsx)(QN,{value:Y1,onChange:pF,size:"__unstable-large"})}),wt&&(0,to.jsx)(Lt,{...m(Go,ka()&&Ft!==void 0),label:(0,wr.__)("Letter case"),hasValue:ka,onDeselect:Ol,isShownByDefault:s.textTransform,panelId:i,children:(0,to.jsx)(ZN,{value:ko,onChange:Sa,showNone:!0,isBlock:!0,size:"__unstable-large"})}),oi&&(0,to.jsxs)(Lt,{...m(wY,CY()&&od!==void 0),label:(0,wr.__)("Text alignment"),hasValue:CY,onDeselect:NIe,isShownByDefault:s.textAlign,panelId:i,children:[(0,to.jsx)(fD,{value:xY,onChange:LIe,options:["left","center","right","justify"],size:"__unstable-large"}),xY==="justify"&&(0,to.jsx)("div",{children:(0,to.jsx)(bl.Notice,{status:"warning",isDismissible:!1,children:(0,wr.__)("Justified text can reduce readability. For better accessibility, use left-aligned text instead.")})})]})]})}var zo=c(G(),1),Jn=c(U(),1);var xD=c(F(),1);var oo=c(U(),1),ur=c(G(),1),tCe=c(F(),1),vD=c(Q(),1);var eCe=c(Q(),1);function fy(e,t){let{getBlockOrder:o,getBlockAttributes:r}=(0,eCe.useSelect)(C);return(i,s)=>{let a=(s-1)*t+i-1,l=0;for(let u of o(e)){let{columnStart:d,rowStart:f}=r(u).style?.layout??{};(f-1)*t+d-1<a&&l++}return l}}var Zo=c(E(),1),Qn={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},WKe=[Qn.max,Qn.fixed];function ZW(e){return WKe.includes(e)}function $Ke(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,ur._x)("Max","Block with maximum width in flex layout"):(0,ur._x)("Max","Block with maximum height in flex layout")}function KKe(e,t){let{orientation:o="horizontal"}=t??{};return e===Qn.grow?(0,ur.__)("Stretch to fill available space."):e===Qn.max&&o==="horizontal"?(0,ur.__)("Specify a maximum width."):e===Qn.max?(0,ur.__)("Specify a maximum height."):e===Qn.fixed&&o==="horizontal"?(0,ur.__)("Specify a fixed width."):e===Qn.fixed?(0,ur.__)("Specify a fixed height."):(0,ur.__)("Fit contents.")}function oCe({value:e={},onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i=!0}){let{type:s,default:{type:a="default"}={}}=o??{},l=s||a;return l==="flex"?(0,Zo.jsx)(YKe,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}):l==="grid"?(0,Zo.jsx)(ZKe,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}):null}function YKe({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}){let{selfStretch:i,flexSize:s}=e,{orientation:a="horizontal"}=o??{},l=i||Qn.fit,u=ZW(l),d=()=>!!i,f=a==="horizontal"?(0,ur.__)("Width"):(0,ur.__)("Height"),[p]=Le("spacing.units"),h=(0,oo.__experimentalUseCustomUnits)({availableUnits:p||["%","px","em","rem","vh","vw"]}),m=()=>{t({selfStretch:void 0,flexSize:void 0})};return(0,tCe.useEffect)(()=>{ZW(i)&&!s&&t({...e,selfStretch:Qn.fit})},[]),(0,Zo.jsxs)(oo.__experimentalVStack,{as:oo.__experimentalToolsPanelItem,spacing:2,hasValue:d,label:f,onDeselect:m,isShownByDefault:r,panelId:n,children:[(0,Zo.jsxs)(oo.__experimentalToggleGroupControl,{label:qKe(o),value:l,help:KKe(l,o),onChange:g=>{let b=ZW(g)?s:null;t({selfStretch:g,flexSize:b})},isBlock:!0,children:[(0,Zo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Qn.fit,label:(0,ur._x)("Fit","Intrinsic block width in flex layout")},Qn.fit),(0,Zo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Qn.grow,label:(0,ur._x)("Grow","Block with expanding width in flex layout")},Qn.grow),(0,Zo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Qn.max,label:$Ke(o)},Qn.max),(0,Zo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Qn.fixed,label:(0,ur._x)("Fixed","Block with fixed width in flex layout")},Qn.fixed)]}),u&&(0,Zo.jsx)(oo.__experimentalUnitControl,{units:h,onChange:g=>{t({selfStretch:l,flexSize:g})},value:s,min:0,label:f,hideLabelFromVision:!0})]})}function qKe(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,ur.__)("Width"):(0,ur.__)("Height")}function ZKe({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}){let{columnStart:s,rowStart:a,columnSpan:l,rowSpan:u}=e,{columnCount:d,rowCount:f}=o??{},p=(0,vD.useSelect)(T=>T(C).getBlockRootClientId(n)),{moveBlocksToPosition:h,__unstableMarkNextChangeAsNotPersistent:m}=(0,vD.useDispatch)(C),g=fy(p,d||3),b=()=>!!s||!!a,v=()=>!!l||!!u,y=()=>{t({columnStart:void 0,rowStart:void 0})},k=()=>{t({columnSpan:void 0,rowSpan:void 0})},S=d?d-(s??1)+1:void 0,_=window.__experimentalEnableGridInteractivity&&f?f-(a??1)+1:void 0,x=l??(i?1:void 0),w=u??(i?1:void 0);return(0,Zo.jsxs)(Zo.Fragment,{children:[(0,Zo.jsxs)(oo.Flex,{as:oo.__experimentalToolsPanelItem,hasValue:v,label:(0,ur.__)("Grid span"),onDeselect:k,isShownByDefault:r,panelId:n,children:[(0,Zo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Zo.jsx)(oo.__experimentalInputControl,{label:(0,ur.__)("Column span"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10),B=S?Math.min(R,S):R;t({columnStart:s,rowStart:a,rowSpan:u,columnSpan:B})},value:x,min:1,max:S})}),(0,Zo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Zo.jsx)(oo.__experimentalInputControl,{label:(0,ur.__)("Row span"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10),B=_?Math.min(R,_):R;t({columnStart:s,rowStart:a,columnSpan:l,rowSpan:B})},value:w,min:1,max:_})})]}),window.__experimentalEnableGridInteractivity&&(0,Zo.jsxs)(oo.Flex,{as:oo.__experimentalToolsPanelItem,hasValue:b,label:(0,ur.__)("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:n,children:[(0,Zo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Zo.jsx)(oo.__experimentalInputControl,{label:(0,ur.__)("Column"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10);t({columnStart:R,rowStart:a,columnSpan:l,rowSpan:u}),m(),h([n],p,p,g(R,a))},value:s??1,min:1,max:d?d-(l??1)+1:void 0})}),(0,Zo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Zo.jsx)(oo.__experimentalInputControl,{label:(0,ur.__)("Row"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10);t({columnStart:s,rowStart:R,columnSpan:l,rowSpan:u}),m(),h([n],p,p,g(s,R))},value:a??1,min:1,max:f?f-(u??1)+1:void 0})})]})]})}var rCe=c(U(),1),A_=c(G(),1);var XW=c(E(),1);function SD({panelId:e,value:t,onChange:o=()=>{},options:r,defaultValue:n="auto",hasValue:i,isShownByDefault:s=!0,className:a,isInherited:l,hasLocalOverride:u}){let d=t??"auto",[f,p,h]=Le("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=p?.map(({name:v,ratio:y})=>({label:v,value:y})),g=f?.map(({name:v,ratio:y})=>({label:v,value:y})),b=[{label:(0,A_._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...h?g:[],...m||[],{label:(0,A_._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,XW.jsx)(Lt,{className:a,isInherited:l,hasLocalOverride:u,hasValue:i||(()=>d!==n),label:(0,A_.__)("Aspect ratio"),onDeselect:()=>o(void 0),isShownByDefault:s,panelId:e,children:(0,XW.jsx)(rCe.SelectControl,{label:(0,A_.__)("Aspect ratio"),value:d,options:r??b,onChange:o})})}var Dt=c(E(),1),QW=["horizontal","vertical"];function nCe(e,t){return e?.length===1?!1:t?!(e?.includes("horizontal")&&e?.includes("vertical")&&e?.length===2):!0}function wD(e,t=Js){return lCe(e)||cCe(e)||uCe(e)||dCe(e)||fCe(e)||pCe(e)||mCe(e)||hCe(e)||gCe(e)||bCe(e,t)||yCe(e,t)}function lCe(e){return e?.layout?.contentSize}function cCe(e){return e?.layout?.wideSize}function uCe(e){return e?.spacing?.padding}function dCe(e){return e?.spacing?.margin}function fCe(e){return e?.spacing?.blockGap}function pCe(e){return e?.dimensions?.height}function mCe(e){return e?.dimensions?.minHeight}function hCe(e){return e?.dimensions?.minWidth}function gCe(e){return e?.dimensions?.width}function bCe(e,t=Js){return!ea(t)&&e?.dimensions?.aspectRatio}function yCe(e,t=Js){if(ea(t))return!1;let{type:o="default",default:{type:r="default"}={},allowSizingOnChildren:n=!1}=e?.parentLayout??{},i=(r==="flex"||o==="flex"||r==="grid"||o==="grid")&&n;return!!e?.layout&&i}function XKe(e){let{defaultSpacingSizes:t,spacingSizes:o}=e?.spacing||{};return t!==!1&&o?.default?.length>0||o?.theme?.length>0||o?.custom?.length>0}function iCe(e,t){if(!t||!e)return e;let o={};return t.forEach(r=>{r==="vertical"&&(o.top=e.top,o.bottom=e.bottom),r==="horizontal"&&(o.left=e.left,o.right=e.right),o[r]=e?.[r]}),o}var QKe=[void 0,null,""];function dt(e){return!QKe.includes(e)}function kD(e){if(!dt(e))return;let[t]=(0,Jn.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function _D(e){return dt(e)&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function sCe(e){if(!dt(e))return;if(typeof e=="string")return e!==""?e:void 0;if(typeof e!="object")return;let o=["top","right","bottom","left"].map(i=>e[i]);if(!o.every(dt))return;let n=o[0];return o.every(i=>i===n)?n:void 0}function aCe(e){return dt(e)?typeof e=="string"?e!=="":typeof e!="object"?!1:["top","right","bottom","left"].some(t=>dt(e[t])):!1}function JKe(e,t){return dt(e)?typeof e=="string"?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}function eYe({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=_r(),s=()=>{let a=e(o);t(a)};return(0,Dt.jsx)(Jn.__experimentalToolsPanel,{label:(0,zo.__)("Dimensions"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var yl={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,height:!0,minHeight:!0,minWidth:!0,width:!0,aspectRatio:!0,childLayout:!0};function CD({as:e=eYe,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=yl,onVisualize:a=()=>{},includeLayoutControls:l=!1,styleState:u=Js,showInheritanceLabelIndicators:d=Ki}){let{dimensions:f,spacing:p}=n,h=Ye=>Ye&&typeof Ye=="object"?Object.keys(Ye).reduce((oi,od)=>(oi[od]=Ea({settings:{dimensions:f,spacing:p}},"",Ye[od]),oi),{}):Ea({settings:{dimensions:f,spacing:p}},"",Ye),m=(Ye,oi,od)=>gl(d&&Ye,d&&oi,od),g=XKe(n),b=(0,Jn.__experimentalUseCustomUnits)({availableUnits:n?.spacing?.units||["%","px","em","rem","vw"]}),v=-1/0,[y,k]=(0,xD.useState)(v),S=(0,xD.useCallback)(Ye=>({...Ye,layout:Ge({...Ye?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...Ye?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...Ye?.dimensions,height:void 0,minHeight:void 0,minWidth:void 0,aspectRatio:void 0,width:void 0}}),[]),_=lCe(n)&&l,x=h(t?.layout?.contentSize),w=h(r?.layout?.contentSize),T=!dt(t?.layout?.contentSize)&&dt(w),R=Ye=>{o(Me(t,["layout","contentSize"],dt(Ye)?Ye:void 0))},B=()=>dt(t?.layout?.contentSize),I=()=>R(void 0),O=cCe(n)&&l,P=h(t?.layout?.wideSize),A=h(r?.layout?.wideSize),M=!dt(t?.layout?.wideSize)&&dt(A),z=Ye=>{o(Me(t,["layout","wideSize"],dt(Ye)?Ye:void 0))},V=()=>dt(t?.layout?.wideSize),L=()=>z(void 0),D=uCe(n),N=_D(h(r?.spacing?.padding)),j=_D(h(t?.spacing?.padding)),X=dt(t?.spacing?.padding)?j:N,J=sCe(N),te=!dt(t?.spacing?.padding)&&J!==void 0,ee=aCe(N),W=!dt(t?.spacing?.padding)&&ee,K=Array.isArray(n?.spacing?.padding)?n?.spacing?.padding:n?.spacing?.padding?.sides,Y=K&&K.some(Ye=>QW.includes(Ye)),Z=Ye=>{let oi=iCe(Ye,K);o(Me(t,["spacing","padding"],oi))},oe=()=>dt(t?.spacing?.padding)&&Object.keys(t?.spacing?.padding).length,ie=()=>Z(void 0),q=()=>a("padding"),re=dCe(n),ae=_D(h(r?.spacing?.margin)),ye=_D(h(t?.spacing?.margin)),xe=dt(t?.spacing?.margin)?ye:ae,he=sCe(ae),ge=!dt(t?.spacing?.margin)&&he!==void 0,me=aCe(ae),ke=!dt(t?.spacing?.margin)&&me,ve=Array.isArray(n?.spacing?.margin)?n?.spacing?.margin:n?.spacing?.margin?.sides,Ee=ve&&ve.some(Ye=>QW.includes(Ye)),Re=Ye=>{let oi=iCe(Ye,ve);o(Me(t,["spacing","margin"],oi))},se=()=>dt(t?.spacing?.margin)&&Object.keys(t?.spacing?.margin).length,ne=()=>Re(void 0),Ae=()=>a("margin"),be=fCe(n),we=Array.isArray(n?.spacing?.blockGap)?n?.spacing?.blockGap:n?.spacing?.blockGap?.sides,ot=we&&we.some(Ye=>QW.includes(Ye)),vt=h(t?.spacing?.blockGap),at=h(r?.spacing?.blockGap),St=dt(t?.spacing?.blockGap)?vt:at,rt=JKe(St,ot),Vt=!dt(t?.spacing?.blockGap)&&typeof at=="string"&&at!=="",lt=Ye=>{o(Me(t,["spacing","blockGap"],Ye))},no=Ye=>{dt(Ye)||lt(null),!ot&&Ye?.hasOwnProperty("top")?lt(Ye.top):lt({top:Ye?.top,left:Ye?.left})},ho=()=>lt(void 0),je=()=>dt(t?.spacing?.blockGap),_e=mCe(n),He=h(t?.dimensions?.minHeight),$e=h(r?.dimensions?.minHeight),Ke=!dt(t?.dimensions?.minHeight)&&dt($e),ct=Ye=>{let oi=Me(t,["dimensions","minHeight"],Ye);o(Me(oi,["dimensions","aspectRatio"],void 0))},pt=()=>{ct(void 0)},ut=()=>dt(t?.dimensions?.minHeight),hr=pCe(n),Oo=h(t?.dimensions?.height),tr=h(r?.dimensions?.height),go=!dt(t?.dimensions?.height)&&dt(tr),Uo=Ye=>{let oi=Me(t,["dimensions","height"],Ye);o(Me(oi,["dimensions","aspectRatio"],void 0))},Mn=()=>{Uo(void 0)},gr=()=>dt(t?.dimensions?.height),an=hCe(n),it=h(t?.dimensions?.minWidth),wt=h(r?.dimensions?.minWidth),Ft=!dt(t?.dimensions?.minWidth)&&dt(wt),ko=Ye=>{o(Me(t,["dimensions","minWidth"],Ye))},Go=()=>{ko(void 0)},or=()=>dt(t?.dimensions?.minWidth),Sa=gCe(n),ka=h(t?.dimensions?.width),Ol=h(r?.dimensions?.width),Be=!dt(t?.dimensions?.width)&&dt(Ol),zt=Ye=>{o(Me(t,["dimensions","width"],Ye))},nt=()=>{zt(void 0)},jt=()=>dt(t?.dimensions?.width),Pr=bCe(n,u),Wo=h(t?.dimensions?.aspectRatio),vn=h(r?.dimensions?.aspectRatio),Gh=Wo??vn,fF=!dt(t?.dimensions?.aspectRatio)&&dt(vn),Dy=Ye=>{let oi=Me(t,["dimensions","aspectRatio"],Ye);o(Me(oi,["dimensions","minHeight"],void 0))},Y1=()=>dt(t?.dimensions?.aspectRatio),q1=yCe(n,u),wx=t?.layout,pF=Ye=>{o({...t,layout:{...t?.layout,...Ye}})},Wh=()=>a(!1);return(0,Dt.jsxs)(e,{resetAllFilter:S,value:t,onChange:o,panelId:i,children:[(_||O)&&(0,Dt.jsx)("span",{className:"span-columns",children:(0,zo.__)("Set the width of the main content area.")}),_&&(0,Dt.jsx)(Lt,{...m(T,B()&&w!==void 0),label:(0,zo.__)("Content width"),hasValue:B,onDeselect:I,isShownByDefault:s.contentSize??yl.contentSize,panelId:i,children:(0,Dt.jsx)(Jn.__experimentalUnitControl,{label:(0,zo.__)("Content width"),labelPosition:"top",value:x??w,placeholder:T?kD(w):void 0,onChange:Ye=>{R(Ye)},units:b,prefix:(0,Dt.jsx)(Jn.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Dt.jsx)(gt,{icon:Qh})})})}),O&&(0,Dt.jsx)(Lt,{...m(M,V()&&A!==void 0),label:(0,zo.__)("Wide width"),hasValue:V,onDeselect:L,isShownByDefault:s.wideSize??yl.wideSize,panelId:i,children:(0,Dt.jsx)(Jn.__experimentalUnitControl,{label:(0,zo.__)("Wide width"),labelPosition:"top",value:P??A,placeholder:M?kD(A):void 0,onChange:Ye=>{z(Ye)},units:b,prefix:(0,Dt.jsx)(Jn.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Dt.jsx)(gt,{icon:dg})})})}),D&&(0,Dt.jsxs)(Lt,{hasValue:oe,label:(0,zo.__)("Padding"),hasInlineEndToggle:nCe(K,g),onDeselect:ie,isShownByDefault:s.padding??yl.padding,...m(W,oe()&&ee,{"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,Dt.jsx)(Jn.BoxControl,{values:j,onChange:Z,label:(0,zo.__)("Padding"),sides:K,units:b,allowReset:!1,splitOnAxis:Y,inputProps:{onMouseOver:q,onMouseOut:Wh,placeholder:te?J:void 0}}),g&&(0,Dt.jsx)(E_,{values:X,onChange:Z,label:(0,zo.__)("Padding"),sides:K,units:b,allowReset:!1,onMouseOver:q,onMouseOut:Wh})]}),re&&(0,Dt.jsxs)(Lt,{hasValue:se,label:(0,zo.__)("Margin"),hasInlineEndToggle:nCe(ve,g),onDeselect:ne,isShownByDefault:s.margin??yl.margin,...m(ke,se()&&me,{"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,Dt.jsx)(Jn.BoxControl,{values:ye,onChange:Re,inputProps:{min:y,onDragStart:()=>{k(0)},onDragEnd:()=>{k(v)},onMouseOver:Ae,onMouseOut:Wh,placeholder:ge?he:void 0},label:(0,zo.__)("Margin"),sides:ve,units:b,allowReset:!1,splitOnAxis:Ee}),g&&(0,Dt.jsx)(E_,{values:xe,onChange:Re,minimumCustomValue:-1/0,label:(0,zo.__)("Margin"),sides:ve,units:b,allowReset:!1,onMouseOver:Ae,onMouseOut:Wh})]}),be&&(0,Dt.jsxs)(Lt,{hasValue:je,label:(0,zo.__)("Block spacing"),hasInlineEndToggle:ot,onDeselect:ho,isShownByDefault:s.blockGap??yl.blockGap,...m(Vt,je()&&at!==void 0,{"tools-panel-item-spacing":g,"single-column":!g&&!ot}),panelId:i,children:[!g&&(ot?(0,Dt.jsx)(Jn.BoxControl,{label:(0,zo.__)("Block spacing"),min:0,onChange:no,units:b,sides:we,values:rt,allowReset:!1,splitOnAxis:ot}):(0,Dt.jsx)(Jn.__experimentalUnitControl,{label:(0,zo.__)("Block spacing"),min:0,onChange:lt,units:b,value:vt??void 0,placeholder:Vt?at:void 0})),g&&(0,Dt.jsx)(E_,{label:(0,zo.__)("Block spacing"),min:0,onChange:no,showSideInLabel:!1,sides:ot?we:["top"],values:rt,allowReset:!1})]}),q1&&(0,Dt.jsx)(oCe,{value:wx,onChange:pF,parentLayout:n?.parentLayout,panelId:i,showGridSpanDefaults:!zi(u),isShownByDefault:s.childLayout??yl.childLayout}),_e&&(0,Dt.jsx)(Lt,{...m(Ke,ut()&&$e!==void 0),hasValue:ut,label:(0,zo.__)("Minimum height"),onDeselect:pt,isShownByDefault:s.minHeight??yl.minHeight,panelId:i,children:(0,Dt.jsx)(Yb,{label:(0,zo.__)("Minimum height"),value:He??$e,onChange:ct,placeholder:Ke?kD($e):void 0,dimensionSizes:f?.dimensionSizes})}),an&&(0,Dt.jsx)(Lt,{...m(Ft,or()&&wt!==void 0),hasValue:or,label:(0,zo.__)("Minimum width"),onDeselect:Go,isShownByDefault:s.minWidth??yl.minWidth,panelId:i,children:(0,Dt.jsx)(Yb,{label:(0,zo.__)("Minimum width"),value:it??wt,onChange:ko,placeholder:Ft?kD(wt):void 0,dimensionSizes:f?.dimensionSizes})}),hr&&(0,Dt.jsx)(Lt,{...m(go,gr()&&tr!==void 0),hasValue:gr,label:(0,zo.__)("Height"),onDeselect:Mn,isShownByDefault:s.height??yl.height,panelId:i,children:(0,Dt.jsx)(Yb,{label:(0,zo.__)("Height"),value:Oo,onChange:Uo,placeholder:go?tr:void 0,dimensionSizes:f?.dimensionSizes})}),Sa&&(0,Dt.jsx)(Lt,{...m(Be,jt()&&Ol!==void 0),hasValue:jt,label:(0,zo.__)("Width"),onDeselect:nt,isShownByDefault:s.width??yl.width,panelId:i,children:(0,Dt.jsx)(Yb,{label:(0,zo.__)("Width"),value:ka,onChange:zt,placeholder:Be?Ol:void 0,dimensionSizes:f?.dimensionSizes})}),Pr&&(0,Dt.jsx)(SD,{hasValue:Y1,value:Gh,onChange:Dy,panelId:i,...m(fF,Y1()&&vn!==void 0),isShownByDefault:s.aspectRatio??yl.aspectRatio})]})}var yi=c(U(),1),Vu=c(F(),1),L_=c(G(),1);var py=c(G(),1),gn=c(U(),1),TD=c(F(),1);var po=c(E(),1),ED=[];function tYe({shadow:e,onShadowChange:t,settings:o}){let r=JW(o);return(0,po.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,po.jsxs)(gn.__experimentalVStack,{spacing:4,children:[(0,po.jsx)(gn.__experimentalHeading,{level:5,children:(0,py.__)("Drop shadow")}),(0,po.jsx)(oYe,{presets:r,activeShadow:e,onSelect:t}),(0,po.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,po.jsx)(gn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,py.__)("Clear")})})]})})}function oYe({presets:e,activeShadow:t,onSelect:o}){return e?(0,po.jsx)(gn.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,py.__)("Drop shadows"),children:e.map(({name:r,slug:n,shadow:i})=>(0,po.jsx)(rYe,{label:r,isActive:i===t,type:n==="unset"?"unset":"preset",onSelect:()=>o(i===t?void 0:i),shadow:i},n))}):null}function rYe({type:e,label:t,isActive:o,onSelect:r,shadow:n}){return(0,po.jsxs)(xt.Root,{children:[(0,po.jsx)(xt.Trigger,{render:(0,po.jsx)(gn.Composite.Item,{role:"option","aria-label":t,"aria-selected":o,className:$("block-editor-global-styles__shadow__item",{"is-active":o}),render:(0,po.jsx)("button",{className:$("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:r,style:{boxShadow:n},"aria-label":t,children:o&&(0,po.jsx)(gt,{icon:rs})})})}),(0,po.jsx)(xt.Popup,{children:t})]})}function vCe({shadow:e,onShadowChange:t,settings:o,className:r,hasLocalValue:n=!!e,hasLocalOverride:i=!1,onReset:s}){return(0,po.jsx)(gn.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:$("block-editor-global-styles__shadow-dropdown",r),renderToggle:nYe(e,t,{hasLocalValue:n,hasLocalOverride:i,onReset:s??(()=>t(void 0))}),renderContent:()=>(0,po.jsx)(gn.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,po.jsx)(tYe,{shadow:e,onShadowChange:t,settings:o})})})}function nYe(e,t,o){let{hasLocalValue:r,hasLocalOverride:n,onReset:i}=o;return function({onToggle:a,isOpen:l}){let u=(0,TD.useRef)(void 0),d={onClick:a,className:$("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":l}),"aria-expanded":l,ref:u},f=()=>{l&&a(),i(),u.current?.focus()};return(0,po.jsxs)(po.Fragment,{children:[(0,po.jsx)(gn.Button,{__next40pxDefaultSize:!0,...d,children:(0,po.jsxs)(gn.__experimentalHStack,{justify:"flex-start",children:[(0,po.jsx)(gt,{className:"block-editor-global-styles__toggle-icon",icon:t6,size:24}),(0,po.jsx)(gn.FlexItem,{children:(0,py.__)("Drop shadow")})]})}),r&&(n?(0,po.jsx)(kf,{className:"block-editor-global-styles__shadow-editor__remove-button",onResetToInherited:f}):(0,po.jsx)(gn.Button,{__next40pxDefaultSize:!0,size:"small",icon:dn,label:(0,py.__)("Remove"),className:"block-editor-global-styles__shadow-editor__remove-button",onClick:f}))]})}}function JW(e){return(0,TD.useMemo)(()=>{if(!e?.shadow)return ED;let t=e?.shadow?.defaultPresets,{default:o,theme:r,custom:n}=e?.shadow?.presets??{},i={name:(0,py.__)("Unset"),slug:"unset",shadow:"none"},s=[...t&&o||ED,...r||ED,...n||ED];return s.length&&s.unshift(i),s},[e])}var vl=c(E(),1);function RD(e){return Object.values(XE(e)).some(Boolean)}function XE(e){return{hasBorderColor:SCe(e),hasBorderRadius:kCe(e),hasBorderStyle:_Ce(e),hasBorderWidth:xCe(e),hasShadow:wCe(e)}}function SCe(e){return e?.border?.color}function kCe(e){return e?.border?.radius}function _Ce(e){return e?.border?.style}function xCe(e){return e?.border?.width}function wCe(e){let t=JW(e);return!!e?.shadow&&t.length>0}function iYe({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=_r();return(0,vl.jsx)(yi.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,dropdownMenuProps:s,children:n})}var sYe={radius:!0,color:!0,width:!0,shadow:!0};function BD({as:e=iYe,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,name:s,defaultControls:a=sYe,showInheritanceLabelIndicators:l=Ki}){let u=Du(n),d=n?.color?.custom,f=(0,Vu.useCallback)(q=>Ea({settings:n},"",q),[n]),p=(q,re,ae)=>gl(l&&q,l&&re,ae),h=q=>{let ae=u.flatMap(({colors:ye})=>ye).find(({color:ye})=>ye===q);return ae?"var:preset|color|"+ae.slug:q},m=(0,Vu.useCallback)(q=>{if(q){if((0,yi.__experimentalHasSplitBorders)(q)){let re={...q};return["top","right","bottom","left"].forEach(ae=>{re[ae]={...re[ae],color:f(re[ae]?.color)}}),re}return{...q,color:q.color?f(q.color):void 0}}},[f]),g=(0,Vu.useMemo)(()=>m(t?.border),[t?.border,m]),b=(0,Vu.useMemo)(()=>m(r?.border),[r?.border,m]),v=!(0,yi.__experimentalIsDefinedBorder)(t?.border)&&!!b&&(0,yi.__experimentalIsDefinedBorder)(b),y=v?b:g,k=q=>o({...t,border:q}),S=SCe(n),_=_Ce(n),x=xCe(n),w=kCe(n),T=(0,Vu.useMemo)(()=>typeof t?.border?.radius!="object"?f(t?.border?.radius):{topLeft:f(t?.border?.radius?.topLeft),topRight:f(t?.border?.radius?.topRight),bottomLeft:f(t?.border?.radius?.bottomLeft),bottomRight:f(t?.border?.radius?.bottomRight)},[t?.border?.radius,f]),R=(0,Vu.useMemo)(()=>{let q=r?.border?.radius;return typeof q!="object"?f(q):{topLeft:f(q?.topLeft),topRight:f(q?.topRight),bottomLeft:f(q?.bottomLeft),bottomRight:f(q?.bottomRight)}},[r?.border?.radius,f]),B=q=>k({...t?.border,radius:q}),I=()=>{let q=t?.border?.radius;return typeof q=="object"?Object.entries(q).some(([,re])=>!!re):!!q},O=!I()&&R!==void 0&&R!=="",P=(0,Vu.useMemo)(()=>{if(!O)return T;if(typeof R=="string")return R;let q=R;return q?{all:q.topLeft&&q.topLeft===q.topRight&&q.topLeft===q.bottomLeft&&q.topLeft===q.bottomRight?q.topLeft:void 0,...q}:T},[O,T,R]),A=wCe(n),M=f(t?.shadow),z=f(r?.shadow),V=M===void 0&&z!==void 0&&z!=="",L=V?z:M,D=n?.shadow?.presets??{},N=D.custom??D.theme??D.default??[],j=q=>{let re=N?.find(({shadow:ae})=>ae===q)?.slug;o(Me(t,["shadow"],re?`var:preset|shadow|${re}`:q||void 0))},X=q=>{if(V&&q===void 0){j(z);return}j(q)},J=()=>!!t?.shadow,te=()=>j(void 0),ee=l&&J()&&z!==void 0,W=()=>{if(I())return k({radius:t?.border?.radius});k(void 0)},K=q=>{let re={...q};(0,yi.__experimentalHasSplitBorders)(re)?["top","right","bottom","left"].forEach(ae=>{re[ae]&&(re[ae]={...re[ae],color:h(re[ae]?.color)})}):re&&(re.color=h(re.color)),k({...re,radius:t?.border?.radius})},Y=(0,Vu.useCallback)(q=>({...q,border:void 0,shadow:void 0}),[]),Z=a?.color||a?.width,oe=S||_||x||w,ie=my({blockName:s,hasShadowControl:A,hasBorderControl:oe});return(0,vl.jsxs)(e,{resetAllFilter:Y,value:t,onChange:o,panelId:i,label:ie,children:[(x||S)&&(0,vl.jsxs)(Lt,{...p(v,(0,yi.__experimentalIsDefinedBorder)(t?.border)&&!!b&&(0,yi.__experimentalIsDefinedBorder)(b)),hasValue:()=>(0,yi.__experimentalIsDefinedBorder)(t?.border),label:(0,L_.__)("Border"),onDeselect:()=>W(),isShownByDefault:Z,panelId:i,children:[(l||A)&&(0,vl.jsx)(yi.BaseControl.VisualLabel,{as:"legend",children:(0,L_.__)("Border")}),(0,vl.jsx)(yi.BorderBoxControl,{colors:u,disableCustomColors:!d,enableAlpha:!0,enableStyle:_,onChange:K,popoverOffset:40,popoverPlacement:"left-start",value:y,__experimentalIsRenderedInSidebar:!0})]}),w&&(0,vl.jsx)(Lt,{...p(O,I()&&R!==void 0),hasValue:I,label:(0,L_.__)("Radius"),hasInlineEndToggle:!0,onDeselect:()=>B(void 0),isShownByDefault:a.radius,panelId:i,children:(0,vl.jsx)(VN,{presets:n?.border?.radiusSizes,values:P,onChange:q=>{B(q||void 0)}})}),A&&(0,vl.jsxs)(Lt,{...p(V,J()&&z!==void 0),label:(0,L_.__)("Shadow"),hasValue:J,onDeselect:te,isShownByDefault:a.shadow,showLocalOverrideActionsInLabel:!1,panelId:i,children:[oe?(0,vl.jsx)(yi.BaseControl.VisualLabel,{as:"legend",children:(0,L_.__)("Shadow")}):null,(0,vl.jsx)(vCe,{shadow:L,onShadowChange:X,settings:n,hasLocalValue:J(),hasLocalOverride:ee,onReset:te})]})]})}var jo=c(U(),1),xf=c(G(),1),N_=c(F(),1);var dr=c(E(),1),PD=[];function CCe(e,{presetSetting:t,defaultSetting:o}){let r=!e?.color?.[o],n=e?.color?.[t]?.custom||PD,i=e?.color?.[t]?.theme||PD,s=e?.color?.[t]?.default||PD;return(0,N_.useMemo)(()=>[...n,...i,...r?PD:s],[r,n,i,s])}function ECe(e){return TCe(e)}function TCe(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function aYe({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=_r(),s=()=>{let a=e(o);t(a)};return(0,dr.jsx)(jo.__experimentalToolsPanel,{label:(0,xf._x)("Filters","Name for applying graphical effects"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var lYe={duotone:!0},cYe={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,xf.__)("Duotone")},uYe=({indicator:e,label:t})=>(0,dr.jsxs)(jo.__experimentalHStack,{justify:"flex-start",children:[(0,dr.jsx)(jo.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,dr.jsx)(jo.Flex,{expanded:!1,children:e==="unset"||!e?(0,dr.jsx)(jo.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):(0,dr.jsx)(jo.DuotoneSwatch,{values:e})})}),(0,dr.jsx)(jo.FlexItem,{className:"block-editor-panel-duotone-settings__label",title:t,children:t})]}),dYe=(e,t)=>function({onToggle:r,isOpen:n}){let{hasLocalValue:i,hasLocalOverride:s,onReset:a}=t,l=(0,N_.useRef)(void 0),u={onClick:r,className:$("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":n}),"aria-expanded":n,ref:l},d=()=>{n&&r(),a(),l.current?.focus()};return(0,dr.jsxs)(dr.Fragment,{children:[(0,dr.jsx)(jo.Button,{__next40pxDefaultSize:!0,...u,children:(0,dr.jsx)(uYe,{indicator:e,label:(0,xf.__)("Duotone")})}),i&&(s?(0,dr.jsx)(kf,{className:"block-editor-panel-duotone-settings__reset",onResetToInherited:d}):(0,dr.jsx)(jo.Button,{size:"small",icon:dn,label:(0,xf.__)("Reset"),className:"block-editor-panel-duotone-settings__reset",onClick:d}))]})};function ID({as:e=aYe,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=lYe,showInheritanceLabelIndicators:a=Ki}){let l=w=>Ea({settings:n},"",w),u=(w,T,R)=>gl(a&&w,a&&T,R),d=TCe(n),f=CCe(n,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),p=CCe(n,{presetSetting:"palette",defaultSetting:"defaultPalette"}),h=l(t?.filter?.duotone),m=l(r?.filter?.duotone),g=h??m,b=h===void 0&&m!==void 0,v=w=>{let T=f.find(({colors:B})=>B===w),R=T?`var:preset|duotone|${T.slug}`:w;o(Me(t,["filter","duotone"],R))},y=w=>{if(w===void 0&&b&&m!==void 0){v(m);return}v(w)},k=()=>!!t?.filter?.duotone,S=()=>v(void 0),_=a&&k()&&m!==void 0,x=(0,N_.useCallback)(w=>({...w,filter:{...w.filter,duotone:void 0}}),[]);return(0,dr.jsx)(e,{resetAllFilter:x,value:t,onChange:o,panelId:i,children:d&&(0,dr.jsx)(Lt,{...u(b,h!==void 0&&m!==void 0),label:(0,xf.__)("Duotone"),hasValue:k,onDeselect:S,isShownByDefault:s.duotone,showLocalOverrideActionsInLabel:!1,panelId:i,children:(0,dr.jsx)(jo.Dropdown,{popoverProps:cYe,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:dYe(g,{hasLocalValue:k(),hasLocalOverride:_,onReset:S}),renderContent:()=>(0,dr.jsx)(jo.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,dr.jsxs)(jo.MenuGroup,{label:(0,xf.__)("Duotone"),children:[(0,dr.jsx)("p",{children:(0,xf.__)("Create a two-tone color effect without losing your original image.")}),(0,dr.jsx)(jo.DuotonePicker,{colorPalette:p,duotonePalette:f,disableCustomColors:!0,disableCustomDuotone:!0,value:g,onChange:y})]})})})})})}var M_=c(U(),1),QE=c(G(),1);var hy=c(E(),1);function RCe(e,t,o){return e==="core/image"&&o?.lightbox?.allowEditing||!!t?.lightbox}function BCe({onChange:e,value:t,inheritedValue:o,panelId:r}){let n=_r(),i=()=>{e(void 0)},s=l=>{e({enabled:l})},a=!1;return o?.lightbox?.enabled&&(a=o.lightbox.enabled),(0,hy.jsx)(hy.Fragment,{children:(0,hy.jsx)(M_.__experimentalToolsPanel,{label:(0,QE._x)("Settings","Image settings"),resetAll:i,panelId:r,dropdownMenuProps:n,children:(0,hy.jsx)(M_.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,QE.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:r,children:(0,hy.jsx)(M_.ToggleControl,{label:(0,QE.__)("Enlarge on click"),checked:a,onChange:s})})})})}var OD=c(U(),1);var ICe=c(F(),1),AD=c(G(),1);var JE=c(E(),1);function e$(e){return!(typeof e=="string"&&/<\/?\w/.test(e))}function OCe(e){return e$(e)?null:(0,AD.__)("The custom CSS is invalid. Do not use <> markup.")}function PCe(e){if(!e)return null;let t=OCe(e);if(t)return t;let[o]=VS([{css:e}],".for-validation-only");return o===null?(0,AD.__)("There is an error with your CSS structure."):null}function LD({value:e,onChange:t,inheritedValue:o=e,help:r}){let n=o?.css,[i,s]=(0,ICe.useState)(()=>PCe(n));function a(u){t({...e,css:u}),s(OCe(u))}function l(u){s(PCe(u?.target?.value))}return(0,JE.jsxs)(Qe,{direction:"column",gap:"md",className:"block-editor-global-styles-advanced-panel",children:[i&&(0,JE.jsx)(OD.Notice,{status:"error",onRemove:()=>s(null),children:i}),(0,JE.jsx)(OD.TextareaControl,{label:(0,AD.__)("Additional CSS"),value:n,onChange:u=>a(u),onBlur:l,className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1,help:r})]})}var zCe=c(U(),1),jCe=c(F(),1),Cf=c(G(),1);var yt=c(U(),1);var Ho=c(G(),1),LCe=c(ss(),1),t$=c(Vs(),1),wf=c(F(),1),t1=c(Q(),1),NCe=c(Rt(),1),MCe=c(QU(),1);var ft=c(E(),1),ND="image",fYe={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},MD=()=>{},e1=e=>{window.requestAnimationFrame(()=>{let[t]=NCe.focus.tabbable.find(e?.current);t&&t.focus()})};function pYe(e){return e==="cover"||e===void 0?(0,Ho.__)("Image covers the space evenly."):e==="contain"?(0,Ho.__)("Image is contained without distortion."):(0,Ho.__)("Image has a fixed width.")}var mYe=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;let t=isNaN(e.x)?.5:e.x,o=isNaN(e.y)?.5:e.y;return`${t*100}% ${o*100}%`},hYe=e=>{if(!e)return{x:void 0,y:void 0};let[t,o]=e.split(" ").map(r=>parseFloat(r)/100);return t=isNaN(t)?void 0:t,o=isNaN(o)?t:o,{x:t,y:o}};function DCe({as:e="span",imgUrl:t,toggleProps:o={},filename:r,label:n,onToggleCallback:i=MD}){let{isOpen:s,...a}=o;(0,wf.useEffect)(()=>{typeof s<"u"&&i(s)},[s,i]);let l=()=>(0,ft.jsxs)(yt.__experimentalHStack,{className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[(0,ft.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:t?`url(${t})`:void 0}}),(0,ft.jsxs)(yt.FlexBlock,{children:[(0,ft.jsx)(yt.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:n}),(0,ft.jsx)(bt,{render:(0,ft.jsx)("span",{}),children:t?(0,Ho.sprintf)((0,Ho.__)("Background image: %s"),r||n):(0,Ho.__)("No background image selected")})]})]});return e==="button"?(0,ft.jsx)(yt.Button,{__next40pxDefaultSize:!0,...a,children:l()}):l()}function gYe({label:e,filename:t,url:o,children:r,onToggle:n=MD,hasImageValue:i,onReset:s,hasLocalOverride:a,containerRef:l}){if(!i)return;let u=e||(0,t$.getFilename)(o)||(0,Ho.__)("Image");return(0,ft.jsx)(yt.Dropdown,{popoverProps:fYe,renderToggle:({onToggle:d,isOpen:f})=>{let p={onClick:d,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":f,"aria-label":(0,Ho.__)("Background size, position and repeat options."),isOpen:f};return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(DCe,{imgUrl:o,filename:t,label:u,toggleProps:p,as:"button",onToggleCallback:n}),s&&(a?(0,ft.jsx)(kf,{className:"block-editor-global-styles-background-panel__reset",onResetToInherited:()=>{s(),f&&d(),e1(l)}}):(0,ft.jsx)(yt.Button,{__next40pxDefaultSize:!0,label:(0,Ho.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:dn,onClick:()=>{s(),f&&d(),e1(l)}}))]})},renderContent:()=>(0,ft.jsx)(yt.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:r})})}function bYe(){return(0,ft.jsx)(yt.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,ft.jsx)(yt.Spinner,{})})}function ACe({onChange:e,style:t,inheritedValue:o,onRemoveImage:r=MD,onResetImage:n=MD,displayInPanel:i,defaultValues:s,containerRef:a}){let[l,u]=(0,wf.useState)(!1),{getSettings:d}=(0,t1.useSelect)(C),{id:f,title:p,url:h}=t?.background?.backgroundImage||{...o?.background?.backgroundImage},{createErrorNotice:m}=(0,t1.useDispatch)(LCe.store),g=w=>{m(w,{type:"snackbar"}),u(!1)},b=()=>e(Me(t,["background","backgroundImage"],void 0)),v=w=>{if(!w||!w.url){b(),u(!1);return}if((0,MCe.isBlobURL)(w.url)){u(!0);return}if(w.media_type&&w.media_type!==ND||!w.media_type&&w.type&&w.type!==ND){g((0,Ho.__)("Only images can be used as a background image."));return}let T=t?.background?.backgroundSize||s?.backgroundSize,R=t?.background?.backgroundPosition;e(Me(t,["background"],{...t?.background,backgroundImage:{url:w.url,id:w.id,source:"file",title:w.title||void 0},backgroundPosition:!R&&(T==="auto"||!T)?"50% 0":R,backgroundSize:T})),u(!1),e1(a)},y=w=>{d().mediaUpload({allowedTypes:[ND],filesList:w,onFileChange([T]){v(T)},onError:g,multiple:!1})},k=Cc(t),S=()=>e(Me(t,["background"],{backgroundImage:"none"})),_=!k&&Cc(o),x=p||(0,t$.getFilename)(h)||(0,Ho.__)("Image");return(0,ft.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[l&&(0,ft.jsx)(bYe,{}),(0,ft.jsx)(p_,{mediaId:f,mediaURL:h,allowedTypes:[ND],accept:"image/*",onSelect:v,popoverProps:{className:$({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,ft.jsx)(DCe,{imgUrl:h,filename:p,label:x}),renderToggle:w=>(0,ft.jsx)(yt.Button,{...w,__next40pxDefaultSize:!0}),onError:g,onReset:()=>{e1(a),n()},children:_&&(0,ft.jsx)(yt.MenuItem,{onClick:()=>{e1(a),S(),r()},children:(0,Ho.__)("Remove")})}),(0,ft.jsx)(yt.DropZone,{onFilesDrop:y,label:(0,Ho.__)("Drop to upload")})]})}function yYe({onChange:e,style:t,inheritedValue:o,defaultValues:r}){let n=t?.background?.backgroundSize,i=t?.background?.backgroundRepeat,s=t?.background?.backgroundPosition,a=t?.background?.backgroundAttachment,l=o?.background?.backgroundSize,u=o?.background?.backgroundRepeat,d=o?.background?.backgroundPosition,f=o?.background?.backgroundAttachment,p=n||l,h=i||u,m=t?.background?.backgroundImage?.url||o?.background?.backgroundImage?.url,g=t?.background?.backgroundImage?.id,b=s||d,v=a||f,y=!p&&g?r?.backgroundSize:p||"auto";y=["cover","contain","auto"].includes(y)?y:"auto";let k=!(h==="no-repeat"||y==="cover"&&h===void 0),S=R=>{let B=h,I=b;R==="contain"&&(B="no-repeat",I=void 0),R==="cover"&&(B=void 0,I=void 0),(y==="cover"||y==="contain")&&R==="auto"&&(B=void 0,t?.background?.backgroundImage?.id&&(I="50% 0")),!R&&y==="auto"&&(R="auto"),e(Me(t,["background"],{...t?.background,backgroundPosition:I,backgroundRepeat:B,backgroundSize:R}))},_=R=>{e(Me(t,["background","backgroundPosition"],mYe(R)))},x=()=>e(Me(t,["background","backgroundRepeat"],k===!0?"no-repeat":"repeat")),w=()=>e(Me(t,["background","backgroundAttachment"],v==="fixed"?"scroll":"fixed")),T=!b&&g&&p==="contain"?r?.backgroundPosition:b;return(0,ft.jsxs)(yt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,ft.jsx)(yt.FocalPointPicker,{label:(0,Ho.__)("Focal point"),url:m,value:hYe(T),onChange:_}),(0,ft.jsx)(yt.ToggleControl,{label:(0,Ho.__)("Fixed background"),checked:v==="fixed",onChange:w}),(0,ft.jsxs)(yt.__experimentalToggleGroupControl,{label:(0,Ho.__)("Size"),value:y,onChange:S,isBlock:!0,help:pYe(p||r?.backgroundSize),children:[(0,ft.jsx)(yt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Ho._x)("Cover","Size option for background image control")},"cover"),(0,ft.jsx)(yt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Ho._x)("Contain","Size option for background image control")},"contain"),(0,ft.jsx)(yt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Ho._x)("Tile","Size option for background image control")},"tile")]}),(0,ft.jsxs)(yt.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,ft.jsx)(yt.__experimentalUnitControl,{"aria-label":(0,Ho.__)("Background image width"),onChange:S,value:p,__unstableInputWidth:"100px",min:0,placeholder:(0,Ho.__)("Auto"),disabled:y!=="auto"||y===void 0}),(0,ft.jsx)(yt.ToggleControl,{label:(0,Ho.__)("Repeat"),checked:k,onChange:x,disabled:y==="cover"})]})]})}function VCe({value:e,onChange:t,inheritedValue:o=e,settings:r,defaultValues:n={},showInheritanceLabelIndicators:i=!0}){let{globalStyles:s,_links:a}=(0,t1.useSelect)(S=>{let{getSettings:_}=S(C),x=_();return{globalStyles:x[os],_links:x[Uy]}},[]),l=(0,wf.useMemo)(()=>{let S={background:{}};return o?.background?(Object.entries(o?.background).forEach(([_,x])=>{S.background[_]=sp(x,{styles:s,_links:a})}),S):o},[s,a,o]),u=()=>t(Me(e,["background"],{gradient:e?.background?.gradient})),{title:d,url:f}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=Cc(e),h=p||Cc(l),m=i&&p&&Cc(l),g=e?.background?.backgroundImage||o?.background?.backgroundImage,b=h&&g!=="none"&&(r?.background?.backgroundSize||r?.background?.backgroundPosition||r?.background?.backgroundRepeat),[v,y]=(0,wf.useState)(!1),k=(0,wf.useRef)();return(0,ft.jsx)("div",{ref:k,className:$("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":v}),children:b?(0,ft.jsx)(gYe,{label:d,filename:d,url:f,onToggle:y,hasImageValue:h,hasLocalOverride:m,onReset:p?u:void 0,containerRef:k,children:(0,ft.jsxs)(yt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,ft.jsx)(ACe,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=>{y(!1),u()},onRemoveImage:()=>y(!1),defaultValues:n,containerRef:k}),(0,ft.jsx)(yYe,{onChange:t,style:e,defaultValues:n,inheritedValue:l})]})}):(0,ft.jsx)(ACe,{onChange:t,style:e,inheritedValue:l,defaultValues:n,onResetImage:()=>{y(!1),u()},onRemoveImage:()=>y(!1),containerRef:k})})}var Fu=c(E(),1),vYe={backgroundImage:!0,backgroundColor:!0,gradient:!0};function FCe(e,t){return e?.background?.[t]}function DD(e){let t=$W(e),{backgroundImage:o,gradient:r}=e?.background||{};return o||r||t}function Cc(e){return!!e?.background?.backgroundImage?.id||typeof e?.background?.backgroundImage=="string"||!!e?.background?.backgroundImage?.url}function o$(e){return typeof e?.background?.gradient=="string"&&e?.background?.gradient!==""}function SYe(e){return!!e?.color?.background}function kYe(e){return!!e?.color?.gradient}function r$({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,headerLabel:i}){let s=_r();return(0,Fu.jsx)(zCe.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,hasInnerWrapper:!0,className:"background-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,Fu.jsx)("div",{className:"background-block-support-panel__inner-wrapper",children:n})})}function VD({as:e=r$,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=vYe,defaultValues:a={},headerLabel:l=(0,Cf.__)("Background"),contrastWarning:u,showInheritanceLabelIndicators:d=Ki}){let{colors:f,gradients:p,allColors:h,areCustomSolidsEnabled:m,areCustomGradientsEnabled:g,hasSolidColors:b,hasGradientColors:v,decodeValue:y,encodeGradientValue:k}=B_(n),S=FCe(n,"gradient"),_=$W(n),x=_&&b,w=v&&S,T=_&&v&&!S,R=FCe(n,"backgroundImage"),B=(0,jCe.useCallback)(K=>{let Y=x,Z=S||T;return!Y&&!Z?{...K,background:{}}:{...K,background:{},color:{...K?.color,...Y&&{background:void 0},...Z&&{gradient:void 0}}}},[S,x,T]);if(!R&&!x&&!w&&!T)return null;let I=()=>o(Me(t,["background","backgroundImage"],void 0)),O=()=>{let K=Me(t,["background","gradient"],void 0);K=Me(K,["color","gradient"],void 0),o(K)},P=y(r?.color?.background),A=y(t?.color?.background),M=(K,Y)=>{let Z=Me(t,["color","background"],_f(h,K,Y));T&&(Z.color.gradient=void 0),o(Z)},z=()=>{let K=Me(t,["color","background"],void 0);T&&(K.color.gradient=void 0),o(K)},V=y(r?.color?.gradient),L=y(t?.color?.gradient),D=K=>{let Y=Me(t,["color","gradient"],k(K));Y.color.background=void 0,o(Y)},N=()=>o(Me(t,["color","gradient"],void 0)),j=y(t?.background?.gradient??t?.color?.gradient),X=y(r?.background?.gradient??r?.color?.gradient),J=K=>{let Y=Me(t,["background","gradient"],k(K));Y=Me(Y,["color","gradient"],void 0),o(Y)},te=(K,Y,Z)=>d?gl(K,Y,Z):{className:Z},ee=Cc({background:{backgroundImage:r?.background?.backgroundImage}}),W=Cc(t);return(0,Fu.jsxs)(e,{resetAllFilter:B,value:t,onChange:o,panelId:i,headerLabel:l,children:[R&&(0,Fu.jsx)(Lt,{...te(ee&&!W,W&&ee,"block-editor-color-gradient-item"),showLocalOverrideActionsInLabel:!1,hasValue:()=>Cc(t),label:(0,Cf.__)("Image"),onDeselect:I,isShownByDefault:s.backgroundImage,panelId:i,children:(0,Fu.jsx)(VCe,{value:t,onChange:o,settings:n,inheritedValue:r,defaultControls:s,defaultValues:a,showInheritanceLabelIndicators:d})}),x&&(0,Fu.jsx)(lh,{label:(0,Cf.__)("Color"),hasValue:()=>SYe(t),resetValue:z,isShownByDefault:s.backgroundColor,indicators:[A??P],contrastWarning:u,showInheritanceLabelIndicators:d,isPlaceholder:A===void 0&&P!==void 0,hasInheritedValue:P!==void 0,tabs:[{key:"background",label:(0,Cf.__)("Color"),inheritedValue:P,inheritedSlug:sn(r?.color?.background,"color"),userSlug:sn(t?.color?.background,"color"),setValue:M,userValue:A,isPlaceholder:A===void 0&&P!==void 0}],colorGradientControlSettings:{colors:f,disableCustomColors:!m},panelId:i}),w&&(0,Fu.jsx)(lh,{label:(0,Cf.__)("Gradient"),hasValue:()=>o$(t),resetValue:O,isShownByDefault:s.gradient,indicators:[j??X],showInheritanceLabelIndicators:d,isPlaceholder:j===void 0&&X!==void 0,hasInheritedValue:X!==void 0,tabs:[{key:"gradient",label:(0,Cf.__)("Gradient"),inheritedValue:X,setValue:J,userValue:j,isGradient:!0,isPlaceholder:j===void 0&&X!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!g},panelId:i}),T&&(0,Fu.jsx)(lh,{label:(0,Cf.__)("Gradient"),hasValue:()=>kYe(t),resetValue:N,isShownByDefault:s.gradient,indicators:[L??V],showInheritanceLabelIndicators:d,isPlaceholder:L===void 0&&V!==void 0,hasInheritedValue:V!==void 0,tabs:[{key:"gradient",label:(0,Cf.__)("Gradient"),inheritedValue:V,setValue:D,userValue:L,isGradient:!0,isPlaceholder:L===void 0&&V!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!g},panelId:i})]})}var zu=c(G(),1);var ch=c(U(),1);var Ec=c(E(),1);function FD({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",onChangeViewport:n,onChangePseudoState:i,showText:s=!0,popoverProps:a={}}){if(!e.length&&!t.length)return null;let l=[{label:(0,zu.__)("Default"),value:"default"},...e.map(v=>({label:v.label,value:v.value}))],u=[{label:(0,zu.__)("Default"),value:"default"},...t.map(v=>({label:v.label,value:v.value}))],d=e.length>0,f=t.length>0,p=(0,zu.__)("States"),h=[];if(d&&o!=="default"){let v=l.find(y=>y.value===o);v&&h.push({key:`viewport-${v.value}`,label:v.label})}if(f&&r!=="default"){let v=u.find(y=>y.value===r);v&&h.push({key:`pseudo-${v.value}`,label:v.label})}let m=h.length?h.map(v=>v.label).join(", "):(0,zu.__)("Default"),g=s?cn:Fs,b=s?{size:"compact",iconPosition:"right"}:{size:"small"};return(0,Ec.jsx)(Qe,{direction:"column",gap:"sm",align:"flex-end",className:"block-editor-global-styles-state-control",children:(0,Ec.jsx)(ch.DropdownMenu,{icon:g,label:s?p:(0,zu.sprintf)((0,zu.__)("State: %s"),m),popoverProps:{placement:"right-start",...a},text:s?p:void 0,toggleProps:b,children:({onClose:v})=>(0,Ec.jsxs)(Ec.Fragment,{children:[d&&(0,Ec.jsx)(ch.MenuGroup,{label:(0,zu.__)("Viewport"),children:l.map(y=>(0,Ec.jsx)(ch.MenuItem,{onClick:()=>{n?.(y.value),f||v()},icon:o===y.value?rs:null,children:y.label},`viewport-${y.value}`))}),f&&(0,Ec.jsx)(ch.MenuGroup,{label:(0,zu.__)("Pseudo state"),children:u.map(y=>(0,Ec.jsx)(ch.MenuItem,{onClick:()=>{i?.(y.value),d||v()},icon:r===y.value?rs:null,children:y.label},`pseudo-${y.value}`))})]})})})}var HCe=c(U(),1),D_=c(G(),1);var ju=c(E(),1),{Badge:_Ye}=H(HCe.privateApis);function zD({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",className:n="block-editor-global-styles-state-control__badges"}){let i=[],s=e.find(l=>l.value===o),a=t.find(l=>l.value===r);return s&&i.push({key:`viewport-${s.value}`,label:s.label,tooltipText:(0,D_.sprintf)((0,D_.__)("Style changes apply to the %s viewport."),s.label)}),a&&i.push({key:`pseudo-${a.value}`,label:a.label,tooltipText:(0,D_.sprintf)((0,D_.__)("Style changes apply to the %s state."),a.label)}),(0,ju.jsx)(Qe,{className:n,direction:"row",justify:"flex-start",gap:"xs",wrap:"wrap",children:i.map(l=>{let u=(0,ju.jsxs)(_Ye,{className:"block-editor-global-styles-state-control__badge",intent:"info",children:[l.label,!!l.tooltipText&&(0,ju.jsx)(bt,{render:(0,ju.jsx)("span",{}),children:l.tooltipText})]},l.key);return l.tooltipText?(0,ju.jsxs)(xt.Root,{children:[(0,ju.jsx)(xt.Trigger,{render:(0,ju.jsx)("span",{className:"block-editor-global-styles-state-control__badge-tooltip-trigger",children:u})}),(0,ju.jsx)(xt.Popup,{children:l.tooltipText})]},l.key):u})})}var s1=c(F(),1),a$=c(Q(),1),WCe=c(ce(),1);var n1=c(ce(),1),o1=c(Q(),1),jD=c(F(),1);var r1=c(E(),1),{getVariationStyle:xYe}=H(br),i$="is-style-";function UCe(e){return e?e.split(/\s+/).reduce((t,o)=>{if(o.startsWith(i$)){let r=o.slice(i$.length);r!=="default"&&t.push(r)}return t},[]):[]}function i1(e,t=[]){let o=UCe(e);if(!o)return null;for(let r of o)if(t.some(n=>n.name===r))return r;return null}function wYe({override:e}){Tc(e)}function s$({config:e}){let{overrides:t}=(0,o1.useSelect)(n=>({overrides:H(n(C)).getStyleOverrides()}),[]),{getBlockName:o}=(0,o1.useSelect)(C),r=(0,jD.useMemo)(()=>{if(!t?.length)return;let n=[],i=[];for(let[,s]of t)if(s?.variation&&s?.clientId&&!i.includes(s.clientId)){let a=o(s.clientId),l=e?.styles?.blocks?.[a]?.variations?.[s.variation];if(l){let u={settings:e?.settings,styles:{blocks:{[a]:{variations:{[`${s.variation}-${s.clientId}`]:l}}}}},d=SB((0,n1.getBlockTypes)(),s.clientId),g=vB(u,d,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});n.push({id:`${s.variation}-${s.clientId}`,css:g,__unstableType:"variation",variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return n},[e,t,o]);return!r||!r.length?null:(0,r1.jsx)(r1.Fragment,{children:r.map(n=>(0,r1.jsx)(wYe,{override:n},n.id))})}function CYe(e,t,o){let{globalSettings:r,globalStyles:n}=(0,o1.useSelect)(i=>{let s=i(C).getSettings();return{globalSettings:s.__experimentalFeatures,globalStyles:s[os]}},[]);return(0,jD.useMemo)(()=>{let i=xYe({settings:r,styles:n},e,t);return{settings:r,styles:{blocks:{[e]:{variations:{[`${t}-${o}`]:i}}}}}},[r,n,t,o,e])}function EYe({name:e,className:t,clientId:o}){let{getBlockStyles:r}=(0,o1.useSelect)(n1.store),n=r(e),i=i1(t,n),s=`${i$}${i}-${o}`,{settings:a,styles:l}=CYe(e,i,o),u=(0,jD.useMemo)(()=>{if(!i)return;let d={settings:a,styles:l},f=SB((0,n1.getBlockTypes)(),o);return vB(d,f,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[i,a,l,o]);return Tc({id:`variation-${o}`,css:u,__unstableType:"variation",variation:i,clientId:o}),i?{className:s}:{}}var GCe={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>UCe(e).length>0,useBlockProps:EYe};var{resolveStyle:TYe}=H(br),RYe={value:void 0,sources:void 0};function BYe(){let{rawGlobalStylesData:e,links:t}=(0,a$.useSelect)(o=>{let r=o(C).getSettings();return{rawGlobalStylesData:r[os]??null,links:r[Uy]??null}},[]);return(0,s1.useMemo)(()=>e?{styles:e,_links:t??void 0}:null,[e,t])}var $Ce={"core/accordion-heading":{contextKey:"core/accordion-heading-level",fallbackLevel:3}};function PYe(e,t,o){let r=$Ce[e];return r?t||o||r.fallbackLevel:t}function IYe(e){let t=(0,s1.useContext)(kn),o=$Ce[e]?.contextKey;return o?t[o]:void 0}function OYe(e,t){switch(e){case"core/button":return["button"];case"core/accordion-heading":case"core/heading":case"core/post-title":case"core/site-title":case"core/query-title":case"core/comments-title":case"core/term-name":case"core/site-tagline":return t===0?[]:t?["heading",`h${t}`]:["heading"];default:return[]}}function AYe(e,t){let{clientId:o}=ht(),r=IYe(e);return(0,a$.useSelect)(n=>{if(!e)return{variationName:null,headingLevel:void 0};let i=n(WCe.store).getBlockStyles(e),{level:s}=n(C).getBlockAttributes(o)||{};return{variationName:t?i1(t,i):null,headingLevel:PYe(e,s,r)}},[e,t,o,r])}function Sl(e,t,o=null){let{variationName:r,headingLevel:n}=AYe(e,t),i=BYe();return(0,s1.useMemo)(()=>Ki?e?TYe(i,{blockName:e,variationName:r,elements:OYe(e,n),viewport:o?.viewport??null,pseudoState:o?.pseudo??null}):{value:{},sources:{}}:RYe,[e,r,n,i,o])}var c$=c(E(),1),by="__experimentalBorder",l1="shadow",KCe=(e,t,o)=>{let r;return e.some(n=>n.colors.some(i=>i[t]===o?(r=i,!0):!1)),r},gy=({colors:e,namedColor:t,customColor:o})=>{if(t){let n=KCe(e,"slug",t);if(n)return n}if(!o)return{color:void 0};let r=KCe(e,"color",o);return r||{color:o}};function HD(e){let t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function ZCe(e){if((0,l$.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};let t=e?.border?.color,o=t?.startsWith("var:preset|color|")?t.substring(17):void 0,r={...e};return r.border={...r.border,color:o?void 0:t},{style:Ge(r),borderColor:o}}function XCe(e){return(0,l$.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function LYe({label:e,children:t,resetAllFilter:o}){let r=(0,GD.useCallback)(n=>{let i=XCe(n),s=o(i);return{...n,...ZCe(s)}},[o]);return(0,c$.jsx)(Oe,{group:"border",resetAllFilter:r,label:e,children:t})}function QCe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Ja(),i=RD(r),{style:s,borderColor:a,className:l}=(0,qCe.useSelect)(m=>{if(!i)return{};let{style:g,borderColor:b,className:v}=m(C).getBlockAttributes(e)||{};return{style:g,borderColor:b,className:v}},[e,i]),{value:u}=Sl(t,l,n),d=!Tn(n),f=(0,GD.useMemo)(()=>d?To(s,n):XCe({style:s,borderColor:a}),[d,n,s,a]),p=d?m=>{o({style:Rn(s,n,m)})}:m=>{o(ZCe(m))};if(!i)return null;let h={...(0,a1.getBlockSupport)(t,[by,"__experimentalDefaultControls"]),...(0,a1.getBlockSupport)(t,[l1,"__experimentalDefaultControls"])};return(0,c$.jsx)(BD,{as:LYe,panelId:e,settings:r,value:f,onChange:p,defaultControls:h,inheritedValue:u})}function WD(e,t="any"){let o=(0,a1.getBlockSupport)(e,by);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}function my({blockName:e,hasBorderControl:t,hasShadowControl:o}={}){let r=kl(e),n=XE(r);return!t&&!o&&e&&(t=n?.hasBorderColor||n?.hasBorderStyle||n?.hasBorderWidth||n?.hasBorderRadius,o=n?.hasShadow),t&&o?(0,UD.__)("Border & Shadow"):o?(0,UD.__)("Shadow"):(0,UD.__)("Border")}function NYe(e){return!WD(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function JCe(e,t,o){if(!WD(t,"color")||Gt(t,by,"color"))return e;let r=u$(o),n=$(e.className,r);return e.className=n||void 0,e}function u$(e){let{borderColor:t,style:o}=e,r=xa("border-color",t);return $({"has-border-color":t||o?.border?.color,[r]:!!r})}function MYe({name:e,borderColor:t,style:o}){let{colors:r}=Ym();if(!WD(e,"color")||Gt(e,by,"color"))return{};let{color:n}=gy({colors:r,namedColor:t}),{color:i}=gy({colors:r,namedColor:HD(o?.border?.top?.color)}),{color:s}=gy({colors:r,namedColor:HD(o?.border?.right?.color)}),{color:a}=gy({colors:r,namedColor:HD(o?.border?.bottom?.color)}),{color:l}=gy({colors:r,namedColor:HD(o?.border?.left?.color)});return JCe({style:Ge({borderTopColor:i||n,borderRightColor:s||n,borderBottomColor:a||n,borderLeftColor:l||n})||{}},e,{borderColor:t,style:o})}var d$={useBlockProps:MYe,addSaveProps:JCe,attributeKeys:["borderColor","style"],hasSupport(e){return WD(e,"color")}};(0,YCe.addFilter)("blocks.registerBlockType","core/border/addAttributes",NYe);var b$=c(ce(),1),XD=c(F(),1),uEe=c(Q(),1),dEe=c(G(),1);var m$=c(bo(),1),z_=c(ce(),1),lEe=c(F(),1);var F_=c(ce(),1),nEe=c(Q(),1),iEe=c(G(),1);var yy=c(F(),1),tEe=c(Q(),1),oEe=c(ce(),1);var rEe=c(Xr(),1);function $D(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function eEe(e,t){if(!e||!t)return{};let o=zs(t,"color.text",{fallback:!0}),r=zs(t,"color.background",{fallback:!0}),n=e.querySelector(o)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=$D(n,"color"),l=s&&s.textContent?$D(s,"color"):void 0,u=i,d=$D(u,"background-color");for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=$D(u,"background-color");return{textColor:a,backgroundColor:d,linkColor:l}}function DYe(e,t){return Object.keys(t).some(r=>e[r]!==t[r])?t:e}function V_({clientId:e,name:t,enabled:o=!0,checkTextColor:r=!0,checkLinkColor:n=!0,messageOverride:i}){let s=Mt(e),[a,l]=(0,yy.useReducer)(DYe,{}),u=(0,tEe.useSelect)(p=>t&&o?p(oEe.store).getBlockType(t):void 0,[t,o]);(0,yy.useLayoutEffect)(()=>{!o||!s||!u||window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>l(eEe(s,u))))}),(0,yy.useLayoutEffect)(()=>{if(!o||!s||!u)return;let p=new window.MutationObserver(()=>{l(eEe(s,u))});return p.observe(s,{attributes:!0,attributeFilter:["class","style"],subtree:!0}),()=>{p.disconnect()}},[o,s,u]);let d=o?IG({backgroundColor:a.backgroundColor,textColor:r?a.textColor:void 0,linkColor:n?a.linkColor:void 0,messageOverride:i,enableAlphaChecker:!0}):null,f=d?.speakMessage;return(0,yy.useEffect)(()=>{f&&(0,rEe.speak)(f)},[f]),d?.message}var p$=c(E(),1),vy="background",f$={backgroundSize:"cover",backgroundPosition:"50% 50%"};function c1(e,t="any"){let o=(0,F_.getBlockSupport)(e,vy);return o===!0?!0:t==="any"?!!o?.backgroundImage||!!o?.backgroundSize||!!o?.backgroundRepeat||!!o?.gradient:!!o?.[t]}function KD(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:f$.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:f$.backgroundPosition}),t}function VYe({name:e,style:t}){if(!c1(e)||!t?.background?.backgroundImage)return;let o=KD(t?.background);if(o)return{style:{...o}}}function sEe(e){return Cc(e)||o$(e)?"has-background":""}function FYe(e){let t=e.className?.includes("has-background")?e.className.split(" ").filter(o=>o!=="has-background").join(" ")||void 0:e.className;return{...e,className:t,backgroundColor:void 0,gradient:void 0,style:Ge({...e.style,background:void 0,color:{...e.style?.color,background:void 0,gradient:void 0}})}}function zYe({children:e}){return(0,p$.jsx)(Oe,{group:"background",resetAllFilter:FYe,children:e})}function YD({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Ja(),{style:s,className:a,backgroundColor:l,gradient:u}=(0,nEe.useSelect)(B=>{let{getBlockAttributes:I}=B(C),O=I(e);return{style:O?.style,className:O?.className,backgroundColor:O?.backgroundColor,gradient:O?.gradient}},[e]),{value:d}=Sl(t,a,i),f=c1(t,"gradient"),p=(0,F_.getBlockSupport)(t,"color"),h=p&&p.background!==!1,m=!!p?.gradients,g=!Tn(i),b={...s,color:{...s?.color,background:l?"var:preset|color|"+l:s?.color?.background,gradient:!f&&u?"var:preset|gradient|"+u:s?.color?.gradient},...f&&{background:{...s?.background,gradient:u?"var:preset|gradient|"+u:s?.background?.gradient??s?.color?.gradient}}},v=g?To(s,i):b,y=!v?.color?.gradient&&!v?.background?.gradient&&!!v?.color?.background&&(r?.color?.text||r?.color?.link)&&(0,F_.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,k=V_({clientId:e,name:t,enabled:!!y,messageOverride:(0,iEe.__)("This color combination has poor contrast. Consider increasing contrast between background and foreground.")});if(!DD(r)||!c1(t)&&!h&&!m)return null;let S=B=>{if(g){o({style:Rn(s,i,B)});return}let I=B?.color?.background,O=sn(I,"color"),P=f?B?.background?.gradient:B?.color?.gradient,A=sn(P,"gradient"),M=A?void 0:B?.color?.gradient,z={...B,color:{...B?.color,background:O?void 0:I,gradient:f?void 0:M}};f&&(z.background={...z.background,gradient:B?.background?.gradient});let V=f&&!!s?.color?.gradient,L={style:Ge(z),backgroundColor:O,gradient:f?void 0:A},D=!!A||!!P;V&&D?L.className=$(a,"has-background"):!D&&a?.includes("has-background")&&(L.className=a.split(" ").filter(N=>N!=="has-background").join(" ")||void 0),o(L)},_={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&c1(t,"backgroundSize")}},x=(0,F_.getBlockSupport)(t,[vy,"__experimentalDefaultControls"]),w=(0,F_.getBlockSupport)(t,["color","__experimentalDefaultControls"]),T={...x,backgroundColor:w?.background,gradient:x?.gradient??w?.background};return(0,p$.jsx)(VD,{as:n||zYe,panelId:e,defaultValues:f$,settings:_,onChange:S,defaultControls:T,value:g?To(s,i):b,contrastWarning:k,inheritedValue:d})}var aEe={useBlockProps:VYe,attributeKeys:["style"],hasSupport:c1};var An="color",qD=e=>{let t=(0,z_.getBlockSupport)(e,An);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},jYe=e=>{let t=(0,z_.getBlockSupport)(e,An);return t!==null&&typeof t=="object"&&!!t.link},h$=e=>{let t=(0,z_.getBlockSupport)(e,An);return t!==null&&typeof t=="object"&&!!t.gradients},HYe=e=>{let t=(0,z_.getBlockSupport)(e,An);return t&&t.background!==!1},UYe=e=>{let t=(0,z_.getBlockSupport)(e,An);return t&&t.text!==!1};function GYe(e){return qD(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),h$(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function cEe(e,t,o){if(!qD(t)||Gt(t,An))return e;let r=h$(t),{backgroundColor:n,textColor:i,gradient:s,style:a}=o,l=g=>!Gt(t,An,g),u=l("text")?xa("color",i):void 0,d=l("gradients")?gv(s):void 0,f=l("background")?xa("background-color",n):void 0,p=l("background")||l("gradients"),h=n||a?.color?.background||r&&(s||a?.color?.gradient),m=$(e.className,u,d,{[f]:(!r||!a?.color?.gradient)&&!!f,"has-text-color":l("text")&&(i||a?.color?.text),"has-background":p&&h,"has-link-color":l("link")&&a?.elements?.link?.color});return e.className=m||void 0,e}function WYe({name:e,backgroundColor:t,textColor:o,gradient:r,style:n}){let[i,s,a]=Le("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,lEe.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!qD(e)||Gt(e,An))return{};let u={};o&&!Gt(e,An,"text")&&(u.color=zc(l,o)?.color),t&&!Gt(e,An,"background")&&(u.backgroundColor=zc(l,t)?.color);let d=cEe({style:u},e,{textColor:o,backgroundColor:t,gradient:r,style:n}),f=t||n?.color?.background||r||n?.color?.gradient;return{...d,className:$(d.className,!f&&sEe(n))}}var g$={useBlockProps:WYe,addSaveProps:cEe,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:qD},$Ye={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function KYe(e,t,o,r){let n=e.name,i={linkColor:jYe(n),textColor:UYe(n),backgroundColor:HYe(n),gradient:h$(n)};return ZD(i,$Ye,e,t,o,r)}(0,m$.addFilter)("blocks.registerBlockType","core/color/addAttribute",GYe);(0,m$.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",KYe);var y$=c(E(),1);function YYe({children:e,resetAllFilter:t}){let o=(0,XD.useCallback)(r=>{let n=t(r.style);return{...r,style:Ge(n)}},[t]);return(0,y$.jsx)(Oe,{group:"elements",resetAllFilter:o,children:e})}function QD({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n,label:i,defaultControls:s}){let a=Ja(),l=hD(r),{style:u,className:d}=(0,uEe.useSelect)(y=>{if(!l)return{};let k=y(C).getBlockAttributes(e);return{style:k?.style,className:k?.className}},[e,l]),{value:f}=Sl(t,d,a),p=!Tn(a),h=(0,XD.useMemo)(()=>p?To(u,a):u,[p,a,u]),m=p?y=>{o({style:Rn(u,a,y)})}:y=>{o({style:Ge(y)})},g=!!h?.elements?.link?.color?.text&&r?.color?.link&&(0,b$.getBlockSupport)(t,[An,"enableContrastChecker"])!==!1,b=V_({clientId:e,name:t,enabled:!!g,checkTextColor:!1,messageOverride:(0,dEe.__)("This link color has poor contrast against the background. Consider increasing contrast.")});return l?(s=s||(0,b$.getBlockSupport)(t,[An,"__experimentalDefaultControls"]),(0,y$.jsx)(gD,{as:n||YYe,panelId:e,settings:r,value:h,onChange:m,defaultControls:s,label:i,contrastWarning:b,inheritedValue:f})):null}var f1=c(ce(),1),iV=c(F(),1),PEe=c(Q(),1),IEe=c(G(),1);var qYe=c(ce(),1);var ZYe=c(E(),1),fEe="typography.lineHeight";var pEe=c(bo(),1),JD=c(ce(),1),mEe=c(WL(),1),hEe=c(U(),1);var u1="typography.__experimentalFontFamily",{kebabCase:XYe}=H(hEe.privateApis);function QYe(e){return(0,JD.hasBlockSupport)(e,u1)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function gEe(e,t,o){if(!(0,JD.hasBlockSupport)(t,u1)||Gt(t,_l,"fontFamily")||!o?.fontFamily)return e;let r=new mEe.default(e.className);r.add(`has-${XYe(o?.fontFamily)}-font-family`);let n=r.value;return e.className=n||void 0,e}function JYe({name:e,fontFamily:t}){return gEe({},e,{fontFamily:t})}var v$={useBlockProps:JYe,addSaveProps:gEe,attributeKeys:["fontFamily"],hasSupport(e){return(0,JD.hasBlockSupport)(e,u1)}};(0,pEe.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",QYe);var S$=c(bo(),1),j_=c(ce(),1),bEe=c(WL(),1);var eqe=c(E(),1),Sy="typography.fontSize";function tqe(e){return(0,j_.hasBlockSupport)(e,Sy)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function yEe(e,t,o){if(!(0,j_.hasBlockSupport)(t,Sy)||Gt(t,_l,"fontSize"))return e;let r=new bEe.default(e.className);r.add(gp(o.fontSize));let n=r.value;return e.className=n||void 0,e}function oqe({name:e,fontSize:t,style:o}){let[r,n,i]=Le("typography.fontSizes","typography.fluid","layout");if(!(0,j_.hasBlockSupport)(e,Sy)||Gt(e,_l,"fontSize")||!t&&!o?.typography?.fontSize)return;let s;if(o?.typography?.fontSize&&(s={style:{fontSize:ld({size:o.typography.fontSize},{typography:{fluid:n},layout:i})}}),t&&(s={style:{fontSize:bv(r,t,o?.typography?.fontSize).size}}),!!s)return yEe(s,e,{fontSize:t})}var k$={useBlockProps:oqe,addSaveProps:yEe,attributeKeys:["fontSize","style"],hasSupport(e){return(0,j_.hasBlockSupport)(e,Sy)}},rqe={fontSize:[["fontSize"],["style","typography","fontSize"]]};function nqe(e,t,o,r){let n=e.name,i={fontSize:(0,j_.hasBlockSupport)(n,Sy)};return ZD(i,rqe,e,t,o,r)}(0,S$.addFilter)("blocks.registerBlockType","core/font/addAttribute",tqe);(0,S$.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",nqe);var tV=c(G(),1),H_=c(ce(),1);var kEe=c(Q(),1);var eV=c(Q(),1),vEe=c(F(),1);function Cr(e){let t=ht(),{clientId:o=""}=t,r=(0,eV.useRegistry)(),n=(0,eV.useSelect)(i=>o?null:i(C).getBlockEditingMode(),[o]);return(0,vEe.useEffect)(()=>{if(!e)return;let{setBlockEditingMode:i,unsetBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:a}=r.dispatch(C);return a(),i(o,e),()=>{a(),s(o)}},[r,o,e]),o?t[Q1]:n}var _$=c(E(),1),U_="typography.textAlign",iqe=[{icon:ep,title:(0,tV.__)("Align text left"),align:"left"},{icon:Xh,title:(0,tV.__)("Align text center"),align:"center"},{icon:tp,title:(0,tV.__)("Align text right"),align:"right"}],SEe=["left","center","right"],sqe=[];function x$(e){return Array.isArray(e)?SEe.filter(t=>e.includes(t)):e===!0?SEe:sqe}function aqe(e,t){return e&&zi(t)?"style-state":"block"}function lqe({clientId:e,style:t,name:o,setAttributes:r}){let i=kl(o)?.typography?.textAlign,s=Cr(),{selectedState:a,isResponsiveEditing:l}=(0,kEe.useSelect)(m=>{let{getSelectedBlockStyleState:g,isResponsiveEditing:b}=H(m(C));return{selectedState:g(e),isResponsiveEditing:b()}},[e]);if(!i||s!=="default")return null;let u=x$((0,H_.getBlockSupport)(o,U_));if(!u.length)return null;let d=iqe.filter(m=>u.includes(m.align)),f=To(t,a),p=aqe(l,a),h=m=>{let g={...f,typography:{...f?.typography,textAlign:m}};r({style:Rn(t,a,g)})};return(0,_$.jsx)(No,{group:p,children:(0,_$.jsx)(KB,{value:f?.typography?.textAlign,onChange:h,alignmentControls:d})})}var oV={edit:lqe,useBlockProps:cqe,addSaveProps:uqe,attributeKeys:["style"],hasSupport(e){return(0,H_.hasBlockSupport)(e,U_,!1)}};function cqe({name:e,style:t}){if(!t?.typography?.textAlign||!x$((0,H_.getBlockSupport)(e,U_)).length||Gt(e,_l,"textAlign"))return null;let r=t.typography.textAlign;return{className:$({[`has-text-align-${r}`]:r})}}function uqe(e,t,o){if(!o?.style?.typography?.textAlign)return e;let{textAlign:r}=o.style.typography,n=(0,H_.getBlockSupport)(t,U_);return x$(n).includes(r)&&!Gt(t,_l,"textAlign")&&(e.className=$(`has-text-align-${r}`,e.className)),e}var C$=c(bo(),1),uh=c(ce(),1),ky=c(F(),1),E$=c(Q(),1),d1=c(G(),1),rV=c(U(),1),REe=c(fe(),1);function dqe(e,t){let o=e.scrollHeight>e.clientHeight,r=0,n=2400,i=r,s=window.getComputedStyle(e),a=parseFloat(s.paddingLeft)||0,l=parseFloat(s.paddingRight)||0,u=document.createRange();u.selectNodeContents(e);let d=e,f=e.parentElement;if(f){let h=window.getComputedStyle(f);h?.display==="flex"&&(d=f,a+=parseFloat(h.paddingLeft)||0,l+=parseFloat(h.paddingRight)||0)}let p=d.clientHeight;for(;r<=n;){let h=Math.floor((r+n)/2);t(h);let g=u.getBoundingClientRect().width,b=e.scrollWidth<=d.clientWidth&&g<=d.clientWidth-a-l,v=o||e.scrollHeight<=d.clientHeight||e.scrollHeight<=p;d.clientHeight>p&&(p=d.clientHeight),b&&v?(i=h,r=h+1):n=h-1}return u.detach(),i}function _Ee(e,t){if(!e)return;t(0);let o=dqe(e,t);return t(o),o}var xEe=c(F(),1),wEe=c(G(),1),CEe=c(U(),1),EEe=c(Xr(),1),w$=c(E(),1);function TEe(){let e=(0,wEe.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,xEe.useEffect)(()=>{(0,EEe.speak)(e)},[e]),(0,w$.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,w$.jsx)(CEe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var Ts=c(E(),1),fqe={},pqe=12,Ef="typography.fitText";function mqe(e){return!(0,uh.hasBlockSupport)(e,Ef)||e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}}function hqe({fitText:e,name:t,clientId:o}){let[r,n]=(0,ky.useState)(null),i=(0,uh.hasBlockSupport)(t,Ef),s=Mt(o),{blockAttributes:a,parentId:l,blockMode:u}=(0,E$.useSelect)(f=>{if(!o||!i||!e)return fqe;let p=f(C).getBlockMode(o);return p==="html"?{blockMode:p}:{blockAttributes:f(C).getBlockAttributes(o),parentId:f(C).getBlockRootClientId(o),blockMode:p}},[o,i,e]),d=(0,ky.useCallback)(()=>{if(!s||!i||!e)return;let f=`fit-text-${o}`,p=s.ownerDocument.getElementById(f);p||(p=s.ownerDocument.createElement("style"),p.id=f,s.ownerDocument.head.appendChild(p));let h=`#block-${o}`,g=_Ee(s,b=>{b===0?p.textContent="":p.textContent=`${h} { font-size: ${b}px !important; }`});n(g)},[s,o,i,e]);return(0,ky.useEffect)(()=>{if(!e||!s||!o||!i||u==="html")return;let f=s,p=f.style.visibility,h=null,m=null,g=null;h=window.requestAnimationFrame(()=>{f.style.visibility="hidden",m=window.requestAnimationFrame(()=>{d(),g=setTimeout(()=>{f.style.visibility=p},10)})});let b;return window.ResizeObserver&&f.parentElement&&(b=new window.ResizeObserver(d),b.observe(f.parentElement),b.observe(f)),()=>{h!==null&&window.cancelAnimationFrame(h),m!==null&&window.cancelAnimationFrame(m),g!==null&&clearTimeout(g),b&&b.disconnect();let v=`fit-text-${o}`,y=f.ownerDocument.getElementById(v);y&&y.remove()}},[e,o,l,d,s,i,u]),(0,ky.useEffect)(()=>{if(e&&s&&i&&u!=="html"){let f=window.requestAnimationFrame(()=>{s&&d()});return()=>window.cancelAnimationFrame(f)}},[a,e,d,s,i,u]),{fontSize:r}}function gqe({clientId:e,fitText:t=!1,setAttributes:o,name:r,fontSize:n,style:i}){let s=(0,E$.useSelect)(a=>{let{hasSelectedStyleState:l}=H(a(C));return l(e)},[e]);return!(0,uh.hasBlockSupport)(r,Ef)||s?null:(0,Ts.jsx)(rV.__experimentalToolsPanelItem,{hasValue:()=>t,label:(0,d1.__)("Fit text"),onDeselect:()=>o({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,Ts.jsx)(rV.ToggleControl,{label:(0,d1.__)("Fit text"),checked:t,onChange:()=>{let a=!t||void 0,l={fitText:a};a&&(n&&(l.fontSize=void 0),i?.typography?.fontSize&&(l.style={...i,typography:{...i?.typography,fontSize:void 0}})),o(l)},help:t?(0,d1.__)("Text will resize to fit its container."):(0,d1.__)("The text will resize to fit its container, resetting other font size settings.")})})}function bqe(e,t,o){if(!(0,uh.hasBlockSupport)(t,Ef))return e;let{fitText:r}=o;if(!r)return e;let n=e.className?`${e.className} has-fit-text`:"has-fit-text";return{...e,className:n}}function yqe({name:e,fitText:t}){return t&&(0,uh.hasBlockSupport)(e,Ef)?{className:"has-fit-text"}:{}}(0,C$.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",mqe);var vqe=e=>(0,uh.hasBlockSupport)(e,Ef);function Sqe({fitText:e,name:t,clientId:o,isSelected:r}){let{fontSize:n}=hqe({fitText:e,name:t,clientId:o});return r&&n&&n<pqe?(0,Ts.jsx)(Oe,{group:"typography",children:(0,Ts.jsx)(TEe,{})}):null}var kqe=(0,REe.createHigherOrderComponent)(e=>function(o){let{name:r,attributes:n,clientId:i,isSelected:s,setAttributes:a}=o,{fitText:l}=n;return(0,uh.hasBlockSupport)(r,Ef)?(0,Ts.jsxs)(Ts.Fragment,{children:[(0,Ts.jsx)(e,{...o}),(0,Ts.jsx)(Oe,{group:"typography",children:(0,Ts.jsx)(gqe,{clientId:i,fitText:l,setAttributes:a,name:r,fontSize:n.fontSize,style:n.style})}),l&&(0,Ts.jsx)(Sqe,{fitText:l,name:r,clientId:i,isSelected:s})]}):(0,Ts.jsx)(e,{...o})},"addFitTextControl");(0,C$.addFilter)("editor.BlockEdit","core/fit-text/add-fit-text-control",kqe);var nV={useBlockProps:yqe,addSaveProps:bqe,attributeKeys:["fitText","fontSize","style"],hasSupport:vqe,edit:()=>null};var T$=c(E(),1);function BEe(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))}var _qe="typography.__experimentalLetterSpacing",xqe="typography.__experimentalTextTransform",wqe="typography.__experimentalTextDecoration",Cqe="typography.textIndent",Eqe="typography.textColumns",Tqe="typography.__experimentalFontStyle",Rqe="typography.__experimentalFontWeight",Bqe="typography.__experimentalWritingMode",_l="typography",OEe=[fEe,Sy,Tqe,Rqe,u1,U_,Eqe,wqe,Cqe,Bqe,xqe,_qe,Ef];function AEe(e){let t={...BEe(e,["fontFamily"])},o=e?.typography?.fontSize,r=e?.typography?.fontFamily,n=e?.color?.text,i=typeof o=="string"&&o?.startsWith("var:preset|font-size|")?o.substring(21):void 0,s=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0,a=sn(n,"color");return t.typography={...BEe(t.typography,["fontFamily"]),fontSize:i?void 0:o},t.color={...t.color,text:a?void 0:n},{style:Ge(t),fontFamily:s,fontSize:i,textColor:a}}function LEe(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize},color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text}}}function Pqe({children:e,resetAllFilter:t}){let o=(0,iV.useCallback)(r=>{let n=LEe(r),i=t(n);return{...r,...AEe(i)}},[t]);return(0,T$.jsx)(Oe,{group:"typography",resetAllFilter:o,children:e})}function sV({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Ja(),s=bD(r),{style:a,fontFamily:l,fontSize:u,fitText:d,textColor:f,className:p}=(0,PEe.useSelect)(w=>{if(!s)return{};let{style:T,fontFamily:R,fontSize:B,fitText:I,textColor:O,className:P}=w(C).getBlockAttributes(e)||{};return{style:T,fontFamily:R,fontSize:B,fitText:I,textColor:O,className:P}},[e,s]),h=!Tn(i),{value:m}=Sl(t,p,i),g=(0,iV.useMemo)(()=>h?To(a,i):LEe({style:a,fontFamily:l,fontSize:u,textColor:f}),[h,i,a,u,l,f]),b=h?w=>{o({style:Rn(a,i,w)})}:w=>{let T=AEe(w);(T.fontSize||T.style?.typography?.fontSize)&&d&&(T.fitText=void 0),o(T)},v=!g?.color?.gradient&&!!g?.color?.text&&r?.color?.text&&(0,f1.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,y=V_({clientId:e,name:t,enabled:!!v,checkLinkColor:!1,messageOverride:(0,IEe.__)("This color has poor contrast against the background. Consider increasing contrast.")});if(!s)return null;let k=(0,f1.getBlockSupport)(t,[_l,"__experimentalDefaultControls"]),S=(0,f1.getBlockSupport)(t,["color","__experimentalDefaultControls"]),_={...k,textColor:S?.text};return(0,T$.jsx)(yD,{as:n||Pqe,panelId:e,settings:r,value:g,onChange:b,defaultControls:_,contrastWarning:y,inheritedValue:m})}var Xo=c(E(),1);function B$({blockName:e,clientId:t,contentClientIds:o}){let r=kl(e),{updateBlockAttributes:n}=(0,aV.useDispatch)(C),{hasButtons:i,hasHeading:s}=(0,aV.useSelect)(d=>{let f=d(C).getBlockNamesByClientId(o);return{hasButtons:f.includes("core/buttons"),hasHeading:f.includes("core/heading")}},[o]),a=d=>{n(t,d)},l=(0,R$.useMemo)(()=>({...r,typography:{}}),[r]),u=(0,R$.useMemo)(()=>({...r,background:{...r.background,backgroundImage:!1,backgroundSize:!1}}),[r]);return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(sV,{clientId:t,name:e,settings:l,setAttributes:a,asWrapper:qW}),(0,Xo.jsx)(YD,{clientId:t,name:e,settings:u,setAttributes:a,asWrapper:r$}),(0,Xo.jsx)(QD,{clientId:t,name:e,settings:r,setAttributes:a,asWrapper:KW,label:(0,dh.__)("Elements"),defaultControls:{button:i,heading:s}})]})}var Iqe=({blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:r,contentClientIds:n})=>{let i=my({blockName:e});return(0,Xo.jsxs)(Xo.Fragment,{children:[o&&(0,Xo.jsx)(Kk,{clientId:t}),r&&e!=="core/template-part"&&(0,Xo.jsx)(B$,{blockName:e,clientId:t,contentClientIds:n}),(!r||e==="core/template-part")&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(Oe.Slot,{group:"typography",label:(0,dh.__)("Typography")}),(0,Xo.jsx)(Oe.Slot,{group:"color",label:(0,dh.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Xo.jsx)(Oe.Slot,{group:"background",label:(0,dh.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Xo.jsx)(Oe.Slot,{group:"filter"}),(0,Xo.jsx)(Oe.Slot,{group:"layout",label:(0,dh.__)("Layout")}),(0,Xo.jsx)(Oe.Slot,{group:"dimensions",label:(0,dh.__)("Dimensions")}),(0,Xo.jsx)(Oe.Slot,{group:"border",label:i}),(0,Xo.jsx)(Oe.Slot,{group:"elements",label:(0,dh.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),(0,Xo.jsx)(cD,{}),(0,Xo.jsx)(Oe.Slot,{group:"styles"})]})]})},NEe=Iqe;var DEe=c(U(),1),VEe=c(G(),1);var MEe=c(ce(),1),lV=c(Q(),1),fa=c(U(),1);var xl=c(E(),1);function cV({clientIds:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){return e.length?(0,xl.jsx)(fa.__experimentalVStack,{spacing:1,children:e.map(n=>(0,xl.jsx)(Oqe,{onSelect:t,onSwitchToListView:o,hasListViewTab:r,clientId:n},n))}):null}function Oqe({clientId:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){let n=Mo(e),{isSelected:i,childBlocks:s,shouldRenderListView:a,blockName:l}=(0,lV.useSelect)(g=>{let{isBlockSelected:b,hasSelectedInnerBlock:v,getBlockOrder:y,getBlockName:k,shouldRenderBlockListView:S}=H(g(C)),_=k(e);return{isSelected:b(e)||v(e,!0),childBlocks:y(e),shouldRenderListView:S(e),blockName:_}},[e]),u=(0,MEe.getBlockType)(l),f=zn({clientId:e,context:"list-view"})||u?.title||l,{selectBlock:p}=(0,lV.useDispatch)(C),m=s&&s.length>0&&r&&a;return(0,xl.jsx)(fa.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-quick-navigation__item",isPressed:i,onClick:async()=>{await p(e),m&&o&&o(e),t&&t(e)},children:(0,xl.jsxs)(fa.Flex,{children:[(0,xl.jsx)(fa.FlexItem,{children:(0,xl.jsx)(Tt,{icon:n?.icon})}),(0,xl.jsx)(fa.FlexBlock,{style:{textAlign:"left"},children:(0,xl.jsx)(fa.__experimentalTruncate,{children:f})}),m&&(0,xl.jsx)(fa.FlexItem,{children:(0,xl.jsx)(gt,{icon:un,size:24})})]})})}var G_=c(E(),1),Aqe=({contentClientIds:e,onSwitchToListView:t,hasListViewTab:o})=>{if(!e||e.length===0)return null;let r=window?.__experimentalContentOnlyInspectorFields;return(0,G_.jsx)(G_.Fragment,{children:!r&&(0,G_.jsx)(DEe.PanelBody,{title:(0,VEe.__)("Content"),children:(0,G_.jsx)(cV,{clientIds:e,onSwitchToListView:t,hasListViewTab:o})})})},uV=Aqe;var Kr=c(E(),1),{Tabs:fh}=H(dV.privateApis);function P$({blockName:e,clientId:t,hasBlockStyles:o,tabs:r,isSectionBlock:n,contentClientIds:i}){let s=(0,Rc.useRef)(null),a=(0,W_.useSelect)(S=>S(FEe.store).get("core","showIconLabels"),[]),{requestedTab:l}=(0,W_.useSelect)(S=>({requestedTab:H(S(C)).getRequestedInspectorTab()})),[u,d]=(0,Rc.useState)(()=>l?.tabName??r[0]?.name),f=(0,Rc.useRef)(!1),p=(0,Rc.useRef)(!1),{__unstableSetOpenListViewPanel:h,__unstableIncrementListViewExpandRevision:m,__unstableSetAllListViewPanelsOpen:g}=(0,W_.useDispatch)(C),{clearRequestedInspectorTab:b}=H((0,W_.useDispatch)(C));(0,Rc.useEffect)(()=>{f.current=!1},[t]),(0,Rc.useEffect)(()=>{l&&(d(l.tabName),l.tabName===vf.name&&l.options?.openPanel&&(h(l.options.openPanel),m()),p.current=!0,f.current=!0,b())},[l,h,m,b]),(0,Rc.useEffect)(()=>{u===vf.name&&!f.current&&(g(),m())},[t,u,g,m]),(0,Rc.useEffect)(()=>{if(!r?.length||f.current&&r.some(_=>_.name===u))return;let S=r[0]?.name;u!==S&&d(S)},[r,u]);let v=S=>{d(S),f.current=!0,S===vf.name&&!p.current&&(g(),m()),p.current=!1},y=r.some(S=>S.name===vf.name),k=S=>{y&&(h(S),m(),p.current=!0,v(vf.name))};return(0,Kr.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,Kr.jsxs)(fh,{selectedTabId:u,onSelect:v,children:[(0,Kr.jsx)(fh.TabList,{children:r.map(S=>a?(0,Kr.jsx)(fh.Tab,{tabId:S.name,children:S.title},S.name):(0,Kr.jsxs)(xt.Root,{children:[(0,Kr.jsx)(fh.Tab,{tabId:S.name,"aria-label":S.title,render:(0,Kr.jsx)(xt.Trigger,{}),children:(0,Kr.jsx)(dV.Icon,{icon:S.icon})}),(0,Kr.jsx)(xt.Popup,{children:S.title})]},S.name))}),(0,Kr.jsxs)(fh.TabPanel,{tabId:sD.name,focusable:!1,children:[(0,Kr.jsx)(uV,{contentClientIds:i,onSwitchToListView:k,hasListViewTab:y}),(0,Kr.jsx)(Oe.Slot,{group:"content"})]}),(0,Kr.jsxs)(fh.TabPanel,{tabId:vf.name,focusable:!1,children:[(0,Kr.jsx)(Oe.Slot,{group:"list",ref:s}),(0,Kr.jsx)(Q2,{listViewRef:s})]}),(0,Kr.jsx)(fh.TabPanel,{tabId:nD.name,focusable:!1,children:(0,Kr.jsx)(T0e,{showAdvancedControls:!!e})}),(0,Kr.jsx)(fh.TabPanel,{tabId:iD.name,focusable:!1,children:(0,Kr.jsx)(NEe,{blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:n,contentClientIds:i})})]},t)})}var Rs=c(U(),1),zEe=c(Q(),1);var Lqe=[];function Nqe(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function jEe(e,t,o,r){let n=[],{bindings:i,border:s,color:a,content:l,default:u,layout:d,dimensions:f,list:p,position:h,styles:m,typography:g,effects:b}=cc,v=(0,Rs.__experimentalUseSlotFills)(p.name),y=!!v&&v.length,k=(0,Rs.__experimentalUseSlotFills)(l.name),S=!!k&&k.length,x=[...(0,Rs.__experimentalUseSlotFills)(s.name)||[],...(0,Rs.__experimentalUseSlotFills)(a.name)||[],...(0,Rs.__experimentalUseSlotFills)(d.name)||[],...(0,Rs.__experimentalUseSlotFills)(h.name)||[],...(0,Rs.__experimentalUseSlotFills)(f.name)||[],...(0,Rs.__experimentalUseSlotFills)(m.name)||[],...(0,Rs.__experimentalUseSlotFills)(g.name)||[],...(0,Rs.__experimentalUseSlotFills)(b.name)||[]].length,w=[...(0,Rs.__experimentalUseSlotFills)(xm.slotName)||[],...(0,Rs.__experimentalUseSlotFills)(i.name)||[]],T=[...(0,Rs.__experimentalUseSlotFills)(u.name)||[],...y&&x>1?w:[]],R=window?.__experimentalContentOnlyInspectorFields,B=S||!R&&t?.length;B&&n.push(sD),y&&n.push(vf),(T.length||w.length&&(B||y))&&n.push(nD);let{tabSettings:I,isPreviewMode:O}=(0,zEe.useSelect)(A=>{let M=A(C).getSettings();return{tabSettings:M.blockInspectorTabs,isPreviewMode:M.isPreviewMode}},[]);return!O&&(r||x)&&n.push(iD),Nqe(e,I)?n:Lqe}var HEe=c(U(),1);var I$=c(E(),1),{Fill:Mqe,Slot:Dqe}=(0,HEe.createSlotFill)(Symbol("InspectorControlsLastItem")),UEe=e=>ht()[Nl]?(0,I$.jsx)(Mqe,{...e}):null;UEe.Slot=function(t){return(0,I$.jsx)(Dqe,{...t})};var fV=UEe;var GEe=c(Q(),1);function WEe(e){return(0,GEe.useSelect)(t=>{if(e){let o=t(C).getSettings().blockInspectorAnimation,r=o?.animationParent,{getSelectedBlockClientId:n,getBlockParentsByBlockName:i}=t(C),s=n();return!i(s,r,!0)[0]&&e.name!==r?null:o?.[e.name]}return null},[e])}var pV=c(F(),1);var _y=c(G(),1);var A$=c(E(),1),{getViewportBreakpoints:Vqe}=H(br),$Ee={":hover":(0,_y.__)("Hover"),":focus":(0,_y.__)("Focus"),":focus-visible":(0,_y.__)("Focus-visible"),":active":(0,_y.__)("Active")},Fqe={"@tablet":(0,_y.__)("Tablet"),"@mobile":(0,_y.__)("Mobile")};function zqe(e){let t=Vqe(e);return Object.entries(Fqe).filter(([o])=>(o!=="@tablet"||t.tablet!==void 0)&&(o!=="@mobile"||t.mobile!==void 0)).map(([o,r])=>({value:o,label:r}))}var mV={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function KEe(e){return(mV[e]??[]).filter(o=>$Ee[o]).map(o=>({value:o,label:$Ee[o]}))}var O$="default",jqe=[];function YEe({name:e,value:t,onChange:o}){let r=(0,pV.useMemo)(()=>KEe(e),[e]),n=_r();return r.length?(0,A$.jsx)(FD,{pseudoStates:r,pseudoStateValue:t?.pseudo??O$,onChangePseudoState:i=>o({pseudo:i}),popoverProps:n.popoverProps,showText:!1}):null}function qEe({name:e,value:t,isResponsiveEditing:o}){let r=(0,pV.useMemo)(()=>KEe(e),[e]),[n]=Le("viewport"),i=(0,pV.useMemo)(()=>zqe(n),[n]);return!r.length&&!o?null:(0,A$.jsx)(zD,{viewportStates:o?i:jqe,pseudoStates:r,viewportValue:t?.viewport??O$,pseudoStateValue:t?.pseudo??O$})}var Ve=c(E(),1);function XEe({blockName:e,showAdvancedControls:t=!0,showPositionControls:o=!0,showBindingsControls:r=!0}){let n=my({blockName:e});return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Oe.Slot,{}),(0,Ve.jsx)(Oe.Slot,{group:"typography",label:(0,Yi.__)("Typography")}),(0,Ve.jsx)(Oe.Slot,{group:"color",label:(0,Yi.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ve.jsx)(Oe.Slot,{group:"background",label:(0,Yi.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Ve.jsx)(Oe.Slot,{group:"layout",label:(0,Yi.__)("Layout")}),(0,Ve.jsx)(Oe.Slot,{group:"dimensions",label:(0,Yi.__)("Dimensions")}),(0,Ve.jsx)(Oe.Slot,{group:"border",label:n}),(0,Ve.jsx)(Oe.Slot,{group:"elements",label:(0,Yi.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),o&&(0,Ve.jsx)(cD,{}),(0,Ve.jsx)(Oe.Slot,{group:"styles"}),r&&(0,Ve.jsx)(Oe.Slot,{group:"bindings"}),t&&(0,Ve.jsx)("div",{children:(0,Ve.jsx)(aD,{})})]})}function Hqe({blockName:e,clientId:t,contentClientIds:o,isSectionBlock:r,selectedBlockStyleState:n}){let i=my({blockName:e}),s=zi(n)&&!ea(n),a=r&&e!=="core/template-part";return(0,Ve.jsxs)(Ve.Fragment,{children:[a&&(0,Ve.jsx)(Y2,{value:n,children:(0,Ve.jsx)(B$,{blockName:e,clientId:t,contentClientIds:o})}),!a&&(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Oe.Slot,{group:"typography",label:(0,Yi.__)("Typography")}),(0,Ve.jsx)(Oe.Slot,{group:"color",label:(0,Yi.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ve.jsx)(Oe.Slot,{group:"background",label:(0,Yi.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),s&&(0,Ve.jsx)(Oe.Slot,{group:"layout",label:(0,Yi.__)("Layout")}),(0,Ve.jsx)(Oe.Slot,{group:"dimensions",label:(0,Yi.__)("Dimensions")}),(0,Ve.jsx)(Oe.Slot,{group:"border",label:i}),(0,Ve.jsx)(Oe.Slot,{group:"elements",label:(0,Yi.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"})]})]})}function Uqe(){let{selectedBlockCount:e,renderedBlockName:t,renderedBlockClientId:o,blockType:r,isSectionBlock:n,isSectionBlockInSelection:i,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,isResponsiveEditing:f}=(0,p1.useSelect)(S=>{let{getSelectedBlockClientId:_,getSelectedBlockClientIds:x,getSelectedBlockCount:w,getBlockName:T,getParentSectionBlock:R,isSectionBlock:B,getEditedContentOnlySection:I,isWithinEditedContentOnlySection:O,getBlockEditingMode:P,getSelectedBlockStyleState:A,isSelectedBlockStyleStateShownOnCanvas:M,isResponsiveEditing:z}=H(S(C)),{getBlockStyles:V}=S($_.store),L=_(),N=O(L)?L:R(L)||L,j=N&&T(N),X=j&&(0,$_.getBlockType)(j),te=x().some(K=>B(K)),ee=j&&V(j),W=ee&&ee.length>0;return{selectedBlockCount:w(),renderedBlockClientId:N,renderedBlockName:j,blockType:X,isSectionBlockInSelection:te,isSectionBlock:B(N),hasBlockStyles:W,editedContentOnlySection:I(),blockEditingMode:P(N),selectedBlockStyleState:A(N),showStateOnCanvas:M(N),isResponsiveEditing:z()}},[]),p=(0,p1.useSelect)(S=>{if(!n||!o)return[];let{getClientIdsOfDescendants:_,getBlockEditingMode:x,shouldRenderBlockListView:w}=H(S(C)),T=_(o),R=new Set;return T.forEach(B=>{w(B)&&_(B).forEach(O=>R.add(O))}),T.filter(B=>!R.has(B)&&x(B)==="contentOnly")},[n,o]),h=jEe(r?.name,p,n,s),m=h?.length>1,g=WEe(r),b=e>1,v=!Tn(u);if(b&&!i)return(0,Ve.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,Ve.jsx)(FW,{}),m?(0,Ve.jsx)(P$,{tabs:h}):(0,Ve.jsx)(XEe,{blockName:t,showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(b&&i)return(0,Ve.jsx)("div",{className:"block-editor-block-inspector",children:(0,Ve.jsx)(FW,{})});let y=t===(0,$_.getUnregisteredTypeHandlerName)();return!r||!o||y?(0,Ve.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,Yi.__)("No block selected.")}):(0,Ve.jsx)(Gqe,{animate:g,wrapper:S=>(0,Ve.jsx)(Wqe,{blockInspectorAnimationSettings:g,renderedBlockClientId:o,children:S}),children:(0,Ve.jsx)($qe,{renderedBlockClientId:o,blockName:r.name,isSectionBlock:n,availableTabs:h,contentClientIds:p,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,isResponsiveEditing:f,isBlockStyleStateSelected:v})})}var Gqe=({animate:e,wrapper:t,children:o})=>e?t(o):o,Wqe=({blockInspectorAnimationSettings:e,renderedBlockClientId:t,children:o})=>{let r=e&&e.enterDirection==="leftToRight"?-50:50;return(0,Ve.jsx)(K_.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},children:o},t)},$qe=({renderedBlockClientId:e,blockName:t,isSectionBlock:o,availableTabs:r,contentClientIds:n,hasBlockStyles:i,editedContentOnlySection:s,blockEditingMode:a,selectedBlockStyleState:l,showStateOnCanvas:u,isResponsiveEditing:d})=>{let f=(0,ZEe.useRef)(null),p=r?.length>1,h=ea(l),m=zi(l)&&d||ea(l),g=s&&s!==e,b=Mo(s),v=Mo(e),y=v.isSynced,{setSelectedBlockStyleState:k,setSelectedBlockStyleStateCanvasPreview:S}=H((0,p1.useDispatch)(C)),_=w=>{k(e,w)},x=w=>{S(e,w)};return(0,Ve.jsxs)("div",{className:"block-editor-block-inspector",children:[g&&(0,Ve.jsx)(iC,{...b,className:b?.isSynced&&"is-synced",parentClientId:s}),(0,Ve.jsx)(iC,{...v,allowParentNavigation:!0,className:y&&"is-synced",isChild:g,clientId:e,controls:a==="default"&&(0,Ve.jsx)(YEe,{name:t,value:l,onChange:_})}),a==="default"&&m&&(0,Ve.jsxs)(K_.__experimentalSpacer,{paddingX:4,paddingY:2,children:[h&&(0,Ve.jsx)(K_.ToggleControl,{label:(0,Yi.__)("Show state on canvas"),checked:u,onChange:x}),(0,Ve.jsx)(qEe,{name:t,value:l,isResponsiveEditing:d})]}),(0,Ve.jsx)(ute,{clientId:e}),(0,Ve.jsx)(g0e,{clientId:e}),!m&&(0,Ve.jsx)(ON,{blockClientId:e}),(0,Ve.jsx)(C0e,{}),m&&(0,Ve.jsx)(Hqe,{blockName:t,clientId:e,contentClientIds:n,isSectionBlock:o,selectedBlockStyleState:l}),!m&&p&&(0,Ve.jsx)(Ve.Fragment,{children:(0,Ve.jsx)(P$,{hasBlockStyles:i,clientId:e,blockName:t,tabs:r,isSectionBlock:o,contentClientIds:n})}),!m&&!p&&(0,Ve.jsxs)(Ve.Fragment,{children:[i&&(0,Ve.jsx)(Kk,{clientId:e}),(0,Ve.jsx)(uV,{contentClientIds:n}),(0,Ve.jsx)(Oe.Slot,{group:"content"}),(0,Ve.jsx)(Oe.Slot,{group:"list",ref:f}),(0,Ve.jsx)(Q2,{listViewRef:f}),!o&&(0,Ve.jsx)(XEe,{blockName:t})]}),!m&&(0,Ve.jsx)(fV.Slot,{}),(0,Ve.jsx)(oD,{},"back")]})},QEe=Uqe;var L$=c(Bt(),1);var JEe=c(E(),1),e1e=()=>((0,L$.default)("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),uC());function t1e(e){return(0,L$.default)("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,JEe.jsx)("div",{...e,ref:uC()})}var o1e=c(Q(),1),N$=c(F(),1);var M$=c(E(),1),Kqe=()=>{};function Yqe({rootClientId:e,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:a,__experimentalFilterValue:l,onPatternCategorySelection:u,onSelect:d=Kqe,shouldFocusBlock:f=!1,onClose:p},h){let{destinationRootClientId:m}=(0,o1e.useSelect)(g=>{let{getBlockRootClientId:b}=g(C);return{destinationRootClientId:e||b(t)||void 0}},[t,e]);return(0,M$.jsx)(r9,{onSelect:d,rootClientId:m,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n,__experimentalInsertionIndex:i,__experimentalFilterValue:l,onPatternCategorySelection:u,__experimentalInitialTab:s,__experimentalInitialCategory:a,shouldFocusBlock:f,ref:h,onClose:p})}var D$=(0,N$.forwardRef)(Yqe);function qqe(e,t){return(0,M$.jsx)(D$,{...e,onPatternCategorySelection:void 0,ref:t})}var r1e=(0,N$.forwardRef)(qqe);var n1e=c(Bt(),1);function i1e(){return(0,n1e.default)("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}var s1e=c(fe(),1),m1=c(Rt(),1),ph=c(so(),1),a1e=c(E(),1),Zqe=window.navigator.userAgent.indexOf("Trident")!==-1,Xqe=new Set([ph.UP,ph.DOWN,ph.LEFT,ph.RIGHT]),Qqe=.75;function V$(){return(0,s1e.useRefEffect)(e=>{let{ownerDocument:t}=e,{defaultView:o}=t,r,n,i;function s(){r||(r=o.requestAnimationFrame(()=>{f(),r=null}))}function a(g){n&&o.cancelAnimationFrame(n),n=o.requestAnimationFrame(()=>{l(g),n=null})}function l({keyCode:g}){if(!h())return;let b=(0,m1.computeCaretRect)(o);if(!b)return;if(!i){i=b;return}if(Xqe.has(g)){i=b;return}let v=b.top-i.top;if(v===0)return;let y=(0,m1.getScrollContainer)(e);if(!y)return;let k=y===t.body||y===t.documentElement,S=k?o.scrollY:y.scrollTop,_=k?0:y.getBoundingClientRect().top,x=k?i.top/o.innerHeight:(i.top-_)/(o.innerHeight-_);if(S===0&&x<Qqe&&m()){i=b;return}let w=k?o.innerHeight:y.clientHeight;if(i.top+i.height>_+w||i.top<_){i=b;return}k?o.scrollBy(0,v):y.scrollTop+=v}function u(){t.addEventListener("selectionchange",d)}function d(){t.removeEventListener("selectionchange",d),f()}function f(){h()&&(i=(0,m1.computeCaretRect)(o))}function p(){let{activeElement:g}=t;if(!g)return null;if(!g.isContentEditable||!g.contains(e))return g;let{anchorNode:b}=o.getSelection();return b?(b.nodeType===b.ELEMENT_NODE?b:b.parentElement)?.closest('[contenteditable="true"]')??null:null}function h(){let g=p();return!!g&&e.contains(g)&&g.isContentEditable}function m(){let g=e.querySelectorAll('[contenteditable="true"]');return g[g.length-1]===p()}return o.addEventListener("scroll",s,!0),o.addEventListener("resize",s,!0),e.addEventListener("keydown",a),e.addEventListener("keyup",l),e.addEventListener("mousedown",u),e.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",s,!0),o.removeEventListener("resize",s,!0),e.removeEventListener("keydown",a),e.removeEventListener("keyup",l),e.removeEventListener("mousedown",u),e.removeEventListener("touchstart",u),t.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(n)}},[])}function Jqe({children:e}){return(0,a1e.jsx)("div",{ref:V$(),className:"block-editor__typewriter",children:e})}var eZe=Zqe?e=>e.children:Jqe,l1e=eZe;var xy=c(F(),1),F$=c(Bt(),1);var z$=c(E(),1),hV=(0,xy.createContext)({});hV.displayName="RenderedRefsContext";function tZe(e,t,o){let r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(o),r}function j$({children:e,uniqueId:t,blockName:o=""}){let r=(0,xy.useContext)(hV),{name:n}=ht();o=o||n;let i=(0,xy.useMemo)(()=>tZe(r,o,t),[r,o,t]);return(0,z$.jsx)(hV.Provider,{value:i,children:e})}function H$(e,t=""){let o=(0,xy.useContext)(hV),{name:r}=ht();return t=t||r,!!o[t]?.has(e)}var c1e=e=>((0,F$.default)("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,z$.jsx)(j$,{...e})),u1e=(...e)=>((0,F$.default)("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),H$(...e));var bV=c(U(),1),U$=c(G(),1),G$=c(F(),1),f1e=c(Tu(),1);var pa=c(U(),1);var d1e=c(G(),1),Tf=c(E(),1);function gV({title:e,help:t,actions:o=[],onClose:r}){return(0,Tf.jsxs)(pa.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,Tf.jsxs)(pa.__experimentalHStack,{alignment:"center",children:[(0,Tf.jsx)(pa.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),(0,Tf.jsx)(pa.__experimentalSpacer,{}),o.map(({label:n,icon:i,onClick:s})=>(0,Tf.jsx)(pa.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:n,icon:i,variant:!i&&"tertiary",onClick:s,children:!i&&n},n)),r&&(0,Tf.jsx)(pa.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,d1e.__)("Close"),icon:eg,onClick:r})]}),t&&(0,Tf.jsx)(pa.__experimentalText,{children:t})]})}var Y_=c(E(),1);function oZe({onClose:e,onChange:t,showPopoverHeaderActions:o,isCompact:r,currentDate:n,title:i,...s},a){let l={startOfWeek:(0,f1e.getSettings)().l10n.startOfWeek,onChange:t,currentDate:r?void 0:n,currentTime:r?n:void 0,...s},u=r?bV.TimePicker:bV.DateTimePicker;return(0,Y_.jsxs)("div",{ref:a,className:"block-editor-publish-date-time-picker",children:[(0,Y_.jsx)(gV,{title:i||(0,U$.__)("Publish"),actions:o?[{label:(0,U$.__)("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,Y_.jsx)(u,{...l})]})}var W$=(0,G$.forwardRef)(oZe);function rZe(e,t){return(0,Y_.jsx)(W$,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}var p1e=(0,G$.forwardRef)(rZe);var m1e=c(Bt(),1),h1e=c(F(),1);function nZe(){return(0,m1e.default)("wp.blockEditor.ToolSelector",{since:"6.9",hint:"The ToolSelector component no longer renders anything."}),null}var g1e=(0,h1e.forwardRef)(nZe);var g1=c(E(),1),Ge=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;let t=Object.entries(e).map(([o,r])=>[o,Ge(r)]).filter(([,o])=>o!==void 0);return t.length?Object.fromEntries(t):void 0};function ZD(e,t,o,r,n,i){if(Object.values(e??{}).every(l=>!l)||i.length===1&&o.innerBlocks.length===r.length)return o;let s=r[0]?.attributes;if(i.length>1&&r.length>1)if(r[n])s=r[n]?.attributes;else return o;let a=o;return Object.entries(e).forEach(([l,u])=>{u&&t[l].forEach(d=>{let f=cd(s,d);f&&(a={...a,attributes:Me(a.attributes,d,f)})})}),a}function Gt(e,t,o){let n=(0,b1e.getBlockSupport)(e,t)?.__experimentalSkipSerialization;return Array.isArray(n)?n.includes(o):n}var Rf=new WeakMap;function el({id:e,css:t}){return Tc({id:e,css:t})}function Tc({id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i}={}){let{setStyleOverride:s,deleteStyleOverride:a}=H((0,yV.useDispatch)(C)),l=(0,yV.useRegistry)(),u=(0,wl.useId)();(0,wl.useEffect)(()=>{if(!t&&!o)return;let d=e||u,f={id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i};return Rf.get(l)||Rf.set(l,[]),Rf.get(l).push([d,f]),window.queueMicrotask(()=>{Rf.get(l)?.length&&l.batch(()=>{Rf.get(l).forEach(p=>{s(...p)}),Rf.set(l,[])})}),()=>{Rf.get(l)?.find(([h])=>h===d)?Rf.set(l,Rf.get(l).filter(([h])=>h!==d)):a(d)}},[e,t,i,o,r,u,s,a,l,n])}function kl(e,t){let[o,r,n,i,s,a,l,u,d,f,p,h,m,g,b,v,y,k,S,_,x,w,T,R,B,I,O,P,A,M,z,V,L,D,N,j,X,J,te,ee,W,K,Y,Z,oe,ie,q,re,ae,ye,xe,he,ge,me,ke,ve,Ee,Re,se,ne,Ae,be,we]=Le("background.backgroundImage","background.backgroundSize","background.gradient","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textIndent","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.height","dimensions.minHeight","dimensions.minWidth","dimensions.width","dimensions.dimensionSizes","layout","border.color","border.radius","border.style","border.width","border.radiusSizes","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow"),ot=(0,wl.useMemo)(()=>({background:{backgroundImage:o,backgroundSize:r,gradient:n},color:{palette:{custom:Z,theme:ie,default:q},gradients:{custom:ge,theme:me,default:ke},duotone:{custom:ye,theme:xe,default:he},defaultGradients:ve,defaultPalette:re,defaultDuotone:ae,custom:Y,customGradient:Ee,customDuotone:oe,background:Re,link:se,heading:Ae,button:be,text:ne},typography:{fontFamilies:{custom:i,default:s,theme:a},fontSizes:{custom:u,default:d,theme:f},customFontSize:p,defaultFontSizes:l,fontStyle:h,fontWeight:m,lineHeight:g,textAlign:b,textColumns:v,textDecoration:y,textIndent:k,textTransform:_,letterSpacing:x,writingMode:S},spacing:{spacingSizes:{custom:O,default:P,theme:A},customSpacingSize:I,defaultSpacingSizes:B,padding:w,margin:T,blockGap:R,units:M},border:{color:J,radius:te,style:ee,width:W,radiusSizes:K},dimensions:{aspectRatio:z,height:V,minHeight:L,minWidth:D,width:N,dimensionSizes:j},layout:X,parentLayout:t,shadow:we}),[o,r,n,i,s,a,l,u,d,f,p,h,m,g,b,v,y,k,_,x,S,w,T,R,B,I,O,P,A,M,z,V,L,D,N,j,X,t,J,te,ee,W,K,Y,Z,oe,ie,q,re,ae,ye,xe,he,ge,me,ke,ve,Ee,Re,se,ne,Ae,be,we]);return uD(ot,e)}function y1e(e){e=e.map(o=>({...o,Edit:(0,wl.memo)(o.edit)}));let t=(0,$$.createHigherOrderComponent)(o=>function(n){let i=ht();return[...e.map((s,a)=>{let{Edit:l,hasSupport:u,attributeKeys:d=[],shareWithChildBlocks:f,supportsPatternEditing:p}=s;if(!(p&&i[$f]||i[Nl]||i[Vy]&&f)||!u(n.name))return null;let m={};for(let g of d)n.attributes[g]&&(m[g]=n.attributes[g]);return(0,g1.jsx)(l,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...m},a)}),(0,g1.jsx)(o,{...n},"edit")]},"withBlockEditHooks");(0,h1.addFilter)("editor.BlockEdit","core/editor/hooks",t)}function iZe({index:e,useBlockProps:t,setAllWrapperProps:o,...r}){let n=t(r),i=s=>o(a=>{let l=[...a];return l[e]=s,l});return(0,wl.useEffect)(()=>(i(n),()=>{i(void 0)})),null}var sZe=(0,wl.memo)(iZe);function v1e(e){let t=(0,$$.createHigherOrderComponent)(o=>function(n){let[i,s]=(0,wl.useState)(Array(e.length).fill(void 0));return[...e.map((a,l)=>{let{hasSupport:u,attributeKeys:d=[],useBlockProps:f,isMatch:p}=a,h={};for(let m of d)n.attributes[m]&&(h[m]=n.attributes[m]);return!Object.keys(h).length||!u(n.name)||p&&!p(h)?null:(0,g1.jsx)(sZe,{index:l,useBlockProps:f,setAllWrapperProps:s,name:n.name,clientId:n.clientId,...h},l)}),(0,g1.jsx)(o,{...n,wrapperProps:i.filter(Boolean).reduce((a,l)=>({...a,...l,className:$(a.className,l.className),style:{...a.style,...l.style}}),n.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");(0,h1.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}function S1e(e){function t(o,r,n){return e.reduce((i,s)=>{let{hasSupport:a,attributeKeys:l=[],addSaveProps:u}=s,d={};for(let f of l)n[f]&&(d[f]=n[f]);return!Object.keys(d).length||!a(r)?i:u(i,r,d)},o)}(0,h1.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),(0,h1.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",o=>(o.hasOwnProperty("className")&&!o.className&&delete o.className,o))}var k1e=c(ce(),1),_1e=c(bo(),1);function aZe(e){let{apiVersion:t=1}=e;return t<2&&(0,k1e.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}(0,_1e.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",aZe);function x1e(e){e.hasAttribute("crossorigin")||e.setAttribute("crossorigin","anonymous")}if(window.crossOriginIsolated){let e=function(){document.body?t.observe(document.body,{childList:!0,attributes:!0,subtree:!0}):document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",()=>{document.body&&t.observe(document.body,{childList:!0,attributes:!0,subtree:!0})})};lZe=e;let t=new window.MutationObserver(o=>{o.forEach(r=>{[r.addedNodes,r.target].forEach(n=>{(n instanceof window.NodeList?n:[n]).forEach(s=>{let a=s;a.querySelectorAll&&(a.querySelectorAll("source,script,video,link").forEach(l=>{x1e(l)}),["SOURCE","SCRIPT","VIDEO","LINK"].includes(a.nodeName)&&x1e(a))})})})});e()}var lZe;var w1e=c(bo(),1),Cl=c(ce(),1);var K$=c(E(),1),Y$=["left","center","right","wide","full"],cZe=["wide","full"];function q$(e,t=!0,o=!0){let r;return Array.isArray(e)?r=Y$.filter(n=>e.includes(n)):e===!0?r=[...Y$]:r=[],!o||e===!0&&!t?r.filter(n=>!cZe.includes(n)):r}function uZe(e){return"type"in(e.attributes?.align??{})||(0,Cl.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Y$,""]}}),e}function dZe({name:e,align:t,setAttributes:o}){let r=q$((0,Cl.getBlockSupport)(e,"align"),(0,Cl.hasBlockSupport)(e,"alignWide",!0)),n=Nw(r).map(({name:a})=>a),i=Cr();return!n.length||i!=="default"?null:(0,K$.jsx)(No,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,K$.jsx)(dP,{value:t,onChange:a=>{a||(0,Cl.getBlockType)(e)?.attributes?.align?.default&&(a=""),o({align:a})},controls:n})})}var vV={shareWithChildBlocks:!0,edit:dZe,useBlockProps:fZe,addSaveProps:pZe,attributeKeys:["align"],hasSupport(e){return(0,Cl.hasBlockSupport)(e,"align",!1)}};function fZe({name:e,align:t}){let o=q$((0,Cl.getBlockSupport)(e,"align"),(0,Cl.hasBlockSupport)(e,"alignWide",!0));return Nw(o).some(n=>n.name===t)?{"data-align":t}:{}}function pZe(e,t,o){let{align:r}=o,n=(0,Cl.getBlockSupport)(t,"align"),i=(0,Cl.hasBlockSupport)(t,"alignWide",!0);return q$(n,i).includes(r)&&(e.className=$(`align${r}`,e.className)),e}(0,w1e.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",uZe);var C1e=c(bo(),1);function mZe(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}(0,C1e.addFilter)("blocks.registerBlockType","core/lock/addAttribute",mZe);var eK=c(bo(),1),J_=c(ce(),1);var b1=c(U(),1),_V=c(G(),1),D1e=c(F(),1),V1e=c(Q(),1),xV=c(ce(),1);var Bs=c(U(),1),L1e=c(F(),1),Q_=c(G(),1),N1e=c(Q(),1);var Q$=c(ce(),1),I1e=c(Q(),1),X_=c(U(),1),Bc=c(G(),1),SV=c(F(),1),O1e=c(fe(),1),A1e=c(Xr(),1);var Z$=c(F(),1),R1e=c(fe(),1),B1e=c(U(),1);var E1e=c(U(),1);var q_=c(E(),1);function hZe({blockTypes:e,value:t,onItemChange:o}){return(0,q_.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(r=>(0,q_.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,q_.jsx)(E1e.CheckboxControl,{label:r.title,checked:t.includes(r.name),onChange:(...n)=>o(r,...n)}),(0,q_.jsx)(Tt,{icon:r.icon})]},r.name))})}var T1e=hZe;var Z_=c(E(),1);function P1e({title:e,blockTypes:t,selectedBlockTypes:o,onChange:r}){let n=(0,R1e.useInstanceId)(P1e),i=(0,Z$.useCallback)((f,p)=>{r(p?[...o,f]:o.filter(({name:h})=>h!==f.name))},[o,r]),s=(0,Z$.useCallback)(f=>{r(f?[...o,...t.filter(p=>!o.find(({name:h})=>h===p.name))]:o.filter(p=>!t.find(({name:h})=>h===p.name)))},[t,o,r]);if(!t.length)return null;let a=t.map(({name:f})=>f).filter(f=>(o??[]).some(p=>p.name===f)),l="block-editor-block-manager__category-title-"+n,u=a.length===t.length,d=!u&&a.length>0;return(0,Z_.jsxs)("div",{role:"group","aria-labelledby":l,className:"block-editor-block-manager__category",children:[(0,Z_.jsx)(B1e.CheckboxControl,{checked:u,onChange:s,className:"block-editor-block-manager__category-title",indeterminate:d,label:(0,Z_.jsx)("span",{id:l,children:e})}),(0,Z_.jsx)(T1e,{blockTypes:t,value:a,onItemChange:i})]})}var X$=P1e;var Bf=c(E(),1);function kV({blockTypes:e,selectedBlockTypes:t,onChange:o,showSelectAll:r=!0}){let n=(0,O1e.useDebounce)(A1e.speak,500),[i,s]=(0,SV.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,I1e.useSelect)(p=>({categories:p(Q$.store).getCategories(),isMatchingSearchTerm:p(Q$.store).isMatchingSearchTerm}),[]),u=e.filter(p=>!i||l(p,i)),d=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,SV.useEffect)(()=>{if(!i)return;let p=u.length,h=(0,Bc.sprintf)((0,Bc._n)("%d result found.","%d results found.",p),p);n(h)},[u?.length,i,n]),(0,Bf.jsxs)(X_.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,Bf.jsx)(X_.SearchControl,{label:(0,Bc.__)("Search for a block"),placeholder:(0,Bc.__)("Search for a block"),value:i,onChange:p=>s(p),className:"block-editor-block-manager__search"}),r&&(0,Bf.jsx)(X_.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,Bc.__)("Select all"),checked:f,onChange:()=>{o(f?[]:e)},indeterminate:d}),(0,Bf.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,Bc.__)("Available block types"),className:"block-editor-block-manager__results",children:[u.length===0&&(0,Bf.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,Bc.__)("No blocks found.")}),a.map(p=>(0,Bf.jsx)(X$,{title:p.title,blockTypes:u.filter(h=>h.category===p.slug),selectedBlockTypes:t,onChange:o},p.slug)),(0,Bf.jsx)(X$,{title:(0,Bc.__)("Uncategorized"),blockTypes:u.filter(({category:p})=>!p),selectedBlockTypes:t,onChange:o})]})]})}var Pc=c(E(),1);function M1e({clientId:e,blockTypes:t,selectedBlockTypes:o,onClose:r}){let[n,i]=(0,L1e.useState)(o),{updateBlockAttributes:s}=(0,N1e.useDispatch)(C),a=()=>{let l=n.length===t.length,u=n.map(({name:d})=>d);s(e,{allowedBlocks:l?void 0:u}),r()};return(0,Pc.jsx)(Bs.Modal,{title:(0,Q_._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,Pc.jsxs)(Bs.__experimentalVStack,{as:"form",onSubmit:l=>{l.preventDefault(),a()},spacing:"4",children:[(0,Pc.jsx)(Bs.__experimentalText,{children:(0,Q_.__)("Select which blocks can be added inside this container.")}),(0,Pc.jsx)(kV,{blockTypes:t,selectedBlockTypes:n,onChange:l=>{i(l)}}),(0,Pc.jsxs)(Bs.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Pc.jsx)(Bs.FlexItem,{children:(0,Pc.jsx)(Bs.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,Q_.__)("Cancel")})}),(0,Pc.jsx)(Bs.FlexItem,{children:(0,Pc.jsx)(Bs.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,Q_.__)("Apply")})})]})]})})}var wy=c(E(),1);function F1e({clientId:e}){let[t,o]=(0,D1e.useState)(!1),{blockTypes:r,selectedBlockNames:n}=(0,V1e.useSelect)(a=>{let{getBlockAttributes:l}=a(C);return{blockTypes:a(xV.store).getBlockTypes(),selectedBlockNames:l(e)?.allowedBlocks}},[e]),i=r.filter(a=>(0,xV.hasBlockSupport)(a,"inserter",!0)&&(!a.parent||a.parent.includes("core/post-content")));if(!i)return null;let s=n===void 0?i:i.filter(a=>n.includes(a.name));return(0,wy.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,wy.jsxs)(b1.BaseControl,{help:(0,_V.__)("Specify which blocks are allowed inside this container."),children:[(0,wy.jsx)(b1.BaseControl.VisualLabel,{children:(0,_V.__)("Allowed Blocks")}),(0,wy.jsx)(b1.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{o(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,_V.__)("Manage allowed blocks")})]}),t&&(0,wy.jsx)(M1e,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>o(!1)})]})}var J$=c(E(),1);function gZe({clientId:e}){return Cr()==="contentOnly"?null:(0,J$.jsx)(WC.Fill,{children:(0,J$.jsx)(F1e,{clientId:e})})}var z1e={edit:gZe,attributeKeys:["allowedBlocks"],hasSupport(e){return(0,J_.hasBlockSupport)(e,"allowedBlocks")}};function bZe(e){return e?.attributes?.allowedBlocks?.type||(0,J_.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}(0,eK.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",bZe);function yZe(e,t,o,r){if(!(0,J_.hasBlockSupport)(e.name,"allowedBlocks")||t.length!==1&&r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length||e.attributes.allowedBlocks)return e;let n=t[o]?.attributes?.allowedBlocks;if(!n)return e;let s=(0,J_.getBlockType)(e.name)?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:n}};let a=n.filter(l=>s.includes(l));return{...e,attributes:{...e.attributes,allowedBlocks:a}}}(0,eK.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",yZe);var j1e=c(bo(),1),wV=c(U(),1),y1=c(G(),1),CV=c(ce(),1);var mh=c(E(),1),vZe=/[\s#]/g;function SZe(e){return"type"in(e.attributes?.anchor??{})||(0,CV.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e}function kZe({anchor:e,setAttributes:t}){return Cr()!=="default"?null:(0,mh.jsx)(Oe,{group:"advanced",children:(0,mh.jsx)(wV.TextControl,{className:"html-anchor-control",label:(0,y1.__)("HTML anchor"),help:(0,mh.jsxs)(mh.Fragment,{children:[(0,y1.__)("Enter a word or two\u2014without spaces\u2014to make a unique web address just for this block, called an \u201Canchor\u201D. Then, you\u2019ll be able to link directly to this section of your page.")," ",(0,mh.jsx)(wV.ExternalLink,{href:(0,y1.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,y1.__)("Learn more about anchors")})]}),value:e||"",placeholder:null,onChange:r=>{r=r.replace(vZe,"-"),t({anchor:r!==""?r:void 0})},autoCapitalize:"none",autoComplete:"off"})})}var tK={addSaveProps:_Ze,edit:kZe,attributeKeys:["anchor"],hasSupport(e){return(0,CV.hasBlockSupport)(e,"anchor")}};function _Ze(e,t,o){return(0,CV.hasBlockSupport)(t,"anchor")&&(e.id=o.anchor===""?null:o.anchor),e}(0,j1e.addFilter)("blocks.registerBlockType","core/anchor/attribute",SZe);var H1e=c(bo(),1),EV=c(ce(),1);function xZe(e){return e?.attributes?.ariaLabel?.type||(0,EV.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}function wZe(e,t,o){return(0,EV.hasBlockSupport)(t,"ariaLabel")&&!Gt(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=o.ariaLabel===""?null:o.ariaLabel),e}var U1e={addSaveProps:wZe,attributeKeys:["ariaLabel"],hasSupport(e){return(0,EV.hasBlockSupport)(e,"ariaLabel")}};(0,H1e.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",xZe);var px=c(ce(),1),XBe=c(fe(),1),R5=c(U(),1),B5=c(Q(),1);var oK=c(G(),1);var Qo="isAny",Jo="isNone",vi="isAll",Si="isNotAll",qi="between",Zi="inThePast",Ps="over",fr="is",pr="isNot",hh="lessThan",gh="greaterThan",bh="lessThanOrEqual",yh="greaterThanOrEqual",vh="before",Sh="after",kh="beforeInc",_h="afterInc",Hu="contains",Uu="notContains",Gu="startsWith",xh="on",wh="notOn";var Eno={asc:(0,oK.__)("Sort ascending"),desc:(0,oK.__)("Sort descending")};var G1e=c(Tx(),1),{lock:Rno,unlock:ao}=(0,G1e.__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/dataviews");var v1=c(F(),1),CZe=[];function Is({elements:e,getElements:t}){let o=Array.isArray(e)&&e.length>0?e:CZe,[r,n]=(0,v1.useState)(o),[i,s]=(0,v1.useState)(!1);return(0,v1.useEffect)(()=>{if(!t){n(o);return}let a=!1;return s(!0),t().then(l=>{if(!a){let u=Array.isArray(l)&&l.length>0?l:o;n(u)}}).catch(()=>{a||n(o)}).finally(()=>{a||s(!1)}),()=>{a=!0}},[t,o]),{elements:r,isLoading:i}}var EZe=Math.pow(10,8)*24*60*60*1e3,Ino=-EZe,TV=6048e5,W1e=864e5;var TZe=3600;var $1e=TZe*24,Ono=$1e*7,RZe=$1e*365.2425,BZe=RZe/12,Ano=BZe*3,rK=Symbol.for("constructDateFrom");function bn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rK in e?e[rK](t):e instanceof Date?new e.constructor(t):new Date(t)}function mo(e,t){return bn(t||e,e)}function RV(e,t,o){let r=mo(e,o?.in);return isNaN(t)?bn(o?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function BV(e,t,o){let r=mo(e,o?.in);if(isNaN(t))return bn(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),i=bn(o?.in||e,r.getTime());i.setMonth(r.getMonth()+t+1,0);let s=i.getDate();return n>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}var PZe={};function Ch(){return PZe}function Pf(e,t){let o=Ch(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=mo(e,t?.in),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function Cy(e,t){return Pf(e,{...t,weekStartsOn:1})}function PV(e,t){let o=mo(e,t?.in),r=o.getFullYear(),n=bn(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Cy(n),s=bn(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let a=Cy(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=a.getTime()?r:r-1}function nK(e){let t=mo(e),o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),+e-+o}function K1e(e,...t){let o=bn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function iK(e,t){let o=mo(e,t?.in);return o.setHours(0,0,0,0),o}function Y1e(e,t,o){let[r,n]=K1e(o?.in,e,t),i=iK(r),s=iK(n),a=+i-nK(i),l=+s-nK(s);return Math.round((a-l)/W1e)}function q1e(e,t){let o=PV(e,t),r=bn(t?.in||e,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Cy(r)}function Z1e(e,t,o){return RV(e,t*7,o)}function X1e(e,t,o){return BV(e,t*12,o)}function Q1e(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function If(e){return!(!Q1e(e)&&typeof e!="number"||isNaN(+mo(e)))}function J1e(e,t){let o=mo(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function IV(e,t){let o=mo(e,t?.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}var IZe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},eTe=(e,t,o)=>{let r,n=IZe[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",t.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function OV(e){return(t={})=>{let o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}var OZe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},AZe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},LZe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tTe={date:OV({formats:OZe,defaultWidth:"full"}),time:OV({formats:AZe,defaultWidth:"full"}),dateTime:OV({formats:LZe,defaultWidth:"full"})};var NZe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},oTe=(e,t,o,r)=>NZe[e];function ex(e){return(t,o)=>{let r=o?.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=o?.width?String(o.width):s;n=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=o?.width?String(o.width):e.defaultWidth;n=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return n[i]}}var MZe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},DZe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VZe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FZe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zZe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jZe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},HZe=(e,t)=>{let o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},rTe={ordinalNumber:HZe,era:ex({values:MZe,defaultWidth:"wide"}),quarter:ex({values:DZe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ex({values:VZe,defaultWidth:"wide"}),day:ex({values:FZe,defaultWidth:"wide"}),dayPeriod:ex({values:zZe,defaultWidth:"wide",formattingValues:jZe,defaultFormattingWidth:"wide"})};function tx(e){return(t,o={})=>{let r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;let s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?GZe(a,f=>f.test(s)):UZe(a,f=>f.test(s)),u;u=e.valueCallback?e.valueCallback(l):l,u=o.valueCallback?o.valueCallback(u):u;let d=t.slice(s.length);return{value:u,rest:d}}}function UZe(e,t){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function GZe(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function nTe(e){return(t,o={})=>{let r=t.match(e.matchPattern);if(!r)return null;let n=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=o.valueCallback?o.valueCallback(s):s;let a=t.slice(n.length);return{value:s,rest:a}}}var WZe=/^(\d+)(th|st|nd|rd)?/i,$Ze=/\d+/i,KZe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},YZe={any:[/^b/i,/^(a|c)/i]},qZe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZZe={any:[/1/i,/2/i,/3/i,/4/i]},XZe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},QZe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},JZe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eXe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tXe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oXe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},iTe={ordinalNumber:nTe({matchPattern:WZe,parsePattern:$Ze,valueCallback:e=>parseInt(e,10)}),era:tx({matchPatterns:KZe,defaultMatchWidth:"wide",parsePatterns:YZe,defaultParseWidth:"any"}),quarter:tx({matchPatterns:qZe,defaultMatchWidth:"wide",parsePatterns:ZZe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:tx({matchPatterns:XZe,defaultMatchWidth:"wide",parsePatterns:QZe,defaultParseWidth:"any"}),day:tx({matchPatterns:JZe,defaultMatchWidth:"wide",parsePatterns:eXe,defaultParseWidth:"any"}),dayPeriod:tx({matchPatterns:tXe,defaultMatchWidth:"any",parsePatterns:oXe,defaultParseWidth:"any"})};var sK={code:"en-US",formatDistance:eTe,formatLong:tTe,formatRelative:oTe,localize:rTe,match:iTe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sTe(e,t){let o=mo(e,t?.in);return Y1e(o,IV(o))+1}function aTe(e,t){let o=mo(e,t?.in),r=+Cy(o)-+q1e(o);return Math.round(r/TV)+1}function AV(e,t){let o=mo(e,t?.in),r=o.getFullYear(),n=Ch(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=bn(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=Pf(s,t),l=bn(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let u=Pf(l,t);return+o>=+a?r+1:+o>=+u?r:r-1}function lTe(e,t){let o=Ch(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=AV(e,t),i=bn(t?.in||e,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Pf(i,t)}function cTe(e,t){let o=mo(e,t?.in),r=+Pf(o,t)-+lTe(o,t);return Math.round(r/TV)+1}function Zt(e,t){let o=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return o+r}var Of={y(e,t){let o=e.getFullYear(),r=o>0?o:1-o;return Zt(t==="yy"?r%100:r,t.length)},M(e,t){let o=e.getMonth();return t==="M"?String(o+1):Zt(o+1,2)},d(e,t){return Zt(e.getDate(),t.length)},a(e,t){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];default:return o==="am"?"a.m.":"p.m."}},h(e,t){return Zt(e.getHours()%12||12,t.length)},H(e,t){return Zt(e.getHours(),t.length)},m(e,t){return Zt(e.getMinutes(),t.length)},s(e,t){return Zt(e.getSeconds(),t.length)},S(e,t){let o=t.length,r=e.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return Zt(n,t.length)}};var ox={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aK={G:function(e,t,o){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})}},y:function(e,t,o){if(t==="yo"){let r=e.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return Of.y(e,t)},Y:function(e,t,o,r){let n=AV(e,r),i=n>0?n:1-n;if(t==="YY"){let s=i%100;return Zt(s,2)}return t==="Yo"?o.ordinalNumber(i,{unit:"year"}):Zt(i,t.length)},R:function(e,t){let o=PV(e);return Zt(o,t.length)},u:function(e,t){let o=e.getFullYear();return Zt(o,t.length)},Q:function(e,t,o){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Zt(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,o){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Zt(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,o){let r=e.getMonth();switch(t){case"M":case"MM":return Of.M(e,t);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,o){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Zt(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,o,r){let n=cTe(e,r);return t==="wo"?o.ordinalNumber(n,{unit:"week"}):Zt(n,t.length)},I:function(e,t,o){let r=aTe(e);return t==="Io"?o.ordinalNumber(r,{unit:"week"}):Zt(r,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getDate(),{unit:"date"}):Of.d(e,t)},D:function(e,t,o){let r=sTe(e);return t==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Zt(r,t.length)},E:function(e,t,o){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,o,r){let n=e.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Zt(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,o,r){let n=e.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Zt(i,t.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,o){let r=e.getDay(),n=r===0?7:r;switch(t){case"i":return String(n);case"ii":return Zt(n,t.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,o){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,o){let r=e.getHours(),n;switch(r===12?n=ox.noon:r===0?n=ox.midnight:n=r/12>=1?"pm":"am",t){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,o){let r=e.getHours(),n;switch(r>=17?n=ox.evening:r>=12?n=ox.afternoon:r>=4?n=ox.morning:n=ox.night,t){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,o){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Of.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getHours(),{unit:"hour"}):Of.H(e,t)},K:function(e,t,o){let r=e.getHours()%12;return t==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Zt(r,t.length)},k:function(e,t,o){let r=e.getHours();return r===0&&(r=24),t==="ko"?o.ordinalNumber(r,{unit:"hour"}):Zt(r,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getMinutes(),{unit:"minute"}):Of.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getSeconds(),{unit:"second"}):Of.s(e,t)},S:function(e,t){return Of.S(e,t)},X:function(e,t,o){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dTe(r);case"XXXX":case"XX":return Ey(r);default:return Ey(r,":")}},x:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"x":return dTe(r);case"xxxx":case"xx":return Ey(r);default:return Ey(r,":")}},O:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uTe(r,":");default:return"GMT"+Ey(r,":")}},z:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uTe(r,":");default:return"GMT"+Ey(r,":")}},t:function(e,t,o){let r=Math.trunc(+e/1e3);return Zt(r,t.length)},T:function(e,t,o){return Zt(+e,t.length)}};function uTe(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+t+Zt(i,2)}function dTe(e,t){return e%60===0?(e>0?"-":"+")+Zt(Math.abs(e)/60,2):Ey(e,t)}function Ey(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=Zt(Math.trunc(r/60),2),i=Zt(r%60,2);return o+n+t+i}var fTe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},pTe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},rXe=(e,t)=>{let o=e.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return fTe(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",fTe(r,t)).replace("{{time}}",pTe(n,t))},mTe={p:pTe,P:rXe};var nXe=/^D+$/,iXe=/^Y+$/,sXe=["D","DD","YY","YYYY"];function hTe(e){return nXe.test(e)}function gTe(e){return iXe.test(e)}function bTe(e,t,o){let r=aXe(e,t,o);if(console.warn(r),sXe.includes(e))throw new RangeError(r)}function aXe(e,t,o){let r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var lXe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cXe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uXe=/^'([^]*?)'?$/,dXe=/''/g,fXe=/[a-zA-Z]/;function lK(e,t,o){let r=Ch(),n=o?.locale??r.locale??sK,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=mo(e,o?.in);if(!If(a))throw new RangeError("Invalid time value");let l=t.match(cXe).map(d=>{let f=d[0];if(f==="p"||f==="P"){let p=mTe[f];return p(d,n.formatLong)}return d}).join("").match(lXe).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let f=d[0];if(f==="'")return{isToken:!1,value:pXe(d)};if(aK[f])return{isToken:!0,value:d};if(f.match(fXe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});n.localize.preprocessor&&(l=n.localize.preprocessor(a,l));let u={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return l.map(d=>{if(!d.isToken)return d.value;let f=d.value;(!o?.useAdditionalWeekYearTokens&&gTe(f)||!o?.useAdditionalDayOfYearTokens&&hTe(f))&&bTe(f,t,String(e));let p=aK[f[0]];return p(a,f,n.localize,u)}).join("")}function pXe(e){let t=e.match(uXe);return t?t[1].replace(dXe,"'"):e}function Ty(e,t,o){return RV(e,-t,o)}function LV(e,t,o){return BV(e,-t,o)}function yTe(e,t,o){return Z1e(e,-t,o)}function NV(e,t,o){return X1e(e,-t,o)}var ze=c(G(),1),Er=c(F(),1),Xi=c(Tu(),1);var cK=c(E(),1),Yr={Name:(0,cK.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,cK.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function vTe(e,t){switch(t){case"days":return Ty(new Date,e);case"weeks":return yTe(new Date,e);case"months":return LV(new Date,e);case"years":return NV(new Date,e);default:return new Date}}var STe={label:(0,ze.__)("Is none of"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),Yr),filter:((e,t,o)=>{if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?!o.some(n=>r.includes(n)):typeof r=="string"?!o.includes(r):!1}),selection:"multi"},kTe=[{name:Qo,label:(0,ze.__)("Includes"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),Yr),filter(e,t,o){if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?o.some(n=>r.includes(n)):typeof r=="string"?o.includes(r):!1},selection:"multi"},{name:Jo,...STe},{name:vi,label:(0,ze.__)("Includes all"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),Yr),filter(e,t,o){return o?.length?o.every(r=>t.getValue({item:e})?.includes(r)):!0},selection:"multi"},{name:Si,...STe},{name:qi,label:(0,ze.__)("Between (inc)"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),Yr),filter(e,t,o){if(!Array.isArray(o)||o.length!==2||o[0]===void 0||o[1]===void 0)return!0;let r=t.getValue({item:e});return typeof r=="number"||r instanceof Date||typeof r=="string"?r>=o[0]&&r<=o[1]:!1},selection:"custom"},{name:Zi,label:(0,ze.__)("In the past"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),Yr),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=vTe(o.value,o.unit),n=(0,Xi.getDate)(t.getValue({item:e}));return n>=r&&n<=new Date},selection:"custom"},{name:Ps,label:(0,ze.__)("Over"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),Yr),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=vTe(o.value,o.unit);return(0,Xi.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:fr,label:(0,ze.__)("Is"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){return o===t.getValue({item:e})||o===void 0},selection:"single"},{name:pr,label:(0,ze.__)("Is not"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){return o!==t.getValue({item:e})},selection:"single"},{name:hh,label:(0,ze.__)("Less than"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<o},selection:"single"},{name:gh,label:(0,ze.__)("Greater than"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>o},selection:"single"},{name:bh,label:(0,ze.__)("Less than or equal"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<=o},selection:"single"},{name:yh,label:(0,ze.__)("Greater than or equal"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>=o},selection:"single"},{name:vh,label:(0,ze.__)("Before"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Xi.getDate)(o);return(0,Xi.getDate)(t.getValue({item:e}))<r},selection:"single"},{name:Sh,label:(0,ze.__)("After"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Xi.getDate)(o);return(0,Xi.getDate)(t.getValue({item:e}))>r},selection:"single"},{name:kh,label:(0,ze.__)("Before (inc)"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Xi.getDate)(o);return(0,Xi.getDate)(t.getValue({item:e}))<=r},selection:"single"},{name:_h,label:(0,ze.__)("After (inc)"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Xi.getDate)(o);return(0,Xi.getDate)(t.getValue({item:e}))>=r},selection:"single"},{name:Hu,label:(0,ze.__)("Contains"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&r.toLowerCase().includes(String(o).toLowerCase())},selection:"single"},{name:Uu,label:(0,ze.__)("Doesn't contain"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&!r.toLowerCase().includes(String(o).toLowerCase())},selection:"single"},{name:Gu,label:(0,ze.__)("Starts with"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&r.toLowerCase().startsWith(String(o).toLowerCase())},selection:"single"},{name:xh,label:(0,ze.__)("On"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Xi.getDate)(o),n=(0,Xi.getDate)(t.getValue({item:e}));return r.getTime()===n.getTime()},selection:"single"},{name:wh,label:(0,ze.__)("Not on"),filterText:(e,t)=>(0,Er.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),Yr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Xi.getDate)(o),n=(0,Xi.getDate)(t.getValue({item:e}));return r.getTime()!==n.getTime()},selection:"single"}],_Te=e=>kTe.find(t=>t.name===e),xTe=()=>kTe.map(e=>e.name);var wTe=c(U(),1),CTe=c(F(),1);function lo(e,t){let o;return e?.required&&t?.required?o=t?.required?.message?t.required:void 0:e?.pattern&&t?.pattern?o=t.pattern:e?.min&&t?.min?o=t.min:e?.max&&t?.max?o=t.max:e?.minLength&&t?.minLength?o=t.minLength:e?.maxLength&&t?.maxLength?o=t.maxLength:e?.elements&&t?.elements?o=t.elements:t?.custom&&(o=t.custom),o}var ETe=c(E(),1),{ValidatedCheckboxControl:mXe}=ao(wTe.privateApis);function TTe({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,label:l,description:u,isValid:d}=e,f=e.isDisabled({item:o,field:e}),p=(0,CTe.useCallback)(()=>{t(a({item:o,value:!s({item:o})}))},[o,s,t,a]);return(0,ETe.jsx)(mXe,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:lo(d,i),hidden:r,label:l,help:u,checked:s({item:o}),onChange:p,disabled:f})}var MV=c(U(),1),RTe=c(F(),1);var uK=c(E(),1),{ValidatedComboboxControl:hXe}=ao(MV.privateApis);function DV({data:e,field:t,onChange:o,hideLabelFromVision:r,validity:n}){let{label:i,description:s,placeholder:a,getValue:l,setValue:u,isValid:d}=t,f=l({item:e})??"",p=(0,RTe.useCallback)(g=>o(u({item:e,value:g??""})),[e,o,u]),{elements:h,isLoading:m}=Is({elements:t.elements,getElements:t.getElements});return m?(0,uK.jsx)(MV.Spinner,{}):(0,uK.jsx)(hXe,{required:!!t.isValid?.required,customValidity:lo(d,n),label:i,value:f,help:s,placeholder:a,options:h,onChange:p,hideLabelFromVision:r,allowReset:!0,expandOnFocus:!0})}var zV=c(U(),1),El=c(F(),1),FV=c(G(),1),ma=c(Tu(),1);var nx=c(U(),1),dK=c(F(),1),Wu=c(G(),1);var rx=c(E(),1),gXe={[Zi]:[{value:"days",label:(0,Wu.__)("Days")},{value:"weeks",label:(0,Wu.__)("Weeks")},{value:"months",label:(0,Wu.__)("Months")},{value:"years",label:(0,Wu.__)("Years")}],[Ps]:[{value:"days",label:(0,Wu.__)("Days ago")},{value:"weeks",label:(0,Wu.__)("Weeks ago")},{value:"months",label:(0,Wu.__)("Months ago")},{value:"years",label:(0,Wu.__)("Years ago")}]};function VV({className:e,data:t,field:o,onChange:r,hideLabelFromVision:n,operator:i}){let s=gXe[i===Zi?"inThePast":"over"],{id:a,label:l,description:u,getValue:d,setValue:f}=o,p=o.isDisabled({item:t,field:o}),h=d({item:t}),{value:m="",unit:g=s[0].value}=h&&typeof h=="object"?h:{},b=(0,dK.useCallback)(y=>r(f({item:t,value:{value:Number(y),unit:g}})),[r,f,t,g]),v=(0,dK.useCallback)(y=>r(f({item:t,value:{value:m,unit:y}})),[r,f,t,m]);return(0,rx.jsx)(nx.BaseControl,{id:a,className:$(e,"dataviews-controls__relative-date"),label:l,hideLabelFromVision:n,help:u,children:(0,rx.jsxs)(Qe,{direction:"row",gap:"sm",children:[(0,rx.jsx)(nx.__experimentalNumberControl,{className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:m,onChange:b,disabled:p}),(0,rx.jsx)(nx.SelectControl,{className:"dataviews-controls__relative-date-unit",label:(0,Wu.__)("Unit"),value:g,options:s,onChange:v,hideLabelFromVision:!0,disabled:p})]})})}var BTe=c(F(),1);function S1(e,t){let o=typeof e.min?.constraint=="string"?e.min.constraint:void 0,r=typeof e.max?.constraint=="string"?e.max.constraint:void 0,n=(0,BTe.useMemo)(()=>{let i=[];if(o){let s=t(o);s&&i.push({before:s})}if(r){let s=t(r);s&&i.push({after:s})}return i.length>0?i:void 0},[o,r,t]);return{minConstraint:o,maxConstraint:r,disabledMatchers:n}}var PTe=c(Tu(),1);function k1(e){if(!e)return null;let t=(0,PTe.getDate)(e);return t&&If(t)?t:null}var Eh=c(E(),1),{DateCalendar:bXe,ValidatedInputControl:yXe}=ao(zV.privateApis),fK=e=>e?(0,ma.dateI18n)("Y-m-d\\TH:i",(0,ma.getDate)(e)):"";function vXe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,config:s}){let{compact:a}=s||{},{id:l,label:u,description:d,setValue:f,getValue:p,isValid:h}=t,m=t.isDisabled({item:e,field:t}),g=p({item:e}),b=typeof g=="string"?g:void 0,[v,y]=(0,El.useState)(()=>k1(b)||new Date),k=(0,El.useRef)(null),S=(0,El.useRef)(void 0),_=(0,El.useRef)(null),{minConstraint:x,maxConstraint:w,disabledMatchers:T}=S1(h,k1),R=(0,El.useCallback)(z=>o(f({item:e,value:z})),[e,o,f]);(0,El.useEffect)(()=>()=>{S.current&&clearTimeout(S.current)},[]);let B=(0,El.useCallback)(z=>{let V;if(z){let L=(0,ma.dateI18n)("Y-m-d",z),D;b?D=(0,ma.dateI18n)("H:i",(0,ma.getDate)(b)):D=(0,ma.dateI18n)("H:i",z),V=(0,ma.getDate)(`${L}T${D}`).toISOString(),R(V),S.current&&clearTimeout(S.current)}else R(void 0);_.current=k.current&&k.current.ownerDocument.activeElement,S.current=setTimeout(()=>{k.current&&(k.current.focus(),k.current.blur(),R(V),_.current&&_.current instanceof HTMLElement&&_.current.focus())},0)},[R,b]),I=(0,El.useCallback)(z=>{if(z){let V=(0,ma.getDate)(z);R(V.toISOString());let L=k1(V.toISOString());L&&y(L)}else R(void 0)},[R]),{format:O}=t,P=O.weekStartsOn??(0,ma.getSettings)().l10n.startOfWeek,{timezone:{string:A}}=(0,ma.getSettings)(),M=u;return h?.required&&!n&&!r?M=`${u} (${(0,FV.__)("Required")})`:!h?.required&&n&&!r&&(M=`${u} (${(0,FV.__)("Optional")})`),(0,Eh.jsx)(zV.BaseControl,{id:l,label:M,help:d,hideLabelFromVision:r,children:(0,Eh.jsxs)(Qe,{direction:"column",gap:"lg",children:[(0,Eh.jsx)(yXe,{ref:k,required:!!h?.required,customValidity:lo(h,i),type:"datetime-local",label:(0,FV.__)("Date time"),hideLabelFromVision:!0,value:fK(b),onChange:I,disabled:m,min:x?fK(x):void 0,max:w?fK(w):void 0}),!a&&(0,Eh.jsx)(bXe,{style:{width:"100%"},selected:b&&k1(b)||void 0,onSelect:B,month:v,onMonthChange:y,timeZone:A||void 0,weekStartsOn:P,disabled:m||T})]})})}function ITe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s,config:a}){return i===Zi||i===Ps?(0,Eh.jsx)(VV,{className:"dataviews-controls__datetime",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):(0,Eh.jsx)(vXe,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,config:a})}var _i=c(U(),1),OTe=c(Xr(),1),ro=c(F(),1),yn=c(G(),1),ki=c(Tu(),1);var Po=c(E(),1),{DateCalendar:SXe,DateRangeCalendar:kXe}=ao(_i.privateApis),_Xe=[{id:"today",label:(0,yn.__)("Today"),getValue:()=>(0,ki.getDate)(null)},{id:"yesterday",label:(0,yn.__)("Yesterday"),getValue:()=>{let e=(0,ki.getDate)(null);return Ty(e,1)}},{id:"past-week",label:(0,yn.__)("Past week"),getValue:()=>{let e=(0,ki.getDate)(null);return Ty(e,7)}},{id:"past-month",label:(0,yn.__)("Past month"),getValue:()=>{let e=(0,ki.getDate)(null);return LV(e,1)}}],xXe=[{id:"last-7-days",label:(0,yn.__)("Last 7 days"),getValue:()=>{let e=(0,ki.getDate)(null);return[Ty(e,7),e]}},{id:"last-30-days",label:(0,yn.__)("Last 30 days"),getValue:()=>{let e=(0,ki.getDate)(null);return[Ty(e,30),e]}},{id:"month-to-date",label:(0,yn.__)("Month to date"),getValue:()=>{let e=(0,ki.getDate)(null);return[J1e(e),e]}},{id:"last-year",label:(0,yn.__)("Last year"),getValue:()=>{let e=(0,ki.getDate)(null);return[NV(e,1),e]}},{id:"year-to-date",label:(0,yn.__)("Year to date"),getValue:()=>{let e=(0,ki.getDate)(null);return[IV(e),e]}}],Th=e=>{if(!e)return null;let t=(0,ki.getDate)(e);return t&&If(t)?t:null},pK=e=>e?typeof e=="string"?e:lK(e,"yyyy-MM-dd"):"";function ATe({field:e,validity:t,inputRefs:o,isTouched:r,setIsTouched:n,children:i}){let{isValid:s}=e,[a,l]=(0,ro.useState)(void 0),u=(0,ro.useCallback)(()=>{let f=Array.isArray(o)?o:[o];for(let p of f){let h=p.current;if(h&&!h.validity.valid){l({type:"invalid",message:h.validationMessage});return}}l(void 0)},[o]);return(0,ro.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=t?lo(s,t):void 0;for(let h of f){let m=h.current;m&&m.setCustomValidity(p?.type==="invalid"&&p.message?p.message:"")}},[o,s,t]),(0,ro.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=h=>{h.preventDefault(),n(!0)};for(let h of f)h.current?.addEventListener("invalid",p);return()=>{for(let h of f)h.current?.removeEventListener("invalid",p)}},[o,n]),(0,ro.useEffect)(()=>{if(!r)return;let f=t?lo(s,t):void 0;f?l(f):u()},[r,s,t,u]),(0,ro.useEffect)(()=>{r&&a?.message&&(0,OTe.speak)(a.message)},[r,a?.message]),(0,Po.jsxs)("div",{onBlur:f=>{r||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[i,a&&(0,Po.jsxs)("p",{className:$("components-validated-control__indicator",a.type==="invalid"?"is-invalid":void 0),children:[(0,Po.jsx)(_i.Icon,{className:"components-validated-control__indicator-icon",icon:sg,size:16,fill:"currentColor"}),a.message]})]})}function wXe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,setValue:u,getValue:d,isValid:f,format:p}=t,h=t.isDisabled({item:e,field:t}),[m,g]=(0,ro.useState)(null),b=p.weekStartsOn??(0,ki.getSettings)().l10n.startOfWeek,v=d({item:e}),y=typeof v=="string"?v:void 0,[k,S]=(0,ro.useState)(()=>Th(y)||new Date),[_,x]=(0,ro.useState)(!1),w=(0,ro.useRef)(null),{minConstraint:T,maxConstraint:R,disabledMatchers:B}=S1(f,Th),I=(0,ro.useCallback)(V=>o(u({item:e,value:V})),[e,o,u]),O=(0,ro.useCallback)(V=>{let L=V?lK(V,"yyyy-MM-dd"):void 0;I(L),g(null),x(!0)},[I]),P=(0,ro.useCallback)(V=>{let L=V.getValue(),D=pK(L);S(L),I(D),g(V.id),x(!0)},[I]),A=(0,ro.useCallback)(V=>{if(I(V),V){let L=Th(V);L&&S(L)}g(null),x(!0)},[I]),{timezone:{string:M}}=(0,ki.getSettings)(),z=a;return f?.required&&!n?z=`${a} (${(0,yn.__)("Required")})`:!f?.required&&n&&(z=`${a} (${(0,yn.__)("Optional")})`),(0,Po.jsx)(ATe,{field:t,validity:i,inputRefs:w,isTouched:_,setIsTouched:x,children:(0,Po.jsx)(_i.BaseControl,{id:s,className:"dataviews-controls__date",label:z,help:l,hideLabelFromVision:r,children:(0,Po.jsxs)(Qe,{direction:"column",gap:"lg",children:[(0,Po.jsxs)(Qe,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[_Xe.map(V=>{let L=m===V.id;return(0,Po.jsx)(_i.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:L,size:"small",disabled:h,accessibleWhenDisabled:!0,onClick:()=>P(V),children:V.label},V.id)}),(0,Po.jsx)(_i.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!m,size:"small",disabled:!!m||h,accessibleWhenDisabled:!0,children:(0,yn.__)("Custom")})]}),(0,Po.jsx)(_i.__experimentalInputControl,{ref:w,type:"date",label:(0,yn.__)("Date"),hideLabelFromVision:!0,value:y,onChange:A,required:!!t.isValid?.required,disabled:h,min:T,max:R}),(0,Po.jsx)(SXe,{style:{width:"100%"},selected:y&&Th(y)||void 0,onSelect:O,month:k,onMonthChange:S,timeZone:M||void 0,weekStartsOn:b,disabled:h||B,disableNavigation:h})]})})})}function CXe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,getValue:u,setValue:d,isValid:f,format:p}=t,h=t.isDisabled({item:e,field:t}),m,g=u({item:e});Array.isArray(g)&&g.length===2&&g.every(N=>typeof N=="string")&&(m=g);let b=p.weekStartsOn??(0,ki.getSettings)().l10n.startOfWeek,{minConstraint:v,maxConstraint:y,disabledMatchers:k}=S1(f,Th),S=(0,ro.useCallback)(N=>{o(d({item:e,value:N}))},[e,o,d]),[_,x]=(0,ro.useState)(null),w=(0,ro.useMemo)(()=>{if(!m)return{from:void 0,to:void 0};let[N,j]=m;return{from:Th(N)||void 0,to:Th(j)||void 0}},[m]),[T,R]=(0,ro.useState)(()=>w.from||new Date),[B,I]=(0,ro.useState)(!1),O=(0,ro.useRef)(null),P=(0,ro.useRef)(null),A=(0,ro.useCallback)((N,j)=>{N&&j?S([pK(N),pK(j)]):!N&&!j&&S(void 0)},[S]),M=(0,ro.useCallback)(N=>{A(N?.from,N?.to),x(null),I(!0)},[A]),z=(0,ro.useCallback)(N=>{let[j,X]=N.getValue();R(j),A(j,X),x(N.id),I(!0)},[A]),V=(0,ro.useCallback)((N,j)=>{let[X,J]=m||[void 0,void 0];if(A(N==="from"?j:X,N==="to"?j:J),j){let W=Th(j);W&&R(W)}x(null),I(!0)},[m,A]),{timezone:L}=(0,ki.getSettings)(),D=a;return t.isValid?.required&&!n?D=`${a} (${(0,yn.__)("Required")})`:!t.isValid?.required&&n&&(D=`${a} (${(0,yn.__)("Optional")})`),(0,Po.jsx)(ATe,{field:t,validity:i,inputRefs:[O,P],isTouched:B,setIsTouched:I,children:(0,Po.jsx)(_i.BaseControl,{id:s,className:"dataviews-controls__date",label:D,help:l,hideLabelFromVision:r,children:(0,Po.jsxs)(Qe,{direction:"column",gap:"lg",children:[(0,Po.jsxs)(Qe,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[xXe.map(N=>{let j=_===N.id;return(0,Po.jsx)(_i.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:j,size:"small",disabled:h,accessibleWhenDisabled:!0,onClick:()=>z(N),children:N.label},N.id)}),(0,Po.jsx)(_i.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!_,size:"small",accessibleWhenDisabled:!0,disabled:!!_||h,children:(0,yn.__)("Custom")})]}),(0,Po.jsxs)(Qe,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,Po.jsx)(_i.__experimentalInputControl,{ref:O,type:"date",label:(0,yn.__)("From"),hideLabelFromVision:!0,value:m?.[0],onChange:N=>V("from",N),required:!!t.isValid?.required,disabled:h,min:v,max:y}),(0,Po.jsx)(_i.__experimentalInputControl,{ref:P,type:"date",label:(0,yn.__)("To"),hideLabelFromVision:!0,value:m?.[1],onChange:N=>V("to",N),required:!!t.isValid?.required,disabled:h,min:v,max:y})]}),(0,Po.jsx)(kXe,{style:{width:"100%"},selected:w,onSelect:M,month:T,onMonthChange:R,timeZone:L.string||void 0,weekStartsOn:b,disabled:h||k})]})})})}function LTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){return i===Zi||i===Ps?(0,Po.jsx)(VV,{className:"dataviews-controls__date",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):i===qi?(0,Po.jsx)(CXe,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s}):(0,Po.jsx)(wXe,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s})}var jV=c(U(),1),NTe=c(F(),1);var mK=c(E(),1),{ValidatedSelectControl:EXe}=ao(jV.privateApis);function HV({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{type:s,label:a,description:l,getValue:u,setValue:d,isValid:f}=t,p=t.isDisabled({item:e,field:t}),h=s==="array",m=u({item:e})??(h?[]:""),g=(0,NTe.useCallback)(y=>o(d({item:e,value:y})),[e,o,d]),{elements:b,isLoading:v}=Is({elements:t.elements,getElements:t.getElements});return v?(0,mK.jsx)(jV.Spinner,{}):(0,mK.jsx)(EXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:lo(f,i),label:a,value:m,help:l,options:b,onChange:g,hideLabelFromVision:r,multiple:h,disabled:p})}var hK=c(E(),1),TXe=10;function MTe(e){let{field:t}=e,{elements:o}=Is({elements:t.elements,getElements:t.getElements});return o.length>=TXe?(0,hK.jsx)(DV,{...e}):(0,hK.jsx)(HV,{...e})}var GV=c(U(),1);var DTe=c(U(),1),VTe=c(F(),1);var FTe=c(E(),1),{ValidatedInputControl:RXe}=ao(DTe.privateApis);function $u({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,type:i,prefix:s,suffix:a,validity:l}){let{label:u,placeholder:d,description:f,getValue:p,setValue:h,isValid:m}=t,g=p({item:e}),b=t.isDisabled({item:e,field:t}),v=(0,VTe.useCallback)(y=>o(h({item:e,value:y})),[e,h,o]);return(0,FTe.jsx)(RXe,{required:!!m.required,markWhenOptional:n,customValidity:lo(m,l),label:u,placeholder:d,value:g??"",help:f,onChange:v,hideLabelFromVision:r,type:i,prefix:s,suffix:a,disabled:b,pattern:m.pattern?m.pattern.constraint:void 0,minLength:m.minLength?m.minLength.constraint:void 0,maxLength:m.maxLength?m.maxLength.constraint:void 0})}var UV=c(E(),1);function zTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,UV.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"email",prefix:(0,UV.jsx)(GV.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,UV.jsx)(GV.Icon,{icon:v3})})})}var $V=c(U(),1);var WV=c(E(),1);function jTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,WV.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"tel",prefix:(0,WV.jsx)($V.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,WV.jsx)($V.Icon,{icon:Xx})})})}var YV=c(U(),1);var KV=c(E(),1);function HTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,KV.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"url",prefix:(0,KV.jsx)(YV.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,KV.jsx)(YV.Icon,{icon:is})})})}var Af=c(U(),1),_1=c(F(),1),qV=c(G(),1);var Rh=c(E(),1),{ValidatedNumberControl:BXe}=ao(Af.privateApis);function UTe(e){if(e===""||e===void 0)return"";let t=Number(e);return Number.isFinite(t)?t:""}function PXe({value:e,onChange:t,hideLabelFromVision:o,step:r}){let[n="",i=""]=e,s=(0,_1.useCallback)(l=>t([UTe(l),i]),[t,i]),a=(0,_1.useCallback)(l=>t([n,UTe(l)]),[t,n]);return(0,Rh.jsx)(Af.BaseControl,{help:(0,qV.__)("The max. value must be greater than the min. value."),children:(0,Rh.jsxs)(Af.Flex,{direction:"row",gap:4,children:[(0,Rh.jsx)(Af.__experimentalNumberControl,{label:(0,qV.__)("Min."),value:n,max:i?Number(i)-r:void 0,onChange:s,hideLabelFromVision:o,step:r}),(0,Rh.jsx)(Af.__experimentalNumberControl,{label:(0,qV.__)("Max."),value:i,min:n?Number(n)+r:void 0,onChange:a,hideLabelFromVision:o,step:r})]})})}function ZV({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){let a=t.format?.decimals??0,l=Math.pow(10,Math.abs(a)*-1),{label:u,description:d,getValue:f,setValue:p,isValid:h}=t,m=f({item:e})??"",g=t.isDisabled({item:e,field:t}),b=(0,_1.useCallback)(y=>{o(p({item:e,value:["",void 0].includes(y)?void 0:Number(y)}))},[e,o,p]),v=(0,_1.useCallback)(y=>{o(p({item:e,value:y}))},[e,o,p]);if(i===qi){let y=["",""];return Array.isArray(m)&&m.length===2&&m.every(k=>typeof k=="number"||k==="")&&(y=m),(0,Rh.jsx)(PXe,{value:y,onChange:v,hideLabelFromVision:r,step:l})}return(0,Rh.jsx)(BXe,{required:!!h.required,markWhenOptional:n,customValidity:lo(h,s),label:u,help:d,value:m,onChange:b,hideLabelFromVision:r,step:l,min:h.min?h.min.constraint:void 0,max:h.max?h.max.constraint:void 0,disabled:g})}var GTe=c(E(),1);function WTe(e){return(0,GTe.jsx)(ZV,{...e})}var $Te=c(E(),1);function KTe(e){return(0,$Te.jsx)(ZV,{...e})}var XV=c(U(),1),YTe=c(F(),1);var gK=c(E(),1),{ValidatedRadioControl:IXe}=ao(XV.privateApis);function qTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:u,isValid:d}=t,f=t.isDisabled({item:e,field:t}),{elements:p,isLoading:h}=Is({elements:t.elements,getElements:t.getElements}),m=l({item:e}),g=(0,YTe.useCallback)(b=>o(u({item:e,value:b})),[e,o,u]);return h?(0,gK.jsx)(XV.Spinner,{}):(0,gK.jsx)(IXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:lo(d,i),label:s,help:a,onChange:g,options:p,selected:m,hideLabelFromVision:r,disabled:f})}var bK=c(F(),1);var ZTe=c(E(),1);function XTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{prefix:a,suffix:l}=i||{};return(0,ZTe.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,prefix:a?(0,bK.createElement)(a):void 0,suffix:l?(0,bK.createElement)(l):void 0})}var QTe=c(U(),1),JTe=c(F(),1);var eRe=c(E(),1),{ValidatedToggleControl:OXe}=ao(QTe.privateApis);function tRe({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:u,isValid:d}=e,f=e.isDisabled({item:o,field:e}),p=(0,JTe.useCallback)(()=>{t(u({item:o,value:!l({item:o})}))},[t,u,o,l]);return(0,eRe.jsx)(OXe,{required:!!d.required,markWhenOptional:n,customValidity:lo(d,i),hidden:r,label:s,help:a,checked:l({item:o}),onChange:p,disabled:f})}var oRe=c(U(),1),rRe=c(F(),1);var nRe=c(E(),1),{ValidatedTextareaControl:AXe}=ao(oRe.privateApis);function iRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{rows:a=4}=i||{},l=t.isDisabled({item:e,field:t}),{label:u,placeholder:d,description:f,setValue:p,isValid:h}=t,m=t.getValue({item:e}),g=(0,rRe.useCallback)(b=>o(p({item:e,value:b})),[e,o,p]);return(0,nRe.jsx)(AXe,{required:!!h.required,markWhenOptional:n,customValidity:lo(h,s),label:u,placeholder:d,value:m??"",help:f,onChange:g,rows:a,disabled:l,minLength:h.minLength?h.minLength.constraint:void 0,maxLength:h.maxLength?h.maxLength.constraint:void 0,__next40pxDefaultSize:!0,hideLabelFromVision:r})}var dRe=c(F(),1);var ix=c(U(),1),Ph=c(fe(),1),ha=c(F(),1),JV=c($o(),1);var LXe=[];function sRe({allowedFormats:e,disableFormats:t}){return t?LXe:e}var QV=c($o(),1),aRe=c(E(),1),lRe=c(ue(),1),NXe={};function MXe({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a}=n;if(!a)return null;let l=(0,QV.getActiveFormat)(o,s),u=l!==void 0,d=(0,QV.getActiveObject)(o),f=d!==void 0&&d.type===s;return(0,aRe.jsx)(a,{isActive:u,isVisible:i,activeAttributes:u?l.attributes||{}:{},isObjectActive:f,activeObjectAttributes:f?d.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:NXe},s)}function cRe({formatTypes:e,...t}){return e.map(o=>(0,lRe.createElement)(MXe,{settings:o,...t,key:o.name}))}var Bh=c(E(),1),{ValidatedContentEditableControl:DXe,withIgnoreIMEEvents:VXe}=ao(ix.privateApis),{useRichText:FXe,KeyboardShortcutContext:zXe,InputEventContext:jXe,shortcutsListener:HXe,inputEventsListener:UXe}=ao(JV.privateApis),GXe=[];function uRe({label:e,value:t,onChange:o,placeholder:r,id:n,clientId:i,className:s,hideLabelFromVision:a,help:l,disabled:u,required:d,markWhenOptional:f,customValidity:p,allowedFormats:h,disableFormats:m,withoutInteractiveFormatting:g,preserveWhiteSpace:b,disableLineBreaks:v,focusOnMount:y,completers:k=GXe}){let[S,_]=(0,ha.useState)({start:void 0,end:void 0}),[x,w]=(0,ha.useState)(!1),T=(0,ha.useRef)(void 0),R=(0,ha.useRef)(new Set),B=(0,ha.useRef)(new Set),I=(0,Ph.__experimentalUseFocusOutside)(()=>w(!1)),O=sRe({allowedFormats:h,disableFormats:m}),{value:P,onChange:A,ref:M,formatTypes:z,getValue:V}=FXe({value:t,onChange:o,selectionStart:S.start,selectionEnd:S.end,onSelectionChange:(K,Y)=>_({start:K,end:Y}),__unstableIsSelected:x,preserveWhiteSpace:!!b,placeholder:r,__unstableDisableFormats:m,allowedFormats:O,withoutInteractiveFormatting:g,__unstableFormatTypeHandlerContext:(0,ha.useMemo)(()=>({richTextIdentifier:n,blockClientId:i}),[n,i])});function L(){T.current?.focus()}let D=(0,ha.useRef)({keyboardShortcuts:B,inputEvents:R}),N=(0,ha.useRef)({formatTypes:z,getValue:V,onChange:A});(0,ha.useInsertionEffect)(()=>{N.current={formatTypes:z,getValue:V,onChange:A}});let j=(0,Ph.useRefEffect)(K=>{if(u)return;let Y=VXe(Z=>{if(Z.key!=="Enter"||Z.defaultPrevented||Z.metaKey||Z.ctrlKey||(Z.preventDefault(),v))return;let{getValue:oe,onChange:ie}=N.current,q=oe();ie((0,JV.insert)(q,`
`,q.start??q.text.length,q.end??q.text.length))});return K.addEventListener("keydown",Y),()=>K.removeEventListener("keydown",Y)},[v,u]),X=(0,Ph.useRefEffect)(K=>{if(!x)return;let Y=HXe(D)(K),Z=UXe(D)(K);function oe(ie){if(ie.inputType!=="insertText"&&ie.type!=="compositionend")return;let{formatTypes:q,getValue:re,onChange:ae}=N.current,ye=re(),xe=q.reduce((he,{__unstableInputRule:ge})=>ge?ge(he):he,ye);xe!==ye&&ae({...xe,activeFormats:ye.activeFormats})}return K.addEventListener("input",oe),K.addEventListener("compositionend",oe),()=>{Y(),Z(),K.removeEventListener("input",oe),K.removeEventListener("compositionend",oe)}},[x]),{ref:J,...te}=(0,ix.__unstableUseAutocompleteProps)({completers:k,record:P,onChange:A,onReplace:()=>{}}),ee=(0,Ph.useRefEffect)(K=>{y&&!u&&K.focus()},[y,u]),W=(0,Ph.useMergeRefs)([M,T,X,j,ee,J]);return(0,Bh.jsx)("div",{...I,onFocus:K=>{w(!0),I.onFocus(K)},children:(0,Bh.jsxs)(ix.SlotFillProvider,{children:[(0,Bh.jsx)(DXe,{label:e,id:n,className:$("dataviews-controls__richtext",s),placeholder:r,hideLabelFromVision:a,help:l,disabled:u,required:d,markWhenOptional:f,customValidity:p,value:P.text,"aria-multiline":!v,...te,ref:W}),x&&!u&&(0,Bh.jsx)(zXe.Provider,{value:B,children:(0,Bh.jsx)(jXe.Provider,{value:R,children:(0,Bh.jsx)(cRe,{value:P,onChange:A,onFocus:L,formatTypes:z,forwardedRef:T,isVisible:!0})})})]})})}var fRe=c(E(),1);function pRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{className:a,clientId:l,allowedFormats:u,disableFormats:d,withoutInteractiveFormatting:f,preserveWhiteSpace:p,disableLineBreaks:h}=i||{},m=t.isDisabled({item:e,field:t}),{label:g,placeholder:b,description:v,id:y,setValue:k,isValid:S}=t,_=t.getValue({item:e})??"",x=(0,dRe.useCallback)(w=>o(k({item:e,value:w})),[e,o,k]);return(0,fRe.jsx)(uRe,{label:g,value:_,onChange:x,placeholder:b,id:y,hideLabelFromVision:r,help:v,disabled:m,required:!!S.required,markWhenOptional:n,customValidity:lo(S,s),className:a,clientId:l,allowedFormats:u,disableFormats:d,withoutInteractiveFormatting:f,preserveWhiteSpace:p,disableLineBreaks:h})}var sx=c(U(),1),mRe=c(F(),1);var e5=c(E(),1),{ValidatedToggleGroupControl:WXe}=ao(sx.privateApis);function hRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,isValid:l}=t,u=t.isDisabled({item:e,field:t}),d=s({item:e}),f=(0,mRe.useCallback)(g=>o(a({item:e,value:g})),[e,o,a]),{elements:p,isLoading:h}=Is({elements:t.elements,getElements:t.getElements});if(h)return(0,e5.jsx)(sx.Spinner,{});if(p.length===0)return null;let m=p.find(g=>g.value===d);return(0,e5.jsx)(WXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:lo(l,i),isBlock:!0,label:t.label,help:m?.description||t.description,onChange:f,value:d,hideLabelFromVision:r,children:p.map(g=>(0,e5.jsx)(sx.__experimentalToggleGroupControlOption,{label:g.label,value:g.value,disabled:u},g.value))})}var t5=c(U(),1),o5=c(F(),1);var x1=c(E(),1),{ValidatedFormTokenField:$Xe}=ao(t5.privateApis);function gRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,getValue:u,setValue:d,isValid:f}=t,p=u({item:e}),h=t.isDisabled({item:e,field:t}),{elements:m,isLoading:g}=Is({elements:t.elements,getElements:t.getElements}),b=(0,o5.useMemo)(()=>Array.isArray(p)?p.map(y=>m?.find(S=>S.value===y)||{value:y,label:y}):[],[p,m]),v=(0,o5.useCallback)(y=>{let k=y.map(S=>typeof S=="object"&&"value"in S?S.value:S);o(d({item:e,value:k}))},[o,d,e]);return g?(0,x1.jsx)(t5.Spinner,{}):(0,x1.jsx)($Xe,{required:!!f?.required,markWhenOptional:n,customValidity:lo(f,i),label:r?void 0:s,value:b,onChange:v,placeholder:a,suggestions:m?.map(y=>y.value),disabled:h,__experimentalValidateInput:y=>t.isValid?.elements&&m?m.some(k=>k.value===y||k.label===y):!0,__experimentalExpandOnFocus:m&&m.length>0,help:l??(t.isValid?.elements?"":void 0),displayTransform:y=>typeof y=="object"&&"label"in y?y.label:typeof y=="string"&&m&&m.find(S=>S.value===y)?.label||y,__experimentalRenderItem:({item:y})=>{if(typeof y=="string"&&m){let k=m.find(S=>S.value===y);return(0,x1.jsx)("span",{children:k?.label||y})}return(0,x1.jsx)("span",{children:y})}})}var Os=c(U(),1),yK=c(F(),1),bRe=c(G(),1);var Lf=c(E(),1),{ValidatedInputControl:KXe}=ao(Os.privateApis),YXe=({color:e,onColorChange:t,disabled:o})=>{let r=e&&Ao(e).isValid()?e:"#ffffff";return(0,Lf.jsx)(Os.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:n})=>(0,Lf.jsx)(Os.Button,{onClick:n,"aria-label":(0,bRe.__)("Open color picker"),size:"small",disabled:o,accessibleWhenDisabled:!0,icon:()=>(0,Lf.jsx)(Os.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,Lf.jsx)(Os.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Lf.jsx)(Os.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function yRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,setValue:u,isValid:d}=t,f=t.isDisabled({item:e,field:t}),p=t.getValue({item:e})||"",h=(0,yK.useCallback)(g=>{o(u({item:e,value:g}))},[e,o,u]),m=(0,yK.useCallback)(g=>{o(u({item:e,value:g||""}))},[e,o,u]);return(0,Lf.jsx)(KXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:lo(d,i),label:s,placeholder:a,value:p,help:l,onChange:m,hideLabelFromVision:r,type:"text",disabled:f,prefix:(0,Lf.jsx)(Os.__experimentalInputControlPrefixWrapper,{variant:"control",children:(0,Lf.jsx)(YXe,{color:p,onColorChange:h,disabled:f})})})}var n5=c(U(),1),i5=c(F(),1),vK=c(G(),1);var r5=c(E(),1);function vRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let[s,a]=(0,i5.useState)(!1),l=t.isDisabled({item:e,field:t}),u=(0,i5.useCallback)(()=>{a(d=>!d)},[]);return(0,r5.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:s?"text":"password",suffix:(0,r5.jsx)(n5.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,r5.jsx)(n5.Button,{icon:s?Ml:ug,onClick:u,size:"small",label:s?(0,vK.__)("Hide password"):(0,vK.__)("Show password"),disabled:l,accessibleWhenDisabled:!0})})})}function s5(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var kRe=c(E(),1),SRe={adaptiveSelect:MTe,array:gRe,checkbox:TTe,color:yRe,combobox:DV,datetime:ITe,date:LTe,email:zTe,telephone:jTe,url:HTe,integer:WTe,number:KTe,password:vRe,radio:qTe,select:HV,text:XTe,toggle:tRe,textarea:iRe,richtext:pRe,toggleGroup:hRe};function qXe(e){return e&&typeof e=="object"&&typeof e.control=="string"}function ZXe(e){let{control:t,...o}=e,r=a5(t);return r===null?null:function(i){return(0,kRe.jsx)(r,{...i,config:o})}}function _Re(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?a5(e.Edit):qXe(e.Edit)?ZXe(e.Edit):s5(e)&&e.type!=="array"?a5("adaptiveSelect"):t===null?null:a5(t)}function a5(e){return Object.keys(SRe).includes(e)?SRe[e]:null}function XXe(e,t,o){if(e.filterBy===!1)return!1;let r=e.filterBy?.operators?.filter(n=>o.includes(n))??t;return r.length===0?!1:{isPrimary:!!e.filterBy?.isPrimary,operators:r}}var xRe=XXe;var QXe=e=>({item:t})=>{let o=e.split("."),r=t;for(let n of o)r.hasOwnProperty(n)?r=r[n]:r=void 0;return r},wRe=QXe;var JXe=e=>({value:t})=>{let o=e.split("."),r={},n=r;for(let i of o.slice(0,-1))n[i]={},n=n[i];return n[o.at(-1)]=t,r},CRe=JXe;var TRe=c(G(),1);function l5({item:e,field:t}){let{elements:o,isLoading:r}=Is({elements:t.elements,getElements:t.getElements}),n=t.getValue({item:e});return r||o.length===0?n:o?.find(i=>i.value===n)?.label||t.getValue({item:e})}var ERe=c(E(),1);function Tr({item:e,field:t}){return t.hasElements?(0,ERe.jsx)(l5,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var Ku=(e,t,o)=>o==="asc"?e.localeCompare(t):t.localeCompare(e);function Rr(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)}function Yu(e,t){if(typeof t.isValid.minLength?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:String(o).length>=t.isValid.minLength.constraint}function qu(e,t){if(typeof t.isValid.maxLength?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:String(o).length<=t.isValid.maxLength.constraint}function Zu(e,t){if(t.isValid.pattern?.constraint===void 0)return!0;try{let o=new RegExp(t.isValid.pattern.constraint),r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:o.test(String(r))}catch{return!1}}function Io(e,t){let r=(t.elements??[]).map(i=>i.value);if(r.length===0)return!0;let n=t.getValue({item:e});return[].concat(n).every(i=>r.includes(i))}function eQe({item:e,field:t}){return t.getValue({item:e})}var Qi=eQe;var tQe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function oQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!tQe.test(o)?(0,TRe.__)("Value must be a valid email address."):null}var RRe={type:"email",render:Tr,Edit:"email",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Qo,Jo],validOperators:[fr,pr,Hu,Uu,Gu,Qo,Jo,vi,Si],format:{},getValueFormatted:Qi,validate:{required:Rr,pattern:Zu,minLength:Yu,maxLength:qu,elements:Io,custom:oQe}};var BRe=c(G(),1);var ax=(e,t,o)=>o==="asc"?e-t:t-e;function c5(e,t){if(typeof t.isValid.min?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:Number(o)>=t.isValid.min.constraint}function u5(e,t){if(typeof t.isValid.max?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:Number(o)<=t.isValid.max.constraint}var PRe={separatorThousand:","};function rQe({item:e,field:t}){let o=t.getValue({item:e});if(o==null)return"";if(o=Number(o),!Number.isFinite(o))return String(o);let r;t.type!=="integer"?r=PRe:r=t.format;let{separatorThousand:n}=r,i=Math.trunc(o);return n?String(i).replace(/\B(?=(\d{3})+(?!\d))/g,n):String(i)}function nQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Number.isInteger(o)?(0,BRe.__)("Value must be an integer."):null}var IRe={type:"integer",render:Tr,Edit:"integer",sort:ax,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[fr,pr,hh,gh,bh,yh,qi],validOperators:[fr,pr,hh,gh,bh,yh,qi,Qo,Jo,vi,Si],format:PRe,getValueFormatted:rQe,validate:{required:Rr,min:c5,max:u5,elements:Io,custom:nQe}};var ORe=c(G(),1);var ARe={separatorThousand:",",separatorDecimal:".",decimals:2};function iQe({item:e,field:t}){let o=t.getValue({item:e});if(o==null)return"";if(o=Number(o),!Number.isFinite(o))return String(o);let r;t.type!=="number"?r=ARe:r=t.format;let{separatorThousand:n,separatorDecimal:i,decimals:s}=r,a=o.toFixed(s),[l,u]=a.split("."),d=n?l.replace(/\B(?=(\d{3})+(?!\d))/g,n):l;return s===0?d:d+i+u}function sQe(e){return e===""||e===void 0||e===null}function aQe(e,t){let o=t.getValue({item:e});return!sQe(o)&&!Number.isFinite(o)?(0,ORe.__)("Value must be a number."):null}var LRe={type:"number",render:Tr,Edit:"number",sort:ax,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[fr,pr,hh,gh,bh,yh,qi],validOperators:[fr,pr,hh,gh,bh,yh,qi,Qo,Jo,vi,Si],format:ARe,getValueFormatted:iQe,validate:{required:Rr,min:c5,max:u5,elements:Io,custom:aQe}};var NRe={type:"text",render:Tr,Edit:"text",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Qo,Jo],validOperators:[fr,pr,Hu,Uu,Gu,Qo,Jo,vi,Si],format:{},getValueFormatted:Qi,validate:{required:Rr,pattern:Zu,minLength:Yu,maxLength:qu,elements:Io}};var Ry=c(Tu(),1);var DRe=c(Tu(),1);function MRe(e){if(!e||!If(new Date(e)))return null;let t=(0,DRe.getDate)(e);return t&&If(t)?t:null}function VRe(e,t,o){let r=t.isValid[o]?.constraint;if(typeof r!="string")return!1;let n=t.getValue({item:e}),i=Array.isArray(n)?n[o==="min"?0:n.length-1]:n;if(i==null||i==="")return!0;let s=MRe(r),a=MRe(String(i));return!!s&&!!a&&(o==="min"?a.getTime()>=s.getTime():a.getTime()<=s.getTime())}function d5(e,t){return VRe(e,t,"min")}function f5(e,t){return VRe(e,t,"max")}var FRe={datetime:(0,Ry.getSettings)().formats.datetime,weekStartsOn:(0,Ry.getSettings)().l10n.startOfWeek};function lQe({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="datetime"?r=FRe:r=t.format,(0,Ry.dateI18n)(r.datetime,(0,Ry.getDate)(o))}var cQe=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},zRe={type:"datetime",render:Tr,Edit:"datetime",sort:cQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[xh,wh,vh,Sh,kh,_h,Zi,Ps],validOperators:[xh,wh,vh,Sh,kh,_h,Zi,Ps],format:FRe,getValueFormatted:lQe,validate:{required:Rr,elements:Io,min:d5,max:f5}};var By=c(Tu(),1);var jRe={date:(0,By.getSettings)().formats.date,weekStartsOn:(0,By.getSettings)().l10n.startOfWeek};function uQe({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="date"?r=jRe:r=t.format,(0,By.dateI18n)(r.date,(0,By.getDate)(o))}var dQe=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},HRe={type:"date",render:Tr,Edit:"date",sort:dQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[xh,wh,vh,Sh,kh,_h,Zi,Ps,qi],validOperators:[xh,wh,vh,Sh,kh,_h,Zi,Ps,qi],format:jRe,getValueFormatted:uQe,validate:{required:Rr,elements:Io,min:d5,max:f5}};var p5=c(G(),1);function URe(e,t){return t.getValue({item:e})===!0}function fQe({item:e,field:t}){let o=t.getValue({item:e});return o===!0?(0,p5.__)("True"):o===!1?(0,p5.__)("False"):""}function pQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&![!0,!1].includes(o)?(0,p5.__)("Value must be true, false, or undefined"):null}var mQe=(e,t,o)=>{let r=!!e;return r===!!t?0:o==="asc"?r?1:-1:r?-1:1},GRe={type:"boolean",render:Tr,Edit:"checkbox",sort:mQe,validate:{required:URe,elements:Io,custom:pQe},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[fr,pr],validOperators:[fr,pr],format:{},getValueFormatted:fQe};var WRe={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Qi,validate:{}};var SK=c(G(),1);function $Re(e,t){let o=t.getValue({item:e});return Array.isArray(o)&&o.length>0&&o.every(r=>![void 0,"",null].includes(r))}function KRe({item:e,field:t}){let o=t.getValue({item:e});return(Array.isArray(o)?o:[]).join(", ")}function hQe({item:e,field:t}){return KRe({item:e,field:t})}function gQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Array.isArray(o)?(0,SK.__)("Value must be an array."):o.every(r=>typeof r=="string")?null:(0,SK.__)("Every value must be a string.")}var bQe=(e,t,o)=>{let r=Array.isArray(e)?e:[],n=Array.isArray(t)?t:[];if(r.length!==n.length)return o==="asc"?r.length-n.length:n.length-r.length;let i=r.join(","),s=n.join(",");return o==="asc"?i.localeCompare(s):s.localeCompare(i)},YRe={type:"array",render:hQe,Edit:"array",sort:bQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Qo,Jo],validOperators:[Qo,Jo,vi,Si],format:{},getValueFormatted:KRe,validate:{required:$Re,elements:Io,custom:gQe}};function yQe({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var qRe={type:"password",render:Tr,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:yQe,validate:{required:Rr,pattern:Zu,minLength:Yu,maxLength:qu,elements:Io}};var ZRe={type:"telephone",render:Tr,Edit:"telephone",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Qo,Jo],validOperators:[fr,pr,Hu,Uu,Gu,Qo,Jo,vi,Si],format:{},getValueFormatted:Qi,validate:{required:Rr,pattern:Zu,minLength:Yu,maxLength:qu,elements:Io}};var XRe=c(G(),1);var lx=c(E(),1);function vQe({item:e,field:t}){if(t.hasElements)return(0,lx.jsx)(l5,{item:e,field:t});let o=Qi({item:e,field:t});return!o||!Ao(o).isValid()?o:(0,lx.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,lx.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:o,border:"1px solid #ddd",flexShrink:0}}),(0,lx.jsx)("span",{children:o})]})}function SQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Ao(o).isValid()?(0,XRe.__)("Value must be a valid color."):null}var kQe=(e,t,o)=>{let r=Ao(e),n=Ao(t);if(!r.isValid()&&!n.isValid())return 0;if(!r.isValid())return o==="asc"?1:-1;if(!n.isValid())return o==="asc"?-1:1;let i=r.toHsl(),s=n.toHsl();return i.h!==s.h?o==="asc"?i.h-s.h:s.h-i.h:i.s!==s.s?o==="asc"?i.s-s.s:s.s-i.s:o==="asc"?i.l-s.l:s.l-i.l},QRe={type:"color",render:vQe,Edit:"color",sort:kQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Qo,Jo],validOperators:[fr,pr,Qo,Jo],format:{},getValueFormatted:Qi,validate:{required:Rr,elements:Io,custom:SQe}};var JRe={type:"url",render:Tr,Edit:"url",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Qo,Jo],validOperators:[fr,pr,Hu,Uu,Gu,Qo,Jo,vi,Si],format:{},getValueFormatted:Qi,validate:{required:Rr,pattern:Zu,minLength:Yu,maxLength:qu,elements:Io}};var _Qe=(e,t,o)=>typeof e=="number"&&typeof t=="number"?ax(e,t,o):Ku(e,t,o),eBe={render:Tr,Edit:null,sort:_Qe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[fr,pr],validOperators:xTe(),format:{},getValueFormatted:Qi,validate:{required:Rr,elements:Io}};function xQe(e){return e==="integer"||e==="number"}function wQe(e){return e==="date"||e==="datetime"}function tBe(e,t,o){let r=t.validate[o];if(r&&(typeof e=="number"&&xQe(t.type)||typeof e=="string"&&wQe(t.type)))return{constraint:e,validate:r}}function oBe(e,t){let o=e.isValid,r;o?.required===!0&&t.validate.required!==void 0&&(r={constraint:!0,validate:t.validate.required});let n;(o?.elements===!0||o?.elements===void 0&&(e.elements||e.getElements))&&t.validate.elements!==void 0&&(n={constraint:!0,validate:t.validate.elements});let i=tBe(o?.min,t,"min"),s=tBe(o?.max,t,"max"),a=o?.minLength,l;typeof a=="number"&&t.validate.minLength!==void 0&&(l={constraint:a,validate:t.validate.minLength});let u=o?.maxLength,d;typeof u=="number"&&t.validate.maxLength!==void 0&&(d={constraint:u,validate:t.validate.maxLength});let f=o?.pattern,p;f!==void 0&&t.validate.pattern!==void 0&&(p={constraint:f,validate:t.validate.pattern});let h=o?.custom??t.validate.custom;return{required:r,elements:n,min:i,max:s,minLength:l,maxLength:d,pattern:p,custom:h}}function rBe(e){return e.validOperators.reduce((t,o)=>{let r=_Te(o);return r?.filter&&(t[o]=r.filter),t},{})}function CQe(e,t){return{...t.format,...e.format}}var nBe=CQe;function EQe(e){let t=[RRe,IRe,LRe,NRe,zRe,HRe,GRe,WRe,YRe,qRe,ZRe,QRe,JRe].find(o=>o?.type===e);return t||eBe}function w1(e){return e.map(t=>{let o=EQe(t.type),r=t.getValue||wRe(t.id),n=function(i,s,a){let l=r({item:i}),u=r({item:s});return t.sort?t.sort(l,u,a):o.sort(l,u,a)};return{id:t.id,label:t.label||t.id,header:t.header||t.label||t.id,description:t.description,placeholder:t.placeholder,getValue:r,setValue:t.setValue||CRe(t.id),elements:t.elements,getElements:t.getElements,hasElements:s5(t),isVisible:t.isVisible,isDisabled:typeof t.isDisabled=="function"?t.isDisabled:()=>!!t.isDisabled,enableHiding:t.enableHiding??!0,readOnly:t.readOnly??!1,type:o.type,render:t.render??o.render,Edit:_Re(t,o.Edit),sort:n,enableSorting:t.enableSorting??o.enableSorting,enableGlobalSearch:t.enableGlobalSearch??o.enableGlobalSearch,isValid:oBe(t,o),filterBy:xRe(t,o.defaultOperators,o.validOperators),filter:rBe(o),format:nBe(t,o),getValueFormatted:t.getValueFormatted??o.getValueFormatted}})}var EK=c(F(),1);var iBe=c(F(),1),sBe=c(E(),1),kK=(0,iBe.createContext)({fields:[]});kK.displayName="DataFormContext";function aBe({fields:e,children:t}){return(0,sBe.jsx)(kK.Provider,{value:{fields:e},children:t})}var Tl=kK;var x5=c(F(),1);var h5=c(F(),1),E1=c(U(),1);var C1=c(G(),1),xi={type:"regular",labelPosition:"top"},TQe=e=>typeof e=="string"?[{id:e,visibility:"when-collapsed"}]:e.map(t=>typeof t=="string"?{id:t,visibility:"when-collapsed"}:{id:t.id,visibility:t.visibility});function lBe(e){let t=xi;if(e?.type==="regular")t={type:"regular",labelPosition:e?.labelPosition??"top"};else if(e?.type==="panel"){let o=e.summary??[],r=Array.isArray(o)?o:[o],n=e?.openAs,i;typeof n=="object"&&n.type==="modal"?i={type:"modal",applyLabel:n.applyLabel?.trim()||(0,C1.__)("Apply"),cancelLabel:n.cancelLabel?.trim()||(0,C1.__)("Cancel")}:n==="modal"?i={type:"modal",applyLabel:(0,C1.__)("Apply"),cancelLabel:(0,C1.__)("Cancel")}:i={type:"dropdown"},t={type:"panel",labelPosition:e?.labelPosition??"side",openAs:i,summary:r,editVisibility:e?.editVisibility??"on-hover"}}else if(e?.type==="card")if(e.withHeader===!1)t={type:"card",withHeader:!1,isOpened:!0,summary:[],isCollapsible:!1};else{let o=e.summary??[];t={type:"card",withHeader:!0,isOpened:typeof e.isOpened=="boolean"?e.isOpened:!0,summary:TQe(o),isCollapsible:e.isCollapsible===void 0?!0:e.isCollapsible}}else e?.type==="row"?t={type:"row",alignment:e?.alignment??"center",styles:e?.styles??{}}:e?.type==="details"&&(t={type:"details",summary:e?.summary??""});return t}function cBe(e){let t=lBe(e?.layout),o=(e.fields??[]).map(r=>{if(typeof r=="string")return{id:r,layout:t};let n=r.layout?lBe(r.layout):t;return{id:r.id,layout:n,...!!r.label&&{label:r.label},...!!r.description&&{description:r.description},..."children"in r&&Array.isArray(r.children)&&{children:cBe({fields:r.children,layout:xi}).fields}}});return{layout:t,fields:o}}var m5=cBe;var er=c(E(),1);function RQe({title:e}){return(0,er.jsx)(Qe,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,er.jsx)(Qe,{direction:"row",align:"center",children:(0,er.jsx)(E1.__experimentalHeading,{level:2,size:13,children:e})})})}function uBe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,h5.useContext)(Tl),a=t.layout,l=(0,h5.useMemo)(()=>({layout:xi,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,er.jsxs)(er.Fragment,{children:[!r&&t.label&&(0,er.jsx)(RQe,{title:t.label}),(0,er.jsx)(As,{data:e,form:l,onChange:o,validity:i?.children})]});let u=a.labelPosition,d=s.find(f=>f.id===t.id);return!d||!d.Edit?null:u==="side"?(0,er.jsxs)(Qe,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,er.jsx)("div",{className:$("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${u}`),children:(0,er.jsx)(E1.BaseControl.VisualLabel,{children:d.label})}),(0,er.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:d.readOnly===!0?(0,er.jsx)(d.render,{item:e,field:d}):(0,er.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:!0,markWhenOptional:n,validity:i},d.id)})]}):(0,er.jsx)("div",{className:"dataforms-layouts-regular__field",children:d.readOnly===!0?(0,er.jsx)(er.Fragment,{children:(0,er.jsxs)(er.Fragment,{children:[!r&&u!=="none"&&(0,er.jsx)(E1.BaseControl.VisualLabel,{children:d.label}),(0,er.jsx)(d.render,{item:e,field:d})]})}):(0,er.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:u==="none"?!0:r,markWhenOptional:n,validity:i})})}var wK=c(hB(),1),Py=c(U(),1),Ic=c(F(),1),v5=c(fe(),1);var g5=c(U(),1),cx=c(G(),1);var gBe=c(fe(),1);var _K=c(F(),1);function BQe(e,t){return $("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var dBe=BQe;var fBe=c(U(),1);var Ih=c(E(),1);function PQe(e,t,o){return e?(0,Ih.jsxs)(xt.Root,{children:[(0,Ih.jsx)(xt.Trigger,{render:(0,Ih.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,Ih.jsx)(fBe.Icon,{icon:sg,size:16}),(0,Ih.jsxs)(bt,{children:[t,": "]}),o]})}),(0,Ih.jsx)(xt.Popup,{children:t})]}):o}var pBe=PQe;function mBe(e){if(!e)return;let t=Object.keys(e).filter(o=>o!=="children");for(let o of t){let r=e[o];if(r!==void 0&&r.type==="invalid")return r.message?r.message:o==="required"?"A required field is empty":"Unidentified validation error"}if(e.children)for(let o of Object.values(e.children)){let r=mBe(o);if(r)return r}}var hBe=mBe;var Ji=c(E(),1);function T1({data:e,field:t,fieldLabel:o,summaryFields:r,validity:n,touched:i,disabled:s,isOpen:a,onClick:l}){let{labelPosition:u,editVisibility:d}=t.layout,f=hBe(n),p=i&&!!f,h=dBe(u,p),m=pBe(p,f,o),g=$("dataforms-layouts-panel__field-trigger",`dataforms-layouts-panel__field-trigger--label-${u}`,{"is-disabled":s,"dataforms-layouts-panel__field-trigger--edit-always":d==="always"}),b=(0,gBe.useInstanceId)(T1,"dataforms-layouts-panel__field-control"),v=p?(0,cx.sprintf)((0,cx._x)("Edit %s (has errors)","field"),o||""):(0,cx.sprintf)((0,cx._x)("Edit %s","field"),o||""),y=(0,_K.useRef)(null),k=(0,_K.useRef)(null);return(0,Ji.jsxs)("div",{ref:y,className:g,onClick:s?void 0:x=>{!a&&x.detail<2&&!k.current?.contains(x.target)&&y.current?.ownerDocument.defaultView?.getSelection()?.toString()||l()},onKeyDown:s?void 0:x=>{x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),l())},children:[u!=="none"&&(0,Ji.jsx)("span",{className:h,children:m}),u==="none"&&p&&(0,Ji.jsxs)(xt.Root,{children:[(0,Ji.jsx)(xt.Trigger,{render:(0,Ji.jsx)("span",{className:"dataforms-layouts-panel__field-label-error-content",role:"img","aria-label":f,children:(0,Ji.jsx)(g5.Icon,{icon:sg,size:16})})}),(0,Ji.jsx)(xt.Popup,{children:f})]}),(0,Ji.jsx)("span",{id:`${b}`,className:"dataforms-layouts-panel__field-control",children:r.length>1?(0,Ji.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:r.map(x=>(0,Ji.jsx)("span",{style:{width:"100%"},children:(0,Ji.jsx)(x.render,{item:e,field:x})},x.id))}):r.map(x=>(0,Ji.jsx)(x.render,{item:e,field:x},x.id))}),!s&&(0,Ji.jsx)(g5.Button,{ref:k,className:"dataforms-layouts-panel__field-trigger-icon",label:v,icon:cg,size:"small","aria-expanded":a,"aria-haspopup":"dialog","aria-describedby":`${b}`})]})}var bBe=c(hB(),1),xK=c(Zh(),1),Xu=c(F(),1),es=c(G(),1);function yBe(e){return e?Object.values(e).every(t=>Object.entries(t).every(([o,r])=>o==="children"&&r&&typeof r=="object"?yBe(r):r.type!=="invalid"&&r.type!=="validating")):!0}function IQe(e,t){let o=m5(e);if(o.fields.length===0)return[];let r=new Map;t.forEach(s=>{r.set(s.id,s)});function n(s){if("children"in s&&Array.isArray(s.children)){let u=s.children.map(n).filter(f=>f!==null);if(u.length===0)return null;let d=r.get(s.id);if(d){let[f]=w1([d]);return{id:s.id,children:u,field:f}}return{id:s.id,children:u}}let a=r.get(s.id);if(!a)return null;let[l]=w1([a]);return{id:s.id,children:[],field:l}}return o.fields.map(n).filter(s=>s!==null)}function ux(e,t,o){if(e||(e={}),o.length===0)return e;let r={...e},n=r;for(let s=0;s<o.length-1;s++){let a=o[s];n[a]||(n[a]={}),n[a]={...n[a]},n=n[a]}let i=o[o.length-1];return n[i]={...n[i]||{},...t},r}function vBe(e,t,o){if(!e||t.length===0)return e;let r={...e},n=r;for(let a=0;a<t.length-1;a++){let l=t[a];if(!n[l])return e;n[l]={...n[l]},n=n[l]}let i=t[t.length-1];if(!n[i])return e;let s={...n[i]};if(delete s[o],Object.keys(s).length===0?delete n[i]:n[i]=s,Object.keys(r).length!==0)return r}function OQe(e,t,o){let{elementsCounterRef:r,setFormValidity:n,path:i,item:s}=o,a=(r.current[t.id]||0)+1;r.current[t.id]=a,e.then(l=>{if(a===r.current[t.id]){if(!Array.isArray(l)){n(u=>ux(u,{elements:{type:"invalid",message:(0,es.__)("Could not validate elements.")}},[...i,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(s,{...t.field,elements:l})?n(u=>ux(u,{elements:{type:"invalid",message:(0,es.__)("Value must be one of the elements.")}},[...i,t.id])):n(u=>vBe(u,[...i,t.id],"elements"))}}).catch(l=>{if(a!==r.current[t.id])return;let u;l instanceof Error?u=l.message:u=String(l)||(0,es.__)("Unknown error when running elements validation asynchronously."),n(d=>ux(d,{elements:{type:"invalid",message:u}},[...i,t.id]))})}function AQe(e,t,o){let{customCounterRef:r,setFormValidity:n,path:i}=o,s=(r.current[t.id]||0)+1;r.current[t.id]=s,e.then(a=>{if(s===r.current[t.id]){if(a===null){n(l=>vBe(l,[...i,t.id],"custom"));return}if(typeof a=="string"){n(l=>ux(l,{custom:{type:"invalid",message:a}},[...i,t.id]));return}n(l=>ux(l,{custom:{type:"invalid",message:(0,es.__)("Validation could not be processed.")}},[...i,t.id]))}}).catch(a=>{if(s!==r.current[t.id])return;let l;a instanceof Error?l=a.message:l=String(a)||(0,es.__)("Unknown error when running custom validation asynchronously."),n(u=>ux(u,{custom:{type:"invalid",message:l}},[...i,t.id]))})}function SBe(e,t,o){if(t.field?.isValid.required&&!t.field.isValid.required.validate(e,t.field))return{required:{type:"invalid"}};if(t.field?.isValid.pattern&&!t.field.isValid.pattern.validate(e,t.field))return{pattern:{type:"invalid",message:(0,es.__)("Value does not match the required pattern.")}};if(t.field?.isValid.min&&!t.field.isValid.min.validate(e,t.field))return{min:{type:"invalid",message:(0,es.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,es.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,es.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,es.__)("Value is too long.")}};if(t.field?.isValid.elements&&t.field.hasElements&&!t.field.getElements&&Array.isArray(t.field.elements)&&!t.field.isValid.elements.validate(e,t.field))return{elements:{type:"invalid",message:(0,es.__)("Value must be one of the elements.")}};let r;if(t.field&&t.field.isValid.custom)try{let i=t.field.getValue({item:e});r=t.field.isValid.custom((0,bBe.default)(e,t.field.setValue({item:e,value:i})),t.field)}catch(i){let s;return i instanceof Error?s=i.message:s=String(i)||(0,es.__)("Unknown error when running custom validation."),{custom:{type:"invalid",message:s}}}if(typeof r=="string")return{custom:{type:"invalid",message:r}};let n={};if(t.field&&t.field.isValid.elements&&t.field.hasElements&&typeof t.field.getElements=="function"&&(OQe(t.field.getElements(),t,o),n.elements={type:"validating",message:(0,es.__)("Validating\u2026")}),r instanceof Promise&&(AQe(r,t,o),n.custom={type:"validating",message:(0,es.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let i={};t.children.forEach(a=>{i[a.id]=SBe(e,a,{...o,path:[...o.path,t.id,"children"]})});let s={};return Object.entries(i).forEach(([a,l])=>{l!==void 0&&(s[a]=l)}),Object.keys(s).length===0?void 0:{children:s}}}function kBe(e,t){let o=e?.field?.getValue({item:t});if(e.children.length===0)return o;let r=e.children.map(n=>kBe(n,t));return r?{value:o,children:r}:o}function LQe(e,t,o){let[r,n]=(0,Xu.useState)(),i=(0,Xu.useRef)({}),s=(0,Xu.useRef)({}),a=(0,Xu.useRef)({}),l=(0,Xu.useCallback)(()=>{let u={customCounterRef:i,elementsCounterRef:s,setFormValidity:n,path:[],item:e},d=IQe(o,t);if(d.length===0){n(void 0);return}let f={},p=[];d.forEach(h=>{let m=kBe(h,e);if(a.current.hasOwnProperty(h.id)&&(0,xK.default)(a.current[h.id],m)){p.push(h.id);return}a.current[h.id]=m;let g=SBe(e,h,u);g!==void 0&&(f[h.id]=g)}),n(h=>{let m={...h,...f},g=[...p,...Object.keys(f)];return Object.keys(m).forEach(v=>{m&&!g.includes(v)&&delete m[v]}),Object.keys(m).length===0&&(m=void 0),(0,xK.default)(h,m)?h:m})},[e,t,o]);return(0,Xu.useEffect)(()=>{l()},[l]),{validity:r,isValid:yBe(r)}}var _Be=LQe;var xBe=c(F(),1);function Oh(e,t){(0,xBe.useEffect)(()=>{t&&e.current&&e.current.querySelectorAll("input, textarea, select").forEach(r=>{r.reportValidity()})},[t,e])}var wBe=c(F(),1);function NQe(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var b5=(e,t)=>Array.isArray(e)&&e.length>0?NQe(e).map(r=>t.find(n=>n.id===r)).filter(r=>r!==void 0):[];var MQe=(e,t)=>{let o=t.find(r=>r.id===e.id);return o||t.find(r=>{if(e.children){let n=e.children.filter(i=>!i.children);return n.length===0?!1:r.id===n[0].id}return r.id===e.id})};function DQe(e){let{fields:t}=(0,wBe.useContext)(Tl),o=e.layout,r=b5(o.summary,t),n=MQe(e,t),i=e.children?e.label:n?.label;return r.length===0?{summaryFields:n?[n]:[],fieldDefinition:n,fieldLabel:i}:{summaryFields:r,fieldDefinition:n,fieldLabel:i}}var y5=DQe;var ts=c(E(),1);function VQe({data:e,field:t,onChange:o,fieldLabel:r,onClose:n,touched:i}){let{openAs:s}=t.layout,{applyLabel:a,cancelLabel:l}=s,{fields:u}=(0,Ic.useContext)(Tl),[d,f]=(0,Ic.useState)({}),p=(0,Ic.useMemo)(()=>(0,wK.default)(e,d,{arrayMerge:(_,x)=>x}),[e,d]),h=(0,Ic.useMemo)(()=>({layout:xi,fields:t.children?t.children:[{id:t.id,layout:xi}]}),[t]),m=u.map(_=>({..._,Edit:_.Edit===null?void 0:_.Edit,isValid:{required:_.isValid.required?.constraint,elements:_.isValid.elements?.constraint,min:_.isValid.min?.constraint,max:_.isValid.max?.constraint,pattern:_.isValid.pattern?.constraint,minLength:_.isValid.minLength?.constraint,maxLength:_.isValid.maxLength?.constraint}})),{validity:g}=_Be(p,m,h),b=()=>{o(d),n()},v=_=>{f(x=>(0,wK.default)(x,_,{arrayMerge:(w,T)=>T}))},y=(0,v5.useFocusOnMount)("firstInputElement"),k=(0,Ic.useRef)(null),S=(0,v5.useMergeRefs)([y,k]);return Oh(k,i),(0,ts.jsxs)(Py.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:r,size:"medium",children:[(0,ts.jsx)("div",{ref:S,children:(0,ts.jsx)(As,{data:p,form:h,onChange:v,validity:g,children:(_,x,w,T)=>(0,ts.jsx)(_,{data:p,field:x,onChange:v,hideLabelFromVision:h.fields.length<2,markWhenOptional:T,validity:w},x.id)})}),(0,ts.jsxs)(Qe,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,ts.jsx)(Py.__experimentalSpacer,{style:{flex:1}}),(0,ts.jsx)(Py.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:l}),(0,ts.jsx)(Py.Button,{variant:"primary",onClick:b,__next40pxDefaultSize:!0,children:a})]})]})}function FQe({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Ic.useState)(!1),[s,a]=(0,Ic.useState)(!1),{fieldDefinition:l,fieldLabel:u,summaryFields:d}=y5(t);if(!l)return null;let f=()=>{a(!1),i(!0)};return(0,ts.jsxs)(ts.Fragment,{children:[(0,ts.jsx)(T1,{data:e,field:t,fieldLabel:u,summaryFields:d,validity:r,touched:n,disabled:l.readOnly===!0,onClick:()=>a(!0),isOpen:s}),s&&(0,ts.jsx)(VQe,{data:e,field:t,onChange:o,fieldLabel:u??"",onClose:f,touched:n})]})}var CBe=FQe;var Ah=c(U(),1),EBe=c(G(),1),Nf=c(F(),1);var TBe=c(fe(),1);var wi=c(E(),1);function zQe({title:e,onClose:t}){return(0,wi.jsx)(Qe,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,wi.jsxs)(Qe,{direction:"row",gap:"sm",align:"center",children:[e&&(0,wi.jsx)(Ah.__experimentalHeading,{level:2,size:13,children:e}),(0,wi.jsx)(Ah.__experimentalSpacer,{style:{flex:1}}),t&&(0,wi.jsx)(Ah.Button,{label:(0,EBe.__)("Close"),icon:eg,onClick:t,size:"small"})]})})}function jQe({touched:e,children:t}){let o=(0,Nf.useRef)(null);return Oh(o,e),(0,wi.jsx)("div",{ref:o,children:t})}function HQe({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Nf.useState)(!1),[s,a]=(0,Nf.useState)(null),l=(0,Nf.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]),[u,d]=(0,TBe.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,Nf.useMemo)(()=>({layout:xi,fields:t.children?t.children:[{id:t.id,layout:xi}]}),[t]),p=(0,Nf.useMemo)(()=>{if(r!==void 0)return t.children?r?.children:{[t.id]:r}},[r,t]),{fieldDefinition:h,fieldLabel:m,summaryFields:g}=y5(t);return h?(0,wi.jsx)("div",{ref:a,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,wi.jsx)(Ah.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:l,focusOnMount:!1,onToggle:b=>{b||i(!0)},renderToggle:({isOpen:b,onToggle:v})=>(0,wi.jsx)(T1,{data:e,field:t,fieldLabel:m,summaryFields:g,validity:r,touched:n,disabled:h.readOnly===!0,isOpen:b,onClick:v}),renderContent:({onClose:b})=>(0,wi.jsx)(jQe,{touched:n,children:(0,wi.jsxs)("div",{ref:u,...d,children:[(0,wi.jsx)(zQe,{title:m,onClose:b}),(0,wi.jsx)(As,{data:e,form:f,onChange:o,validity:p,children:(v,y,k,S)=>(0,wi.jsx)(v,{data:e,field:y,onChange:o,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:S,validity:k},y.id)})]})})})}):null}var RBe=HQe;var CK=c(E(),1);function BBe({data:e,field:t,onChange:o,validity:r}){return t.layout.openAs.type==="modal"?(0,CK.jsx)(CBe,{data:e,field:t,onChange:o,validity:r}):(0,CK.jsx)(RBe,{data:e,field:t,onChange:o,validity:r})}var Ls=c(F(),1);var S5=c(G(),1),PBe=c(E(),1);function IBe(e){if(!e)return 0;let t=0,o=Object.keys(e).filter(r=>r!=="children");for(let r of o)e[r]?.type==="invalid"&&t++;if(e.children)for(let r of Object.values(e.children))t+=IBe(r);return t}function k5({validity:e}){let t=IBe(e);return t===0?null:(0,PBe.jsx)(FH,{intent:"high",children:(0,S5.sprintf)((0,S5._n)("%d field needs attention","%d fields need attention",t),t)})}var Br=c(E(),1);function UQe(e,t,o){if(!t||Array.isArray(t)&&t.length===0)return!1;let n=(Array.isArray(t)?t:[t]).find(i=>typeof i=="string"?i===e.id:typeof i=="object"&&"id"in i?i.id===e.id:!1);return n?typeof n=="string"?!0:typeof n=="object"&&"visibility"in n?n.visibility==="always"||n.visibility==="when-collapsed"&&!o:!0:!1}function GQe({data:e,fields:t,label:o,layout:r,isOpen:n,touched:i,validity:s}){let l=b5(r.summary,t).filter(f=>UQe(f,r.summary,n)),u=i&&r.isCollapsible,d=l.length>0&&r.withHeader;return(0,Br.jsxs)(Qe,{align:"center",justify:"space-between",className:"dataforms-layouts-card__field-header-content",children:[(0,Br.jsx)(au.Title,{children:o}),(u||d)&&(0,Br.jsxs)(rb.HeaderDescription,{className:"dataforms-layouts-card__field-header-content-description",children:[u&&(0,Br.jsx)(k5,{validity:s}),d&&(0,Br.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:l.map(f=>(0,Br.jsx)(f.render,{item:e,field:f},f.id))})]})]})}function WQe({data:e,field:t,form:o,onChange:r,hideLabelFromVision:n,markWhenOptional:i,validity:s,withHeader:a}){if(t.children)return(0,Br.jsxs)(Br.Fragment,{children:[t.description&&(0,Br.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,Br.jsx)(As,{data:e,form:o,onChange:r,validity:s?.children})]});let l=Iy("regular")?.component;return l?(0,Br.jsx)(l,{data:e,field:t,onChange:r,hideLabelFromVision:n||a,markWhenOptional:i,validity:s}):null}function OBe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,Ls.useContext)(Tl),a=t.layout,l=(0,Ls.useRef)(null),u=(0,Ls.useMemo)(()=>({layout:xi,fields:t.children??[]}),[t]),{isOpened:d,isCollapsible:f}=a,[p,h]=(0,Ls.useState)(d),[m,g]=(0,Ls.useState)(!1);(0,Ls.useEffect)(()=>{h(d)},[d]);let b=(0,Ls.useCallback)(x=>{x||g(!0),h(x)},[]),v=(0,Ls.useCallback)(()=>{g(!0)},[]);Oh(l,(f?p:!0)&&m);let y=t.label,k;if(t.children)k=!!y&&a.withHeader;else{let x=s.find(w=>w.id===t.id);if(!x||!x.Edit)return null;y=x.label,k=!!y&&a.withHeader}let S=(0,Br.jsx)(WQe,{data:e,field:t,form:u,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,withHeader:k}),_=(0,Br.jsx)(GQe,{data:e,fields:s,label:y,layout:a,isOpen:f?!!p:!0,touched:m,validity:i});return k&&f?(0,Br.jsxs)(rb.Root,{className:"dataforms-layouts-card__field",open:p,onOpenChange:b,children:[(0,Br.jsx)(rb.Header,{children:_}),(0,Br.jsx)(rb.Content,{ref:l,onBlur:v,children:S})]}):(0,Br.jsxs)(au.Root,{className:"dataforms-layouts-card__field",children:[k&&(0,Br.jsx)(au.Header,{children:_}),(0,Br.jsx)(au.Content,{ref:l,onBlur:v,children:S})]})}var ABe=c(U(),1);var Ln=c(E(),1);function $Qe({title:e}){return(0,Ln.jsx)(Qe,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,Ln.jsx)(Qe,{direction:"row",align:"center",children:(0,Ln.jsx)(ABe.__experimentalHeading,{level:2,size:13,children:e})})})}var KQe=({children:e})=>(0,Ln.jsx)(Ln.Fragment,{children:e});function LBe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let s=t.layout;if(t.children){let l={layout:xi,fields:t.children};return(0,Ln.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!r&&t.label&&(0,Ln.jsx)($Qe,{title:t.label}),(0,Ln.jsx)(Qe,{direction:"row",align:s.alignment,gap:"lg",children:(0,Ln.jsx)(As,{data:e,form:l,onChange:o,validity:i?.children,as:KQe,children:(u,d,f)=>(0,Ln.jsx)("div",{className:"dataforms-layouts-row__field-control",style:s.styles[d.id],children:(0,Ln.jsx)(u,{data:e,field:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:f})},d.id)})})]})}let a=Iy("regular")?.component;return a?(0,Ln.jsx)(Ln.Fragment,{children:(0,Ln.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,Ln.jsx)(a,{data:e,field:t,onChange:o,markWhenOptional:n,validity:i})})}):null}var Ns=c(F(),1),NBe=c(G(),1);var Mf=c(E(),1);function MBe({data:e,field:t,onChange:o,validity:r}){let{fields:n}=(0,Ns.useContext)(Tl),i=(0,Ns.useRef)(null),s=(0,Ns.useRef)(null),[a,l]=(0,Ns.useState)(!1),[u,d]=(0,Ns.useState)(!1),f=(0,Ns.useMemo)(()=>({layout:xi,fields:t.children??[]}),[t]);(0,Ns.useEffect)(()=>{let b=i.current;if(!b)return;let v=()=>{let y=b.open;y||l(!0),d(y)};return b.addEventListener("toggle",v),()=>{b.removeEventListener("toggle",v)}},[]),Oh(s,u&&a);let p=(0,Ns.useCallback)(()=>{l(!0)},[]);if(!t.children)return null;let h=t.layout.summary??"",m=h?n.find(b=>b.id===h):void 0,g;return m&&m.render?g=(0,Mf.jsx)(m.render,{item:e,field:m}):g=t.label||(0,NBe.__)("More details"),(0,Mf.jsxs)("details",{ref:i,className:"dataforms-layouts-details__details",children:[(0,Mf.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,Mf.jsxs)(Qe,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[g,a&&(0,Mf.jsx)(k5,{validity:r})]})}),(0,Mf.jsx)("div",{ref:s,className:"dataforms-layouts-details__content",onBlur:p,children:(0,Mf.jsx)(As,{data:e,form:f,onChange:o,validity:r?.children})})]})}var Oy=c(E(),1),YQe=[{type:"regular",component:uBe,wrapper:({children:e})=>(0,Oy.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:BBe,wrapper:({children:e})=>(0,Oy.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:OBe,wrapper:({children:e})=>(0,Oy.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:LBe,wrapper:({children:e,layout:t})=>(0,Oy.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,Oy.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,Oy.jsx)(Qe,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:MBe}];function Iy(e){return YQe.find(t=>t.type===e)}var _5=c(E(),1),qQe=({children:e})=>(0,_5.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function As({data:e,form:t,onChange:o,validity:r,children:n,as:i}){let{fields:s}=(0,x5.useContext)(Tl),a=(0,x5.useMemo)(()=>{let d=s.filter(p=>!!p.isValid?.required).length,f=s.length-d;return d>f},[s]);function l(d){return s.find(f=>f.id===d.id)}let u=i??Iy(t.layout.type)?.wrapper??qQe;return(0,_5.jsx)(u,{layout:t.layout,children:t.fields.map(d=>{let f=Iy(d.layout.type)?.component;if(!f)return null;let p=d.children?void 0:l(d);return p&&p.isVisible&&!p.isVisible(e)?null:n?n(f,d,r?.[d.id],a):(0,_5.jsx)(f,{data:e,field:d,onChange:o,markWhenOptional:a,validity:r?.[d.id]},d.id)})})}var TK=c(E(),1);function R1({data:e,form:t,fields:o,onChange:r,validity:n}){let i=(0,EK.useMemo)(()=>m5(t),[t]),s=(0,EK.useMemo)(()=>w1(o),[o]);return t.fields?(0,TK.jsx)(aBe,{fields:s,children:(0,TK.jsx)(As,{data:e,form:i,onChange:r,validity:n})}):null}var Nh=c(F(),1),QBe=c(G(),1);var fx=c(U(),1);var RK=c(G(),1);var DBe=c(fe(),1);function dx({isControl:e}={isControl:!1}){return(0,DBe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:e?35:259}}}var w5=c(E(),1);function VBe({fields:e,visibleFields:t,onToggleField:o}){let{popoverProps:r}=dx();return!e||e.length===0?null:(0,w5.jsx)(fx.DropdownMenu,{icon:Fs,label:(0,RK.__)("Options"),popoverProps:r,toggleProps:{size:"small"},children:({onClose:n})=>(0,w5.jsx)(fx.MenuGroup,{label:(0,RK.__)("Show / Hide"),children:e.map(i=>{let s=t.includes(i.id);return(0,w5.jsx)(fx.MenuItem,{isSelected:s,onClick:()=>{o(i.id),n()},role:"menuitemcheckbox",icon:s?rs:null,children:i.label},i.id)})})})}var C5=c(U(),1),FBe=c(fe(),1),zBe=c(Q(),1),Df=c(F(),1),jBe=c($o(),1);var Oc=c(E(),1),{useRichText:ZQe,KeyboardShortcutContext:XQe,InputEventContext:QQe}=H(jBe.privateApis);function HBe({data:e,field:t,hideLabelFromVision:o,onChange:r,config:n={}}){let i=(0,zBe.useRegistry)(),s=t.getValue({item:e}),a=t.config||{},{clientId:l}=n,[u,d]=(0,Df.useState)({start:void 0,end:void 0}),[f,p]=(0,Df.useState)(!1),h=(0,Df.useRef)(),m=(0,Df.useRef)(new Set),g=(0,Df.useRef)(new Set),b=b_({allowedFormats:a?.allowedFormats,disableFormats:a?.disableFormats});function v(){h.current?.focus()}let{value:y,getValue:k,onChange:S,ref:_,formatTypes:x}=ZQe({value:s,onChange(R){r(t.setValue({item:e,value:R}))},selectionStart:u.start,selectionEnd:u.end,onSelectionChange:(R,B)=>d({start:R,end:B}),__unstableIsSelected:f,preserveWhiteSpace:!!a?.preserveWhiteSpace,placeholder:a?.placeholder,__unstableDisableFormats:a?.disableFormats,allowedFormats:b,withoutInteractiveFormatting:a?.withoutInteractiveFormatting,__unstableFormatTypeHandlerContext:(0,Df.useMemo)(()=>({richTextIdentifier:t.id,blockClientId:l}),[t.id,l])}),{baseControlProps:w,controlProps:T}=(0,C5.useBaseControlProps)({hideLabelFromVision:o??t.hideLabelFromVision,label:t.label});return(0,Oc.jsxs)(Oc.Fragment,{children:[f&&(0,Oc.jsx)(XQe.Provider,{value:g,children:(0,Oc.jsx)(QQe.Provider,{value:m,children:(0,Oc.jsx)("div",{children:(0,Oc.jsx)(HM,{value:y,onChange:S,onFocus:v,formatTypes:x,forwardedRef:h,isVisible:!1})})})}),(0,Oc.jsx)(C5.BaseControl,{...w,children:(0,Oc.jsx)("div",{className:"block-editor-content-only-controls__rich-text",role:"textbox","aria-multiline":!a?.disableLineBreaks,ref:(0,FBe.useMergeRefs)([_,FM({registry:i,getValue:k,onChange:S,formatTypes:x,selectionChange:d,isSelected:f,disableFormats:a?.disableFormats,value:y,tagName:"div",disableLineBreaks:a?.disableLineBreaks,keyboardShortcuts:g,inputEvents:m}),h]),onFocus:()=>p(!0),onBlur:()=>p(!1),contentEditable:!0,...T})})]})}var Lh=c(U(),1),UBe=c(Q(),1),GBe=c(Rt(),1),WBe=c(F(),1),Ay=c(G(),1);var mr=c(E(),1),JQe=e=>{window.requestAnimationFrame(()=>{let[t]=GBe.focus.tabbable.find(e?.current);t&&t.focus()})};function eJe({data:e,field:t,attachment:o,config:r}){let{allowedTypes:n=[],multiple:i=!1}=r||{};if(i)return"todo multiple";if(o?.media_type==="image"||o?.poster)return(0,mr.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,mr.jsx)("img",{alt:"",width:20,height:20,src:o.media_type==="image"?o.source_url:o.poster})});if(n.length===1){let a=t.getValue({item:e})?.url;if(n[0]==="image"&&a)return(0,mr.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,mr.jsx)("img",{alt:"",width:20,height:20,src:a})});let l;if(n[0]==="image"?l=Hx:n[0]==="video"?l=N6:n[0]==="audio"?l=GF:l=Xy,l)return(0,mr.jsx)(Lh.Icon,{icon:l,size:20})}return(0,mr.jsx)(Lh.Icon,{icon:Xy,size:20})}function $Be({data:e,field:t,onChange:o,config:r={}}){let{popoverProps:n}=dx({isControl:!0}),i=t.getValue({item:e}),{allowedTypes:s=[],multiple:a=!1,useFeaturedImage:l=!1}=r,u=i?.id,d=i?.url,f=(0,UBe.useSelect)(m=>{if(!u)return;let b=m(C).getSettings()[dT];if(b)return b(m,u)},[u]),p;if(s.length===1){let m=s[0];m==="image"?p=(0,Ay.__)("Image"):m==="video"?p=(0,Ay.__)("Video"):m==="application"?p=(0,Ay.__)("File"):p=(0,Ay.__)("Media")}else p=(0,Ay.__)("Media");let h=(0,WBe.useRef)();return(0,mr.jsx)(Xs,{children:(0,mr.jsxs)("div",{ref:h,className:"block-editor-content-only-controls",children:[(0,mr.jsx)(p_,{className:"block-editor-content-only-controls__media-replace-flow",allowedTypes:s,mediaId:u,mediaURL:d,multiple:a,popoverProps:n,onReset:()=>{o(t.setValue({item:e,value:{}}))},...l&&{useFeaturedImage:!!i?.featuredImage,onToggleFeaturedImage:()=>{o(t.setValue({item:e,value:{featuredImage:!i?.featuredImage}}))}},onSelect:m=>{if(m.id&&m.url){let g={...m,mediaType:m.media_type};l&&(g.featuredImage=!1),o(t.setValue({item:e,value:g}))}},renderToggle:m=>(0,mr.jsx)(Lh.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__media",...m,children:(0,mr.jsxs)(Lh.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"20px 1fr",className:"block-editor-content-only-controls__media-row",children:[d&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(eJe,{attachment:f,field:t,data:e,config:r}),(0,mr.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:f?.title?.raw&&f?.title?.raw!==""?f?.title?.raw:d})]}),!d&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("span",{className:"block-editor-content-only-controls__media-placeholder",style:{width:"20px",height:"20px"}}),(0,mr.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:p})]})]})})}),d&&(0,mr.jsx)(Lh.Button,{label:(0,Ay.__)("Reset"),className:"block-editor-content-only-controls__media-reset",size:"small",icon:dn,onClick:()=>{o(t.setValue({item:e,value:{}})),JQe(h)}})]})})}var Vf=c(U(),1),T5=c(F(),1),KBe=c(G(),1);var YBe=c(Vs(),1);var ei=c(E(),1),BK="noopener",qBe="_blank",E5="nofollow";function tJe({rel:e="",url:t="",opensInNewTab:o,nofollow:r}){let n,i=e;if(o)n=qBe,i=i?.includes(BK)?i:i+` ${BK}`;else{let s=new RegExp(`\\b${BK}\\s*`,"g");i=i?.replace(s,"").trim()}if(r)i=i?.includes(E5)?i:(i+` ${E5}`).trim();else{let s=new RegExp(`\\b${E5}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,YBe.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function ZBe({data:e,field:t,onChange:o}){let[r,n]=(0,T5.useState)(!1),{popoverProps:i}=dx({isControl:!0}),s=t.getValue({item:e}),a=s?.url,l=s?.rel||"",d=s?.linkTarget===qBe,f=l===E5,p=(0,T5.useMemo)(()=>({url:a,opensInNewTab:d,nofollow:f}),[a,d,f]);return(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(Vf.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__link",onClick:()=>{n(!0)},children:(0,ei.jsxs)(Vf.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"24px 1fr",className:"block-editor-content-only-controls__link-row",children:[a&&(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(Vf.Icon,{icon:is,size:24}),(0,ei.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:a})]}),!a&&(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(Vf.Icon,{icon:is,size:24,style:{opacity:.3}}),(0,ei.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:(0,KBe.__)("Link")})]})]})}),r&&(0,ei.jsx)(Vf.Popover,{onClose:()=>{n(!1)},...i??{},children:(0,ei.jsx)(eh,{value:p,onChange:h=>{let m=tJe({rel:l,...h});o(t.setValue({item:e,value:m}))},onRemove:()=>{o(t.setValue({item:e,value:{}}))}})})]})}var ti=c(E(),1),{fieldsKey:JBe,formKey:PK}=H(px.privateApis);function IK(e,t={}){return function(r){return(0,ti.jsx)(e,{...r,config:t})}}function oJe({clientId:e,blockType:t,setAttributes:o,isMultiBlock:r=!1}){let n=zn({clientId:e,context:"list-view"}),i=Mo(e),s=t?.[JBe],a=(0,Nh.useContext)(kn),l=(0,B5.useSelect)(v=>{let y=v(C).getBlockAttributes(e);if(!y?.metadata?.bindings)return y;let{__experimentalBlockBindingsSupportedAttributes:k}=v(C).getSettings(),S=k?.[t?.name],_=S?iT(y.metadata.bindings,S):y.metadata.bindings,{getBlockBindingsSource:x}=H(v(px.store));return Object.entries(_).reduce((w,[T,R])=>{if(T==="__default")return w;let B=x(R.source);if(!B)return w;let I=B.getValues({select:v,clientId:e,context:a,bindings:{[T]:R}});return{...w,...I}},y)},[a,e,t?.name]),{selectBlock:u,toggleBlockHighlight:d}=(0,B5.useDispatch)(C),f=(0,XBe.useDebounce)(d,50),p=(0,Nh.useMemo)(()=>r?{...t?.[PK],fields:[t?.[PK]?.fields?.[0]]}:t?.[PK],[t,r]),[h,m]=(0,Nh.useState)(p),g=(0,Nh.useMemo)(()=>s?.length?s.map(v=>{let y={...v};return typeof v.Edit=="string"&&v.Edit==="rich-text"?y.Edit=IK(HBe,{clientId:e}):typeof v.Edit=="string"&&v.Edit==="link"?y.Edit=IK(ZBe):typeof v.Edit=="object"&&v.Edit.control==="media"&&(y.Edit=IK($Be,{...v.Edit})),y}):[],[s,e]);if(!s?.length)return null;let b=v=>{m(y=>y.fields?.includes(v)?{...y,fields:y.fields.filter(k=>k!==v)}:{...y,fields:[...y.fields||[],v]})};return(0,ti.jsxs)("div",{className:"block-editor-block-fields__container",onMouseEnter:r?()=>f(e,!0):void 0,onMouseLeave:()=>r?f(e,!1):void 0,onFocus:r?()=>{u(e,null)}:void 0,children:[(0,ti.jsx)("div",{className:"block-editor-block-fields__header",children:(0,ti.jsxs)(R5.__experimentalHStack,{spacing:1,children:[r&&(0,ti.jsxs)(ti.Fragment,{children:[(0,ti.jsx)(Tt,{className:"block-editor-block-fields__header-icon",icon:i?.icon}),(0,ti.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,ti.jsx)(R5.__experimentalTruncate,{numberOfLines:1,children:n})}),(0,ti.jsx)(VBe,{fields:g,visibleFields:h.fields,onToggleField:b})]}),!r&&(0,ti.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,QBe.__)("Content")})]})}),(0,ti.jsx)(R1,{data:l,fields:g,form:h,onChange:o})]})}function rJe(e){return!!(window?.__experimentalContentOnlyInspectorFields&&(0,px.getBlockType)(e)?.[JBe])}function nJe(e){let{blockType:t,isSelectionWithinCurrentSection:o}=(0,Nh.useContext)(Dn);return(0,ti.jsx)(Tb,{group:"content",children:(0,ti.jsx)(oJe,{...e,blockType:t,isMultiBlock:o})})}var ePe={edit:nJe,hasSupport:rJe,attributeKeys:[],supportsPatternEditing:!0};var LK=c(bo(),1),tPe=c(U(),1),OK=c(G(),1),B1=c(ce(),1);var AK=c(E(),1);function iJe(e){return(0,B1.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function sJe({className:e,setAttributes:t}){return Cr()!=="default"?null:(0,AK.jsx)(Oe,{group:"advanced",children:(0,AK.jsx)(tPe.TextControl,{autoComplete:"off",label:(0,OK.__)("Additional CSS class(es)"),value:e||"",onChange:r=>{t({className:r!==""?r:void 0})},help:(0,OK.__)("Separate multiple classes with spaces.")})})}var NK={edit:sJe,addSaveProps:aJe,attributeKeys:["className"],hasSupport(e){return(0,B1.hasBlockSupport)(e,"customClassName",!0)}};function aJe(e,t,o){return(0,B1.hasBlockSupport)(t,"customClassName",!0)&&o.className&&(e.className=$(e.className,o.className)),e}function lJe(e,t,o,r){if(!(0,B1.hasBlockSupport)(e.name,"customClassName",!0)||r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1)return e;if(t[o]){let n=t[o]?.attributes.className;if(n&&e.attributes.className===void 0)return{...e,attributes:{...e.attributes,className:n}}}return e}(0,LK.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",iJe);(0,LK.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",lJe);var oPe=c(bo(),1),P1=c(ce(),1);function cJe(e,t){return(0,P1.hasBlockSupport)(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([(0,P1.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,P1.getBlockDefaultClassName)(t.name)),e}(0,oPe.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",cJe);var FK=c(F(),1),pPe=c(bo(),1),mPe=c(Q(),1);var Ac=c(ce(),1),hPe=c(fe(),1),ed=c(ov(),1);var mx=c(F(),1),I5=c(Q(),1),P5=c(ce(),1),aPe=c(Bt(),1);var Qu=c(F(),1),rPe=c(jC(),1);var I1=c(E(),1);function nPe({clientId:e,value:t,computeStyle:o,forceShow:r}){let n=Mt(e),[i,s]=(0,Qu.useReducer)(()=>o(n));(0,Qu.useEffect)(()=>{n&&r&&s()},[n,r]),(0,Qu.useEffect)(()=>{if(!n)return;let d=new window.MutationObserver(s);return d.observe(n,{attributes:!0,attributeFilter:["style","class"]}),()=>{d.disconnect()}},[n]);let a=(0,Qu.useRef)(t),[l,u]=(0,Qu.useState)(!1);return(0,Qu.useEffect)(()=>{if((0,rPe.isShallowEqual)(t,a.current)||r)return;u(!0),a.current=t;let d=setTimeout(()=>{u(!1)},400);return()=>{u(!1),clearTimeout(d)}},[t,r]),!l&&!r?null:(0,I1.jsx)(Xa,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,I1.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})})}function Mh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function iPe({clientId:e,value:t,forceShow:o}){return(0,I1.jsx)(nPe,{clientId:e,value:t?.spacing?.margin,computeStyle:r=>{let n=Mh(r,"margin-top"),i=Mh(r,"margin-right"),s=Mh(r,"margin-bottom"),a=Mh(r,"margin-left");return{borderTopWidth:n,borderRightWidth:i,borderBottomWidth:s,borderLeftWidth:a,top:n?`-${n}`:0,right:i?`-${i}`:0,bottom:s?`-${s}`:0,left:a?`-${a}`:0}},forceShow:o})}function sPe({clientId:e,value:t,forceShow:o}){return(0,I1.jsx)(nPe,{clientId:e,value:t?.spacing?.padding,computeStyle:r=>({borderTopWidth:Mh(r,"padding-top"),borderRightWidth:Mh(r,"padding-right"),borderBottomWidth:Mh(r,"padding-bottom"),borderLeftWidth:Mh(r,"padding-left")}),forceShow:o})}var Ff=c(E(),1),Ju="dimensions",O1="spacing";function uJe(){let[e,t]=(0,mx.useState)(!1),{hideBlockInterface:o,showBlockInterface:r}=H((0,I5.useDispatch)(C));return(0,mx.useEffect)(()=>{e?o():r()},[e,r,o]),[e,t]}function dJe({children:e,resetAllFilter:t}){let o=(0,mx.useCallback)(r=>{let n=r.style,i=t(n);return{...r,style:i}},[t]);return(0,Ff.jsx)(Oe,{group:"dimensions",resetAllFilter:o,children:e})}function lPe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Ja(),i=!Tn(n),s=wD(r,n),{style:a,className:l}=(0,I5.useSelect)(v=>{if(!s)return{};let y=v(C).getBlockAttributes(e)||{};return{style:y.style,className:y.className}},[e,s]),{value:u}=Sl(t,l,n),[d,f]=uJe(),p=i?To(a,n):a,h=i?v=>{o({style:Rn(a,n,v)})}:v=>{o({style:Ge(v)})};if(!s)return null;let m=(0,P5.getBlockSupport)(t,[Ju,"__experimentalDefaultControls"]),g=(0,P5.getBlockSupport)(t,[O1,"__experimentalDefaultControls"]),b={minHeight:!1,minWidth:!1,...m,...g};return(0,Ff.jsxs)(Ff.Fragment,{children:[(0,Ff.jsx)(CD,{as:dJe,panelId:e,settings:r,value:p,onChange:h,defaultControls:b,styleState:n,onVisualize:i?void 0:f,inheritedValue:u}),!i&&!!r?.spacing?.padding&&d==="padding"&&(0,Ff.jsx)(sPe,{forceShow:d==="padding",clientId:e,value:p}),!i&&!!r?.spacing?.margin&&d==="margin"&&(0,Ff.jsx)(iPe,{forceShow:d==="margin",clientId:e,value:p})]})}function cPe(e,t="any"){let o=(0,P5.getBlockSupport)(e,Ju);return o===!0?!0:t==="any"?!!(o?.aspectRatio||o?.height||o?.minHeight||o?.width||o?.minWidth):!!o?.[t]}function MK(e){return e?`${e}`.trim().toLowerCase()!=="auto":!1}var uPe={useBlockProps:fJe,attributeKeys:["height","minHeight","width","style"],hasSupport(e){return cPe(e)}};function fJe({name:e,height:t,minHeight:o,style:r}){if(!cPe(e,"aspectRatio")||Gt(e,Ju,"aspectRatio"))return{};let n=MK(r?.dimensions?.aspectRatio),i=$({"has-aspect-ratio":n}),s={};return n?(s.minHeight="unset",s.height="unset"):(o||r?.dimensions?.minHeight||t||r?.dimensions?.height)&&(s.aspectRatio="unset"),{className:i,style:s}}function DK(){(0,aPe.default)("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}var pJe=c(ce(),1);function dPe(e,t,o=""){if(typeof t!="string"||!t)return Uc(e).map(i=>`${i.trim()}${o}`).join(", ");let r=Uc(e).filter(i=>i.trim()),n=Uc(t).filter(i=>i.trim());return n.length?n.map(i=>{i=i.trim();let s=i.match(/^([.#]?[-_a-zA-Z0-9]+|\[[^\]]+\])/);return s?r.map(a=>`${a.trim()}${i.slice(s[0].length)}${o}`).join(", "):r.map(a=>`${a.trim()}${o}`).join(", ")}).join(", "):r.map(i=>`${i.trim()}${o}`).join(", ")}var Dh=c(E(),1),{getResponsiveMediaQueries:mJe}=H(br),hJe=["Top","Right","Bottom","Left"],gJe=[...OEe,by,An,Ju,vy,O1,l1],zK=e=>gJe.some(t=>(0,Ac.hasBlockSupport)(e,t));function ga(e={}){let t={};return(0,ed.getCSSRules)(e).forEach(o=>{t[o.key]=o.value}),t}function bJe(e){let t=e?.border;if(!t)return;let o=!!t.style,r=!!t.color,n=!!t.width,i={};return!o&&(r||n)&&(i.style="solid"),hJe.forEach(s=>{let a=s.toLowerCase(),l=t[a],u=!!l?.style,d=!!l?.color,f=!!l?.width;!o&&!u&&(d||f)&&(i[a]={style:"solid"})}),Ge({border:Ge(i)})}function yJe(e,t){if(!!!e?.color?.background)return;let r=!!e?.color?.gradient,n=!!e?.background?.gradient||!!e?.background?.backgroundImage;if(r||n)return;let i="background-image: unset !important";return t?`${t} { ${i}; }`:`${i};`}function vJe(e){let t=e?.dimensions;if(t){if(MK(t.aspectRatio))return{dimensions:{minHeight:"unset",height:"unset"}};if(t.minHeight||t.height)return{dimensions:{aspectRatio:"unset"}}}}function SJe(e,t){let o=e?.typography?.textAlign;if(typeof o!="string"||!o)return;let r=`text-align: ${(0,ed.getCSSValueFromRawStyle)(o)} !important`;return t?`${t} { ${r}; }`:`${r};`}function kJe(e,t){let o=vJe(e),r=o?jK(e,o):e,n=(0,ed.compileCSS)(r,{selector:t}),i=n?n.replace(/;/g," !important;"):void 0,s=bJe(e),a=s?(0,ed.compileCSS)(s,{selector:t}):void 0,l=SJe(e,t),u=yJe(e,t);return[i,l,a,u].filter(Boolean).join(`
`)}function A5(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function jK(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=A5(n)&&A5(o[r])?jK(o[r],n):n}),o}function O5(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:jK(n.style,o)})}function _Je(e,t){let o=(0,Ac.getBlockType)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([n,i])=>{let s=o[n];if(typeof s=="string"){O5(r,s,{[n]:i});return}if(A5(s)&&A5(i)){let a={...i};Object.entries(s).forEach(([l,u])=>{l==="root"||typeof u!="string"||!Object.hasOwn(i,l)||(O5(r,u,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&O5(r,s.root||o.root,{[n]:a});return}O5(r,o.root,{[n]:i})}),Array.from(r.values())}function HK(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=_Je(e,o).map(({selector:s,style:a})=>kJe(a,dPe(r,s,n))).filter(Boolean);return i.length?i.join(`
`):void 0}function xJe(e,t){if(!e)return e;let o={...e};return t.forEach(r=>{delete o[r]}),o}function gPe(e,t,o){let r=mV[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=HK(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function wJe(e,t,o,r){let n=[],s=["elements",...mV[t]??[]],a=mJe(r);return Object.entries(a).forEach(([l,u])=>{let d=To(e,{viewport:l,pseudo:Js.pseudo});if(!d)return;let f=[],p=HK(xJe(d,s),{name:t,baseSelector:o});p&&f.push(p);let h=vPe(d.elements,t,o);h&&f.push(h),f.push(...gPe(d,t,o)),f.length&&n.push(`${u}{${f.join("")}}`)}),n}function fPe(e,t){let o=To(e,t);if(!zi(t))return o;let r={...t,viewport:Js.viewport},n=To(e,r);return n&&o?gB(n,o):o||n}function CJe(e){return!zK(e)&&!(0,Ac.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var bPe={[`${by}.__experimentalSkipSerialization`]:["border"],[`${An}.__experimentalSkipSerialization`]:[An],[`${_l}.__experimentalSkipSerialization`]:[_l],[`${Ju}.__experimentalSkipSerialization`]:[Ju],[`${O1}.__experimentalSkipSerialization`]:[O1],[`${l1}.__experimentalSkipSerialization`]:[l1]},EJe={...bPe,[`${Ju}.aspectRatio`]:[`${Ju}.aspectRatio`],[`${vy}`]:[vy]},TJe={[`${Ju}.aspectRatio`]:!0,[`${vy}`]:!0},RJe={gradients:"gradient"};function VK(e,t,o=!1){if(!e)return e;let r=e;return o||(r=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(n=>{if(Array.isArray(n)||(n=n.split(".")),n.length>1){let[i,...s]=n;VK(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function yPe(e,t,o,r=EJe){if(!zK(t))return e;let{style:n}=o;return Object.entries(r).forEach(([i,s])=>{let a=TJe[i]||(0,Ac.getBlockSupport)(t,i);a===!0&&(n=VK(n,s)),Array.isArray(a)&&a.forEach(l=>{let u=RJe[l]||l;n=VK(n,[[...s,u]])})}),e.style={...ga(n),...e.style},e}function BJe({clientId:e,name:t,setAttributes:o,style:r,__unstableParentLayout:n}){let i=kl(t,n),s=Cr(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:u}=(0,mPe.useSelect)(m=>{let g=m(C),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=H(g);return{globalBlockStyles:g.getSettings()?.[os]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),d=ea(l),f=(0,FK.useMemo)(()=>{if(!u||!d)return;let m=fPe(a,l),g=fPe(r,l),b;if(m&&g)b=gB(m,g);else if(g)b=g;else if(m)b=m;else return;return HK(b,{name:t,baseSelector:`[data-block="${e}"]`})},[u,d,a,r,l,e,t]);if(el({css:f}),s!=="default")return null;let p={...i,typography:{...i.typography,textAlign:!1}},h={clientId:e,name:t,setAttributes:o,settings:p};return(0,Dh.jsxs)(Y2,{value:l,children:[(0,Dh.jsx)(QD,{...h}),(0,Dh.jsx)(YD,{...h}),(0,Dh.jsx)(sV,{...h}),(0,Dh.jsx)(QCe,{...h}),(0,Dh.jsx)(lPe,{...h})]})}var L5={edit:BJe,hasSupport:zK,addSaveProps:yPe,attributeKeys:["style"],useBlockProps:OJe},PJe=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],IJe={};function vPe(e,t,o){if(!e)return;let r=[];return PJe.forEach(({elementType:n,pseudo:i,elements:s})=>{if(Gt(t,An,n))return;let l=e?.[n];if(l){let u=gk(o,Ac.__EXPERIMENTAL_ELEMENTS[n]);r.push((0,ed.compileCSS)(l,{selector:u})),i&&i.forEach(d=>{l[d]&&r.push((0,ed.compileCSS)(l[d],{selector:gk(o,`${Ac.__EXPERIMENTAL_ELEMENTS[n]}${d}`)}))})}s&&s.forEach(u=>{e[u]&&r.push((0,ed.compileCSS)(e[u],{selector:gk(o,Ac.__EXPERIMENTAL_ELEMENTS[u])}))})}),r.length>0?r.join(""):void 0}function OJe({name:e,style:t}){let o=(0,hPe.useInstanceId)(IJe,"wp-elements"),r=`.${o}`,n=t?.elements,[i]=Le("viewport"),s=(0,FK.useMemo)(()=>{let a=[],l=vPe(n,e,r);return l&&a.push(l),a.push(...gPe(t,e,r)),a.push(...wJe(t,e,r,i)),a.length>0?a.join(""):void 0},[r,n,e,t,i]);return el({css:s}),yPe({className:o},e,{style:t},bPe)}(0,pPe.addFilter)("blocks.registerBlockType","core/style/addAttribute",CJe);var SPe=c(bo(),1),kPe=c(ce(),1),AJe=e=>(0,kPe.hasBlockSupport)(e,"__experimentalSettings",!1);function LJe(e){return AJe(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,SPe.addFilter)("blocks.registerBlockType","core/settings/addAttribute",LJe);var Vh=c(ce(),1),wPe=c(fe(),1),CPe=c(bo(),1),A1=c(F(),1),EPe=c(Q(),1);function NJe(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(o=>{let r=Ao(o).toRgb();t.r.push(r.r/255),t.g.push(r.g/255),t.b.push(r.b/255),t.a.push(r.a)}),t}function _Pe(e){return`${e}{filter:none}`}function xPe(e,t){return`${e}{filter:url(#${t})}`}function N5(e,t){let o=NJe(t);return`
<svg
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 0 0"
width="0"
height="0"
focusable="false"
role="none"
aria-hidden="true"
style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
>
<defs>
<filter id="${e}">
<!--
Use sRGB instead of linearRGB so transparency looks correct.
Use perceptual brightness to convert to grayscale.
-->
<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>
<!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="${o.r.join(" ")}"></feFuncR>
<feFuncG type="table" tableValues="${o.g.join(" ")}"></feFuncG>
<feFuncB type="table" tableValues="${o.b.join(" ")}"></feFuncB>
<feFuncA type="table" tableValues="${o.a.join(" ")}"></feFuncA>
</feComponentTransfer>
<!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
<feComposite in2="SourceGraphic" operator="in"></feComposite>
</filter>
</defs>
</svg>`}var zf=c(E(),1),UK=[],MJe=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");Kf([Yf]);function GK({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=Le(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,A1.useMemo)(()=>[...r||UK,...n||UK,...o&&i||UK],[o,r,n,i])}function TPe(e,t){if(!e)return;let o=t?.find(({slug:r})=>e===`var:preset|duotone|${r}`);return o?o.colors:void 0}function DJe(e,t){if(!e||!Array.isArray(e))return;let o=t?.find(r=>r?.colors?.every((n,i)=>n===e[i]));return o?`var:preset|duotone|${o.slug}`:void 0}function VJe({style:e,setAttributes:t,name:o,clientId:r}){let n=e?.color?.duotone,i=kl(o),s=Cr(),a=(0,EPe.useSelect)(b=>r?b(C).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=Sl(o,a),u=GK({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),d=GK({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[f,p]=Le("color.custom","color.customDuotone"),h=!f,m=!p||d?.length===0&&h;if(u?.length===0&&m||s!=="default")return null;let g=n==="unset"||Array.isArray(n)?n:TPe(n,u);return(0,zf.jsxs)(zf.Fragment,{children:[(0,zf.jsx)(Oe,{group:"filter",children:(0,zf.jsx)(ID,{value:{filter:{duotone:g}},onChange:b=>{let v={...e,color:{...b?.filter}};t({style:Ge(v)})},settings:i,inheritedValue:l})}),(0,zf.jsx)(No,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,zf.jsx)(jN,{duotonePalette:u,colorPalette:d,disableCustomDuotone:m,disableCustomColors:h,value:g,onChange:b=>{let v=DJe(b,u),y={...e,color:{...e?.color,duotone:v??b}};t({style:Ge(y)})},settings:i})})]})}var WK={shareWithChildBlocks:!0,edit:VJe,useBlockProps:HJe,attributeKeys:["style"],hasSupport(e){return(0,Vh.hasBlockSupport)(e,"filter.duotone")}};function FJe(e){return(0,Vh.hasBlockSupport)(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function zJe({clientId:e,id:t,selector:o,attribute:r}){let n=GK({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:TPe(r,n),a=typeof r=="string"&&s,l=typeof r=="string"&&!a,u=null;a?u=s:(l||i)&&(u=r);let p=o.split(",").map(g=>`.${t}${g.trim()}`).join(", "),h=Array.isArray(u)||u==="unset";Tc(h?{css:u!=="unset"?xPe(p,t):_Pe(p),__unstableType:"presets"}:void 0),Tc(h?{assets:u!=="unset"?N5(t,u):"",__unstableType:"svgs"}:void 0);let m=Mt(e);(0,A1.useEffect)(()=>{if(h&&m&&MJe){let g=m.style.display;m.style.setProperty("display","inline-block"),m.offsetHeight,m.style.setProperty("display",g)}},[h,m,u])}var jJe={};function HJe({clientId:e,name:t,style:o}){let r=(0,wPe.useInstanceId)(jJe),n=(0,A1.useMemo)(()=>{let l=(0,Vh.getBlockType)(t);if(l){if(!(0,Vh.getBlockSupport)(l,"filter.duotone",!1))return null;let d=(0,Vh.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(d){let f=zs(l);return typeof d=="string"?gk(f,d):f}return zs(l,"filter.duotone",{fallback:!0})}},[t]),i=o?.color?.duotone,s=`wp-duotone-${r}`,a=n&&i;return zJe({clientId:e,id:s,selector:n,attribute:i}),{className:a?s:""}}(0,CPe.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",FJe);var D5=c(F(),1),L1=c(Q(),1),RPe=c(fe(),1),N1=c(ce(),1),M1=c(G(),1);var BPe=c(ss(),1);var M5=c(E(),1),UJe={},GJe={};function WJe({blockName:e,setAttributes:t,style:o}){if(Cr()!=="default")return null;let n=(0,N1.getBlockType)(e);function i(a){let l=a?.css?.trim()?a.css:void 0;t({style:Ge({...a,css:l})})}let s=(0,M1.sprintf)((0,M1.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value, e.g. color: red;."),n?.title);return(0,M5.jsx)(Oe,{group:"advanced",children:(0,M5.jsx)(LD,{value:o,onChange:i,inheritedValue:o,help:s})})}var $Je="custom-css-edit-warning";function KJe({clientId:e,name:t,setAttributes:o}){let{style:r,canEditCSS:n}=(0,L1.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(C);return{style:s(e)?.style||GJe,canEditCSS:a().canEditCSS}},[e]);return n?(0,M5.jsx)(WJe,{blockName:t,setAttributes:o,style:r}):null}function YJe({style:e,clientId:t}){let o=e?.css,r=typeof o=="string"&&o.trim().length>0&&e$(o),n=(0,L1.useSelect)(d=>d(C).getSettings().canEditCSS,[]),{createWarningNotice:i}=(0,L1.useDispatch)(BPe.store),s=!!o?.trim();(0,D5.useEffect)(()=>{!n&&s&&i((0,M1.__)("This post contains blocks with custom CSS. You do not have permission to edit CSS. If you save this post, the custom CSS will be removed."),{id:$Je,isDismissible:!0})},[n,s,i]);let a=(0,RPe.useInstanceId)(UJe,"wp-custom-css"),l=`.${a}`,u=(0,D5.useMemo)(()=>{if(r)return kB(o,l)},[o,l,r]);return Tc({css:u,clientId:t,__unstableType:"custom-css"}),r?{className:`has-custom-css ${a}`}:{}}function qJe(e,t,o){if(!(0,N1.hasBlockSupport)(t,"customCSS",!0)||!o?.style?.css?.trim())return e;let r=e.className?`${e.className} has-custom-css`:"has-custom-css";return{...e,className:r}}var V5={edit:KJe,useBlockProps:YJe,addSaveProps:qJe,attributeKeys:["style"],hasSupport(e){return(0,N1.hasBlockSupport)(e,"customCSS",!0)}};var z5=c(fe(),1),YK=c(bo(),1),IPe=c(F(),1),Lc=c(ce(),1);var j5=c(Q(),1),Nc=c(U(),1),Ly=c(G(),1);var Nn=c(E(),1),ZJe="is-style-",F5="layout",$K=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{kebabCase:KK}=H(Nc.privateApis),{getResponsiveMediaQueries:XJe}=H(br);function QJe(e={},t){let o=e?.default;return t?.attributes?.layout??o}function PPe(e={},t){return Ge({...QJe(e,t)})}function JJe(e={},t={},o={}){let r={},n=Object.fromEntries($K.filter(i=>Object.hasOwn(o||{},i)).map(i=>[i,o[i]]));return Object.entries(e||{}).forEach(([i,s])=>{let a=Object.hasOwn(t||{},i);!$K.includes(i)&&s!==t?.[i]&&(r[i]=s===void 0&&a?null:s)}),Ge({...n,...r})}function eet(e={}){return Object.fromEntries(Object.entries(e||{}).filter(([t])=>!$K.includes(t)))}function qK(e){return(0,Lc.hasBlockSupport)(e,"layout")||(0,Lc.hasBlockSupport)(e,"__experimentalLayout")}function H5(e={},t=""){let{layout:o}=e,{default:r}=(0,Lc.getBlockSupport)(t,F5)||{},n=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||r||{},i=[];if(Gs[n?.type||"default"]?.className){let a=Gs[n?.type||"default"]?.className,l=t.split("/"),d=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${a}`;i.push(a,d)}return(0,j5.useSelect)(a=>!n?.inherit&&!n?.contentSize&&n?.type!=="constrained"?!1:a(C).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[n?.contentSize,n?.inherit,n?.type])&&i.push("has-global-padding"),n?.orientation&&i.push(`is-${KK(n.orientation)}`),n?.justifyContent&&i.push(`is-content-justification-${KK(n.justifyContent)}`),n?.flexWrap&&n.flexWrap==="nowrap"&&i.push("is-nowrap"),i}function ZK(e={},t,o){let{layout:r={},style:n={}}=e,i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||{},s=Ba(i?.type||"default"),[a]=Le("spacing.blockGap"),l=a!==null;return s?.getLayoutStyle?.({blockName:t,selector:o,layout:r,style:n,hasBlockGapSupport:l})}function tet({attributes:e={},blockName:t,selector:o,layout:r={},hasBlockGapSupport:n,globalBlockGapValue:i,viewportSettings:s}){return Object.entries(XJe(s)).map(([a,l])=>{let u=To(e?.style,{viewport:a,pseudo:Js.pseudo}),d=eet(u?.layout),f=Object.keys(d).length>0,p=u?.spacing&&Object.hasOwn(u.spacing,"blockGap"),h=u?.spacing&&Object.hasOwn(u.spacing,"padding");if(!f&&!p&&!h)return"";let g=Ba(r?.type||"default")?.getLayoutStyle?.({blockName:t,selector:o,layout:r,viewportOverrides:d,style:u,hasBlockGapSupport:n,globalBlockGapValue:i});return g?`${l}{${g}}`:""}).filter(Boolean).join("")}function oet({layout:e,style:t,setAttributes:o,name:r,clientId:n}){let i=kl(r),{layout:s}=i,{themeSupportsLayout:a,activeBlockVariation:l,selectedState:u,isResponsiveEditing:d}=(0,j5.useSelect)(Y=>{let{getBlockAttributes:Z,getSettings:oe,getSelectedBlockStyleState:ie,isResponsiveEditing:q}=H(Y(C));return{activeBlockVariation:Y(Lc.store).getActiveBlockVariation(r,Z(n)||{},"block"),themeSupportsLayout:oe().supportsLayout,selectedState:ie(n),isResponsiveEditing:q()}},[r,n]),f=Cr(),p=zi(u)&&!ea(u),h=(0,IPe.useCallback)((...Y)=>{let Z=Y[0]||{},oe=Y[1]||{};if(p){let re=To(Z.style??t,u)||{},ae=Ge({...re,layout:void 0});return{style:Rn(Z.style??t,u,ae)}}let ie=oe.name||r,q=(0,Lc.getBlockSupport)(ie,F5,{});return{layout:PPe(q,l)}},[r,l,p,u,t]);if(f!=="default")return null;let m=(0,Lc.getBlockSupport)(r,F5,{}),g={...s,...m},{allowSwitching:b,allowEditing:v=!0,allowInheriting:y=!0,default:k}=g;if(!v)return null;let S=e||k||{},_=p?To(t,u):void 0,x=_?.layout,w=p?Ge({...S,...x})||{}:S,T=p?S:PPe(m,l),R={...m,...w},{type:B,default:{type:I="default"}={}}=R,O=B||I,P=!!(y&&(!O||O==="default"||O==="constrained"||R.inherit)),{inherit:A=!1,contentSize:M=null}=w;if((O==="default"||O==="constrained")&&!a)return null;let z=Ba(O),V=Ba("constrained"),L=!w.type&&(M||A),D=!!A||!!M,N=Tn(u)&&!A&&b,j=Y=>{if(p){let Z=Ge({..._,layout:JJe(Y,S,_?.layout)});o({style:Rn(t,u,Z)});return}o({layout:Ge(Y)})},X=Y=>j({type:Y}),J=()=>j(T),te=()=>j({type:"default"}),ee=()=>z?.name==="constrained"||D,W=()=>p?(w?.type??"default")!==(T?.type??"default"):e?.type==="constrained",K=()=>(w?.type??"default")!==(T?.type??"default");return(0,Nn.jsxs)(Nn.Fragment,{children:[(0,Nn.jsxs)(Oe,{group:"layout",resetAllFilter:h,children:[P&&(0,Nn.jsx)(Nc.__experimentalToolsPanelItem,{label:(0,Ly.__)("Use content width"),hasValue:W,onDeselect:te,isShownByDefault:!0,panelId:n,children:(0,Nn.jsx)(Nc.ToggleControl,{label:(0,Ly.__)("Inner blocks use content width"),checked:ee(),onChange:()=>j({type:ee()?"default":"constrained"}),help:ee()?(0,Ly.__)("Nested blocks use content width with options for full and wide widths."):(0,Ly.__)("Nested blocks will fill the width of this container.")})}),N&&(0,Nn.jsx)(Nc.__experimentalToolsPanelItem,{label:(0,Ly.__)("Layout type"),hasValue:K,onDeselect:J,isShownByDefault:!0,panelId:n,children:(0,Nn.jsx)(ret,{type:O,onChange:X})}),z&&z.name!=="default"&&(0,Nn.jsx)(z.inspectorControls,{layout:w,value:e,onChange:j,layoutBlockSupport:g,resetLayout:T,name:r,clientId:n}),V&&L&&(0,Nn.jsx)(V.inspectorControls,{layout:w,value:e,onChange:j,layoutBlockSupport:g,resetLayout:T,name:r,clientId:n})]}),!A&&z&&(0,Nn.jsx)(z.toolBarControls,{layout:w,onChange:j,layoutBlockSupport:m,controlsGroup:d&&zi(u)&&!ea(u)?"style-state":"block",name:r,clientId:n})]})}var OPe={shareWithChildBlocks:!0,edit:oet,attributeKeys:["layout","style"],hasSupport(e){return qK(e)}};function ret({type:e,onChange:t}){return(0,Nn.jsx)(Nc.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Ly.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:iQ().map(({name:o,label:r})=>(0,Nn.jsx)(Nc.__experimentalToggleGroupControlOption,{value:o,label:r},o))})}function net(e){return"type"in(e.attributes?.layout??{})||qK(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function iet({block:e,props:t,blockGapSupport:o,globalBlockGapValue:r,viewportSettings:n,layoutClasses:i}){let{name:s,attributes:a}=t,l=(0,z5.useInstanceId)(e),{layout:u}=a,{default:d}=(0,Lc.getBlockSupport)(s,F5)||{},f=u?.inherit||u?.contentSize||u?.wideSize?{...u,type:"constrained"}:u||d||{},p=`wp-container-${KK(s)}-is-layout-`,h=`.${p}${l}`,m=o!==null,b=Ba(f?.type||"default")?.getLayoutStyle?.({blockName:s,selector:h,layout:f,style:a?.style,hasBlockGapSupport:m,globalBlockGapValue:r}),v=tet({attributes:a,blockName:s,selector:h,layout:f,hasBlockGapSupport:m,globalBlockGapValue:r,viewportSettings:n}),y=[b,v].filter(Boolean).join(""),k=$({[`${p}${l}`]:!!y},i);return el({css:y}),(0,Nn.jsx)(e,{...t,__unstableLayoutClassNames:k})}var set=(0,z5.createHigherOrderComponent)(e=>function(o){let{clientId:r,name:n,attributes:i}=o,s=qK(n),a=H5(i,n),l=(0,j5.useSelect)(u=>{if(!s)return;let{getSettings:d,getBlockSettings:f}=H(u(C)),p=d(),{disableLayoutStyles:h}=p;if(h)return;let[m]=f(r,"spacing.blockGap"),g=p[os],b,v=i?.className;if(v?.includes(ZJe)){let{getBlockStyles:k}=u(Lc.store),S=k(n),_=i1(v,S);b=_?g?.blocks?.[n]?.variations?.[_]?.spacing?.blockGap:void 0}let y=b??g?.blocks?.[n]?.spacing?.blockGap??g?.spacing?.blockGap;return{blockGapSupport:m,globalBlockGapValue:y,viewportSettings:p?.__experimentalFeatures?.viewport}},[s,r,i?.className,n]);return l?(0,Nn.jsx)(iet,{block:e,props:o,layoutClasses:a,...l}):(0,Nn.jsx)(e,{...o,__unstableLayoutClassNames:s?a:void 0})},"withLayoutStyles");(0,YK.addFilter)("blocks.registerBlockType","core/layout/addAttribute",net);(0,YK.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",set);var jPe=c(fe(),1),K5=c(Q(),1),HPe=c(F(),1);var Rl=c(F(),1),Fh=c(Q(),1),LPe=c(fe(),1);function V1(e,t){return Array.from({length:t},(o,r)=>e+r)}var Mc=class{constructor({columnStart:e,rowStart:t,columnEnd:o,rowEnd:r,columnSpan:n,rowSpan:i}={}){this.columnStart=e??1,this.rowStart=t??1,n!==void 0?this.columnEnd=this.columnStart+n-1:this.columnEnd=o??this.columnStart,i!==void 0?this.rowEnd=this.rowStart+i-1:this.rowEnd=r??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(e,t){return e>=this.columnStart&&e<=this.columnEnd&&t>=this.rowStart&&t<=this.rowEnd}containsRect(e){return this.contains(e.columnStart,e.rowStart)&&this.contains(e.columnEnd,e.rowEnd)}intersectsRect(e){return this.columnStart<=e.columnEnd&&this.columnEnd>=e.columnStart&&this.rowStart<=e.rowEnd&&this.rowEnd>=e.rowStart}};function qr(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function D1(e,t){let o=[];for(let r of e.split(" ")){let n=o[o.length-1],i=n?n.end+t:0,s=i+parseFloat(r);o.push({start:i,end:s})}return o}function jf(e,t,o="start"){return e.reduce((r,n,i)=>Math.abs(n[o]-t)<Math.abs(e[r][o]-t)?i:r,0)}function aet(e,t){let o=parseFloat(qr(e,"column-gap")),r=parseFloat(qr(e,"row-gap")),n=D1(qr(e,"grid-template-columns"),o),i=D1(qr(e,"grid-template-rows"),r),s=jf(n,t.left)+1,a=jf(i,t.top)+1,l=jf(n,t.right,"end")+1,u=jf(i,t.bottom,"end")+1;return new Mc({columnStart:s,columnEnd:l,rowStart:a,rowEnd:u})}function APe(e){return aet(e.parentElement,new window.DOMRect(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight))}function XK(e){let t=qr(e,"grid-template-columns"),o=qr(e,"grid-template-rows"),r=qr(e,"border-top-width"),n=qr(e,"border-right-width"),i=qr(e,"border-bottom-width"),s=qr(e,"border-left-width"),a=qr(e,"padding-top"),l=qr(e,"padding-right"),u=qr(e,"padding-bottom"),d=qr(e,"padding-left"),f=t.split(" ").length,p=o.split(" ").length,h=f*p;return{numColumns:f,numRows:p,numItems:h,currentColor:qr(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:o,gap:qr(e,"gap"),inset:`
calc(${a} + ${r})
calc(${l} + ${n})
calc(${u} + ${i})
calc(${d} + ${s})
`}}}var ba=c(E(),1);function F1({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,Fh.useSelect)(a=>a(C).getSettings().isDistractionFree,[]),i=Mt(e);if(n||!i)return null;let s=o?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,ba.jsx)(cet,{gridClientId:e,gridElement:i,isManualGrid:s,ref:t,childGridClientId:r})}var cet=(0,Rl.forwardRef)(({gridClientId:e,gridElement:t,isManualGrid:o,childGridClientId:r},n)=>{let[i,s]=(0,Rl.useState)(()=>XK(t)),[a,l]=(0,Rl.useState)(!1),u=Mt(r),d=(0,Rl.useMemo)(()=>u?APe(u):null,[u]);return(0,Rl.useEffect)(()=>{let f=()=>s(XK(t)),p=new window.ResizeObserver(f);p.observe(t,{box:"border-box"});let h=new window.ResizeObserver(f);h.observe(t);for(let m of t.children)h.observe(m);return()=>{p.disconnect(),h.disconnect()}},[t]),(0,Rl.useEffect)(()=>{function f(){l(!0)}function p(){l(!1)}return document.addEventListener("drag",f),document.addEventListener("dragend",p),()=>{document.removeEventListener("drag",f),document.removeEventListener("dragend",p)}},[]),(0,ba.jsx)(Xa,{className:$("block-editor-grid-visualizer",{"is-dropping-allowed":a}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,ba.jsx)("div",{ref:n,className:"block-editor-grid-visualizer__grid",style:i.style,children:o?(0,ba.jsx)(det,{gridClientId:e,gridInfo:i,childGridRect:d}):(0,ba.jsx)(uet,{gridInfo:i,childGridRect:d})})})});function uet({gridInfo:e,childGridRect:t}){return V1(1,e.numRows).map(o=>V1(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,ba.jsx)(NPe,{color:n},`${o}-${r}`)}))}function det({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,Rl.useState)(null),i=(0,Fh.useSelect)(a=>{let{getBlockOrder:l,getBlockStyles:u}=H(a(C)),d=l(e);return u(d)},[e]),s=(0,Rl.useMemo)(()=>{let a=[];for(let l of Object.values(i)){let{columnStart:u,rowStart:d,columnSpan:f=1,rowSpan:p=1}=l?.layout??{};!u||!d||a.push(new Mc({columnStart:u,rowStart:d,columnSpan:f,rowSpan:p}))}return a},[i]);return V1(1,t.numRows).map(a=>V1(1,t.numColumns).map(l=>{let u=o?.contains(l,a),d=t.currentColor;u&&(d="transparent");let f=s.some(h=>h.contains(l,a)),p=r?.contains(l,a)??!1;return(0,ba.jsx)(NPe,{color:d,className:p&&"is-highlighted",children:f&&!u?(0,ba.jsx)(fet,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n}):(0,ba.jsx)(pet,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n})},`${a}-${l}`)}))}function NPe({color:e,children:t,className:o}){return(0,ba.jsx)("div",{className:$("block-editor-grid-visualizer__cell",o),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function MPe(e,t,o,r,n){let{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:a,getBlockName:l}=(0,Fh.useSelect)(C),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,Fh.useDispatch)(C),p=fy(o,r.numColumns);return met({validateDrag(h){let m=l(h);if(!a(m,o))return!1;let g=i(h),b=new Mc({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan});return new Mc({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(h){let m=i(h);n(new Mc({columnStart:e,rowStart:t,columnSpan:m.style?.layout?.columnSpan,rowSpan:m.style?.layout?.rowSpan}))},onDragLeave(){n(h=>h?.columnStart===e&&h?.rowStart===t?null:h)},onDrop(h){n(null);let m=i(h);u(h,{style:{...m.style,layout:{...m.style?.layout,columnStart:e,rowStart:t}}}),f(),d([h],s(h),o,p(e,t))}})}function fet({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){return(0,ba.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:MPe(e,t,o,r,n)})}function pet({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){let{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,Fh.useDispatch)(C),l=fy(o,r.numColumns);return(0,ba.jsx)(ym,{rootClientId:o,className:"block-editor-grid-visualizer__appender",ref:MPe(e,t,o,r,n),style:{color:r.currentColor},onSelect:u=>{u&&(i(u.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),a(),s([u.clientId],o,o,l(e,t)))}})}function met({validateDrag:e,onDragEnter:t,onDragLeave:o,onDrop:r}){let{getDraggedBlockClientIds:n}=(0,Fh.useSelect)(C);return(0,LPe.__experimentalUseDropZone)({onDragEnter(){let[i]=n();i&&e(i)&&t(i)},onDragLeave(){o()},onDrop(){let[i]=n();i&&e(i)&&r(i)}})}var DPe=c(U(),1),z1=c(F(),1);var U5=c(E(),1);function QK({clientId:e,bounds:t,onChange:o,parentLayout:r}){let n=Mt(e),i=n?.parentElement,{isManualPlacement:s}=r;return!n||!i?null:(0,U5.jsx)(het,{clientId:e,bounds:t,blockElement:n,rootBlockElement:i,onChange:o,isManualGrid:s&&window.__experimentalEnableGridInteractivity})}function het({clientId:e,bounds:t,blockElement:o,rootBlockElement:r,onChange:n,isManualGrid:i}){let[s,a]=(0,z1.useState)(null),[l,u]=(0,z1.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,z1.useEffect)(()=>{let h=new window.ResizeObserver(()=>{let m=o.getBoundingClientRect(),g=r.getBoundingClientRect(),b=m.top>g.top,v=m.bottom<g.bottom,y=m.left>g.left,k=m.right<g.right;u({top:(i||!v)&&b,bottom:v,left:(i||!k)&&y,right:k})});return h.observe(o),()=>h.disconnect()},[o,r,i]);let d={right:"left",left:"right"},f={top:"flex-end",bottom:"flex-start"},p={display:"flex",justifyContent:"center",alignItems:"center",...d[s]&&{justifyContent:d[s]},...f[s]&&{alignItems:f[s]}};return(0,U5.jsx)(Xa,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:p,children:(0,U5.jsx)(DPe.ResizableBox,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:l.bottom,bottomLeft:!1,bottomRight:!1,left:l.left,right:l.right,top:l.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:h,pointerId:m})=>{h.setPointerCapture(m)},onResizeStart:(h,m)=>{a(m)},onResizeStop:(h,m,g)=>{let b=parseFloat(qr(r,"column-gap")),v=parseFloat(qr(r,"row-gap")),y=D1(qr(r,"grid-template-columns"),b),k=D1(qr(r,"grid-template-rows"),v),S=new window.DOMRect(o.offsetLeft+g.offsetLeft,o.offsetTop+g.offsetTop,g.offsetWidth,g.offsetHeight),_=jf(y,S.left)+1,x=jf(k,S.top)+1,w=jf(y,S.right,"end")+1,T=jf(k,S.bottom,"end")+1;n({columnSpan:w-_+1,rowSpan:T-x+1,columnStart:i?_:void 0,rowStart:i?x:void 0})}})})}var Bl=c(G(),1),G5=c(U(),1);var VPe=c(Q(),1),FPe=c(fe(),1);var Ci=c(E(),1);function JK({layout:e,parentLayout:t,onChange:o,gridClientId:r,blockClientId:n}){let{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,VPe.useDispatch)(C),a=e?.columnStart??1,l=e?.rowStart??1,u=e?.columnSpan??1,d=e?.rowSpan??1,f=a+u-1,p=l+d-1,h=t?.columnCount,m=t?.rowCount,g=fy(r,h);return(0,Ci.jsx)(No,{group:"parent",children:(0,Ci.jsxs)(G5.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,Ci.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,Ci.jsx)(j1,{icon:(0,Bl.isRTL)()?un:Ei,label:(0,Bl.__)("Move left"),description:(0,Bl.__)("Move left"),isDisabled:a<=1,onClick:()=>{o({columnStart:a-1}),s(),i([n],r,r,g(a-1,l))}})}),(0,Ci.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,Ci.jsx)(j1,{className:"is-up-button",icon:Jh,label:(0,Bl.__)("Move up"),description:(0,Bl.__)("Move up"),isDisabled:l<=1,onClick:()=>{o({rowStart:l-1}),s(),i([n],r,r,g(a,l-1))}}),(0,Ci.jsx)(j1,{className:"is-down-button",icon:cn,label:(0,Bl.__)("Move down"),description:(0,Bl.__)("Move down"),isDisabled:m&&p>=m,onClick:()=>{o({rowStart:l+1}),s(),i([n],r,r,g(a,l+1))}})]}),(0,Ci.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,Ci.jsx)(j1,{icon:(0,Bl.isRTL)()?Ei:un,label:(0,Bl.__)("Move right"),description:(0,Bl.__)("Move right"),isDisabled:h&&f>=h,onClick:()=>{o({columnStart:a+1}),s(),i([n],r,r,g(a+1,l))}})})]})})}function j1({className:e,icon:t,label:o,isDisabled:r,onClick:n,description:i}){let a=`block-editor-grid-item-mover-button__description-${(0,FPe.useInstanceId)(j1)}`;return(0,Ci.jsxs)(Ci.Fragment,{children:[(0,Ci.jsx)(G5.ToolbarButton,{className:$("block-editor-grid-item-mover-button",e),icon:t,label:o,"aria-describedby":a,onClick:r?null:n,disabled:r,accessibleWhenDisabled:!0}),(0,Ci.jsx)(bt,{id:a,children:i})]})}var H1=c(Q(),1),$5=c(F(),1),W5=c(fe(),1);function eY({clientId:e}){let{gridLayout:t,blockOrder:o,selectedBlockLayout:r}=(0,H1.useSelect)(p=>{let{getBlockAttributes:h,getBlockOrder:m}=p(C),g=p(C).getSelectedBlock();return{gridLayout:h(e).layout??{},blockOrder:m(e),selectedBlockLayout:g?.attributes.style?.layout}},[e]),{getBlockAttributes:n,getBlockRootClientId:i}=(0,H1.useSelect)(C),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,H1.useDispatch)(C),l=(0,$5.useMemo)(()=>r?new Mc(r):null,[r]),u=(0,W5.usePrevious)(l),d=(0,W5.usePrevious)(t.isManualPlacement),f=(0,W5.usePrevious)(o);(0,$5.useEffect)(()=>{let p={};if(t.isManualPlacement){let h=[];for(let g of o){let{columnStart:b,rowStart:v,columnSpan:y=1,rowSpan:k=1}=n(g).style?.layout??{};!b||!v||h.push(new Mc({columnStart:b,rowStart:v,columnSpan:y,rowSpan:k}))}for(let g of o){let b=n(g),{columnStart:v,rowStart:y,columnSpan:k=1,rowSpan:S=1}=b.style?.layout??{};if(v&&y)continue;let[_,x]=get(h,t.columnCount,k,S,u?.columnEnd,u?.rowEnd);h.push(new Mc({columnStart:_,rowStart:x,columnSpan:k,rowSpan:S})),p[g]={style:{...b.style,layout:{...b.style?.layout,columnStart:_,rowStart:x}}}}let m=Math.max(...h.map(g=>g.rowEnd));(!t.rowCount||t.rowCount<m)&&(p[e]={layout:{...t,rowCount:m}});for(let g of f??[])if(!o.includes(g)){let b=i(g);if(b===null||n(b)?.layout?.type==="grid")continue;let y=n(g),{columnStart:k,rowStart:S,columnSpan:_,rowSpan:x,...w}=y.style?.layout??{};if(k||S||_||x){let T=Object.keys(w).length===0;p[g]=Me(y,["style","layout"],T?void 0:w)}}}else{if(d===!0)for(let h of o){let m=n(h),{columnStart:g,rowStart:b,...v}=m.style?.layout??{};if(g||b){let y=Object.keys(v).length===0;p[h]=Me(m,["style","layout"],y?void 0:v)}}t.rowCount&&(p[e]={layout:{...t,rowCount:void 0}})}Object.keys(p).length&&(a(),s(Object.keys(p),p,!0))},[e,t,f,o,u,d,a,n,i,s])}function get(e,t,o,r,n=1,i=1){for(let s=i;;s++)for(let a=s===i?n:1;a<=t;a++){let l=new Mc({columnStart:a,rowStart:s,columnSpan:o,rowSpan:r});if(!e.some(u=>u.intersectsRect(l)))return[a,s]}}var Hf=c(E(),1),{getResponsiveMediaQueries:bet}=H(br),yet={},zh={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},vet=[zh.max,zh.fixed];function zPe(e){return vet.includes(e)}function UPe({selector:e,declarations:t}){return`${e} {
${Object.entries(t).map(([o,r])=>`${o}: ${r}`).join("; ")};
}`}function GPe({selector:e,layout:t={},viewportOverrides:o,parentLayout:r={},includeContainerQuery:n=!0}){let i=o!==void 0,s=i?{...t,...o}:t,a=k=>Object.hasOwn(o||{},k),{selfStretch:l,flexSize:u,columnStart:d,rowStart:f,columnSpan:p,rowSpan:h}=s,m=t.selfStretch,{columnCount:g,minimumColumnWidth:b}=r,v=[],y={};if((!i||a("selfStretch")||a("flexSize"))&&(i&&(l===zh.fit||l===zh.grow)&&zPe(m)&&t.flexSize&&(y["flex-basis"]="unset",m===zh.fixed&&(y["flex-shrink"]="unset")),zPe(l)&&u?(y["flex-basis"]=u,l===zh.fixed?y["flex-shrink"]="0":i&&m===zh.fixed&&(y["flex-shrink"]="unset"),y["box-sizing"]="border-box"):l===zh.grow&&(y["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(d&&p?y["grid-column"]=`${d} / span ${p}`:d?y["grid-column"]=`${d}`:p&&(y["grid-column"]=`span ${p}`)),(!i||a("rowStart")||a("rowSpan"))&&(f&&h?y["grid-row"]=`${f} / span ${h}`:f?y["grid-row"]=`${f}`:h&&(y["grid-row"]=`span ${h}`)),Object.keys(y).length&&v.push({selector:e,declarations:y}),n&&!i&&(p||d)&&(b||!g)){let k=parseFloat(b);isNaN(k)&&(k=12);let S=b?.replace(k,"");["px","rem","em"].includes(S)||(S="rem");let _=2;p&&d?_=p+d-1:p?_=p:_=d;let x=S==="px"?24:1.5,w=_*k+(_-1)*x,T=k*2+x-1,R=p&&p>1?"1/-1":"auto";v.push({rulesGroup:`@container (max-width: ${Math.max(w,T)}${S})`,selector:e,declarations:{"grid-column":R,"grid-row":"auto"}})}return v}function ket({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return GPe({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=UPe(n);return n.rulesGroup?`${n.rulesGroup} {
${i}
}`:i}).join("")}function _et({style:e={},selector:t,parentLayout:o={},viewportSettings:r}){let n=e?.layout??{};return Object.entries(bet(r)).map(([i,s])=>{let a=To(e,{viewport:i,pseudo:Js.pseudo})?.layout;if(!a||!Object.keys(a).length)return"";let u=GPe({selector:t,layout:n,viewportOverrides:a,parentLayout:o,includeContainerQuery:!1}).map(UPe).join("");return u?`${s}{${u}}`:""}).filter(Boolean).join("")}function xet({style:e}){let{shouldRenderChildLayoutStyles:t,viewportSettings:o}=(0,K5.useSelect)(p=>{let h=p(C).getSettings();return{shouldRenderChildLayoutStyles:!h.disableLayoutStyles,viewportSettings:h?.__experimentalFeatures?.viewport}}),r=e?.layout??{},{columnStart:n,rowStart:i,columnSpan:s,rowSpan:a}=r,l=yg()||{},u=(0,jPe.useInstanceId)(yet),d=`.wp-container-content-${u}`,f="";if(t&&(f=[ket({selector:d,layout:r,parentLayout:l}),_et({style:e,selector:d,parentLayout:l,viewportSettings:o})].join("")),el({css:f}),!!f)return{className:`wp-container-content-${u}`}}function wet({clientId:e,style:t,setAttributes:o}){let r=yg()||{},{type:n="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return n!=="grid"?null:(0,Hf.jsx)(Cet,{clientId:e,style:t,setAttributes:o,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})}function Cet({clientId:e,style:t,setAttributes:o,allowSizingOnChildren:r,isManualPlacement:n,parentLayout:i}){let{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:u,deviceType:d,viewportSettings:f,isChildBlockAGrid:p}=(0,K5.useSelect)(R=>{let{getBlockRootClientId:B,getBlockEditingMode:I,getTemplateLock:O,getBlockAttributes:P,getSettings:A}=R(C),M=B(e);if(O(M)||I(M)!=="default")return{rootClientId:M,isVisible:!1};let z=P(M),V=P(e),L=A(),D=L?.[wa]?.toLowerCase()||io.desktop.key;return{rootClientId:M,isVisible:!0,parentBlockVisibility:z?.metadata?.blockVisibility,blockBlockVisibility:V?.metadata?.blockVisibility,deviceType:D,viewportSettings:L?.__experimentalFeatures?.viewport,isChildBlockAGrid:V?.layout?.type==="grid"}},[e]),m=Mt(e)?.ownerDocument?.defaultView,g=m===null?void 0:m,{isBlockCurrentlyHidden:b,currentViewport:v}=Ma({blockVisibility:l,deviceType:d,view:g,viewportSettings:f}),y=(0,K5.useSelect)(R=>{if(!s)return!1;let{isBlockParentHiddenAtViewport:B}=H(R(C));return B(s,v)},[s,v]),{isBlockCurrentlyHidden:k}=Ma({blockVisibility:u,deviceType:d,view:g,viewportSettings:f}),[S,_]=(0,HPe.useState)(),x=p?e:void 0;if(!a||b||y)return null;let w=r&&!k;function T(R){o({style:{...t,layout:{...t?.layout,...R}}})}return(0,Hf.jsxs)(Hf.Fragment,{children:[(0,Hf.jsx)(F1,{clientId:s,contentRef:_,parentLayout:i,childGridClientId:x}),w&&(0,Hf.jsx)(QK,{clientId:e,bounds:S,onChange:T,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,Hf.jsx)(JK,{layout:t?.layout,parentLayout:i,onChange:T,gridClientId:s,blockClientId:e})]})}var tY={useBlockProps:xet,edit:wet,attributeKeys:["style"],hasSupport(){return!0}};var rY=c(bo(),1),oY=c(ce(),1),WPe="metadata";function Eet(e){return e?.attributes?.[WPe]?.type||(e.attributes={...e.attributes,[WPe]:{type:"object"}}),e}function Tet(e,t,o,r){if(r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length)return e;let n=t[o]?.attributes?.metadata;if(!n)return e;let i={};return n.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=n.noteId),n.name&&!e.attributes?.metadata?.name&&(0,oY.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,oY.hasBlockSupport)(e.name,"visibility",!0)&&(i.blockVisibility=n.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}(0,rY.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",Eet);(0,rY.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",Tet);var nY=c(G(),1),Y5=c(F(),1),q5=c(U(),1),Z5=c(ce(),1),hx=c(Q(),1);var jh=c(E(),1),Ret={};function Bet({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,hx.useSelect)(h=>h(Z5.store).getBlockTypes(),[]),n=(0,Y5.useMemo)(()=>r?.filter(({name:h,blockHooks:m})=>m&&e in m||o.includes(h)),[r,e,o]),i=(0,hx.useSelect)(h=>{let{getBlocks:m,getBlockRootClientId:g,getGlobalBlockCount:b}=h(C),v=g(t),y=n.reduce((k,S)=>{if(b(S.name)===0)return k;let _=S?.blockHooks?.[e],x;switch(_){case"before":case"after":x=m(v);break;case"first_child":case"last_child":x=m(t);break;case void 0:x=[...m(v),...m(t)];break}let w=x?.find(T=>T.name===S.name);return w?{...k,[S.name]:w.clientId}:k},{});return Object.values(y).length>0?y:Ret},[n,e,t]),{getBlockIndex:s,getBlockCount:a,getBlockRootClientId:l}=(0,hx.useSelect)(C),{insertBlock:u,removeBlock:d}=(0,hx.useDispatch)(C);if(!n.length)return null;let f=n.reduce((h,m)=>{let[g]=m.name.split("/");return h[g]||(h[g]=[]),h[g].push(m),h},{}),p=(h,m)=>{let g=s(t),b=a(t),v=l(t);switch(m){case"before":case"after":u(h,m==="after"?g+1:g,v,!1);break;case"first_child":case"last_child":u(h,m==="first_child"?0:b,t,!1);break;case void 0:u(h,g+1,v,!1);break}};return(0,jh.jsx)(Oe,{children:(0,jh.jsxs)(q5.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,nY.__)("Plugins"),initialOpen:!0,children:[(0,jh.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,nY.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(f).map(h=>(0,jh.jsxs)(Y5.Fragment,{children:[(0,jh.jsx)("h3",{children:h}),f[h].map(m=>{let g=m.name in i;return(0,jh.jsx)(q5.ToggleControl,{checked:g,label:m.title,onChange:()=>{if(!g){let b=m.blockHooks[e];p((0,Z5.createBlock)(m.name),b);return}d(i[m.name],!1)}},m.title)})]},h))]})})}var $Pe={edit:Bet,attributeKeys:["metadata"],hasSupport(){return!0}};var iY=c(G(),1),KPe=c(ce(),1),gx=c(U(),1),YPe=c(Q(),1),qPe=c(F(),1),ZPe=c(fe(),1);var Hh=c(E(),1),Pet=()=>(0,ZPe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},Iet=({name:e,metadata:t})=>{let o=(0,qPe.useContext)(kn),{removeAllBlockBindings:r}=yd(),n=Pet(),{bindableAttributes:i,hasCompatibleFields:s}=(0,YPe.useSelect)(l=>{let{__experimentalBlockBindingsSupportedAttributes:u}=l(C).getSettings(),{getAllBlockBindingsSources:d,getBlockBindingsSourceFieldsList:f}=H(l(KPe.store));return{bindableAttributes:u?.[e],hasCompatibleFields:Object.values(d()).some(p=>f(p,o)?.length>0)}},[e,o]);if(!i||i.length===0)return null;let{bindings:a}=t||{};return a===void 0&&!s?null:(0,Hh.jsx)(Oe,{group:"bindings",children:(0,Hh.jsxs)(gx.__experimentalToolsPanel,{label:(0,iY.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:n,className:"block-editor-bindings__panel",children:[(0,Hh.jsx)(gx.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:i.map(l=>(0,Hh.jsx)(Vw,{attribute:l,blockName:e,binding:a?.[l]},l))}),(0,Hh.jsx)(gx.__experimentalText,{as:"div",variant:"muted",children:(0,Hh.jsx)("p",{children:(0,iY.__)("Attributes connected to custom fields or other dynamic data.")})})]})})},XPe={edit:Iet,attributeKeys:["metadata"],hasSupport(e){return!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)}};var QPe=c(G(),1),JPe=c(U(),1),J5=c(Q(),1),eF=c(ce(),1),eIe=c(F(),1);var X5=c(Q(),1);function Q5(e){let{isOpened:t,expandRevision:o}=(0,X5.useSelect)(i=>{let{isListViewPanelOpened:s,getListViewExpandRevision:a}=H(i(C));return{isOpened:s(e),expandRevision:a()}},[e]),{__unstableToggleListViewPanel:r}=(0,X5.useDispatch)(C);return{isOpened:t,expandRevision:o,handleToggle:i=>{r(e,i)}}}var bx=c(E(),1),Oet="listView";function Aet(e){return(0,eF.hasBlockSupport)(e,Oet)}function Let({clientId:e,name:t}){let{isSelectionWithinCurrentSection:o}=(0,eIe.useContext)(Dn),{isOpened:r,expandRevision:n,handleToggle:i}=Q5(e),{openListViewContentPanel:s}=H((0,J5.useDispatch)(C)),{isEnabled:a,hasChildren:l,isNestedListView:u}=(0,J5.useSelect)(h=>{let{getBlockCount:m,getBlockParents:g,shouldRenderBlockListView:b}=H(h(C)),y=g(e,!1).find(k=>b(k));return{isEnabled:b(e),hasChildren:!!m(e),isNestedListView:y}},[e]),f=(0,eF.getBlockType)(t)?.title||t;return!a||u?null:(0,bx.jsx)(Tb,{group:"list",children:(0,bx.jsxs)(JPe.PanelBody,{title:o?f:void 0,opened:r,onToggle:i,children:[!l&&(0,bx.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,QPe.__)("No items yet.")}),(0,bx.jsx)(yE,{rootClientId:e,isExpanded:!0,description:f,showAppender:!0,onSelect:s},`${e}-${n}`)]})})}var tIe={edit:Let,hasSupport:Aet,attributeKeys:[],supportsPatternEditing:!0};var oIe=c(bo(),1),rIe=c(ce(),1);function Net(e){return e.__experimentalLabel||(0,rIe.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(o,{context:r})=>{let{metadata:n}=o;if((r==="list-view"||r==="breadcrumb")&&n?.name)return n.name}),e}(0,oIe.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",Net);var nIe=c(fe(),1),iIe=c(bo(),1),sY=c(Q(),1);var Pl=c(E(),1);function Met(e){eY(e)}function Det({clientId:e,layout:t}){let{isVisible:o,blockVisibility:r,deviceType:n,viewportSettings:i}=(0,sY.useSelect)(p=>{let{isBlockSelected:h,hasSelectedInnerBlock:m,isDraggingBlocks:g,getTemplateLock:b,getBlockEditingMode:v,getBlockAttributes:y,getSettings:k}=p(C);if(!g()&&!h(e)||b(e)||v(e)!=="default"||m(e))return{isVisible:!1};let S=y(e),_=k(),x=_?.[wa]?.toLowerCase()||io.desktop.key;return{isVisible:!0,blockVisibility:S?.metadata?.blockVisibility,deviceType:x,viewportSettings:_?.__experimentalFeatures?.viewport}},[e]),a=Mt(e)?.ownerDocument?.defaultView,l=a===null?void 0:a,{isBlockCurrentlyHidden:u,currentViewport:d}=Ma({blockVisibility:r,deviceType:n,view:l,viewportSettings:i}),f=(0,sY.useSelect)(p=>{if(!o)return!1;let{isBlockParentHiddenAtViewport:h}=H(p(C));return h(e,d)},[e,d,o]);return(0,Pl.jsxs)(Pl.Fragment,{children:[(0,Pl.jsx)(Met,{clientId:e}),o&&!u&&!f&&(0,Pl.jsx)(F1,{clientId:e,parentLayout:t})]})}var Vet=(0,nIe.createHigherOrderComponent)(e=>function(o){return o.attributes.layout?.type!=="grid"?(0,Pl.jsx)(e,{...o},"edit"):(0,Pl.jsxs)(Pl.Fragment,{children:[(0,Pl.jsx)(Det,{clientId:o.clientId,layout:o.attributes.layout}),(0,Pl.jsx)(e,{...o},"edit")]})},"addGridVisualizerToBlockEdit");(0,iIe.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",Vet);var U1=c(ce(),1),aIe=c(U(),1),lIe=c(Q(),1);var oF=c(F(),1),cIe=c(G(),1);function sIe(e){let t=[],o=[];return Object.entries(e).forEach(([r,n])=>{if(!n.autoGenerateControl)return;let i=Fet(r,n);i&&(t.push(i),o.push(r))}),{fields:t,form:{fields:o}}}function Fet(e,t){let o=t.type,r={id:e,label:t.label||e,type:o==="string"?"text":o};return t.enum&&Array.isArray(t.enum)&&(r.elements=t.enum.map(n=>({value:n,label:String(n)}))),r}var tF=c(E(),1);function zet(e){return e?Object.values(e).some(t=>t?.autoGenerateControl):!1}function jet({name:e,clientId:t,setAttributes:o}){let r=Cr(),n=(0,oF.useContext)(kn),i=(0,lIe.useSelect)(u=>{let d=u(C).getBlockAttributes(t);if(!d?.metadata?.bindings)return d;let{getBlockBindingsSource:f}=H(u(U1.store));return Object.entries(d.metadata.bindings).reduce((p,[h,m])=>{let g=f(m.source);if(!g)return p;let b=g.getValues({select:u,context:n,bindings:{[h]:m}});return{...p,...b}},d)},[n,t]),s=(0,U1.getBlockType)(e),{fields:a,form:l}=(0,oF.useMemo)(()=>s?.attributes?sIe(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return r!=="default"||!a||a.length===0?null:(0,tF.jsx)(Oe,{children:(0,tF.jsx)(aIe.PanelBody,{title:(0,cIe.__)("Settings"),children:(0,tF.jsx)(R1,{data:i,fields:a,form:l,onChange:o})})})}var uIe={edit:jet,attributeKeys:[],hasSupport(e){let t=(0,U1.getBlockType)(e);return zet(t?.attributes)}};function rF(e){let{style:t}=e,o=t?.dimensions||{},r=ga({dimensions:o});return{className:o.aspectRatio?"has-aspect-ratio":void 0,style:r}}function nF(e){let t=e.style?.border||{};return{className:u$(e)||void 0,style:ga({border:t})}}function aY(e){let{colors:t}=Ym(),o=nF(e),{borderColor:r}=e;if(r){let n=gy({colors:t,namedColor:r});o.style.borderColor=n.color}return o}function lY(e){let t=e.style?.shadow||"";return{style:ga({shadow:t})}}var cY=c(F(),1);function iF(e){let{backgroundColor:t,textColor:o,gradient:r,style:n}=e,i=xa("background-color",t),s=xa("color",o),a=gv(r),l=a||n?.color?.gradient,u=$(s,a,{[i]:!l&&!!i,"has-text-color":o||n?.color?.text,"has-background":t||n?.color?.background||r||n?.color?.gradient,"has-link-color":n?.elements?.link?.color}),d=n?.color||{},f=ga({color:d});return{className:u||void 0,style:f}}function uY(e){let{backgroundColor:t,textColor:o,gradient:r}=e,[n,i,s,a,l,u]=Le("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=(0,cY.useMemo)(()=>[...n||[],...i||[],...s||[]],[n,i,s]),f=(0,cY.useMemo)(()=>[...a||[],...l||[],...u||[]],[a,l,u]),p=iF(e);if(t){let h=zc(d,t);p.style.backgroundColor=h.color}if(r&&(p.style.background=WB(f,r)),o){let h=zc(d,o);p.style.color=h.color}return p}function dY(e){let{style:t}=e,o=t?.spacing||{};return{style:ga({spacing:o})}}var dIe=c(U(),1);var{kebabCase:Het}=H(dIe.privateApis);function fY(e,t){let o=e?.style?.typography||{};o={...o,fontSize:ld({size:e?.style?.typography?.fontSize},t)};let r=ga({typography:o}),n=e?.fontFamily?`has-${Het(e.fontFamily)}-font-family`:"",i=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:$(n,i,gp(e?.fontSize)),style:r}}var sF=c(F(),1);function pY(e){let[t,o]=(0,sF.useState)(e);return(0,sF.useEffect)(()=>{e&&o(e)},[e]),t}y1e([vV,oV,tK,NK,L5,V5,WK,nV,_9,OPe,$Pe,XPe,tY,z1e,ePe,tIe,uIe].filter(Boolean));v1e([vV,oV,aEe,L5,g$,uPe,WK,v$,k$,nV,d$,V5,_9,GCe,tY]);S1e([vV,oV,tK,U1e,NK,d$,V5,nV,g$,L5,v$,k$]);var fIe={button:"wp-element-button",caption:"wp-element-caption"},Uet=e=>fIe[e]?fIe[e]:"";var pIe=()=>"";var yx=c(F(),1),G1=c(ce(),1),hY=c($o(),1);var mIe=c(E(),1);function gY(e,t,o){if(e==null||e===!1)return;if(Array.isArray(e))return mY(e,t,o);switch(typeof e){case"string":case"number":return}let{type:r,props:n}=e;switch(r){case yx.StrictMode:case yx.Fragment:return mY(n.children,t,o);case yx.RawHTML:return;case UC.Content:return hIe(t,o);case VE:t.push(n.value);return}switch(typeof r){case"string":return typeof n.children<"u"?mY(n.children,t,o):void 0;case"function":let i=r.prototype&&typeof r.prototype.render=="function"?new r(n).render():r(n);return gY(i,t,o)}}function mY(e,...t){e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++)gY(e[o],...t)}function hIe(e,t){for(let o=0;o<t.length;o++){let{name:r,attributes:n,innerBlocks:i}=t[o],s=(0,G1.getSaveElement)(r,n,(0,mIe.jsx)(UC.Content,{}));gY(s,e,i)}}function gIe(e=[]){G1.__unstableGetBlockProps.skipFilters=!0;let t=[];return hIe(t,e),G1.__unstableGetBlockProps.skipFilters=!1,t.map(o=>o instanceof hY.RichTextData?o:hY.RichTextData.fromHTMLString(o))}var bIe=c(U(),1);var bY=c(E(),1);function yIe({clientId:e,resizableBoxProps:t,...o}){return(0,bY.jsx)(Xa,{clientId:e,__unstablePopoverSlot:"block-toolbar",...o,children:(0,bY.jsx)(bIe.ResizableBox,{...t})})}var $1=c(F(),1),aF=c(Q(),1),Dc=c(U(),1),W1=c(G(),1);var Il=c(E(),1);function vIe({rules:e}){let[t,o]=(0,$1.useState)(!1),{clientIds:r,selectPrevious:n,message:i}=(0,aF.useSelect)(m=>H(m(C)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=H((0,aF.useDispatch)(C));if((0,$1.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,$1.useEffect)(()=>{o(!1)},[r]),!i)return;let u=typeof i=="object"&&i!==null,d=u?i.description:i,f=u&&i.requireConfirmation,p=f&&!t,h=()=>{l(r,n,!0),s()};return(0,Il.jsx)(Dc.Modal,{title:(0,W1.__)("Confirm deletion"),onRequestClose:s,size:"medium",children:(0,Il.jsxs)(Dc.__experimentalVStack,{spacing:4,children:[(0,Il.jsxs)("div",{children:[(0,Il.jsx)("p",{children:d}),u&&(i.warning||i.subtext)&&(0,Il.jsxs)("p",{children:[i.warning&&(0,Il.jsx)("strong",{children:i.warning}),i.warning&&i.subtext&&" ",i.subtext]})]}),f&&(0,Il.jsx)(Dc.CheckboxControl,{label:(0,W1.__)("I understand the consequences"),checked:t,onChange:o}),(0,Il.jsxs)(Dc.__experimentalHStack,{justify:"right",children:[(0,Il.jsx)(Dc.Button,{variant:"tertiary",onClick:s,__next40pxDefaultSize:!0,children:(0,W1.__)("Cancel")}),(0,Il.jsx)(Dc.Button,{variant:"primary",onClick:h,disabled:p,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,W1.__)("Delete")})]})]})})}var yY=c(F(),1);var vx=c(U(),1),kIe=c(F(),1),Ms=c(G(),1),lF=c(E(),1),SIe=[{value:"fill",label:(0,Ms._x)("Fill","Scale option for dimensions control"),help:(0,Ms.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,Ms._x)("Contain","Scale option for dimensions control"),help:(0,Ms.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,Ms._x)("Cover","Scale option for dimensions control"),help:(0,Ms.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,Ms._x)("None","Scale option for dimensions control"),help:(0,Ms.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,Ms._x)("Scale down","Scale option for dimensions control"),help:(0,Ms.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function _Ie({panelId:e,value:t,onChange:o,options:r=SIe,defaultValue:n=SIe[0].value,isShownByDefault:i=!0}){let s=t??n,a=(0,kIe.useMemo)(()=>r.reduce((l,u)=>(l[u.value]=u.help,l),{}),[r]);return(0,lF.jsx)(vx.__experimentalToolsPanelItem,{label:(0,Ms._x)("Scale","Image scaling options"),isShownByDefault:i,hasValue:()=>s!==n,onDeselect:()=>o(n),panelId:e,children:(0,lF.jsx)(vx.__experimentalToggleGroupControl,{label:(0,Ms._x)("Scale","Image scaling options"),isBlock:!0,help:a[s],value:s,onChange:o,children:r.map(l=>(0,lF.jsx)(vx.__experimentalToggleGroupControlOption,{...l},l.value))})})}var Sx=c(U(),1),Ny=c(G(),1),Uf=c(E(),1);function xIe({panelId:e,value:t={},onChange:o=()=>{},units:r,isShownByDefault:n=!0}){let i=t.width==="auto"?"":t.width??"",s=t.height==="auto"?"":t.height??"",a=l=>u=>{let d={...t};u?d[l]=u:delete d[l],o(d)};return(0,Uf.jsxs)(Uf.Fragment,{children:[(0,Uf.jsx)(Sx.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Ny.__)("Width"),isShownByDefault:n,hasValue:()=>i!=="",onDeselect:a("width"),panelId:e,children:(0,Uf.jsx)(Sx.__experimentalUnitControl,{label:(0,Ny.__)("Width"),placeholder:(0,Ny.__)("Auto"),labelPosition:"top",units:r,min:0,value:i,onChange:a("width")})}),(0,Uf.jsx)(Sx.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Ny.__)("Height"),isShownByDefault:n,hasValue:()=>s!=="",onDeselect:a("height"),panelId:e,children:(0,Uf.jsx)(Sx.__experimentalUnitControl,{label:(0,Ny.__)("Height"),placeholder:(0,Ny.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:a("height")})})]})}var Uh=c(E(),1);function Get({panelId:e,value:t={},onChange:o=()=>{},aspectRatioOptions:r,defaultAspectRatio:n="auto",scaleOptions:i,defaultScale:s="cover",unitsOptions:a,tools:l=["aspectRatio","widthHeight","scale"]}){let u=t.width===void 0||t.width==="auto"?null:t.width,d=t.height===void 0||t.height==="auto"?null:t.height,f=t.aspectRatio===void 0||t.aspectRatio==="auto"?null:t.aspectRatio,p=t.scale===void 0?null:t.scale,[h,m]=(0,yY.useState)(p),[g,b]=(0,yY.useState)(f),y=!!(u&&d)?"custom":f,k=f||u&&d;return(0,Uh.jsxs)(Uh.Fragment,{children:[l.includes("aspectRatio")&&(0,Uh.jsx)(SD,{panelId:e,options:r,defaultValue:n,value:y,onChange:S=>{let _={...t};S=S==="auto"?null:S,b(S),S?_.aspectRatio=S:delete _.aspectRatio,S?h?_.scale=h:(_.scale=s,m(s)):delete _.scale,S!=="custom"&&u&&d&&delete _.height,o(_)}}),l.includes("widthHeight")&&(0,Uh.jsx)(xIe,{panelId:e,units:a,value:{width:u,height:d},onChange:({width:S,height:_})=>{let x={...t};S=S==="auto"?null:S,_=_==="auto"?null:_,S?x.width=S:delete x.width,_?x.height=_:delete x.height,S&&_?delete x.aspectRatio:g&&(x.aspectRatio=g),!g&&!!S!=!!_?delete x.scale:h?x.scale=h:(x.scale=s,m(s)),o(x)}}),l.includes("scale")&&k&&(0,Uh.jsx)(_Ie,{panelId:e,options:i,defaultValue:s,value:h,onChange:S=>{let _={...t};m(S),S?_.scale=S:delete _.scale,o(_)}})]})}var wIe=Get;var cF=c(U(),1),Gf=c(G(),1),vY=c(E(),1),CIe=[{label:(0,Gf._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,Gf._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,Gf._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,Gf._x)("Full Size","Image size option for resolution control"),value:"full"}];function EIe({panelId:e,value:t,onChange:o,options:r=CIe,defaultValue:n=CIe[0].value,isShownByDefault:i=!0,resetAllFilter:s}){let a=t??n;return(0,vY.jsx)(cF.__experimentalToolsPanelItem,{hasValue:()=>a!==n,label:(0,Gf.__)("Resolution"),onDeselect:()=>o(n),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,vY.jsx)(cF.SelectControl,{label:(0,Gf.__)("Resolution"),value:a,options:r,onChange:o,help:(0,Gf.__)("Select the size of the source image.")})})}var My=c(G(),1),kx=c(U(),1),RIe=c(Q(),1);var Vc=c(G(),1),TIe={a:(0,Vc.__)("The <a> element should be used for links that navigate to a different page or to a different section within the same page."),article:(0,Vc.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Vc.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,Vc.__)("The <button> element should be used for interactive controls that perform an action on the current page, such as opening a modal or toggling content visibility."),div:(0,Vc.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,Vc.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,Vc.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Vc.__)("The <main> element should be used for the primary content of your document only."),nav:(0,Vc.__)("The <nav> element should be used to identify groups of links that are intended to be used for website or page content navigation."),section:(0,Vc.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};var K1=c(E(),1);function BIe({tagName:e,onChange:t,clientId:o,options:r=[{label:(0,My.__)("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"}]}){let n=!!o&&r.some(a=>a.value==="main"),i=(0,RIe.useSelect)(a=>{if(!n)return!1;let{getClientIdsWithDescendants:l,getBlockAttributes:u}=a(C);return l().some(d=>d===o?!1:u(d)?.tagName==="main")},[o,n]),s=r.map(a=>a.value==="main"&&i&&e!=="main"?{...a,disabled:!0,label:(0,My.sprintf)((0,My.__)("%s (Already in use)"),a.label)}:a);return(0,K1.jsxs)(kx.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,K1.jsx)(kx.SelectControl,{label:(0,My.__)("HTML element"),options:s,value:e,onChange:t,help:TIe[e]}),e==="main"&&i&&(0,K1.jsx)(kx.Notice,{status:"warning",isDismissible:!1,children:(0,My.__)("Multiple <main> elements detected. The duplicate may be in your content or template. This is not valid HTML and may cause accessibility issues. Please change this HTML element.")})]})}var Wf=c(U(),1);var _x=c(F(),1),uF=c(G(),1);var Ds=c(U(),1);var PIe=c(Rt(),1);var ya=c(E(),1),{Badge:Wet}=H(Ds.privateApis);function IIe({title:e,url:t,image:o,badges:r}){return(0,ya.jsxs)(Ds.__experimentalHStack,{justify:"space-between",alignment:"top",children:[(0,ya.jsx)(Ds.FlexItem,{className:"link-preview-button__content",children:(0,ya.jsxs)(Ds.__experimentalHStack,{alignment:"top",children:[o&&(0,ya.jsx)(Ds.FlexItem,{className:"link-preview-button__image-container",children:(0,ya.jsx)("img",{className:"link-preview-button__image",src:o,alt:""})}),(0,ya.jsxs)(Ds.__experimentalVStack,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,ya.jsx)(Ds.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__title",children:(0,PIe.__unstableStripHTML)(e)}),t&&(0,ya.jsx)(Ds.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,ya.jsx)(Ds.__experimentalHStack,{className:"link-preview-button__badges",alignment:"left",children:r.map(n=>(0,ya.jsx)(Wet,{intent:n.intent,children:n.label},`${n.label}|${n.intent}`))})]})]})}),(0,ya.jsx)(gt,{icon:cn,className:"link-preview-button__icon"})]})}var va=c(E(),1);function SY({preview:e,onSelect:t,suggestionsQuery:o,label:r,help:n}){let[i,s]=(0,_x.useState)(!1),a=(0,_x.useId)(),l=`link-picker-title-${a}`,u=`link-picker-description-${a}`,d=(0,_x.useRef)(null),{baseControlProps:f,controlProps:p}=(0,Wf.useBaseControlProps)({help:n}),h=m=>{if(s(!1),m){let g={url:m.url,kind:m.kind,type:m.type,id:m.id,title:m.title};t(g)}};return(0,va.jsxs)(Wf.BaseControl,{...f,children:[(0,va.jsx)(Wf.BaseControl.VisualLabel,{children:r}),(0,va.jsxs)(Wf.Button,{ref:d,onClick:()=>s(!i),"aria-haspopup":"dialog","aria-expanded":i,"aria-describedby":p["aria-describedby"],variant:"secondary",__next40pxDefaultSize:!0,className:"link-preview-button",children:[r&&(0,va.jsxs)(bt,{children:[r,":"]}),(0,va.jsx)(IIe,{title:e.title||(0,uF.__)("Add link"),url:e.url,image:e.image,badges:e.badges})]}),i&&(0,va.jsx)(Wf.Popover,{anchor:d.current,onClose:()=>s(!1),placement:"left-start",offset:36,shift:!0,children:(0,va.jsxs)("div",{role:"dialog","aria-labelledby":l,"aria-describedby":u,children:[(0,va.jsxs)(bt,{children:[(0,va.jsx)("h2",{id:l,children:(0,uF.__)("Select a link")}),(0,va.jsx)("p",{id:u,children:(0,uF.__)("Search for and add a link to the navigation item.")})]}),(0,va.jsx)(eh,{value:null,onChange:h,suggestionsQuery:o,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})}var td=c(F(),1),dF=c(Q(),1),OIe=c(Rt(),1);var xx=c(E(),1),kY="wp-inner-block-slot",$et={type:"default",alignments:[]};function AIe({clientId:e}){let{innerContent:t,order:o,selectedClientIds:r}=(0,dF.useSelect)(l=>{let{getBlock:u,getBlockOrder:d,getSelectedBlockClientIds:f}=l(C);return{innerContent:u(e)?.innerContent,order:d(e),selectedClientIds:f()}},[e]),n=(0,td.useMemo)(()=>{let l=0;return(t??[]).map(u=>u===null?`<${kY} data-slot-index="${l++}" style="display: contents"></${kY}>`:u).join("")},[t]),i=(0,td.useRef)(),[s,a]=(0,td.useState)([]);return(0,td.useLayoutEffect)(()=>{let l=i.current;l.innerHTML=(0,OIe.safeHTML)(n),a(Array.from(l.querySelectorAll(kY)).sort((u,d)=>Number(u.dataset.slotIndex)-Number(d.dataset.slotIndex)))},[n]),(0,xx.jsxs)(cP,{value:$et,children:[(0,xx.jsx)("div",{ref:i,className:"block-editor-inner-content",style:{display:"contents"}}),o.map((l,u)=>s[u]?(0,td.createPortal)((0,xx.jsx)(dF.AsyncModeProvider,{value:!r.includes(l),children:(0,xx.jsx)(gI,{rootClientId:e,clientId:l})}),s[u],l):null)]})}var _Y={};$Y(_Y,{...n$,ExperimentalBlockCanvas:aG,BlockCanvasCover:fN,ExperimentalBlockEditorProvider:ES,getDuotoneFilter:N5,getRichTextValues:gIe,PrivateQuickInserter:E2,extractWords:qB,getNormalizedSearchTerms:Ow,normalizeString:Iw,PrivateListView:yE,ResizableBoxPopover:yIe,InspectorControlsLastItem:fV,useHasBlockToolbar:UL,cleanEmptyObject:Ge,getStyleForState:To,isDefaultBlockStyleState:Tn,setStyleForState:Rn,usePrivateStyleOverride:Tc,BlockQuickNavigation:cV,LayoutStyle:sQ,BlockManager:kV,BlockRemovalWarningModal:vIe,useLayoutClasses:H5,useLayoutStyles:ZK,DimensionsTool:wIe,ResolutionTool:EIe,TabbedSidebar:k2,TextAlignmentControl:fD,usesContextKey:CW,useFlashEditableBlocks:aI,HTMLElementControl:BIe,useZoomOut:LC,globalStylesDataKey:os,globalStylesLinksDataKey:Uy,selectBlockPatternsKey:qf,requiresWrapperOnCopy:Ij,PrivateRichText:FE,PrivateInserterLibrary:D$,reusableBlocksSelectKey:cT,userPatternCategoriesSelectKey:id,PrivateBlockPopover:Sb,PrivatePublishDateTimePicker:W$,useSpacingSizes:ZM,useBlockDisplayTitle:zn,BlockStyleVariationOverridesWithConfig:s$,setBackgroundStyleDefaults:KD,sectionRootClientIdKey:Zf,NoteIconSlotFill:vL,NoteIconToolbarSlotFill:ML,mediaEditKey:uT,getMediaSelectKey:dT,deviceTypeKey:wa,isIsolatedEditorKey:Xf,isNavigationOverlayContextKey:fT,isNavigationPostEditorKey:lq,mediaUploadOnSuccessKey:Ix,mediaSideloadFromUrlKey:cq,openMediaEditorModalKey:uq,useBlockElement:Mt,useBlockElementRef:_g,LinkPicker:SY,useRemoteUrlData:xM,PrivateBlockContext:Dn,useListViewPanelState:Q5,isHashLink:$h,isRelativePath:Kh,InnerContent:AIe});return $Ie(Ket);})();
/*! Bundled license information:
autosize/dist/autosize.js:
(*!
autosize 4.0.2
license: MIT
http://www.jacklmoore.com/autosize
*)
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
(**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
(**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
normalize-wheel/src/isEventSupported.js:
(**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*)
is-plain-object/dist/is-plain-object.mjs:
(*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*)
*/