File: //wordpress/core/beta/wp-includes/js/dist/block-editor.min.js
/*! This file is auto-generated */
"use strict";var wp;(wp||={}).blockEditor=(()=>{var zIe=Object.create;var X1=Object.defineProperty;var jIe=Object.getOwnPropertyDescriptor;var HIe=Object.getOwnPropertyNames;var UIe=Object.getPrototypeOf,GIe=Object.prototype.hasOwnProperty;var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Or=(e,t)=>{for(var o in t)X1(e,o,{get:t[o],enumerable:!0})},TY=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of HIe(t))!GIe.call(e,n)&&n!==o&&X1(e,n,{get:()=>t[n],enumerable:!(r=jIe(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?zIe(UIe(e)):{},TY(t||!e||!e.__esModule?X1(o,"default",{value:e,enumerable:!0}):o,e)),WIe=e=>TY(X1({},"__esModule",{value:!0}),e);var ue=Se((Zet,BY)=>{BY.exports=window.wp.blocks});var F=Se((Xet,PY)=>{PY.exports=window.wp.element});var Q=Se((Qet,IY)=>{IY.exports=window.wp.data});var fe=Se((Jet,OY)=>{OY.exports=window.wp.compose});var go=Se((ett,AY)=>{AY.exports=window.wp.hooks});var U=Se((itt,GY)=>{GY.exports=window.wp.components});var Bx=Se((stt,WY)=>{WY.exports=window.wp.privateApis});var Rt=Se((ptt,ZY)=>{ZY.exports=window.wp.deprecated});var E=Se((mtt,XY)=>{XY.exports=window.ReactJSXRuntime});var Fs=Se((gtt,JY)=>{JY.exports=window.wp.url});var G=Se((Ttt,sq)=>{sq.exports=window.wp.i18n});var Xh=Se((Rtt,aq)=>{"use strict";aq.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 pe=Se((Vtt,Sq)=>{Sq.exports=window.wp.primitives});var Ko=Se((ist,kq)=>{kq.exports=window.wp.richText});var xq=Se((sst,_q)=>{_q.exports=window.wp.blockSerializationDefaultParser});var nv=Se((cst,Cq)=>{Cq.exports=window.wp.styleEngine});var hB=Se((gst,Aq)=>{"use strict";var hAe=function(t){return gAe(t)&&!bAe(t)};function gAe(e){return!!e&&typeof e=="object"}function bAe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||SAe(e)}var yAe=typeof Symbol=="function"&&Symbol.for,vAe=yAe?Symbol.for("react.element"):60103;function SAe(e){return e.$$typeof===vAe}function kAe(e){return Array.isArray(e)?[]:{}}function hw(e,t){return t.clone!==!1&&t.isMergeableObject(e)?iv(kAe(e),e,t):e}function _Ae(e,t,o){return e.concat(t).map(function(r){return hw(r,o)})}function xAe(e,t){if(!t.customMerge)return iv;var o=t.customMerge(e);return typeof o=="function"?o:iv}function wAe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Iq(e){return Object.keys(e).concat(wAe(e))}function Oq(e,t){try{return t in e}catch{return!1}}function CAe(e,t){return Oq(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function EAe(e,t,o){var r={};return o.isMergeableObject(e)&&Iq(e).forEach(function(n){r[n]=hw(e[n],o)}),Iq(t).forEach(function(n){CAe(e,n)||(Oq(e,n)&&o.isMergeableObject(t[n])?r[n]=xAe(n,o)(e[n],t[n],o):r[n]=hw(t[n],o))}),r}function iv(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||_Ae,o.isMergeableObject=o.isMergeableObject||hAe,o.cloneUnlessOtherwiseSpecified=hw;var r=Array.isArray(t),n=Array.isArray(e),i=r===n;return i?r?o.arrayMerge(e,t,o):EAe(e,t,o):hw(t,o)}iv.all=function(t,o){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return iv(r,n,o)},{})};var TAe=iv;Aq.exports=TAe});var Qr=Se((Nat,FZ)=>{FZ.exports=window.wp.a11y});var as=Se((Dat,GZ)=>{GZ.exports=window.wp.notices});var fv=Se((Vat,WZ)=>{WZ.exports=window.wp.preferences});var RX=Se((Dlt,YB)=>{var CX={\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"},EX=Object.keys(CX).join("|"),xDe=new RegExp(EX,"g"),wDe=new RegExp(EX,"");function CDe(e){return CX[e]}var TX=function(e){return e.replace(xDe,CDe)},EDe=function(e){return!!e.match(wDe)};YB.exports=TX;YB.exports.has=EDe;YB.exports.remove=TX});var io=Se((Tut,xQ)=>{xQ.exports=window.wp.keycodes});var Tt=Se(($ut,DQ)=>{DQ.exports=window.wp.dom});var ce=Se((ddt,XQ)=>{XQ.exports=window.React});var JQ=Se((fdt,QQ)=>{"use strict";var xVe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";QQ.exports=xVe});var rJ=Se((pdt,oJ)=>{"use strict";var wVe=JQ();function eJ(){}function tJ(){}tJ.resetWarningCache=eJ;oJ.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:tJ,resetWarningCache:eJ};return o.PropTypes=o,o}});var iJ=Se((gdt,nJ)=>{nJ.exports=rJ()();var mdt,hdt});var aJ=Se((wP,sJ)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["module","exports"],t);else if(typeof wP<"u")t(sJ,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 cJ=Se((bdt,lJ)=>{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()})]};lJ.exports=CVe});var dJ=Se((ydt,uJ)=>{var $z=cJ();function EVe(e){var t=$z(e,"line-height"),o=parseFloat(t,10);if(t===o+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=$z(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=$z(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}uJ.exports=EVe});var pJ=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)}})(),Kz=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=ce(),Ww=iJ(),CP=aJ(),BVe=dJ(),PVe=BVe,fJ="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(fJ,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(fJ,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",Kz({},f,{onChange:this.onChange,style:h?Kz({},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:Ww.number,maxRows:Ww.number,onResize:Ww.func,innerRef:Ww.any,async:Ww.bool},t})(EP.Component);kd.TextareaAutosize=EP.forwardRef(function(e,t){return EP.createElement(IVe,Kz({},e,{innerRef:t}))})});var Yz=Se((Sdt,mJ)=>{"use strict";var OVe=pJ();mJ.exports=OVe.TextareaAutosize});var $w=Se((Cdt,SJ)=>{SJ.exports=window.wp.warning});var xd=Se((Udt,gee)=>{gee.exports=window.ReactDOM});var $l=Se((Eft,Qee)=>{Qee.exports=window.wp.keyboardShortcuts});var mte=Se((zpt,pte)=>{pte.exports=window.wp.htmlEntities});var Ere=Se(Cre=>{"use strict";var qv=ce();function B4e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var P4e=typeof Object.is=="function"?Object.is:B4e,I4e=qv.useState,O4e=qv.useEffect,A4e=qv.useLayoutEffect,L4e=qv.useDebugValue;function M4e(e,t){var o=t(),r=I4e({inst:{value:o,getSnapshot:t}}),n=r[0].inst,i=r[1];return A4e(function(){n.value=o,n.getSnapshot=t,K8(n)&&i({inst:n})},[e,o,t]),O4e(function(){return K8(n)&&i({inst:n}),e(function(){K8(n)&&i({inst:n})})},[e]),L4e(o),o}function K8(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!P4e(e,o)}catch{return!0}}function N4e(e,t){return t()}var D4e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?N4e:M4e;Cre.useSyncExternalStore=qv.useSyncExternalStore!==void 0?qv.useSyncExternalStore:D4e});var Y8=Se((Vyt,Tre)=>{"use strict";Tre.exports=Ere()});var Bre=Se(Rre=>{"use strict";var XI=ce(),V4e=Y8();function F4e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var z4e=typeof Object.is=="function"?Object.is:F4e,j4e=V4e.useSyncExternalStore,H4e=XI.useRef,U4e=XI.useEffect,G4e=XI.useMemo,W4e=XI.useDebugValue;Rre.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var i=H4e(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=G4e(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,z4e(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=j4e(e,i[0],i[1]);return U4e(function(){s.hasValue=!0,s.value=a},[a]),W4e(a),a}});var Ire=Se((zyt,Pre)=>{"use strict";Pre.exports=Bre()});var uae=Se((mIt,cae)=>{cae.exports=window.wp.theme});var Ule=Se((UAt,Hle)=>{Hle.exports=window.wp.uploadMedia});var aue=Se((ILt,t7)=>{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}};t7.exports=sue();t7.exports.createColors=sue});var o7=Se(()=>{});var OA=Se((LLt,uue)=>{"use strict";var lue=aue(),cue=o7(),mC=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=mC;mC.default=mC});var r7=Se((MLt,fue)=>{"use strict";var C8e=/(<)(\/?style\b)/gi,E8e=/(<)(!--)/g;function am(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 hC=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(am(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(am(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(am(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:am(l)),this.stringify(a,r!==s||n)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder(am("/*"+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(am(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:am(o))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(am(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=hC;hC.default=hC});var AA=Se((NLt,pue)=>{"use strict";var R8e=r7();function n7(e,t){new R8e(t).stringify(e)}pue.exports=n7;n7.default=n7});var LA=Se((DLt,i7)=>{"use strict";i7.exports.isClean=Symbol("isClean");i7.exports.my=Symbol("my")});var MA=Se((VLt,mue)=>{"use strict";var B8e=OA(),P8e=r7(),I8e=AA(),{isClean:gC,my:O8e}=LA();function s7(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=>s7(s,o)):(i==="object"&&n!==null&&(n=s7(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 bC=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[gC]=!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=s7(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[gC]=!0}markDirty(){if(this[gC]){this[gC]=!1;let t=this;for(;t=t.parent;)t[gC]=!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=bC;bC.default=bC});var a7=Se((FLt,hue)=>{"use strict";var A8e=MA(),yC=class extends A8e{constructor(t){super(t),this.type="comment"}};hue.exports=yC;yC.default=yC});var l7=Se((zLt,gue)=>{"use strict";var L8e=MA(),vC=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=vC;vC.default=vC});var cb=Se((jLt,Cue)=>{"use strict";var bue=a7(),yue=l7(),M8e=MA(),{isClean:vue,my:Sue}=LA(),c7,kue,_ue,u7;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 M8e{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 u7(t)];else if(t.name)t=[new c7(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=>{u7=e};nc.registerAtRule=e=>{c7=e};nc.registerRoot=e=>{_ue=e};Cue.exports=nc;nc.default=nc;nc.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,c7.prototype):e.type==="rule"?Object.setPrototypeOf(e,u7.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 d7=Se((HLt,Rue)=>{"use strict";var N8e=cb(),Eue,Tue,ub=class extends N8e{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Eue(new Tue,this,t).stringify()}};ub.registerLazyResult=e=>{Eue=e};ub.registerProcessor=e=>{Tue=e};Rue.exports=ub;ub.default=ub});var NA=Se(()=>{});var DA=Se(()=>{});var f7=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 Mue=Se((QLt,Lue)=>{"use strict";var{existsSync:z8e,readFileSync:j8e}=Iue(),{dirname:p7,join:H8e}=NA(),{SourceMapConsumer:Oue,SourceMapGenerator:Aue}=DA();function U8e(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var SC=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=p7(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=p7(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(p7(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=SC;SC.default=SC});var y7=Se((JLt,zue)=>{"use strict";var{nanoid:G8e}=Pue(),{isAbsolute:g7,resolve:b7}=NA(),{SourceMapConsumer:W8e,SourceMapGenerator:$8e}=DA(),{fileURLToPath:Nue,pathToFileURL:VA}=f7(),Due=OA(),K8e=Mue(),m7=o7(),h7=Symbol("lineToIndexCache"),Y8e=!!(W8e&&$8e),Vue=!!(b7&&g7);function Fue(e){if(e[h7])return e[h7];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[h7]=o,o}var MS=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)||g7(o.from)?this.file=o.from:this.file=b7(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:b7(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;g7(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(Nue)u.file=Nue(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=MS;MS.default=MS;m7&&m7.registerInput&&m7.registerInput(MS)});var S7=Se((eMt,$ue)=>{"use strict";var{dirname:FA,relative:Hue,resolve:Uue,sep:Gue}=NA(),{SourceMapConsumer:Wue,SourceMapGenerator:zA}=DA(),{pathToFileURL:jue}=f7(),q8e=y7(),Z8e=!!(Wue&&zA),X8e=!!(FA&&Uue&&Hue&&Gue),v7=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=v7});var que=Se((tMt,Yue)=>{"use strict";var Kue=cb(),NS=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=NS;NS.default=NS;Kue.registerAtRule(NS)});var jA=Se((oMt,Jue)=>{"use strict";var Zue=cb(),Xue,Que,lm=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()}};lm.registerLazyResult=e=>{Xue=e};lm.registerProcessor=e=>{Que=e};Jue.exports=lm;lm.default=lm;Zue.registerRoot(lm)});var tde=Se((rMt,ede)=>{"use strict";var kC={comma(e){return kC.split(e,[","],!0)},space(e){let t=[" ",`
`," "];return kC.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=kC;kC.default=kC});var nde=Se((nMt,rde)=>{"use strict";var ode=cb(),Q8e=tde(),DS=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=DS;DS.default=DS;ode.registerRule(DS)});var ade=Se((iMt,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 _(B){throw t.error("Unclosed "+B,b)}function x(){return y.length===0&&b>=g}function w(B){if(y.length)return y.pop();if(b>=g)return;let R=B?B.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||R){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||R){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||R?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(B){y.push(B)}return{back:T,endOfFile:x,nextToken:w,position:S}}});var dde=Se((sMt,ude)=>{"use strict";var eHe=que(),tHe=a7(),oHe=l7(),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 k7(e,t,o){let r="";for(let n=t;n<o;n++)r+=e[n][1];return r}var _7=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+=k7(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=k7(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=k7(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=_7});var x7=Se((aMt,fde)=>{"use strict";var sHe=cb(),aHe=y7(),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((lMt,pde)=>{"use strict";var _C=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=_C;_C.default=_C});var w7=Se((cMt,hde)=>{"use strict";var cHe=mde(),xC=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=xC;xC.default=xC});var C7=Se((uMt,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((fMt,kde)=>{"use strict";var uHe=cb(),dHe=d7(),fHe=S7(),pHe=x7(),yde=w7(),mHe=jA(),hHe=AA(),{isClean:pu,my:gHe}=LA(),dMt=C7(),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},VS=0;function wC(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,VS,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:e.append?[o,VS,o+"Exit"]:[o,o+"Exit"]}function vde(e){let t;return e.type==="document"?t=["Document",VS,"DocumentExit"]:e.type==="root"?t=["Root",VS,"RootExit"]:t=Sde(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function E7(e){return e[pu]=!1,e.nodes&&e.nodes.forEach(t=>E7(t)),e}var T7={},cm=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=E7(o);else if(o instanceof e||o instanceof yde)n=E7(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={...T7,postcss:T7,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(wC(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(wC(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 wC(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(wC(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(wC(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===VS){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===VS)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()}};cm.registerPostcss=e=>{T7=e};kde.exports=cm;cm.default=cm;mHe.registerLazyResult(cm);dHe.registerLazyResult(cm)});var wde=Se((mMt,xde)=>{"use strict";var SHe=S7(),kHe=x7(),_He=w7(),xHe=AA(),pMt=C7(),CC=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=CC;CC.default=CC});var Ede=Se((hMt,Cde)=>{"use strict";var wHe=d7(),CHe=_de(),EHe=wde(),THe=jA(),db=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=db;db.default=db;THe.registerProcessor(db);wHe.registerProcessor(db)});var Bde=Se((gMt,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((bMt,Pde)=>{var R7=40,B7=41,WA=39,P7=34,I7=92,FS=47,O7=44,A7=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===B7&&g?k=s:i&&i.type==="div"?(i.after=s,i.sourceEndIndex+=s.length):p===O7||p===A7||p===FS&&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===P7){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)===I7;)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===FS&&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===FS||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===FS||p===O7||p===A7)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(R7===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!==P7){r-=1;do if(a=!1,r=o.indexOf(")",r+1),~r)for(l=r;o.charCodeAt(l-1)===I7;)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(B7===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===I7&&(r+=1),r+=1,p=o.charCodeAt(r);while(r<h&&!(p<=32||p===WA||p===P7||p===O7||p===A7||p===FS||p===R7||p===$A&&b&&b.type==="function"&&b.value==="calc"||p===FS&&b.type==="function"&&b.value==="calc"||p===B7&&g));s=o.slice(f,r),R7===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((yMt,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((vMt,Nde)=>{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=Mde(e.nodes,t),o!=="function"?n:r+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):r}function Mde(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)}Nde.exports=Mde});var Fde=Se((SMt,Vde)=>{var KA=45,YA=43,L7=46,AHe=101,LHe=69;function MHe(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===L7&&r>=48&&r<=57}return t===L7?(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||!MHe(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===L7&&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((kMt,Hde)=>{var NHe=Ide(),zde=Ade(),jde=Dde();function um(e){return this instanceof um?(this.nodes=NHe(e),this):new um(e)}um.prototype.toString=function(){return Array.isArray(this.nodes)?jde(this.nodes):""};um.prototype.walk=function(e,t){return zde(this.nodes,e,t),this};um.unit=Fde();um.walk=zde;um.stringify=jde;Hde.exports=um});var Wde=Se((_Mt,M7)=>{var Gde=Ude();M7.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))}}};M7.exports.postcss=!0});var nfe=Se((NMt,rfe)=>{rfe.exports=window.wp.priorityQueue});var J7=Se((PDt,npe)=>{npe.exports=window.wp.blob});var HC=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,Zb,HG,UG,rN,nN,QSe,iN,GG,WG,$G,JSe,KG,YG,eke,tke;function Cs(){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(KG=/\b(iPhone|iP[ao]d)/.exec(e),YG=/\b(iP[ao]d)/.exec(e),$G=/Android/i.exec(e),eke=/FBAN\/\w+;/i.exec(e),tke=/Mobile/i.exec(e),JSe=!!/Win64/.exec(e),t){Zb=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Zb&&document&&document.documentMode&&(Zb=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);QSe=r?parseFloat(r[1])+4:Zb,HG=t[2]?parseFloat(t[2]):NaN,UG=t[3]?parseFloat(t[3]):NaN,rN=t[4]?parseFloat(t[4]):NaN,rN?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),nN=t&&t[1]?parseFloat(t[1]):NaN):nN=NaN}else Zb=HG=UG=nN=rN=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);iN=n?parseFloat(n[1].replace("_",".")):!0}else iN=!1;GG=!!o[2],WG=!!o[3]}else iN=GG=WG=!1}}var qG={ie:function(){return Cs()||Zb},ieCompatibilityMode:function(){return Cs()||QSe>Zb},ie64:function(){return qG.ie()&&JSe},firefox:function(){return Cs()||HG},opera:function(){return Cs()||UG},webkit:function(){return Cs()||rN},safari:function(){return qG.webkit()},chrome:function(){return Cs()||nN},windows:function(){return Cs()||GG},osx:function(){return Cs()||iN},linux:function(){return Cs()||WG},iphone:function(){return Cs()||KG},mobile:function(){return Cs()||KG||YG||$G||tke},nativeApp:function(){return Cs()||eke},android:function(){return Cs()||$G},ipad:function(){return Cs()||YG}};oke.exports=qG});var ike=Se((Z9t,nke)=>{"use strict";var sN=!!(typeof window<"u"&&window.document&&window.document.createElement),GWe={canUseDOM:sN,canUseWorkers:typeof Worker<"u",canUseEventListeners:sN&&!!(window.addEventListener||window.attachEvent),canUseViewport:sN&&!!window.screen,isInWorker:!sN};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={};Or(Ket,{AlignmentControl:()=>KB,AlignmentToolbar:()=>wX,Autocomplete:()=>UX,BlockAlignmentControl:()=>dP,BlockAlignmentToolbar:()=>dQ,BlockBindingsAttributeControl:()=>zw,BlockBindingsSourceFieldsList:()=>Fw,BlockBreadcrumb:()=>LQ,BlockCanvas:()=>bye,BlockColorsStyleSelector:()=>kye,BlockContextProvider:()=>nT,BlockControls:()=>No,BlockEdit:()=>zB,BlockEditorKeyboardShortcuts:()=>mA,BlockEditorProvider:()=>dce,BlockFormatControls:()=>I9,BlockIcon:()=>Et,BlockInspector:()=>XEe,BlockList:()=>HS,BlockMover:()=>fL,BlockNavigationDropdown:()=>Pve,BlockPopover:()=>Xpe,BlockPreview:()=>bs,BlockSelectionClearer:()=>ume,BlockSettingsMenu:()=>VL,BlockSettingsMenuControls:()=>AL,BlockStyles:()=>qk,BlockTitle:()=>Hw,BlockToolbar:()=>Zbe,BlockTools:()=>fE,BlockVerticalAlignmentControl:()=>sP,BlockVerticalAlignmentToolbar:()=>Qve,ButtonBlockAppender:()=>vm,ButtonBlockerAppender:()=>jpe,ColorPalette:()=>SSe,ColorPaletteControl:()=>xSe,ContrastChecker:()=>ESe,CopyHandler:()=>e1e,DefaultBlockAppender:()=>uk,DimensionControl:()=>qb,FontSizePicker:()=>kz,HeadingLevelDropdown:()=>Fve,HeightControl:()=>ZSe,InnerBlocks:()=>GC,Inserter:()=>Za,InspectorAdvancedControls:()=>wm,InspectorControls:()=>Oe,JustifyContentControl:()=>xv,JustifyToolbar:()=>a_e,LineHeightControl:()=>PN,LinkControl:()=>th,MediaPlaceholder:()=>Txe,MediaReplaceFlow:()=>h_,MediaUpload:()=>bu,MediaUploadCheck:()=>Xs,MultiSelectScrollIntoView:()=>n1e,NavigableToolbar:()=>Tk,ObserveTyping:()=>uye,PanelColorSettings:()=>Bxe,PlainText:()=>Mwe,RecursionProvider:()=>H$,RichText:()=>__,RichTextShortcut:()=>Rwe,RichTextToolbarButton:()=>OW,SETTINGS_DEFAULTS:()=>Ox,SkipToSelectedBlock:()=>rD,ToolSelector:()=>h1e,Typewriter:()=>a1e,URLInput:()=>Jm,URLInputButton:()=>Uwe,URLPopover:()=>nh,Warning:()=>gp,WritingFlow:()=>RA,__experimentalBlockAlignmentMatrixControl:()=>EQ,__experimentalBlockFullHeightAligmentControl:()=>_Q,__experimentalBlockPatternSetup:()=>qve,__experimentalBlockPatternsList:()=>hu,__experimentalBlockVariationPicker:()=>zve,__experimentalBlockVariationTransforms:()=>OM,__experimentalBorderRadiusControl:()=>VM,__experimentalColorGradientControl:()=>Km,__experimentalColorGradientSettingsDropdown:()=>JM,__experimentalDateFormatPicker:()=>RSe,__experimentalDuotoneControl:()=>jM,__experimentalFontAppearanceControl:()=>UM,__experimentalFontFamilyControl:()=>GM,__experimentalGetBorderClassesAndStyles:()=>iF,__experimentalGetColorClassesAndStyles:()=>sF,__experimentalGetDimensionsClassesAndStyles:()=>nF,__experimentalGetElementClassName:()=>Uet,__experimentalGetGapCSSValue:()=>Pi,__experimentalGetGradientClass:()=>bv,__experimentalGetGradientObjectByGradientValue:()=>mX,__experimentalGetShadowClassesAndStyles:()=>cY,__experimentalGetSpacingClassesAndStyles:()=>fY,__experimentalImageEditor:()=>e_e,__experimentalImageSizeControl:()=>n_e,__experimentalImageURLInputUI:()=>Zwe,__experimentalInspectorPopoverHeader:()=>bV,__experimentalLetterSpacingControl:()=>$M,__experimentalLibrary:()=>o1e,__experimentalLinkControl:()=>BN,__experimentalLinkControlSearchInput:()=>O_e,__experimentalLinkControlSearchItem:()=>v_e,__experimentalLinkControlSearchResults:()=>C_e,__experimentalListView:()=>RM,__experimentalPanelColorGradientSettings:()=>tN,__experimentalPreviewOptions:()=>f0e,__experimentalPublishDateTimePicker:()=>f1e,__experimentalRecursionProvider:()=>l1e,__experimentalResponsiveBlockControl:()=>Fwe,__experimentalSpacingSizesControl:()=>R_,__experimentalTextDecorationControl:()=>YM,__experimentalTextTransformControl:()=>ZM,__experimentalUnitControl:()=>jwe,__experimentalUseBlockOverlayActive:()=>NQ,__experimentalUseBlockPreview:()=>cfe,__experimentalUseBorderProps:()=>lY,__experimentalUseColorProps:()=>dY,__experimentalUseCustomSides:()=>VK,__experimentalUseGradient:()=>uDe,__experimentalUseHasRecursion:()=>c1e,__experimentalUseMultipleOriginColorsAndGradients:()=>qm,__experimentalUseResizeCanvas:()=>m0e,__experimentalWritingModeControl:()=>QM,__unstableBlockSettingsMenuFirstItem:()=>_L,__unstableBlockToolbarLastItem:()=>bL,__unstableEditorStyles:()=>Ld,__unstableIframe:()=>LS,__unstableInserterMenuExtension:()=>g2,__unstableRichTextInputEvent:()=>Bwe,__unstableUseBlockSelectionClearer:()=>_b,__unstableUseClipboardHandler:()=>JEe,__unstableUseMouseMoveTypingReset:()=>mE,__unstableUseTypewriter:()=>F$,__unstableUseTypingObserver:()=>hE,createCustomColorsHOC:()=>fX,getColorClassName:()=>xa,getColorObjectByAttributeValues:()=>zc,getColorObjectByColorValue:()=>oT,getComputedFluidTypographyValue:()=>bX,getCustomValueFromPreset:()=>$X,getDimensionsClassesAndStyles:()=>nF,getFontSize:()=>yv,getFontSizeClass:()=>bp,getFontSizeObjectByValue:()=>Sz,getGradientSlugByValue:()=>hX,getGradientValueBySlug:()=>WB,getPxFromCssUnit:()=>fIe,getSpacingPresetCssVar:()=>zl,getTypographyClassesAndStyles:()=>pY,isValueSpacingPreset:()=>iP,privateApis:()=>xY,store:()=>C,storeConfig:()=>mv,transformStyles:()=>zS,useBlockBindingsUtils:()=>yd,useBlockCommands:()=>dM,useBlockDisplayInformation:()=>Do,useBlockEditContext:()=>ht,useBlockEditingMode:()=>Er,useBlockProps:()=>f0,useCachedTruthy:()=>mY,useHasRecursion:()=>U$,useInnerBlocksProps:()=>Tb,useSetting:()=>lX,useSettings:()=>Le,useStyleOverride:()=>el,withColorContext:()=>FM,withColors:()=>pX,withFontSizes:()=>_X});function RY(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=RY(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function $Ie(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=RY(e))&&(r&&(r+=" "),r+=t);return r}var K=$Ie;var g1e=c(ue(),1),wl=c(F(),1),vV=c(Q(),1),K$=c(fe(),1),g1=c(go(),1);var Q1=c(F(),1),Ml=Symbol("mayDisplayControls"),Fy=Symbol("mayDisplayParentControls"),$f=Symbol("mayDisplayPatternEditingControls"),zy=Symbol("blockEditingMode"),jy=Symbol("blockBindings"),J1=Symbol("isPreviewMode"),Tx=Symbol("isInListViewBlockSupportTree"),yF={name:"",isSelected:!1},vF=(0,Q1.createContext)(yF);vF.displayName="BlockEditContext";var{Provider:eT}=vF;function ht(){return(0,Q1.useContext)(vF)}var KIe={grad:.9,turn:360,rad:360/(2*Math.PI)},rd=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},kn=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},jY=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},LY=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)}},SF=function(e){return{r:kn(e.r),g:kn(e.g),b:kn(e.b),a:kn(e.a,3)}},YIe=/^#([0-9a-f]{3,8})$/i,tT=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},HY=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}},UY=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}},MY=function(e){return{h:jY(e.h),s:_a(e.s,0,100),l:_a(e.l,0,100),a:_a(e.a)}},NY=function(e){return{h:kn(e.h),s:kn(e.s),l:kn(e.l),a:kn(e.a,3)}},DY=function(e){return UY((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},Rx=function(e){return{h:(t=HY(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},qIe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ZIe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,XIe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,QIe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xF={string:[[function(e){var t=YIe.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?kn(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?kn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=XIe.exec(e)||QIe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:LY({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=qIe.exec(e)||ZIe.exec(e);if(!t)return null;var o,r,n=MY({h:(o=t[1],r=t[2],r===void 0&&(r="deg"),Number(o)*(KIe[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return DY(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)?LY({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=MY({h:Number(t),s:Number(o),l:Number(r),a:Number(i)});return DY(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:jY(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 UY(s)},"hsv"]]},VY=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]},JIe=function(e){return typeof e=="string"?VY(e.trim(),xF.string):typeof e=="object"&&e!==null?VY(e,xF.object):[null,void 0]};var kF=function(e,t){var o=Rx(e);return{h:o.h,s:_a(o.s+100*t,0,100),l:o.l,a:o.a}},_F=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},FY=function(e,t){var o=Rx(e);return{h:o.h,s:o.s,l:_a(o.l+100*t,0,100),a:o.a}},wF=(function(){function e(t){this.parsed=JIe(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 kn(_F(this.rgba),2)},e.prototype.isDark=function(){return _F(this.rgba)<.5},e.prototype.isLight=function(){return _F(this.rgba)>=.5},e.prototype.toHex=function(){return t=SF(this.rgba),o=t.r,r=t.g,n=t.b,s=(i=t.a)<1?tT(kn(255*i)):"","#"+tT(o)+tT(r)+tT(n)+s;var t,o,r,n,i,s},e.prototype.toRgb=function(){return SF(this.rgba)},e.prototype.toRgbString=function(){return t=SF(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(Rx(this.rgba))},e.prototype.toHslString=function(){return t=NY(Rx(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=HY(this.rgba),{h:kn(t.h),s:kn(t.s),v:kn(t.v),a:kn(t.a,3)};var t},e.prototype.invert=function(){return Lo({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),Lo(kF(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Lo(kF(this.rgba,-t))},e.prototype.grayscale=function(){return Lo(kF(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Lo(FY(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Lo(FY(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"?Lo({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):kn(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=Rx(this.rgba);return typeof t=="number"?Lo({h:t,s:o.s,l:o.l,a:o.a}):kn(o.h)},e.prototype.isEqual=function(t){return this.toHex()===Lo(t).toHex()},e})(),Lo=function(e){return e instanceof wF?e:new wF(e)},zY=[],Kf=function(e){e.forEach(function(t){zY.indexOf(t)<0&&(t(wF,xF),zY.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 CF=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},EF=function(e){return .2126*CF(e.r)+.7152*CF(e.g)+.0722*CF(e.b)};function Hy(e){e.prototype.luminance=function(){return t=EF(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=EF(i),l=EF(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 YY=c(U(),1);var $Y=c(Bx(),1),{lock:KY,unlock:H}=(0,$Y.__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,Hy]);var{kebabCase:eOe}=H(YY.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-${eOe(t)}-${e}`}function qY(e,t){let o=Lo(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),yg=c(fe(),1),uX=c(U(),1);var sX=c(Q(),1),aX=c(Rt(),1);var FB=c(F(),1),VB=c(ue(),1);var nd=c(ue(),1),nq=c(U(),1),Ix=c(Q(),1),Zh=c(F(),1);var Uy=c(F(),1),QY=c(E(),1),rT=(0,Uy.createContext)({});rT.displayName="BlockContext";function nT({value:e,children:t}){let o=(0,Uy.useContext)(rT),r=(0,Uy.useMemo)(()=>({...o,...e}),[o,e]);return(0,QY.jsx)(rT.Provider,{value:r,children:t})}var _n=rT;var Gy=c(Fs(),1);function Kh(e){return e?.startsWith("#")&&(0,Gy.isValidFragment)(e)}function Yh(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function qh(e){if(e.includes(" "))return!1;let o=(0,Gy.getProtocol)(e),r=(0,Gy.isValidProtocol)(o),n=tOe(e),i=e?.startsWith("www.");return r||i||Kh(e)||n||Yh(e)}function tOe(e,t=6){let o=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(o)}var oOe="__default",eq="core/pattern-overrides",rOe={};function tq(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??rOe}function Px(e){return e?.[oOe]?.source===eq}function iT(e,t){if(!Px(e))return e;let o={};for(let r of t){let n=e[r]?e[r]:{source:eq};o[r]=n}return o}var oq=c(F(),1),Fn=(0,oq.createContext)({});Fn.displayName="PrivateBlockContext";var sT=c(E(),1),nOe=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})},rq=(0,nq.withFilters)("editor.BlockEdit")(nOe),iOe=e=>{let{name:t,clientId:o,attributes:r,setAttributes:n}=e,i=(0,Ix.useRegistry)(),s=(0,nd.getBlockType)(t),a=(0,Zh.useContext)(_n),l=(0,Ix.useSelect)(v=>H(v(nd.store)).getAllBlockBindingsSources(),[]),{bindableAttributes:u}=(0,Zh.useContext)(Fn),{blockBindings:d,context:f,hasPatternOverrides:p}=(0,Zh.useMemo)(()=>({blockBindings:iT(r?.metadata?.bindings,u),context:tq(a,s?.usesContext,r?.metadata?.bindings?Object.values(r.metadata.bindings).map(v=>l[v?.source]):void 0),hasPatternOverrides:Px(r?.metadata?.bindings)}),[s?.usesContext,a,r?.metadata?.bindings,u,l]),h=(0,Ix.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||!qh(T))?y[w]=null:y[w]=T}return{...r,...y}},[r,u,d,o,f,l]),m=(0,Zh.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)(rq,{...e,attributes:h,context:f,setAttributes:m});let g=(0,nd.hasBlockSupport)(s,"className",!0)?(0,nd.getBlockDefaultClassName)(t):null,b=K(g,r?.className,e.className);return(0,sT.jsx)(rq,{...e,attributes:h,className:b,context:f,setAttributes:m})},iq=iOe;var rX=c(ue(),1),vz=c(U(),1),nX=c(Q(),1),DB=c(G(),1);var NB=c(Q(),1);var $y=c(Xh(),1),BF=c(fe(),1),Mx=c(Q(),1),gq=c(Rt(),1),mT=c(ue(),1);var Bt=c(G(),1),lq={insertUsage:{}},Ox={alignWide:!1,supportsLayout:!0,colors:[{name:(0,Bt.__)("Black"),slug:"black",color:"#000000"},{name:(0,Bt.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,Bt.__)("White"),slug:"white",color:"#ffffff"},{name:(0,Bt.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,Bt.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,Bt.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,Bt.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,Bt.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,Bt.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,Bt.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,Bt.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,Bt.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,Bt._x)("Small","font size name"),size:13,slug:"small"},{name:(0,Bt._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,Bt._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,Bt._x)("Large","font size name"),size:36,slug:"large"},{name:(0,Bt._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,Bt.__)("Thumbnail")},{slug:"medium",name:(0,Bt.__)("Medium")},{slug:"large",name:(0,Bt.__)("Large")},{slug:"full",name:(0,Bt.__)("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,Bt.__)("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,Bt.__)("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,Bt.__)("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,Bt.__)("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,Bt.__)("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,Bt.__)("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,Bt.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,Bt.__)("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,Bt.__)("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,Bt.__)("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,Bt.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,Bt.__)("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 rs=Symbol("globalStylesDataKey"),Wy=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"),cq=Symbol("isNavigationPostEditor"),Ax=Symbol("mediaUploadOnSuccess"),uq=Symbol("mediaSideloadFromUrl"),dq=Symbol("openMediaEditorModal");var{isContentBlock:sOe}=H(mT.privateApis),aOe=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 TF(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 bq(e,t=aOe){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 PF(e){let t={},o=[...e];for(;o.length;){let{innerBlocks:r,...n}=o.shift();o.push(...r),t[n.clientId]=!0}return t}function fq(e){return bq(e,t=>{let{attributes:o,...r}=t;return r})}function pq(e){return bq(e,t=>t.attributes)}function lOe(e,t){return(0,$y.default)(Object.keys(e),Object.keys(t))}function cOe(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&(0,$y.default)(e.clientIds,t.clientIds)&&lOe(e.attributes,t.attributes)}function mq(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 uOe=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),mq(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=PF(o.blocks);r.tree=new Map(r.tree),o.replacedClientIds.forEach(a=>{r.tree.delete(a),i[a]||r.tree.delete("controlled||"+a)}),mq(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 dOe(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:!cOe(n,t);if(t=n,s==="ignore")return{...i,isPersistentChange:l,lastBlockChangeHistoryMode:"ignore"};let{lastBlockChangeHistoryMode:u,...d}=i;return{...d,isPersistentChange:l}}}function fOe(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 pOe=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)},mOe=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)},hOe=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},gOe=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)},bOe=(0,BF.pipe)(Mx.combineReducers,uOe,pOe,hOe,mOe,dOe,fOe,gOe)({byClientId(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.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)}),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},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return pq(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)}),pq(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 TF(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"INSERT_BLOCKS":{let o=new Map(e);return TF(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)}),TF(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 yOe(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function vOe(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function SOe(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function kOe(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function _Oe(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function hq(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 xOe(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,$y.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=hq(e.selectionStart,t),r=hq(e.selectionEnd,t);return o===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:o,selectionEnd:r}}function wOe(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function COe(e=!0,t){return t.type==="TOGGLE_SELECTION"?t.isSelectionEnabled:e}function EOe(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e}function TOe(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 ROe(e=!1,t){return t.type==="SET_BLOCK_REMOVAL_RULES"?t.rules:e}function BOe(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 POe(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 IOe(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,$y.default)(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e}function OOe(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function AOe(e=Ox,t){if(t.type==="UPDATE_SETTINGS"){let o=t.reset?{...Ox,...t.settings}:{...e,...t.settings};return Object.defineProperty(o,"__unstableIsPreviewMode",{get(){return(0,gq.default)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),o}return e}function LOe(e=lq,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,Mx.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,$y.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 NOe(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 DOe(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 VOe(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 FOe(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 zOe(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 jOe(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(!PF(t.blocks)[e])return;break}return e}function HOe(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 UOe(e=[],t){return t.type==="REGISTER_INSERTER_MEDIA_CATEGORY"?[...e,t.category]:e}function GOe(e=!1,t){return t.type==="LAST_FOCUS"?t.lastFocus:e}function WOe(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e}function $Oe(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e}function KOe(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 YOe(e=0,t){return t.type==="INCREMENT_LIST_VIEW_EXPAND_REVISION"?e+1:e}function qOe(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 ZOe(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 XOe(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&&!PF(t.blocks)[e.clientId])return;break}}return e}function QOe(e="default",t){return t.type==="SET_STYLE_STATE_VIEWPORT"?t.viewport??"default":e}function JOe(e=!1,t){return t.type==="SET_RESPONSIVE_EDITING"?t.enabled:e}var eAe=(0,Mx.combineReducers)({blocks:bOe,isDragging:SOe,isTyping:vOe,isBlockInterfaceHidden:yOe,draggedBlocks:kOe,selection:xOe,isMultiSelecting:wOe,isSelectionEnabled:COe,initialPosition:BOe,blocksMode:POe,blockListSettings:MOe,insertionPoint:$Oe,insertionCue:IOe,template:OOe,settings:AOe,preferences:LOe,lastBlockAttributesChange:NOe,lastFocus:GOe,expandedBlock:FOe,highlightedBlock:DOe,lastBlockInserted:zOe,editedContentOnlySection:jOe,blockVisibility:_Oe,viewportModalClientIds:EOe,styleOverrides:HOe,removalPromptData:TOe,blockRemovalRules:ROe,registeredInserterMediaCategories:UOe,zoomLevel:WOe,hasBlockSpotlight:VOe,openedListViewPanels:KOe,listViewExpandRevision:YOe,listViewContentPanelOpen:qOe,requestedInspectorTab:ZOe,selectedBlockStyleState:XOe,styleStateViewport:QOe,isResponsiveEditing:JOe});function yq(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 IF(e,t,o){let r=yq(e,t);if(r&&(o(r),!!r?.innerBlocks?.length))for(let n of r?.innerBlocks)IF(e,n.clientId,o)}function Lx(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 tAe(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}function RF(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 IF(e,t,g=>{let{clientId:b,name:v}=g,y=!!e.editedContentOnlySection,k=!1;if(y&&(k=b===e.editedContentOnlySection||!!Lx(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(Lx(e,b,l)){r.set(b,"disabled");return}return}let S=Lx(e,b,l);if(S){if(Lx(e,S,l)){r.set(b,"disabled");return}if(tAe(g)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}}if(y&&k){r.set(b,"default");return}m.length&&Lx(e,b,m)&&(sOe(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=>{IF(e,s,a=>{n.has(a.clientId)&&(i||(i=new Map(n)),i.delete(a.clientId))})}),o?.forEach(s=>{let a=RF(t,s.clientId);a.size&&(i?i=new Map([...i?.size?i:[],...a]):i=new Map([...n?.size?n:[],...a]))}),i}function oAe(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=yq(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:RF(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:RF(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}}function rAe(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 vq=(0,BF.pipe)(oAe,rAe)(eAe);var fz={};Or(fz,{__experimentalGetActiveBlockIdByBlockNames:()=>gMe,__experimentalGetAllowedBlocks:()=>JLe,__experimentalGetAllowedPatterns:()=>rMe,__experimentalGetBlockListSettingsForBlocks:()=>cMe,__experimentalGetDirectInsertBlock:()=>eMe,__experimentalGetGlobalBlocksByName:()=>uLe,__experimentalGetLastBlockAttributeChanges:()=>fMe,__experimentalGetParsedPattern:()=>tMe,__experimentalGetPatternTransformItems:()=>sMe,__experimentalGetPatternsByBlockTypes:()=>iMe,__experimentalGetReusableBlockTitle:()=>uMe,__unstableGetBlockWithoutInnerBlocks:()=>iLe,__unstableGetClientIdWithClientIdsTree:()=>aLe,__unstableGetClientIdsTree:()=>lLe,__unstableGetContentLockingParent:()=>wMe,__unstableGetLastBlockChangeHistoryMode:()=>lMe,__unstableGetSelectedBlocksWithPartialSelection:()=>OLe,__unstableGetTemporarilyEditingAsBlocks:()=>CMe,__unstableGetVisibleBlocks:()=>SMe,__unstableHasActiveBlockOverlayActive:()=>VZ,__unstableIsFullySelected:()=>RLe,__unstableIsLastBlockChangeIgnored:()=>dMe,__unstableIsSelectionCollapsed:()=>BLe,__unstableIsSelectionMergeable:()=>ILe,__unstableIsWithinBlockOverlay:()=>kMe,__unstableSelectionHasUnmergeableBlock:()=>PLe,areInnerBlocksControlled:()=>AB,canEditBlock:()=>MZ,canInsertBlockType:()=>hg,canInsertBlocks:()=>WLe,canLockBlockType:()=>KLe,canMoveBlock:()=>LZ,canMoveBlocks:()=>$Le,canRemoveBlock:()=>uz,canRemoveBlocks:()=>AZ,didAutomaticChange:()=>mMe,getAdjacentBlockClientId:()=>iz,getAllowedBlocks:()=>oz,getBlock:()=>md,getBlockAttributes:()=>Ta,getBlockCount:()=>fLe,getBlockEditingMode:()=>Bi,getBlockHierarchyRootClientId:()=>yLe,getBlockIndex:()=>RZ,getBlockInsertionPoint:()=>jLe,getBlockListSettings:()=>lv,getBlockMode:()=>tz,getBlockName:()=>Gt,getBlockNamesByClientId:()=>dLe,getBlockOrder:()=>xn,getBlockParents:()=>Hs,getBlockParentsByBlockName:()=>nz,getBlockRootClientId:()=>ir,getBlockSelectionEnd:()=>mLe,getBlockSelectionStart:()=>pLe,getBlockTransformItems:()=>XLe,getBlocks:()=>sLe,getBlocksByClientId:()=>PB,getBlocksByName:()=>wZ,getClientIdsOfDescendants:()=>xZ,getClientIdsWithDescendants:()=>av,getDirectInsertBlock:()=>DZ,getDraggedBlockClientIds:()=>VLe,getFirstMultiSelectedBlockClientId:()=>sz,getGlobalBlockCount:()=>cLe,getHoveredBlockClientId:()=>vMe,getInserterItems:()=>ZLe,getLastMultiSelectedBlockClientId:()=>EZ,getLowestCommonAncestorWithSelectedBlock:()=>vLe,getMultiSelectedBlockClientIds:()=>mp,getMultiSelectedBlocks:()=>xLe,getMultiSelectedBlocksEndClientId:()=>TLe,getMultiSelectedBlocksStartClientId:()=>ELe,getNextBlockClientId:()=>kLe,getPatternsByBlockTypes:()=>nMe,getPreviousBlockClientId:()=>SLe,getSelectedBlock:()=>bLe,getSelectedBlockClientId:()=>uv,getSelectedBlockClientIds:()=>dv,getSelectedBlockCount:()=>hLe,getSelectedBlocksInitialCaretPosition:()=>_Le,getSelectionEnd:()=>Tw,getSelectionStart:()=>Ew,getSettings:()=>ud,getTemplate:()=>GLe,getTemplateLock:()=>Wc,hasBlockMovingClientId:()=>pMe,hasDraggedInnerBlock:()=>IZ,hasInserterItems:()=>QLe,hasMultiSelection:()=>LLe,hasSelectedBlock:()=>gLe,hasSelectedInnerBlock:()=>PZ,isAncestorBeingDragged:()=>FLe,isAncestorMultiSelected:()=>CLe,isBlockBeingDragged:()=>az,isBlockHighlighted:()=>hMe,isBlockInsertionPointVisible:()=>HLe,isBlockMultiSelected:()=>TZ,isBlockSelected:()=>BZ,isBlockValid:()=>nLe,isBlockVisible:()=>yMe,isBlockWithinSelection:()=>ALe,isCaretWithinFormattedText:()=>zLe,isDraggingBlocks:()=>OZ,isFirstMultiSelectedBlock:()=>wLe,isGroupable:()=>xMe,isLastBlockChangePersistent:()=>aMe,isMultiSelecting:()=>MLe,isSelectionEnabled:()=>NLe,isTyping:()=>DLe,isUngroupable:()=>_Me,isValidTemplate:()=>ULe,wasBlockJustInserted:()=>bMe});var vt=c(ue(),1),kZ=c(go(),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(pe(),1),OF=c(E(),1),Qh=(0,OF.jsx)(gT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OF.jsx)(gT.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var bT=c(pe(),1),AF=c(E(),1),LF=(0,AF.jsx)(bT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AF.jsx)(bT.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});var yT=c(pe(),1),MF=c(E(),1),ep=(0,MF.jsx)(yT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MF.jsx)(yT.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var vT=c(pe(),1),NF=c(E(),1),Jh=(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(pe(),1),DF=c(E(),1),tp=(0,DF.jsx)(ST.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DF.jsx)(ST.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var kT=c(pe(),1),VF=c(E(),1),FF=(0,VF.jsx)(kT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VF.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(pe(),1),zF=c(E(),1),Nx=(0,zF.jsx)(_T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zF.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(pe(),1),jF=c(E(),1),Dx=(0,jF.jsx)(xT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jF.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(pe(),1),HF=c(E(),1),UF=(0,HF.jsx)(wT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HF.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(pe(),1),GF=c(E(),1),WF=(0,GF.jsx)(CT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GF.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(pe(),1),$F=c(E(),1),Vx=(0,$F.jsx)(ET.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$F.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(pe(),1),KF=c(E(),1),YF=(0,KF.jsx)(TT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KF.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(pe(),1),qF=c(E(),1),ZF=(0,qF.jsx)(RT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qF.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(pe(),1),XF=c(E(),1),ns=(0,XF.jsx)(BT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XF.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(pe(),1),QF=c(E(),1),cn=(0,QF.jsx)(PT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QF.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(pe(),1),JF=c(E(),1),Fx=(0,JF.jsx)(IT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JF.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(pe(),1),e3=c(E(),1),Ti=(0,e3.jsx)(OT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e3.jsx)(OT.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var AT=c(pe(),1),t3=c(E(),1),op=(0,t3.jsx)(AT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t3.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(pe(),1),o3=c(E(),1),un=(0,o3.jsx)(LT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o3.jsx)(LT.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var MT=c(pe(),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:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var NT=c(pe(),1),n3=c(E(),1),tg=(0,n3.jsx)(NT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n3.jsx)(NT.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(pe(),1),i3=c(E(),1),s3=(0,i3.jsx)(DT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,i3.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(pe(),1),a3=c(E(),1),l3=(0,a3.jsx)(VT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a3.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(pe(),1),c3=c(E(),1),og=(0,c3.jsx)(FT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c3.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(pe(),1),u3=c(E(),1),d3=(0,u3.jsx)(zT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u3.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 rg=c(pe(),1),Ky=c(E(),1),f3=(0,Ky.jsxs)(rg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Ky.jsx)(rg.G,{opacity:".25",children:(0,Ky.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,Ky.jsx)(rg.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 ng=c(pe(),1),Yy=c(E(),1),p3=(0,Yy.jsxs)(ng.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Yy.jsx)(ng.G,{opacity:".25",children:(0,Yy.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,Yy.jsx)(ng.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 ig=c(pe(),1),qy=c(E(),1),m3=(0,qy.jsxs)(ig.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,qy.jsx)(ig.G,{opacity:".25",children:(0,qy.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,qy.jsx)(ig.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 sg=c(pe(),1),Zy=c(E(),1),h3=(0,Zy.jsxs)(sg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Zy.jsx)(sg.G,{opacity:".25",children:(0,Zy.jsx)(sg.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,Zy.jsx)(sg.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(pe(),1),g3=c(E(),1),b3=(0,g3.jsx)(jT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,g3.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(pe(),1),y3=c(E(),1),zx=(0,y3.jsx)(HT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y3.jsx)(HT.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});var UT=c(pe(),1),v3=c(E(),1),S3=(0,v3.jsx)(UT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,v3.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(pe(),1),k3=c(E(),1),ag=(0,k3.jsx)(GT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k3.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(pe(),1),_3=c(E(),1),x3=(0,_3.jsx)(WT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_3.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(pe(),1),w3=c(E(),1),C3=(0,w3.jsx)($T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,w3.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(pe(),1),E3=c(E(),1),T3=(0,E3.jsx)(KT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,E3.jsx)(KT.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var YT=c(pe(),1),R3=c(E(),1),B3=(0,R3.jsx)(YT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,R3.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(pe(),1),P3=c(E(),1),I3=(0,P3.jsx)(qT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,P3.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(pe(),1),O3=c(E(),1),A3=(0,O3.jsx)(ZT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O3.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(pe(),1),L3=c(E(),1),M3=(0,L3.jsx)(XT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,L3.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(pe(),1),N3=c(E(),1),D3=(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(pe(),1),V3=c(E(),1),F3=(0,V3.jsx)(JT.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,V3.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(pe(),1),z3=c(E(),1),tR=(0,z3.jsx)(eR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z3.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(pe(),1),j3=c(E(),1),jx=(0,j3.jsx)(oR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j3.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(pe(),1),H3=c(E(),1),Hx=(0,H3.jsx)(rR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H3.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(pe(),1),U3=c(E(),1),Ux=(0,U3.jsx)(nR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U3.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(pe(),1),G3=c(E(),1),W3=(0,G3.jsx)(iR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,G3.jsx)(iR.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var sR=c(pe(),1),$3=c(E(),1),K3=(0,$3.jsx)(sR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$3.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(pe(),1),Y3=c(E(),1),q3=(0,Y3.jsx)(aR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Y3.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(pe(),1),Z3=c(E(),1),X3=(0,Z3.jsx)(lR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Z3.jsx)(lR.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var cR=c(pe(),1),Q3=c(E(),1),J3=(0,Q3.jsx)(cR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Q3.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(pe(),1),e4=c(E(),1),t4=(0,e4.jsx)(uR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e4.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(pe(),1),o4=c(E(),1),r4=(0,o4.jsx)(dR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o4.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(pe(),1),n4=c(E(),1),Gx=(0,n4.jsx)(fR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n4.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(pe(),1),i4=c(E(),1),s4=(0,i4.jsx)(pR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,i4.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(pe(),1),a4=c(E(),1),Wx=(0,a4.jsx)(mR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a4.jsx)(mR.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})});var hR=c(pe(),1),l4=c(E(),1),$x=(0,l4.jsx)(hR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l4.jsx)(hR.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})});var gR=c(pe(),1),c4=c(E(),1),rp=(0,c4.jsx)(gR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c4.jsx)(gR.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})});var bR=c(pe(),1),u4=c(E(),1),np=(0,u4.jsx)(bR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u4.jsx)(bR.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})});var yR=c(pe(),1),d4=c(E(),1),ip=(0,d4.jsx)(yR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,d4.jsx)(yR.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})});var vR=c(pe(),1),f4=c(E(),1),Kx=(0,f4.jsx)(vR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f4.jsx)(vR.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})});var SR=c(pe(),1),p4=c(E(),1),Xy=(0,p4.jsx)(SR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,p4.jsx)(SR.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})});var kR=c(pe(),1),m4=c(E(),1),Yx=(0,m4.jsx)(kR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m4.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(pe(),1),h4=c(E(),1),Qy=(0,h4.jsx)(_R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h4.jsx)(_R.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})});var xR=c(pe(),1),g4=c(E(),1),qx=(0,g4.jsx)(xR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,g4.jsx)(xR.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})});var wR=c(pe(),1),b4=c(E(),1),sd=(0,b4.jsx)(wR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,b4.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(pe(),1),y4=c(E(),1),v4=(0,y4.jsx)(CR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y4.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(pe(),1),S4=c(E(),1),is=(0,S4.jsx)(ER.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S4.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(pe(),1),k4=c(E(),1),ss=(0,k4.jsx)(TR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k4.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(pe(),1),_4=c(E(),1),Zx=(0,_4.jsx)(RR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_4.jsx)(RR.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});var BR=c(pe(),1),x4=c(E(),1),w4=(0,x4.jsx)(BR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,x4.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(pe(),1),C4=c(E(),1),E4=(0,C4.jsx)(PR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,C4.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(pe(),1),T4=c(E(),1),lg=(0,T4.jsx)(IR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,T4.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 Xx=c(pe(),1),Qx=c(E(),1),Jy=(0,Qx.jsxs)(Xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Qx.jsx)(Xx.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Qx.jsx)(Xx.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(pe(),1),R4=c(E(),1),Jx=(0,R4.jsx)(OR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,R4.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(pe(),1),B4=c(E(),1),zs=(0,B4.jsx)(AR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B4.jsx)(AR.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var ew=c(pe(),1),tw=c(E(),1),cg=(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:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,tw.jsx)(ew.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(pe(),1),P4=c(E(),1),I4=(0,P4.jsx)(LR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,P4.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 MR=c(pe(),1),O4=c(E(),1),ug=(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:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var NR=c(pe(),1),A4=c(E(),1),L4=(0,A4.jsx)(NR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,A4.jsx)(NR.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(pe(),1),M4=c(E(),1),Ca=(0,M4.jsx)(DR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,M4.jsx)(DR.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var VR=c(pe(),1),N4=c(E(),1),D4=(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(pe(),1),V4=c(E(),1),F4=(0,V4.jsx)(FR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,V4.jsx)(FR.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var zR=c(pe(),1),z4=c(E(),1),j4=(0,z4.jsx)(zR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z4.jsx)(zR.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var jR=c(pe(),1),H4=c(E(),1),U4=(0,H4.jsx)(jR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H4.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(pe(),1),G4=c(E(),1),W4=(0,G4.jsx)(HR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,G4.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(pe(),1),$4=c(E(),1),dn=(0,$4.jsx)(UR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$4.jsx)(UR.Path,{d:"M7 11.5h10V13H7z"})});var GR=c(pe(),1),K4=c(E(),1),Y4=(0,K4.jsx)(GR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K4.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(pe(),1),q4=c(E(),1),Z4=(0,q4.jsx)(WR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,q4.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(pe(),1),X4=c(E(),1),Q4=(0,X4.jsx)($R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,X4.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(pe(),1),J4=c(E(),1),dg=(0,J4.jsx)(KR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J4.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 ow=c(pe(),1),rw=c(E(),1),e6=(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:"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,rw.jsx)(ow.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(pe(),1),t6=c(E(),1),o6=(0,t6.jsx)(YR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t6.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(pe(),1),r6=c(E(),1),ZR=(0,r6.jsx)(qR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r6.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 nw=c(pe(),1),iw=c(E(),1),n6=(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:"m16.5 19.5h-9v-1.5h9z"})]});var ev=c(pe(),1),tv=c(E(),1),i6=(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:"m4.5 7.5v9h1.5v-9z"}),(0,tv.jsx)(ev.Path,{d:"m18 7.5v9h1.5v-9z"})]});var sw=c(pe(),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:"m4.5 16.5v-9h1.5v9z"})]});var lw=c(pe(),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:"m18 16.5v-9h1.5v9z"})]});var uw=c(pe(),1),dw=c(E(),1),l6=(0,dw.jsxs)(uw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,dw.jsx)(uw.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,dw.jsx)(uw.Path,{d:"m16.5 6h-9v-1.5h9z"})]});var ov=c(pe(),1),rv=c(E(),1),c6=(0,rv.jsxs)(ov.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,rv.jsx)(ov.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,rv.jsx)(ov.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,rv.jsx)(ov.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]});var XR=c(pe(),1),u6=c(E(),1),d6=(0,u6.jsx)(XR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u6.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(pe(),1),f6=c(E(),1),fw=(0,f6.jsx)(QR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f6.jsx)(QR.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})});var JR=c(pe(),1),p6=c(E(),1),fg=(0,p6.jsx)(JR.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,p6.jsx)(JR.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var eB=c(pe(),1),m6=c(E(),1),h6=(0,m6.jsx)(eB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m6.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(pe(),1),g6=c(E(),1),jc=(0,g6.jsx)(tB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,g6.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(pe(),1),b6=c(E(),1),y6=(0,b6.jsx)(oB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,b6.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(pe(),1),v6=c(E(),1),S6=(0,v6.jsx)(rB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,v6.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(pe(),1),k6=c(E(),1),_6=(0,k6.jsx)(nB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k6.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(pe(),1),x6=c(E(),1),w6=(0,x6.jsx)(iB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,x6.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(pe(),1),C6=c(E(),1),E6=(0,C6.jsx)(sB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,C6.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(pe(),1),T6=c(E(),1),R6=(0,T6.jsx)(aB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,T6.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(pe(),1),B6=c(E(),1),ad=(0,B6.jsx)(lB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B6.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(pe(),1),P6=c(E(),1),Nl=(0,P6.jsx)(cB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,P6.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(pe(),1),I6=c(E(),1),O6=(0,I6.jsx)(uB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,I6.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(pe(),1),A6=c(E(),1),L6=(0,A6.jsx)(dB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,A6.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(pe(),1),M6=c(E(),1),N6=(0,M6.jsx)(fB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,M6.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(Ko(),1),Us=c(Rt(),1),St=c(Q(),1);var bZ=c(ue(),1),yZ=c(xq(),1);var nr="core/block-editor";var TB={};Or(TB,{canHostEditableRoot:()=>g2e,getAllPatterns:()=>R2e,getBlockRemovalRules:()=>_2e,getBlockSettings:()=>rZ,getBlockStyles:()=>L2e,getBlockWithoutAttributes:()=>f2e,getClientIdWithClientIdsTree:()=>Y6,getClientIdsTree:()=>q6,getClosestAllowedInsertionPoint:()=>lZ,getClosestAllowedInsertionPointForPattern:()=>N2e,getContentLockingParent:()=>X6,getEditedContentOnlySection:()=>Q6,getEnabledBlockParents:()=>S2e,getEnabledClientIdsTree:()=>y2e,getExpandedBlock:()=>A2e,getInserterMediaCategories:()=>C2e,getInsertionPoint:()=>D2e,getLastFocus:()=>I2e,getLastInsertedBlocksClientIds:()=>d2e,getListViewClientIdsTree:()=>v2e,getListViewExpandRevision:()=>W2e,getParentSectionBlock:()=>dd,getPatternBySlug:()=>T2e,getRegisteredInserterMediaCategories:()=>w2e,getRemovalPromptData:()=>k2e,getRequestedInspectorTab:()=>Y2e,getReusableBlocks:()=>P2e,getSectionRootClientId:()=>mg,getSelectedBlockStyleState:()=>mZ,getStyleOverrides:()=>x2e,getStyleStateViewport:()=>pZ,getViewportModalClientIds:()=>K2e,getZoomLevel:()=>M2e,hasAllowedPatterns:()=>E2e,hasBlockSpotlight:()=>j2e,hasSelectedStyleState:()=>Z2e,isBlockHiddenAnywhere:()=>V2e,isBlockHiddenAtViewport:()=>cZ,isBlockHiddenEverywhere:()=>ez,isBlockInterfaceHidden:()=>u2e,isBlockParentHiddenAtViewport:()=>z2e,isBlockParentHiddenEverywhere:()=>F2e,isBlockSubtreeDisabled:()=>p2e,isContainerInsertableToInContentOnlyMode:()=>vw,isDragging:()=>O2e,isEditLockedBlock:()=>uZ,isListViewContentPanelOpen:()=>U2e,isListViewPanelOpened:()=>G2e,isLockedBlock:()=>H2e,isMoveLockedBlock:()=>dZ,isRemoveLockedBlock:()=>fZ,isResponsiveEditing:()=>q2e,isSectionBlock:()=>dp,isSelectedBlockStyleStateShownOnCanvas:()=>X2e,isWithinEditedContentOnlySection:()=>EB,isZoomOut:()=>J6,shouldRenderBlockListView:()=>$2e});var Ar=c(Q(),1),up=c(ue(),1);function wq(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 Mo=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var Tq=c(nv(),1);var nAe="1600px",iAe="320px",sAe=1,aAe=.25,lAe=.75,cAe="14px";function Eq({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=iAe,maximumViewportWidth:n=nAe,scaleFactor:i=sAe,minimumFontSizeLimit:s}){if(s=Hc(s)?s:cAe,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(_),aAe),lAe),w=pw(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=pw(p.value/100,3),g=pw(m,3)+l,b=100*((u.value-a.value)/h),v=pw((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:pw(d,3),unit:u}:null}function pw(e,t=3){let o=Math.pow(10,t);return Math.round(e*o)/o}function D6(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function uAe(e){let t=e?.typography??{},o=e?.layout,r=Hc(o?.wideSize)?o?.wideSize:null;return D6(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||!D6(t?.typography)&&!D6(e))return o;let r=uAe(t)?.fluid??{},n=Eq({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",mw=":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 Rq(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 V6(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 Bq(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 V6(e,r.join(","))}function dAe(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let o=(0,Tq.getCSSValueFromRawStyle)(Mo(t,e.ref));return typeof o=="object"&&o!==null&&"ref"in o&&o?.ref?void 0:o===void 0?e:o}return e}function fAe(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=dAe(e,t);return typeof o=="object"&&o!==null&&"url"in o&&o?.url&&(o.url=fAe(o.url,t?._links?.["wp:theme-file"])),o}function Pq(e,t,o=[],r="slug",n){let i=[t?Mo(e,["blocks",t,...o]):void 0,Mo(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"||Pq(e,t,o,"slug",d.slug)[r]===d[r]?d:void 0}}}}function pAe(e,t,o,[r,n]=[]){let i=pB.find(a=>a.cssVarInfix===r);if(!i||!e.settings)return o;let s=Pq(e.settings,t,i.path,"slug",n);if(s){let{valueKey:a}=i,l=s[a];return Ea(e,t,l)}return o}function mAe(e,t,o,r=[]){let n=(t?Mo(e?.settings??{},["blocks",t,"custom",...r]):void 0)??Mo(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=Mo(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"?pAe(e,t,o,l):a==="custom"?mAe(e,t,o,l):o}var Nq=c(hB(),1);function Lq(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mq(e){var t,o;return Lq(e)===!1?!1:(t=e.constructor,t===void 0?!0:(o=t.prototype,!(Lq(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}function gB(e,t){return(0,Nq.default)(e,t,{isMergeableObject:Mq,customMerge:o=>{if(o==="backgroundImage")return(r,n)=>n??r}})}var Ri=c(ue(),1),bw=c(nv(),1),Uq=c(Q(),1);function js(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 Mo(i,`${l}.root`,null)||Mo(i,l,null)||p;let h=s?Mo(s,`${l}.__experimentalSelector`,null):void 0;return h?Dl(u,h):p}let f;return a&&(f=Mo(i,l,null)),f||(r?js(e,d[0],o):null)}function sv(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 F6(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function RAe(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function z6(e,t="0"){let o=RAe(e);if(!o)return null;let r=F6(o?.top)||t,n=F6(o?.left)||t;return r===n?r:`${r} ${n}`}var Dq={backgroundSize:"cover",backgroundPosition:"50% 50%"};function Vq(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Dq.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:Dq.backgroundPosition}),t}var Fq={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 zq={mobile:"480px",tablet:"782px"},jq=/^(\d+|\d*\.\d+)(px|em|rem)$/,BAe=16;function PAe(e){return"mobile"in e||"tablet"in e}function IAe(e){return!e||typeof e!="object"?{}:PAe(e)?e:e.settings?.viewport??{}}function OAe(e){return typeof e=="string"&&jq.test(e.trim())}function j6(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(jq);if(!t)return;let o=Number.parseFloat(t[1]);return t[2]==="px"?o:o*BAe}function H6(e){let t=IAe(e),o={},r={};Object.keys(zq).forEach(a=>{let l=a,u=t[l],d=j6(u);d!==void 0&&OAe(u)&&(o[l]=u.trim(),r[l]=d)});let n=Object.keys(o);if(!n.length)return{...zq};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 gw(e){let t=H6(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 AAe={button:"wp-element-button",caption:"wp-element-caption"},LAe={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},Gq={"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 NAe(e="*",t={}){return pB.reduce((o,{path:r,cssVarInfix:n,classes:i})=>{if(!i)return o;let s=Mo(t,r,[]);return["default","theme","custom"].forEach(a=>{s[a]&&s[a].forEach(({slug:l})=>{i.forEach(({classSuffix:u,propertyName:d})=>{let f=`.has-${sv(l)}-${u}`,p=e?`:where(${e})${f}`:f,h=`var(--wp--preset--${n}--${sv(l)})`;o+=`${p}{${d}: ${h} !important;}`})})}),o},"")}var DAe=(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},VAe=(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},FAe=(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(Ri.__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=Mo(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(!Mo(g,[y],!1))return;let k=v.startsWith("--")?v:sv(v);l.push(`${k}: ${(0,bw.getCSSValueFromRawStyle)(Mo(g,[y]))}`)});else if(Mo(e,m,!1)){let b=u.startsWith("--")?u:sv(u);l.push(`${b}: ${(0,bw.getCSSValueFromRawStyle)(Mo(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,...Vq(e.background)}})),(0,bw.getCSSRules)(e).forEach(l=>{if(i&&(o||n)&&l.key.startsWith("padding"))return;let u=l.key.startsWith("--")?l.key:sv(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 Wq({layoutDefinitions:e=Fq,style:t,selector:o,hasBlockGapSupport:r,hasFallbackGapSupport:n,fallbackGapValue:i}){let s="",a=r?z6(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+=`${mw} { --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 zAe=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function jAe(e,t){return bB(e,void 0,t)}function bB(e,t,o){if(!e)return{};let r=Object.entries(e),n=t?Gq[t]??[]:[],s=r.filter(([a])=>zAe.includes(a)||n.includes(a)||o[a]).map(([a,l])=>[a,JSON.parse(JSON.stringify(l))]);return Object.fromEntries(s)}function Hq(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,mediaQuery:s,variationName:a}=e,l=n?Gq[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 HAe(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 UAe=(e,t)=>{let o=[];if(!e?.styles)return o;let r=gw(e),n=jAe(e.styles,r);return n&&o.push({styles:n,selector:Gc,skipSelectorWrapper:!0}),Object.entries(Ri.__EXPERIMENTAL_ELEMENTS).forEach(([i,s])=>{e.styles?.elements?.[i]&&o.push({styles:e.styles?.elements?.[i]??{},selector:s,elementName:i,skipSelectorWrapper:!AAe[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&&Ri.__EXPERIMENTAL_ELEMENTS[b]&&u.push({styles:v,selector:Dl(g,Ri.__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"?Rq(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&&Ri.__EXPERIMENTAL_ELEMENTS[x]&&u.push({styles:w,selector:Dl(y,Ri.__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]&&Ri.__EXPERIMENTAL_ELEMENTS[f]&&o.push({styles:p,selector:t[i]?.selector.split(",").map(h=>Ri.__EXPERIMENTAL_ELEMENTS[f].split(",").map(g=>h+" "+g)).join(","),elementName:f})}),o.push(...u)}),o},GAe=(e,t)=>{let o=[];if(!e?.settings)return o;let r=s=>{let a={};return pB.forEach(({path:l})=>{let u=Mo(s,l,!1);u!==!1&&(a=wq(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:mw}),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 WAe(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 B=FAe(m,f);B=DAe(B,t.settings,y),B=VAe(B,t.settings),Object.entries(B).forEach(([R,I])=>{if(I.length){let A=k?Bq(k,R):R;A=l?mB(A,l):A;let P=I.join(";");S+=`:root :where(${A}){${P};}`}})}if(d){let B={};f?.filter&&(B.filter=f.filter,delete f.filter);let R=yB(B);R.length&&(S+=`${d}{${R.join(";")};}`)}let x=g??_;!r&&(Gc===x||h)&&(S+=Wq({style:f,selector:x,hasBlockGapSupport:b??n,hasFallbackGapSupport:i,fallbackGapValue:p}));let T=yB(f,_,o,t,s);if(T?.length){let B=v?_:`:root :where(${_})`;S+=`${B}{${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=UAe(l,t),d=GAe(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+=`${mw} {`,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=gw(e);u.forEach(v=>{if(v.isStyleVariation&&!a.variationStyles)return;let y=HAe(v,b);[v,...y,...Hq(v),...y.flatMap(Hq)].forEach(k=>{g+=WAe(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=z6(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||mw===b)&&(b="");let y=NAe(b,v);y.length>0&&(g+=y)}),g};var $Ae=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(LAe).forEach(([r,n])=>{let i=js(e,r);i&&(o[n]=i)}),o},SB=(e,t)=>{let{getBlockStyles:o}=(0,Uq.select)(Ri.store),r={};return e.forEach(n=>{let i=n.name,s=js(n);if(!s)return;let a=js(n,"filter.duotone");if(!a){let h=js(n),m=(0,Ri.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=V6(g,s);f[g]=b});let p=$Ae(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=Mo(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 W6="default";function qq(e){let t=e?.viewport,o=e?.pseudoState;return(!t||t===W6)&&(!o||o===W6)}function KAe(e){return qq(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==W6)}function YAe(e,t){let o=KAe(t);return o.length?Mo(e,o):e}var qAe=new Set(["blocks","variations","css"]),U6=Object.freeze({value:{},sources:{}}),ZAe={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function ap(e){let t=ZAe[e];return t?{...t}:null}function lp(e,t){return!e||!t?null:{styles:e,source:t}}function XAe(e){return e.join(".")}function QAe(e){return{...e}}function Zq(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function G6(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(!qAe.has(o)){if(o==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}Zq(e[o])||(t[o]=e[o])}return Object.keys(t).length===0?null:t}var $q=new Set(["backgroundImage"]);function Xq(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(Zq(a))continue;if(G6(a)){if(a.ref.trim()==="")continue;let u=Mo(o,a.ref);if(u==null||G6(u))continue;a=u}let l=[...i,s];if(!$q.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!G6(a)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=Xq({...u},a,o,r,n,l)}else e[s]=$q.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,r&&n&&(n[XAe(l)]=QAe(r))}return e}function xB(e,t){if(!e)return null;let o=YAe(e,t);return o&&typeof o=="object"&&!Array.isArray(o)?o:null}var JAe=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function e2e(e){return e.startsWith("elements.")?!1:JAe.some(t=>e===t||e.startsWith(`${t}.`))}function Qq(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"&&(Qq(n,r),Object.keys(n).length===0&&delete e[o])}function t2e(e,t){for(let o of Object.keys(t))t[o].layer==="root"&&e2e(o)&&(Qq(e,o.split(".")),delete t[o])}function o2e(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 Kq(e,{blockName:t,variationName:o=null,elements:r=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return U6;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];qq(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 U6;let m={},g=h.reduce((b,v)=>Xq(b,v.styles,e,v.source,m),{});return t2e(g,m),o2e(g,e,e._links??null),{value:g,sources:m}}var r2e={},Yq=new WeakMap;function Jq(e,t={}){let o=e?.styles;if(!o||typeof o!="object")return Kq(e,t);let r=Yq.get(o);r||(r=new WeakMap,Yq.set(o,r));let n=e?._links??r2e,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=Kq(e,t);return i.set(a,l),l}var eZ=c(Bx(),1),{lock:tZ,unlock:$st}=(0,eZ.__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 vr={};tZ(vr,{getResponsiveMediaQueries:gw,getViewportBreakpoints:H6,getViewportBreakpointValueInPixels:j6,resolveStyle:Jq,getVariationStyle:_B});var wB=c(G(),1);var no={desktop:{label:(0,wB.__)("Desktop"),icon:b3,key:"desktop"},tablet:{label:(0,wB.__)("Tablet"),icon:y6,key:"tablet"},mobile:{label:(0,wB.__)("Mobile"),icon:Jx,key:"mobile"}},$6=Object.entries(no);var CB=c(ue(),1),oZ=c(go(),1);function De(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 n2e=["color","border","dimensions","typography","spacing"],i2e={"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},s2e={"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"},a2e=e=>s2e[e]||e;function rZ(e,t,...o){let r=Gt(e,t),n=[];if(t){let i=t;do{let s=Gt(e,i);(0,CB.hasBlockSupport)(s,"__experimentalSettings",!1)&&n.push(i)}while(i=e.blocks.parents.get(i))}return o.map(i=>{if(n2e.includes(i)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let s=(0,oZ.applyFilters)("blockEditor.useSetting.before",void 0,i,t,r);if(s!==void 0)return s;let a=a2e(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=i2e[a]?.(l);return u!==void 0?u:a==="typography.dropCap"?!0:void 0})}var{isContentBlock:K6,editableRootKey:l2e}=H(up.privateApis),{getViewportBreakpoints:c2e}=H(vr);function nZ(e,t){return t===no.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=>Bi(e,r)==="disabled"&&xn(e,r).every(o);return xn(e,t).every(o)};function vw(e,t,o){let r=K6(t),n=Gt(e,o),i=K6(n);return mg(e)===o||i&&r}function iZ(e,t){return{clientId:t,innerBlocks:sZ(e,t)}}function sZ(e,t=""){return xn(e,t).map(o=>iZ(e,o))}var Y6=(0,Ar.createSelector)(iZ,e=>[e.blocks.order]),q6=(0,Ar.createSelector)(sZ,e=>[e.blocks.order]);function Z6(e,t,o){let r=xn(e,t),n=[];for(let i of r){let s=Z6(e,i,o);o(e,i)?n.push({clientId:i,innerBlocks:s}):n.push(...s)}return n}function m2e(e,t){return Z6(e,t,(o,r)=>Bi(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}var g2e=(0,Ar.createSelector)((e,t)=>{if(!t||Bi(e,t)!=="default"||tz(e,t)!=="visual"||!(0,up.getBlockType)(Gt(e,t))?.[l2e])return!1;let o=xn(e,ir(e,t));return o.length>1&&o.every(r=>Bi(e,r)==="default")},e=>[e.blocks.order,e.blocks.parents,e.blocks.byClientId,e.blocks.blockEditingModes,e.derivedBlockEditingModes,e.blocksMode]);function b2e(e,t){return Z6(e,t,(o,r)=>{if(Bi(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)||K6(Gt(o,r)))return!0}return!1})}var y2e=(0,Ar.createRegistrySelector)(()=>(0,Ar.createSelector)(m2e,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes])),v2e=(0,Ar.createRegistrySelector)(()=>(0,Ar.createSelector)(b2e,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes,e.blocks.parents,e.blocks.byClientId,e.blocks.attributes,e.blockListSettings,e.editedContentOnlySection,e.settings])),S2e=(0,Ar.createSelector)((e,t,o=!1)=>Hs(e,t,o).filter(r=>Bi(e,r)!=="disabled"),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function k2e(e){return e.removalPromptData}function _2e(e){return e.blockRemovalRules}var x2e=(0,Ar.createSelector)(e=>{let o=av(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 w2e(e){return e.registeredInserterMediaCategories}var C2e=(0,Ar.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]),E2e=(0,Ar.createRegistrySelector)(e=>(0,Ar.createSelector)((t,o=null)=>{let{getAllPatterns:r}=H(e(nr)),n=r(),{allowedBlockTypes:i}=ud(t);return n.some(s=>{let{inserter:a=!0}=s;if(!a)return!1;let l=pg(s);return kw(l,i)&&l.every(({name:u})=>hg(t,u,o))})},(t,o)=>[..._w(e)(t),...fp(e)(t,o)])),T2e=(0,Ar.createRegistrySelector)(e=>(0,Ar.createSelector)((t,o)=>{if(o?.startsWith("core/block/")){let r=parseInt(o.slice(11),10),n=H(e(nr)).getReusableBlocks().find(({id:i})=>i===r);return n?Sw(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(nr)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[qf]?.(e)])),R2e=(0,Ar.createRegistrySelector)(e=>(0,Ar.createSelector)(t=>[...H(e(nr)).getReusableBlocks().map(o=>Sw(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)),_w(e))),B2e=[],P2e=(0,Ar.createRegistrySelector)(e=>t=>{let o=t.settings[cT];return(o?o(e):t.settings.__experimentalReusableBlocks)??B2e});function I2e(e){return e.lastFocus}function O2e(e){return e.isDragging}function A2e(e){return e.expandedBlock}var X6=(e,t)=>{let o=t,r;for(;!r&&(o=e.blocks.parents.get(o));)Wc(e,o)==="contentOnly"&&(r=o);return r};function aZ(e,t){let o=Gt(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=ir(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);)aZ(e,o)&&(r=o);return r};function dp(e,t){return EB(e,t)||dd(e,t)?!1:aZ(e,t)}function Q6(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 L2e=(0,Ar.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 mg(e){return e.settings?.[Zf]}function J6(e){return e.zoomLevel==="auto-scaled"||e.zoomLevel<100}function M2e(e){return e.zoomLevel}function lZ(e,t,o=""){let r=Array.isArray(t)?t:[t],n=s=>r.every(a=>hg(e,a,s));if(!o){if(n(o))return o;let s=mg(e);return s&&n(s)?s:null}let i=o;for(;i!==null&&!n(i);)i=ir(e,i);return i}function N2e(e,t,o){let{allowedBlockTypes:r}=ud(e);if(!kw(pg(t),r))return null;let i=pg(t).map(({blockName:s})=>s);return lZ(e,i,o)}function D2e(e){return e.insertionPoint}var V2e=(e,t)=>{let o=Gt(e,t);if(!(0,up.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(no).some(i=>nZ(e,i.key)&&n?.viewport?.[i.key]===!1):!1},ez=(e,t)=>{let o=Gt(e,t);return(0,up.hasBlockSupport)(o,"visibility",!0)?e.blocks.attributes.get(t)?.metadata?.blockVisibility===!1:!1},F2e=(e,t)=>Hs(e,t).some(r=>ez(e,r)),cZ=(e,t,o)=>{if(ez(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 nZ(e,i)&&n?.[i]===!1}return!1},z2e=(e,t,o)=>Hs(e,t).some(n=>cZ(e,n,o));function j2e(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function uZ(e,t){return!!Ta(e,t)?.lock?.edit}function dZ(e,t){let o=Ta(e,t);if(o?.lock?.move!==void 0)return!!o?.lock?.move;let r=ir(e,t);return Wc(e,r)==="all"}function fZ(e,t){let o=Ta(e,t);if(o?.lock?.remove!==void 0)return!!o?.lock?.remove;let r=ir(e,t),n=Wc(e,r);return n==="all"||n==="insert"}function H2e(e,t){return uZ(e,t)||dZ(e,t)||fZ(e,t)}function U2e(e){return e.listViewContentPanelOpen}function G2e(e,t){return e.openedListViewPanels?.allOpen?!0:e.openedListViewPanels?.panels?.[t]===!0}function W2e(e){return e.listViewExpandRevision||0}function $2e(e,t){let o=Gt(e,t);if(o==="core/navigation")return!0;if(!(0,up.hasBlockSupport)(o,"listView"))return!1;let r=lv(e,t)?.allowedBlocks;return!(xn(e,t).length===0&&(r===!1||Array.isArray(r)&&r.length===0))}function K2e(e){return e.viewportModalClientIds}function Y2e(e){return e.requestedInspectorTab}var yw={viewport:"default",pseudo:"default"};function pZ(e){return e.styleStateViewport??yw.viewport}function q2e(e){return e.isResponsiveEditing}var mZ=(0,Ar.createSelector)((e,t)=>({...e.selectedBlockStyleState?.clientId===t?e.selectedBlockStyleState.value??yw:yw,viewport:pZ(e)}),e=>[e.styleStateViewport,e.selectedBlockStyleState]);function Z2e(e,t){let o=mZ(e,t);return o.viewport!==yw.viewport||o.pseudo!==yw.pseudo}function X2e(e,t){return e.selectedBlockStyleState?.clientId!==t?!0:e.selectedBlockStyleState.showStateOnCanvas??!0}var ww=c(G(),1),Yo={user:"user",theme:"theme",directory:"directory"},xw={full:"fully",unsynced:"unsynced"},gg={name:"allPatterns",label:(0,ww._x)("All","patterns")},fd={name:"myPatterns",label:(0,ww.__)("My patterns")},cv={name:"core/starter-content",label:(0,ww.__)("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===Yo.theme&&(r||n)||t===Yo.directory&&(r||!n)||t===Yo.user&&e.type!==Yo.user||o===xw.full&&e.syncStatus!==""||o===xw.unsynced&&e.syncStatus!=="unsynced"&&r)}var pp=Symbol("isFiltered"),hZ=new WeakMap,gZ=new WeakMap;function Sw(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:Yo.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 Q2e(e){let t=(0,bZ.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=hZ.get(e);return t||(t=Q2e(e),hZ.set(e,t)),t}function pg(e){let t=gZ.get(e);return t||(t=(0,yZ.parse)(e.content),t=t.filter(o=>o.blockName!==null),gZ.set(e,t)),t}var bg=(e,t,o=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):o,kw=(e,t)=>{if(typeof t=="boolean")return t;let o=[...e];for(;o.length>0;){let r=o.shift();if(!bg(t,r.name||r.blockName,!0))return!1;r.innerBlocks?.forEach(i=>{o.push(i)})}return!0},_w=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[id]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[qf]?.(e),t.blockPatterns,H(e(nr)).getReusableBlocks()],fp=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,Bi(e,t),mg(e),dp(e,t),dd(e,t)];function vZ(e,t){return typeof e=="string"&&typeof t=="string"?e>t:Number(e)>Number(t)}var J2e=(e,t,o)=>(r,n)=>{let i,s;if(typeof e=="function"?(i=e(r),s=e(n)):(i=r[e],s=n[e]),vZ(i,s))return o==="asc"?1:-1;if(vZ(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(J2e(t,e,o))}var{isContentBlock:rz}=H(vt.privateApis),eLe=3600*1e3,tLe=24*3600*1e3,oLe=168*3600*1e3,zn=[],rLe=new Set,_Z={[pp]:!0};function Gt(e,t){let o=e.blocks.byClientId.get(t);return o?o.name:null}function nLe(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 iLe=(0,St.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 sLe(e,t){let o=!t||!AB(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(o)?.innerBlocks||zn}function aLe(e,t){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),Y6(e,t)}function lLe(e,t){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),q6(e,t)}var xZ=(0,St.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]),av=e=>xZ(e,""),cLe=(0,St.createSelector)((e,t)=>{let o=av(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]),wZ=(0,St.createSelector)((e,t)=>{if(!t)return zn;let o=Array.isArray(t)?t:[t],n=av(e).filter(i=>{let s=e.blocks.byClientId.get(i);return o.includes(s.name)});return n.length>0?n:zn},e=>[e.blocks.order,e.blocks.byClientId]);function uLe(e,t){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),wZ(e,t)}var PB=(0,St.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))),dLe=(0,St.createSelector)((e,t)=>PB(e,t).filter(Boolean).map(o=>o.name),(e,t)=>PB(e,t));function fLe(e,t){return xn(e,t).length}function Ew(e){return e.selection.selectionStart}function Tw(e){return e.selection.selectionEnd}function pLe(e){return e.selection.selectionStart.clientId}function mLe(e){return e.selection.selectionEnd.clientId}function hLe(e){let t=mp(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function gLe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return!!t.clientId&&t.clientId===o.clientId}function uv(e){let{selectionStart:t,selectionEnd:o}=e.selection,{clientId:r}=t;return!r||r!==o.clientId?null:r}function bLe(e){let t=uv(e);return t?md(e,t):null}function ir(e,t){return e.blocks.parents.get(t)??null}var Hs=(0,St.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():zn},e=>[e.blocks.parents]),nz=(0,St.createSelector)((e,t,o,r=!1)=>{let n=Hs(e,t,r),i=Array.isArray(o)?s=>o.includes(s):s=>o===s;return n.filter(s=>i(Gt(e,s)))},e=>[e.blocks.parents]);function yLe(e,t){let o=t,r;do r=o,o=e.blocks.parents.get(o);while(o);return r}function vLe(e,t){let o=uv(e),r=[...Hs(e,t),t],n=[...Hs(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 iz(e,t,o=1){if(t===void 0&&(t=uv(e)),t===void 0&&(o<0?t=sz(e):t=EZ(e)),!t)return null;let r=ir(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 SLe(e,t){return iz(e,t,-1)}function kLe(e,t){return iz(e,t,1)}function _Le(e){return e.initialPosition}function CZ(e){let{selectionStart:t,selectionEnd:o}=e.selection,r=t.clientId,n=o.clientId;if(!(!r||!n||r===n)){if(Hs(e,n).includes(r))return r;if(Hs(e,r).includes(n))return n}}var dv=(0,St.createSelector)(e=>{let{selectionStart:t,selectionEnd:o}=e.selection;if(!t.clientId||!o.clientId)return zn;if(t.clientId===o.clientId)return[t.clientId];let r=CZ(e);if(r)return[r];let n=ir(e,t.clientId);if(n===null)return zn;let i=xn(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 mp(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?zn:dv(e)}var xLe=(0,St.createSelector)(e=>{let t=mp(e);return t.length?t.map(o=>md(e,o)):zn},e=>[...dv.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function sz(e){return mp(e)[0]||null}function EZ(e){let t=mp(e);return t[t.length-1]||null}function wLe(e,t){return sz(e)===t}function TZ(e,t){return mp(e).indexOf(t)!==-1}var CLe=(0,St.createSelector)((e,t)=>{let o=t,r=!1;for(;o&&!r;)o=ir(e,o),r=TZ(e,o);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ELe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:t.clientId||null}function TLe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:o.clientId||null}function RLe(e){if(CZ(e))return!0;let t=Ew(e),o=Tw(e);return!t.attributeKey&&!o.attributeKey&&typeof t.offset>"u"&&typeof o.offset>"u"}function BLe(e){let t=Ew(e),o=Tw(e);return!!t&&!!o&&t.clientId===o.clientId&&t.attributeKey===o.attributeKey&&t.offset===o.offset}function PLe(e){return dv(e).some(t=>{let o=Gt(e,t);return!(0,vt.getBlockType)(o).merge})}function ILe(e,t){let o=Ew(e),r=Tw(e);if(o.clientId===r.clientId||!o.attributeKey||!r.attributeKey||typeof o.offset>"u"||typeof r.offset>"u")return!1;let n=ir(e,o.clientId),i=ir(e,r.clientId);if(n!==i)return!1;let s=xn(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=Gt(e,f);if(!(0,vt.getBlockType)(h).merge)return!1;let g=md(e,p);if(g.name===h)return!0;let b=(0,vt.switchToBlockType)(g,h);return b&&b.length}var OLe=e=>{let t=Ew(e),o=Tw(e);if(t.clientId===o.clientId||!t.attributeKey||!o.attributeKey||typeof t.offset>"u"||typeof o.offset>"u")return zn;let r=ir(e,t.clientId),n=ir(e,o.clientId);if(r!==n)return zn;let i=xn(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 xn(e,t){return e.blocks.order.get(t||"")||zn}function RZ(e,t){let o=ir(e,t);return xn(e,o).indexOf(t)}function BZ(e,t){let{selectionStart:o,selectionEnd:r}=e.selection;return o.clientId!==r.clientId?!1:o.clientId===t}function PZ(e,t,o=!1){let r=dv(e);return r.length?o?r.some(n=>Hs(e,n,!0).includes(t)):r.some(n=>ir(e,n)===t):!1}function IZ(e,t,o=!1){return xn(e,t).some(r=>az(e,r)||o&&IZ(e,r,o))}function ALe(e,t){if(!t)return!1;let o=mp(e),r=o.indexOf(t);return r>-1&&r<o.length-1}function LLe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId!==o.clientId}function MLe(e){return e.isMultiSelecting}function NLe(e){return e.isSelectionEnabled}function tz(e,t){return e.blocksMode[t]||"visual"}function DLe(e){return e.isTyping}function OZ(e){return!!e.draggedBlocks.length}function VLe(e){return e.draggedBlocks}function az(e,t){return e.draggedBlocks.includes(t)}function FLe(e,t){return OZ(e)?Hs(e,t).some(r=>az(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,St.createSelector)(e=>{let t,o,{insertionCue:r,selection:{selectionEnd:n}}=e;if(r!==null)return r;let{clientId:i}=n;return i?(t=ir(e,i)||void 0,o=RZ(e,n.clientId)+1):o=xn(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=lv(e,t)?.templateLock;return o==="contentOnly"&&e.editedContentOnlySection===t?!1:o??!1}var lz=(e,t,o=null)=>{let r,n;if(t&&typeof t=="object"?(r=t,n=t.name):(r=(0,vt.getBlockType)(t),n=t),!r)return!1;let{allowedBlockTypes:i}=ud(e);if(!bg(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(Gt(e,l))){u=!0;break}l=e.blocks.parents.get(l)}while(l);return u}return!0},Rw=(e,t,o=null)=>{if(e.settings.isPreviewMode||!lz(e,t,o))return!1;let r;t&&typeof t=="object"?(r=t,t=r.name):r=(0,vt.getBlockType)(t);let n=Wc(e,o);if(n&&n!=="contentOnly"||cz(e,o))return!1;let i=Bi(e,o??""),s=!!dp(e,o),a=s?o:dd(e,o),l=!!a;if(i==="disabled"&&(!l||t!==(0,vt.getDefaultBlockName)()))return!1;let u=lv(e,o);if(o&&u===void 0)return!1;let d=rz(t);if(l&&!d||l&&Gt(e,a)==="core/block")return!1;if(l&&(s||i==="contentOnly"||i==="disabled")&&!vw(e,t,o)){let S=(0,vt.getDefaultBlockName)();if(t===S){if(!xn(e,o).some(w=>Gt(e,w)===S))return!1}else return!1}let f=Gt(e,o),h=(0,vt.getBlockType)(f)?.allowedBlocks,m=bg(h,t);if(m!==!1){let S=u?.allowedBlocks,_=bg(S,t);_!==null&&(m=_)}let g=r.parent,b=bg(g,f),v=!0,y=r.ancestor;y&&(v=[o,...Hs(e,o)].some(_=>bg(y,Gt(e,_))));let k=v&&(m===null&&b===null||m===!0||b===!0);return k&&(0,kZ.applyFilters)("blockEditor.__unstableCanInsertBlockType",k,r,o,{getBlock:md.bind(null,e),getBlockParentsByBlockName:nz.bind(null,e)})},hg=(0,St.createRegistrySelector)(e=>(0,St.createSelector)(Rw,(t,o,r)=>fp(e)(t,r)));function WLe(e,t,o=null){return t.every(r=>hg(e,Gt(e,r),o))}function cz(e,t){return!!t&&Gt(e,t)==="core/html"}function uz(e,t){if(e.settings.isPreviewMode||cz(e,ir(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=ir(e,t),n=Wc(e,r);if(n&&n!=="contentOnly")return!1;let i=!!dp(e,r),s=i?r:dd(e,r),a=!!s,l=rz(Gt(e,t));if(a&&!l||a&&Gt(e,s)==="core/block")return!1;let u=Bi(e,r),d=Gt(e,t),f=(0,vt.getDefaultBlockName)();return a&&(i||d===f||u==="contentOnly")&&!vw(e,Gt(e,t),r)?d===f?xn(e,r).filter(m=>Gt(e,m)===f).length>1:!1:u!=="disabled"}function AZ(e,t){return t.every(o=>uz(e,o))}function LZ(e,t){if(e.settings.isPreviewMode||cz(e,ir(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=ir(e,t);if(Wc(e,r)==="all")return!1;let i=!!dd(e,t),s=rz(Gt(e,t));if(i&&!s)return!1;let a=!!dp(e,r),l=Bi(e,r);return i&&(a||l==="contentOnly")&&!vw(e,Gt(e,t),r)?!1:Bi(e,r)!=="disabled"}function $Le(e,t){return t.every(o=>LZ(e,o))}function MZ(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,vt.hasBlockSupport)(t,"lock",!0)?!1:!!e.settings?.canLockBlocks}function IB(e,t){return e.preferences.insertUsage?.[t]??null}var Cw=(e,t,o)=>(0,vt.hasBlockSupport)(t,"inserter",!0)?Rw(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<eLe:return t*4;case o<tLe:return t*2;case o<oLe:return t/2;default:return t/4}},NZ=(e,{buildScope:t="inserter"})=>o=>{let r=o.name,n=!1;(0,vt.hasBlockSupport)(o.name,"multiple",!0)||(n=PB(e,av(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,vt.getBlockVariations)(o.name,"inserter"),u=(0,vt.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,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o=null,r=_Z)=>{let n=h=>{let m=h.wp_pattern_sync_status?jc:{src:jc,foreground:"var(--wp-block-synced-color)"},g=Sw(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=Rw(t,"core/block",o)?H(e(nr)).getReusableBlocks().map(n):[],s=NZ(t,{buildScope:"inserter"}),a=(0,vt.getBlockTypes)().filter(h=>(0,vt.hasBlockSupport)(h,"inserter",!0)).map(s);if(r[pp]!==!1)a=a.filter(h=>Cw(t,h,o));else{let{getClosestAllowedInsertionPoint:h}=H(e(nr));a=a.filter(m=>lz(t,m,o)&&h(m.name,o)!==null).map(m=>({...m,isAllowedInCurrentRoot:Cw(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,vt.getBlockTypes)(),H(e(nr)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...fp(e)(t,o)])),XLe=(0,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o,r=null)=>{let n=Array.isArray(o)?o:[o],i=NZ(t,{buildScope:"transform"}),s=(0,vt.getBlockTypes)().filter(u=>Cw(t,u,r)).map(i),a=Object.fromEntries(Object.entries(s).map(([,u])=>[u.name,u])),l=(0,vt.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,vt.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,vt.getBlockTypes)(),t.preferences.insertUsage,...fp(e)(t,r)])),QLe=(e,t=null)=>(0,vt.getBlockTypes)().some(n=>Cw(e,n,t))?!0:Rw(e,"core/block",t),oz=(0,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o=null)=>{if(!o)return;let r=(0,vt.getBlockTypes)().filter(i=>Cw(t,i,o));return Rw(t,"core/block",o)&&r.push("core/block"),r},(t,o)=>[(0,vt.getBlockTypes)(),...fp(e)(t,o)])),JLe=(0,St.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"}),oz(e,t)),(e,t)=>oz.getDependants(e,t));function DZ(e,t=null){if(!t)return;let{defaultBlock:o,directInsert:r}=e.blockListSettings.get(t)??{};if(!(!o||!r))return o}function eMe(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"}),DZ(e,t)}var tMe=(0,St.createRegistrySelector)(e=>(t,o)=>{let r=H(e(nr)).getPatternBySlug(o);return r?BB(r):null}),dz=e=>(t,o)=>[..._w(e)(t),...fp(e)(t,o)],SZ=new WeakMap;function oMe(e){let t=SZ.get(e);return t||(t={...e,get blocks(){return BB(e).blocks}},SZ.set(e,t)),t}var rMe=(0,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o=null,r=_Z)=>{let{getAllPatterns:n}=H(e(nr)),i=n(),{allowedBlockTypes:s}=ud(t);return i.filter(({inserter:d=!0})=>!!d).map(oMe).filter(d=>kw(pg(d),s)).filter(d=>pg(d).every(({blockName:f})=>r[pp]!==!1?hg(t,f,o):lz(t,f,o)))},dz(e))),nMe=(0,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o,r=null)=>{if(!o)return zn;let n=e(nr).__experimentalGetAllowedPatterns(r),i=Array.isArray(o)?o:[o],s=n.filter(a=>a?.blockTypes?.some?.(l=>i.includes(l)));return s.length===0?zn:s},(t,o,r)=>dz(e)(t,r))),iMe=(0,St.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(nr).getPatternsByBlockTypes)),sMe=(0,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o,r=null)=>{if(!o||o.some(({clientId:i,innerBlocks:s})=>s.length||AB(t,i)))return zn;let n=Array.from(new Set(o.map(({name:i})=>i)));return e(nr).getPatternsByBlockTypes(n,r)},(t,o,r)=>dz(e)(t,r)));function lv(e,t){return e.blockListSettings.get(t)}function ud(e){return e.settings}function aMe(e){return e.blocks.isPersistentChange}function lMe(e){return e.blocks.lastBlockChangeHistoryMode?e.blocks.lastBlockChangeHistoryMode:e.blocks.isPersistentChange===!1?"merge":"persistent"}var cMe=(0,St.createSelector)((e,t=[])=>{let o={};for(let r of t){let n=lv(e,r);n&&(o[r]=n)}return o},e=>[e.blockListSettings]),uMe=(0,St.createRegistrySelector)(e=>(0,St.createSelector)((t,o)=>{(0,Us.default)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});let r=H(e(nr)).getReusableBlocks().find(n=>n.id===o);return r?r.title?.raw:null},()=>[H(e(nr)).getReusableBlocks()]));function dMe(e){return e.blocks.isIgnoredChange}function fMe(e){return e.lastBlockAttributesChange}function pMe(){return(0,Us.default)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function mMe(e){return!!e.automaticChangeStatus}function hMe(e,t){return e.highlightedBlock===t}function AB(e,t){return e.blocks.controlledInnerBlocks.has(t)}var gMe=(0,St.createSelector)((e,t)=>{if(!t.length)return null;let o=uv(e);if(t.includes(Gt(e,o)))return o;let r=mp(e),n=nz(e,o||r[0],t);return n?n[n.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function bMe(e,t,o){let{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===o}function yMe(e,t){return e.blockVisibility?.[t]??!0}function vMe(){(0,Us.default)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var SMe=(0,St.createSelector)(e=>{let t=new Set(Object.keys(e.blockVisibility).filter(o=>e.blockVisibility[o]));return t.size===0?rLe:t},e=>[e.blockVisibility]);function VZ(e,t){if(Bi(e,t)!=="default")return!1;if(!MZ(e,t))return!0;if(J6(e)){let n=mg(e);if(n){if(xn(e,n)?.includes(t))return!0}else if(t&&!ir(e,t))return!0}return((0,vt.hasBlockSupport)(Gt(e,t),"__experimentalDisableBlockOverlay",!1)?!1:AB(e,t))&&!BZ(e,t)&&!PZ(e,t,!0)}function kMe(e,t){let o=e.blocks.parents.get(t);for(;o;){if(VZ(e,o))return!0;o=e.blocks.parents.get(o)}return!1}function Bi(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 _Me=(0,St.createRegistrySelector)(e=>(t,o="")=>{let r=o||uv(t);if(!r||dp(t,r))return!1;let{getGroupingBlockName:n}=e(vt.store),i=md(t,r),s=n();return i&&(i.name===s||(0,vt.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&uz(t,r)}),xMe=(0,St.createRegistrySelector)(e=>(t,o=zn)=>{let{getGroupingBlockName:r}=e(vt.store),n=r(),i=o?.length?o:dv(t),s=i?.length?ir(t,i[0]):void 0;return hg(t,n,s)&&i.length&&AZ(t,i)}),wMe=(e,t)=>((0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),X6(e,t));function CMe(e){return(0,Us.default)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Q6(e)}var LB={};Or(LB,{__experimentalUpdateSettings:()=>pz,clearBlockRemovalPrompt:()=>IMe,clearRequestedInspectorTab:()=>qMe,closeListViewContentPanel:()=>WMe,deleteStyleOverride:()=>LMe,editContentOnlySection:()=>hz,ensureDefaultBlock:()=>UZ,expandBlock:()=>VMe,hideBlockInterface:()=>RMe,hideViewportModal:()=>KMe,openListViewContentPanel:()=>GMe,privateRemoveBlocks:()=>mz,requestInspectorTab:()=>YMe,resetZoomLevel:()=>HMe,setBlockRemovalRules:()=>OMe,setInsertionPoint:()=>FMe,setLastFocus:()=>MMe,setResponsiveEditing:()=>JMe,setSelectedBlockStyleState:()=>ZMe,setSelectedBlockStyleStateCanvasPreview:()=>XMe,setStyleOverride:()=>AMe,setStyleStateViewport:()=>QMe,setZoomLevel:()=>jMe,showBlockInterface:()=>BMe,showViewportModal:()=>$Me,startDragging:()=>NMe,stopDragging:()=>DMe,stopEditingContentOnlySection:()=>zMe,toggleBlockSpotlight:()=>UMe});var zZ=c(Rt(),1),jZ=c(Qr(),1),HZ=c(G(),1),EMe=e=>Array.isArray(e)?e:[e],TMe=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function pz(e,{stripExperimentalSettings:t=!1,reset:o=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,zZ.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)TMe.includes(i)||(n[i]=r[i])}return{type:"UPDATE_SETTINGS",settings:n,reset:o}}function RMe(){return{type:"HIDE_BLOCK_INTERFACE"}}function BMe(){return{type:"SHOW_BLOCK_INTERFACE"}}var mz=(e,t=!0,o=!1)=>({select:r,dispatch:n,registry:i})=>{if(!e||!e.length||(e=EMe(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(PMe(e,t,p));return}}t&&n.selectPreviousBlock(e[0],t),i.batch(()=>{n({type:"REMOVE_BLOCKS",clientIds:e}),n(UZ())})},UZ=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;let{__unstableHasCustomAppender:r}=e.getSettings();r||t.insertDefaultBlock()};function PMe(e,t,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:o}}function IMe(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function OMe(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function AMe(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function LMe(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function MMe(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function NMe(){return{type:"START_DRAGGING"}}function DMe(){return{type:"STOP_DRAGGING"}}function VMe(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function FMe(e){return{type:"SET_INSERTION_POINT",value:e}}function hz(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function zMe(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var jMe=(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,jZ.speak)((0,HZ.__)("You are currently in zoom-out mode."))}}o({type:"SET_ZOOM_LEVEL",zoom:e})};function HMe(){return{type:"RESET_ZOOM_LEVEL"}}function UMe(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function GMe(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function WMe(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function $Me(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function KMe(){return{type:"HIDE_VIEWPORT_MODAL"}}function YMe(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function qMe(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function ZMe(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function XMe(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}function QMe(e){return{type:"SET_STYLE_STATE_VIEWPORT",viewport:e}}function JMe(e){return{type:"SET_RESPONSIVE_EDITING",enabled:e}}var yz={};Or(yz,{__unstableDeleteSelection:()=>xNe,__unstableExpandSelection:()=>CNe,__unstableIncrementListViewExpandRevision:()=>iDe,__unstableMarkAutomaticChange:()=>UNe,__unstableMarkLastChangeAsPersistent:()=>jNe,__unstableMarkNextChangeAsNotPersistent:()=>HNe,__unstableSaveReusableBlock:()=>zNe,__unstableSetAllListViewPanelsOpen:()=>rDe,__unstableSetEditorMode:()=>GNe,__unstableSetOpenListViewPanel:()=>oDe,__unstableSetTemporarilyEditingAsBlocks:()=>QNe,__unstableSplitSelection:()=>wNe,__unstableToggleListViewPanel:()=>nDe,clearSelectedBlock:()=>fNe,duplicateBlocks:()=>$Ne,enterFormattedText:()=>LNe,exitFormattedText:()=>MNe,flashBlock:()=>qNe,hideInsertionPoint:()=>SNe,hoverBlock:()=>sNe,insertAfterBlock:()=>YNe,insertBeforeBlock:()=>KNe,insertBlock:()=>yNe,insertBlocks:()=>JZ,insertDefaultBlock:()=>DNe,mergeBlocks:()=>ENe,moveBlockToPosition:()=>bNe,moveBlocksDown:()=>hNe,moveBlocksToPosition:()=>QZ,moveBlocksUp:()=>gNe,multiSelect:()=>dNe,receiveBlocks:()=>oNe,registerInserterMediaCategory:()=>JNe,removeBlock:()=>TNe,removeBlocks:()=>eX,replaceBlock:()=>mNe,replaceBlocks:()=>ZZ,replaceInnerBlocks:()=>RNe,resetBlocks:()=>eNe,resetSelection:()=>tNe,selectBlock:()=>iNe,selectNextBlock:()=>lNe,selectPreviousBlock:()=>aNe,selectionChange:()=>NNe,setBlockEditingMode:()=>eDe,setBlockMovingClientId:()=>WNe,setBlockVisibility:()=>XNe,setHasControlledInnerBlocks:()=>ZNe,setTemplateValidity:()=>kNe,showInsertionPoint:()=>vNe,startDraggingBlocks:()=>ONe,startMultiSelect:()=>cNe,startTyping:()=>PNe,stopDraggingBlocks:()=>ANe,stopMultiSelect:()=>uNe,stopTyping:()=>INe,synchronizeTemplate:()=>_Ne,toggleBlockHighlight:()=>bz,toggleBlockMode:()=>BNe,toggleSelection:()=>pNe,unsetBlockEditingMode:()=>tDe,updateBlock:()=>nNe,updateBlockAttributes:()=>rNe,updateBlockListSettings:()=>VNe,updateSettings:()=>FNe,validateBlocksToTemplate:()=>qZ});var et=c(ue(),1),MB=c(Qr(),1),hp=c(G(),1),KZ=c(as(),1),bo=c(Ko(),1),gd=c(Rt(),1),YZ=c(fv(),1);var $Z=c(Ko(),1),hd="\x86";function Bw(e){if(e)return Object.keys(e).find(t=>{let o=e[t];return(typeof o=="string"||o instanceof $Z.RichTextData)&&o.toString().indexOf(hd)!==-1})}function gz(e){for(let[t,o]of Object.entries(e.attributes))if(o.source==="rich-text"||o.source==="html")return t}var pv=e=>Array.isArray(e)?e:[e],eNe=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(qZ(e))},qZ=e=>({select:t,dispatch:o})=>{let r=t.getTemplate(),n=t.getTemplateLock(),i=!r||n!=="all"||(0,et.doBlocksMatchTemplate)(e,r),s=t.isValidTemplate();if(i!==s)return o.setTemplateValidity(i),i};function tNe(e,t,o){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:o}}function oNe(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 rNe(e,t,o={uniqueByBlock:!1}){return typeof o=="boolean"&&(o={uniqueByBlock:o}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:pv(e),attributes:t,options:o}}function nNe(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function iNe(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function sNe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var aNe=(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)}}},lNe=e=>({select:t,dispatch:o})=>{let r=t.getNextBlockClientId(e);r&&o.selectBlock(r)};function cNe(){return{type:"START_MULTI_SELECT"}}function uNe(){return{type:"STOP_MULTI_SELECT"}}var dNe=(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,MB.speak)((0,hp.sprintf)((0,hp._n)("%s block selected.","%s blocks selected.",a),a),"assertive")};function fNe(){return{type:"CLEAR_SELECTED_BLOCK"}}function pNe(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var ZZ=(e,t,o,r=0,n)=>({select:i,dispatch:s,registry:a})=>{e=pv(e),t=pv(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 mNe(e,t){return ZZ(e,t)}var XZ=e=>(t,o)=>({select:r,dispatch:n})=>{r.canMoveBlocks(t)&&n({type:e,clientIds:pv(t),rootClientId:o})},hNe=XZ("MOVE_BLOCKS_DOWN"),gNe=XZ("MOVE_BLOCKS_UP"),QZ=(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 bNe(e,t="",o="",r){return QZ([e],t,o,r)}function yNe(e,t,o,r,n,i){return JZ([e],t,o,r,n,i)}var JZ=(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=pv(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 vNe(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 SNe=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function kNe(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var _Ne=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});let o=e.getBlocks(),r=e.getTemplate(),n=(0,et.synchronizeBlocksWithTemplate)(o,r);t.resetBlocks(n)},xNe=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,et.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,bo.create)({html:S}),w=(0,bo.create)({html:_});x=(0,bo.remove)(x,b.offset,x.text.length),w=(0,bo.insert)(w,hd,0,v.offset);let T=(0,et.cloneBlock)(y,{[b.attributeKey]:(0,bo.toHTMLString)({value:x})}),B=(0,et.cloneBlock)(k,{[v.attributeKey]:(0,bo.toHTMLString)({value:w})}),R=e?T:B,I=y.name===k.name?[R]:(0,et.switchToBlockType)(R,g.name);if(!I||!I.length)return;let A;if(e){let z=I.pop();A=g.merge(z.attributes,B.attributes)}else{let z=I.shift();A=g.merge(T.attributes,z.attributes)}let P=Bw(A),O=A[P],N=(0,bo.create)({html:O}),j=N.text.indexOf(hd),D=(0,bo.remove)(N,j,j+1),M=(0,bo.toHTMLString)({value:D});A[P]=M;let V=o.getSelectedBlockClientIds(),L=[...e?I:[],{...m,attributes:{...m.attributes,...A},innerBlocks:k.innerBlocks},...e?[]:I];t.batch(()=>{r.selectionChange(m.clientId,P,j,j),r.replaceBlocks(V,L,0,o.getSelectedBlocksInitialCaretPosition())})},wNe=(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,et.getBlockType)(g.name),y=(0,et.getBlockType)(b.name),k=typeof h.attributeKey=="string"?h.attributeKey:gz(v),S=typeof m.attributeKey=="string"?m.attributeKey:gz(y),_=o.getBlockAttributes(h.clientId);if(_?.metadata?.bindings?.[k]){if(e.length){let{createWarningNotice:J}=t.dispatch(KZ.store);J((0,hp.__)("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,et.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,et.getDefaultBlockName)();return o.canInsertBlockType(ee,s)?(0,et.createBlock)(ee):(0,et.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],B=b.attributes[S],R=(0,bo.create)({html:T}),I=(0,bo.create)({html:B});R=(0,bo.remove)(R,h.offset,R.text.length),I=(0,bo.remove)(I,0,m.offset);let A={...g,innerBlocks:g.clientId===b.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[k]:(0,bo.toHTMLString)({value:R})}},P={...b,clientId:g.clientId===b.clientId?(0,et.createBlock)(b.name).clientId:b.clientId,attributes:{...b.attributes,[S]:(0,bo.toHTMLString)({value:I})}},O=(0,et.getDefaultBlockName)();if(g.clientId===b.clientId&&O&&P.name!==O&&o.canInsertBlockType(O,s)){let J=(0,et.switchToBlockType)(P,O);J?.length===1&&(P=J[0])}if(!e.length){r.replaceBlocks(o.getSelectedBlockClientIds(),[A,P]);return}let N,j=[],D=[...e],M=D.shift(),V=(0,et.getBlockType)(A.name),L=V.merge&&M.name===V.name?[M]:(0,et.switchToBlockType)(M,V.name);if(L?.length){let J=L.shift();A={...A,attributes:{...A.attributes,...V.merge(A.attributes,J.attributes)}},j.push(A),N={clientId:A.clientId,attributeKey:k,offset:(0,bo.create)({html:A.attributes[k]}).text.length},D.unshift(...L)}else(0,et.isUnmodifiedBlock)(A)||j.push(A),j.push(M);let z=D.pop(),q=(0,et.getBlockType)(P.name);if(D.length&&j.push(...D),z){let J=q.merge&&q.name===z.name?[z]:(0,et.switchToBlockType)(z,q.name);if(J?.length){let te=J.pop();j.push({...P,attributes:{...P.attributes,...q.merge(te.attributes,P.attributes)}}),j.push(...J),N={clientId:P.clientId,attributeKey:S,offset:(0,bo.create)({html:te.attributes[S]}).text.length}}else j.push(z),(0,et.isUnmodifiedBlock)(P)||j.push(P)}else(0,et.isUnmodifiedBlock)(P)||j.push(P);t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),j,j.length-1,0),N&&r.selectionChange(N.clientId,N.attributeKey,N.offset,N.offset)})},CNe=()=>({select:e,dispatch:t})=>{let o=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},ENe=(e,t)=>({registry:o,select:r,dispatch:n})=>{let i=e,s=t,a=r.getBlock(i),l=(0,et.getBlockType)(a.name);if(!l||r.getBlockEditingMode(i)==="disabled"||r.getBlockEditingMode(s)==="disabled")return;let u=r.getBlock(s);if(!l.merge&&(0,et.getBlockSupport)(a.name,"__experimentalOnMerge")){let _=(0,et.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),B=r.getBlockAttributes(w);Object.keys(T).every(R=>T[R]===B[R])&&(n.moveBlocksToPosition(r.getBlockOrder(w),w,i),n.removeBlock(w,!1))}});return}if((0,et.isUnmodifiedDefaultBlock)(a)){r.isBlockSelected(i)?o.batch(()=>{n.removeBlock(i,!1),n.selectBlock(s,0)}):n.removeBlock(i,!1);return}if((0,et.isUnmodifiedDefaultBlock)(u)){n.removeBlock(s,r.isBlockSelected(s));return}if(!l.merge){(0,et.isUnmodifiedBlock)(u,"content")?n.removeBlock(s,r.isBlockSelected(s)):n.selectBlock(a.clientId);return}let d=(0,et.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,et.cloneBlock)(a),y=(0,et.cloneBlock)(u);if(b){let _=f===i?v:y,x=_.attributes[p],w=(0,bo.insert)((0,bo.create)({html:x}),hd,h,h);_.attributes[p]=(0,bo.toHTMLString)({value:w})}let k=a.name===u.name?[y]:(0,et.switchToBlockType)(y,a.name);if(!k||!k.length)return;let S=l.merge(v.attributes,k[0].attributes);if(b){let _=Bw(S),x=S[_],w=(0,bo.create)({html:x}),T=w.text.indexOf(hd),B=(0,bo.remove)(w,T,T+1),R=(0,bo.toHTMLString)({value:B});S[_]=R,n.selectionChange(a.clientId,_,T,T)}n.replaceBlocks([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...S}},...k.slice(1)],0)},eX=(e,t=!0)=>mz(e,t);function TNe(e,t){return eX([e],t)}function RNe(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 BNe(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function PNe(){return{type:"START_TYPING"}}function INe(){return{type:"STOP_TYPING"}}function ONe(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function ANe(){return{type:"STOP_DRAGGING_BLOCKS"}}function LNe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function MNe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function NNe(e,t,o,r){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:o,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var DNe=(e,t,o)=>({dispatch:r})=>{let n=(0,et.getDefaultBlockName)();if(!n)return;let i=(0,et.createBlock)(n,e);return r.insertBlock(i,o,t)};function VNe(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function FNe(e){return pz(e,{stripExperimentalSettings:!0})}function zNe(){return(0,gd.default)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function jNe(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function HNe({history:e="merge"}={}){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",history:e}}var UNe=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});let{requestIdleCallback:t=o=>setTimeout(o,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},GNe=e=>({registry:t})=>{t.dispatch(YZ.store).set("core","editorTool",e),e==="navigation"?(0,MB.speak)((0,hp.__)("You are currently in Write mode.")):e==="edit"&&(0,MB.speak)((0,hp.__)("You are currently in Design mode."))};function WNe(){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 $Ne=(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,et.hasBlockSupport)(d,"multiple",!0)))return;let s=o.getBlockRootClientId(e[0]),a=pv(e),l=o.getBlockIndex(a[a.length-1]),u=n.map(d=>(0,et.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)},KNe=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,et.createBlock)(i.name,{...i.attributes,...s});return o.insertBlock(a,n,r)},YNe=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,et.createBlock)(i.name,{...i.attributes,...s});return o.insertBlock(a,n+1,r)};function bz(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var qNe=(e,t=150)=>async({dispatch:o})=>{o(bz(e,!0)),await new Promise(r=>setTimeout(r,t)),o(bz(e,!1))};function ZNe(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function XNe(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function QNe(e){return(0,gd.default)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),hz(e)}var JNe=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 mv={reducer:vq,selectors:fz,actions:yz},C=(0,NB.createReduxStore)(nr,{...mv,persist:["preferences"]}),tX=(0,NB.registerStore)(nr,{...mv,persist:["preferences"]});H(tX).registerPrivateActions(LB);H(tX).registerPrivateSelectors(TB);H(C).registerPrivateActions(LB);H(C).registerPrivateSelectors(TB);var hv=c(U(),1),oX=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:K(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)(hv.DropdownMenu,{className:"block-editor-warning__secondary",icon:zs,label:(0,oX.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,Vl.jsx)(hv.MenuGroup,{children:r.map((n,i)=>(0,Vl.jsx)(hv.MenuItem,{onClick:n.onClick,children:n.title},i))})})]})]})})})}var gp=sDe;var gv=c(E(),1);function iX({originalBlockClientId:e,name:t,onReplace:o}){let{selectBlock:r}=(0,nX.useDispatch)(C),n=(0,rX.getBlockType)(t);return(0,gv.jsxs)(gp,{actions:[(0,gv.jsx)(vz.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,DB.__)("Find original")},"find-original"),(0,gv.jsx)(vz.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o([]),children:(0,DB.__)("Remove")},"remove")],children:[(0,gv.jsxs)("strong",{children:[n?.title,": "]}),(0,DB.__)("This block can only be used once.")]})}var Pw=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()[Tx]||(0,VB.hasBlockSupport)(s,"listView")||s==="core/navigation",{originalBlockClientId:v}=(0,FB.useContext)(Fn);return(0,Pw.jsxs)(eT,{value:(0,FB.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:m?f:null,__unstableLayoutClassNames:d,[Ml]:e,[Fy]:t,[$f]:o&&r!=="disabled",[zy]:r,[jy]:h,[J1]:n,[Tx]:b}),[s,a,l,m,f,d,e,t,o,r,h,n,b]),children:[(0,Pw.jsx)(iq,{...i}),v&&(0,Pw.jsx)(iX,{originalBlockClientId:v,name:s,onReplace:i.onReplace})]})}function Le(...e){let{clientId:t=null}=ht();return(0,sX.useSelect)(o=>H(o(C)).getBlockSettings(t,...e),[t,...e])}function lX(e){(0,aX.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(uX.privateApis),cX=([e,...t])=>e.toUpperCase()+t.join(""),lDe=e=>(0,yg.createHigherOrderComponent)(t=>function(r){return(0,HB.jsx)(t,{...r,colors:e})},"withCustomColorPalette"),cDe=()=>(0,yg.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 dX(e,t){let o=e.reduce((r,n)=>({...r,...typeof n=="string"?{[n]:aDe(n)}:n}),{});return(0,yg.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 qY(s,i)}createSetters(){return Object.keys(o).reduce((i,s)=>{let a=cX(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${cX(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 fX(e){return(...t)=>{let o=lDe(e);return(0,yg.createHigherOrderComponent)(dX(t,o),"withCustomColors")}}function pX(...e){let t=cDe();return(0,yg.createHigherOrderComponent)(dX(e,t),"withColors")}var UB=c(F(),1),GB=c(Q(),1);function bv(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 mX(e,t){return e?.find(r=>r.gradient===t)}function hX(e,t){let o=mX(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=hX(s,h);if(m){u(o,{[e]:m,[t]:void 0});return}u(o,{[e]:void 0,[t]:h})},[s,o,u]),f=bv(a),p;return a?p=WB(s,a):p=l,{gradientClass:f,gradientValue:p,setGradient:d}}var gX=c(U(),1);var{kebabCase:dDe}=H(gX.privateApis),yv=(e,t,o)=>{if(t){let r=e?.find(({slug:n})=>n===t);if(r)return r}return{size:o}};function Sz(e,t){let o=e?.find(({size:r})=>r===t);return o||{size:t}}function bp(e){if(e)return`has-${dDe(e)}-font-size`}var fDe="1600px",pDe="320px",mDe=1,hDe=.25,gDe=.75,bDe="14px";function bX({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=pDe,maximumViewportWidth:n=fDe,scaleFactor:i=mDe,minimumFontSizeLimit:s}){if(s=yp(s)?s:bDe,o){let k=yp(o);if(!k?.unit)return null;let S=yp(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=Iw(k.value*x,3);S?.value&&w<S?.value?e=`${S.value}${S.unit}`:e=`${w}${k.unit}`}}let a=yp(e),l=a?.unit||"rem",u=yp(t,{coerceTo:l});if(!a||!u)return null;let d=yp(e,{coerceTo:"rem"}),f=yp(n,{coerceTo:l}),p=yp(r,{coerceTo:l});if(!f||!p||!d)return null;let h=f.value-p.value;if(!h)return null;let m=Iw(p.value/100,3),g=Iw(m,3)+l,b=100*((u.value-a.value)/h),v=Iw((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${g}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function yp(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:Iw(d,3),unit:u}}function Iw(e,t=3){let o=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*o)/o):void 0}var yX=c(U(),1);var vX=c(E(),1);function yDe(e){let[t,o]=Le("typography.fontSizes","typography.customFontSize");return(0,vX.jsx)(yX.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!o})}var kz=yDe;var Ow=c(fe(),1),kX=c(F(),1);var _z=c(E(),1),vDe=[],SX=([e,...t])=>e.toUpperCase()+t.join(""),_X=(...e)=>{let t=e.reduce((o,r)=>(o[r]=`custom${SX(r)}`,o),{});return(0,Ow.createHigherOrderComponent)((0,Ow.compose)([(0,Ow.createHigherOrderComponent)(o=>function(n){let[i]=Le("typography.fontSizes");return(0,_z.jsx)(o,{...n,fontSizes:i||vDe})},"withFontSizes"),o=>class extends kX.Component{constructor(n){super(n),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce((n,[i,s])=>{let a=SX(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=yv(i,p,n[f]);return u[d]={...h,class:bp(p)},u},{});return{...s,...l}}render(){return(0,_z.jsx)(o,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var vp=c(G(),1),$B=c(U(),1);var xX=c(E(),1),SDe=[{icon:ep,title:(0,vp.__)("Align text left"),align:"left"},{icon:Qh,title:(0,vp.__)("Align text center"),align:"center"},{icon:tp,title:(0,vp.__)("Align text right"),align:"right"}],kDe={placement:"bottom-start"};function _De({value:e,onChange:t,alignmentControls:o=SDe,label:r=(0,vp.__)("Align text"),description:n=(0,vp.__)("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,vp.isRTL)()?tp:ep}let d=s?$B.ToolbarGroup:$B.ToolbarDropdownMenu,f=s?{isCollapsed:i}:{toggleProps:{description:n},popoverProps:kDe};return(0,xX.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 xz=_De;var wz=c(E(),1),KB=e=>(0,wz.jsx)(xz,{...e,isToolbar:!1}),wX=e=>(0,wz.jsx)(xz,{...e,isToolbar:!0});var eP=c(go(),1),tP=c(U(),1),FX=c(F(),1),oP=c(ue(),1);var DX=c(Q(),1),kp=c(ue(),1),Bz=c(F(),1);var AX=c(RX(),1);var Cz=function(e,t){return Cz=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])},Cz(e,t)};function BX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cz(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 PX(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 OX(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?PX:s,l=t.delimiter,u=l===void 0?" ":l,d=IX(IX(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 IX(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,MDe=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],NDe=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),Ez=new Map,Tz=new Map;function qB(e=""){if(Ez.has(e))return Ez.get(e);let t=OX(e,{splitRegexp:MDe,stripRegexp:NDe}).split(" ").filter(Boolean);return Ez.set(e,t),t}function Aw(e=""){if(Tz.has(e))return Tz.get(e);let t=(0,AX.default)(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),Tz.set(e,t),t}var Lw=(e="")=>qB(Aw(e)),DDe=(e,t)=>e.filter(o=>!Lw(t).some(r=>r.includes(o))),ZB=(e,t,o,r)=>Lw(r).length===0?e:Mw(e,r,{getCategory:s=>t.find(({slug:a})=>a===s.category)?.title,getCollection:s=>o[s.name.split("/")[0]]?.title}),Mw=(e=[],t="",o={})=>{if(Lw(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=Aw(t),b=Aw(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(ue(),1),vv=c(Q(),1),XB=c(F(),1),LX=c(as(),1),QB=c(G(),1);var FDe=(e,t,o)=>{let r=(0,XB.useMemo)(()=>({[pp]:!!o}),[o]),[n]=(0,vv.useSelect)(d=>[d(C).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=H((0,vv.useSelect)(C)),{createErrorNotice:s}=(0,vv.useDispatch)(LX.store),[a,l]=(0,vv.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]},Sp=FDe;var MX=c(U(),1);var NX=c(F(),1),Rz=c(E(),1);function zDe({icon:e,showColors:t=!1,className:o,context:r}){e?.src==="block-default"&&(e={src:Vx});let n=(0,Rz.jsx)(MX.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,Rz.jsx)("span",{style:i,className:K("block-editor-block-icon",o,{"has-colors":t}),children:n})}var Et=(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 Sv=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,DX.useSelect)(u=>{let{getSelectedBlockClientId:d,getBlock:f,getBlockListSettings:p,getBlockRootClientId:h}=u(C),{getActiveBlockVariation:m}=u(kp.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]=Sp(t,jDe,!0),a=(0,Bz.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,Bz.useMemo)(()=>a.map(u=>{let{title:d,icon:f,isDisabled:p}=u;return{key:`block-${u.id}`,value:u,label:(0,Sv.jsxs)(Sv.Fragment,{children:[(0,Sv.jsx)(Et,{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,kp.cloneBlock)(a)):(0,kp.createBlock)(t,o,(0,kp.createBlocksFromInnerBlocksTemplate)(r),n)}}}}var VX=UDe();var zX=c(E(),1),GDe=[];function jX({completers:e=GDe}){let{name:t}=ht();return(0,FX.useMemo)(()=>{let o=[...e];return(t===(0,oP.getDefaultBlockName)()||(0,oP.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(o=[...o,VX]),(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 HX(e){return(0,tP.__unstableUseAutocompleteProps)({...e,completers:jX(e)})}function WDe(e){return(0,zX.jsx)(tP.Autocomplete,{...e,completers:jX(e)})}var UX=WDe;var Lz=c(G(),1),Cp=c(U(),1);var cQ=c(Q(),1);var lP=c(F(),1);var sr=c(G(),1);var wn=c(U(),1);var kv=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 ls(e,t=""){return e.split(",").map(o=>`${o}${t?` ${t}`:""}`).join(",")}function _p(e,t=Gs,o,r){let n="";return t?.[o]?.spacingStyles?.length&&r&&t[o].spacingStyles.forEach(i=>{n+=`${ls(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,kv.sprintf)((0,kv.__)("Max %s wide"),t)),i.test(o)&&(n.wide=(0,kv.sprintf)((0,kv.__)("Max %s wide"),o)),n}var Fl=c(G(),1);var GX=8,xp=["top","bottom","left","right"],WX={top:void 0,right:void 0,bottom:void 0,left:void 0},nP={custom:ZR,axial:ZR,horizontal:i6,vertical:c6,top:l6,right:a6,bottom:n6,left:s6},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 $X(e,t){if(!iP(e))return e;let o=$De(e);return t.find(n=>String(n.slug)===o)?.size}function _v(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 Pz(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 KX(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(Pz(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 Nw(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function Pi(e,t="0"){let o=Nw(e);if(!o)return null;let r=zl(o?.top)||t,n=zl(o?.left)||t;return r===n?r:`${r} ${n}`}var yo=c(E(),1),YDe={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},YX={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"},qX={horizontal:"center",vertical:"top"},ZDe={top:{icon:qx,label:(0,sr._x)("Align top","Block vertical alignment setting")},center:{icon:$x,label:(0,sr._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Wx,label:(0,sr._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:Yx,label:(0,sr._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Kx,label:(0,sr._x)("Space between","Block vertical alignment setting")}},XDe=["wrap","nowrap"],QX={name:"flex",label:(0,sr.__)("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",JX(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,yo.jsxs)(yo.Fragment,{children:[(a||s)&&(0,yo.jsxs)(wn.Flex,{align:"flex-start",className:"block-editor-hooks__flex-layout-controls",gap:4,justify:"flex-start",children:[a&&(0,yo.jsx)(wn.__experimentalToolsPanelItem,{label:(0,sr.__)("Justification"),hasValue:f,onDeselect:g,isShownByDefault:!0,panelId:i,children:(0,yo.jsx)(XX,{layout:t,onChange:o})}),s&&(0,yo.jsx)(wn.__experimentalToolsPanelItem,{label:(0,sr.__)("Orientation"),hasValue:h,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,yo.jsx)(oVe,{layout:t,onChange:o})})]}),l&&(0,yo.jsx)(wn.__experimentalToolsPanelItem,{label:(0,sr.__)("Alignment"),hasValue:p,onDeselect:b,panelId:i,children:(0,yo.jsx)(ZX,{layout:t,onChange:o})}),u&&(0,yo.jsx)(wn.__experimentalToolsPanelItem,{label:(0,sr.__)("Wrapping"),hasValue:m,onDeselect:y,panelId:i,children:(0,yo.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,yo.jsxs)(No,{group:n,__experimentalShareWithChildBlocks:!0,children:[s&&(0,yo.jsx)(XX,{layout:t,onChange:o,isToolbar:!0}),i&&(0,yo.jsx)(ZX,{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=R=>Object.hasOwn(r||{},R),{orientation:p="horizontal"}=d,h="0.5em";if(a){let R=Nw(a);h=zl(R?.left)||zl(R?.top)||"0.5em"}let m=n?.spacing?.blockGap&&!Wt(i,"spacing","blockGap")?Pi(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=YX[d.justifyContent]||YX.left,S="",_=[],x=!u||f("flexWrap"),w=!u||f("orientation"),T=!u||f("justifyContent")||f("orientation"),B=!u||f("verticalAlignment")||f("orientation");return x&&v&&v!=="wrap"&&_.push(`flex-wrap: ${v}`),p==="horizontal"?(B&&y&&_.push(`align-items: ${y}`),T&&b&&_.push(`justify-content: ${b}`)):(B&&y&&_.push(`justify-content: ${y}`),w&&_.push("flex-direction: column"),T&&_.push(`align-items: ${k}`)),_.length&&(S=`${ls(t)} {
${_.join("; ")};
}`),s&&g&&m&&(S+=_p(t,l,"flex",m)),S},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function JX({orientation:e="horizontal"}={}){return e==="horizontal"?qX.horizontal:qX.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 ZX({layout:e,onChange:t,isToolbar:o=!1}){let{orientation:r="horizontal"}=e,{verticalAlignment:n=JX(e)}=e,i=a=>{t({...e,verticalAlignment:a})},s=JDe(r);return o?(0,yo.jsx)(sP,{onChange:i,value:n,controls:s}):(0,yo.jsx)(wn.__experimentalToggleGroupControl,{label:(0,sr.__)("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,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{value:a,icon:l,label:u},a)})})}var eVe={placement:"bottom-start"};function XX({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,yo.jsx)(xv,{allowedControls:s,value:r,onChange:i,popoverProps:eVe});let a=[{value:"left",icon:np,label:(0,sr.__)("Justify items left")},{value:"center",icon:rp,label:(0,sr.__)("Justify items center")},{value:"right",icon:ip,label:(0,sr.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:Xy,label:(0,sr.__)("Space between items")}):a.push({value:"stretch",icon:Qy,label:(0,sr.__)("Stretch items")}),(0,yo.jsx)(wn.__experimentalToggleGroupControl,{label:(0,sr.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:u,label:d})=>(0,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{value:l,icon:u,label:d},l))})}function tVe({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,yo.jsx)(wn.ToggleControl,{label:(0,sr.__)("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,yo.jsxs)(wn.__experimentalToggleGroupControl,{className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,sr.__)("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,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{icon:Dx,value:"horizontal",label:(0,sr.__)("Horizontal")}),(0,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{icon:FF,value:"vertical",label:(0,sr.__)("Vertical")})]})}var eQ=c(G(),1);var tQ={name:"default",label:(0,eQ.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=Gs}){let s=Pi(o?.spacing?.blockGap),a="";Wt(r,"spacing","blockGap")||(s?.top?a=Pi(s?.top):typeof s=="string"&&(a=Pi(s)));let l="";return n&&a&&(l+=_p(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 ni=c(U(),1),Ra=c(G(),1);var oQ=c(nv(),1);var Sr=c(E(),1),rVe="var(--wp--style--global--content-size, none)",nVe="var(--wp--style--global--wide-size, none)",rQ={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,ni.__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,Sr.jsxs)(Sr.Fragment,{children:[d&&(0,Sr.jsxs)(Sr.Fragment,{children:[(0,Sr.jsx)(ni.__experimentalToolsPanelItem,{label:(0,Ra.__)("Content width"),hasValue:k,onDeselect:b,panelId:i,children:(0,Sr.jsx)(ni.__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,Sr.jsx)(ni.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Sr.jsx)(gt,{icon:Jh})})})}),(0,Sr.jsxs)(ni.__experimentalToolsPanelItem,{label:(0,Ra.__)("Wide width"),hasValue:S,onDeselect:v,panelId:i,children:[(0,Sr.jsx)(ni.__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,Sr.jsx)(ni.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Sr.jsx)(gt,{icon:fg})})}),(0,Sr.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,Sr.jsx)(ni.__experimentalToolsPanelItem,{label:(0,Ra.__)("Justification"),hasValue:_,onDeselect:y,panelId:i,children:(0,Sr.jsx)(ni.__experimentalToggleGroupControl,{label:(0,Ra.__)("Justification"),value:l,onChange:f,children:p.map(({value:x,icon:w,label:T})=>(0,Sr.jsx)(ni.__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,Sr.jsx)(No,{group:n,__experimentalShareWithChildBlocks:!0,children:(0,Sr.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=Pi(n?.spacing?.blockGap),g=!l||Object.hasOwn(n?.spacing||{},"blockGap"),b=!l||Object.hasOwn(n?.spacing||{},"padding"),v="";Wt(i,"spacing","blockGap")||(m?.top?v=Pi(m?.top):typeof m=="string"&&(v=Pi(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),B=f||(p&&!_?p:rVe),R=p||(f&&!x?f:nVe),I=[`max-width: ${B}`];(!l||S)&&I.push(`margin-left: ${y}`,`margin-right: ${k}`);let A=w&&(f||p||T)?`
${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {
${I.join("; ")};
}
${ls(t,"> .alignwide")} {
max-width: ${R};
}
${ls(t,"> .alignfull")} {
max-width: none;
}
`:"";return S&&!w?A+=`${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-left: ${y}; margin-right: ${k}; }`:l||(h==="left"?A+=`${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-left: ${y}; }`:h==="right"&&(A+=`${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-right: ${k}; }`)),b&&n?.spacing?.padding&&(0,oQ.getCSSRules)(n).forEach(O=>{if(O.key==="paddingRight"){let N=O.value==="0"?"0px":O.value;A+=`
${ls(t,"> .alignfull")} {
margin-right: calc(${N} * -1);
}
`}else if(O.key==="paddingLeft"){let N=O.value==="0"?"0px":O.value;A+=`
${ls(t,"> .alignfull")} {
margin-left: calc(${N} * -1);
}
`}}),s&&g&&v&&(A+=_p(t,a,"constrained",v)),A},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,Sr.jsx)(xv,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:iVe})}var Lr=c(G(),1),Mt=c(U(),1),aP=c(F(),1);var Pt=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}],nQ={name:"grid",label:(0,Lr.__)("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,Pt.jsxs)(Pt.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Grid item position"),hasValue:p,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,Pt.jsx)(fVe,{layout:t,onChange:o})}),a&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Columns and rows"),hasValue:h,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,Pt.jsx)(uVe,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Min. column width"),hasValue:m,onDeselect:y,isShownByDefault:!0,panelId:i,children:(0,Pt.jsx)(cVe,{layout:t,onChange:o})}),u&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Fill available space"),hasValue:g,onDeselect:k,panelId:i,children:(0,Pt.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=Nw(a);v=zl(T?.left)||zl(T?.top)||"1.2rem"}let y=n?.spacing?.blockGap&&!Wt(i,"spacing","blockGap")?Pi(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 B=`max(min( ${p}, 100%), ( 100% - (${T}*${h-1}) ) / ${h})`;_.push(`grid-template-columns: repeat(${b}, minmax(${B}, 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=`${ls(t)} { ${_.join("; ")}; }`),s&&k&&y&&(S+=_p(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,Mt.__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,Pt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,Pt.jsx)(Mt.BaseControl.VisualLabel,{as:"legend",children:(0,Lr.__)("Min. column width")}),(0,Pt.jsxs)(Mt.Flex,{gap:4,children:[(0,Pt.jsx)(Mt.FlexItem,{isBlock:!0,children:(0,Pt.jsx)(Mt.__experimentalUnitControl,{onChange:f=>{t({...e,minimumColumnWidth:f===""?void 0:f})},onUnitChange:d,value:s,units:lVe,min:0,label:(0,Lr.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,Pt.jsx)(Mt.FlexItem,{isBlock:!0,children:(0,Pt.jsx)(Mt.RangeControl,{onChange:u,value:a||0,min:0,max:aVe[l]||600,withInputField:!1,label:(0,Lr.__)("Minimum column width"),hideLabelFromVision:!0})})]}),(0,Pt.jsx)("p",{className:"components-base-control__help",children:(0,Lr.__)("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,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[!s&&(0,Pt.jsx)(Mt.BaseControl.VisualLabel,{as:"legend",children:(0,Lr.__)("Max. columns")}),(0,Pt.jsxs)(Mt.Flex,{gap:4,children:[(0,Pt.jsx)(Mt.FlexItem,{isBlock:!0,children:(0,Pt.jsx)(Mt.__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,Lr.__)("Columns"),hideLabelFromVision:!s})}),(0,Pt.jsx)(Mt.FlexItem,{isBlock:!0,children:o&&s?(0,Pt.jsx)(Mt.__experimentalNumberControl,{onChange:a=>{let l=a===""||a==="0"?1:parseInt(a,10);t({...e,rowCount:l})},value:i,min:1,label:(0,Lr.__)("Rows")}):(0,Pt.jsx)(Mt.RangeControl,{value:n??1,onChange:a=>t({...e,columnCount:a===""||a==="0"?1:a}),min:1,max:16,withInputField:!1,label:(0,Lr.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function dVe({layout:e,onChange:t}){let{autoFit:o=!1}=e;return(0,Pt.jsx)(Mt.ToggleControl,{label:(0,Lr.__)("Fill available space"),help:(0,Lr.__)("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,Lr.__)("Grid items can be manually placed in any position on the grid."):(0,Lr.__)("Grid items are placed automatically depending on their order.");return(0,Pt.jsxs)(Mt.__experimentalToggleGroupControl,{label:(0,Lr.__)("Grid item position"),value:p,onChange:h,isBlock:!0,help:m,children:[(0,Pt.jsx)(Mt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Lr.__)("Auto")},"auto"),(0,Pt.jsx)(Mt.__experimentalToggleGroupControlOption,{value:"manual",label:(0,Lr.__)("Manual")},"manual")]})}var iQ=[tQ,QX,rQ,nQ];function Ba(e="default"){return iQ.find(t=>t.name===e)}function sQ(){return iQ}var Iz=c(E(),1),Oz={type:"default"},Az=(0,lP.createContext)(Oz);Az.displayName="BlockLayoutContext";var cP=Az.Provider;function vg(){return(0,lP.useContext)(Az)}function aQ({layout:e={},css:t,...o}){let r=Ba(e.type),[n]=Le("spacing.blockGap"),i=n!==null;if(r){if(t)return(0,Iz.jsx)("style",{children:t});let s=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...o});if(s)return(0,Iz.jsx)("style",{children:s})}return null}var uP=[],lQ=["none","left","center","right","wide","full"],pVe=["wide","full"];function Dw(e=lQ){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",[o,r,n]=(0,cQ.useSelect)(l=>{if(t)return[!1,!1,!1];let u=l(C).getSettings();return[u.alignWide??!1,u.supportsLayout,u.__unstableIsBlockBasedTheme]},[t]),i=vg();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:lQ.includes(l)).map(l=>({name:l}));return a.length===1&&a[0].name==="none"?uP:a}var wp=c(G(),1);var Vw={none:{icon:Jh,title:(0,wp._x)("None","Alignment option")},left:{icon:F4,title:(0,wp.__)("Align left")},center:{icon:D4,title:(0,wp.__)("Align center")},right:{icon:j4,title:(0,wp.__)("Align right")},wide:{icon:fg,title:(0,wp.__)("Wide width")},full:{icon:fw,title:(0,wp.__)("Full width")}},uQ="none";var Sg=c(E(),1);function mVe({value:e,onChange:t,controls:o,isToolbar:r,isCollapsed:n=!0}){let i=Dw(o);if(!!!i.length)return null;function a(h){t([e,"none"].includes(h)?void 0:h)}let l=Vw[e],u=Vw[uQ],d=r?Cp.ToolbarGroup:Cp.ToolbarDropdownMenu,f={icon:l?l.icon:u.icon,label:(0,Lz.__)("Align")},p=r?{isCollapsed:n,controls:i.map(({name:h})=>({...Vw[h],isActive:e===h||!e&&h==="none",role:n?"menuitemradio":void 0,onClick:()=>a(h)}))}:{toggleProps:{description:(0,Lz.__)("Change alignment")},children:({onClose:h})=>(0,Sg.jsx)(Sg.Fragment,{children:(0,Sg.jsx)(Cp.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:i.map(({name:m,info:g})=>{let{icon:b,title:v}=Vw[m],y=m===e||!e&&m==="none";return(0,Sg.jsx)(Cp.MenuItem,{icon:b,iconPosition:"left",className:K("components-dropdown-menu__menu-item",{"is-active":y}),isSelected:y,onClick:()=>{a(m),h()},role:"menuitemradio",info:g,children:v},m)})})})};return(0,Sg.jsx)(d,{...f,...p})}var Mz=mVe;var Nz=c(E(),1),dP=e=>(0,Nz.jsx)(Mz,{...e,isToolbar:!1}),dQ=e=>(0,Nz.jsx)(Mz,{...e,isToolbar:!0});var gQ=c(Xh(),1),hP=c(G(),1),gP=c(ue(),1),Hl=c(U(),1),Fz=c(Q(),1),bQ=c(F(),1),yQ=c(fe(),1);var Vz=c(Xh(),1),fQ=c(ue(),1),pQ=c(U(),1),mQ=c(Q(),1),pP=c(F(),1),hQ=c(fe(),1);var fP=c(Q(),1);function Dz(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};Dz(f.bindings)&&delete f.bindings,r(o,{metadata:Dz(f)?void 0:f})},removeAllBlockBindings:()=>{let{metadata:{bindings:a,...l}={}}=n(o);r(o,{metadata:Dz(l)?void 0:l})}}}var jl=c(E(),1),{Menu:Ep}=H(pQ.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)(_n),a=(0,mQ.useSelect)(u=>r.getValues({select:u,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=yd();return(0,jl.jsxs)(Ep.CheckboxItem,{onChange:()=>{let u=(0,Vz.default)(e,o.args)??o.key===e?.key;l(u?{[t]:void 0}:{[t]:i})},name:t+"-binding",value:a[t],checked:(0,Vz.default)(e,o.args)??o.key===e?.key,children:[(0,jl.jsx)(Ep.ItemLabel,{children:o.label}),(0,jl.jsx)(Ep.ItemHelpText,{children:a[t]})]})}function Fw({args:e,attribute:t,sourceKey:o,fields:r}){let n=(0,hQ.useViewportMatch)("medium","<");if(!r||r.length===0)return null;let i=(0,fQ.getBlockBindingsSource)(o);return(0,jl.jsxs)(Ep,{placement:n?"bottom-start":"left-start",children:[(0,jl.jsx)(Ep.SubmenuTriggerItem,{children:(0,jl.jsx)(Ep.ItemLabel,{children:i.label})}),(0,jl.jsx)(Ep.Popover,{gutter:8,children:(0,jl.jsx)(Ep.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 zw({attribute:e,binding:t,blockName:o}){let{updateBlockBindings:r}=yd(),n=(0,yQ.useViewportMatch)("medium","<"),i=(0,bQ.useContext)(_n),s=(0,Fz.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 B=T.filter(R=>R.type===S);B.length&&(_[x]=B)}),_},[e,o,i]),{canUpdateBlockBindings:a}=(0,Fz.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,gQ.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)(Fw,{args:t?.args,attribute:e,sourceKey:g,fields:b},g))})})]})})}var vQ=c(G(),1),SQ=c(U(),1);var kQ=c(E(),1);function gVe({isActive:e,label:t=(0,vQ.__)("Full height"),onToggle:o,isDisabled:r}){return(0,kQ.jsx)(SQ.ToolbarButton,{isActive:e,icon:F3,label:t,onClick:()=>o(!e),disabled:r})}var _Q=gVe;var wQ=c(G(),1),CQ=c(io(),1),kg=c(U(),1),jw=c(E(),1),bVe=()=>{};function yVe(e){let{label:t=(0,wQ.__)("Change matrix alignment"),onChange:o=bVe,value:r="center",isDisabled:n}=e,i=(0,jw.jsx)(kg.AlignmentMatrixControl.Icon,{value:r});return(0,jw.jsx)(kg.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:s,isOpen:a})=>(0,jw.jsx)(kg.ToolbarButton,{onClick:s,"aria-haspopup":"true","aria-expanded":a,onKeyDown:u=>{!a&&u.keyCode===CQ.DOWN&&(u.preventDefault(),s())},label:t,icon:i,showTooltip:!0,disabled:n}),renderContent:()=>(0,jw.jsx)(kg.AlignmentMatrixControl,{onChange:o,value:r})})}var EQ=yVe;var Hz=c(U(),1),vP=c(Q(),1),SP=c(G(),1);var AQ=c(F(),1);var TQ=c(Q(),1),bP=c(ue(),1);function jn({clientId:e,maximumLength:t,context:o}){let r=(0,TQ.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 Hw({clientId:e,maximumLength:t,context:o}){return jn({clientId:e,maximumLength:t,context:o})}var _g=c(F(),1),PQ=c(fe(),1);var yP=c(F(),1),zz=c(fe(),1),RQ=c(E(),1),vd=(0,yP.createContext)({refsMap:(0,zz.observableMap)(),eventHandlers:new Map});vd.displayName="BlockRefsContext";function BQ({children:e}){let t=(0,yP.useMemo)(()=>({refsMap:(0,zz.observableMap)(),eventHandlers:new Map}),[]);return(0,RQ.jsx)(vd.Provider,{value:t,children:e})}function IQ(e){let{refsMap:t}=(0,_g.useContext)(vd);return(0,PQ.useRefEffect)(o=>(t.set(e,o),()=>t.delete(e)),[e])}function jz(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xg(e,t){let{refsMap:o}=(0,_g.useContext)(vd);(0,_g.useLayoutEffect)(()=>{jz(t,o.get(e));let r=o.subscribe(e,()=>jz(t,o.get(e)));return()=>{r(),jz(t,null)}},[o,e,t])}function Nt(e){let[t,o]=(0,_g.useState)(null);return xg(e,o),t}function OQ(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,AQ.useRef)();return xg(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)(Hz.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{let l=a.current?.closest(".editor-styles-wrapper");o(),OQ(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)(Hz.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(l),children:(0,Ws.jsx)(Hw,{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)(Hw,{clientId:r,maximumLength:35,context:"breadcrumb"})})]})}var LQ=vVe;var MQ=c(Q(),1);function NQ(e){return(0,MQ.useSelect)(t=>{let{__unstableHasActiveBlockOverlayActive:o}=t(C);return o(e)},[e])}var pM=c(fe(),1),mye=c(F(),1),hye=c(Q(),1),gye=c(U(),1);var Qa=c(Q(),1),$2=c(fe(),1),_m=c(F(),1),Vme=c(ue(),1);var Fp=c(F(),1),$t=c(ue(),1),dte=c(U(),1),fI=c(Q(),1),pI=c(fe(),1),fte=c(Tt(),1);var Tp=c(G(),1),_P=c(U(),1),wg=c(F(),1),Gw=c(ue(),1),xP=c(Q(),1);var Uw=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 Uz=class extends Uw{},VQ=new Uz;function Gz(e,t,o){return VQ.diff(e,t,o)}var kP=c(G(),1),HQ=c(ue(),1);var FQ=c(U(),1),zQ=c(F(),1),jQ=c(Tt(),1),qc=c(E(),1);function Wz({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)(zQ.RawHTML,{children:(0,jQ.safeHTML)(o)})})]}),(0,qc.jsx)("div",{className:"block-editor-block-compare__action",children:(0,qc.jsx)(FQ.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:n})})]})}var wv=c(E(),1);function SVe({block:e,onKeep:t,onConvert:o,convertor:r,convertButtonText:n}){function i(u,d){return Gz(u,d).map((p,h)=>{let m=K({"block-editor-block-compare__added":p.added,"block-editor-block-compare__removed":p.removed});return(0,wv.jsx)("span",{className:m,children:p.value},h)})}function s(u){return(Array.isArray(u)?u:[u]).map(p=>(0,HQ.getSaveContent)(p.name,p.attributes,p.innerBlocks)).join("")}let a=s(r(e)),l=i(e.originalContent,a);return(0,wv.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,wv.jsx)(Wz,{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,wv.jsx)(Wz,{title:(0,kP.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:n,rawContent:l,renderedContent:a})]})}var UQ=SVe;var Sd=c(E(),1),GQ=e=>(0,Gw.rawHandler)({HTML:e.originalContent});function WQ({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,wg.useState)(!1),s=(0,wg.useCallback)(()=>i(!1),[]),a=(0,wg.useMemo)(()=>({toHTML(){let u=(0,Gw.createBlock)("core/html",{},[],[t.originalContent]);return r(t.clientId,u)},toBlocks(){let u=GQ(t);return r(t.clientId,u)},toRecoveredBlock(){let u=(0,Gw.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,u)}}),[t,r]),l=(0,wg.useMemo)(()=>[{title:(0,Tp._x)("Resolve","imperative verb"),onClick:()=>i(!0)},o&&{title:(0,Tp.__)("Convert to HTML"),onClick:a.toHTML}].filter(Boolean),[o,a]);return(0,Sd.jsxs)(Sd.Fragment,{children:[(0,Sd.jsx)(gp,{actions:[(0,Sd.jsx)(_P.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,Tp.__)("Attempt recovery")},"recover")],secondaryActions:l,children:(0,Tp.__)("Block contains unexpected or invalid content.")}),n&&(0,Sd.jsx)(_P.Modal,{title:(0,Tp.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare",children:(0,Sd.jsx)(UQ,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:GQ,convertButtonText:(0,Tp.__)("Convert to Blocks")})})]})}var $Q=c(G(),1);var KQ=c(E(),1),kVe=(0,KQ.jsx)(gp,{className:"block-editor-block-list__block-crash-warning",children:(0,$Q.__)("This block has encountered an error and cannot be previewed.")});function YQ(){return kVe}var qQ=c(F(),1),_Ve=class extends qQ.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},ZQ=_Ve;var bJ=c(Yz(),1),Ev=c(F(),1),TP=c(Q(),1),Zc=c(ue(),1);var hJ=c(fe(),1),qz=new WeakSet;function Cv(){return(0,hJ.useRefEffect)(e=>(qz.add(e),()=>{qz.delete(e)}),[])}function gJ(e){let{target:t}=e;for(t?.nodeName==="IFRAME"&&(t=t.contentDocument?.activeElement);t;){if(qz.has(t))return!0;t=t.parentElement}return!1}var yJ=c(E(),1);function AVe({clientId:e}){let[t,o]=(0,Ev.useState)(""),r=Cv(),n=(0,TP.useSelect)(l=>l(C).getBlock(e),[e]),{updateBlock:i}=(0,TP.useDispatch)(C),s=(0,Ev.useMemo)(()=>n?(0,Zc.getBlockContent)(n):"",[n]),a=()=>{let l=(0,Zc.getBlockType)(n.name);if(!l)return;let u=(0,Zc.getBlockAttributes)(l,t,n.attributes),d=t||(0,Zc.getSaveContent)(l,u),[f]=t?(0,Zc.validateBlock)({...n,attributes:u,originalContent:d}):[!0];i(e,{attributes:u,originalContent:d,isValid:f}),t||o(d)};return(0,Ev.useEffect)(()=>{o(s)},[s]),(0,yJ.jsx)(bJ.default,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:a,onChange:l=>o(l.target.value),ref:r})}var vJ=AVe;var lte=c(F(),1),uI=c(G(),1),cte=c(ue(),1),zv=c(fe(),1),ute=c($w(),1);var Xz=Yw(),st=e=>Kw(e,Xz),Qz=Yw();st.write=e=>Kw(e,Qz);var RP=Yw();st.onStart=e=>Kw(e,RP);var Jz=Yw();st.onFrame=e=>Kw(e,Jz);var ej=Yw();st.onFinish=e=>Kw(e,ej);var Tv=[];st.setTimeout=(e,t)=>{let o=st.now()+t,r=()=>{let i=Tv.findIndex(s=>s.cancel==r);~i&&Tv.splice(i,1),Bp-=~i?1:0},n={time:o,handler:e,cancel:r};return Tv.splice(kJ(o),0,n),Bp+=1,_J(),n};var kJ=e=>~(~Tv.findIndex(t=>t.time>e)||~Tv.length);st.cancel=e=>{RP.delete(e),Jz.delete(e),ej.delete(e),Xz.delete(e),Qz.delete(e)};st.sync=e=>{Zz=!0,st.batchedUpdates(e),Zz=!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 tj=typeof window<"u"?window.requestAnimationFrame:()=>{};st.use=e=>tj=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"):wJ()};var Rp=-1,Bp=0,Zz=!1;function Kw(e,t){Zz?(t.delete(e),e(0)):(t.add(e),_J())}function _J(){Rp<0&&(Rp=0,st.frameLoop!=="demand"&&tj(xJ))}function LVe(){Rp=-1}function xJ(){~Rp&&(tj(xJ),st.batchedUpdates(wJ))}function wJ(){let e=Rp;Rp=st.now();let t=kJ(Rp);if(t&&(CJ(Tv.splice(0,t),o=>o.handler()),Bp-=t),!Bp){LVe();return}RP.flush(),Xz.flush(e?Math.min(64,Rp-e):16.667),Jz.flush(),Qz.flush(),ej.flush()}function Yw(){let e=new Set,t=e;return{add(o){Bp+=t==e&&!e.has(o)?1:0,e.add(o)},delete(o){return Bp-=t==e&&e.has(o)?1:0,e.delete(o)},flush(o){t.size&&(e=new Set,Bp-=t.size,CJ(t,r=>r(o)&&e.add(r)),Bp+=e.size,t=e)}}}function CJ(e,t){e.forEach(o=>{try{t(o)}catch(r){st.catch(r)}})}var Oa=c(ce());function AP(){}var IJ=(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 cs=e=>Ce.und(e)?[]:Ce.arr(e)?e:[e];function Iv(e,t){if(e.size){let o=Array.from(e);e.clear(),_o(o,t)}}var Ov=(e,...t)=>Iv(e,o=>o(...t)),aj=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),lj,OJ,Pp=null,AJ=!1,cj=AP,MVe=e=>{e.to&&(OJ=e.to),e.now&&(st.now=e.now),e.colors!==void 0&&(Pp=e.colors),e.skipAnimation!=null&&(AJ=e.skipAnimation),e.createStringInterpolator&&(lj=e.createStringInterpolator),e.requestAnimationFrame&&st.use(e.requestAnimationFrame),e.batchedUpdates&&(st.batchedUpdates=e.batchedUpdates),e.willAdvance&&(cj=e.willAdvance),e.frameLoop&&(st.frameLoop=e.frameLoop)},$s=Object.freeze({__proto__:null,get createStringInterpolator(){return lj},get to(){return OJ},get colors(){return Pp},get skipAnimation(){return AJ},get willAdvance(){return cj},assign:MVe}),qw=new Set,Ia=[],oj=[],IP=0,Av={get idle(){return!qw.size&&!Ia.length},start(e){IP>e.priority?(qw.add(e),st.onStart(NVe)):(LJ(e),st(ij))},advance:ij,sort(e){if(IP)st.onFrame(()=>Av.sort(e));else{let t=Ia.indexOf(e);~t&&(Ia.splice(t,1),MJ(e))}},clear(){Ia=[],qw.clear()}};function NVe(){qw.forEach(LJ),qw.clear(),st(ij)}function LJ(e){Ia.includes(e)||MJ(e)}function MJ(e){Ia.splice(DVe(Ia,t=>t.priority>e.priority),0,e)}function ij(e){let t=oj;for(let o=0;o<Ia.length;o++){let r=Ia[o];IP=r.priority,r.idle||(cj(r),r.advance(e),r.idle||t.push(r))}return IP=0,oj=Ia,oj.length=0,Ia=t,Ia.length>0}function DVe(e,t){let o=e.findIndex(t);return o<0?e.length:o}var NJ={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:Pp&&Pp[e]!==void 0?Pp[e]:(t=VVe.exec(e))?(Rv(t[1])<<24|Rv(t[2])<<16|Rv(t[3])<<8|255)>>>0:(t=FVe.exec(e))?(Rv(t[1])<<24|Rv(t[2])<<16|Rv(t[3])<<8|RJ(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))?(EJ(TJ(t[1]),BP(t[2]),BP(t[3]))|255)>>>0:(t=jVe.exec(e))?(EJ(TJ(t[1]),BP(t[2]),BP(t[3]))|RJ(t[4]))>>>0:null}function rj(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 EJ(e,t,o){let r=o<.5?o*(1+t):o+t-o*t,n=2*o-r,i=rj(n,r,e+1/3),s=rj(n,r,e),a=rj(n,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Rv(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function TJ(e){return(parseFloat(e)%360+360)%360/360}function RJ(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 BJ(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 Ip=(e,t,o)=>{if(Ce.fun(e))return e;if(Ce.arr(e))return Ip({range:e,output:t,extrapolate:o});if(Ce.str(e.output[0]))return lj(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 sj(){return sj=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},sj.apply(this,arguments)}var Bv=Symbol.for("FluidValue.get"),Cg=Symbol.for("FluidValue.observers"),Ii=e=>!!(e&&e[Bv]),Hn=e=>e&&e[Bv]?e[Bv]():e,uj=e=>e[Cg]||null;function qVe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Eg(e,t){let o=e[Cg];o&&o.forEach(r=>{qVe(r,t)})}var Pv=class{constructor(t){if(this[Bv]=void 0,this[Cg]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");ZVe(this,t)}},ZVe=(e,t)=>DJ(e,Bv,t);function Op(e,t){if(e[Bv]){let o=e[Cg];o||DJ(e,Cg,o=new Set),o.has(t)||(o.add(t),e.observerAdded&&e.observerAdded(o.size,t))}return t}function Ap(e,t){let o=e[Cg];if(o&&o.has(t)){let r=o.size-1;r?o.delete(t):e[Cg]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var DJ=(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,PJ=new RegExp(`(${PP.source})(%|[a-z]+)`,"i"),QVe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,MP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,VJ=e=>{let[t,o]=JVe(e);if(!t||aj())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&&MP.test(o))return VJ(o);if(o)return o}return e},JVe=e=>{let t=MP.exec(e);if(!t)return[,];let[,o,r]=t;return[o,r]},nj,e5e=(e,t,o,r,n)=>`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(r)}, ${n})`,NP=e=>{nj||(nj=Pp?new RegExp(`(${Object.keys(Pp).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>Hn(i).replace(MP,VJ).replace(XVe,BJ).replace(nj,BJ)),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=>Ip(sj({},e,{output:i})));return i=>{var s;let a=!PJ.test(t[0])&&((s=t.find(u=>PJ.test(u)))==null?void 0:s.replace(PP,"")),l=0;return t[0].replace(PP,()=>`${n[l++](i)}${a||""}`).replace(QVe,e5e)}},FJ="react-spring: ",zJ=e=>{let t=e,o=!1;if(typeof t!="function")throw new TypeError(`${FJ}once requires a function parameter`);return(...r)=>{o||(t(...r),o=!0)}},t5e=zJ(console.warn);function jJ(){t5e(`${FJ}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Rdt=zJ(console.warn);function Lv(e){return Ce.str(e)&&(e[0]=="#"||/\d/.test(e)||!aj()&&MP.test(e)||e in(Pp||{}))}var Zw=aj()?Oa.useEffect:Oa.useLayoutEffect,o5e=()=>{let e=(0,Oa.useRef)(!1);return Zw(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function dj(){let e=(0,Oa.useState)()[1],t=o5e();return()=>{t.current&&e(Math.random())}}function HJ(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 fj=e=>(0,Oa.useEffect)(e,n5e),n5e=[];var s0=c(ce()),a0=c(ce());var $J=c(ce()),_d=c(ce()),Xw=Symbol.for("Animated:node"),i5e=e=>!!e&&e[Xw]===e,Gl=e=>e&&e[Xw],zP=(e,t)=>IJ(e,Xw,t),Qw=e=>e&&e[Xw]&&e[Xw].getPayload(),DP=class{constructor(){this.payload=void 0,zP(this,this)}getPayload(){return this.payload||[]}},Tg=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)}},Rg=class e extends Tg{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Ip({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=Ip({output:[this.getValue(),t]})),this._value=0,super.reset()}},VP={dependencies:null},Bg=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):Ii(r)?o[n]=Hn(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&&Ii(t)&&VP.dependencies.add(t);let o=Qw(t);o&&_o(o,r=>this.add(r))}},pj=class e extends Bg{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(Lv(e)?Rg:Tg).create(e)}function jP(e){let t=Gl(e);return t?t.constructor:Ce.arr(e)?pj:Lv(e)?Rg:Tg}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 UJ=(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=dj(),d=()=>{let m=i.current;if(o&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&u()},f=new mj(d,l),p=(0,_d.useRef)();Zw(()=>(p.current=f,_o(l,m=>Op(m,f)),()=>{p.current&&(_o(p.current.deps,m=>Ap(m,p.current)),st.cancel(p.current.update))})),(0,_d.useEffect)(d,[]),fj(()=>()=>{let m=p.current;_o(m.deps,g=>Ap(g,m))});let h=t.getComponentProps(a.getValue());return $J.createElement(e,FP({},h,{ref:s}))})},mj=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 Bg(e),VP.dependencies=null,[e,o]}function l5e(e,t){return e&&(Ce.fun(e)?e(t):e.current=t),t}var GJ=Symbol.for("AnimatedComponent"),KJ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:o=n=>new Bg(n),getComponentProps:r=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:o,getComponentProps:r},i=s=>{let a=WJ(s)||"Anonymous";return Ce.str(s)?s=i[s]||(i[s]=UJ(s,n)):s=s[GJ]||(s[GJ]=UJ(s,n)),s.displayName=`Animated(${a})`,s};return Aa(e,(s,a)=>{Ce.arr(e)&&(a=WJ(s)),i[a]=i(s)}),{animated:i}},WJ=e=>Ce.str(e)?e:e&&Ce.str(e.displayName)?e.displayName:Ce.fun(e)&&e.name||null;function Oi(){return Oi=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},Oi.apply(this,arguments)}function Pg(e,...t){return Ce.fun(e)?e(...t):e}var o0=(e,t)=>e===!0||!!(t&&e&&(Ce.fun(e)?e(t):cs(e).includes(t))),iee=(e,t)=>Ce.obj(e)?t&&e[t]:e,see=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,c5e=e=>e,aee=(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 lee(e){let t=f5e(e);if(t){let o={to:t};return Aa(e,(r,n)=>n in t||(o[n]=r)),o}return Oi({},e)}function r0(e){return e=Hn(e),Ce.arr(e)?e.map(r0):Lv(e)?$s.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function bj(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,YJ=GP+1,qJ=2*Math.PI/3,ZJ=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=>YJ*e*e*e-GP*e*e,easeOutBack:e=>1+YJ*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)*qJ),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*qJ)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ZJ))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ZJ)/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},yj=Oi({},p5e.default,{mass:1,damping:1,easing:m5e.linear,clamp:!1}),vj=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,yj)}};function h5e(e,t,o){o&&(o=Oi({},o),XJ(o,t),t=Oi({},o,t)),XJ(e,t),Object.assign(e,t);for(let s in yj)e[s]==null&&(e[s]=yj[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 XJ(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=[],Sj=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 vj,this.immediate=!1}};function cee(e,{key:t,props:o,defaultProps:r,state:n,actions:i}){return new Promise((s,a)=>{var l;let u,d,f=o0((l=o.cancel)!=null?l:r?.cancel,t);if(f)m();else{Ce.und(o.pause)||(n.paused=o0(o.pause,t));let g=r?.pause;g!==!0&&(g=n.paused||o0(g,t)),u=Pg(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(Oi({},o,{callId:e,cancel:f}),s)}catch(g){a(g)}}})}var Tj=(e,t)=>t.length==1?t[0]:t.some(o=>o.cancelled)?Mv(e.get()):t.every(o=>o.noop)?uee(e.get()):Wl(e.get(),t.every(o=>o.finished)),uee=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Wl=(e,t,o=!1)=>({value:e,finished:t,cancelled:o}),Mv=e=>({value:e,cancelled:!0,finished:!1});function dee(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=aee(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)&&Mv(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 n0(o),k.result=Wl(r,!1),f(k),k;h(y);let S=Ce.obj(b)?Oi({},b):Oi({},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 n0(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 n0(e,t){Iv(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}},kj=e=>e instanceof i0,g5e=1,i0=class extends Pv{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 jJ(),$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){Eg(this,{type:"change",parent:this,value:t,idle:o})}_onPriorityChange(t){this.idle||Av.sort(this),Eg(this,{type:"priority",parent:this,priority:t})}},Ig=Symbol.for("SpringPhase"),fee=1,_j=2,xj=4,hj=e=>(e[Ig]&fee)>0,Lp=e=>(e[Ig]&_j)>0,Jw=e=>(e[Ig]&xj)>0,JJ=(e,t)=>t?e[Ig]|=_j|fee:e[Ig]&=~_j,eee=(e,t)=>t?e[Ig]|=xj:e[Ig]&=~xj,wj=class extends i0{constructor(t,o){if(super(),this.key=void 0,this.animation=new Sj,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)?Oi({},t):Oi({},o,{from:t});Ce.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Lp(this)||this._state.asyncTo)||Jw(this)}get goal(){return Hn(this.animation.to)}get velocity(){let t=Gl(this);return t instanceof Tg?t.lastVelocity||0:t.getPayload().map(o=>o.lastVelocity||0)}get hasAnimated(){return hj(this)}get isAnimating(){return Lp(this)}get isPaused(){return Jw(this)}get isDelayed(){return this._state.delayed}advance(t){let o=!0,r=!1,n=this.animation,{config:i,toValues:s}=n,a=Qw(n.to);!a&&Ii(n.to)&&(s=cs(Hn(n.to))),n.values.forEach((d,f)=>{if(d.done)return;let p=d.constructor==Rg?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,B=!1,R=1,I=Math.ceil(t/R);for(let A=0;A<I&&(T=Math.abs(y)>S,!(!T&&(h=Math.abs(p-m)<=k,h)));++A){x&&(B=m==p||m>p==w,B&&(y=-y*_,m=p));let P=-i.tension*1e-6*(m-p),O=-i.friction*.001*y,N=(P+O)/i.mass;y=y+N*R,m=m+y*R}}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=Hn(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(Lp(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:Oi({},o,{to:t})],Promise.all(r.map(n=>this._update(n))).then(n=>Tj(this,n))}stop(t){let{to:o}=this.animation;return this._focus(this.get()),n0(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||bj(r))&&(r=void 0),n=Ce.obj(n)?n[o]:n,n==null&&(n=void 0);let i={to:r,from:n};return hj(this)||(t.reverse&&([r,n]=[n,r]),n=Hn(n),Ce.und(n)?Gl(this)||this._set(r):this._set(n)),i}_update(t,o){let r=Oi({},t),{key:n,defaultProps:i}=this;r.default&&Object.assign(i,aee(r,(l,u)=>/^on/.test(u)?iee(l,n):l)),oee(this,r,"onProps"),t0(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 cee(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{Jw(this)||(eee(this,!0),Ov(a.pauseQueue),t0(this,"onPause",Wl(this,e0(this,this.animation.to)),this))},resume:()=>{Jw(this)&&(eee(this,!1),Lp(this)&&this._resume(),Ov(a.resumeQueue),t0(this,"onResume",Wl(this,e0(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(r.loop&&l.finished&&!(o&&l.noop)){let u=pee(r);if(u)return this._update(u,!0)}return l})}_merge(t,o,r){if(o.cancel)return this.stop(!0),r(Mv(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(Mv(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=Hn(p);let m=!Xc(f,u);m&&this._focus(f);let g=bj(o.to),{config:b}=l,{decay:v,velocity:y}=b;(n||i)&&(b.velocity=0),o.config&&!g&&h5e(b,Pg(o.config,s),o.config!==a.config?Pg(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)&&o0(o.reset,s),_=S?p:this.get(),x=r0(f),w=Ce.num(x)||Ce.arr(x)||Lv(x),T=!g&&(!w||o0(a.immediate||o.immediate,s));if(m){let A=jP(f);if(A!==k.constructor)if(T)k=this._set(x);else throw Error(`Cannot animate between ${k.constructor.name} and ${A.name}, as the "to" prop suggests`)}let B=k.constructor,R=Ii(f),I=!1;if(!R){let A=S||!hj(this)&&h;(m||A)&&(I=Xc(r0(_),x),R=!I),(!Xc(l.immediate,T)&&!T||!Xc(b.decay,v)||!Xc(b.velocity,y))&&(R=!0)}if(I&&Lp(this)&&(l.changed&&!S?R=!0:R||this._stop(u)),!g&&((R||Ii(u))&&(l.values=k.getPayload(),l.toValues=Ii(f)?null:B==Rg?[1]:cs(x)),l.immediate!=T&&(l.immediate=T,!T&&!S&&this._set(u)),R)){let{onRest:A}=l;_o(b5e,O=>oee(this,o,O));let P=Wl(this,e0(this,u));Ov(this._pendingCalls,P),this._pendingCalls.add(r),l.changed&&st.batchedUpdates(()=>{l.changed=!S,A?.(P,this),S?Pg(a.onRest,P):l.onStart==null||l.onStart(P,this)})}S&&this._set(_),g?r(dee(o.to,o,this._state,this)):R?this._start():Lp(this)&&!m?this._pendingCalls.add(r):r(uee(_))}_focus(t){let o=this.animation;t!==o.to&&(uj(this)&&this._detach(),o.to=t,uj(this)&&this._attach())}_attach(){let t=0,{to:o}=this.animation;Ii(o)&&(Op(o,this),kj(o)&&(t=o.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;Ii(t)&&Ap(t,this)}_set(t,o=!0){let r=Hn(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,t0(this,"onStart",Wl(this,e0(this,t.to)),this))}_onChange(t,o){o||(this._onStart(),Pg(this.animation.onChange,t,this)),Pg(this.defaultProps.onChange,t,this),super._onChange(t,o)}_start(){let t=this.animation;Gl(this).reset(Hn(t.to)),t.immediate||(t.fromValues=t.values.map(o=>o.lastPosition)),Lp(this)||(JJ(this,!0),Jw(this)||this._resume())}_resume(){$s.skipAnimation?this.finish():Av.start(this)}_stop(t,o){if(Lp(this)){JJ(this,!1);let r=this.animation;_o(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Eg(this,{type:"idle",parent:this});let n=o?Mv(this.get()):Wl(this.get(),e0(this,t??r.to));Ov(this._pendingCalls,n),r.changed&&(r.changed=!1,t0(this,"onRest",n,this))}}};function e0(e,t){let o=r0(t),r=r0(e.get());return Xc(r,o)}function pee(e,t=e.loop,o=e.to){let r=Pg(t);if(r){let n=r!==!0&&lee(r),i=(n||e).reverse,s=!n||n.reset;return Cj(Oi({},e,{loop:t,default:!1,pause:void 0,to:!i||bj(o)?o:void 0,from:s?e.from:void 0,reset:s},n))}}function Cj(e){let{to:t,from:o}=e=lee(e),r=new Set;return Ce.obj(t)&&tee(t,r),Ce.obj(o)&&tee(o,r),e.keys=r.size?Array.from(r):null,e}function tee(e,t){Aa(e,(o,r)=>o!=null&&t.add(r))}var b5e=["onStart","onRest","onChange","onPause","onResume"];function oee(e,t,o){e.animation[o]=t[o]!==see(t,o)?iee(t[o],e.key):void 0}function t0(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(Oi({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(Cj(t)),this}start(t){let{queue:o}=this;return t?o=cs(t).map(Cj):this.queue=[],this._flush?this._flush(this,o):(hee(this,o),S5e(this,o))}stop(t,o){if(t!==!!t&&(o=t),o){let r=this.springs;_o(cs(o),n=>r[n].stop(!!t))}else n0(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(cs(t),r=>o[r].pause())}return this}resume(t){if(Ce.und(t))this.start({pause:!1});else{let o=this.springs;_o(cs(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,Iv(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&&Iv(o,([l,u])=>{u.value=a,l(u,this,this._item)}),s&&(this._started=!1,Iv(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=>mee(e,o))).then(o=>Tj(e,o))}async function mee(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,Ov(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||see(t,"cancel")===!0;(d||h&&f.asyncId)&&p.push(cee(++e._lastAsyncId,{props:t,state:f,actions:{pause:AP,resume:AP,start(g,b){h?(n0(f,e._lastAsyncId),b(Mv(e))):(g.onRest=a,b(dee(d,g,f,e)))}}})),f.paused&&await new Promise(g=>{f.resumeQueue.add(g)});let m=Tj(e,await Promise.all(p));if(s&&m.finished&&!(o&&m.noop)){let g=pee(t,s,n);if(g)return hee(e,[g]),mee(e,g,!0)}return l&&st.batchedUpdates(()=>l(m,e,e.item)),m}function k5e(e,t){let o=new wj;return o.key=e,t&&Op(o,t),o}function _5e(e,t,o){t.keys&&_o(t.keys,r=>{(e[r]||(e[r]=o(r)))._prepareNode(t)})}function hee(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"],Rj=e=>{let{children:t}=e,o=x5e(e,w5e),r=(0,a0.useContext)(YP),n=o.pause||!!r.pause,i=o.immediate||!!r.immediate;o=HJ(()=>({pause:n,immediate:i}),[n,i]);let{Provider:s}=YP;return s0.createElement(s,{value:o},t)},YP=C5e(Rj,{});Rj.Provider=YP.Provider;Rj.Consumer=YP.Consumer;function C5e(e,t){return Object.assign(e,s0.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ree;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(ree||(ree={}));var Ej=class extends i0{constructor(t,o){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Ip(...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&&nee(this._active)&&gj(this)}_get(){let t=Ce.arr(this.source)?this.source.map(Hn):cs(Hn(this.source));return this.calc(...t)}_start(){this.idle&&!nee(this._active)&&(this.idle=!1,_o(Qw(this),t=>{t.done=!1}),$s.skipAnimation?(st.batchedUpdates(()=>this.advance()),gj(this)):Av.start(this))}_attach(){let t=1;_o(cs(this.source),o=>{Ii(o)&&Op(o,this),kj(o)&&(o.idle||this._active.add(o),t=Math.max(t,o.priority+1))}),this.priority=t,this._start()}_detach(){_o(cs(this.source),t=>{Ii(t)&&Ap(t,this)}),this._active.clear(),gj(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=cs(this.source).reduce((o,r)=>Math.max(o,(kj(r)?r.priority:0)+1),0))}};function E5e(e){return e.idle!==!1}function nee(e){return!e.size||Array.from(e).every(E5e)}function gj(e){e.idle||(e.idle=!0,_o(Qw(e),t=>{t.done=!0}),Eg(e,{type:"idle",parent:e}))}$s.assign({createStringInterpolator:NP,to:(e,t)=>new Ej(e,t)});var Vdt=Av.advance;var yee=c(xd());function Oj(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"],vee=/^--/;function R5e(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!vee.test(e)&&!(l0.hasOwnProperty(e)&&l0[e])?t+"px":(""+t).trim()}var bee={};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=Oj(r,T5e),u=Object.values(l),d=Object.keys(l).map(f=>o||e.hasAttribute(f)?f:bee[f]||(bee[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]);vee.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 l0={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"];l0=Object.keys(l0).reduce((e,t)=>(I5e.forEach(o=>e[P5e(o,t)]=e[t]),e),l0);var O5e=["x","y","z"],A5e=/^(matrix|translate|scale|rotate|skew)/,L5e=/^(translate)/,M5e=/^(rotate|skew)/,Bj=(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,Pj=class extends Bg{constructor(t){let{x:o,y:r,z:n}=t,i=Oj(t,O5e),s=[],a=[];(o||r||n)&&(s.push([o||0,r||0,n||0]),a.push(l=>[`translate3d(${l.map(u=>Bj(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":M5e.test(u)?"deg":"";s.push(cs(l)),a.push(u==="rotate3d"?([f,p,h,m])=>[`rotate3d(${f},${p},${h},${Bj(m,d)})`,qP(m,0)]:f=>[`${u}(${f.map(p=>Bj(p,d)).join(",")})`,qP(f,u.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new Ij(s,a)),super(i)}},Ij=class extends Pv{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=Hn(r[0]),[s,a]=this.transforms[n](Ce.arr(i)?i:r.map(Hn));t+=" "+s,o=o&&a}),o?"none":t}observerAdded(t){t==1&&_o(this.inputs,o=>_o(o,r=>Ii(r)&&Op(r,this)))}observerRemoved(t){t==0&&_o(this.inputs,o=>_o(o,r=>Ii(r)&&Ap(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Eg(this,t)}},N5e=["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:yee.unstable_batchedUpdates,createStringInterpolator:NP,colors:NJ});var V5e=KJ(N5e,{applyAnimatedValues:B5e,createAnimatedStyle:e=>new Pj(e),getComponentProps:e=>Oj(e,D5e)}),See=V5e.animated;var Nv=c(F(),1),_ee=c(Tt(),1),xee=c(Q(),1);var F5e=200;function kee(e){return{top:e.offsetTop,left:e.offsetLeft}}function z5e({triggerAnimationOnChange:e,clientId:t}){let o=(0,Nv.useRef)(),{isTyping:r,getGlobalBlockCount:n,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:a,isAncestorMultiSelected:l,isDraggingBlocks:u}=(0,xee.useSelect)(C),{previous:d,prevRect:f}=(0,Nv.useMemo)(()=>({previous:o.current&&kee(o.current),prevRect:o.current&&o.current.getBoundingClientRect()}),[e]);return(0,Nv.useLayoutEffect)(()=>{if(!d||!o.current)return;let p=(0,_ee.getScrollContainer)(o.current),h=i(t),m=h||s(t),g=u();function b(){if(!g&&m&&f){let B=o.current.getBoundingClientRect().top-f.top;B&&(p.scrollTop+=B)}}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:B,y:R}=T;B=Math.round(B),R=Math.round(R);let I=B===0&&R===0;o.current.style.transformOrigin="center center",o.current.style.transform=I?null:`translate3d(${B}px,${R}px,0)`,o.current.style.zIndex=k,b()}});o.current.style.transform=void 0;let _=kee(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(Tt(),1),Cee=c(Q(),1);var XP=".block-editor-block-list__block",j5e=".block-list-appender",H5e=".block-editor-button-block-appender";function wee(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 kr(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 Aj(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 Dv(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=Aj(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 Eee({clientId:e,initialPosition:t}){let o=(0,QP.useRef)(),{isBlockSelected:r,isMultiSelecting:n,isZoomOut:i,getSelectionStart:s}=H((0,Cee.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:Tee}=H(JP.privateApis);function Ree({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=Tee(t,"mouseout",o),n=Tee(t,"mouseover",o);return()=>{r(),n(),t.classList.remove("is-hovered")}},[e])}var eI=c(Q(),1),tI=c(fe(),1);var{subscribeDelegatedListener:$5e}=H(tI.privateApis);function Bee(e){let{isBlockSelected:t,isBlockMultiSelected:o,isMultiSelecting:r}=(0,eI.useSelect)(C),{selectBlock:n,selectionChange:i}=(0,eI.useDispatch)(C);return(0,tI.useRefEffect)(s=>{function a(l){if(t(e)){l.target.isContentEditable||i(e);return}if(!r()&&!o(e)&&Qc(s,l.target)){if(l.target.isContentEditable){n(e,null);return}n(e)}}return $5e(s,"focusin",a)},[t,n])}var Mp=c(F(),1);var Iee=c(Q(),1),Oee=c(fe(),1),Aee=c(F(),1);var Lj={onKeyDown:"keydown",onKeyUp:"keyup",onBeforeInput:"beforeinput",onInput:"input",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onCompositionEnd:"compositionend"},K5e=Object.values(Lj);function Lee(e){let t;for(let o in Lj)typeof e[o]=="function"&&(t=t||{},t[Lj[o]]=e[o]);return t}var Mee=["eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted"],Pee=[...Mee,"view","detail","key","code","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","keyCode","which"],c0=[...Mee,"data"],Y5e={keydown:Pee,keyup:Pee,beforeinput:c0,input:c0,compositionstart:c0,compositionupdate:c0,compositionend:c0};function q5e(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 Y5e[e.type]){let i=e[n];r[n]=typeof i=="function"?i.bind(e):i}return r}function Nee(){let{hasMultiSelection:e,getBlockParents:t}=(0,Iee.useSelect)(C),{refsMap:o,eventHandlers:r}=(0,Aee.useContext)(vd);return(0,Oee.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=kr(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=q5e(l,d)),h.currentTarget=b,g(h),h.isPropagationStopped()))break}}let s=n.ownerDocument.documentElement,a=K5e.map(l=>(s.addEventListener(l,i),()=>s.removeEventListener(l,i)));return()=>a.forEach(l=>l())},[e,t,o,r])}function Dee(e,t){let{eventHandlers:o}=(0,Mp.useContext)(vd),r=Lee(t),n=(0,Mp.useRef)();(0,Mp.useInsertionEffect)(()=>{n.current=r});let i=!!r;(0,Mp.useEffect)(()=>{if(i)return o.set(e,n),()=>o.delete(e)},[o,e,i])}var Vv=c(ue(),1),Fee=c(Tt(),1),Np=c(io(),1),oI=c(Q(),1),zee=c(fe(),1);function Vee(e){return!e||e==="transparent"||e==="rgba(0, 0, 0, 0)"}function jee({clientId:e,isSelected:t}){let{getBlockRootClientId:o,isZoomOut:r,hasMultiSelection:n,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=H((0,oI.useSelect)(C)),{insertAfterBlock:l,removeBlock:u,resetZoomLevel:d,startDraggingBlocks:f,stopDraggingBlocks:p,editContentOnlySection:h}=H((0,oI.useDispatch)(C));return(0,zee.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,Fee.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(),B=m.id,R=m.cloneNode();R.style.display="none",m.id=null,m.after(R);let I=1;{let $=m;for(;$=$.parentElement;){let{scale:Y}=_.getComputedStyle($);if(Y&&Y!=="none"){I=parseFloat(Y);break}}}let A=1/I,P={};for(let $ of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])P[$]=m.style[$];let O=_.scrollY,N=_.scrollX,j=y.clientX,D=y.clientY;m.style.position="relative",m.style.top="0px",m.style.left="0px";let M=y.clientX-T.left,V=y.clientY-T.top,L=T.height>200?200/T.height:1;if(m.style.zIndex="1000",m.style.transformOrigin=`${M*A}px ${V*A}px`,m.style.transition="transform 0.2s ease-out",m.style.transform=`scale(${L})`,m.style.opacity="0.9",Vee(_.getComputedStyle(m).backgroundColor)){let $="transparent",Y=m;for(;Y=Y.parentElement;){let{backgroundColor:Z}=_.getComputedStyle(Y);if(!Vee(Z)){$=Z;break}}m.style.backgroundColor=$}let z=!1,q=j,J=D;function te($){$.clientX===q&&$.clientY===J||(q=$.clientX,J=$.clientY,ee())}function ee(){z||(z=!0,m.style.pointerEvents="none");let $=J-D,Y=q-j,Z=_.scrollY,oe=_.scrollX,ne=Z-O,X=oe-N,re=$+ne,ae=Y+X;m.style.top=`${re*A}px`,m.style.left=`${ae*A}px`}function W(){S.removeEventListener("dragover",te),S.removeEventListener("dragend",W),S.removeEventListener("drop",W),S.removeEventListener("scroll",ee);for(let[$,Y]of Object.entries(P))m.style[$]=Y;R.remove(),m.id=B,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,Vv.isReusableBlock)(S),x=(0,Vv.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,Vv.isReusableBlock,Vv.isTemplatePart,l,u,r,d,n,f,p,i,s,h])}var Hee=c(fe(),1),Uee=c(F(),1);function Gee(){let e=(0,Uee.useContext)(rI);return(0,Hee.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}var nI=c(fe(),1);function Wee({isSelected:e}){let t=(0,nI.useReducedMotion)();return(0,nI.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 $ee=c(fe(),1),Kee=c(Q(),1);function iI({clientId:e="",isEnabled:t=!0}={}){let{getEnabledClientIdsTree:o}=H((0,Kee.useSelect)(C));return(0,$ee.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 Yee=c(fe(),1),u0=new Map;function Z5e(e,t){let o=u0.get(e);o||(o=new Set,u0.set(e,o),e.addEventListener("pointerdown",Zee)),o.add(t)}function X5e(e,t){let o=u0.get(e);o&&(o.delete(t),qee(t),o.size===0&&(u0.delete(e),e.removeEventListener("pointerdown",Zee)))}function qee(e){let t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),t==="true"&&!e.getAttribute("draggable")&&e.setAttribute("draggable","true"))}function Zee(e){let{target:t}=e,{ownerDocument:o,isContentEditable:r,tagName:n}=t,i=["INPUT","TEXTAREA"].includes(n),s=u0.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 Xee(){return(0,Yee.useRefEffect)(e=>(Z5e(e.ownerDocument,e),()=>{X5e(e.ownerDocument,e)}),[])}var Mr=c(G(),1),Ai=c(F(),1),Li=c(U(),1),Og=c(Q(),1),tte=c($l(),1),ote=c(as(),1);var d0=c(G(),1);var{getViewportBreakpoints:Q5e}=H(vr);function Mj(e){let t=Q5e(e);return $6.filter(([o])=>(o!==no.tablet.key||t.tablet!==void 0)&&(o!==no.mobile.key||t.mobile!==void 0))}function J5e(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"||!$6.some(([,{key:n}])=>n===t)?!1:r[t]===!1}function Jee(e,t){if(!e?.length)return!1;let o=e.filter(r=>J5e(r,t)).length;return o===0?!1:o===e.length?!0:null}function ete(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 Nj(e,t){if(!e&&e!==!1)return null;if(e===!1)return(0,d0.__)("Block is hidden");if(e?.viewport){let o=Mj(t).filter(([r])=>e.viewport?.[r]===!1).map(([,r])=>r.label);if(o.length>0)return(0,d0.sprintf)((0,d0.__)("Block is hidden on %s"),o.join(", "))}return null}var _r=c(E(),1),eFe={[no.mobile.key]:!1,[no.tablet.key]:!1,[no.desktop.key]:!1},tFe=[];function Dj({clientIds:e,onClose:t}){let{createSuccessNotice:o}=(0,Og.useDispatch)(ote.store),{updateBlockAttributes:r}=(0,Og.useDispatch)(C),n=(0,Og.useSelect)(S=>S(C).getBlocksByClientId(e)??tFe,[e]),i=(0,Og.useSelect)(S=>S(tte.store).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,Og.useSelect)(S=>S(C).getSettings().__experimentalFeatures?.viewport,[]),a=(0,Ai.useMemo)(()=>Mj(s),[s]),l=(0,Ai.useMemo)(()=>{if(n?.length===0)return{hideEverywhere:!1,viewportChecked:{}};let S={};return a.forEach(([,{key:_}])=>{S[_]=Jee(n,_)}),{hideEverywhere:ete(n),viewportChecked:S}},[n,a]),[u,d]=(0,Ai.useState)(l?.viewportChecked??{}),[f,p]=(0,Ai.useState)(l?.hideEverywhere??!1),h=(0,Ai.useCallback)((S,_)=>{d({...u,[S]:_})},[u]),m=(0,Ai.useMemo)(()=>{if(!f)return(0,Mr.sprintf)((0,Mr.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);let S=n?.length>1?(0,Mr.__)("Blocks hidden. You can access them via the List View (%s)."):(0,Mr.__)("Block hidden. You can access it via the List View (%s).");return(0,Mr.sprintf)(S,i)},[f,n?.length,i]),g=(0,Ai.useMemo)(()=>Object.values(u).some(S=>S===!0||S===null),[u]),b=(0,Ai.useMemo)(()=>f!==l.hideEverywhere?!0:a.some(([,{key:S}])=>u[S]!==l.viewportChecked[S]),[f,u,l,a]),v=(0,Ai.useMemo)(()=>f===null?!0:Object.values(u).some(S=>S===null),[f,u]),y=(0,Ai.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,_r.jsx)(Li.Modal,{title:e?.length>1?(0,Mr.__)("Hide blocks"):(0,Mr.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,_r.jsxs)("form",{onSubmit:y,children:[(0,_r.jsxs)("fieldset",{children:[(0,_r.jsx)("legend",{children:k?(0,Mr.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,Mr.__)("Select the viewport size for which you want to hide the block.")}),(0,_r.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,_r.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,_r.jsx)(Li.CheckboxControl,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,Mr.__)("Omit from published content"),checked:f===!0,indeterminate:f===null,onChange:S=>{p(S),d(eFe)}}),f!==!0&&(0,_r.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:a.map(([,{label:S,icon:_,key:x}])=>(0,_r.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,_r.jsx)(Li.CheckboxControl,{label:(0,Mr.sprintf)((0,Mr.__)("Hide on %s"),S),checked:u[x]??!1,indeterminate:u[x]===null,onChange:w=>h(x,w)}),(0,_r.jsx)(Li.Icon,{icon:_,className:K({"block-editor-block-visibility-modal__options-icon--checked":u[x]})})]},x))})]})}),k&&v&&(0,_r.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Mr.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!k&&f===!0&&(0,_r.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Mr.sprintf)((0,Mr.__)("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,_r.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Ai.createInterpolateElement)((0,Mr.sprintf)((0,Mr.__)("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,_r.jsx)("strong",{})})})]}),(0,_r.jsxs)(Li.Flex,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,_r.jsx)(Li.FlexItem,{children:(0,_r.jsx)(Li.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Mr.__)("Cancel")})}),(0,_r.jsx)(Li.FlexItem,{children:(0,_r.jsx)(Li.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Mr.__)("Apply")})})]})]})})}var Vj=c(fe(),1);var{getViewportBreakpoints:oFe}=H(vr);function Ma(e={}){let{blockVisibility:t=void 0,deviceType:o=no.desktop.key,viewportSettings:r,view:n=window}=e,i=oFe(r),s=i.mobile?`(width <= ${i.mobile})`:void 0,a=(0,Vj.useMediaQuery)(s,n),l;i.tablet&&(l=i.mobile?`(${i.mobile} < width <= ${i.tablet})`:`(width <= ${i.tablet})`);let u=(0,Vj.useMediaQuery)(l,n),d;return o===no.mobile.key&&i.mobile?d=no.mobile.key:o===no.tablet.key&&i.tablet?d=no.tablet.key:a?d=no.mobile.key:u&&i.tablet?d=no.tablet.key:d=no.desktop.key,{isBlockCurrentlyHidden:t===!1||t?.viewport?.[d]===!1,currentViewport:d}}var Fj=c(G(),1),sI=c(U(),1),aI=c(F(),1);var rte=c(ue(),1),lI=c(Q(),1);var zj=c(E(),1);function jj({clientIds:e}){let t=(0,aI.useRef)(!1),[o]=Le("blockVisibility.allowEditing"),{canToggleBlockVisibility:r,areBlocksHiddenAnywhere:n}=(0,lI.useSelect)(a=>{let{getBlocksByClientId:l,getBlockName:u,isBlockHiddenAnywhere:d}=H(a(C));return{canToggleBlockVisibility:l(e).every(({clientId:p})=>(0,rte.hasBlockSupport)(u(p),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(p=>d(p))}},[e]),i=(0,lI.useDispatch)(C);if((0,aI.useEffect)(()=>{n&&(t.current=!0)},[n]),o===!1||!n&&!t.current)return null;let{showViewportModal:s}=H(i);return(0,zj.jsx)(sI.ToolbarGroup,{className:"block-editor-block-visibility-toolbar",children:(0,zj.jsx)(sI.ToolbarButton,{disabled:!r,icon:n?Nl:dg,label:n?(0,Fj.__)("Hidden"):(0,Fj.__)("Visible"),onClick:()=>s(e),"aria-haspopup":"dialog"})})}var Hj=c(G(),1),nte=c(U(),1),cI=c(Q(),1),ite=c($l(),1);var ste=c(E(),1);function Uj({clientIds:e}){let[t]=Le("blockVisibility.allowEditing"),{areBlocksHiddenAnywhere:o,shortcut:r}=(0,cI.useSelect)(s=>{let{isBlockHiddenAnywhere:a}=H(s(C));return{areBlocksHiddenAnywhere:e?.every(l=>a(l)),shortcut:s(ite.store).getShortcutRepresentation("core/block-editor/toggle-block-visibility")}},[e]),n=(0,cI.useDispatch)(C);if(t===!1)return null;let{showViewportModal:i}=H(n);return(0,ste.jsx)(nte.MenuItem,{onClick:()=>i(e),shortcut:r,children:o?(0,Hj.__)("Show"):(0,Hj.__)("Hide")})}var Vp=c(U(),1),Gj=c(Q(),1),Dp=c(G(),1);var Fv=c(E(),1),{Badge:rFe}=H(Vp.privateApis),nFe={currentBlockVisibility:void 0,hasParentHiddenEverywhere:!1,selectedDeviceType:no.desktop.key};function ate({clientId:e}){let{currentBlockVisibility:t,selectedDeviceType:o,viewportSettings:r,hasParentHiddenEverywhere:n}=(0,Gj.useSelect)(p=>{if(!e)return nFe;let{getBlockAttributes:h,isBlockParentHiddenEverywhere:m,getSettings:g}=H(p(C)),b=g();return{currentBlockVisibility:h(e)?.metadata?.blockVisibility,selectedDeviceType:b?.[wa]?.toLowerCase()||no.desktop.key,viewportSettings:b?.__experimentalFeatures?.viewport,hasParentHiddenEverywhere:m(e)}},[e]),s=Nt(e)?.ownerDocument?.defaultView,a=s===null?void 0:s,{isBlockCurrentlyHidden:l,currentViewport:u}=Ma({blockVisibility:t,deviceType:o,viewportSettings:r,view:a}),d=(0,Gj.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,Dp.__)("Block is hidden");else{let p=no[u]?.label||u;f=(0,Dp.sprintf)((0,Dp.__)("Block is hidden on %s"),p)}if(n)f=(0,Dp.__)("Parent block is hidden");else if(d){let p=no[u]?.label||u;f=(0,Dp.sprintf)((0,Dp.__)("Parent block is hidden on %s"),p)}return(0,Fv.jsx)(rFe,{className:"block-editor-block-visibility-info",children:(0,Fv.jsxs)(Vp.__experimentalHStack,{spacing:2,justify:"start",children:[(0,Fv.jsx)(Vp.Icon,{icon:Nl}),(0,Fv.jsx)(Vp.__experimentalText,{children:f})]})})}function f0(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:B,isSectionBlock:R,isWithinSectionBlock:I,canMove:A,blockVisibility:P,deviceType:O,viewportSettings:N,ariaLabel:j}=(0,lte.useContext)(Fn);Dee(o,n);let D=(0,zv.useRefEffect)(Y=>{if(Y){let{ownerDocument:Z}=Y,{defaultView:oe}=Z;D.current=oe}},[]),M=(0,uI.sprintf)((0,uI.__)("Block: %s"),d),V=a==="html"&&!t?"-visual":"",L=Xee(),z=!I,q=(0,zv.useMergeRefs)([e.ref,D,Eee({clientId:o,initialPosition:m}),IQ(o),Bee(o),jee({clientId:o,isSelected:f}),Ree({isEnabled:z}),Gee(),ZP({triggerAnimationOnChange:s,clientId:o}),(0,zv.useDisabled)({isDisabled:!h}),iI({clientId:o,isEnabled:R}),Wee({isSelected:f}),A?L:void 0]),J=ht(),ee=!!J[jy]?{"--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:O,viewportSettings:N,view:D.current});u<2&&o===J.clientId&&(0,ute.default)(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let $=!1;return(n?.style?.marginTop?.charAt(0)==="-"||n?.style?.marginBottom?.charAt(0)==="-"||n?.style?.marginLeft?.charAt(0)==="-"||n?.style?.marginRight?.charAt(0)==="-")&&($=!0),{tabIndex:g==="disabled"?-1:0,draggable:A&&!_?!0:void 0,...n,...e,ref:q,id:`block-${o}${V}`,role:"document","aria-label":j??M,"data-block":o,"data-type":l,"data-title":d,inert:p?"true":void 0,className:K("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":$,"is-editing-content-only-section":T,"is-block-hidden":W},r,e.className,n.className,B),style:{...n.style,...e.style,...ee}}}f0.save=cte.__unstableGetBlockProps;var Nr=c(E(),1);function iFe(e,t){let o={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(o.className=K(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(o.style={...e.style,...t.style}),o}function dI({children:e,isHtml:t,...o}){return(0,Nr.jsx)("div",{...f0(o,{__unstableIsHtml:t}),children:e})}function Wj({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,Fp.useContext)(Fn),T=vg()||{},B=(0,Nr.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}),R=(0,$t.getBlockType)(u);R?.getEditWrapperProps&&(p=iFe(p,R.getEditWrapperProps(f)));let I=p&&!!p["data-align"]&&!x,A=a?.includes("is-position-sticky");I&&(B=(0,Nr.jsx)("div",{className:K("wp-block",A&&a),"data-align":p["data-align"],children:B}));let P;if(d)t==="html"?P=(0,Nr.jsxs)(Nr.Fragment,{children:[(0,Nr.jsx)("div",{style:{display:"none"},children:B}),(0,Nr.jsx)(dI,{isHtml:!0,children:(0,Nr.jsx)(vJ,{clientId:n})})]}):R?.apiVersion>1?P=B:P=(0,Nr.jsx)(dI,{children:B});else{let D=e?(0,$t.serializeRawBlock)(e):(0,$t.getSaveContent)(R,f);P=(0,Nr.jsxs)(dI,{className:"has-warning",children:[(0,Nr.jsx)(WQ,{clientId:n}),(0,Nr.jsx)(Fp.RawHTML,{children:(0,fte.safeHTML)(D)})]})}let{"data-align":O,...N}=p??{},j={...N,className:K(N.className,O&&x&&`align${O}`,!(O&&A)&&a)};return(0,Nr.jsx)(Fn.Provider,{value:{wrapperProps:j,isAligned:I,isSelectionWithinCurrentSection:_,...w},children:(0,Nr.jsx)(ZQ,{fallback:(0,Nr.jsx)(dI,{className:"has-warning",children:(0,Nr.jsx)(YQ,{})}),children:P})})}var sFe=(0,fI.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 R=v(h),I=(0,$t.getDefaultBlockName)(),A=(0,$t.getBlockType)(I);if(k(h)!==I){let P=(0,$t.switchToBlockType)(R,I);P&&P.length&&s(h,P)}else if((0,$t.isUnmodifiedDefaultBlock)(R)){let P=b(h);P&&o.batch(()=>{d(h),f(P)})}else if(A.merge){let P=A.merge({},R.attributes);s([h],[(0,$t.createBlock)(I,P)])}}function B(R,I=!0){let A=k(R),O=(0,$t.getBlockType)(A).category==="text",N=x(R),j=S(R),[D]=j;j.length===1&&(0,$t.isUnmodifiedBlock)(v(D))?d(R):O?o.batch(()=>{if(w(k(D),N))u([D],R,N,_(R));else{let M=(0,$t.switchToBlockType)(v(D),(0,$t.getDefaultBlockName)());M&&M.length&&M.every(V=>w(V.name,N))?(n(M,_(R),N,I),d(D,!1)):T()}!S(R).length&&(0,$t.isUnmodifiedBlock)(v(R))&&d(R,!1)}):T()}if(p){if(m){let I=b(m);if(I)if(k(m)===k(I)){let A=y(m),P=y(I);if(Object.keys(A).every(O=>A[O]===P[O])){o.batch(()=>{u(S(I),I,m),d(I,!1)});return}}else{i(m,I);return}}let R=b(h);if(!R)return;S(R).length?B(R,!1):i(h,R)}else{let R=g(h);if(R)i(R,h);else if(m){let I=g(m);if(I&&k(m)===k(I)){let A=y(m),P=y(I);if(Object.keys(A).every(O=>A[O]===P[O])){o.batch(()=>{u(S(m),m,I),d(m,!1)});return}}B(m)}else T()}},onReplace(p,h,m){p.length&&!(0,$t.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)}}});Wj=(0,pI.compose)(sFe,(0,dte.withFilters)("editor.BlockListBlock"))(Wj);function aFe(e){let{clientId:t,rootClientId:o}=e,r=(0,fI.useSelect)(X=>{let{isBlockSelected:re,getBlockMode:ae,isSelectionEnabled:ve,getTemplateLock:xe,isSectionBlock:ge,getParentSectionBlock:be,getBlockWithoutAttributes:he,getBlockAttributes:ke,canRemoveBlock:_e,canMoveBlock:we,getSettings:Re,getEditedContentOnlySection:se,getBlockEditingMode:ie,getBlockName:Ae,isFirstMultiSelectedBlock:ye,getMultiSelectedBlockClientIds:Ee,hasSelectedInnerBlock:qe,getBlocksByName:pt,getBlockIndex:at,isBlockMultiSelected:Ct,isBlockSubtreeDisabled:rt,isBlockHighlighted:Ot,__unstableIsFullySelected:ut,__unstableSelectionHasUnmergeableBlock:Ut,isBlockBeingDragged:So,isDragging:mo,__unstableHasActiveBlockOverlayActive:de,getSelectedBlocksInitialCaretPosition:Me}=H(X(C)),Ze=he(t);if(!Ze)return;let{hasBlockSupport:ze,getActiveBlockVariation:Je}=X($t.store),lt=ke(t),{name:ct,isValid:br}=Ze,Ao=(0,$t.getBlockType)(ct),or=Re(),{supportsLayout:ho,isPreviewMode:Go,__experimentalBlockBindingsSupportedAttributes:Vn}=or,yr=Vn?.[ct],an=lt?.metadata?.blockVisibility,it=or?.[wa]?.toLowerCase()||"desktop",_t=or?.__experimentalFeatures?.viewport,Vt=Ao?.apiVersion>1,ko=Ct(t),Wo=ie(t),rr={isPreviewMode:Go,blockWithoutAttributes:Ze,name:ct,attributes:lt,isValid:br,themeSupportsLayout:ho,index:at(t),isReusable:(0,$t.isReusableBlock)(Ao),className:Vt?lt.className:void 0,defaultClassName:Vt?(0,$t.getBlockDefaultClassName)(ct):void 0,blockTitle:Ao?.title,bindableAttributes:yr,blockVisibility:an,deviceType:it,viewportSettings:_t,isMultiSelected:ko,blockEditingMode:Wo,isEditingDisabled:Wo==="disabled"};if(Go)return rr;let Sa=re(t),ka=_e(t),Ol=we(t),Be=Je(ct,lt),Ft=!0,nt=qe(t,Ft),zt=ge(t)?t:be(t),$o=(0,$t.hasBlockSupport)(ct,"multiple",!0)?[]:pt(ct),Sn=$o.length&&$o[0]!==t;return{...rr,mode:ae(t),isSelectionEnabled:ve(),isLocked:!!xe(o),isSectionBlock:ge(t),isWithinSectionBlock:!!zt,isSelectionWithinCurrentSection:re(zt)||qe(zt,Ft),blockType:Ao,canRemove:ka,canMove:Ol,isSelected:Sa,isEditingContentOnlySection:se()===t,blockEditingMode:Wo,mayDisplayControls:Sa||ye(t)&&Ee().every(Wh=>Ae(Wh)===ct),mayDisplayParentControls:ze(Ae(t),"__experimentalExposeControlsToChildren",!1)&&qe(t),blockApiVersion:Ao?.apiVersion||1,blockTitle:Be?.title||Ao?.title,isSubtreeDisabled:Wo==="disabled"&&rt(t),hasOverlay:de(t)&&!mo(),initialPosition:Sa?Me():void 0,isHighlighted:Ot(t),isMultiSelected:ko,isPartiallySelected:ko&&!ut()&&!Ut(),isDragging:So(t),hasChildSelected:nt,isEditingDisabled:Wo==="disabled",hasEditableOutline:Wo!=="disabled"&&ie(o)==="disabled",originalBlockClientId:Sn?$o[0]:!1,blockVisibility:an,deviceType:it,viewportSettings:_t}},[t,o]),n=(0,pI.useRefEffect)(X=>{if(X){let{ownerDocument:re}=X,{defaultView:ae}=re;n.current=ae}},[]),{isBlockCurrentlyHidden:i}=Ma({blockVisibility:r?.blockVisibility,deviceType:r?.deviceType,viewportSettings:r?.viewportSettings,view:n.current}),s=(0,Fp.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:B,isSubtreeDisabled:R,hasOverlay:I,initialPosition:A,isHighlighted:P,isMultiSelected:O,isPartiallySelected:N,isReusable:j,isDragging:D,hasChildSelected:M,isSectionBlock:V,isWithinSectionBlock:L,isSelectionWithinCurrentSection:z,isEditingDisabled:q,hasEditableOutline:J,className:te,defaultClassName:ee,originalBlockClientId:W,bindableAttributes:$,blockVisibility:Y,deviceType:Z,viewportSettings:oe}=r,ne={isPreviewMode:a,clientId:t,className:te,index:x,mode:l,name:h,blockApiVersion:w,blockType:T,blockTitle:B,isSelected:b,isSubtreeDisabled:R,hasOverlay:I,initialPosition:A,blockEditingMode:k,isHighlighted:P,isMultiSelected:O,isPartiallySelected:N,isReusable:j,isDragging:D,hasChildSelected:M,isSectionBlock:V,isWithinSectionBlock:L,isSelectionWithinCurrentSection:z,isEditingDisabled:q,hasEditableOutline:J,isEditingContentOnlySection:y,defaultClassName:ee,mayDisplayControls:S,mayDisplayParentControls:_,originalBlockClientId:W,themeSupportsLayout:v,canMove:p,isBlockCurrentlyHidden:i,bindableAttributes:$,blockVisibility:Y,deviceType:Z,viewportSettings:oe};return i&&!b&&!O&&!M?null:(0,Nr.jsx)(Fn.Provider,{value:ne,children:(0,Nr.jsx)(Wj,{...e,mode:l,isSelectionEnabled:u,isLocked:d,canRemove:f,canMove:p,block:s,name:h,attributes:m,isValid:g,isSelected:b})})}var mI=(0,Fp.memo)(aFe);var l9=c(Q(),1),Hpe=c(ue(),1);var s9=c(G(),1),Dpe=c(mte(),1),R2=c(Q(),1),B2=c(io(),1);var Npe=c(Qr(),1),jd=c(G(),1),T2=c(U(),1),ck=c(Q(),1),vb=c(ue(),1),i9=c(F(),1);var Jt=c(F(),1),x2=c(U(),1);var Tse=c(F(),1);var Ag=c(ce(),1);function Lg({controlled:e,default:t,name:o,state:r="value"}){let{current:n}=Ag.useRef(e!==void 0),[i,s]=Ag.useState(t),a=n?e:i,l=Ag.useCallback(u=>{n||s(u)},[]);return[a,l]}var lFe=c(ce(),1),p0={...lFe};var gte=c(ce(),1),hte={};function lo(e,t){let o=gte.useRef(hte);return o.current===hte&&(o.current=e(t)),o}var $j=p0.useInsertionEffect,cFe=$j&&$j!==p0.useLayoutEffect?$j:e=>e();function me(e){let t=lo(uFe).current;return t.next=e,cFe(t.effect),t.trampoline}function uFe(){let e={next:void 0,callback:dFe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function dFe(){}var bte=c(ce(),1),fFe=()=>{},le=typeof document<"u"?bte.useLayoutEffect:fFe;var zp=c(ce(),1);var hI=c(ce(),1),Kj=hI.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function yte(){return hI.useContext(Kj)}var vte=c(E(),1);function Ste(e){let{children:t,elementsRef:o,labelsRef:r,onMapChange:n}=e,i=me(n),s=zp.useRef(0),a=lo(mFe).current,l=lo(pFe).current,[u,d]=zp.useState(0),f=zp.useRef(u),p=me((v,y)=>{l.set(v,y??null),f.current+=1,d(f.current)}),h=me(v=>{l.delete(v),f.current+=1,d(f.current)}),m=zp.useMemo(()=>{let v=new Map;return Array.from(l.keys()).filter(k=>k.isConnected).sort(hFe).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=me(v=>(a.add(v),()=>{a.delete(v)}));le(()=>{a.forEach(v=>v(m))},[a,m]);let b=zp.useMemo(()=>({register:p,unregister:h,subscribeMapChange:g,elementsRef:o,labelsRef:r,nextIndexRef:s}),[p,h,g,o,r,s]);return(0,vte.jsx)(Kj.Provider,{value:b,children:t})}function pFe(){return new Map}function mFe(){return new Set}function hFe(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 gI=c(ce(),1),gFe=gI.createContext(void 0);function jp(){return gI.useContext(gFe)?.direction??"ltr"}function bFe(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 yFe=bFe("https://base-ui.com/production-error","Base UI"),It=yFe;var Mg=c(ce(),1);function Jc(e,t,o,r){let n=lo(_te).current;return vFe(n,e,t,o,r)&&xte(n,[e,t,o,r]),n.callback}function kte(e){let t=lo(_te).current;return SFe(t,e)&&xte(t,e),t.callback}function _te(){return{callback:null,cleanup:null,refs:[]}}function vFe(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function SFe(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function xte(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 Cte=c(ce(),1);var wte=c(ce(),1),kFe=parseInt(wte.version,10);function jv(e){return kFe>=e}function Yj(e){if(!Cte.isValidElement(e))return null;let t=e,o=t.props;return(jv(19)?o?.ref:t.ref)??null}function m0(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function jt(){}var h0=Object.freeze([]),Qt=Object.freeze({});function Ete(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 Tte(e,t){return typeof e=="function"?e(t):e}function bI(e,t){return typeof e=="function"?e(t):e}var qj={};function Ht(e,t,o,r,n){if(!o&&!r&&!n&&!e)return yI(t);let i=yI(e);return t&&(i=g0(i,t)),o&&(i=g0(i,o)),r&&(i=g0(i,r)),n&&(i=g0(i,n)),i}function Rte(e){if(e.length===0)return qj;if(e.length===1)return yI(e[0]);let t=yI(e[0]);for(let o=1;o<e.length;o+=1)t=g0(t,e[o]);return t}function yI(e){return Zj(e)?{...Pte(e,qj)}:_Fe(e)}function g0(e,t){return Zj(t)?Pte(t,e):xFe(e,t)}function _Fe(e){let t={...e};for(let o in t){let r=t[o];Bte(o,r)&&(t[o]=Ite(r))}return t}function xFe(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=m0(e.style,r);break}case"className":{e[o]=Xj(e.className,r);break}default:Bte(o,r)?e[o]=wFe(e[o],r):e[o]=r}}return e}function Bte(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 Zj(e){return typeof e=="function"}function Pte(e,t){return Zj(e)?e(t):e??qj}function wFe(e,t){return t?e?(...o)=>{let r=o[0];if(Ote(r)){let i=r;b0(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let n=t(...o);return e?.(...o),n}:Ite(t):e}function Ite(e){return e&&((...t)=>{let o=t[0];return Ote(o)&&b0(o),e(...t)})}function b0(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Xj(e,t){return t?e?t+" "+e:t:e}function Ote(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Qj=c(ce(),1);function We(e,t,o={}){let r=t.render,n=CFe(t,o);if(o.enabled===!1)return null;let i=o.state??Qt;return RFe(e,r,n,i)}function CFe(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?Tte(o,i):void 0,f=u?bI(r,i):void 0,p=u?Ete(i,l):Qt,h=u&&a?EFe(a):void 0,m=u?m0(p,h)??{}:Qt;return typeof document<"u"&&(u?Array.isArray(s)?m.ref=kte([m.ref,Yj(n),...s]):m.ref=Jc(m.ref,Yj(n),s):Jc(null,null)),u?(d!==void 0&&(m.className=Xj(m.className,d)),f!==void 0&&(m.style=m0(m.style,f)),m):Qt}function EFe(e){return Array.isArray(e)?Rte(e):Ht(void 0,e)}var TFe=Symbol.for("react.lazy");function RFe(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=Ht(o,t.props);n.ref=o.ref;let i=t;return i?.$$typeof===TFe&&(i=Mg.Children.toArray(t)[0]),Mg.cloneElement(i,n)}if(e&&typeof e=="string")return BFe(e,o);throw new Error(It(8))}function BFe(e,t){return e==="button"?(0,Qj.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Qj.createElement)("img",{alt:"",...t,key:t.key}):Mg.createElement(e,t)}var vI=c(ce(),1);var Ate=0;function PFe(e,t="mui"){let[o,r]=vI.useState(e),n=e||o;return vI.useEffect(()=>{o==null&&(Ate+=1,r(`${t}-${Ate}`))},[o,t]),n}var Lte=p0.useId;function Hp(e,t){if(Lte!==void 0){let o=Lte();return e??(t?`${t}-${o}`:o)}return PFe(e,t)}function ii(e){return Hp(e,"base-ui")}var _I=c(ce(),1);var Te={};Or(Te,{cancelOpen:()=>n3e,chipRemovePress:()=>zFe,clearPress:()=>FFe,closePress:()=>DFe,closeWatcher:()=>XFe,decrementPress:()=>UFe,disabled:()=>s3e,drag:()=>t3e,escapeKey:()=>ZFe,focusOut:()=>qFe,imperativeAction:()=>c3e,incrementPress:()=>HFe,initial:()=>l3e,inputBlur:()=>$Fe,inputChange:()=>GFe,inputClear:()=>WFe,inputPaste:()=>KFe,inputPress:()=>YFe,itemPress:()=>NFe,keyboard:()=>JFe,linkPress:()=>VFe,listNavigation:()=>QFe,missing:()=>a3e,none:()=>IFe,outsidePress:()=>MFe,pointer:()=>e3e,scrub:()=>r3e,siblingOpen:()=>i3e,swipe:()=>u3e,trackPress:()=>jFe,triggerFocus:()=>LFe,triggerHover:()=>AFe,triggerPress:()=>OFe,wheel:()=>o3e,windowResize:()=>d3e});var IFe="none",OFe="trigger-press",AFe="trigger-hover",LFe="trigger-focus",MFe="outside-press",NFe="item-press",DFe="close-press",VFe="link-press",FFe="clear-press",zFe="chip-remove-press",jFe="track-press",HFe="increment-press",UFe="decrement-press",GFe="input-change",WFe="input-clear",$Fe="input-blur",KFe="input-paste",YFe="input-press",qFe="focus-out",ZFe="escape-key",XFe="close-watcher",QFe="list-navigation",JFe="keyboard",e3e="pointer",t3e="drag",o3e="wheel",r3e="scrub",n3e="cancel-open",i3e="sibling-open",s3e="disabled",a3e="missing",l3e="initial",c3e="imperative-action",u3e="swipe",d3e="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 e8=c(ce(),1);var Mte=c(ce(),1),f3e=[];function Hv(e){Mte.useEffect(e,f3e)}var SI=null,Lmt=globalThis.requestAnimationFrame,Jj=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)}},kI=new Jj,Un=class e{static create(){return new e}static request(t){return kI.request(t)}static cancel(t){return kI.cancel(t)}currentId=SI;request(t){this.cancel(),this.currentId=kI.request(()=>{this.currentId=SI,t()})}cancel=()=>{this.currentId!==SI&&(kI.cancel(this.currentId),this.currentId=SI)};disposeEffect=()=>this.cancel};function Mi(){let e=lo(Un.create).current;return Hv(e.disposeEffect),e}function us(e,t=!1,o=!1){let[r,n]=e8.useState(e&&t?"idle":void 0),[i,s]=e8.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=Un.request(()=>{n("ending")});return()=>{Un.cancel(a)}}},[e,i,r,o]),le(()=>{if(!e||t)return;let a=Un.request(()=>{n(void 0)});return()=>{Un.cancel(a)}},[t,e]),le(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&n("starting");let a=Un.request(()=>{n("idle")});return()=>{Un.cancel(a)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}function Nte(e){let{open:t,defaultOpen:o,onOpenChange:r,disabled:n}=e,[i,s]=Lg({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=us(i,!0,!0),d=ii(),[f,p]=_I.useState(),h=f??d,m=me(g=>{let b=!i,v=Ue(Te.triggerPress,g.nativeEvent);r(b,v),!v.isCanceled&&s(b)});return _I.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 xI=c(ce(),1),t8=xI.createContext(void 0);function wI(){let e=xI.useContext(t8);if(e===void 0)throw new Error(It(15));return e}var Ng=c(ce(),1);var o8=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function Dte(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}=yte(),p=Ng.useRef(-1),[h,m]=Ng.useState(i??(n===o8.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})({}),p3e={[eu.startingStyle]:""},m3e={[eu.endingStyle]:""},Cn={transitionStatus(e){return e==="starting"?p3e:e==="ending"?m3e:null}};var y0=(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 Vte=(function(e){return e.panelOpen="data-panel-open",e})({});var h3e={[y0.open]:""},g3e={[y0.closed]:""},Fte={open(e){return e?{[Vte.panelOpen]:""}:null}},zte={open(e){return e?h3e:g3e}};var Uv=c(ce(),1);function CI(){return typeof window<"u"}function Dr(e){return EI(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yl(e){var t;return(t=(EI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function EI(e){return CI()?e instanceof Node||e instanceof xt(e).Node:!1}function Xe(e){return CI()?e instanceof Element||e instanceof xt(e).Element:!1}function wt(e){return CI()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function tu(e){return!CI()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function ou(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Jr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function jte(e){return/^(table|td|th)$/.test(Dr(e))}function v0(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var b3e=/transform|translate|scale|rotate|perspective|filter/,y3e=/paint|layout|strict|content/,Dg=e=>!!e&&e!=="none",r8;function TI(e){let t=Xe(e)?Jr(e):e;return Dg(t.transform)||Dg(t.translate)||Dg(t.scale)||Dg(t.rotate)||Dg(t.perspective)||!RI()&&(Dg(t.backdropFilter)||Dg(t.filter))||b3e.test(t.willChange||"")||y3e.test(t.contain||"")}function Hte(e){let t=Kl(e);for(;wt(t)&&!ql(t);){if(TI(t))return t;if(v0(t))return null;t=Kl(t)}return null}function RI(){return r8==null&&(r8=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r8}function ql(e){return/^(html|body|#document)$/.test(Dr(e))}function Jr(e){return xt(e).getComputedStyle(e)}function S0(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kl(e){if(Dr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tu(e)&&e.host||Yl(e);return tu(t)?t.host:t}function Ute(e){let t=Kl(e);return ql(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&ou(t)?t:Ute(t)}function Up(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Ute(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=xt(n);if(i){let a=BI(s);return t.concat(s,s.visualViewport||[],ou(n)?n:[],a&&o?Up(a):[])}else return t.concat(n,Up(n,[],o))}function BI(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var PI=c(ce(),1),v3e=PI.createContext(void 0);function Gte(e=!1){let t=PI.useContext(v3e);if(t===void 0&&!e)throw new Error(It(16));return t}var Wte=c(ce(),1);function $te(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:Wte.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 Vg(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:r=0,native:n=!0,composite:i}=e,s=Uv.useRef(null),a=Gte(!0),l=i??a!==void 0,{props:u}=$te({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:r,isNativeButton:n}),d=Uv.useCallback(()=>{let h=s.current;n8(h)&&l&&t&&u.disabled===void 0&&h.disabled&&(h.disabled=!1)},[t,u.disabled,l]);le(d,[d]);let f=Uv.useCallback((h={})=>{let{onClick:m,onMouseDown:g,onKeyUp:b,onKeyDown:v,onPointerDown:y,...k}=h;return Ht({onClick(S){if(t){S.preventDefault();return}m?.(S)},onMouseDown(S){t||g?.(S)},onKeyDown(S){if(t||(b0(S),v?.(S),S.baseUIHandlerPrevented))return;let _=S.target===S.currentTarget,x=S.currentTarget,w=n8(x),T=!n&&S3e(x),B=_&&(n?w:!T),R=S.key==="Enter",I=S.key===" ",A=x.getAttribute("role"),P=A?.startsWith("menuitem")||A==="option"||A==="gridcell";if(_&&l&&I){if(S.defaultPrevented&&P)return;S.preventDefault(),T||n&&w?(x.click(),S.preventBaseUIHandler()):B&&(m?.(S),S.preventBaseUIHandler());return}B&&(!n&&(I||R)&&S.preventDefault(),!n&&R&&m?.(S))},onKeyUp(S){if(!t){if(b0(S),b?.(S),S.target===S.currentTarget&&n&&l&&n8(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=me(h=>{s.current=h,d()});return{getButtonProps:f,buttonRef:p}}function n8(e){return wt(e)&&e.tagName==="BUTTON"}function S3e(e){return!!(e?.tagName==="A"&&e?.href)}var Ni=c(ce(),1);function tt(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function Kt(e){let t=lo(k3e,e).current;return t.next=e,le(t.effect),t}function k3e(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Ke(e){return e?.ownerDocument||document}var Yte=c(ce(),1);var Kte=c(xd(),1);function Zl(e){return e==null?e:"current"in e?e.current:e}function Gp(e,t=!1,o=!0){let r=Mi();return me((n,i=null)=>{r.cancel();let s=Zl(e);if(s==null)return;let a=s,l=()=>{Kte.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 si(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,i=me(n),s=Gp(r,o,!1);Yte.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var k0={height:void 0,width:void 0};function Zte(e){let{externalRef:t,hiddenUntilFound:o,id:r,keepMounted:n,mounted:i,onOpenChange:s,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,f=Ni.useRef(null),p=Ni.useRef(null),[h,m]=Ni.useState(k0),g=Ni.useRef(k0),b=Ni.useRef(!1),v=Ni.useRef(a),y=Ni.useRef(!1),[k,S]=Ni.useState(!1),_=Ni.useRef(null),x=Jc(t,f),w=Kt({mounted:i,open:a}),T=Gp(f,!1,!1),B=!a&&!i,R=k?"idle":d,I=a&&(v.current||y.current),A=!a&&i&&p.current==="css-animation"&&h.height===void 0&&h.width===void 0?g.current:h,P=o&&B&&p.current!=="css-animation",O=me((V,L=!0)=>{L&&(g.current=V),m(V)}),N=me(()=>{_.current?.(),_.current=null}),j=me(V=>{N(),_.current=()=>{_.current=null,V()}}),D=me(()=>{a&&i&&p.current==="css-animation"&&(y.current=!0)});le(()=>{!k||d==="starting"||S(!1)},[k,d]),Ni.useEffect(()=>()=>{D(),N()},[D,N]),le(()=>{let V=f.current;if(!V)return;!a&&_.current&&N();let L=_3e(V,I);if(p.current=L,a&&d==="idle"&&v.current&&L==="css-animation"){g.current=Gv(V);return}if(a&&d==="starting"){let J=b.current;if(b.current=!1,L==="none"){O(Gv(V)),S(!0);return}if(L==="css-transition"){let te=x3e(V);if(O(Gv(V)),!J)return te;let ee=_0(V,"transition-duration","0s");return j(ee),S(!0),te}if(L==="css-animation"){if(O(Gv(V)),!J){_0(V,"animation-name","none")();return}let te=_0(V,"animation-name","none"),ee=_0(V,"animation-duration","0s");te(),j(ee),S(!0);return}}if(!a&&i&&(d==="idle"||d==="starting")){if(v.current=!1,y.current=!1,L==="none"){O(k0,!1),l(!1);return}O(Gv(V));return}if(d!=="ending")return;if(L==="none"){l(!1);return}let z=Gv(V);if(!((z.height??0)>0||(z.width??0)>0)){l(!1);return}O(z),L==="css-animation"&&_0(V,"animation-name","none")()},[i,a,N,O,l,j,I,d]),si({enabled:a&&i&&R==="idle",open:!0,ref:f,onComplete(){a&&O(k0,!1)}}),Ni.useEffect(()=>{if(a||!i||R!=="ending"||!f.current)return;let L=new AbortController,z=-1;function q(){w.current.open||(l(!1),O(k0,!1))}return z=Un.request(()=>{L.signal.aborted||T(q,L.signal)}),()=>{Un.cancel(z),L.abort()}},[w,i,a,R,T,O,l]),le(()=>{let V=f.current;!V||!o||!B||V.setAttribute("hidden","until-found")},[B,o]),Ni.useEffect(function(){let L=f.current;if(!L)return;function z(q){let J=Ue(Te.none,q);s(!0,J),!J.isCanceled&&(b.current=!0,u(!0))}return tt(L,"beforematch",z)},[s,u]);let M=n||o||i||a;return{height:A.height,props:{...P?{[y0.startingStyle]:""}:void 0,hidden:B,id:r},ref:x,shouldPreventOpenAnimation:I,shouldRender:M,transitionStatus:R,width:A.width}}function Gv(e){return{height:e.scrollHeight,width:e.scrollWidth}}function _3e(e,t=!1){let o=xt(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 _0(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 x3e(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=Un.request(o);return()=>{Un.cancel(r),o()}}var Xte=c(ce(),1);function II(e){let t=Xte.useRef(!0);t.current&&(t.current=!1,e())}var co={};Or(co,{engine:()=>c8,env:()=>d8,os:()=>a8,screenReader:()=>u8});var a8={};Or(a8,{android:()=>eoe,apple:()=>s8,ios:()=>i8,linux:()=>R3e,mac:()=>toe,windows:()=>T3e});function w3e(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:C3e,platform:E3e,maxTouchPoints:Qte}=w3e(),Fg=C3e.toLowerCase(),zg=E3e.toLowerCase();var i8=/^i(os$|p)/.test(zg)||zg==="macintel"&&Qte>1,Jte="android",eoe=zg===Jte||Fg.includes(Jte),toe=!i8&&zg.startsWith("mac"),T3e=zg.startsWith("win"),R3e=!eoe&&/^(linux|chrome os)/.test(zg),s8=toe||i8;var c8={};Or(c8,{blink:()=>P3e,gecko:()=>B3e,webkit:()=>l8});var l8=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),B3e=!l8&&Fg.includes("firefox"),P3e=!l8&&Fg.includes("chrom");var u8={};Or(u8,{voiceOver:()=>I3e});var I3e=s8;var d8={};Or(d8,{jsdom:()=>O3e});var O3e=/jsdom|happydom/.test(Fg);var x0=0,ai=class e{static create(){return new e}currentId=x0;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=x0,o()},t)}isStarted(){return this.currentId!==x0}clear=()=>{this.currentId!==x0&&(clearTimeout(this.currentId),this.currentId=x0)};disposeEffect=()=>this.clear};function xo(){let e=lo(ai.create).current;return Hv(e.disposeEffect),e}var ooe={},roe={},noe="";function A3e(e){if(typeof document>"u")return!1;let t=Ke(e);return xt(t).innerWidth-t.documentElement.clientWidth>0}function L3e(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let o=Ke(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 M3e(e){let t=Ke(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 N3e(e){let t=Ke(e),o=t.documentElement,r=t.body,n=xt(o),i=0,s=0,a=!1,l=Un.create();if(co.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,ooe={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},noe=o.style.scrollBehavior,roe={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),B=parseFloat(m.marginLeft)+parseFloat(m.marginRight),R=ou(o)?o:r;if(a=L3e(e),a){o.style.scrollbarGutter=v,R.style.overflowY="hidden",R.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:B||x?`calc(100vw - ${B+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,ooe),Object.assign(r.style,roe),a||(o.scrollTop=i,o.scrollLeft=s,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=noe)}function f(){d(),l.request(u)}u();let p=tt(n,"resize",f);return()=>{l.cancel(),d(),typeof n.removeEventListener=="function"&&p()}}var f8=class{lockCount=0;restore=null;timeoutLock=ai.create();timeoutUnlock=ai.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=Ke(t).documentElement,n=xt(r).getComputedStyle(r).overflowY;if(n==="hidden"||n==="clip"){this.restore=jt;return}let i=co.os.ios||!A3e(t);this.restore=i?M3e(t):N3e(t)}},D3e=new f8;function ioe(e=!0,t=null){le(()=>{if(e)return D3e.acquire(t)},[e,t])}var li=c(ce(),1);function Ks(e){e.preventDefault(),e.stopPropagation()}function soe(e){return"nativeEvent"in e}function Wv(e){return e.pointerType===""&&e.isTrusted?!0:co.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function OI(e){return co.env.jsdom?!1:!co.os.android&&e.width===0&&e.height===0||co.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 Na(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function aoe(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var w0="data-base-ui-focusable";var p8="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",C0="ArrowLeft",E0="ArrowRight",m8="ArrowUp",AI="ArrowDown";function Vr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function je(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 Wp(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(je(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function LI(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 loe(e){return e.matches("html,body")}function jg(e){return wt(e)&&e.matches(p8)}function h8(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${p8}`)!=null}function T0(e){return e?e.getAttribute("role")==="combobox"&&jg(e):!1}function coe(e){if(!e||co.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Hg(e){return e?e.hasAttribute(w0)?e:e.querySelector(`[${w0}]`)||e:null}function V3e(e,t){return t!=null&&!Na(t)?0:typeof e=="function"?e():e}function Cd(e,t,o){let r=V3e(e,o);return typeof r=="number"?r:r?.[t]}function g8(e){return typeof e=="function"?e():e}function MI(e,t){return t||e==="click"||e==="mousedown"}function uoe(e){return e?.includes("mouse")&&e!=="mousedown"}var doe=c(E(),1),foe=li.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ai,currentIdRef:{current:null},currentContextRef:{current:null}});function F3e(e,t){e.current=t.current}function b8(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=li.useRef(o),i=li.useRef(o),s=li.useRef(null),a=li.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,doe.jsx)(foe.Provider,{value:li.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:l}),[r,l]),children:t})}function y8(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),i=li.useContext(foe),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:f,timeout:p}=i,[h,m]=li.useState(!1),g=li.useRef(o),b=li.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,F3e(a,u),p.clear()}},[d,s,a,n,u,p]),li.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:h}),[f,a,h])}var ui=c(ce(),1);function ci(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var DI=c(ce(),1);var poe={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},NI={...poe,position:"fixed",top:0,left:0},moe={...poe,position:"absolute"};var hoe=c(E(),1),$v=DI.forwardRef(function(t,o){let[r,n]=DI.useState();return le(()=>{co.screenReader.voiceOver&&co.engine.webkit&&n("button")},[]),(0,hoe.jsx)("span",{...t,ref:o,style:NI,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var yoe=["top","right","bottom","left"];var $p=Math.min,Di=Math.max,Kp=Math.round,B0=Math.floor,Xl=e=>({x:e,y:e}),z3e={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(e,t,o){return Di(e,$p(t,o))}function Ql(e,t){return typeof e=="function"?e(t):e}function Gn(e){return e.split("-")[0]}function Jl(e){return e.split("-")[1]}function FI(e){return e==="x"?"y":"x"}function I0(e){return e==="y"?"height":"width"}function ds(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function O0(e){return FI(ds(e))}function voe(e,t,o){o===void 0&&(o=!1);let r=Jl(e),n=O0(e),i=I0(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=R0(s)),[s,R0(s)]}function Soe(e){let t=R0(e);return[VI(e),t,VI(t)]}function VI(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var goe=["left","right"],boe=["right","left"],j3e=["top","bottom"],H3e=["bottom","top"];function U3e(e,t,o){switch(e){case"top":case"bottom":return o?t?boe:goe:t?goe:boe;case"left":case"right":return t?j3e:H3e;default:return[]}}function koe(e,t,o,r){let n=Jl(e),i=U3e(Gn(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(VI)))),i}function R0(e){let t=Gn(e);return z3e[t]+e.slice(t.length)}function G3e(e){return{top:0,right:0,bottom:0,left:0,...e}}function zI(e){return typeof e!="number"?G3e(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 v8(e,t){return t<0||t>=e.length}function jI(e,t){return Ug(e.current,{disabledIndices:t})}function S8(e,t){return Ug(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ug(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&&k8(e,i,r));return i}function k8(e,t,o){if(typeof o=="function"?o(t):o?.includes(t)??!1)return!0;let n=e[t];return n?Gg(n)?!o&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!0:!1}function W3e(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Gg(e,t=e?Jr(e):null){return!e||!e.isConnected||!t||W3e(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var $3e='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function K3e(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 x8(e){for(let t of Array.from(e.children))if(Dr(t)==="summary")return t;return null}function Y3e(e,t){let o=x8(t);return!!o&&(e===o||je(o,e))}function _oe(e){let t=e?Dr(e):"";return e!=null&&e.matches($3e)&&(t!=="summary"||e.parentElement!=null&&Dr(e.parentElement)==="details"&&x8(e.parentElement)===e)&&(t!=="details"||x8(e)==null)&&(t!=="input"||e.type!=="hidden")}function xoe(e){if(!_oe(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=K3e(t)){let o=t!==e,r=Dr(t)==="slot";if(t.hasAttribute("inert")||o&&Dr(t)==="details"&&!t.open&&!Y3e(e,t)||t.hasAttribute("hidden")||!r&&!q3e(t,o))return!1}return!0}function q3e(e,t){let o=Jr(e);return t?o.display!=="none":Gg(e,o)}function woe(e){let t=e.tabIndex;if(t<0){let o=Dr(e);if(o==="details"||o==="audio"||o==="video"||wt(e)&&e.isContentEditable)return 0}return t}function _8(e){if(Dr(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function Z3e(e,t){let o=_8(e);if(!o)return!0;let r=t.find(n=>{let i=_8(n);return i?.name===o.name&&i.form===o.form&&i.checked});return r?r===o:t.find(n=>{let i=_8(n);return i?.name===o.name&&i.form===o.form})===o}function Coe(e){if(wt(e)&&Dr(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return wt(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Eoe(e,t){Coe(e).forEach(o=>{_oe(o)&&t.push(o),Eoe(o,t)})}function Toe(e,t,o){Coe(e).forEach(r=>{wt(r)&&r.matches(t)&&o.push(r),Toe(r,t,o)})}function HI(e){return xoe(e)&&woe(e)>=0}function w8(e){let t=[];return Eoe(e,t),t.filter(xoe)}function A0(e){let t=w8(e);return t.filter(o=>woe(o)>=0&&Z3e(o,t))}function Roe(e,t){let o=A0(e),r=o.length;if(r===0)return;let n=Vr(Ke(e)),i=o.indexOf(n),s=i===-1?t===1?0:r-1:i+t;return o[s]}function UI(e){return Roe(Ke(e).body,1)||e}function GI(e){return Roe(Ke(e).body,-1)||e}function Wg(e,t){let o=t||e.currentTarget,r=e.relatedTarget;return!r||!je(o,r)}function Boe(e){A0(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function C8(e){let t=[];Toe(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 Da(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...Da(e,n.id,o)])}function E8(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 WI=0;function Kv(e,t={}){let{preventScroll:o=!1,sync:r=!1,shouldFocus:n}=t;cancelAnimationFrame(WI);function i(){n&&!n()||e?.focus({preventScroll:o})}if(r)return i(),jt;let s=requestAnimationFrame(i);return WI=s,()=>{WI===s&&(cancelAnimationFrame(s),WI=0)}}var T8={inert:new WeakMap,"aria-hidden":new WeakMap},Poe="data-base-ui-inert",B8={inert:new WeakSet,"aria-hidden":new WeakSet},L0=new WeakMap,R8=0;function X3e(e){return B8[e]}function Loe(e){return e?tu(e)?e.host:Loe(e.parentNode):null}var Ioe=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=Loe(o);return e.contains(r)?r:null}).filter(o=>o!=null),Ooe=e=>{let t=new Set;return e.forEach(o=>{let r=o;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},Aoe=(e,t,o)=>{let r=[],n=i=>{!i||o.has(i)||Array.from(i.children).forEach(s=>{Dr(s)!=="script"&&(t.has(s)?n(s):r.push(s))})};return n(e),r};function Q3e(e,t,o,r,{mark:n=!0}){let i=null;r?i="inert":o&&(i="aria-hidden");let s=null,a=null,l=Ioe(t,e),u=n?Aoe(t,Ooe(l),new Set(l)):[],d=[],f=[];if(i){let p=T8[i],h=X3e(i);a=h,s=p;let m=Ioe(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(m);Aoe(t,Ooe(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=(L0.get(p)||0)+1;L0.set(p,h),f.push(p),h===1&&p.setAttribute(Poe,"")}),R8+=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=(L0.get(p)||0)-1;L0.set(p,h),h||p.removeAttribute(Poe)}),R8-=1,R8||(T8.inert=new WeakMap,T8["aria-hidden"]=new WeakMap,B8.inert=new WeakSet,B8["aria-hidden"]=new WeakSet,L0=new WeakMap)}}function P8(e,t={}){let{ariaHidden:o=!1,inert:r=!1,mark:n=!0}=t,i=Ke(e[0]).body;return Q3e(e,i,o,r,{mark:n})}var ar=c(ce(),1),I8=c(xd(),1);var Moe={style:{transition:"none"}},Noe="data-base-ui-click-trigger",J3e="data-base-ui-swipe-ignore",e4e="data-swipe-ignore",Zgt=`[${J3e}]`,Xgt=`[${e4e}]`,Doe={fallbackAxisSide:"none"},Voe={fallbackAxisSide:"end"},Foe={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var $g=c(E(),1),zoe=ar.createContext(null),O8=()=>ar.useContext(zoe),t4e=Td("portal");function $I(e={}){let{ref:t,container:o,componentProps:r=Qt,elementProps:n}=e,i=Hp(),a=O8()?.portalNode,[l,u]=ar.useState(null),[d,f]=ar.useState(null),p=me(b=>{b!==null&&f(b)}),h=ar.useRef(null);le(()=>{if(o===null){h.current&&(h.current=null,f(null),u(null));return}if(i==null)return;let b=(o&&(EI(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,[t4e]:""},n]});return{portalNode:d,portalSubtree:l&&m?I8.createPortal(m,l):null}}var A8=ar.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,container:a,renderGuards:l,...u}=t,{portalNode:d,portalSubtree:f}=$I({container:a,ref:o,componentProps:t,elementProps:u}),p=ar.useRef(null),h=ar.useRef(null),m=ar.useRef(null),g=ar.useRef(null),[b,v]=ar.useState(null),y=ar.useRef(!1),k=b?.modal,S=b?.open,_=typeof l=="boolean"?l:!!b&&!b.modal&&b.open&&!!d;ar.useEffect(()=>{if(!d||k)return;function w(T){d&&T.relatedTarget&&Wg(T)&&(T.type==="focusin"?y.current&&(C8(d),y.current=!1):(Boe(d),y.current=!0))}return ci(tt(d,"focusin",w,!0),tt(d,"focusout",w,!0))},[d,k]),le(()=>{!d||S!==!0||!y.current||(C8(d),y.current=!1)},[S,d]);let x=ar.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:h,beforeInsideRef:m,afterInsideRef:g,portalNode:d,setFocusManagerState:v}),[d]);return(0,$g.jsxs)(ar.Fragment,{children:[f,(0,$g.jsxs)(zoe.Provider,{value:x,children:[_&&d&&(0,$g.jsx)($v,{"data-type":"outside",ref:p,onFocus:w=>{if(Wg(w,d))m.current?.focus();else{let T=b?b.domReference:null;GI(T)?.focus()}}}),_&&d&&(0,$g.jsx)("span",{"aria-owns":d.id,style:Foe}),d&&I8.createPortal(s,d),_&&d&&(0,$g.jsx)($v,{"data-type":"outside",ref:h,onFocus:w=>{if(Wg(w,d))g.current?.focus();else{let T=b?b.domReference:null;UI(T)?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,Ue(Te.focusOut,w.nativeEvent))}}})]})]})});var Kg=c(ce(),1);function joe(){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 o4e=c(E(),1),r4e=Kg.createContext(null),n4e=Kg.createContext(null),Yp=()=>Kg.useContext(r4e)?.id||null,Va=e=>{let t=Kg.useContext(n4e);return e??t};var M0=c(E(),1);function i4e(e,t){let o=xt(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 Hoe=20,qp=[];function L8(){qp=qp.filter(e=>e.deref()?.isConnected)}function Uoe(e){L8(),e&&Dr(e)!=="body"&&(qp.push(new WeakRef(e)),qp.length>Hoe&&(qp=qp.slice(-Hoe)))}function Goe(){return L8(),qp[qp.length-1]?.deref()}function s4e(e){return e?HI(e)?e:A0(e)[0]||e:null}function Woe(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let o=w8(e).filter(n=>{let i=n.getAttribute("data-tabindex")||"";return HI(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 M8(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,_=me(()=>S.current.floatingContext?.nodeId),x=n===!1,w=T0(v)&&x,T=Kt(n),B=Kt(i),R=Kt(u),I=Kt(b),A=Va(h),P=O8(),O=ui.useRef(!1),N=ui.useRef(!1),j=ui.useRef(!1),D=ui.useRef(null),M=ui.useRef(""),V=ui.useRef(""),L=ui.useRef(null),z=ui.useRef(null),q=Jc(L,p,P?.beforeInsideRef),J=Jc(z,P?.afterInsideRef),te=xo(),ee=xo(),W=Mi(),$=P!=null,Y=Hg(y),Z=me((X=Y)=>X?A0(X):[]),oe=me(()=>m?.().filter(X=>X!=null)??[]);ui.useEffect(()=>{if(r||!a)return;function X(ae){ae.key==="Tab"&&je(Y,Vr(Ke(Y)))&&Z().length===0&&!w&&Ks(ae)}let re=Ke(Y);return tt(re,"keydown",X)},[r,Y,a,w,Z]),ui.useEffect(()=>{if(r||!b)return;let X=Ke(Y);function re(){j.current=!1}function ae(xe){let ge=wo(xe),be=oe(),he=je(y,ge)||je(v,ge)||je(P?.portalNode,ge)||be.some(ke=>ke===ge||je(ke,ge));j.current=!he,V.current=xe.pointerType||"keyboard",ge?.closest(`[${Noe}]`)&&(N.current=!0,ee.start(0,()=>{N.current=!1}))}function ve(){V.current="keyboard"}return ci(tt(X,"pointerdown",ae,!0),tt(X,"pointerup",re,!0),tt(X,"pointercancel",re,!0),tt(X,"keydown",ve,!0),re)},[r,y,v,Y,b,P,ee,oe]),ui.useEffect(()=>{if(r||!l)return;let X=Ke(Y);function re(){N.current=!0,ee.start(0,()=>{N.current=!1})}function ae(be){let he=wo(be);HI(he)&&(D.current=he)}function ve(be){let he=be.relatedTarget,ke=be.currentTarget,_e=wo(be);a&&he==null&&_e!=null&&je(y,_e)&&Uoe(_e),queueMicrotask(()=>{let we=_(),Re=g.context.triggerElements,se=oe(),ie=he?.hasAttribute(Td("focus-guard"))&&[L.current,z.current,P?.beforeInsideRef.current,P?.afterInsideRef.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,Zl(f),Zl(d)].includes(he),Ae=!(je(v,he)||je(y,he)||je(he,y)||je(P?.portalNode,he)||se.some(ye=>ye===he||je(ye,he))||he!=null&&Re.hasElement(he)||Re.hasMatchingElement(ye=>je(ye,he))||ie||A&&(Da(A.nodesRef.current,we).find(ye=>je(ye.context?.elements.floating,he)||je(ye.context?.elements.domReference,he))||E8(A.nodesRef.current,we).find(ye=>[ye.context?.elements.floating,Hg(ye.context?.elements.floating)].includes(he)||ye.context?.elements.domReference===he)));if(ke===v&&Y&&Woe(Y),s&&ke!==v&&!Gg(_e)&&Vr(X)===X.body){if(wt(Y)&&(Y.focus(),s==="popup")){W.request(()=>{Y.focus()});return}let ye=Z(),Ee=D.current,qe=(Ee&&ye.includes(Ee)?Ee:null)||ye[ye.length-1]||Y;wt(qe)&&qe.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(w||!a)&&he&&Ae&&!N.current&&(w||he!==Goe())&&(O.current=!0,g.setOpen(!1,Ue(Te.focusOut,be)))})}function xe(){j.current||(S.current.insideReactTree=!0,te.start(0,()=>{S.current.insideReactTree=!1}))}let ge=wt(v)?v:null;if(!(!y&&!ge))return ci(ge&&tt(ge,"focusout",ve),ge&&tt(ge,"pointerdown",re),y&&tt(y,"focusin",ae),y&&tt(y,"focusout",ve),y&&P&&tt(y,"focusout",xe,!0))},[r,v,y,Y,a,A,P,g,l,s,Z,w,_,S,te,ee,W,d,f,oe]),ui.useEffect(()=>{if(r||!y||!b)return;let X=Array.from(P?.portalNode?.querySelectorAll(`[${Td("portal")}]`)||[]),ae=(A?E8(A.nodesRef.current,_()):[]).find(ke=>T0(ke.context?.elements.domReference||null))?.context?.elements.domReference,xe=[...[y,...X,L.current,z.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,...oe()],ae,Zl(f),Zl(d),w?v:null].filter(ke=>ke!=null),ge=P8(xe,{ariaHidden:a||w,mark:!1}),be=[y,...X].filter(ke=>ke!=null),he=P8(be);return()=>{he(),ge()}},[b,r,v,y,a,P,w,A,_,d,f,oe]),le(()=>{if(!b||r||!wt(Y))return;let X=Ke(Y),re=Vr(X);queueMicrotask(()=>{let ae=T.current,ve=typeof ae=="function"?ae(R.current||""):ae;if(ve===void 0||ve===!1||je(Y,re))return;let ge=null,be=()=>(ge==null&&(ge=Z(Y)),ge[0]||Y),he;ve===!0||ve===null?he=be():he=Zl(ve),he=he||be();let ke=je(Y,Vr(X));Kv(he,{preventScroll:he===Y,shouldFocus(){if(!I.current)return!1;if(ke)return!0;let _e=Vr(X);return!(_e!==he&&je(Y,_e))}})})},[r,b,Y,Z,T,R,I]),le(()=>{if(r||!Y)return;let X=Ke(Y),re=Vr(X),ae=R.current==null;Uoe(re);function ve(ge){if(ge.open||(M.current=i4e(ge.nativeEvent,V.current)),ge.reason===Te.triggerHover&&ge.nativeEvent.type==="mouseleave"&&(O.current=!0),ge.reason===Te.outsidePress)if(ge.nested)O.current=!1;else if(Wv(ge.nativeEvent)||OI(ge.nativeEvent))O.current=!1;else{let be=!1;Ke(Y).createElement("div").focus({get preventScroll(){return be=!0,!1}}),be?O.current=!1:O.current=!0}}k.on("openchange",ve);function xe(){let ge=B.current,be=typeof ge=="function"?ge(M.current):ge;if(be===void 0||be===!1)return null;be===null&&(be=!0);let he=v?.isConnected?v:null,ke=re?.isConnected&&Dr(re)!=="body"?re:null,_e=ae?ke||he:he||ke;return _e||(_e=Goe()||null),typeof be=="boolean"?_e:Zl(be)||_e||null}return()=>{k.off("openchange",ve);let ge=Vr(X),be=oe(),he=je(y,ge)||be.some(we=>we===ge||je(we,ge))||A&&Da(A.nodesRef.current,_(),!1).some(we=>je(we.context?.elements.floating,ge)),ke=B.current,_e=xe();queueMicrotask(()=>{let we=s4e(_e),Re=typeof ke!="boolean";ke&&!O.current&&wt(we)&&(!(!Re&&we!==ge&&ge!==X.body)||he)&&we.focus({preventScroll:!0}),O.current=!1})}},[r,y,Y,B,R,k,A,v,_,oe]),le(()=>{if(!co.engine.webkit||b||!y)return;let X=Vr(Ke(y));!wt(X)||!jg(X)||je(y,X)&&X.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 Woe(Y),()=>{queueMicrotask(L8)}},[r,Y]);let ne=!r&&(a?!w:!0)&&($||a);return(0,M0.jsxs)(ui.Fragment,{children:[ne&&(0,M0.jsx)($v,{"data-type":"inside",ref:q,onFocus:X=>{if(a){let re=Z();Kv(re[re.length-1])}else P?.portalNode&&(O.current=!1,Wg(X,P.portalNode)?UI(v)?.focus():Zl(f??P.beforeOutsideRef)?.focus())}}),o,ne&&(0,M0.jsx)($v,{"data-type":"inside",ref:J,onFocus:X=>{a?Kv(Z()[0]):P?.portalNode&&(l&&(O.current=!0),Wg(X,P.portalNode)?GI(v)?.focus():Zl(d??P.afterOutsideRef)?.focus())}})]})}var N0=c(ce(),1);function N8(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=N0.useRef(void 0),p=Mi(),h=xo(),m=N0.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"||Na(y,!0)&&i)return;let _=b(S,v.currentTarget,T=>T==="click"||T==="mousedown"),x=wo(k);if(jg(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(Na(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 N0.useMemo(()=>o?{reference:m}:Qt,[o,m])}var fs=c(ce(),1);function a4e(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 $oe(e){return e!=null&&e.clientX!=null}function D8(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=fs.useRef(!1),d=fs.useRef(null),[f,p]=fs.useState(),[h,m]=fs.useState([]),g=me(S=>{n.set("positionReference",S)}),b=me((S,_,x)=>{u.current||l.current.openEvent&&!$oe(l.current.openEvent)||n.set("positionReference",a4e(x??a,{x:S,y:_,axis:r,dataRef:l,pointerType:f}))}),v=me(S=>{i?d.current||(b(S.clientX,S.clientY,S.currentTarget),m([])):b(S.clientX,S.clientY,S.currentTarget)}),y=Na(f)?s:i;fs.useEffect(()=>{if(!o){g(a);return}if(!y)return;function S(){d.current?.(),d.current=null}let _=xt(s);function x(w){let T=wo(w);je(s,T)?S():b(w.clientX,w.clientY)}return!l.current.openEvent||$oe(l.current.openEvent)?d.current=tt(_,"mousemove",x):g(a),S},[y,o,s,l,a,n,b,g,h]),fs.useEffect(()=>()=>{n.set("positionReference",null)},[n]),fs.useEffect(()=>{o&&!s&&(u.current=!1)},[o,s]),fs.useEffect(()=>{!o&&i&&(u.current=!0)},[o,i]);let k=fs.useMemo(()=>{function S(_){p(_.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:v,onMouseEnter:v}},[v]);return fs.useMemo(()=>o?{reference:k,trigger:k}:{},[o,k])}var ps=c(ce(),1);function l4e(){return!1}function c4e(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function D0(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:i="sloppy",referencePress:s=l4e,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=Va(l),m=me(typeof n=="function"?n:()=>!1),g=typeof n=="function"?m:n,b=g!==!1,v=me(()=>i),{escapeKey:y,outsidePress:k}=c4e(a),S=ps.useRef(!1),_=ps.useRef(!1),x=ps.useRef(!1),w=ps.useRef(!1),T=ps.useRef(""),B=ps.useRef(null),R=xo(),I=xo(),A=me(()=>{I.clear(),p.current.insideReactTree=!1}),P=me(q=>{let J=p.current.floatingContext?.nodeId;return(h?Da(h.nodesRef.current,J):[]).some(ee=>ee.context?.open&&!ee.context.dataRef.current[q])}),O=me(q=>LI(q,u.select("floatingElement"))||LI(q,u.select("domReferenceElement"))),N=me(q=>{s()&&u.setOpen(!1,Ue(Te.triggerPress,q.nativeEvent))}),j=me(q=>{if(!d||!o||!r||q.key!=="Escape"||w.current||!y&&P("__escapeKeyBubbles"))return;let J=soe(q)?q.nativeEvent:q,te=Ue(Te.escapeKey,J);u.setOpen(!1,te),te.isCanceled||q.preventDefault(),!y&&!te.isPropagationAllowed&&q.stopPropagation()}),D=me(()=>{p.current.insideReactTree=!0,I.start(0,A)}),M=me(q=>{if(!d||!o||q.button!==0)return;let J=wo(q.nativeEvent);je(u.select("floatingElement"),J)&&(S.current||(S.current=!0,_.current=!1))}),V=me(q=>{!d||!o||(q.defaultPrevented||q.nativeEvent.defaultPrevented)&&S.current&&(_.current=!0)});ps.useEffect(()=>{if(!d||!o)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=k;let q=new ai,J=new ai;function te(){q.clear(),w.current=!0}function ee(){q.start(co.engine.webkit?5:0,()=>{w.current=!1})}function W(){x.current=!0,J.start(0,()=>{x.current=!1})}function $(){S.current=!1,_.current=!1}function Y(){let se=T.current,ie=se==="pen"||!se?"mouse":se,Ae=v(),ye=typeof Ae=="function"?Ae():Ae;return typeof ye=="string"?ye:ye[ie]}function Z(se){let ie=Y();return ie==="intentional"&&se.type!=="click"||ie==="sloppy"&&se.type==="click"}function oe(se){let ie=p.current.floatingContext?.nodeId,Ae=h&&Da(h.nodesRef.current,ie).some(ye=>LI(se,ye.context?.elements.floating));return O(se)||Ae}function ne(se){if(Z(se)){se.type!=="click"&&!O(se)&&(J.clear(),x.current=!1),A();return}if(p.current.insideReactTree){A();return}let ie=wo(se),Ae=`[${Td("inert")}]`,ye=Xe(ie)?ie.getRootNode():null,Ee=Array.from((tu(ye)?ye:Ke(u.select("floatingElement"))).querySelectorAll(Ae)),qe=u.context.triggerElements;if(ie&&(qe.hasElement(ie)||qe.hasMatchingElement(at=>je(at,ie))))return;let pt=Xe(ie)?ie:null;for(;pt&&!ql(pt);){let at=Kl(pt);if(ql(at)||!Xe(at))break;pt=at}if(!(Ee.length&&Xe(ie)&&!loe(ie)&&!je(ie,u.select("floatingElement"))&&Ee.every(at=>!je(pt,at)))){if(wt(ie)&&!("touches"in se)){let at=ql(ie),Ct=Jr(ie),rt=/auto|scroll/,Ot=at||rt.test(Ct.overflowX),ut=at||rt.test(Ct.overflowY),Ut=Ot&&ie.clientWidth>0&&ie.scrollWidth>ie.clientWidth,So=ut&&ie.clientHeight>0&&ie.scrollHeight>ie.clientHeight,mo=Ct.direction==="rtl",de=So&&(mo?se.offsetX<=ie.offsetWidth-ie.clientWidth:se.offsetX>ie.clientWidth),Me=Ut&&se.offsetY>ie.clientHeight;if(de||Me)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)),A())}}}function X(se){Y()!=="sloppy"||se.pointerType==="touch"||!u.select("open")||!o||O(se)||ne(se)}function re(se){if(Y()!=="sloppy"||!u.select("open")||!o||O(se))return;let ie=se.touches[0];ie&&(B.current={startTime:Date.now(),startX:ie.clientX,startY:ie.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},R.start(1e3,()=>{B.current&&(B.current.dismissOnTouchEnd=!1,B.current.dismissOnMouseDown=!1)}))}function ae(se,ie){let Ae=wo(se);if(!Ae)return;let ye=tt(Ae,se.type,()=>{ie(se),ye()})}function ve(se){T.current="touch",ae(se,re)}function xe(se){R.clear(),se.type==="pointerdown"&&(T.current=se.pointerType),!(se.type==="mousedown"&&B.current&&!B.current.dismissOnMouseDown)&&ae(se,ie=>{ie.type==="pointerdown"?X(ie):ne(ie)})}function ge(se){if(!S.current)return;let ie=_.current;if($(),Y()==="intentional"){if(se.type==="pointercancel"){ie&&W();return}if(!oe(se)){if(ie){W();return}typeof g=="function"&&!g(se)||(J.clear(),x.current=!0,A())}}}function be(se){if(Y()!=="sloppy"||!B.current||O(se))return;let ie=se.touches[0];if(!ie)return;let Ae=Math.abs(ie.clientX-B.current.startX),ye=Math.abs(ie.clientY-B.current.startY),Ee=Math.sqrt(Ae*Ae+ye*ye);Ee>5&&(B.current.dismissOnTouchEnd=!0),Ee>10&&(ne(se),R.clear(),B.current=null)}function he(se){ae(se,be)}function ke(se){Y()!=="sloppy"||!B.current||O(se)||(B.current.dismissOnTouchEnd&&ne(se),R.clear(),B.current=null)}function _e(se){ae(se,ke)}let we=Ke(f),Re=ci(r&&ci(tt(we,"keydown",j),tt(we,"compositionstart",te),tt(we,"compositionend",ee)),b&&ci(tt(we,"click",xe,!0),tt(we,"pointerdown",xe,!0),tt(we,"pointerup",ge,!0),tt(we,"pointercancel",ge,!0),tt(we,"mousedown",xe,!0),tt(we,"mouseup",ge,!0),tt(we,"touchstart",ve,!0),tt(we,"touchmove",he,!0),tt(we,"touchend",_e,!0)));return()=>{Re(),q.clear(),J.clear(),$(),x.current=!1}},[p,f,r,b,g,d,o,y,k,j,A,v,P,O,h,u,R]),ps.useEffect(A,[g,A]);let L=ps.useMemo(()=>({onKeyDown:j,onPointerDown:N,onClick:N}),[j,N]),z=ps.useMemo(()=>({onKeyDown:j,onPointerDown:V,onMouseDown:V,onClickCapture:D,onMouseDownCapture(q){D(),M(q)},onPointerDownCapture(q){D(),M(q)},onMouseUpCapture:D,onTouchEndCapture:D,onTouchMoveCapture:D}),[j,D,M,V]);return ps.useMemo(()=>o?{reference:L,floating:z,trigger:L}:{},[o,L,z])}var di=c(ce(),1);function Koe(e,t,o){let{reference:r,floating:n}=e,i=ds(t),s=O0(t),a=I0(s),l=Gn(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 Zoe(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=zI(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 u4e=50,Xoe=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:Zoe},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=Koe(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<u4e&&(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}=Koe(u,p,l)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};var Qoe=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=Gn(n),y=ds(a),k=Gn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=p||(k||!g?[R0(a)]:Soe(a)),x=m!=="none";!p&&x&&_.push(...koe(a,g,m,S));let w=[a,..._],T=await l.detectOverflow(t,b),B=[],R=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&B.push(T[v]),f){let O=voe(n,s,S);B.push(T[O[0]],T[O[1]])}if(R=[...R,{placement:n,overflows:B}],!B.every(O=>O<=0)){var I,A;let O=(((I=i.flip)==null?void 0:I.index)||0)+1,N=w[O];if(N&&(!(f==="alignment"?y!==ds(N):!1)||R.every(M=>ds(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:O,overflows:R},reset:{placement:N}};let j=(A=R.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:A.placement;if(!j)switch(h){case"bestFit":{var P;let D=(P=R.filter(M=>{if(x){let V=ds(M.placement);return V===y||V==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(V=>V>0).reduce((V,L)=>V+L,0)]).sort((M,V)=>M[1]-V[1])[0])==null?void 0:P[0];D&&(j=D);break}case"initialPlacement":j=a;break}if(n!==j)return{reset:{placement:j}}}return{}}}};function Yoe(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 yoe.some(t=>e[t]>=0)}var Joe=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=Yoe(s,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qoe(a)}}}case"escaped":{let s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Yoe(s,o.floating);return{data:{escapedOffsets:a,escaped:qoe(a)}}}default:return{}}}}};var ere=new Set(["left","top"]);async function d4e(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Gn(o),a=Jl(o),l=ds(o)==="y",u=ere.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 tre=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 d4e(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}}}}},ore=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=ds(Gn(n)),h=FI(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=P0(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=P0(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}}}}}},rre=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=ds(n),p=FI(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=ere.has(Gn(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}}}},nre=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=Gn(n),p=Jl(n),h=ds(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=$p(g-d[b],y),_=$p(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 R=Di(d.left,0),I=Di(d.right,0),A=Di(d.top,0),P=Di(d.bottom,0);h?T=m-2*(R!==0||I!==0?R+I:Di(d.left,d.right)):w=g-2*(A!==0||P!==0?A+P:Di(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:w});let B=await s.getDimensions(a.floating);return m!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function lre(e){let t=Jr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=wt(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=Kp(o)!==i||Kp(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function F8(e){return Xe(e)?e:e.contextElement}function Yv(e){let t=F8(e);if(!wt(t))return Xl(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=lre(t),s=(i?Kp(o.width):o.width)/r,a=(i?Kp(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var f4e=Xl(0);function cre(e){let t=xt(e);return!RI()||!t.visualViewport?f4e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function p4e(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==xt(e)?!1:t}function Yg(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=F8(e),s=Xl(1);t&&(r?Xe(r)&&(s=Yv(r)):s=Yv(e));let a=p4e(i,o,r)?cre(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=xt(i),h=r&&Xe(r)?xt(r):r,m=p,g=BI(m);for(;g&&r&&h!==m;){let b=Yv(g),v=g.getBoundingClientRect(),y=Jr(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=xt(g),g=BI(m)}}return Ed({width:d,height:f,x:l,y:u})}function KI(e,t){let o=S0(e).scrollLeft;return t?t.left+o:Yg(Yl(e)).left+o}function ure(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-KI(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function m4e(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",s=Yl(r),a=t?v0(t.floating):!1;if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},u=Xl(1),d=Xl(0),f=wt(r);if((f||!f&&!i)&&((Dr(r)!=="body"||ou(s))&&(l=S0(r)),f)){let h=Yg(r);u=Yv(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}let p=s&&!f&&!i?ure(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 h4e(e){return Array.from(e.getClientRects())}function g4e(e){let t=Yl(e),o=S0(e),r=e.ownerDocument.body,n=Di(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Di(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+KI(e),a=-o.scrollTop;return Jr(r).direction==="rtl"&&(s+=Di(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:a}}var ire=25;function b4e(e,t){let o=xt(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=RI();(!d||d&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}let u=KI(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<=ire&&(i-=m)}else u<=ire&&(i+=u);return{width:i,height:s,x:a,y:l}}function y4e(e,t){let o=Yg(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=wt(e)?Yv(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 sre(e,t,o){let r;if(t==="viewport")r=b4e(e,o);else if(t==="document")r=g4e(Yl(e));else if(Xe(t))r=y4e(t,o);else{let n=cre(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ed(r)}function dre(e,t){let o=Kl(e);return o===t||!Xe(o)||ql(o)?!1:Jr(o).position==="fixed"||dre(o,t)}function v4e(e,t){let o=t.get(e);if(o)return o;let r=Up(e,[],!1).filter(a=>Xe(a)&&Dr(a)!=="body"),n=null,i=Jr(e).position==="fixed",s=i?Kl(e):e;for(;Xe(s)&&!ql(s);){let a=Jr(s),l=TI(s);!l&&a.position==="fixed"&&(n=null),(i?!l&&!n:!l&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ou(s)&&!l&&dre(e,s))?r=r.filter(d=>d!==s):n=a,s=Kl(s)}return t.set(e,r),r}function S4e(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?v0(t)?[]:v4e(t,this._c):[].concat(o),r],a=sre(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=sre(t,s[p],n);l=Di(h.top,l),u=$p(h.right,u),d=$p(h.bottom,d),f=Di(h.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function k4e(e){let{width:t,height:o}=lre(e);return{width:t,height:o}}function _4e(e,t,o){let r=wt(t),n=Yl(t),i=o==="fixed",s=Yg(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=Xl(0);function u(){l.x=KI(n)}if(r||!r&&!i)if((Dr(t)!=="body"||ou(n))&&(a=S0(t)),r){let h=Yg(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?ure(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 V8(e){return Jr(e).position==="static"}function are(e,t){if(!wt(e)||Jr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Yl(e)===o&&(o=o.ownerDocument.body),o}function fre(e,t){let o=xt(e);if(v0(e))return o;if(!wt(e)){let n=Kl(e);for(;n&&!ql(n);){if(Xe(n)&&!V8(n))return n;n=Kl(n)}return o}let r=are(e,t);for(;r&&jte(r)&&V8(r);)r=are(r,t);return r&&ql(r)&&V8(r)&&!TI(r)?o:r||Hte(e)||o}var x4e=async function(e){let t=this.getOffsetParent||fre,o=this.getDimensions,r=await o(e.floating);return{reference:_4e(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function w4e(e){return Jr(e).direction==="rtl"}var V0={convertOffsetParentRelativeRectToViewportRelativeRect:m4e,getDocumentElement:Yl,getClippingRect:S4e,getOffsetParent:fre,getElementRects:x4e,getClientRects:h4e,getDimensions:k4e,getScale:Yv,isElement:Xe,isRTL:w4e};function pre(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C4e(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=B0(f),g=B0(n.clientWidth-(d+p)),b=B0(n.clientHeight-(f+h)),v=B0(d),k={rootMargin:-m+"px "+-g+"px "+-b+"px "+-v+"px",threshold:Di(0,$p(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&&!pre(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 F0(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=F8(e),d=n||i?[...u?Up(u):[],...t?Up(t):[]]:[];d.forEach(v=>{n&&v.addEventListener("scroll",o,{passive:!0}),i&&v.addEventListener("resize",o)});let f=u&&a?C4e(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?Yg(e):null;l&&b();function b(){let v=Yg(e);g&&!pre(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 mre=tre;var hre=ore,gre=Qoe,bre=nre,yre=Joe;var vre=rre,YI=(e,t,o)=>{let r=new Map,n={platform:V0,...o},i={...n.platform,_c:r};return Xoe(e,t,{...n,platform:i})};var en=c(ce(),1),kre=c(ce(),1),_re=c(xd(),1),T4e=typeof document<"u",R4e=function(){},qI=T4e?kre.useLayoutEffect:R4e;function ZI(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(!ZI(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)&&!ZI(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xre(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sre(e,t){let o=xre(e);return Math.round(t*o)/o}function z8(e){let t=en.useRef(e);return qI(()=>{t.current=e}),t}function wre(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]=en.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=en.useState(r);ZI(p,r)||h(r);let[m,g]=en.useState(null),[b,v]=en.useState(null),y=en.useCallback(M=>{M!==x.current&&(x.current=M,g(M))},[]),k=en.useCallback(M=>{M!==w.current&&(w.current=M,v(M))},[]),S=i||m,_=s||b,x=en.useRef(null),w=en.useRef(null),T=en.useRef(d),B=l!=null,R=z8(l),I=z8(n),A=z8(u),P=en.useCallback(()=>{if(!x.current||!w.current)return;let M={placement:t,strategy:o,middleware:p};I.current&&(M.platform=I.current),YI(x.current,w.current,M).then(V=>{let L={...V,isPositioned:A.current!==!1};O.current&&!ZI(T.current,L)&&(T.current=L,_re.flushSync(()=>{f(L)}))})},[p,t,o,I,A]);qI(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);let O=en.useRef(!1);qI(()=>(O.current=!0,()=>{O.current=!1}),[]),qI(()=>{if(S&&(x.current=S),_&&(w.current=_),S&&_){if(R.current)return R.current(S,_,P);P()}},[S,_,P,R,B]);let N=en.useMemo(()=>({reference:x,floating:w,setReference:y,setFloating:k}),[y,k]),j=en.useMemo(()=>({reference:S,floating:_}),[S,_]),D=en.useMemo(()=>{let M={position:o,left:0,top:0};if(!j.floating)return M;let V=Sre(j.floating,d.x),L=Sre(j.floating,d.y);return a?{...M,transform:"translate("+V+"px, "+L+"px)",...xre(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:V,top:L}},[o,a,j.floating,d.x,d.y]);return en.useMemo(()=>({...d,update:P,refs:N,elements:j,floatingStyles:D}),[d,P,N,j,D])}var j8=(e,t)=>{let o=mre(e);return{name:o.name,fn:o.fn,options:[e,t]}},H8=(e,t)=>{let o=hre(e);return{name:o.name,fn:o.fn,options:[e,t]}},U8=(e,t)=>({fn:vre(e).fn,options:[e,t]}),G8=(e,t)=>{let o=gre(e);return{name:o.name,fn:o.fn,options:[e,t]}},W8=(e,t)=>{let o=bre(e);return{name:o.name,fn:o.fn,options:[e,t]}};var $8=(e,t)=>{let o=yre(e);return{name:o.name,fn:o.fn,options:[e,t]}};var Qv=c(ce(),1),zre=c(xd(),1);var Vre=c(ce(),1);var Ve=(e,t,o,r,n,i,...s)=>{if(s.length>0)throw new Error(It(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 Nre=c(ce(),1),Q8=c(Y8(),1),Dre=c(Ire(),1);var Ore=c(ce(),1);var q8=[],Z8;function Are(){return Z8}function Lre(e){q8.push(e)}function X8(e){let t=(o,r)=>{let n=lo($4e).current,i;try{Z8=n;for(let s of q8)s.before(n);i=e(o,r);for(let s of q8)s.after(n);n.didInitialize=!0}finally{Z8=void 0}return i};return t.displayName=e.displayName||e.name,t}function Mre(e){return Ore.forwardRef(X8(e))}function $4e(){return{didInitialize:!1}}var K4e=jv(19),Y4e=K4e?Z4e:X4e;function Pe(e,t,o,r,n){return Y4e(e,t,o,r,n)}function q4e(e,t,o,r,n){let i=Nre.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,Q8.useSyncExternalStore)(e.subscribe,i,i)}Lre({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,Q8.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Z4e(e,t,o,r,n){let i=Are();if(!i)return q4e(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 X4e(e,t,o,r,n){return(0,Dre.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,r,n))}var Zv=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 qg=c(ce(),1);var Xv=class extends Zv{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){qg.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){qg.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 qg.useDebugValue(t),Pe(this,this.selectors[t],o,r,n)}useContextCallback(t,o){qg.useDebugValue(t);let r=me(o??jt);this.context[t]=r}useStateSetter(t){let o=qg.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 Q4e={open:Ve(e=>e.open),transitionStatus:Ve(e=>e.transitionStatus),domReferenceElement:Ve(e=>e.domReferenceElement),referenceElement:Ve(e=>e.positionReference??e.referenceElement),floatingElement:Ve(e=>e.floatingElement),floatingId:Ve(e=>e.floatingId)},ru=class extends Xv{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:joe(),nested:r,triggerElements:i},Q4e),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&aoe(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 Fre(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=Vre.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 QI={tabIndex:-1,[w0]:""};function jre(e,t,o=!1){let r=Hp(),n=Yp()!=null,i=Qv.useRef(null);e===void 0&&i.current===null&&(i.current=t(r,n));let s=e??i.current;return Fre({popupStore:s,treatPopupAsFloatingElement:o,floatingRootContext:s.state.floatingRootContext,floatingId:r,nested:n,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}function J4e(e,t){let o=Qv.useRef(null),r=Qv.useRef(null);return Qv.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 e6e(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 t6e(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Hre(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=t6e(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),e6e(d,t,o.trigger,l()),e.update(d)};i?zre.flushSync(u):u()}function Ure(e,t,o,r){II(()=>{t===void 0&&e.state.open===!1&&o&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Gre(e,t,o,r){let n=o.useState("isMountedByTrigger",e),i=J4e(e,o),s=me(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 Wre(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 $re(e,t,o){let{mounted:r,setMounted:n,transitionStatus:i}=us(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:a});let l=me(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return si({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}function Kre(e,t){e.useSyncedValues(t),le(()=>()=>{e.update({activeTriggerProps:Qt,inactiveTriggerProps:Qt,popupProps:Qt})},[e])}var Zp=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 Yre(){return new ru({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Zp,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Zre(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Yre(),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 Xre(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 z0=Ve(e=>e.triggerIdProp??e.activeTriggerId),J8=Ve(e=>e.openProp??e.open),qre=Ve(e=>(e.popupElement?.id??e.floatingId)||void 0);function Qre(e,t){return t!==void 0&&J8(e)&&z0(e)===t}function o6e(e,t){return Qre(e,t)?!0:t!==void 0&&J8(e)&&z0(e)==null&&e.triggerCount===1}var Jre={open:J8,mounted:Ve(e=>e.mounted),transitionStatus:Ve(e=>e.transitionStatus),floatingRootContext:Ve(e=>e.floatingRootContext),triggerCount:Ve(e=>e.triggerCount),preventUnmountingOnClose:Ve(e=>e.preventUnmountingOnClose),payload:Ve(e=>e.payload),activeTriggerId:z0,activeTriggerElement:Ve(e=>e.mounted?e.activeTriggerElement:null),popupId:qre,isTriggerActive:Ve((e,t)=>t!==void 0&&z0(e)===t),isOpenedByTrigger:Ve((e,t)=>Qre(e,t)),isMountedByTrigger:Ve((e,t)=>t!==void 0&&z0(e)===t&&e.mounted),triggerProps:Ve((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Ve((e,t)=>o6e(e,t)?qre(e):void 0),popupProps:Ve(e=>e.popupProps),popupElement:Ve(e=>e.popupElement),positionerElement:Ve(e=>e.positionerElement)};function j0(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=Hp(),i=Yp()!=null,s=lo(()=>new ru({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Zp,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 eH(e={}){let{nodeId:t,externalTree:o}=e,r=j0(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]=di.useState(null),[p,h]=di.useState(void 0),[m,g]=di.useState(void 0),b=di.useRef(null),v=Va(o),y=di.useMemo(()=>({reference:i,floating:s,domReference:a}),[i,s,a]),k=wre({...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=di.useCallback(A=>{let P=Xe(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;f(P),k.refs.setReference(P)},[k.refs]),w=di.useCallback(A=>{(Xe(A)||A===null)&&(b.current=A,h(A)),(Xe(k.refs.reference.current)||k.refs.reference.current===null||A!==null&&!Xe(A))&&k.refs.setReference(A)},[k.refs,h]),T=di.useCallback(A=>{g(A),k.refs.setFloating(A)},[k.refs]),B=di.useMemo(()=>({...k.refs,setReference:w,setFloating:T,setPositionReference:x,domReference:b}),[k.refs,w,T,x]),R=di.useMemo(()=>({...k.elements,domReference:a}),[k.elements,a]),I=di.useMemo(()=>({...k,dataRef:n.context.dataRef,open:l,onOpenChange:n.setOpen,events:n.context.events,floatingId:u,refs:B,elements:R,nodeId:t,rootStore:n}),[k,B,R,t,n,l,u]);return le(()=>{a&&(b.current=a)},[a]),le(()=>{n.context.dataRef.current.floatingContext=I;let A=v?.nodesRef.current.find(P=>P.id===t);A&&(A.context=I)}),di.useMemo(()=>({...k,context:I,refs:B,elements:R,rootStore:n}),[k,B,R,I,n])}var nu=c(ce(),1);var tH=co.os.mac&&co.engine.webkit;function oH(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=xt(p);function m(){let v=n.select("domReferenceElement");!n.select("open")&&wt(v)&&v===Vr(Ke(v))&&(a.current=!0)}function g(){u.current=!0}function b(){u.current=!1}return ci(tt(h,"blur",m),tH&&tt(h,"keydown",g,!0),tH&&tt(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(tH&&!h.relatedTarget){if(!u.current&&!jg(g))return}else if(!coe(g))return}let b=Wp(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=Vr(Ke(v));!m&&y===v||je(s.current.floatingContext?.refs.floating.current,y)||je(v,y)||b||Wp(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 nH=c(ce(),1);var rH=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 ai,this.restTimeout=new ai,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},JI=new WeakMap;function Jv(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&JI.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),JI.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function eO(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,i=JI.get(o);i&&i!==e&&Jv(i),Jv(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,JI.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function eS(e){let t=e.context.dataRef.current,o=lo(()=>t.hoverInteractionState??rH.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),Hv(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function iH(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=Va(),f=Yp(),p=eS(i),h=xo(),m=me(()=>MI(u.current.openEvent?.type,p.interactedInside)),g=me(()=>uoe(u.current.openEvent?.type)),b=me(()=>{Jv(p)});le(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,b())},[s,p,b]),nH.useEffect(()=>b,[b]),le(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&g()&&Xe(l)&&a){let v=l,y=a,k=Ke(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 eO(p,{scopeElement:w,referenceElement:v,floatingElement:y}),()=>{b()}}},[o,s,l,a,p,g,d,f,b]),nH.useEffect(()=>{if(!o)return;function v(){return!!(d&&f&&Da(d.nodesRef.current,f).length>0)}function y(T){let B=Cd(r,"close",p.pointerType),R=()=>{i.setOpen(!1,Ue(Te.triggerHover,T)),d?.events.emit("floating.closed",T)};B?p.openChangeTimeout.start(B,R):(p.openChangeTimeout.clear(),R())}function k(T){let B=wo(T);if(!h8(B)){p.interactedInside=!1;return}p.interactedInside=B?.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(Wp(T.relatedTarget,i.context.triggerElements))return;let B=u.current.floatingContext?.nodeId??n,R=T.relatedTarget;if(!(d&&B&&Xe(R)&&Da(d.nodesRef.current,B,!1).some(A=>je(A.context?.elements.floating,R)))){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 ci(w&&tt(w,"mouseenter",S),w&&tt(w,"mouseleave",_),w&&tt(w,"pointerdown",k,!0),()=>{d?.events.off("floating.closed",x)})},[o,a,i,u,r,n,g,m,b,p,d,f,h])}var Xp=c(ce(),1),ene=c(xd(),1);var r6e={current:null};function sH(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:l=r6e,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=Va(u),y=eS(m),k=Xp.useRef(!1),S=Kt(n),_=Kt(r),x=Kt(s),w=Kt(o),T=Kt(h),B=Kt(p),R=me(()=>MI(g.current.openEvent?.type,y.interactedInside)),I=me(()=>T.current?.()!==!1),A=me((N,j,D)=>{let M=m.context.triggerElements;if(M.hasElement(j))return!N||!je(N,j);if(!Xe(D))return!1;let V=D;return M.hasMatchingElement(L=>je(L,V))&&(!N||!je(N,V))}),P=me(()=>{if(!y.handler)return;Ke(m.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),O=me(()=>{Jv(y)});return d&&(y.handleCloseOptions=S.current?.__options),Xp.useEffect(()=>P,[P]),Xp.useEffect(()=>{if(!o)return;function N(j){j.open?k.current=!1:(k.current=j.reason===Te.triggerHover,P(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return b.on("openchange",N),()=>{b.off("openchange",N)}},[o,b,y,P]),Xp.useEffect(()=>{if(!o)return;function N(V,L=!0){let z=Cd(_.current,"close",y.pointerType);z?y.openChangeTimeout.start(z,()=>{m.setOpen(!1,Ue(Te.triggerHover,V)),v?.events.emit("floating.closed",V)}):L&&(y.openChangeTimeout.clear(),m.setOpen(!1,Ue(Te.triggerHover,V)),v?.events.emit("floating.closed",V))}let j=l.current??(d?m.select("domReferenceElement"):null);if(!Xe(j))return;function D(V){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,i&&!Na(y.pointerType))return;let L=g8(x.current),z=Cd(_.current,"open",y.pointerType),q=wo(V),J=V.currentTarget??null,te=m.select("domReferenceElement"),ee=J;if(Xe(q)&&!m.context.triggerElements.hasElement(q)){for(let ae of m.context.triggerElements.elements())if(je(ae,q)){ee=ae;break}}Xe(J)&&Xe(te)&&!m.context.triggerElements.hasElement(J)&&je(J,te)&&(ee=te);let W=ee==null?!1:A(te,ee,q),$=m.select("open"),Y=B.current?.()??m.select("transitionStatus")==="ending",Z=!$&&Y&&k.current,oe=!W&&Xe(ee)&&Xe(te)&&je(te,ee)&&Z,ne=L>0&&!z,X=W&&($||Z)||oe,re=!$||W;if(X){I()&&m.setOpen(!0,Ue(Te.triggerHover,V,ee));return}ne||(z?y.openChangeTimeout.start(z,()=>{re&&I()&&m.setOpen(!0,Ue(Te.triggerHover,V,ee))}):re&&I()&&m.setOpen(!0,Ue(Te.triggerHover,V,ee)))}function M(V){if(R()){O();return}P();let L=m.select("domReferenceElement"),z=Ke(L);y.restTimeout.clear(),y.restTimeoutPending=!1;let q=g.current.floatingContext??f?.();if(Wp(V.relatedTarget,m.context.triggerElements))return;if(S.current&&q){m.select("open")||y.openChangeTimeout.clear();let te=l.current;y.handler=S.current({...q,tree:v,x:V.clientX,y:V.clientY,onClose(){O(),P(),w.current&&!R()&&te===m.select("domReferenceElement")&&N(V,!0)}}),z.addEventListener("mousemove",y.handler),y.handler(V);return}(y.pointerType!=="touch"||!je(m.select("floatingElement"),V.relatedTarget))&&N(V)}return a?ci(tt(j,"mousemove",D,{once:!0}),tt(j,"mouseenter",D),tt(j,"mouseleave",M)):ci(tt(j,"mouseenter",D),tt(j,"mouseleave",M))},[P,O,g,_,m,o,S,y,d,A,R,i,a,x,l,v,w,f,B,I]),Xp.useMemo(()=>{if(!o)return;function N(j){y.pointerType=j.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(j){let{nativeEvent:D}=j,M=j.currentTarget,V=m.select("domReferenceElement"),L=m.select("open"),z=A(V,M,j.target);if(i&&!Na(y.pointerType))return;if(L&&z&&y.handleCloseOptions?.blockPointerEvents){let te=m.select("floatingElement");if(te){let ee=y.handleCloseOptions?.getScope?.()??M.ownerDocument.body;eO(y,{scopeElement:ee,referenceElement:M,floatingElement:te})}}let q=g8(x.current);if(L&&!z||q===0||!z&&y.restTimeoutPending&&j.movementX**2+j.movementY**2<2)return;y.restTimeout.clear();function J(){if(y.restTimeoutPending=!1,R())return;let te=m.select("open");!y.blockMouseMove&&(!te||z)&&I()&&m.setOpen(!0,Ue(Te.triggerHover,D,M))}y.pointerType==="touch"?ene.flushSync(()=>{J()}):z&&L?J():(y.restTimeoutPending=!0,y.restTimeout.start(q,J))}}},[o,y,R,A,i,m,x,I])}var Wn=c(ce(),1);var n6e="Escape";function oO(e,t,o){switch(e){case"vertical":return t;case"horizontal":return o;default:return t||o}}function tO(e,t){return oO(t,e===m8||e===AI,e===C0||e===E0)}function aH(e,t,o){return oO(t,e===AI,o?e===C0:e===E0)||e==="Enter"||e===" "||e===""}function i6e(e,t,o){return oO(t,o?e===C0:e===E0,e===AI)}function s6e(e,t,o,r){let n=o?e===E0:e===C0,i=e===m8;return t==="both"||t==="horizontal"&&r?e===n6e:oO(t,n,i)}function lH(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"),B=w.useState("floatingElement"),R=w.useState("domReferenceElement"),I=w.context.dataRef,A=Hg(B),P=T0(R),O=Kt(A),N=Yp(),j=Va(S),D=Wn.useRef(p),M=Wn.useRef(s??-1),V=Wn.useRef(null),L=Wn.useRef(!0),z=me(se=>{n(M.current===-1?null:M.current,se)}),q=Wn.useRef(!!B),J=Wn.useRef(T),te=Wn.useRef(!1),ee=Wn.useRef(!1),W=Wn.useRef(null),$=Kt(g),Y=Kt(T),Z=Kt(s),oe=Kt(k),ne=Mi(),X=Mi(),re=me(()=>{function se(Ee){f?j?.events.emit("virtualfocus",Ee):W.current=Kv(Ee,{sync:te.current,preventScroll:!0})}let ie=o.current[M.current],Ae=ee.current;ie&&se(ie),(te.current?Ee=>Ee():Ee=>ne.request(Ee))(()=>{let Ee=o.current[M.current]||ie;if(!Ee)return;ie||se(Ee),he&&(Ae||!L.current)&&Ee.scrollIntoView?.({block:"nearest",inline:"nearest"})})});le(()=>{I.current.orientation=b},[I,b]),le(()=>{i&&(T&&B?(M.current=s??-1,D.current&&s!=null&&(ee.current=!0,z())):q.current&&(M.current=-1,z()))},[i,T,B,s,z]),le(()=>{if(i){if(!T){te.current=!1;return}if(B)if(r==null){if(te.current=!1,Z.current!=null)return;if(q.current&&(M.current=-1,re()),(!J.current||!q.current)&&D.current&&(V.current!=null||D.current===!0&&V.current==null)){let se=0,ie=()=>{o.current[0]==null?(se<2&&(se?ye=>X.request(ye):queueMicrotask)(ie),se+=1):(M.current=V.current==null||aH(V.current,b,d)||u?jI(o):S8(o),V.current=null,z())};ie()}}else v8(o.current,r)||(M.current=r,re(),ee.current=!1)}},[i,T,B,r,Z,u,o,b,d,z,re,X]),le(()=>{if(!i||B||!j||f||!q.current)return;let se=j.nodesRef.current,ie=se.find(Ee=>Ee.id===N)?.context?.elements.floating,Ae=Vr(Ke(R??ie??null)),ye=se.some(Ee=>Ee.context&&je(Ee.context.elements.floating,Ae));ie&&!ye&&L.current&&ie.focus({preventScroll:!0})},[i,B,R,j,N,f]),le(()=>{J.current=T,q.current=!!B}),le(()=>{T||(V.current=null,D.current=p)},[T,p]);let ae=r!=null,ve=me(se=>{if(!Y.current)return;let ie=o.current.indexOf(se.currentTarget);ie!==-1&&(M.current!==ie||r!==ie)&&(M.current=ie,z(se))}),xe=me(()=>v??j?.nodesRef.current.find(se=>se.id===N)?.context?.dataRef?.current.orientation),ge=me(()=>jI(o,$.current)),be=me(se=>{if(L.current=!1,te.current=!0,se.which===229||!Y.current&&se.currentTarget===O.current)return;if(u&&s6e(se.key,b,d,x)){tO(se.key,xe())||Ks(se),w.setOpen(!1,Ue(Te.listNavigation,se.nativeEvent)),wt(R)&&(f?j?.events.emit("virtualfocus",R):R.focus());return}let ie=M.current,Ae=jI(o,g),ye=S8(o,g);if(P||(se.key==="Home"&&(Ks(se),M.current=Ae,z(se)),se.key==="End"&&(Ks(se),M.current=ye,z(se))),_!=null){let Ee=_(se,M.current,o,b,l,d,g,Ae,ye);if(Ee!=null&&(M.current=Ee,z(se)),b==="both")return}if(tO(se.key,b)){if(Ks(se),T&&!f&&Vr(se.currentTarget.ownerDocument)===se.currentTarget){M.current=aH(se.key,b,d)?Ae:ye,z(se);return}aH(se.key,b,d)?l?ie>=ye?a&&ie!==o.current.length?M.current=-1:(te.current=!1,M.current=Ae):M.current=Ug(o.current,{startingIndex:ie,disabledIndices:g}):M.current=Math.min(ye,Ug(o.current,{startingIndex:ie,disabledIndices:g})):l?ie<=Ae?a&&ie!==-1?M.current=o.current.length:(te.current=!1,M.current=ye):M.current=Ug(o.current,{startingIndex:ie,decrement:!0,disabledIndices:g}):M.current=Math.max(Ae,Ug(o.current,{startingIndex:ie,decrement:!0,disabledIndices:g})),v8(o.current,M.current)&&(M.current=-1),z(se)}}),he=Wn.useMemo(()=>({onFocus(ie){te.current=!0,ve(ie)},onClick:({currentTarget:ie})=>ie.focus({preventScroll:!0}),onMouseMove(ie){te.current=!0,ee.current=!1,h&&ve(ie)},onPointerLeave(ie){if(!Y.current||!L.current||ie.pointerType==="touch")return;te.current=!0;let Ae=ie.relatedTarget;if(!(!h||o.current.includes(Ae))&&oe.current&&(W.current?.(),W.current=null,M.current=-1,z(ie),!f)){let ye=O.current,Ee=Vr(Ke(ye));ye&&je(ye,Ee)&&ye.focus({preventScroll:!0})}}}),[ve,Y,O,h,o,z,oe,f]),ke=Wn.useMemo(()=>f&&T&&ae&&{"aria-activedescendant":`${y}-${r}`},[f,T,ae,y,r]),_e=Wn.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...P?{}:ke,onKeyDown(se){if(se.key==="Tab"&&se.shiftKey&&T&&!f){let ie=wo(se.nativeEvent);if(ie&&!je(O.current,ie))return;Ks(se),w.setOpen(!1,Ue(Te.focusOut,se.nativeEvent)),wt(R)&&R.focus();return}be(se)},onPointerMove(){L.current=!0}}),[ke,be,O,b,P,w,T,f,R]),we=Wn.useMemo(()=>{function se(ye){w.setOpen(!0,Ue(Te.listNavigation,ye.nativeEvent,ye.currentTarget))}function ie(ye){p==="auto"&&Wv(ye.nativeEvent)&&(D.current=!f)}function Ae(ye){D.current=p,p==="auto"&&OI(ye.nativeEvent)&&(D.current=!0)}return{onKeyDown(ye){let Ee=w.select("open");L.current=!1;let qe=ye.key.startsWith("Arrow"),pt=i6e(ye.key,xe(),d),at=tO(ye.key,b),Ct=(u?pt:at)||ye.key==="Enter"||ye.key.trim()==="";if(f&&Ee)return be(ye);if(!(!Ee&&!m&&qe)){if(Ct){let rt=tO(ye.key,xe());V.current=u&&rt?null:ye.key}if(u){pt&&(Ks(ye),Ee?(M.current=ge(),z(ye)):se(ye));return}at&&(Z.current!=null&&(M.current=Z.current),Ks(ye),!Ee&&m?se(ye):be(ye),Ee&&z(ye))}},onFocus(ye){w.select("open")&&!f&&(M.current=-1,z(ye))},onPointerDown:Ae,onPointerEnter:Ae,onMouseDown:ie,onClick:ie}},[be,p,ge,u,z,w,m,b,xe,d,Z,f]),Re=Wn.useMemo(()=>({...ke,...we}),[ke,we]);return Wn.useMemo(()=>i?{reference:Re,floating:_e,item:he,trigger:we}:{},[i,Re,_e,we,he])}var Zg=c(ce(),1);function cH(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=Zg.useRef(""),g=Zg.useRef(d??n??-1),b=Zg.useRef(null),v=me(S=>{function _(O){let N=r?.current[O];return!N||Gg(N)}function x(O){return _(O)?s==null||!k8(h0,O,s):!1}function w(O,N,j=0){if(O.length===0)return-1;let D=(j%O.length+O.length)%O.length,M=N.toLowerCase();for(let V=0;V<O.length;V+=1){let L=(D+V)%O.length;if(!(!O[L]?.toLowerCase().startsWith(M)||!x(L)))return L}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 B=m.current==="";B&&(g.current=d??n??-1),T.every((O,N)=>O&&x(N)?O[0]?.toLowerCase()!==O[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 A=((B?d??n??-1:g.current)??0)+1,P=w(T,m.current,A);P!==-1?(i?.(P),b.current=P):S.key!==" "&&(m.current="",a?.(!1))}),y=me(S=>{let _=S.relatedTarget,x=f.select("domReferenceElement"),w=f.select("floatingElement");je(x,_)||je(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=Zg.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return Zg.useMemo(()=>l?{reference:k,floating:k}:{},[l,k])}var tne=.1,a6e=tne*tne,uo=.5;function rO(e,t,o,r,n,i){return r>=t!=i>=t&&e<=(n-o)*(t-r)/(i-r)+o}function nO(e,t,o,r,n,i,s,a,l,u){let d=!1;return rO(e,t,o,r,n,i)&&(d=!d),rO(e,t,n,i,s,a)&&(d=!d),rO(e,t,s,a,l,u)&&(d=!d),rO(e,t,l,u,o,r)&&(d=!d),d}function l6e(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function iO(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 uH(e={}){let{blockPointerEvents:t=!1}=e,o=new ai,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,B=_*_*a6e;return h=y,m=k,g=S,T<B}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),B=k.type==="mouseleave",R=je(_,T),I=je(S,T);if(R&&(p=!0,!B))return;if(I&&(p=!1,!B)){p=!0;return}if(B&&Xe(k.relatedTarget)&&je(_,k.relatedTarget))return;function A(){return!!(d&&Da(d.nodesRef.current,u).length>0)}function P(){A()||v()}if(A())return;let O=S.getBoundingClientRect(),N=_.getBoundingClientRect(),j=n>N.right-N.width/2,D=i>N.bottom-N.height/2,M=N.width>O.width,V=N.height>O.height,L=(M?O:N).left,z=(M?O:N).right,q=(V?O:N).top,J=(V?O:N).bottom;if(f==="top"&&i>=O.bottom-1||f==="bottom"&&i<=O.top+1||f==="left"&&n>=O.right-1||f==="right"&&n<=O.left+1){P();return}let te=!1;switch(f){case"top":te=iO(x,w,L,O.top+1,z,N.bottom-1);break;case"bottom":te=iO(x,w,L,N.top+1,z,O.bottom-1);break;case"left":te=iO(x,w,N.right-1,J,O.left+1,q);break;case"right":te=iO(x,w,O.right-1,J,N.left+1,q);break;default:}if(te)return;if(p&&!l6e(x,w,O)){P();return}if(!B&&b(x,w)){P();return}let ee=!1;switch(f){case"top":{let W=M?uo/2:uo*4,$=M||j?n+W:n-W,Y=M?n-W:j?n+W:n-W,Z=i+uo+1,oe=j||M?N.bottom-uo:N.top,ne=j?M?N.bottom-uo:N.top:N.bottom-uo;ee=nO(x,w,$,Z,Y,Z,N.left,oe,N.right,ne);break}case"bottom":{let W=M?uo/2:uo*4,$=M||j?n+W:n-W,Y=M?n-W:j?n+W:n-W,Z=i-uo,oe=j||M?N.top+uo:N.bottom,ne=j?M?N.top+uo:N.bottom:N.top+uo;ee=nO(x,w,$,Z,Y,Z,N.left,oe,N.right,ne);break}case"left":{let W=V?uo/2:uo*4,$=V||D?i+W:i-W,Y=V?i-W:D?i+W:i-W,Z=n+uo+1,oe=D||V?N.right-uo:N.left,ne=D?V?N.right-uo:N.left:N.right-uo;ee=nO(x,w,oe,N.top,ne,N.bottom,Z,$,Z,Y);break}case"right":{let W=V?uo/2:uo*4,$=V||D?i+W:i-W,Y=V?i-W:D?i+W:i-W,Z=n-uo,oe=D||V?N.left+uo:N.right,ne=D?V?N.left+uo:N.right:N.left+uo;ee=nO(x,w,Z,$,Z,Y,oe,N.top,ne,N.bottom);break}default:}ee?p||o.start(40,P):P()}};return r.__options={...e,blockPointerEvents:t},r}var dH=(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})({}),H0=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),c6e={[H0.popupOpen]:""},u6e={[H0.popupOpen]:"",[H0.pressed]:""},d6e={[dH.open]:""},f6e={[dH.closed]:""},p6e={[dH.anchorHidden]:""},sO={open(e){return e?c6e:null}},one={open(e){return e?u6e:null}},Fa={open(e){return e?d6e:f6e},anchorHidden(e){return e?p6e:null}};var m6e="ArrowUp",h6e="ArrowDown",g6e="ArrowLeft",b6e="ArrowRight",y6e="Home",v6e="End";var S6e=new Set([g6e,b6e]);var k6e=new Set([m6e,h6e]);var _6e=new Set([...S6e,...k6e]),rne=new Set([..._6e,y6e,v6e]);function aO(e){return jv(19)?e:e?"true":void 0}var nne=c(ce(),1),ine=c(E(),1),sne=nne.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,ine.jsx)("div",{ref:o,role:"presentation","data-base-ui-inert":"",...n,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var G0=c(ce(),1);var U0=c(ce(),1);function ane(e){let t=U0.useRef(""),o=U0.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:U0.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 lne=c(ce(),1);function lO(e,t){let o=lne.useRef(e),r=me(t);le(()=>{o.current!==e&&r(o.current)},[e,r]),le(()=>{o.current=e},[e])}function x6e(e,t){let o=me((i,s)=>{(typeof e=="function"?e():e)||t(s||(co.os.ios?"touch":""))}),{onClick:r,onPointerDown:n}=ane(o);return G0.useMemo(()=>({onClick:r,onPointerDown:n}),[r,n])}function cne(e){let[t,o]=G0.useState(null),r=x6e(e,o);return lO(e,n=>{n&&!e&&o(null)}),G0.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var une=(e,t)=>Object.is(e,t);function iu(e,t,o){return e==null||t==null?Object.is(e,t):o(e,t)}function dne(e,t,o){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:iu(t,r,o))}function Xg(e,t,o){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:iu(r,t,o))}function fne(e,t,o){return e.filter(r=>!iu(t,r,o))}var pne=c(ce(),1);function cO(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var mne=c(E(),1);function hne(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function gne(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(hne(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 fH(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 cO(e)}function Rd(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?cO(e.value):cO(e)}function pH(e,t,o){function r(){return fH(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=hne(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 bne(e,t,o){return e.reduce((r,n,i)=>(i>0&&r.push(", "),r.push((0,mne.jsx)(pne.Fragment,{children:pH(n,t,o)},i)),r),[])}var uO=c(ce(),1);var mH=(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 Qg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},tS={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},yne={disabled:!1,...tS},fi={valid(e){return e===null?null:e?{[mH.valid]:""}:{[mH.invalid]:""}}};var w6e={invalid:void 0,name:void 0,validityData:{state:Qg,errors:[],error:"",value:"",initialValue:null},setValidityData:jt,disabled:void 0,touched:tS.touched,setTouched:jt,dirty:tS.dirty,setDirty:jt,filled:tS.filled,setFilled:jt,focused:tS.focused,setFocused:jt,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:yne,markedDirtyRef:{current:!1},registerFieldControl:jt,validation:{getValidationProps:(e,t=Qt)=>t,inputRef:{current:null},registerInput:jt,commit:async()=>{},change:jt}},hH=uO.createContext(w6e);function tn(e=!0){let t=uO.useContext(hH);if(t.setValidityData===jt&&!e)throw new Error(It(28));return t}var vne=c(ce(),1);function dO(e,t,o,r,n=!0,i){let{registerFieldControl:s}=tn(),a=vne.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 fO=c(ce(),1);var C6e=fO.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:jt,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function za(){return fO.useContext(C6e)}var W0=c(ce(),1);var pO=c(ce(),1);var gH=pO.createContext({controlId:void 0,registerControlId:jt,labelId:void 0,setLabelId:jt,messageIds:[],setMessageIds:jt,getDescriptionProps:e=>e});function En(){return pO.useContext(gH)}function oS(e={}){let{id:t,implicit:o=!1,controlRef:r}=e,{controlId:n,registerControlId:i}=En(),s=ii(t),a=o?n:void 0,l=lo(()=>Symbol("labelable-control")),u=W0.useRef(!1),d=W0.useRef(t!=null),f=me(()=>{!u.current||i===jt||(u.current=!1,i(l.current,void 0))});return le(()=>{if(i===jt)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]),W0.useEffect(()=>f,[f]),n??s}function Sne(e,t,o=(r,n)=>r===n){return e.length===t.length&&e.every((r,n)=>o(r,t[n]))}function kne(e){let t=e.getBoundingClientRect(),o=xt(e);if(co.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 _ne(e){return e==null?void 0:`${e}-label`}function xne(e,t){return e??t}var Ys=c(ce(),1);var E6e=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=zI(d),h={x:o,y:r},m=O0(n),g=I0(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 B=_/2-x/2,R=T/2-b[g]/2-1,I=Math.min(p[y],R),A=Math.min(p[k],R),P=I,O=T-b[g]-A,N=T/2-b[g]/2+B,j=P0(P,N,O),D=!l.arrow&&Jl(n)!=null&&N!==j&&i.reference[g]/2-(N<P?I:A)-b[g]/2<0,M=D?N<P?N-P:N-O:0;return{[m]:h[m]+M,data:{[m]:j,centerOffset:N-j-M,...D&&{alignmentOffset:M}},reset:D}}}),wne=(e,t)=>({...E6e(e),options:[e,t]});var T6e=$8().fn,Cne={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 T6e(e)).data?.referenceHidden||i}}}};var $0={sideX:"left",sideY:"top"},Ene={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:i,strategy:s,placement:a}=e,l=xt(n),u=l.getComputedStyle(n);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:o,data:$0};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=Ke(n);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let h=Gn(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":$0.sideX,v=h==="top"?"bottom":$0.sideY;return{x:m,y:g,data:{sideX:b,sideY:v}}}};function Bne(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 Tne(e,t,o){let{rects:r,placement:n}=e;return{side:Bne(t,Gn(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 mO(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",B=b.align||"flip",R=b.fallbackAxisSide||"end",I=typeof t=="function"?t:void 0,A=me(I),P=I?A:t,O=Kt(t),N=Kt(g),D=jp()==="rtl",M=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":D?"left":"right","inline-start":D?"right":"left"}[r],V=i==="center"?M:`${M}-${i}`,L=l,z=1,q=r==="bottom"?z:0,J=r==="top"?z:0,te=r==="right"?z:0,ee=r==="left"?z:0;typeof L=="number"?L={top:L+q,right:L+ee,bottom:L+J,left:L+te}:L&&(L={top:(L.top||0)+q,right:(L.right||0)+ee,bottom:(L.bottom||0)+J,left:(L.left||0)+te});let W={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:L},$=Ys.useRef(null),Y=Kt(n),Z=Kt(s),oe=typeof n!="function"?n:0,ne=typeof s!="function"?s:0,X=[];p&&X.push(p),X.push(j8(de=>{let Me=Tne(de,r,D),Ze=typeof Y.current=="function"?Y.current(Me):Y.current,ze=typeof Z.current=="function"?Z.current(Me):Z.current;return{mainAxis:Ze,crossAxis:ze,alignmentAxis:ze}},[oe,ne,D,r]));let re=B==="none"&&T!=="shift",ae=!re&&(u||v||T==="shift"),ve=T==="none"?null:G8({...W,padding:{top:L.top+z,right:L.right+z,bottom:L.bottom+z,left:L.left+z},mainAxis:!v&&T==="flip",crossAxis:B==="flip"?"alignment":!1,fallbackAxisSideDirection:R}),xe=re?null:H8(de=>{let Me=Ke(de.elements.floating).documentElement;return{...W,rootBoundary:v?{x:0,y:0,width:Me.clientWidth,height:Me.clientHeight}:void 0,mainAxis:B!=="none",crossAxis:ae,limiter:u||v?void 0:U8(Ze=>{if(!$.current)return{};let{width:ze,height:Je}=$.current.getBoundingClientRect(),lt=ds(Gn(Ze.placement)),ct=lt==="y"?ze:Je,br=lt==="y"?L.left+L.right:L.top+L.bottom;return{offset:ct/2+br/2}})}},[W,u,v,L,B]);T==="shift"||B==="shift"||i==="center"?X.push(xe,ve):X.push(ve,xe),X.push(W8({...W,apply({elements:{floating:de},availableWidth:Me,availableHeight:Ze,rects:ze}){if(!N.current)return;let Je=de.style;Je.setProperty("--available-width",`${Me}px`),Je.setProperty("--available-height",`${Ze}px`);let lt=xt(de).devicePixelRatio||1,{x:ct,y:br,width:Ao,height:or}=ze.reference,ho=(Math.round((ct+Ao)*lt)-Math.round(ct*lt))/lt,Go=(Math.round((br+or)*lt)-Math.round(br*lt))/lt;Je.setProperty("--anchor-width",`${ho}px`),Je.setProperty("--anchor-height",`${Go}px`)}}),wne(de=>({element:$.current||Ke(de.elements.floating).createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(de){let{elements:Me,middlewareData:Ze,placement:ze,rects:Je,y:lt}=de,ct=Gn(ze),br=ds(ct),Ao=$.current,or=Ze.arrow?.x||0,ho=Ze.arrow?.y||0,Go=Ao?.clientWidth||0,Vn=Ao?.clientHeight||0,yr=or+Go/2,an=ho+Vn/2,it=Math.abs(Ze.shift?.y||0),_t=Je.reference.height/2,Vt=typeof n=="function"?n(Tne(de,r,D)):n,ko=it>Vt,Wo={top:`${yr}px calc(100% + ${Vt}px)`,bottom:`${yr}px ${-Vt}px`,left:`calc(100% + ${Vt}px) ${an}px`,right:`${-Vt}px ${an}px`}[ct],rr=`${yr}px ${Je.reference.y+_t-lt}px`;return Me.floating.style.setProperty("--transform-origin",ae&&br==="y"&&ko?rr:Wo),{}}},Cne,k),le(()=>{!g&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,m]);let ge=Ys.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:be,elements:he,x:ke,y:_e,middlewareData:we,update:Re,placement:se,context:ie,isPositioned:Ae,floatingStyles:ye}=eH({rootContext:m,open:h?g:void 0,placement:V,middleware:X,strategy:o,whileElementsMounted:h?void 0:(...de)=>F0(...de,ge),nodeId:y,externalTree:_}),{sideX:Ee,sideY:qe}=we.adaptiveOrigin||$0,pt=Ae?o:"fixed",at=Ys.useMemo(()=>{let de=k?{position:pt,[Ee]:ke,[qe]:_e}:{position:pt,...ye};return Ae||(de.opacity=0),de},[k,pt,Ee,ke,qe,_e,ye,Ae]),Ct=Ys.useRef(null);le(()=>{if(!g)return;let de=O.current,Me=typeof de=="function"?de():de,ze=(Rne(Me)?Me.current:Me)||null||null;ze!==Ct.current&&(be.setPositionReference(ze),Ct.current=ze)},[g,be,P,O]),Ys.useEffect(()=>{if(!g)return;let de=O.current;typeof de!="function"&&Rne(de)&&de.current!==Ct.current&&(be.setPositionReference(de.current),Ct.current=de.current)},[g,be,P,O]),Ys.useEffect(()=>{if(h&&g&&he.reference&&he.floating)return F0(he.reference,he.floating,Re,ge)},[h,g,he,Re,ge]);let rt=Gn(se),Ot=Bne(r,rt,D),ut=Jl(se)||"center",Ut=!!we.hide?.referenceHidden;le(()=>{S&&g&&Ae&&w(rt)},[S,g,Ae,rt]);let So=Ys.useMemo(()=>({position:"absolute",top:we.arrow?.y,left:we.arrow?.x}),[we.arrow]),mo=we.arrow?.centerOffset!==0;return Ys.useMemo(()=>({positionerStyles:at,arrowStyles:So,arrowRef:$,arrowUncentered:mo,side:Ot,align:ut,physicalSide:rt,anchorHidden:Ut,refs:be,context:ie,isPositioned:Ae,update:Re}),[at,So,$,mo,Ot,ut,rt,Ut,be,ie,Ae,Re])}function Rne(e){return e!=null&&"current"in e}function rS(e){return e==="starting"?Moe:Qt}function hO(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},rS(r),n],stateAttributesMapping:Fa})}var Pne=c(ce(),1);var R6e=20;function Ine(e,t,o,r){let[n,i]=Pne.useState(!1);le(()=>{if(!e||!t||o==null){i(!1);return}let s=Ke(o).documentElement.clientWidth,a=o.offsetWidth;i(s>0&&a>0&&a>=s-R6e)},[e,t,o]),ioe(e&&(!t||n),r)}var One=c(ce(),1);var Ane=One.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 gO=c(ce(),1),bH=gO.createContext({disabled:!1});function bO(){return gO.useContext(bH)}var yO=c(ce(),1),B6e=yO.createContext(void 0);function Lne(e=!0){let t=yO.useContext(B6e);if(t===void 0&&!e)throw new Error(It(3));return t}var Qp={};Or(Qp,{Panel:()=>zne,Root:()=>Nne,Trigger:()=>Vne});var K0=c(ce(),1);var vO={...zte,...Cn};var Mne=c(E(),1),Nne=K0.forwardRef(function(t,o){let{render:r,className:n,defaultOpen:i=!1,disabled:s=!1,onOpenChange:a,open:l,style:u,...d}=t,f=me(a),p=Nte({open:l,defaultOpen:i,onOpenChange:f,disabled:s}),h=K0.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),m=K0.useMemo(()=>({...p,onOpenChange:f,state:h}),[p,f,h]),g=We("div",t,{state:h,ref:o,props:d,stateAttributesMapping:vO});return(0,Mne.jsx)(t8.Provider,{value:m,children:g})});var Dne=c(ce(),1);var P6e={...Fte,...Cn},Vne=Dne.forwardRef(function(t,o){let{panelId:r,open:n,handleTrigger:i,state:s,disabled:a}=wI(),{className:l,disabled:u=a,render:d,nativeButton:f=!0,style:p,...h}=t,{getButtonProps:m,buttonRef:g}=Vg({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:P6e})});var Fne=c(ce(),1);var yH=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});var zne=Fne.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}=wI(),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:B,transitionStatus:R,width:I}=Zte({externalRef:o,hiddenUntilFound:k,id:h,keepMounted:S,mounted:d,onOpenChange:f,open:p,setMounted:m,setOpen:b,transitionStatus:y}),A={...v,transitionStatus:R},P=bI(l,A),O=We("div",{...t,style:void 0},{state:A,ref:w,props:[x,{style:{[yH.collapsiblePanelHeight]:_===void 0?"auto":`${_}px`,[yH.collapsiblePanelWidth]:I===void 0?"auto":`${I}px`}},u,P?{style:P}:void 0,T?{style:{animationName:"none"}}:void 0],stateAttributesMapping:vO});return B?O:null});function jne(e,t){let o=ii(e);return le(()=>(t(o),()=>{t(void 0)}),[o,t]),o}function SO(e={}){let{id:t,fallbackControlId:o,native:r=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:a}=En(),l=me(h=>{a(h),n?.(h)}),u=jne(t,l),d=s??o;function f(h){if(i){i(h,d);return}if(!d)return;let m=Ke(h.currentTarget).getElementById(d);wt(m)&&I6e(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 I6e(e){e.focus({focusVisible:!0})}var kO=c(ce(),1),O6e=kO.createContext(void 0);function Hne(e){let t=kO.useContext(O6e);if(t===void 0&&!e)throw new Error(It(69));return t}var pi=c(ce(),1),Kne=c(xd(),1);var Une=c(ce(),1);function _O(e){let[t,o]=Une.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var nS=c(ce(),1);function vH(e){let t=Jr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=wt(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r;return(Kp(o)!==i||Kp(r)!==s)&&(o=i,r=s),{width:o,height:r}}function Wne(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:l}=e,u=Gp(t,!0,!1),d=Mi(),f=nS.useRef(null),p=nS.useRef(!0),h=nS.useRef(jt),m=me(i),g=me(s),b=nS.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=jt,p.current=!0,f.current=null;return}if(!t||!o)return;h.current=Gne(t,b),SH(t,"auto");let v=wO(t,"position","static"),y=wO(t,"transform","none"),k=wO(t,"scale","1"),S=Gne(o,{"--available-width":"max-content","--available-height":"max-content"});function _(){v(),y(),S()}function x(){_(),k()}if(m?.(),p.current||f.current===null){xO(o,"max-content");let R=vH(t);return f.current=R,xO(o,R),x(),g?.(null,R),p.current=!1,()=>{h.current(),h.current=jt}}xO(o,"max-content");let w=f.current,T=vH(t);f.current=T,SH(t,w),x(),g?.(w,T),xO(o,T);let B=new AbortController;return d.request(()=>{SH(t,T),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},B.signal)}),()=>{B.abort(),d.cancel(),h.current(),h.current=jt}},[r,t,o,u,d,n,m,g,b])}function wO(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function Gne(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(wO(e,r,n));return o.length?()=>{o.forEach(r=>r())}:jt}function SH(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 xO(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 iS=c(E(),1);function Yne(e){let{store:t,side:o,cssVars:r,children:n}=e,i=jp(),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=_O(l?s:null),m=M6e(a,u),g=pi.useRef(null),[b,v]=pi.useState(null),[y,k]=pi.useState(null),S=pi.useRef(null),_=pi.useRef(null),x=Gp(S,!0,!1),w=Mi(),[T,B]=pi.useState(null),[R,I]=pi.useState(!1);le(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let A=me(()=>{S.current?.style.setProperty("animation","none"),S.current?.style.setProperty("transition","none"),_.current?.style.setProperty("display","none")}),P=me(M=>{S.current?.style.removeProperty("animation"),S.current?.style.removeProperty("transition"),_.current?.style.removeProperty("display"),M&&B(M)}),O=pi.useRef(null);le(()=>{(!l||!d)&&(O.current=null)},[l,d]),le(()=>{if(s&&h&&s!==h&&O.current!==s&&g.current){v(g.current),I(!0);let M=L6e(h,s);k(M),w.request(()=>{Kne.flushSync(()=>{I(!1)}),x(()=>{v(null),B(null),g.current=null})}),O.current=s}},[s,h,b,x,w]),le(()=>{let M=S.current;if(!M)return;let V=Ke(M).createElement("div");for(let L of Array.from(M.childNodes))V.appendChild(L.cloneNode(!0));g.current=V});let N=b!=null,j;N?j=(0,iS.jsxs)(pi.Fragment,{children:[(0,iS.jsx)("div",{"data-previous":!0,inert:aO(!0),ref:_,style:{...T?{[r.popupWidth]:`${T.width}px`,[r.popupHeight]:`${T.height}px`}:null,position:"absolute"},"data-ending-style":R?void 0:""},"previous"),(0,iS.jsx)("div",{"data-current":!0,ref:S,"data-starting-style":R?"":void 0,children:n},m)]}):j=(0,iS.jsx)("div",{"data-current":!0,ref:S,children:n},m),le(()=>{let M=_.current;!M||!b||M.replaceChildren(...Array.from(b.childNodes))},[b]),Wne({popupElement:f,positionerElement:p,mounted:d,content:u,onMeasureLayout:A,onMeasureLayoutComplete:P,side:o,direction:i});let D={activationDirection:A6e(y),transitioning:N};return{children:j,state:D}}function A6e(e){if(e)return`${$ne(e.horizontal,5,"right","left")} ${$ne(e.vertical,5,"down","up")}`}function $ne(e,t,o,r){return e>t?o:e<-t?r:""}function L6e(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 M6e(e,t){let[o,r]=pi.useState(0),n=pi.useRef(e),i=pi.useRef(t),s=pi.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 CO=c(ce(),1),N6e=CO.createContext(void 0),D6e={disableStyleElements:!1};function Zne(){return CO.useContext(N6e)??D6e}function Jg(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}var ms={};Or(ms,{Control:()=>aie,Description:()=>sie,Error:()=>nie,Item:()=>uie,Label:()=>rie,Root:()=>oie,Validity:()=>cie});var Fr=c(ce(),1);var EO=c(ce(),1),V6e=EO.createContext(void 0);function Xne(e=!1){let t=EO.useContext(V6e);if(!t&&!e)throw new Error(It(86));return t}var Jp=c(ce(),1);var Qne=c(E(),1),TO=function(t){let o=ii(),r=t.controlId===void 0?o:t.controlId,[n,i]=Jp.useState(r),[s,a]=Jp.useState(t.labelId),[l,u]=Jp.useState([]),d=lo(()=>new Map),{messageIds:f}=En(),p=me((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=Jp.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=Jp.useMemo(()=>({controlId:n,registerControlId:p,labelId:s,setLabelId:a,messageIds:l,setMessageIds:u,getDescriptionProps:h}),[n,p,s,a,l,u,h]);return(0,Qne.jsx)(gH.Provider,{value:m,children:t.children})};var em=c(ce(),1);function eb(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var RO=Object.keys(Qg);function F6e(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let o of RO)o!=="valid"&&(o==="valueMissing"?t=e[o]:e[o]&&(t=!1));return t}function z6e(e){let t=null;for(let o of e)if(!o.disabled){if(!o.validity.valid)return o;t??=o}return t}function Jne(e,t){let o=!1;for(let r of t)r.setCustomValidity(""),o||=r===e;o||e.setCustomValidity("")}function eie(e){let{formRef:t}=za(),{setValidityData:o,validate:r,validityData:n,validationDebounceTime:i,invalid:s,markedDirtyRef:a,state:l,shouldValidateOnChange:u,getRegisteredFieldId:d}=e,{controlId:f,getDescriptionProps:p}=En(),h=xo(),m=em.useRef(null),g=lo(()=>new Set).current,b=em.useRef(0),v=em.useCallback(_=>{if(_)return g.add(_),()=>{g.delete(_)}},[g]),y=me(async(_,x=!1)=>{let w=z6e(g)??m.current;if(!w)return;b.current+=1;let T=b.current;function B(D,M=s){let V=d()??f;if(V==null)return;let L=t.current.fields.get(V);if(!L)return;let z=eb(D,M);t.current.fields.set(V,{...L,validityData:z})}if(x){if(l.valid!==!1)return;let D=w.validity;if(!D.valueMissing){let V={value:_,state:{...Qg,valid:!0},error:"",errors:[],initialValue:n.initialValue};Jne(w,g),B(V,!1),o(V);return}let M=RO.reduce((V,L)=>(V[L]=D[L],V),{});if(!M.valid&&!F6e(M))return}function R(D){let M=RO.reduce((L,z)=>(L[z]=D.validity[z],L),{}),V=!1;for(let L of RO)if(L!=="valid"){if(L==="valueMissing"&&M[L])V=!0;else if(M[L])return M}return V&&!a.current&&(M.valid=!0,M.valueMissing=!1),M}h.clear();let I=null,A=[],P=R(w),O,N=u();if(w.validationMessage&&!N)O=w.validationMessage,A=[w.validationMessage];else{let D=Array.from(t.current.fields.values()).reduce((V,L)=>(L.name&&(V[L.name]=L.getValue()),V),{}),M=r(_,D);if(typeof M=="object"&&M!==null&&"then"in M){if(I=await M,T!==b.current)return}else I=M;I!==null?(P.valid=!1,P.customError=!0,Array.isArray(I)?(A=I,w.setCustomValidity(I.join(`
`))):I&&(A=[I],w.setCustomValidity(I))):N&&(Jne(w,g),P.customError=!1,w.validationMessage?(O=w.validationMessage,A=[w.validationMessage]):w.validity.valid&&!P.valid&&(P.valid=!0))}let j={value:_,state:P,error:O??(Array.isArray(I)?I[0]:I??""),errors:A,initialValue:n.initialValue};B(j),o(j)}),k=me(_=>{h.clear();let x=u();x&&_!==""&&i?(b.current+=1,h.start(i,()=>{y(_)})):y(_,!x)}),S=em.useCallback((_,x={})=>Ht(p(x),l.valid===!1&&!l.disabled&&!_?{"aria-invalid":!0}:Qt),[p,l.disabled,l.valid]);return em.useMemo(()=>({getValidationProps:S,inputRef:m,registerInput:v,commit:y,change:k}),[S,v,y,k])}var BO=c(ce(),1);function tie(e){let{commit:t,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:i,setRegisteredFieldId:s,setValidityData:a,validityData:l}=e,{formRef:u}=za(),d=BO.useRef(null),f=BO.useRef(null),p=BO.useRef(null),h=me(()=>{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=me(()=>{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:eb(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:eb(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=me((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 PO=c(E(),1),j6e=Fr.forwardRef(function(t,o){let{errors:r,validationMode:n,submitAttemptedRef:i}=za(),{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=Xne(!0)?.disabled,S=me(l||(()=>null)),_=k||p,[x,w]=Fr.useState(!1),[T,B]=Fr.useState(!1),[R,I]=Fr.useState(!1),[A,P]=Fr.useState(!1),O=m??T,N=g??x,j=Fr.useRef(O),D=Fr.useRef(void 0),[M,V]=Fr.useState(),L=f??M;le(()=>{m!==void 0&&(j.current=m)},[m]);let z=Fr.useCallback(()=>D.current,[]),q=Fr.useCallback(be=>{D.current=be},[]),J=me(be=>{m===void 0&&(be&&(j.current=!0),B(be))}),te=me(be=>{g===void 0&&w(be)}),ee=me(()=>d==="onChange"||d==="onSubmit"&&i.current),W=L&&Object.hasOwn(r,L)?r[L]:null,$=!!(Array.isArray(W)?W.length:W),Y=h===!0||$,[Z,oe]=Fr.useState({state:Qg,error:"",errors:[],value:null,initialValue:null}),ne=_?null:!Y&&Z.state.valid,X=Fr.useMemo(()=>({disabled:_,touched:N,dirty:O,valid:ne,filled:R,focused:A}),[_,N,O,ne,R,A]),re=eie({setValidityData:oe,validate:S,validityData:Z,validationDebounceTime:u,invalid:Y,markedDirtyRef:j,state:X,shouldValidateOnChange:ee,getRegisteredFieldId:z}),[ae,ve]=tie({commit:re.commit,invalid:Y,markedDirtyRef:j,name:f,setRegisteredFieldName:V,setRegisteredFieldId:q,setValidityData:oe,validityData:Z});Fr.useImperativeHandle(b,()=>({validate:ae}),[ae]);let xe=Fr.useMemo(()=>({invalid:Y,name:L,validityData:Z,setValidityData:oe,disabled:_,touched:N,setTouched:te,dirty:O,setDirty:J,filled:R,setFilled:I,focused:A,setFocused:P,validate:S,validationMode:d,validationDebounceTime:u,shouldValidateOnChange:ee,state:X,markedDirtyRef:j,registerFieldControl:ve,validation:re}),[Y,L,Z,_,N,te,O,J,R,I,A,P,S,d,u,ee,X,ve,re]),ge=We("div",t,{ref:o,state:X,props:y,stateAttributesMapping:fi});return(0,PO.jsx)(hH.Provider,{value:xe,children:ge})}),oie=Fr.forwardRef(function(t,o){return(0,PO.jsx)(TO,{children:(0,PO.jsx)(j6e,{...t,ref:o})})});var Y0=c(ce(),1);var rie=Y0.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,nativeLabel:a=!0,...l}=t,u=tn(!1),d=bO(),{labelId:f}=En(),p={...u.state,disabled:u.disabled||d.disabled},h=Y0.useRef(null),m=SO({id:f??s,native:a});return We("label",t,{ref:[o,h],state:p,props:[m,l],stateAttributesMapping:fi})});var tb=c(ce(),1);var kH=c(E(),1),H6e={...fi,...Cn},nie=tb.forwardRef(function(t,o){let{render:r,id:n,className:i,match:s,style:a,...l}=t,u=ii(n),{validityData:d,state:f,name:p}=tn(!1),{setMessageIds:h}=En(),{errors:m}=za(),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:_}=us(y);le(()=>{if(!(!y||!u))return h(j=>j.concat(u)),()=>{h(j=>j.filter(D=>D!==u))}},[y,u,h]);let x=tb.useRef(null),[w,T]=tb.useState(null),[B,R]=tb.useState(null),I=d.error;!v&&b?I=g:d.errors.length>1&&(I=d.errors);let A=I??"";Array.isArray(I)&&(A=I.length>1?(0,kH.jsx)("ul",{children:I.map(j=>(0,kH.jsx)("li",{children:j},j))}):I[0]??"");let P=Array.isArray(I)?JSON.stringify(I):I;y&&P!==B&&(R(P),T(A)),si({open:y,ref:x,onComplete(){y||_(!1)}});let O={...f,transitionStatus:S},N=We("div",t,{ref:[o,x],state:O,props:[{id:u,children:y?A:w},l],stateAttributesMapping:H6e,enabled:k});return k?N:null});var iie=c(ce(),1);var sie=iie.forwardRef(function(t,o){let{render:r,id:n,className:i,style:s,...a}=t,l=ii(n),u=tn(!1),d=bO(),{setMessageIds:f}=En(),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:fi})});var IO=c(ce(),1);var aie=IO.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}=tn(),{clearErrors:T}=za(),B=b||l,R=g??s,I={...m,disabled:B},{labelId:A}=En(),P=oS({id:i});le(()=>{let L=a!=null;w.inputRef.current?.value||L&&a!==""?_(!0):L&&a===""&&_(!1)},[w.inputRef,_,a]);let O=IO.useRef(null);le(()=>{f&&O.current===Vr(Ke(O.current))&&S(!0)},[f,S]);let[N]=Lg({controlled:a,default:d,name:"FieldControl",state:"value"}),j=a!==void 0,D=j?N:void 0,M=me(()=>w.inputRef.current?.value);return dO(w.inputRef,P,D,M,!B,s),We("input",t,{ref:[o,O],state:I,props:[{id:P,disabled:B,name:R,ref:w.inputRef,"aria-labelledby":A,autoFocus:f,...j?{value:D}:{defaultValue:d},onChange(L){let z=L.currentTarget.value;u?.(z,Ue(Te.none,L.nativeEvent)),y(z!==k.initialValue),_(z!==""),L.nativeEvent.defaultPrevented||(T(R),w.change(z))},onFocus(){S(!0)},onBlur(L){v(!0),S(!1),x==="onBlur"&&w.commit(L.currentTarget.value)},onKeyDown(L){L.currentTarget.tagName==="INPUT"&&L.key==="Enter"&&(v(!0),w.commit(L.currentTarget.value))}},h,L=>w.getValidationProps(B,L)],stateAttributesMapping:fi})});var q0=c(ce(),1);var lie=c(E(),1),cie=function(t){let{children:o}=t,{validityData:r,invalid:n}=tn(!1),i=q0.useMemo(()=>eb(r,n),[r,n]),s=i.state.valid===!1,{transitionStatus:a}=us(s),l=q0.useMemo(()=>({...i,validity:i.state,transitionStatus:a}),[i,a]);return(0,lie.jsx)(q0.Fragment,{children:o(l)})};var OO=c(ce(),1);var _H=c(E(),1),uie=OO.forwardRef(function(t,o){let{render:r,className:n,style:i,disabled:s=!1,...a}=t,{state:l,disabled:u}=tn(!1),d=u||s,f={...l,disabled:d},p=Lne(),m=p?.allValues!==void 0?p?.parent.id:void 0,g=OO.useMemo(()=>({disabled:d}),[d]),b=We("div",t,{ref:o,state:f,props:a,stateAttributesMapping:fi});return(0,_H.jsx)(TO,{controlId:m,children:(0,_H.jsx)(bH.Provider,{value:g,children:b})})});var AO=c(ce(),1),die=c(xd(),1);var fie=c(E(),1),pie=AO.forwardRef(function(t,o){let{children:r,container:n,className:i,render:s,style:a,...l}=t,{portalNode:u,portalSubtree:d}=$I({container:n,ref:o,componentProps:t,elementProps:l});return!d&&!u?null:(0,fie.jsxs)(AO.Fragment,{children:[d,u&&die.createPortal(r,u)]})});var mie=c(E(),1),LO="base-ui-disable-scrollbar",Z0={className:LO,getElement(e){return(0,mie.jsx)("style",{nonce:e,href:LO,precedence:"base-ui:low",children:`.${LO}{scrollbar-width:none}.${LO}::-webkit-scrollbar{display:none}`})}};var qs=1;function sS(e,t){return Math.max(0,e-t)}function aS(e,t){if(t<=0)return 0;let o=Jg(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 $n={};Or($n,{Arrow:()=>jie,Backdrop:()=>Tie,Group:()=>Xie,GroupLabel:()=>Jie,Icon:()=>_ie,Item:()=>Nie,ItemIndicator:()=>Vie,ItemText:()=>Fie,Label:()=>bie,List:()=>Lie,Popup:()=>Oie,Portal:()=>Cie,Positioner:()=>Rie,Root:()=>hie,ScrollDownArrow:()=>Wie,ScrollUpArrow:()=>Yie,Separator:()=>Ane,Trigger:()=>yie,Value:()=>Sie});var lr=c(ce(),1);var lS=c(ce(),1),xH=lS.createContext(null),wH=lS.createContext(null);function Co(){let e=lS.useContext(xH);if(e===null)throw new Error(It(60));return e}function MO(){let e=lS.useContext(wH);if(e===null)throw new Error(It(61));return e}var Ie={id:Ve(e=>e.id),labelId:Ve(e=>e.labelId),modal:Ve(e=>e.modal),multiple:Ve(e=>e.multiple),items:Ve(e=>e.items),itemToStringLabel:Ve(e=>e.itemToStringLabel),itemToStringValue:Ve(e=>e.itemToStringValue),isItemEqualToValue:Ve(e=>e.isItemEqualToValue),value:Ve(e=>e.value),hasSelectedValue:Ve(e=>{let{value:t,multiple:o,itemToStringValue:r}=e;return t==null?!1:o&&Array.isArray(t)?t.length>0:Rd(t,r)!==""}),hasNullItemLabel:Ve((e,t)=>t?gne(e.items):!1),open:Ve(e=>e.open),mounted:Ve(e=>e.mounted),forceMount:Ve(e=>e.forceMount),transitionStatus:Ve(e=>e.transitionStatus),openMethod:Ve(e=>e.openMethod),activeIndex:Ve(e=>e.activeIndex),selectedIndex:Ve(e=>e.selectedIndex),isActive:Ve((e,t)=>e.activeIndex===t),isSelected:Ve((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:Ve((e,t)=>e.selectedIndex===t),popupProps:Ve(e=>e.popupProps),triggerProps:Ve(e=>e.triggerProps),triggerElement:Ve(e=>e.triggerElement),positionerElement:Ve(e=>e.positionerElement),listElement:Ve(e=>e.listElement),popupSide:Ve(e=>e.popupSide),scrollUpArrowVisible:Ve(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:Ve(e=>e.scrollDownArrowVisible),hasScrollArrows:Ve(e=>e.hasScrollArrows)};var cS=c(E(),1);function hie(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=une,highlightItemOnHover:w=!0,children:T}=e,{clearErrors:B}=za(),{setDirty:R,setTouched:I,setFocused:A,validityData:P,setFilled:O,name:N,disabled:j,validation:D,validationMode:M}=tn(),V=oS({id:t}),L=j||f,z=N??l,[q,J]=Lg({controlled:o,default:k?r??h0:r,name:"Select",state:"value"}),[te,ee]=Lg({controlled:i,default:s,name:"Select",state:"open"}),W=lr.useRef([]),$=lr.useRef([]),Y=lr.useRef(null),Z=lr.useRef(null),oe=lr.useRef(0),ne=lr.useRef(null),X=lr.useRef([]),re=lr.useRef(!1),ae=lr.useRef(null),ve=lr.useRef(null),xe=lr.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ge=lr.useRef(!1),{mounted:be,setMounted:he,transitionStatus:ke}=us(te),{openMethod:_e,triggerProps:we}=cne(te),Re=lo(()=>new Zv({id:V,labelId:void 0,modal:m,multiple:k,itemToStringLabel:S,itemToStringValue:_,isItemEqualToValue:x,value:q,open:te,mounted:be,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),ie=Pe(Re,Ie.selectedIndex),Ae=Pe(Re,Ie.triggerElement),ye=Pe(Re,Ie.positionerElement),Ee=_O(_e),qe=_e??Ee??null,pt=lr.useMemo(()=>k?"":Rd(q,_),[k,q,_]),at=lr.useMemo(()=>k&&Array.isArray(q)?q.map(it=>Rd(it,_)):Rd(q,_),[k,q,_]),Ct=Kt(Re.state.triggerElement),rt=me(()=>at);dO(Ct,V,q,rt,!L,l);let Ot=lr.useRef(q),ut=k?Array.isArray(q)&&q.length>0:q!=null&&Rd(q,_)!=="";le(()=>{q!==Ot.current&&Re.set("forceMount",!0)},[Re,q]),le(()=>{O(ut)},[ut,O]),le(function(){let _t=X.current,Vt;if(k){let ko=Array.isArray(q)?q:[];if(ko.length===0)Vt=null;else{let Wo=ko[ko.length-1],rr=Xg(_t,Wo,x);Vt=rr===-1?null:rr}}else{let ko=Xg(_t,q,x);Vt=ko===-1?null:ko}Vt===null&&(ve.current=null),!te&&Re.set("selectedIndex",Vt)},[ut,k,te,q,X,x,Re,ve]);function Ut(it){let _t=P.initialValue;return Array.isArray(it)&&Array.isArray(_t)?!Sne(it,_t,(Vt,ko)=>iu(Vt,ko,x)):it!==_t}lO(q,()=>{B(z),R(Ut(q)),D.change(q)});let So=me((it,_t)=>{a?.(it,_t),!_t.isCanceled&&(ee(it),!it&&(_t.reason===Te.focusOut||_t.reason===Te.outsidePress)&&(I(!0),A(!1),M==="onBlur"&&D.commit(q)))}),mo=me(()=>{he(!1),Re.update({activeIndex:null,openMethod:null}),v?.(!1)});si({enabled:!g,open:te,ref:Y,onComplete(){te||mo()}}),lr.useImperativeHandle(g,()=>({unmount:mo}),[mo]);let de=me((it,_t)=>{n?.(it,_t),!_t.isCanceled&&J(it)}),Me=me(()=>{let it=Re.state.listElement||Y.current;if(!it)return;let _t=sS(it.scrollHeight,it.clientHeight),Vt=aS(it.scrollTop,_t),ko=Vt>0,Wo=Vt<_t;Re.state.scrollUpArrowVisible!==ko&&Re.set("scrollUpArrowVisible",ko),Re.state.scrollDownArrowVisible!==Wo&&Re.set("scrollDownArrowVisible",Wo)}),Ze=j0({open:te,onOpenChange:So,elements:{reference:Ae,floating:ye}}),ze=N8(Ze,{enabled:!p&&!L,event:"mousedown"}),Je=D0(Ze),lt=lH(Ze,{enabled:!p&&!L,listRef:W,activeIndex:se,selectedIndex:ie,disabledIndices:h0,onNavigate(it){it===null&&!te||Re.set("activeIndex",it)},focusItemOnHover:w}),ct=cH(Ze,{enabled:!p&&!L&&(te||!k),listRef:$,activeIndex:se,selectedIndex:ie,disabledIndices:it=>qne(W.current[it]),onMatch(it){te?Re.set("activeIndex",it):de(X.current[it],Ue("none"))},onTyping(it){re.current=it}}),br=lr.useMemo(()=>{let it=Ht(ct.reference,lt.reference,Je.reference,ze.reference,we);return V&&(it.id=V),it},[ze.reference,ct.reference,lt.reference,Je.reference,we,V]),Ao=lr.useMemo(()=>Ht(QI,ct.floating,lt.floating,Je.floating),[ct.floating,lt.floating,Je.floating]),or=lt.item??Qt;II(()=>{Re.update({popupProps:Ao,triggerProps:br})}),le(()=>{Re.update({id:V,modal:m,multiple:k,value:q,open:te,mounted:be,transitionStatus:ke,popupProps:Ao,triggerProps:br,items:y,itemToStringLabel:S,itemToStringValue:_,isItemEqualToValue:x,openMethod:qe})},[Re,V,m,k,q,te,be,ke,Ao,br,y,S,_,x,qe]);let ho=lr.useMemo(()=>({store:Re,name:z,required:h,disabled:L,readOnly:p,multiple:k,highlightItemOnHover:w,setValue:de,setOpen:So,listRef:W,popupRef:Y,scrollHandlerRef:Z,handleScrollArrowVisibility:Me,scrollArrowsMountedCountRef:oe,itemProps:or,valueRef:ne,valuesRef:X,labelsRef:$,typingRef:re,selectionRef:xe,firstItemTextRef:ae,selectedItemTextRef:ve,validation:D,onOpenChangeComplete:v,alignItemWithTriggerActiveRef:ge,initialValueRef:Ot}),[Re,z,h,L,p,k,w,de,So,or,D,v,Me]),Go=Jc(b,D.inputRef),Vn=k&&Array.isArray(q)&&q.length>0,yr=k?void 0:z,an=lr.useMemo(()=>!k||!Array.isArray(q)||!z?null:q.map(it=>{let _t=Rd(it,_);return(0,cS.jsx)("input",{type:"hidden",form:u,name:z,value:_t,disabled:L},_t)}),[k,q,u,z,_,L]);return(0,cS.jsx)(xH.Provider,{value:ho,children:(0,cS.jsxs)(wH.Provider,{value:Ze,children:[T,(0,cS.jsx)("input",{...D.getValidationProps(L,{onFocus(){Re.state.triggerElement?.focus({focusVisible:!0})},onChange(it){if(it.nativeEvent.defaultPrevented||L||p)return;let _t=it.currentTarget.value,Vt=Ue(Te.none,it.nativeEvent);function ko(){if(k)return;let Wo=_t.toLowerCase(),rr=X.current.findIndex(ka=>Rd(ka,_).toLowerCase()===Wo||fH(ka,S).toLowerCase()===Wo);rr===-1&&(rr=X.current.findIndex((ka,Ol)=>{let Be=$.current[Ol];return Be!=null&&Be.toLowerCase()===Wo}));let Sa=rr===-1?void 0:X.current[rr];Sa!=null&&de(Sa,Vt)}Re.set("forceMount",!0),queueMicrotask(ko)}}),id:V&&yr==null?`${V}-hidden-input`:void 0,form:u,name:yr,autoComplete:d,value:pt,disabled:L,required:h&&!Vn,readOnly:p,ref:Go,style:z?moe:NI,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),an]})})}var gie=c(ce(),1);var bie=gie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=s;delete a.id;let l=tn(),{store:u}=Co(),d=Pe(u,Ie.triggerElement),f=Pe(u,Ie.id),p=_ne(f),h=SO({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:fi})});var uS=c(ce(),1);var NO=2,U6e=400,G6e={...one,...fi,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},yie=uS.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}=tn(),{labelId:g}=En(),{store:b,setOpen:v,selectionRef:y,validation:k,readOnly:S,required:_,alignItemWithTriggerActiveRef:x,disabled:w}=Co(),T=m||w||s,B=Pe(b,Ie.open),R=Pe(b,Ie.mounted),I=Pe(b,Ie.value),A=Pe(b,Ie.triggerProps),P=Pe(b,Ie.positionerElement),O=Pe(b,Ie.listElement),N=Pe(b,Ie.popupSide),j=Pe(b,Ie.id),D=Pe(b,Ie.labelId),M=Pe(b,Ie.hasSelectedValue),V=R&&P?N:null,L=i??j,z=xne(g,D);oS({id:L});let q=Kt(P),J=uS.useRef(null),{getButtonProps:te,buttonRef:ee}=Vg({disabled:T,native:a}),W=me(re=>{b.set("triggerElement",re)}),$=xo(),Y=xo(),Z=xo();uS.useEffect(()=>{if(B)return Z.start(U6e,()=>{y.current.allowUnselectedMouseUp=!0,y.current.allowSelectedMouseUp=!0}),()=>{Z.clear()};y.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},Y.clear()},[B,y,Y,Z]);let oe=Ht(A,{id:L,role:"combobox","aria-expanded":B?"true":"false","aria-haspopup":"listbox","aria-controls":B?O?.id??Hg(P)?.id:void 0,"aria-labelledby":z,"aria-readonly":S||void 0,"aria-required":_||void 0,tabIndex:T?-1:0,onFocus(re){f(!0),B&&x.current&&v(!1,Ue(Te.none,re.nativeEvent)),$.start(0,()=>{b.set("forceMount",!0)})},onBlur(re){je(P,re.relatedTarget)||(d(!0),f(!1),p==="onBlur"&&k.commit(I))},onMouseDown(re){if(B)return;let ae=Ke(re.currentTarget);function ve(xe){if(!J.current)return;let ge=xe.target;if(je(J.current,ge)||je(q.current,ge))return;let be=kne(J.current);xe.clientX>=be.left-NO&&xe.clientX<=be.right+NO&&xe.clientY>=be.top-NO&&xe.clientY<=be.bottom+NO||v(!1,Ue(Te.cancelOpen,xe))}Y.start(0,()=>{ae.addEventListener("mouseup",ve,{once:!0})})}},u,te),ne=k.getValidationProps(T,oe);ne.role="combobox";let X={...h,open:B,disabled:T,value:I,readOnly:S,popupSide:V,placeholder:!M};return We("button",t,{ref:[o,J,ee,W],state:X,stateAttributesMapping:G6e,props:ne})});var vie=c(ce(),1);var W6e={value:()=>null},Sie=vie.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=bne(f,p,h):y=pH(f,p,h),We("span",t,{state:v,ref:[o,d],props:[{children:y},l],stateAttributesMapping:W6e})});var kie=c(ce(),1);var _ie=kie.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:sO})});var wie=c(ce(),1);var CH=c(ce(),1),xie=CH.createContext(void 0);var EH=c(E(),1),Cie=wie.forwardRef(function(t,o){let{store:r}=Co(),n=Pe(r,Ie.mounted),i=Pe(r,Ie.forceMount);return n||i?(0,EH.jsx)(xie.Provider,{value:!0,children:(0,EH.jsx)(A8,{ref:o,...t})}):null});var Eie=c(ce(),1);var $6e={...Fa,...Cn},Tie=Eie.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:$6e})});var ja=c(ce(),1);var DO=c(ce(),1),TH=DO.createContext(void 0);function tm(){let e=DO.useContext(TH);if(!e)throw new Error(It(59));return e}function dS(e,t){e&&Object.assign(e.style,t)}var VO={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var X0=c(E(),1),K6e={position:"fixed"},Rie=ja.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=Doe,style:y,...k}=t,{store:S,listRef:_,labelsRef:x,alignItemWithTriggerActiveRef:w,selectedItemTextRef:T,valuesRef:B,initialValueRef:R,popupRef:I,setValue:A}=Co(),P=MO(),O=Pe(S,Ie.open),N=Pe(S,Ie.mounted),j=Pe(S,Ie.modal),D=Pe(S,Ie.value),M=Pe(S,Ie.openMethod),V=Pe(S,Ie.positionerElement),L=Pe(S,Ie.triggerElement),z=Pe(S,Ie.isItemEqualToValue),q=Pe(S,Ie.transitionStatus),J=ja.useRef(null),te=ja.useRef(null),[ee,W]=ja.useState(b),$=N&&ee&&M!=="touch";!N&&ee!==b&&W(b),le(()=>{N||(Ie.scrollUpArrowVisible(S.state)&&S.set("scrollUpArrowVisible",!1),Ie.scrollDownArrowVisible(S.state)&&S.set("scrollDownArrowVisible",!1))},[S,N]),ja.useImperativeHandle(w,()=>$),Ine(($||j)&&O,M==="touch",V,L);let Y=mO({anchor:r,floatingRootContext:P,positionMethod:n,mounted:N,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:m,disableAnchorTracking:g??$,collisionAvoidance:v,keepMounted:!0}),Z=$?"none":Y.side,oe=$?K6e:Y.positionerStyles,ne={open:O,side:Z,align:Y.align,anchorHidden:Y.anchorHidden};le(()=>{S.set("popupSide",Y.side)},[S,Y.side]);let X=me(ge=>{S.set("positionerElement",ge)}),re=hO(t,ne,{styles:oe,transitionStatus:q,props:k,refs:[o,X],hidden:!N,inert:!O}),ae=ja.useRef(0),ve=me(ge=>{if(ge.size===0&&ae.current===0||B.current.length===0)return;let be=ae.current;if(ae.current=ge.size,ge.size===be)return;let he=Ue(Te.none);if(be!==0&&!S.state.multiple&&D!==null&&Xg(B.current,D,z)===-1){let _e=R.current,Re=_e!=null&&Xg(B.current,_e,z)!==-1?_e:null;A(Re,he),Re===null&&(S.set("selectedIndex",null),T.current=null)}if(be!==0&&S.state.multiple&&Array.isArray(D)){let ke=we=>Xg(B.current,we,z)!==-1,_e=D.filter(we=>ke(we));(_e.length!==D.length||_e.some(we=>!dne(D,we,z)))&&(A(_e,he),_e.length===0&&(S.set("selectedIndex",null),T.current=null))}if(O&&$){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ke={height:""};dS(V,ke),dS(I.current,ke)}}),xe=ja.useMemo(()=>({...Y,side:Z,alignItemWithTriggerActive:$,setControlledAlignItemWithTrigger:W,scrollUpArrowRef:J,scrollDownArrowRef:te}),[Y,Z,$,W]);return(0,X0.jsx)(Ste,{elementsRef:_,labelsRef:x,onMapChange:ve,children:(0,X0.jsxs)(TH.Provider,{value:xe,children:[N&&j&&(0,X0.jsx)(sne,{inert:aO(!O),cutout:L}),re]})})});var Ha=c(ce(),1);var jO=c(E(),1),Y6e={...Fa,...Cn},Oie=Ha.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}=tm(),B=Hne(!0)!=null,R=MO(),I=jp(),{nonce:A,disableStyleElements:P}=Zne(),O=Pe(l,Ie.id),N=Pe(l,Ie.open),j=Pe(l,Ie.openMethod),D=Pe(l,Ie.mounted),M=Pe(l,Ie.popupProps),V=Pe(l,Ie.transitionStatus),L=Pe(l,Ie.triggerElement),z=Pe(l,Ie.positionerElement),q=Pe(l,Ie.listElement),J=Ha.useRef(!1),te=Ha.useRef(!1),ee=Ha.useRef({}),W=Mi(),$=me(ne=>{if(!z||!u.current||!te.current)return;if(J.current||!x){b();return}let X=z.style.top==="0px",re=z.style.bottom==="0px";if(!X&&!re){b();return}let ae=Pie(z),ve=Q0(z.getBoundingClientRect().height,"y",ae),xe=Ke(z),ge=xt(z),be=ge.getComputedStyle(z),he=parseFloat(be.marginTop),ke=parseFloat(be.marginBottom),_e=Bie(ge.getComputedStyle(u.current)),we=Math.min(xe.documentElement.clientHeight-he-ke,_e),Re=ne.scrollTop,se=FO(ne),ie=0,Ae=null,ye=!1,Ee=!1,qe=rt=>{z.style.height=`${rt}px`},pt=(rt,Ot)=>{let ut=Jg(rt,0,we-ve);ut>0&&qe(ve+ut),ne.scrollTop=Ot,we-(ve+ut)<=qs&&(J.current=!0),b()},at=X?se-Re:Re,Ct=Math.min(ve+at,we);if(ie=Ct,at<=qs){pt(at,X?se:0);return}if(we-Ct>qs)X?Ee=!0:Ae=0;else if(ye=!0,re&&Re<se){let rt=ve+at-we;Ae=Re-(at-rt)}if(ie=Math.ceil(ie),ie!==0&&qe(ie),Ee||Ae!=null){let rt=FO(ne),Ot=Ee?rt:Jg(Ae,0,rt);Math.abs(ne.scrollTop-Ot)>qs&&(ne.scrollTop=Ot)}(ye||ie>=we-qs)&&(J.current=!0),b()});Ha.useImperativeHandle(v,()=>$,[$]),si({open:N,ref:u,onComplete(){N&&d?.(!0)}});let Y={open:N,transitionStatus:V,side:S,align:_};le(()=>{!z||!u.current||Object.keys(ee.current).length||(ee.current={top:z.style.top||"0",left:z.style.left||"0",right:z.style.right,height:z.style.height,bottom:z.style.bottom,minHeight:z.style.minHeight,maxHeight:z.style.maxHeight,marginTop:z.style.marginTop,marginBottom:z.style.marginBottom})},[u,z]),le(()=>{N||x||(te.current=!1,J.current=!1,dS(z,ee.current))},[N,x,z,u]),le(()=>{let ne=u.current;if(!N||!L||!z||!ne||x&&!w||l.state.transitionStatus==="ending")return;if(!x){te.current=!0,W.request(b),ne.style.removeProperty("--transform-origin");return}let X=q6e(ne);ne.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,ve=xt(z),xe=ve.getComputedStyle(z),ge=ve.getComputedStyle(ne),be=Ke(L),he=Pie(L),ke=zO(L.getBoundingClientRect(),he),_e=zO(z.getBoundingClientRect(),he),we=ke.height,Re=q||ne,se=Re.scrollHeight,ie=parseFloat(ge.borderBottomWidth),Ae=parseFloat(xe.marginTop)||10,ye=parseFloat(xe.marginBottom)||10,Ee=parseFloat(xe.minHeight)||100,qe=Bie(ge),pt=5,at=5,Ct=20,rt=be.documentElement.clientHeight-Ae-ye,Ot=be.documentElement.clientWidth,ut=rt-ke.bottom+we,Ut,So=I==="rtl"?ke.right-_e.width:ke.left,mo=0;if(re&&ae){let ho=zO(ae.getBoundingClientRect(),he);Ut=zO(re.getBoundingClientRect(),he),So=_e.left+(I==="rtl"?ho.right-Ut.right:ho.left-Ut.left);let Go=ho.top-ke.top+ho.height/2;mo=Ut.top-_e.top+Ut.height/2-Go}let de=ut+mo+ye+ie,Me=Math.min(rt,de),Ze=rt-Ae-ye,ze=de-Me,Je=Ot-at;z.style.left=`${Jg(So,pt,Je-_e.width)}px`,z.style.height=`${Me}px`,z.style.maxHeight="none",z.style.marginTop=`${Ae}px`,z.style.marginBottom=`${ye}px`,ne.style.height="100%";let lt=FO(Re),ct=ze>=lt-qs;ct&&(Me=Math.min(rt,_e.height)-(ze-lt));let br=ke.top<Ct||ke.bottom>rt-Ct||Math.ceil(Me)+qs<Math.min(se,Ee),Ao=(ve.visualViewport?.scale??1)!==1&&co.engine.webkit;if(br||Ao){te.current=!0,dS(z,ee.current),T(!1);return}let or=Math.max(Ee,Me);if(ct){let ho=Math.max(0,rt-de);z.style.top=_e.height>=Ze?"0":`${ho}px`,z.style.height=`${Me}px`,Re.scrollTop=FO(Re)}else z.style.bottom="0",Re.scrollTop=ze;if(Ut){let ho=_e.top,Go=_e.height,Vn=Ut.top+Ut.height/2,yr=Go>0?(Vn-ho)/Go*100:50,an=Jg(yr,0,100);ne.style.setProperty("--transform-origin",`50% ${an}%`)}(or===rt||Me>=qe)&&(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{X()}},[l,N,z,L,p,h,m,u,b,x,T,W,q,y,k,I,w]),Ha.useEffect(()=>{if(!x||!z||!N)return;let ne=xt(z);function X(re){f(!1,Ue(Te.windowResize,re))}return tt(ne,"resize",X)},[f,x,z,N]);let Z={...q?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${O}-list`},onKeyDown(ne){B&&rne.has(ne.key)&&ne.stopPropagation()},onScroll(ne){q||$(ne.currentTarget)},...x&&{style:q?{height:"100%"}:VO}},oe=We("div",t,{ref:[o,u],state:Y,stateAttributesMapping:Y6e,props:[M,Z,rS(V),{className:!q&&x?Z0.className:void 0},a]});return(0,jO.jsxs)(Ha.Fragment,{children:[!P&&Z0.getElement(A),(0,jO.jsx)(M8,{context:R,modal:!1,disabled:!D,openInteractionType:j,returnFocus:s,restoreFocus:!0,children:oe})]})});function Bie(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function FO(e){return sS(e.scrollHeight,e.clientHeight)}function Pie(e){return V0.getScale(e)}function Q0(e,t,o){return e/o[t]}function zO(e,t){return Ed({x:Q0(e.x,"x",t),y:Q0(e.y,"y",t),width:Q0(e.width,"x",t),height:Q0(e.height,"y",t)})}var Iie=[["transform","none"],["scale","1"],["translate","0 0"]];function q6e(e){let{style:t}=e,o={};for(let[r,n]of Iie)o[r]=t.getPropertyValue(r),t.setProperty(r,n,"important");return()=>{for(let[r]of Iie){let n=o[r];n?t.setProperty(r,n):t.removeProperty(r)}}}var Aie=c(ce(),1);var Lie=Aie.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a,scrollHandlerRef:l}=Co(),{alignItemWithTriggerActive:u}=tm(),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:VO},className:d&&f!=="touch"?Z0.className:void 0},g=me(b=>{a.set("listElement",b)});return We("div",t,{ref:[o,g],props:[m,s]})});var Ua=c(ce(),1);var HO=c(ce(),1),RH=HO.createContext(void 0);function J0(){let e=HO.useContext(RH);if(!e)throw new Error(It(57));return e}var Mie=c(E(),1),Nie=Ua.memo(Ua.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=Ua.useRef(null),p=Dte({label:a,textRef:f,indexGuessBehavior:o8.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),B=Pe(h,Ie.open),R=Pe(h,Ie.isSelected,s),I=Pe(h,Ie.isSelectedByFocus,p.index),A=Pe(h,Ie.isItemEqualToValue),P=p.index,O=P!==-1,N=Ua.useRef(null);le(()=>{if(!O)return;let $=k.current;return $[P]=s,()=>{delete $[P]}},[O,P,s,k]),le(()=>{if(!O)return;let $=h.state.value,Y=$;S&&Array.isArray($)&&(Y=$.length>0?$[$.length-1]:void 0),Y!==void 0&&iu(s,Y,A)&&(h.set("selectedIndex",P),f.current&&(_.current=f.current))},[O,P,S,A,h,s,_]);let j=Ua.useRef(null),D=Ua.useRef("mouse"),M=Ua.useRef(!1),{getButtonProps:V,buttonRef:L}=Vg({disabled:l,focusableWhenDisabled:!0,native:u,composite:!0}),z={disabled:l,selected:R,highlighted:T};function q($){if(x||w)return;let Y=h.state.value;if(S){let Z=Array.isArray(Y)?Y:[],oe=R?fne(Z,s,A):[...Z,s];b(oe,Ue(Te.itemPress,$))}else b(s,Ue(Te.itemPress,$)),g(!1,Ue(Te.itemPress,$))}function J(){v.current.dragY=0}let te={role:"option","aria-selected":R,tabIndex:B&&T?0:-1,onKeyDown($){j.current=$.key,h.set("activeIndex",P),$.key===" "&&y.current&&$.preventDefault()},onClick($){let Y=$.type==="click"&&D.current!=="touch",Z=$.nativeEvent.pointerType,oe=Y&&Wv($.nativeEvent)&&(Z!==void 0||T),ne=Y&&!oe&&!M.current;M.current=!1,!($.type==="keydown"&&j.current===null)&&(l||$.type==="keydown"&&j.current===" "&&y.current||ne||(j.current=null,q($.nativeEvent)))},onPointerEnter($){D.current=$.pointerType},onPointerMove($){if($.pointerType==="mouse"&&$.buttons===1){let Y=v.current;Y.dragY+=$.movementY,Y.dragY**2>=64&&(Y.allowUnselectedMouseUp=!0)}},onPointerDown($){D.current=$.pointerType,M.current=!0,J()},onMouseUp(){if(J(),l||D.current==="touch"||M.current)return;let $=!v.current.allowSelectedMouseUp&&R,Y=!v.current.allowUnselectedMouseUp&&!R;$||Y||(M.current=!0,N.current?.click(),M.current=!1)}},ee=We("div",t,{ref:[L,o,p.ref,N],state:z,props:[m,te,d,V]}),W=Ua.useMemo(()=>({selected:R,index:P,textRef:f,selectedByFocus:I,hasRegistered:O}),[R,P,f,I,O]);return(0,Mie.jsx)(RH.Provider,{value:W,children:ee})}));var ob=c(ce(),1);var Die=c(E(),1),Vie=ob.forwardRef(function(t,o){let r=t.keepMounted??!1,{selected:n}=J0();return r||n?(0,Die.jsx)(Z6e,{...t,ref:o}):null}),Z6e=ob.memo(ob.forwardRef((e,t)=>{let{render:o,className:r,style:n,keepMounted:i,...s}=e,{selected:a}=J0(),l=ob.useRef(null),{transitionStatus:u,setMounted:d}=us(a),p=We("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Cn});return si({open:a,ref:l,onComplete(){a||d(!1)}}),p}));var fS=c(ce(),1);var Fie=fS.memo(fS.forwardRef(function(t,o){let{index:r,textRef:n,selectedByFocus:i,hasRegistered:s}=J0(),{firstItemTextRef:a,selectedItemTextRef:l}=Co(),{render:u,className:d,style:f,...p}=t,h=fS.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 zie=c(ce(),1);var X6e={...Fa,...Cn},jie=zie.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}=tm(),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:X6e});return h?null:b});var Uie=c(ce(),1);var Hie=c(ce(),1);var UO=Hie.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}=tm(),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:B,setMounted:R}=us(_);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]),si({open:_,ref:w,onComplete(){_||R(!1)}});let P=We("div",t,{ref:[o,w],state:{direction:s,visible:_,side:g,transitionStatus:B},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(N){if(N.movementX===0&&N.movementY===0||x.isStarted())return;d.set("activeIndex",null);function j(){let D=d.state.listElement??f.current;if(!D)return;d.set("activeIndex",null),h();let M=sS(D.scrollHeight,D.clientHeight),V=aS(D.scrollTop,M),L=V===(u?0:M),z=p.current;if(V!==D.scrollTop&&(D.scrollTop=V),z.length===0&&d.set(u?"scrollUpArrowVisible":"scrollDownArrowVisible",!L),L){x.clear();return}if(z.length>0){let q=w.current?.offsetHeight||0;D.scrollTop=Q6e(z,u,V,D.clientHeight,q,M)}x.start(40,j)}x.start(40,j)},onMouseLeave(){x.clear()}},l],stateAttributesMapping:Cn});return T||a?P:null});function Q6e(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?aS(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?aS(u.offsetTop+u.offsetHeight-r+n,i):i}var Gie=c(E(),1),Wie=Uie.forwardRef(function(t,o){return(0,Gie.jsx)(UO,{...t,ref:o,direction:"down"})});var $ie=c(ce(),1);var Kie=c(E(),1),Yie=$ie.forwardRef(function(t,o){return(0,Kie.jsx)(UO,{...t,ref:o,direction:"up"})});var pS=c(ce(),1);var GO=c(ce(),1),BH=GO.createContext(void 0);function qie(){let e=GO.useContext(BH);if(e===void 0)throw new Error(It(56));return e}var Zie=c(E(),1),Xie=pS.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,[a,l]=pS.useState(),u=pS.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=We("div",t,{ref:o,props:[{role:"group","aria-labelledby":a},s]});return(0,Zie.jsx)(BH.Provider,{value:u,children:d})});var Qie=c(ce(),1);var Jie=Qie.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,...a}=t,{setLabelId:l}=qie(),u=ii(s);return le(()=>{l(u)},[u,l]),We("div",t,{ref:o,props:[{id:u},a]})});var hs={};Or(hs,{Arrow:()=>hse,Handle:()=>eC,Popup:()=>pse,Portal:()=>cse,Positioner:()=>dse,Provider:()=>gse,Root:()=>tse,Trigger:()=>sse,Viewport:()=>vse,createHandle:()=>Sse});var su=c(ce(),1);var WO=c(ce(),1),PH=WO.createContext(void 0);function Ga(e){let t=WO.useContext(PH);if(t===void 0&&!e)throw new Error(It(72));return t}var ese=c(ce(),1);var J6e={...Jre,disabled:Ve(e=>e.disabled),instantType:Ve(e=>e.instantType),isInstantPhase:Ve(e=>e.isInstantPhase),trackCursorAxis:Ve(e=>e.trackCursorAxis),disableHoverablePopup:Ve(e=>e.disableHoverablePopup),lastOpenChangeReason:Ve(e=>e.openChangeReason),closeOnClick:Ve(e=>e.closeOnClick),closeDelay:Ve(e=>e.closeDelay),hasViewport:Ve(e=>e.hasViewport)},mS=class e extends Xv{constructor(t,o,r=!1){let n=new Zp,i={...eze(),...t};i.floatingRootContext=Xre(n,o,r),super(i,{popupRef:ese.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},J6e)}setOpen=(t,o)=>{Hre(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,Ue(Te.triggerPress,t))}static useStore(t,o){return jre(t,(n,i)=>new e(o,n,i)).store}};function eze(){return{...Zre(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var $O=c(E(),1),tse=X8(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=mS.useStore(d?.store,{open:r,openProp:n,activeTriggerId:p,triggerIdProp:f});Ure(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),Wre(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:_}=$re(b,m),x=m.useState("isInstantPhase"),w=m.useState("instantType"),T=m.useState("lastOpenChangeReason"),B=su.useRef(null);le(()=>{g&&o&&m.setOpen(!1,Ue(Te.disabled))},[g,o,m]),le(()=>{_==="ending"&&T===Te.none||_!=="ending"&&x?(w!=="delay"&&(B.current=w),m.set("instantType","delay")):B.current!==null&&(m.set("instantType",B.current),B.current=null)},[_,x,T,w,m]),le(()=>{b&&v==null&&m.set("payload",void 0)},[m,v,b]);let R=su.useCallback(()=>{m.setOpen(!1,Ue(Te.imperativeAction))},[m]);su.useImperativeHandle(a,()=>({unmount:S,close:R}),[S,R]);let I=b||y||!o&&s!=="none";return(0,$O.jsxs)(PH.Provider,{value:m,children:[I&&(0,$O.jsx)(tze,{store:m,disabled:o,trackCursorAxis:s}),typeof h=="function"?h({payload:k}):h]})});function tze({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=D0(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=D8(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=su.useMemo(()=>Ht(i.reference,n.reference),[i.reference,n.reference]),a=su.useMemo(()=>Ht(i.trigger,n.trigger),[i.trigger,n.trigger]),l=su.useMemo(()=>Ht(QI,i.floating,n.floating),[i.floating,n.floating]);return Kre(e,{activeTriggerProps:s,inactiveTriggerProps:a,popupProps:l}),null}var YO=c(ce(),1);var KO=c(ce(),1),IH=KO.createContext(void 0);function ose(){return KO.useContext(IH)}var rse=(function(e){return e[e.popupOpen=H0.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var ise="data-base-ui-tooltip-trigger";function nse(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 oze(e){let t=e;for(;t;){if(t.hasAttribute(ise))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 sse=Mre(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=Ga(!0),g=s?.store??m;if(!g)throw new Error(It(82));let b=ii(p),v=g.useState("isTriggerActive",b),y=g.useState("isOpenedByTrigger",b),k=g.useState("floatingRootContext"),S=YO.useRef(null),_=u??600,x=f??0,{registerTrigger:w,isMountedByThisTrigger:T}=Gre(b,S,g,{payload:a,closeOnClick:d,closeDelay:x}),B=ose(),{delayRef:R,isInstantPhase:I,hasProvider:A}=y8(k,{open:y}),P=eS(k);g.useSyncedValue("isInstantPhase",I);let O=g.useState("disabled"),N=l??O,j=Kt(N),D=g.useState("trackCursorAxis"),M=g.useState("disableHoverablePopup"),V=YO.useRef(!1),L=xo(),z=YO.useRef(void 0);function q(){let X=B?.delay,re=typeof R.current=="object"?R.current.open:void 0,ae=_;return A&&(re!==0?ae=u??X??_:ae=0),ae}function J(X){let re=S.current;if(!re||!X)return!1;let ae=oze(X);return ae!==null&&ae!==re&&je(re,ae)}function te(X){let re=J(X);return V.current=re,re&&(P.openChangeTimeout.clear(),P.restTimeout.clear(),P.restTimeoutPending=!1,L.clear()),re}let ee=sH(k,{enabled:!N,mouseOnly:!0,move:!1,handleClose:!M&&D!=="both"?uH():null,restMs:q,delay(){let X=typeof R.current=="object"?R.current.close:void 0,re=x;return f==null&&A&&(re=X),{close:re}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>g.select("transitionStatus")==="ending",shouldOpen(){return!V.current}}),W=oH(k,{enabled:!N}).reference,$=X=>{let re=V.current,ae=nse(X),ve=te(ae),xe=S.current,ge=xe&&ae&&je(xe,ae);if(ve&&g.select("open")&&g.select("lastOpenChangeReason")===Te.triggerHover){g.setOpen(!1,Ue(Te.triggerHover,X));return}if(re&&!ve&&ge&&!j.current&&!g.select("open")&&xe&&Na(z.current)){let be=()=>{!V.current&&!j.current&&!g.select("open")&&g.setOpen(!0,Ue(Te.triggerHover,X,xe))},he=q();he===0?(L.clear(),be()):L.start(he,be)}},Y=g.useState("triggerProps",T);return We("button",t,{state:{open:y},ref:[o,w,S],props:[ee,W,T||D!=="none"?Y:void 0,{onMouseOver(X){$(X.nativeEvent)},onFocus(X){J(nse(X.nativeEvent))&&X.preventBaseUIHandler()},onMouseLeave(){V.current=!1,L.clear(),z.current=void 0},onPointerEnter(X){z.current=X.pointerType},onPointerDown(X){z.current=X.pointerType,g.set("closeOnClick",d),d&&!g.select("open")&&g.cancelPendingOpen(X.nativeEvent)},onClick(X){d&&!g.select("open")&&g.cancelPendingOpen(X.nativeEvent)},id:b,[rse.triggerDisabled]:N?"":void 0,[ise]:N?void 0:""},h],stateAttributesMapping:sO})});var lse=c(ce(),1);var qO=c(ce(),1),OH=qO.createContext(void 0);function ase(){let e=qO.useContext(OH);if(e===void 0)throw new Error(It(70));return e}var AH=c(E(),1),cse=lse.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return Ga().useState("mounted")||r?(0,AH.jsx)(OH.Provider,{value:r,children:(0,AH.jsx)(pie,{ref:o,...n})}):null});var XO=c(ce(),1);var ZO=c(ce(),1),LH=ZO.createContext(void 0);function hS(){let e=ZO.useContext(LH);if(e===void 0)throw new Error(It(71));return e}var use=c(E(),1),dse=XO.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=Voe,style:v,...y}=t,k=Ga(),S=ase(),_=k.useState("open"),x=k.useState("mounted"),w=k.useState("trackCursorAxis"),T=k.useState("disableHoverablePopup"),B=k.useState("floatingRootContext"),R=k.useState("instantType"),I=k.useState("transitionStatus"),A=k.useState("hasViewport"),P=mO({anchor:i,positionMethod:s,floatingRootContext:B,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:A?Ene:void 0}),O=XO.useMemo(()=>({open:_,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:w!=="none"?"tracking-cursor":R}),[_,P.side,P.align,P.anchorHidden,w,R]),N=hO(t,O,{styles:P.positionerStyles,transitionStatus:I,props:y,refs:[o,k.useStateSetter("positionerElement")],hidden:!x,inert:!_||w==="both"||T});return(0,use.jsx)(LH.Provider,{value:P,children:N})});var fse=c(ce(),1);var rze={...Fa,...Cn},pse=fse.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=Ga(),{side:l,align:u}=hS(),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");si({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),iH(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,rS(p),s],stateAttributesMapping:rze})});var mse=c(ce(),1);var hse=mse.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=Ga(),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=hS(),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:Fa})});var MH=c(ce(),1);var NH=c(E(),1),gse=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,i=MH.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),s=MH.useMemo(()=>({open:o,close:r}),[o,r]);return(0,NH.jsx)(IH.Provider,{value:i,children:(0,NH.jsx)(b8,{delay:s,timeoutMs:n,children:t.children})})};var yse=c(ce(),1);var bse=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var nze={activationDirection:e=>e?{"data-activation-direction":e}:null},vse=yse.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,l=Ga(),u=hS(),d=l.useState("instantType"),{children:f,state:p}=Yne({store:l,side:u.side,cssVars:bse,children:s}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return We("div",t,{state:h,ref:o,props:[a,{children:f}],stateAttributesMapping:nze})});var eC=class{constructor(){this.store=new mS}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(It(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 Sse(){return new eC}function mi(e){return We(e.defaultTagName??"div",e,e)}var xse=c(F(),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"&&sze(document)),e.__wpStyleRuntime}function ize(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 wse(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(ize(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 sze(e){let t=VH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)wse(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 Cse(e,t){let o=VH();o.styles.set(e,t);for(let r of o.documents.keys())wse(r,e,t)}typeof process>"u",Cse("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 kse={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",Cse("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 _se={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},Bd=(0,xse.forwardRef)(function({variant:t="body-md",render:o,className:r,...n},i){return mi({render:o,defaultTagName:"span",ref:i,props:Ht(n,{className:K(kse.text,_se.heading,_se.p,kse[t],r)})})});var Bse=c(E(),1),FH="data-wp-hash";function zH(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&lze(document)),e.__wpStyleRuntime}function aze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${FH}]`))if(o.getAttribute(FH)===t)return!0;return!1}function Rse(e,t,o){if(!e.head)return;let r=zH(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(aze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(FH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function lze(e){let t=zH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Rse(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 cze(e,t){let o=zH();o.styles.set(e,t);for(let r of o.documents.keys())Rse(r,e,t)}typeof process>"u",cze("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 Ese={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"},jH=(0,Tse.forwardRef)(function({intent:t="none",className:o,...r},n){return(0,Bse.jsx)(Bd,{ref:n,className:K(Ese.badge,Ese[`is-${t}-intent`],o),...r,variant:"body-sm"})});var Pse=c(F(),1),Ise=c(pe(),1),Ose=c(E(),1),rb=(0,Pse.forwardRef)(function({icon:t,size:o=24,...r},n){return(0,Ose.jsx)(Ise.SVG,{ref:n,...t.props,...r,width:o,height:o})});var au={};Or(au,{Content:()=>eA,FullBleed:()=>Hse,Header:()=>JO,Root:()=>QO,Title:()=>Gse});var Ase=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"&&dze(document)),e.__wpStyleRuntime}function uze(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 Lse(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(uze(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 dze(e){let t=UH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Lse(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 Mse(e,t){let o=UH();o.styles.set(e,t);for(let r of o.documents.keys())Lse(r,e,t)}typeof process>"u",Mse("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var fze={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Mse("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 pze={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},QO=(0,Ase.forwardRef)(function({render:t,...o},r){let n=K(pze.root,fze["box-sizing"]);return mi({defaultTagName:"div",render:t,ref:r,props:Ht({className:n},o)})});var Nse=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"&&hze(document)),e.__wpStyleRuntime}function mze(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 Dse(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(mze(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 hze(e){let t=WH();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 gze(e,t){let o=WH();o.styles.set(e,t);for(let r of o.documents.keys())Dse(r,e,t)}typeof process>"u",gze("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"},JO=(0,Nse.forwardRef)(function({render:t,...o},r){return mi({defaultTagName:"div",render:t,ref:r,props:Ht({className:bze.header},o)})});var Vse=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"&&vze(document)),e.__wpStyleRuntime}function yze(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 Fse(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(yze(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 vze(e){let t=KH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Fse(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=KH();o.styles.set(e,t);for(let r of o.documents.keys())Fse(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"},eA=(0,Vse.forwardRef)(function({render:t,...o},r){return mi({defaultTagName:"div",render:t,ref:r,props:Ht({className:kze.content},o)})});var zse=c(F(),1),YH="data-wp-hash";function qH(){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[${YH}]`))if(o.getAttribute(YH)===t)return!0;return!1}function jse(e,t,o){if(!e.head)return;let r=qH(),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(YH,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function xze(e){let t=qH();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)jse(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=qH();o.styles.set(e,t);for(let r of o.documents.keys())jse(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"},Hse=(0,zse.forwardRef)(function({render:t,...o},r){return mi({defaultTagName:"div",render:t,ref:r,props:Ht({className:Cze.fullbleed},o)})});var Use=c(F(),1);var ZH=c(E(),1),Eze=(0,ZH.jsx)("div",{}),Gse=(0,Use.forwardRef)(function({render:t=Eze,children:o,...r},n){return(0,ZH.jsx)(Bd,{ref:n,variant:"heading-lg",render:t,...r,children:o})});var Wse=c(F(),1),$se=c(E(),1),XH=(0,Wse.forwardRef)(function(t,o){return(0,$se.jsx)(Qp.Panel,{ref:o,...t})});var Kse=c(F(),1),Yse=c(E(),1),QH=(0,Kse.forwardRef)(function(t,o){return(0,Yse.jsx)(Qp.Root,{ref:o,...t})});var qse=c(F(),1),Zse=c(E(),1),JH=(0,qse.forwardRef)(function(t,o){return(0,Zse.jsx)(Qp.Trigger,{ref:o,...t})});var nb={};Or(nb,{Content:()=>aae,Header:()=>oae,HeaderDescription:()=>nae,Root:()=>Qse});var Xse=c(F(),1);var tU=c(E(),1),Qse=(0,Xse.forwardRef)(function({render:t,...o},r){return(0,tU.jsx)(QH,{ref:r,render:(0,tU.jsx)(QO,{render:t}),...o})});var bS=c(F(),1);var Jse=c(F(),1),tA=(0,Jse.createContext)({setDescriptionId:()=>{}});var Pd=c(E(),1),oU="data-wp-hash";function rU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rze(document)),e.__wpStyleRuntime}function Tze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${oU}]`))if(o.getAttribute(oU)===t)return!0;return!1}function tae(e,t,o){if(!e.head)return;let r=rU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Tze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Rze(e){let t=rU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)tae(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 nU(e,t){let o=rU();o.styles.set(e,t);for(let r of o.documents.keys())tae(r,e,t)}typeof process>"u",nU("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 gS={"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",nU("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 eae={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",nU("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 Bze={"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"},oae=(0,bS.forwardRef)(function({children:t,className:o,render:r,...n},i){let[s,a]=(0,bS.useState)(),l=(0,bS.useMemo)(()=>({setDescriptionId:a}),[a]);return mi({defaultTagName:"div",render:r,ref:i,props:Ht(n,{className:K(eae.heading,gS["heading-wrapper"],o),children:(0,Pd.jsx)(tA.Provider,{value:l,children:(0,Pd.jsxs)(JH,{className:gS.header,render:(0,Pd.jsx)(JO,{}),nativeButton:!1,"aria-describedby":s,children:[(0,Pd.jsx)("div",{className:gS["header-content"],children:t}),(0,Pd.jsx)("div",{className:K(gS["header-trigger-positioner"]),children:(0,Pd.jsx)("div",{className:K(gS["header-trigger-wrapper"],eae.div,Bze["outset-ring--focus-parent-visible"]),children:(0,Pd.jsx)(rb,{icon:cn,className:gS["header-trigger"]})})})]})})})})});var om=c(F(),1);var rae=c(E(),1),nae=(0,om.forwardRef)(function({children:t,className:o,...r},n){let i=(0,om.useId)(),{setDescriptionId:s}=(0,om.useContext)(tA);return(0,om.useEffect)(()=>(s(i),()=>s(void 0)),[i,s]),(0,rae.jsx)("div",{ref:n,id:i,"aria-hidden":"true",className:o,...r,children:t})});var iae=c(F(),1);var aU=c(E(),1),sU="data-wp-hash";function lU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ize(document)),e.__wpStyleRuntime}function Pze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${sU}]`))if(o.getAttribute(sU)===t)return!0;return!1}function sae(e,t,o){if(!e.head)return;let r=lU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Pze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Ize(e){let t=lU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)sae(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 Oze(e,t){let o=lU();o.styles.set(e,t);for(let r of o.documents.keys())sae(r,e,t)}typeof process>"u",Oze("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 iU={"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"},aae=(0,iae.forwardRef)(function({className:t,render:o,children:r,hiddenUntilFound:n=!0,...i},s){return(0,aU.jsx)(XH,{ref:s,className:a=>K(iU.content,a.open&&a.transitionStatus==="idle"&&iU["overflow-visible"],t),hiddenUntilFound:n,...i,children:(0,aU.jsx)(eA,{className:iU["content-inner"],render:o,children:r})})});var lae=c(F(),1);function yS(e,t,o){return(0,lae.cloneElement)(e??t,{children:o})}var Aze=c(uae(),1);var dae=c(Bx(),1),{lock:hIt,unlock:fae}=(0,dae.__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 Lze(){let e=Aze;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return fae(e.privateApis).ThemeProvider}var oA=Lze();var pae=c(F(),1),cU="data-wp-hash";function uU(){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 Mze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${cU}]`))if(o.getAttribute(cU)===t)return!0;return!1}function mae(e,t,o){if(!e.head)return;let r=uU(),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(cU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Nze(e){let t=uU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)mae(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 Dze(e,t){let o=uU();o.styles.set(e,t);for(let r of o.documents.keys())mae(r,e,t)}typeof process>"u",Dze("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var Vze={stack:"_19ce0419607e1896__stack"},Fze={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,pae.forwardRef)(function({direction:t,gap:o,align:r,justify:n,wrap:i,render:s,...a},l){let u={gap:o&&Fze[o],alignItems:r,justifyContent:n,flexDirection:t,flexWrap:i};return mi({render:s,ref:l,props:Ht(a,{style:u,className:Vze.stack})})});var kt={};Or(kt,{Popup:()=>Eae,Portal:()=>nA,Positioner:()=>iA,Provider:()=>Aae,Root:()=>Iae,Trigger:()=>Bae});var wae=c(F(),1);var yae=c(F(),1);var fU="data-wp-hash";function pU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&jze(document)),e.__wpStyleRuntime}function zze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${fU}]`))if(o.getAttribute(fU)===t)return!0;return!1}function gae(e,t,o){if(!e.head)return;let r=pU(),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(fU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function jze(e){let t=pU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)gae(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 Hze(e,t){let o=pU();o.styles.set(e,t);for(let r of o.documents.keys())gae(r,e,t)}typeof process>"u",Hze("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 hae={slot:"_11fc52b637ff8a7e__slot"},bae="data-wp-compat-overlay-slot";function Uze(){return typeof document>"u"?null:document}function Gze(){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 dU(e){return e.setAttribute("aria-hidden","false"),e}function Wze(e){let t=e.createElement("div");return t.setAttribute(bae,""),hae.slot&&t.classList.add(hae.slot),e.body.appendChild(t),t}function rA(){if(typeof window>"u"||!Gze()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=Uze();if(!e||!e.body)return;if(lu&&lu.ownerDocument===e&&lu.isConnected)return dU(lu);let t=e.querySelector(`[${bae}]`);return t instanceof HTMLDivElement?(lu=dU(t),lu):(lu?.isConnected&&lu.remove(),lu=dU(Wze(e)),lu)}var vae=c(E(),1),nA=(0,yae.forwardRef)(function({container:t,...o},r){return(0,vae.jsx)(hs.Portal,{container:t??rA(),...o,ref:r})});var Sae=c(F(),1),xae=c(E(),1),mU="data-wp-hash";function hU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Kze(document)),e.__wpStyleRuntime}function $ze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${mU}]`))if(o.getAttribute(mU)===t)return!0;return!1}function kae(e,t,o){if(!e.head)return;let r=hU(),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(mU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Kze(e){let t=hU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)kae(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 _ae(e,t){let o=hU();o.styles.set(e,t);for(let r of o.documents.keys())kae(r,e,t)}typeof process>"u",_ae("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Yze={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",_ae("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 qze={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},iA=(0,Sae.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...i},s){return(0,xae.jsx)(hs.Positioner,{ref:s,align:t,side:r,sideOffset:n,...i,className:K(Yze["box-sizing"],qze.positioner,o)})});var tC=c(E(),1),gU="data-wp-hash";function bU(){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[${gU}]`))if(o.getAttribute(gU)===t)return!0;return!1}function Cae(e,t,o){if(!e.head)return;let r=bU(),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(gU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Xze(e){let t=bU();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 Qze(e,t){let o=bU();o.styles.set(e,t);for(let r of o.documents.keys())Cae(r,e,t)}typeof process>"u",Qze("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"},eje={background:"#1e1e1e"},Eae=(0,wae.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...i},s){let a=(0,tC.jsx)(oA,{color:eje,children:(0,tC.jsx)(hs.Popup,{ref:s,className:K(Jze.popup,n),...i,children:r})}),l=yS(o,(0,tC.jsx)(iA,{}),a);return yS(t,(0,tC.jsx)(nA,{}),l)});var Tae=c(F(),1),Rae=c(E(),1),Bae=(0,Tae.forwardRef)(function(t,o){return(0,Rae.jsx)(hs.Trigger,{ref:o,...t})});var Pae=c(E(),1);function Iae(e){return(0,Pae.jsx)(hs.Root,{...e})}var Oae=c(E(),1);function Aae({...e}){return(0,Oae.jsx)(hs.Provider,{...e})}var oC=c(F(),1),rC=c(E(),1),yU="data-wp-hash";function vU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&oje(document)),e.__wpStyleRuntime}function tje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${yU}]`))if(o.getAttribute(yU)===t)return!0;return!1}function Lae(e,t,o){if(!e.head)return;let r=vU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(tje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(yU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function oje(e){let t=vU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Lae(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 SU(e,t){let o=vU();o.styles.set(e,t);for(let r of o.documents.keys())Lae(r,e,t)}typeof process>"u",SU("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 rje={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",SU("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var nje={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",SU("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 vS={"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"},Mae=(0,oC.forwardRef)(function({className:t,children:o,visuallyDisabled:r,size:n="default",isBorderless:i,prefix:s,suffix:a,...l},u){return(0,rC.jsxs)("div",{ref:u,className:K(rje.div,nje["box-sizing"],vS["input-layout"],vS[`is-size-${n}`],r&&vS["is-disabled"],i&&vS["is-borderless"],t),...l,children:[oC.Children.count(s)>0&&(0,rC.jsx)("div",{className:vS["slot-wrapper"],"data-slot-type":"prefix",children:s}),o,oC.Children.count(a)>0&&(0,rC.jsx)("div",{className:vS["slot-wrapper"],"data-slot-type":"suffix",children:a})]})});var Dae=c(F(),1),Fae=c(E(),1),kU="data-wp-hash";function _U(){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[${kU}]`))if(o.getAttribute(kU)===t)return!0;return!1}function Vae(e,t,o){if(!e.head)return;let r=_U(),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(kU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function sje(e){let t=_U();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 aje(e,t){let o=_U();o.styles.set(e,t);for(let r of o.documents.keys())Vae(r,e,t)}typeof process>"u",aje("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 Nae={"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"},xU=(0,Dae.forwardRef)(function({padding:t="default",className:o,...r},n){return(0,Fae.jsx)("div",{ref:n,className:K(Nae["input-layout-slot"],Nae[`is-padding-${t}`],o),...r})});xU.displayName="InputLayout.Slot";var zae=Object.assign(Mae,{Slot:xU});var jae={align:"start",sideOffset:8,collisionPadding:12};var ib={};Or(ib,{Control:()=>dle,Description:()=>nle,Details:()=>lle,Item:()=>Kae,Label:()=>Jae,Root:()=>Gae});var Hae=c(F(),1);var EU=c(E(),1),wU="data-wp-hash";function CU(){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 lje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${wU}]`))if(o.getAttribute(wU)===t)return!0;return!1}function Uae(e,t,o){if(!e.head)return;let r=CU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(lje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(wU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function cje(e){let t=CU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Uae(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 uje(e,t){let o=CU();o.styles.set(e,t);for(let r of o.documents.keys())Uae(r,e,t)}typeof process>"u",uje("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"},fje=e=>(0,EU.jsx)(Qe,{...e,direction:"column",gap:"sm"}),Gae=(0,Hae.forwardRef)(function({className:t,render:o=fje,...r},n){return(0,EU.jsx)(ms.Root,{ref:n,className:K(dje["box-sizing"],t),render:o,...r})});var Wae=c(F(),1),$ae=c(E(),1),Kae=(0,Wae.forwardRef)(function(t,o){return(0,$ae.jsx)(ms.Item,{ref:o,...t})});var Xae=c(F(),1);var Yae=c(F(),1),TU="data-wp-hash";function RU(){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 pje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${TU}]`))if(o.getAttribute(TU)===t)return!0;return!1}function qae(e,t,o){if(!e.head)return;let r=RU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(pje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(TU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function mje(e){let t=RU();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 hje(e,t){let o=RU();o.styles.set(e,t);for(let r of o.documents.keys())qae(r,e,t)}typeof process>"u",hje("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 gje={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},bt=(0,Yae.forwardRef)(function({render:t,...o},r){return mi({render:t,ref:r,props:Ht({className:gje["visually-hidden"]},o,{"data-visually-hidden":""})})});var PU=c(E(),1),BU="data-wp-hash";function IU(){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[${BU}]`))if(o.getAttribute(BU)===t)return!0;return!1}function Qae(e,t,o){if(!e.head)return;let r=IU(),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(BU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function yje(e){let t=IU();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=IU();o.styles.set(e,t);for(let r of o.documents.keys())Qae(r,e,t)}typeof process>"u",vje("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 Zae={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},Jae=(0,Xae.forwardRef)(function({className:t,hideFromVision:o,variant:r,...n},i){let s=(0,PU.jsx)(ms.Label,{ref:i,className:K(Zae.label,r&&Zae[`is-${r}`],t),...n});return o?(0,PU.jsx)(bt,{render:s}):s});var ele=c(F(),1),rle=c(E(),1),OU="data-wp-hash";function AU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kje(document)),e.__wpStyleRuntime}function Sje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${OU}]`))if(o.getAttribute(OU)===t)return!0;return!1}function tle(e,t,o){if(!e.head)return;let r=AU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Sje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(OU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function kje(e){let t=AU();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 ole(e,t){let o=AU();o.styles.set(e,t);for(let r of o.documents.keys())tle(r,e,t)}typeof process>"u",ole("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 _je={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",ole("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 xje={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},nle=(0,ele.forwardRef)(function({className:t,...o},r){return(0,rle.jsx)(ms.Description,{ref:r,className:K(_je.p,xje.description,t),...o})});var ile=c(F(),1),sle=c(G(),1);var rm=c(E(),1),LU="data-wp-hash";function MU(){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[${LU}]`))if(o.getAttribute(LU)===t)return!0;return!1}function ale(e,t,o){if(!e.head)return;let r=MU(),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(LU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Cje(e){let t=MU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ale(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 Eje(e,t){let o=MU();o.styles.set(e,t);for(let r of o.documents.keys())ale(r,e,t)}typeof process>"u",Eje("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"},lle=(0,ile.forwardRef)(function({className:t,...o},r){return(0,rm.jsxs)(rm.Fragment,{children:[(0,rm.jsx)(bt,{render:(0,rm.jsx)(ms.Description,{}),children:(0,sle.__)("More details follow the field.")}),(0,rm.jsx)("div",{ref:r,className:K(Tje.description,t),...o})]})});var cle=c(F(),1),ule=c(E(),1),dle=(0,cle.forwardRef)(function(t,o){return(0,ule.jsx)(ms.Control,{ref:o,...t})});var nm={};Or(nm,{Item:()=>hle,Popup:()=>wle,Portal:()=>aA,Positioner:()=>lA,Root:()=>Ele,Trigger:()=>Ile});var fle=c(F(),1);var nC=c(E(),1),NU="data-wp-hash";function DU(){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[${NU}]`))if(o.getAttribute(NU)===t)return!0;return!1}function ple(e,t,o){if(!e.head)return;let r=DU(),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(NU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Bje(e){let t=DU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ple(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 mle(e,t){let o=DU();o.styles.set(e,t);for(let r of o.documents.keys())ple(r,e,t)}typeof process>"u",mle("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 sA={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",mle("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Pje={"box-sizing":"_336cd3e4e743482f__box-sizing"},hle=(0,fle.forwardRef)(function({className:t,value:o,size:r="default",children:n,...i},s){return(0,nC.jsxs)($n.Item,{className:K(Pje["box-sizing"],sA.item,sA[`is-size-${r}`],t),value:o,ref:s,...i,children:[(0,nC.jsx)(rb,{icon:ns,className:K(sA["item-icon"],sA["item-indicator-icon"]),size:r==="small"?20:24}),(0,nC.jsx)($n.ItemText,{children:n})]})});var _le=c(F(),1);var gle=c(F(),1);var ble=c(E(),1),aA=(0,gle.forwardRef)(function({container:t,...o},r){return(0,ble.jsx)($n.Portal,{container:t??rA(),...o,ref:r})});var yle=c(F(),1);var kle=c(E(),1),VU="data-wp-hash";function FU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Oje(document)),e.__wpStyleRuntime}function Ije(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${VU}]`))if(o.getAttribute(VU)===t)return!0;return!1}function vle(e,t,o){if(!e.head)return;let r=FU(),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(VU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Oje(e){let t=FU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)vle(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 Sle(e,t){let o=FU();o.styles.set(e,t);for(let r of o.documents.keys())vle(r,e,t)}typeof process>"u",Sle("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Aje={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Sle("8c70612dd7","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}}}");var Lje={positioner:"_0ab863136fb95530__positioner"},lA=(0,yle.forwardRef)(function({className:t,...o},r){return(0,kle.jsx)($n.Positioner,{...jae,alignItemWithTrigger:!1,...o,ref:r,className:K(Aje["box-sizing"],Lje.positioner,t)})});var sb=c(E(),1),jU="data-wp-hash";function HU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Nje(document)),e.__wpStyleRuntime}function Mje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${jU}]`))if(o.getAttribute(jU)===t)return!0;return!1}function xle(e,t,o){if(!e.head)return;let r=HU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Mje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(jU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Nje(e){let t=HU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)xle(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=HU();o.styles.set(e,t);for(let r of o.documents.keys())xle(r,e,t)}typeof process>"u",Dje("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 zU={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"},wle=(0,_le.forwardRef)(function({className:t,portal:o,positioner:r,children:n,...i},s){let a=(0,sb.jsx)(oA,{children:(0,sb.jsx)($n.Popup,{ref:s,className:K(zU.popup,t),...i,children:(0,sb.jsx)($n.List,{className:zU.list,children:(0,sb.jsx)("div",{className:zU["list-scrollable-container"],children:n})})})}),l=yS(r,(0,sb.jsx)(lA,{}),a);return yS(o,(0,sb.jsx)(aA,{}),l)});var Cle=c(E(),1);function Ele(e){return(0,Cle.jsx)($n.Root,{...e})}var Tle=c(F(),1);var Rle=c(G(),1);var kS=c(E(),1),UU="data-wp-hash";function GU(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Fje(document)),e.__wpStyleRuntime}function Vje(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${UU}]`))if(o.getAttribute(UU)===t)return!0;return!1}function Ble(e,t,o){if(!e.head)return;let r=GU(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Vje(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(UU,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Fje(e){let t=GU();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ble(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 Ple(e,t){let o=GU();o.styles.set(e,t);for(let r of o.documents.keys())Ble(r,e,t)}typeof process>"u",Ple("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 zje={"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",Ple("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 SS={"trigger-wrapper":"_6e4e0445ef20426b__trigger-wrapper","is-minimal":"fa98c865fb77e675__is-minimal",trigger:"_7893295e3f6d1af7__trigger","trigger-value":"e760c9339965ce84__trigger-value","trigger-caret":"_308bc63e43681f99__trigger-caret"},Ile=(0,Tle.forwardRef)(function({className:t,size:o,variant:r,children:n,placeholder:i=(0,Rle.__)("Select"),...s},a){return(0,kS.jsx)(zae,{className:K(zje["outset-ring--focus-within-except-active"],SS["trigger-wrapper"],r==="minimal"&&SS["is-minimal"],t),size:o,isBorderless:r==="minimal",children:(0,kS.jsxs)($n.Trigger,{...s,className:K(SS.trigger,r==="minimal"&&SS["is-minimal"]),"data-can-disable-input-layout":!0,ref:a,children:[(0,kS.jsx)($n.Value,{placeholder:i,className:SS["trigger-value"],children:n}),(0,kS.jsx)(rb,{className:SS["trigger-caret"],icon:cn,size:18})]})})});var Mle=c(F(),1);var cA=c(F(),1),WU=(0,cA.createContext)(void 0),Ole=()=>(0,cA.useContext)(WU);var Ale=c(F(),1);var Lle=c(E(),1),iC=(0,Ale.forwardRef)(function({size:t,...o},r){let n=Ole(),i=t??n;return(0,Lle.jsx)(nm.Item,{size:i,ref:r,...o})});var ec=c(E(),1),Nle=(0,Mle.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)(ib.Root,{className:t,children:[(0,ec.jsx)(ib.Label,{hideFromVision:a,children:n}),(0,ec.jsxs)(nm.Root,{items:r,...f,children:[(0,ec.jsx)(nm.Trigger,{ref:p,placeholder:l,size:u,children:d}),(0,ec.jsx)(nm.Popup,{children:(0,ec.jsx)(WU.Provider,{value:u,children:o!==void 0?o:r?.map(h=>(0,ec.jsx)(iC,{value:h,label:h.label,disabled:h.disabled,children:h.label},h.value??"null"))})})]}),i&&(0,ec.jsx)(ib.Description,{children:i}),s&&(0,ec.jsx)(ib.Details,{children:s})]})});iC.displayName="SelectControl.Item";var $U=Object.assign(Nle,{Item:iC});var ym=c(G(),1),NC=c(fe(),1),Ipe=c(Q(),1);var _S=c(G(),1),xS=c(F(),1),Vle=c(U(),1),sC=c(E(),1),Dle=[(0,xS.createInterpolateElement)((0,_S.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,sC.jsx)("kbd",{})}),(0,xS.createInterpolateElement)((0,_S.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,sC.jsx)("kbd",{})}),(0,xS.createInterpolateElement)((0,_S.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,sC.jsx)("kbd",{})}),(0,_S.__)("Drag files into the editor to automatically insert media blocks."),(0,_S.__)("Change a block's type by pressing the block icon on the toolbar.")];function jje(){let[e]=(0,xS.useState)(()=>Math.floor(Math.random()*Dle.length));return(0,sC.jsx)(Vle.Tip,{children:Dle[e]})}var Fle=jje;var GS=c(ue(),1),ufe=c(F(),1),dfe=c(G(),1);var ab=c(U(),1);var uA=c(Q(),1),zle=c(Rt(),1),im=c(G(),1);var jle=c(ue(),1);var Kn=c(E(),1),{Badge:Hje}=H(ab.privateApis);function Uje({children:e,onClick:t}){return t?(0,Kn.jsx)(ab.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}function Gje({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,zle.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,uA.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,uA.useDispatch)(C),g=a?"div":"h2";return(0,Kn.jsx)("div",{className:K("block-editor-block-card",{"is-parent":a,"is-child":l},n),children:(0,Kn.jsxs)(Qe,{direction:"column",gap:"sm",children:[(0,Kn.jsxs)(Qe,{direction:"row",align:"center",justify:"space-between",children:[(0,Kn.jsxs)(Qe,{direction:"row",align:"center",justify:"flex-start",children:[p&&(0,Kn.jsx)(ab.Button,{onClick:()=>m(p),label:h?(0,im.sprintf)((0,im.__)('Go to "%s" block'),(0,jle.getBlockType)(h)?.title):(0,im.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,im.isRTL)()?un:Ti,size:"small"}),l&&(0,Kn.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,Kn.jsx)(ab.Icon,{icon:(0,im.isRTL)()?Nx:Dx})}),(0,Kn.jsxs)(Uje,{onClick:a?()=>{m(a)}:void 0,children:[(0,Kn.jsx)(Et,{icon:t,showColors:!0}),(0,Kn.jsxs)(Qe,{direction:"column",gap:"xs",children:[(0,Kn.jsxs)(g,{className:"block-editor-block-card__title",children:[(0,Kn.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,Kn.jsx)(Hje,{children:e})]}),u]})]})]}),f]}),!a&&!l&&o&&(0,Kn.jsx)(Bd,{className:"block-editor-block-card__description",children:o})]})})}var aC=Gje;var ZA=c(fe(),1),V7=c(Q(),1),fb=c(F(),1),D7=c(Rt(),1);var lce=c(Q(),1),sm=c(F(),1),cce=c(U(),1),tc=c(Ule(),1);var Gle=c(F(),1),wS=c(Q(),1),Wle=c(fe(),1);var dA=c(E(),1);function Wje(e,t,o){if(!o)return t;let r=e.get(t);return r||(r=(0,wS.createRegistry)({},t),r.registerStore(nr,mv),e.set(t,r)),r}var $je=(0,Wle.createHigherOrderComponent)(e=>function({useSubRegistry:o=!0,...r}){let n=(0,wS.useRegistry)(),[i]=(0,Gle.useState)(()=>new WeakMap),s=Wje(i,n,o);return s===n?(0,dA.jsx)(e,{registry:n,...r}):(0,dA.jsx)(wS.RegistryProvider,{value:s,children:(0,dA.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),$le=$je;var Vi=c(F(),1),Zle=c(Q(),1),Xle=c(ue(),1);var Kle=c(F(),1),Kje=()=>{},fA=(0,Kle.createContext)({getSelection:()=>{},onChangeSelection:Kje});var Yle=()=>{};function Qle(e,t){let o=(0,Xle.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=>Qle(r,t))),o}function Jle(e,t){return e.map(o=>{let r=t.internalToExternal.get(o.clientId);return{...o,clientId:r??o.clientId,innerBlocks:Jle(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 pA({clientId:e=null,value:t,onChange:o=Yle,onInput:r=Yle}){let n=(0,Zle.useRegistry)(),{getSelection:i,onChangeSelection:s}=(0,Vi.useContext)(fA),{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,Vi.useRef)({incoming:null,outgoing:[]}),v=(0,Vi.useRef)(!1),y=(0,Vi.useRef)({externalToInternal:new Map,internalToExternal:new Map}),k=(0,Vi.useRef)(null),S=(0,Vi.useRef)(!1),_=()=>{let R=i();if(!R?.selectionStart?.clientId||R===k.current)return;let I=R.selectionStart.clientId;if(e?y.current.externalToInternal.has(I):!!p(I)){k.current=R;let P=O=>!O?.clientId||!e?O:{...O,clientId:y.current.externalToInternal.get(O.clientId)??O.clientId};S.current=!0,l(P(R.selectionStart),P(R.selectionEnd),R.initialPosition),S.current=!1}},x=()=>{t&&(e?n.batch(()=>{y.current.externalToInternal.clear(),y.current.internalToExternal.clear();let R=t.map(I=>Qle(I,y.current));f(),d(e,!0),v.current&&(b.current.incoming=R),f(),u(e,R),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,Vi.useRef)(r),B=(0,Vi.useRef)(o);(0,Vi.useEffect)(()=>{T.current=r,B.current=o},[r,o]),(0,Vi.useEffect)(()=>{let R=b.current.outgoing.includes(t),I=h(e)===t;R?b.current.outgoing[b.current.outgoing.length-1]===t&&(b.current.outgoing=[]):I||(b.current.outgoing=[],x(),_())},[t,e]),(0,Vi.useEffect)(()=>{let{getSelectedBlocksInitialCaretPosition:R,isLastBlockChangePersistent:I,__unstableGetLastBlockChangeHistoryMode:A,__unstableIsLastBlockChangeIgnored:P,areInnerBlocksControlled:O,getBlockParents:N}=n.select(C),j=h(e),D=I(),M=A(),V=!1,L=m(),z=g();v.current=!0;let q=n.subscribe(()=>{if(e!==null&&p(e)===null)return;let J=I(),te=A(),ee=h(e),W=ee!==j;if(j=ee,W&&(b.current.incoming||P())){b.current.incoming=null,D=J,M=te;return}let Y=W||V&&!W&&J&&!D,Z=m(),oe=g(),ne=Z!==L||oe!==z;ne&&(L=Z,z=oe),(Y||ne)&&n.batch(()=>{if(Y){D=J,M=te;let X=e?Jle(j,y.current):j,re={selectionStart:Z,selectionEnd:oe,initialPosition:R()},ae=e?qle(re,y.current):re;b.current.outgoing.push(X);let ve=D?B.current:T.current,xe={selection:ae};M==="ignore"&&(xe.undoIgnore=!0),ve(X,xe)}if(ne&&!Y&&Z?.clientId&&!S.current&&(e?y.current.internalToExternal.has(Z.clientId):!N(Z.clientId).some(re=>O(re)))){let re={selectionStart:Z,selectionEnd:oe,initialPosition:R()};s(e?qle(re,y.current):re)}}),V=W},C);return()=>{v.current=!1,q()}},[n,e]),(0,Vi.useEffect)(()=>()=>{w()},[])}var ece=c(F(),1),tce=c(Q(),1),oce=c($l(),1),zr=c(G(),1);function rce(){return null}function Yje(){let{registerShortcut:e,unregisterShortcut:t}=(0,tce.useDispatch)(oce.store),[o]=Le("blockVisibility.allowEditing");return(0,ece.useEffect)(()=>{e({name:"core/block-editor/copy",category:"block",description:(0,zr.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,zr.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,zr.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,zr.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,zr.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,zr.__)("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,zr.__)("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,zr.__)("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,zr.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,zr.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,zr.__)("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,zr.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,zr.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,zr.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,zr.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,zr.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,zr.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,zr.__)("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,zr.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,zr.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e,t,o]),null}rce.Register=Yje;var mA=rce;var nce=c(F(),1);function qje(e={}){return(0,nce.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 ice=qje;var Id=c(E(),1),hA=()=>{},sce=!1,CS=null,ES=null,ace=["image/heic","image/heif"];function uce(){if(CS!==null)return CS;if(!window.__clientSideMediaProcessing||typeof tc.detectClientSideMediaSupport!="function")return CS=!1,!1;let e=(0,tc.detectClientSideMediaSupport)();return!e||!e.supported?(sce||(console.info(`Client-side media processing unavailable: ${e.reason}. Using server-side processing.`),sce=!0),CS=!1,!1):(CS=!0,!0)}function Zje(){return ES!==null?ES:uce()||!window.__clientSideMediaProcessing||typeof tc.isHeicCanvasSupported!="function"||!(0,tc.isHeicCanvasSupported)()?(ES=!1,!1):(ES=!0,!0)}function Xje(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=hA,onFileChange:s,onSuccess:a,onBatchSuccess:l}){e.dispatch(tc.store).addItems({files:Array.from(n),onChange:s,onSuccess:u=>{t?.[Ax]?.(u),a?.(u)},onBatchSuccess:l,onError:u=>i(typeof u=="string"?u:u?.message??""),additionalData:r,allowedTypes:o})}function Qje(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=hA,onFileChange:s,onSuccess:a,onBatchSuccess:l}){let u=Array.from(n),d=u.filter(g=>ace.includes(g.type)),f=u.filter(g=>!ace.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?.[Ax]?.(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 Jje(e){return pA(e),null}var TS=$le(e=>{let{settings:t,registry:o,stripExperimentalSettings:r=!1}=e,n=ice(t),i=uce(),s=Zje(),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,u=(0,sm.useMemo)(()=>{if(a&&t?.mediaUpload&&!l){let v=(i?Xje:Qje).bind(null,o,t);return v.__isMediaUploadInterceptor=!0,{...t,mediaUpload:v}}return t},[t,o,a,i,l]),{__experimentalUpdateSettings:d}=H((0,lce.useDispatch)(C));(0,sm.useEffect)(()=>{d({...u,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[u,r,d]);let f=(0,sm.useRef)(e.selection);f.current=e.selection;let p=(0,sm.useRef)(e.onChangeSelection??hA);p.current=e.onChangeSelection??hA;let h=(0,sm.useMemo)(()=>({getSelection:()=>f.current,onChangeSelection:(...b)=>p.current(...b)}),[]),m=(0,Id.jsxs)(cce.SlotFillProvider,{passthrough:!0,children:[!u?.isPreviewMode&&(0,Id.jsx)(mA.Register,{}),(0,Id.jsx)(BQ,{children:e.children})]}),g=(0,Id.jsxs)(fA.Provider,{value:h,children:[(0,Id.jsx)(Jje,{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}),e8e=e=>(0,Id.jsx)(TS,{...e,stripExperimentalSettings:!0,children:e.children}),dce=e8e;var EC=c(fe(),1),efe=c(Q(),1),qA=c(F(),1),tfe=c(U(),1);var tue=c(ce(),1),lb=c(F(),1),oue=c(G(),1),Ad=c(fe(),1),rue=c(U(),1),JU=c(Q(),1);var qce=c(Q(),1),XU=c(G(),1),fC=c(fe(),1),Zce=c(F(),1);var bA=c(Q(),1),gce=c(fe(),1);var pce=c(G(),1),mce=c(Tt(),1),Wa=c(ue(),1);var fce=c(Tt(),1);function t8e(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 o8e(e){let t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}function RS({clipboardData:e}){let t="",o="";try{t=e.getData("text/plain"),o=e.getData("text/html")}catch{return}o=t8e(o),o=o8e(o);let r=(0,fce.getFilesFromDataTransfer)(e);return r.length&&!r8e(r,o)?{files:r}:{html:o,plainText:t,files:[]}}function r8e(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 KU=Symbol("requiresWrapperOnCopy");function gA(e,t,o){let r=t,[n]=t;if(n&&o.select(Wa.store).getBlockType(n.name)[KU]){let{getBlockRootClientId:a,getBlockName:l,getBlockAttributes:u}=o.select(C),d=a(n.clientId),f=l(d);f&&(r=(0,Wa.createBlock)(f,u(d),r))}let i=(0,Wa.serialize)(r);e.clipboardData.setData("text/plain",n8e(i)),e.clipboardData.setData("text/html",i)}function hce(e,t){let{plainText:o,html:r,files:n}=RS(e),i=[];if(n.length){let s=(0,Wa.getBlockTransforms)("from");i=n.reduce((a,l)=>{let u=(0,Wa.findTransform)(s,d=>d.type==="files"&&d.isMatch([l]));return u&&a.push(u.transform([l])),a},[]).flat()}else i=(0,Wa.pasteHandler)({HTML:r,plainText:o,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}function n8e(e){return e=e.replace(/<br>/g,`
`),(0,mce.__unstableStripHTML)(e).trim().replace(/\n\n+/g,`
`)}function cr(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,pce.__)("Editor canvas")),o&&e.focus({preventScroll:!0}),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}function bce(){let e=(0,bA.useRegistry)(),t=(0,bA.useSelect)(o=>{let{getSelectedBlockClientId:r,canHostEditableRoot:n,isZoomOut:i}=H(o(C));return!i()&&n(r())},[]);return(0,gce.useRefEffect)(o=>{if(!t)return;let{getSelectedBlockClientId:r,hasMultiSelection:n,isMultiSelecting:i}=e.select(C);if(!cr(o,!0,{focus:!1}))return;let{activeElement:s}=o.ownerDocument,a=o.ownerDocument.defaultView.getSelection();return s!==o&&s?.isContentEditable&&o.contains(s)&&kr(s)===r()&&a.anchorNode&&s.contains(a.anchorNode)&&o.focus(),()=>{if(!(n()||i())&&(cr(o,!1),o.ownerDocument.activeElement===o)){let l=La(o.ownerDocument.defaultView.getSelection(),o);l&&kr(l)===r()&&l.focus()}}},[t,e])}var lC=c(io(),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!==lC.HOME&&r.keyCode!==lC.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===lC.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&&(cr(s,!0),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var BS=c(Tt(),1),YU=c(io(),1),yA=c(Q(),1),vA=c(fe(),1),cC=c(F(),1);var qU=c(E(),1);function wce(){let e=(0,cC.useRef)(),t=(0,cC.useRef)(),o=(0,cC.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,cC.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=BS.focus.tabbable.find(e.current);S.length&&(k?S[0]:S[S.length-1]).focus()}}let h=(0,qU.jsx)("div",{ref:t,tabIndex:"0",onFocus:p}),m=(0,qU.jsx)("div",{ref:o,tabIndex:"0",onFocus:p}),g=(0,vA.useRefEffect)(v=>{function y(w){if(w.defaultPrevented||w.keyCode!==YU.TAB||!o.current||!t.current)return;let{target:T,shiftKey:B}=w,R=B?"findPrevious":"findNext",I=BS.focus.tabbable[R](T),A=T.closest("[data-block]"),P=A&&I&&(wee(A,I)||Qc(A,I));if((0,BS.isFormElement)(I)&&P)return;let O=B?t:o;f.current=!0,O.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!==YU.TAB||w.target?.getAttribute("role")==="region"||e.current===w.target)return;let B=w.shiftKey?"findPrevious":"findNext",R=BS.focus.tabbable[B](w.target);(R===t.current||R===o.current)&&(w.preventDefault(),R.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 jr=c(Tt(),1),cu=c(io(),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 ZU(e,t,o,r){let n=jr.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"&&kr(a)&&jr.focus.focusable.find(a).filter(l=>!(0,jr.isFormElement)(l)).length!==0||!jr.focus.tabbable.isTabbableIndex(a)||a.isContentEditable&&a.contentEditable!=="true"&&kr(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,getNextBlockClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientId:n,getSelectionStart:i,getSettings:s,hasMultiSelection:a,__unstableIsFullySelected:l}=(0,SA.useSelect)(C),{selectBlock:u,multiSelect:d}=(0,SA.useDispatch)(C);return(0,Cce.useRefEffect)(f=>{let p;function h(){p=null}function m(b,v){let y=ZU(b,v,f);return y&&kr(y)}function g(b){if(b.defaultPrevented)return;let{keyCode:v,shiftKey:y,ctrlKey:k,altKey:S,metaKey:_}=b,x=b.target===f&&La(f.ownerDocument.defaultView.getSelection(),f)||b.target,w=v===cu.UP,T=v===cu.DOWN,B=v===cu.LEFT,R=v===cu.RIGHT,I=w||B,A=B||R,P=w||T,O=A||P,N=y||k||S||_,j=P?jr.isVerticalEdge:jr.isHorizontalEdge,{ownerDocument:D}=f,{defaultView:M}=D;if(!O||s().isPreviewMode)return;if(a()){if(y){let z=M.getSelection();if(l()&&(!z.rangeCount||z.isCollapsed)){let q=e(),J=t(),te=I?r(J):o(J);te&&(d(q,te),b.preventDefault())}return}if(!l())return;b.preventDefault(),I?u(e()):u(t(),-1);return}if(y&&n()&&!i().attributeKey){let z=n(),q=I?r(z):o(z);q&&(d(z,q),b.preventDefault());return}if(!s8e(x,v,N))return;P?p||(p=(0,jr.computeCaretRect)(M)):p=null;let V=(0,jr.isRTL)(x)?!I:I,{keepCaretInsideBlock:L}=s();if(y)j(x,I)&&(m(x,I)?cr(f,!0):f.contentEditable==="true"&&(M.getSelection().extend(x,I?0:x.childNodes.length),b.preventDefault()));else if(P&&(0,jr.isVerticalEdge)(x,I)&&(!S||(0,jr.isHorizontalEdge)(x,V))&&!L){let z=ZU(x,I,f,!0);z&&((0,jr.placeCaretAtVerticalEdge)(z,S?!I:I,S?void 0:p),b.preventDefault())}else if(A&&M.getSelection().isCollapsed&&(0,jr.isHorizontalEdge)(x,V)&&!L){let z=ZU(x,V,f);(0,jr.placeCaretAtHorizontalEdge)(z,I),b.preventDefault()}}return f.addEventListener("mousedown",h),f.addEventListener("keydown",g),()=>{f.removeEventListener("mousedown",h),f.removeEventListener("keydown",g)}},[])}var Tce=c(fe(),1),Rce=c(Q(),1),uu=c(io(),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(Tt(),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=kr(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 Mce(){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;cr(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),cr(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),PS=c(Ko(),1),Fce=c(Tt(),1);var{ownsSelection:a8e}=H(PS.privateApis);function Nce(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,startMultiSelect:r,stopMultiSelect:n}=(0,wA.useDispatch)(C),{getBlockParents:i,getBlockSelectionStart:s,isMultiSelecting:a,getSelectionStart:l,getSelectionEnd:u,getSelectedBlockClientId:d,canHostEditableRoot:f}=H((0,wA.useSelect)(C));return(0,Vce.useRefEffect)(p=>{let{ownerDocument:h}=p,{defaultView:m}=h,g=!1;function b(_){g=_.detail===3,_.shiftKey&&r()}function v(){g=!1}function y(_){let x=m.getSelection();if(!x.rangeCount)return;let w=Nce(x),T=Dce(x,g);if(!p.contains(w)||!p.contains(T))return;let B=_.shiftKey&&_.type==="mouseup";if(x.isCollapsed&&!B){let P=kr(w);if(!a()&&P&&P===d()&&f(P)){cr(p,!0);let{activeElement:O}=h;O!==p&&O?.isContentEditable&&p.contains(O)&&kr(O)===P&&p.focus();return}if(p.contentEditable==="true"&&!a()){cr(p,!1);let O=w.nodeType===w.ELEMENT_NODE?w:w.parentElement;O=O?.closest("[contenteditable]"),O?.focus()}return}let R=kr(w),I=kr(T);if(B){let P=s(),O=kr(_.target),N=O!==I;(R===I&&x.isCollapsed||!I||N)&&(I=O),R!==P&&(R=P)}if(R===void 0&&I===void 0){cr(p,!1);return}if(_.type==="mouseup"&&!_.shiftKey&&!a()&&R===I){let P=kr(_.target);if(P&&P!==R){x.removeAllRanges();return}}if(R===I)if(a())e(R,R);else{let P=!x.isCollapsed&&(xA(w)||xA(T));if(P&&(P.contentEditable!=="true"||h.activeElement!==P&&!a8e(P))){let O=x.getRangeAt(0),N=(0,PS.create)({element:P,range:O,__unstableIsEditableTree:!0}),j={start:{clientId:R,attributeKey:P.dataset.wpBlockAttributeKey,offset:N.start??0},end:{clientId:R,attributeKey:P.dataset.wpBlockAttributeKey,offset:N.end??N.text.length}},{start:D,end:M}=j,V=l(),L=u();(V.clientId!==D.clientId||L.clientId!==M.clientId||V.attributeKey!==D.attributeKey||V.offset!==D.offset||L.offset!==M.offset)&&o(j)}else t(R)}else{let P=[...i(R),R],O=[...i(I),I],N=l8e(P,O);if(!(N>=P.length||N>=O.length)&&(P[N]!==R||O[N]!==I)){e(P[N],O[N]);return}let D=xA(w),M=xA(T);if(D&&M){let V=x.getRangeAt(0),L=(0,PS.create)({element:D,range:V,__unstableIsEditableTree:!0}),z=(0,PS.create)({element:M,range:V,__unstableIsEditableTree:!0}),q=L.start??L.end,J=z.start??z.end;o({start:{clientId:R,attributeKey:D.dataset.wpBlockAttributeKey,offset:q},end:{clientId:I,attributeKey:M.dataset.wpBlockAttributeKey,offset:J}})}else e(R,I)}}function k(_){let x=m.getSelection();if(!x.rangeCount||x.isCollapsed)return;let w=kr(Nce(x)),T=kr(Dce(x,g));w!==T&&y(_)}h.addEventListener("selectionchange",y);function S(_){y(_),n()}return m.addEventListener("mouseup",S),p.addEventListener("mousedown",b),p.addEventListener("keydown",v),h.addEventListener("copy",k,!0),h.addEventListener("cut",k,!0),h.addEventListener("paste",k,!0),()=>{h.removeEventListener("selectionchange",y),m.removeEventListener("mouseup",S),p.removeEventListener("mousedown",b),p.removeEventListener("keydown",v),h.removeEventListener("copy",k,!0),h.removeEventListener("cut",k,!0),h.removeEventListener("paste",k,!0)}},[e,t,o,i])}var CA=c(Q(),1),jce=c(fe(),1);function Hce(){let{selectBlock:e}=(0,CA.useDispatch)(C),{isSelectionEnabled:t,getBlockSelectionStart:o,getSelectionStart:r,hasMultiSelection:n}=(0,CA.useSelect)(C);return(0,jce.useRefEffect)(i=>{function s(a){if(!t()||a.button!==0)return;let l=o(),u=kr(a.target);if(a.shiftKey){if(l&&l!==u){let{clientId:d,attributeKey:f}=r();cr(i,!0,{focus:!!f});let{ownerDocument:p}=i,h=p.defaultView.getSelection(),m=!f&&p.getElementById(`block-${d}`);if(m&&!(h.anchorNode&&m.contains(h.anchorNode))){let g=m.compareDocumentPosition(a.target)&i.DOCUMENT_POSITION_FOLLOWING;h.setPosition(m,g?0:m.childNodes.length)}}}else n()&&e(u)}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[e,t,o,r,n])}var EA=c(Q(),1),Uce=c(fe(),1),Od=c(io(),1),oc=c(ue(),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(),B=u();if(T.attributeKey===B.attributeKey){let R=d(x)[T.attributeKey],I=(0,oc.getBlockTransforms)("from").filter(({type:P})=>P==="enter"),A=(0,oc.findTransform)(I,P=>P.regExp.test(R));if(A){f(x,A.transform({content:R})),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?(cr(v,!1),_.preventDefault(),e()?f(t(),(0,oc.createBlock)((0,oc.getDefaultBlockName)())):p()):_.keyCode===Od.BACKSPACE||_.keyCode===Od.DELETE?(cr(v,!1),_.preventDefault(),e()?h(t()):r()?m(_.keyCode===Od.DELETE):g()):_.key.length===1&&!(_.metaKey||_.ctrlKey)&&(cr(v,!1),r()?m(_.keyCode===Od.DELETE):(_.preventDefault(),v.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function S(_){n()&&(cr(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(ue(),1),TA=c(Tt(),1),OS=c(Q(),1),Yce=c(fe(),1);var Wce=c(F(),1),$ce=c(ue(),1),uC=c(Q(),1),$a=c(G(),1),Kce=c(as(),1);function IS(){let{getBlockName:e}=(0,uC.useSelect)(C),{getBlockType:t}=(0,uC.useSelect)($ce.store),{createSuccessNotice:o}=(0,uC.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 dC(){let e=(0,OS.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:o,hasMultiSelection:r,getSettings:n,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:f}=(0,OS.useSelect)(C),{flashBlock:p,removeBlocks:h,replaceBlocks:m,__unstableDeleteSelection:g,__unstableExpandSelection:b,__unstableSplitSelection:v}=(0,OS.useDispatch)(C),y=IS();return(0,Yce.useRefEffect)(k=>{function S(_){if(_.defaultPrevented)return;let x=o();if(x.length===0)return;if(!r()){let{target:I}=_,{ownerDocument:A}=I;if(_.type==="copy"||_.type==="cut"?(0,TA.documentHasUncollapsedSelection)(A):(0,TA.documentHasSelection)(A)&&!A.activeElement.isContentEditable)return}let{activeElement:w}=_.target.ownerDocument;if(!k.contains(w))return;let T=l(),B=a()||s(),R=!B&&!T;if(_.type==="copy"||_.type==="cut")if(_.preventDefault(),x.length===1&&p(x[0]),R)b();else{y(_.type,x);let I;if(B)I=t(x);else{let[A,P]=u(),O=t(x.slice(1,x.length-1));I=[A,...O,P]}gA(_,I,e)}if(_.type==="cut")B&&!R?h(x):(cr(_.target.ownerDocument.activeElement,!1),g());else if(_.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:I,mediaUpload:A}=n();if(_.clipboardData.getData("rich-text")==="true")return;let{plainText:O,html:N,files:j}=RS(_),D=s(),M=[];if(j.length){if(!A){_.preventDefault();return}let q=(0,du.getBlockTransforms)("from");M=j.reduce((J,te)=>{let ee=(0,du.findTransform)(q,W=>W.type==="files"&&W.isMatch([te]));return ee&&J.push(ee.transform([te])),J},[]).flat()}else M=(0,du.pasteHandler)({HTML:N,plainText:O,mode:D?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:I});if(typeof M=="string")return;if(D){m(x,M,M.length-1,-1),_.preventDefault();return}if(!r()&&!(0,du.hasBlockSupport)(i(x[0]),"splitting",!1)&&!_.__deprecatedOnSplit)return;let[V]=x,L=f(V),z=[];for(let q of M)if(d(q.name,L))z.push(q);else{let J=i(L),te=q.name!==J?(0,du.switchToBlockType)(q,J):[q];if(!te)return;for(let ee of te)for(let W of ee.innerBlocks)z.push(W)}v(z),_.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 AS=c(E(),1);function QU(){let[e,t,o]=wce(),r=(0,qce.useSelect)(n=>n(C).hasMultiSelection(),[]);return[e,(0,fC.useMergeRefs)([t,Nee(),dC(),Gce(),bce(),Sce(),Mce(),zce(),Hce(),xce(),Ace(),Ece(),Bce(),(0,fC.useRefEffect)(n=>(n.tabIndex=0,n.dataset.hasMultiSelection=r,r?(n.setAttribute("aria-label",(0,XU.__)("Multiple selected blocks")),()=>{delete n.dataset.hasMultiSelection,n.contentEditable==="true"?n.setAttribute("aria-label",(0,XU.__)("Editor canvas")):n.removeAttribute("aria-label")}):()=>{delete n.dataset.hasMultiSelection}),[r])]),o]}function c8e({children:e,...t},o){let[r,n,i]=QU();return(0,AS.jsxs)(AS.Fragment,{children:[r,(0,AS.jsx)("div",{...t,ref:(0,fC.useMergeRefs)([n,o]),className:K(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 gs=c(F(),1),pC=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,pC.useResizeObserver)(),[s,{width:a,height:l}]=(0,pC.useResizeObserver)(),u=(0,gs.useRef)(0),d=r!==1,f=(0,pC.useReducedMotion)(),p=r==="auto-scaled",h=(0,gs.useRef)(!1),m=(0,gs.useRef)(null);(0,gs.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,gs.useRef)({scaleValue:b,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),y=(0,gs.useRef)({scaleValue:b,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),k=(0,gs.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,gs.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,gs.useRef)(!1);return(0,gs.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,gs.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,JU.useSelect)(P=>{let O=P(C).getSettings();return{resolvedAssets:O.__unstableResolvedAssets,isPreviewMode:O.isPreviewMode}},[]),[f,p]=(0,lb.useState)(),[h,m]=(0,lb.useState)([]),[g,b,v]=QU(),y=(0,Ad.useRefEffect)(P=>{let O;function N(V){V.preventDefault()}function j(V){V.target.tagName==="A"&&V.target.getAttribute("href")?.startsWith("#")&&(V.preventDefault(),O.defaultView.location.hash=V.target.getAttribute("href").slice(1))}let{ownerDocument:D}=P;m(Array.from(D.body.classList).filter(V=>V.startsWith("admin-color-")||V.startsWith("post-type-")||V==="wp-embed-responsive"));function M(){let{contentDocument:V}=P,{documentElement:L}=V;O=V,p(V),L.classList.add("block-editor-iframe__html"),V.dir=D.dir;for(let z of Xce())V.getElementById(z.id)||(V.head.appendChild(z.cloneNode(!0)),d||console.warn(`${z.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,z));O.addEventListener("dragover",N,!1),O.addEventListener("drop",N,!1),O.addEventListener("click",j)}return P.addEventListener("load",M),()=>{p(void 0),P.removeEventListener("load",M),O?.removeEventListener("dragover",N),O?.removeEventListener("drop",N),O?.removeEventListener("click",j)}},[]),{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]),B=(0,Ad.useRefEffect)(P=>P.ownerDocument.defaultView?(T(P),()=>T(null)):()=>{},[T]),R=h8e(u),I=o>=0&&!d,A=(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:R,title:a,onKeyDown:P=>{if(l.onKeyDown&&l.onKeyDown(P),P.currentTarget.ownerDocument!==P.target.ownerDocument){let{stopPropagation:O}=P.nativeEvent;P.nativeEvent.stopPropagation=()=>{},P.stopPropagation(),P.nativeEvent.stopPropagation=O,nue(P,window.KeyboardEvent,P.currentTarget)}},children:f&&(0,lb.createPortal)((0,rc.jsxs)("body",{ref:B,className:K("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:K("block-editor-iframe__scale-container",_&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":_&&`${x}px`},children:A})]})}function b8e(e,t){return(0,JU.useSelect)(r=>r(C).getSettings().__internalIsInitialized,[])?(0,rc.jsx)(g8e,{...e,forwardedRef:t}):null}var LS=(0,lb.forwardRef)(b8e);var Qde=c(U(),1),jS=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 e7(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=e7(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=e7(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})},zS=FHe;var dm=c(E(),1);Kf([Yf,Hy]);function zHe(e,t){return(0,jS.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=Lo(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,jS.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[zS(s.filter(l=>l?.css),t,o),s.filter(l=>l.__unstableType==="svgs").map(l=>l.assets).join("")]},[e,r,t,o]);return(0,dm.jsxs)(dm.Fragment,{children:[(0,dm.jsx)("style",{ref:zHe(n,t)}),n.map((s,a)=>(0,dm.jsx)("style",{children:s},a)),(0,dm.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,jS.memo)(jHe);var Ka=c(E(),1),HHe=(0,qA.memo)(HS),N7=2e3,UHe=[];function GHe({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=UHe}){e||(e=t);let[n,{height:i}]=(0,EC.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>N7?N7*l:void 0,minHeight:o},children:(0,Ka.jsxs)(LS,{contentRef:(0,EC.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:N7,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,EC.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 US=c(F(),1),sfe=c(nfe(),1),ife=(0,sfe.createQueue)();function afe({children:e,placeholder:t}){let[o,r]=(0,US.useState)(!1);return(0,US.useEffect)(()=>{let n={};return ife.add(n,()=>{(0,US.flushSync)(()=>{r(!0)})}),()=>{ife.cancel(n)}},[]),o?e:t}var pb=c(E(),1),WHe=[];function $He({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=WHe,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,D7.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],(0,D7.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,V7.useSelect)(u=>u(C).getSettings(),[]),a=(0,fb.useMemo)(()=>({...s,focusMode:!1,isPreviewMode:!0}),[s]),l=(0,fb.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,pb.jsx)(TS,{value:l,settings:a,children:(0,pb.jsx)(ofe,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var lfe=(0,fb.memo)($He);lfe.Async=afe;var bs=lfe;function cfe({blocks:e,props:t={},layout:o}){let r=(0,V7.useSelect)(u=>u(C).getSettings(),[]),n=(0,fb.useMemo)(()=>({...r,styles:void 0,focusMode:!1,isPreviewMode:!0}),[r]),i=(0,ZA.useDisabled)(),s=(0,ZA.useMergeRefs)([t.ref,i]),a=(0,fb.useMemo)(()=>Array.isArray(e)?e:[e],[e]),l=(0,pb.jsxs)(TS,{value:a,settings:n,children:[(0,pb.jsx)(Ld,{}),(0,pb.jsx)(TC,{renderAppender:!1,layout:o})]});return{...t,ref:s,className:K(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}var fm=c(E(),1);function KHe({item:e}){let{name:t,title:o,icon:r,description:n,initialAttributes:i,example:s}=e,a=(0,GS.isReusableBlock)(e),l=(0,ufe.useMemo)(()=>s?(0,GS.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks,innerContent:s.innerContent}):(0,GS.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,fm.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,fm.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,fm.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,fm.jsx)(bs,{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,fm.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,dfe.__)("No preview available.")})}),!a&&(0,fm.jsx)(aC,{title:o,icon:r,description:n})]})}var ffe=KHe;var XS=c(G(),1),Dd=c(F(),1),W7=c(fe(),1);var Efe=c(ue(),1),Tfe=c(fe(),1);var ZS=c(F(),1),pm=c(ue(),1),wfe=c(U(),1),RC=c(io(),1);var Sfe=c(U(),1),kfe=c(F(),1);var WS=c(F(),1),pfe=c(G(),1),mfe=c(Qr(),1),hfe=c(E(),1);function YHe(e,t){let[o,r]=(0,WS.useState)(!1);return(0,WS.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 F7=(0,WS.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 z7=(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 j7=(0,vfe.forwardRef)(ZHe);var H7=c(E(),1);function XHe({key:e,children:t}){return(0,H7.jsx)(kfe.Fragment,{children:t},e)}function QHe({children:e}){return(0,H7.jsx)(Sfe.Composite,{focusShift:!0,focusWrap:"horizontal",render:XHe,children:e})}var $S=QHe;var _fe=c(U(),1),e2=c(ue(),1),t2=c(Q(),1),xfe=c(F(),1);var YS=c(G(),1),KS=c(U(),1);var ic=c(E(),1);function JA({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,YS.__)("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)(KS.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,ic.jsx)(KS.FlexItem,{children:t?(0,ic.jsx)(Et,{icon:t}):n||(0,YS.sprintf)((0,YS._n)("%d block","%d blocks",e),e)}),(0,ic.jsx)(KS.FlexItem,{children:(0,ic.jsx)(Et,{icon:zx})}),r&&(0,ic.jsx)(KS.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,ic.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var U7=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===Yo.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,U7.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,U7.jsx)(JA,{count:t.length,icon:o||!n&&s,isPattern:!!n}),children:({onDraggableStart:f,onDraggableEnd:p})=>r({draggable:!0,onDragStart:f,onDragEnd:p})})},qS=JHe;var Md=c(E(),1);function eUe({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,ZS.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},u=(0,ZS.useMemo)(()=>[(0,pm.createBlock)(o.name,o.initialAttributes,(0,pm.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),o.innerContent)],[o.name,o.initialAttributes,o.innerBlocks,o.innerContent]),d=(0,pm.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,pm.isTemplatePart)(o);return(0,Md.jsx)(qS,{isEnabled:i&&!o.isDisabled,blocks:u,icon:o.icon,children:({draggable:f,onDragStart:p,onDragEnd:h})=>(0,Md.jsx)("div",{className:K("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,Md.jsxs)(j7,{isFirst:t,className:K("block-editor-block-types-list__item",e),disabled:o.isDisabled,onClick:m=>{m.preventDefault(),r(o,(0,RC.isAppleOS)()?m.metaKey:m.ctrlKey),n(null)},onKeyDown:m=>{let{keyCode:g}=m;g===RC.ENTER&&(m.preventDefault(),r(o,(0,RC.isAppleOS)()?m.metaKey:m.ctrlKey),n(null))},onMouseEnter:()=>{a.current||n(o)},onMouseLeave:()=>n(null),...s,children:[(0,Md.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,Md.jsx)(Et,{icon:o.icon,showColors:!0})}),(0,Md.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,Md.jsx)(wfe.__experimentalTruncate,{numberOfLines:3,children:o.title})})]})})})}var Cfe=(0,ZS.memo)(eUe);var BC=c(E(),1);function tUe(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,BC.jsxs)(F7,{className:s,"aria-label":n,children:[tUe(e,3).map((l,u)=>(0,BC.jsx)(z7,{children:l.map((d,f)=>(0,BC.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 mb=Rfe;var Bfe=c(U(),1),Nd=c(E(),1);function oUe({title:e,icon:t,children:o}){return(0,Nd.jsxs)(Nd.Fragment,{children:[(0,Nd.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,Nd.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,Nd.jsx)(Bfe.Icon,{icon:t})]}),(0,Nd.jsx)("div",{className:"block-editor-inserter__panel-content",children:o})]})}var mm=oUe;var Pfe=c(G(),1),G7=c(E(),1);function rUe({children:e=(0,Pfe.__)("No results found.")}){return(0,G7.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,G7.jsx)("p",{children:e})})}var sc=rUe;var pn=c(E(),1),nUe=e=>e.name.split("/")[0],iUe=6,sUe=[];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,iUe),[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=>nUe(b)===g),m[g].length===0&&delete m[g]}),m},[e,t]);(0,Dd.useEffect)(()=>()=>n(null),[]);let d=(0,W7.useAsyncList)(o),f=o.length===d.length,p=(0,Dd.useMemo)(()=>Object.entries(t),[t]),h=(0,W7.useAsyncList)(f?p:sUe);return(0,pn.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,pn.jsx)(mm,{title:(0,XS._x)("Most used","blocks"),children:(0,pn.jsx)(mb,{items:a,onSelect:r,onHover:n,label:(0,XS._x)("Most used","blocks")})}),d.map(m=>{let g=e.filter(b=>b.category===m.slug);return!g||!g.length?null:(0,pn.jsx)(mm,{title:m.title,icon:m.icon,children:(0,pn.jsx)(mb,{items:g,onSelect:r,onHover:n,label:m.title})},m.slug)}),f&&l.length>0&&(0,pn.jsx)(mm,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,XS.__)("Uncategorized"),children:(0,pn.jsx)(mb,{items:l,onSelect:r,onHover:n,label:(0,XS.__)("Uncategorized")})}),h.map(([m,g])=>{let b=u[m];return!b||!b.length?null:(0,pn.jsx)(mm,{title:g.title,icon:g.icon,children:(0,pn.jsx)(mb,{items:b,onSelect:r,onHover:n,label:g.title})},m)})]})}function aUe({rootClientId:e,onInsert:t,onHover:o,showMostUsedBlocks:r},n){let[i,s,a,l]=Sp(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)($S,{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)(aUe);var Jfe=c(F(),1),epe=c(fe(),1),tpe=c(U(),1),ope=c(G(),1);var Kfe=c(U(),1),X7=c(F(),1),Yfe=c(G(),1);var o2=c(U(),1),$7=c(G(),1),Vd=c(E(),1);function lUe({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 cUe({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,$7.__)("Search"),placeholder:(0,$7.__)("Search")})})}function uUe({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)(cUe,{searchValue:r,setSearchValue:n}),!r&&(0,Vd.jsx)(lUe,{selectedCategory:e,patternCategories:t,onClickCategory:o})]})}var Afe=uUe;var Fd=c(F(),1),ok=c(G(),1),Hfe=c(fe(),1),Ufe=c(U(),1),Gfe=c(Qr(),1);var Lfe=c(ue(),1),mu=c(F(),1),PC=c(U(),1);var Mfe=c(fe(),1),Nfe=c(G(),1);var ys=c(U(),1),Ya=c(G(),1),hi=c(E(),1);function QS({currentPage:e,numPages:t,changePage:o,totalItems:r}){return(0,hi.jsxs)(ys.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,hi.jsx)(ys.__experimentalText,{variant:"muted",children:(0,Ya.sprintf)((0,Ya._n)("%s item","%s items",r),r)}),t>1&&(0,hi.jsxs)(ys.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,hi.jsxs)(ys.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,hi.jsx)(ys.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,hi.jsx)("span",{children:"\xAB"})}),(0,hi.jsx)(ys.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,hi.jsx)("span",{children:"\u2039"})})]}),(0,hi.jsx)(ys.__experimentalText,{variant:"muted",children:(0,Ya.sprintf)((0,Ya._x)("%1$s of %2$s","paging"),e,t)}),(0,hi.jsxs)(ys.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,hi.jsx)(ys.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,hi.jsx)("span",{children:"\u203A"})}),(0,hi.jsx)(ys.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,hi.jsx)("span",{children:"\xBB"})})]})]})]})}var Eo=c(E(),1),dUe=({showTooltip:e,title:t,children:o})=>e?(0,Eo.jsxs)(kt.Root,{children:[(0,Eo.jsx)(kt.Trigger,{render:o}),(0,Eo.jsx)(kt.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,Mfe.useInstanceId)(Dfe)}`,m=o.type===Yo.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)(qS,{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)(dUe,{showTooltip:i&&!m,title:o.title,children:(0,Eo.jsxs)(PC.Composite.Item,{render:(0,Eo.jsx)("div",{role:"option","aria-label":o.title,"aria-describedby":o.description?h:void 0,className:K("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":o.type===Yo.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)(bs.Async,{placeholder:(0,Eo.jsx)(fUe,{}),children:(0,Eo.jsx)(bs,{blocks:d,viewportWidth:f})}),(!i||m)&&(0,Eo.jsxs)(PC.__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 fUe(){return(0,Eo.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function pUe({isDraggable:e,blockPatterns:t,onHover:o,onClickPattern:r,orientation:n,category:i,label:s=(0,Nfe.__)("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)(PC.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)(QS,{...l})]})}var hu=(0,mu.forwardRef)(pUe);var hb=c(Q(),1),Ffe=c(ue(),1),r2=c(G(),1),zfe=c(Qr(),1),K7=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 mUe({rootClientId:e="",insertionIndex:t,clientId:o,isAppender:r,onSelect:n,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){let a=(0,hb.useRegistry)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:u,isBlockInsertionPointVisible:d}=H((0,hb.useSelect)(C)),{destinationRootClientId:f,destinationIndex:p}=(0,hb.useSelect)(S=>{let{getSelectedBlockClientId:_,getBlockRootClientId:x,getBlockIndex:w,getBlockOrder:T,getInsertionPoint:B}=H(S(C)),R=_(),I=e,A,P=B();return t!==void 0?A=t:P&&P.hasOwnProperty("index")?(I=P?.rootClientId?P.rootClientId:e,A=P.index):o?A=w(o):!r&&R?(I=x(R),A=w(R)+1):A=T(I).length,{destinationRootClientId:I,destinationIndex:A}},[e,t,o,r]),{replaceBlocks:h,insertBlocks:m,showInsertionPoint:g,hideInsertionPoint:b,setLastFocus:v}=H((0,hb.useDispatch)(C)),y=(0,K7.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 B=Array.isArray(S)?S.length:1,R=(0,r2.sprintf)((0,r2._n)("%d block added.","%d blocks added.",B),B);(0,zfe.speak)(R),n&&n(S)},[r,l,h,m,f,p,n,i,s,v,a]),k=(0,K7.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 hm=mUe;var JS=c(F(),1),n2=c(ue(),1),ek=c(Q(),1),i2=c(G(),1),jfe=c(as(),1);var hUe=(e,t,o,r)=>{let n=(0,JS.useMemo)(()=>({[pp]:!!r}),[r]),i=(0,ek.useSelect)(m=>{let{getSettings:g}=H(m(C));return g()[fT]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,ek.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,JS.useMemo)(()=>a.filter(m=>!(m.categories?.includes("navigation")&&!i)),[a,i]),{getClosestAllowedInsertionPointForPattern:d}=H((0,ek.useSelect)(C)),f=(0,JS.useMemo)(()=>{let m=[...s];return l?.forEach(g=>{m.find(b=>b.name===g.name)||m.push(g)}),m},[s,l]),{createSuccessNotice:p}=(0,ek.useDispatch)(jfe.store),h=(0,JS.useCallback)((m,g)=>{let b=r?t:d(m,t);if(b===null)return;let v=m.type===Yo.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]},gm=hUe;var tk=c(F(),1),Y7=c(fe(),1),q7=c(Tt(),1),s2=20;function a2(e,t,o,r=""){let[n,i]=(0,tk.useState)(1),s=(0,Y7.usePrevious)(t),a=(0,Y7.usePrevious)(r);(s!==t||a!==r)&&n!==1&&i(1);let l=e.length,u=n-1,d=(0,tk.useMemo)(()=>e.slice(u*s2,u*s2+s2),[u,e]),f=Math.ceil(e.length/s2),p=h=>{(0,q7.getScrollContainer)(o?.current)?.scrollTo(0,0),i(h)};return(0,tk.useEffect)(function(){(0,q7.getScrollContainer)(o?.current)?.scrollTo(0,0)},[t,o]),{totalItems:l,categoryPatterns:d,numPages:f,changePage:p,currentPage:n}}var ac=c(E(),1);function gUe({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,ok.sprintf)((0,ok._n)("%d pattern found","%d patterns found",t),t)}):null}function bUe({searchValue:e,selectedCategory:t,patternCategories:o,rootClientId:r,onModalClose:n}){let i=(0,Fd.useRef)(),s=(0,Hfe.useDebounce)(Gfe.speak,500),[a,l]=hm({rootClientId:r,shouldFocusBlock:!0}),[u,,d]=gm(l,a,t),f=(0,Fd.useMemo)(()=>o.map(v=>v.name),[o]),p=(0,Fd.useMemo)(()=>{let v=u.filter(y=>{if(t===gg.name||t===fd.name&&y.type===Yo.user||t===cv.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?Mw(v,e):v},[e,u,t,f]);(0,Fd.useEffect)(()=>{if(!e)return;let v=p.length,y=(0,ok.sprintf)((0,ok._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)(gUe,{filterValue:e,filteredBlockPatternsLength:p.length}),(0,ac.jsx)($S,{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)(QS,{...h})]})})]})}var Wfe=bUe;var Z7=c(F(),1),rk=c(G(),1),$fe=c(Qr(),1);function yUe(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(o=>t.some(r=>r.name===o))}function nk(e,t="all"){let[o,r]=gm(void 0,e),n=(0,Z7.useMemo)(()=>t==="all"?o:o.filter(s=>!RB(s,t)),[t,o]);return(0,Z7.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=>!yUe(a,r))&&!s.find(a=>a.name==="uncategorized")&&s.push({name:"uncategorized",label:(0,rk._x)("Uncategorized")}),n.some(a=>a.blockTypes?.includes("core/post-content"))&&s.unshift(cv),n.some(a=>a.type===Yo.user)&&s.unshift(fd),n.length>0&&s.unshift({name:gg.name,label:gg.label}),(0,$fe.speak)((0,rk.sprintf)((0,rk._n)("%d category button displayed.","%d category buttons displayed.",s.length),s.length)),s},[r,n])}var gb=c(E(),1);function vUe({initialCategory:e,rootClientId:t,onModalClose:o}){let[r,n]=(0,X7.useState)(""),[i,s]=(0,X7.useState)(e?.name),a=nk(t);return(0,gb.jsxs)("div",{className:"block-editor-block-patterns-explorer",children:[(0,gb.jsx)(Afe,{selectedCategory:i,patternCategories:a,onClickCategory:s,searchValue:r,setSearchValue:n}),(0,gb.jsx)(Wfe,{searchValue:r,selectedCategory:i,patternCategories:a,rootClientId:t,onModalClose:o})]})}function SUe({onModalClose:e,...t}){return(0,gb.jsx)(Kfe.Modal,{title:(0,Yfe.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,gb.jsx)(vUe,{onModalClose:e,...t})})}var qfe=SUe;var ik=c(G(),1),qo=c(U(),1);var Tn=c(E(),1);function kUe({title:e}){return(0,Tn.jsx)(qo.__experimentalVStack,{spacing:0,children:(0,Tn.jsx)(qo.__experimentalView,{children:(0,Tn.jsx)(qo.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Tn.jsxs)(qo.__experimentalHStack,{spacing:2,children:[(0,Tn.jsx)(qo.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,ik.isRTL)()?un:Ti,size:"small",label:(0,ik.__)("Back")}),(0,Tn.jsx)(qo.__experimentalSpacer,{children:(0,Tn.jsx)(qo.__experimentalHeading,{level:5,children:e})})]})})})})}function l2({categories:e,children:t,screenClassName:o}){return(0,Tn.jsxs)(qo.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,Tn.jsx)(qo.Navigator.Screen,{path:"/",children:(0,Tn.jsx)(qo.__experimentalItemGroup,{children:e.map(r=>(0,Tn.jsx)(qo.Navigator.Button,{path:`/category/${r.name}`,as:qo.__experimentalItem,isAction:!0,children:(0,Tn.jsxs)(qo.__experimentalHStack,{children:[(0,Tn.jsx)(qo.FlexBlock,{children:r.label}),(0,Tn.jsx)(gt,{icon:(0,ik.isRTL)()?Ti:un})]})},r.name))})}),e.map(r=>(0,Tn.jsxs)(qo.Navigator.Screen,{className:o,path:`/category/${r.name}`,children:[(0,Tn.jsx)(kUe,{title:(0,ik.__)("Back")}),t(r)]},r.name))]})}var qa=c(F(),1),Q7=c(G(),1),lc=c(U(),1);var Ss=c(U(),1),vs=c(G(),1);var c2=c(F(),1);var Yn=c(E(),1),Zfe=e=>e!=="all"&&e!=="user",_Ue=e=>e.name===fd.name,xUe=[{value:"all",label:(0,vs._x)("All","patterns")},{value:Yo.directory,label:(0,vs.__)("Pattern Directory")},{value:Yo.theme,label:(0,vs.__)("Theme & Plugins")},{value:Yo.user,label:(0,vs.__)("User")}];function Xfe({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:o,patternSourceFilter:r,scrollContainerRef:n,category:i}){let s=i.name===fd.name?Yo.user:r,a=Zfe(s),l=_Ue(i),u=(0,c2.useMemo)(()=>[{value:"all",label:(0,vs._x)("All","patterns")},{value:xw.full,label:(0,vs._x)("Synced","patterns"),disabled:a},{value:xw.unsynced,label:(0,vs._x)("Not synced","patterns"),disabled:a}],[a]);function d(f){t(f),Zfe(f)&&e("all")}return(0,Yn.jsx)(Yn.Fragment,{children:(0,Yn.jsx)(Ss.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,vs.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,Yn.jsx)(gt,{icon:(0,Yn.jsx)(Ss.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yn.jsx)(Ss.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,Yn.jsxs)(Yn.Fragment,{children:[!l&&(0,Yn.jsx)(Ss.MenuGroup,{label:(0,vs.__)("Source"),children:(0,Yn.jsx)(Ss.MenuItemsChoice,{choices:xUe,onSelect:f=>{d(f),n.current?.scrollTo(0,0)},value:s})}),(0,Yn.jsx)(Ss.MenuGroup,{label:(0,vs.__)("Type"),children:(0,Yn.jsx)(Ss.MenuItemsChoice,{choices:u,onSelect:f=>{e(f),n.current?.scrollTo(0,0)},value:o})}),(0,Yn.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,c2.createInterpolateElement)((0,vs.__)("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,Yn.jsx)(Ss.ExternalLink,{href:(0,vs.__)("https://wordpress.org/patterns/")})})})]})})})}var Fi=c(E(),1),wUe=()=>{};function u2({rootClientId:e,onInsert:t,onHover:o=wUe,category:r,showTitlesAsTooltip:n}){let[i,,s]=gm(t,e,r?.name),[a,l]=(0,qa.useState)("all"),[u,d]=(0,qa.useState)("all"),f=nk(e,u),p=(0,qa.useRef)(),h=(0,qa.useMemo)(()=>i.filter(y=>RB(y,u,a)?!1:r.name===gg.name||r.name===fd.name&&y.type===Yo.user||r.name===cv.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,Fi.jsxs)(Fi.Fragment,{children:[(0,Fi.jsxs)(lc.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,Fi.jsxs)(lc.__experimentalHStack,{children:[(0,Fi.jsx)(lc.FlexBlock,{children:(0,Fi.jsx)(lc.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,Fi.jsx)(Xfe,{patternSyncFilter:a,patternSourceFilter:u,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:p,category:r})]}),!h.length&&(0,Fi.jsx)(lc.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,Q7.__)("No results found")})]}),h.length>0&&(0,Fi.jsxs)(Fi.Fragment,{children:[(0,Fi.jsx)(lc.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,Q7.__)("Drag and drop patterns into the canvas.")}),(0,Fi.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 bb=c(E(),1),{Tabs:d2}=H(p2.privateApis);function CUe({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,bb.jsxs)(d2,{selectOnMove:!1,selectedTabId:l,orientation:"vertical",onSelect:p=>{o(e.find(h=>h.name===p))},activeTabId:u,onActiveTabIdChange:d,children:[(0,bb.jsx)(d2.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(p=>(0,bb.jsx)(d2.Tab,{tabId:p.name,"aria-current":p===t?"true":void 0,children:p.label},p.name))}),e.map(p=>(0,bb.jsx)(d2.TabPanel,{tabId:p.name,focusable:!1,children:(0,bb.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=CUe;var Zs=c(E(),1);function EUe({onSelectCategory:e,selectedCategory:t,onInsert:o,rootClientId:r,children:n}){let[i,s]=(0,Jfe.useState)(!1),a=nk(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=EUe;var xpe=c(G(),1),wpe=c(fe(),1),Cpe=c(U(),1),sk=c(F(),1);var yu=c(U(),1),dr=c(G(),1),bi=c(F(),1),OC=c(fe(),1),Spe=c(Q(),1),kpe=c(Tt(),1),_pe=c(as(),1);var dpe=c(U(),1),fpe=c(G(),1);var ur=c(U(),1),gi=c(G(),1),gu=c(F(),1),e9=c(ue(),1);var IC=c(Q(),1),ape=c(as(),1),lpe=c(J7(),1),cpe=c(Fs(),1);var ipe=c(ue(),1),spe=c(E(),1),TUe={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=TUe[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 Yt=c(E(),1),RUe=["image"],BUe={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function PUe({category:e,media:t,onDetach:o}){if(!e.getReportUrl&&!o)return null;let r=e.getReportUrl?.(t);return(0,Yt.jsx)(ur.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,gi.__)("Options"),popoverProps:BUe,icon:zs,children:()=>(0,Yt.jsxs)(ur.MenuGroup,{children:[r&&(0,Yt.jsx)(ur.MenuItem,{onClick:()=>window.open(r,"_blank").focus(),icon:x3,children:(0,gi.sprintf)((0,gi.__)("Report %s"),e.mediaType)}),o&&(0,Yt.jsx)(ur.MenuItem,{onClick:()=>o(t),icon:is,children:e.postTypeLabel?(0,gi.sprintf)((0,gi.__)("Detach from %s"),e.postTypeLabel):(0,gi.__)("Detach from post")})]})})}function IUe({onClose:e,onSubmit:t}){return(0,Yt.jsxs)(ur.Modal,{title:(0,gi.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,Yt.jsxs)(ur.__experimentalVStack,{spacing:3,children:[(0,Yt.jsx)("p",{children:(0,gi.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,Yt.jsx)("p",{children:(0,gi.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,Yt.jsxs)(ur.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Yt.jsx)(ur.FlexItem,{children:(0,Yt.jsx)(ur.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,gi.__)("Cancel")})}),(0,Yt.jsx)(ur.FlexItem,{children:(0,Yt.jsx)(ur.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,gi.__)("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,IC.useDispatch)(ape.store),{getSettings:m,getBlock:g}=(0,IC.useSelect)(C),{updateBlockAttributes:b}=(0,IC.useDispatch)(C),v=(0,gu.useCallback)(_=>{if(l)return;let x=m(),w=(0,e9.cloneBlock)(_),{id:T,url:B,caption:R}=w.attributes;if(!T&&!x.mediaUpload){i(!0);return}if(T){t(w);return}u(!0),window.fetch(B).then(I=>I.blob()).then(I=>{let A=(0,cpe.getFilename)(B)||"image.jpg",P=new File([I],A,{type:I.type});x.mediaUpload({filesList:[P],additionalData:{caption:R},onFileChange([O]){(0,lpe.isBlobURL)(O.url)||(g(w.clientId)?b(w.clientId,{...w.attributes,id:O.id,url:O.url}):(t({...w,attributes:{...w.attributes,id:O.id,url:O.url}}),h((0,gi.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),u(!1))},allowedTypes:RUe,onError(O){p(O,{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,gi.__)("no title"),k=(0,gu.useCallback)(()=>a(!0),[]),S=(0,gu.useCallback)(()=>a(!1),[]);return(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsx)(qS,{isEnabled:!0,blocks:[d],children:({draggable:_,onDragStart:x,onDragEnd:w})=>(0,Yt.jsx)("div",{className:K("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:_,onDragStart:x,onDragEnd:w,children:(0,Yt.jsxs)("div",{onMouseEnter:k,onMouseLeave:S,children:[(0,Yt.jsxs)(kt.Root,{children:[(0,Yt.jsx)(kt.Trigger,{render:(0,Yt.jsx)(ur.Composite.Item,{render:(0,Yt.jsx)("div",{"aria-label":y,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>v(d),children:(0,Yt.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[f,l&&(0,Yt.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,Yt.jsx)(ur.Spinner,{})})]})})}),(0,Yt.jsx)(kt.Popup,{children:y})]}),!l&&(0,Yt.jsx)(PUe,{category:r,media:e,onDetach:o})]})})}),n&&(0,Yt.jsx)(IUe,{onClose:()=>i(!1),onSubmit:()=>{t((0,e9.cloneBlock)(d)),h((0,gi.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),i(!1)}})]})}var t9=c(E(),1);function OUe({mediaList:e,category:t,onClick:o,onDetach:r,label:n=(0,fpe.__)("Media List")}){return(0,t9.jsx)(dpe.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":n,children:e.map((i,s)=>(0,t9.jsx)(upe,{media:i,category:t,onClick:o,onDetach:r},i.id||i.sourceId||s))})}var ppe=OUe;var mpe=c(U(),1),AUe=()=>null,bu=(0,mpe.withFilters)("editor.MediaUpload")(AUe);var hpe=c(Q(),1);function LUe({fallback:e=null,children:t}){return(0,hpe.useSelect)(r=>{let{getSettings:n}=r(C);return!!n().mediaUpload},[])?t:e}var Xs=LUe;var zi=c(F(),1),o9=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,zi.useState)(),[i,s]=(0,zi.useState)({}),[a,l]=(0,zi.useState)(!1),u=(0,zi.useRef)(),d=(0,zi.useRef)(),f=(0,zi.useRef)(),p=(0,zi.useRef)();return(0,zi.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,zi.useState)(!1);return(0,zi.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,zi.useState)([]),r=(0,o9.useSelect)(a=>H(a(C)).getInserterMediaCategories(),[]),{canInsertImage:n,canInsertVideo:i,canInsertAudio:s}=(0,o9.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,zi.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 on=c(E(),1),MUe=20,NUe=["image"];function DUe({onSelect:e}){return(0,on.jsx)(Xs,{children:(0,on.jsx)(bu,{multiple:"add",onSelect:e,allowedTypes:NUe,title:(0,dr.__)("Attach images"),render:({open:t})=>(0,on.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,dr.__)("Attach images")})})})}function AC({rootClientId:e,onInsert:t,category:o}){let[r,n,i]=(0,OC.useDebouncedInput)(),[s,a]=(0,bi.useState)(1),l=(0,OC.usePrevious)(o.name),u=(0,OC.usePrevious)(i);(l!==o.name||u!==i)&&s!==1&&a(1);let d=(0,bi.useMemo)(()=>({per_page:MUe,page:s,search:i}),[s,i]),[f,p]=(0,bi.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,bi.useRef)(),B=(0,bi.useCallback)(q=>{(0,kpe.getScrollContainer)(T.current)?.scrollTo(0,0),a(q)},[]),{createErrorNotice:R,createSuccessNotice:I,createWarningNotice:A}=(0,Spe.useDispatch)(_pe.store),P=ype(m),O=(0,bi.useCallback)(()=>{y&&o.invalidate?.(d),p(q=>q+1)},[o,d,y]);(0,bi.useEffect)(()=>{if(_)return _(()=>p(q=>q+1),d)},[_,d]);let N=(0,bi.useCallback)(async q=>{try{let J=await k(q);if(!J){A((0,dr.__)("No images were attached."),{type:"snackbar",id:"inserter-notice"});return}O(),I(o.postTypeLabel?(0,dr.sprintf)((0,dr._n)("%1$d image attached to %2$s.","%1$d images attached to %2$s.",J),J,o.postTypeLabel):(0,dr.sprintf)((0,dr._n)("%d image attached to post.","%d images attached to post.",J),J),{type:"snackbar",id:"inserter-notice"})}catch{R((0,dr.__)("Could not attach images."),{type:"snackbar",id:"inserter-notice"})}},[k,o,O,R,I,A]),j=(0,bi.useCallback)(async q=>{try{await S(q),O(),I(o.postTypeLabel?(0,dr.sprintf)((0,dr.__)("Image detached from %s."),o.postTypeLabel):(0,dr.__)("Image detached from post."),{type:"snackbar",id:"inserter-notice"})}catch{R((0,dr.__)("Could not detach image."),{type:"snackbar",id:"inserter-notice"})}},[S,o,O,R,I]),[D,M]=(0,bi.useState)(),V=(0,bi.useCallback)(()=>{let q=D;M(void 0),j(q)},[j,D]),L="block-editor-inserter__media-panel",z=o.labels.search_items||(0,dr.__)("Search");return(0,on.jsxs)("div",{ref:T,className:K(L,{"has-footer":w}),children:[(0,on.jsx)(yu.SearchControl,{className:`${L}-search`,onChange:n,value:r,label:z,placeholder:z}),m&&!h?.length&&(0,on.jsx)("div",{className:`${L}-spinner`,children:(0,on.jsx)(yu.Spinner,{})}),!m&&!h?.length&&(0,on.jsx)(sc,{children:o.emptyMessage&&!i?o.emptyMessage:(0,dr.__)("No results found.")}),!!h?.length&&(0,on.jsx)("div",{className:K(`${L}-results`,{"is-loading":P}),"aria-busy":P,children:(0,on.jsx)(ppe,{rootClientId:e,onClick:t,onDetach:S?M:void 0,mediaList:h,category:o})}),w&&(0,on.jsxs)(Qe,{direction:"column",gap:"sm",className:`${L}-footer`,children:[x&&(0,on.jsx)(QS,{currentPage:s,numPages:v,changePage:B,totalItems:g}),k&&(0,on.jsx)(DUe,{onSelect:N})]}),D&&(0,on.jsxs)(yu.Modal,{title:(0,dr.__)("Detach image"),onRequestClose:()=>M(void 0),overlayClassName:`${L}-detach-modal`,children:[(0,on.jsx)("p",{children:o.postTypeLabel?(0,dr.sprintf)((0,dr.__)("Detach this image from the current %s? The image will remain in the Media Library."),o.postTypeLabel):(0,dr.__)("Detach this image from the current post? The image will remain in the Media Library.")}),(0,on.jsxs)("div",{className:`${L}-detach-actions`,children:[(0,on.jsx)(yu.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>M(void 0),children:(0,dr.__)("Cancel")}),(0,on.jsx)(yu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:V,children:(0,dr.__)("Detach")})]})]})]})}var Qs=c(E(),1),VUe=["image","video","audio"];function FUe({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,sk.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,sk.useMemo)(()=>i.map(d=>({...d,label:d.labels.name})),[i]);return(0,sk.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:VUe,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)(AC,{onInsert:r,rootClientId:e,category:d})})]}):(0,Qs.jsx)(sc,{})}var r9=FUe;var LC=c(F(),1),bm=c(G(),1);var b2=c(fe(),1),Rpe=c(Qr(),1),Bpe=c(Q(),1);var Epe=c(U(),1),{Fill:Tpe,Slot:zUe}=(0,Epe.createSlotFill)("__unstableInserterMenuExtension");Tpe.Slot=zUe;var g2=Tpe;var ks=c(E(),1),jUe=9,HUe=[];function UUe({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)(D=>({prioritizedBlocks:D(C).getBlockListSettings(n)?.prioritizedInserterBlocks||HUe}),[n]),[y,k]=hm({onSelect:t,rootClientId:n,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:p,selectBlockOnInsert:m}),[S,_,x,w]=Sp(y,k,g),[T,,B]=gm(k,y,void 0,g),R=(0,LC.useMemo)(()=>{if(l===0)return[];let D=Mw(T,e);return l!==void 0?D.slice(0,l):D},[e,T,l]),I=u;h&&R.length>2&&(I=0);let A=(0,LC.useMemo)(()=>{if(I===0)return[];let D=S.filter(L=>L.name!=="core/block"),M=$c(D,"frecency","desc");!e&&v.length&&(M=JB(M,v));let V=ZB(M,_,x,e);return I!==void 0?V.slice(0,I):V},[e,S,_,x,I,v]);(0,LC.useEffect)(()=>{if(!e)return;let D=A.length+R.length,M=(0,bm.sprintf)((0,bm._n)("%d result found.","%d results found.",D),D);b(M)},[e,b,A,R]);let P=(0,b2.useAsyncList)(A,{step:jUe}),O=A.length>0||R.length>0,N=!!A.length&&(0,ks.jsx)(mm,{title:(0,ks.jsx)(bt,{children:(0,bm.__)("Blocks")}),children:(0,ks.jsx)(mb,{items:P,onSelect:w,onHover:o,label:(0,bm.__)("Blocks"),isDraggable:f})}),j=!!R.length&&(0,ks.jsx)(mm,{title:(0,ks.jsx)(bt,{children:(0,bm.__)("Patterns")}),children:(0,ks.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,ks.jsx)(hu,{blockPatterns:R,onClickPattern:B,onHover:r,isDraggable:f})})});return(0,ks.jsxs)($S,{children:[!d&&!O&&(0,ks.jsx)(sc,{}),h?j:N,!!A.length&&!!R.length&&(0,ks.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),h?N:j,d&&(0,ks.jsx)(g2.Slot,{fillProps:{onSelect:w,onHover:o,filterValue:e,hasItems:O,rootClientId:y},children:D=>D.length?D:O?null:(0,ks.jsx)(sc,{})})]})}var y2=UUe;var S2=c(U(),1),Ppe=c(F(),1);var zd=c(E(),1),{Tabs:v2}=H(S2.privateApis);function GUe({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:tg,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)(GUe);var _2=c(Q(),1),ak=c(F(),1);function MC(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,ak.useRef)(!1),s=(0,ak.useRef)(e);(0,ak.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,ak.useEffect)(()=>(s.current=e,e!==n()&&(i.current=!0,e?t("auto-scaled"):o()),()=>{i.current&&n()&&o()}),[e,n,o,t])}var qt=c(E(),1),Ope=()=>{};function WUe({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)(he=>{let{isZoomOut:ke,getSectionRootClientId:_e}=H(he(C));return{isZoomOutMode:ke(),hasSectionRootClientId:!!_e()}},[]),[b,v,y]=(0,NC.useDebouncedInput)(a),[k,S]=(0,Jt.useState)(null),[_,x]=(0,Jt.useState)(p),[w,T]=(0,Jt.useState)("all"),[B,R]=(0,Jt.useState)(null),I=(0,NC.useViewportMatch)("large"),P=(0,NC.useViewportMatch)("medium","<")?d:Ope;function O(){return f||(m?"patterns":"blocks")}let[N,j]=(0,Jt.useState)(O());MC(g&&(N==="patterns"||N==="media")&&I);let[M,V,L]=hm({rootClientId:e,clientId:t,isAppender:o,insertionIndex:r,shouldFocusBlock:l}),z=(0,Jt.useRef)(),q=(0,Jt.useCallback)((he,ke,_e,we)=>{V(he,ke,_e,we),n(he),P(),window.requestAnimationFrame(()=>{!l&&!z.current?.contains(h.current.ownerDocument.activeElement)&&z.current?.querySelector("button").focus()})},[V,P,n,h,l]),J=(0,Jt.useCallback)((he,ke,..._e)=>{L(!1),V(he,{patternName:ke},..._e),n(),P()},[V,P,n,L]),te=(0,Jt.useCallback)(he=>{L(he),S(he)},[L,S]),ee=(0,Jt.useCallback)((he,ke)=>{x(he),T(ke),u?.()},[x,u]),W=N==="patterns"&&!y&&!!_,$=N==="media"&&!!B,[Y,Z]=(0,Jt.useState)(!1),oe=(0,Jt.useRef)(null),ne=(0,Jt.useRef)(null),X=(0,Jt.useRef)(null);(0,Jt.useEffect)(()=>{let he=_e=>{Z(_e.currentTarget.scrollTop>0)},ke=[oe.current,ne.current,X.current].filter(Boolean);return ke.forEach(_e=>_e.addEventListener("scroll",he)),()=>{ke.forEach(_e=>_e.removeEventListener("scroll",he))}},[]);let re=(0,Jt.useMemo)(()=>N==="media"?null:(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)(x2.SearchControl,{className:K("block-editor-inserter__search",{"is-scrolled":Y}),onChange:he=>{k&&S(null),v(he)},value:b,label:(0,ym.__)("Search"),placeholder:(0,ym.__)("Search")}),!!y&&(0,qt.jsx)(y2,{filterValue:y,onSelect:n,onHover:te,rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:N==="patterns"})]}),[N,k,S,v,b,y,n,te,l,t,e,r,o,Y]),ae=(0,Jt.useMemo)(()=>(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,qt.jsx)(Ofe,{ref:z,rootClientId:M,onInsert:q,onHover:te,showMostUsedBlocks:s})}),i&&(0,qt.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,qt.jsx)(bt,{render:(0,qt.jsx)("h2",{}),children:(0,ym.__)("A tip for using the block editor")}),(0,qt.jsx)(Fle,{})]})]}),[M,q,te,s,i]),ve=(0,Jt.useMemo)(()=>(0,qt.jsx)(rpe,{rootClientId:M,onInsert:J,onSelectCategory:ee,selectedCategory:_,children:W&&(0,qt.jsx)(u2,{rootClientId:M,onInsert:J,category:_,patternFilter:w,showTitlesAsTooltip:!0})}),[M,J,ee,w,_,W]),xe=(0,Jt.useMemo)(()=>(0,qt.jsx)(r9,{rootClientId:M,selectedCategory:B,onSelectCategory:R,onInsert:q,children:$&&(0,qt.jsx)(AC,{rootClientId:M,onInsert:q,category:B})}),[M,q,B,R,$]),ge=he=>{he!=="patterns"&&x(null),j(he)},be=(0,Jt.useRef)();return(0,Jt.useLayoutEffect)(()=>{be.current&&window.requestAnimationFrame(()=>{be.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()})},[]),(0,qt.jsxs)("div",{className:K("block-editor-inserter__menu",{"show-panel":W||$,"is-zoom-out":m}),ref:h,children:[(0,qt.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,qt.jsx)(k2,{ref:be,onSelect:ge,onClose:d,selectedTab:N,closeButtonLabel:(0,ym.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,ym.__)("Blocks"),panelRef:oe,panel:(0,qt.jsxs)(qt.Fragment,{children:[re,N==="blocks"&&!y&&ae]})},{name:"patterns",title:(0,ym.__)("Patterns"),panelRef:ne,panel:(0,qt.jsxs)(qt.Fragment,{children:[re,N==="patterns"&&!y&&ve]})},{name:"media",title:(0,ym.__)("Media"),panelRef:X,panel:(0,qt.jsxs)(qt.Fragment,{children:[re,xe]})}]})}),i&&k&&(0,qt.jsx)(x2.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,qt.jsx)(ffe,{item:k})})]})}var n9=(0,Jt.forwardRef)(WUe);function $Ue(e,t){return(0,qt.jsx)(n9,{...e,onPatternCategorySelection:Ope,ref:t})}var Ape=(0,Jt.forwardRef)($Ue);var w2=c(F(),1),DC=c(G(),1),C2=c(U(),1),Lpe=c(Q(),1);var yb=c(E(),1),KUe=6,YUe=6,qUe=2;function E2({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n,hasSearch:i=!0}){let[s,a]=(0,w2.useState)(""),[l,u]=hm({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n}),[d]=Sp(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>KUe;(0,w2.useEffect)(()=>{f&&f(!1)},[f]);let m=()=>{f({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:p})};return(0,yb.jsxs)("div",{className:K("block-editor-inserter__quick-inserter",{"has-search":h,"has-expand":f}),children:[h&&(0,yb.jsx)(C2.SearchControl,{className:"block-editor-inserter__search",value:s,onChange:g=>{a(g)},label:(0,DC.__)("Search"),placeholder:(0,DC.__)("Search")}),(0,yb.jsx)("div",{className:"block-editor-inserter__quick-inserter-results",children:(0,yb.jsx)(y2,{filterValue:s,onSelect:e,rootClientId:t,clientId:o,isAppender:r,maxBlockPatterns:s?qUe:0,maxBlockTypes:YUe,isDraggable:!1,selectBlockOnInsert:n,isQuick:!0})}),f&&(0,yb.jsx)(C2.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__quick-inserter-expand",onClick:m,"aria-label":(0,DC.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,DC.__)("Browse all")})]})}var ZUe=50;function Mpe(e,t){if(!e||!e.attributes||!t?.__experimentalLabel)return null;let o=t.__experimentalLabel(e.attributes,{context:"appender"});return typeof o=="string"&&o.length<ZUe&&o.length>0?o:null}var lk=c(E(),1),XUe=({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,lk.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})},QUe=(0,i9.forwardRef)(XUe),JUe=({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,ck.useSelect)(D=>{let{getBlockRootClientId:M,hasInserterItems:V,getAllowedBlocks:L,getDirectInsertBlock:z,getBlockListSettings:q}=D(C),{getBlockVariations:J,getBlockType:te}=D(vb.store),ee=t||M(e)||void 0,W=L(ee),$=s&&z(ee),{defaultBlock:Y}=q(ee)??{},Z=W?.length===1&&J(W[0].name,"inserter")?.length===0,oe=Z?W[0]:null,ne=$||null;!ne&&Z&&Y?.name===oe.name&&(ne=Y);let X=$?te($.name):null;return{hasItems:V(ee),hasSingleBlockType:Z,blockTitle:oe?oe.title:"",allowedBlockType:oe,blockToInsert:ne,appenderLabel:Mpe($,X),targetRootClientId:ee}},[t,e,s]),{insertBlock:_}=(0,ck.useDispatch)(C),{getBlock:x,getBlockIndex:w,getBlockOrder:T,getBlockRootClientId:B,getBlockSelectionEnd:R,getPreviousBlockClientId:I}=(0,ck.useSelect)(C),{getActiveBlockVariation:A,getBlockType:P}=(0,ck.useSelect)(vb.store);if(!m&&(r||S||e))return null;function O(){let D=y?.name??v.name;function M(te){if(!te?.length)return{};let ee;if(e){let W=x(e),$=x(I(e));W?.name===$?.name&&(ee=$?.attributes)}else if(S){let W=x(S)?.innerBlocks?.at(-1);W?.name===D&&(ee=W.attributes)}return ee?Object.fromEntries(te.filter(W=>W in ee).map(W=>[W,ee[W]])):{}}function V(){if(e)return w(e);let te=R();return!r&&te&&B(te)===S?w(te)+1:T(S).length}let L=M(y?.attributesToCopy),z=(0,vb.createBlock)(D,{...y?.attributes,...L});_(z,V(),S,i),u?.(z);let q=P(D),J;if(q&&(J=(0,vb.__experimentalGetBlockLabel)(q,z.attributes),J===q.title&&(J=A(D,z.attributes)?.title||J)),J){let te=(0,jd.sprintf)((0,jd.__)("%s block added"),J);(0,Npe.speak)(te)}}function N({onToggle:D,isOpen:M}){let V={onToggle:D,isOpen:M,disabled:o||!m,blockTitle:b,hasSingleBlockType:g,appenderLabel:k,toggleProps:p};return f?f(V):(0,lk.jsx)(QUe,{ref:h,...V})}function j({onClose:D}){return l?(0,lk.jsx)(E2,{onSelect:M=>{let V=Array.isArray(M)&&M?.length?M[0]:M;u&&typeof u=="function"&&u(V),D()},rootClientId:S,clientId:e,isAppender:r,selectBlockOnInsert:i}):(0,lk.jsx)(Ape,{onSelect:()=>{D()},onClose:D,rootClientId:S,clientId:e,isAppender:r,showInserterHelpPanel:a})}return g||y?N({onToggle:O}):(0,lk.jsx)(T2.Dropdown,{className:"block-editor-inserter",contentClassName:K("block-editor-inserter__popover",{"is-quick":l}),popoverProps:{position:n,shift:!0},onToggle:d,expandOnMobile:!0,headerTitle:(0,jd.__)("Add a block"),renderToggle:N,renderContent:j,onClose:u})},e7e=(0,i9.forwardRef)(JUe),Za=e7e;var VC=c(E(),1),t7e="\uFEFF";function uk({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,s9.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,VC.jsxs)("div",{"data-root-client-id":e||"",className:K("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,VC.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,s9.__)("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:t7e}),(0,VC.jsx)(Za,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var Vpe=c(U(),1),a9=c(F(),1),FC=c(G(),1);var Fpe=c(Rt(),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,FC.sprintf)((0,FC._x)("Add %s","directly add the only allowed block"),u.toLowerCase()):h=(0,FC._x)("Add block","Generic label for block inserter button"),(0,P2.jsx)(Vpe.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:o,tabIndex:r,className:K(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,a9.forwardRef)((e,t)=>((0,Fpe.default)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),zpe(e,t))),vm=(0,a9.forwardRef)(zpe);var dk=c(E(),1);function o7e({rootClientId:e}){return(0,l9.useSelect)(o=>o(C).canInsertBlockType((0,Hpe.getDefaultBlockName)(),e))?(0,dk.jsx)(uk,{rootClientId:e}):(0,dk.jsx)(vm,{rootClientId:e,className:"block-list-appender__toggle"})}function Upe({rootClientId:e,CustomAppender:t,className:o,tagName:r="div"}){let n=(0,l9.useSelect)(i=>{let{getBlockInsertionPoint:s,isBlockInsertionPointVisible:a,getBlockCount:l}=i(C),u=s();return a()&&e===u?.rootClientId&&l(e)===0},[e]);return(0,dk.jsx)(r,{tabIndex:-1,className:K("block-list-appender wp-block",o,{"is-drag-over":n}),contentEditable:!1,"data-block":!0,children:t?(0,dk.jsx)(t,{}):(0,dk.jsx)(o7e,{rootClientId:e})})}var nme=c(fe(),1),jC=c(Q(),1),ime=c(F(),1),sme=c(G(),1);var fk=c(Q(),1),km=c(F(),1),A2=c(U(),1),ome=c(fe(),1);var $pe=c(Q(),1),Sm=c(F(),1),Kpe=c(U(),1),Ype=c(G(),1);var Wpe=c(fe(),1),c9=c(Tt(),1),Gpe=new WeakMap;function r7e(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,c9.getScrollContainer)(u),Gpe.set(u,d));let f=(0,c9.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 Sb=r7e;var u9=c(E(),1),n7e=Number.MAX_SAFE_INTEGER;function i7e({previousClientId:e,nextClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,operation:i="insert",nearestSide:s="right",...a}){let[l,u]=(0,Sm.useReducer)(y=>(y+1)%n7e,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=Nt(e),m=Nt(t),g=d==="vertical",b=(0,Sm.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 B=S||k;x=B.top,w=0,T=B.bottom-B.top,_=s==="left"?B.left-2:B.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=Sb(n);return(0,Sm.useLayoutEffect)(()=>{if(!h)return;let y=new window.MutationObserver(u);return y.observe(h,{attributes:!0}),()=>{y.disconnect()}},[h]),(0,Sm.useLayoutEffect)(()=>{if(!m)return;let y=new window.MutationObserver(u);return y.observe(m,{attributes:!0}),()=>{y.disconnect()}},[m]),(0,Sm.useLayoutEffect)(()=>{if(h)return h.ownerDocument.defaultView.addEventListener("resize",u),()=>{h.ownerDocument.defaultView?.removeEventListener("resize",u)}},[h]),!h&&!m||!p?null:(0,u9.jsx)(Kpe.Popover,{ref:v,animate:!1,anchor:b,focusOnMount:!1,__unstableSlotName:r,inline:!r,...a,className:K("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,u9.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:o})},t+"--"+f)}var I2=i7e;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 d9=c(E(),1),s7e=Number.MAX_SAFE_INTEGER;function a7e({clientId:e,bottomClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,shift:i=!0,...s},a){let l=Nt(e),u=Nt(t??e),d=(0,qpe.useMergeRefs)([a,Sb(n)]),[f,p]=(0,Hd.useReducer)(m=>(m+1)%s7e,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?Aj(Dv(l),Dv(u)):Dv(l)},contextElement:l}},[f,l,t,u]);return!l||t&&!u?null:(0,d9.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:K("block-editor-block-popover",s.className),variant:"unstyled",children:o})}var kb=(0,Hd.forwardRef)(a7e),l7e=({clientId:e,bottomClientId:t,children:o,...r},n)=>(0,d9.jsx)(kb,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:n,children:o}),Xpe=(0,Hd.forwardRef)(l7e);var O2=c(E(),1);function c7e({clientId:e,bottomClientId:t,children:o,shift:r=!1,additionalStyles:n,...i},s){t??=e;let a=Nt(e);return(0,O2.jsx)(kb,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,O2.jsx)(u7e,{selectedElement:a,additionalStyles:n,children:o}):o})}function u7e({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)(c7e);var f9=c(E(),1),zC={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function d7e({__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,f9.jsx)(Xa,{clientId:o,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,f9.jsx)(eme.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?zC.show:zC.hide,animate:zC.show,exit:r?zC.show:zC.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}var tme=d7e;var Gd=c(E(),1),pk=(0,km.createContext)();pk.displayName="InsertionPointOpenRefContext";function f7e({__unstablePopoverSlot:e,__unstableContentRef:t,operation:o="insert",nearestSide:r="right"}){let{selectBlock:n,hideInsertionPoint:i}=(0,fk.useDispatch)(C),s=(0,km.useContext)(pk),a=(0,km.useRef)(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:f,isInserterShown:p,isDistractionFree:h,isZoomOutMode:m}=(0,fk.useSelect)(B=>{let{getBlockOrder:R,getBlockListSettings:I,getBlockInsertionPoint:A,isBlockBeingDragged:P,getPreviousBlockClientId:O,getNextBlockClientId:N,getSettings:j,isZoomOut:D}=H(B(C)),M=A(),V=R(M.rootClientId);if(!V.length)return{};let L=V[M.index-1],z=V[M.index];for(;P(L);)L=O(L);for(;P(z);)z=N(z);let q=j();return{previousClientId:L,nextClientId:z,orientation:I(M.rootClientId)?.orientation||"vertical",rootClientId:M.rootClientId,isDistractionFree:q.isDistractionFree,isInserterShown:M?.__unstableWithInserter,isZoomOutMode:D()}},[]),{getBlockEditingMode:g}=(0,fk.useSelect)(C),b=(0,ome.useReducedMotion)();function v(B){B.target===a.current&&d&&g(d)!=="disabled"&&n(d,-1)}function y(B){B.target===a.current&&!s.current&&i()}function k(B){B.target!==a.current&&(s.current=!0)}let S=(0,km.useCallback)(B=>{!B&&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=K("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:K(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:K("block-editor-block-list__insertion-point-inserter"),children:(0,Gd.jsx)(Za,{ref:S,position:"bottom center",clientId:d,rootClientId:f,__experimentalIsQuick:!0,onToggle:B=>{s.current=B},onSelectOrClose:()=>{s.current=!1}})})]})})}function rme(e){let{insertionPoint:t,isVisible:o,isBlockListEmpty:r}=(0,fk.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)(f7e,{operation:t.operation,nearestSide:t.nearestSide,...e})}function ame(){let e=(0,ime.useContext)(pk),t=(0,jC.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,jC.useSelect)(C)),{showInsertionPoint:h,hideInsertionPoint:m}=(0,jC.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,B=Array.from(v.target.children).find(P=>{let O=P.getBoundingClientRect();return P.classList.contains("wp-block")&&S==="vertical"&&O.top>x||P.classList.contains("wp-block")&&S==="horizontal"&&((0,sme.isRTL)()?O.right<w:O.left>w)});if(!B){m();return}if(!B.id&&(B=B.firstElementChild,!B)){m();return}let R=B.id.slice(6);if(!R||l(R)||p(R)||i().includes(R)&&S==="vertical"&&!_&&!s().hasFixedToolbar)return;let I=B.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 A=r(R);if(A===0){m();return}h(y,A,{__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 _b(){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:_b(),...e})}var Ime=c(fe(),1),hk=c(F(),1),Ome=c(Q(),1),Eb=c(ue(),1);var dme=c(E(),1);function fme({showSeparator:e,isFloating:t,onAddBlock:o,isToggle:r}){let{clientId:n}=ht();return(0,dme.jsx)(vm,{className:K({"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)(uk,{rootClientId:e})}var N2=c(F(),1),bme=c(Q(),1),M2=c(Rt(),1),yme=c(HC(),1);var UC=new WeakMap;function p7e(){let e;return t=>((e===void 0||!(0,yme.isShallowEqual)(e,t))&&(e=t),e)}function gme(e){let[t]=(0,N2.useState)(p7e);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,N2.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,M2.default)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),b.defaultBlock=s),n!==void 0&&(b.defaultBlock=n),a!==void 0&&((0,M2.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,M2.default)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),UC.get(p)||UC.set(p,{}),UC.get(p)[e]=b,window.queueMicrotask(()=>{let v=UC.get(p);if(Object.keys(v).length){let{updateBlockListSettings:y}=p.dispatch(C);y(v),UC.set(p,{})}})},[e,h,m,g,n,i,s,a,u,d,f,p])}var p9=c(Xh(),1),D2=c(F(),1),Sme=c(Q(),1),kme=c(ue(),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,p9.default)(t,i.current);if(!h||!m)return;i.current=t;let g=(0,kme.synchronizeBlocksWithTemplate)(p,t);(0,p9.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(ue(),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 Cb=c(Q(),1),z2=c(F(),1),j2=c(fe(),1),Bme=c(G(),1),mk=c(ue(),1);var m9=c(F(),1),_s=c(ue(),1),xb=c(Q(),1),Eme=c(Tt(),1);function h9(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 m7e(e,t,o,r,n,i,s,a,l){return u=>{let{srcRootClientId:d,srcClientIds:f,type:p,blocks:h}=h9(u);if(p==="inserter"){s();let m=h.map(g=>(0,_s.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 h7e(e,t,o,r,n){return i=>{if(!t().mediaUpload)return;let s=(0,_s.findTransform)((0,_s.getBlockTransforms)("from"),a=>a.type==="files"&&r(a.blockName,e)&&a.isMatch(i));if(s){let a=s.transform(i,o);n(a)}}}function g7e(e){return t=>{let o=(0,_s.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,xb.useSelect)(C),{getGroupingBlockName:p}=(0,xb.useSelect)(_s.store),{insertBlocks:h,moveBlocksToPosition:m,updateBlockAttributes:g,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:y}=(0,xb.useDispatch)(C),k=(0,xb.useRegistry)(),S=(0,m9.useCallback)((B,R=!0,I=0,A=[])=>{Array.isArray(B)||(B=[B]);let O=l(e)[t];if(r==="replace")v(O,B,void 0,I);else if(r==="group"){let N=f(O);n==="left"?B.push(N):B.unshift(N);let j=B.map(L=>(0,_s.cloneSanitizedBlock)(L)),D=B.every(L=>L.name==="core/image"),M=i("core/gallery",e),V=(0,_s.createBlock)(D&&M?"core/gallery":p(),{layout:{type:"flex",flexWrap:D&&M?null:"nowrap"}},j);v([O,...A],V,void 0,I)}else h(B,t,e,R,I)},[l,e,t,r,v,f,n,i,p,h]),_=(0,m9.useCallback)((B,R,I)=>{if(r==="replace"){let A=u(B),O=l(e)[t];k.batch(()=>{y(B,!1),v(O,A,void 0,0)})}else m(B,R,e,I)},[r,l,u,m,k,y,v,t,e]),x=m7e(e,t,s,a,_,S,b,r,f),w=h7e(e,d,g,i,S),T=g7e(S);return B=>{let R=(0,Eme.getFilesFromDataTransfer)(B.dataTransfer),I=B.dataTransfer.getData("text/html");I?T(I):R.length?w(R):x(B)}}function b7e(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 wb(e,t,o=["top","bottom","left","right"]){let r,n;return o.forEach(i=>{let s=b7e(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 g9=30,y7e=120,v7e=120;function S7e(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]=wb(t,v,["top","bottom"]);if(v.height>y7e&&y<g9){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]=wb(t,v,["left","right"]);if(v.width>v7e&&y<g9){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]=wb(t,_,n),[T,B]=wb(t,_,["left","right"]),R=F2(t,_);v&&R?x=0:o==="vertical"&&S!=="horizontal"&&(R&&T<g9||!R&&Tme(t,_))&&(l=k,u=B),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,Cb.useRegistry)(),[i,s]=(0,z2.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:u}=(0,Cb.useSelect)(mk.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,Cb.useSelect)(C)),{showInsertionPoint:x,hideInsertionPoint:w,startDragging:T,stopDragging:B}=H((0,Cb.useDispatch)(C)),R=V2(i.operation==="before"||i.operation==="after"?o:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),I=(0,j2.useThrottle)((0,z2.useCallback)((A,P)=>{v()||T();let O=m(),N=[t,..._(t,!0)];if(O.some(Z=>N.includes(Z)))return;let D=b(t),M=g([t])[0],V=g(O);if(!H2(a,D,V,M))return;let z=S();if(k()&&z!==t)return;let q=p(t).filter(Z=>!((0,mk.hasBlockSupport)(Z.name,"visibility",!0)&&Z.attributes?.metadata?.blockVisibility===!1));if(q.length===0){n.batch(()=>{s({index:0,operation:"insert"}),x(t,0,{operation:"insert"})});return}let J=q.map(Z=>{let oe=Z.clientId;return{isUnmodifiedDefaultBlock:(0,mk.isUnmodifiedDefaultBlock)(Z),getBoundingClientRect:()=>{let ne=P.getElementById(`block-${oe}`);return ne?ne.getBoundingClientRect():null},blockIndex:h(oe),blockOrientation:f(oe)?.orientation}}),te=S7e(J,{x:A.clientX,y:A.clientY},f(t)?.orientation,{dropZoneElement:e,parentBlockClientId:o,parentBlockOrientation:o?f(o)?.orientation:void 0,rootBlockIndex:h(t)}),[ee,W,$]=te,Y=J[ee]?.isUnmodifiedDefaultBlock;if(!(k()&&!Y&&W!=="insert")){if(W==="group"){let Z=q[ee],oe=[Z.name,...V].every(ve=>ve==="core/image"),ne=d("core/gallery",t),X=y([Z.clientId,m()]),re=l(u(),"block"),ae=re&&re.find(({name:ve})=>ve==="group-row");if(oe&&!ne&&(!X||!ae)||!oe&&(!X||!ae))return}n.batch(()=>{s({index:ee,operation:W,nearestSide:$});let Z=["before","after"].includes(W)?o:t;x(Z,ee,{operation:W,nearestSide:$})})}},[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:R,onDragOver(A){I(A,A.currentTarget.ownerDocument)},onDragLeave(A){let{ownerDocument:P}=A.currentTarget;Rme(A.relatedTarget,P)||Rme(A.target,P)||(I.cancel(),w())},onDragEnd(){I.cancel(),B(),w()}})}var Wd=c(E(),1),k7e={};function _7e({children:e,clientId:t}){let o=Cme(t);return(0,Wd.jsx)(nT,{value:o,children:e})}var x7e=(0,hk.memo)(TC);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,Eb.getBlockSupport)(y,"layout")||(0,Eb.getBlockSupport)(y,"__experimentalLayout")||k7e,{allowSizingOnChildren:w=!1}=x,T=v||x,B=(0,hk.useMemo)(()=>({..._,...T,...w&&{allowSizingOnChildren:!0}}),[_,T,w]),R=(0,Wd.jsx)(x7e,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:h,layout:B,wrapperRef:d,placeholder:b});return!k?.providesContext||Object.keys(k.providesContext).length===0?R:(0,Wd.jsx)(_7e,{clientId:t,children:R})}function w7e(e){return pA(e),(0,Wd.jsx)(Ame,{...e})}var U2=(0,hk.forwardRef)((e,t)=>{let o=Tb({ref:t},e);return(0,Wd.jsx)("div",{className:"block-editor-inner-blocks",children:(0,Wd.jsx)("div",{...o})})});function Tb(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:B,getBlockSettings:R,getSectionRootClientId:I}=H(S(C));if(!i){let V=I();return{isDropZoneDisabled:x()&&V!==""}}let{hasBlockSupport:A,getBlockType:P}=S(Eb.store),O=_(i),N=B(i),j=T(i),[D]=R(i,"layout"),M=N==="disabled";if(x()){let V=I();M=i!==V}return{__experimentalCaptureToolbars:A(O,"__experimentalExposeControlsToChildren",!1),name:O,blockType:P(O),parentLock:w(j),parentClientId:j,isDropZoneDisabled:M,defaultLayout:D}},[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?w7e:Ame;return{...e,ref:v,className:K(e.className,"block-editor-block-list__layout",o?"":a),children:i?(0,Wd.jsx)(k,{...y,clientId:i}):(0,Wd.jsx)(TC,{...t})}}Tb.save=Eb.__unstableGetInnerBlocksProps;U2.DefaultBlockAppender=mme;U2.ButtonBlockAppender=fme;U2.Content=()=>Tb.save().children;var GC=U2;var WC=c(U(),1),Lme=c(fe(),1),Mme=c(Q(),1),Nme=c(F(),1),Dme=c(G(),1);var G2=c(E(),1);function b9({clientId:e,rootClientId:t="",position:o="top"}){let[r,n]=(0,Nme.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:u,blocksBeingDragged:d}=(0,Mme.useSelect)(_=>{let{getInsertionPoint:x,getBlockOrder:w,getSectionRootClientId:T,isBlockInsertionPointVisible:B,getBlockInsertionPoint:R,getDraggedBlockClientIds:I}=H(_(C)),A=T(),P=w(A);return{sectionRootClientId:A,sectionClientIds:P,insertionPoint:x(),blockInsertionPoint:R(),blockInsertionPointVisible:B(),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)(WC.__unstableAnimatePresence,{children:p&&(0,G2.jsx)(WC.__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:K("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)(WC.__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 ji=c(E(),1),rI=(0,_m.createContext)();rI.displayName="IntersectionObserverContext";var W2=new WeakMap,C7e={trailing:!0};function E7e({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,_m.useCallback)(()=>{let f={};W2.get(s).forEach(([p,h])=>{f[p]=h}),a(f)},[s]),300,C7e),u=(0,_m.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=Tb({ref:(0,$2.useMergeRefs)([_b(),ame()]),className:K("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r,"is-preview-mode":n})},t);return(0,ji.jsxs)(rI.Provider,{value:u,children:[(0,ji.jsx)("div",{...d}),!!i&&(0,ji.jsx)(T7e,{clientId:i})]})}function T7e({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,_m.useEffect)(()=>{o||t()},[o,t]),null}function HS(e){return(0,ji.jsx)(eT,{value:yF,children:(0,ji.jsx)(E7e,{...e})})}var R7e=[],B7e=new Set;function P7e({placeholder:e,rootClientId:t,renderAppender:o,__experimentalAppenderTagName:r,layout:n=Oz}){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:R7e,visibleBlocks:B7e};let B=g(),R=B[0],I=!t&&!R&&(!T.length||!w((0,Vme.getDefaultBlockName)(),t)),A=!!(t&&R&&t===R),P=v(t);return{order:T,selectedBlocks:B,visibleBlocks:b(),isZoomOut:x(),shouldRenderAppender:(!k(t)||S(_(R),t))&&y(t)!=="disabled"&&(!P||P==="contentOnly")&&i&&!x()&&(s||A||I)}},[t,i,s]);return(0,ji.jsxs)(cP,{value:n,children:[a.map(p=>(0,ji.jsxs)(Qa.AsyncModeProvider,{value:!d.has(p)&&!u.includes(p),children:[l&&(0,ji.jsx)(b9,{clientId:p,rootClientId:t,position:"top"}),(0,ji.jsx)(mI,{rootClientId:t,clientId:p}),l&&(0,ji.jsx)(b9,{clientId:p,rootClientId:t,position:"bottom"})]},p)),a.length<1&&e,f&&(0,ji.jsx)(Upe,{tagName:r,rootClientId:t,CustomAppender:o})]})}function TC(e){return(0,ji.jsx)(Qa.AsyncModeProvider,{value:!1,children:(0,ji.jsx)(P7e,{...e})})}var Dk=c(Q(),1),rG=c(Tt(),1),nG=c(U(),1),lye=c($l(),1),uM=c(F(),1),Vk=c(ue(),1),iG=c(Qr(),1),Fk=c(G(),1);var hhe=c(fe(),1),ghe=c(Q(),1),bhe=c(Tt(),1),vu=c(F(),1);var uc=c(G(),1),Bb=c(ue(),1),che=c(fe(),1),uhe=c(Q(),1),oL=c(F(),1);var YC=c(U(),1),$me=c($w(),1),Kme=c(Rt(),1),bk=c(F(),1);var Rn=c(U(),1),Fme=(0,Rn.createSlotFill)("InspectorControls"),I7e=(0,Rn.createSlotFill)("InspectorAdvancedControls"),O7e=(0,Rn.createSlotFill)("InspectorControlsBindings"),A7e=(0,Rn.createSlotFill)("InspectorControlsBackground"),L7e=(0,Rn.createSlotFill)("InspectorControlsBorder"),M7e=(0,Rn.createSlotFill)("InspectorControlsColor"),N7e=(0,Rn.createSlotFill)("InspectorControlsFilter"),D7e=(0,Rn.createSlotFill)("InspectorControlsDimensions"),V7e=(0,Rn.createSlotFill)("InspectorControlsLayout"),F7e=(0,Rn.createSlotFill)("InspectorControlsElements"),z7e=(0,Rn.createSlotFill)("InspectorControlsPosition"),j7e=(0,Rn.createSlotFill)("InspectorControlsTypography"),H7e=(0,Rn.createSlotFill)("InspectorControlsListView"),U7e=(0,Rn.createSlotFill)("InspectorControlsStyles"),G7e=(0,Rn.createSlotFill)("InspectorControlsEffects"),W7e=(0,Rn.createSlotFill)("InspectorControlsContent"),$7e={default:Fme,advanced:I7e,background:A7e,bindings:O7e,border:L7e,color:M7e,content:W7e,dimensions:D7e,effects:G7e,elements:F7e,filter:N7e,layout:V7e,list:H7e,position:z7e,settings:Fme,styles:U7e,typography:j7e},cc=$7e,$C=(0,Rn.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));var K2=c(F(),1);var KC="default",Js={viewport:KC,pseudo:KC},zme=(0,K2.createContext)(Js),Y2=zme.Provider;function Ja(){return(0,K2.useContext)(zme)}function Hi(e){return!!e?.viewport&&e.viewport!==KC}function ea(e){return!!e?.pseudo&&e.pseudo!==KC}function Bn(e){return!Hi(e)&&!ea(e)}function jme(e){return Bn(e)?[]:[e.viewport,e.pseudo].filter(t=>t&&t!==KC)}function To(e,t){let o=jme(t);return o.length?cd(e,o):e}function Pn(e,t,o){let r=jme(t);return r.length?Ge(De(e,r,o)):Ge(o)}function Hme(e,t){return!t||Bn(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:Pn(o?.style,e,i)}}}var gk=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:K7e}=(0,gk.createSlotFill)(Gme);function Y7e(){return(0,Ume.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:35,resize:!1}}}function Q2({listViewRef:e}){let{popoverProps:t}=Y7e(),o=(0,gk.__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)(gk.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)(K7e,{})})})}var xm=c(E(),1),q7e=["content","list"];function Rb({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=q7e.includes(t);if(!(s||a))return null}return!n[$f]&&!n[Ml]?null:t==="content"&&n[Tx]&&n[$f]?n[Ml]?(0,xm.jsx)(YC.__experimentalStyleProvider,{document,children:(0,xm.jsx)(Wme,{children:e})}):null:(0,xm.jsx)(YC.__experimentalStyleProvider,{document,children:(0,xm.jsx)(i,{children:s=>(0,xm.jsx)(X7e,{fillProps:s,children:e,resetAllFilter:r})})})}function Z7e({resetAllFilter:e,children:t}){let{registerResetAllFilter:o,deregisterResetAllFilter:r}=(0,bk.useContext)(YC.__experimentalToolsPanelContext),n=Ja(),i=(0,bk.useMemo)(()=>Hme(n,e),[e,n]);return(0,bk.useEffect)(()=>{if(i&&o&&r)return o(i),()=>{r(i)}},[i,o,r]),t}function X7e({children:e,resetAllFilter:t,fillProps:o}){let{forwardedContext:r=[]}=o,n=(0,xm.jsx)(Z7e,{resetAllFilter:t,children:e});return r.reduce((i,[s,a])=>(0,xm.jsx)(s,{...a,children:i}),n)}var the=c(U(),1),ohe=c(F(),1),rhe=c($w(),1),nhe=c(Rt(),1);var qme=c(U(),1),J2=c(Q(),1),Zme=c(F(),1);var Yme=c(fe(),1);function xr(){return(0,Yme.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function yk(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=xr(),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 y9=c(U(),1),eL=c(F(),1),Jme=c(E(),1);function ehe({Slot:e,fillProps:t,...o}){let r=(0,eL.useContext)(y9.__experimentalToolsPanelContext),n=(0,eL.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[y9.__experimentalToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,Jme.jsx)(e,{...o,fillProps:n,bubblesVirtually:!0})}var tL=c(E(),1);function Q7e({__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 v9=(0,ohe.forwardRef)(Q7e);var S9=c(E(),1),ihe=Rb;ihe.Slot=v9;var wm=e=>(0,S9.jsx)(Rb,{...e,group:"advanced"});wm.Slot=function(t){return(0,S9.jsx)(v9,{...t,group:"advanced"})};wm.slotName="InspectorAdvancedControls";var Oe=ihe;var ahe=c(Q(),1),Cm=c(ue(),1),qC=c(G(),1);function she(e){let t=e?.style?.position?.type;return t==="sticky"?(0,qC.__)("Sticky"):t==="fixed"?(0,qC.__)("Fixed"):null}function Do(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(Cm.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,qC.__)("Pattern"),icon:jc,description:S?.description||(0,qC.__)("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,Cm.isReusableBlock)(d)||(0,Cm.isTemplatePart)(d),v=(g?(0,Cm.__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 Em=c(E(),1),ZC="position",k9={key:"default",value:"",label:(0,uc.__)("Default")},_9={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.")},J7e=["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};`,J7e.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,Bb.getBlockSupport)(e,ZC);return!!(t===!0||t?.sticky)}function r9e(e){let t=(0,Bb.getBlockSupport)(e,ZC);return!!(t===!0||t?.fixed)}function n9e(e){return!!(0,Bb.getBlockSupport)(e,ZC)}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=Do(a),u=i&&s===_9.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=[k9];return(i||s===_9.value)&&m.push(_9),(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)||k9,h=(0,oL.useId)();return d.length>1?(0,Em.jsx)(Oe,{group:"position",children:(0,Em.jsx)($U,{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,Em.jsxs)($U.Item,{value:m,label:m.label,className:"block-editor-hooks__position-control-item","aria-describedby":g,children:[(0,Em.jsx)("div",{children:m.label}),m.hint&&(0,Em.jsx)("div",{id:g,className:"block-editor-hooks__position-control-item-hint","aria-hidden":"true",children:m.hint})]},m.key)})})}):null}var x9={edit:function(t){return fhe(t)?null:(0,Em.jsx)(i9e,{...t})},useBlockProps:a9e,attributeKeys:["style"],hasSupport(e){return(0,Bb.hasBlockSupport)(e,ZC)}},s9e={};function a9e({name:e,style:t}){let o=(0,Bb.hasBlockSupport)(e,ZC),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=K({[`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=Dv(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=Nt(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:K("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),Nk=c(F(),1),Qbe=c($l(),1);var $be=c(G(),1),Kbe=c(Q(),1),J9=c(F(),1),Ybe=c(fe(),1),tf=c(ue(),1),qbe=c(U(),1);var Pb=c(U(),1),Ihe=c(Q(),1),Ohe=c(G(),1);var Che=c(ue(),1),Ehe=c(U(),1),XC=c(Q(),1),QC=c(F(),1),The=c(fe(),1);var _he=c(Tt(),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 w9=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,XC.useSelect)(R=>{let{canMoveBlocks:I,getBlockRootClientId:A,getBlockName:P,getBlockAttributes:O,isBlockInsertionPointVisible:N}=R(C),{getBlockType:j,getActiveBlockVariation:D}=R(Che.store),M=A(o[0]),V=P(o[0]),L=D(V,O(o[0]));return{srcRootClientId:M,isDraggable:I(o),icon:L?.icon||j(V)?.icon,visibleInserter:N(),getBlockType:j}},[o]),m=(0,QC.useRef)(!1),[g,b,v]=whe(),{getAllowedBlocks:y,getBlockNamesByClientId:k,getBlockRootClientId:S}=(0,XC.useSelect)(C),{startDraggingBlocks:_,stopDraggingBlocks:x}=(0,XC.useDispatch)(C);(0,QC.useEffect)(()=>()=>{m.current&&x()},[]);let T=Nt(o[0])?.closest("body");return(0,QC.useEffect)(()=>{if(!T||!a)return;let I=(0,The.throttle)(A=>{if(!A.target.closest("[data-block]"))return;let P=k(o),O=A.target.closest("[data-block]").getAttribute("data-block"),N=y(O),j=k([O])[0],D;if(N?.length===0){let M=S(O),V=k([M])[0],L=y(M);D=H2(h,L,P,V)}else D=H2(h,N,P,j);!D&&!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,w9.jsx)(Ehe.Draggable,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:{type:"block",srcClientIds:o,srcRootClientId:u},onDragStart:R=>{window.requestAnimationFrame(()=>{_(o),m.current=!0,g(R),i&&i()})},onDragOver:b,onDragEnd:()=>{x(),m.current=!1,v(),s&&s()},__experimentalDragComponent:l!==void 0?l:(0,w9.jsx)(JA,{count:o.length,icon:f,fadeWhenDisabled:!0}),elementId:n,children:({onDraggableStart:R,onDraggableEnd:I})=>t({draggable:!0,onDragStart:R,onDragEnd:I})}):t({draggable:!1})},aL=u9e;var Bhe=c(ue(),1),Phe=c(U(),1);var lL=c(fe(),1),cL=c(Q(),1),vk=c(F(),1),tl=c(G(),1),C9=c(io(),1);var ot=c(G(),1),Tm=(e,t)=>e==="up"?t==="horizontal"?(0,ot.isRTL)()?"right":"left":"up":e==="down"?t==="horizontal"?(0,ot.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,ot.sprintf)((0,ot.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!n){let l=Tm("down",s);if(l==="down")return(0,ot.sprintf)((0,ot.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if(l==="left")return(0,ot.sprintf)((0,ot.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if(l==="right")return(0,ot.sprintf)((0,ot.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&n){let l=Tm("down",s);if(l==="down")return(0,ot.sprintf)((0,ot.__)("Block %1$s is at the end of the content and can\u2019t be moved down"),t);if(l==="left")return(0,ot.sprintf)((0,ot.__)("Block %1$s is at the end of the content and can\u2019t be moved left"),t);if(l==="right")return(0,ot.sprintf)((0,ot.__)("Block %1$s is at the end of the content and can\u2019t be moved right"),t)}if(i<0&&!r){let l=Tm("up",s);if(l==="up")return(0,ot.sprintf)((0,ot.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if(l==="left")return(0,ot.sprintf)((0,ot.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if(l==="right")return(0,ot.sprintf)((0,ot.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){let l=Tm("up",s);if(l==="up")return(0,ot.sprintf)((0,ot.__)("Block %1$s is at the beginning of the content and can\u2019t be moved up"),t);if(l==="left")return(0,ot.sprintf)((0,ot.__)("Block %1$s is at the beginning of the content and can\u2019t be moved left"),t);if(l==="right")return(0,ot.sprintf)((0,ot.__)("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,ot.__)("All blocks are selected, and cannot be moved");if(n>0&&!r){let a=Tm("down",i);if(a==="down")return(0,ot.sprintf)((0,ot.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if(a==="left")return(0,ot.sprintf)((0,ot.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,ot.sprintf)((0,ot.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n>0&&r){let a=Tm("down",i);if(a==="down")return(0,ot.__)("Blocks cannot be moved down as they are already at the bottom");if(a==="left")return(0,ot.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,ot.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(n<0&&!o){let a=Tm("up",i);if(a==="up")return(0,ot.sprintf)((0,ot.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if(a==="left")return(0,ot.sprintf)((0,ot.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,ot.sprintf)((0,ot.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n<0&&o){let a=Tm("up",i);if(a==="up")return(0,ot.__)("Blocks cannot be moved up as they are already at the top");if(a==="left")return(0,ot.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,ot.__)("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:Ti:eg:e==="down"?t==="horizontal"?(0,tl.isRTL)()?Ti: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,E9=(0,vk.forwardRef)(({clientIds:e,direction:t,orientation:o,...r},n)=>{let i=(0,lL.useInstanceId)(E9),s=(0,vk.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:B,getBlockListSettings:R}=_(C),I=s[0],A=w(I),P=x(I),O=x(s[s.length-1]),N=T(A),j=B(I),D=P===0,M=O===N.length-1,{orientation:V}=R(A)||{};return{blockType:j?(0,Bhe.getBlockType)(j.name):null,isDisabled:t==="up"?D:M,rootClientId:A,firstIndex:P,isFirst:D,isLast:M,orientation:o||V}},[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:K("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"?C9.displayShortcut.secondary("t"):C9.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,vk.forwardRef)((e,t)=>(0,$d.jsx)(E9,{direction:"up",ref:t,...e})),dL=(0,vk.forwardRef)((e,t)=>(0,$d.jsx)(E9,{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)(Pb.ToolbarGroup,{className:K("block-editor-block-mover",{"is-horizontal":s==="horizontal"}),children:[!t&&(0,ku.jsx)(aL,{clientIds:e,fadeWhenDisabled:!0,children:l=>(0,ku.jsx)(Pb.Button,{__next40pxDefaultSize:!0,icon:zx,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)(Pb.ToolbarItem,{children:l=>(0,ku.jsx)(uL,{clientIds:e,...l})}),(0,ku.jsx)(Pb.ToolbarItem,{children:l=>(0,ku.jsx)(dL,{clientIds:e,...l})})]})]})}var fL=m9e;var Mhe=c(U(),1),mL=c(Q(),1),hL=c(G(),1),Nhe=c(F(),1);var JC=c(Q(),1),Rm=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,JC.useSelect)(C),{toggleBlockHighlight:s}=(0,JC.useDispatch)(C),a=(0,Rm.useRef)(),l=(0,JC.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,Rm.useEffect)(()=>()=>{u(!1),p()},[]),{debouncedShowGestures:h,debouncedHideGestures:m}}function Sk({ref:e,highlightParent:t=!1,debounceTimeout:o=Lhe}){let[r,n]=(0,Rm.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=g9e({ref:e,debounceTimeout:o,isFocused:r,highlightParent:t}),a=(0,Rm.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,Rm.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=Do(t),r=(0,Nhe.useRef)(),n=Sk({ref:r,highlightParent:!0});return(0,pL.jsx)("div",{className:"block-editor-block-parent-selector",ref:r,...n,children:(0,pL.jsx)(Mhe.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)(Et,{icon:o?.icon})})},t)}var gL=c(U(),1);var Ib=c(U(),1),b9e=(0,Ib.createSlotFill)("BlockControls"),y9e=(0,Ib.createSlotFill)("BlockControlsBlock"),v9e=(0,Ib.createSlotFill)("BlockFormatControls"),S9e=(0,Ib.createSlotFill)("BlockControlsOther"),k9e=(0,Ib.createSlotFill)("BlockControlsParent"),_9e=(0,Ib.createSlotFill)("BlockControlsStyleState"),x9e={default:b9e,block:y9e,inline:v9e,other:S9e,parent:k9e,"style-state":_9e},eE=x9e;function Vhe(e,t){let o=ht();return o[Ml]?eE[e]?.Fill:o[Fy]&&t?eE.parent.Fill:null}var Kd=c(E(),1);function T9({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 tE=c(F(),1),Yd=c(U(),1),zhe=c($w(),1);var R9=c(E(),1),{ComponentsContext:Fhe}=H(Yd.privateApis);function B9({group:e="default",...t}){let o=(0,tE.useContext)(Yd.__experimentalToolbarContext),r=(0,tE.useContext)(Fhe),n=(0,tE.useMemo)(()=>({forwardedContext:[[Yd.__experimentalToolbarContext.Provider,{value:o}],[Fhe.Provider,{value:r}]]}),[o,r]),i=eE[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,R9.jsx)(a,{...t,bubblesVirtually:!0,fillProps:n});return e==="default"?l:(0,R9.jsx)(Yd.ToolbarGroup,{children:l})}var P9=c(E(),1),jhe=T9;jhe.Slot=B9;var I9=e=>(0,P9.jsx)(T9,{group:"inline",...e});I9.Slot=function(t){return(0,P9.jsx)(B9,{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 Ck=c(ue(),1),Ui=c(U(),1),Im=c(Q(),1);var ML=c(F(),1),rl=c(G(),1),Gge=c($l(),1),Xd=c(fe(),1);var _k=c(Q(),1),Bm=c(ue(),1);var ige=c(F(),1),rE=c(ue(),1),oE=c(Q(),1),sge=c(as(),1),qd=c(G(),1);var ta=c(ue(),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",M9e="layout",N9e=[T9e,$he,R9e,B9e,Whe,Khe,P9e,I9e,A9e,O9e,L9e],D9e=["shadow"],V9e="spacing",F9e=[...D9e,...N9e,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,M9e);var nge=e=>F9e.some(t=>(0,ta.hasBlockSupport)(e,t));function z9e(e){try{let t=(0,rE.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 O9(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])),O9(e[r].innerBlocks,t[r].innerBlocks,o)}function kk(){let e=(0,oE.useRegistry)(),{updateBlockAttributes:t}=(0,oE.useDispatch)(C),{createSuccessNotice:o,createWarningNotice:r,createErrorNotice:n}=(0,oE.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,rE.parse)(s);if(a.length===1?e.batch(()=>{O9(i,i.map(()=>a[0]),t)}):e.batch(()=>{O9(i,a,t)}),i.length===1){let l=(0,rE.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,_k.useSelect)(Bm.store),i=(0,_k.useSelect)(k=>{let{canInsertBlockType:S,getBlockRootClientId:_,getBlocksByClientId:x,getDirectInsertBlock:w,canRemoveBlocks:T}=k(C),B=x(e),R=_(e[0]),I=S(r(),R),A=R?w(R):null;return{canRemove:T(e),canInsertBlock:B.every(P=>(I||!!A)&&S(P.name,R)),canCopyStyles:B.every(P=>!!P&&((0,Bm.hasBlockSupport)(P.name,"color")||(0,Bm.hasBlockSupport)(P.name,"typography"))),canDuplicate:B.every(P=>!!P&&(0,Bm.hasBlockSupport)(P.name,"multiple",!0)&&S(P.name,R))}},[e,r]),{getBlocksByClientId:s,getBlocks:a}=(0,_k.useSelect)(C),{canRemove:l,canInsertBlock:u,canCopyStyles:d,canDuplicate:f}=i,{removeBlocks:p,replaceBlocks:h,duplicateBlocks:m,insertAfterBlock:g,insertBeforeBlock:b,flashBlock:v}=(0,_k.useDispatch)(C),y=kk();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,Bm.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(ue(),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 wk=c(U(),1),Nge=c(ue(),1),Dge=c(Q(),1);var L9=c(U(),1),M9=c(G(),1),bge=c(ue(),1),CL=c(Q(),1),yge=c(io(),1);var hge=c(ue(),1),gge=c(Q(),1);function nE(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(ue(),1),Ob=c(U(),1);var iE=c(G(),1);var Ab=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}=nE(),{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,Ab.jsxs)(Ob.ToolbarGroup,{children:[(0,Ab.jsx)(Ob.ToolbarButton,{icon:Ux,label:(0,iE._x)("Group","action: convert blocks to group"),onClick:a}),f&&(0,Ab.jsx)(Ob.ToolbarButton,{icon:Z4,label:(0,iE._x)("Row","action: convert blocks to row"),onClick:l}),p&&(0,Ab.jsx)(Ob.ToolbarButton,{icon:d6,label:(0,iE._x)("Stack","action: convert blocks to stack"),onClick:u}),h&&(0,Ab.jsx)(Ob.ToolbarButton,{icon:Hx,label:(0,iE._x)("Grid","action: convert blocks to grid"),onClick:d})]})}var A9=K9e;var Lb=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,Lb.jsxs)(Lb.Fragment,{children:[t&&(0,Lb.jsx)(L9.MenuItem,{shortcut:f.length>1?yge.displayShortcut.primary("g"):void 0,onClick:()=>{u(),s()},children:(0,M9._x)("Group","verb")}),o&&(0,Lb.jsx)(L9.MenuItem,{onClick:()=>{d(),s()},children:(0,M9._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),sE=c(F(),1),Hr=c(U(),1);var EL=c(Q(),1),kge=c(ue(),1);var Vo=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,sE.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,sE.useState)(!!l),{updateBlockAttributes:p}=(0,EL.useDispatch)(C),h=Do(e);(0,sE.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,Vo.jsx)(Hr.Modal,{title:(0,ol.sprintf)((0,ol.__)("Lock %s"),h.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,Vo.jsxs)("form",{onSubmit:v=>{v.preventDefault(),b&&(p([e],{lock:o,templateLock:d?q9e(o):void 0}),t())},children:[(0,Vo.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,Vo.jsx)("legend",{children:(0,ol.__)("Select the features you want to lock")}),(0,Vo.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,Vo.jsxs)("li",{children:[(0,Vo.jsx)(Hr.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,Vo.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,Vo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Vo.jsx)(Hr.CheckboxControl,{label:(0,ol.__)("Lock editing"),checked:!!o.edit,onChange:v=>r(y=>({...y,edit:v}))}),(0,Vo.jsx)(Hr.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.edit?lg:ad})]}),(0,Vo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Vo.jsx)(Hr.CheckboxControl,{label:(0,ol.__)("Lock movement"),checked:o.move,onChange:v=>r(y=>({...y,move:v}))}),(0,Vo.jsx)(Hr.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.move?lg:ad})]}),(0,Vo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Vo.jsx)(Hr.CheckboxControl,{label:(0,ol.__)("Lock removal"),checked:o.remove,onChange:v=>r(y=>({...y,remove:v}))}),(0,Vo.jsx)(Hr.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.remove?lg:ad})]})]})]})}),u&&(0,Vo.jsx)(Hr.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,Vo.jsxs)(Hr.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Vo.jsx)(Hr.FlexItem,{children:(0,Vo.jsx)(Hr.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,ol.__)("Cancel")})}),(0,Vo.jsx)(Hr.FlexItem,{children:(0,Vo.jsx)(Hr.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,ol.__)("Apply")})})]})]})})}var Mb=c(E(),1);function D9({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,Mb.jsxs)(Mb.Fragment,{children:[(0,Mb.jsx)(xge.MenuItem,{icon:o?ad:w4,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog",children:i}),r&&(0,Mb.jsx)(TL,{clientId:e,onClose:n})]})}var RL=c(G(),1),BL=c(U(),1),xk=c(F(),1);var Pm=c(E(),1);function V9({clientId:e}){let{canLock:t,isLocked:o}=oa(e),[r,n]=(0,xk.useReducer)(a=>!a,!1),i=(0,xk.useRef)(!1);if((0,xk.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,Pm.jsxs)(Pm.Fragment,{children:[(0,Pm.jsx)(BL.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,Pm.jsx)(BL.ToolbarButton,{disabled:!t,icon:o?lg:ad,label:s,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Pm.jsx)(TL,{clientId:e,onClose:n})]})}var F9=c(G(),1),wge=c(U(),1),PL=c(ue(),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,F9.__)("Edit as HTML"):(0,F9.__)("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(Qr(),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=Do(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 Db=c(E(),1);function z9({clientId:e}){let[t,o]=(0,Oge.useState)(!1),r=(0,Age.useSelect)(n=>n(Lge.store).getShortcutRepresentation("core/block-editor/rename"),[]);return(0,Db.jsxs)(Db.Fragment,{children:[(0,Db.jsx)(Pge.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":t,"aria-haspopup":"dialog",shortcut:r,children:(0,Ige.__)("Rename")}),t&&(0,Db.jsx)(Nb,{clientId:e,onClose:()=>o(!1)})]})}var Mge=c(ue(),1);function Vb(e){return{canRename:!!e&&(0,Mge.getBlockSupport)(e,"renaming",!0)}}var pc=c(E(),1),{Fill:X9e,Slot:Q9e}=(0,wk.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,Nge.hasBlockSupport)(w.name,"visibility",!0)),canEdit:_(x[0])}},[t]),{canLock:a}=oa(r[0]),{canRename:l}=Vb(o[0]),u=r.length===1&&a&&!n,d=r.length===1&&l&&!n,f=i&&!n,p=nE(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)(wk.MenuGroup,{children:[g&&(0,pc.jsx)(vge,{...p,onClose:e?.onClose}),s&&u&&(0,pc.jsx)(D9,{clientId:r[0]}),s&&d&&(0,pc.jsx)(z9,{clientId:r[0]}),s&&f&&(0,pc.jsx)(Uj,{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)(wk.__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 j9=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=Sk({ref:n,highlightParent:!0});return o?(0,j9.jsx)(zge.MenuItem,{...i,ref:n,icon:(0,j9.jsx)(Et,{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 H9({clientIds:e,onCopy:t,label:o,shortcut:r,eventType:n="copy",__experimentalUpdateSelection:i=!1}){let{getBlocksByClientId:s}=(0,Im.useSelect)(C),{removeBlocks:a}=(0,Im.useDispatch)(C),l=IS(),u=(0,Xd.useCopyToClipboard)(()=>(0,Ck.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)(Ui.MenuItem,{ref:u,shortcut:r,children:d})}function U9({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,Im.useSelect)(A=>{let{getBlockName:P,getBlockRootClientId:O,getPreviousBlockClientId:N,getSelectedBlockClientIds:j,getBlockAttributes:D,getBlockEditingMode:M,isZoomOut:V,canEditBlock:L,canMoveBlocks:z,getBlockIndex:q,getBlockCount:J}=H(A(C)),{getActiveBlockVariation:te}=A(Ck.store),ee=O(a),W=ee&&P(ee);return{firstParentClientId:ee,parentBlockType:ee&&(te(W,D(ee))||(0,Ck.getBlockType)(W)),previousBlockClientId:N(a),selectedBlockClientIds:j(),isContentOnly:M(a)==="contentOnly",isZoomOut:V(),canEdit:L(a),canMove:z(t),isFirst:q(a)===0,isLast:q(a)===J(ee)-1}},[a,t]),{getBlockOrder:y,getSelectedBlockClientIds:k}=(0,Im.useSelect)(C),{moveBlocksDown:S,moveBlocksUp:_}=(0,Im.useDispatch)(C),x=(0,Im.useSelect)(A=>{let{getShortcutRepresentation:P}=A(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(A){if(!r)return;let P=await A;P&&P[0]&&r(P[0],!1)}function B(){if(!r)return;let A=d||l;A||(A=y()[0]);let P=w&&k().length===0;r(A,P)}let I=!f?.includes(l)&&!!l;return(0,eo.jsx)(age,{clientIds:t,__experimentalUpdateSelection:!r,children:({canCopyStyles:A,canDuplicate:P,canInsertBlock:O,canRemove:N,onDuplicate:j,onInsertAfter:D,onInsertBefore:M,onRemove:V,onCopy:L,onPasteStyles:z})=>!N&&!P&&!O&&p?null:(0,eo.jsx)(Ui.DropdownMenu,{icon:zs,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)(Ui.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)(Ui.MenuItem,{icon:eg,disabled:b,accessibleWhenDisabled:!0,onClick:(0,Xd.pipe)(J,()=>{_(t,l)}),children:(0,rl.__)("Move up")}),(0,eo.jsx)(Ui.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)(H9,{clientIds:t,onCopy:L,shortcut:x.copy}),N&&!p&&(0,eo.jsx)(H9,{clientIds:t,label:(0,rl.__)("Cut"),eventType:"cut",shortcut:x.cut,__experimentalUpdateSelection:!r}),P&&(0,eo.jsx)(Ui.MenuItem,{onClick:(0,Xd.pipe)(J,j,T),shortcut:x.duplicate,children:(0,rl.__)("Duplicate")}),O&&!h&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(Ui.MenuItem,{onClick:(0,Xd.pipe)(J,M),shortcut:x.insertBefore,children:(0,rl.__)("Add before")}),(0,eo.jsx)(Ui.MenuItem,{onClick:(0,Xd.pipe)(J,D),shortcut:x.insertAfter,children:(0,rl.__)("Add after")})]}),m&&s===1&&(0,eo.jsx)(vL.Slot,{fillProps:{clientId:a,onClose:J}})]}),A&&!p&&(0,eo.jsxs)(Ui.MenuGroup,{children:[(0,eo.jsx)(H9,{clientIds:t,onCopy:L,label:(0,rl.__)("Copy styles"),eventType:"copyStyles"}),m&&(0,eo.jsx)(Ui.MenuItem,{onClick:z,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}):ML.Children.map(te=>(0,ML.cloneElement)(te,{onClose:J})),N&&(0,eo.jsx)(Ui.MenuGroup,{children:(0,eo.jsx)(Ui.MenuItem,{onClick:(0,Xd.pipe)(J,V,B),shortcut:x.remove,children:(0,rl.__)("Delete")})})]})})})}var Wge=U9;var $ge=c(U(),1),tGe=(0,$ge.createSlotFill)(Symbol("NoteIconToolbarSlotFill")),NL=tGe;var Ek=c(E(),1);function oGe({clientIds:e,...t}){return(0,Ek.jsxs)(DL.ToolbarGroup,{children:[(0,Ek.jsx)(NL.Slot,{}),(0,Ek.jsx)(DL.ToolbarItem,{children:o=>(0,Ek.jsx)(Wge,{clientIds:e,toggleProps:o,...t})})]})}var VL=oGe;var FL=c(U(),1),Kge=c(G(),1),zL=c(Q(),1);var G9=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,G9.jsx)(FL.ToolbarGroup,{children:(0,G9.jsx)(FL.ToolbarButton,{onClick:()=>{r(t)},children:(0,Kge.__)("Edit visually")})}):null}var jL=c(U(),1),Gi=c(F(),1),Xge=c(Q(),1),Qge=c(Rt(),1),$9=c(Tt(),1),Jge=c($l(),1),ebe=c(io(),1);var W9=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]=$9.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}function iGe(e){let[o,r]=(0,Gi.useState)(!0),n=(0,Gi.useCallback)(()=>{let i=$9.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,Gi.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,Gi.useState)(t),[l]=(0,Gi.useState)(r),u=(0,Gi.useCallback)(()=>{nGe(e.current)},[e]);(0,Jge.useShortcut)("core/block-editor/focus-toolbar",()=>{i&&u()}),(0,Gi.useEffect)(()=>{a&&u()},[o,a,u]),(0,Gi.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,Gi.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 Tk({children:e,focusOnMount:t,focusEditorOnEscape:o=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){let l=(0,Gi.useRef)(),u=iGe(l);return sGe({toolbarRef:l,focusOnMount:t,defaultIndex:n,onIndexChange:i,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:o}),u?(0,W9.jsx)(jL.Toolbar,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,W9.jsx)(jL.NavigableMenu,{orientation:s,role:"toolbar",ref:l,...a,children:e})}var tbe=c(Q(),1),HL=c(ue(),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 Om=c(U(),1),obe=c(G(),1),rbe=c(ue(),1),nbe=c(F(),1),GL=c(Q(),1);var Rk=c(E(),1),K9=[],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||K9,h=u(e),m=p.length>0?d(h):K9;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?K9: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,Rk.jsx)(Om.Dropdown,{popoverProps:lGe,renderToggle:({onToggle:a,isOpen:l})=>(0,Rk.jsx)(Om.ToolbarGroup,{children:(0,Rk.jsx)(Om.ToolbarButton,{onClick:()=>a(!l),"aria-expanded":l,children:(0,obe.__)("Change design")})}),renderContent:()=>(0,Rk.jsx)(Om.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,Rk.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),Lm=c(ue(),1),ube=c(F(),1);var Y9=c(WL(),1),abe=c(G(),1);function lbe(e,t){for(let o of new Y9.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 Am(e,t,o){let r=new Y9.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,Lm.getBlockFromExample)(r,{attributes:o.attributes,innerBlocks:o.innerBlocks,innerContent:o.innerContent});if(e)return(0,Lm.cloneBlock)(e)},[e,t?.example,t?.name])}function Bk({clientId:e,onSwitch:t}){let o=p=>{let{getBlock:h}=p(C),m=h(e);if(!m)return{};let g=(0,Lm.getBlockType)(m.name),{getBlockStyles:b}=p(Lm.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=Am(s,u,p);a(e,{className:h}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:s}}var Mm=c(E(),1),{getVariationStyle:uGe}=H(vr),dGe=(0,Mm.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,Mm.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,Mm.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}=Bk({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[rs],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,Mm.jsx)(mc.ToolbarGroup,{children:(0,Mm.jsx)(mc.ToolbarButton,{onClick:()=>{let f=(t.findIndex(m=>m.name===o.name)+1)%t.length,p=t[f],h=Am(r,o,p);n(e,{className:h})},label:(0,dbe.__)("Shuffle styles"),children:(0,Mm.jsx)(mc.Icon,{icon:dGe,style:{fill:l||"transparent"}})})})}var fbe=fGe;var XL=c(U(),1),q9=c(G(),1),pbe=c(Q(),1),QL=c(ue(),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 Z9=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,Z9.jsx)(XL.ToolbarGroup,{children:(0,Z9.jsx)(XL.ToolbarButton,{onClick:()=>{s?n():r(e)},children:s?(0,q9.__)("Exit pattern"):(0,q9.__)("Edit pattern")})})}var jbe=c(U(),1),Hbe=c(G(),1),Ube=c(Q(),1);var dE=c(ue(),1),Gbe=c(fv(),1);var _u=c(G(),1),xu=c(U(),1),Dm=c(ue(),1),sM=c(Q(),1);var kbe=c(G(),1),lE=c(U(),1),eM=c(ue(),1),tM=c(F(),1);var hbe=c(U(),1),gbe=c(fe(),1);var aE=c(E(),1);function Nm({blocks:e,placement:t="right-start",offset:o=16,anchor:r}){return(0,gbe.useViewportMatch)("medium","<")?null:(0,aE.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,aE.jsx)(hbe.Popover,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:o,anchor:r,children:(0,aE.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,aE.jsx)(bs,{viewportWidth:601,blocks:e})})})})}var bbe=c(U(),1),Pk=c(ue(),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(Pk.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,Pk.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,Pk.getBlockMenuDefaultClassName)(r),onClick:s=>{s.preventDefault(),t(r)},onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,Qd.jsx)(Et,{icon:n,showColors:!0}),i]})}var Sbe=mGe;var xs=c(E(),1);function gGe(e){let t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},o=(0,tM.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,tM.useState)(),{priorityTextTransformations:l,restTransformations:u}=gGe(t),d=l.length&&u.length,f=!!u.length&&(0,xs.jsx)(yGe,{restTransformations:u,onSelect:r,setHoveredTransformItem:a});return(0,xs.jsxs)(xs.Fragment,{children:[(0,xs.jsxs)(lE.MenuGroup,{label:(0,kbe.__)("Transform to"),className:e,children:[s&&(0,xs.jsx)(Nm,{blocks:(0,eM.switchToBlockType)(i,s.name,s.variationName)}),!!o?.length&&(0,xs.jsx)(Sbe,{transformations:o,blocks:i,onSelect:n}),l.map(p=>(0,xs.jsx)(_be,{item:p,onSelect:r,setHoveredTransformItem:a},p.id||p.name)),!d&&f]}),!!d&&(0,xs.jsx)(lE.MenuGroup,{className:e,children:f})]})};function yGe({restTransformations:e,onSelect:t,setHoveredTransformItem:o}){return e.map(r=>(0,xs.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,xs.jsxs)(lE.MenuItem,{className:(0,eM.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,xs.jsx)(Et,{icon:n,showColors:!0}),i]})}var xbe=bGe;var Ebe=c(G(),1),Tbe=c(U(),1),rM=c(F(),1);var oM=c(U(),1);var Ik=c(E(),1),wbe=()=>{};function Cbe({stylesToRender:e,activeStyle:t,onSelect:o=wbe,onHoverStyle:r=wbe}){return!e||e.length===0?null:(0,Ik.jsx)(Ik.Fragment,{children:e.map(n=>{let i=n.label||n.name;return(0,Ik.jsx)(oM.MenuItem,{icon:t.name===n.name?ns:null,onClick:()=>o(n),onFocus:()=>r(n),onBlur:()=>r(null),onMouseEnter:()=>r(n),onMouseLeave:()=>r(null),children:(0,Ik.jsx)(oM.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},n.name)})})}var cE=c(E(),1);function nM({hoveredBlock:e,onSwitch:t}){let{clientId:o}=e,[r,n]=(0,rM.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:u}=Bk({clientId:o,onSwitch:t}),d=(0,rM.useMemo)(()=>{if(!r||!l)return null;let f=Am(u,a,r);return[{...l,attributes:{...l.attributes||{},className:f}}]},[r,l,u,a]);return!s||s.length===0?null:(0,cE.jsxs)(Tbe.MenuGroup,{label:(0,Ebe.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[d&&(0,cE.jsx)(Nm,{blocks:d}),(0,cE.jsx)(Cbe,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:n})]})}var Q9=c(G(),1),Abe=c(F(),1),iM=c(fe(),1);var Jd=c(U(),1);var Pbe=c(F(),1),Ibe=c(ue(),1);var Rbe=c(ue(),1),X9=(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=X9(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=X9(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 qn=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,qn.jsxs)(Jd.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,qn.jsx)(xGe,{patterns:i,onSelect:o}),(0,qn.jsx)(Jd.MenuItem,{onClick:s=>{s.preventDefault(),n(!r)},icon:un,children:(0,Q9.__)("Patterns")})]}):null}function xGe({patterns:e,onSelect:t}){let o=(0,iM.useViewportMatch)("medium","<");return(0,qn.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,qn.jsx)(Jd.Popover,{className:"block-editor-block-switcher__popover-preview",placement:o?"bottom":"right-start",offset:16,children:(0,qn.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,qn.jsx)(wGe,{patterns:e,onSelect:t})})})})}function wGe({patterns:e,onSelect:t}){return(0,qn.jsx)(Jd.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,Q9.__)("Patterns list"),children:e.map(o=>(0,qn.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,iM.useInstanceId)(Lbe,`${o}-list__item-description`);return(0,qn.jsxs)("div",{className:`${o}-list__list-item`,children:[(0,qn.jsxs)(Jd.Composite.Item,{render:(0,qn.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,qn.jsx)(bs,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,qn.jsx)("div",{className:`${o}-list__item-title`,children:e.title})]}),!!e.description&&(0,qn.jsx)(bt,{id:r,children:e.description})]})}var Mbe=_Ge;var ra=c(E(),1);function CGe({onClose:e,clientIds:t}){let{replaceBlocks:o,multiSelect:r,updateBlockAttributes:n}=(0,sM.useDispatch)(C),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:u,hasBlockStyles:d}=(0,sM.useSelect)(T=>{let{getBlockAttributes:B,getBlocksByClientId:R,getBlockRootClientId:I,getBlockTransformItems:A,__experimentalGetPatternTransformItems:P,canRemoveBlocks:O,getBlockName:N}=T(C),{getBlockStyles:j}=T(Dm.store),D=I(t[0]),M=R(t),V=t.length===1,L=V&&N(t[0]),z=V&&!!j(L)?.length;return{blocks:M,possibleBlockTransformations:A(M,D),patterns:P(M,D),isUsingBindings:t.every(q=>!!B(q)?.metadata?.bindings),canRemove:O(t),hasBlockStyles:z}},[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,B){let R=(0,Dm.switchToBlockType)(a,T,B);o(t,R),p(R)}function m(T){n(a[0].clientId,{...f.find(({name:B})=>B===T).attributes})}function g(T){o(t,T),p(T)}let b=a.length===1,v=b&&((0,Dm.isTemplatePart)(a[0])||(0,Dm.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)(Mbe,{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,B)=>{h(T,B),e()},onSelectVariation:T=>{m(T),e()}}),d&&(0,ra.jsx)(nM,{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})})})})},Nbe=EGe;var Dbe=c(G(),1),Ak=c(U(),1);var Ok=c(E(),1);function Vbe({clientIds:e,children:t,label:o,text:r}){return(0,Ok.jsx)(Ak.ToolbarGroup,{children:(0,Ok.jsx)(Ak.ToolbarItem,{children:n=>(0,Ok.jsx)(Ak.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,Ok.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,Ok.jsx)(nM,{hoveredBlock:{clientId:e[0]},onSwitch:i})})})})})}var Lk=c(U(),1),uE=c(G(),1),aM=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,uE.sprintf)((0,uE.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),o):n=(0,uE.__)("These blocks are editable using overrides."),(0,ef.jsx)(Lk.__experimentalText,{children:n})}function zbe({icon:e,clientIds:t,blockTitle:o,label:r}){let[n,i]=(0,aM.useState)(!1),s=(0,aM.useRef)();return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(Lk.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)(Lk.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 Mk=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(dE.store),f=t.some(R=>s(R)==="contentOnly"),p=t.length===1,h=p&&o(t[0]),m=p&&!!d(h)?.length,g=t.some(R=>!!r(R)?.metadata?.patternName&&u(R)),b=t.every(R=>Px(r(R)?.metadata?.bindings)),v=t.every(R=>n(R,"core/block",!0).length>0),y=i(t),k=t.every(R=>l(R)),S=a(t[0]),_=S==="default",x=S==="contentOnly",T=!g&&_&&(m||y)&&!f&&k,B=b&&v;return T?"switcher":x&&m&&!b&&k?"styles-only":B?"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,dE.getBlockType)(u);if(s){let{getActiveBlockVariation:h}=e(dE.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:og}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=jn({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,Mk.jsx)(Et,{className:"block-editor-block-toolbar__block-icon",icon:o});return n==="switcher"?(0,Mk.jsx)(Nbe,{clientIds:e,label:l,text:u,children:d}):n==="styles-only"?(0,Mk.jsx)(Vbe,{clientIds:e,label:l,text:u,children:d}):n==="pattern-overrides"?(0,Mk.jsx)(zbe,{icon:d,clientIds:e,blockTitle:i,label:l}):(0,Mk.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 eG({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)(D=>{let{canEditBlock:M}=D(C),{getBlockName:V,getBlockMode:L,getBlockParents:z,getSelectedBlockClientIds:q,isBlockValid:J,getBlockEditingMode:te,getBlockAttributes:ee,getSettings:W,getTemplateLock:$,getParentSectionBlock:Y,isZoomOut:Z,isSectionBlock:oe,isBlockHiddenAtViewport:ne,getSelectedBlockStyleState:X,isResponsiveEditing:re}=H(D(C)),ae=q(),ve=ae[0],xe=z(ve),be=Y(ve)??xe[xe.length-1],he=V(be),ke=(0,tf.getBlockType)(he),_e=te(ve),we=_e==="default",Re=V(ve),se=ae.every(ut=>J(ut)),ie=ae.every(ut=>L(ut)==="visual"),Ae=ae.every(ut=>!!ee(ut)?.metadata?.bindings),ye=ae.some(ut=>$(ut)==="contentOnly"),Ee=Z(),qe=oe(ve),pt=M(ve),at=pt&&(Ee||qe),Ct=W()?.[wa]?.toLowerCase()||"desktop",rt=ae.length>0&&ae.every(ut=>ne(ut,Ct)),Ot=re()&&Hi(X(ve));return{blockClientId:ve,blockClientIds:ae,isDefaultEditingMode:we,blockType:ve&&(0,tf.getBlockType)(Re),shouldShowVisualToolbar:se&&ie,toolbarKey:`${ve}${be}`,showParentSelector:!Ee&&ke&&_e!=="contentOnly"&&te(be)!=="disabled"&&(0,tf.hasBlockSupport)(ke,"__experimentalParentSelector",!0)&&ae.length===1,isUsingBindings:Ae,isSectionContainer:qe,hasContentOnlyLocking:ye,showShuffleButton:Ee,showSlots:!Ee&&!Ot,showStyleStateSlot:!Ee&&Ot,showGroupButtons:!Ee,showLockButtons:!Ee,showBlockVisibilityButton:!Ee,showSwitchSectionStyleButton:at,areSelectedBlocksHiddenOnViewport:rt,canEdit:pt}},[]),T=(0,J9.useRef)(null),B=(0,J9.useRef)(),R=Sk({ref:B}),I=!(0,Ybe.useViewportMatch)("medium","<");if(!UL())return null;let P=s.length>1,O=(0,tf.isReusableBlock)(l)||(0,tf.isTemplatePart)(l),N=K("block-editor-block-contextual-toolbar",{"has-parent":f}),j=K("block-editor-block-toolbar",{"is-synced":O,"is-connected":p});return(0,At.jsx)(Tk,{focusEditorOnEscape:!0,className:N,"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:j,children:[f&&!P&&I&&(0,At.jsx)(Dhe,{}),(d||P)&&(0,At.jsx)("div",{ref:B,...R,children:(0,At.jsxs)(qbe.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,At.jsx)(Wbe,{clientIds:s,isSynced:O}),a&&k&&(0,At.jsx)(jj,{clientIds:s}),!P&&a&&y&&(0,At.jsx)(V9,{clientId:i}),(0,At.jsx)(fL,{clientIds:s,hideDragHandle:e})]})}),!_&&!m&&d&&P&&v&&(0,At.jsx)(A9,{}),!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)(eG,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}var tG=c(E(),1);function Jbe({clientId:e,isTyping:t,__unstableContentRef:o}){let{capturingClientId:r,isInsertionPointVisible:n,lastClientId:i}=nL(e),s=(0,Nk.useRef)();(0,Nk.useEffect)(()=>{s.current=void 0},[e]);let{stopTyping:a}=(0,Xbe.useDispatch)(C),l=(0,Nk.useRef)(!1);(0,Qbe.useShortcut)("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,Nk.useEffect)(()=>{l.current=!1});let u=r||e,d=rL({contentElement:o?.current,clientId:u});return!t&&(0,tG.jsx)(kb,{clientId:u,bottomClientId:i,className:K("block-editor-block-list__block-popover",{"is-insertion-point-visible":n}),resize:!1,...d,__unstableContentRef:o,children:(0,tG.jsx)(eG,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:f=>{s.current=f},variant:"toolbar"})})}var lM=c(Q(),1),cM=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:K("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 oG=c(E(),1);function IGe(){let[e,t]=(0,cM.useState)(!1),{hasSelection:o,blockOrder:r,setInserterIsOpened:n,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,lM.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,lM.useDispatch)(C));if((0,cM.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,oG.jsx)(I2,{previousClientId:d,nextClientId:h,children:(0,oG.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(ue(),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 fE({children:e,__unstableContentRef:t,...o}){let{clientId:r,hasFixedToolbar:n,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l,blockVisibilitySetting:u}=(0,Dk.useSelect)(OGe,[]),d=(0,lye.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:f,getSelectedBlockClientIds:p,getBlockRootClientId:h,getBlockEditingMode:m,getBlockName:g,isGroupable:b,getEditedContentOnlySection:v,canEditBlock:y}=H((0,Dk.useSelect)(C)),{getGroupingBlockName:k}=(0,Dk.useSelect)(Vk.store),{showEmptyBlockSideInserter:S,showBlockToolbarPopover:_}=aye(),x=kk(),[w,T]=(0,uM.useState)(null),{canRename:B}=Vb(g(p()[0])),{duplicateBlocks:R,removeBlocks:I,replaceBlocks:A,insertAfterBlock:P,insertBeforeBlock:O,selectBlock:N,moveBlocksUp:j,moveBlocksDown:D,expandBlock:M,stopEditingContentOnlySection:V,showViewportModal:L,hideViewportModal:z}=H((0,Dk.useDispatch)(C));function q(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 $=h(W[0]);(d("core/block-editor/move-up",ee)?"up":"down")==="up"?j(W,$):D(W,$);let Z=Array.isArray(W)?W.length:1,oe=(0,Fk.sprintf)((0,Fk._n)("%d block moved.","%d blocks moved.",W.length),Z);(0,iG.speak)(oe)}}else if(d("core/block-editor/duplicate",ee)){let W=p();W.length&&(ee.preventDefault(),R(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 $=f(W);x($)}}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(),O(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(),N(W[0]))}else if(d("core/block-editor/collapse-list-view",ee)){if((0,rG.isTextField)(ee.target)||(0,rG.isTextField)(ee.target?.contentWindow?.document?.activeElement))return;ee.preventDefault(),M(r)}else if(d("core/block-editor/group",ee)){let W=p();if(W.length>1&&b(W)){ee.preventDefault();let $=f(W),Y=k(),Z=(0,Vk.switchToBlockType)($,Y);A(W,Z),(0,iG.speak)((0,Fk.__)("Selected blocks are grouped."))}}else if(d("core/block-editor/rename",ee)){let W=p();if(W.length===1){let $=m(W[0])==="contentOnly";B&&!$&&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,Vk.hasBlockSupport)(Z.name,"visibility",!0))||W.some(Z=>m(Z)!=="default"||!y(Z)))return;L(W)}}d("core/block-editor/stop-editing-as-blocks",ee)&&v()&&V()}}let J=Sb(t),te=Sb(t);return(0,nl.jsxs)("div",{...o,onKeyDown:q,className:K(o.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,nl.jsxs)(pk.Provider,{value:(0,uM.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)(nG.Popover.Slot,{name:"block-toolbar",ref:J}),e,(0,nl.jsx)(nG.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)(Dj,{clientIds:l,onClose:z})]})}var pE=c(fe(),1),zk=c(Q(),1),sG=c(Tt(),1),yi=c(io(),1);var cye=c(E(),1),AGe=new Set([yi.UP,yi.RIGHT,yi.DOWN,yi.LEFT,yi.ENTER,yi.BACKSPACE]);function LGe(e){let{keyCode:t,shiftKey:o}=e;return!o&&AGe.has(t)}function mE(){let e=(0,zk.useSelect)(o=>o(C).isTyping(),[]),{stopTyping:t}=(0,zk.useDispatch)(C);return(0,pE.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 hE(){let e=(0,zk.useSelect)(i=>i(C).isTyping(),[]),{startTyping:t,stopTyping:o}=(0,zk.useDispatch)(C),r=mE(),n=(0,pE.useRefEffect)(i=>{if(e){let d=function(g){let{target:b}=g;h=m.setTimeout(()=>{(0,sG.isTextField)(b)||o()})},f=function(g){let{keyCode:b}=g;(b===yi.ESCAPE||b===yi.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,sG.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,pE.useMergeRefs)([r,n])}function MGe({children:e}){return(0,cye.jsx)("div",{ref:hE(),children:e})}var uye=MGe;var il=c(G(),1),wu=c(ue(),1),of=c(Q(),1),aG=c(fye(),1);var NGe=()=>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:Vx}: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)(O=>{let{getSelectedBlockClientIds:N,getSettings:j,isUngroupable:D,isGroupable:M}=O(C);return{clientIds:N(),isUngroupable:D(),isGroupable:M(),blockVisibilitySetting:j().__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 O=p(),N=(0,wu.switchToBlockType)(h,O);N&&b(t,N)},_=()=>{if(!h.length)return;let O=h[0].innerBlocks;O.length&&b(t,O)};if(!t||t.length<1)return{isLoading:!1,commands:[]};let{showViewportModal:x}=H(m),w=s(t[0]),T=i(f(),w),B=h.every(O=>!!O&&(0,wu.hasBlockSupport)(O.name,"multiple",!0)&&i(O.name,w)),R=l(t),I=[];B&&I.push({name:"duplicate",label:(0,il.__)("Duplicate"),callback:()=>v(t,!0),icon:og}),T&&I.push({name:"add-before",label:(0,il.__)("Add before"),callback:()=>{let O=Array.isArray(t)?t[0]:O;k(O)},icon:Ca},{name:"add-after",label:(0,il.__)("Add after"),callback:()=>{let O=Array.isArray(t)?t[t.length-1]:O;y(O)},icon:Ca}),r&&I.push({name:"Group",label:(0,il.__)("Group"),callback:S,icon:Ux}),o&&I.push({name:"ungroup",label:(0,il.__)("Ungroup"),callback:_,icon:R6}),R&&I.push({name:"remove",label:(0,il.__)("Delete"),callback:()=>g(t,!0),icon:E6});let A=h.every(O=>!!O&&(0,wu.hasBlockSupport)(O.name,"visibility",!0)),P=t.every(O=>d(O)==="default");if(A&&P&&n!==!1){let O=t.some(N=>u(N));I.push({name:"toggle-visibility",label:O?(0,il.__)("Show"):(0,il.__)("Hide"),callback:()=>x(t),icon:O?dg:Nl})}return{isLoading:!1,commands:I.map(O=>({...O,name:"core/block-editor/action-"+O.name,category:"command",callback:({close:N})=>{O.callback(),N()}}))}},dM=()=>{(0,aG.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:NGe()}),(0,aG.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:DGe(),context:"block-selection-edit"})};var Wi=c(E(),1),fM=(0,gye.createSlotFill)(Symbol("BlockCanvasCover"));function pye({children:e}){return(0,Wi.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 lG({shouldIframe:e=!0,height:t="300px",children:o=(0,Wi.jsx)(HS,{}),styles:r,contentRef:n,iframeProps:i}){dM();let s=(0,pM.useViewportMatch)("medium","<"),a=mE(),l=_b(),u=(0,mye.useRef)(),d=(0,pM.useMergeRefs)([n,l,u,hE()]),f=(0,hye.useSelect)(h=>H(h(C)).getZoomLevel(),[]),p=f!==100&&!s?{scale:f,frameSize:"40px"}:{};return e?(0,Wi.jsx)(fE,{__unstableContentRef:u,style:{height:t,display:"flex"},children:(0,Wi.jsxs)(LS,{...i,...p,ref:a,contentRef:d,style:{...i?.style},name:"editor-canvas",children:[(0,Wi.jsx)(fM.Slot,{fillProps:{containerRef:u},children:h=>h.map((m,g)=>(0,Wi.jsx)(pye,{children:m},g))}),(0,Wi.jsx)(Ld,{styles:r}),o]})}):(0,Wi.jsxs)(fE,{__unstableContentRef:u,style:{height:t,display:"flex"},children:[(0,Wi.jsx)(fM.Slot,{fillProps:{containerRef:u},children:h=>h.map((m,g)=>(0,Wi.jsx)(pye,{children:m},g))}),(0,Wi.jsx)(Ld,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:VGe}),(0,Wi.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,Wi.jsx)(lG,{height:t,styles:o,children:e})}var bye=FGe;var Cu=c(U(),1),yye=c(G(),1),vye=c(io(),1),Sye=c(Rt(),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(Rt(),1),BM=c(U(),1),mG=c(G(),1),Rve=c(Q(),1),Bve=c(F(),1);var Yk=c(fe(),1),wve=c(U(),1);var yE=c(Q(),1),Cve=c(Rt(),1),Wr=c(F(),1),pG=c(G(),1);var xM=c(U(),1),wM=c(F(),1),CM=c(Q(),1);var xye=c(fe(),1),wye=c(Qr(),1),Cye=c(Q(),1),yM=c(F(),1),jk=c(G(),1);var mM=c(F(),1),hM=(0,mM.createContext)({});hM.displayName="ListViewContext";var Vm=()=>(0,mM.useContext)(hM);var gM=c(F(),1),_ye=c(E(),1);function bM({children:e,...t}){let o=(0,gM.useRef)();return(0,gM.useEffect)(()=>{o.current&&(o.current.textContent=o.current.textContent)},[e]),(0,_ye.jsx)("div",{hidden:!0,...t,ref:o,children:e})}var gE=c(E(),1),cG=(0,yM.forwardRef)(({nestingLevel:e,blockCount:t,clientId:o,...r},n)=>{let{insertedBlock:i,setInsertedBlock:s}=Vm(),a=(0,xye.useInstanceId)(cG),{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=jn({clientId:o,context:"list-view"}),f=jn({clientId:i?.clientId,context:"list-view"});if((0,yM.useEffect)(()=>{f?.length&&(0,wye.speak)((0,jk.sprintf)((0,jk.__)("%s block inserted"),f),"assertive")},[f]),u)return null;let p=`list-view-appender__${a}`,h=(0,jk.sprintf)((0,jk.__)("Append to %1$s block at position %2$d, Level %3$d"),d,t+1,e);return(0,gE.jsxs)("div",{className:"list-view-appender",children:[(0,gE.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,gE.jsx)(bM,{id:p,children:h})]})});var zm=c(ue(),1),zb=c(U(),1),kM=c(fe(),1);var Gr=c(F(),1),Gk=c(Q(),1),dG=c(G(),1),_M=c(io(),1),qye=c(HC(),1),Zye=c($l(),1),Xye=c(Qr(),1);var Eye=c(U(),1),Tye=c(fe(),1),Rye=c(F(),1);var Bye=c(E(),1),GGe=See(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:K("block-editor-list-view-leaf",s),level:r,positionInSet:o,setSize:n,isExpanded:void 0,...l,children:i})}),Pye=WGe;var Iye=c(Tt(),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 Hk=c(U(),1),Fye=c(F(),1);var SM=c(io(),1);var Lye=c(G(),1),uG=c(E(),1);function vM({onClick:e}){return(0,uG.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,uG.jsx)(gt,{icon:(0,Lye.isRTL)()?Fx:op})})}var Mye=c(F(),1),Nye=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,Nye.useSelect)(n=>({block:n(C).getBlock(e)}),[e]);return(0,Mye.useMemo)(()=>KGe(o,t),[o,t])}var Ur=c(E(),1),{Badge:YGe}=H(Hk.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=Do(t),v=jn({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===SM.ENTER||T.keyCode===SM.SPACE)&&o(T)}return(0,Ur.jsxs)("a",{className:K("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,Ur.jsx)(vM,{onClick:i}),(0,Ur.jsx)(Et,{icon:b?.icon,showColors:!0,context:"list-view"}),(0,Ur.jsxs)(Hk.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,Ur.jsx)(Hk.__experimentalTruncate,{ellipsizeMode:"auto",children:v})}),b?.anchor&&(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,Ur.jsx)(YGe,{className:"block-editor-list-view-block-select-button__anchor",children:b.anchor})}),S&&(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,Ur.jsx)(gt,{icon:L4})}),_.length?(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:_.map((T,B)=>(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${T.url})`,zIndex:_.length-B}},T.clientId))}):null,!!h&&(0,Ur.jsxs)(kt.Root,{children:[(0,Ur.jsx)(kt.Trigger,{render:(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility","aria-hidden":"true",children:(0,Ur.jsx)(gt,{icon:Nl})})}),(0,Ur.jsx)(kt.Popup,{children:h})]}),k&&(0,Ur.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,Ur.jsx)(gt,{icon:E4})})]})]})}var zye=(0,Fye.forwardRef)(qGe);var Fm=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}=Vm(),g=l.includes(f)?l:[f];return(0,Fm.jsxs)(Fm.Fragment,{children:[p&&(0,Fm.jsx)(p,{block:o,insertedBlock:h,setInsertedBlock:m}),(0,Fm.jsx)(aL,{appendToOwnerDocument:!0,clientIds:g,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,Fm.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 Fb=c(G(),1),Uye=c(Tt(),1),Gye=(e,t,o)=>(0,Fb.sprintf)((0,Fb.__)("Block %1$d of %2$d, Level %3$d."),e,t,o),Wye=(e,t)=>[e?.positionLabel?`${(0,Fb.sprintf)((0,Fb.__)("Position: %s"),e.positionLabel)}.`:void 0,t?(0,Fb.__)("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 Uk(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 In=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,Gr.useRef)(null),y=(0,Gr.useRef)(null),k=(0,Gr.useRef)(null),[S,_]=(0,Gr.useState)(!1),[x,w]=(0,Gr.useState)(),[T,B]=(0,Gr.useState)(!1),{isLocked:R}=oa(e),I=i&&g[0]===e,A=i&&g[g.length-1]===e,{toggleBlockHighlight:P,duplicateBlocks:O,multiSelect:N,replaceBlocks:j,removeBlocks:D,insertAfterBlock:M,insertBeforeBlock:V,showViewportModal:L,stopEditingContentOnlySection:z}=H((0,Gk.useDispatch)(C)),q=(0,kM.useDebounce)(P,50),{canInsertBlockType:J,getSelectedBlockClientIds:te,getPreviousBlockClientId:ee,getBlockRootClientId:W,getBlockOrder:$,getBlockParents:Y,getBlockEditingMode:Z,getBlocksByClientId:oe,canEditBlock:ne,canMoveBlock:X,canRemoveBlocks:re,isGroupable:ae}=(0,Gk.useSelect)(C),{getGroupingBlockName:ve}=(0,Gk.useSelect)(zm.store),xe=Do(e),ge=kk(),{block:be,blockName:he,blockEditingMode:ke,allowRightClickOverrides:_e,editedSection:we,viewportSettings:Re,blockVisibilitySetting:se}=(0,Gk.useSelect)(Be=>{let{getBlock:Ft,getBlockName:nt,getBlockEditingMode:zt,getSettings:Ir,getEditedContentOnlySection:$o}=H(Be(C)),Sn=Ir();return{block:Ft(e),blockName:nt(e),blockEditingMode:zt(e),allowRightClickOverrides:Sn.allowRightClickOverrides,editedSection:$o(),viewportSettings:Sn.__experimentalFeatures?.viewport,blockVisibilitySetting:Sn.__experimentalFeatures?.blockVisibility?.allowEditing}},[e]),ie=ke==="disabled",{canRename:Ae}=Vb(he),ye=(0,zm.hasBlockSupport)(he,"__experimentalToolbar",!0),qe=`list-view-block-select-button__description-${(0,kM.useInstanceId)(Qye)}`,{expand:pt,collapse:at,collapseAll:Ct,BlockSettingsMenu:rt,listViewInstanceId:Ot,expandedState:ut,setInsertedBlock:Ut,treeGridElementRef:So,rootClientId:mo}=Vm(),de=(0,Zye.__unstableUseShortcutEventMatch)();function Me(){let Be=te(),Ft=Be.includes(e),nt=Ft?Be[0]:e,zt=W(nt);return{blocksToUpdate:Ft?Be:[e],firstBlockClientId:nt,firstBlockRootClientId:zt,selectedBlockClientIds:Be}}async function Ze(Be){if(Be.defaultPrevented||Be.target.closest("[role=dialog]"))return;if(we&&de("core/block-editor/unselect",Be)){Be.stopPropagation(),Be.preventDefault(),z();return}let Ft=[_M.BACKSPACE,_M.DELETE].includes(Be.keyCode);if(de("core/block-editor/unselect",Be)&&g.length>0)Be.stopPropagation(),Be.preventDefault(),a(Be,void 0);else if(Ft||de("core/block-editor/remove",Be)){let{blocksToUpdate:nt,firstBlockClientId:zt,firstBlockRootClientId:Ir,selectedBlockClientIds:$o}=Me();if(!re(nt))return;let Sn=ee(zt)??Ir;D(nt,!1);let Wh=$o.length>0&&te().length===0;Sn||(Sn=$()[0]),ct(Sn,Wh)}else if(de("core/block-editor/paste-styles",Be)){Be.preventDefault();let{blocksToUpdate:nt}=Me(),zt=oe(nt);ge(zt)}else if(de("core/block-editor/duplicate",Be)){Be.preventDefault();let{blocksToUpdate:nt,firstBlockRootClientId:zt}=Me();if(oe(nt).every($o=>!!$o&&(0,zm.hasBlockSupport)($o.name,"multiple",!0)&&J($o.name,zt))){let $o=await O(nt,!1);$o?.length&&ct($o[0],!1)}}else if(de("core/block-editor/insert-before",Be)){Be.preventDefault();let{blocksToUpdate:nt}=Me();await V(nt[0]);let zt=te();ct(zt[0],!1)}else if(de("core/block-editor/insert-after",Be)){Be.preventDefault();let{blocksToUpdate:nt}=Me();await M(nt.at(-1));let zt=te();ct(zt[0],!1)}else if(de("core/block-editor/select-all",Be)){Be.preventDefault();let{firstBlockRootClientId:nt,selectedBlockClientIds:zt}=Me(),Ir=$(nt);if(!Ir.length)return;if((0,qye.isShallowEqual)(zt,Ir)&&nt&&nt!==mo){ct(nt,!0);return}N(Ir[0],Ir[Ir.length-1],null)}else if(de("core/block-editor/collapse-list-view",Be)){Be.preventDefault();let{firstBlockClientId:nt}=Me(),zt=Y(nt,!1);Ct(),pt(zt)}else if(de("core/block-editor/group",Be)){let{blocksToUpdate:nt}=Me();if(nt.length>1&&ae(nt)){Be.preventDefault();let zt=oe(nt),Ir=ve(),$o=(0,zm.switchToBlockType)(zt,Ir);j(nt,$o),(0,Xye.speak)((0,dG.__)("Selected blocks are grouped."));let Sn=te();ct(Sn[0],!1)}}else if(de("core/block-editor/toggle-block-visibility",Be)){if(se===!1)return;Be.preventDefault();let{blocksToUpdate:nt}=Me();if(!oe(nt).every($o=>(0,zm.hasBlockSupport)($o.name,"visibility",!0))||nt.some($o=>Z($o)!=="default"))return;L(nt)}else if(de("core/block-editor/rename",Be)){let{blocksToUpdate:nt}=Me(),zt=Z(nt[0])==="contentOnly";nt.length===1&&Ae&&!zt&&(Be.preventDefault(),B(!0))}}let ze=(0,Gr.useCallback)(()=>{_(!0),q(e,!0)},[e,_,q]),Je=(0,Gr.useCallback)(()=>{_(!1),q(e,!1)},[e,_,q]),lt=(0,Gr.useCallback)(Be=>{let Ft=Be?.detail===0;a(Be,e,Ft?-1:null),Be.preventDefault()},[e,a]),ct=(0,Gr.useCallback)((Be,Ft)=>{Ft&&a(void 0,Be,null,null),Uk(Be,So?.current)},[a,So]),br=(0,Gr.useCallback)(Be=>{Be.preventDefault(),Be.stopPropagation(),m===!0?at(e):m===!1&&pt(e)},[e,pt,at,m]),Ao=(0,Gr.useCallback)(Be=>{let{ownerDocument:Ft}=k?.current||{};!Ft||!Ft.hasFocus()||ye&&_e&&(k.current?.click(),w(new window.DOMRect(Be.clientX,Be.clientY,0,0)),Be.preventDefault())},[_e,k,ye]),or=(0,Gr.useCallback)(Be=>{_e&&Be.button===2&&Be.preventDefault()},[_e]),ho=(0,Gr.useMemo)(()=>{let{ownerDocument:Be}=y?.current||{};if(!(!x||!Be))return{ownerDocument:Be,getBoundingClientRect(){return x}}},[x]),Go=(0,Gr.useCallback)(()=>{w(void 0)},[w]);if(Aye({isSelected:i,rowItemRef:y,selectedClientIds:g}),!be)return null;let Vn=Gye(l,f,u),yr=Wye(xe,R),an=Nj(be?.attributes?.metadata?.blockVisibility,Re),it=f>0,_t=ye&&!ie,Vt=p&&it&&!ie,ko=K("block-editor-list-view-block__mover-cell",{"is-visible":S||i}),Wo=K("block-editor-list-view-block__menu-cell",{"is-visible":S||I}),rr;Vt?rr=2:_t||(rr=3);let Sa=K({"is-selected":i,"is-first-selected":I,"is-last-selected":A,"is-branch-selected":s,"is-synced-branch":b,"is-dragging":r,"has-single-cell":!ye,"is-synced":xe?.isSynced,"is-draggable":X&&!ie,"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":ie}),ka=g.includes(e)?g:[e],Ol=Be=>ie?-1:i&&g.length===1?0:Be;return(0,In.jsxs)(Pye,{className:Sa,isDragged:r,onKeyDown:Ze,onMouseEnter:ie?void 0:ze,onMouseLeave:ie?void 0:Je,onFocus:ie?void 0:ze,onBlur:ie?void 0:Je,level:u,position:l,rowCount:d,path:h,id:`list-view-${Ot}-block-${e}`,"data-block":e,"data-expanded":ne?m:void 0,ref:y,children:[(0,In.jsx)(zb.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:rr,ref:v,"aria-selected":!!i,children:({ref:Be,tabIndex:Ft,onFocus:nt})=>(0,In.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,In.jsx)(Hye,{block:be,onClick:lt,onContextMenu:ie?void 0:Ao,onMouseDown:or,onToggleExpanded:ie?void 0:br,isSelected:i,position:l,siblingBlockCount:f,level:u,ref:Be,tabIndex:Ol(Ft),onFocus:nt,isExpanded:ne?m:void 0,selectedClientIds:g,ariaDescribedBy:qe,visibilityLabel:an,isDisabled:ie}),(0,In.jsx)(bM,{id:qe,children:[Vn,yr,an].filter(Boolean).join(" ")})]})}),Vt&&(0,In.jsx)(In.Fragment,{children:(0,In.jsxs)(zb.__experimentalTreeGridCell,{className:ko,withoutGridItem:!0,children:[(0,In.jsx)(zb.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:Ft,onFocus:nt})=>(0,In.jsx)(uL,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:Ft,onFocus:nt})}),(0,In.jsx)(zb.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:Ft,onFocus:nt})=>(0,In.jsx)(dL,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:Ft,onFocus:nt})})]})}),_t&&rt&&(0,In.jsx)(zb.__experimentalTreeGridCell,{className:Wo,"aria-selected":!!i,ref:k,children:({ref:Be,tabIndex:Ft,onFocus:nt})=>(0,In.jsx)(rt,{clientIds:ka,block:be,icon:zs,label:(0,dG.__)("Options"),popoverProps:{anchor:ho},toggleProps:{ref:Be,className:"block-editor-list-view-block__menu",tabIndex:Ft,onClick:Go,onFocus:nt,size:"small"},disableOpenOnArrowDown:!0,expand:pt,expandedState:ut,setInsertedBlock:Ut,__experimentalSelectBlock:ct,isContentOnlyListView:!!mo&&Z(mo)==="contentOnly"})}),T&&(0,In.jsx)(Nb,{clientId:e,onClose:()=>B(!1)})]})}var Jye=(0,Gr.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=Do(f),b=h||!!g?.isSynced,v=(0,CM.useSelect)(P=>f?P(C).canEditBlock(f):!0,[f]),{blockDropPosition:y,blockDropTargetIndex:k,firstDraggedBlockIndex:S,blockIndexes:_,expandedState:x,draggedClientIds:w}=Vm(),T=(0,wM.useRef)();if(!v)return null;let B=m&&i===1,R=t.filter(Boolean),I=R.length,A=B?I+1:I;return T.current=l,(0,na.jsxs)(na.Fragment,{children:[R.map((P,O)=>{let{clientId:N,innerBlocks:j}=P;O>0&&(T.current+=eve(R[O-1],x,w,d));let D=!!w?.includes(N),{displacement:M,isAfterDraggedBlocks:V,isNesting:L}=Yye({blockIndexes:_,blockDropTargetIndex:k,blockDropPosition:y,clientId:N,firstDraggedBlockIndex:S,isDragged:D}),{itemInView:z}=u,q=z(T.current),J=O+1,te=s.length>0?`${s}_${J}`:`${J}`,ee=!!j?.length,W=ee&&p?x[N]??d:void 0,$=$ye(N,n),Y=a||$&&ee,Z=D||q||$&&N===n[0]||O===0||O===I-1;return(0,na.jsxs)(CM.AsyncModeProvider,{value:!$,children:[Z&&(0,na.jsx)(Jye,{block:P,selectBlock:o,isSelected:$,isBranchSelected:Y,isDragged:D,level:i,position:J,rowCount:A,siblingBlockCount:I,showBlockMovers:r,path:te,isExpanded:D?!1:W,listPosition:T.current,selectedClientIds:n,isSyncedBranch:b,displacement:M,isAfterDraggedBlocks:V,isNesting:L}),!Z&&(0,na.jsx)("tr",{children:(0,na.jsx)("td",{className:"block-editor-list-view-placeholder"})}),ee&&W&&!D&&(0,na.jsx)(tve,{parentId:N,blocks:j,selectBlock:o,showBlockMovers:r,level:i+1,path:te,listPosition:T.current+1,fixedListWindow:u,isBranchSelected:Y,selectedClientIds:n,isExpanded:d,isSyncedBranch:b})]},N)}),B&&(0,na.jsx)(xM.__experimentalTreeGridRow,{level:i,setSize:A,positionInSet:A,isExpanded:!0,children:(0,na.jsx)(xM.__experimentalTreeGridCell,{children:P=>(0,na.jsx)(cG,{clientId:f,nestingLevel:i,blockCount:I,...P})})})]})}var ove=(0,wM.memo)(tve);var Wk=c(U(),1),EM=c(Tt(),1),rf=c(F(),1),fG=c(G(),1);var al=c(E(),1);function rve({draggedBlockClientId:e,listViewRef:t,blockDropTarget:o}){let r=Do(e),n=jn({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,fG.isRTL)(),p=(0,rf.useCallback)((y,k)=>{if(!d)return 0;let S=d.offsetWidth,_=(0,EM.getScrollContainer)(d,"horizontal"),x=d.ownerDocument,w=_===x.body||_===x.documentElement;if(_&&!w){let T=_.getBoundingClientRect(),B=(0,fG.isRTL)()?T.right-y.right:y.left-T.left,R=_.clientWidth;if(R<S+B&&(S=R-B),!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,EM.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,EM.getScrollContainer)(d,"horizontal"),w=d.ownerDocument,T=x===w.body||x===w.documentElement;if(x&&!T){let I=x.getBoundingClientRect(),A=f?x.offsetWidth-x.clientWidth:0;S<I.left+A&&(S=I.left+A)}a==="top"?_=k.top-k.height*2:_=k.top;let B=p(k,0),R=k.height;return new window.DOMRect(S,_,B,R)}}},[d,a,p,f]);return d?(0,al.jsx)(Wk.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:K("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:K("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:m,children:[(0,al.jsx)(vM,{onClick:()=>{}}),(0,al.jsx)(Et,{icon:r?.icon,showColors:!0,context:"list-view"}),(0,al.jsx)(Wk.__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)(Wk.__experimentalTruncate,{ellipsizeMode:"auto",children:n})})})]}),(0,al.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}var nve=c(Qr(),1),$k=c(G(),1),bE=c(Q(),1),ive=c(F(),1),ia=c(io(),1),sve=c(ue(),1);function ave(){let{clearSelectedBlock:e,multiSelect:t,selectBlock:o}=(0,bE.useDispatch)(C),{getBlockName:r,getBlockParents:n,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:a,hasSelectedBlock:l}=(0,bE.useSelect)(C),{getBlockType:u}=(0,bE.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),B=n(w),{start:R,end:I}=Kye(x,w,T,B);await t(R,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,$k.sprintf)((0,$k.__)("%s deselected."),x))}else S.length>1&&(_=(0,$k.sprintf)((0,$k.__)("%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),jb=c(F(),1),Hb=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]=wb(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,jb.useState)(),{rootClientId:d,blockIndex:f}=l||{},p=V2(d,f),h=(0,gve.isRTL)(),m=(0,Hb.usePrevious)(d),g=(0,jb.useCallback)((S,_)=>{let{rootClientId:x}=_||{};x&&_?.dropPosition==="inside"&&!S[x]&&o({type:"expand",clientIds:[x]})},[o]),b=(0,Hb.useThrottle)(g,500,iWe);(0,jb.useEffect)(()=>{if(l?.dropPosition!=="inside"||m!==l?.rootClientId){b.cancel();return}b(t,l)},[t,m,l,b]);let v=s(),y=(0,Hb.useThrottle)((0,jb.useCallback)((S,_)=>{let x={x:S.clientX,y:S.clientY},w=!!v?.length,B=Array.from(_.querySelectorAll("[data-block]")).map(I=>{let A=I.dataset.block,P=I.dataset.expanded==="true",O=I.classList.contains("is-dragging"),N=parseInt(I.getAttribute("aria-level"),10),j=r(A);return{clientId:A,isExpanded:P,rootClientId:j,blockIndex:n(A),element:I,nestingLevel:N||void 0,isDraggedBlock:w?O:!1,innerBlockCount:i(A),canInsertDraggedBlocksAsSibling:w?a(v,j):!0,canInsertDraggedBlocksAsChild:w?a(v,A):!0}}),R=nWe(B,x,h);R&&u(R)},[a,v,i,n,r,h]),50);return{ref:(0,Hb.__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 TM=c(F(),1),vve=c(Q(),1);function Sve({firstSelectedBlockClientId:e,setExpandedState:t}){let[o,r]=(0,TM.useState)(null),{selectedBlockParentClientIds:n}=(0,vve.useSelect)(i=>{let{getBlockParents:s}=i(C);return{selectedBlockParentClientIds:s(e,!1)}},[e]);return(0,TM.useEffect)(()=>{o!==e&&n?.length&&t({type:"expand",clientIds:n})},[e,n,o,t]),{setSelectedTreeId:r}}var Kk=c(Q(),1),kve=c(fe(),1);function _ve({selectBlock:e}){let t=(0,Kk.useRegistry)(),{getBlockOrder:o,getBlockRootClientId:r,getBlocksByClientId:n,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:a,canInsertBlockType:l,canRemoveBlocks:u}=(0,Kk.useSelect)(C),{flashBlock:d,removeBlocks:f,replaceBlocks:p,insertBlocks:h}=(0,Kk.useDispatch)(C),m=IS();return(0,kve.useRefEffect)(g=>{function b(k,S){S&&e(void 0,k,null,null),Uk(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:B}=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 R=n(x);gA(k,R,t)}if(k.type==="cut"){if(!u(x))return;let R=i(w)??T;f(x,!1);let I=B.length>0&&s().length===0;R||(R=o()[0]),b(R,I)}else if(k.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:R}=a(),I=hce(k,R);if(x.length===1){let[A]=x;if(I.every(P=>l(P.name,A))){h(I,void 0,A),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=U9,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,Yk.useInstanceId)(Eve),{clientIdsTree:h,draggedClientIds:m,selectedClientIds:g}=dve({blocks:t,rootClientId:a}),b=cve(h),{getBlock:v,getSelectedBlockClientIds:y}=(0,yE.useSelect)(C),{visibleBlockCount:k}=(0,yE.useSelect)(oe=>{let{getGlobalBlockCount:ne,getClientIdsOfDescendants:X}=oe(C),re=m?.length>0?X(m).length+1:0;return{visibleBlockCount:ne()-re}},[m]),{updateBlockSelection:S}=ave(),[_,x]=(0,Wr.useReducer)(sWe,{}),[w,T]=(0,Wr.useState)(null),{setSelectedTreeId:B}=Sve({firstSelectedBlockClientId:g[0],setExpandedState:x}),R=(0,Wr.useCallback)((oe,ne,X)=>{S(oe,ne,null,X),B(ne),u&&u(v(ne))},[B,S,u,v]),{ref:I,target:A}=yve({dropZoneElement:o,expandedState:_,setExpandedState:x}),P=(0,Wr.useRef)(),O=_ve({selectBlock:R}),N=(0,Wr.useCallback)(oe=>{let[ne]=y();ne&&oe&&Uk(ne,oe)},[y]),j=(0,Yk.useMergeRefs)([O,N,P,I,f]),D=(0,Wr.useCallback)(oe=>{if(!oe)return;let ne=Array.isArray(oe)?oe:[oe];x({type:"expand",clientIds:ne})},[x]),M=(0,Wr.useCallback)(oe=>{oe&&x({type:"collapse",clientIds:[oe]})},[x]),V=(0,Wr.useCallback)(()=>{x({type:"clear"})},[x]),L=(0,Wr.useCallback)(oe=>{D(oe?.dataset?.block)},[D]),z=(0,Wr.useCallback)(oe=>{M(oe?.dataset?.block)},[M]),q=(0,Wr.useCallback)((oe,ne,X)=>{oe.shiftKey&&S(oe,ne?.dataset?.block,X?.dataset?.block)},[S]);mve({collapseAll:V,expand:D});let J=m?.[0],{blockDropTargetIndex:te,blockDropPosition:ee,firstDraggedBlockIndex:W}=(0,Wr.useMemo)(()=>{let oe,ne;if(A?.clientId){let X=b[A.clientId];oe=X===void 0||A?.dropPosition==="top"?X:X+1}else A===null&&(oe=null);if(J){let X=b[J];ne=X===void 0||A?.dropPosition==="top"?X:X+1}return{blockDropTargetIndex:oe,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:ne}},[A,b,J]),$=(0,Wr.useMemo)(()=>({blockDropPosition:ee,blockDropTargetIndex:te,blockIndexes:b,draggedClientIds:m,expandedState:_,expand:D,firstDraggedBlockIndex:W,collapse:M,collapseAll:V,BlockSettingsMenu:s,listViewInstanceId:p,AdditionalBlockContent:d,insertedBlock:w,setInsertedBlock:T,treeGridElementRef:P,rootClientId:a}),[ee,te,b,m,_,D,W,M,V,s,p,d,w,T,a]),[Y]=(0,Yk.__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)(yE.AsyncModeProvider,{value:!0,children:[(0,sf.jsx)(rve,{draggedBlockClientId:J,listViewRef:P,blockDropTarget:A}),l&&(0,sf.jsx)(bt,{id:Z,children:l}),(0,sf.jsx)(wve.__experimentalTreeGrid,{id:e,className:K("block-editor-list-view-tree",{"is-dragging":m?.length>0&&te!==void 0}),"aria-label":(0,pG.__)("Block navigation structure"),ref:j,onCollapseRow:z,onExpandRow:L,onFocusRow:q,applicationAriaLabel:(0,pG.__)("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)(hM.Provider,{value:$,children:(0,sf.jsx)(ove,{blocks:h,parentId:a,selectBlock:R,showBlockMovers:r,fixedListWindow:Y,selectedClientIds:g,isExpanded:n,showAppender:i})})})]})}var vE=(0,Wr.forwardRef)(Eve),RM=(0,Wr.forwardRef)((e,t)=>(0,sf.jsx)(vE,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));var jm=c(E(),1);function aWe({isEnabled:e,onToggle:t,isOpen:o,innerRef:r,...n}){return(0,jm.jsx)(BM.Button,{__next40pxDefaultSize:!0,...n,ref:r,icon:Zx,"aria-expanded":o,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,mG.__)("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,jm.jsx)(BM.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:i,onToggle:s})=>(0,jm.jsx)(aWe,{...t,innerRef:o,isOpen:i,onToggle:s,isEnabled:n}),renderContent:()=>(0,jm.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,jm.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,mG.__)("List view")}),(0,jm.jsx)(RM,{})]})})}var Pve=(0,Bve.forwardRef)(lWe);var SE=c(F(),1),Ove=c(Q(),1),Ave=c(fe(),1),Hm=c(U(),1),hG=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}=Bk({clientId:e,onSwitch:t}),[u,d]=(0,SE.useState)(null),[f,p]=(0,SE.useState)(null),h=xr(),m=(0,SE.useMemo)(()=>{if(!u||!a)return null;let _=Am(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)(Hm.__experimentalToolsPanel,{label:(0,hG.__)("Styles"),resetAll:S,panelId:e,hasInnerWrapper:!0,dropdownMenuProps:h,children:(0,af.jsx)(Hm.__experimentalToolsPanelItem,{hasValue:k,label:(0,hG.__)("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)(Hm.Button,{__next40pxDefaultSize:!0,className:K("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)(Hm.__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 qk=cWe;var Vve=c(U(),1),Zk=c(G(),1);var Mve=c(U(),1),Nve=c(E(),1),Lve={0:I4,1:W3,2:K3,3:q3,4:X3,5:J3,6:t4};function gG({level:e}){return Lve[e]?(0,Nve.jsx)(Mve.Icon,{icon:Lve[e]}):null}var PM=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,PM.jsx)(Vve.ToolbarDropdownMenu,{popoverProps:uWe,icon:(0,PM.jsx)(gG,{level:t}),label:(0,Zk.__)("Change level"),controls:r.map(n=>{let i=n===t;return{icon:(0,PM.jsx)(gG,{level:n}),title:n===0?(0,Zk.__)("Paragraph"):(0,Zk.sprintf)((0,Zk.__)("Heading %d"),n),isActive:i,onClick(){o(n)},role:"menuitemradio"}})})}var kE=c(G(),1),_E=c(U(),1);var lf=c(E(),1);function dWe({icon:e=v4,label:t=(0,kE.__)("Choose variation"),instructions:o=(0,kE.__)("Select a variation to start with:"),variations:r,onSelect:n,allowSkip:i}){let s=K("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return(0,lf.jsxs)(_E.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,kE.__)("Block variations"),children:r.map(a=>(0,lf.jsxs)("li",{children:[(0,lf.jsx)(_E.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)(_E.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>n(),children:(0,kE.__)("Skip")})})]})}var zve=dWe;var Gve=c(Q(),1),Wve=c(ue(),1),yG=c(U(),1);var bG=c(F(),1),vG=c(fe(),1),$ve=c(G(),1);var cf=c(G(),1),Xk=c(U(),1);var Um={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)(Xk.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)(Xk.Button,{size:"compact",icon:(0,cf.isRTL)()?un:Ti,label:(0,cf.__)("Previous pattern"),onClick:e,disabled:o===0,accessibleWhenDisabled:!0}),(0,sa.jsx)(Xk.Button,{size:"compact",icon:(0,cf.isRTL)()?Ti: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===Um.carousel,l=(0,sa.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,sa.jsx)(Xk.Button,{size:"compact",icon:fw,label:(0,cf.__)("Carousel view"),onClick:()=>t(Um.carousel),isPressed:a}),(0,sa.jsx)(Xk.Button,{size:"compact",icon:Hx,label:(0,cf.__)("Grid view"),onClick:()=>t(Um.grid),isPressed:e===Um.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 Zo=c(E(),1),gWe=({viewMode:e,activeSlide:t,patterns:o,onBlockPatternSelect:r,showTitles:n})=>{let i="block-editor-block-pattern-setup__container";if(e===Um.carousel){let s=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,Zo.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,Zo.jsx)("div",{className:i,children:(0,Zo.jsx)("div",{className:"carousel-container",children:o.map((a,l)=>(0,Zo.jsx)(Yve,{active:l===t,className:s.get(l)||"",pattern:a},a.name))})})})}return(0,Zo.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,Zo.jsx)(yG.Composite,{role:"listbox",className:i,"aria-label":(0,$ve.__)("Patterns list"),children:o.map(s=>(0,Zo.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,vG.useInstanceId)(Kve,`${r}__item-description`);return(0,Zo.jsx)("div",{className:`${r}__list-item`,children:(0,Zo.jsxs)(yG.Composite.Item,{render:(0,Zo.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,Zo.jsx)(bs,{blocks:n,viewportWidth:s}),o&&(0,Zo.jsx)("div",{className:`${r}__item-title`,children:e.title}),!!i&&(0,Zo.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,vG.useInstanceId)(Yve,"block-editor-block-pattern-setup-list__item-description");return(0,Zo.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?a:void 0,children:[(0,Zo.jsx)(bs,{blocks:n,minHeight:r}),!!s&&(0,Zo.jsx)(bt,{id:a,children:s})]})}var bWe=({clientId:e,blockName:t,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:n=Um.carousel,showTitles:i=!1})=>{let[s,a]=(0,bG.useState)(n),[l,u]=(0,bG.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,Zo.jsx)(Zo.Fragment,{children:(0,Zo.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,Zo.jsx)(gWe,{viewMode:s,activeSlide:l,patterns:f,onBlockPatternSelect:h,showTitles:i}),(0,Zo.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 SG=c(ue(),1),uf=c(G(),1),df=c(U(),1);var IM=c(Q(),1),Zve=c(F(),1);var $r=c(E(),1),{Menu:Ub}=H(df.privateApis);function yWe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,$r.jsxs)("fieldset",{className:e,children:[(0,$r.jsx)(bt,{render:(0,$r.jsx)("legend",{}),children:(0,uf.__)("Transform to variation")}),r.map(n=>(0,$r.jsx)(df.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,$r.jsx)(Et,{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,$r.jsx)("div",{className:e,children:(0,$r.jsxs)(Ub,{children:[(0,$r.jsx)(Ub.TriggerButton,{render:(0,$r.jsx)(df.Button,{className:"block-editor-block-variation-transforms__button",__next40pxDefaultSize:!0,variant:"secondary",children:(0,uf.__)("Transform to variation")})}),(0,$r.jsx)(Ub.Popover,{position:"bottom",children:(0,$r.jsx)(Ub.Group,{children:r.map(n=>(0,$r.jsxs)(Ub.RadioItem,{value:n.name,checked:o===n.name,onChange:()=>t(n.name),children:[(0,$r.jsx)(Ub.ItemLabel,{children:n.title}),n.description&&(0,$r.jsx)(Ub.ItemHelpText,{children:n.description})]},n.name))})})]})})}function SWe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,$r.jsx)("div",{className:e,children:(0,$r.jsx)(df.__experimentalToggleGroupControl,{label:(0,uf.__)("Transform to variation"),value:o,hideLabelFromVision:!0,onChange:t,children:r.map(n=>(0,$r.jsx)(df.__experimentalToggleGroupControlOptionIcon,{icon:(0,$r.jsx)(Et,{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,IM.useDispatch)(C),{activeBlockVariation:o,variations:r,canEdit:n,isContentOnly:i,isSection:s}=(0,IM.useSelect)(m=>{let{getActiveBlockVariation:g,getBlockVariations:b}=m(SG.store),{getBlockName:v,getBlockAttributes:y,getBlockEditingMode:k,isSectionBlock:S}=H(m(C)),{canEditBlock:_}=m(C),x=e&&v(e),{hasContentRoleAttribute:w}=H(m(SG.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,$r.jsx)(l?p:vWe,{className:d,onSelectVariation:u,selectedValue:a,variations:r})}var OM=kWe;var Gb=c(G(),1),AM=c(U(),1);var Xve=c(E(),1),kG={top:{icon:qx,title:(0,Gb._x)("Align top","Block vertical alignment setting")},center:{icon:$x,title:(0,Gb._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Wx,title:(0,Gb._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:Yx,title:(0,Gb._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Kx,title:(0,Gb._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=kG[e],a=kG[xWe],l=n?AM.ToolbarGroup:AM.ToolbarDropdownMenu,u=n?{isCollapsed:r}:{};return(0,Xve.jsx)(l,{icon:s?s.icon:a.icon,label:(0,Gb._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map(d=>({...kG[d],isActive:e===d,role:r?"menuitemradio":void 0,onClick:i(d)})),...u})}var _G=wWe;var xG=c(E(),1),sP=e=>(0,xG.jsx)(_G,{...e,isToolbar:!1}),Qve=e=>(0,xG.jsx)(_G,{...e,isToolbar:!0});var ws=c(U(),1),xE=c(F(),1),DM=c(G(),1);var Jve=c(U(),1);var wG=c(G(),1),eSe=c(E(),1);function tSe({isLinked:e,...t}){let o=e?(0,wG.__)("Unlink radii"):(0,wG.__)("Link radii");return(0,eSe.jsx)(Jve.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?ss:is,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),Wm=c(G(),1);var Wb=c(F(),1);var CG=24,sSe=8,LM={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 Gm=(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 EG(e,t,o){if(!Gm(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||Gm(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 MM=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)(MM.__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)(kt.Root,{children:[(0,hc.jsx)(kt.Trigger,{render:(0,hc.jsx)("div",{className:"preset-input-control__tooltip-wrapper",children:k})}),(0,hc.jsx)(kt.Popup,{children:t})]}):k;return(0,hc.jsxs)(hc.Fragment,{children:[S,(0,hc.jsx)(MM.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 $m=c(E(),1);function $b({allowNegativeOnDrag:e=!1,ariaLabel:t,className:o,customValueSettings:r=LM,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,Wb.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,Wm.__)("Mixed"):h??null,[B,R]=(0,Wb.useState)(l),[I,A]=(0,Wb.useState)(!n&&k!==void 0&&!Gm(k,g)),P=null,O=(0,dSe.usePrevious)(k);(0,Wb.useEffect)(()=>{k&&O!==k&&!Gm(k,g)&&I!==!0&&A(!0)},[k,O,g,I]);let N=!w&&!I&&k!==void 0&&(!Gm(k,g)||Gm(k,g)&&s),j=m;N?(j=[...m,{name:s?(0,Wm.__)("Mixed"):(0,Wm.sprintf)((0,Wm.__)("Custom (%s)"),k),slug:"custom",size:k}],P=j.length-1):s||(P=I?EG(k,m,g):lSe(k,m,g));let D=j.map((Z,oe)=>({key:oe,name:Z.name})),M=Gm(k,g)?EG(k,m,g):k,[V,L]=(0,ll.__experimentalParseQuantityAndUnitFromRawValue)(M),z=L||b||"px",q=y?.find(Z=>Z.value===z),J=q?.step??r[z]?.steps??.1,te=q?.max??r[z]?.max??10,ee=Z=>{if(Z===void 0||Z===""){u(void 0);return}isNaN(parseFloat(Z))||u(Z)},W=Z=>{u([Z,z].join(""))},$=Z=>k===void 0?void 0:m[Z]?.name,Y=(Z,oe)=>{let ne=parseInt(Z,10);if(oe==="selectList"){if(ne===0&&m[0]?.slug==="0")return"0";if(ne===0)return}else if(ne===0)return"0";return`var:preset|${g}|${m[Z]?.slug}`};return(0,$m.jsxs)(ll.__experimentalHStack,{className:`preset-input-control__wrapper ${S}__wrapper`,children:[i&&(0,$m.jsx)(ll.Icon,{className:"preset-input-control__icon",icon:i,size:CG}),(!x||I)&&(0,$m.jsx)(uSe,{allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:T,minValue:B,parsedQuantity:V,computedUnit:z,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:R}),x&&w&&!I&&(0,$m.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:$,step:1,value:P,withInputField:!1}),x&&!w&&!I&&(0,$m.jsx)(ll.CustomSelectControl,{className:"preset-input-control__custom-select-control",hideLabelFromVision:!0,label:t,onBlur:d,onChange:Z=>{N&&Z.selectedItem.key===D.length-1?A(!0):u(Y(Z.selectedItem.key,"selectList"))},onFocus:f,onMouseOut:d,onMouseOver:f,options:D,value:D.find(Z=>Z.key===P)||""}),x&&!n&&(0,$m.jsx)(ll.Button,{className:"preset-input-control__custom-toggle",icon:e6,iconSize:CG,isPressed:I,label:I?(0,Wm.__)("Use preset"):(0,Wm.__)("Set custom value"),onClick:()=>{A(!I)},size:"small"})]})}var Qk=c(G(),1);var fSe=8,NM=[],TG={all:(0,Qk.__)("Border radius"),topLeft:(0,Qk.__)("Top left"),topRight:(0,Qk.__)("Top right"),bottomLeft:(0,Qk.__)("Bottom left"),bottomRight:(0,Qk.__)("Bottom right")},RG={all:d3,topLeft:m3,topRight:h3,bottomLeft:f3,bottomRight:p3},BG=0;var ff=c(E(),1);function EWe(e){let t=e?.default??NM,o=e?.custom??NM,r=e?.theme??NM;return(0,xE.useMemo)(()=>{let n=[{name:(0,DM.__)("None"),slug:"0",size:0},...o,...r,...t];return n.length>fSe?[{name:(0,DM.__)("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 VM({onChange:e,values:t,presets:o}){let[r,n]=(0,xE.useState)(!iSe(t)||!nSe(t)),i=EWe(o),[s,a]=(0,xE.useState)({flat:typeof t=="string"?(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[l]=Le("spacing.units"),u=(0,ws.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem"]}),d=()=>n(!r);return(0,ff.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,ff.jsxs)(ws.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,ff.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,DM.__)("Radius")}),(0,ff.jsx)(tSe,{onClick:d,isLinked:r})]}),r?(0,ff.jsx)($b,{ariaLabel:TG.all,className:"components-border-radius-control",icon:RG.all,minimumCustomValue:BG,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)(ws.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map(f=>(0,ff.jsx)($b,{ariaLabel:TG[f],className:"components-border-radius-control",icon:RG[f],minimumCustomValue:BG,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),FM=(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=FM(vSe.ColorPalette);var PG=c(G(),1),aa=c(U(),1);var Fo=c(E(),1),{Tabs:Jk}=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,gradientSlug:p,clearable:h,showTitle:m=!0,enableAlpha:g,headingLevel:b,noticeProps:v}){let y=a&&(e&&e.length>0||!o),k=l&&(t&&t.length>0||!r);if(!y&&!k)return null;let _=(0,Fo.jsx)(aa.ColorPalette,{value:u,selectedSlug:d,onChange:k?(T,B,R)=>{a(T,R),l()}:(T,B,R)=>a(T,R),colors:e,disableCustomColors:o,__experimentalIsRenderedInSidebar:n,clearable:h,enableAlpha:g,headingLevel:b}),x={[Eu.color]:(0,Fo.jsxs)(Fo.Fragment,{children:[_,v&&(0,Fo.jsx)(aa.Notice,{isDismissible:!1,...v})]}),[Eu.gradient]:(0,Fo.jsx)(aa.GradientPicker,{value:f,selectedSlug:p,onChange:y?(T,B,R)=>{l(T,R),a()}:(T,B,R)=>l(T,R),gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,clearable:h,headingLevel:b})},w=T=>(0,Fo.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:x[T]});return(0,Fo.jsx)(aa.BaseControl,{className:K("block-editor-color-gradient-control",i),children:(0,Fo.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,Fo.jsxs)(aa.__experimentalVStack,{spacing:1,children:[m&&(0,Fo.jsx)("legend",{children:(0,Fo.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,Fo.jsx)(aa.BaseControl.VisualLabel,{children:s})})}),y&&k&&(0,Fo.jsx)("div",{children:(0,Fo.jsxs)(Jk,{defaultTabId:f?Eu.gradient:!!y&&Eu.color,children:[(0,Fo.jsxs)(Jk.TabList,{children:[(0,Fo.jsx)(Jk.Tab,{tabId:Eu.color,children:(0,PG.__)("Color")}),(0,Fo.jsx)(Jk.Tab,{tabId:Eu.gradient,children:(0,PG.__)("Gradient")})]}),(0,Fo.jsx)(Jk.TabPanel,{tabId:Eu.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:x.color}),(0,Fo.jsx)(Jk.TabPanel,{tabId:Eu.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:x.gradient})]})}),!k&&w(Eu.color),!y&&w(Eu.gradient)]})})})}function RWe(e){let[t,o,r,n]=Le("color.palette","color.gradients","color.custom","color.customGradient");return(0,Fo.jsx)(kSe,{colors:t,gradients:o,disableCustomColors:!r,disableCustomGradients:!n,...e})}function BWe(e){return TWe.every(t=>e.hasOwnProperty(t))?(0,Fo.jsx)(kSe,{...e}):(0,Fo.jsx)(RWe,{...e})}var Km=BWe;var _Se=c(E(),1);function xSe({onChange:e,value:t,...o}){return(0,_Se.jsx)(Km,{...o,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var gc=c(G(),1),wSe=c(U(),1),CSe=c(Qr(),1),IG=c(E(),1);Kf([Yf,Hy]);function OG({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=Lo(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 _=Lo(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=OG(e);return t?((0,CSe.speak)(t.speakMessage),(0,IG.jsx)("div",{className:"block-editor-contrast-checker",children:(0,IG.jsx)(wSe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:t.message})})):null}var ESe=PWe;var Zn=c(G(),1),wE=c(Tu(),1),zM=c(F(),1),yc=c(U(),1);var bc=c(E(),1),Ym=new Date;Ym.setDate(20);Ym.setMonth(Ym.getMonth()-3);Ym.getMonth()===4&&Ym.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,Zn.__)("Date format")}),(0,bc.jsx)(yc.ToggleControl,{label:(0,Zn.__)("Default format"),help:`${(0,Zn.__)("Example:")} ${(0,wE.dateI18n)(t,Ym)}`,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,Zn._x)("n/j/Y","short date format"),(0,Zn._x)("n/j/Y g:i A","short date format with time"),(0,Zn._x)("M j, Y","medium date format"),(0,Zn._x)("M j, Y g:i A","medium date format with time"),(0,Zn._x)("F j, Y","long date format"),(0,Zn._x)("M j","short date format without the year")])].map((a,l)=>({key:`suggested-${l}`,name:(0,wE.dateI18n)(a,Ym),format:a})),{key:"human-diff",name:(0,wE.humanTimeDiff)(Ym),format:"human-diff"}],n={key:"custom",name:(0,Zn.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,Zn.__)("Enter your own date format")},[i,s]=(0,zM.useState)(()=>!!e&&!r.some(a=>a.format===e));return(0,bc.jsxs)(yc.__experimentalVStack,{children:[(0,bc.jsx)(yc.CustomSelectControl,{label:(0,Zn.__)("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,Zn.__)("Custom format"),hideLabelFromVision:!0,help:(0,zM.createInterpolateElement)((0,Zn.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,bc.jsx)(yc.ExternalLink,{href:(0,Zn.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:a=>t(a)})]})}var cl=c(U(),1),CE=c(G(),1),BSe=c(io(),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:T3});let l=(0,CE.__)("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,CE.__)("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,CE.__)("Duotone"),children:[(0,Ru.jsx)("p",{children:(0,CE.__)("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 jM=ISe;var MSe=c(U(),1),NSe=c(F(),1),la=c(G(),1);var On=c(G(),1);var HM=c(G(),1);function OSe(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=(0,HM._x)("Regular","font style");break;case"italic":t=(0,HM._x)("Italic","font style");break;case"oblique":t=(0,HM._x)("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}var vc=c(G(),1);function AG(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,On._x)("Regular","font style"),value:"normal"},{name:(0,On._x)("Italic","font style"),value:"italic"}],LSe=[{name:(0,On._x)("Thin","font weight"),value:"100"},{name:(0,On._x)("Extra Light","font weight"),value:"200"},{name:(0,On._x)("Light","font weight"),value:"300"},{name:(0,On._x)("Regular","font weight"),value:"400"},{name:(0,On._x)("Medium","font weight"),value:"500"},{name:(0,On._x)("Semi Bold","font weight"),value:"600"},{name:(0,On._x)("Bold","font weight"),value:"700"},{name:(0,On._x)("Extra Bold","font weight"),value:"800"},{name:(0,On._x)("Black","font weight"),value:"900"},{name:(0,On._x)("Extra Black","font weight"),value:"1000"}];function e_(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(AG(m))}}let a=AG(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,On._x)("Bold","font weight"),value:"700"}),t.some(s=>s.value==="italic")||t.push({name:(0,On._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,On.sprintf)((0,On._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 UM(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}=e_(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,NSe.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)(MSe.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),LG=c(G(),1);var FSe=c(E(),1);function GM({__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,LG.__)("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,LG.__)("Font"),value:l,onChange:({selectedItem:u})=>o(u.key),options:a,className:K("block-editor-font-family-control",n),...i})}var WM=c(U(),1),zSe=c(G(),1);var jSe=c(E(),1);function $M({value:e,onChange:t,__unstableInputWidth:o="60px",...r}){let[n]=Le("spacing.units"),i=(0,WM.__experimentalUseCustomUnits)({availableUnits:n||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,jSe.jsx)(WM.__experimentalUnitControl,{...r,label:(0,zSe.__)("Letter spacing"),value:e,__unstableInputWidth:o,units:i,onChange:t})}var EE=c(G(),1),KM=c(U(),1),MG=c(E(),1),AWe=[{label:(0,EE.__)("None"),value:"none",icon:dn},{label:(0,EE.__)("Underline"),value:"underline",icon:M3},{label:(0,EE.__)("Strikethrough"),value:"line-through",icon:A3}];function YM({value:e,onChange:t,className:o}){return(0,MG.jsx)(KM.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,EE.__)("Decoration"),className:K("block-editor-text-decoration-control",o),value:e,onChange:r=>{t(r===e?void 0:r)},children:AWe.map(r=>(0,MG.jsx)(KM.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var t_=c(G(),1);var qM=c(U(),1),NG=c(E(),1),LWe=[{label:(0,t_.__)("None"),value:"none",icon:dn},{label:(0,t_.__)("Uppercase"),value:"uppercase",icon:D3},{label:(0,t_.__)("Lowercase"),value:"lowercase",icon:I3},{label:(0,t_.__)("Capitalize"),value:"capitalize",icon:B3}];function ZM({className:e,value:t,onChange:o}){return(0,NG.jsx)(qM.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,t_.__)("Letter case"),className:K("block-editor-text-transform-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:LWe.map(r=>(0,NG.jsx)(qM.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var o_=c(G(),1);var XM=c(U(),1),DG=c(E(),1),MWe=[{label:(0,o_.__)("Horizontal"),value:"horizontal-tb",icon:_6},{label:(0,o_.__)("Vertical"),value:(0,o_.isRTL)()?"vertical-lr":"vertical-rl",icon:w6}];function QM({className:e,value:t,onChange:o}){return(0,DG.jsx)(XM.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,o_.__)("Orientation"),className:K("block-editor-writing-mode-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:MWe.map(r=>(0,DG.jsx)(XM.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var $i=c(U(),1),HSe=c(F(),1),USe=c(G(),1);var mn=c(E(),1),NWe=({setting:e,children:t,panelId:o,...r})=>{let n=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return(0,mn.jsx)($i.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:n,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...r,className:K("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)($i.__experimentalHStack,{justify:"flex-start",children:[(0,mn.jsx)($i.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,mn.jsx)($i.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:K("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)($i.Button,{__next40pxDefaultSize:!0,...f,children:(0,mn.jsx)(DWe,{colorValue:h,label:u})}),n&&h&&(0,mn.jsx)($i.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 JM({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)(NWe,{setting:u,...a,children:(0,mn.jsx)($i.Dropdown,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:VWe(p),renderContent:()=>(0,mn.jsx)($i.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,mn.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,mn.jsx)(Km,{...f})})})})},d)})})}var eN=c(U(),1),GSe=c(Q(),1),WSe=c(fe(),1);var VG=c(F(),1),Kb=c(G(),1);function qm(){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,VG.useMemo)(()=>{let f=[];return o&&o.length&&f.push({name:(0,Kb._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:o}),n&&r&&r.length&&f.push({name:(0,Kb._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&f.push({name:(0,Kb._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),f},[t,o,r,n]),d.gradients=(0,VG.useMemo)(()=>{let f=[];return a&&a.length&&f.push({name:(0,Kb._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),u&&l&&l.length&&f.push({name:(0,Kb._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&f.push({name:(0,Kb._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"],FG=({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)(FG),{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)(eN.__experimentalToolsPanel,{className:K("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)(JM,{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)(eN.__experimentalSpacer,{marginY:4})," ",i]})]})},zWe=e=>{let t=qm();return(0,Sc.jsx)(FG,{...t,...e})},jWe=e=>FWe.every(t=>e.hasOwnProperty(t))?(0,Sc.jsx)(FG,{...e}):(0,Sc.jsx)(zWe,{...e}),tN=jWe;var oN=c(F(),1),Yb=c(U(),1),jG=c(G(),1);var TE=c(E(),1),zG=[],HWe={...LM,px:{max:1e3,steps:1},em:{max:50,steps:.1},rem:{max:50,steps:.1}};function UWe(e){let t=e?.default??zG,o=e?.custom??zG,r=e?.theme??zG;return(0,oN.useMemo)(()=>[{name:(0,jG.__)("None"),slug:"0",size:0},...o,...r,...t],[o,r,t])}function qb({label:e=(0,jG.__)("Dimension"),onChange:t,value:o,placeholder:r,className:n,dimensionSizes:i}){let[s,a]=Le("dimensions.dimensionSizes","spacing.units"),l=i??s,u=(0,Yb.__experimentalUseCustomUnits)({availableUnits:a||["%","px","em","rem","vh","vw"]}),d=UWe(l),[f,p]=(0,oN.useState)(()=>{let[,m]=(0,Yb.__experimentalParseQuantityAndUnitFromRawValue)(o);return m||u[0]?.value||"px"}),h=m=>{let[g,b]=(0,Yb.__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,TE.jsxs)("fieldset",{className:K("block-editor-dimension-control",n),children:[(0,TE.jsx)(Yb.BaseControl.VisualLabel,{as:"legend",children:e}),(0,TE.jsx)($b,{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),An=c(U(),1),YSe=c(G(),1),qSe=c(Rt(),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,An.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vh","vw"]}),s=(0,KSe.useMemo)(()=>(0,An.__experimentalParseQuantityAndUnitFromRawValue)(o),[o])[1]||i[0]?.value||"px",a=u=>{t([u,s].join(""))},l=u=>{let[d,f]=(0,An.__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)(An.BaseControl.VisualLabel,{as:"legend",children:e}),(0,Bu.jsxs)(An.Flex,{children:[(0,Bu.jsx)(An.FlexItem,{isBlock:!0,children:(0,Bu.jsx)(An.__experimentalUnitControl,{value:o,units:i,onChange:t,onUnitChange:l,min:0,label:e,hideLabelFromVision:!0})}),(0,Bu.jsx)(An.FlexItem,{isBlock:!0,children:(0,Bu.jsx)(An.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,Bu.jsx)(An.RangeControl,{value:r,min:0,max:$Se[s]?.max??100,step:$Se[s]?.step??.1,withInputField:!1,onChange:a,label:e,hideLabelFromVision:!0})})})]})]})}var IE=c(U(),1),Jke=c(Rt(),1);var ul=c(ce()),_ke=c(bke());function YWe(e,t,o,r,n,i){i===void 0&&(i=0);var s=r_(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 RE(e,t,o,r,n){n===void 0&&(n=0);var i=r_(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 lN(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=r_(t.width,t.height,i),u=r_(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=r_(t.width,t.height,o),a=lN(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=r_(t.naturalWidth,t.naturalHeight,o),a=lN(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 r_(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 lN(e,t,o){return Math.min(Math.max(e,t),o)}function aN(){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){BX(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?RE(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=lN(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?RE(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?RE(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?RE(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=RE(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,B=x.mediaClassName,R=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return ul.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(A){return o.containerRef=A},"data-testid":"container",style:k,className:aN("reactEasyCrop_Container",w)},i?ul.createElement("img",fn({alt:"",className:aN("reactEasyCrop_Image",R==="contain"&&"reactEasyCrop_Contain",R==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",R==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",B)},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:aN("reactEasyCrop_Video",R==="contain"&&"reactEasyCrop_Contain",R==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",R==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",B)},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:aN("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 i_=c(F(),1);var wke=Object.prototype.hasOwnProperty;function Cke(e,t,o){for(o of e.keys())if(Xb(o,t))return o}function Xb(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--&&Xb(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)||!Xb(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)||!Xb(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var kc=c(F(),1);var n_=1,Eke=5;var cN=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 Qb={crop:{x:0,y:0,width:100,height:100},zoom:n_,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1}},c$e={x:0,y:0},ZG={crop:c$e,croppedArea:Qb.crop,croppedAreaPixels:null,zoom:Qb.zoom,rotation:Qb.rotation,flip:Qb.flip,aspectRatio:Qb.aspectRatio,mediaSize:null};function Bke(){let[e,t]=(0,kc.useState)(ZG),[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=cN(p.rotation)),{...d,...p}})},[]),i=(0,kc.useCallback)((u=null)=>{if(!u){r(null),n(ZG);return}if(typeof u=="object"){let d={...Qb,...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({...ZG})},[o,n]),a=(0,kc.useMemo)(()=>{if(o){let d={crop:e.croppedAreaPixels||e.croppedArea,zoom:e.zoom,rotation:cN(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return Xb(d,o)===!1}let u={crop:e.croppedArea,zoom:e.zoom,rotation:cN(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return Xb(u,Qb)===!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,i_.createContext)({cropperState:{crop:{x:0,y:0},croppedArea:{x:0,y:0,width:100,height:100},croppedAreaPixels:null,zoom:n_,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1},mediaSize:null},setCropperState:()=>{},resetState:null,setResetState:()=>{},isDirty:!1,reset:()=>{},getCroppedImage:()=>Promise.resolve(null)});function XG({children:e}){let t=Bke(),o=(0,i_.useMemo)(()=>({...t}),[t]);return(0,Pke.jsx)(Ike.Provider,{value:o,children:e})}var BE=()=>{let e=(0,i_.useContext)(Ike);if(!e)throw new Error("Missing ImageCropperContext");return e};var Ake=c(E(),1);function QG({src:e,onLoad:t,minZoom:o=n_,maxZoom:r=Eke,...n}){let{cropperState:i,setCropperState:s}=BE(),{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 l_=c(U(),1),a_=c(G(),1);var Lke=100,Mke=300,uN={placement:"bottom-start"};var s_=c(F(),1);var dN=c(Q(),1),Jb=c(F(),1),pf=c(G(),1),Nke=c(as(),1),Dke=c(Tt(),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,dN.useDispatch)(Nke.store),[l,u]=(0,Jb.useState)(!1),{editMediaEntity:d}=(0,dN.useSelect)(h=>({editMediaEntity:h(C).getSettings()?.[uT]}),[]),f=(0,Jb.useCallback)(()=>{u(!1),i()},[i]),p=(0,Jb.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,Jb.useMemo)(()=>({isInProgress:l,apply:p,cancel:f}),[l,p,f])}var _c=c(F(),1),Fke=c(go(),1);function zke({url:e,naturalWidth:t,naturalHeight:o}){let[r,n]=(0,_c.useState)(),{cropperState:i,setCropperState:s}=BE(),{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(B){let R=document.createElement("canvas"),I=0,A=0;y%180?(R.width=B.target.height,R.height=B.target.width):(R.width=B.target.width,R.height=B.target.height),(y===90||y===180)&&(I=R.width),(y===270||y===180)&&(A=R.height);let P=R.getContext("2d");P.translate(I,A),P.rotate(y*Math.PI/180),P.drawImage(B.target,0,0),R.toBlob(O=>{n(URL.createObjectURL(O)),b(y);let N=_?l:R.width/R.height;s({aspectRatio:N,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),JG=(0,s_.createContext)({});JG.displayName="ImageEditingContext";var Pu=()=>(0,s_.useContext)(JG);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,s_.useMemo)(()=>({...a,...l}),[a,l]);return(0,jke.jsx)(JG.Provider,{value:u,children:s})}var dl=c(E(),1);function fN({aspectRatios:e,isDisabled:t,label:o,onClick:r,value:n}){return(0,dl.jsx)(l_.MenuGroup,{label:o,children:e.map(({name:i,slug:s,ratio:a})=>(0,dl.jsx)(l_.MenuItem,{disabled:t,onClick:()=>{r(a)},role:"menuitemradio",isSelected:a===n,icon:a===n?ns: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 eW({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)(l_.DropdownMenu,{icon:UF,label:(0,a_.__)("Aspect Ratio"),popoverProps:uN,toggleProps:e,children:({onClose:l})=>(0,dl.jsxs)(dl.Fragment,{children:[(0,dl.jsx)(fN,{isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:[{slug:"original",name:(0,a_.__)("Original"),ratio:n},...a?i.map(eW).filter(({ratio:u})=>u===1):[]]}),s?.length>0&&(0,dl.jsx)(fN,{label:(0,a_.__)("Theme"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:s}),a&&(0,dl.jsx)(fN,{label:(0,a_.__)("Landscape"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(eW).filter(({ratio:u})=>u>1)}),a&&(0,dl.jsx)(fN,{label:(0,a_.__)("Portrait"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(eW).filter(({ratio:u})=>u<1)})]})})}var Gke=c(U(),1),Wke=c(fe(),1);var Zm=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,Zm.jsxs)("div",{className:K("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||d,height:f},children:[(0,Zm.jsx)(QG,{src:a||e}),s&&(0,Zm.jsx)(Gke.Spinner,{})]});return(0,Zm.jsxs)(Zm.Fragment,{children:[u,p]})}var Xm=c(U(),1),tW=c(G(),1);var PE=c(E(),1);function Kke(){let{isInProgress:e,zoom:t,setZoom:o}=Pu();return(0,PE.jsx)(Xm.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:uN,renderToggle:({isOpen:r,onToggle:n})=>(0,PE.jsx)(Xm.ToolbarButton,{icon:Q4,label:(0,tW.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:e}),renderContent:()=>(0,PE.jsx)(Xm.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,PE.jsx)(Xm.RangeControl,{label:(0,tW.__)("Zoom"),min:Lke,max:Mke,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:Y4,label:(0,qke.__)("Rotate"),onClick:t,disabled:e})}var oW=c(U(),1),rW=c(G(),1);var ey=c(E(),1);function Qke(){let{isInProgress:e,apply:t,cancel:o}=Pu();return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)(oW.ToolbarButton,{onClick:t,disabled:e,children:(0,rW.__)("Apply")}),(0,ey.jsx)(oW.ToolbarButton,{onClick:o,children:(0,rW.__)("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)(XG,{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)(IE.ToolbarGroup,{children:[(0,ca.jsx)(Kke,{}),(0,ca.jsx)(IE.ToolbarItem,{children:u=>(0,ca.jsx)(Uke,{toggleProps:u})}),(0,ca.jsx)(Xke,{})]}),(0,ca.jsx)(IE.ToolbarGroup,{children:(0,ca.jsx)(Qke,{})})]})]})})}var ua=c(U(),1),Qm=c(G(),1);var c_=c(F(),1);function t_e(e,t,o,r,n){let[i,s]=(0,c_.useState)(t??r??""),[a,l]=(0,c_.useState)(e??o??"");return(0,c_.useEffect)(()=>{t===void 0&&r!==void 0&&s(r),e===void 0&&o!==void 0&&l(o)},[r,o]),(0,c_.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,Qm.__)("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,Qm.__)("Width"),value:f,min:1,onChange:b=>p("width",b)}),(0,fl.jsx)(ua.__experimentalNumberControl,{label:(0,Qm.__)("Height"),value:d,min:1,onChange:b=>p("height",b)})]}),(0,fl.jsx)(ua.__experimentalToggleGroupControl,{label:(0,Qm.__)("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,Qm.sprintf)((0,Qm.__)("%d%%"),b)},b))})]})]})}var pN=c(U(),1);var ty=c(G(),1),s_e=c(E(),1),i_e={left:np,center:rp,right:ip,"space-between":Xy,stretch:Qy};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,ty.__)("Justify items left"),isActive:r==="left",onClick:()=>s("left")},{name:"center",icon:rp,title:(0,ty.__)("Justify items center"),isActive:r==="center",onClick:()=>s("center")},{name:"right",icon:ip,title:(0,ty.__)("Justify items right"),isActive:r==="right",onClick:()=>s("right")},{name:"space-between",icon:Xy,title:(0,ty.__)("Space between items"),isActive:r==="space-between",onClick:()=>s("space-between")},{name:"stretch",icon:Qy,title:(0,ty.__)("Stretch items"),isActive:r==="stretch",onClick:()=>s("stretch")}],u=i?pN.ToolbarGroup:pN.ToolbarDropdownMenu,d=i?{isCollapsed:t}:{};return(0,s_e.jsx)(u,{icon:a,popoverProps:n,label:(0,ty.__)("Change items justification"),controls:l.filter(f=>e.includes(f.name)),...d})}var nW=p$e;var iW=c(E(),1),xv=e=>(0,iW.jsx)(nW,{...e,isToolbar:!1}),a_e=e=>(0,iW.jsx)(nW,{...e,isToolbar:!0});var Ki=c(U(),1),xc=c(G(),1),wr=c(F(),1),EN=c(fe(),1),J_e=c(Tt(),1),exe=c(io(),1),txe=c(HC(),1),TN=c(Q(),1),mW=c(fv(),1);var oxe=c(Rt(),1),RN=c(Fs(),1);var u_=c(U(),1);var mN=c(fe(),1),hN=c(G(),1),l_e=c(F(),1),mf=c(E(),1);function c_e({children:e,settingsOpen:t,setSettingsOpen:o}){let r=(0,mN.useReducedMotion)(),n=r?l_e.Fragment:u_.__unstableAnimatePresence,i=r?"div":u_.__unstableMotion.div,a=`link-control-settings-drawer-${(0,mN.useInstanceId)(c_e)}`;return(0,mf.jsxs)(mf.Fragment,{children:[(0,mf.jsx)(u_.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>o(!t),icon:(0,hN.isRTL)()?Fx:op,"aria-controls":a,children:(0,hN._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 kN=c(F(),1),fW=c(G(),1),B_e=c(Rt(),1);var OE=c(G(),1),k_e=c(U(),1);var gN=c(G(),1),d_e=c(U(),1),f_e=c(F(),1);var sW=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,gN.sprintf)((0,gN.__)("Create: <mark>%s</mark>"),e),{mark:(0,sW.jsx)("mark",{})}),(0,sW.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),yN=c(U(),1);var m_e=c(Tt(),1),f_=c(Fs(),1),h_e=c(fe(),1),g_e=c(Rt(),1),d_=c(E(),1),bN={post:{icon:W4,label:(0,hf.__)("Post")},page:{icon:cg,label:(0,hf.__)("Page")},post_tag:{icon:S6,label:(0,hf.__)("Tag")},category:{icon:YF,label:(0,hf.__)("Category")},attachment:{icon:C3,label:(0,hf.__)("Attachment")}};function h$e({isURL:e,suggestion:t}){let o=null;return e?o=jx:t.type in bN&&(o=bN[t.type].icon,t.type==="page"&&(t.isFrontPage&&(o=r4),t.isBlogHome&&(o=L6))),o?(0,d_.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)(f_.safeDecodeURI,f_.getPath,v$e(""),y$e(f_.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,d_.jsx)(yN.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,d_.jsx)(h$e,{suggestion:t,isURL:n}),onClick:r,shortcut:i&&k$e(t),className:"block-editor-link-control__search-item",children:(0,d_.jsx)(yN.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 bN?bN[e.type].label:e.type}var y_e=b_e,v_e=e=>((0,g_e.default)("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,d_.jsx)(b_e,{...e}));var S_e=c(G(),1),oy="__CREATE__",aW="tel",vN="link",lW="mailto",cW="internal",p_=[vN,lW,aW,cW],uW=[{id:"opensInNewTab",title:(0,S_e.__)("Open in new tab")}];var __e=c(Rt(),1),ry=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=K("block-editor-link-control__search-results",{"is-loading":a}),p=i.length===1&&p_.includes(i[0].type),h=e&&!p&&!l,m=!d?.type,g=l?(0,OE.__)("Suggestions"):(0,OE.sprintf)((0,OE.__)('Search results for "%s"'),t);return(0,ry.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,ry.jsx)("div",{...r,className:f,"aria-label":g,children:(0,ry.jsx)(k_e.MenuGroup,{children:i.map((b,v)=>h&&oy===b.type?(0,ry.jsx)(p_e,{searchTerm:t,buttonText:u,onClick:()=>o(b),itemProps:n(b,v),isSelected:v===s},b.type):oy===b.type?null:(0,ry.jsx)(y_e,{itemProps:n(b,v),suggestion:b,index:v,onClick:()=>{o(b)},isSelected:v===s,isURL:p_.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,ry.jsx)(x_e,{...e}));var E_e=c(F(),1),T_e=c(Q(),1);var SN=c(Fs(),1);function AE(e){let t=e?.trim();if(!t)return{url:t,type:vN};let o=vN,r=(0,SN.getProtocol)(t)||"";return r.includes("mailto")?o=lW:r.includes("tel")?o=aW:t?.startsWith("#")&&(o=cW),Kh(t)||Yh(t)||t.startsWith("?")||r?{url:t,type:o}:{url:(0,SN.prependHTTPS)(t),type:o}}var _$e=()=>Promise.resolve([]),x$e=e=>{let{url:t,type:o}=AE(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||qh(e)||!r?a:a.concat({title:e,url:e,type:oy})};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})=>qh(a)?s(a,{isInitialSuggestions:l}):w$e(a,{...e,isInitialSuggestions:l},r,o,n,i),[s,r,n,i,e,o])}var m_=c(E(),1),C$e=()=>Promise.resolve([]),dW=()=>{},P_e=(0,kN.forwardRef)(({value:e,children:t,currentLink:o={},className:r=null,placeholder:n=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=dW,onChange:a=dW,onSelect:l=dW,showSuggestions:u=!0,renderSuggestions:d=x=>(0,m_.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,B]=(0,kN.useState)(),R=(N,j)=>{a(N),B(j)},I=N=>d({...N,withCreateSuggestion:i,createSuggestionButtonText:b,suggestionsQuery:m,handleSuggestionClick:j=>{N.handleSuggestionClick&&N.handleSuggestionClick(j),A(j)}}),A=async N=>{let j=N;if(oy===N.type){try{j=await s(N.title),j?.url&&l(j)}catch{}return}if(p||j&&Object.keys(j).length>=1){let{id:D,url:M,kind:V,type:L,...z}=o??{};l({...z,...j},j)}},P=n??(0,fW.__)("Search or type URL"),O=v&&n!==""?P:(0,fW.__)("Link");return(0,m_.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,m_.jsx)(Jm,{disableSuggestions:o?.url===e,label:O,hideLabelFromVision:v,className:r,value:e,onChange:R,placeholder:P,__experimentalRenderSuggestions:u?I:null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,customValidity:S,required:!1,onSubmit:(N,j)=>{let D=N||T;!D&&!e?.trim()?.length?j.preventDefault():A(D||{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,m_.jsx)(P_e,{...e}));var eh=c(G(),1),rn=c(U(),1),D_e=c(fe(),1),wN=c(Fs(),1);var V_e=c(Tt(),1),CN=c(Q(),1),F_e=c(as(),1),z_e=c(fv(),1);var A_e=c(U(),1),{Slot:L_e,Fill:M_e}=(0,A_e.createSlotFill)("BlockEditorLinkControlViewer");var N_e=c(Q(),1),_N=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,_N.useReducer)(E$e,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,N_e.useSelect)(n=>{let{getSettings:i}=n(C);return{fetchRichUrlData:i().__experimentalFetchRichUrlData}},[]);return(0,_N.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 xN=T$e;var Ro=c(E(),1),{Badge:R$e}=H(rn.privateApis);function j_e({value:e,onEditClick:t,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:n}){let i=(0,CN.useSelect)(b=>b(z_e.store).get("core","showIconLabels"),[]),s=o?e?.url:null,{richData:a,isFetching:l}=xN(s),u=a&&Object.keys(a).length,d=e&&(0,wN.filterURLForDisplay)((0,wN.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:s4,size:32}):h=(0,Ro.jsx)(gt,{icon:jx});let{createNotice:m}=(0,CN.useDispatch)(F_e.store),g=(0,D_e.useCopyToClipboard)(e.url,()=>{m("info",(0,eh.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Ro.jsx)(rn.Flex,{role:"group","aria-label":(0,eh.__)("Manage link"),className:K("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)(rn.Flex,{gap:0,align:"flex-start",children:[(0,Ro.jsxs)(rn.Flex,{className:"block-editor-link-control__link-information",role:"figure","aria-label":(0,eh.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,Ro.jsx)(rn.Flex,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,Ro.jsx)("img",{src:e?.image,alt:""})}):(0,Ro.jsx)(rn.Flex,{className:K("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:h}),(0,Ro.jsx)(rn.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,eh.__)("Link is empty")}):(0,Ro.jsxs)(Ro.Fragment,{children:[(0,Ro.jsx)(rn.ExternalLink,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,Ro.jsx)(rn.__experimentalTruncate,{numberOfLines:1,children:p})}),(0,Ro.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,Ro.jsx)(rn.__experimentalTruncate,{numberOfLines:1,children:d})}),e?.badges?.length>0&&(0,Ro.jsx)(rn.__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)(rn.Button,{icon:ug,label:(0,eh.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,Ro.jsx)(rn.Button,{icon:is,label:(0,eh.__)("Remove link"),onClick:n,size:"compact",showTooltip:!i}),(0,Ro.jsx)(rn.Button,{icon:l3,label:(0,eh.__)("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 ny=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,ny.jsx)("div",{className:"block-editor-link-control__setting",children:s},i.id)}return null}return(0,ny.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,ny.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,ny.jsx)(bt,{render:(0,ny.jsx)("legend",{}),children:(0,H_e.__)("Currently selected link settings")}),n]})},G_e=P$e;var W_e=c(G(),1),iy=c(F(),1);function $_e(e){let t=(0,iy.useRef)(),[o,r]=(0,iy.useState)(!1),[n,i]=(0,iy.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,iy.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 pW=c(F(),1),q_e=c(Y_e(),1);function Z_e(e){let[t,o]=(0,pW.useState)(e||{}),[r,n]=(0,pW.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 zo=c(E(),1),hW=()=>{},X_e="core/block-editor",Q_e="linkControlSettingsDrawer";function sy({searchInputPlaceholder:e,value:t,settings:o=uW,onChange:r=hW,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,wr.useState)(!1),[w,T]=(0,wr.useState)(void 0),{advancedSettingsPreference:B}=(0,TN.useSelect)(de=>({advancedSettingsPreference:de(mW.store).get(X_e,Q_e)??!1}),[]),{set:R}=(0,TN.useDispatch)(mW.store),I=de=>{R&&R(X_e,Q_e,de),x(de)},A=B||_,P=(0,wr.useRef)(!0),O=(0,wr.useRef)(),N=(0,EN.useMergeRefs)([O,Cv()]),j=(0,wr.useRef)(),D=(0,wr.useRef)(),M=(0,wr.useRef)(),V=o.map(({id:de})=>de),[L,z,q,J,te]=Z_e(t),ee=de=>{q(de),n?.(de)},W=S&&!!L?.id,$=(0,EN.useInstanceId)(sy,"link-control"),Y=W?`${$}__help`:null,Z=t&&!(0,txe.isShallowEqualObjects)(L,t),[oe,ne]=(0,wr.useState)(d!==void 0?d:!t||!t.url),{createPage:X,isCreatingPage:re,errorMessage:ae}=$_e(f);(0,wr.useEffect)(()=>{d!==void 0&&ne(d)},[d]),(0,wr.useEffect)(()=>{if(P.current)return;(J_e.focus.focusable.find(O.current)[0]||O.current).focus()},[oe,re]),(0,wr.useEffect)(()=>(P.current=!1,()=>{P.current=!0}),[]);let ve=(0,wr.useRef)();(0,wr.useEffect)(()=>{if(ve.current===void 0){ve.current=h;return}ve.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."),ve.current=h)},[h]),(0,wr.useEffect)(()=>{if(w?.type==="invalid"){let de=D.current;de&&typeof de.reportValidity=="function"&&de.reportValidity()}},[w]);let xe=t?.url?.trim()?.length>0,ge=()=>{ne(!1)},be=de=>{let Me={type:"invalid",message:(0,xc.__)("Please enter a valid URL.")},Ze={type:"valid"},ze=de?.trim();if(!ze?.length||!qh(ze))return Me;if(Kh(ze)||Yh(ze))return Ze;let Je=(0,RN.prependHTTPS)(ze);return(0,RN.isURL)(Je)?Ze:Me},he=de=>{if(!(de&&de.id&&de.type&&!p_.includes(de.type))){let ze=de?.url||qe,Je=be(ze);if(Je.type==="invalid"){T(Je);return}let{url:lt}=AE(ze);de={...de,url:lt}}de?.kind==="taxonomy"&&de?.url&&(M.current=de.url);let Ze=Object.keys(de).reduce((ze,Je)=>(V.includes(Je)||(ze[Je]=de[Je]),ze),{});r({...L,...Ze,title:L?.title||de?.title}),T(void 0),ge()},ke=()=>{if(pt)return!1;let de=qe.trim(),Me=L&&L.id&&L.type&&!p_.includes(L.type),Ze=t?.url===de;if(Me&&Ze)return T(void 0),!0;let ze=be(qe);return ze.type==="invalid"?(T(ze),!1):(T(void 0),!0)},_e=()=>{Z&&r({...t,...L,url:AE(qe).url}),ge(),T(void 0)},we=()=>{ke()&&_e()},Re=de=>{let{keyCode:Me}=de;Me===exe.ENTER&&!pt&&(de.preventDefault(),we())},se=()=>{z(t)},ie=de=>{de.preventDefault(),de.stopPropagation(),se(),T(void 0),xe?ge():i?.(),s?.()},[Ae,ye]=(0,wr.useState)(!1),Ee=()=>{let{id:de,kind:Me,type:Ze,...ze}=L;z({...ze,id:void 0,kind:void 0,type:void 0,url:void 0}),ye(!0)};(0,wr.useEffect)(()=>{Ae&&(D.current?.focus(),ye(!1))},[Ae]);let qe=L?.url!==void 0?L.url:h||"",pt=!qe?.trim()?.length;(0,wr.useEffect)(()=>{T(void 0)},[qe]);let at=!w,Ct=i&&t&&!oe&&!re,rt=oe&&xe,Ot=xe&&y,ut=(oe||!t)&&!re,Ut=pt||!at||t&&!Z,So=!!o?.length&&oe&&xe,mo=(0,wr.useMemo)(()=>t?.kind==="taxonomy"&&!t?.url&&M.current?{...t,url:M.current}:t,[t]);return(0,zo.jsxs)("div",{tabIndex:-1,ref:N,className:"block-editor-link-control",children:[re&&(0,zo.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,zo.jsx)(Ki.Spinner,{})," ",(0,xc.__)("Creating"),"\u2026"]}),ut&&(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsxs)("div",{className:K({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":Ot,"has-actions":rt}),children:[Ot&&(0,zo.jsx)(Ki.TextControl,{ref:j,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,xc.__)("Text"),value:L?.title,onChange:J,onKeyDown:Re}),(0,zo.jsx)(I_e,{ref:D,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:qe,withCreateSuggestion:p,onCreateSuggestion:X,onChange:ee,onSelect:he,showInitialSuggestions:u,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:m,withURLSuggestion:!g,createSuggestionButtonText:b,hideLabelFromVision:!Ot,isEntity:W,customValidity:w,suffix:(0,zo.jsx)(O$e,{isEntity:W,showActions:rt,isDisabled:Ut,onUnlink:Ee,onSubmit:we,helpTextId:Y})}),W&&Y&&(0,zo.jsx)("p",{id:Y,className:"block-editor-link-control__help",children:(0,xc.sprintf)((0,xc.__)("Synced with the selected %s."),L?.type||"item")})]}),ae&&(0,zo.jsx)(Ki.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:ae})]}),t&&!oe&&!re&&(0,zo.jsx)(j_e,{value:mo,onEditClick:()=>ne(!0),hasRichPreviews:v,hasUnlinkControl:Ct,onRemove:()=>{i(),ne(!0)}},mo?.url),So&&(0,zo.jsx)("div",{className:"block-editor-link-control__tools",children:!pt&&(0,zo.jsx)(u_e,{settingsOpen:A,setSettingsOpen:I,children:(0,zo.jsx)(G_e,{value:L,settings:o,onChange:te(V)})})}),rt&&(0,zo.jsxs)(Ki.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,zo.jsx)(Ki.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:ie,children:(0,xc.__)("Cancel")}),(0,zo.jsx)(Ki.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:Ut?hW:we,className:"block-editor-link-control__search-submit","aria-disabled":Ut,children:(0,xc.__)("Apply")})]}),!re&&k&&k()]})}function O$e({isEntity:e,showActions:t,isDisabled:o,onUnlink:r,onSubmit:n,helpTextId:i}){if(e)return(0,zo.jsx)(Ki.Button,{icon:is,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,xc.__)("Unsync and edit"),__next40pxDefaultSize:!0});if(!t)return(0,zo.jsx)(Ki.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,zo.jsx)(Ki.Button,{onClick:o?hW:n,label:(0,xc.__)("Submit"),icon:sd,className:"block-editor-link-control__search-submit","aria-disabled":o,size:"small"})})}sy.ViewerFill=M_e;sy.DEFAULT_LINK_SETTINGS=uW;var BN=e=>((0,oxe.default)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,zo.jsx)(sy,{...e}));BN.ViewerFill=sy.ViewerFill;BN.DEFAULT_LINK_SETTINGS=sy.DEFAULT_LINK_SETTINGS;var th=sy;var nxe=c(G(),1),ixe=c(U(),1);var LE=1.5,gW=.01,bW=10,yW="";function rxe(e){return e!==void 0&&e!==yW}var vW=c(E(),1),A$e=({__next40pxDefaultSize:e,value:t,onChange:o,__unstableInputWidth:r="60px",...n})=>{let i=rxe(t),s=(d,f)=>{if(i)return d;let p=gW*bW;switch(`${d}`){case`${p}`:return LE+p;case"0":return f?d:LE-p;case"":return LE;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:yW;return(0,vW.jsx)("div",{className:"block-editor-line-height-control",children:(0,vW.jsx)(ixe.__experimentalNumberControl,{placeholder:LE,...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,nxe.__)("Line height"),step:gW,spinFactor:bW,value:l,min:0,spinControls:"custom"})})},PN=A$e;var Iu=c(G(),1),sxe=c(Qr(),1),Yi=c(U(),1),ON=c(Q(),1),axe=c(io(),1);var lxe=c(fe(),1),cxe=c(Tt(),1),uxe=c(as(),1),dxe=c(F(),1);function IN(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 Ln=c(E(),1),L$e=()=>{},M$e=0,N$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,ON.useSelect)(M=>{let{getSettings:V}=M(C),L=V();return{mediaUpload:L.mediaUpload,allowedMimeTypes:L.allowedMimeTypes}},[]),B=`block-editor/media-replace-flow/error-notice/${++M$e}`,R=(0,dxe.useMemo)(()=>IN(r,T,n),[r,T,n]),I=M=>{let V=(0,cxe.__unstableStripHTML)(M);if(i){i(V);return}setTimeout(()=>{h("error",V,{speak:!0,id:B,isDismissible:!0})},1e3)},A=(M,V)=>{d&&u&&u(),V(),s(M),(0,sxe.speak)((0,Iu.__)("The media file has been replaced")),m(B)},P=(M,V)=>{let L=M.target.files;if(!y)return V(),s(L);f(L),w({allowedTypes:r,filesList:L,onFileChange:([z])=>{A(z,V)},onError:I})},O=M=>{M.keyCode===axe.DOWN&&(M.preventDefault(),M.target.click())},j=b&&(!r||r.length===0?!1:r.every(M=>M==="image"||M.startsWith("image/"))),D={...S,variant:k};return(0,Ln.jsx)(Yi.Dropdown,{popoverProps:D,className:x,contentClassName:K("block-editor-media-replace-flow__options",k&&`is-variant-${k}`),renderToggle:({isOpen:M,onToggle:V})=>_?_({"aria-expanded":M,"aria-haspopup":"true",onClick:V,onKeyDown:O,children:p}):(0,Ln.jsx)(Yi.ToolbarButton,{"aria-expanded":M,"aria-haspopup":"true",onClick:V,onKeyDown:O,children:p}),renderContent:({onClose:M})=>(0,Ln.jsxs)(Ln.Fragment,{children:[(0,Ln.jsxs)(Yi.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,Ln.jsxs)(Xs,{children:[(0,Ln.jsx)(bu,{gallery:j,addToGallery:v,multiple:b,value:b?o:t,onSelect:V=>A(V,M),allowedTypes:r,render:({open:V})=>(0,Ln.jsx)(Yi.MenuItem,{icon:Jy,onClick:V,children:(0,Iu.__)("Open Media Library")})}),(0,Ln.jsx)(Yi.FormFileUpload,{onChange:V=>{P(V,M)},accept:R,multiple:!!b,render:({openFileDialog:V})=>(0,Ln.jsx)(Yi.MenuItem,{icon:O6,onClick:()=>{V()},children:(0,Iu._x)("Upload","verb")})})]}),u&&(0,Ln.jsx)(Yi.MenuItem,{icon:U4,onClick:u,isPressed:d,children:(0,Iu.__)("Use featured image")}),typeof g=="function"?g({onClose:M}):g,e&&l&&(0,Ln.jsx)(Yi.MenuItem,{onClick:()=>{l(),M()},children:(0,Iu.__)("Reset")})]}),a&&(0,Ln.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,Ln.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,Iu.__)("Current media URL:")}),(0,Ln.jsx)(th,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:V})=>{a(V)},searchInputPlaceholder:(0,Iu.__)("Paste or type URL")})]})]})})},h_=(0,lxe.compose)([(0,ON.withDispatch)(e=>{let{createNotice:t,removeNotice:o}=e(uxe.store);return{createNotice:t,removeNotice:o}}),(0,Yi.withFilters)("editor.MediaReplaceFlow")])(N$e);var Yr=c(U(),1),Kr=c(G(),1),ih=c(F(),1),Cxe=c(Q(),1);var Exe=c(Rt(),1);var kW=c(G(),1),LN=c(F(),1),g_=c(U(),1);var wxe=c(Rt(),1);var mxe=c(G(),1),hxe=c(U(),1);var fxe=c(U(),1),AN=c(Fs(),1),SW=c(E(),1);function pxe({url:e,urlLabel:t,className:o}){let r=K(o,"block-editor-url-popover__link-viewer-url");return e?(0,SW.jsx)(fxe.ExternalLink,{className:r,href:e,children:t||(0,AN.filterURLForDisplay)((0,AN.safeDecodeURI)(e))}):(0,SW.jsx)("span",{className:r})}var ME=c(E(),1);function gxe({className:e,linkClassName:t,onEditLinkClick:o,url:r,urlLabel:n,...i}){return(0,ME.jsxs)("div",{className:K("block-editor-url-popover__link-viewer",e),...i,children:[(0,ME.jsx)(pxe,{url:r,urlLabel:n,className:t}),o&&(0,ME.jsx)(hxe.Button,{icon:ug,label:(0,mxe.__)("Edit"),onClick:o,size:"compact"})]})}var kxe=c(G(),1),_xe=c(U(),1);var gf=c(G(),1),NE=c(F(),1),wc=c(io(),1),Es=c(U(),1),oh=c(fe(),1),bxe=c(Q(),1),yxe=c(Fs(),1);var Ou=c(E(),1),vxe=c(ce(),1),{ValidatedInputControl:D$e}=H(Es.privateApis);function Sxe(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,oh.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,yxe.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:K("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:Es.__experimentalInputControl;return(0,Ou.jsxs)(Es.BaseControl,{...y,children:[(0,Ou.jsx)(_,{...k,...this.hasRenderedValidation.current?S:{},__next40pxDefaultSize:!0}),p&&(0,Ou.jsx)(Es.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 Sxe(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:u,buildSuggestionItemProps:d,isLoading:l,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!n?.length,currentInputValue:n}):(0,Ou.jsx)(Es.Popover,{placement:"bottom",focusOnMount:!1,children:(0,Ou.jsx)("div",{...u,className:K("block-editor-url-input__suggestions",{[`${e}__suggestions`]:e}),children:r.map((f,p)=>(0,vxe.createElement)(Es.Button,{__next40pxDefaultSize:!0,...d(f,p),key:f.id,className:K("block-editor-url-input__suggestion",{"is-selected":p===i}),onClick:()=>this.handleOnClick(f)},f.title))})})}},Jm=(0,oh.compose)(oh.withSafeTimeout,Es.withSpokenMessages,oh.withInstanceId,(0,bxe.withSelect)((e,t)=>{if(Sxe(t.__experimentalFetchLinkSuggestions))return;let{getSettings:o}=e(C);return{__experimentalFetchLinkSuggestions:o().__experimentalFetchLinkSuggestions}}))(V$e);var DE=c(E(),1);function xxe({autocompleteRef:e,className:t,onChangeInputValue:o,value:r,...n}){return(0,DE.jsxs)("form",{className:K("block-editor-url-popover__link-editor",t),...n,children:[(0,DE.jsx)(Jm,{value:r,onChange:o,autocompleteRef:e}),(0,DE.jsx)(_xe.Button,{icon:sd,label:(0,kxe.__)("Apply"),type:"submit",size:"compact"})]})}var rh=c(E(),1),{__experimentalPopoverLegacyPositionToPlacement:F$e}=H(g_.privateApis),z$e="bottom",_W=(0,LN.forwardRef)(({additionalControls:e,children:t,renderSettings:o,placement:r,focusOnMount:n="firstElement",position:i,...s},a)=>{i!==void 0&&(0,wxe.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,LN.useState)(!1),f=!!o&&u,p=()=>{d(!u)};return(0,rh.jsxs)(g_.Popover,{ref:a,role:"dialog","aria-modal":"true","aria-label":(0,kW.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:n,placement:l,shift:!0,variant:"toolbar",...s,children:[(0,rh.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,rh.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!o&&(0,rh.jsx)(g_.Button,{className:"block-editor-url-popover__settings-toggle",icon:cn,label:(0,kW.__)("Link settings"),onClick:p,"aria-expanded":u,size:"compact"})]})}),f&&(0,rh.jsx)("div",{className:"block-editor-url-popover__settings",children:o()}),e&&!f&&(0,rh.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});_W.LinkEditor=xxe;_W.LinkViewer=gxe;var nh=_W;var Zt=c(E(),1),j$e=()=>{},H$e=({src:e,onChange:t,onSubmit:o,onClose:r,popoverAnchor:n})=>(0,Zt.jsx)(nh,{anchor:n,onClose:r,children:(0,Zt.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o,children:(0,Zt.jsx)(Yr.__experimentalInputControl,{label:(0,Kr.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,Kr.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,Zt.jsx)(Yr.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Zt.jsx)(Yr.Button,{size:"small",icon:sd,label:(0,Kr.__)("Apply"),type:"submit"})})})})}),U$e=({src:e,onChangeSrc:t,onSelectURL:o})=>{let[r,n]=(0,ih.useState)(null),[i,s]=(0,ih.useState)(!1),a=()=>{s(!0)},l=()=>{s(!1),r?.focus()},u=d=>{d.preventDefault(),e&&o&&(o(e),l())};return(0,Zt.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,Zt.jsx)(Yr.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:a,isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:n,children:(0,Kr.__)("Insert from URL")}),i&&(0,Zt.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:B}){_&&(0,Exe.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});let{mediaUpload:R,allowedMimeTypes:I}=(0,Cxe.useSelect)(W=>{let{getSettings:$}=W(C),Y=$();return{mediaUpload:Y.mediaUpload,allowedMimeTypes:Y.allowedMimeTypes}},[]),[A,P]=(0,ih.useState)("");(0,ih.useEffect)(()=>{P(e?.src??"")},[e?.src]);let O=(0,ih.useMemo)(()=>IN(t,I,l),[t,I,l]),N=()=>!t||t.length===0?!1:t.every(W=>W==="image"||W.startsWith("image/")),j=W=>{if(!f||typeof f=="function"&&!f(W))return g(W);S(W);let $;if(d)if(u){let Y=[];$=Z=>{let oe=(e??[]).filter(ne=>ne.id?!Y.some(({id:X})=>Number(X)===Number(ne.id)):!Y.some(({urlSlug:X})=>ne.url.includes(X)));g(oe.concat(Z)),Y=Z.map(ne=>{let X=ne.url.lastIndexOf("."),re=ne.url.slice(0,X);return{id:ne.id,urlSlug:re}})}}else $=g;else $=([Y])=>g(Y);R({allowedTypes:t,filesList:W,onFileChange:$,onError:m,multiple:d})};async function D(W){let{blocks:$}=h9(W);if(!$?.length)return;let Y=await Promise.all($.map(Z=>{let oe=Z.name.split("/")[1];return Z.attributes.id?(Z.attributes.type=oe,Z.attributes):new Promise((ne,X)=>{window.fetch(Z.attributes.url).then(re=>re.blob()).then(re=>R({filesList:[re],additionalData:{title:Z.attributes.title,alt_text:Z.attributes.alt,caption:Z.attributes.caption,type:oe},onFileChange:([ae])=>{ae.id&&ne(ae)},allowedTypes:t,onError:X})).catch(()=>ne(Z.attributes.url))})})).catch(Z=>m(Z));Y?.length&&g(d?Y:Y[0])}let M=W=>{j(W.target.files)},L=T??(W=>{let{instructions:$,title:Y}=n;if(!R&&!v&&($=(0,Kr.__)("To edit this block, you need permission to upload media.")),$===void 0||Y===void 0){let oe=t??[],[ne]=oe,X=oe.length===1,re=X&&ne==="audio",ae=X&&ne==="image",ve=X&&ne==="video";$===void 0&&R&&($=(0,Kr.__)("Drag and drop an image or video, upload, or choose from your library."),re?$=(0,Kr.__)("Drag and drop an audio file, upload, or choose from your library."):ae?$=(0,Kr.__)("Drag and drop an image, upload, or choose from your library."):ve&&($=(0,Kr.__)("Drag and drop a video, upload, or choose from your library."))),Y===void 0&&(Y=(0,Kr.__)("Media"),re?Y=(0,Kr.__)("Audio"):ae?Y=(0,Kr.__)("Image"):ve&&(Y=(0,Kr.__)("Video")))}let Z=K("block-editor-media-placeholder",o,{"is-appender":a});return(0,Zt.jsxs)(Yr.Placeholder,{icon:r,label:Y,instructions:$,className:Z,notices:s,onDoubleClick:k,preview:i,style:B,children:[W,x]})}),z=()=>p?null:(0,Zt.jsx)(Yr.DropZone,{onFilesDrop:j,onDrop:D,isEligible:W=>{let $="wp-block:core/",Y=[];for(let Z of W.types)Z.startsWith($)&&Y.push(Z.slice($.length));return Y.every(Z=>t.includes(Z))&&(d?!0:Y.length===1)}}),q=()=>b&&(0,Zt.jsx)(Yr.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,Kr.__)("Cancel"),variant:"link",onClick:b,children:(0,Kr.__)("Cancel")}),J=()=>v&&(0,Zt.jsx)(U$e,{src:A,onChangeSrc:P,onSelectURL:v}),te=()=>y&&(0,Zt.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,Zt.jsx)(Yr.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,Kr.__)("Use featured image")})}),ee=()=>{let $=w??(({open:Z})=>(0,Zt.jsx)(Yr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{Z()},children:(0,Kr.__)("Media Library")})),Y=(0,Zt.jsx)(bu,{addToGallery:u,gallery:d&&N(),multiple:d,onSelect:g,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:Z})=>Z):e.id,render:$});if(R&&a)return(0,Zt.jsxs)(Zt.Fragment,{children:[z(),(0,Zt.jsx)(Yr.FormFileUpload,{onChange:M,accept:O,multiple:!!d,render:({openFileDialog:Z})=>{let oe=(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Yr.Button,{__next40pxDefaultSize:!0,variant:"primary",className:K("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:Z,children:(0,Kr._x)("Upload","verb")}),Y,J(),te(),q()]});return L(oe)}})]});if(R){let Z=(0,Zt.jsxs)(Zt.Fragment,{children:[z(),(0,Zt.jsx)(Yr.FormFileUpload,{render:({openFileDialog:oe})=>(0,Zt.jsx)(Yr.Button,{__next40pxDefaultSize:!0,onClick:oe,variant:"primary",className:K("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,Kr._x)("Upload","verb")}),onChange:M,accept:O,multiple:!!d}),Y,J(),te(),q()]});return L(Z)}return L(Y)};return h?(0,Zt.jsx)(Xs,{children:z()}):(0,Zt.jsx)(Xs,{fallback:L(J()),children:ee()})}var Txe=(0,Yr.withFilters)("editor.MediaPlaceholder")(G$e);var Rxe=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,Rxe.jsx)(tN,{settings:o,gradients:[],disableCustomGradients:!0,...t})},Bxe=W$e;var Awe=c(Yz(),1);var Lwe=c(F(),1);var Pwe=c(F(),1);var xwe=c(Xh(),1),Xn=c(F(),1),yf=c(Q(),1),KN=c(fe(),1),wwe=c(Ko(),1),Cwe=c(U(),1),Ewe=c(ue(),1),Twe=c(Rt(),1),w_=c(G(),1);var Pxe=c(G(),1),MN=c(U(),1);var xW=c(G(),1),ay=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)(ay.Slot,{name:`RichText.ToolbarControls.${e}`},e)),(0,bf.jsx)(ay.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)(ay.ToolbarItem,{children:r=>(0,bf.jsx)(ay.DropdownMenu,{icon:cn,label:(0,xW.__)("More"),toggleProps:{...r,className:K(r.className,{"is-pressed":o}),description:(0,xW.__)("Displays more block tools")},controls:$c(e.map(([{props:n}])=>n),"title"),popoverProps:$$e})})}})]}),wW=K$e;var sh=c(E(),1);function Y$e({popoverAnchor:e}){return(0,sh.jsx)(MN.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,sh.jsx)(Tk,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,Pxe.__)("Format tools"),children:(0,sh.jsx)(MN.ToolbarGroup,{children:(0,sh.jsx)(wW,{})})})})}var q$e=({inline:e,editableContentElement:t})=>e?(0,sh.jsx)(Y$e,{popoverAnchor:t}):(0,sh.jsx)(No,{group:"inline",children:(0,sh.jsx)(wW,{})}),Ixe=q$e;var NN=c(F(),1),Oxe=c(Q(),1);function Axe({html:e,value:t}){let o=(0,NN.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:n}=(0,Oxe.useDispatch)(C);(0,NN.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 k_=c(F(),1),swe=c(fe(),1);var ly=c(Ko(),1),Lxe=c(go(),1);var{subscribeOwnedListener:Z$e}=H(ly.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,ly.isCollapsed)(s))return;let u=(0,Lxe.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,ly.insert)(s,d,p,p);m=(0,ly.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 y_=c(Ko(),1),b_=c(ue(),1);var Nxe=c(Ko(),1);function Dxe(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,Nxe.insert)(e,o)}var{subscribeOwnedListener:Vxe}=H(y_.privateApis);function Fxe(e){let t=e.length;for(;t--;){let o=Bw(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=Fxe(e[t].innerBlocks);if(r)return r}return[]}var zxe=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,b_.getBlockTransforms)("from").filter(({type:k})=>k==="prefix"),b=(0,b_.findTransform)(g,({prefix:k})=>m===k);if(!b)return;let v=(0,y_.toHTMLString)({value:(0,y_.insert)(d,hd,0,f)}),y=b.transform(v);return l(...Fxe([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,b_.getBlockTransforms)("from").filter(_=>_.type==="input"),v=(0,b_.findTransform)(b,_=>_.regExp.test(g.text));if(v){m(v.transform()),h.dispatch(C).__unstableMarkAutomaticChange();return}let y=p.reduce((_,{__unstableInputRule:x})=>(x&&(_=x(_)),_),Dxe(g)),{__unstableMarkLastChangeAsPersistent:k,__unstableMarkAutomaticChange:S}=h.dispatch(C);y!==g&&(k(),d({...y,activeFormats:g.activeFormats}),S())}let n=Vxe(t,"input",r,!0),i=Vxe(t,"compositionend",r,!0);return()=>{n(),i()}};var jxe=c(Ko(),1);var{subscribeOwnedListener:Q$e}=H(jxe.privateApis),Hxe=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 DN=c(io(),1),Uxe=c(Ko(),1);var{subscribeOwnedListener:J$e}=H(Uxe.privateApis),Gxe=()=>e=>{function t(o){(DN.isKeyboardEvent.primary(o,"z")||DN.isKeyboardEvent.primary(o,"y")||DN.isKeyboardEvent.primaryShift(o,"z"))&&o.preventDefault()}return J$e(e,"keydown",t,!0)};var Wxe=c(Ko(),1);var{subscribeOwnedListener:eKe}=H(Wxe.privateApis),$xe=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 Kxe=c(Ko(),1);var{subscribeOwnedListener:tKe}=H(Kxe.privateApis),Yxe=e=>t=>{let{inputEvents:o}=e.current;function r(n){for(let i of o.current)i(n)}return tKe(t,"input",r)};var VN=c(io(),1),qxe=c(Ko(),1);var{subscribeOwnedListener:oKe}=H(qxe.privateApis),Zxe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented||n!==VN.BACKSPACE&&n!==VN.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 Qxe=c(ue(),1),pl=c(Ko(),1),Jxe=c(Fs(),1),ewe=c(fe(),1);var rKe=c(F(),1),nKe=c(ue(),1),iKe=c(E(),1);function Xxe(e,t){if(t?.length){let o=e.formats.length;for(;o--;)e.formats[o]=[...t,...e.formats[o]||[]]}}function FN(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function v_({allowedFormats:e,disableFormats:t}){return t?v_.EMPTY_ARRAY:e}v_.EMPTY_ARRAY=[];var{subscribeDelegatedListener:sKe}=H(ewe.privateApis),{ownsSelection:aKe}=H(pl.privateApis),twe=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}=RS(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:B})=>(B&&T===a&&(T=B(a,{html:b,plainText:g})),T),a);if(w!==a)s(w);else{let T=(0,pl.create)({html:x});Xxe(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,Jxe.isURL)(S)&&/^https?:/.test(S)&&(k="BLOCKS");let _=(0,Qxe.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 VE=c(io(),1),S_=c(Ko(),1);var{subscribeOwnedListener:lKe}=H(S_.privateApis),owe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===VE.DELETE||n===VE.BACKSPACE){let{start:l,end:u,text:d}=i,f=n===VE.BACKSPACE,p=i.activeFormats&&!!i.activeFormats.length;if(!(0,S_.isCollapsed)(i)||p||f&&l!==0||!f&&u!==d.length)return;s?s(!f):a&&(0,S_.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return lKe(t,"keydown",o)};var CW=c(io(),1),cy=c(Ko(),1),rwe=c(fe(),1);var{subscribeOwnedListener:cKe,ownsSelection:uKe}=H(cy.privateApis),{subscribeDelegatedListener:dKe}=H(rwe.privateApis),nwe=e=>t=>{function o(a){if(a.keyCode!==CW.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!==CW.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,cy.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,cy.remove)(v)),p()}):d||u((0,cy.insert)(l,`
`))}let{defaultView:n}=t.ownerDocument,i=dKe(n,"keydown",r),s=cKe(t,"keydown",o,!0);return()=>{i(),s()}};var iwe=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,zxe,Hxe,Gxe,$xe,Yxe,Zxe,twe,owe,nwe,iwe];function zN(e){let t=(0,k_.useRef)(e);(0,k_.useInsertionEffect)(()=>{t.current=e});let o=(0,k_.useMemo)(()=>fKe.map(r=>r(t)),[t]);return(0,swe.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var jN=c(Ko(),1),HN=c(F(),1);var awe=c(E(),1),lwe=c(ce(),1),pKe={},EW=Symbol("usesContext");function mKe({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[EW]:l}=n,u=(0,HN.useContext)(_n),d=(0,HN.useMemo)(()=>l?Object.fromEntries(Object.entries(u).filter(([g])=>l.includes(g))):pKe,[l,u]);if(!a)return null;let f=(0,jN.getActiveFormat)(o,s),p=f!==void 0,h=(0,jN.getActiveObject)(o),m=h!==void 0&&h.type===s;return(0,awe.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 UN({formatTypes:e,...t}){return e.map(o=>(0,lwe.createElement)(mKe,{settings:o,...t,key:o.name}))}var cwe=c(F(),1),uwe=c(ue(),1),dwe=c(Rt(),1);var TW=c(E(),1);function RW(e,t){if(__.isEmpty(e)){let o=FN(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,dwe.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/"}),uwe.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function FE({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,TW.jsx)(cwe.RawHTML,{children:RW(e,o)}),t?(0,TW.jsx)(t,{...n,children:e}):e}var gwe=c(F(),1),PW=c(ue(),1),bwe=c(Ko(),1),ywe=c(Rt(),1);var fwe=c(F(),1),pwe=c(Rt(),1),GN=c(Q(),1),mwe=c(io(),1),x_=c(Ko(),1);var BW=c(E(),1);function hKe({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,pwe.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,GN.useSelect)(C),{selectionChange:f}=(0,GN.useDispatch)(C),p=FN(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,BW.jsx)(o,{ref:a,children:m.map((b,v)=>(0,BW.jsx)(WN,{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!==mwe.ENTER)return;y.preventDefault();let{offset:k}=u(),{offset:S}=d();if(typeof k!="number"||typeof S!="number")return;let _=(0,x_.create)({html:b});_.start=k,_.end=S;let x=(0,x_.split)(_).map(T=>(0,x_.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 hwe=(0,fwe.forwardRef)(hKe);var vwe=c(E(),1);function Swe(e){return(0,gwe.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,ywe.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=PW.children.toHTML(t.value),n=s=>t.onChange(PW.children.fromDOM((0,bwe.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?hwe:e;return(0,vwe.jsx)(i,{...t,value:r,onChange:n,ref:o})})}var $N=c(U(),1),kwe=c(io(),1),IW=c(E(),1);function OW({name:e,shortcutType:t,shortcutCharacter:o,...r}){let n,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&o&&(n=kwe.displayShortcut[t](o)),(0,IW.jsx)($N.Fill,{name:i,children:(0,IW.jsx)($N.ToolbarButton,{...r,shortcut:n})})}var da=c(E(),1),{useRichText:gKe,KeyboardShortcutContext:bKe,InputEventContext:yKe,RichTextShortcut:Rwe,RichTextInputEvent:Bwe}=H(wwe.privateApis),_we=Symbol("instanceId");function WN({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:B,...R},I){g&&(0,Twe.default)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});let A=(0,KN.useInstanceId)(WN),P=(0,Xn.useRef)(),[O,N]=(0,Xn.useState)(null),j=ht(),{clientId:D,isSelected:M,name:V}=j,L=j[jy],z=j[zy]==="default",q=(0,Xn.useContext)(_n),J=(0,yf.useRegistry)(),te=de=>{if(!M)return{isSelected:!1};let{getSelectionStart:Me,getSelectionEnd:Ze}=de(C),ze=Me(),Je=Ze(),lt;return n===void 0?lt=ze.clientId===D&&Je.clientId===D&&(y?ze.attributeKey===y:ze[_we]===A):n&&(lt=ze.clientId===D),{selectionStart:lt?ze.offset:void 0,selectionEnd:lt?Je.offset:void 0,isSelected:lt}},{selectionStart:ee,selectionEnd:W,isSelected:$}=(0,yf.useSelect)(te,[D,y,A,n,M]),{disableBoundBlock:Y,bindingsPlaceholder:Z,bindingsLabel:oe}=(0,yf.useSelect)(de=>{if(!L?.[y])return{};let{__experimentalBlockBindingsSupportedAttributes:Me}=de(C).getSettings();if(!Me?.[V])return{};let ze=L[y],Je=(0,Ewe.getBlockBindingsSource)(ze.source),lt={};if(Je?.usesContext?.length)for(let yr of Je.usesContext)lt[yr]=q[yr];let ct=!Je?.canUserEditValue?.({select:de,context:lt,args:ze.args});if(o.length>0)return{disableBoundBlock:ct,bindingsPlaceholder:null,bindingsLabel:null};let{getBlockAttributes:br}=de(C),Ao=br(D),or=null;Je?.getFieldsList&&(or=Je.getFieldsList({select:de,context:lt})?.find(an=>(0,xwe.default)(an.args,ze?.args))?.label);let ho=or??Je?.label,Go=ct?ho:(0,w_.sprintf)((0,w_.__)("Add %s"),ho),Vn=ct?ze?.args?.key||Je?.label:(0,w_.sprintf)((0,w_.__)("Empty %s; start writing to edit its value"),ze?.args?.key||Je?.label);return{disableBoundBlock:ct,bindingsPlaceholder:Ao?.placeholder||Go,bindingsLabel:Vn}},[L,y,V,o,D,q]),ne=!!q?.["pattern/overrides"],X=L?.__default?.source==="core/pattern-overrides",ae=B||Y||ne&&!X,ve=(0,yf.useSelect)(de=>{if(ae||!z||!M)return!1;let{getSelectedBlockClientId:Me,canHostEditableRoot:Ze}=H(de(C));return Ze(Me())},[ae,z,M]),{getSelectionStart:xe,getSelectionEnd:ge,getBlockRootClientId:be}=(0,yf.useSelect)(C),{selectionChange:he}=(0,yf.useDispatch)(C),ke=v_({allowedFormats:f,disableFormats:x}),_e=!ke||ke.length>0,we=(0,Xn.useCallback)((de,Me)=>{let Ze={},ze=de===void 0&&Me===void 0,Je={clientId:D,[y?"attributeKey":_we]:y||A};if(typeof de=="number"||ze){if(Me===void 0&&be(D)!==be(ge().clientId))return;Ze.start={...Je,offset:de}}if(typeof Me=="number"||ze){if(de===void 0&&be(D)!==be(xe().clientId))return;Ze.end={...Je,offset:Me}}he(Ze)},[D,be,ge,xe,y,A,he]),{value:Re,getValue:se,onChange:ie,ref:Ae,formatTypes:ye}=gKe({value:o,onChange:r,selectionStart:ee,selectionEnd:W,onSelectionChange:we,placeholder:Z||d,__unstableIsSelected:$,__unstableDisableFormats:x,preserveWhiteSpace:k,__unstableDependencies:[t],allowedFormats:ke,withoutInteractiveFormatting:p,__unstableFormatTypeHandlerContext:(0,Xn.useMemo)(()=>({richTextIdentifier:y,blockClientId:D}),[y,D])}),Ee=HX({onReplace:u,completers:l,record:Re,onChange:ie}),{"aria-autocomplete":qe,"aria-haspopup":pt,"aria-controls":at,"aria-owns":Ct,"aria-activedescendant":rt}=Ee;(0,Xn.useEffect)(()=>{if(!$)return;let de=P.current?.parentElement?.closest('[contenteditable="true"]');if(!de)return;let Me={"aria-autocomplete":qe,"aria-haspopup":pt,"aria-controls":at,"aria-owns":Ct,"aria-activedescendant":rt};for(let[Ze,ze]of Object.entries(Me))ze===void 0?de.removeAttribute(Ze):de.setAttribute(Ze,ze);return()=>{for(let Ze of Object.keys(Me))de.removeAttribute(Ze)}},[$,qe,pt,at,Ct,rt]),Axe({html:o,value:Re});let Ot=(0,Xn.useRef)(new Set),ut=(0,Xn.useRef)(new Set);function Ut(){P.current?.focus()}let So=R.tabIndex;ve?So=R.tabIndex??0:!ae&&R.tabIndex===0&&(So=null);let mo=t;return(0,da.jsxs)(da.Fragment,{children:[$&&(0,da.jsx)(bKe.Provider,{value:Ot,children:(0,da.jsx)(yKe.Provider,{value:ut,children:(0,da.jsxs)(Cwe.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:Re,onChange:ie,onFocus:Ut}),(0,da.jsx)(UN,{value:Re,onChange:ie,onFocus:Ut,formatTypes:ye,forwardedRef:P})]})})}),$&&_e&&(0,da.jsx)(Ixe,{inline:s,editableContentElement:O}),(0,da.jsx)(mo,{role:"textbox","aria-multiline":!w,"aria-readonly":ae,...R,draggable:void 0,"aria-label":oe||R["aria-label"]||d,...Ee,ref:(0,KN.useMergeRefs)([Ae,I,Ee.ref,R.ref,zN({registry:J,getValue:se,onChange:ie,__unstableAllowPrefixTransformations:T,formatTypes:ye,onReplace:u,selectionChange:he,isSelected:$,disableFormats:x,value:Re,tagName:t,onSplit:g,__unstableEmbedURLOnPaste:_,pastePlainText:S,onMerge:m,onRemove:h,disableLineBreaks:w,onSplitAtEnd:b,onSplitAtDoubleLineEnd:v,keyboardShortcuts:Ot,inputEvents:ut}),P,N]),contentEditable:!ae,suppressContentEditableWarning:!0,className:K("block-editor-rich-text__editable",R.className,"rich-text"),tabIndex:So,"data-wp-block-attribute-key":y})]})}var zE=Swe((0,Xn.forwardRef)(WN));zE.Content=FE;zE.isEmpty=e=>!e||e.length===0;var AW=(0,Xn.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:B,__unstableDisableFormats:R,disableLineBreaks:I,__unstableAllowPrefixTransformations:A,readOnly:P,...O}=e;return(0,da.jsx)(i,{ref:t,...O,dangerouslySetInnerHTML:{__html:RW(s,u)||"<br>"}})}return(0,da.jsx)(zE,{ref:t,...e,readOnly:!1})});AW.Content=FE;AW.isEmpty=e=>!e||e.length===0;var __=AW;var LW=c(E(),1),Iwe=(0,Pwe.forwardRef)((e,t)=>(0,LW.jsx)(__,{ref:t,...e,__unstableDisableFormats:!0}));Iwe.Content=function({value:t="",tagName:o="div",...r}){return(0,LW.jsx)(o,{...r,children:t})};var Owe=Iwe;var MW=c(E(),1),vKe=(0,Lwe.forwardRef)(({__experimentalVersion:e,...t},o)=>{if(e===2)return(0,MW.jsx)(Owe,{ref:o,...t});let{className:r,onChange:n,...i}=t;return(0,MW.jsx)(Awe.default,{ref:o,className:K("block-editor-plain-text",r),onChange:s=>n(s.target.value),...i})}),Mwe=vKe;var Au=c(G(),1),Dwe=c(F(),1),Vwe=c(U(),1);var Nwe=c(fe(),1);var YN=c(G(),1),ah=c(E(),1);function qN({property:e,viewport:t,desc:o}){let r=(0,Nwe.useInstanceId)(qN),n=o||(0,YN.sprintf)((0,YN._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,ah.jsxs)(ah.Fragment,{children:[(0,ah.jsx)("span",{"aria-describedby":`rbc-desc-${r}`,children:t.label}),(0,ah.jsx)(bt,{id:`rbc-desc-${r}`,render:(0,ah.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)(qN,{property:o,viewport:l}),l),h=()=>u.map(m=>(0,Lu.jsx)(Dwe.Fragment,{children:i((0,Lu.jsx)(qN,{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)(Vwe.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:d,checked:!a,onChange:n,help:f}),(0,Lu.jsxs)("div",{className:K("block-editor-responsive-block-control__group",{"is-responsive":a}),children:[!a&&p,a&&(s?s(u):h())]})]})]})}var Fwe=SKe;var ZN=c(U(),1);var zwe=c(E(),1);function jwe({units:e,...t}){let[o]=Le("spacing.units"),r=(0,ZN.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"],units:e});return(0,zwe.jsx)(ZN.__experimentalUnitControl,{units:r,...t})}var jE=c(G(),1),Hwe=c(F(),1),C_=c(U(),1);var Mu=c(E(),1);function kKe({url:e,onChange:t}){let[o,r]=(0,Hwe.useReducer)(i=>!i,!1),n=i=>{i.preventDefault(),r()};return(0,Mu.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,Mu.jsx)(C_.Button,{size:"compact",icon:ss,label:e?(0,jE.__)("Edit link"):(0,jE.__)("Insert link"),onClick:r,className:"components-toolbar__control",isPressed:!!e}),o&&(0,Mu.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:n,children:(0,Mu.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,Mu.jsx)(C_.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:Nx,label:(0,jE.__)("Close"),onClick:r}),(0,Mu.jsx)(Jm,{value:e||"",onChange:t,suffix:(0,Mu.jsx)(C_.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Mu.jsx)(C_.Button,{size:"small",icon:sd,label:(0,jE.__)("Submit"),type:"submit"})})})]})})]})}var Uwe=kKe;var Ts=c(G(),1),ml=c(F(),1),Ywe=c(Tt(),1),hn=c(U(),1);var qwe=c(Fs(),1);var Bo=c(E(),1),NW="none",Gwe="custom",Wwe="media",$we="attachment",Kwe=["noopener"],Zwe=({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;(Ywe.focus.focusable.find(w.current)[0]||w.current).focus()},[y,o,d]);let T=()=>{(e===Wwe||e===$we)&&_(""),k(!0)},B=()=>{k(!1)},R=()=>{_(null),B(),m(!1)},I=W=>{let $=W?"_blank":void 0,Y;if($){let Z=(l??"").split(" ");Kwe.forEach(oe=>{Z.includes(oe)||Z.push(oe)}),Y=Z.join(" ")}else{let Z=(l??"").split(" ").filter(oe=>Kwe.includes(oe)===!1);Y=Z.length?Z.join(" "):void 0}return{linkTarget:$,rel:Y}},A=()=>W=>{let $=x.current;$&&$.contains(W.target)||(m(!1),_(null),B())},P=()=>W=>{if(S){let $=N().find(Y=>Y.url===S)?.linkDestination||Gwe;t({href:(0,qwe.prependHTTPS)(S),linkDestination:$,lightbox:{enabled:!1}})}B(),_(null),W.preventDefault()},O=()=>{t({linkDestination:NW,href:""})},N=()=>{let W=[{linkDestination:Wwe,title:(0,Ts.__)("Link to image file"),url:r==="image"?n:void 0,icon:Gx}];return r==="image"&&i&&W.push({linkDestination:$we,title:(0,Ts.__)("Link to attachment page"),url:r==="image"?i:void 0,icon:cg}),W},j=W=>{let $=N(),Y;W?Y=($.find(Z=>Z.url===W)||{linkDestination:Gwe}).linkDestination:Y=NW,t({linkDestination:Y,href:W})},D=W=>{let $=I(W);t($)},M=W=>{t({rel:W})},V=W=>{t({linkClass:W})},L=(0,Bo.jsxs)(hn.__experimentalVStack,{spacing:"3",children:[(0,Bo.jsx)(hn.ToggleControl,{label:(0,Ts.__)("Open in new tab"),onChange:D,checked:s==="_blank"}),(0,Bo.jsx)(hn.TextControl,{label:(0,Ts.__)("Link relation"),value:l??"",onChange:M,help:(0,ml.createInterpolateElement)((0,Ts.__)("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,Ts.__)("Link CSS class"),value:a||"",onChange:V})]}),z=S!==null?S:o,q=!d||d&&!u,J=!z&&q,te=(N().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,Ts.__)("Enlarge on click")}),(0,Bo.jsx)("p",{className:"description",children:(0,Ts.__)("Scales the image with a lightbox effect")})]}),(0,Bo.jsx)(hn.Button,{icon:is,label:(0,Ts.__)("Disable enlarge on click"),onClick:()=>{f?.(!1)},size:"compact"})]});if(!o||y)return(0,Bo.jsx)(nh.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:z,onChangeInputValue:_,onSubmit:P(),autocompleteRef:x});if(o&&!y)return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(nh.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:o,onEditLinkClick:T,urlLabel:te}),(0,Bo.jsx)(hn.Button,{icon:is,label:(0,Ts.__)("Remove link"),onClick:()=>{O(),p?.()},size:"compact"})]})};return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(hn.ToolbarButton,{icon:ss,className:"components-toolbar__control",label:(0,Ts.__)("Link"),"aria-expanded":h,onClick:v,ref:b,isActive:!!o||d&&u}),h&&(0,Bo.jsx)(nh,{ref:w,anchor:g,onFocusOutside:A(),onClose:R,renderSettings:q?()=>L:null,additionalControls:J&&(0,Bo.jsxs)(hn.NavigableMenu,{children:[N().map(W=>(0,Bo.jsx)(hn.MenuItem,{icon:W.icon,iconPosition:"left",onClick:()=>{_(null),j(W.url),B()},children:W.title},W.linkDestination)),u&&(0,Bo.jsx)(hn.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:tR,info:(0,Ts.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{_(null),t({linkDestination:NW,href:""}),f?.(!0),B()},children:(0,Ts.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:ee()})]})};var T_=c(U(),1),u0e=c(F(),1),JN=c(G(),1);var Xwe=c(F(),1),VW=c(G(),1);var DW=[],_Ke=new Intl.Collator("und",{numeric:!0}).compare;function XN(){let[e,t,o,r]=Le("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),n=e??DW,i=t??DW,s=o&&r!==!1?o:DW;return(0,Xwe.useMemo)(()=>{let a=[{name:(0,VW.__)("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>GX?[{name:(0,VW.__)("Default"),slug:"default",size:void 0},...a]:a},[n,i,s])}var Qwe=c(F(),1),Jwe=c(Q(),1),QN=c(G(),1),e0e=c(U(),1);var t0e=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 E_({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,Jwe.useSelect)(S=>S(C).getSettings()?.disableCustomSpacingSizes),[h]=Le("spacing.units"),m=(0,e0e.__experimentalUseCustomUnits)({availableUnits:h||["px","em","rem"]}),g=(0,Qwe.useMemo)(()=>l?.map(S=>({name:S.name,slug:S.slug,size:S.size}))||[],[l]),b=(xp.includes(a)||["vertical","horizontal"].includes(a))&&s?Yc[a]:"",v=s?u?.toLowerCase():u,y=(0,QN.sprintf)((0,QN._x)("%1$s %2$s","spacing"),b,v).trim(),k=m[0]?.value||"px";return(0,t0e.jsx)($b,{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 HE=c(E(),1),o0e=["vertical","horizontal"];function r0e({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]=_v(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?o0e.filter(d=>Pz(n,d)):o0e;return(0,HE.jsx)(HE.Fragment,{children:u.map(d=>{let f=d==="vertical"?a.top:a.left;return(0,HE.jsx)(E_,{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 UE=c(E(),1);function n0e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=n?.length?xp.filter(d=>n.includes(d)):xp,u=d=>f=>{let p={...Object.keys(a).reduce((h,m)=>(h[m]=_v(a[m],i),h),{})};p[d]=f,t(p)};return(0,UE.jsx)(UE.Fragment,{children:l.map(d=>(0,UE.jsx)(E_,{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 i0e=c(E(),1);function s0e({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]=_v(l[m],s),h),{})};p[d]=f,t(p)};return(0,i0e.jsx)(E_,{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 a0e=c(U(),1);var FW=c(G(),1),l0e=c(E(),1);function c0e({isLinked:e,...t}){let o=e?(0,FW.__)("Unlink sides"):(0,FW.__)("Link sides");return(0,l0e.jsx)(a0e.Button,{...t,size:"small",icon:e?ss:is,iconSize:24,label:o})}var Nu=c(E(),1);function R_({inputProps:e,label:t,minimumCustomValue:o=0,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,sides:a=xp,useSelect:l,values:u}){let d=XN(),f=u||WX,p=a?.length===1,h=a?.includes("horizontal")&&a?.includes("vertical")&&a?.length===2,[m,g]=(0,u0e.useState)(KX(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,Nu.jsx)(r0e,{...y}):m===bd.custom?(0,Nu.jsx)(n0e,{...y}):(0,Nu.jsx)(s0e,{side:m,...y,showSideInLabel:s}),S=xp.includes(m)&&s?Yc[m]:"",_=(0,JN.sprintf)((0,JN._x)("%1$s %2$s","spacing"),t,S).trim();return(0,Nu.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,Nu.jsxs)(T_.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,Nu.jsx)(T_.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:_}),!p&&!h&&(0,Nu.jsx)(c0e,{label:t,onClick:b,isLinked:m===bd.axial})]}),(0,Nu.jsx)(T_.__experimentalVStack,{spacing:.5,children:k()})]})}var d0e=c(Rt(),1);function f0e(){return(0,d0e.default)("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}var p0e=c(Rt(),1);function m0e(){(0,p0e.default)("wp.blockEditor.useResizeCanvas",{since:"7.1",hint:"Device preview is now handled by the editor canvas. This hook no longer does anything."})}var qi=c(G(),1),Y_=c(ue(),1),q_=c(U(),1),m1=c(Q(),1),qEe=c(F(),1);var B_=c(U(),1),eD=c(G(),1),tD=c(Q(),1),oD=c(ue(),1);var uy=c(E(),1);function wKe({block:e,onNavigateToEntityRecord:t,isSyncedPattern:o,isTemplatePartBlock:r}){let n=e?.attributes||{};return(0,uy.jsx)(B_.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,uy.jsx)(B_.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,eD.__)("Edit original")})})}function CKe({clientId:e,editedContentOnlySection:t,editContentOnlySection:o,stopEditingContentOnlySection:r}){let{selectBlock:n}=(0,tD.useDispatch)(C);return(0,uy.jsx)(B_.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,uy.jsx)(B_.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,eD.__)("Exit pattern"):(0,eD.__)("Edit pattern")})})}function h0e({clientId:e}){let{isWithinSection:t,isWithinEditedSection:o,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i}=ZL(e),{block:s,onNavigateToEntityRecord:a,canEdit:l}=(0,tD.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,oD.isReusableBlock)(s),d=(0,oD.isTemplatePart)(s);return(u||d)&&a?(0,uy.jsx)(wKe,{block:s,onNavigateToEntityRecord:a,isSyncedPattern:u,isTemplatePartBlock:d}):(0,uy.jsx)(CKe,{clientId:e,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i})}var g0e=c(Q(),1),b0e=c(G(),1),y0e=c(U(),1),v0e=c(F(),1);var S0e=c(E(),1);function rD(){let e=(0,g0e.useSelect)(r=>r(C).getBlockSelectionStart(),[]),t=(0,v0e.useRef)();return xg(e,t),e?(0,S0e.jsx)(y0e.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,b0e.__)("Skip to the selected block")}):null}var nD=c(G(),1),k0e=c(Q(),1);var _0e=c(U(),1);var GE=c(E(),1);function zW(){let e=(0,k0e.useSelect)(t=>t(C).getSelectedBlockCount(),[]);return(0,GE.jsxs)(_0e.__experimentalHStack,{justify:"flex-start",spacing:2,className:"block-editor-multi-selection-inspector__card",children:[(0,GE.jsx)(Et,{icon:og,showColors:!0}),(0,GE.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,nD.sprintf)((0,nD._n)("%d Block","%d Blocks",e),e)})]})}var x0e=c(U(),1),EKe=Symbol("BlockInspectorPreTabs"),{Fill:Rqt,Slot:w0e}=(0,x0e.createSlotFill)(EKe);var fV=c(U(),1),Rc=c(F(),1),VEe=c(fv(),1),K_=c(Q(),1);var WE=c(G(),1),iD={name:"settings",title:(0,WE.__)("Settings"),value:"settings",icon:s3},sD={name:"styles",title:(0,WE.__)("Styles"),value:"styles",icon:h6},aD={name:"content",title:(0,WE.__)("Content"),value:"content",icon:cg},vf={name:"list",title:(0,WE.__)("List View"),value:"list-view",icon:Zx};var jW=c(U(),1);var $E=c(U(),1),C0e=c(G(),1);var KE=c(E(),1),TKe=({initialOpen:e=!1})=>{let t=(0,$E.__experimentalUseSlotFills)(wm.slotName),o=(0,$E.__experimentalUseSlotFills)($C.name),r=!!(t&&t.length),n=!!(o&&o.length);return!r&&!n?null:(0,KE.jsxs)($E.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,C0e.__)("Advanced"),initialOpen:e,children:[(0,KE.jsx)(Oe.Slot,{group:"advanced"}),(0,KE.jsx)($C.Slot,{})]})},lD=TKe;var Sf=c(E(),1),RKe=({showAdvancedControls:e=!1})=>{let t=(0,jW.__experimentalUseSlotFills)(cc.default.name),o=(0,jW.__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)(lD,{initialOpen:!r})})]})},E0e=RKe;var fh=c(G(),1),lV=c(Q(),1),B$=c(F(),1);var P_=c(U(),1),cD=c(Q(),1),HW=c(G(),1);var YE=c(E(),1),BKe=()=>{let{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:o}=(0,cD.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,cD.useDispatch)(C),n=xr();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,YE.jsx)(P_.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,HW.__)("Position"),resetAll:i,dropdownMenuProps:n,children:(0,YE.jsx)(P_.__experimentalToolsPanelItem,{isShownByDefault:o,label:(0,HW.__)("Position"),hasValue:()=>o,onDeselect:i,children:(0,YE.jsx)(Oe.Slot,{group:"position"})})})},PKe=()=>{let e=(0,P_.__experimentalUseSlotFills)(cc.position.name);return!(e&&e.length)?null:(0,YE.jsx)(BKe,{})},uD=PKe;var l1=c(ue(),1),c$=c(U(),1),WD=c(F(),1),KCe=c(go(),1),YCe=c(Q(),1),GD=c(G(),1);var i$={};Or(i$,{AdvancedPanel:()=>MD,BackgroundPanel:()=>FD,BorderPanel:()=>PD,ColorPanel:()=>bD,DimensionsPanel:()=>ED,FiltersPanel:()=>OD,ImageSettingsPanel:()=>RCe,StateControl:()=>zD,StateControlBadges:()=>jD,TypographyPanel:()=>vD,useHasBackgroundPanel:()=>VD,useHasBorderPanel:()=>BD,useHasBorderPanelControls:()=>QE,useHasColorPanel:()=>gD,useHasDimensionsPanel:()=>CD,useHasFiltersPanel:()=>CCe,useHasImageSettingsPanel:()=>TCe,useHasTypographyPanel:()=>yD,useSettingsForBlockElement:()=>dD});var qE=c(F(),1),T0e=c(Q(),1),UW=c(ue(),1),dy=c(G(),1);function dD(e,t,o){let{supportedStyles:r,supports:n}=(0,T0e.useSelect)(i=>({supportedStyles:H(i(UW.store)).getSupportedStyles(t,o),supports:i(UW.store).getBlockType(t)?.supports}),[t,o]);return(0,qE.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,qE.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,dy._x)("Theme","Indicates this palette comes from the theme."),colors:o}),n&&r&&r.length&&i.push({name:(0,dy._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&i.push({name:(0,dy._x)("Custom","Indicates this palette is created by the user."),colors:t}),i},[t,o,r,n])}function ZE(e){let t=e?.color?.gradients?.custom,o=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,n=e?.color?.defaultGradients;return(0,qE.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,dy._x)("Theme","Indicates this palette comes from the theme."),gradients:o}),n&&r&&r.length&&i.push({name:(0,dy._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&i.push({name:(0,dy._x)("Custom","Indicates this palette is created by the user."),gradients:t}),i},[t,o,r,n])}function I_(e){let t=Du(e),o=ZE(e),r=e?.color?.custom,n=e?.color?.customGradient,i=(0,qE.useMemo)(()=>t.flatMap(({colors:l})=>l),[t]),s=l=>Ea({settings:e},"",l),a=(l,u)=>{if(u)return"var:preset|gradient|"+u;let f=o.flatMap(({gradients:p})=>p).find(({gradient:p})=>p===l);return f?"var:preset|gradient|"+f.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),Cr=c(G(),1),fy=c(F(),1);var O_=c(G(),1);var R0e=c(F(),1),fD=c(U(),1),GW=c(E(),1),IKe=[{label:(0,O_.__)("Align text left"),value:"left",icon:ep},{label:(0,O_.__)("Align text center"),value:"center",icon:Qh},{label:(0,O_.__)("Align text right"),value:"right",icon:tp},{label:(0,O_.__)("Justify text"),value:"justify",icon:LF}],OKe=["left","center","right"];function pD({className:e,value:t,onChange:o,options:r=OKe}){let n=(0,R0e.useMemo)(()=>IKe.filter(i=>r.includes(i.value)),[r]);return n.length?(0,GW.jsx)(fD.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,O_.__)("Text alignment"),className:K("block-editor-text-alignment-control",e),value:t,onChange:i=>{o(i===t?void 0:i)},children:n.map(i=>(0,GW.jsx)(fD.__experimentalToggleGroupControlOptionIcon,{value:i.value,icon:i.icon,label:i.label},i.value))}):null}var nn=c(U(),1),XE=c(G(),1);var hl=c(E(),1);function B0e({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,nn.__experimentalUseCustomUnits)({availableUnits:u||["px","em","rem","ch","%","vw","vh"],defaultValues:{px:16,em:2,rem:2,ch:2}}),[f,p]=(0,nn.__experimentalParseQuantityAndUnitFromRawValue)(e,d),h=!!p&&["em","rem","%","ch","vw","vh"].includes(p);return r?(0,hl.jsxs)(nn.__experimentalView,{style:n?{marginBottom:12}:void 0,children:[(0,hl.jsx)(nn.BaseControl.VisualLabel,{children:(0,XE.__)("Line indent")}),(0,hl.jsxs)(nn.Flex,{children:[(0,hl.jsx)(nn.FlexItem,{isBlock:!0,children:(0,hl.jsx)(nn.__experimentalUnitControl,{label:(0,XE.__)("Line indent"),labelPosition:"top",hideLabelFromVision:!0,value:e,onChange:t,units:d,__unstableInputWidth:o,min:0,className:s,placeholder:a})}),r&&(0,hl.jsx)(nn.FlexItem,{isBlock:!0,children:(0,hl.jsx)(nn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,hl.jsx)(nn.RangeControl,{label:(0,XE.__)("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)(nn.__experimentalUnitControl,{...l,label:(0,XE.__)("Line indent"),value:e,__unstableInputWidth:o,units:d,onChange:t,help:i,className:s,placeholder:a})}var sn=c(U(),1),O0e=c(F(),1),WW=c(G(),1);var A_=c(U(),1);var P0e=c(G(),1),lh=c(E(),1),gn=()=>!!window.__experimentalGlobalStylesInheritanceUI;function gl(e,t,o){let r=!!e&&!t,n=K(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,lh.jsxs)(A_.Button,{__next40pxDefaultSize:!1,label:(0,P0e.__)("Reset to inherited value"),showTooltip:!0,className:K("has-local-override-from-global-styles__reset",t),onClick:o=>{o.preventDefault(),o.stopPropagation(),e?.()},children:[(0,lh.jsx)("span",{"aria-hidden":"true",className:"has-local-override-from-global-styles__dot"}),(0,lh.jsx)(A_.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,lh.jsxs)(A_.__experimentalToolsPanelItem,{className:e,label:r,onDeselect:n,...l,children:[a,o&&i&&(0,lh.jsx)("div",{className:K("global-styles-inheritance-affordance",{"global-styles-inheritance-affordance--offset-toggle":s}),children:(0,lh.jsx)(kf,{onResetToInherited:n})})]})}var vo=c(E(),1),{Tabs:mD}=H(sn.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,vo.jsx)(sn.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,vo.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[e.length===1&&(0,vo.jsx)(I0e,{...n,colorGradientControlSettings:t,contrastWarning:o},r),e.length>1&&(0,vo.jsxs)(mD,{defaultTabId:i,children:[(0,vo.jsx)(mD.TabList,{children:e.map(s=>(0,vo.jsx)(mD.Tab,{tabId:s.key,children:s.label},s.key))}),e.map(s=>{let{key:a,...l}=s;return(0,vo.jsx)(mD.TabPanel,{tabId:a,focusable:!1,children:(0,vo.jsx)(I0e,{...l,colorGradientControlSettings:t,contrastWarning:o},a)},a)})]})]})})}var LKe={placement:"left-start",offset:36,shift:!0},MKe=({indicators:e,label:t})=>(0,vo.jsxs)(sn.__experimentalHStack,{justify:"flex-start",children:[(0,vo.jsx)(sn.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map((o,r)=>(0,vo.jsx)(sn.Flex,{expanded:!1,children:(0,vo.jsx)(sn.ColorIndicator,{colorValue:o})},r))}),(0,vo.jsx)(sn.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function I0e({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,vo.jsx)(Km,{...a,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:u,colorSlug:e?void 0:d,gradientValue:e?u:void 0,gradientSlug:e?d: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 ch({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=gn()}){let h=(0,O0e.useRef)(void 0),m=K("block-editor-color-gradient-item",u),g=p&&t()&&f,b=p?gl(d,g,m):{className:m};return(0,vo.jsx)(Lt,{...b,showLocalOverrideActionsInLabel:!1,hasValue:t,label:e,onDeselect:o,isShownByDefault:r,panelId:a,children:(0,vo.jsx)(sn.Dropdown,{popoverProps:LKe,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:v,isOpen:y})=>{let k={onClick:v,className:K("block-editor-panel-color-gradient-settings__dropdown",{"is-open":y,"has-contrast-warning":!!l}),"aria-expanded":y,ref:h};return(0,vo.jsxs)(vo.Fragment,{children:[(0,vo.jsx)(sn.Button,{...k,__next40pxDefaultSize:!0,children:(0,vo.jsx)(MKe,{indicators:n,label:e})}),t()&&(g?(0,vo.jsx)(kf,{className:"block-editor-panel-color-gradient-settings__reset",onResetToInherited:()=>{o(),y&&v(),h.current?.focus()}}):(0,vo.jsx)(sn.Button,{__next40pxDefaultSize:!0,label:(0,WW.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:dn,onClick:()=>{o(),y&&v(),h.current?.focus()}})),l&&(0,vo.jsx)(sn.Button,{__next40pxDefaultSize:!0,size:"small",icon:ZF,label:(0,WW.__)("Low contrast"),className:"block-editor-panel-color-gradient-settings__contrast-warning","aria-expanded":y,onClick:v})]})},renderContent:()=>(0,vo.jsx)(AKe,{tabs:i,colorGradientControlSettings:s,contrastWarning:l})})})}var A0e=c(U(),1),hD=c(F(),1),Qn=c(G(),1),L0e=c(nv(),1);function Po(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 L_=c(E(),1);function gD(e){let t=M0e(e),o=D0e(e),r=V0e(e),n=N0e(e);return t||o||r||n}function $W(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 N0e(e){let t=Du(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function D0e(e){let t=Du(e),o=ZE(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function V0e(e){let t=Du(e),o=ZE(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function KW(e){let t=Du(e),o=ZE(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function YW({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=xr(),a=()=>{let l=e(o);t(l)};return(0,L_.jsx)(A0e.__experimentalToolsPanel,{label:i||(0,Qn.__)("Elements"),resetAll:a,panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,L_.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:n})})}var NKe={link:!0,heading:!0,button:!0,caption:!0};function bD({as:e=YW,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=NKe,label:a,children:l,contrastWarning:u,showInheritanceLabelIndicators:d=gn()}){let{colors:f,gradients:p,areCustomSolidsEnabled:h,areCustomGradientsEnabled:m,hasSolidColors:g,hasGradientColors:b,allColors:v,decodeValue:y,encodeGradientValue:k}=I_(n),S=L=>(0,L0e.getCSSValueFromRawStyle)(y(L)),_=M0e(n),x=S(r?.elements?.link?.color?.text),w=y(t?.elements?.link?.color?.text),T=(L,z)=>{o(De(t,["elements","link","color","text"],_f(v,L,z)))},B=S(r?.elements?.link?.[":hover"]?.color?.text),R=y(t?.elements?.link?.[":hover"]?.color?.text),I=(L,z)=>{o(De(t,["elements","link",":hover","color","text"],_f(v,L,z)))},A=()=>!!w||!!R,P=()=>{let L=De(t,["elements","link",":hover","color","text"],void 0);L=De(L,["elements","link","color","text"],void 0),o(L)},O=N0e(n),N=V0e(n),j=D0e(n),D=(0,hD.useMemo)(()=>[{name:"caption",label:(0,Qn.__)("Captions"),showPanel:O},{name:"button",label:(0,Qn.__)("Button"),showPanel:N},{name:"heading",label:(0,Qn.__)("Heading"),showPanel:j},{name:"h1",label:(0,Qn.__)("H1"),showPanel:j},{name:"h2",label:(0,Qn.__)("H2"),showPanel:j},{name:"h3",label:(0,Qn.__)("H3"),showPanel:j},{name:"h4",label:(0,Qn.__)("H4"),showPanel:j},{name:"h5",label:(0,Qn.__)("H5"),showPanel:j},{name:"h6",label:(0,Qn.__)("H6"),showPanel:j}],[O,N,j]),M=(0,hD.useCallback)(L=>({...L,elements:{...L?.elements,link:{...L?.elements?.link,color:void 0,":hover":{color:void 0}},...D.reduce((z,q)=>({...z,[q.name]:{...L?.elements?.[q.name],color:void 0}}),{})}}),[D]),V=[_&&{key:"link",label:(0,Qn.__)("Link"),hasValue:A,resetValue:P,isShownByDefault:s.link,indicators:[w??x,R??B],isPlaceholder:w===void 0&&R===void 0&&(x!==void 0||B!==void 0),hasInheritedValue:x!==void 0||B!==void 0,contrastWarning:u,tabs:[{key:"link",label:(0,Qn.__)("Default"),inheritedValue:x,inheritedSlug:Po(r?.elements?.link?.color?.text,"color"),userSlug:Po(t?.elements?.link?.color?.text,"color"),setValue:T,userValue:w,isPlaceholder:w===void 0&&x!==void 0},{key:"hover",label:(0,Qn.__)("Hover"),inheritedValue:B,inheritedSlug:Po(r?.elements?.link?.[":hover"]?.color?.text,"color"),userSlug:Po(t?.elements?.link?.[":hover"]?.color?.text,"color"),setValue:I,userValue:R,isPlaceholder:R===void 0&&B!==void 0}]}].filter(Boolean);return D.forEach(({name:L,label:z,showPanel:q})=>{if(!q)return;let J=S(r?.elements?.[L]?.color?.background),te=S(r?.elements?.[L]?.color?.gradient),ee=S(r?.elements?.[L]?.color?.text),W=y(t?.elements?.[L]?.color?.background),$=y(t?.elements?.[L]?.color?.gradient),Y=y(t?.elements?.[L]?.color?.text),Z=()=>!!(Y||W||$),oe=()=>{let ke=De(t,["elements",L,"color","background"],void 0);ke.elements[L].color.gradient=void 0,ke.elements[L].color.text=void 0,o(ke)},ne=(ke,_e)=>{o(De(t,["elements",L,"color","text"],_f(v,ke,_e)))},X=(ke,_e)=>{let we=De(t,["elements",L,"color","background"],_f(v,ke,_e));we.elements[L].color.gradient=void 0,o(we)},re=(ke,_e)=>{let we=De(t,["elements",L,"color","gradient"],k(ke,_e));we.elements[L].color.background=void 0,o(we)},ae=L!=="caption",ve=Y===void 0&&ee!==void 0,xe=W===void 0&&J!==void 0,ge=$===void 0&&te!==void 0,be=Y===void 0&&W===void 0&&$===void 0&&(ee!==void 0||J!==void 0||te!==void 0),he=ee!==void 0||J!==void 0||te!==void 0;V.push({key:L,label:z,hasValue:Z,resetValue:oe,isShownByDefault:s[L],indicators:ae?[Y??ee,$??te??W??J]:[Y??ee],isPlaceholder:be,hasInheritedValue:he,tabs:[g&&{key:"text",label:(0,Qn.__)("Text"),inheritedValue:ee,inheritedSlug:Po(r?.elements?.[L]?.color?.text,"color"),userSlug:Po(t?.elements?.[L]?.color?.text,"color"),setValue:ne,userValue:Y,isPlaceholder:ve},g&&ae&&{key:"background",label:(0,Qn.__)("Background"),inheritedValue:J,inheritedSlug:Po(r?.elements?.[L]?.color?.background,"color"),userSlug:Po(t?.elements?.[L]?.color?.background,"color"),setValue:X,userValue:W,isPlaceholder:xe},b&&ae&&{key:"gradient",label:(0,Qn.__)("Gradient"),inheritedValue:te,inheritedSlug:Po(r?.elements?.[L]?.color?.gradient,"gradient"),userSlug:Po(t?.elements?.[L]?.color?.gradient,"gradient"),setValue:re,userValue:$,isGradient:!0,isPlaceholder:ge}].filter(Boolean)})}),(0,L_.jsxs)(e,{resetAllFilter:M,value:t,onChange:o,panelId:i,label:a,children:[V.map(L=>{let{key:z,...q}=L;return(0,L_.jsx)(ch,{...q,showInheritanceLabelIndicators:d,colorGradientControlSettings:{colors:f,disableCustomColors:!h,gradients:p,disableCustomGradients:!m},panelId:i},z)}),l]})}function z0e(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 F0e(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 j0e(e,t,o){let r=t,n=o,{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:a}=e_(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===F0e(s,o))?.style?.fontStyle),u||(n=o?F0e(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 yD(e){let t=U0e(e),o=G0e(e),r=W0e(e),n=$0e(e),i=Y0e(e),s=K0e(e),a=q0e(e),l=Q0e(e),u=Z0e(e),d=X0e(e),f=H0e(e),p=$W(e);return t||o||r||n||i||s||f||a||l||u||d||p}function H0e(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 U0e(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function G0e(e){return e?.typography?.lineHeight}function W0e(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function jKe(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,Cr.__)("Appearance"):(0,Cr.__)("Font style"):(0,Cr.__)("Font weight")}function $0e(e){return e?.typography?.letterSpacing}function K0e(e){return e?.typography?.textTransform}function Y0e(e){return e?.typography?.textAlign}function q0e(e){return e?.typography?.textDecoration}function Z0e(e){return e?.typography?.writingMode}function X0e(e){return e?.typography?.textColumns}function Q0e(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 ZW({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=xr(),s=()=>{let a=e(o);t(a)};return(0,to.jsx)(bl.__experimentalToolsPanel,{label:(0,Cr.__)("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 Ye(e){return!GKe.includes(e)}function qW(e){if(!Ye(e))return;let[t]=(0,bl.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function vD({as:e=ZW,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=UKe,isGlobalStyles:a=!1,showInheritanceLabelIndicators:l=gn(),contrastWarning:u}){let{colors:d,allColors:f,areCustomSolidsEnabled:p,decodeValue:h}=I_(n),m=(Ne,ln,Fc)=>gl(l&&Ne,l&&ln,Fc),g=$W(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=De(t,["color","text"],Fc);(gn()?zKe(t,r):r?.color?.text===r?.elements?.link?.color?.text)&&(Al=De(Al,["elements","link","color","text"],Fc)),o(Al)},S=()=>k(void 0),_=U0e(n),x=h(r?.typography?.fontFamily),w=h(t?.typography?.fontFamily)??x,T=!Ye(t?.typography?.fontFamily)&&Ye(x),{fontFamilies:B,fontFamilyFaces:R}=(0,fy.useMemo)(()=>z0e(n,w),[n,w]),I=Ne=>{let ln=B?.find(({fontFamily:Ll})=>Ll===Ne)?.slug,Fc=ln?`var:preset|font-family|${ln}`:Ne,Al=De(t,["typography","fontFamily"],Ye(Fc)?Fc:void 0),gF=B?.find(({fontFamily:Ll})=>Ll===Ne)?.fontFace??[],{fontStyles:NIe,fontWeights:DIe}=e_(gF),VIe=NIe?.some(({value:Ll})=>Ll===xe),FIe=DIe?.some(({value:Ll})=>Ll?.toString()===ge?.toString());if(!VIe||!FIe){let{nearestFontStyle:Ll,nearestFontWeight:bF}=j0e(gF,xe,ge);Ll||bF?Al={...Al,typography:{...Al?.typography,fontStyle:Ye(Ll)?Ll:void 0,fontWeight:Ye(bF)?bF:void 0}}:(xe||ge)&&(Al={...Al,typography:{...Al?.typography,fontStyle:void 0,fontWeight:void 0}})}o(Al)},A=()=>Ye(t?.typography?.fontFamily),P=()=>I(void 0),O=H0e(n),N=!n?.typography?.customFontSize,j=HKe(n),D=t?.typography?.fontSize,M=r?.typography?.fontSize,V=D??M,L=h(V),z=h(M),q=!Ye(D)&&Ye(M),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(V),ee=J(M),W=(Ne,ln)=>{let Fc=ln?.slug?`var:preset|font-size|${ln?.slug}`:Ne;o(De(t,["typography","fontSize"],Ye(Fc)?Fc:void 0))},$=(Ne,ln)=>{if(q&&Ne===void 0&&!ln){ee?W(void 0,{slug:ee}):W(z);return}W(Ne,ln)},Y=()=>Ye(t?.typography?.fontSize),Z=()=>W(void 0),oe=W0e(n),ne=jKe(n),X=n?.typography?.fontStyle,re=n?.typography?.fontWeight,ae=h(r?.typography?.fontStyle),ve=h(r?.typography?.fontWeight),xe=h(t?.typography?.fontStyle)??ae,ge=h(t?.typography?.fontWeight)??ve,be=!Ye(t?.typography?.fontStyle)&&!Ye(t?.typography?.fontWeight)&&(Ye(ae)||Ye(ve)),he=(0,fy.useCallback)(({fontStyle:Ne,fontWeight:ln})=>{(Ne!==xe||ln!==ge)&&o({...t,typography:{...t?.typography,fontStyle:Ye(Ne)?Ne:void 0,fontWeight:Ye(ln)?ln:void 0}})},[xe,ge,o,t]),ke=(0,fy.useCallback)(Ne=>{if(be&&Ne.fontStyle===xe&&Ne.fontWeight===ge){o({...t,typography:{...t?.typography,fontStyle:Ye(xe)?xe:void 0,fontWeight:Ye(ge)?ge:void 0}});return}he(Ne)},[be,xe,ge,o,t,he]),_e=()=>Ye(t?.typography?.fontStyle)||Ye(t?.typography?.fontWeight),we=(0,fy.useCallback)(()=>{he({})},[he]),Re=G0e(n),se=h(t?.typography?.lineHeight),ie=h(r?.typography?.lineHeight),Ae=!Ye(t?.typography?.lineHeight)&&Ye(ie),ye=Ne=>{o(De(t,["typography","lineHeight"],Ye(Ne)?Ne:void 0))},Ee=()=>Ye(t?.typography?.lineHeight),qe=()=>ye(void 0),pt=$0e(n),at=h(t?.typography?.letterSpacing),Ct=h(r?.typography?.letterSpacing),rt=!Ye(t?.typography?.letterSpacing)&&Ye(Ct),Ot=Ne=>{o(De(t,["typography","letterSpacing"],Ye(Ne)?Ne:void 0))},ut=()=>Ye(t?.typography?.letterSpacing),Ut=()=>Ot(void 0),So=Q0e(n),mo=h(t?.typography?.textIndent),de=h(r?.typography?.textIndent),Me=!Ye(t?.typography?.textIndent)&&Ye(de),ze=(n?.typography?.textIndent??"subsequent")==="all",Je=Ne=>{o(De(t,["typography","textIndent"],Ye(Ne)?Ne:void 0))},lt=Ne=>{o({...t,settings:{typography:{textIndent:Ne?"all":"subsequent"}}})},ct=()=>Ye(t?.typography?.textIndent),br=()=>{o(De(t,["typography","textIndent"],void 0))},Ao=ze?(0,Cr.__)("Indents the first line of all paragraphs."):(0,Cr.__)("Indents the first line of each paragraph after the first one."),or=X0e(n),ho=h(t?.typography?.textColumns),Go=h(r?.typography?.textColumns),Vn=!Ye(t?.typography?.textColumns)&&Ye(Go),yr=Ne=>{o(De(t,["typography","textColumns"],Ye(Ne)?Ne:void 0))},an=()=>Ye(t?.typography?.textColumns),it=()=>yr(void 0),_t=K0e(n),Vt=h(r?.typography?.textTransform),ko=h(t?.typography?.textTransform)??Vt,Wo=!Ye(t?.typography?.textTransform)&&Ye(Vt),rr=Ne=>{o(De(t,["typography","textTransform"],Ye(Ne)?Ne:void 0))},Sa=Ne=>{if(Wo&&Ne===void 0){rr(Vt);return}rr(Ne)},ka=()=>Ye(t?.typography?.textTransform),Ol=()=>rr(void 0),Be=q0e(n),Ft=h(r?.typography?.textDecoration),nt=h(t?.typography?.textDecoration)??Ft,zt=!Ye(t?.typography?.textDecoration)&&Ye(Ft),Ir=Ne=>{o(De(t,["typography","textDecoration"],Ye(Ne)?Ne:void 0))},$o=Ne=>{if(zt&&Ne===void 0){Ir(Ft);return}Ir(Ne)},Sn=()=>Ye(t?.typography?.textDecoration),Wh=()=>Ir(void 0),pF=Z0e(n),Vy=h(r?.typography?.writingMode),q1=h(t?.typography?.writingMode)??Vy,Z1=!Ye(t?.typography?.writingMode)&&Ye(Vy),Ex=Ne=>{o(De(t,["typography","writingMode"],Ye(Ne)?Ne:void 0))},mF=Ne=>{if(Z1&&Ne===void 0){Ex(Vy);return}Ex(Ne)},$h=()=>Ye(t?.typography?.writingMode),$e=()=>Ex(void 0),ri=Y0e(n),od=h(r?.typography?.textAlign),wY=h(t?.typography?.textAlign)??od,CY=!Ye(t?.typography?.textAlign)&&Ye(od),hF=Ne=>{o(De(t,["typography","textAlign"],Ye(Ne)?Ne:void 0))},AIe=Ne=>{if(CY&&Ne===void 0){hF(od);return}hF(Ne)},EY=()=>Ye(t?.typography?.textAlign),LIe=()=>hF(void 0),MIe=(0,fy.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)(ch,{label:(0,Cr.__)("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,Cr.__)("Color"),inheritedValue:b,inheritedSlug:Po(r?.color?.text,"color"),userSlug:Po(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,A()&&x!==void 0),label:(0,Cr.__)("Font"),hasValue:A,onDeselect:P,isShownByDefault:s.fontFamily,panelId:i,children:(0,to.jsx)(GM,{fontFamilies:B,value:w,onChange:I})}),O&&(0,to.jsx)(Lt,{...m(q,Y()&&M!==void 0),label:(0,Cr.__)("Size"),hasValue:Y,hasInlineEndToggle:!0,onDeselect:Z,isShownByDefault:s.fontSize,panelId:i,children:(0,to.jsx)(bl.FontSizePicker,{value:te||L,valueMode:te?"slug":"literal",onChange:$,fontSizes:j,disableCustomFontSizes:N,withReset:!1,withSlider:!0})}),oe&&(0,to.jsx)(Lt,{...m(be,_e()&&(ae!==void 0||ve!==void 0)),label:ne,hasValue:_e,onDeselect:we,isShownByDefault:s.fontAppearance,panelId:i,children:(0,to.jsx)(UM,{value:{fontStyle:xe,fontWeight:ge},onChange:ke,hasFontStyles:X,hasFontWeights:re,fontFamilyFaces:R})}),Re&&(0,to.jsx)(Lt,{...m(Ae,Ee()&&ie!==void 0,"single-column"),label:(0,Cr.__)("Line height"),hasValue:Ee,onDeselect:qe,isShownByDefault:s.lineHeight,panelId:i,children:(0,to.jsx)(PN,{__unstableInputWidth:"auto",value:se??ie,onChange:ye,...Ae?{placeholder:qW(ie)}:{}})}),pt&&(0,to.jsx)(Lt,{...m(rt,ut()&&Ct!==void 0,"single-column"),label:(0,Cr.__)("Letter spacing"),hasValue:ut,onDeselect:Ut,isShownByDefault:s.letterSpacing,panelId:i,children:(0,to.jsx)($M,{value:at??Ct,onChange:Ot,__unstableInputWidth:"auto",placeholder:rt?qW(Ct):void 0})}),So&&(0,to.jsxs)(Lt,{...m(Me,ct()&&de!==void 0),label:(0,Cr.__)("Line indent"),hasValue:ct,onDeselect:br,isShownByDefault:s.textIndent,panelId:i,children:[(0,to.jsx)(B0e,{value:mo??de,onChange:Je,__unstableInputWidth:"auto",withSlider:!0,hasBottomMargin:a,placeholder:Me?qW(de):void 0}),a&&(0,to.jsx)(bl.ToggleControl,{label:(0,Cr.__)("Indent all paragraphs"),checked:ze,onChange:lt,help:Ao})]}),or&&(0,to.jsx)(Lt,{...m(Vn,an()&&Go!==void 0,"single-column"),label:(0,Cr.__)("Columns"),hasValue:an,onDeselect:it,isShownByDefault:s.textColumns,panelId:i,children:(0,to.jsx)(bl.__experimentalNumberControl,{label:(0,Cr.__)("Columns"),max:FKe,min:VKe,onChange:yr,placeholder:Vn?Go:void 0,spinControls:"custom",value:ho,initialPosition:1})}),Be&&(0,to.jsx)(Lt,{...m(zt,Sn()&&Ft!==void 0,"single-column"),label:(0,Cr.__)("Decoration"),hasValue:Sn,onDeselect:Wh,isShownByDefault:s.textDecoration,panelId:i,children:(0,to.jsx)(YM,{value:nt,onChange:$o,size:"__unstable-large",__unstableInputWidth:"auto"})}),pF&&(0,to.jsx)(Lt,{...m(Z1,$h()&&Vy!==void 0,"single-column"),label:(0,Cr.__)("Orientation"),hasValue:$h,onDeselect:$e,isShownByDefault:s.writingMode,panelId:i,children:(0,to.jsx)(QM,{value:q1,onChange:mF,size:"__unstable-large"})}),_t&&(0,to.jsx)(Lt,{...m(Wo,ka()&&Vt!==void 0),label:(0,Cr.__)("Letter case"),hasValue:ka,onDeselect:Ol,isShownByDefault:s.textTransform,panelId:i,children:(0,to.jsx)(ZM,{value:ko,onChange:Sa,showNone:!0,isBlock:!0,size:"__unstable-large"})}),ri&&(0,to.jsxs)(Lt,{...m(CY,EY()&&od!==void 0),label:(0,Cr.__)("Text alignment"),hasValue:EY,onDeselect:LIe,isShownByDefault:s.textAlign,panelId:i,children:[(0,to.jsx)(pD,{value:wY,onChange:AIe,options:["left","center","right","justify"],size:"__unstable-large"}),wY==="justify"&&(0,to.jsx)("div",{children:(0,to.jsx)(bl.Notice,{status:"warning",isDismissible:!1,children:(0,Cr.__)("Justified text can reduce readability. For better accessibility, use left-aligned text instead.")})})]})]})}var jo=c(G(),1),ei=c(U(),1);var wD=c(F(),1);var oo=c(U(),1),fr=c(G(),1),eCe=c(F(),1),SD=c(Q(),1);var J0e=c(Q(),1);function py(e,t){let{getBlockOrder:o,getBlockAttributes:r}=(0,J0e.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 Xo=c(E(),1),Jn={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},WKe=[Jn.max,Jn.fixed];function XW(e){return WKe.includes(e)}function $Ke(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,fr._x)("Max","Block with maximum width in flex layout"):(0,fr._x)("Max","Block with maximum height in flex layout")}function KKe(e,t){let{orientation:o="horizontal"}=t??{};return e===Jn.grow?(0,fr.__)("Stretch to fill available space."):e===Jn.max&&o==="horizontal"?(0,fr.__)("Specify a maximum width."):e===Jn.max?(0,fr.__)("Specify a maximum height."):e===Jn.fixed&&o==="horizontal"?(0,fr.__)("Specify a fixed width."):e===Jn.fixed?(0,fr.__)("Specify a fixed height."):(0,fr.__)("Fit contents.")}function tCe({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,Xo.jsx)(YKe,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}):l==="grid"?(0,Xo.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||Jn.fit,u=XW(l),d=()=>!!i,f=a==="horizontal"?(0,fr.__)("Width"):(0,fr.__)("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,eCe.useEffect)(()=>{XW(i)&&!s&&t({...e,selfStretch:Jn.fit})},[]),(0,Xo.jsxs)(oo.__experimentalVStack,{as:oo.__experimentalToolsPanelItem,spacing:2,hasValue:d,label:f,onDeselect:m,isShownByDefault:r,panelId:n,children:[(0,Xo.jsxs)(oo.__experimentalToggleGroupControl,{label:qKe(o),value:l,help:KKe(l,o),onChange:g=>{let b=XW(g)?s:null;t({selfStretch:g,flexSize:b})},isBlock:!0,children:[(0,Xo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Jn.fit,label:(0,fr._x)("Fit","Intrinsic block width in flex layout")},Jn.fit),(0,Xo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Jn.grow,label:(0,fr._x)("Grow","Block with expanding width in flex layout")},Jn.grow),(0,Xo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Jn.max,label:$Ke(o)},Jn.max),(0,Xo.jsx)(oo.__experimentalToggleGroupControlOption,{value:Jn.fixed,label:(0,fr._x)("Fixed","Block with fixed width in flex layout")},Jn.fixed)]}),u&&(0,Xo.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,fr.__)("Width"):(0,fr.__)("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,SD.useSelect)(T=>T(C).getBlockRootClientId(n)),{moveBlocksToPosition:h,__unstableMarkNextChangeAsNotPersistent:m}=(0,SD.useDispatch)(C),g=py(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,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)(oo.Flex,{as:oo.__experimentalToolsPanelItem,hasValue:v,label:(0,fr.__)("Grid span"),onDeselect:k,isShownByDefault:r,panelId:n,children:[(0,Xo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Xo.jsx)(oo.__experimentalInputControl,{label:(0,fr.__)("Column span"),type:"number",onChange:T=>{let B=T===""?1:parseInt(T,10),R=S?Math.min(B,S):B;t({columnStart:s,rowStart:a,rowSpan:u,columnSpan:R})},value:x,min:1,max:S})}),(0,Xo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Xo.jsx)(oo.__experimentalInputControl,{label:(0,fr.__)("Row span"),type:"number",onChange:T=>{let B=T===""?1:parseInt(T,10),R=_?Math.min(B,_):B;t({columnStart:s,rowStart:a,columnSpan:l,rowSpan:R})},value:w,min:1,max:_})})]}),window.__experimentalEnableGridInteractivity&&(0,Xo.jsxs)(oo.Flex,{as:oo.__experimentalToolsPanelItem,hasValue:b,label:(0,fr.__)("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:n,children:[(0,Xo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Xo.jsx)(oo.__experimentalInputControl,{label:(0,fr.__)("Column"),type:"number",onChange:T=>{let B=T===""?1:parseInt(T,10);t({columnStart:B,rowStart:a,columnSpan:l,rowSpan:u}),m(),h([n],p,p,g(B,a))},value:s??1,min:1,max:d?d-(l??1)+1:void 0})}),(0,Xo.jsx)(oo.FlexItem,{style:{width:"50%"},children:(0,Xo.jsx)(oo.__experimentalInputControl,{label:(0,fr.__)("Row"),type:"number",onChange:T=>{let B=T===""?1:parseInt(T,10);t({columnStart:s,rowStart:B,columnSpan:l,rowSpan:u}),m(),h([n],p,p,g(s,B))},value:a??1,min:1,max:f?f-(u??1)+1:void 0})})]})]})}var oCe=c(U(),1),M_=c(G(),1);var QW=c(E(),1);function kD({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,M_._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...h?g:[],...m||[],{label:(0,M_._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,QW.jsx)(Lt,{className:a,isInherited:l,hasLocalOverride:u,hasValue:i||(()=>d!==n),label:(0,M_.__)("Aspect ratio"),onDeselect:()=>o(void 0),isShownByDefault:s,panelId:e,children:(0,QW.jsx)(oCe.SelectControl,{label:(0,M_.__)("Aspect ratio"),value:d,options:r??b,onChange:o})})}var Dt=c(E(),1),JW=["horizontal","vertical"];function rCe(e,t){return e?.length===1?!1:t?!(e?.includes("horizontal")&&e?.includes("vertical")&&e?.length===2):!0}function CD(e,t=Js){return aCe(e)||lCe(e)||cCe(e)||uCe(e)||dCe(e)||fCe(e)||pCe(e)||mCe(e)||hCe(e)||gCe(e,t)||bCe(e,t)}function aCe(e){return e?.layout?.contentSize}function lCe(e){return e?.layout?.wideSize}function cCe(e){return e?.spacing?.padding}function uCe(e){return e?.spacing?.margin}function dCe(e){return e?.spacing?.blockGap}function fCe(e){return e?.dimensions?.height}function pCe(e){return e?.dimensions?.minHeight}function mCe(e){return e?.dimensions?.minWidth}function hCe(e){return e?.dimensions?.width}function gCe(e,t=Js){return!ea(t)&&e?.dimensions?.aspectRatio}function bCe(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 nCe(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 _D(e){if(!dt(e))return;let[t]=(0,ei.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function xD(e){return dt(e)&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function iCe(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 sCe(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=xr(),s=()=>{let a=e(o);t(a)};return(0,Dt.jsx)(ei.__experimentalToolsPanel,{label:(0,jo.__)("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 ED({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=gn()}){let{dimensions:f,spacing:p}=n,h=$e=>$e&&typeof $e=="object"?Object.keys($e).reduce((ri,od)=>(ri[od]=Ea({settings:{dimensions:f,spacing:p}},"",$e[od]),ri),{}):Ea({settings:{dimensions:f,spacing:p}},"",$e),m=($e,ri,od)=>gl(d&&$e,d&&ri,od),g=XKe(n),b=(0,ei.__experimentalUseCustomUnits)({availableUnits:n?.spacing?.units||["%","px","em","rem","vw"]}),v=-1/0,[y,k]=(0,wD.useState)(v),S=(0,wD.useCallback)($e=>({...$e,layout:Ge({...$e?.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:{...$e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...$e?.dimensions,height:void 0,minHeight:void 0,minWidth:void 0,aspectRatio:void 0,width:void 0}}),[]),_=aCe(n)&&l,x=h(t?.layout?.contentSize),w=h(r?.layout?.contentSize),T=!dt(t?.layout?.contentSize)&&dt(w),B=$e=>{o(De(t,["layout","contentSize"],dt($e)?$e:void 0))},R=()=>dt(t?.layout?.contentSize),I=()=>B(void 0),A=lCe(n)&&l,P=h(t?.layout?.wideSize),O=h(r?.layout?.wideSize),N=!dt(t?.layout?.wideSize)&&dt(O),j=$e=>{o(De(t,["layout","wideSize"],dt($e)?$e:void 0))},D=()=>dt(t?.layout?.wideSize),M=()=>j(void 0),V=cCe(n),L=xD(h(r?.spacing?.padding)),z=xD(h(t?.spacing?.padding)),q=dt(t?.spacing?.padding)?z:L,J=iCe(L),te=!dt(t?.spacing?.padding)&&J!==void 0,ee=sCe(L),W=!dt(t?.spacing?.padding)&&ee,$=Array.isArray(n?.spacing?.padding)?n?.spacing?.padding:n?.spacing?.padding?.sides,Y=$&&$.some($e=>JW.includes($e)),Z=$e=>{let ri=nCe($e,$);o(De(t,["spacing","padding"],ri))},oe=()=>dt(t?.spacing?.padding)&&Object.keys(t?.spacing?.padding).length,ne=()=>Z(void 0),X=()=>a("padding"),re=uCe(n),ae=xD(h(r?.spacing?.margin)),ve=xD(h(t?.spacing?.margin)),xe=dt(t?.spacing?.margin)?ve:ae,ge=iCe(ae),be=!dt(t?.spacing?.margin)&&ge!==void 0,he=sCe(ae),ke=!dt(t?.spacing?.margin)&&he,_e=Array.isArray(n?.spacing?.margin)?n?.spacing?.margin:n?.spacing?.margin?.sides,we=_e&&_e.some($e=>JW.includes($e)),Re=$e=>{let ri=nCe($e,_e);o(De(t,["spacing","margin"],ri))},se=()=>dt(t?.spacing?.margin)&&Object.keys(t?.spacing?.margin).length,ie=()=>Re(void 0),Ae=()=>a("margin"),ye=dCe(n),Ee=Array.isArray(n?.spacing?.blockGap)?n?.spacing?.blockGap:n?.spacing?.blockGap?.sides,qe=Ee&&Ee.some($e=>JW.includes($e)),pt=h(t?.spacing?.blockGap),at=h(r?.spacing?.blockGap),Ct=dt(t?.spacing?.blockGap)?pt:at,rt=JKe(Ct,qe),Ot=!dt(t?.spacing?.blockGap)&&typeof at=="string"&&at!=="",ut=$e=>{o(De(t,["spacing","blockGap"],$e))},Ut=$e=>{dt($e)||ut(null),!qe&&$e?.hasOwnProperty("top")?ut($e.top):ut({top:$e?.top,left:$e?.left})},So=()=>ut(void 0),mo=()=>dt(t?.spacing?.blockGap),de=pCe(n),Me=h(t?.dimensions?.minHeight),Ze=h(r?.dimensions?.minHeight),ze=!dt(t?.dimensions?.minHeight)&&dt(Ze),Je=$e=>{let ri=De(t,["dimensions","minHeight"],$e);o(De(ri,["dimensions","aspectRatio"],void 0))},lt=()=>{Je(void 0)},ct=()=>dt(t?.dimensions?.minHeight),br=fCe(n),Ao=h(t?.dimensions?.height),or=h(r?.dimensions?.height),ho=!dt(t?.dimensions?.height)&&dt(or),Go=$e=>{let ri=De(t,["dimensions","height"],$e);o(De(ri,["dimensions","aspectRatio"],void 0))},Vn=()=>{Go(void 0)},yr=()=>dt(t?.dimensions?.height),an=mCe(n),it=h(t?.dimensions?.minWidth),_t=h(r?.dimensions?.minWidth),Vt=!dt(t?.dimensions?.minWidth)&&dt(_t),ko=$e=>{o(De(t,["dimensions","minWidth"],$e))},Wo=()=>{ko(void 0)},rr=()=>dt(t?.dimensions?.minWidth),Sa=hCe(n),ka=h(t?.dimensions?.width),Ol=h(r?.dimensions?.width),Be=!dt(t?.dimensions?.width)&&dt(Ol),Ft=$e=>{o(De(t,["dimensions","width"],$e))},nt=()=>{Ft(void 0)},zt=()=>dt(t?.dimensions?.width),Ir=gCe(n,u),$o=h(t?.dimensions?.aspectRatio),Sn=h(r?.dimensions?.aspectRatio),Wh=$o??Sn,pF=!dt(t?.dimensions?.aspectRatio)&&dt(Sn),Vy=$e=>{let ri=De(t,["dimensions","aspectRatio"],$e);o(De(ri,["dimensions","minHeight"],void 0))},q1=()=>dt(t?.dimensions?.aspectRatio),Z1=bCe(n,u),Ex=t?.layout,mF=$e=>{o({...t,layout:{...t?.layout,...$e}})},$h=()=>a(!1);return(0,Dt.jsxs)(e,{resetAllFilter:S,value:t,onChange:o,panelId:i,children:[(_||A)&&(0,Dt.jsx)("span",{className:"span-columns",children:(0,jo.__)("Set the width of the main content area.")}),_&&(0,Dt.jsx)(Lt,{...m(T,R()&&w!==void 0),label:(0,jo.__)("Content width"),hasValue:R,onDeselect:I,isShownByDefault:s.contentSize??yl.contentSize,panelId:i,children:(0,Dt.jsx)(ei.__experimentalUnitControl,{label:(0,jo.__)("Content width"),labelPosition:"top",value:x??w,placeholder:T?_D(w):void 0,onChange:$e=>{B($e)},units:b,prefix:(0,Dt.jsx)(ei.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Dt.jsx)(gt,{icon:Jh})})})}),A&&(0,Dt.jsx)(Lt,{...m(N,D()&&O!==void 0),label:(0,jo.__)("Wide width"),hasValue:D,onDeselect:M,isShownByDefault:s.wideSize??yl.wideSize,panelId:i,children:(0,Dt.jsx)(ei.__experimentalUnitControl,{label:(0,jo.__)("Wide width"),labelPosition:"top",value:P??O,placeholder:N?_D(O):void 0,onChange:$e=>{j($e)},units:b,prefix:(0,Dt.jsx)(ei.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Dt.jsx)(gt,{icon:fg})})})}),V&&(0,Dt.jsxs)(Lt,{hasValue:oe,label:(0,jo.__)("Padding"),hasInlineEndToggle:rCe($,g),onDeselect:ne,isShownByDefault:s.padding??yl.padding,...m(W,oe()&&ee,{"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,Dt.jsx)(ei.BoxControl,{values:z,onChange:Z,label:(0,jo.__)("Padding"),sides:$,units:b,allowReset:!1,splitOnAxis:Y,inputProps:{onMouseOver:X,onMouseOut:$h,placeholder:te?J:void 0}}),g&&(0,Dt.jsx)(R_,{values:q,onChange:Z,label:(0,jo.__)("Padding"),sides:$,units:b,allowReset:!1,onMouseOver:X,onMouseOut:$h})]}),re&&(0,Dt.jsxs)(Lt,{hasValue:se,label:(0,jo.__)("Margin"),hasInlineEndToggle:rCe(_e,g),onDeselect:ie,isShownByDefault:s.margin??yl.margin,...m(ke,se()&&he,{"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,Dt.jsx)(ei.BoxControl,{values:ve,onChange:Re,inputProps:{min:y,onDragStart:()=>{k(0)},onDragEnd:()=>{k(v)},onMouseOver:Ae,onMouseOut:$h,placeholder:be?ge:void 0},label:(0,jo.__)("Margin"),sides:_e,units:b,allowReset:!1,splitOnAxis:we}),g&&(0,Dt.jsx)(R_,{values:xe,onChange:Re,minimumCustomValue:-1/0,label:(0,jo.__)("Margin"),sides:_e,units:b,allowReset:!1,onMouseOver:Ae,onMouseOut:$h})]}),ye&&(0,Dt.jsxs)(Lt,{hasValue:mo,label:(0,jo.__)("Block spacing"),hasInlineEndToggle:qe,onDeselect:So,isShownByDefault:s.blockGap??yl.blockGap,...m(Ot,mo()&&at!==void 0,{"tools-panel-item-spacing":g,"single-column":!g&&!qe}),panelId:i,children:[!g&&(qe?(0,Dt.jsx)(ei.BoxControl,{label:(0,jo.__)("Block spacing"),min:0,onChange:Ut,units:b,sides:Ee,values:rt,allowReset:!1,splitOnAxis:qe}):(0,Dt.jsx)(ei.__experimentalUnitControl,{label:(0,jo.__)("Block spacing"),min:0,onChange:ut,units:b,value:pt??void 0,placeholder:Ot?at:void 0})),g&&(0,Dt.jsx)(R_,{label:(0,jo.__)("Block spacing"),min:0,onChange:Ut,showSideInLabel:!1,sides:qe?Ee:["top"],values:rt,allowReset:!1})]}),Z1&&(0,Dt.jsx)(tCe,{value:Ex,onChange:mF,parentLayout:n?.parentLayout,panelId:i,showGridSpanDefaults:!Hi(u),isShownByDefault:s.childLayout??yl.childLayout}),de&&(0,Dt.jsx)(Lt,{...m(ze,ct()&&Ze!==void 0),hasValue:ct,label:(0,jo.__)("Minimum height"),onDeselect:lt,isShownByDefault:s.minHeight??yl.minHeight,panelId:i,children:(0,Dt.jsx)(qb,{label:(0,jo.__)("Minimum height"),value:Me??Ze,onChange:Je,placeholder:ze?_D(Ze):void 0,dimensionSizes:f?.dimensionSizes})}),an&&(0,Dt.jsx)(Lt,{...m(Vt,rr()&&_t!==void 0),hasValue:rr,label:(0,jo.__)("Minimum width"),onDeselect:Wo,isShownByDefault:s.minWidth??yl.minWidth,panelId:i,children:(0,Dt.jsx)(qb,{label:(0,jo.__)("Minimum width"),value:it??_t,onChange:ko,placeholder:Vt?_D(_t):void 0,dimensionSizes:f?.dimensionSizes})}),br&&(0,Dt.jsx)(Lt,{...m(ho,yr()&&or!==void 0),hasValue:yr,label:(0,jo.__)("Height"),onDeselect:Vn,isShownByDefault:s.height??yl.height,panelId:i,children:(0,Dt.jsx)(qb,{label:(0,jo.__)("Height"),value:Ao,onChange:Go,placeholder:ho?or:void 0,dimensionSizes:f?.dimensionSizes})}),Sa&&(0,Dt.jsx)(Lt,{...m(Be,zt()&&Ol!==void 0),hasValue:zt,label:(0,jo.__)("Width"),onDeselect:nt,isShownByDefault:s.width??yl.width,panelId:i,children:(0,Dt.jsx)(qb,{label:(0,jo.__)("Width"),value:ka,onChange:Ft,placeholder:Be?Ol:void 0,dimensionSizes:f?.dimensionSizes})}),Ir&&(0,Dt.jsx)(kD,{hasValue:q1,value:Wh,onChange:Vy,panelId:i,...m(pF,q1()&&Sn!==void 0),isShownByDefault:s.aspectRatio??yl.aspectRatio})]})}var vi=c(U(),1),Vu=c(F(),1),N_=c(G(),1);var my=c(G(),1),bn=c(U(),1),RD=c(F(),1);var fo=c(E(),1),TD=[];function tYe({shadow:e,onShadowChange:t,settings:o}){let r=e$(o);return(0,fo.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,fo.jsxs)(bn.__experimentalVStack,{spacing:4,children:[(0,fo.jsx)(bn.__experimentalHeading,{level:5,children:(0,my.__)("Drop shadow")}),(0,fo.jsx)(oYe,{presets:r,activeShadow:e,onSelect:t}),(0,fo.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,fo.jsx)(bn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,my.__)("Clear")})})]})})}function oYe({presets:e,activeShadow:t,onSelect:o}){return e?(0,fo.jsx)(bn.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,my.__)("Drop shadows"),children:e.map(({name:r,slug:n,shadow:i})=>(0,fo.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,fo.jsxs)(kt.Root,{children:[(0,fo.jsx)(kt.Trigger,{render:(0,fo.jsx)(bn.Composite.Item,{role:"option","aria-label":t,"aria-selected":o,className:K("block-editor-global-styles__shadow__item",{"is-active":o}),render:(0,fo.jsx)("button",{className:K("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:r,style:{boxShadow:n},"aria-label":t,children:o&&(0,fo.jsx)(gt,{icon:ns})})})}),(0,fo.jsx)(kt.Popup,{children:t})]})}function yCe({shadow:e,onShadowChange:t,settings:o,className:r,hasLocalValue:n=!!e,hasLocalOverride:i=!1,onReset:s}){return(0,fo.jsx)(bn.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:K("block-editor-global-styles__shadow-dropdown",r),renderToggle:nYe(e,t,{hasLocalValue:n,hasLocalOverride:i,onReset:s??(()=>t(void 0))}),renderContent:()=>(0,fo.jsx)(bn.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,fo.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,RD.useRef)(void 0),d={onClick:a,className:K("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":l}),"aria-expanded":l,ref:u},f=()=>{l&&a(),i(),u.current?.focus()};return(0,fo.jsxs)(fo.Fragment,{children:[(0,fo.jsx)(bn.Button,{__next40pxDefaultSize:!0,...d,children:(0,fo.jsxs)(bn.__experimentalHStack,{justify:"flex-start",children:[(0,fo.jsx)(gt,{className:"block-editor-global-styles__toggle-icon",icon:o6,size:24}),(0,fo.jsx)(bn.FlexItem,{children:(0,my.__)("Drop shadow")})]})}),r&&(n?(0,fo.jsx)(kf,{className:"block-editor-global-styles__shadow-editor__remove-button",onResetToInherited:f}):(0,fo.jsx)(bn.Button,{__next40pxDefaultSize:!0,size:"small",icon:dn,label:(0,my.__)("Remove"),className:"block-editor-global-styles__shadow-editor__remove-button",onClick:f}))]})}}function e$(e){return(0,RD.useMemo)(()=>{if(!e?.shadow)return TD;let t=e?.shadow?.defaultPresets,{default:o,theme:r,custom:n}=e?.shadow?.presets??{},i={name:(0,my.__)("Unset"),slug:"unset",shadow:"none"},s=[...t&&o||TD,...r||TD,...n||TD];return s.length&&s.unshift(i),s},[e])}var vl=c(E(),1);function BD(e){return Object.values(QE(e)).some(Boolean)}function QE(e){return{hasBorderColor:vCe(e),hasBorderRadius:SCe(e),hasBorderStyle:kCe(e),hasBorderWidth:_Ce(e),hasShadow:xCe(e)}}function vCe(e){return e?.border?.color}function SCe(e){return e?.border?.radius}function kCe(e){return e?.border?.style}function _Ce(e){return e?.border?.width}function xCe(e){let t=e$(e);return!!e?.shadow&&t.length>0}function iYe({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=xr();return(0,vl.jsx)(vi.__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 PD({as:e=iYe,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,name:s,defaultControls:a=sYe,showInheritanceLabelIndicators:l=gn()}){let u=Du(n),d=n?.color?.custom,f=(0,Vu.useCallback)(X=>Ea({settings:n},"",X),[n]),p=(X,re,ae)=>gl(l&&X,l&&re,ae),h=X=>{let ae=u.flatMap(({colors:ve})=>ve).find(({color:ve})=>ve===X);return ae?"var:preset|color|"+ae.slug:X},m=(0,Vu.useCallback)(X=>{if(X){if((0,vi.__experimentalHasSplitBorders)(X)){let re={...X};return["top","right","bottom","left"].forEach(ae=>{re[ae]={...re[ae],color:f(re[ae]?.color)}}),re}return{...X,color:X.color?f(X.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,vi.__experimentalIsDefinedBorder)(t?.border)&&!!b&&(0,vi.__experimentalIsDefinedBorder)(b),y=v?b:g,k=X=>o({...t,border:X}),S=vCe(n),_=kCe(n),x=_Ce(n),w=SCe(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]),B=(0,Vu.useMemo)(()=>{let X=r?.border?.radius;return typeof X!="object"?f(X):{topLeft:f(X?.topLeft),topRight:f(X?.topRight),bottomLeft:f(X?.bottomLeft),bottomRight:f(X?.bottomRight)}},[r?.border?.radius,f]),R=X=>k({...t?.border,radius:X}),I=()=>{let X=t?.border?.radius;return typeof X=="object"?Object.entries(X).some(([,re])=>!!re):!!X},A=!I()&&B!==void 0&&B!=="",P=(0,Vu.useMemo)(()=>{if(!A)return T;if(typeof B=="string")return B;let X=B;return X?{all:X.topLeft&&X.topLeft===X.topRight&&X.topLeft===X.bottomLeft&&X.topLeft===X.bottomRight?X.topLeft:void 0,...X}:T},[A,T,B]),O=xCe(n),N=f(t?.shadow),j=f(r?.shadow),D=N===void 0&&j!==void 0&&j!=="",M=D?j:N,V=n?.shadow?.presets??{},L=V.custom??V.theme??V.default??[],z=X=>{let re=L?.find(({shadow:ae})=>ae===X)?.slug;o(De(t,["shadow"],re?`var:preset|shadow|${re}`:X||void 0))},q=X=>{if(D&&X===void 0){z(j);return}z(X)},J=()=>!!t?.shadow,te=()=>z(void 0),ee=l&&J()&&j!==void 0,W=()=>{if(I())return k({radius:t?.border?.radius});k(void 0)},$=X=>{let re={...X};(0,vi.__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)(X=>({...X,border:void 0,shadow:void 0}),[]),Z=a?.color||a?.width,oe=S||_||x||w,ne=hy({blockName:s,hasShadowControl:O,hasBorderControl:oe});return(0,vl.jsxs)(e,{resetAllFilter:Y,value:t,onChange:o,panelId:i,label:ne,children:[(x||S)&&(0,vl.jsxs)(Lt,{...p(v,(0,vi.__experimentalIsDefinedBorder)(t?.border)&&!!b&&(0,vi.__experimentalIsDefinedBorder)(b)),hasValue:()=>(0,vi.__experimentalIsDefinedBorder)(t?.border),label:(0,N_.__)("Border"),onDeselect:()=>W(),isShownByDefault:Z,panelId:i,children:[(l||O)&&(0,vl.jsx)(vi.BaseControl.VisualLabel,{as:"legend",children:(0,N_.__)("Border")}),(0,vl.jsx)(vi.BorderBoxControl,{colors:u,disableCustomColors:!d,enableAlpha:!0,enableStyle:_,onChange:$,popoverOffset:40,popoverPlacement:"left-start",value:y,__experimentalIsRenderedInSidebar:!0})]}),w&&(0,vl.jsx)(Lt,{...p(A,I()&&B!==void 0),hasValue:I,label:(0,N_.__)("Radius"),hasInlineEndToggle:!0,onDeselect:()=>R(void 0),isShownByDefault:a.radius,panelId:i,children:(0,vl.jsx)(VM,{presets:n?.border?.radiusSizes,values:P,onChange:X=>{R(X||void 0)}})}),O&&(0,vl.jsxs)(Lt,{...p(D,J()&&j!==void 0),label:(0,N_.__)("Shadow"),hasValue:J,onDeselect:te,isShownByDefault:a.shadow,showLocalOverrideActionsInLabel:!1,panelId:i,children:[oe?(0,vl.jsx)(vi.BaseControl.VisualLabel,{as:"legend",children:(0,N_.__)("Shadow")}):null,(0,vl.jsx)(yCe,{shadow:M,onShadowChange:q,settings:n,hasLocalValue:J(),hasLocalOverride:ee,onReset:te})]})]})}var Ho=c(U(),1),xf=c(G(),1),D_=c(F(),1);var pr=c(E(),1),ID=[];function wCe(e,{presetSetting:t,defaultSetting:o}){let r=!e?.color?.[o],n=e?.color?.[t]?.custom||ID,i=e?.color?.[t]?.theme||ID,s=e?.color?.[t]?.default||ID;return(0,D_.useMemo)(()=>[...n,...i,...r?ID:s],[r,n,i,s])}function CCe(e){return ECe(e)}function ECe(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=xr(),s=()=>{let a=e(o);t(a)};return(0,pr.jsx)(Ho.__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,pr.jsxs)(Ho.__experimentalHStack,{justify:"flex-start",children:[(0,pr.jsx)(Ho.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,pr.jsx)(Ho.Flex,{expanded:!1,children:e==="unset"||!e?(0,pr.jsx)(Ho.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):(0,pr.jsx)(Ho.DuotoneSwatch,{values:e})})}),(0,pr.jsx)(Ho.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,D_.useRef)(void 0),u={onClick:r,className:K("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,pr.jsxs)(pr.Fragment,{children:[(0,pr.jsx)(Ho.Button,{__next40pxDefaultSize:!0,...u,children:(0,pr.jsx)(uYe,{indicator:e,label:(0,xf.__)("Duotone")})}),i&&(s?(0,pr.jsx)(kf,{className:"block-editor-panel-duotone-settings__reset",onResetToInherited:d}):(0,pr.jsx)(Ho.Button,{size:"small",icon:dn,label:(0,xf.__)("Reset"),className:"block-editor-panel-duotone-settings__reset",onClick:d}))]})};function OD({as:e=aYe,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=lYe,showInheritanceLabelIndicators:a=gn()}){let l=w=>Ea({settings:n},"",w),u=(w,T,B)=>gl(a&&w,a&&T,B),d=ECe(n),f=wCe(n,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),p=wCe(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:R})=>R===w),B=T?`var:preset|duotone|${T.slug}`:w;o(De(t,["filter","duotone"],B))},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,D_.useCallback)(w=>({...w,filter:{...w.filter,duotone:void 0}}),[]);return(0,pr.jsx)(e,{resetAllFilter:x,value:t,onChange:o,panelId:i,children:d&&(0,pr.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,pr.jsx)(Ho.Dropdown,{popoverProps:cYe,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:dYe(g,{hasLocalValue:k(),hasLocalOverride:_,onReset:S}),renderContent:()=>(0,pr.jsx)(Ho.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,pr.jsxs)(Ho.MenuGroup,{label:(0,xf.__)("Duotone"),children:[(0,pr.jsx)("p",{children:(0,xf.__)("Create a two-tone color effect without losing your original image.")}),(0,pr.jsx)(Ho.DuotonePicker,{colorPalette:p,duotonePalette:f,disableCustomColors:!0,disableCustomDuotone:!0,value:g,onChange:y})]})})})})})}var V_=c(U(),1),JE=c(G(),1);var gy=c(E(),1);function TCe(e,t,o){return e==="core/image"&&o?.lightbox?.allowEditing||!!t?.lightbox}function RCe({onChange:e,value:t,inheritedValue:o,panelId:r}){let n=xr(),i=()=>{e(void 0)},s=l=>{e({enabled:l})},a=!1;return o?.lightbox?.enabled&&(a=o.lightbox.enabled),(0,gy.jsx)(gy.Fragment,{children:(0,gy.jsx)(V_.__experimentalToolsPanel,{label:(0,JE._x)("Settings","Image settings"),resetAll:i,panelId:r,dropdownMenuProps:n,children:(0,gy.jsx)(V_.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,JE.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:r,children:(0,gy.jsx)(V_.ToggleControl,{label:(0,JE.__)("Enlarge on click"),checked:a,onChange:s})})})})}var AD=c(U(),1);var PCe=c(F(),1),LD=c(G(),1);var e1=c(E(),1);function t$(e){return!(typeof e=="string"&&/<\/?\w/.test(e))}function ICe(e){return t$(e)?null:(0,LD.__)("The custom CSS is invalid. Do not use <> markup.")}function BCe(e){if(!e)return null;let t=ICe(e);if(t)return t;let[o]=zS([{css:e}],".for-validation-only");return o===null?(0,LD.__)("There is an error with your CSS structure."):null}function MD({value:e,onChange:t,inheritedValue:o=e,help:r}){let n=o?.css,[i,s]=(0,PCe.useState)(()=>BCe(n));function a(u){t({...e,css:u}),s(ICe(u))}function l(u){s(BCe(u?.target?.value))}return(0,e1.jsxs)(Qe,{direction:"column",gap:"md",className:"block-editor-global-styles-advanced-panel",children:[i&&(0,e1.jsx)(AD.Notice,{status:"error",onRemove:()=>s(null),children:i}),(0,e1.jsx)(AD.TextareaControl,{label:(0,LD.__)("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 FCe=c(U(),1),zCe=c(F(),1),Cf=c(G(),1);var yt=c(U(),1);var Uo=c(G(),1),ACe=c(as(),1),o$=c(Fs(),1),wf=c(F(),1),o1=c(Q(),1),LCe=c(Tt(),1),MCe=c(J7(),1);var ft=c(E(),1),ND="image",fYe={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},DD=()=>{},t1=e=>{window.requestAnimationFrame(()=>{let[t]=LCe.focus.tabbable.find(e?.current);t&&t.focus()})};function pYe(e){return e==="cover"||e===void 0?(0,Uo.__)("Image covers the space evenly."):e==="contain"?(0,Uo.__)("Image is contained without distortion."):(0,Uo.__)("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 NCe({as:e="span",imgUrl:t,toggleProps:o={},filename:r,label:n,onToggleCallback:i=DD}){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,Uo.sprintf)((0,Uo.__)("Background image: %s"),r||n):(0,Uo.__)("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=DD,hasImageValue:i,onReset:s,hasLocalOverride:a,containerRef:l}){if(!i)return;let u=e||(0,o$.getFilename)(o)||(0,Uo.__)("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,Uo.__)("Background size, position and repeat options."),isOpen:f};return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(NCe,{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(),t1(l)}}):(0,ft.jsx)(yt.Button,{__next40pxDefaultSize:!0,label:(0,Uo.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:dn,onClick:()=>{s(),f&&d(),t1(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 OCe({onChange:e,style:t,inheritedValue:o,onRemoveImage:r=DD,onResetImage:n=DD,displayInPanel:i,defaultValues:s,containerRef:a}){let[l,u]=(0,wf.useState)(!1),{getSettings:d}=(0,o1.useSelect)(C),{id:f,title:p,url:h}=t?.background?.backgroundImage||{...o?.background?.backgroundImage},{createErrorNotice:m}=(0,o1.useDispatch)(ACe.store),g=w=>{m(w,{type:"snackbar"}),u(!1)},b=()=>e(De(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,Uo.__)("Only images can be used as a background image."));return}let T=t?.background?.backgroundSize||s?.backgroundSize,B=t?.background?.backgroundPosition;e(De(t,["background"],{...t?.background,backgroundImage:{url:w.url,id:w.id,source:"file",title:w.title||void 0},backgroundPosition:!B&&(T==="auto"||!T)?"50% 0":B,backgroundSize:T})),u(!1),t1(a)},y=w=>{d().mediaUpload({allowedTypes:[ND],filesList:w,onFileChange([T]){v(T)},onError:g,multiple:!1})},k=Cc(t),S=()=>e(De(t,["background"],{backgroundImage:"none"})),_=!k&&Cc(o),x=p||(0,o$.getFilename)(h)||(0,Uo.__)("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)(h_,{mediaId:f,mediaURL:h,allowedTypes:[ND],accept:"image/*",onSelect:v,popoverProps:{className:K({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,ft.jsx)(NCe,{imgUrl:h,filename:p,label:x}),renderToggle:w=>(0,ft.jsx)(yt.Button,{...w,__next40pxDefaultSize:!0}),onError:g,onReset:()=>{t1(a),n()},children:_&&(0,ft.jsx)(yt.MenuItem,{onClick:()=>{t1(a),S(),r()},children:(0,Uo.__)("Remove")})}),(0,ft.jsx)(yt.DropZone,{onFilesDrop:y,label:(0,Uo.__)("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=B=>{let R=h,I=b;B==="contain"&&(R="no-repeat",I=void 0),B==="cover"&&(R=void 0,I=void 0),(y==="cover"||y==="contain")&&B==="auto"&&(R=void 0,t?.background?.backgroundImage?.id&&(I="50% 0")),!B&&y==="auto"&&(B="auto"),e(De(t,["background"],{...t?.background,backgroundPosition:I,backgroundRepeat:R,backgroundSize:B}))},_=B=>{e(De(t,["background","backgroundPosition"],mYe(B)))},x=()=>e(De(t,["background","backgroundRepeat"],k===!0?"no-repeat":"repeat")),w=()=>e(De(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,Uo.__)("Focal point"),url:m,value:hYe(T),onChange:_}),(0,ft.jsx)(yt.ToggleControl,{label:(0,Uo.__)("Fixed background"),checked:v==="fixed",onChange:w}),(0,ft.jsxs)(yt.__experimentalToggleGroupControl,{label:(0,Uo.__)("Size"),value:y,onChange:S,isBlock:!0,help:pYe(p||r?.backgroundSize),children:[(0,ft.jsx)(yt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Uo._x)("Cover","Size option for background image control")},"cover"),(0,ft.jsx)(yt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Uo._x)("Contain","Size option for background image control")},"contain"),(0,ft.jsx)(yt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Uo._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,Uo.__)("Background image width"),onChange:S,value:p,__unstableInputWidth:"100px",min:0,placeholder:(0,Uo.__)("Auto"),disabled:y!=="auto"||y===void 0}),(0,ft.jsx)(yt.ToggleControl,{label:(0,Uo.__)("Repeat"),checked:k,onChange:x,disabled:y==="cover"})]})]})}function DCe({value:e,onChange:t,inheritedValue:o=e,settings:r,defaultValues:n={},showInheritanceLabelIndicators:i=gn()}){let{globalStyles:s,_links:a}=(0,o1.useSelect)(S=>{let{getSettings:_}=S(C),x=_();return{globalStyles:x[rs],_links:x[Wy]}},[]),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(De(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:K("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)(OCe,{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)(OCe,{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 VCe(e,t){return e?.background?.[t]}function VD(e){let t=KW(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 r$(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 n$({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,headerLabel:i}){let s=xr();return(0,Fu.jsx)(FCe.__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 FD({as:e=n$,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=gn()}){let{colors:f,gradients:p,allColors:h,areCustomSolidsEnabled:m,areCustomGradientsEnabled:g,hasSolidColors:b,hasGradientColors:v,decodeValue:y,encodeGradientValue:k}=I_(n),S=VCe(n,"gradient"),_=KW(n),x=_&&b,w=v&&S,T=_&&v&&!S,B=VCe(n,"backgroundImage"),R=(0,zCe.useCallback)($=>{let Y=x,Z=S||T;return!Y&&!Z?{...$,background:{}}:{...$,background:{},color:{...$?.color,...Y&&{background:void 0},...Z&&{gradient:void 0}}}},[S,x,T]);if(!B&&!x&&!w&&!T)return null;let I=()=>o(De(t,["background","backgroundImage"],void 0)),A=()=>{let $=De(t,["background","gradient"],void 0);$=De($,["color","gradient"],void 0),o($)},P=y(r?.color?.background),O=y(t?.color?.background),N=($,Y)=>{let Z=De(t,["color","background"],_f(h,$,Y));T&&(Z.color.gradient=void 0),o(Z)},j=()=>{let $=De(t,["color","background"],void 0);T&&($.color.gradient=void 0),o($)},D=y(r?.color?.gradient),M=y(t?.color?.gradient),V=($,Y)=>{let Z=De(t,["color","gradient"],k($,Y));Z.color.background=void 0,o(Z)},L=()=>o(De(t,["color","gradient"],void 0)),z=y(t?.background?.gradient??t?.color?.gradient),q=y(r?.background?.gradient??r?.color?.gradient),J=($,Y)=>{let Z=De(t,["background","gradient"],k($,Y));Z=De(Z,["color","gradient"],void 0),o(Z)},te=($,Y,Z)=>d?gl($,Y,Z):{className:Z},ee=Cc({background:{backgroundImage:r?.background?.backgroundImage}}),W=Cc(t);return(0,Fu.jsxs)(e,{resetAllFilter:R,value:t,onChange:o,panelId:i,headerLabel:l,children:[B&&(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)(DCe,{value:t,onChange:o,settings:n,inheritedValue:r,defaultControls:s,defaultValues:a,showInheritanceLabelIndicators:d})}),x&&(0,Fu.jsx)(ch,{label:(0,Cf.__)("Color"),hasValue:()=>SYe(t),resetValue:j,isShownByDefault:s.backgroundColor,indicators:[O??P],contrastWarning:u,showInheritanceLabelIndicators:d,isPlaceholder:O===void 0&&P!==void 0,hasInheritedValue:P!==void 0,tabs:[{key:"background",label:(0,Cf.__)("Color"),inheritedValue:P,inheritedSlug:Po(r?.color?.background,"color"),userSlug:Po(t?.color?.background,"color"),setValue:N,userValue:O,isPlaceholder:O===void 0&&P!==void 0}],colorGradientControlSettings:{colors:f,disableCustomColors:!m},panelId:i}),w&&(0,Fu.jsx)(ch,{label:(0,Cf.__)("Gradient"),hasValue:()=>r$(t),resetValue:A,isShownByDefault:s.gradient,indicators:[z??q],showInheritanceLabelIndicators:d,isPlaceholder:z===void 0&&q!==void 0,hasInheritedValue:q!==void 0,tabs:[{key:"gradient",label:(0,Cf.__)("Gradient"),inheritedValue:q,inheritedSlug:Po(r?.background?.gradient??r?.color?.gradient,"gradient"),userSlug:Po(t?.background?.gradient??t?.color?.gradient,"gradient"),setValue:J,userValue:z,isGradient:!0,isPlaceholder:z===void 0&&q!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!g},panelId:i}),T&&(0,Fu.jsx)(ch,{label:(0,Cf.__)("Gradient"),hasValue:()=>kYe(t),resetValue:L,isShownByDefault:s.gradient,indicators:[M??D],showInheritanceLabelIndicators:d,isPlaceholder:M===void 0&&D!==void 0,hasInheritedValue:D!==void 0,tabs:[{key:"gradient",label:(0,Cf.__)("Gradient"),inheritedValue:D,inheritedSlug:Po(r?.color?.gradient,"gradient"),userSlug:Po(t?.color?.gradient,"gradient"),setValue:V,userValue:M,isGradient:!0,isPlaceholder:M===void 0&&D!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!g},panelId:i})]})}var zu=c(G(),1);var uh=c(U(),1);var Ec=c(E(),1);function zD({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:zs,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)(uh.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)(uh.MenuGroup,{label:(0,zu.__)("Viewport"),children:l.map(y=>(0,Ec.jsx)(uh.MenuItem,{onClick:()=>{n?.(y.value),f||v()},icon:o===y.value?ns:null,children:y.label},`viewport-${y.value}`))}),f&&(0,Ec.jsx)(uh.MenuGroup,{label:(0,zu.__)("Pseudo state"),children:u.map(y=>(0,Ec.jsx)(uh.MenuItem,{onClick:()=>{i?.(y.value),d||v()},icon:r===y.value?ns:null,children:y.label},`pseudo-${y.value}`))})]})})})}var jCe=c(U(),1),F_=c(G(),1);var ju=c(E(),1),{Badge:_Ye}=H(jCe.privateApis);function jD({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,F_.sprintf)((0,F_.__)("Style changes apply to the %s viewport."),s.label)}),a&&i.push({key:`pseudo-${a.value}`,label:a.label,tooltipText:(0,F_.sprintf)((0,F_.__)("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)(kt.Root,{children:[(0,ju.jsx)(kt.Trigger,{render:(0,ju.jsx)("span",{className:"block-editor-global-styles-state-control__badge-tooltip-trigger",children:u})}),(0,ju.jsx)(kt.Popup,{children:l.tooltipText})]},l.key):u})})}var a1=c(F(),1),l$=c(Q(),1),GCe=c(ue(),1);var i1=c(ue(),1),r1=c(Q(),1),HD=c(F(),1);var n1=c(E(),1),{getVariationStyle:xYe}=H(vr),s$="is-style-";function HCe(e){return e?e.split(/\s+/).reduce((t,o)=>{if(o.startsWith(s$)){let r=o.slice(s$.length);r!=="default"&&t.push(r)}return t},[]):[]}function s1(e,t=[]){let o=HCe(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 a$({config:e}){let{overrides:t}=(0,r1.useSelect)(n=>({overrides:H(n(C)).getStyleOverrides()}),[]),{getBlockName:o}=(0,r1.useSelect)(C),r=(0,HD.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,i1.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,n1.jsx)(n1.Fragment,{children:r.map(n=>(0,n1.jsx)(wYe,{override:n},n.id))})}function CYe(e,t,o){let{globalSettings:r,globalStyles:n}=(0,r1.useSelect)(i=>{let s=i(C).getSettings();return{globalSettings:s.__experimentalFeatures,globalStyles:s[rs]}},[]);return(0,HD.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,r1.useSelect)(i1.store),n=r(e),i=s1(t,n),s=`${s$}${i}-${o}`,{settings:a,styles:l}=CYe(e,i,o),u=(0,HD.useMemo)(()=>{if(!i)return;let d={settings:a,styles:l},f=SB((0,i1.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 UCe={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>HCe(e).length>0,useBlockProps:EYe};var{resolveStyle:TYe}=H(vr),RYe={value:void 0,sources:void 0};function BYe(){let{rawGlobalStylesData:e,links:t}=(0,l$.useSelect)(o=>{let r=o(C).getSettings();return{rawGlobalStylesData:r[rs]??null,links:r[Wy]??null}},[]);return(0,a1.useMemo)(()=>e?{styles:e,_links:t??void 0}:null,[e,t])}var WCe={"core/accordion-heading":{contextKey:"core/accordion-heading-level",fallbackLevel:3}};function PYe(e,t,o){let r=WCe[e];return r?t||o||r.fallbackLevel:t}function IYe(e){let t=(0,a1.useContext)(_n),o=WCe[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"];case"core/read-more":case"core/loginout":case"core/post-navigation-link":case"core/query-pagination-next":case"core/query-pagination-previous":case"core/query-pagination-numbers":case"core/comments-pagination-next":case"core/comments-pagination-previous":case"core/comments-pagination-numbers":case"core/comment-edit-link":case"core/comment-reply-link":case"core/post-comments-link":return["link"];default:return[]}}function AYe(e,t){let{clientId:o}=ht(),r=IYe(e);return(0,l$.useSelect)(n=>{if(!e)return{variationName:null,headingLevel:void 0};let i=n(GCe.store).getBlockStyles(e),{level:s}=n(C).getBlockAttributes(o)||{};return{variationName:t?s1(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,a1.useMemo)(()=>gn()?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 u$=c(E(),1),yy="__experimentalBorder",c1="shadow",$Ce=(e,t,o)=>{let r;return e.some(n=>n.colors.some(i=>i[t]===o?(r=i,!0):!1)),r},by=({colors:e,namedColor:t,customColor:o})=>{if(t){let n=$Ce(e,"slug",t);if(n)return n}if(!o)return{color:void 0};let r=$Ce(e,"color",o);return r||{color:o}};function UD(e){let t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function qCe(e){if((0,c$.__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 ZCe(e){return(0,c$.__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,WD.useCallback)(n=>{let i=ZCe(n),s=o(i);return{...n,...qCe(s)}},[o]);return(0,u$.jsx)(Oe,{group:"border",resetAllFilter:r,label:e,children:t})}function XCe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Ja(),i=BD(r),{style:s,borderColor:a,className:l}=(0,YCe.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=!Bn(n),f=(0,WD.useMemo)(()=>d?To(s,n):ZCe({style:s,borderColor:a}),[d,n,s,a]),p=d?m=>{o({style:Pn(s,n,m)})}:m=>{o(qCe(m))};if(!i)return null;let h={...(0,l1.getBlockSupport)(t,[yy,"__experimentalDefaultControls"]),...(0,l1.getBlockSupport)(t,[c1,"__experimentalDefaultControls"])};return(0,u$.jsx)(PD,{as:LYe,panelId:e,settings:r,value:f,onChange:p,defaultControls:h,inheritedValue:u})}function $D(e,t="any"){let o=(0,l1.getBlockSupport)(e,yy);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}function hy({blockName:e,hasBorderControl:t,hasShadowControl:o}={}){let r=kl(e),n=QE(r);return!t&&!o&&e&&(t=n?.hasBorderColor||n?.hasBorderStyle||n?.hasBorderWidth||n?.hasBorderRadius,o=n?.hasShadow),t&&o?(0,GD.__)("Border & Shadow"):o?(0,GD.__)("Shadow"):(0,GD.__)("Border")}function MYe(e){return!$D(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function QCe(e,t,o){if(!$D(t,"color")||Wt(t,yy,"color"))return e;let r=d$(o),n=K(e.className,r);return e.className=n||void 0,e}function d$(e){let{borderColor:t,style:o}=e,r=xa("border-color",t);return K({"has-border-color":t||o?.border?.color,[r]:!!r})}function NYe({name:e,borderColor:t,style:o}){let{colors:r}=qm();if(!$D(e,"color")||Wt(e,yy,"color"))return{};let{color:n}=by({colors:r,namedColor:t}),{color:i}=by({colors:r,namedColor:UD(o?.border?.top?.color)}),{color:s}=by({colors:r,namedColor:UD(o?.border?.right?.color)}),{color:a}=by({colors:r,namedColor:UD(o?.border?.bottom?.color)}),{color:l}=by({colors:r,namedColor:UD(o?.border?.left?.color)});return QCe({style:Ge({borderTopColor:i||n,borderRightColor:s||n,borderBottomColor:a||n,borderLeftColor:l||n})||{}},e,{borderColor:t,style:o})}var f$={useBlockProps:NYe,addSaveProps:QCe,attributeKeys:["borderColor","style"],hasSupport(e){return $D(e,"color")}};(0,KCe.addFilter)("blocks.registerBlockType","core/border/addAttributes",MYe);var y$=c(ue(),1),QD=c(F(),1),cEe=c(Q(),1),uEe=c(G(),1);var h$=c(go(),1),H_=c(ue(),1),aEe=c(F(),1);var j_=c(ue(),1),rEe=c(Q(),1),nEe=c(G(),1);var vy=c(F(),1),eEe=c(Q(),1),tEe=c(ue(),1);var oEe=c(Qr(),1);function KD(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function JCe(e,t){if(!e||!t)return{};let o=js(t,"color.text",{fallback:!0}),r=js(t,"color.background",{fallback:!0}),n=e.querySelector(o)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=KD(n,"color"),l=s&&s.textContent?KD(s,"color"):void 0,u=i,d=KD(u,"background-color");for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=KD(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 z_({clientId:e,name:t,enabled:o=!0,checkTextColor:r=!0,checkLinkColor:n=!0,messageOverride:i}){let s=Nt(e),[a,l]=(0,vy.useReducer)(DYe,{}),u=(0,eEe.useSelect)(p=>t&&o?p(tEe.store).getBlockType(t):void 0,[t,o]);(0,vy.useLayoutEffect)(()=>{!o||!s||!u||window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>l(JCe(s,u))))}),(0,vy.useLayoutEffect)(()=>{if(!o||!s||!u)return;let p=new window.MutationObserver(()=>{l(JCe(s,u))});return p.observe(s,{attributes:!0,attributeFilter:["class","style"],subtree:!0}),()=>{p.disconnect()}},[o,s,u]);let d=o?OG({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,vy.useEffect)(()=>{f&&(0,oEe.speak)(f)},[f]),d?.message}var m$=c(E(),1),Sy="background",p$={backgroundSize:"cover",backgroundPosition:"50% 50%"};function u1(e,t="any"){let o=(0,j_.getBlockSupport)(e,Sy);return o===!0?!0:t==="any"?!!o?.backgroundImage||!!o?.backgroundSize||!!o?.backgroundRepeat||!!o?.gradient:!!o?.[t]}function YD(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:p$.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:p$.backgroundPosition}),t}function VYe({name:e,style:t}){if(!u1(e)||!t?.background?.backgroundImage)return;let o=YD(t?.background);if(o)return{style:{...o}}}function iEe(e){return Cc(e)||r$(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,m$.jsx)(Oe,{group:"background",resetAllFilter:FYe,children:e})}function qD({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Ja(),{style:s,className:a,backgroundColor:l,gradient:u}=(0,rEe.useSelect)(R=>{let{getBlockAttributes:I}=R(C),A=I(e);return{style:A?.style,className:A?.className,backgroundColor:A?.backgroundColor,gradient:A?.gradient}},[e]),{value:d}=Sl(t,a,i),f=u1(t,"gradient"),p=(0,j_.getBlockSupport)(t,"color"),h=p&&p.background!==!1,m=!!p?.gradients,g=!Bn(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,j_.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,k=z_({clientId:e,name:t,enabled:!!y,messageOverride:(0,nEe.__)("This color combination has poor contrast. Consider increasing contrast between background and foreground.")});if(!VD(r)||!u1(t)&&!h&&!m)return null;let S=R=>{if(g){o({style:Pn(s,i,R)});return}let I=R?.color?.background,A=Po(I,"color"),P=f?R?.background?.gradient:R?.color?.gradient,O=Po(P,"gradient"),N=O?void 0:R?.color?.gradient,j={...R,color:{...R?.color,background:A?void 0:I,gradient:f?void 0:N}};f&&(j.background={...j.background,gradient:R?.background?.gradient});let D=f&&!!s?.color?.gradient,M={style:Ge(j),backgroundColor:A,gradient:f?void 0:O},V=!!O||!!P;D&&V?M.className=K(a,"has-background"):!V&&a?.includes("has-background")&&(M.className=a.split(" ").filter(L=>L!=="has-background").join(" ")||void 0),o(M)},_={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&u1(t,"backgroundSize")}},x=(0,j_.getBlockSupport)(t,[Sy,"__experimentalDefaultControls"]),w=(0,j_.getBlockSupport)(t,["color","__experimentalDefaultControls"]),T={...x,backgroundColor:w?.background,gradient:x?.gradient??w?.background};return(0,m$.jsx)(FD,{as:n||zYe,panelId:e,defaultValues:p$,settings:_,onChange:S,defaultControls:T,value:g?To(s,i):b,contrastWarning:k,inheritedValue:d})}var sEe={useBlockProps:VYe,attributeKeys:["style"],hasSupport:u1};var Mn="color",ZD=e=>{let t=(0,H_.getBlockSupport)(e,Mn);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},jYe=e=>{let t=(0,H_.getBlockSupport)(e,Mn);return t!==null&&typeof t=="object"&&!!t.link},g$=e=>{let t=(0,H_.getBlockSupport)(e,Mn);return t!==null&&typeof t=="object"&&!!t.gradients},HYe=e=>{let t=(0,H_.getBlockSupport)(e,Mn);return t&&t.background!==!1},UYe=e=>{let t=(0,H_.getBlockSupport)(e,Mn);return t&&t.text!==!1};function GYe(e){return ZD(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),g$(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function lEe(e,t,o){if(!ZD(t)||Wt(t,Mn))return e;let r=g$(t),{backgroundColor:n,textColor:i,gradient:s,style:a}=o,l=g=>!Wt(t,Mn,g),u=l("text")?xa("color",i):void 0,d=l("gradients")?bv(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=K(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,aEe.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!ZD(e)||Wt(e,Mn))return{};let u={};o&&!Wt(e,Mn,"text")&&(u.color=zc(l,o)?.color),t&&!Wt(e,Mn,"background")&&(u.backgroundColor=zc(l,t)?.color);let d=lEe({style:u},e,{textColor:o,backgroundColor:t,gradient:r,style:n}),f=t||n?.color?.background||r||n?.color?.gradient;return{...d,className:K(d.className,!f&&iEe(n))}}var b$={useBlockProps:WYe,addSaveProps:lEe,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:ZD},$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:g$(n)};return XD(i,$Ye,e,t,o,r)}(0,h$.addFilter)("blocks.registerBlockType","core/color/addAttribute",GYe);(0,h$.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",KYe);var v$=c(E(),1);function YYe({children:e,resetAllFilter:t}){let o=(0,QD.useCallback)(r=>{let n=t(r.style);return{...r,style:Ge(n)}},[t]);return(0,v$.jsx)(Oe,{group:"elements",resetAllFilter:o,children:e})}function JD({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n,label:i,defaultControls:s}){let a=Ja(),l=gD(r),{style:u,className:d}=(0,cEe.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=!Bn(a),h=(0,QD.useMemo)(()=>p?To(u,a):u,[p,a,u]),m=p?y=>{o({style:Pn(u,a,y)})}:y=>{o({style:Ge(y)})},g=!!h?.elements?.link?.color?.text&&r?.color?.link&&(0,y$.getBlockSupport)(t,[Mn,"enableContrastChecker"])!==!1,b=z_({clientId:e,name:t,enabled:!!g,checkTextColor:!1,messageOverride:(0,uEe.__)("This link color has poor contrast against the background. Consider increasing contrast.")});return l?(s=s||(0,y$.getBlockSupport)(t,[Mn,"__experimentalDefaultControls"]),(0,v$.jsx)(bD,{as:n||YYe,panelId:e,settings:r,value:h,onChange:m,defaultControls:s,label:i,contrastWarning:b,inheritedValue:f})):null}var p1=c(ue(),1),sV=c(F(),1),BEe=c(Q(),1),PEe=c(G(),1);var qYe=c(ue(),1);var ZYe=c(E(),1),dEe="typography.lineHeight";var fEe=c(go(),1),eV=c(ue(),1),pEe=c(WL(),1),mEe=c(U(),1);var d1="typography.__experimentalFontFamily",{kebabCase:XYe}=H(mEe.privateApis);function QYe(e){return(0,eV.hasBlockSupport)(e,d1)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function hEe(e,t,o){if(!(0,eV.hasBlockSupport)(t,d1)||Wt(t,_l,"fontFamily")||!o?.fontFamily)return e;let r=new pEe.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 hEe({},e,{fontFamily:t})}var S$={useBlockProps:JYe,addSaveProps:hEe,attributeKeys:["fontFamily"],hasSupport(e){return(0,eV.hasBlockSupport)(e,d1)}};(0,fEe.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",QYe);var k$=c(go(),1),U_=c(ue(),1),gEe=c(WL(),1);var eqe=c(E(),1),ky="typography.fontSize";function tqe(e){return(0,U_.hasBlockSupport)(e,ky)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function bEe(e,t,o){if(!(0,U_.hasBlockSupport)(t,ky)||Wt(t,_l,"fontSize"))return e;let r=new gEe.default(e.className);r.add(bp(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,U_.hasBlockSupport)(e,ky)||Wt(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:yv(r,t,o?.typography?.fontSize).size}}),!!s)return bEe(s,e,{fontSize:t})}var _$={useBlockProps:oqe,addSaveProps:bEe,attributeKeys:["fontSize","style"],hasSupport(e){return(0,U_.hasBlockSupport)(e,ky)}},rqe={fontSize:[["fontSize"],["style","typography","fontSize"]]};function nqe(e,t,o,r){let n=e.name,i={fontSize:(0,U_.hasBlockSupport)(n,ky)};return XD(i,rqe,e,t,o,r)}(0,k$.addFilter)("blocks.registerBlockType","core/font/addAttribute",tqe);(0,k$.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",nqe);var oV=c(G(),1),G_=c(ue(),1);var SEe=c(Q(),1);var tV=c(Q(),1),yEe=c(F(),1);function Er(e){let t=ht(),{clientId:o=""}=t,r=(0,tV.useRegistry)(),n=(0,tV.useSelect)(i=>o?null:i(C).getBlockEditingMode(),[o]);return(0,yEe.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[zy]:n}var x$=c(E(),1),W_="typography.textAlign",iqe=[{icon:ep,title:(0,oV.__)("Align text left"),align:"left"},{icon:Qh,title:(0,oV.__)("Align text center"),align:"center"},{icon:tp,title:(0,oV.__)("Align text right"),align:"right"}],vEe=["left","center","right"],sqe=[];function w$(e){return Array.isArray(e)?vEe.filter(t=>e.includes(t)):e===!0?vEe:sqe}function aqe(e,t){return e&&Hi(t)?"style-state":"block"}function lqe({clientId:e,style:t,name:o,setAttributes:r}){let i=kl(o)?.typography?.textAlign,s=Er(),{selectedState:a,isResponsiveEditing:l}=(0,SEe.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=w$((0,G_.getBlockSupport)(o,W_));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:Pn(t,a,g)})};return(0,x$.jsx)(No,{group:p,children:(0,x$.jsx)(KB,{value:f?.typography?.textAlign,onChange:h,alignmentControls:d})})}var rV={edit:lqe,useBlockProps:cqe,addSaveProps:uqe,attributeKeys:["style"],hasSupport(e){return(0,G_.hasBlockSupport)(e,W_,!1)}};function cqe({name:e,style:t}){if(!t?.typography?.textAlign||!w$((0,G_.getBlockSupport)(e,W_)).length||Wt(e,_l,"textAlign"))return null;let r=t.typography.textAlign;return{className:K({[`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,G_.getBlockSupport)(t,W_);return w$(n).includes(r)&&!Wt(t,_l,"textAlign")&&(e.className=K(`has-text-align-${r}`,e.className)),e}var E$=c(go(),1),dh=c(ue(),1),_y=c(F(),1),T$=c(Q(),1),f1=c(G(),1),nV=c(U(),1),TEe=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 kEe(e,t){if(!e)return;t(0);let o=dqe(e,t);return t(o),o}var _Ee=c(F(),1),xEe=c(G(),1),wEe=c(U(),1),CEe=c(Qr(),1),C$=c(E(),1);function EEe(){let e=(0,xEe.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,_Ee.useEffect)(()=>{(0,CEe.speak)(e)},[e]),(0,C$.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,C$.jsx)(wEe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var Rs=c(E(),1),fqe={},pqe=12,Ef="typography.fitText";function mqe(e){return!(0,dh.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,_y.useState)(null),i=(0,dh.hasBlockSupport)(t,Ef),s=Nt(o),{blockAttributes:a,parentId:l,blockMode:u}=(0,T$.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,_y.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=kEe(s,b=>{b===0?p.textContent="":p.textContent=`${h} { font-size: ${b}px !important; }`});n(g)},[s,o,i,e]);return(0,_y.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,_y.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,T$.useSelect)(a=>{let{hasSelectedStyleState:l}=H(a(C));return l(e)},[e]);return!(0,dh.hasBlockSupport)(r,Ef)||s?null:(0,Rs.jsx)(nV.__experimentalToolsPanelItem,{hasValue:()=>t,label:(0,f1.__)("Fit text"),onDeselect:()=>o({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,Rs.jsx)(nV.ToggleControl,{label:(0,f1.__)("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,f1.__)("Text will resize to fit its container."):(0,f1.__)("The text will resize to fit its container, resetting other font size settings.")})})}function bqe(e,t,o){if(!(0,dh.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,dh.hasBlockSupport)(e,Ef)?{className:"has-fit-text"}:{}}(0,E$.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",mqe);var vqe=e=>(0,dh.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,Rs.jsx)(Oe,{group:"typography",children:(0,Rs.jsx)(EEe,{})}):null}var kqe=(0,TEe.createHigherOrderComponent)(e=>function(o){let{name:r,attributes:n,clientId:i,isSelected:s,setAttributes:a}=o,{fitText:l}=n;return(0,dh.hasBlockSupport)(r,Ef)?(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)(e,{...o}),(0,Rs.jsx)(Oe,{group:"typography",children:(0,Rs.jsx)(gqe,{clientId:i,fitText:l,setAttributes:a,name:r,fontSize:n.fontSize,style:n.style})}),l&&(0,Rs.jsx)(Sqe,{fitText:l,name:r,clientId:i,isSelected:s})]}):(0,Rs.jsx)(e,{...o})},"addFitTextControl");(0,E$.addFilter)("editor.BlockEdit","core/fit-text/add-fit-text-control",kqe);var iV={useBlockProps:yqe,addSaveProps:bqe,attributeKeys:["fitText","fontSize","style"],hasSupport:vqe,edit:()=>null};var R$=c(E(),1);function REe(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",IEe=[dEe,ky,Tqe,Rqe,d1,W_,Eqe,wqe,Cqe,Bqe,xqe,_qe,Ef];function OEe(e){let t={...REe(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=Po(n,"color");return t.typography={...REe(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 AEe(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,sV.useCallback)(r=>{let n=AEe(r),i=t(n);return{...r,...OEe(i)}},[t]);return(0,R$.jsx)(Oe,{group:"typography",resetAllFilter:o,children:e})}function aV({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Ja(),s=yD(r),{style:a,fontFamily:l,fontSize:u,fitText:d,textColor:f,className:p}=(0,BEe.useSelect)(w=>{if(!s)return{};let{style:T,fontFamily:B,fontSize:R,fitText:I,textColor:A,className:P}=w(C).getBlockAttributes(e)||{};return{style:T,fontFamily:B,fontSize:R,fitText:I,textColor:A,className:P}},[e,s]),h=!Bn(i),{value:m}=Sl(t,p,i),g=(0,sV.useMemo)(()=>h?To(a,i):AEe({style:a,fontFamily:l,fontSize:u,textColor:f}),[h,i,a,u,l,f]),b=h?w=>{o({style:Pn(a,i,w)})}:w=>{let T=OEe(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,p1.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,y=z_({clientId:e,name:t,enabled:!!v,checkLinkColor:!1,messageOverride:(0,PEe.__)("This color has poor contrast against the background. Consider increasing contrast.")});if(!s)return null;let k=(0,p1.getBlockSupport)(t,[_l,"__experimentalDefaultControls"]),S=(0,p1.getBlockSupport)(t,["color","__experimentalDefaultControls"]),_={...k,textColor:S?.text};return(0,R$.jsx)(vD,{as:n||Pqe,panelId:e,settings:r,value:g,onChange:b,defaultControls:_,contrastWarning:y,inheritedValue:m})}var Qo=c(E(),1);function P$({blockName:e,clientId:t,contentClientIds:o}){let r=kl(e),{updateBlockAttributes:n}=(0,lV.useDispatch)(C),{hasButtons:i,hasHeading:s}=(0,lV.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,B$.useMemo)(()=>({...r,typography:{}}),[r]),u=(0,B$.useMemo)(()=>({...r,background:{...r.background,backgroundImage:!1,backgroundSize:!1}}),[r]);return(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsx)(aV,{clientId:t,name:e,settings:l,setAttributes:a,asWrapper:ZW}),(0,Qo.jsx)(qD,{clientId:t,name:e,settings:u,setAttributes:a,asWrapper:n$}),(0,Qo.jsx)(JD,{clientId:t,name:e,settings:r,setAttributes:a,asWrapper:YW,label:(0,fh.__)("Elements"),defaultControls:{button:i,heading:s}})]})}var Iqe=({blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:r,contentClientIds:n})=>{let i=hy({blockName:e});return(0,Qo.jsxs)(Qo.Fragment,{children:[o&&(0,Qo.jsx)(qk,{clientId:t}),r&&e!=="core/template-part"&&(0,Qo.jsx)(P$,{blockName:e,clientId:t,contentClientIds:n}),(!r||e==="core/template-part")&&(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsx)(Oe.Slot,{group:"typography",label:(0,fh.__)("Typography")}),(0,Qo.jsx)(Oe.Slot,{group:"color",label:(0,fh.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Qo.jsx)(Oe.Slot,{group:"background",label:(0,fh.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Qo.jsx)(Oe.Slot,{group:"filter"}),(0,Qo.jsx)(Oe.Slot,{group:"layout",label:(0,fh.__)("Layout")}),(0,Qo.jsx)(Oe.Slot,{group:"dimensions",label:(0,fh.__)("Dimensions")}),(0,Qo.jsx)(Oe.Slot,{group:"border",label:i}),(0,Qo.jsx)(Oe.Slot,{group:"elements",label:(0,fh.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),(0,Qo.jsx)(uD,{}),(0,Qo.jsx)(Oe.Slot,{group:"styles"})]})]})},LEe=Iqe;var NEe=c(U(),1),DEe=c(G(),1);var MEe=c(ue(),1),cV=c(Q(),1),fa=c(U(),1);var xl=c(E(),1);function uV({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=Do(e),{isSelected:i,childBlocks:s,shouldRenderListView:a,blockName:l}=(0,cV.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=jn({clientId:e,context:"list-view"})||u?.title||l,{selectBlock:p}=(0,cV.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)(Et,{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 $_=c(E(),1),Aqe=({contentClientIds:e,onSwitchToListView:t,hasListViewTab:o})=>{if(!e||e.length===0)return null;let r=window?.__experimentalContentOnlyInspectorFields;return(0,$_.jsx)($_.Fragment,{children:!r&&(0,$_.jsx)(NEe.PanelBody,{title:(0,DEe.__)("Content"),children:(0,$_.jsx)(uV,{clientIds:e,onSwitchToListView:t,hasListViewTab:o})})})},dV=Aqe;var qr=c(E(),1),{Tabs:ph}=H(fV.privateApis);function I$({blockName:e,clientId:t,hasBlockStyles:o,tabs:r,isSectionBlock:n,contentClientIds:i}){let s=(0,Rc.useRef)(null),a=(0,K_.useSelect)(S=>S(VEe.store).get("core","showIconLabels"),[]),{requestedTab:l}=(0,K_.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,K_.useDispatch)(C),{clearRequestedInspectorTab:b}=H((0,K_.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,qr.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,qr.jsxs)(ph,{selectedTabId:u,onSelect:v,children:[(0,qr.jsx)(ph.TabList,{children:r.map(S=>a?(0,qr.jsx)(ph.Tab,{tabId:S.name,children:S.title},S.name):(0,qr.jsxs)(kt.Root,{children:[(0,qr.jsx)(ph.Tab,{tabId:S.name,"aria-label":S.title,render:(0,qr.jsx)(kt.Trigger,{}),children:(0,qr.jsx)(fV.Icon,{icon:S.icon})}),(0,qr.jsx)(kt.Popup,{children:S.title})]},S.name))}),(0,qr.jsxs)(ph.TabPanel,{tabId:aD.name,focusable:!1,children:[(0,qr.jsx)(dV,{contentClientIds:i,onSwitchToListView:k,hasListViewTab:y}),(0,qr.jsx)(Oe.Slot,{group:"content"})]}),(0,qr.jsxs)(ph.TabPanel,{tabId:vf.name,focusable:!1,children:[(0,qr.jsx)(Oe.Slot,{group:"list",ref:s}),(0,qr.jsx)(Q2,{listViewRef:s})]}),(0,qr.jsx)(ph.TabPanel,{tabId:iD.name,focusable:!1,children:(0,qr.jsx)(E0e,{showAdvancedControls:!!e})}),(0,qr.jsx)(ph.TabPanel,{tabId:sD.name,focusable:!1,children:(0,qr.jsx)(LEe,{blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:n,contentClientIds:i})})]},t)})}var Bs=c(U(),1),FEe=c(Q(),1);var Lqe=[];function Mqe(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function zEe(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,Bs.__experimentalUseSlotFills)(p.name),y=!!v&&v.length,k=(0,Bs.__experimentalUseSlotFills)(l.name),S=!!k&&k.length,x=[...(0,Bs.__experimentalUseSlotFills)(s.name)||[],...(0,Bs.__experimentalUseSlotFills)(a.name)||[],...(0,Bs.__experimentalUseSlotFills)(d.name)||[],...(0,Bs.__experimentalUseSlotFills)(h.name)||[],...(0,Bs.__experimentalUseSlotFills)(f.name)||[],...(0,Bs.__experimentalUseSlotFills)(m.name)||[],...(0,Bs.__experimentalUseSlotFills)(g.name)||[],...(0,Bs.__experimentalUseSlotFills)(b.name)||[]].length,w=[...(0,Bs.__experimentalUseSlotFills)(wm.slotName)||[],...(0,Bs.__experimentalUseSlotFills)(i.name)||[]],T=[...(0,Bs.__experimentalUseSlotFills)(u.name)||[],...y&&x>1?w:[]],B=window?.__experimentalContentOnlyInspectorFields,R=S||!B&&t?.length;R&&n.push(aD),y&&n.push(vf),(T.length||w.length&&(R||y))&&n.push(iD);let{tabSettings:I,isPreviewMode:A}=(0,FEe.useSelect)(O=>{let N=O(C).getSettings();return{tabSettings:N.blockInspectorTabs,isPreviewMode:N.isPreviewMode}},[]);return!A&&(r||x)&&n.push(sD),Mqe(e,I)?n:Lqe}var jEe=c(U(),1);var O$=c(E(),1),{Fill:Nqe,Slot:Dqe}=(0,jEe.createSlotFill)(Symbol("InspectorControlsLastItem")),HEe=e=>ht()[Ml]?(0,O$.jsx)(Nqe,{...e}):null;HEe.Slot=function(t){return(0,O$.jsx)(Dqe,{...t})};var pV=HEe;var UEe=c(Q(),1);function GEe(e){return(0,UEe.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 mV=c(F(),1);var xy=c(G(),1);var L$=c(E(),1),{getViewportBreakpoints:Vqe}=H(vr),WEe={":hover":(0,xy.__)("Hover"),":focus":(0,xy.__)("Focus"),":focus-visible":(0,xy.__)("Focus-visible"),":active":(0,xy.__)("Active")},Fqe={"@tablet":(0,xy.__)("Tablet"),"@mobile":(0,xy.__)("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 hV={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function $Ee(e){return(hV[e]??[]).filter(o=>WEe[o]).map(o=>({value:o,label:WEe[o]}))}var A$="default",jqe=[];function KEe({name:e,value:t,onChange:o}){let r=(0,mV.useMemo)(()=>$Ee(e),[e]),n=xr();return r.length?(0,L$.jsx)(zD,{pseudoStates:r,pseudoStateValue:t?.pseudo??A$,onChangePseudoState:i=>o({pseudo:i}),popoverProps:n.popoverProps,showText:!1}):null}function YEe({name:e,value:t,isResponsiveEditing:o}){let r=(0,mV.useMemo)(()=>$Ee(e),[e]),[n]=Le("viewport"),i=(0,mV.useMemo)(()=>zqe(n),[n]);return!r.length&&!o?null:(0,L$.jsx)(jD,{viewportStates:o?i:jqe,pseudoStates:r,viewportValue:t?.viewport??A$,pseudoStateValue:t?.pseudo??A$})}var Fe=c(E(),1);function ZEe({blockName:e,showAdvancedControls:t=!0,showPositionControls:o=!0,showBindingsControls:r=!0}){let n=hy({blockName:e});return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(Oe.Slot,{}),(0,Fe.jsx)(Oe.Slot,{group:"typography",label:(0,qi.__)("Typography")}),(0,Fe.jsx)(Oe.Slot,{group:"color",label:(0,qi.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Fe.jsx)(Oe.Slot,{group:"background",label:(0,qi.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Fe.jsx)(Oe.Slot,{group:"layout",label:(0,qi.__)("Layout")}),(0,Fe.jsx)(Oe.Slot,{group:"dimensions",label:(0,qi.__)("Dimensions")}),(0,Fe.jsx)(Oe.Slot,{group:"border",label:n}),(0,Fe.jsx)(Oe.Slot,{group:"elements",label:(0,qi.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),o&&(0,Fe.jsx)(uD,{}),(0,Fe.jsx)(Oe.Slot,{group:"styles"}),r&&(0,Fe.jsx)(Oe.Slot,{group:"bindings"}),t&&(0,Fe.jsx)("div",{children:(0,Fe.jsx)(lD,{})})]})}function Hqe({blockName:e,clientId:t,contentClientIds:o,isSectionBlock:r,selectedBlockStyleState:n}){let i=hy({blockName:e}),s=Hi(n)&&!ea(n),a=r&&e!=="core/template-part";return(0,Fe.jsxs)(Fe.Fragment,{children:[a&&(0,Fe.jsx)(Y2,{value:n,children:(0,Fe.jsx)(P$,{blockName:e,clientId:t,contentClientIds:o})}),!a&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(Oe.Slot,{group:"typography",label:(0,qi.__)("Typography")}),(0,Fe.jsx)(Oe.Slot,{group:"color",label:(0,qi.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Fe.jsx)(Oe.Slot,{group:"background",label:(0,qi.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),s&&(0,Fe.jsx)(Oe.Slot,{group:"layout",label:(0,qi.__)("Layout")}),(0,Fe.jsx)(Oe.Slot,{group:"dimensions",label:(0,qi.__)("Dimensions")}),(0,Fe.jsx)(Oe.Slot,{group:"border",label:i}),(0,Fe.jsx)(Oe.Slot,{group:"elements",label:(0,qi.__)("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,m1.useSelect)(S=>{let{getSelectedBlockClientId:_,getSelectedBlockClientIds:x,getSelectedBlockCount:w,getBlockName:T,getParentSectionBlock:B,isSectionBlock:R,getEditedContentOnlySection:I,isWithinEditedContentOnlySection:A,getBlockEditingMode:P,getSelectedBlockStyleState:O,isSelectedBlockStyleStateShownOnCanvas:N,isResponsiveEditing:j}=H(S(C)),{getBlockStyles:D}=S(Y_.store),M=_(),L=A(M)?M:B(M)||M,z=L&&T(L),q=z&&(0,Y_.getBlockType)(z),te=x().some($=>R($)),ee=z&&D(z),W=ee&&ee.length>0;return{selectedBlockCount:w(),renderedBlockClientId:L,renderedBlockName:z,blockType:q,isSectionBlockInSelection:te,isSectionBlock:R(L),hasBlockStyles:W,editedContentOnlySection:I(),blockEditingMode:P(L),selectedBlockStyleState:O(L),showStateOnCanvas:N(L),isResponsiveEditing:j()}},[]),p=(0,m1.useSelect)(S=>{if(!n||!o)return[];let{getClientIdsOfDescendants:_,getBlockEditingMode:x,shouldRenderBlockListView:w}=H(S(C)),T=_(o),B=new Set;return T.forEach(R=>{w(R)&&_(R).forEach(A=>B.add(A))}),T.filter(R=>!B.has(R)&&x(R)==="contentOnly")},[n,o]),h=zEe(r?.name,p,n,s),m=h?.length>1,g=GEe(r),b=e>1,v=!Bn(u);if(b&&!i)return(0,Fe.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,Fe.jsx)(zW,{}),m?(0,Fe.jsx)(I$,{tabs:h}):(0,Fe.jsx)(ZEe,{blockName:t,showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(b&&i)return(0,Fe.jsx)("div",{className:"block-editor-block-inspector",children:(0,Fe.jsx)(zW,{})});let y=t===(0,Y_.getUnregisteredTypeHandlerName)();return!r||!o||y?(0,Fe.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,qi.__)("No block selected.")}):(0,Fe.jsx)(Gqe,{animate:g,wrapper:S=>(0,Fe.jsx)(Wqe,{blockInspectorAnimationSettings:g,renderedBlockClientId:o,children:S}),children:(0,Fe.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,Fe.jsx)(q_.__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,qEe.useRef)(null),p=r?.length>1,h=ea(l),m=Hi(l)&&d||ea(l),g=s&&s!==e,b=Do(s),v=Do(e),y=v.isSynced,{setSelectedBlockStyleState:k,setSelectedBlockStyleStateCanvasPreview:S}=H((0,m1.useDispatch)(C)),_=w=>{k(e,w)},x=w=>{S(e,w)};return(0,Fe.jsxs)("div",{className:"block-editor-block-inspector",children:[g&&(0,Fe.jsx)(aC,{...b,className:b?.isSynced&&"is-synced",parentClientId:s}),(0,Fe.jsx)(aC,{...v,allowParentNavigation:!0,className:y&&"is-synced",isChild:g,clientId:e,controls:a==="default"&&(0,Fe.jsx)(KEe,{name:t,value:l,onChange:_})}),a==="default"&&m&&(0,Fe.jsxs)(q_.__experimentalSpacer,{paddingX:4,paddingY:2,children:[h&&(0,Fe.jsx)(q_.ToggleControl,{label:(0,qi.__)("Show state on canvas"),checked:u,onChange:x}),(0,Fe.jsx)(YEe,{name:t,value:l,isResponsiveEditing:d})]}),(0,Fe.jsx)(ate,{clientId:e}),(0,Fe.jsx)(h0e,{clientId:e}),!m&&(0,Fe.jsx)(OM,{blockClientId:e}),(0,Fe.jsx)(w0e,{}),m&&(0,Fe.jsx)(Hqe,{blockName:t,clientId:e,contentClientIds:n,isSectionBlock:o,selectedBlockStyleState:l}),!m&&p&&(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(I$,{hasBlockStyles:i,clientId:e,blockName:t,tabs:r,isSectionBlock:o,contentClientIds:n})}),!m&&!p&&(0,Fe.jsxs)(Fe.Fragment,{children:[i&&(0,Fe.jsx)(qk,{clientId:e}),(0,Fe.jsx)(dV,{contentClientIds:n}),(0,Fe.jsx)(Oe.Slot,{group:"content"}),(0,Fe.jsx)(Oe.Slot,{group:"list",ref:f}),(0,Fe.jsx)(Q2,{listViewRef:f}),!o&&(0,Fe.jsx)(ZEe,{blockName:t})]}),!m&&(0,Fe.jsx)(pV.Slot,{}),(0,Fe.jsx)(rD,{},"back")]})},XEe=Uqe;var M$=c(Rt(),1);var QEe=c(E(),1),JEe=()=>((0,M$.default)("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),dC());function e1e(e){return(0,M$.default)("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,QEe.jsx)("div",{...e,ref:dC()})}var t1e=c(Q(),1),N$=c(F(),1);var D$=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,t1e.useSelect)(g=>{let{getBlockRootClientId:b}=g(C);return{destinationRootClientId:e||b(t)||void 0}},[t,e]);return(0,D$.jsx)(n9,{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 V$=(0,N$.forwardRef)(Yqe);function qqe(e,t){return(0,D$.jsx)(V$,{...e,onPatternCategorySelection:void 0,ref:t})}var o1e=(0,N$.forwardRef)(qqe);var r1e=c(Rt(),1);function n1e(){return(0,r1e.default)("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}var i1e=c(fe(),1),h1=c(Tt(),1),mh=c(io(),1),s1e=c(E(),1),Zqe=window.navigator.userAgent.indexOf("Trident")!==-1,Xqe=new Set([mh.UP,mh.DOWN,mh.LEFT,mh.RIGHT]),Qqe=.75;function F$(){return(0,i1e.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,h1.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,h1.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,h1.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,s1e.jsx)("div",{ref:F$(),className:"block-editor__typewriter",children:e})}var eZe=Zqe?e=>e.children:Jqe,a1e=eZe;var wy=c(F(),1),z$=c(Rt(),1);var j$=c(E(),1),gV=(0,wy.createContext)({});gV.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 H$({children:e,uniqueId:t,blockName:o=""}){let r=(0,wy.useContext)(gV),{name:n}=ht();o=o||n;let i=(0,wy.useMemo)(()=>tZe(r,o,t),[r,o,t]);return(0,j$.jsx)(gV.Provider,{value:i,children:e})}function U$(e,t=""){let o=(0,wy.useContext)(gV),{name:r}=ht();return t=t||r,!!o[t]?.has(e)}var l1e=e=>((0,z$.default)("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,j$.jsx)(H$,{...e})),c1e=(...e)=>((0,z$.default)("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),U$(...e));var yV=c(U(),1),G$=c(G(),1),W$=c(F(),1),d1e=c(Tu(),1);var pa=c(U(),1);var u1e=c(G(),1),Tf=c(E(),1);function bV({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,u1e.__)("Close"),icon:tg,onClick:r})]}),t&&(0,Tf.jsx)(pa.__experimentalText,{children:t})]})}var Z_=c(E(),1);function oZe({onClose:e,onChange:t,showPopoverHeaderActions:o,isCompact:r,currentDate:n,title:i,...s},a){let l={startOfWeek:(0,d1e.getSettings)().l10n.startOfWeek,onChange:t,currentDate:r?void 0:n,currentTime:r?n:void 0,...s},u=r?yV.TimePicker:yV.DateTimePicker;return(0,Z_.jsxs)("div",{ref:a,className:"block-editor-publish-date-time-picker",children:[(0,Z_.jsx)(bV,{title:i||(0,G$.__)("Publish"),actions:o?[{label:(0,G$.__)("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,Z_.jsx)(u,{...l})]})}var $$=(0,W$.forwardRef)(oZe);function rZe(e,t){return(0,Z_.jsx)($$,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}var f1e=(0,W$.forwardRef)(rZe);var p1e=c(Rt(),1),m1e=c(F(),1);function nZe(){return(0,p1e.default)("wp.blockEditor.ToolSelector",{since:"6.9",hint:"The ToolSelector component no longer renders anything."}),null}var h1e=(0,m1e.forwardRef)(nZe);var b1=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 XD(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:De(a.attributes,d,f)})})}),a}function Wt(e,t,o){let n=(0,g1e.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,vV.useDispatch)(C)),l=(0,vV.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,B,R,I,A,P,O,N,j,D,M,V,L,z,q,J,te,ee,W,$,Y,Z,oe,ne,X,re,ae,ve,xe,ge,be,he,ke,_e,we,Re,se,ie,Ae,ye,Ee]=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"),qe=(0,wl.useMemo)(()=>({background:{backgroundImage:o,backgroundSize:r,gradient:n},color:{palette:{custom:Z,theme:ne,default:X},gradients:{custom:be,theme:he,default:ke},duotone:{custom:ve,theme:xe,default:ge},defaultGradients:_e,defaultPalette:re,defaultDuotone:ae,custom:Y,customGradient:we,customDuotone:oe,background:Re,link:se,heading:Ae,button:ye,text:ie},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:A,default:P,theme:O},customSpacingSize:I,defaultSpacingSizes:R,padding:w,margin:T,blockGap:B,units:N},border:{color:J,radius:te,style:ee,width:W,radiusSizes:$},dimensions:{aspectRatio:j,height:D,minHeight:M,minWidth:V,width:L,dimensionSizes:z},layout:q,parentLayout:t,shadow:Ee}),[o,r,n,i,s,a,l,u,d,f,p,h,m,g,b,v,y,k,_,x,S,w,T,B,R,I,A,P,O,N,j,D,M,V,L,z,q,t,J,te,ee,W,$,Y,Z,oe,ne,X,re,ae,ve,xe,ge,be,he,ke,_e,we,Re,se,ie,Ae,ye,Ee]);return dD(qe,e)}function b1e(e){e=e.map(o=>({...o,Edit:(0,wl.memo)(o.edit)}));let t=(0,K$.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[Ml]||i[Fy]&&f)||!u(n.name))return null;let m={};for(let g of d)n.attributes[g]&&(m[g]=n.attributes[g]);return(0,b1.jsx)(l,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...m},a)}),(0,b1.jsx)(o,{...n},"edit")]},"withBlockEditHooks");(0,g1.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 y1e(e){let t=(0,K$.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,b1.jsx)(sZe,{index:l,useBlockProps:f,setAllWrapperProps:s,name:n.name,clientId:n.clientId,...h},l)}),(0,b1.jsx)(o,{...n,wrapperProps:i.filter(Boolean).reduce((a,l)=>({...a,...l,className:K(a.className,l.className),style:{...a.style,...l.style}}),n.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");(0,g1.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}function v1e(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,g1.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),(0,g1.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",o=>(o.hasOwnProperty("className")&&!o.className&&delete o.className,o))}var S1e=c(ue(),1),k1e=c(go(),1);function aZe(e){let{apiVersion:t=1}=e;return t<2&&(0,S1e.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}(0,k1e.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",aZe);function _1e(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=>{_1e(l)}),["SOURCE","SCRIPT","VIDEO","LINK"].includes(a.nodeName)&&_1e(a))})})})});e()}var lZe;var x1e=c(go(),1),Cl=c(ue(),1);var Y$=c(E(),1),q$=["left","center","right","wide","full"],cZe=["wide","full"];function Z$(e,t=!0,o=!0){let r;return Array.isArray(e)?r=q$.filter(n=>e.includes(n)):e===!0?r=[...q$]: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:[...q$,""]}}),e}function dZe({name:e,align:t,setAttributes:o}){let r=Z$((0,Cl.getBlockSupport)(e,"align"),(0,Cl.hasBlockSupport)(e,"alignWide",!0)),n=Dw(r).map(({name:a})=>a),i=Er();return!n.length||i!=="default"?null:(0,Y$.jsx)(No,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,Y$.jsx)(dP,{value:t,onChange:a=>{a||(0,Cl.getBlockType)(e)?.attributes?.align?.default&&(a=""),o({align:a})},controls:n})})}var SV={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=Z$((0,Cl.getBlockSupport)(e,"align"),(0,Cl.hasBlockSupport)(e,"alignWide",!0));return Dw(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 Z$(n,i).includes(r)&&(e.className=K(`align${r}`,e.className)),e}(0,x1e.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",uZe);var w1e=c(go(),1);function mZe(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}(0,w1e.addFilter)("blocks.registerBlockType","core/lock/addAttribute",mZe);var tK=c(go(),1),tx=c(ue(),1);var y1=c(U(),1),xV=c(G(),1),N1e=c(F(),1),D1e=c(Q(),1),wV=c(ue(),1);var Ps=c(U(),1),A1e=c(F(),1),ex=c(G(),1),L1e=c(Q(),1);var J$=c(ue(),1),P1e=c(Q(),1),J_=c(U(),1),Bc=c(G(),1),kV=c(F(),1),I1e=c(fe(),1),O1e=c(Qr(),1);var X$=c(F(),1),T1e=c(fe(),1),R1e=c(U(),1);var C1e=c(U(),1);var X_=c(E(),1);function hZe({blockTypes:e,value:t,onItemChange:o}){return(0,X_.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(r=>(0,X_.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,X_.jsx)(C1e.CheckboxControl,{label:r.title,checked:t.includes(r.name),onChange:(...n)=>o(r,...n)}),(0,X_.jsx)(Et,{icon:r.icon})]},r.name))})}var E1e=hZe;var Q_=c(E(),1);function B1e({title:e,blockTypes:t,selectedBlockTypes:o,onChange:r}){let n=(0,T1e.useInstanceId)(B1e),i=(0,X$.useCallback)((f,p)=>{r(p?[...o,f]:o.filter(({name:h})=>h!==f.name))},[o,r]),s=(0,X$.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,Q_.jsxs)("div",{role:"group","aria-labelledby":l,className:"block-editor-block-manager__category",children:[(0,Q_.jsx)(R1e.CheckboxControl,{checked:u,onChange:s,className:"block-editor-block-manager__category-title",indeterminate:d,label:(0,Q_.jsx)("span",{id:l,children:e})}),(0,Q_.jsx)(E1e,{blockTypes:t,value:a,onItemChange:i})]})}var Q$=B1e;var Bf=c(E(),1);function _V({blockTypes:e,selectedBlockTypes:t,onChange:o,showSelectAll:r=!0}){let n=(0,I1e.useDebounce)(O1e.speak,500),[i,s]=(0,kV.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,P1e.useSelect)(p=>({categories:p(J$.store).getCategories(),isMatchingSearchTerm:p(J$.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,kV.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)(J_.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,Bf.jsx)(J_.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)(J_.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)(Q$,{title:p.title,blockTypes:u.filter(h=>h.category===p.slug),selectedBlockTypes:t,onChange:o},p.slug)),(0,Bf.jsx)(Q$,{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,A1e.useState)(o),{updateBlockAttributes:s}=(0,L1e.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)(Ps.Modal,{title:(0,ex._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,Pc.jsxs)(Ps.__experimentalVStack,{as:"form",onSubmit:l=>{l.preventDefault(),a()},spacing:"4",children:[(0,Pc.jsx)(Ps.__experimentalText,{children:(0,ex.__)("Select which blocks can be added inside this container.")}),(0,Pc.jsx)(_V,{blockTypes:t,selectedBlockTypes:n,onChange:l=>{i(l)}}),(0,Pc.jsxs)(Ps.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Pc.jsx)(Ps.FlexItem,{children:(0,Pc.jsx)(Ps.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,ex.__)("Cancel")})}),(0,Pc.jsx)(Ps.FlexItem,{children:(0,Pc.jsx)(Ps.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,ex.__)("Apply")})})]})]})})}var Cy=c(E(),1);function V1e({clientId:e}){let[t,o]=(0,N1e.useState)(!1),{blockTypes:r,selectedBlockNames:n}=(0,D1e.useSelect)(a=>{let{getBlockAttributes:l}=a(C);return{blockTypes:a(wV.store).getBlockTypes(),selectedBlockNames:l(e)?.allowedBlocks}},[e]),i=r.filter(a=>(0,wV.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,Cy.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,Cy.jsxs)(y1.BaseControl,{help:(0,xV.__)("Specify which blocks are allowed inside this container."),children:[(0,Cy.jsx)(y1.BaseControl.VisualLabel,{children:(0,xV.__)("Allowed Blocks")}),(0,Cy.jsx)(y1.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{o(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,xV.__)("Manage allowed blocks")})]}),t&&(0,Cy.jsx)(M1e,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>o(!1)})]})}var eK=c(E(),1);function gZe({clientId:e}){return Er()==="contentOnly"?null:(0,eK.jsx)($C.Fill,{children:(0,eK.jsx)(V1e,{clientId:e})})}var F1e={edit:gZe,attributeKeys:["allowedBlocks"],hasSupport(e){return(0,tx.hasBlockSupport)(e,"allowedBlocks")}};function bZe(e){return e?.attributes?.allowedBlocks?.type||(0,tx.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}(0,tK.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",bZe);function yZe(e,t,o,r){if(!(0,tx.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,tx.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,tK.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",yZe);var z1e=c(go(),1),CV=c(U(),1),v1=c(G(),1),EV=c(ue(),1);var hh=c(E(),1),vZe=/[\s#]/g;function SZe(e){return"type"in(e.attributes?.anchor??{})||(0,EV.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e}function kZe({anchor:e,setAttributes:t}){return Er()!=="default"?null:(0,hh.jsx)(Oe,{group:"advanced",children:(0,hh.jsx)(CV.TextControl,{className:"html-anchor-control",label:(0,v1.__)("HTML anchor"),help:(0,hh.jsxs)(hh.Fragment,{children:[(0,v1.__)("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,hh.jsx)(CV.ExternalLink,{href:(0,v1.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,v1.__)("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 oK={addSaveProps:_Ze,edit:kZe,attributeKeys:["anchor"],hasSupport(e){return(0,EV.hasBlockSupport)(e,"anchor")}};function _Ze(e,t,o){return(0,EV.hasBlockSupport)(t,"anchor")&&(e.id=o.anchor===""?null:o.anchor),e}(0,z1e.addFilter)("blocks.registerBlockType","core/anchor/attribute",SZe);var j1e=c(go(),1),TV=c(ue(),1);function xZe(e){return e?.attributes?.ariaLabel?.type||(0,TV.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}function wZe(e,t,o){return(0,TV.hasBlockSupport)(t,"ariaLabel")&&!Wt(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=o.ariaLabel===""?null:o.ariaLabel),e}var H1e={addSaveProps:wZe,attributeKeys:["ariaLabel"],hasSupport(e){return(0,TV.hasBlockSupport)(e,"ariaLabel")}};(0,j1e.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",xZe);var hx=c(ue(),1),ZBe=c(fe(),1),B5=c(U(),1),P5=c(Q(),1);var rK=c(G(),1);var Jo="isAny",er="isNone",Si="isAll",ki="isNotAll",Zi="between",Xi="inThePast",Is="over",mr="is",hr="isNot",gh="lessThan",bh="greaterThan",yh="lessThanOrEqual",vh="greaterThanOrEqual",Sh="before",kh="after",_h="beforeInc",xh="afterInc",Hu="contains",Uu="notContains",Gu="startsWith",wh="on",Ch="notOn";var Eno={asc:(0,rK.__)("Sort ascending"),desc:(0,rK.__)("Sort descending")};var U1e=c(Bx(),1),{lock:Rno,unlock:so}=(0,U1e.__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 S1=c(F(),1),CZe=[];function Os({elements:e,getElements:t}){let o=Array.isArray(e)&&e.length>0?e:CZe,[r,n]=(0,S1.useState)(o),[i,s]=(0,S1.useState)(!1);return(0,S1.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,RV=6048e5,G1e=864e5;var TZe=3600;var W1e=TZe*24,Ono=W1e*7,RZe=W1e*365.2425,BZe=RZe/12,Ano=BZe*3,nK=Symbol.for("constructDateFrom");function yn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&nK in e?e[nK](t):e instanceof Date?new e.constructor(t):new Date(t)}function po(e,t){return yn(t||e,e)}function BV(e,t,o){let r=po(e,o?.in);return isNaN(t)?yn(o?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function PV(e,t,o){let r=po(e,o?.in);if(isNaN(t))return yn(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),i=yn(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 Eh(){return PZe}function Pf(e,t){let o=Eh(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=po(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 Ey(e,t){return Pf(e,{...t,weekStartsOn:1})}function IV(e,t){let o=po(e,t?.in),r=o.getFullYear(),n=yn(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ey(n),s=yn(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let a=Ey(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=a.getTime()?r:r-1}function iK(e){let t=po(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 $1e(e,...t){let o=yn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function sK(e,t){let o=po(e,t?.in);return o.setHours(0,0,0,0),o}function K1e(e,t,o){let[r,n]=$1e(o?.in,e,t),i=sK(r),s=sK(n),a=+i-iK(i),l=+s-iK(s);return Math.round((a-l)/G1e)}function Y1e(e,t){let o=IV(e,t),r=yn(t?.in||e,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Ey(r)}function q1e(e,t,o){return BV(e,t*7,o)}function Z1e(e,t,o){return PV(e,t*12,o)}function X1e(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function If(e){return!(!X1e(e)&&typeof e!="number"||isNaN(+po(e)))}function Q1e(e,t){let o=po(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function OV(e,t){let o=po(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"}},J1e=(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 AV(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}}"},eTe={date:AV({formats:OZe,defaultWidth:"full"}),time:AV({formats:AZe,defaultWidth:"full"}),dateTime:AV({formats:LZe,defaultWidth:"full"})};var MZe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tTe=(e,t,o,r)=>MZe[e];function ox(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 NZe={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"},oTe={ordinalNumber:HZe,era:ox({values:NZe,defaultWidth:"wide"}),quarter:ox({values:DZe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ox({values:VZe,defaultWidth:"wide"}),day:ox({values:FZe,defaultWidth:"wide"}),dayPeriod:ox({values:zZe,defaultWidth:"wide",formattingValues:jZe,defaultFormattingWidth:"wide"})};function rx(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 rTe(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}},nTe={ordinalNumber:rTe({matchPattern:WZe,parsePattern:$Ze,valueCallback:e=>parseInt(e,10)}),era:rx({matchPatterns:KZe,defaultMatchWidth:"wide",parsePatterns:YZe,defaultParseWidth:"any"}),quarter:rx({matchPatterns:qZe,defaultMatchWidth:"wide",parsePatterns:ZZe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:rx({matchPatterns:XZe,defaultMatchWidth:"wide",parsePatterns:QZe,defaultParseWidth:"any"}),day:rx({matchPatterns:JZe,defaultMatchWidth:"wide",parsePatterns:eXe,defaultParseWidth:"any"}),dayPeriod:rx({matchPatterns:tXe,defaultMatchWidth:"any",parsePatterns:oXe,defaultParseWidth:"any"})};var aK={code:"en-US",formatDistance:J1e,formatLong:eTe,formatRelative:tTe,localize:oTe,match:nTe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function iTe(e,t){let o=po(e,t?.in);return K1e(o,OV(o))+1}function sTe(e,t){let o=po(e,t?.in),r=+Ey(o)-+Y1e(o);return Math.round(r/RV)+1}function LV(e,t){let o=po(e,t?.in),r=o.getFullYear(),n=Eh(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=yn(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=Pf(s,t),l=yn(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 aTe(e,t){let o=Eh(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=LV(e,t),i=yn(t?.in||e,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Pf(i,t)}function lTe(e,t){let o=po(e,t?.in),r=+Pf(o,t)-+aTe(o,t);return Math.round(r/RV)+1}function Xt(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 Xt(t==="yy"?r%100:r,t.length)},M(e,t){let o=e.getMonth();return t==="M"?String(o+1):Xt(o+1,2)},d(e,t){return Xt(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 Xt(e.getHours()%12||12,t.length)},H(e,t){return Xt(e.getHours(),t.length)},m(e,t){return Xt(e.getMinutes(),t.length)},s(e,t){return Xt(e.getSeconds(),t.length)},S(e,t){let o=t.length,r=e.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return Xt(n,t.length)}};var nx={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lK={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=LV(e,r),i=n>0?n:1-n;if(t==="YY"){let s=i%100;return Xt(s,2)}return t==="Yo"?o.ordinalNumber(i,{unit:"year"}):Xt(i,t.length)},R:function(e,t){let o=IV(e);return Xt(o,t.length)},u:function(e,t){let o=e.getFullYear();return Xt(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 Xt(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 Xt(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 Xt(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=lTe(e,r);return t==="wo"?o.ordinalNumber(n,{unit:"week"}):Xt(n,t.length)},I:function(e,t,o){let r=sTe(e);return t==="Io"?o.ordinalNumber(r,{unit:"week"}):Xt(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=iTe(e);return t==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Xt(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 Xt(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 Xt(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 Xt(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=nx.noon:r===0?n=nx.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=nx.evening:r>=12?n=nx.afternoon:r>=4?n=nx.morning:n=nx.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"}):Xt(r,t.length)},k:function(e,t,o){let r=e.getHours();return r===0&&(r=24),t==="ko"?o.ordinalNumber(r,{unit:"hour"}):Xt(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 uTe(r);case"XXXX":case"XX":return Ty(r);default:return Ty(r,":")}},x:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"x":return uTe(r);case"xxxx":case"xx":return Ty(r);default:return Ty(r,":")}},O:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cTe(r,":");default:return"GMT"+Ty(r,":")}},z:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cTe(r,":");default:return"GMT"+Ty(r,":")}},t:function(e,t,o){let r=Math.trunc(+e/1e3);return Xt(r,t.length)},T:function(e,t,o){return Xt(+e,t.length)}};function cTe(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+Xt(i,2)}function uTe(e,t){return e%60===0?(e>0?"-":"+")+Xt(Math.abs(e)/60,2):Ty(e,t)}function Ty(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=Xt(Math.trunc(r/60),2),i=Xt(r%60,2);return o+n+t+i}var dTe=(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"})}},fTe=(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 dTe(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}}",dTe(r,t)).replace("{{time}}",fTe(n,t))},pTe={p:fTe,P:rXe};var nXe=/^D+$/,iXe=/^Y+$/,sXe=["D","DD","YY","YYYY"];function mTe(e){return nXe.test(e)}function hTe(e){return iXe.test(e)}function gTe(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 cK(e,t,o){let r=Eh(),n=o?.locale??r.locale??aK,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=po(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=pTe[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(lK[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&&hTe(f)||!o?.useAdditionalDayOfYearTokens&&mTe(f))&&gTe(f,t,String(e));let p=lK[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 Ry(e,t,o){return BV(e,-t,o)}function MV(e,t,o){return PV(e,-t,o)}function bTe(e,t,o){return q1e(e,-t,o)}function NV(e,t,o){return Z1e(e,-t,o)}var He=c(G(),1),Tr=c(F(),1),Qi=c(Tu(),1);var uK=c(E(),1),Zr={Name:(0,uK.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,uK.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function yTe(e,t){switch(t){case"days":return Ry(new Date,e);case"weeks":return bTe(new Date,e);case"months":return MV(new Date,e);case"years":return NV(new Date,e);default:return new Date}}var vTe={label:(0,He.__)("Is none of"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),Zr),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"},STe=[{name:Jo,label:(0,He.__)("Includes"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),Zr),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:er,...vTe},{name:Si,label:(0,He.__)("Includes all"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),Zr),filter(e,t,o){return o?.length?o.every(r=>t.getValue({item:e})?.includes(r)):!0},selection:"multi"},{name:ki,...vTe},{name:Zi,label:(0,He.__)("Between (inc)"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),Zr),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:Xi,label:(0,He.__)("In the past"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),Zr),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=yTe(o.value,o.unit),n=(0,Qi.getDate)(t.getValue({item:e}));return n>=r&&n<=new Date},selection:"custom"},{name:Is,label:(0,He.__)("Over"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),Zr),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=yTe(o.value,o.unit);return(0,Qi.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:mr,label:(0,He.__)("Is"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){return o===t.getValue({item:e})||o===void 0},selection:"single"},{name:hr,label:(0,He.__)("Is not"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){return o!==t.getValue({item:e})},selection:"single"},{name:gh,label:(0,He.__)("Less than"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<o},selection:"single"},{name:bh,label:(0,He.__)("Greater than"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>o},selection:"single"},{name:yh,label:(0,He.__)("Less than or equal"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<=o},selection:"single"},{name:vh,label:(0,He.__)("Greater than or equal"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>=o},selection:"single"},{name:Sh,label:(0,He.__)("Before"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Qi.getDate)(o);return(0,Qi.getDate)(t.getValue({item:e}))<r},selection:"single"},{name:kh,label:(0,He.__)("After"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Qi.getDate)(o);return(0,Qi.getDate)(t.getValue({item:e}))>r},selection:"single"},{name:_h,label:(0,He.__)("Before (inc)"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Qi.getDate)(o);return(0,Qi.getDate)(t.getValue({item:e}))<=r},selection:"single"},{name:xh,label:(0,He.__)("After (inc)"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Qi.getDate)(o);return(0,Qi.getDate)(t.getValue({item:e}))>=r},selection:"single"},{name:Hu,label:(0,He.__)("Contains"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),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,He.__)("Doesn't contain"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),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,He.__)("Starts with"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),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:wh,label:(0,He.__)("On"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Qi.getDate)(o),n=(0,Qi.getDate)(t.getValue({item:e}));return r.getTime()===n.getTime()},selection:"single"},{name:Ch,label:(0,He.__)("Not on"),filterText:(e,t)=>(0,Tr.createInterpolateElement)((0,He.sprintf)((0,He.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),Zr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Qi.getDate)(o),n=(0,Qi.getDate)(t.getValue({item:e}));return r.getTime()!==n.getTime()},selection:"single"}],kTe=e=>STe.find(t=>t.name===e),_Te=()=>STe.map(e=>e.name);var xTe=c(U(),1),wTe=c(F(),1);function ao(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 CTe=c(E(),1),{ValidatedCheckboxControl:mXe}=so(xTe.privateApis);function ETe({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,wTe.useCallback)(()=>{t(a({item:o,value:!s({item:o})}))},[o,s,t,a]);return(0,CTe.jsx)(mXe,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:ao(d,i),hidden:r,label:l,help:u,checked:s({item:o}),onChange:p,disabled:f})}var DV=c(U(),1),TTe=c(F(),1);var dK=c(E(),1),{ValidatedComboboxControl:hXe}=so(DV.privateApis);function VV({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,TTe.useCallback)(g=>o(u({item:e,value:g??""})),[e,o,u]),{elements:h,isLoading:m}=Os({elements:t.elements,getElements:t.getElements});return m?(0,dK.jsx)(DV.Spinner,{}):(0,dK.jsx)(hXe,{required:!!t.isValid?.required,customValidity:ao(d,n),label:i,value:f,help:s,placeholder:a,options:h,onChange:p,hideLabelFromVision:r,allowReset:!0,expandOnFocus:!0})}var jV=c(U(),1),El=c(F(),1),zV=c(G(),1),ma=c(Tu(),1);var sx=c(U(),1),fK=c(F(),1),Wu=c(G(),1);var ix=c(E(),1),gXe={[Xi]:[{value:"days",label:(0,Wu.__)("Days")},{value:"weeks",label:(0,Wu.__)("Weeks")},{value:"months",label:(0,Wu.__)("Months")},{value:"years",label:(0,Wu.__)("Years")}],[Is]:[{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 FV({className:e,data:t,field:o,onChange:r,hideLabelFromVision:n,operator:i}){let s=gXe[i===Xi?"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,fK.useCallback)(y=>r(f({item:t,value:{value:Number(y),unit:g}})),[r,f,t,g]),v=(0,fK.useCallback)(y=>r(f({item:t,value:{value:m,unit:y}})),[r,f,t,m]);return(0,ix.jsx)(sx.BaseControl,{id:a,className:K(e,"dataviews-controls__relative-date"),label:l,hideLabelFromVision:n,help:u,children:(0,ix.jsxs)(Qe,{direction:"row",gap:"sm",children:[(0,ix.jsx)(sx.__experimentalNumberControl,{className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:m,onChange:b,disabled:p}),(0,ix.jsx)(sx.SelectControl,{className:"dataviews-controls__relative-date-unit",label:(0,Wu.__)("Unit"),value:g,options:s,onChange:v,hideLabelFromVision:!0,disabled:p})]})})}var RTe=c(F(),1);function k1(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,RTe.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 BTe=c(Tu(),1);function _1(e){if(!e)return null;let t=(0,BTe.getDate)(e);return t&&If(t)?t:null}var Th=c(E(),1),{DateCalendar:bXe,ValidatedInputControl:yXe}=so(jV.privateApis),pK=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)(()=>_1(b)||new Date),k=(0,El.useRef)(null),S=(0,El.useRef)(void 0),_=(0,El.useRef)(null),{minConstraint:x,maxConstraint:w,disabledMatchers:T}=k1(h,_1),B=(0,El.useCallback)(j=>o(f({item:e,value:j})),[e,o,f]);(0,El.useEffect)(()=>()=>{S.current&&clearTimeout(S.current)},[]);let R=(0,El.useCallback)(j=>{let D;if(j){let M=(0,ma.dateI18n)("Y-m-d",j),V;b?V=(0,ma.dateI18n)("H:i",(0,ma.getDate)(b)):V=(0,ma.dateI18n)("H:i",j),D=(0,ma.getDate)(`${M}T${V}`).toISOString(),B(D),S.current&&clearTimeout(S.current)}else B(void 0);_.current=k.current&&k.current.ownerDocument.activeElement,S.current=setTimeout(()=>{k.current&&(k.current.focus(),k.current.blur(),B(D),_.current&&_.current instanceof HTMLElement&&_.current.focus())},0)},[B,b]),I=(0,El.useCallback)(j=>{if(j){let D=(0,ma.getDate)(j);B(D.toISOString());let M=_1(D.toISOString());M&&y(M)}else B(void 0)},[B]),{format:A}=t,P=A.weekStartsOn??(0,ma.getSettings)().l10n.startOfWeek,{timezone:{string:O}}=(0,ma.getSettings)(),N=u;return h?.required&&!n&&!r?N=`${u} (${(0,zV.__)("Required")})`:!h?.required&&n&&!r&&(N=`${u} (${(0,zV.__)("Optional")})`),(0,Th.jsx)(jV.BaseControl,{id:l,label:N,help:d,hideLabelFromVision:r,children:(0,Th.jsxs)(Qe,{direction:"column",gap:"lg",children:[(0,Th.jsx)(yXe,{ref:k,required:!!h?.required,customValidity:ao(h,i),type:"datetime-local",label:(0,zV.__)("Date time"),hideLabelFromVision:!0,value:pK(b),onChange:I,disabled:m,min:x?pK(x):void 0,max:w?pK(w):void 0}),!a&&(0,Th.jsx)(bXe,{style:{width:"100%"},selected:b&&_1(b)||void 0,onSelect:R,month:v,onMonthChange:y,timeZone:O||void 0,weekStartsOn:P,disabled:m||T})]})})}function PTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s,config:a}){return i===Xi||i===Is?(0,Th.jsx)(FV,{className:"dataviews-controls__datetime",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):(0,Th.jsx)(vXe,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,config:a})}var xi=c(U(),1),ITe=c(Qr(),1),ro=c(F(),1),vn=c(G(),1),_i=c(Tu(),1);var Io=c(E(),1),{DateCalendar:SXe,DateRangeCalendar:kXe}=so(xi.privateApis),_Xe=[{id:"today",label:(0,vn.__)("Today"),getValue:()=>(0,_i.getDate)(null)},{id:"yesterday",label:(0,vn.__)("Yesterday"),getValue:()=>{let e=(0,_i.getDate)(null);return Ry(e,1)}},{id:"past-week",label:(0,vn.__)("Past week"),getValue:()=>{let e=(0,_i.getDate)(null);return Ry(e,7)}},{id:"past-month",label:(0,vn.__)("Past month"),getValue:()=>{let e=(0,_i.getDate)(null);return MV(e,1)}}],xXe=[{id:"last-7-days",label:(0,vn.__)("Last 7 days"),getValue:()=>{let e=(0,_i.getDate)(null);return[Ry(e,7),e]}},{id:"last-30-days",label:(0,vn.__)("Last 30 days"),getValue:()=>{let e=(0,_i.getDate)(null);return[Ry(e,30),e]}},{id:"month-to-date",label:(0,vn.__)("Month to date"),getValue:()=>{let e=(0,_i.getDate)(null);return[Q1e(e),e]}},{id:"last-year",label:(0,vn.__)("Last year"),getValue:()=>{let e=(0,_i.getDate)(null);return[NV(e,1),e]}},{id:"year-to-date",label:(0,vn.__)("Year to date"),getValue:()=>{let e=(0,_i.getDate)(null);return[OV(e),e]}}],Rh=e=>{if(!e)return null;let t=(0,_i.getDate)(e);return t&&If(t)?t:null},mK=e=>e?typeof e=="string"?e:cK(e,"yyyy-MM-dd"):"";function OTe({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?ao(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?ao(s,t):void 0;f?l(f):u()},[r,s,t,u]),(0,ro.useEffect)(()=>{r&&a?.message&&(0,ITe.speak)(a.message)},[r,a?.message]),(0,Io.jsxs)("div",{onBlur:f=>{r||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[i,a&&(0,Io.jsxs)("p",{className:K("components-validated-control__indicator",a.type==="invalid"?"is-invalid":void 0),children:[(0,Io.jsx)(xi.Icon,{className:"components-validated-control__indicator-icon",icon:ag,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,_i.getSettings)().l10n.startOfWeek,v=d({item:e}),y=typeof v=="string"?v:void 0,[k,S]=(0,ro.useState)(()=>Rh(y)||new Date),[_,x]=(0,ro.useState)(!1),w=(0,ro.useRef)(null),{minConstraint:T,maxConstraint:B,disabledMatchers:R}=k1(f,Rh),I=(0,ro.useCallback)(D=>o(u({item:e,value:D})),[e,o,u]),A=(0,ro.useCallback)(D=>{let M=D?cK(D,"yyyy-MM-dd"):void 0;I(M),g(null),x(!0)},[I]),P=(0,ro.useCallback)(D=>{let M=D.getValue(),V=mK(M);S(M),I(V),g(D.id),x(!0)},[I]),O=(0,ro.useCallback)(D=>{if(I(D),D){let M=Rh(D);M&&S(M)}g(null),x(!0)},[I]),{timezone:{string:N}}=(0,_i.getSettings)(),j=a;return f?.required&&!n?j=`${a} (${(0,vn.__)("Required")})`:!f?.required&&n&&(j=`${a} (${(0,vn.__)("Optional")})`),(0,Io.jsx)(OTe,{field:t,validity:i,inputRefs:w,isTouched:_,setIsTouched:x,children:(0,Io.jsx)(xi.BaseControl,{id:s,className:"dataviews-controls__date",label:j,help:l,hideLabelFromVision:r,children:(0,Io.jsxs)(Qe,{direction:"column",gap:"lg",children:[(0,Io.jsxs)(Qe,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[_Xe.map(D=>{let M=m===D.id;return(0,Io.jsx)(xi.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:M,size:"small",disabled:h,accessibleWhenDisabled:!0,onClick:()=>P(D),children:D.label},D.id)}),(0,Io.jsx)(xi.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!m,size:"small",disabled:!!m||h,accessibleWhenDisabled:!0,children:(0,vn.__)("Custom")})]}),(0,Io.jsx)(xi.__experimentalInputControl,{ref:w,type:"date",label:(0,vn.__)("Date"),hideLabelFromVision:!0,value:y,onChange:O,required:!!t.isValid?.required,disabled:h,min:T,max:B}),(0,Io.jsx)(SXe,{style:{width:"100%"},selected:y&&Rh(y)||void 0,onSelect:A,month:k,onMonthChange:S,timeZone:N||void 0,weekStartsOn:b,disabled:h||R,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(L=>typeof L=="string")&&(m=g);let b=p.weekStartsOn??(0,_i.getSettings)().l10n.startOfWeek,{minConstraint:v,maxConstraint:y,disabledMatchers:k}=k1(f,Rh),S=(0,ro.useCallback)(L=>{o(d({item:e,value:L}))},[e,o,d]),[_,x]=(0,ro.useState)(null),w=(0,ro.useMemo)(()=>{if(!m)return{from:void 0,to:void 0};let[L,z]=m;return{from:Rh(L)||void 0,to:Rh(z)||void 0}},[m]),[T,B]=(0,ro.useState)(()=>w.from||new Date),[R,I]=(0,ro.useState)(!1),A=(0,ro.useRef)(null),P=(0,ro.useRef)(null),O=(0,ro.useCallback)((L,z)=>{L&&z?S([mK(L),mK(z)]):!L&&!z&&S(void 0)},[S]),N=(0,ro.useCallback)(L=>{O(L?.from,L?.to),x(null),I(!0)},[O]),j=(0,ro.useCallback)(L=>{let[z,q]=L.getValue();B(z),O(z,q),x(L.id),I(!0)},[O]),D=(0,ro.useCallback)((L,z)=>{let[q,J]=m||[void 0,void 0];if(O(L==="from"?z:q,L==="to"?z:J),z){let W=Rh(z);W&&B(W)}x(null),I(!0)},[m,O]),{timezone:M}=(0,_i.getSettings)(),V=a;return t.isValid?.required&&!n?V=`${a} (${(0,vn.__)("Required")})`:!t.isValid?.required&&n&&(V=`${a} (${(0,vn.__)("Optional")})`),(0,Io.jsx)(OTe,{field:t,validity:i,inputRefs:[A,P],isTouched:R,setIsTouched:I,children:(0,Io.jsx)(xi.BaseControl,{id:s,className:"dataviews-controls__date",label:V,help:l,hideLabelFromVision:r,children:(0,Io.jsxs)(Qe,{direction:"column",gap:"lg",children:[(0,Io.jsxs)(Qe,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[xXe.map(L=>{let z=_===L.id;return(0,Io.jsx)(xi.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:z,size:"small",disabled:h,accessibleWhenDisabled:!0,onClick:()=>j(L),children:L.label},L.id)}),(0,Io.jsx)(xi.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!_,size:"small",accessibleWhenDisabled:!0,disabled:!!_||h,children:(0,vn.__)("Custom")})]}),(0,Io.jsxs)(Qe,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,Io.jsx)(xi.__experimentalInputControl,{ref:A,type:"date",label:(0,vn.__)("From"),hideLabelFromVision:!0,value:m?.[0],onChange:L=>D("from",L),required:!!t.isValid?.required,disabled:h,min:v,max:y}),(0,Io.jsx)(xi.__experimentalInputControl,{ref:P,type:"date",label:(0,vn.__)("To"),hideLabelFromVision:!0,value:m?.[1],onChange:L=>D("to",L),required:!!t.isValid?.required,disabled:h,min:v,max:y})]}),(0,Io.jsx)(kXe,{style:{width:"100%"},selected:w,onSelect:N,month:T,onMonthChange:B,timeZone:M.string||void 0,weekStartsOn:b,disabled:h||k})]})})})}function ATe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){return i===Xi||i===Is?(0,Io.jsx)(FV,{className:"dataviews-controls__date",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):i===Zi?(0,Io.jsx)(CXe,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s}):(0,Io.jsx)(wXe,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s})}var HV=c(U(),1),LTe=c(F(),1);var hK=c(E(),1),{ValidatedSelectControl:EXe}=so(HV.privateApis);function UV({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,LTe.useCallback)(y=>o(d({item:e,value:y})),[e,o,d]),{elements:b,isLoading:v}=Os({elements:t.elements,getElements:t.getElements});return v?(0,hK.jsx)(HV.Spinner,{}):(0,hK.jsx)(EXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:ao(f,i),label:a,value:m,help:l,options:b,onChange:g,hideLabelFromVision:r,multiple:h,disabled:p})}var gK=c(E(),1),TXe=10;function MTe(e){let{field:t}=e,{elements:o}=Os({elements:t.elements,getElements:t.getElements});return o.length>=TXe?(0,gK.jsx)(VV,{...e}):(0,gK.jsx)(UV,{...e})}var WV=c(U(),1);var NTe=c(U(),1),DTe=c(F(),1);var VTe=c(E(),1),{ValidatedInputControl:RXe}=so(NTe.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,DTe.useCallback)(y=>o(h({item:e,value:y})),[e,h,o]);return(0,VTe.jsx)(RXe,{required:!!m.required,markWhenOptional:n,customValidity:ao(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 GV=c(E(),1);function FTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,GV.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"email",prefix:(0,GV.jsx)(WV.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,GV.jsx)(WV.Icon,{icon:S3})})})}var KV=c(U(),1);var $V=c(E(),1);function zTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,$V.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"tel",prefix:(0,$V.jsx)(KV.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,$V.jsx)(KV.Icon,{icon:Jx})})})}var qV=c(U(),1);var YV=c(E(),1);function jTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,YV.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"url",prefix:(0,YV.jsx)(qV.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,YV.jsx)(qV.Icon,{icon:ss})})})}var Af=c(U(),1),x1=c(F(),1),ZV=c(G(),1);var Bh=c(E(),1),{ValidatedNumberControl:BXe}=so(Af.privateApis);function HTe(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,x1.useCallback)(l=>t([HTe(l),i]),[t,i]),a=(0,x1.useCallback)(l=>t([n,HTe(l)]),[t,n]);return(0,Bh.jsx)(Af.BaseControl,{help:(0,ZV.__)("The max. value must be greater than the min. value."),children:(0,Bh.jsxs)(Af.Flex,{direction:"row",gap:4,children:[(0,Bh.jsx)(Af.__experimentalNumberControl,{label:(0,ZV.__)("Min."),value:n,max:i?Number(i)-r:void 0,onChange:s,hideLabelFromVision:o,step:r}),(0,Bh.jsx)(Af.__experimentalNumberControl,{label:(0,ZV.__)("Max."),value:i,min:n?Number(n)+r:void 0,onChange:a,hideLabelFromVision:o,step:r})]})})}function XV({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,x1.useCallback)(y=>{o(p({item:e,value:["",void 0].includes(y)?void 0:Number(y)}))},[e,o,p]),v=(0,x1.useCallback)(y=>{o(p({item:e,value:y}))},[e,o,p]);if(i===Zi){let y=["",""];return Array.isArray(m)&&m.length===2&&m.every(k=>typeof k=="number"||k==="")&&(y=m),(0,Bh.jsx)(PXe,{value:y,onChange:v,hideLabelFromVision:r,step:l})}return(0,Bh.jsx)(BXe,{required:!!h.required,markWhenOptional:n,customValidity:ao(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 UTe=c(E(),1);function GTe(e){return(0,UTe.jsx)(XV,{...e})}var WTe=c(E(),1);function $Te(e){return(0,WTe.jsx)(XV,{...e})}var QV=c(U(),1),KTe=c(F(),1);var bK=c(E(),1),{ValidatedRadioControl:IXe}=so(QV.privateApis);function YTe({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}=Os({elements:t.elements,getElements:t.getElements}),m=l({item:e}),g=(0,KTe.useCallback)(b=>o(u({item:e,value:b})),[e,o,u]);return h?(0,bK.jsx)(QV.Spinner,{}):(0,bK.jsx)(IXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:ao(d,i),label:s,help:a,onChange:g,options:p,selected:m,hideLabelFromVision:r,disabled:f})}var yK=c(F(),1);var qTe=c(E(),1);function ZTe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{prefix:a,suffix:l}=i||{};return(0,qTe.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,prefix:a?(0,yK.createElement)(a):void 0,suffix:l?(0,yK.createElement)(l):void 0})}var XTe=c(U(),1),QTe=c(F(),1);var JTe=c(E(),1),{ValidatedToggleControl:OXe}=so(XTe.privateApis);function eRe({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,QTe.useCallback)(()=>{t(u({item:o,value:!l({item:o})}))},[t,u,o,l]);return(0,JTe.jsx)(OXe,{required:!!d.required,markWhenOptional:n,customValidity:ao(d,i),hidden:r,label:s,help:a,checked:l({item:o}),onChange:p,disabled:f})}var tRe=c(U(),1),oRe=c(F(),1);var rRe=c(E(),1),{ValidatedTextareaControl:AXe}=so(tRe.privateApis);function nRe({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,oRe.useCallback)(b=>o(p({item:e,value:b})),[e,o,p]);return(0,rRe.jsx)(AXe,{required:!!h.required,markWhenOptional:n,customValidity:ao(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 uRe=c(F(),1);var ax=c(U(),1),Ih=c(fe(),1),ha=c(F(),1),e5=c(Ko(),1);var LXe=[];function iRe({allowedFormats:e,disableFormats:t}){return t?LXe:e}var JV=c(Ko(),1),sRe=c(E(),1),aRe=c(ce(),1),MXe={};function NXe({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,JV.getActiveFormat)(o,s),u=l!==void 0,d=(0,JV.getActiveObject)(o),f=d!==void 0&&d.type===s;return(0,sRe.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:MXe},s)}function lRe({formatTypes:e,...t}){return e.map(o=>(0,aRe.createElement)(NXe,{settings:o,...t,key:o.name}))}var Ph=c(E(),1),{ValidatedContentEditableControl:DXe,withIgnoreIMEEvents:VXe}=so(ax.privateApis),{useRichText:FXe,KeyboardShortcutContext:zXe,InputEventContext:jXe,shortcutsListener:HXe,inputEventsListener:UXe}=so(e5.privateApis),GXe=[];function cRe({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),B=(0,ha.useRef)(new Set),R=(0,ha.useRef)(new Set),I=(0,Ih.__experimentalUseFocusOutside)(()=>w(!1)),A=iRe({allowedFormats:h,disableFormats:m}),{value:P,onChange:O,ref:N,formatTypes:j,getValue:D}=FXe({value:t,onChange:o,selectionStart:S.start,selectionEnd:S.end,onSelectionChange:($,Y)=>_({start:$,end:Y}),__unstableIsSelected:x,preserveWhiteSpace:!!b,placeholder:r,__unstableDisableFormats:m,allowedFormats:A,withoutInteractiveFormatting:g,__unstableFormatTypeHandlerContext:(0,ha.useMemo)(()=>({richTextIdentifier:n,blockClientId:i}),[n,i])});function M(){T.current?.focus()}let V=(0,ha.useRef)({keyboardShortcuts:R,inputEvents:B}),L=(0,ha.useRef)({formatTypes:j,getValue:D,onChange:O});(0,ha.useInsertionEffect)(()=>{L.current={formatTypes:j,getValue:D,onChange:O}});let z=(0,Ih.useRefEffect)($=>{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:ne}=L.current,X=oe();ne((0,e5.insert)(X,`
`,X.start??X.text.length,X.end??X.text.length))});return $.addEventListener("keydown",Y),()=>$.removeEventListener("keydown",Y)},[v,u]),q=(0,Ih.useRefEffect)($=>{if(!x)return;let Y=HXe(V)($),Z=UXe(V)($);function oe(ne){if(ne.inputType!=="insertText"&&ne.type!=="compositionend")return;let{formatTypes:X,getValue:re,onChange:ae}=L.current,ve=re(),xe=X.reduce((ge,{__unstableInputRule:be})=>be?be(ge):ge,ve);xe!==ve&&ae({...xe,activeFormats:ve.activeFormats})}return $.addEventListener("input",oe),$.addEventListener("compositionend",oe),()=>{Y(),Z(),$.removeEventListener("input",oe),$.removeEventListener("compositionend",oe)}},[x]),{ref:J,...te}=(0,ax.__unstableUseAutocompleteProps)({completers:k,record:P,onChange:O,onReplace:()=>{}}),ee=(0,Ih.useRefEffect)($=>{y&&!u&&$.focus()},[y,u]),W=(0,Ih.useMergeRefs)([N,T,q,z,ee,J]);return(0,Ph.jsx)("div",{...I,onFocus:$=>{w(!0),I.onFocus($)},children:(0,Ph.jsxs)(ax.SlotFillProvider,{children:[(0,Ph.jsx)(DXe,{label:e,id:n,className:K("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,Ph.jsx)(zXe.Provider,{value:R,children:(0,Ph.jsx)(jXe.Provider,{value:B,children:(0,Ph.jsx)(lRe,{value:P,onChange:O,onFocus:M,formatTypes:j,forwardedRef:T,isVisible:!0})})})]})})}var dRe=c(E(),1);function fRe({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,uRe.useCallback)(w=>o(k({item:e,value:w})),[e,o,k]);return(0,dRe.jsx)(cRe,{label:g,value:_,onChange:x,placeholder:b,id:y,hideLabelFromVision:r,help:v,disabled:m,required:!!S.required,markWhenOptional:n,customValidity:ao(S,s),className:a,clientId:l,allowedFormats:u,disableFormats:d,withoutInteractiveFormatting:f,preserveWhiteSpace:p,disableLineBreaks:h})}var lx=c(U(),1),pRe=c(F(),1);var t5=c(E(),1),{ValidatedToggleGroupControl:WXe}=so(lx.privateApis);function mRe({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,pRe.useCallback)(g=>o(a({item:e,value:g})),[e,o,a]),{elements:p,isLoading:h}=Os({elements:t.elements,getElements:t.getElements});if(h)return(0,t5.jsx)(lx.Spinner,{});if(p.length===0)return null;let m=p.find(g=>g.value===d);return(0,t5.jsx)(WXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:ao(l,i),isBlock:!0,label:t.label,help:m?.description||t.description,onChange:f,value:d,hideLabelFromVision:r,children:p.map(g=>(0,t5.jsx)(lx.__experimentalToggleGroupControlOption,{label:g.label,value:g.value,disabled:u},g.value))})}var o5=c(U(),1),r5=c(F(),1);var w1=c(E(),1),{ValidatedFormTokenField:$Xe}=so(o5.privateApis);function hRe({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}=Os({elements:t.elements,getElements:t.getElements}),b=(0,r5.useMemo)(()=>Array.isArray(p)?p.map(y=>m?.find(S=>S.value===y)||{value:y,label:y}):[],[p,m]),v=(0,r5.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,w1.jsx)(o5.Spinner,{}):(0,w1.jsx)($Xe,{required:!!f?.required,markWhenOptional:n,customValidity:ao(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,w1.jsx)("span",{children:k?.label||y})}return(0,w1.jsx)("span",{children:y})}})}var As=c(U(),1),vK=c(F(),1),gRe=c(G(),1);var Lf=c(E(),1),{ValidatedInputControl:KXe}=so(As.privateApis),YXe=({color:e,onColorChange:t,disabled:o})=>{let r=e&&Lo(e).isValid()?e:"#ffffff";return(0,Lf.jsx)(As.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:n})=>(0,Lf.jsx)(As.Button,{onClick:n,"aria-label":(0,gRe.__)("Open color picker"),size:"small",disabled:o,accessibleWhenDisabled:!0,icon:()=>(0,Lf.jsx)(As.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,Lf.jsx)(As.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Lf.jsx)(As.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function bRe({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,vK.useCallback)(g=>{o(u({item:e,value:g}))},[e,o,u]),m=(0,vK.useCallback)(g=>{o(u({item:e,value:g||""}))},[e,o,u]);return(0,Lf.jsx)(KXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:ao(d,i),label:s,placeholder:a,value:p,help:l,onChange:m,hideLabelFromVision:r,type:"text",disabled:f,prefix:(0,Lf.jsx)(As.__experimentalInputControlPrefixWrapper,{variant:"control",children:(0,Lf.jsx)(YXe,{color:p,onColorChange:h,disabled:f})})})}var i5=c(U(),1),s5=c(F(),1),SK=c(G(),1);var n5=c(E(),1);function yRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let[s,a]=(0,s5.useState)(!1),l=t.isDisabled({item:e,field:t}),u=(0,s5.useCallback)(()=>{a(d=>!d)},[]);return(0,n5.jsx)($u,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:s?"text":"password",suffix:(0,n5.jsx)(i5.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,n5.jsx)(i5.Button,{icon:s?Nl:dg,onClick:u,size:"small",label:s?(0,SK.__)("Hide password"):(0,SK.__)("Show password"),disabled:l,accessibleWhenDisabled:!0})})})}function a5(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var SRe=c(E(),1),vRe={adaptiveSelect:MTe,array:hRe,checkbox:ETe,color:bRe,combobox:VV,datetime:PTe,date:ATe,email:FTe,telephone:zTe,url:jTe,integer:GTe,number:$Te,password:yRe,radio:YTe,select:UV,text:ZTe,toggle:eRe,textarea:nRe,richtext:fRe,toggleGroup:mRe};function qXe(e){return e&&typeof e=="object"&&typeof e.control=="string"}function ZXe(e){let{control:t,...o}=e,r=l5(t);return r===null?null:function(i){return(0,SRe.jsx)(r,{...i,config:o})}}function kRe(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?l5(e.Edit):qXe(e.Edit)?ZXe(e.Edit):a5(e)&&e.type!=="array"?l5("adaptiveSelect"):t===null?null:l5(t)}function l5(e){return Object.keys(vRe).includes(e)?vRe[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 _Re=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},xRe=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},wRe=JXe;var ERe=c(G(),1);function c5({item:e,field:t}){let{elements:o,isLoading:r}=Os({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 CRe=c(E(),1);function Rr({item:e,field:t}){return t.hasElements?(0,CRe.jsx)(c5,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var Ku=(e,t,o)=>o==="asc"?e.localeCompare(t):t.localeCompare(e);function Br(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 Oo(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 Ji=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,ERe.__)("Value must be a valid email address."):null}var TRe={type:"email",render:Rr,Edit:"email",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Jo,er],validOperators:[mr,hr,Hu,Uu,Gu,Jo,er,Si,ki],format:{},getValueFormatted:Ji,validate:{required:Br,pattern:Zu,minLength:Yu,maxLength:qu,elements:Oo,custom:oQe}};var RRe=c(G(),1);var cx=(e,t,o)=>o==="asc"?e-t:t-e;function u5(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 d5(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 BRe={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=BRe: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,RRe.__)("Value must be an integer."):null}var PRe={type:"integer",render:Rr,Edit:"integer",sort:cx,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,hr,gh,bh,yh,vh,Zi],validOperators:[mr,hr,gh,bh,yh,vh,Zi,Jo,er,Si,ki],format:BRe,getValueFormatted:rQe,validate:{required:Br,min:u5,max:d5,elements:Oo,custom:nQe}};var IRe=c(G(),1);var ORe={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=ORe: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,IRe.__)("Value must be a number."):null}var ARe={type:"number",render:Rr,Edit:"number",sort:cx,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,hr,gh,bh,yh,vh,Zi],validOperators:[mr,hr,gh,bh,yh,vh,Zi,Jo,er,Si,ki],format:ORe,getValueFormatted:iQe,validate:{required:Br,min:u5,max:d5,elements:Oo,custom:aQe}};var LRe={type:"text",render:Rr,Edit:"text",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Jo,er],validOperators:[mr,hr,Hu,Uu,Gu,Jo,er,Si,ki],format:{},getValueFormatted:Ji,validate:{required:Br,pattern:Zu,minLength:Yu,maxLength:qu,elements:Oo}};var By=c(Tu(),1);var NRe=c(Tu(),1);function MRe(e){if(!e||!If(new Date(e)))return null;let t=(0,NRe.getDate)(e);return t&&If(t)?t:null}function DRe(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 f5(e,t){return DRe(e,t,"min")}function p5(e,t){return DRe(e,t,"max")}var VRe={datetime:(0,By.getSettings)().formats.datetime,weekStartsOn:(0,By.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=VRe:r=t.format,(0,By.dateI18n)(r.datetime,(0,By.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},FRe={type:"datetime",render:Rr,Edit:"datetime",sort:cQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[wh,Ch,Sh,kh,_h,xh,Xi,Is],validOperators:[wh,Ch,Sh,kh,_h,xh,Xi,Is],format:VRe,getValueFormatted:lQe,validate:{required:Br,elements:Oo,min:f5,max:p5}};var Py=c(Tu(),1);var zRe={date:(0,Py.getSettings)().formats.date,weekStartsOn:(0,Py.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=zRe:r=t.format,(0,Py.dateI18n)(r.date,(0,Py.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},jRe={type:"date",render:Rr,Edit:"date",sort:dQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[wh,Ch,Sh,kh,_h,xh,Xi,Is,Zi],validOperators:[wh,Ch,Sh,kh,_h,xh,Xi,Is,Zi],format:zRe,getValueFormatted:uQe,validate:{required:Br,elements:Oo,min:f5,max:p5}};var m5=c(G(),1);function HRe(e,t){return t.getValue({item:e})===!0}function fQe({item:e,field:t}){let o=t.getValue({item:e});return o===!0?(0,m5.__)("True"):o===!1?(0,m5.__)("False"):""}function pQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&![!0,!1].includes(o)?(0,m5.__)("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},URe={type:"boolean",render:Rr,Edit:"checkbox",sort:mQe,validate:{required:HRe,elements:Oo,custom:pQe},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,hr],validOperators:[mr,hr],format:{},getValueFormatted:fQe};var GRe={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Ji,validate:{}};var kK=c(G(),1);function WRe(e,t){let o=t.getValue({item:e});return Array.isArray(o)&&o.length>0&&o.every(r=>![void 0,"",null].includes(r))}function $Re({item:e,field:t}){let o=t.getValue({item:e});return(Array.isArray(o)?o:[]).join(", ")}function hQe({item:e,field:t}){return $Re({item:e,field:t})}function gQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Array.isArray(o)?(0,kK.__)("Value must be an array."):o.every(r=>typeof r=="string")?null:(0,kK.__)("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)},KRe={type:"array",render:hQe,Edit:"array",sort:bQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Jo,er],validOperators:[Jo,er,Si,ki],format:{},getValueFormatted:$Re,validate:{required:WRe,elements:Oo,custom:gQe}};function yQe({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var YRe={type:"password",render:Rr,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:yQe,validate:{required:Br,pattern:Zu,minLength:Yu,maxLength:qu,elements:Oo}};var qRe={type:"telephone",render:Rr,Edit:"telephone",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Jo,er],validOperators:[mr,hr,Hu,Uu,Gu,Jo,er,Si,ki],format:{},getValueFormatted:Ji,validate:{required:Br,pattern:Zu,minLength:Yu,maxLength:qu,elements:Oo}};var ZRe=c(G(),1);var ux=c(E(),1);function vQe({item:e,field:t}){if(t.hasElements)return(0,ux.jsx)(c5,{item:e,field:t});let o=Ji({item:e,field:t});return!o||!Lo(o).isValid()?o:(0,ux.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,ux.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:o,border:"1px solid #ddd",flexShrink:0}}),(0,ux.jsx)("span",{children:o})]})}function SQe(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Lo(o).isValid()?(0,ZRe.__)("Value must be a valid color."):null}var kQe=(e,t,o)=>{let r=Lo(e),n=Lo(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},XRe={type:"color",render:vQe,Edit:"color",sort:kQe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Jo,er],validOperators:[mr,hr,Jo,er],format:{},getValueFormatted:Ji,validate:{required:Br,elements:Oo,custom:SQe}};var QRe={type:"url",render:Rr,Edit:"url",sort:Ku,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Jo,er],validOperators:[mr,hr,Hu,Uu,Gu,Jo,er,Si,ki],format:{},getValueFormatted:Ji,validate:{required:Br,pattern:Zu,minLength:Yu,maxLength:qu,elements:Oo}};var _Qe=(e,t,o)=>typeof e=="number"&&typeof t=="number"?cx(e,t,o):Ku(e,t,o),JRe={render:Rr,Edit:null,sort:_Qe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,hr],validOperators:_Te(),format:{},getValueFormatted:Ji,validate:{required:Br,elements:Oo}};function xQe(e){return e==="integer"||e==="number"}function wQe(e){return e==="date"||e==="datetime"}function eBe(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 tBe(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=eBe(o?.min,t,"min"),s=eBe(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 oBe(e){return e.validOperators.reduce((t,o)=>{let r=kTe(o);return r?.filter&&(t[o]=r.filter),t},{})}function CQe(e,t){return{...t.format,...e.format}}var rBe=CQe;function EQe(e){let t=[TRe,PRe,ARe,LRe,FRe,jRe,URe,GRe,KRe,YRe,qRe,XRe,QRe].find(o=>o?.type===e);return t||JRe}function C1(e){return e.map(t=>{let o=EQe(t.type),r=t.getValue||xRe(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||wRe(t.id),elements:t.elements,getElements:t.getElements,hasElements:a5(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:kRe(t,o.Edit),sort:n,enableSorting:t.enableSorting??o.enableSorting,enableGlobalSearch:t.enableGlobalSearch??o.enableGlobalSearch,isValid:tBe(t,o),filterBy:_Re(t,o.defaultOperators,o.validOperators),filter:oBe(o),format:rBe(t,o),getValueFormatted:t.getValueFormatted??o.getValueFormatted}})}var TK=c(F(),1);var nBe=c(F(),1),iBe=c(E(),1),_K=(0,nBe.createContext)({fields:[]});_K.displayName="DataFormContext";function sBe({fields:e,children:t}){return(0,iBe.jsx)(_K.Provider,{value:{fields:e},children:t})}var Tl=_K;var w5=c(F(),1);var g5=c(F(),1),T1=c(U(),1);var E1=c(G(),1),wi={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 aBe(e){let t=wi;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,E1.__)("Apply"),cancelLabel:n.cancelLabel?.trim()||(0,E1.__)("Cancel")}:n==="modal"?i={type:"modal",applyLabel:(0,E1.__)("Apply"),cancelLabel:(0,E1.__)("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 lBe(e){let t=aBe(e?.layout),o=(e.fields??[]).map(r=>{if(typeof r=="string")return{id:r,layout:t};let n=r.layout?aBe(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:lBe({fields:r.children,layout:wi}).fields}}});return{layout:t,fields:o}}var h5=lBe;var tr=c(E(),1);function RQe({title:e}){return(0,tr.jsx)(Qe,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,tr.jsx)(Qe,{direction:"row",align:"center",children:(0,tr.jsx)(T1.__experimentalHeading,{level:2,size:13,children:e})})})}function cBe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,g5.useContext)(Tl),a=t.layout,l=(0,g5.useMemo)(()=>({layout:wi,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,tr.jsxs)(tr.Fragment,{children:[!r&&t.label&&(0,tr.jsx)(RQe,{title:t.label}),(0,tr.jsx)(Ls,{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,tr.jsxs)(Qe,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,tr.jsx)("div",{className:K("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${u}`),children:(0,tr.jsx)(T1.BaseControl.VisualLabel,{children:d.label})}),(0,tr.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:d.readOnly===!0?(0,tr.jsx)(d.render,{item:e,field:d}):(0,tr.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:!0,markWhenOptional:n,validity:i},d.id)})]}):(0,tr.jsx)("div",{className:"dataforms-layouts-regular__field",children:d.readOnly===!0?(0,tr.jsx)(tr.Fragment,{children:(0,tr.jsxs)(tr.Fragment,{children:[!r&&u!=="none"&&(0,tr.jsx)(T1.BaseControl.VisualLabel,{children:d.label}),(0,tr.jsx)(d.render,{item:e,field:d})]})}):(0,tr.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:u==="none"?!0:r,markWhenOptional:n,validity:i})})}var CK=c(hB(),1),Iy=c(U(),1),Ic=c(F(),1),S5=c(fe(),1);var b5=c(U(),1),dx=c(G(),1);var hBe=c(fe(),1);var xK=c(F(),1);function BQe(e,t){return K("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var uBe=BQe;var dBe=c(U(),1);var Oh=c(E(),1);function PQe(e,t,o){return e?(0,Oh.jsxs)(kt.Root,{children:[(0,Oh.jsx)(kt.Trigger,{render:(0,Oh.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,Oh.jsx)(dBe.Icon,{icon:ag,size:16}),(0,Oh.jsxs)(bt,{children:[t,": "]}),o]})}),(0,Oh.jsx)(kt.Popup,{children:t})]}):o}var fBe=PQe;function pBe(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=pBe(o);if(r)return r}}var mBe=pBe;var es=c(E(),1);function R1({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=mBe(n),p=i&&!!f,h=uBe(u,p),m=fBe(p,f,o),g=K("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,hBe.useInstanceId)(R1,"dataforms-layouts-panel__field-control"),v=p?(0,dx.sprintf)((0,dx._x)("Edit %s (has errors)","field"),o||""):(0,dx.sprintf)((0,dx._x)("Edit %s","field"),o||""),y=(0,xK.useRef)(null),k=(0,xK.useRef)(null);return(0,es.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,es.jsx)("span",{className:h,children:m}),u==="none"&&p&&(0,es.jsxs)(kt.Root,{children:[(0,es.jsx)(kt.Trigger,{render:(0,es.jsx)("span",{className:"dataforms-layouts-panel__field-label-error-content",role:"img","aria-label":f,children:(0,es.jsx)(b5.Icon,{icon:ag,size:16})})}),(0,es.jsx)(kt.Popup,{children:f})]}),(0,es.jsx)("span",{id:`${b}`,className:"dataforms-layouts-panel__field-control",children:r.length>1?(0,es.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:r.map(x=>(0,es.jsx)("span",{style:{width:"100%"},children:(0,es.jsx)(x.render,{item:e,field:x})},x.id))}):r.map(x=>(0,es.jsx)(x.render,{item:e,field:x},x.id))}),!s&&(0,es.jsx)(b5.Button,{ref:k,className:"dataforms-layouts-panel__field-trigger-icon",label:v,icon:ug,size:"small","aria-expanded":a,"aria-haspopup":"dialog","aria-describedby":`${b}`})]})}var gBe=c(hB(),1),wK=c(Xh(),1),Xu=c(F(),1),ts=c(G(),1);function bBe(e){return e?Object.values(e).every(t=>Object.entries(t).every(([o,r])=>o==="children"&&r&&typeof r=="object"?bBe(r):r.type!=="invalid"&&r.type!=="validating")):!0}function IQe(e,t){let o=h5(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]=C1([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]=C1([a]);return{id:s.id,children:[],field:l}}return o.fields.map(n).filter(s=>s!==null)}function fx(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 yBe(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=>fx(u,{elements:{type:"invalid",message:(0,ts.__)("Could not validate elements.")}},[...i,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(s,{...t.field,elements:l})?n(u=>fx(u,{elements:{type:"invalid",message:(0,ts.__)("Value must be one of the elements.")}},[...i,t.id])):n(u=>yBe(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,ts.__)("Unknown error when running elements validation asynchronously."),n(d=>fx(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=>yBe(l,[...i,t.id],"custom"));return}if(typeof a=="string"){n(l=>fx(l,{custom:{type:"invalid",message:a}},[...i,t.id]));return}n(l=>fx(l,{custom:{type:"invalid",message:(0,ts.__)("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,ts.__)("Unknown error when running custom validation asynchronously."),n(u=>fx(u,{custom:{type:"invalid",message:l}},[...i,t.id]))})}function vBe(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,ts.__)("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,ts.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,ts.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,ts.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,ts.__)("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,ts.__)("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,gBe.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,ts.__)("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,ts.__)("Validating\u2026")}),r instanceof Promise&&(AQe(r,t,o),n.custom={type:"validating",message:(0,ts.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let i={};t.children.forEach(a=>{i[a.id]=vBe(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 SBe(e,t){let o=e?.field?.getValue({item:t});if(e.children.length===0)return o;let r=e.children.map(n=>SBe(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=SBe(h,e);if(a.current.hasOwnProperty(h.id)&&(0,wK.default)(a.current[h.id],m)){p.push(h.id);return}a.current[h.id]=m;let g=vBe(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,wK.default)(h,m)?h:m})},[e,t,o]);return(0,Xu.useEffect)(()=>{l()},[l]),{validity:r,isValid:bBe(r)}}var kBe=LQe;var _Be=c(F(),1);function Ah(e,t){(0,_Be.useEffect)(()=>{t&&e.current&&e.current.querySelectorAll("input, textarea, select").forEach(r=>{r.reportValidity()})},[t,e])}var xBe=c(F(),1);function MQe(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var y5=(e,t)=>Array.isArray(e)&&e.length>0?MQe(e).map(r=>t.find(n=>n.id===r)).filter(r=>r!==void 0):[];var NQe=(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,xBe.useContext)(Tl),o=e.layout,r=y5(o.summary,t),n=NQe(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 v5=DQe;var os=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,CK.default)(e,d,{arrayMerge:(_,x)=>x}),[e,d]),h=(0,Ic.useMemo)(()=>({layout:wi,fields:t.children?t.children:[{id:t.id,layout:wi}]}),[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}=kBe(p,m,h),b=()=>{o(d),n()},v=_=>{f(x=>(0,CK.default)(x,_,{arrayMerge:(w,T)=>T}))},y=(0,S5.useFocusOnMount)("firstInputElement"),k=(0,Ic.useRef)(null),S=(0,S5.useMergeRefs)([y,k]);return Ah(k,i),(0,os.jsxs)(Iy.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:r,size:"medium",children:[(0,os.jsx)("div",{ref:S,children:(0,os.jsx)(Ls,{data:p,form:h,onChange:v,validity:g,children:(_,x,w,T)=>(0,os.jsx)(_,{data:p,field:x,onChange:v,hideLabelFromVision:h.fields.length<2,markWhenOptional:T,validity:w},x.id)})}),(0,os.jsxs)(Qe,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,os.jsx)(Iy.__experimentalSpacer,{style:{flex:1}}),(0,os.jsx)(Iy.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:l}),(0,os.jsx)(Iy.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}=v5(t);if(!l)return null;let f=()=>{a(!1),i(!0)};return(0,os.jsxs)(os.Fragment,{children:[(0,os.jsx)(R1,{data:e,field:t,fieldLabel:u,summaryFields:d,validity:r,touched:n,disabled:l.readOnly===!0,onClick:()=>a(!0),isOpen:s}),s&&(0,os.jsx)(VQe,{data:e,field:t,onChange:o,fieldLabel:u??"",onClose:f,touched:n})]})}var wBe=FQe;var Lh=c(U(),1),CBe=c(G(),1),Mf=c(F(),1);var EBe=c(fe(),1);var Ci=c(E(),1);function zQe({title:e,onClose:t}){return(0,Ci.jsx)(Qe,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,Ci.jsxs)(Qe,{direction:"row",gap:"sm",align:"center",children:[e&&(0,Ci.jsx)(Lh.__experimentalHeading,{level:2,size:13,children:e}),(0,Ci.jsx)(Lh.__experimentalSpacer,{style:{flex:1}}),t&&(0,Ci.jsx)(Lh.Button,{label:(0,CBe.__)("Close"),icon:tg,onClick:t,size:"small"})]})})}function jQe({touched:e,children:t}){let o=(0,Mf.useRef)(null);return Ah(o,e),(0,Ci.jsx)("div",{ref:o,children:t})}function HQe({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Mf.useState)(!1),[s,a]=(0,Mf.useState)(null),l=(0,Mf.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]),[u,d]=(0,EBe.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,Mf.useMemo)(()=>({layout:wi,fields:t.children?t.children:[{id:t.id,layout:wi}]}),[t]),p=(0,Mf.useMemo)(()=>{if(r!==void 0)return t.children?r?.children:{[t.id]:r}},[r,t]),{fieldDefinition:h,fieldLabel:m,summaryFields:g}=v5(t);return h?(0,Ci.jsx)("div",{ref:a,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,Ci.jsx)(Lh.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:l,focusOnMount:!1,onToggle:b=>{b||i(!0)},renderToggle:({isOpen:b,onToggle:v})=>(0,Ci.jsx)(R1,{data:e,field:t,fieldLabel:m,summaryFields:g,validity:r,touched:n,disabled:h.readOnly===!0,isOpen:b,onClick:v}),renderContent:({onClose:b})=>(0,Ci.jsx)(jQe,{touched:n,children:(0,Ci.jsxs)("div",{ref:u,...d,children:[(0,Ci.jsx)(zQe,{title:m,onClose:b}),(0,Ci.jsx)(Ls,{data:e,form:f,onChange:o,validity:p,children:(v,y,k,S)=>(0,Ci.jsx)(v,{data:e,field:y,onChange:o,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:S,validity:k},y.id)})]})})})}):null}var TBe=HQe;var EK=c(E(),1);function RBe({data:e,field:t,onChange:o,validity:r}){return t.layout.openAs.type==="modal"?(0,EK.jsx)(wBe,{data:e,field:t,onChange:o,validity:r}):(0,EK.jsx)(TBe,{data:e,field:t,onChange:o,validity:r})}var Ms=c(F(),1);var k5=c(G(),1),BBe=c(E(),1);function PBe(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+=PBe(r);return t}function _5({validity:e}){let t=PBe(e);return t===0?null:(0,BBe.jsx)(jH,{intent:"high",children:(0,k5.sprintf)((0,k5._n)("%d field needs attention","%d fields need attention",t),t)})}var Pr=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=y5(r.summary,t).filter(f=>UQe(f,r.summary,n)),u=i&&r.isCollapsible,d=l.length>0&&r.withHeader;return(0,Pr.jsxs)(Qe,{align:"center",justify:"space-between",className:"dataforms-layouts-card__field-header-content",children:[(0,Pr.jsx)(au.Title,{children:o}),(u||d)&&(0,Pr.jsxs)(nb.HeaderDescription,{className:"dataforms-layouts-card__field-header-content-description",children:[u&&(0,Pr.jsx)(_5,{validity:s}),d&&(0,Pr.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:l.map(f=>(0,Pr.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,Pr.jsxs)(Pr.Fragment,{children:[t.description&&(0,Pr.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,Pr.jsx)(Ls,{data:e,form:o,onChange:r,validity:s?.children})]});let l=Oy("regular")?.component;return l?(0,Pr.jsx)(l,{data:e,field:t,onChange:r,hideLabelFromVision:n||a,markWhenOptional:i,validity:s}):null}function IBe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,Ms.useContext)(Tl),a=t.layout,l=(0,Ms.useRef)(null),u=(0,Ms.useMemo)(()=>({layout:wi,fields:t.children??[]}),[t]),{isOpened:d,isCollapsible:f}=a,[p,h]=(0,Ms.useState)(d),[m,g]=(0,Ms.useState)(!1);(0,Ms.useEffect)(()=>{h(d)},[d]);let b=(0,Ms.useCallback)(x=>{x||g(!0),h(x)},[]),v=(0,Ms.useCallback)(()=>{g(!0)},[]);Ah(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,Pr.jsx)(WQe,{data:e,field:t,form:u,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,withHeader:k}),_=(0,Pr.jsx)(GQe,{data:e,fields:s,label:y,layout:a,isOpen:f?!!p:!0,touched:m,validity:i});return k&&f?(0,Pr.jsxs)(nb.Root,{className:"dataforms-layouts-card__field",open:p,onOpenChange:b,children:[(0,Pr.jsx)(nb.Header,{children:_}),(0,Pr.jsx)(nb.Content,{ref:l,onBlur:v,children:S})]}):(0,Pr.jsxs)(au.Root,{className:"dataforms-layouts-card__field",children:[k&&(0,Pr.jsx)(au.Header,{children:_}),(0,Pr.jsx)(au.Content,{ref:l,onBlur:v,children:S})]})}var OBe=c(U(),1);var Nn=c(E(),1);function $Qe({title:e}){return(0,Nn.jsx)(Qe,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,Nn.jsx)(Qe,{direction:"row",align:"center",children:(0,Nn.jsx)(OBe.__experimentalHeading,{level:2,size:13,children:e})})})}var KQe=({children:e})=>(0,Nn.jsx)(Nn.Fragment,{children:e});function ABe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let s=t.layout;if(t.children){let l={layout:wi,fields:t.children};return(0,Nn.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!r&&t.label&&(0,Nn.jsx)($Qe,{title:t.label}),(0,Nn.jsx)(Qe,{direction:"row",align:s.alignment,gap:"lg",children:(0,Nn.jsx)(Ls,{data:e,form:l,onChange:o,validity:i?.children,as:KQe,children:(u,d,f)=>(0,Nn.jsx)("div",{className:"dataforms-layouts-row__field-control",style:s.styles[d.id],children:(0,Nn.jsx)(u,{data:e,field:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:f})},d.id)})})]})}let a=Oy("regular")?.component;return a?(0,Nn.jsx)(Nn.Fragment,{children:(0,Nn.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,Nn.jsx)(a,{data:e,field:t,onChange:o,markWhenOptional:n,validity:i})})}):null}var Ns=c(F(),1),LBe=c(G(),1);var Nf=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:wi,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)}},[]),Ah(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,Nf.jsx)(m.render,{item:e,field:m}):g=t.label||(0,LBe.__)("More details"),(0,Nf.jsxs)("details",{ref:i,className:"dataforms-layouts-details__details",children:[(0,Nf.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,Nf.jsxs)(Qe,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[g,a&&(0,Nf.jsx)(_5,{validity:r})]})}),(0,Nf.jsx)("div",{ref:s,className:"dataforms-layouts-details__content",onBlur:p,children:(0,Nf.jsx)(Ls,{data:e,form:f,onChange:o,validity:r?.children})})]})}var Ay=c(E(),1),YQe=[{type:"regular",component:cBe,wrapper:({children:e})=>(0,Ay.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:RBe,wrapper:({children:e})=>(0,Ay.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:IBe,wrapper:({children:e})=>(0,Ay.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:ABe,wrapper:({children:e,layout:t})=>(0,Ay.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,Ay.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,Ay.jsx)(Qe,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:MBe}];function Oy(e){return YQe.find(t=>t.type===e)}var x5=c(E(),1),qQe=({children:e})=>(0,x5.jsx)(Qe,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function Ls({data:e,form:t,onChange:o,validity:r,children:n,as:i}){let{fields:s}=(0,w5.useContext)(Tl),a=(0,w5.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??Oy(t.layout.type)?.wrapper??qQe;return(0,x5.jsx)(u,{layout:t.layout,children:t.fields.map(d=>{let f=Oy(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,x5.jsx)(f,{data:e,field:d,onChange:o,markWhenOptional:a,validity:r?.[d.id]},d.id)})})}var RK=c(E(),1);function B1({data:e,form:t,fields:o,onChange:r,validity:n}){let i=(0,TK.useMemo)(()=>h5(t),[t]),s=(0,TK.useMemo)(()=>C1(o),[o]);return t.fields?(0,RK.jsx)(sBe,{fields:s,children:(0,RK.jsx)(Ls,{data:e,form:i,onChange:r,validity:n})}):null}var Nh=c(F(),1),XBe=c(G(),1);var mx=c(U(),1);var BK=c(G(),1);var NBe=c(fe(),1);function px({isControl:e}={isControl:!1}){return(0,NBe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:e?35:259}}}var C5=c(E(),1);function DBe({fields:e,visibleFields:t,onToggleField:o}){let{popoverProps:r}=px();return!e||e.length===0?null:(0,C5.jsx)(mx.DropdownMenu,{icon:zs,label:(0,BK.__)("Options"),popoverProps:r,toggleProps:{size:"small"},children:({onClose:n})=>(0,C5.jsx)(mx.MenuGroup,{label:(0,BK.__)("Show / Hide"),children:e.map(i=>{let s=t.includes(i.id);return(0,C5.jsx)(mx.MenuItem,{isSelected:s,onClick:()=>{o(i.id),n()},role:"menuitemcheckbox",icon:s?ns:null,children:i.label},i.id)})})})}var E5=c(U(),1),VBe=c(fe(),1),FBe=c(Q(),1),Df=c(F(),1),zBe=c(Ko(),1);var Oc=c(E(),1),{useRichText:ZQe,KeyboardShortcutContext:XQe,InputEventContext:QQe}=H(zBe.privateApis);function jBe({data:e,field:t,hideLabelFromVision:o,onChange:r,config:n={}}){let i=(0,FBe.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=v_({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(B){r(t.setValue({item:e,value:B}))},selectionStart:u.start,selectionEnd:u.end,onSelectionChange:(B,R)=>d({start:B,end:R}),__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,E5.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)(UN,{value:y,onChange:S,onFocus:v,formatTypes:x,forwardedRef:h,isVisible:!1})})})}),(0,Oc.jsx)(E5.BaseControl,{...w,children:(0,Oc.jsx)("div",{className:"block-editor-content-only-controls__rich-text",role:"textbox","aria-multiline":!a?.disableLineBreaks,ref:(0,VBe.useMergeRefs)([_,zN({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 Mh=c(U(),1),HBe=c(Q(),1),UBe=c(Tt(),1),GBe=c(F(),1),Ly=c(G(),1);var gr=c(E(),1),JQe=e=>{window.requestAnimationFrame(()=>{let[t]=UBe.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,gr.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,gr.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,gr.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,gr.jsx)("img",{alt:"",width:20,height:20,src:a})});let l;if(n[0]==="image"?l=Gx:n[0]==="video"?l=N6:n[0]==="audio"?l=WF:l=Jy,l)return(0,gr.jsx)(Mh.Icon,{icon:l,size:20})}return(0,gr.jsx)(Mh.Icon,{icon:Jy,size:20})}function WBe({data:e,field:t,onChange:o,config:r={}}){let{popoverProps:n}=px({isControl:!0}),i=t.getValue({item:e}),{allowedTypes:s=[],multiple:a=!1,useFeaturedImage:l=!1}=r,u=i?.id,d=i?.url,f=(0,HBe.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,Ly.__)("Image"):m==="video"?p=(0,Ly.__)("Video"):m==="application"?p=(0,Ly.__)("File"):p=(0,Ly.__)("Media")}else p=(0,Ly.__)("Media");let h=(0,GBe.useRef)();return(0,gr.jsx)(Xs,{children:(0,gr.jsxs)("div",{ref:h,className:"block-editor-content-only-controls",children:[(0,gr.jsx)(h_,{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,gr.jsx)(Mh.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__media",...m,children:(0,gr.jsxs)(Mh.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"20px 1fr",className:"block-editor-content-only-controls__media-row",children:[d&&(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(eJe,{attachment:f,field:t,data:e,config:r}),(0,gr.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:f?.title?.raw&&f?.title?.raw!==""?f?.title?.raw:d})]}),!d&&(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)("span",{className:"block-editor-content-only-controls__media-placeholder",style:{width:"20px",height:"20px"}}),(0,gr.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:p})]})]})})}),d&&(0,gr.jsx)(Mh.Button,{label:(0,Ly.__)("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),R5=c(F(),1),$Be=c(G(),1);var KBe=c(Fs(),1);var ti=c(E(),1),PK="noopener",YBe="_blank",T5="nofollow";function tJe({rel:e="",url:t="",opensInNewTab:o,nofollow:r}){let n,i=e;if(o)n=YBe,i=i?.includes(PK)?i:i+` ${PK}`;else{let s=new RegExp(`\\b${PK}\\s*`,"g");i=i?.replace(s,"").trim()}if(r)i=i?.includes(T5)?i:(i+` ${T5}`).trim();else{let s=new RegExp(`\\b${T5}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,KBe.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function qBe({data:e,field:t,onChange:o}){let[r,n]=(0,R5.useState)(!1),{popoverProps:i}=px({isControl:!0}),s=t.getValue({item:e}),a=s?.url,l=s?.rel||"",d=s?.linkTarget===YBe,f=l===T5,p=(0,R5.useMemo)(()=>({url:a,opensInNewTab:d,nofollow:f}),[a,d,f]);return(0,ti.jsxs)(ti.Fragment,{children:[(0,ti.jsx)(Vf.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__link",onClick:()=>{n(!0)},children:(0,ti.jsxs)(Vf.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"24px 1fr",className:"block-editor-content-only-controls__link-row",children:[a&&(0,ti.jsxs)(ti.Fragment,{children:[(0,ti.jsx)(Vf.Icon,{icon:ss,size:24}),(0,ti.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:a})]}),!a&&(0,ti.jsxs)(ti.Fragment,{children:[(0,ti.jsx)(Vf.Icon,{icon:ss,size:24,style:{opacity:.3}}),(0,ti.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:(0,$Be.__)("Link")})]})]})}),r&&(0,ti.jsx)(Vf.Popover,{onClose:()=>{n(!1)},...i??{},children:(0,ti.jsx)(th,{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 oi=c(E(),1),{fieldsKey:QBe,formKey:IK}=H(hx.privateApis);function OK(e,t={}){return function(r){return(0,oi.jsx)(e,{...r,config:t})}}function oJe({clientId:e,blockType:t,setAttributes:o,isMultiBlock:r=!1}){let n=jn({clientId:e,context:"list-view"}),i=Do(e),s=t?.[QBe],a=(0,Nh.useContext)(_n),l=(0,P5.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(hx.store));return Object.entries(_).reduce((w,[T,B])=>{if(T==="__default")return w;let R=x(B.source);if(!R)return w;let I=R.getValues({select:v,clientId:e,context:a,bindings:{[T]:B}});return{...w,...I}},y)},[a,e,t?.name]),{selectBlock:u,toggleBlockHighlight:d}=(0,P5.useDispatch)(C),f=(0,ZBe.useDebounce)(d,50),p=(0,Nh.useMemo)(()=>r?{...t?.[IK],fields:[t?.[IK]?.fields?.[0]]}:t?.[IK],[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=OK(jBe,{clientId:e}):typeof v.Edit=="string"&&v.Edit==="link"?y.Edit=OK(qBe):typeof v.Edit=="object"&&v.Edit.control==="media"&&(y.Edit=OK(WBe,{...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,oi.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,oi.jsx)("div",{className:"block-editor-block-fields__header",children:(0,oi.jsxs)(B5.__experimentalHStack,{spacing:1,children:[r&&(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)(Et,{className:"block-editor-block-fields__header-icon",icon:i?.icon}),(0,oi.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,oi.jsx)(B5.__experimentalTruncate,{numberOfLines:1,children:n})}),(0,oi.jsx)(DBe,{fields:g,visibleFields:h.fields,onToggleField:b})]}),!r&&(0,oi.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,XBe.__)("Content")})]})}),(0,oi.jsx)(B1,{data:l,fields:g,form:h,onChange:o})]})}function rJe(e){return!!(window?.__experimentalContentOnlyInspectorFields&&(0,hx.getBlockType)(e)?.[QBe])}function nJe(e){let{blockType:t,isSelectionWithinCurrentSection:o}=(0,Nh.useContext)(Fn);return(0,oi.jsx)(Rb,{group:"content",children:(0,oi.jsx)(oJe,{...e,blockType:t,isMultiBlock:o})})}var JBe={edit:nJe,hasSupport:rJe,attributeKeys:[],supportsPatternEditing:!0};var MK=c(go(),1),ePe=c(U(),1),AK=c(G(),1),P1=c(ue(),1);var LK=c(E(),1);function iJe(e){return(0,P1.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function sJe({className:e,setAttributes:t}){return Er()!=="default"?null:(0,LK.jsx)(Oe,{group:"advanced",children:(0,LK.jsx)(ePe.TextControl,{autoComplete:"off",label:(0,AK.__)("Additional CSS class(es)"),value:e||"",onChange:r=>{t({className:r!==""?r:void 0})},help:(0,AK.__)("Separate multiple classes with spaces.")})})}var NK={edit:sJe,addSaveProps:aJe,attributeKeys:["className"],hasSupport(e){return(0,P1.hasBlockSupport)(e,"customClassName",!0)}};function aJe(e,t,o){return(0,P1.hasBlockSupport)(t,"customClassName",!0)&&o.className&&(e.className=K(e.className,o.className)),e}function lJe(e,t,o,r){if(!(0,P1.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,MK.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",iJe);(0,MK.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",lJe);var tPe=c(go(),1),I1=c(ue(),1);function cJe(e,t){return(0,I1.hasBlockSupport)(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([(0,I1.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,I1.getBlockDefaultClassName)(t.name)),e}(0,tPe.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",cJe);var zK=c(F(),1),fPe=c(go(),1),pPe=c(Q(),1);var Ac=c(ue(),1),mPe=c(fe(),1),ed=c(nv(),1);var gx=c(F(),1),O5=c(Q(),1),I5=c(ue(),1),sPe=c(Rt(),1);var Qu=c(F(),1),oPe=c(HC(),1);var O1=c(E(),1);function rPe({clientId:e,value:t,computeStyle:o,forceShow:r}){let n=Nt(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,oPe.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,O1.jsx)(Xa,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,O1.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})})}function Dh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function nPe({clientId:e,value:t,forceShow:o}){return(0,O1.jsx)(rPe,{clientId:e,value:t?.spacing?.margin,computeStyle:r=>{let n=Dh(r,"margin-top"),i=Dh(r,"margin-right"),s=Dh(r,"margin-bottom"),a=Dh(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 iPe({clientId:e,value:t,forceShow:o}){return(0,O1.jsx)(rPe,{clientId:e,value:t?.spacing?.padding,computeStyle:r=>({borderTopWidth:Dh(r,"padding-top"),borderRightWidth:Dh(r,"padding-right"),borderBottomWidth:Dh(r,"padding-bottom"),borderLeftWidth:Dh(r,"padding-left")}),forceShow:o})}var Ff=c(E(),1),Ju="dimensions",A1="spacing";function uJe(){let[e,t]=(0,gx.useState)(!1),{hideBlockInterface:o,showBlockInterface:r}=H((0,O5.useDispatch)(C));return(0,gx.useEffect)(()=>{e?o():r()},[e,r,o]),[e,t]}function dJe({children:e,resetAllFilter:t}){let o=(0,gx.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 aPe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Ja(),i=!Bn(n),s=CD(r,n),{style:a,className:l}=(0,O5.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:Pn(a,n,v)})}:v=>{o({style:Ge(v)})};if(!s)return null;let m=(0,I5.getBlockSupport)(t,[Ju,"__experimentalDefaultControls"]),g=(0,I5.getBlockSupport)(t,[A1,"__experimentalDefaultControls"]),b={minHeight:!1,minWidth:!1,...m,...g};return(0,Ff.jsxs)(Ff.Fragment,{children:[(0,Ff.jsx)(ED,{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)(iPe,{forceShow:d==="padding",clientId:e,value:p}),!i&&!!r?.spacing?.margin&&d==="margin"&&(0,Ff.jsx)(nPe,{forceShow:d==="margin",clientId:e,value:p})]})}function lPe(e,t="any"){let o=(0,I5.getBlockSupport)(e,Ju);return o===!0?!0:t==="any"?!!(o?.aspectRatio||o?.height||o?.minHeight||o?.width||o?.minWidth):!!o?.[t]}function DK(e){return e?`${e}`.trim().toLowerCase()!=="auto":!1}var cPe={useBlockProps:fJe,attributeKeys:["height","minHeight","width","style"],hasSupport(e){return lPe(e)}};function fJe({name:e,height:t,minHeight:o,style:r}){if(!lPe(e,"aspectRatio")||Wt(e,Ju,"aspectRatio"))return{};let n=DK(r?.dimensions?.aspectRatio),i=K({"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 VK(){(0,sPe.default)("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}var pJe=c(ue(),1);function uPe(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 Vh=c(E(),1),{getResponsiveMediaQueries:mJe}=H(vr),hJe=["Top","Right","Bottom","Left"],gJe=[...IEe,yy,Mn,Ju,Sy,A1,c1],jK=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(DK(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?HK(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 L5(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function HK(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=L5(n)&&L5(o[r])?HK(o[r],n):n}),o}function A5(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:HK(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"){A5(r,s,{[n]:i});return}if(L5(s)&&L5(i)){let a={...i};Object.entries(s).forEach(([l,u])=>{l==="root"||typeof u!="string"||!Object.hasOwn(i,l)||(A5(r,u,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&A5(r,s.root||o.root,{[n]:a});return}A5(r,o.root,{[n]:i})}),Array.from(r.values())}function UK(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=_Je(e,o).map(({selector:s,style:a})=>kJe(a,uPe(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 hPe(e,t,o){let r=hV[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=UK(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function wJe(e,t,o,r){let n=[],s=["elements",...hV[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=UK(xJe(d,s),{name:t,baseSelector:o});p&&f.push(p);let h=yPe(d.elements,t,o);h&&f.push(h),f.push(...hPe(d,t,o)),f.length&&n.push(`${u}{${f.join("")}}`)}),n}function dPe(e,t){let o=To(e,t);if(!Hi(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!jK(e)&&!(0,Ac.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var gPe={[`${yy}.__experimentalSkipSerialization`]:["border"],[`${Mn}.__experimentalSkipSerialization`]:[Mn],[`${_l}.__experimentalSkipSerialization`]:[_l],[`${Ju}.__experimentalSkipSerialization`]:[Ju],[`${A1}.__experimentalSkipSerialization`]:[A1],[`${c1}.__experimentalSkipSerialization`]:[c1]},EJe={...gPe,[`${Ju}.aspectRatio`]:[`${Ju}.aspectRatio`],[`${Sy}`]:[Sy]},TJe={[`${Ju}.aspectRatio`]:!0,[`${Sy}`]:!0},RJe={gradients:"gradient"};function FK(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;FK(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function bPe(e,t,o,r=EJe){if(!jK(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=FK(n,s)),Array.isArray(a)&&a.forEach(l=>{let u=RJe[l]||l;n=FK(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=Er(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:u}=(0,pPe.useSelect)(m=>{let g=m(C),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=H(g);return{globalBlockStyles:g.getSettings()?.[rs]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),d=ea(l),f=(0,zK.useMemo)(()=>{if(!u||!d)return;let m=dPe(a,l),g=dPe(r,l),b;if(m&&g)b=gB(m,g);else if(g)b=g;else if(m)b=m;else return;return UK(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,Vh.jsxs)(Y2,{value:l,children:[(0,Vh.jsx)(JD,{...h}),(0,Vh.jsx)(qD,{...h}),(0,Vh.jsx)(aV,{...h}),(0,Vh.jsx)(XCe,{...h}),(0,Vh.jsx)(aPe,{...h})]})}var M5={edit:BJe,hasSupport:jK,addSaveProps:bPe,attributeKeys:["style"],useBlockProps:OJe},PJe=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],IJe={};function yPe(e,t,o){if(!e)return;let r=[];return PJe.forEach(({elementType:n,pseudo:i,elements:s})=>{if(Wt(t,Mn,n))return;let l=e?.[n];if(l){let u=yk(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:yk(o,`${Ac.__EXPERIMENTAL_ELEMENTS[n]}${d}`)}))})}s&&s.forEach(u=>{e[u]&&r.push((0,ed.compileCSS)(e[u],{selector:yk(o,Ac.__EXPERIMENTAL_ELEMENTS[u])}))})}),r.length>0?r.join(""):void 0}function OJe({name:e,style:t}){let o=(0,mPe.useInstanceId)(IJe,"wp-elements"),r=`.${o}`,n=t?.elements,[i]=Le("viewport"),s=(0,zK.useMemo)(()=>{let a=[],l=yPe(n,e,r);return l&&a.push(l),a.push(...hPe(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}),bPe({className:o},e,{style:t},gPe)}(0,fPe.addFilter)("blocks.registerBlockType","core/style/addAttribute",CJe);var vPe=c(go(),1),SPe=c(ue(),1),AJe=e=>(0,SPe.hasBlockSupport)(e,"__experimentalSettings",!1);function LJe(e){return AJe(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,vPe.addFilter)("blocks.registerBlockType","core/settings/addAttribute",LJe);var Fh=c(ue(),1),xPe=c(fe(),1),wPe=c(go(),1),L1=c(F(),1),CPe=c(Q(),1);function MJe(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(o=>{let r=Lo(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 kPe(e){return`${e}{filter:none}`}function _Pe(e,t){return`${e}{filter:url(#${t})}`}function N5(e,t){let o=MJe(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),GK=[],NJe=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");Kf([Yf]);function WK({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=Le(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,L1.useMemo)(()=>[...r||GK,...n||GK,...o&&i||GK],[o,r,n,i])}function EPe(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=Er(),a=(0,CPe.useSelect)(b=>r?b(C).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=Sl(o,a),u=WK({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),d=WK({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:EPe(n,u);return(0,zf.jsxs)(zf.Fragment,{children:[(0,zf.jsx)(Oe,{group:"filter",children:(0,zf.jsx)(OD,{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)(jM,{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 $K={shareWithChildBlocks:!0,edit:VJe,useBlockProps:HJe,attributeKeys:["style"],hasSupport(e){return(0,Fh.hasBlockSupport)(e,"filter.duotone")}};function FJe(e){return(0,Fh.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=WK({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:EPe(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"?_Pe(p,t):kPe(p),__unstableType:"presets"}:void 0),Tc(h?{assets:u!=="unset"?N5(t,u):"",__unstableType:"svgs"}:void 0);let m=Nt(e);(0,L1.useEffect)(()=>{if(h&&m&&NJe){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,xPe.useInstanceId)(jJe),n=(0,L1.useMemo)(()=>{let l=(0,Fh.getBlockType)(t);if(l){if(!(0,Fh.getBlockSupport)(l,"filter.duotone",!1))return null;let d=(0,Fh.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(d){let f=js(l);return typeof d=="string"?yk(f,d):f}return js(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,wPe.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",FJe);var V5=c(F(),1),M1=c(Q(),1),TPe=c(fe(),1),N1=c(ue(),1),D1=c(G(),1);var RPe=c(as(),1);var D5=c(E(),1),UJe={},GJe={};function WJe({blockName:e,setAttributes:t,style:o}){if(Er()!=="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,D1.sprintf)((0,D1.__)("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,D5.jsx)(Oe,{group:"advanced",children:(0,D5.jsx)(MD,{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,M1.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(C);return{style:s(e)?.style||GJe,canEditCSS:a().canEditCSS}},[e]);return n?(0,D5.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&&t$(o),n=(0,M1.useSelect)(d=>d(C).getSettings().canEditCSS,[]),{createWarningNotice:i}=(0,M1.useDispatch)(RPe.store),s=!!o?.trim();(0,V5.useEffect)(()=>{!n&&s&&i((0,D1.__)("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,TPe.useInstanceId)(UJe,"wp-custom-css"),l=`.${a}`,u=(0,V5.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 F5={edit:KJe,useBlockProps:YJe,addSaveProps:qJe,attributeKeys:["style"],hasSupport(e){return(0,N1.hasBlockSupport)(e,"customCSS",!0)}};var j5=c(fe(),1),qK=c(go(),1),PPe=c(F(),1),Lc=c(ue(),1);var H5=c(Q(),1),Mc=c(U(),1),My=c(G(),1);var Dn=c(E(),1),ZJe="is-style-",z5="layout",KK=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{kebabCase:YK}=H(Mc.privateApis),{getResponsiveMediaQueries:XJe}=H(vr);function QJe(e={},t){let o=e?.default;return t?.attributes?.layout??o}function BPe(e={},t){return Ge({...QJe(e,t)})}function JJe(e={},t={},o={}){let r={},n=Object.fromEntries(KK.filter(i=>Object.hasOwn(o||{},i)).map(i=>[i,o[i]]));return Object.entries(e||{}).forEach(([i,s])=>{let a=Object.hasOwn(t||{},i);!KK.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])=>!KK.includes(t)))}function ZK(e){return(0,Lc.hasBlockSupport)(e,"layout")||(0,Lc.hasBlockSupport)(e,"__experimentalLayout")}function U5(e={},t=""){let{layout:o}=e,{default:r}=(0,Lc.getBlockSupport)(t,z5)||{},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,H5.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-${YK(n.orientation)}`),n?.justifyContent&&i.push(`is-content-justification-${YK(n.justifyContent)}`),n?.flexWrap&&n.flexWrap==="nowrap"&&i.push("is-nowrap"),i}function XK(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,H5.useSelect)(Y=>{let{getBlockAttributes:Z,getSettings:oe,getSelectedBlockStyleState:ne,isResponsiveEditing:X}=H(Y(C));return{activeBlockVariation:Y(Lc.store).getActiveBlockVariation(r,Z(n)||{},"block"),themeSupportsLayout:oe().supportsLayout,selectedState:ne(n),isResponsiveEditing:X()}},[r,n]),f=Er(),p=Hi(u)&&!ea(u),h=(0,PPe.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:Pn(Z.style??t,u,ae)}}let ne=oe.name||r,X=(0,Lc.getBlockSupport)(ne,z5,{});return{layout:BPe(X,l)}},[r,l,p,u,t]);if(f!=="default")return null;let m=(0,Lc.getBlockSupport)(r,z5,{}),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:BPe(m,l),B={...m,...w},{type:R,default:{type:I="default"}={}}=B,A=R||I,P=!!(y&&(!A||A==="default"||A==="constrained"||B.inherit)),{inherit:O=!1,contentSize:N=null}=w;if((A==="default"||A==="constrained")&&!a)return null;let j=Ba(A),D=Ba("constrained"),M=!w.type&&(N||O),V=!!O||!!N,L=Bn(u)&&!O&&b,z=Y=>{if(p){let Z=Ge({..._,layout:JJe(Y,S,_?.layout)});o({style:Pn(t,u,Z)});return}o({layout:Ge(Y)})},q=Y=>z({type:Y}),J=()=>z(T),te=()=>z({type:"default"}),ee=()=>j?.name==="constrained"||V,W=()=>p?(w?.type??"default")!==(T?.type??"default"):e?.type==="constrained",$=()=>(w?.type??"default")!==(T?.type??"default");return(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsxs)(Oe,{group:"layout",resetAllFilter:h,children:[P&&(0,Dn.jsx)(Mc.__experimentalToolsPanelItem,{label:(0,My.__)("Use content width"),hasValue:W,onDeselect:te,isShownByDefault:!0,panelId:n,children:(0,Dn.jsx)(Mc.ToggleControl,{label:(0,My.__)("Inner blocks use content width"),checked:ee(),onChange:()=>z({type:ee()?"default":"constrained"}),help:ee()?(0,My.__)("Nested blocks use content width with options for full and wide widths."):(0,My.__)("Nested blocks will fill the width of this container.")})}),L&&(0,Dn.jsx)(Mc.__experimentalToolsPanelItem,{label:(0,My.__)("Layout type"),hasValue:$,onDeselect:J,isShownByDefault:!0,panelId:n,children:(0,Dn.jsx)(ret,{type:A,onChange:q})}),j&&j.name!=="default"&&(0,Dn.jsx)(j.inspectorControls,{layout:w,value:e,onChange:z,layoutBlockSupport:g,resetLayout:T,name:r,clientId:n}),D&&M&&(0,Dn.jsx)(D.inspectorControls,{layout:w,value:e,onChange:z,layoutBlockSupport:g,resetLayout:T,name:r,clientId:n})]}),!O&&j&&(0,Dn.jsx)(j.toolBarControls,{layout:w,onChange:z,layoutBlockSupport:m,controlsGroup:d&&Hi(u)&&!ea(u)?"style-state":"block",name:r,clientId:n})]})}var IPe={shareWithChildBlocks:!0,edit:oet,attributeKeys:["layout","style"],hasSupport(e){return ZK(e)}};function ret({type:e,onChange:t}){return(0,Dn.jsx)(Mc.__experimentalToggleGroupControl,{isBlock:!0,label:(0,My.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:sQ().map(({name:o,label:r})=>(0,Dn.jsx)(Mc.__experimentalToggleGroupControlOption,{value:o,label:r},o))})}function net(e){return"type"in(e.attributes?.layout??{})||ZK(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,j5.useInstanceId)(e),{layout:u}=a,{default:d}=(0,Lc.getBlockSupport)(s,z5)||{},f=u?.inherit||u?.contentSize||u?.wideSize?{...u,type:"constrained"}:u||d||{},p=`wp-container-${YK(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=K({[`${p}${l}`]:!!y},i);return el({css:y}),(0,Dn.jsx)(e,{...t,__unstableLayoutClassNames:k})}var set=(0,j5.createHigherOrderComponent)(e=>function(o){let{clientId:r,name:n,attributes:i}=o,s=ZK(n),a=U5(i,n),l=(0,H5.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[rs],b,v=i?.className;if(v?.includes(ZJe)){let{getBlockStyles:k}=u(Lc.store),S=k(n),_=s1(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,Dn.jsx)(iet,{block:e,props:o,layoutClasses:a,...l}):(0,Dn.jsx)(e,{...o,__unstableLayoutClassNames:s?a:void 0})},"withLayoutStyles");(0,qK.addFilter)("blocks.registerBlockType","core/layout/addAttribute",net);(0,qK.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",set);var zPe=c(fe(),1),Y5=c(Q(),1),jPe=c(F(),1);var Rl=c(F(),1),zh=c(Q(),1),APe=c(fe(),1);function F1(e,t){return Array.from({length:t},(o,r)=>e+r)}var Nc=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 Xr(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function V1(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(Xr(e,"column-gap")),r=parseFloat(Xr(e,"row-gap")),n=V1(Xr(e,"grid-template-columns"),o),i=V1(Xr(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 Nc({columnStart:s,columnEnd:l,rowStart:a,rowEnd:u})}function OPe(e){return aet(e.parentElement,new window.DOMRect(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight))}function QK(e){let t=Xr(e,"grid-template-columns"),o=Xr(e,"grid-template-rows"),r=Xr(e,"border-top-width"),n=Xr(e,"border-right-width"),i=Xr(e,"border-bottom-width"),s=Xr(e,"border-left-width"),a=Xr(e,"padding-top"),l=Xr(e,"padding-right"),u=Xr(e,"padding-bottom"),d=Xr(e,"padding-left"),f=t.split(" ").length,p=o.split(" ").length,h=f*p;return{numColumns:f,numRows:p,numItems:h,currentColor:Xr(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:o,gap:Xr(e,"gap"),inset:`
calc(${a} + ${r})
calc(${l} + ${n})
calc(${u} + ${i})
calc(${d} + ${s})
`}}}var ba=c(E(),1);function z1({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,zh.useSelect)(a=>a(C).getSettings().isDistractionFree,[]),i=Nt(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)(()=>QK(t)),[a,l]=(0,Rl.useState)(!1),u=Nt(r),d=(0,Rl.useMemo)(()=>u?OPe(u):null,[u]);return(0,Rl.useEffect)(()=>{let f=()=>s(QK(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:K("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 F1(1,e.numRows).map(o=>F1(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,ba.jsx)(LPe,{color:n},`${o}-${r}`)}))}function det({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,Rl.useState)(null),i=(0,zh.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 Nc({columnStart:u,rowStart:d,columnSpan:f,rowSpan:p}))}return a},[i]);return F1(1,t.numRows).map(a=>F1(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)(LPe,{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 LPe({color:e,children:t,className:o}){return(0,ba.jsx)("div",{className:K("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,zh.useSelect)(C),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,zh.useDispatch)(C),p=py(o,r.numColumns);return met({validateDrag(h){let m=l(h);if(!a(m,o))return!1;let g=i(h),b=new Nc({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan});return new Nc({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(h){let m=i(h);n(new Nc({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,zh.useDispatch)(C),l=py(o,r.numColumns);return(0,ba.jsx)(vm,{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,zh.useSelect)(C);return(0,APe.__experimentalUseDropZone)({onDragEnter(){let[i]=n();i&&e(i)&&t(i)},onDragLeave(){o()},onDrop(){let[i]=n();i&&e(i)&&r(i)}})}var NPe=c(U(),1),j1=c(F(),1);var G5=c(E(),1);function JK({clientId:e,bounds:t,onChange:o,parentLayout:r}){let n=Nt(e),i=n?.parentElement,{isManualPlacement:s}=r;return!n||!i?null:(0,G5.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,j1.useState)(null),[l,u]=(0,j1.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,j1.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,G5.jsx)(Xa,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:p,children:(0,G5.jsx)(NPe.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(Xr(r,"column-gap")),v=parseFloat(Xr(r,"row-gap")),y=V1(Xr(r,"grid-template-columns"),b),k=V1(Xr(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),W5=c(U(),1);var DPe=c(Q(),1),VPe=c(fe(),1);var Ei=c(E(),1);function eY({layout:e,parentLayout:t,onChange:o,gridClientId:r,blockClientId:n}){let{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,DPe.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=py(r,h);return(0,Ei.jsx)(No,{group:"parent",children:(0,Ei.jsxs)(W5.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,Ei.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,Ei.jsx)(H1,{icon:(0,Bl.isRTL)()?un:Ti,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,Ei.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,Ei.jsx)(H1,{className:"is-up-button",icon:eg,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,Ei.jsx)(H1,{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,Ei.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,Ei.jsx)(H1,{icon:(0,Bl.isRTL)()?Ti: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 H1({className:e,icon:t,label:o,isDisabled:r,onClick:n,description:i}){let a=`block-editor-grid-item-mover-button__description-${(0,VPe.useInstanceId)(H1)}`;return(0,Ei.jsxs)(Ei.Fragment,{children:[(0,Ei.jsx)(W5.ToolbarButton,{className:K("block-editor-grid-item-mover-button",e),icon:t,label:o,"aria-describedby":a,onClick:r?null:n,disabled:r,accessibleWhenDisabled:!0}),(0,Ei.jsx)(bt,{id:a,children:i})]})}var U1=c(Q(),1),K5=c(F(),1),$5=c(fe(),1);function tY({clientId:e}){let{gridLayout:t,blockOrder:o,selectedBlockLayout:r}=(0,U1.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,U1.useSelect)(C),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,U1.useDispatch)(C),l=(0,K5.useMemo)(()=>r?new Nc(r):null,[r]),u=(0,$5.usePrevious)(l),d=(0,$5.usePrevious)(t.isManualPlacement),f=(0,$5.usePrevious)(o);(0,K5.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 Nc({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 Nc({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]=De(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]=De(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 Nc({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(vr),yet={},jh={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},vet=[jh.max,jh.fixed];function FPe(e){return vet.includes(e)}function HPe({selector:e,declarations:t}){return`${e} {
${Object.entries(t).map(([o,r])=>`${o}: ${r}`).join("; ")};
}`}function UPe({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===jh.fit||l===jh.grow)&&FPe(m)&&t.flexSize&&(y["flex-basis"]="unset",m===jh.fixed&&(y["flex-shrink"]="unset")),FPe(l)&&u?(y["flex-basis"]=u,l===jh.fixed?y["flex-shrink"]="0":i&&m===jh.fixed&&(y["flex-shrink"]="unset"),y["box-sizing"]="border-box"):l===jh.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,B=p&&p>1?"1/-1":"auto";v.push({rulesGroup:`@container (max-width: ${Math.max(w,T)}${S})`,selector:e,declarations:{"grid-column":B,"grid-row":"auto"}})}return v}function ket({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return UPe({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=HPe(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=UPe({selector:t,layout:n,viewportOverrides:a,parentLayout:o,includeContainerQuery:!1}).map(HPe).join("");return u?`${s}{${u}}`:""}).filter(Boolean).join("")}function xet({style:e}){let{shouldRenderChildLayoutStyles:t,viewportSettings:o}=(0,Y5.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=vg()||{},u=(0,zPe.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=vg()||{},{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,Y5.useSelect)(B=>{let{getBlockRootClientId:R,getBlockEditingMode:I,getTemplateLock:A,getBlockAttributes:P,getSettings:O}=B(C),N=R(e);if(A(N)||I(N)!=="default")return{rootClientId:N,isVisible:!1};let j=P(N),D=P(e),M=O(),V=M?.[wa]?.toLowerCase()||no.desktop.key;return{rootClientId:N,isVisible:!0,parentBlockVisibility:j?.metadata?.blockVisibility,blockBlockVisibility:D?.metadata?.blockVisibility,deviceType:V,viewportSettings:M?.__experimentalFeatures?.viewport,isChildBlockAGrid:D?.layout?.type==="grid"}},[e]),m=Nt(e)?.ownerDocument?.defaultView,g=m===null?void 0:m,{isBlockCurrentlyHidden:b,currentViewport:v}=Ma({blockVisibility:l,deviceType:d,view:g,viewportSettings:f}),y=(0,Y5.useSelect)(B=>{if(!s)return!1;let{isBlockParentHiddenAtViewport:R}=H(B(C));return R(s,v)},[s,v]),{isBlockCurrentlyHidden:k}=Ma({blockVisibility:u,deviceType:d,view:g,viewportSettings:f}),[S,_]=(0,jPe.useState)(),x=p?e:void 0;if(!a||b||y)return null;let w=r&&!k;function T(B){o({style:{...t,layout:{...t?.layout,...B}}})}return(0,Hf.jsxs)(Hf.Fragment,{children:[(0,Hf.jsx)(z1,{clientId:s,contentRef:_,parentLayout:i,childGridClientId:x}),w&&(0,Hf.jsx)(JK,{clientId:e,bounds:S,onChange:T,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,Hf.jsx)(eY,{layout:t?.layout,parentLayout:i,onChange:T,gridClientId:s,blockClientId:e})]})}var oY={useBlockProps:xet,edit:wet,attributeKeys:["style"],hasSupport(){return!0}};var nY=c(go(),1),rY=c(ue(),1),GPe="metadata";function Eet(e){return e?.attributes?.[GPe]?.type||(e.attributes={...e.attributes,[GPe]:{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,rY.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,rY.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,nY.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",Eet);(0,nY.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",Tet);var iY=c(G(),1),q5=c(F(),1),Z5=c(U(),1),X5=c(ue(),1),bx=c(Q(),1);var Hh=c(E(),1),Ret={};function Bet({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,bx.useSelect)(h=>h(X5.store).getBlockTypes(),[]),n=(0,q5.useMemo)(()=>r?.filter(({name:h,blockHooks:m})=>m&&e in m||o.includes(h)),[r,e,o]),i=(0,bx.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,bx.useSelect)(C),{insertBlock:u,removeBlock:d}=(0,bx.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,Hh.jsx)(Oe,{children:(0,Hh.jsxs)(Z5.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,iY.__)("Plugins"),initialOpen:!0,children:[(0,Hh.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,iY.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(f).map(h=>(0,Hh.jsxs)(q5.Fragment,{children:[(0,Hh.jsx)("h3",{children:h}),f[h].map(m=>{let g=m.name in i;return(0,Hh.jsx)(Z5.ToggleControl,{checked:g,label:m.title,onChange:()=>{if(!g){let b=m.blockHooks[e];p((0,X5.createBlock)(m.name),b);return}d(i[m.name],!1)}},m.title)})]},h))]})})}var WPe={edit:Bet,attributeKeys:["metadata"],hasSupport(){return!0}};var sY=c(G(),1),$Pe=c(ue(),1),yx=c(U(),1),KPe=c(Q(),1),YPe=c(F(),1),qPe=c(fe(),1);var Uh=c(E(),1),Pet=()=>(0,qPe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},Iet=({name:e,metadata:t})=>{let o=(0,YPe.useContext)(_n),{removeAllBlockBindings:r}=yd(),n=Pet(),{bindableAttributes:i,hasCompatibleFields:s}=(0,KPe.useSelect)(l=>{let{__experimentalBlockBindingsSupportedAttributes:u}=l(C).getSettings(),{getAllBlockBindingsSources:d,getBlockBindingsSourceFieldsList:f}=H(l($Pe.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,Uh.jsx)(Oe,{group:"bindings",children:(0,Uh.jsxs)(yx.__experimentalToolsPanel,{label:(0,sY.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:n,className:"block-editor-bindings__panel",children:[(0,Uh.jsx)(yx.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:i.map(l=>(0,Uh.jsx)(zw,{attribute:l,blockName:e,binding:a?.[l]},l))}),(0,Uh.jsx)(yx.__experimentalText,{as:"div",variant:"muted",children:(0,Uh.jsx)("p",{children:(0,sY.__)("Attributes connected to custom fields or other dynamic data.")})})]})})},ZPe={edit:Iet,attributeKeys:["metadata"],hasSupport(e){return!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)}};var XPe=c(G(),1),QPe=c(U(),1),eF=c(Q(),1),tF=c(ue(),1),JPe=c(F(),1);var Q5=c(Q(),1);function J5(e){let{isOpened:t,expandRevision:o}=(0,Q5.useSelect)(i=>{let{isListViewPanelOpened:s,getListViewExpandRevision:a}=H(i(C));return{isOpened:s(e),expandRevision:a()}},[e]),{__unstableToggleListViewPanel:r}=(0,Q5.useDispatch)(C);return{isOpened:t,expandRevision:o,handleToggle:i=>{r(e,i)}}}var vx=c(E(),1),Oet="listView";function Aet(e){return(0,tF.hasBlockSupport)(e,Oet)}function Let({clientId:e,name:t}){let{isSelectionWithinCurrentSection:o}=(0,JPe.useContext)(Fn),{isOpened:r,expandRevision:n,handleToggle:i}=J5(e),{openListViewContentPanel:s}=H((0,eF.useDispatch)(C)),{isEnabled:a,hasChildren:l,isNestedListView:u}=(0,eF.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,tF.getBlockType)(t)?.title||t;return!a||u?null:(0,vx.jsx)(Rb,{group:"list",children:(0,vx.jsxs)(QPe.PanelBody,{title:o?f:void 0,opened:r,onToggle:i,children:[!l&&(0,vx.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,XPe.__)("No items yet.")}),(0,vx.jsx)(vE,{rootClientId:e,isExpanded:!0,description:f,showAppender:!0,onSelect:s},`${e}-${n}`)]})})}var eIe={edit:Let,hasSupport:Aet,attributeKeys:[],supportsPatternEditing:!0};var tIe=c(go(),1),oIe=c(ue(),1);function Met(e){return e.__experimentalLabel||(0,oIe.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,tIe.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",Met);var rIe=c(fe(),1),nIe=c(go(),1),aY=c(Q(),1);var Pl=c(E(),1);function Net(e){tY(e)}function Det({clientId:e,layout:t}){let{isVisible:o,blockVisibility:r,deviceType:n,viewportSettings:i}=(0,aY.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()||no.desktop.key;return{isVisible:!0,blockVisibility:S?.metadata?.blockVisibility,deviceType:x,viewportSettings:_?.__experimentalFeatures?.viewport}},[e]),a=Nt(e)?.ownerDocument?.defaultView,l=a===null?void 0:a,{isBlockCurrentlyHidden:u,currentViewport:d}=Ma({blockVisibility:r,deviceType:n,view:l,viewportSettings:i}),f=(0,aY.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)(Net,{clientId:e}),o&&!u&&!f&&(0,Pl.jsx)(z1,{clientId:e,parentLayout:t})]})}var Vet=(0,rIe.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,nIe.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",Vet);var G1=c(ue(),1),sIe=c(U(),1),aIe=c(Q(),1);var rF=c(F(),1),lIe=c(G(),1);function iIe(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 oF=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=Er(),n=(0,rF.useContext)(_n),i=(0,aIe.useSelect)(u=>{let d=u(C).getBlockAttributes(t);if(!d?.metadata?.bindings)return d;let{getBlockBindingsSource:f}=H(u(G1.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,G1.getBlockType)(e),{fields:a,form:l}=(0,rF.useMemo)(()=>s?.attributes?iIe(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return r!=="default"||!a||a.length===0?null:(0,oF.jsx)(Oe,{children:(0,oF.jsx)(sIe.PanelBody,{title:(0,lIe.__)("Settings"),children:(0,oF.jsx)(B1,{data:i,fields:a,form:l,onChange:o})})})}var cIe={edit:jet,attributeKeys:[],hasSupport(e){let t=(0,G1.getBlockType)(e);return zet(t?.attributes)}};function nF(e){let{style:t}=e,o=t?.dimensions||{},r=ga({dimensions:o});return{className:o.aspectRatio?"has-aspect-ratio":void 0,style:r}}function iF(e){let t=e.style?.border||{};return{className:d$(e)||void 0,style:ga({border:t})}}function lY(e){let{colors:t}=qm(),o=iF(e),{borderColor:r}=e;if(r){let n=by({colors:t,namedColor:r});o.style.borderColor=n.color}return o}function cY(e){let t=e.style?.shadow||"";return{style:ga({shadow:t})}}var uY=c(F(),1);function sF(e){let{backgroundColor:t,textColor:o,gradient:r,style:n}=e,i=xa("background-color",t),s=xa("color",o),a=bv(r),l=a||n?.color?.gradient,u=K(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 dY(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,uY.useMemo)(()=>[...n||[],...i||[],...s||[]],[n,i,s]),f=(0,uY.useMemo)(()=>[...a||[],...l||[],...u||[]],[a,l,u]),p=sF(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 fY(e){let{style:t}=e,o=t?.spacing||{};return{style:ga({spacing:o})}}var uIe=c(U(),1);var{kebabCase:Het}=H(uIe.privateApis);function pY(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:K(n,i,bp(e?.fontSize)),style:r}}var aF=c(F(),1);function mY(e){let[t,o]=(0,aF.useState)(e);return(0,aF.useEffect)(()=>{e&&o(e)},[e]),t}b1e([SV,rV,oK,NK,M5,F5,$K,iV,x9,IPe,WPe,ZPe,oY,F1e,JBe,eIe,cIe].filter(Boolean));y1e([SV,rV,sEe,M5,b$,cPe,$K,S$,_$,iV,f$,F5,x9,UCe,oY]);v1e([SV,rV,oK,H1e,NK,f$,F5,iV,b$,M5,S$,_$]);var dIe={button:"wp-element-button",caption:"wp-element-caption"},Uet=e=>dIe[e]?dIe[e]:"";var fIe=()=>"";var Sx=c(F(),1),W1=c(ue(),1),gY=c(Ko(),1);var pIe=c(E(),1);function bY(e,t,o){if(e==null||e===!1)return;if(Array.isArray(e))return hY(e,t,o);switch(typeof e){case"string":case"number":return}let{type:r,props:n}=e;switch(r){case Sx.StrictMode:case Sx.Fragment:return hY(n.children,t,o);case Sx.RawHTML:return;case GC.Content:return mIe(t,o);case FE:t.push(n.value);return}switch(typeof r){case"string":return typeof n.children<"u"?hY(n.children,t,o):void 0;case"function":let i=r.prototype&&typeof r.prototype.render=="function"?new r(n).render():r(n);return bY(i,t,o)}}function hY(e,...t){e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++)bY(e[o],...t)}function mIe(e,t){for(let o=0;o<t.length;o++){let{name:r,attributes:n,innerBlocks:i}=t[o],s=(0,W1.getSaveElement)(r,n,(0,pIe.jsx)(GC.Content,{}));bY(s,e,i)}}function hIe(e=[]){W1.__unstableGetBlockProps.skipFilters=!0;let t=[];return mIe(t,e),W1.__unstableGetBlockProps.skipFilters=!1,t.map(o=>o instanceof gY.RichTextData?o:gY.RichTextData.fromHTMLString(o))}var gIe=c(U(),1);var yY=c(E(),1);function bIe({clientId:e,resizableBoxProps:t,...o}){return(0,yY.jsx)(Xa,{clientId:e,__unstablePopoverSlot:"block-toolbar",...o,children:(0,yY.jsx)(gIe.ResizableBox,{...t})})}var K1=c(F(),1),lF=c(Q(),1),Dc=c(U(),1),$1=c(G(),1);var Il=c(E(),1);function yIe({rules:e}){let[t,o]=(0,K1.useState)(!1),{clientIds:r,selectPrevious:n,message:i}=(0,lF.useSelect)(m=>H(m(C)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=H((0,lF.useDispatch)(C));if((0,K1.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,K1.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,$1.__)("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,$1.__)("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,$1.__)("Cancel")}),(0,Il.jsx)(Dc.Button,{variant:"primary",onClick:h,disabled:p,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,$1.__)("Delete")})]})]})})}var vY=c(F(),1);var kx=c(U(),1),SIe=c(F(),1),Ds=c(G(),1),cF=c(E(),1),vIe=[{value:"fill",label:(0,Ds._x)("Fill","Scale option for dimensions control"),help:(0,Ds.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,Ds._x)("Contain","Scale option for dimensions control"),help:(0,Ds.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,Ds._x)("Cover","Scale option for dimensions control"),help:(0,Ds.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,Ds._x)("None","Scale option for dimensions control"),help:(0,Ds.__)("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,Ds._x)("Scale down","Scale option for dimensions control"),help:(0,Ds.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function kIe({panelId:e,value:t,onChange:o,options:r=vIe,defaultValue:n=vIe[0].value,isShownByDefault:i=!0}){let s=t??n,a=(0,SIe.useMemo)(()=>r.reduce((l,u)=>(l[u.value]=u.help,l),{}),[r]);return(0,cF.jsx)(kx.__experimentalToolsPanelItem,{label:(0,Ds._x)("Scale","Image scaling options"),isShownByDefault:i,hasValue:()=>s!==n,onDeselect:()=>o(n),panelId:e,children:(0,cF.jsx)(kx.__experimentalToggleGroupControl,{label:(0,Ds._x)("Scale","Image scaling options"),isBlock:!0,help:a[s],value:s,onChange:o,children:r.map(l=>(0,cF.jsx)(kx.__experimentalToggleGroupControlOption,{...l},l.value))})})}var _x=c(U(),1),Ny=c(G(),1),Uf=c(E(),1);function _Ie({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)(_x.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Ny.__)("Width"),isShownByDefault:n,hasValue:()=>i!=="",onDeselect:a("width"),panelId:e,children:(0,Uf.jsx)(_x.__experimentalUnitControl,{label:(0,Ny.__)("Width"),placeholder:(0,Ny.__)("Auto"),labelPosition:"top",units:r,min:0,value:i,onChange:a("width")})}),(0,Uf.jsx)(_x.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Ny.__)("Height"),isShownByDefault:n,hasValue:()=>s!=="",onDeselect:a("height"),panelId:e,children:(0,Uf.jsx)(_x.__experimentalUnitControl,{label:(0,Ny.__)("Height"),placeholder:(0,Ny.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:a("height")})})]})}var Gh=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,vY.useState)(p),[g,b]=(0,vY.useState)(f),y=!!(u&&d)?"custom":f,k=f||u&&d;return(0,Gh.jsxs)(Gh.Fragment,{children:[l.includes("aspectRatio")&&(0,Gh.jsx)(kD,{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,Gh.jsx)(_Ie,{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,Gh.jsx)(kIe,{panelId:e,options:i,defaultValue:s,value:h,onChange:S=>{let _={...t};m(S),S?_.scale=S:delete _.scale,o(_)}})]})}var xIe=Get;var uF=c(U(),1),Gf=c(G(),1),SY=c(E(),1),wIe=[{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 CIe({panelId:e,value:t,onChange:o,options:r=wIe,defaultValue:n=wIe[0].value,isShownByDefault:i=!0,resetAllFilter:s}){let a=t??n;return(0,SY.jsx)(uF.__experimentalToolsPanelItem,{hasValue:()=>a!==n,label:(0,Gf.__)("Resolution"),onDeselect:()=>o(n),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,SY.jsx)(uF.SelectControl,{label:(0,Gf.__)("Resolution"),value:a,options:r,onChange:o,help:(0,Gf.__)("Select the size of the source image.")})})}var Dy=c(G(),1),xx=c(U(),1),TIe=c(Q(),1);var Vc=c(G(),1),EIe={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 Y1=c(E(),1);function RIe({tagName:e,onChange:t,clientId:o,options:r=[{label:(0,Dy.__)("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,TIe.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,Dy.sprintf)((0,Dy.__)("%s (Already in use)"),a.label)}:a);return(0,Y1.jsxs)(xx.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,Y1.jsx)(xx.SelectControl,{label:(0,Dy.__)("HTML element"),options:s,value:e,onChange:t,help:EIe[e]}),e==="main"&&i&&(0,Y1.jsx)(xx.Notice,{status:"warning",isDismissible:!1,children:(0,Dy.__)("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 wx=c(F(),1),dF=c(G(),1);var Vs=c(U(),1);var BIe=c(Tt(),1);var ya=c(E(),1),{Badge:Wet}=H(Vs.privateApis);function PIe({title:e,url:t,image:o,badges:r}){return(0,ya.jsxs)(Vs.__experimentalHStack,{justify:"space-between",alignment:"top",children:[(0,ya.jsx)(Vs.FlexItem,{className:"link-preview-button__content",children:(0,ya.jsxs)(Vs.__experimentalHStack,{alignment:"top",children:[o&&(0,ya.jsx)(Vs.FlexItem,{className:"link-preview-button__image-container",children:(0,ya.jsx)("img",{className:"link-preview-button__image",src:o,alt:""})}),(0,ya.jsxs)(Vs.__experimentalVStack,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,ya.jsx)(Vs.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__title",children:(0,BIe.__unstableStripHTML)(e)}),t&&(0,ya.jsx)(Vs.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,ya.jsx)(Vs.__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 kY({preview:e,onSelect:t,suggestionsQuery:o,label:r,help:n}){let[i,s]=(0,wx.useState)(!1),a=(0,wx.useId)(),l=`link-picker-title-${a}`,u=`link-picker-description-${a}`,d=(0,wx.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)(PIe,{title:e.title||(0,dF.__)("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,dF.__)("Select a link")}),(0,va.jsx)("p",{id:u,children:(0,dF.__)("Search for and add a link to the navigation item.")})]}),(0,va.jsx)(th,{value:null,onChange:h,suggestionsQuery:o,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})}var td=c(F(),1),fF=c(Q(),1),IIe=c(Tt(),1);var Cx=c(E(),1),_Y="wp-inner-block-slot",$et={type:"default",alignments:[]};function OIe({clientId:e}){let{innerContent:t,order:o,selectedClientIds:r}=(0,fF.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?`<${_Y} data-slot-index="${l++}" style="display: contents"></${_Y}>`:u).join("")},[t]),i=(0,td.useRef)(),[s,a]=(0,td.useState)([]);return(0,td.useLayoutEffect)(()=>{let l=i.current;l.innerHTML=(0,IIe.safeHTML)(n),a(Array.from(l.querySelectorAll(_Y)).sort((u,d)=>Number(u.dataset.slotIndex)-Number(d.dataset.slotIndex)))},[n]),(0,Cx.jsxs)(cP,{value:$et,children:[(0,Cx.jsx)("div",{ref:i,className:"block-editor-inner-content",style:{display:"contents"}}),o.map((l,u)=>s[u]?(0,td.createPortal)((0,Cx.jsx)(fF.AsyncModeProvider,{value:!r.includes(l),children:(0,Cx.jsx)(mI,{rootClientId:e,clientId:l})}),s[u],l):null)]})}var xY={};KY(xY,{...i$,ExperimentalBlockCanvas:lG,BlockCanvasCover:fM,ExperimentalBlockEditorProvider:TS,getDuotoneFilter:N5,getRichTextValues:hIe,PrivateQuickInserter:E2,extractWords:qB,getNormalizedSearchTerms:Lw,normalizeString:Aw,PrivateListView:vE,ResizableBoxPopover:bIe,InspectorControlsLastItem:pV,useHasBlockToolbar:UL,cleanEmptyObject:Ge,getStyleForState:To,isDefaultBlockStyleState:Bn,setStyleForState:Pn,usePrivateStyleOverride:Tc,BlockQuickNavigation:uV,LayoutStyle:aQ,BlockManager:_V,BlockRemovalWarningModal:yIe,useLayoutClasses:U5,useLayoutStyles:XK,DimensionsTool:xIe,ResolutionTool:CIe,TabbedSidebar:k2,TextAlignmentControl:pD,usesContextKey:EW,useFlashEditableBlocks:iI,HTMLElementControl:RIe,useZoomOut:MC,globalStylesDataKey:rs,globalStylesLinksDataKey:Wy,selectBlockPatternsKey:qf,requiresWrapperOnCopy:KU,PrivateRichText:zE,PrivateInserterLibrary:V$,reusableBlocksSelectKey:cT,userPatternCategoriesSelectKey:id,PrivateBlockPopover:kb,PrivatePublishDateTimePicker:$$,useSpacingSizes:XN,useBlockDisplayTitle:jn,BlockStyleVariationOverridesWithConfig:a$,setBackgroundStyleDefaults:YD,sectionRootClientIdKey:Zf,NoteIconSlotFill:vL,NoteIconToolbarSlotFill:NL,mediaEditKey:uT,getMediaSelectKey:dT,deviceTypeKey:wa,isIsolatedEditorKey:Xf,isNavigationOverlayContextKey:fT,isNavigationPostEditorKey:cq,mediaUploadOnSuccessKey:Ax,mediaSideloadFromUrlKey:uq,openMediaEditorModalKey:dq,useBlockElement:Nt,useBlockElementRef:xg,LinkPicker:kY,useRemoteUrlData:xN,PrivateBlockContext:Fn,useListViewPanelState:J5,isHashLink:Kh,isRelativePath:Yh,InnerContent:OIe,useNativeUndo:Cv,usesNativeUndo:gJ});return WIe(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.
*)
*/