vendor: 1,383 bytes, lines 1-2
1/*! For license information please see 19.js.LICENSE.txt */ 2(self.webpackChunk_automattic_jetpack_comments=self.webpackChunk_automattic_jetpack_comments||[]).push([[19],{9479(e,t,n){"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,081 bytes, line 2
2,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function m(e,t){return t.push(e),e}var g=1,h=1,b=0,y=0,v=0,k="";function x(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:g,column:h,length:s,return:""}}function w(e,t){return s(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return v=y>0?u(k,--y):0,h--,10===v&&(h=1,g--),v}function S(){return v=y<b?u(k,y++):0,h++,10===v&&(h=1,g++),v}function C(){return u(k,y)}function A(){return y}function E(e,t){return d(k,e,t)}function I(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return g=h=1,b=f(k=e),y=0,[]}function N(e){return k="",e}function j(e){return a(E(y-1,O(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(v=C())&&v<33;)S();return I(e)>2||I(v)>3?"":" "}function L(e,t){for(;--t&&S()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return E(e,A()+(t<6&&32==C()&&32==S()))}function O(e){for(;S();)switch(v){case e:return y;case 34:case 39:34!==e&&39!==e&&O(v);break;case 40:41===e&&O(e);break;case 92:S()}return y}function R(e,t){for(;S()&&e+v!==57&&(e+v!==84||47!==C()););return"/*"+E(t,y-1)+"*"+i(47===e?e:S())}function M(e){for(;!I(C());)S();return E(e,y)}var P="-ms-",D="-moz-",z="-webkit-",F="comm",$="rule",V="decl",H="@keyframes";function W(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case F:return"";case H:return e.return=e.value+"{"+W(e.children,r)+"}";case $:e.value=e.props.join(",")}return f(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return N(G("",null,null,null,[""],e=T(e),0,[0],e))}function G(e,t,n,r,o,s,a,d,p){for(var g=0,h=0,b=a,y=0,v=0,k=0,x=1,w=1,E=1,I=0,T="",N=o,O=s,P=r,D=T;w;)switch(k=I,I=S()){case 40:if(108!=k&&58==u(D,b-1)){-1!=c(D+=l(j(I),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:D+=j(I);break;case 9:case 10:case 13:case 32:D+=B(k);break;case 92:D+=L(A()-1,7);continue;case 47:switch(C()){case 42:case 47:m(Z(R(S(),A()),t,n),p);break;default:D+="/"}break;case 123*x:d[g++]=f(D)*E;case 125*x:case 59:case 0:switch(I){case 0:case 125:w=0;case 59+h:-1==E&&(D=l(D,/\f/g,"")),v>0&&f(D)-b&&m(v>32?Y(D+";",r,n,b-1):Y(l(D," ","")+";",r,n,b-2),p);break;case 59:D+=";";default:if(m(P=q(D,t,n,g,h,o,d,T,N=[],O=[],b),s),123===I)if(0===h)G(D,t,P,P,N,s,b,d,O);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:G(e,P,P,r&&m(q(e,P,P,0,0,o,d,T,o,N=[],b),O),o,O,b,d,r?N:O);break;default:G(D,P,P,P,[""],O,0,d,O)}}g=h=v=0,x=E=1,T=D="",b=a;break;case 58:b=1+f(D),v=k;default:if(x<1)if(123==I)--x;else if(125==I&&0==x++&&125==_())continue;switch(D+=i(I),I*x){case 38:E=h>0?1:(D+="\f",-1);break;case 44:d[g++]=(f(D)-1)*E,E=1;break;case 64:45===C()&&(D+=j(S())),y=C(),h=b=f(T=D+=M(A())),I++;break;case 45:45===k&&2==f(D)&&(x=0)}}return s}function q(e,t,n,r,i,s,c,u,f,m,g){for(var h=i-1,b=0===i?s:[""],y=p(b),v=0,k=0,w=0;v<r;++v)for(var _=0,S=d(e,h+1,h=o(k=c[v])),C=e;_<y;++_)(C=a(k>0?b[_]+" "+S:l(S,/&\f/g,b[_])))&&(f[w++]=C);return x(e,t,n,0===i?$:u,f,m,g)}function Z(e,t,n){return x(e,t,n,F,i(v),d(e,2,-2),0)}function Y(e,t,n,r){return x(e,t,n,V,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=C(),38===r&&12===o&&(t[n]=1),!I(o);)S();return E(e,y)},Q=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(I(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=j(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(T(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=Q(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;
vendor: 4,099 bytes, line 2
2case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+D+e+P+e+e;case 6828:case 4268:return z+e+P+e+e;case 6165:return z+e+P+"flex-"+e+e;case 5187:return z+e+l(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return z+e+P+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return z+e+P+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+P+l(e,"shrink","negative")+e;case 5292:return z+e+P+l(e,"basis","preferred-size")+e;case 6060:return z+"box-"+l(e,"-grow","")+z+e+P+l(e,"grow","positive")+e;case 4554:return z+l(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+P+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+P+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+P+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+P+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=ne(e.value,e.length);break;case H:return W([w(e,{value:l(e.value,"@","@"+z)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([w(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([w(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,P+"input-$1")]})],r)}return""})}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,i,s=e.stylisPlugins||re,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)});var c,u,d,f,m=[U,(f=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],g=(u=[ee,te].concat(s,m),d=p(u),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,W(K(e?e+"{"+t.styles+"}":t.styles),g),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(l),h}},1509(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},6960(e,t,n){"use strict";n.d(t,{C:()=>c,E:()=>b,T:()=>f,_:()=>u,c:()=>g,h:()=>p,w:()=>d});var r=n(2376),o=n(9479),i=n(4045),s=n(2123),a=n(8875),l=r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),c=l.Provider,u=function(){return(0,r.useContext)(l)},d=function(e){return(0,r.forwardRef)(function(t,n){var o=(0,r.useContext)(l);return e(t,o,n)})},f=r.createContext({});var p={}.hasOwnProperty,m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[m]=e,n},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;
vendor: 6,449 bytes, line 2
2return(0,i.SF)(t,n,r),(0,a.s)(function(){return(0,i.sk)(t,n,r)}),null},b=d(function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[m],l=[o],c="";"string"==typeof e.className?c=(0,i.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,s.J)(l,void 0,r.useContext(f));c+=t.key+"-"+u.name;var d={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==m&&(d[g]=e[g]);return d.className=c,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(h,{cache:t,serialized:u,isStringTag:"string"==typeof a}),r.createElement(a,d))})},3423(e,t,n){"use strict";n.d(t,{AH:()=>d});var r=n.cw(function(e,t){var n=o(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),g=l(n),h=0;h<s.length;++h){var b=s[h];if(!(i[b]||r&&r[b]||g&&g[b]||a&&a[b])){var y=f(n,b);try{c(t,b,y)}catch(e){}}}}return t}}),o=()=>n(5415),i=n(6960),s=n(2376),a=(n(8875),n(2123));r();var l,c,u=function(e,t){var n=arguments;if(null==t||!i.h.call(t,"css"))return s.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=i.E,o[1]=(0,i.c)(e,t);for(var a=2;a<r;a++)o[a]=n[a];return s.createElement.apply(null,o)};l=u||(u={}),c||(c=l.JSX||(l.JSX={}));function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.J)(t)}},2123(e,t,n){"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(1509),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)(function(e){return a(e)?e:e.replace(i,"-$&").toLowerCase()}),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return f={name:t,styles:n,next:f},t})}return 1===r[e]||a(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":l(a)&&(r+=c(i)+":"+u(i,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var f=d(e,t,s);switch(i){case"animation":case"animationName":r+=c(i)+":"+f+";";break;default:r+=i+"{"+f+"}"}}else for(var p=0;p<s.length;p++)l(s[p])&&(r+=c(i)+":"+u(i,s[p])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=f,p=n(e);return f=a,d(e,t,p)}}var m=n;if(null==t)return m;var g=t[m];return void 0!==g?g:m}var f,p=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";f=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=d(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++){if(o+=d(n,t,e[s]),r)o+=i[s]}p.lastIndex=0;for(var a,l="";null!==(a=p.exec(o));)l+="-"+a[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}},5449(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>h});var o=n(6960),i=n(2123),s=n(8875),a=n(4045),l=n(2376),c=n(1509),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,c.A)(function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),f=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,a.SF)(t,n,r),(0,s.s)(function(){return(0,a.sk)(t,n,r)}),null},h=function e(t,n){var s,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(s=n.label,c=n.target);var f=m(t,n,u),h=f||p(d),b=!h("as");return function(){var y=arguments,v=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==s&&v.push("label:"+s+";"),null==y[0]||void 0===y[0].raw)v.push.apply(v,y);else{var k=y[0];v.push(k[0]);for(var x=y.length,w=1;w<x;w++)v.push(y[w],k[w])}var _=(0,o.w)(function(e,t,n){var r=b&&e.as||d,s="",u=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=l.useContext(o.T)}"string"==typeof e.className?s=(0,a.Rk)(t.registered,u,e.className):null!=e.className&&(s=e.className+" ");var k=(0,i.J)(v.concat(u),t.registered,m);s+=t.key+"-"+k.name,void 0!==c&&(s+=" "+c);var x=b&&void 0===f?p(r):h,w={};for(var _ in e)b&&"as"===_||x(_)&&(w[_]=e[_]);return w.className=s,n&&(w.ref=n),l.createElement(l.Fragment,null,l.createElement(g,{cache:t,serialized:k,isStringTag:"string"==typeof r}),l.createElement(r,w))});return _.displayName=void 0!==s?s:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=v,_.__emotion_forwardProp=f,Object.defineProperty(_,"toString",{value:function(){return"."+c}}),_.withComponent=function(t,o){return e(t,r({},n,o,{shouldForwardProp:m(_,o,!0)})).apply(void 0,v)},_}}},8875(e,t,n){"use strict";let r;n.d(t,{s:()=>s});var o=n(2376),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,s=i||function(e){return e()};i||o.useLayoutEffect},4045(e,t,n){"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},1488(e,t){var n,r,o;r=[e,t],n=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>
2-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t=null,n=null,r=null,s=function(){e.clientWidth!==n&&f()},a=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",f,!1),e.removeEventListener("keyup",f,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",f,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",f,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",f,!1),e.addEventListener("autosize:update",f,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:a,update:f}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),f()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var r=u(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function f(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(c("scroll"),d(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var s=i("autosize:resized");try{e.dispatchEvent(s)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return s(e,t)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},1351(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},3764(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach(function(t){o[t]=r(e[t],n)}),i(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))}),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);
2return s===Array.isArray(e)?s?i.arrayMerge(e,n,i):a(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var c=l;e.exports=c},4168(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},1626(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,s=void 0!==i&&i,a=e.findChunks,l=void 0===a?r:a,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:s,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort(function(e,t){return e.start-t.start}).reduce(function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e},[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.filter(function(e){return e}).reduce(function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),s=void 0;s=i.exec(a);){var l=s.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),s.index===i.lastIndex&&i.lastIndex++}return e},[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach(function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end}),o(i,n,!1)}return r};function i(e){return e}}])},8991(e,t,n){var r=n(1351);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,s=document.createElement(i);s.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&s.setAttribute("rows","1");var a=r(e,"font-size");s.style.fontSize=a,s.style.padding="0px",s.style.border="0px";var l=document.body;l.appendChild(s),n=s.offsetHeight,l.removeChild(s)}return n}},7942(e,t,n){"use strict";n.d(t,{W:()=>s});function r(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function s(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,s=void 0===n?o:n,l=t.stripRegexp,c=void 0===l?i:l,u=t.transform,d=void 0===u?r:u,f=t.delimiter,p=void 0===f?" ":f,m=a(a(e,s,"$1\0$2"),c,"\0"),g=0,h=m.length;"\0"===m.charAt(g);)g++;for(;"\0"===m.charAt(h-1);)h--;return m.slice(g,h).split("\0").map(d).join(p)}function a(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(e,t){return e.replace(t,n)},e)}},4135(e,t,n){"use strict";n.d(t,{c:()=>i});var r=n(9565),o=n(7942);function i(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),(0,o.W)(e,(0,r.Cl)({delimiter:"."},t))}(e,(0,r.Cl)({delimiter:"-"},t))}},2769(e,t,n){"use strict";n.d(t,{fL:()=>s,l3:()=>i});var r=n(9565),o=n(7942);function i(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function s(e,t){return void 0===t&&(t={}),(0,o.W)(e,(0,r.Cl)({delimiter:"",transform:i},t))}},5389(e){function t(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e.includes(t))}
2e.exports=function(e){const n=e.prefix,r=/\s+$/.test(n)?n:`${n} `,o=e.ignoreFiles?[].concat(e.ignoreFiles):[],i=e.includeFiles?[].concat(e.includeFiles):[];return function(s){o.length&&s.source.input.file&&t(s.source.input.file,o)||i.length&&s.source.input.file&&!t(s.source.input.file,i)||s.walkRules(t=>{t.parent&&["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"].includes(t.parent.name)||(t.selectors=t.selectors.map(o=>e.exclude&&function(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e===t)}(o,e.exclude)?o:e.transform?e.transform(n,o,r+o,s.source.input.file,t):r+o))})}}},9310(e,t,n){const r=n(6390);e.exports=e=>{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(n){const o=r(n.value);let i=!1;o.walk(n=>{if("function"!==n.type||"url"!==n.value)return;const r=n.nodes[0].value,o=new URL(r,e.rootUrl);return o.pathname===r&&t.skipHostRelativeUrls||(n.nodes[0].value=o.toString(),i=!0),!1}),i&&(n.value=r.stringify(o))}}},e.exports.postcss=!0},6390(e,t,n){var r=n(2821),o=n(8157),i=n(5259);function s(e){return this instanceof s?(this.nodes=r(e),this):new s(e)}s.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},s.prototype.walk=function(e,t){return o(this.nodes,e,t),this},s.unit=n(662),s.walk=o,s.stringify=i,e.exports=s},2821(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),s="/".charCodeAt(0),a=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),f="+".charCodeAt(0),p=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var m,g,h,b,y,v,k,x,w,_=[],S=e,C=0,A=S.charCodeAt(C),E=S.length,I=[{nodes:_}],T=0,N="",j="",B="";C<E;)if(A<=32){m=C;do{m+=1,A=S.charCodeAt(m)}while(A<=32);b=S.slice(C,m),h=_[_.length-1],A===n&&T?B=b:h&&"div"===h.type?(h.after=b,h.sourceEndIndex+=b.length):A===a||A===l||A===s&&S.charCodeAt(m+1)!==c&&(!w||w&&"function"===w.type&&"calc"!==w.value)?j=b:_.push({type:"space",sourceIndex:C,sourceEndIndex:m,value:b}),C=m}else if(A===r||A===o){m=C,b={type:"string",sourceIndex:C,quote:g=A===r?"'":'"'};do{if(y=!1,~(m=S.indexOf(g,m+1)))for(v=m;S.charCodeAt(v-1)===i;)v-=1,y=!y;else m=(S+=g).length-1,b.unclosed=!0}while(y);b.value=S.slice(C+1,m),b.sourceEndIndex=b.unclosed?m:m+1,_.push(b),C=m+1,A=S.charCodeAt(C)}else if(A===s&&S.charCodeAt(C+1)===c)b={type:"comment",sourceIndex:C,sourceEndIndex:(m=S.indexOf("*/",C))+2},-1===m&&(b.unclosed=!0,m=S.length,b.sourceEndIndex=m),b.value=S.slice(C+2,m),_.push(b),C=m+2,A=S.charCodeAt(C);else if(A!==s&&A!==c||!w||"function"!==w.type||"calc"!==w.value)if(A===s||A===a||A===l)b=S[C],_.push({type:"div",sourceIndex:C-j.length,sourceEndIndex:C+b.length,value:b,before:j,after:""}),j="",C+=1,A=S.charCodeAt(C);else if(t===A){m=C;do{m+=1,A=S.charCodeAt(m)}while(A<=32);if(x=C,b={type:"function",sourceIndex:C-N.length,value:N,before:S.slice(x+1,m)},C=m,"url"===N&&A!==r&&A!==o){m-=1;do{if(y=!1,~(m=S.indexOf(")",m+1)))for(v=m;S.charCodeAt(v-1)===i;)v-=1,y=!y;else m=(S+=")").length-1,b.unclosed=!0}while(y);k=m;do{k-=1,A=S.charCodeAt(k)}while(A<=32);x<k?(b.nodes=C!==k+1?[{type:"word",sourceIndex:C,sourceEndIndex:k+1,value:S.slice(C,k+1)}]:[],b.unclosed&&k+1!==m?(b.after="",b.nodes.push({type:"space",sourceIndex:k+1,sourceEndIndex:m,value:S.slice(k+1,m)})):(b.after=S.slice(k+1,m),b.sourceEndIndex=m)):(b.after="",b.nodes=[]),C=m+1,b.sourceEndIndex=b.unclosed?m:C,A=S.charCodeAt(C),_.push(b)}else T+=1,b.after="",b.sourceEndIndex=C+1,_.push(b),I.push(b),_=b.nodes=[],w=b;N=""}else if(n===A&&T)C+=1,A=S.charCodeAt(C),w.after=B,w.sourceEndIndex+=B.length,B="",T-=1,I[I.length-1].sourceEndIndex=C,I.pop(),_=(w=I[T]).nodes;else{m=C;do{A===i&&(m+=1),m+=1,A=S.charCodeAt(m)}while(m<E&&!(A<=32||A===r||A===o||A===a||A===l||A===s||A===t||A===c&&w&&"function"===w.type&&"calc"===w.value||A===s&&"function"===w.type&&"calc"===w.value||A===n&&T));b=S.slice(C,m),t===A?N=b:u!==b.charCodeAt(0)&&d!==b.charCodeAt(0)||f!==b.charCodeAt(1)||!p.test(b.slice(2))?_.push({type:"word",sourceIndex:C,sourceEndIndex:m,value:b}):_.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:m,value:b}),C=m}else b=S[C],_.push({type:"word",sourceIndex:C-j.length,sourceEndIndex:C+b.length,value:b}),C+=1,A=S.charCodeAt(C);for(C=I.length-1;C;C-=1)I[C].unclosed=!0,I[C].sourceEndIndex=S.length;return I[0].nodes}},5259(e){function t(e,t){var r,o,i=e.type,s=e.value;return t&&void 0!==(o=t(e))?o:"word"===i||"space"===i?s:"string"===i?(r=e.quote||"")+s+(e.unclosed?"":r):"comment"===i?"/*"+s+(e.unclosed?"":"*/"):"div"===i?(e.before||"")+s+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==i?r:s+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):s}function n(e,n){var r,o;
2if(Array.isArray(e)){for(r="",o=e.length-1;~o;o-=1)r=t(e[o],n)+r;return r}return t(e,n)}e.exports=n},662(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),o="e".charCodeAt(0),i="E".charCodeAt(0);e.exports=function(e){var s,a,l,c=0,u=e.length;if(0===u||!function(e){var o,i=e.charCodeAt(0);if(i===n||i===t){if((o=e.charCodeAt(1))>=48&&o<=57)return!0;var s=e.charCodeAt(2);return o===r&&s>=48&&s<=57}return i===r?(o=e.charCodeAt(1))>=48&&o<=57:i>=48&&i<=57}(e))return!1;for((s=e.charCodeAt(c))!==n&&s!==t||c++;c<u&&!((s=e.charCodeAt(c))<48||s>57);)c+=1;if(s=e.charCodeAt(c),a=e.charCodeAt(c+1),s===r&&a>=48&&a<=57)for(c+=2;c<u&&!((s=e.charCodeAt(c))<48||s>57);)c+=1;if(s=e.charCodeAt(c),a=e.charCodeAt(c+1),l=e.charCodeAt(c+2),(s===o||s===i)&&(a>=48&&a<=57||(a===n||a===t)&&l>=48&&l<=57))for(c+=a===n||a===t?3:2;c<u&&!((s=e.charCodeAt(c))<48||s>57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},8157(e){e.exports=function e(t,n,r){var o,i,s,a;for(o=0,i=t.length;o<i;o+=1)s=t[o],r||(a=n(s,o,t)),!1!==a&&"function"===s.type&&Array.isArray(s.nodes)&&e(s.nodes,n,r),r&&n(s,o,t)}},5762(e,t,n){"use strict";var r=n(3761);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={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:i,resetWarningCache:o};return n.PropTypes=n,n}},8120(e,t,n){e.exports=n(5762)()},3761(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1932(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(2376),l=n(8120),c=n(1488),u=n(8991),d="autosize:resized",f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout(function(){return e.textarea&&c(e.textarea)}):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),o=(t.innerRef,t.children),l=s(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return a.createElement("textarea",i({},l,{onChange:this.onChange,style:u?i({},r,{maxHeight:u}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1}
vendor: 4,600 bytes, line 2
2,t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef(function(e,t){return a.createElement(f,i({},e,{innerRef:t}))})},5227(e,t,n){"use strict";var r=n(2376),o=n(226);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function g(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){h[e]=new g(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];h[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){h[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){h[e]=new g(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){h[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){h[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){h[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){h[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){h[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,y);h[t]=new g(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,y);h[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,y);h[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),h.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),E=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),B=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var M,P=Object.assign;function D(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function F(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function $(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case w:return"Portal";case C:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return P({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return P({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));
vendor: 14,602 bytes, line 2
2if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var be=P({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,_e=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),we(e.stateNode,e.type,t))}}function Ae(e){_e?Se?Se.push(e):Se=[e]:_e=e}function Ee(){if(_e){var e=_e,t=Se;if(Se=_e=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ie(e,t){return e(t)}function Te(){}var Ne=!1;function je(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Ie(e,t,n)}finally{Ne=!1,(null!==_e||null!==Se)&&(Te(),Ee())}}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=_o(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ue){Le=!1}function Re(e,t,n,r,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Pe=null,De=!1,ze=null,Fe={onError:function(e){Me=!0,Pe=e}};function $e(e,t,n,r,o,i,s,a,l){Me=!1,Pe=null,Re.apply(Fe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return We(o),e;if(s===r)return We(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Ze=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=dt(a):0!==(i&=s)&&(r=dt(i))}else 0!==(s=n&~o)?r=dt(s):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function kt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,wt,_t,St,Ct,At=!1,Et=[],It=null,Tt=null,Nt=null,jt=new Map,Bt=new Map,Lt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Pt(e){var t=ko(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,function(){_t(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ke=r,n.target.dispatchEvent(r),ke=null,t.shift()}return!0}function zt(e,t,n){Dt(e)&&n.delete(t)}function Ft(){At=!1,null!==It&&Dt(It)&&(It=null),null!==Tt&&Dt(Tt)&&(Tt=null),null!==Nt&&Dt(Nt)&&(Nt=null),jt.forEach(zt),Bt.forEach(zt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Vt(e){function t(t){return $t(t,e)}if(0<Et.length){$t(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&$t(It,e),null!==Tt&&$t(Tt,e),null!==Nt&&$t(Nt,e),jt.forEach(t),Bt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Pt(n),null===n.blockedOn&&Lt.shift()}var Ht=k.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var o=vt,i=Ht.transition;Ht.transition=null;try{vt=1,Gt(e,t,n,r)}finally{vt=o,Ht.transition=i}}function Kt(e,t,n,r){var o=vt,i=Ht.transition;Ht.transition=null;try{vt=4,Gt(e,t,n,r)}finally{vt=o,Ht.transition=i}}function Gt(e,t,n,r){if(Wt){var o=Zt(e,t,n,r);if(null===o)Ur(e,t,r,qt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Mt(It,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return Nt=Mt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jt.set(i,Mt(jt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Bt.set(i,Mt(Bt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&xt(i),null===(i=Zt(e,t,n,r))&&Ur(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var qt=null;function Zt(e,t,n,r){if(qt=null,null!==(e=ko(e=xe(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return P(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=P({},cn,{view:0,detail:0}),fn=on(dn),pn=P({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,346 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),mn=on(pn),gn=on(P({},pn,{dataTransfer:0})),hn=on(P({},dn,{relatedTarget:0})),bn=on(P({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=P({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(yn),kn=on(P({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function An(){return Cn}var En=P({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=on(En),Tn=on(P({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(P({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),jn=on(P({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=P({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(Bn),On=[9,13,27,32],Rn=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var Pn=u&&"TextEvent"in window&&!Mn,Dn=u&&(!Rn||Mn&&8<Mn&&11>=Mn),zn=String.fromCharCode(32),Fn=!1;function $n(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ae(r),0<(t=Gr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,qn=null;function Zn(e){zr(e,0)}function Yn(e){if(G(wo(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Gn&&(Gn.detachEvent("onpropertychange",rr),qn=Gn=null)}function rr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];Kn(t,qn,e,xe(e)),je(Zn,t)}}function or(e,t,n){"focusin"===e?(nr(),qn=n,(Gn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function sr(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;
vendor: 4,828 bytes, line 2
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function gr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&mr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dr(n,i);var s=dr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=u&&"documentMode"in document&&11>=document.documentMode,br=null,yr=null,vr=null,kr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==br||br!==q(r)||("selectionStart"in(r=br)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&cr(vr,r)||(vr=r,0<(r=Gr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Ar(e){if(Sr[e])return Sr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Er=Ar("animationend"),Ir=Ar("animationiteration"),Tr=Ar("animationstart"),Nr=Ar("transitionend"),jr=new Map,Br="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){jr.set(e,t),l(t,[e])}for(var Or=0;Or<Br.length;Or++){var Rr=Br[Or];Lr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Lr(Er,"onAnimationEnd"),Lr(Ir,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,c){if($e.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=Pe;Me=!1,Pe=null,De||(De=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,a,c),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,a,c),i=l}}}if(De)throw e=ze,De=!1,ze=null,e}function Fr(e,t){var n=t[bo];void 0===n&&(n=t[bo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function $r(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Vr]){e[Vr]=!0,s.forEach(function(t){"selectionchange"!==t&&(Pr.has(t)||$r(t,!1,e),$r(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,$r("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var o=Ut;break;case 4:o=Kt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=ko(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}je(function(){var r=i,o=xe(n),s=[];e:{var a=jr.get(e);if(void 0!==a){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":c="focus",l=hn;break;case"focusout":c="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case Ir:case Tr:l=bn;break;case Nr:l=jn;break;case"scroll":l=fn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==a?a+"Capture":null:a;u=[];for(var p,m=r;null!==m;){var g=(p=m).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Be(m,f))&&u.push(Kr(m,g,p)))),d)break;m=m.return}0<u.length&&(a=new l(a,c,null,n,o),s.push({event:a,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===ke||!(c=n.relatedTarget||n.fromElement)||!ko(c)&&!c[ho])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ko(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,g="onMouseLeave",f="onMouseEnter",m="mou
2se","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==l?a:wo(l),p=null==c?a:wo(c),(a=new u(g,m+"leave",l,n,o)).target=d,a.relatedTarget=p,g=null,ko(o)===r&&((u=new u(f,m+"enter",c,n,o)).target=p,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,m=0,p=u=l;p;p=qr(p))m++;for(p=0,g=f;g;g=qr(g))p++;for(;0<m-p;)u=qr(u),m--;for(;0<p-m;)f=qr(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==l&&Zr(s,a,l,u,!1),null!==c&&null!==d&&Zr(s,d,c,u,!0)}if("select"===(l=(a=r?wo(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var h=Xn;else if(Un(a))if(Qn)h=ar;else{h=ir;var b=or}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(h=sr);switch(h&&(h=h(e,r))?Kn(s,h,n,o):(b&&b(e,a,r),"focusout"===e&&(b=a._wrapperState)&&b.controlled&&"number"===a.type&&ee(a,"number",a.value)),b=r?wo(r):window,e){case"focusin":(Un(b)||"true"===b.contentEditable)&&(br=b,yr=r,vr=null);break;case"focusout":vr=yr=br=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,xr(s,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":xr(s,n,o)}var y;if(Rn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Hn?$n(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Hn&&(y=en()):(Qt="value"in(Xt=o)?Xt.value:Xt.textContent,Hn=!0)),0<(b=Gr(r,v)).length&&(v=new kn(v,e,null,n,o),s.push({event:v,listeners:b}),y?v.data=y:null!==(y=Vn(n))&&(v.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Rn&&$n(e,t)?(e=en(),Jt=Qt=Xt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new kn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=y))}zr(s,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Be(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Be(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==c&&(a=c,o?null!=(l=Be(n,i))&&s.unshift(Kr(n,l,a)):o||null!=(l=Be(n,i))&&s.push(Kr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function eo(){}var to=null,no=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oo="function"==typeof setTimeout?setTimeout:void 0,io="function"==typeof clearTimeout?clearTimeout:void 0,so="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==so?function(e){return so.resolve(null).then(e).catch(lo)}:oo;function lo(e){setTimeout(function(){throw e})}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;
vendor: 4,514 bytes, line 2
2if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function fo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),mo="__reactFiber$"+po,go="__reactProps$"+po,ho="__reactContainer$"+po,bo="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function ko(e){var t=e[mo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[mo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=fo(e);null!==e;){if(n=e[mo])return n;e=fo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[mo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[go]||null}var So=[],Co=-1;function Ao(e){return{current:e}}function Eo(e){0>Co||(e.current=So[Co],So[Co]=null,Co--)}function Io(e,t){Co++,So[Co]=e.current,e.current=t}var To={},No=Ao(To),jo=Ao(!1),Bo=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=(e=e.childContextTypes)}function Ro(){Eo(jo),Eo(No)}function Mo(e,t,n){if(No.current!==To)throw Error(i(168));Io(No,t),Io(jo,n)}function Po(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return P({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Bo=No.current,Io(No,e),Io(jo,jo.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Po(e,t,Bo),r.__reactInternalMemoizedMergedChildContext=e,Eo(jo),Eo(No),Io(No,e)):Eo(jo),Io(jo,n)}var Fo=null,$o=!1,Vo=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!Vo&&null!==Fo){Vo=!0;var e=0,t=vt;try{var n=Fo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,$o=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ge(Je,Wo),t}finally{vt=t,Vo=!1}}return null}var Uo=[],Ko=0,Go=null,qo=0,Zo=[],Yo=0,Xo=null,Qo=1,Jo="";function ei(e,t){Uo[Ko++]=qo,Uo[Ko++]=Go,Go=e,qo=t}function ti(e,t,n){Zo[Yo++]=Qo,Zo[Yo++]=Jo,Zo[Yo++]=Xo,Xo=e;var r=Qo;e=Jo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Qo=1<<32-st(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Go;)Go=Uo[--Ko],Uo[Ko]=null,qo=Uo[--Ko],Uo[Ko]=null;for(;e===Xo;)Xo=Zo[--Yo],Zo[Yo]=null,Jo=Zo[--Yo],Zo[Yo]=null,Qo=Zo[--Yo],Zo[Yo]=null}var oi=null,ii=null,si=!1,ai=null;function li(e,t){var n=jc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=jc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ii=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(si){var t=ii;if(t){var n=t;if(!ci(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=oi;t&&ci(e,t)?li(r,n):(e.flags=-4097&e.flags|2,si=!1,oi=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,si=!1,oi=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function pi(e){if(e!==oi)return!1;if(!si)return fi(e),si=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=ii)){if(ui(e))throw mi(),Error(i(418));for(;t;)li(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ii=uo(e.nextSibling);break e}t--}
vendor: 17,133 bytes, line 2
2else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ii=null}}else ii=oi?uo(e.stateNode.nextSibling):null;return!0}function mi(){for(var e=ii;e;)e=uo(e.nextSibling)}function gi(){ii=oi=null,si=!1}function hi(e){null===ai?ai=[e]:ai.push(e)}var bi=k.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ki(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Pc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===B&&ki(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Oc(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Rc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Pc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case w:return(t=Dc(t,e.mode,n)).return=e,t;case B:return f(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Rc(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case w:return n.key===o?u(e,t,n,r):null;case B:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:d(e,t,n,r,null);vi(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case B:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return d(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function g(o,i,a,l){for(var c=null,u=null,d=i,g=i=0,h=null;null!==d&&g<a.length;g++){d.index>g?(h=d,d=null):h=d.sibling;var b=p(o,d,a[g],l);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),i=s(b,i,g),null===u?c=b:u.sibling=b,u=b,d=h}if(g===a.length)return n(o,d),si&&ei(o,g),c;if(null===d){for(;g<a.length;g++)null!==(d=f(o,a[g],l))&&(i=s(d,i,g),null===u?c=d:u.sibling=d,u=d);return si&&ei(o,g),c}for(d=r(o,d);g<a.length;g++)null!==(h=m(d,o,g,a[g],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?g:h.key),i=s(h,i,g),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(o,e)}),si&&ei(o,g),c}function h(o,a,l,c){var u=R(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=a,h=a=0,b=null,y=l.next();null!==g&&!y.done;h++,y=l.next()){g.index>h?(b=g,g=null):b=g.sibling;var v=p(o,g,y.value,c);if(null===v){null===g&&(g=b);break}e&&g&&null===v.alternate&&t(o,g),a=s(v,a,h),null===d?u=v:d.sibling=v,d=v,g=b}if(y.done)return n(o,g),si&&ei(o,h),u;if(null===g){for(;!y.done;h++,y=l.next())null!==(y=f(o,y.value,c))&&(a=s(y,a,h),null===d?u=y:d.sibling=y,d=y);return si&&ei(o,h),u}for(g=r(o,g);!y.done;h++,y=l.next())null!==(y=m(g,o,h,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?h:y.key),a=s(y,a,h),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach(function(e){return t(o,e)}),si&&ei(o,h),u}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===_&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case x:e:{for(var c=s.key,u=i;null!==u;){if(u.key===c){if((c=s.type)===_){if(7===u.tag){n(r,u.sibling),(i=o(u,s.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===B&&ki(c)===u.type){n(r,u.sibling),(i=o(u,s.props)).ref=yi(r,u,s),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===_?((i=Rc(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Oc(s.type,s.key,s.props,null,r.mode,l)).ref=yi(r,i,s),l.return=r,r=l)}return a(r);case w:e:{for(u=s.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Dc(s,r.mode,l)).return=r,r=i}return a(r);case B:return e(r,i,(u=s._init)(s._payload),l)}if(te(s))return g(r,i,s,l);if(R(s))return h(r,i,s,l);vi(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Pc(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var wi=xi(!0),_i=xi(!1),Si=Ao(null),Ci=null,Ai=null,Ei=null;function Ii(){Ei=Ai=Ci=null}function Ti(e){var t=Si.current;Eo(Si),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ji(e,t){Ci=e,Ei=Ai=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ka=!0),e.firstContext=null)}function Bi(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ai){if(null===Ci)throw Error(i(308));Ai=e,Ci.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Li=null;function Oi(e){null===Li?Li=[e]:Li.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mi(e,r)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pi=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Il){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mi(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mi(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Pi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,c=l.next;l.next=null,null===s?i=c:s.next=c,s=l;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(s=0,u=c=l=null,a=i;;){var f=a.lane,p=a.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=g.payload)?m.call(p,d,f):m))break e;d=P({},d,f);break e;case 2:Pi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,s|=f;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(f=a).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=s,e.lanes=s,e.memoizedState=d}}function Ui(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ki={},Gi=Ao(Ki),qi=Ao(Ki),Zi=Ao(Ki);function Yi(e){if(e===Ki)throw Error(i(174));return e}function Xi(e,t){switch(Io(Zi,t),Io(qi,e),Io(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Gi),Io(Gi,t)}function Qi(){Eo(Gi),Eo(qi),Eo(Zi)}function Ji(e){Yi(Zi.current);var t=Yi(Gi.current),n=le(t,e.type);t!==n&&(Io(qi,e),Io(Gi,n))}function es(e){qi.current===e&&(Eo(Gi),Eo(qi))}var ts=Ao(0);function ns(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function os(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var is=k.ReactCurrentDispatcher,ss=k.ReactCurrentBatchConfig,as=0,ls=null,cs=null,us=null,ds=!1,fs=!1,ps=0,ms=0;function gs(){throw Error(i(321))}function hs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function bs(e,t,n,r,o,s){if(as=s,ls=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,is.current=null===e||null===e.memoizedState?ea:ta,e=n(r,o),fs){s=0;do{if(fs=!1,ps=0,25<=s)throw Error(i(301));s+=1,us=cs=null,t.updateQueue=null,is.current=na,e=n(r,o)}while(fs)}if(is.current=Js,t=null!==cs&&null!==cs.next,as=0,us=cs=ls=null,ds=!1,t)throw Error(i(300));return e}function ys(){var e=0!==ps;return ps=0,e}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?ls.memoizedState=us=e:us=us.next=e,us}function ks(){if(null===cs){var e=ls.alternate;e=null!==e?e.memoizedState:null}else e=cs.next;var t=null===us?ls.memoizedState:us.next;if(null!==t)us=t,cs=e;else{if(null===e)throw Error(i(310));e={memoizedState:(cs=e).memoizedState,baseState:cs.baseState,baseQueue:cs.baseQueue,queue:cs.queue,next:null},null===us?ls.memoizedState=us=e:us=us.next=e}return us}function xs(e,t){return"function"==typeof t?t(e):t}function ws(e){var t=ks(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=cs,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,c=null,u=s;do{var d=u.lane;if((as&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,a=r):c=c.next=f,ls.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==s);null===c?a=r:c.next=l,lr(r,t.memoizedState)||(ka=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,ls.lanes|=s,Ml|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _s(e){var t=ks(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);lr(s,t.memoizedState)||(ka=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ss(){}function Cs(e,t){var n=ls,r=ks(),o=t(),s=!lr(r.memoizedState,o);if(s&&(r.memoizedState=o,ka=!0),r=r.queue,Ps(Is.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==us&&1&us.memoizedState.tag){if(n.flags|=2048,Bs(9,Es.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));30&as||As(n,t,o)}return o}function As(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ls.updateQueue)?(t={lastEffect:null,stores:null},ls.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Es(e,t,n,r){t.value=n,t.getSnapshot=r,Ts(t)&&Ns(e)}function Is(e,t,n){return n(function(){Ts(t)&&Ns(e)})}function Ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ns(e){var t=Mi(e,1);null!==t&&nc(t,e,1,-1)}function js(e){var t=vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:e},t.queue=e,e=e.dispatch=Zs.bind(null,ls,e),[t.memoizedState,e]}function Bs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ls.updateQueue)?(t={lastEffect:null,stores:null},ls.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ls(){return ks().memoizedState}function Os(e,t,n,r){var o=vs();ls.flags|=e,o.memoizedState=Bs(1|t,n,void 0,void 0===r?null:r)}function Rs(e,t,n,r){var o=ks();r=void 0===r?null:r;var i=void 0;if(null!==cs){var s=cs.memoizedState;if(i=s.destroy,null!==r&&hs(r,s.deps))return void(o.memoizedState=Bs(t,n,i,r))}ls.flags|=e,o.memoizedState=Bs(1|t,n,i,r)}function Ms(e,t){return Os(8390656,8,e,t)}function Ps(e,t){return Rs(2048,8,e,t)}function Ds(e,t){return Rs(4,2,e,t)}function zs(e,t){return Rs(4,4,e,t)}function Fs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $s(e,t,n){return n=null!=n?n.concat([e]):null,Rs(4,4,Fs.bind(null,t,e),n)}function Vs(){}function Hs(e,t){var n=ks();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ws(e,t){var n=ks();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Us(e,t,n){return 21&as?(lr(n,t)||(n=gt(),ls.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ka=!0),e.memoizedState=n)}function Ks(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ss.transition;ss.transition={};try{e(!1),t()}finally{vt=n,ss.transition=r}}function Gs(){return ks().memoizedState}function qs(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ys(e))Xs(t,n);else if(null!==(n=Ri(e,t,n,r))){nc(n,e,r,ec()),Qs(n,t,r)}}function Zs(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ys(e))Xs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,lr(a,s)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(nc(n,e,r,o=ec()),Qs(n,t,r))}}function Ys(e){var t=e.alternate;return e===ls||null!==t&&t===ls}function Xs(e,t){fs=ds=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Js={readContext:Bi,useCallback:gs,useContext:gs,useEffect:gs,useImperativeHandle:gs,useInsertionEffect:gs,useLayoutEffect:gs,useMemo:gs,useReducer:gs,useRef
vendor: 5,211 bytes, line 2
2:gs,useState:gs,useDebugValue:gs,useDeferredValue:gs,useTransition:gs,useMutableSource:gs,useSyncExternalStore:gs,useId:gs,unstable_isNewReconciler:!1},ea={readContext:Bi,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Bi,useEffect:Ms,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Os(4194308,4,Fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){return Os(4,2,e,t)},useMemo:function(e,t){var n=vs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qs.bind(null,ls,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:js,useDebugValue:Vs,useDeferredValue:function(e){return vs().memoizedState=e},useTransition:function(){var e=js(!1),t=e[0];return e=Ks.bind(null,e[1]),vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ls,o=vs();if(si){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));30&as||As(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ms(Is.bind(null,r,s,e),[e]),r.flags|=2048,Bs(9,Es.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vs(),t=Tl.identifierPrefix;if(si){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-st(Qo)-1)).toString(32)+n),0<(n=ps++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ms++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ta={readContext:Bi,useCallback:Hs,useContext:Bi,useEffect:Ps,useImperativeHandle:$s,useInsertionEffect:Ds,useLayoutEffect:zs,useMemo:Ws,useReducer:ws,useRef:Ls,useState:function(){return ws(xs)},useDebugValue:Vs,useDeferredValue:function(e){return Us(ks(),cs.memoizedState,e)},useTransition:function(){return[ws(xs)[0],ks().memoizedState]},useMutableSource:Ss,useSyncExternalStore:Cs,useId:Gs,unstable_isNewReconciler:!1},na={readContext:Bi,useCallback:Hs,useContext:Bi,useEffect:Ps,useImperativeHandle:$s,useInsertionEffect:Ds,useLayoutEffect:zs,useMemo:Ws,useReducer:_s,useRef:Ls,useState:function(){return _s(xs)},useDebugValue:Vs,useDeferredValue:function(e){var t=ks();return null===cs?t.memoizedState=e:Us(t,cs.memoizedState,e)},useTransition:function(){return[_s(xs)[0],ks().memoizedState]},useMutableSource:Ss,useSyncExternalStore:Cs,useId:Gs,unstable_isNewReconciler:!1};function ra(e,t){if(e&&e.defaultProps){for(var n in t=P({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function oa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:P({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ia={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=$i(e,i,o))&&(nc(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=$i(e,i,o))&&(nc(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=$i(e,o,r))&&(nc(t,e,r,n),Vi(t,e,r))}};function sa(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function aa(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Bi(i):(o=Oo(t)?Bo:No.current,i=(r=null!=(r=t.contextTypes))?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ia,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function la(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ia.enqueueReplaceState(t,t.state,null)}function ca(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Bi(i):(i=Oo(t)?Bo:No.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(oa(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ia.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ua(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}
vendor: 13,589 bytes, line 2
2function da(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fa(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var pa="function"==typeof WeakMap?WeakMap:Map;function ma(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Ul=r),fa(0,t)},n}function ga(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fa(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fa(0,t),"function"!=typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ha(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pa;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ba(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,$i(n,t,1))),n.lanes|=1),e)}var va=k.ReactCurrentOwner,ka=!1;function xa(e,t,n,r){t.child=null===e?_i(t,null,n,r):wi(t,e.child,n,r)}function wa(e,t,n,r,o){n=n.render;var i=t.ref;return ji(t,o),r=bs(e,t,n,r,i,o),n=ys(),null===e||ka?(si&&n&&ni(t),t.flags|=1,xa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wa(e,t,o))}function _a(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Bc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(s,r)&&e.ref===t.ref)return Wa(e,t,o)}return t.flags|=1,(e=Lc(i,r)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(ka=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Wa(e,t,o);131072&e.flags&&(ka=!0)}}return Ea(e,t,n,r,o)}function Ca(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Io(Ll,Bl),Bl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Io(Ll,Bl),Bl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Io(Ll,Bl),Bl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Io(Ll,Bl),Bl|=r;return xa(e,t,o,n),t.child}function Aa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ea(e,t,n,r,o){var i=Oo(n)?Bo:No.current;return i=Lo(t,i),ji(t,o),n=bs(e,t,n,r,i,o),r=ys(),null===e||ka?(si&&r&&ni(t),t.flags|=1,xa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wa(e,t,o))}function Ia(e,t,n,r,o){if(Oo(n)){var i=!0;Do(t)}else i=!1;if(ji(t,o),null===t.stateNode)Ha(e,t),aa(t,n,r),ca(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=Bi(c):c=Lo(t,c=Oo(n)?Bo:No.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==c)&&la(t,s,r,c),Pi=!1;var f=t.memoizedState;s.state=f,Wi(t,r,s,o),l=t.memoizedState,a!==r||f!==l||jo.current||Pi?("function"==typeof u&&(oa(t,n,u,r),l=t.memoizedState),(a=Pi||sa(t,n,a,r,f,l,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,zi(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:ra(t.type,a),s.props=c,d=t.pendingProps,f=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=Bi(l):l=Lo(t,l=Oo(n)?Bo:No.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==d||f!==l)&&la(t,s,r,l),Pi=!1,f=t.memoizedState,s.state=f,Wi(t,r,s,o);var m=t.memoizedState;a!==d||f!==m||jo.current||Pi?("function"==typeof p&&(oa(t,n,p,r),m=t.memoizedState),(c=Pi||sa(t,n,c,r,f,m,l)||!1)?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,m,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ta(e,t,n,r,i,o)}function Ta(e,t,n,r,o,i){Aa(e,t);var s=!!(128&t.flags);if(!r&&!s)return o&&zo(t,n,!1),Wa(e,t,i);r=t.stateNode,va.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,a,i)):xa(e,t,a,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Na(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Xi(e,t.containerInfo)}function ja(e,t,n,r,o){return gi(),hi(o),t.flags|=256,xa(e,t,n,r),t.child}var Ba,La,Oa,Ra={dehydrated:null,treeContext:null,retryLane:0};function Ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pa(e,t,n){var r,o=t.pendingProps,s=ts.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Io(ts,1&s),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Mc(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Rc(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ma(n),t.memoizedState=Ra,e):Da(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,za(e,t,a,r=da(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(s=Rc(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,1&t.mode&&wi(t,e.child,null,a),t.child.memoizedState=Ma(a),t.memoizedState=Ra,s);if(!(1&t.mode))return za(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,za(e,t,a,r=da(s=Error(i(419)),r,void 0))}if(l=0!==(a&e.childLanes),ka||l){if(null!==(r=Tl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Mi(e,o),nc(r,e,o,-1))}return gc(),za(e,t,a,r=da(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ec.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ii=uo(o.nextSibling),oi=t,si=!0,ai=null,null!==e&&(Zo[Yo++]=Qo,Zo[Yo++]=Jo,Zo[Yo++]=Xo,Qo=e.id,Jo=e.overflow,Xo=t),t=Da(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===s?(o=Lc(s,c)).subtreeFlags=14680064&s.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?a=Lc(r,a):(a=Rc(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ma(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ra,o}return e=(a=e.child).sibling,o=Lc(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Da(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function za(e,t,n,r){return null!==r&&hi(r),wi(t,e.child,null,n),(e=Da(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function $a(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Va(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xa(e,t,r.children,n),2&(r=ts.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,n,t);else if(19===e.tag)Fa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Io(ts,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ns(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$a(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ns(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$a(t,!0,n,null,i);break;case"together":$a(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ha(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ua(e,t){if(!si)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ka(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ga(e,t,n){var r=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ka(t),null;case 1:case 17:return Oo(t.type)&&Ro(),Ka(t),null;case 3:return r=t.stateNode,Qi(),Eo(jo),Eo(No),os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(sc(ai),ai=null))),Ka(t),null;case 5:es(t);var o=Yi(Zi.current);if(n=t.type,null!==e&&null!=t.stateNode)La(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ka(t),null}if(e=Yi(Gi.current),pi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[mo]=t,r[go]=s,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Fr(Mr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Y(r,s),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",r);break;case"textarea":oe(r,s),Fr("invalid",r)}for(var l in ye(n,s),o=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c
vendor: 4,176 bytes, line 2
2]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":K(r),J(r,s,!0);break;case"textarea":K(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=eo)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[mo]=t,e[go]=r,Ba(e,t),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Fr(Mr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Y(e,r),o=Z(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=P({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(s in ye(n,o),c=o)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?he(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Fr("scroll",e):null!=u&&v(e,s,u,l))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=eo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ka(t),null;case 6:if(e&&null!=t.stateNode)Oa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Zi.current),Yi(Gi.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[mo]=t,(s=r.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[mo]=t,t.stateNode=r}return Ka(t),null;case 13:if(Eo(ts),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(si&&null!==ii&&1&t.mode&&!(128&t.flags))mi(),gi(),t.flags|=98560,s=!1;else if(s=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[mo]=t}else gi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ka(t),s=!1}else null!==ai&&(sc(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ts.current?0===Ol&&(Ol=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ka(t),null);case 4:return Qi(),null===e&&Hr(t.stateNode.containerInfo),Ka(t),null;case 10:return Ti(t.type._context),Ka(t),null;case 19:if(Eo(ts),null===(s=t.memoizedState))return Ka(t),null;if(r=!!(128&t.flags),null===(l=s.rendering))if(r)Ua(s,!1);else{if(0!==Ol||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ns(e))){for(t.flags|=128,Ua(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deleti
vendor: 46,667 bytes, line 2
2ons=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Io(ts,1&ts.current|2),t.child}e=e.sibling}null!==s.tail&&Xe()>Vl&&(t.flags|=128,r=!0,Ua(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ns(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ua(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!si)return Ka(t),null}else 2*Xe()-s.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=128,r=!0,Ua(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Xe(),t.sibling=null,n=ts.current,Io(ts,r?1&n|2:1&n),t):(Ka(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Bl)&&(Ka(t),6&t.subtreeFlags&&(t.flags|=8192)):Ka(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function qa(e,t){switch(ri(t),t.tag){case 1:return Oo(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(jo),Eo(No),os(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return es(t),null;case 13:if(Eo(ts),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));gi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ts),null;case 4:return Qi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ba=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},La=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Gi.current);var i,s=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),s=[];break;case"select":o=P({},o,{value:void 0}),r=P({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=eo)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Oa=function(e,t,n,r){n!==r&&(t.flags|=4)};var Za=!1,Ya=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Qa=null;function Ja(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Sc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Sc(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[mo],delete t[go],delete t[bo],delete t[yo],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=eo));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ya||Ja(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Vt(e)):co(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ya&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(2&i||4&i)&&el(n,t,s),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ya&&(Ja(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Sc(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ya=(r=Ya)||null!==n.memoizedState,fl(e,t,n),Ya=r):fl(e,t,n);break;default:fl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach(function(t){var r=Ic.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));pl(s,a,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Sc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}function hl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Sc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Sc(e,e.return,t)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&Ja(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&Ja(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Sc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&X(o,s),ve(l,a);var u=ve(l,s);for(a=0;a<c.length;a+=2){var d=c[a],f=c[a+1];"style"===d?he(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):v(o,d,f,u)}switch(l){case"input":Q(o,s);break;case"textarea":ie(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var m=s.value;null!=m?ne(o,!!s.multiple,m,!1):p!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[go]=s}catch(t){Sc(e,e.return,t)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Sc(e,e.return,t)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Sc(e,e.return,t)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||($l=Xe())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ya=(u=Ya)||d,gl(t,e),Ya=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Qa=e,d=e.child;null!==d;){for(f=Qa=d;null!==Qa;){switch(m=(p=Qa).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Ja(p,p.return);var g=p.stateNode;if("function"==typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Sc(r,n,e)}}break;case 5:Ja(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==m?(m.return=p,Qa=m):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=f.stateNode,a=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",a))}catch(t){Sc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Sc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),bl(e),4&r&&ml(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,al(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(t){Sc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Qa=e,vl(e,t,n)}function vl(e,t,n){for(var r=!!(1&e.mode);null!==Qa;){var o=Qa,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Za;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Ya;a=Za;var c=Ya;if(Za=s,(Ya=l)&&!c)for(Qa=o;null!==Qa;)l=(s=Qa).child,22===s.tag&&null!==s.memoizedState?wl(o):null!==l?(l.return=s,Qa=l):wl(o);for(;null!==i;)Qa=i,vl(i,t,n),i=i.sibling;Qa=o,Za=a,Ya=c}kl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Qa=i):kl(e)}}function kl(e){for(;null!==Qa;){var t=Qa;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ya||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ya)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ra(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ui(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ui(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(i(163))}Ya||512&t.flags&&ol(t)}catch(e){Sc(t,t.return,e)}}if(t===e){Qa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qa=n;break}Qa=t.return}}function xl(e){for(;null!==Qa;){var t=Qa;if(t===e){Qa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qa=n;break}Qa=t.return}}function wl(e){for(;null!==Qa;){var t=Qa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Sc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Sc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Sc(t,i,e)}break;case 5:var s=t.return;try{ol(t)}catch(e){Sc(t,s,e)}}}catch(e){Sc(t,t.return,e)}if(t===e){Qa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Qa=a;break}Qa=t.return}}var _l,Sl=Math.ceil,Cl=k.ReactCurrentDispatcher,Al=k.ReactCurrentOwner,El=k.ReactCurrentBatchConfig,Il=0,Tl=null,Nl=null,jl=0,Bl=0,Ll=Ao(0),Ol=0,Rl=null,Ml=0,Pl=0,Dl=0,zl=null,Fl=null,$l=0,Vl=1/0,Hl=null,Wl=!1,Ul=null,Kl=null,Gl=!1,ql=null,Zl=0,Yl=0,Xl=null,Ql=-1,Jl=0;function ec(){return 6&Il?Xe():-1!==Ql?Ql:Ql=Xe()}function tc(e){return 1&e.mode?2&Il&&0!==jl?jl&-jl:null!==bi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nc(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(i(185));bt(e,n,r),2&Il&&e===Tl||(e===Tl&&(!(2&Il)&&(Pl|=n),4===Ol&&ac(e,jl)),rc(e,r),1===n&&0===Il&&!(1&t.mode)&&(Vl=Xe()+500,$o&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!==(a&n)&&0===(a&r)||(o[s]=pt(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=ft(e,e===Tl?jl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){$o=!0,Ho(e)}(lc.bind(null,e)):Ho(lc.bind(null,e)),ao(function(){!(6&Il)&&Wo()}),n=null;else{switch(kt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Ql=-1,Jl=0,6&Il)throw Error(i(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?jl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=hc(e,r);else{t=r;var o=Il;Il|=2;var s=mc();for(Tl===e&&jl===t||(Hl=null,Vl=Xe()+500,fc(e,t));;)try{yc();break}catch(t){pc(e,t)}Ii(),Cl.current=s,Il=o,null!==Nl?t=0:(Tl=null,jl=0,t=Ol)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Rl,fc(e,0),ac(e,r),rc(e,Xe()),n;if(6===t)ac(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=hc(e,r),2===t&&(s=mt(e),0!==s&&(r=s,t=ic(e,s))),1!==t)))throw n=Rl,fc(e,0),ac(e,r),rc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Fl,Hl);break;case 3:if(ac(e,r),(130023424&r)===r&&10<(t=$l+500-Xe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=oo(xc.bind(null,e,Fl,Hl),t);break}xc(e,Fl,Hl);break;case 4:if(ac(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=oo(xc.bind(null,e,Fl,Hl),r);break}xc(e,Fl,Hl);break;default:throw Error(i(329))}}}return rc(e,Xe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=hc(e,t))&&(t=Fl,Fl=n,null!==t&&sc(t)),e}function sc(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function ac(e,t){for(t&=~Dl,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(6&Il)throw Error(i(327));wc();var t=ft(e,0);if(!(1&t))return rc(e,Xe()),null;var n=hc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Rl,fc(e,0),ac(e,t),rc(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Fl,Hl),rc(e,Xe()),null}function cc(e,t){var n=Il;Il|=1;try{return e(t)}finally{0===(Il=n)&&(Vl=Xe()+500,$o&&Wo())}}function uc(e){null!==ql&&0===ql.tag&&!(6&Il)&&wc();var t=Il;Il|=1;var n=El.transition,r=vt;try{if(El.transition=null,vt=1,e)return e()}finally{vt=r,El.transition=n,!(6&(Il=t))&&Wo()}}function dc(){Bl=Ll.current,Eo(Ll)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,io(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(ri(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ro();break;case 3:Qi(),Eo(jo),Eo(No),os();break;case 5:es(r);break;case 4:Qi();break;case 13:case 19:Eo(ts);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Nl=e=Lc(e.current,null),jl=Bl=t,Ol=0,Rl=null,Dl=Pl=Ml=0,Fl=zl=null,null!==Li){for(t=0;t<Li.length;t++)if(null!==(r=(n=Li[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Li=null}return e}function pc(e,t){for(;;){var n=Nl;try{if(Ii(),is.current=Js,ds){for(var r=ls.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ds=!1}if(as=0,us=cs=ls=null,fs=!1,ps=0,Al.current=null,null===n||null===n.return){Ol=1,Rl=t,Nl=null;break}e:{var s=e,a=n.return,l=n,c=t;if(t=jl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ba(a);if(null!==m){m.flags&=-257,ya(m,a,l,0,t),1&m.mode&&ha(s,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}if(!(1&t)){ha(s,u,t),gc();break e}c=Error(i(426))}else if(si&&1&l.mode){var b=ba(a);if(null!==b){!(65536&b.flags)&&(b.flags|=256),ya(b,a,l,0,t),hi(ua(c,l));break e}}s=c=ua(c,l),4!==Ol&&(Ol=2),null===zl?zl=[s]:zl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,ma(0,c,t));break e;case 1:l=c;var y=s.type,v=s.stateNode;if(!(128&s.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Kl&&Kl.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}kc(n)}catch(e){t=e,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function mc(){var e=Cl.current;return Cl.current=Js,null===e?Js:e}function gc(){0!==Ol&&3!==Ol&&2!==Ol||(Ol=4),null===Tl||!(268435455&Ml)&&!(268435455&Pl)||ac(Tl,jl)}function hc(e,t){var n=Il;Il|=2;var r=mc();for(Tl===e&&jl===t||(Hl=null,fc(e,t));;)try{bc();break}catch(t){pc(e,t)}if(Ii(),Il=n,Cl.current=r,null!==Nl)throw Error(i(261));return Tl=null,jl=0,Ol}function bc(){for(;null!==Nl;)vc(Nl)}function yc(){for(;null!==Nl&&!Ze();)vc(Nl)}function vc(e){var t=_l(e.alternate,e,Bl);e.memoizedProps=e.pendingProps,null===t?kc(e):Nl=t,Al.current=null}function kc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qa(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Ol=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ga(n,t,Bl)))return void(Nl=n);if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Ol&&(Ol=5)}function xc(e,t,n){var r=vt,o=El.transition;try{El.transition=null,vt=1,function(e,t,n,r){do{wc()}while(null!==ql);if(6&Il)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Tl&&(Nl=Tl=null,jl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gl||(Gl=!0,Tc(tt,function(){return wc(),null})),s=!!(15990&n.flags),!!(15990&n.subtreeFlags)||s){s=El.transition,El.transition=null;var a=vt;vt=1;var l=Il;Il|=4,Al.current=null,function(e,t){if(to=Wt,mr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(l=a+o),f!==s||0!==r&&3!==f.nodeType||(c=a+r),3===f.nodeType&&(a+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=a),p===s&&++d===r&&(c=a),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(no={focusedElem:e,selectionRange:n},Wt=!1,Qa=t;null!==Qa;)if(e=(t=Qa).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qa=e;else for(;null!==Qa;){t=Qa;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:ra(t.type,h),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var k=t.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(i(163))}}catch(e){Sc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qa=e;break}Qa=t.return}g=tl,tl=!1}(e,n),hl(n,e),gr(no),Wt=!!to,no=to=null,e.current=n,yl(n,e,o),Ye(),Il=l,vt=a,El.transition=s}else e.current=n;if(Gl&&(Gl=!1,ql=e,Zl=o),s=e.pendingLanes,0===s&&(Kl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wl)throw Wl=!1,e=Ul,Ul=null,e;!!(1&Zl)&&0!==e.tag&&wc(),s=e.pendingLanes,1&s?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,Wo()}(e,t,n,r)}finally{El.transition=o,vt=r}return null}function wc(){if(null!==ql){var e=kt(Zl),t=El.transition,n=vt;try{if(El.transition=null,vt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Zl=0,6&Il)throw Error(i(331));var o=Il;for(Il|=4,Qa=e.current;null!==Qa;){var s=Qa,a=s.child;if(16&Qa.flags){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qa=u;null!==Qa;){var d=Qa;switch(d.tag){case 0:case 11:case 15:nl(8,d,s)}var f=d.child;if(null!==f)f.return=d,Qa=f;else for(;null!==Qa;){var p=(d=Qa).sibling,m=d.return;if(il(d),d===u){Qa=null;break}if(null!==p){p.return=m,Qa=p;break}Qa=m}}}var g=s.alternate;if(null!==g){var h=g.child;if(null!==h){g.child=null;do{var b=h.sibling;h.sibling=null,h=b}while(null!==h)}}Qa=s}}if(2064&s.subtreeFlags&&null!==a)a.return=s,Qa=a;else e:for(;null!==Qa;){if(2048&(s=Qa).flags)switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Qa=y;break e}Qa=s.return}}var v=e.current;for(Qa=v;null!==Qa;){var k=(a=Qa).child;if(2064&a.subtreeFlags&&null!==k)k.return=a,Qa=k;else e:for(a=v;null!==Qa;){if(2048&(l=Qa).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Sc(l,l.return,e)}if(l===a){Qa=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Qa=x;break e}Qa=l.return}}if(Il=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{vt=n,El.transition=t}}return!1}function _c(e,t,n){e=$i(e,t=ma(0,t=ua(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=$i(t,e=ga(t,e=ua(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(jl&n)===n&&(4===Ol||3===Ol&&(130023424&jl)===jl&&500>Xe()-$l?fc(e,0):Dl|=n),rc(e,t)}function Ac(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=Mi(e,t))&&(bt(e,t,n),rc(e,n))}function Ec(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function Ic(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ac(e,n)}function Tc(e,t){return Ge(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jc(e,t,n,r){return new Nc(e,t,n,r)}function Bc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=jc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oc(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)Bc(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case _:return Rc(n.children,o,s,t);case S:a=8,o|=8;break;case C:return(e=jc(12,n,t,2|o)).elementType=C,e.lanes=s,e;case T:return(e=jc(13,n,t,o)).elementType=T,e.lanes=s,e;case N:return(e=jc(19,n,t,o)).elementType=N,e.lanes=s,e;case L:return Mc(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:a=10;break e;case E:a=9;break e;case I:a=11;break e;case j:a=14;break e;case B:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=jc(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Rc(e,t,n,r){return(e=jc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=jc(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Pc(e,t,n){return(e=jc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=jc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,s,a,l){return e=new zc(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=jc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function $c(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Oo(n))return Po(e,n,t)}return t}function Vc(e,t,n,r,o,i,s,a,l){return(e=Fc(n,r,!0,e,0,i,0,a,l)).context=$c(null),n=e.current,(i=Fi(r=ec(),o=tc(n))).callback=null!=t?t:null,$i(n,i,o),e.current.lanes=o,bt(e,o,r),rc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=ec(),s=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=$i(o,t,s))&&(nc(e,o,s,i),Vi(e,o,s)),s}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||jo.current)ka=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ka=!1,function(e,t,n){switch(t.tag){case 3:Na(t),gi();break;case 5:Ji(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Io(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Io(ts,1&ts.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Pa(e,t,n):(Io(ts,1&ts.current),null!==(e=Wa(e,t,n))?e.sibling:null);Io(ts,1&ts.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Va(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Io(ts,ts.current),r)break;return null;case 22:case 23:return t.lanes=0,Ca(e,t,n)}return Wa(e,t,n)}(e,t,n);ka=!!(131072&e.flags)}else ka=!1,si&&1048576&t.flags&&ti(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var o=Lo(t,No.current);ji(t,n),o=bs(null,t,r,e,o,n);var s=ys();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(r)?(s=!0,Do(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=ia,t.stateNode=o,o._reactInternals=t,ca(t,r,e,n),t=Ta(null,t,r,!0,s,n)):(t.tag=0,si&&s&&ni(t),xa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Bc(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===j)return 14}return 2}(r),e=ra(r,e),o){case 0:t=Ea(null,t,r,e,n);break e;case 1:t=Ia(null,t,r,e,n);break e;case 11:t=wa(null,t,r,e,n);break e;case 14:t=_a(null,t,r,ra(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ea(e,t,r,o=t.elementType===r?o:ra(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ia(e,t,r,o=t.elementType===r?o:ra(r,o),n);case 3:e:{if(Na(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,zi(e,t),Wi(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=ja(e,t,r,n,o=ua(Error(i(423)),t));break e}if(r!==o){t=ja(e,t,r,n,o=ua(Error(i(424)),t));break e}for(ii=uo(t.stateNode.containerInfo.firstChild),oi=t,si=!0,ai=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(gi(),r===o){t=Wa(e,t,n);break e}xa(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&di(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,ro(r,o)?a=null:null!==s&&ro(r,s)&&(t.flags|=32),Aa(e,t),xa(e,t,a,n),t.child;case 6:return null===e&&di(t),null;case 13:return Pa(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):xa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wa(e,t,r,o=t.elementType===r?o:ra(r,o),n);case 7:return xa(e,t,t.pendingProps,n),t.child;case 8:case 12:return xa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Io(Si,r._currentValue),r._currentValue=a,null!==s)if(lr(s.value,a)){if(s.children===o.children&&!jo.current){t=Wa(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Fi(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Ni(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ni(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}xa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ji(t,n),r=r(o=Bi(o)),t.flags|=1,xa(e,t,r,n),t.child;case 14:return o=ra(r=t.type,t.pendingProps),_a(e,t,r,o=ra(r.type,o),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),Ha(e,t),t.tag=1,Oo(r)?(e=!0,Do(t)):e=!1,ji(t,n),aa(t,r,o),ca(t,r,o,n),Ta(null,t,r,!0,e,n);case 19:return Va(e,t,n);case 22:return Ca(e,t,n)}throw Error(i(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Wc(s);a.call(e)}}Hc(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Wc(s);i.call(e)}}var s=Vc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=s,e[ho]=s.current,Hr(8===e.nodeType?e.parentNode:e),uc(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Wc(l);a.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[ho]=l.current,Hr(8===e.nodeType?e.parentNode:e),uc(function(){Hc(t,l,n,r)}),l}(n,t,e,o,r);return Wc(s)}Zc.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Zc.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){Hc(null,e,null,null)}),t[ho]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Pt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Xe()),!(6&Il)&&(Vl=Xe()+500,Wo()))}break;case 13:uc(function(){var t=Mi(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),Kc(e,1)}},wt=function(e){if(13===e.tag){var t=Mi(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},_t=function(e){if(13===e.tag){var t=tc(e),n=Mi(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},St=function(){return vt},Ct=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},we=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_o(r);if(!o)throw Error(i(90));G(r),Q(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[xo,wo,_o,Ae,Ee,cc]},tu={findFiberByHostInstance:ko,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(i(299));var n=!1,r="",o=Gc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,Hr(8===e.nodeType?e.parentNode:e),new qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=Gc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Vc(t,null,e,1,null!=n?n:null,o,0,s,a),e[ho]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Zc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc(function(){Jc(null,null,e,!1,function(){e._reactRootContainer=null,e[ho]=null})}),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},8950(e,t,n){"use strict";var r=n(5149);t.H=r.createRoot,r.hydrateRoot},5149(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(5227)},5395(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case h:case g:case l:return e;default:return t}}case o:return t}}}function w(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===k||e.$$typeof===b)},t.typeOf=x},5415(e,t,n){"use strict";e.exports=n(5395)},3912(e,t,n){"use strict";var r=n(2376),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1291(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var k=v.prototype=new y;k.constructor=v,g(k,b.prototype),k.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)w.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:_.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+I(l,0):i,x(s)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),T(s,t,o,"",function(e){return e})):null!=s&&(A(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+I(a=e[c],c);l+=T(a,t,o,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=T(a=a.value,t,o,u=i+I(a,c++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",function(e){return t.call(n,e,o++)}),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var B={current:null},L={transition:null},O={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:L,ReactCurrentOwner:_};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}}
vendor: 4,782 bytes, line 2
2,t.Component=b,t.Fragment=o,t.Profiler=s,t.PureComponent=v,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.act=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return B.current.useCallback(e,t)},t.useContext=function(e){return B.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return B.current.useDeferredValue(e)},t.useEffect=function(e,t){return B.current.useEffect(e,t)},t.useId=function(){return B.current.useId()},t.useImperativeHandle=function(e,t,n){return B.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return B.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return B.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return B.current.useMemo(e,t)},t.useReducer=function(e,t,n){return B.current.useReducer(e,t,n)},t.useRef=function(e){return B.current.useRef(e)},t.useState=function(e){return B.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return B.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return B.current.useTransition()},t.version="18.3.1"},2376(e,t,n){"use strict";e.exports=n(1291)},3236(e,t,n){"use strict";e.exports=n(3912)},4775(e){var t={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Ã:"AE",Ầ:"A",Ằ:"A",È:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ã:"C",á¸:"C",Ã:"E",Ã:"E",Ã:"E",Ã:"E",Ế:"E",á¸:"E",á»:"E",á¸:"E",á¸:"E",È:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",á»:"E",á»:"E",á»:"E",Ã:"I",Ã:"I",Ã:"I",Ã:"I",Ḯ:"I",È:"I",á»:"I",á»:"I",Ã:"D",Ã:"N",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",á»:"O",á¹:"O",á¹:"O",È:"O",á»:"O",á»:"O",á»:"O",á»:"O",á»:"O",á»:"O",á»:"O",á» :"O",á»:"O",Ợ:"O",Ã:"U",Ã:"U",Ã:"U",Ã:"U",Ủ:"U",Ụ:"U",Ử:"U",á»®:"U",á»°:"U",Ã:"Y",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",È:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",áº:"a",ç:"c",á¸:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",á¸:"e",á»:"e",á¸:"e",á¸:"e",È:"e",ẻ:"e",ẽ:"e",ẹ:"e",á»:"e",á»
:"e",á»:"e",ì:"i",Ã:"i",î:"i",ï:"i",ḯ:"i",È:"i",á»:"i",á»:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",á»:"o",á¹:"o",á¹:"o",È:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",ỡ:"o",á»:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",á»§:"u",ụ:"u",á»:"u",ữ:"u",á»±:"u",ý:"y",ÿ:"y",Ä:"A",Ä:"a",Ä:"A",Ä:"a",Ä:"A",Ä
:"a",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",CÌ:"C",cÌ:"c",Ä:"D",Ä:"d",Ä:"D",Ä:"d",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"G",Ç´:"G",Ä:"g",ǵ:"g",Ä:"G",Ä:"g",Ä :"G",Ä¡:"g",Ä¢:"G",Ä£:"g",Ĥ:"H",Ä¥:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",Ä©:"i",Ī:"I",Ä«:"i",Ĭ:"I",Ä:"i",Ä®:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",Ḱ:"K",ḱ:"k",KÌ:"K",kÌ:"k",Ĺ:"L",ĺ:"l",Ä»:"L",ļ:"l",Ľ:"L",ľ:"l",Ä¿:"L",Å:"l",Å:"l",Å:"l",Ḿ:"M",ḿ:"m",MÌ:"M",mÌ:"m",Å:"N",Å:"n",Å
:"N",Å:"n",Å:"N",Å:"n",Å:"n",NÌ:"N",nÌ:"n",Å:"O",Å:"o",Å:"O",Å:"o",Å:"O",Å:"o",Å:"OE",Å:"oe",PÌ:"P",pÌ:"p",Å:"R",Å:"r",Å:"R",Å:"r",Å:"R",Å:"r",RÌ:"R",rÌ:"r",È:"R",È:"r",Å:"S",Å:"s",Å:"S",Å:"s",Å:"S",È:"S",È:"s",Å:"s",Å :"S",Å¡:"s",Å¢:"T",Å£:"t",È:"t",È:"T",Ť:"T",Å¥:"t",Ŧ:"T",ŧ:"t",TÌ:"T",tÌ:"t",Ũ:"U",Å©:"u",Ū:"U",Å«:"u",Ŭ:"U",Å:"u",Å®:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",È:"U",È:"u",VÌ:"V",vÌ:"v",Å´:"W",ŵ:"w",áº:"W",áº:"w",XÌ:"X",xÌ:"x",Ŷ:"Y",Å·:"y",Ÿ:"Y",YÌ:"Y",
2yÌ:"y",Ź:"Z",ź:"z",Å»:"Z",ż:"z",Ž:"Z",ž:"z",Å¿:"s",Æ:"f",Æ :"O",Æ¡:"o",Ư:"U",ư:"u",Ç:"A",Ç:"a",Ç:"I",Ç:"i",Ç:"O",Ç:"o",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ứ:"U",ứ:"u",Ṹ:"U",á¹¹:"u",Ǻ:"A",Ç»:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",Ç¿:"o",Ã:"TH",þ:"th",á¹:"P",á¹:"p",Ṥ:"S",á¹¥:"s",XÌ:"X",xÌ:"x",Ð:"Ð",Ñ:"г",Ð:"Ð",Ñ:"к",AÌ:"A",aÌ:"a",EÌ:"E",eÌ:"e",IÌ:"I",iÌ:"i",Ǹ:"N",ǹ:"n",á»:"O",á»:"o",á¹:"O",á¹:"o",Ừ:"U",ừ:"u",áº:"W",áº:"w",Ỳ:"Y",ỳ:"y",È:"A",È:"a",È:"E",È
:"e",È:"I",È:"i",È:"O",È:"o",È:"R",È:"r",È:"U",È:"u",BÌ:"B",bÌ:"b",ÄÌ£:"C",ÄÌ£:"c",ÃÌ:"E",êÌ:"e",FÌ:"F",fÌ:"f",Ǧ:"G",ǧ:"g",È:"H",È:"h",JÌ:"J",ǰ:"j",Ǩ:"K",Ç©:"k",MÌ:"M",mÌ:"m",PÌ:"P",pÌ:"p",QÌ:"Q",qÌ:"q",ÅÌ©:"R",ÅÌ©:"r",Ṧ:"S",á¹§:"s",VÌ:"V",vÌ:"v",WÌ:"W",wÌ:"w",XÌ:"X",xÌ:"x",YÌ:"Y",yÌ:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",á¸:"D",á¸:"d",Ȩ:"E",È©:"e",ÆÌ§:"E",Ȩ́:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",ÆÌ§:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Ð:"Ð",Ñ:"е",Ð:"Ð"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var s=function(e){return e.replace(r,i)};e.exports=s,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=s},2655(e,t){var n,r,o;r=[],void 0===(o="function"==typeof(n=function(){"use strict";var e,t,n,r,o="undefined"!=typeof window||null!=typeof window?window:this||{},i=o.cancelRequestAnimationFrame&&o.requestAnimationFrame||setTimeout,s=o.cancelRequestAnimationFrame||clearTimeout,a=[],l=0,c=!1,u=7,d=35,f=125,p=0,m=0,g=0,h={get didTimeout(){return!1},timeRemaining:function(){var e=u-(Date.now()-m);return e<0?0:e}},b=y(function(){u=22,f=66,d=0});function y(e){var t,n,r=99,o=function(){var i=Date.now()-n;i<r?t=setTimeout(o,r-i):(t=null,e())};return function(){n=Date.now(),t||(t=setTimeout(o,r))}}function v(){c&&(r&&s(r),n&&clearTimeout(n),c=!1)}function k(){125!=f&&(u=7,f=125,d=35,c&&(v(),_())),b()}function x(){r=null,n=setTimeout(S,0)}function w(){n=null,i(x)}function _(){c||(t=f-(Date.now()-m),e=Date.now(),c=!0,d&&t<d&&(t=d),t>9?n=setTimeout(w,t):(t=0,w()))}function S(){var r,o,i,s=u>9?9:1;if(m=Date.now(),c=!1,n=null,l>2||m-t-50<e)for(o=0,i=a.length;o<i&&h.timeRemaining()>s;o++)r=a.shift(),g++,r&&r(h);a.length?_():l=0}function C(e){return p++,a.push(e),_(),p}function A(e){var t=e-1-g;a[t]&&(a[t]=null)}if(o.requestIdleCallback&&o.cancelIdleCallback)try{o.requestIdleCallback(function(){},{timeout:0})}catch(e){!function(e){var t,n;if(o.requestIdleCallback=function(t,n){return n&&"number"==typeof n.timeout?e(t,n.timeout):e(t)},o.IdleCallbackDeadline&&(t=IdleCallbackDeadline.prototype)){if(!(n=Object.getOwnPropertyDescriptor(t,"timeRemaining"))||!n.configurable||!n.get)return;Object.defineProperty(t,"timeRemaining",{value:function(){return n.get.call(this)},enumerable:!0,configurable:!0})}}(o.requestIdleCallback)}else o.requestIdleCallback=C,o.cancelIdleCallback=A,o.document&&document.addEventListener&&(o.addEventListener("scroll",k,!0),o.addEventListener("resize",k),document.addEventListener("focus",k,!0),document.addEventListener("mouseover",k,!0),["click","keypress","touchstart","mousedown"].forEach(function(e){document.addEventListener(e,k,{capture:!0,passive:!0})}),o.MutationObserver&&new MutationObserver(k).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:C,cancel:A}})?n.apply(t,r):n)||(e.exports=o)},5684(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.race=t.join=t.fork=t.promise=void 0;var r=s(n(5027)),o=n(6286),i=s(n(6210));function s(e){return e&&e.__esModule?e:{default:e}}var a=t.promise=function(e,t,n,o,i){return!!r.default.promise(e)&&(e.then(t,i),!0)},l=new Map,c=t.fork=function(e,t,n){if(!r.default.fork(e))return!1;var s=Symbol("fork"),a=(0,i.default)();l.set(s,a),n(e.iterator.apply(null,e.args),function(e){return a.dispatch(e)},function(e){return a.dispatch((0,o.error)(e))});var c=a.subscribe(function(){c(),l.delete(s)});return t(s),!0},u=t.join=function(e,t,n,o,i){if(!r.default.join(e))return!1;var s,a=l.get(e.task);return a?s=a.subscribe(function(e){s(),t(e)}):i("join error : task not found"),!0},d=t.race=function(e,t,n,o,i){if(!r.default.race(e))return!1;var s,a=!1,l=function(e,n,r){a||(a=!0,e[n]=r,t(e))},c=function(e){a||i(e)};return r.default.array(e.competitors)?(s=e.competitors.map(function(){return!1}
2),e.competitors.forEach(function(e,t){n(e,function(e){return l(s,t,e)},c)})):function(){var t=Object.keys(e.competitors).reduce(function(e,t){return e[t]=!1,e},{});Object.keys(e.competitors).forEach(function(r){n(e.competitors[r],function(e){return l(t,r,e)},c)})}(),!0};t.default=[a,c,u,d,function(e,t){if(!r.default.subscribe(e))return!1;if(!r.default.channel(e.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var n=e.channel.subscribe(function(e){n&&n(),t(e)});return!0}]},7151(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.array=t.object=t.error=t.any=void 0;var r,o=n(5027),i=(r=o)&&r.__esModule?r:{default:r};var s=t.any=function(e,t,n,r){return r(e),!0},a=t.error=function(e,t,n,r,o){return!!i.default.error(e)&&(o(e.error),!0)},l=t.object=function(e,t,n,r,o){if(!i.default.all(e)||!i.default.obj(e.value))return!1;var s={},a=Object.keys(e.value),l=0,c=!1;return a.map(function(t){n(e.value[t],function(e){return function(e,t){c||(s[e]=t,++l===a.length&&r(s))}(t,e)},function(e){return function(e,t){c||(c=!0,o(t))}(0,e)})}),!0},c=t.array=function(e,t,n,r,o){if(!i.default.all(e)||!i.default.array(e.value))return!1;var s=[],a=0,l=!1;return e.value.map(function(t,i){n(t,function(t){return function(t,n){l||(s[t]=n,++a===e.value.length&&r(s))}(i,t)},function(e){return function(e,t){l||(l=!0,o(t))}(0,e)})}),!0},u=t.iterator=function(e,t,n,r,o){return!!i.default.iterator(e)&&(n(e,t,o),!0)};t.default=[a,u,c,l,s]},22(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cps=t.call=void 0;var r,o=n(5027),i=(r=o)&&r.__esModule?r:{default:r};var s=t.call=function(e,t,n,r,o){if(!i.default.call(e))return!1;try{t(e.func.apply(e.context,e.args))}catch(e){o(e)}return!0},a=t.cps=function(e,t,n,r,o){var s;return!!i.default.cps(e)&&((s=e.func).call.apply(s,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.args),[function(e,n){e?o(e):t(n)}])),!0)};t.default=[s,a]},269(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(7151)),o=i(n(5027));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=[].concat(s(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]),s(r.default));return function t(n){var r,i,s,a=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],l=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],c=o.default.iterator(n)?n:regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})();r=c,i=function(e){return function(t){try{var n=e?r.throw(t):r.next(t),o=n.value;if(n.done)return a(o);s(o)}catch(e){return l(e)}}},s=function n(r){e.some(function(e){return e(r,n,t,i(!1),i(!0))})},i(!1)()}}},6210(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},dispatch:function(t){e.slice().forEach(function(e){return e(t)})}}}},6286(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChannel=t.subscribe=t.cps=t.apply=t.call=t.invoke=t.delay=t.race=t.join=t.fork=t.error=t.all=void 0;var r,o=n(5287),i=(r=o)&&r.__esModule?r:{default:r};t.all=function(e){return{type:i.default.all,value:e}},t.error=function(e){return{type:i.default.error,error:e}},t.fork=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:i.default.fork,iterator:e,args:n}},t.join=function(e){return{type:i.default.join,task:e}},t.race=function(e){return{type:i.default.race,competitors:e}},t.delay=function(e){return new Promise(function(t){setTimeout(function(){return t(!0)},e)})},t.invoke=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:i.default.call,func:e,context:null,args:n}},t.call=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:i.default.call,func:e,context:t,args:r}},t.apply=function(e,t,n){return{type:i.default.call,func:e,context:t,args:n}},t.cps=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:i.default.cps,func:e,args:n}},t.subscribe=function(e){return{type:i.default.subscribe,channel:e}},t.createChannel=function(e){var t=[];return e(function(e){return t.forEach(function(t){return t(e)})}),{subscribe:function(e){return t.push(e),function(){return t.splice(t.indexOf(e),1)}}}}},5027(e,t,n){"use strict";
vendor: 5,161 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(5287),s=(r=i)&&r.__esModule?r:{default:r};var a={obj:function(e){return"object"===(void 0===e?"undefined":o(e))&&!!e},all:function(e){return a.obj(e)&&e.type===s.default.all},error:function(e){return a.obj(e)&&e.type===s.default.error},array:Array.isArray,func:function(e){return"function"==typeof e},promise:function(e){return e&&a.func(e.then)},iterator:function(e){return e&&a.func(e.next)&&a.func(e.throw)},fork:function(e){return a.obj(e)&&e.type===s.default.fork},join:function(e){return a.obj(e)&&e.type===s.default.join},race:function(e){return a.obj(e)&&e.type===s.default.race},call:function(e){return a.obj(e)&&e.type===s.default.call},cps:function(e){return a.obj(e)&&e.type===s.default.cps},subscribe:function(e){return a.obj(e)&&e.type===s.default.subscribe},channel:function(e){return a.obj(e)&&a.func(e.subscribe)}};t.default=a},5287(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};t.default=n},8315(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,p=3,m=!1,g=!1,h=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(h=!1,k(e),!g)if(null!==r(c))g=!0,L(w);else{var t=r(u);null!==t&&O(x,t.startTime-e)}}function w(e,n){g=!1,h&&(h=!1,y(A),A=-1),m=!0;var i=p;try{for(k(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var s=f.callback;if("function"==typeof s){f.callback=null,p=f.priorityLevel;var a=s(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?f.callback=a:f===r(c)&&o(c),k(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&O(x,d.startTime-n),l=!1}return l}finally{f=null,p=i,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,C=null,A=-1,E=5,I=-1;function T(){return!(t.unstable_now()-I<E)}function N(){if(null!==C){var e=t.unstable_now();I=e;var n=!0;try{n=C(!0,e)}finally{n?_():(S=!1,C=null)}}else S=!1}if("function"==typeof v)_=function(){v(N)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,B=j.port2;j.port1.onmessage=N,_=function(){B.postMessage(null)}}else _=function(){b(N,0)};function L(e){C=e,S||(S=!0,_())}function O(e,n){A=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,L(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(h?(y(A),A=-1):h=!0,O(x,i-s))):(e.sortIndex=a,n(c,e),g||m||(g=!0,L(w))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}
2,226(e,t,n){"use strict";e.exports=n(8315)},5263(e,t,n){"use strict";n.d(t,{zf:()=>h,oi:()=>c,_d:()=>f,es:()=>p});var r=n(8992),o=n(1252);function i(e,t){if(e.length<64)return void(t.ids&&(t.items=void 0,t.ids=void 0));if(t.items===e)return t.ids;const n=new Set;for(const t of e)n.add(t.id);return t.items=e,t.ids=n,n}function s(e,t,n){if(e.length<64)t.ids&&(t.items=void 0,t.ids=void 0);else{if(!n){n=new Set;for(const t of e)n.add(t.id)}t.items=e,t.ids=n}}function a(e={}){(0,r.UE)(e,e.store);const t=e.store?.getState(),n=(0,o.Jh)(e.items,t?.items,e.defaultItems,[]),a=(l=e.store,l?.__unstablePrivateStore);var l;const c=a?.__unstableCollectionLookup??{controlledItems:new Map(n.map(e=>[e.id,e])),registeredItems:new Map,controlledItemsSource:n,propagatedItems:n},{controlledItems:u,registeredItems:d}=c,f={items:n,renderedItems:(0,o.Jh)(t?.renderedItems,[])},p=(0,r.y$)(f,e.store),m=Object.assign((0,r.y$)({items:n,renderedItems:f.renderedItems},a),{__unstableCollectionLookup:c}),g=e=>{const t=(0,o.gH)(e,e=>e.element);m.setState("renderedItems",t),p.setState("renderedItems",t)},h=e=>{if(e!==c.controlledItemsSource){c.controlledItemsSource=e,u.clear();for(const t of e)u.set(t.id,t)}};(0,r.mj)(p,()=>(0,r.Ts)(m)),a||((0,r.B1)(p,["items"],({items:e})=>{e!==c.propagatedItems&&(c.propagatedItems=e,h(e))}),(0,r.mj)(m,()=>(0,r.vA)(m,["items"],({items:e})=>{c.propagatedItems=e,p.setState("items",e)}))),(0,r.mj)(m,()=>(0,r.vA)(m,["renderedItems"],e=>{if(e.renderedItems!==p.getState().renderedItems&&g(e.renderedItems),"function"!=typeof IntersectionObserver)return;let t=!0,n=0;const r=function(e){const t=e.find(e=>!!e.element),n=[...e].reverse().find(e=>!!e.element)?.element;let r=t?.element?.parentElement;if(!n)return(0,o.YE)(r).body;for(;r;){if(r.contains(n))return r;r=r.parentElement}return(0,o.YE)(r).body}(e.renderedItems),i=new IntersectionObserver(()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(()=>g(e.renderedItems)))},{root:r});for(const t of e.renderedItems)t.element&&i.observe(t.element);return()=>{cancelAnimationFrame(n),i.disconnect()}}));const b=(e,t,n)=>{const r=n?.registeredItems,o=n?.controlledItems;return n=>{const a=r?.get(n.id),l=!!a||!!o?.has(n.id);let c;m.setState(e,e=>{const o=t.ids||e.length>=64&&!l?i(e,t):void 0,a=o&&!o.has(n.id)?-1:e.findIndex(({id:e})=>e===n.id),u=e.slice();if(-1!==a){c=e[a];const t={...c,...n};u[a]=t,r?.set(n.id,t)}else u.push(n),r?.set(n.id,n),o?.add(n.id);return(t.ids||-1===a&&u.length>=64)&&s(u,t,o),u});return()=>{r&&(a?r.set(n.id,a):r.delete(n.id)),m.setState(e,e=>{const r=t.ids?i(e,t):void 0;if(!c){const o=e.filter(({id:e})=>e!==n.id);return r?.delete(n.id),t.ids&&s(o,t,r),o}const o=e.findIndex(({id:e})=>e===n.id);if(-1===o)return e;const a=e.slice();return a[o]=c,t.ids&&s(a,t,r),a})}}},y=b("items",{},c),v=b("renderedItems",{});return{...p,setState:(e,t)=>{"items"===e?p.setState("items",e=>{const n=(0,o.Qh)(t,e);return n===e?e:(c.propagatedItems=n,h(n),n)}):p.setState(e,t)},registerItem:y,renderItem:e=>(0,o.cy)(y(e),v(e)),item:e=>e?d.size?d.get(e)??u.get(e)??null:u.get(e)??null:null,__unstablePrivateStore:m}}const l={id:null};function c(e,t){return e.find(e=>t?!e.disabled&&e.id!==t:!e.disabled)}function u(e,t){return e.filter(e=>e.rowId===t)}function d({items:e,fromIndex:t,step:n,rowId:r,excludeId:o}){for(let i=t;i>=0&&i<e.length;i+=n){const t=e[i];if(!t)continue;if(t.rowId!==r)continue;if(t.disabled)continue;const n=t.id;if(null==o||n!==o)return n}}function f(e,t,n=!1){const r=e.findIndex(e=>e.id===t);return[...e.slice(r+1),...n?[l]:[],...e.slice(0,r)]}function p(e){return e.length>=48?function(e){const t=e[0];if(!t)return[];let n=1;for(;n<e.length&&e[n]?.rowId===t.rowId;)n+=1;const r=e.slice(0,n);if(n===e.length)return[r];const o=[r];let i;for(;n<e.length;n+=1){const t=e[n];if(!t)continue;const r=i?i.get(t.rowId):o.find(e=>e[0]?.rowId===t.rowId);if(r){r.push(t);continue}const s=[t];o.push(s),i?i.set(t.rowId,s):4===o.length&&(i=new Map(o.map(e=>[e[0]?.rowId,e])))}return o}(e):function(e){const t=[];let n,r;for(const o of e){const e=o.rowId;if(n&&r===e){n.push(o);continue}const i=t.find(t=>t[0]?.rowId===e);i?(i.push(o),n=i):(n=[o],t.push(n)),r=e}return t}(e)}function m(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function g(e){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:e}}function h(e={}){const t=e.store?.getState(),n=a(e),i=(0,o.Jh)(e.activeId,t?.activeId,e.defaultActiveId),s=(0,o.Jh)(t?.compositeElement,t?.baseElement,null),l=(0,o.Jh)(e.compositeElementInFocusOrder,e.includesBaseElement,t?.compositeElementInFocusOrder,t?.includesBaseElement,null===i),h={...n.getState(),id:(0,o.Jh)(e.id,t?.id)??`id-${Math.random().toString(36).slice(2,8)}`,activeId:i,compositeElement:s,baseElement:s,compositeElementInFocusOrder:l,includesBaseElement:l,moves:(0,o.Jh)(t?.moves,0),orientation:(0,o.Jh)(e.orientation,t?.orientation,"both"),rtl:(0,o.Jh)(e.rtl,t?.rtl,!1),virtualFocus:(0,o.Jh)(e.virtualFocus,t?.virtualFocus,!1),focusLoop:(0,o.Jh)(e.focusLoop,t?.focusLoop,!1),focusWrap:(0,o.Jh)(e.focusWrap,t?.focusWrap,!1),focusShift:(0,o.Jh)(e.focusShift,t?.focusShift,!1)},b=(0,r.y$)(h,n,e.store);(0,r.mj)(b,()=>(0,o.cy)((0,r.OH)(b,["compositeElement"],e=>{b.setState("baseElement",e.compositeElement)}),(0,r.OH)(b,["baseElement"],e=>{b.setState("compositeElement",e.baseElement)}),(0,r.OH)(b,["compositeElementInFocusOrder"],e=>{b.setState("includesBaseElement",e.compositeElementInFocusOrder)}
2),(0,r.OH)(b,["includesBaseElement"],e=>{b.setState("compositeElementInFocusOrder",e.includesBaseElement)}))),(0,r.mj)(b,()=>(0,r.OH)(b,["renderedItems","activeId"],e=>{b.setState("activeId",t=>void 0!==t?t:c(e.renderedItems)?.id)}));const y=(e="next",t={})=>{const r=b.getState(),i=(0,o.Jh)(t.compositeElementInFocusOrder,t.includesBaseElement,r.compositeElementInFocusOrder),{skip:s=0,activeId:a=r.activeId,focusShift:l=r.focusShift,focusLoop:h=r.focusLoop,focusWrap:y=r.focusWrap,renderedItems:v=r.renderedItems,rtl:k=r.rtl}=t,x="up"===e||"down"===e,w="next"===e||"down"===e,_=w?k&&!x:!k||x,S=l&&!s;if(!(s||y||i||null==a||x&&(S||v.some(e=>null!=e.rowId)))){let e=-1;if(v===r.renderedItems){const t=v[0];if(t&&n.item(t.id)===t){const t=n.item(a);t?.id===a&&(e=v.indexOf(t))}}-1===e&&(e=v.findIndex(e=>e.id===a));const t=v[e];if(t){const n=_?-1:1,r=d({items:v,fromIndex:e+n,step:n,rowId:t.rowId,excludeId:a});if(void 0!==r)return r;if(!h||(x?"horizontal"===h:"vertical"===h))return;return d({items:v,fromIndex:1===n?0:v.length-1,step:n,rowId:t.rowId,excludeId:a})}}let C=x?(0,o.M9)(function(e,t,n){const r=m(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?c(o):o[e-1];o[e]=r&&t!==r.id&&n?r:g(r?.rowId)}}return e}(p(v),a,S)):v;if(C=_?(0,o.q7)(C):C,C=x?function(e){const t=p(e),n=m(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push({...t,rowId:t.rowId?`${e}`:void 0})}return r}(C):C,null==a)return c(C)?.id;const A=C.find(e=>e.id===a);if(!A)return c(C)?.id;const E=C.some(e=>e.rowId),I=C.indexOf(A),T=C.slice(I+1),N=u(T,A.rowId);if(s){const e=function(e,t){return e.filter(e=>t?!e.disabled&&e.id!==t:!e.disabled)}(N,a);return(e.slice(s)[0]||e[e.length-1])?.id}const j=h&&(x?"horizontal"!==h:"vertical"!==h),B=E&&y&&(x?"horizontal"!==y:"vertical"!==y),L=w?(!E||x)&&j&&i:!!x&&i;if(j)return c(f(B&&!L?C:u(C,A.rowId),a,L),a)?.id;if(B){const e=c(L?N:T,a);return L?e?.id||null:e?.id}const O=c(N,a);return!O&&L?null:O?.id},v=(e,t)=>y(e,"number"==typeof t?{skip:t}:t);return{...n,...b,setCompositeElement:e=>b.setState("compositeElement",e),setBaseElement:e=>b.setState("compositeElement",e),setActiveId:e=>b.setState("activeId",e),move:e=>{void 0!==e&&(b.setState("activeId",e),b.setState("moves",e=>e+1))},first:()=>c(b.getState().renderedItems)?.id,last:()=>function(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(n&&!n.disabled)return n}}(b.getState().renderedItems)?.id,next:e=>v("next",e),previous:e=>v("previous",e),down:e=>v("down",e),up:e=>v("up",e)}}},2714(e,t,n){"use strict";n.d(t,{t:()=>s});var r=n(8992);const o=Symbol("cancelled"),i=new WeakMap;function s(e){const t=e.item,n=i.get(t);if(n)return n;const s={consumedBy:null,targetId:e.getState().activeId};return i.set(t,s),(0,r.OH)(e,["moves","activeId"],(e,t)=>{if(e.moves!==t.moves)return s.consumedBy=null,void(s.targetId=e.activeId);e.activeId!==t.activeId&&(s.targetId=o)}),s}},8106(e,t,n){"use strict";n.d(t,{a:()=>d,o:()=>u,r:()=>l});var r=n(8292),o=n(2786),i=n(1252),s=n(2376);const a=Symbol("accessibleWhenDisabled");function l(e){return e.accessibleWhenDisabled??e.onLoadedMetadataCapture?.[a]}const c="data-truly-disabled";function u(e){return"true"===e.getAttribute(c)}function d(e){const t=e.getAttribute(c);return"true"===t||"false"!==t&&void 0}function f(e){return"ArrowUp"===e||"ArrowRight"===e||"ArrowDown"===e||"ArrowLeft"===e||"Home"===e||"End"===e||"PageUp"===e||"PageDown"===e}const p=(0,i.nr)(),m=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function g({focusable:e,trulyDisabled:t,nativeTabbable:n,supportsDisabled:r,safariTabIndex:o,tabIndexProp:i}){return e?t?n&&!r?-1:void 0:n?o&&null==i?0:i:i??0:i}function h(e,t){return(0,o._q)(n=>{e?.(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())})}let b=!1,y=!0;function v(e){const t=e.target;(0,i.vq)(t)&&!t.hasAttribute("data-focus-visible")&&(y=!1)}function k(e){if(f(e.key))y=!0;else if(!e.metaKey&&!e.ctrlKey){if(e.altKey){if(!p)return;if("Tab"!==e.key)return}y=!0}}const x=(0,o.ab)(function({focusable:e=!0,accessibleWhenDisabled:t,autoFocus:n,onFocusVisible:l,...u}){const d=(0,s.useRef)(null),[x,w]=(0,o.P1)(u,a,t);t??=x,(0,s.useEffect)(()=>{e&&(b||((0,i.dg)("mousedown",v,!0),(0,i.dg)("keydown",k,!0),b=!0))},[e]);
2const _=e&&(0,i.$f)(u),S=_&&!t,[C,A]=(0,s.useState)(!1),E=(0,s.useRef)(!1),I=(0,s.useRef)(null),T=(0,o._q)(e=>{I.current?.(),I.current=null,E.current=!1,e?.removeAttribute("data-focus-visible")});(0,s.useEffect)(()=>{e&&!S||(T(d.current),C&&A(!1))},[e,S,C,T]),(0,s.useEffect)(()=>{if(!e)return;if(!C)return;const t=d.current;if(!t)return;if("undefined"==typeof IntersectionObserver)return;const n=new IntersectionObserver(()=>{(0,i.tp)(t)||(E.current=!1,A(!1))});return n.observe(t),()=>n.disconnect()},[e,C]),(0,s.useEffect)(()=>()=>I.current?.(),[]);const N=h(u.onKeyPressCapture,_),j=h(u.onMouseDownCapture,_),B=h(u.onClickCapture,_),L=h(u.onAuxClickCapture,_),O=(t,n)=>{if(n&&(t.currentTarget=n),!e)return;const r=t.currentTarget;if(r&&(0,i.AJ)(r)&&(l?.(t),!t.defaultPrevented))if(r.dataset.focusVisible="true",E.current=!0,function(e){if("BUTTON"===e.tagName){const{type:t}=e;return"submit"===t}if("INPUT"===e.tagName){const{type:t}=e;return"submit"===t||"image"===t}return!1}(r)){if(I.current?.(),I.current=null,"undefined"!=typeof IntersectionObserver){const e=new IntersectionObserver(()=>{(0,i.tp)(r)||T(r)});e.observe(r),I.current=()=>e.disconnect()}}else A(!0)},R=u.onKeyDownCapture,M=(0,o._q)(t=>{if(R?.(t),t.defaultPrevented)return;if(!e)return;if(C)return;if(E.current)return;if((t.metaKey||t.altKey||t.ctrlKey)&&!f(t.key))return;if(!(0,i.uh)(t))return;const n=t.currentTarget;(0,i.nz)(n,"focusout",()=>O(t,n))}),P=u.onFocusCapture,D=(0,o._q)(t=>{if(P?.(t),t.defaultPrevented)return;if(!e)return;if(!(0,i.uh)(t))return void A(!1);const n=t.currentTarget;y||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):m.includes(r))}(t.target)?(0,i.nz)(t.target,"focusout",()=>O(t,n)):A(!1)}),z=u.onBlur,F=(0,o._q)(t=>{z?.(t),e&&(0,i.aG)(t)&&(T(t.currentTarget),A(!1))}),$=(0,s.useContext)(r.g),V=(0,o._q)(t=>{e&&n&&t&&$&&queueMicrotask(()=>{(0,i.AJ)(t)||(0,i.tp)(t)&&t.focus()})}),[H,W]=(0,s.useState)(3);(0,o.UQ)(()=>{const e=d.current;if(!e)return;const t=function(e){let t=0;return function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(e)&&(t|=1),function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(e)&&(t|=2),t}(e.tagName.toLowerCase());3!==t&&W(t)},[]);const U=e&&!!(1&H),K=e&&!!(2&H),[G,q]=(0,s.useState)(!1);p&&(0,s.useEffect)(()=>{if(!e)return;const t=d.current;if(!t)return;const{type:n}=t,r="INPUT"===t.tagName&&("checkbox"===n||"radio"===n);q((0,i.Bm)(t)||r)},[e]);const Z=u.style,Y=(0,s.useMemo)(()=>S?{pointerEvents:"none",...Z}:Z,[S,Z]);return u={"data-focus-visible":e&&C||void 0,"data-autofocus":n||void 0,"aria-disabled":_||void 0,...u,...w,ref:(0,o.SV)(d,V,u.ref),style:Y,tabIndex:g({focusable:e,trulyDisabled:S,nativeTabbable:U,supportsDisabled:K,safariTabIndex:G,tabIndexProp:u.tabIndex}),disabled:!(!K||!S)||void 0,[c]:_?S:void 0,contentEditable:_?void 0:u.contentEditable,onKeyPressCapture:N,onClickCapture:B,onAuxClickCapture:L,onMouseDownCapture:j,onKeyDownCapture:M,onFocusCapture:D,onBlur:F},(0,i.HR)(u)});(0,o.Rf)(function(e){const t=x(e);return(0,o.n)("div",t)});n.d(t,["n",0,x])},1023(e,t,n){"use strict";function r(e){const{render:t,type:n}=e;return t||void 0!==n?e:{...e,type:"button"}}n.d(t,{Y:()=>r})},3554(e,t,n){"use strict";const r=(0,n(2786).B0)(),o=r.useContext,i=(r.useScopedContext,r.useProviderContext,r.ContextProvider),s=r.ScopedContextProvider;n.d(t,["$I",0,o,"LN",0,i,"zX",0,s])},6652(e,t,n){"use strict";var r=n(3554),o=n(2786),i=n(2376);const s=(0,o.B0)([r.LN],[r.zX]),a=(s.useContext,s.useScopedContext),l=s.useProviderContext,c=s.ContextProvider,u=s.ScopedContextProvider,d=(0,i.createContext)(void 0),f=(0,i.createContext)(void 0);n.d(t,["$o",0,f,"Lf",0,l,"SZ",0,a,"U0",0,d,"aN",0,u,"ws",0,c])},9537(e,t,n){"use strict";n.d(t,{l:()=>x,k:()=>k});var r=n(1023),o=n(8106),i=n(2786),s=n(1252),a=n(2376);function l(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?(0,s.Bm)(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&((0,s.Bm)(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}const c=Symbol("command"),u=(0,i.ab)(function({clickOnEnter:e=!0,clickOnSpace:t=!0,...n}){const r=(0,a.useRef)(null),[u,d]=(0,a.useState)(!1),f=n.type;(0,a.useEffect)(()=>{const e=r.current;if(!e)return;const t=(0,s.Bm)(e);void 0!==f&&t&&"button"===e.type||d(t)},[f]);const[p,m]=(0,a.useState)(!1),g=(0,a.useRef)(!1),h=(0,s.$f)(n),[b,y]=(0,i.P1)(n,c,!0);(0,i.UQ)(()=>{h&&(g.current=!1,m(!1))},[h]);const v=n.onKeyDown,k=(0,i._q)(n=>{v?.(n);const r=n.currentTarget;if(n.defaultPrevented)return;if(b)return;if(h)return;if(!(0,s.uh)(n))return;if((0,s.mB)(r))return;if(r.isContentEditable)return;const o=e&&"Enter"===n.key,i=t&&" "===n.key,a="Enter"===n.key&&!e,c=" "===n.key&&!t;if(a||c)n.preventDefault();else if(o||i){const e=l(n);if(o){if(!e){n.preventDefault();const{view:e,...t}=n,o=()=>(0,s.hY)(r,t);(0,s.gm)()?(0,s.nz)(r,"keyup",o):queueMicrotask(o)}}else i&&(g.current=!0,e||(n.preventDefault(),m(!0)))}}),x=n.onKeyUp,w=(0,i._q)(e=>{if(x?.(e),b)return;const n=t&&" "===e.key;if(!g.current||!n)return;const r=l(e);if(g.current=!1,r||m(!1),e.defaultPrevented)return;if(!(0,s.uh)(e))return;if(h)return;if(e.metaKey)return;if(r)return;e.preventDefault();const o=e.currentTarget,{view:i,...a}=e;queueMicrotask(()=>(0,s.hY)(o,a))}),_=n.onBlur,S=(0,i._q)(e=>{_?.(e),g.current&&(g.current=!1,m(!1))});return n={"data-active":p||void 0,type:u?"button":void 0,...y,...n,ref:(0,i.SV)(r,n.ref),onKeyDown:k,onKeyUp:w,onBlur:S},n=(0,o.n)(n)});(0,i.Rf)(function(e){const t=u((0,r.Y)(e));return(0,i.n)("button",t)});var d=n(3554);const f=(0,i.ab)(function({store:e,shouldRegisterItem:t=!0,getItem:n=s.D_,element:r,...o}){const l=(0,d.$I)();e=e||l;const c=(0,i.Bi)(o.id),u=(0,a.useRef)(r);return(0,a.useEffect)(()=>{const r=u.current;if(!c)return;if(!r)return;if(!t)return;const o=n({id:c,element:r});return e?.renderItem(o)},[c,t,n,e]),o={...o,ref:(0,i.SV)(u,o.ref)}});(0,i.Rf)(function(e){const t=f(e);return(0,i.n)("div",t)});var p=n(6652),m=n(2300),g=n(3236),h=n(2615),b=n(8992);function y(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function v(e,t,n,r=!1){if(!t)return;if(!n)return;const{renderedItems:o}=t.getState(),i=(0,s.qj)(e);if(!i)return;const a=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(i,r);let l,c;for(let e=0;e<o.length;e+=1){const o=l;if(l=n(e),!l)break;if(l===o)continue;const i=(0,m.hZ)(t,l)?.element;if(!i)continue;const s=y(i,r)-a,u=Math.abs(s);if(r&&s<=0||!r&&s>=0){void 0!==c&&c<u&&(l=o);break}c=u}return l}const k=(0,i.ab)(function({store:e,rowId:t,preventScrollOnKeyDown:n=!1,moveOnKeyPress:r=!0,tabbable:l=!1,getItem:c,typeaheadText:d,"aria-setsize":y,"aria-posinset":k,unstable_scrollIntoView:x,...w}){const _=(0,p.SZ)();e=e||_;
2const S=(0,o.r)(w),C=(0,i.Bi)(w.id),A=(0,a.useRef)(null),E=(0,a.useRef)(null),I=(0,a.useCallback)(e=>{const t=E.current;!e&&t&&(0,m.nc)(t),e&&(0,m.Df)(e),E.current=e},[]),T=(0,a.useContext)(p.$o),N=(0,s.$f)(w),j=N&&!S,B=N&&!1===w.focusable,L=w.shouldRegisterItem,O=e=>t||(e&&T?.compositeElement&&T.compositeElement===e.compositeElement?T.id:void 0),{rowId:R,compositeElement:M,ariaSetSize:P,ariaPosInSet:D}=(0,h.PX)(e,["compositeElement","renderedItems"],{rowId:O,compositeElement:e=>e?.compositeElement||void 0,ariaSetSize:e=>null!=y?y:e&&T?.ariaSetSize&&T.compositeElement===e.compositeElement?T.ariaSetSize:void 0,ariaPosInSet(e){if(null!=k)return k;if(!e)return;if(!T?.ariaPosInSet)return;if(T.compositeElement!==e.compositeElement)return;const t=O(e),n=e.renderedItems.filter(e=>e.rowId===t);return T.ariaPosInSet+n.findIndex(e=>e.id===C)}}),{isActiveItem:z,isTabbable:F}=(0,h.PX)(e,["activeId","compositeElement","renderedItems","virtualFocus","items"],{isActiveItem:e=>!!e&&e.activeId===C,isTabbable(t){if(!t)return!0;if(!t.compositeElement&&!t.renderedItems.length)return!0;if(t.virtualFocus)return!1;if(!t.renderedItems.length)return!0;if(l)return!0;if(null===t.activeId)return!1;const n=e?.item(t.activeId);return!!n?.disabled||(!n?.element||t.activeId===C)}}),$=(0,a.useCallback)(e=>{const t=(e.element?(0,o.a)(e.element):void 0)??(B||j),n={...e,id:C||e.id,rowId:R,disabled:t,children:e.element?.textContent,typeaheadText:d};return c?c(n):n},[C,R,B,j,d,c]),V=w.onFocus,H=(0,a.useRef)(!1),W=(0,a.useRef)(null),U=(0,m.CM)(e),K=(0,i._q)(t=>{if(V?.(t),t.defaultPrevented)return;if((0,s.ho)(t))return;if(!C)return;if(!e)return;if(function(e,t){return!(0,s.uh)(e)&&(0,m.WZ)(t,e.target)}(t,e))return;const{virtualFocus:n,compositeElement:r}=e.getState();if(e.setActiveId(C),(0,s.Bj)(t.currentTarget)&&(0,m.iT)(t.currentTarget),!n)return void((0,s.uh)(t)&&e.item(C)&&U({id:C,markedOnly:!0,requireFocus:!0,scrollIntoView:x}));if(!(0,s.uh)(t))return;if(o=t.currentTarget,(0,s.Bj)(o)||"INPUT"===o.tagName&&!(0,s.Bm)(o))return;var o;const i=(t,n)=>{if(!(0,s.tp)(n))return void 0;const r=t===n||(0,m.WZ)(e,t);e.item(C)&&U({id:C,markedOnly:!0,requireFocus:!0,scrollIntoView:x}),H.current=!0,r?(0,m.hk)(n):n.focus({preventScroll:!0})};if(r?.isConnected)return void i(t.relatedTarget,r);if(!1===L)return;const{currentTarget:a,relatedTarget:l}=t,c=()=>{W.current?.(),W.current=null};c(),W.current=(0,b.B1)(e,null,()=>{if((0,s.bq)(a)!==a)return void c();const t=e.getState(),n=t.compositeElement;n?.isConnected&&(c(),t.virtualFocus&&i(l,n))})}),G=w.onBlurCapture,q=(0,i._q)(t=>{G?.(t),t.defaultPrevented||(e?.getState())?.virtualFocus&&H.current&&(H.current=!1,t.preventDefault(),t.stopPropagation())}),Z=w.onKeyDown,Y=(0,i.O4)(n),X=(0,i.O4)(r),Q=(0,i._q)(t=>{if(Z?.(t),t.defaultPrevented)return;if(!(0,s.uh)(t))return;if(!e)return;const{currentTarget:n}=t,r=e.getState(),o=!!e.item(C)?.rowId,i="horizontal"!==r.orientation,a="vertical"!==r.orientation,l=()=>!!o||(!!a||(!r.compositeElement||!(0,s.mB)(r.compositeElement))),c={ArrowUp:(o||i)&&e.up,ArrowRight:(o||a)&&e.next,ArrowDown:(o||i)&&e.down,ArrowLeft:(o||a)&&e.previous,Home:()=>{if(l())return!o||t.ctrlKey?e?.first():e?.previous(-1)},End:()=>{if(l())return!o||t.ctrlKey?e?.last():e?.next(-1)},PageUp:()=>v(n,e,e?.up,!0),PageDown:()=>v(n,e,e?.down)}[t.key];if(c){if((0,s.Bj)(n)){const e=(0,s.Zy)(n),r=a&&"ArrowLeft"===t.key,o=a&&"ArrowRight"===t.key,l=i&&"ArrowUp"===t.key,c=i&&"ArrowDown"===t.key;if(o||c){const{length:t}=(0,s.Mk)(n);if(e.end!==t)return}else if((r||l)&&0!==e.start)return}const r=c();if(Y(t)||void 0!==r){if(!X(t))return;t.preventDefault(),e.move(r)}}}),J=(0,a.useMemo)(()=>({id:C,compositeElement:M}),[C,M]);return w=(0,i.w7)(w,e=>(0,g.jsx)(p.U0.Provider,{value:J,children:e}),[J]),w={"data-active-item":z||void 0,...w,id:C,ref:(0,i.SV)(A,I,w.ref),tabIndex:F?w.tabIndex:-1,onFocus:K,onBlurCapture:q,onKeyDown:Q},w=u(w),w=f({store:e,...w,getItem:$,shouldRegisterItem:!!C&&L}),{...w,"aria-setsize":P,"aria-posinset":D}}),x=(0,i.ph)((0,i.Rf)(function(e){const t=k((0,r.Y)(e));return(0,i.n)("button",t)}))},865(e,t,n){"use strict";n.d(t,{q4:()=>u,YC:()=>l,YO:()=>c});var r=n(2786),o=n(2615);function i(e,t,n){return(0,r.w5)(t,[n.store,t]),(0,o.Tz)(e,n,"items","setItems"),e}var s=n(2714),a=n(5263);function l(e){return{id:(0,r.Bi)(e.id),...e}}
2function c(e,t,n){e=i(e,t,n),(0,s.t)(e),(0,o.Tz)(e,n,"activeId","setActiveId");const r={compositeElementInFocusOrder:n.compositeElementInFocusOrder??n.includesBaseElement};return(0,o.Tz)(e,r,"compositeElementInFocusOrder"),(0,o.Tz)(e,n,"virtualFocus"),(0,o.Tz)(e,n,"orientation"),(0,o.Tz)(e,n,"rtl"),(0,o.Tz)(e,n,"focusLoop"),(0,o.Tz)(e,n,"focusWrap"),(0,o.Tz)(e,n,"focusShift"),e}function u(e={}){e=l(e);const[t,n]=(0,o.Pj)(a.zf,e);return c(t,n,e)}},4786(e,t,n){"use strict";var r=n(8106),o=n(6652),i=n(2714),s=n(2300),a=n(2786),l=n(1252),c=n(2376),u=n(3236),d=n(2615);function f(e,t,n){return(0,a._q)(r=>{if(t?.(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!(0,l.uh)(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!(0,l.mB)(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const o=e.getState(),i=(0,s.hZ)(e,o.activeId)?.element;if(!i)return;const{view:a,...c}=r;i!==n?.current&&i.focus({preventScroll:!0}),(0,l.sz)(i,r.type,c)||r.preventDefault(),r.currentTarget.contains(i)&&r.stopPropagation()})}function p(e,t){const{consumedBy:n}=(0,i.t)(e);return!n||n===t}function m(e,t,n){e.getState().moves===n&&((0,i.t)(e).consumedBy=t)}const g=(0,a.ph)(function({store:e,focusOnMove:t,previousElementRef:n,present:r,scrollIntoView:o}){const u=(0,d.O$)(e,"moves"),f=(0,d.O$)(e,"compositeElement"),g=(0,c.useRef)({});return(0,c.useEffect)(()=>{const n=(0,i.t)(e);if(!u)return;if(!t)return;const a=g.current;if(!p(e,a))return;const{activeId:l}=e.getState();return null!=l&&l===n.targetId?r({id:l,requireFocus:(0,s.ic)(e),focus:!0,scrollIntoView:o,onConsume:()=>m(e,a,u)}):void 0},[e,u,t,f,r,o]),(0,a.UQ)(()=>{const t=(0,i.t)(e);if(!u)return;if(!f)return;const r=g.current;if(!p(e,r))return;const{activeId:o}=e.getState();if(null!==o)return;if(o!==t.targetId)return;m(e,r,u);const s=n.current;n.current=null,s&&(0,l.c$)(s,{relatedTarget:f}),(0,l.AJ)(f)||((0,l.tp)(f)&&f.scrollIntoView({block:"nearest",inline:"nearest"}),f.focus({preventScroll:!0}))},[e,u,f,n]),null}),h=(0,a.ab)(function({store:e,composite:t=!0,focusOnMove:n=t,moveOnKeyPress:i=!0,unstable_scrollIntoView:p,...m}){const h=(0,o.Lf)();e=e||h,(0,l.V1)(e,!1);const b=(0,c.useRef)(null),y=(0,c.useRef)(null),v=(0,s.CM)(e),[,k]=(0,a.XB)(t?e.setCompositeElement:null),x=(0,d.O$)(e,"virtualFocus"),w=(0,d.O$)(e,t&&x?["activeId"]:[],e=>t&&x?e.activeId:null);(0,a.UQ)(()=>{if(!e)return;if(!t)return;if(!x)return;const n=y.current;if(y.current=null,!n)return;const r=(0,s.hZ)(e,w)?.element||(0,l.bq)(n);r!==n&&(0,l.c$)(n,{relatedTarget:r})},[e,w,x,t]);const _=f(e,m.onKeyDownCapture,y),S=f(e,m.onKeyUpCapture,y),C=m.onFocusCapture,A=(0,a._q)(t=>{if(C?.(t),t.defaultPrevented)return;if(!e)return;const{virtualFocus:n}=e.getState();if(!n)return;const r=t.relatedTarget,o=(0,s.Qh)(t.currentTarget);(0,l.uh)(t)&&o&&(t.stopPropagation(),y.current=r)}),E=m.onFocus,I=(0,a._q)(n=>{if(E?.(n),n.defaultPrevented)return;if(!t)return;if(!e)return;const{relatedTarget:r}=n,{virtualFocus:o}=e.getState();if(o)(0,l.uh)(n)&&!(0,s.WZ)(e,r)&&queueMicrotask(()=>v({focus:!0,markedOnly:!0,requireFocus:!0,scrollIntoView:p}));else if((0,l.uh)(n)){if(!(0,s.WZ)(e,r)){const{activeId:t}=e.getState();null!=t&&v({id:t,markedOnly:!0,requireFocus:!0,scrollIntoView:p})}e.setActiveId(null)}}),T=m.onBlurCapture,N=(0,a._q)(t=>{if(T?.(t),t.defaultPrevented)return;if(!e)return;const{virtualFocus:n,activeId:r,compositeElement:o}=e.getState();if(!n)return;if(t.currentTarget!==o)return;const i=(0,s.hZ)(e,r)?.element,a=t.relatedTarget,c=(0,s.WZ)(e,a),u=y.current;y.current=null,(0,l.uh)(t)&&c?(a===i?u&&u!==a&&(0,l.c$)(u,t):i?(0,l.c$)(i,t):u&&(0,l.c$)(u,t),t.stopPropagation()):!(0,s.WZ)(e,t.target)&&i&&(0,l.c$)(i,t)}),j=m.onKeyDown,B=(0,a.O4)(i),L=(0,a._q)(t=>{if(j?.(t),t.nativeEvent.isComposing)return;if(t.defaultPrevented)return;if(!e)return;if(!(0,l.uh)(t))return;const{orientation:n,items:r,renderedItems:o,activeId:i,rtl:a}=e.getState(),c=(0,s.hZ)(e,i);if(c?.element?.isConnected)return;const u=c&&null!=i,d=u?r:o,f="horizontal"!==n,p="vertical"!==n,m=function(e){return e.some(e=>!!e.rowId)}(d);if(("ArrowLeft"===t.key||"ArrowRight"===t.key||"Home"===t.key||"End"===t.key)&&(0,l.mB)(t.currentTarget))return;const g={ArrowUp:(m||f)&&(()=>u?e.up({activeId:i,renderedItems:d}):m?function(e){return(0,s.oi)((0,l.M9)((0,l.q7)((0,s.es)(e))))}(o)?.id:e?.last()),ArrowRight:(m||p)&&(()=>u?e.next({activeId:i,renderedItems:d}):a?e.last():e.first()),ArrowDown:(m||f)&&(()=>u?e.down({activeId:i,renderedItems:d}):e.first()),ArrowLeft:(m||p)&&(()=>u?e.previous({activeId:i,renderedItems:d}):a?e.first():e.last()),Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];
2if(g){const n=g();if(void 0!==n){if(!B(t))return;t.preventDefault(),e.move(n)}}});m=(0,a.w7)(m,r=>(0,u.jsxs)(o.aN,{value:e,children:[r,t&&(0,u.jsx)(g,{store:e,focusOnMove:n,previousElementRef:y,present:v,scrollIntoView:p})]}),[e,t,n,v]),m={"aria-activedescendant":(0,d.O$)(e,t&&x?["items"]:[],()=>{if(e&&t&&x)return(0,s.hZ)(e,w)?.id}),...m,ref:(0,a.SV)(b,k,m.ref),onKeyDownCapture:_,onKeyUpCapture:S,onFocusCapture:A,onFocus:I,onBlurCapture:N,onKeyDown:L};const O=(0,d.O$)(e,t&&!x?["activeId"]:[],e=>t&&(x||null===e.activeId));return m=(0,r.n)({focusable:O,...m})}),b=(0,a.Rf)(function(e){const t=h(e);return(0,a.n)("div",t)});n.d(t,["T",0,h,"e",0,b])},2300(e,t,n){"use strict";n.d(t,{CM:()=>b,Df:()=>p,Qh:()=>w,WZ:()=>_,hZ:()=>y,hk:()=>x,iT:()=>v,ic:()=>g,nc:()=>f});var r=n(2786),o=n(1252),i=n(2376),s=n(8992),a=n(5263);const l=a._d,c=a.oi,u=a.es,d=new WeakSet;function f(e){(0,o.bq)(e)===e&&(d.add(e),queueMicrotask(()=>d.delete(e)))}function p(e){d.delete(e)}function m(e){const t=e.getState();return"contentElement"in t?t.contentElement:null}function g(e){const{compositeElement:t}=e.getState(),n=(0,o.bq)(t);return!!n&&(!!t?.contains(n)||(!!_(e,n)||!!m(e)?.contains(n)))}function h({store:e,id:t,focus:n,markedOnly:r,requireFocus:i,scrollIntoView:a,onConsume:l}){let c,u=null,f=!1,p=!1,h=!1,b=!1,v=!1;const k=e.getState().compositeElement,x=(0,o.bq)(k),w=i?x:null,_=!!k?.contains(x),S=n=>{const r=y(e,c??(void 0===t?n.activeId:t));return r?.element?.isConnected?(c=r.id,r.element):null};let C,A;const E=()=>{h=!0,C?.(),A?.()};let I=!1;const T=()=>{I||(I=!0,l?.())},N=()=>{if(!h)return T(),E()},j=()=>
2{if(h)return;const i=e.getState();if((e=>{if("mounted"in e)if(e.mounted)b=!0;else if(b)return!0;if("open"in e)if(e.open)v=!0;else if(v)return!0;return null!=t&&null!=e.activeId&&e.activeId!==t})(i))return N();let s=!1;if(u){if(!u.isConnected&&(s=f&&!p&&(0,o.bq)(u)===(0,o.YE)(u).body,u=S(i),!u))return N()}else if(u=S(i),!u)return;if(s)f=!1;else if(!(t=>{if(!w)return!0;const n=(0,o.bq)(w);return n===w||n===t||g(e)})(u))return N();const l=n&&_&&((t,n)=>{if(!("open"in t))return!1;if(t.open)return!1;const r=m(e);if(!r?.contains(n))return!1;const{compositeElement:i}=t;return!!i&&!r.contains(i)&&(0,o.zN)(n)})(i,u);if(l){const{activeId:e}=i;if(null!=e&&e!==c)return N()}if(n&&!f&&!l){f=!0,T(),p=!1;const t=u;C?.();const n=()=>{p=!d.has(t)},r=()=>{p=!1};if(t.addEventListener("blur",n),t.addEventListener("focus",r),C=()=>{t.removeEventListener("blur",n),t.removeEventListener("focus",r)},function(e,t){const{virtualFocus:n,compositeElement:r}=e.getState();if(!n||!r||!(0,o.mB)(r))return void t();const i=r.scrollLeft,s=r.scrollTop;t(),r.scrollLeft=i,r.scrollTop=s}(e,()=>{t.focus({preventScroll:!0})}),h)return}if(r&&!u.hasAttribute("data-autofocus")){if(l)return;return N()}(0,o.zN)(u)&&("unstable_placing"in i&&i.unstable_placing||(l||N(),a?a(u):u.scrollIntoView({block:"nearest",inline:"nearest"})))};return A=(0,s.B1)(e,["activeId","items","mounted","open","unstable_placing"],j),j(),Object.assign(E,{settle:N})}function b(e){const t=(0,i.useRef)(null),n=(0,i.useRef)(e),o=(0,i.useCallback)(()=>{t.current?.(),t.current=null},[]),s=(0,i.useCallback)(r=>{if(!e)return;if(n.current!==e)return;t.current?.settle(),t.current=null;const o=h({store:e,...r});return t.current=o,o},[e]);return(0,r.UQ)(()=>(n.current=e,()=>{n.current=void 0,o()}),[e,o]),s}function y(e,t){return t&&e.item(t)||null}function v(e,t=!1){if((0,o.mB)(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=(0,o.YE)(e).getSelection();n?.selectAllChildren(e),t&&n?.collapseToEnd()}}const k=Symbol("FOCUS_SILENTLY");function x(e){e[k]=!0,e.focus({preventScroll:!0})}function w(e){const t=e[k];return delete e[k],t}function _(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}n.d(t,["_d",0,l,"es",0,u,"oi",0,c])},8292(e,t,n){"use strict";const r=(0,n(2376).createContext)(!0);n.d(t,["g",0,r])},3356(e,t,n){"use strict";var r=n(6652);const o=(0,n(2786).B0)([r.ws],[r.aN]),i=o.useContext,s=(o.useScopedContext,o.useProviderContext),a=(o.ContextProvider,o.ScopedContextProvider);n.d(t,["P$",0,s,"_N",0,a,"wU",0,i])},2615(e,t,n){"use strict";n.d(t,{Pj:()=>g,Tz:()=>m,O$:()=>f,PX:()=>p});var r=()=>n(2376),o=n.cw(function(e,t){var n=r();var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),s(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u}),i=n.cw(function(e,t){e.exports=o()}),s=n(2786),a=n(8992),l=n(1252);r(),i();function c(e){return Array.isArray(e)}function u(e,t){return e===t||e!=e&&t!=t}function d(e){const[t,n]=r().useState(()=>null===e?null:[...e]);if(null===e)return null!==t&&n(null),null;if(function(e,t){if(e?.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!u(e[n],t[n]))return!1;return!0}(t,e))return t;const o=[...e];return n(o),o}function f(e,t=l.D_,n){const i=d(c(t)?t:"function"==typeof t?null:[t]),s=r().useCallback(t=>e?0===i?.length?()=>{}:(0,a.B1)(e,i,t):()=>{},[e,i]),u=()=>{const r=e?.getState();return c(t)?n?.(r):"function"==typeof t?t(r):r&&(0,l.mQ)(r,t)?r[t]:void 0};return(0,o().useSyncExternalStore)(s,u,u)}function p(e,t,n){const i=c(t)?n??{}:t,s=c(t)?t:void 0,u=r().useRef({}),f=d(function(e,t){const n=[];let r=!1;for(const t in e){const o=e[t];void 0!==o&&("function"!=typeof o?n.includes(o)||n.push(o):r=!0)}if(!r)return n;if(!t)return null;for(const e of t)n.includes(e)||n.push(e);return n}(i,s)),p=r().useCallback(t=>e?0===f?.length?()=>{}:(0,a.B1)(e,f,t):()=>{},[e,f]),m=()=>{const t=e?.getState();let n=!1;const r=u.current;for(const e in i){const o=i[e];if(void 0===o)continue;if("function"==typeof o){const i=o(t);Object.is(i,r[e])||(r[e]=i,n=!0)}if("function"==typeof o)continue;const s=t&&(0,l.mQ)(t,o)?t[o]:void 0;Object.is(s,r[e])||(r[e]=s,n=!0)}return n&&(u.current={...r}),u.current};
2return(0,o().useSyncExternalStore)(p,m,m)}function m(e,t,n,r){const o=(0,l.mQ)(t,n)?t[n]:void 0,i=r?t[r]:void 0,c=!!i,d=(0,s.hX)({value:o,setValue:i});(0,s.UQ)(()=>{if(c)return(0,a.B1)(e,[n],(e,t)=>{const{value:r,setValue:o}=d.current;o&&(u(e[n],t[n])||u(e[n],r)||o(e[n]))})},[e,n,c,d]),(0,s.UQ)(()=>{if(void 0!==o)return e.setState(n,o),(0,a.vA)(e,[n],()=>{void 0!==o&&e.setState(n,o)})})}function g(e,t){const[n,o]=r().useState(()=>e(t));(0,s.UQ)(()=>(0,a.Ts)(n),[n]);const i=r().useCallback(e=>f(n,e),[n]);return[r().useMemo(()=>({...n,useState:i}),[n,i]),(0,s._q)(()=>{o(n=>e({...t,...n.getState()}))})]}},2786(e,t,n){"use strict";let r;n.d(t,{B0:()=>D,Bi:()=>y,CH:()=>w,Cy:()=>k,O4:()=>_,P$:()=>I,P1:()=>A,Rf:()=>O,SV:()=>h,TE:()=>C,XB:()=>g,_q:()=>m,ab:()=>P,cZ:()=>a,hX:()=>p,n:()=>M,ph:()=>R,vO:()=>v,w5:()=>x,w7:()=>S});var o=n(1252),i=n(2376),s=n(3236);function a(e,t){if("function"==typeof e){const n=e(t);if("function"==typeof n)return n}else e&&(e.current=t)}function l(e){return function(e){return!!e&&!!(0,i.isValidElement)(e)&&("ref"in e.props||"ref"in e)}(e)?{...e.props}.ref||e.ref:null}const c={...r||(r=n.t(i,2))},u=c.useId,d=(c.useDeferredValue,c.useInsertionEffect??(e=>e())),f=o.Sw?i.useLayoutEffect:i.useEffect;function p(e){const t=(0,i.useRef)(e);return f(()=>{t.current=e}),t}function m(e){const t=(0,i.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return d(()=>{t.current=e}),(0,i.useCallback)((...e)=>t.current?.(...e),[])}function g(e){const[t,n]=(0,i.useState)(null);return f(()=>{if(null==t)return;if(!e)return;let n=null;return e(e=>(n=e,t)),()=>{e(n)}},[t,e]),[t,n]}function h(...e){return(0,i.useMemo)(()=>{if(e.some(Boolean))return t=>{const n=[];for(const r of e){if(!r)continue;const e=a(r,t);n.push({ref:r,cleanup:"function"==typeof e?e:void 0})}if(n.some(e=>e.cleanup))return()=>{for(const{ref:e,cleanup:t}of n)t?t():a(e,null)}}},e)}const b=u?function(e){const t=u();return e||t}:function(e){const[t,n]=(0,i.useState)(e);return f(()=>{if(e||t)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)},[e,t]),e||t};function y(e){return b(e)}function v(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,i.useState)(()=>n(t));return f(()=>{const r=e&&"current"in e?e.current:e;o(r?.tagName.toLowerCase()||n(t))},[e,t]),r}function k(e,t,n){const r=function(e){const[t]=(0,i.useState)(e);return t}(n),[o,s]=(0,i.useState)(r);return(0,i.useEffect)(()=>{const n=e&&"current"in e?e.current:e;if(!n)return;const o=()=>{const e=n.getAttribute(t);s(e??r)},i=new MutationObserver(o);return i.observe(n,{attributeFilter:[t]}),o(),()=>i.disconnect()},[e,t,r]),o}function x(e,t){const n=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(n.current)return e();n.current=!0},t),(0,i.useEffect)(()=>()=>{n.current=!1},[])}function w(){return(0,i.useReducer)(()=>[],[])}function _(e){return m("function"==typeof e?e:()=>e)}function S(e,t,n=[]){const r=(0,i.useCallback)(n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n)),[...n,e.wrapElement]);return{...e,wrapElement:r}}function C(e=!1,t){const[n,r]=(0,i.useState)(null);return{portalRef:h(r,t),portalNode:n,domReady:!e||n}}function A(e,t,n){const r=e.onLoadedMetadataCapture,o=(0,i.useMemo)(()=>Object.assign(()=>{},r,...void 0!==n?[{[t]:n}]:[]),[r,t,n]);return[r?.[t],{onLoadedMetadataCapture:o}]}let E=!1;function I(){return(0,i.useEffect)(()=>{E||((0,o.dg)("mousemove",B,!0),(0,o.dg)("mousedown",L,!0),(0,o.dg)("mouseup",L,!0),(0,o.dg)("keydown",L,!0),(0,o.dg)("scroll",L,!0),E=!0)},[]),m(()=>T)}let T=!1,N=0,j=0;function B(e){(function(e){const t=e.movementX||e.screenX-N,n=e.movementY||e.screenY-j;return N=e.screenX,j=e.screenY,t||n||!1})(e)&&(T=!0)}function L(){T=!1}function O(e){const t=i.forwardRef((t,n)=>e((0,o.HR)({...t,ref:n})));return t.displayName=e.displayName||e.name,t}function R(e,t){return i.memo(e,t)}function M(e,t){const{wrapElement:n,render:r,...a}=t,c=h(t.ref,l(r));let u;if(i.isValidElement(r)){const e={...r.props,ref:c};u=i.cloneElement(r,function(e,t){const n={...e};for(const r in t){if(!(0,o.mQ)(t,r))continue;if("__proto__"===r)continue;if("className"===r){const r="className",o=e[r],i=t[r];n[r]=o&&i?`${o} ${i}`:i||o;continue}if("style"===r){const r="style";n[r]=e[r]?{...e[r],...t[r]}:t[r];continue}const i=t[r];
2if(void 0!==i){if(r.startsWith("on")){if("function"!=typeof i)continue;const t=e[r];if("function"==typeof t){n[r]=(...e)=>{i(...e),t(...e)};continue}}n[r]=i}}return n}(a,e))}else u=r?r(a):(0,s.jsx)(e,{...a});return n?n(u):u}function P(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function D(e=[],t=[]){const n=i.createContext(void 0),r=i.createContext(void 0),o=()=>i.useContext(n),a=t=>e.reduceRight((e,n)=>(0,s.jsx)(n,{...t,children:e}),(0,s.jsx)(n.Provider,{...t}));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=i.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=i.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:a,ScopedContextProvider:e=>(0,s.jsx)(a,{...e,children:t.reduceRight((t,n)=>(0,s.jsx)(n,{...e,children:t}),(0,s.jsx)(r.Provider,{...e}))})}}n.d(t,["UQ",0,f])},8992(e,t,n){"use strict";n.d(t,{B1:()=>y,OH:()=>v,Ts:()=>b,UE:()=>_,cJ:()=>x,mj:()=>h,od:()=>w,vA:()=>k,y$:()=>g});var r=n(1252);function o(e,t){const n=e.__unstableInternals;return(0,r.V1)(n,"Invalid store"),n[t]}function i(e,t){if(!e)return!0;for(const n of e)if(t instanceof Set){if(t.has(n))return!0}else if(s(n,t))return!0;return!1}function s(e,t){return e===t||e!=e&&t!=t}function a(e,t,n,o){let a;for(const l of(0,r.xD)(t))s(t[l],n[l])||void 0!==o&&i([l],o)||(a??={...e},a[l]=t[l]);return a}function l(e){const t=new Set,n=e.currentListener;if(!n)return t;for(const r of e.keyedListeners)if(t.add(r),r===n)return t;return t.clear(),t.add(n),t}function c(e){e.notifiedListeners??=l(e)}function u(e,t){if(!e.currentListener)return!1;let n=!1;for(const r of e.keyedListeners)if(r!==e.currentListener){if(n&&r===t)return!1}else n=!0;let r=!1;for(const n of e.group.listeners){if(n===e.currentListener)return r;n===t&&(r=!0)}return!1}function d(e,t,n){for(const r of e)if(r.group===t&&!r.recovering&&(!n||r.keyedListeners.has(n))){c(r);for(const e of r.group.listeners){if(e===r.currentListener)break;u(r,e)&&r.notifiedListeners?.add(e)}}}function f(e,t,n){const r=e.disposables.get(t);r?e.disposables.set(t,()=>{r(),n()}):e.disposables.set(t,n)}function p(e,t,n,r,o,i){if(e.suspendCounts?.has(t))return;const{disposables:s}=e,l=s.size?s.get(t):void 0;if(l){s.delete(t);const e=n;l(),(n=o?.()??n)!==e&&(r=a(r,n,e,i)??r)}const c=t(n,r);c&&f(e,t,c)}function m({group:e,getState:t,prevState:n,updatedKey:r,notifiedListeners:o}){const s=e.allKeysListeners;for(const a of e.listeners)o?.has(a)||(s?.has(a)||i(e.listenerKeys.get(a),r))&&(o?.add(a),p(e,a,t(),n,t,r))}function g(e,...t){let n=e,o=n,i=r.lQ,h=!1,k=!1,x=new Set;const w=new Set,_=new Set,S={listeners:new Set,disposables:new Map,listenerKeys:new WeakMap},C={listeners:new Set,disposables:new Map,listenerKeys:new WeakMap},A=(e,t,n)=>{void 0!==n&&(n?function(e,t,n){if(e&&t)for(const r of t){const t=e.get(r);t&&(t.delete(n),t.size||e.delete(r))}}(e.listenersByKey,n,t):e.allKeysListeners?.delete(t))},E=[],I=(e,t,n=S)=>{const r=e?[...e]:null,o=n.listeners.has(t);return o||function(e,t,n){for(const r of e)r.group===t&&r.notifiedListeners?.delete(n)}(E,n,t),r?function({fastPathFrames:e,group:t,keys:n,listener:r}){const o=t.listeners.has(r);for(const i of e)i.group===t&&(i.recovering||n.includes(i.updatedKey)&&(u(i,r)?(c(i),i.notifiedListeners?.add(r)):o&&(c(i),i.recoverToLive=!0)))}({fastPathFrames:E,group:n,keys:r,listener:t}):(o&&d(E,n),function(e,t,n){for(const r of e)r.group===t&&(r.recovering||u(r,n)&&(c(r),r.notifiedListeners?.add(n)))}(E,n,t)),o&&(d(E,n,t),A(n,t,n.listenerKeys.get(t))),n.listeners.add(t),r?(n.listenersByKey??=new Map,function(e,t,n){if(t)for(const r of t){let t=e.get(r);t||(t=new Set,e.set(r,t)),t.add(n)}}(n.listenersByKey,r,t),function({fastPathFrames:e,group:t,keys:n,listener:r}){for(const o of e)o.group===t&&(o.recovering||n.includes(o.updatedKey)&&o.keyedListeners.add(r))}({fastPathFrames:E,group:n,keys:r,listener:t})):(n.allKeysListeners??=new Set,n.allKeysListeners.add(t)),n.listenerKeys.set(t,r),()=>{const e=n.disposables.get(t);n.disposables.delete(t),d(E,n,t);const o=n.listenerKeys.get(t);A(n,t,r),o!==r&&A(n,t,o),n.listenerKeys.delete(t),n.listeners.delete(t),e?.()}},T=(e,t,r)=>{const o=e.listeners.has(t);if(o){e.suspendCounts??=new Map;const n=e.suspendCounts.get(t)??0;e.suspendCounts.set(t,n+1)}let i;try{const o=n;!function(e,t){if(!e.disposables.size)return;const n=e.disposables.get(t);n&&(e.disposables.delete(t),n())}(e,t),n!==o&&(i=a(r,n,o));const s=t(n,i??r);s&&f(e,t,s)}finally{if(o){const n=e.suspendCounts,r=n?.get(t);r&&r>1?n?.set(t,r-1):n?.delete(t),n?.size||delete e.suspendCounts}}},N=()=>n,j=(e,t,r)=>{if(!(r instanceof Set||e.allKeysListeners?.size)){const o=e.listenersByKey?.get(r);if(!o)return;const i={group:e,keyedListeners:o,updatedKey:r,currentListener:null};E.push(i);try{for(const s of o){if(i.notifiedListeners?.has(s))continue;if(i.currentListener=s,i.notifiedListeners?.add(s),p(e,s,n,t,N,r),!e.allKe
2ysListeners?.size&&!i.recoverToLive)continue;const o=i.notifiedListeners??l(i);return i.notifiedListeners=o,i.recovering=!0,void m({group:e,getState:N,prevState:t,updatedKey:r,notifiedListeners:o})}}finally{E.pop()}return}m({group:e,getState:N,prevState:t,updatedKey:r})},B=(e,i,a=!1)=>{if(!(0,r.mQ)(n,e))return;const l=n[e],c=(0,r.Qh)(i,()=>l);if(s(c,l))return;const u=k;k=!0;const d=n,f={...n,[e]:c};n=f;let p=!1;try{if(!a&&t.length){for(const r of t)if(r?.setState?.(e,c),!s(n[e],c)){p=!0;break}if(p){let r=0;for(;r<100;r+=1){let r=!1;for(const o of t){const t=n[e];o?.setState?.(e,t),s(n[e],t)||(r=!0)}if(!r)break}0}}if(!p){const t=n===f?d:{...n,[e]:d[e]};j(S,t,e)}}finally{k=u}C.listeners.size?(x.add(e),h||(h=!0,queueMicrotask(()=>{h=!1;const e=n,t=x;x=new Set;const r=o;j(C,r,t),o===r&&(o=e)}))):k||(o=n)},L={getState:N,setState:B,__unstableInternals:{setup:e=>(_.add(e),()=>_.delete(e)),init:()=>{const e=w.size,o=Symbol();w.add(o);const s=()=>{w.delete(o)&&(w.size||i())};if(e)return s;const a=(0,r.xD)(n),l=[];for(const e of t){const n=e?.getState?.();if(!n)continue;const o=a.filter(e=>(0,r.mQ)(n,e));if(o.length)if(1!==t.length&&o.length!==a.length){l.push(y(e,o,(e,t)=>{for(const n of o)e[n]!==t[n]&&B(n,e[n],!0)}));for(const t of o){const n=e?.getState?.();n&&B(t,n[t],!0)}}else for(const t of o)l.push(v(e,[t],e=>{B(t,e[t],!0)}))}const c=[];for(const e of _)c.push(e());const u=t.map(b);return i=(0,r.cy)(...l,...c,...u),s},subscribe:(e,t)=>I(e,t),sync:(e,t)=>(T(S,t,n),I(e,t)),batch:(e,t)=>(C.listeners.size||k||(o=n),T(C,t,o),I(e,t,C)),pick:e=>g((0,r.Up)(n,e),L),omit:e=>g((0,r.cJ)(n,e),L)}};return L}function h(e,...t){if(e)return o(e,"setup")(...t)}function b(e,...t){if(e)return o(e,"init")(...t)}function y(e,...t){if(e)return o(e,"subscribe")(...t)}function v(e,...t){if(e)return o(e,"sync")(...t)}function k(e,...t){if(e)return o(e,"batch")(...t)}function x(e,...t){if(e)return o(e,"omit")(...t)}function w(...e){const t={};for(const n of e){const e=n?.getState?.();e&&Object.assign(t,e)}const n=g(t,...e);return Object.assign({},...e,n)}function _(e,t){}},1252(e,t,n){"use strict";function r(e){const t=[];for(const n of e)t.push(...n);return t}function o(e){return e.slice().reverse()}function i(...e){}function s(e,t){return function(e){return"function"==typeof e}(e)?e("function"==typeof t?t():t):e}function a(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function l(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function c(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function u(e,t){const n={...e};for(const e of t)a(n,e)&&delete n[e];return n}function d(e,t){const n={};for(const r of t)a(e,r)&&(n[r]=e[r]);return n}function f(e){return e}function p(e=i){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)}n.d(t,{$f:()=>b,AJ:()=>fe,Bj:()=>D,Bm:()=>O,D_:()=>f,HR:()=>v,J2:()=>c,Jh:()=>k,LC:()=>le,Ll:()=>B,M9:()=>r,Mk:()=>z,QZ:()=>he,Qh:()=>s,Up:()=>d,V1:()=>m,XJ:()=>de,YE:()=>E,Zy:()=>F,a9:()=>ae,aG:()=>J,bq:()=>T,c$:()=>Z,cJ:()=>u,cX:()=>K,cy:()=>l,dg:()=>te,f8:()=>H,gH:()=>V,gR:()=>N,gm:()=>U,gw:()=>ge,hY:()=>Q,ho:()=>G,lQ:()=>i,lp:()=>y,mB:()=>P,mQ:()=>a,nr:()=>W,ny:()=>p,nz:()=>ee,oW:()=>pe,q7:()=>o,qj:()=>$,sz:()=>Y,tp:()=>re,uh:()=>q,vF:()=>ue,vq:()=>j,xD:()=>g,zN:()=>M,zO:()=>h,zk:()=>I});function m(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function g(e){return Object.keys(e)}function h(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function b(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function y(e){return"true"===e.getAttribute("aria-disabled")||"disabled"in e&&!0===e.disabled}function v(e){const t={};for(const n in e)a(e,n)&&"__proto__"!==n&&void 0!==e[n]&&(t[n]=e[n]);return t}function k(...e){for(const t of e)if(void 0!==t)return t}const x="undefined"!=typeof window&&!!window.document?.createElement;function w(e,t){let n=e;for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e?.get)return e.get;n=Object.getPrototypeOf(n)}}const _=x?w(Object.getPrototypeOf(window.document),"nodeType"):void 0,S=x?w(Object.getPrototypeOf(window.document),"activeElement"):void 0;
2function C(e){return!!e&&e.window===e}function A(e){if(!e)return!1;if(!_)return 9===e.nodeType;try{return 9===_.call(e)}catch{return!1}}function E(e){if(!e)return document;if(A(e))return e;if(C(e))return e.document;const t=e.ownerDocument;return A(t)?t:document}function I(e){if(!e)return self;if(C(e))return e;const t=E(e),{defaultView:n}=t;return C(n)&&function(e,t){try{return e.document===t}catch{return!1}}(n,t)?n:window}function T(e,{frame:t=!0,activeDescendant:n=!1}={}){const r=E(e),o=S?S.call(r):r.activeElement;if(!o?.nodeName)return null;if(t&&L(o)&&o.contentDocument?.body)return T(o.contentDocument.body,{frame:t,activeDescendant:n});if(n){const e=o.getAttribute("aria-activedescendant");if(e){const t=E(o).getElementById(e);if(t)return t}}return o}function N(e,t){return e===t||e.contains(t)}function j(e){return 1===e?.nodeType}function B(e){return"number"==typeof e?.nodeType}function L(e){return"IFRAME"===e.tagName}function O(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==R.indexOf(e.type)}const R=["button","color","file","image","reset","submit"];function M(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function P(e){try{return"TEXTAREA"===e.tagName||"INPUT"===e.tagName&&null!==e.selectionStart}catch(e){return!1}}function D(e){return e.isContentEditable||P(e)}function z(e){if(P(e))return e.value;if(e.isContentEditable){const t=E(e).createRange();return t.selectNodeContents(e),t.toString()}return""}function F(e){let t=0,n=0;if(P(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=E(e).getSelection();if(r?.rangeCount&&r.anchorNode&&N(e,r.anchorNode)&&r.focusNode&&N(e,r.focusNode)){const o=r.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(e),i.setEnd(o.startContainer,o.startOffset),t=i.toString().length,i.setEnd(o.endContainer,o.endOffset),n=i.toString().length}}return{start:t,end:n}}function $(e){if(!e)return null;const t=e=>"auto"===e||"scroll"===e;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:n}=getComputedStyle(e);if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:n}=getComputedStyle(e);if(t(n))return e}const n=E(e);return $(e.parentElement)||n.scrollingElement||n.body}function V(e,t){const n=e.map((e,t)=>[t,e]);let r=!1;return n.sort(([e,n],[o,i])=>{const s=t(n),a=t(i);return s===a?0:s&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(s,a)?(e>o&&(r=!0),-1):(e<o&&(r=!0),1):0}),r?n.map(([e,t])=>t):e}function H(){return!!x&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function W(){return x&&H()&&/apple/i.test(navigator.vendor)}function U(){return x&&/firefox\//i.test(navigator.userAgent)}function K(){return x&&navigator.platform.startsWith("Mac")&&!(x&&navigator.maxTouchPoints)}function G(e){const{currentTarget:t,target:n}=e;return!!t&&(!B(n)||!N(t,n))}function q(e){return e.target===e.currentTarget}function Z(e,t){const{FocusEvent:n}=I(e),r=new n("blur",t),o=e.dispatchEvent(r),i={...t,bubbles:!0};return e.dispatchEvent(new n("focusout",i)),o}function Y(e,t,n){const{KeyboardEvent:r}=I(e),o=new r(t,n);return e.dispatchEvent(o)}const X={width:!0,height:!0,pressure:!0,tangentialPressure:!0,tiltX:!0,tiltY:!0,twist:!0,altitudeAngle:!0,azimuthAngle:!0,isPrimary:!0,coalescedEvents:!0,predictedEvents:!0,persistentDeviceId:!0};function Q(e,t){const n=I(e),r=new(n.PointerEvent??n.MouseEvent)("click",function(e,t){const n=t??{};return new Proxy({},{get:(t,r)=>"view"===r?e:"composed"===r||("pointerId"===r?n.pointerId??-1:"pointerType"===r?n.pointerType??"":a(X,r)?void 0:Reflect.get(n,r))})}(n,t));return e.dispatchEvent(r)}function J(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!B(r)||!N(n,r)}function ee(e,t,n,r){const o=(e=>{if(r){const t=setTimeout(e,r);return()=>clearTimeout(t)}const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),()=>{o(),e.removeEventListener(t,i,!0)}}function te(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(te(e,t,n,i))}catch{}return()=>{try{r.document.removeEventListener(e,t,n)}catch{}for(const e of o)e()}}const ne="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function re(e){return!!e.matches(ne)&&(!!M(e)&&!e.closest("[inert]"))}function oe(e){if(!re(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;
2if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=T(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||(!("name"in n)||n.name!==e.name))))}function ie(e,t){const n=Array.from(e.querySelectorAll(ne));t&&n.unshift(e);const r=n.filter(re);return r.forEach((e,t)=>{if(!L(e))return;const n=e.contentDocument?.body;n&&r.splice(t,1,...ie(n))}),r}function se(e,t){const[n]=ie(e,t);return n||null}function ae(e,t,n){const r=Array.from(e.querySelectorAll(ne)).filter(oe);return t&&oe(e)&&r.unshift(e),r.forEach((e,t)=>{if(!L(e))return;const o=e.contentDocument?.body;if(!o)return;const i=ae(o,!1,n);r.splice(t,1,...i)}),!r.length&&n?ie(e):r}function le(e,t,n){if(t&&oe(e)){if(!L(e))return e;const t=e.contentDocument?.body;if(!t)return e;const r=le(t,!1,n);if(r)return r}const r=e.querySelectorAll(ne);for(const e of r)if(oe(e)){if(L(e)){const t=e.contentDocument?.body;if(!t)return e;const r=le(t,!1,n);if(r)return r;continue}return e}return n?se(e):null}function ce({container:e,includeContainer:t,reverse:n,fallbackToEdge:r,fallbackToFocusable:o}){const i=T(e),s=ie(e,t);n&&s.reverse();const a=s.indexOf(i),l=s.slice(a+1);return l.find(oe)||(r?s.find(oe):null)||(o?l[0]:null)||null}function ue(e,t){return function(e,t,n,r){return ce({container:e,includeContainer:t,fallbackToEdge:n,fallbackToFocusable:r})}(document.body,!1,e,t)}function de(e,t){return function(e,t,n,r){return ce({container:e,includeContainer:t,reverse:!0,fallbackToEdge:n,fallbackToFocusable:r})}(document.body,!1,e,t)}function fe(e){const t=T(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function pe(e){const t=T(e);if(!t)return!1;if(N(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function me(e){const t=e.getAttribute("tabindex")??"";e.setAttribute("data-tabindex",t),e.setAttribute("tabindex","-1")}function ge(e,t){const n=ae(e,t);for(const e of n)me(e)}function he(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}function be(e){return async()=>{const t=await(e?.());return be(async()=>(await(t?.()),e))}}!function({limit:e=100}={}){const t=[];let n=[],r=null;const o=()=>t.length>0,i=()=>n.length>0}();n.d(t,["Sw",0,x])},5339(e,t,n){"use strict";n.d(t,{VN:()=>g,lZ:()=>s,v6:()=>i});var r=n(71);const o={};function i(e,t,n,r,o){if(!(n||r||o||e))return a(t);let i=a(e);return t&&(i=l(i,t)),n&&(i=l(i,n)),r&&(i=l(i,r)),o&&(i=l(i,o)),i}function s(e){if(0===e.length)return o;if(1===e.length)return a(e[0]);let t=a(e[0]);for(let n=1;n<e.length;n+=1)t=l(t,e[n]);return t}function a(e){return u(e)?{...d(e,o)}:function(e){const t={...e};for(const e in t){const n=t[e];c(e,n)&&(t[e]=p(n))}return t}(e)}function l(e,t){return u(t)?d(t,e):function(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":e[n]=(0,r.r)(e.style,o);break;case"className":e[n]=g(e.className,o);break;default:c(n,o)?e[n]=f(e[n],o):e[n]=o}}return e}(e,t)}function c(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function u(e){return"function"==typeof e}function d(e,t){return u(e)?e(t):e??o}function f(e,t){return t?e?(...n)=>{const r=n[0];if(h(r)){const o=r;m(o);const i=t(...n);return o.baseUIHandlerPrevented||e?.(...n),i}const o=t(...n);return e?.(...n),o}:p(t):e}function p(e){return e?(...t)=>{const n=t[0];return h(n)&&m(n),e(...t)}:e}function m(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function h(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},7886(e,t,n){"use strict";n.d(t,{C:()=>v});var r,o;const i=(r="https://base-ui.com/production-error",o="Base UI",function(e,...t){const n=new URL(r);
2return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`${o} error #${e}; visit ${n} for the full message.`});var s=n(2376);const a={};function l(e,t){const n=s.useRef(a);return n.current===a&&(n.current=e(t)),n}function c(e,t,n,r){const o=l(u).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(o,e,t,n,r)&&d(o,[e,t,n,r]),o.callback}function u(){return{callback:null,cleanup:null,refs:[]}}function d(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const f=parseInt(s.version,10);function p(e){if(!s.isValidElement(e))return null;const t=e,n=t.props;return(f>=19?n?.ref:t.ref)??null}var m=n(71);Object.freeze([]);const g=Object.freeze({});var h=n(5339);function b(e,t,n={}){let r=t.render;!1!==n.enabled&&(r=function(e){if(e?.$$typeof!==y)return e;const t=s.Children.toArray(e)[0];return s.isValidElement(t)?t:e}(r));const o=function(e,t,n){const{className:r,style:o}=e,{state:i=g,ref:s,props:a,stateAttributesMapping:f,enabled:b=!0}=t,y=b?function(e,t){return"function"==typeof e?e(t):e}(r,i):void 0,v=b?function(e,t){return"function"==typeof e?e(t):e}(o,i):void 0,k=b?function(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(i,f):g,x=b&&a?function(e){if(Array.isArray(e))return(0,h.lZ)(e);return(0,h.v6)(void 0,e)}(a):void 0,w=b?(0,m.r)(k,x)??{}:g;"undefined"!=typeof document&&(b?Array.isArray(s)?w.ref=function(e){const t=l(u).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&d(t,e),t.callback}([w.ref,p(n),...s]):w.ref=c(w.ref,p(n),s):c(null,null));if(!b)return g;void 0!==y&&(w.className=(0,h.VN)(w.className,y));void 0!==v&&(w.style=(0,m.r)(w.style,v));return w}(t,n,r);if(!1===n.enabled)return null;return function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);const e=(0,h.v6)(n,t.props);return e.ref=n.ref,s.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,s.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,s.createElement)("img",{alt:"",...t,key:t.key});return s.createElement(e,t)}(e,n);throw new Error(i(8))}(e,r,o,n.state??g)}const y=Symbol.for("react.lazy");function v(e){return b(e.defaultTagName??"div",e,e)}},71(e,t,n){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>r})},4693(e,t,n){"use strict";n.d(t,{UE:()=>ve,ll:()=>me,rD:()=>xe,UU:()=>be,ER:()=>ke,cY:()=>ge,BN:()=>he,Ej:()=>ye});const r=Math.min,o=Math.max,i=Math.round,s=Math.floor,a=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t,n){return o(e,r(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function h(e){return p(g(e))}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y=["left","right"],v=["right","left"],k=["top","bottom"],x=["bottom","top"];function w(e,t,n,r){const o=f(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?v:y:t?y:v;case"left":case"right":return t?k:x;default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(b)))),i}function _(e){const t=d(e);return l[t]+e.slice(t.length)}function S(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function C(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function A(e,t,n){let{reference:r,floating:o}=e;const i=g(t),s=h(t),a=m(s),l=d(t),c="y"===i,u=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,b=r[a]/2-o[a]/2;let y;switch(l){case"top":y={x:u,y:r.y-o.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}const v=f(t);return v&&(y[s]+=b*("end"===v?1:-1)*(n&&c?-1:1)),y}async function E(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=u(t,e),g=S(m),h=a[p?"floating"===f?"reference":"floating":f],b=C(await i.getClippingRect
vendor: 8,614 bytes, line 2
2({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===f?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),k=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(b.top-x.top+g.top)/k.y,bottom:(x.bottom-b.bottom+g.bottom)/k.y,left:(b.left-x.left+g.left)/k.x,right:(x.right-b.right+g.right)/k.x}}const I=new Set(["left","top"]);function T(){return"undefined"!=typeof window}function N(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!T()&&(e instanceof Node||e instanceof j(e).Node)}function O(e){return!!T()&&(e instanceof Element||e instanceof j(e).Element)}function R(e){return!!T()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function M(e){return!(!T()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function P(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function D(e){return/^(table|td|th)$/.test(N(e))}function z(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const F=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,V=e=>!!e&&"none"!==e;let H;function W(e){const t=O(e)?G(e):e;return V(t.transform)||V(t.translate)||V(t.scale)||V(t.rotate)||V(t.perspective)||!U()&&(V(t.backdropFilter)||V(t.filter))||F.test(t.willChange||"")||$.test(t.contain||"")}function U(){return null==H&&(H="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),H}function K(e){return/^(html|body|#document)$/.test(N(e))}function G(e){return j(e).getComputedStyle(e)}function q(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===N(e))return e;const t=e.assignedSlot||e.parentNode||M(e)&&e.host||B(e);return M(t)?t.host:t}function Y(e){const t=Z(e);return K(t)?(e.ownerDocument||e).body:R(t)&&P(t)?t:Y(t)}function X(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Y(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=j(o);if(i){const e=Q(s);return t.concat(s,s.visualViewport||[],P(o)?o:[],e&&n?X(e):[])}return t.concat(o,X(o,[],n))}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function J(e){const t=G(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=R(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=i(n)!==s||i(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function ee(e){return O(e)?e:e.contextElement}function te(e){const t=ee(e);if(!R(t))return a(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=J(t);let l=(s?i(n.width):n.width)/r,c=(s?i(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const ne=a(0);function re(e){const t=j(e);return U()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ne}function oe(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ee(e);let s=a(1);t&&(r?O(r)&&(s=te(r)):s=te(e));const l=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===j(e)}(i,n,r)?re(i):a(0);let c=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i&&r){const e=j(i),t=O(r)?j(r):r;let n=e,o=Q(n);for(;o&&t!==n;){const e=te(o),t=o.getBoundingClientRect(),r=G(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=i,u+=s,n=j(o),o=Q(n)}}return C({width:d,height:f,x:c,y:u})}function ie(e,t){const n=q(e).scrollLeft;return t?t.left+n:oe(B(e)).left+n}function se(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ie(e,n),y:n.top+t.scrollTop}}function ae(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=j(e),i=B(e),s=o.visualViewport;let a=i.clientWidth,l=i.clientHeight,c=0,u=0;if(s){const e=!U()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(ie(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;s<=25&&(a-=s)}return{width:a,height:l,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=q(e),n=e.ownerDocument.body,r=o(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=o(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+ie(e);const a=-t.scrollTop;return"rtl"===G(n).direction&&(s+=o(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}(B(e));else if(O(t))r=function(e,t){const n=oe(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=te(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=re(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(r)}function le(e,t,n){const r=R(t),o=B(t),i="fixed"===n,s=oe(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=a(0);if((r||!i)&&(("body"!==N(t)||P(o))&&(l=q(t)),r)){const e=oe(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&o&&(c.x=ie(o));const u=!o||r||i?a(0):se(o,l);return{x:s.left+l.scrollLeft-c.x-u.x,y:s.top+l.scrollTop-c.y-u.y,width:s.width,height:s.height}}function ce(e){return"static"===G(e).position}function ue(e,t){if(!R(e)||"fixed"===G(e).position)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function de(e,t){const n=j(e);if(z(e))return n;if(!R(e)){let t=Z(e);for(;t&&!K(t);){if(O(t)&&!ce(t))return t;t=Z(t)}return n}let r=ue(e,t);for(;r&&D(r)&&ce(r);)r=ue(r,t);return r&&K(r)&&ce(r)&&!W(r)?n:r||function(e){let t=Z(e);for(;R(t)&&!K(t);){if(W(t))return t;if(z(t))return null;t=Z(t)}return null}(e)||n}const fe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=B(r),l=!!t&&z(t.floating);if(r===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=a(1);const d=a(0),f=R(r);if((f||!i)&&(("body"!==N(r)||P(s))&&(c=q(r)),f)){const e=oe(r);u=te(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!s||f||i?a(0):se(s,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const a=[..."clippingAncestors"===n?z(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>O(e)&&"body"!==N(e)),o=null;const i="fixed"===G(e).position;let s=i?Z(e):e;for(;O(s)&&!K(s);){const e=G(s),t=W(s),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==s),s=Z(s)}return t.set(e,r),r}(t,this._c):[].concat(n),i],l=ae(t,a[0],s);let c=l.top,u=l.right,d=l.bottom,f=l.left;for(let e=1;e<a.length;e++){const n=ae(t,a[e],s);c=o(n.top,c),u=r(n.right,u),d=r(n.bottom,d),f=o(n.left,f)}return{width:u-f,height:d-c,x:f,y:c}},getOffsetParent:de,getElementRects:async function(e){const t=this.getOffsetParent||de,n=this.getDimensions,r=await n(e.floating);return{reference:le(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=J(e);return{width:t,height:n}},getScale:te,isElement:O,isRTL:function(e){return"rtl"===G(e).direction}};function pe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function me(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,f=ee(e),p=a||l?[...f?X(f):[],...t?X(t):[]]:[];
vendor: 4,119 bytes, line 2
2p.forEach(e=>{a&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});const m=f&&u?function(e,t,n){let i,a=null;const l=B(e);function c(){var e;clearTimeout(i),null==(e=a)||e.disconnect(),a=null}function u(n,d){void 0===n&&(n=!1),void 0===d&&(d=1),c();const f=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=f;if(n||t(),!g||!h)return;const b={rootMargin:-s(m)+"px "+-s(l.clientWidth-(p+g))+"px "+-s(l.clientHeight-(m+h))+"px "+-s(p)+"px",threshold:o(0,r(1,d))||1};let y=!0;function v(t){const n=t[0].intersectionRatio;if(!pe(f,e.getBoundingClientRect()))return u();if(n!==d){if(!y)return u();n?u(!1,n):i=setTimeout(()=>{u(!1,1e-7)},1e3)}y=!1}try{a=new IntersectionObserver(v,{...b,root:l.ownerDocument})}catch(e){a=new IntersectionObserver(v,b)}a.observe(e)}const d=j(e),f=()=>u(n);return d.addEventListener("resize",f),u(!0),()=>{d.removeEventListener("resize",f),c()}}(f,n,l):null;let g,h=-1,b=null;c&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&b&&t&&(b.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),f&&!d&&b.observe(f),t&&b.observe(t));let y=d?oe(e):null;return d&&function t(){const r=oe(e);y&&!pe(y,r)&&n();y=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=b)||e.disconnect(),b=null,d&&cancelAnimationFrame(g)}}const ge=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=d(n),a=f(n),l="y"===g(n),c=I.has(s)?-1:1,p=i&&l?-1:1,m=u(t,e);let{mainAxis:h,crossAxis:b,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof y&&(b="end"===a?-1*y:y),l?{x:b*p,y:h*c}:{x:h*c,y:b*p}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},he=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=u(e,t),f={x:n,y:r},m=await i.detectOverflow(t,d),h=g(o),b=p(h);let y=f[b],v=f[h];const k=(e,t)=>c(t+m["y"===e?"top":"left"],t,t-m["y"===e?"bottom":"right"]);s&&(y=k(b,y)),a&&(v=k(h,v));const x=l.fn({...t,[b]:y,[h]:v});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[b]:s,[h]:a}}}}}},be=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:y=!0,fallbackPlacements:v,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...C}=u(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const A=d(o),E=g(a),I=d(a)===a,T=await(null==l.isRTL?void 0:l.isRTL(c.floating)),N=v||(I||!S?[_(a)]:function(e){const t=_(e);return[b(e),t,b(t)]}(a)),j="none"!==x;!v&&j&&N.push(...w(a,S,x,T));const B=[a,...N],L=await l.detectOverflow(t,C),O=[];let R=(null==(r=i.flip)?void 0:r.overflows)||[];if(p&&O.push(L[A]),y){const e=function(e,t,n){void 0===n&&(n=!1);const r=f(e),o=h(e),i=m(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=_(s)),[s,_(s)]}(o,s,T);O.push(L[e[0]],L[e[1]])}if(R=[...R,{placement:o,overflows:O}],!O.every(e=>e<=0)){var M,P;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=B[e];if(t){if(!("alignment"===y&&E!==g(t))||R.every(e=>g(e.placement)!==E||e.overflows[0]>0))return{data:{index:e,overflows:R},reset:{placement:t}}}let n=null==(P=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(k){case"bestFit":{var D;const e=null==(D=R.filter(e=>{if(j){const t=g(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
vendor: 4,237 bytes, line 2
2e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ye=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=u(e,t),p=await s.detectOverflow(t,c),m=d(n),h=f(n),b="y"===g(n),{width:y,height:v}=i.floating;let k,x;"top"===m||"bottom"===m?(k=m,x=h===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=m,k="end"===h?"top":"bottom");const w=v-p.top-p.bottom,_=y-p.left-p.right,S=r(v-p[k],w),C=r(y-p[x],_),A=t.middlewareData.shift,E=!A;let I=S,T=C;null!=A&&A.enabled.x&&(T=_),null!=A&&A.enabled.y&&(I=w),E&&!h&&(b?T=y-2*o(p.left,p.right):I=v-2*o(p.top,p.bottom)),await l({...t,availableWidth:T,availableHeight:I});const N=await s.getDimensions(a.floating);return y!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}},ve=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:s,platform:a,elements:l,middlewareData:d}=t,{element:p,padding:g=0}=u(e,t)||{};if(null==p)return{};const b=S(g),y={x:n,y:o},v=h(i),k=m(v),x=await a.getDimensions(p),w="y"===v,_=w?"top":"left",C=w?"bottom":"right",A=w?"clientHeight":"clientWidth",E=s.reference[k]+s.reference[v]-y[v]-s.floating[k],I=y[v]-s.reference[v],T=await(null==a.getOffsetParent?void 0:a.getOffsetParent(p));let N=T?T[A]:0;N&&await(null==a.isElement?void 0:a.isElement(T))||(N=l.floating[A]||s.floating[k]);const j=E/2-I/2,B=N/2-x[k]/2-1,L=r(b[_],B),O=r(b[C],B),R=N-x[k]-O,M=N/2-x[k]/2+j,P=c(L,M,R),D=!d.arrow&&null!=f(i)&&M!==P&&s.reference[k]/2-(M<L?L:O)-x[k]/2<0,z=D?M<L?M-L:M-R:0;return{[v]:y[v]+z,data:{[v]:P,centerOffset:M-P-z,...D&&{alignmentOffset:z}},reset:D}}}),ke=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:m=!0}=u(e,t),h={x:o,y:i},b=g(s),y=p(b);let v=h[y],k=h[b];const x=u(c,t),w="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:null!=(n=x.mainAxis)?n:0,crossAxis:null!=(r=x.crossAxis)?r:0};if(f){const e="y"===y?"height":"width",t=a.reference[y]-a.floating[e]+w.mainAxis,n=a.reference[y]+a.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(m){var _,S;const e="y"===y?"width":"height",t=I.has(d(s)),n=a.reference[b]-a.floating[e]+(t&&(null==(_=l.offset)?void 0:_[b])||0)+(t?0:w.crossAxis),r=a.reference[b]+a.reference[e]+(t?0:(null==(S=l.offset)?void 0:S[b])||0)-(t?w.crossAxis:0);k<n?k=n:k>r&&(k=r)}return{[y]:v,[b]:k}}}},xe=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...fe,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:E},l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=A(c,r,l),f=r,p=0;const m={};for(let n=0;n<i.length;n++){const g=i[n];if(!g)continue;const{name:h,fn:b}=g,{x:y,y:v,data:k,reset:x}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=v?v:d,m[h]={...m[h],...k},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=A(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})}},9042(e,t,n){"use strict";function r(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}n.d(t,{L:()=>a});var o=n(913);var i,s="";function a(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>
2/g," "),s===e&&(e+="Â "),s=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:o&&(o.textContent=e),n&&n.removeAttribute("hidden")}i=function(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,o.__)("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&r("assertive"),null===n&&r("polite")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",i):i())},4552(e,t,n){"use strict";n.d(t,{H8:()=>i,bW:()=>o});var r={};function o(e){const t=window.URL.createObjectURL(e);return r[t]=e,t}function i(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}},792(e,t,n){"use strict";n.d(t,{LE:()=>Tl.AlignmentControl,mC:()=>dc,oS:()=>rT,th:()=>Wf,m9:()=>Pk,LJ:()=>QE,rE:()=>Hy,Tj:()=>ux,s1:()=>Fu,mF:()=>Uw,Q8:()=>Kw,qJ:()=>Gw,us:()=>nI,sD:()=>KS,aX:()=>zS,RD:()=>qS,Pe:()=>MI,oJ:()=>iT,EW:()=>FS,tQ:()=>up,MK:()=>lp,cr:()=>cp,t4:()=>$p,jb:()=>oB,M_:()=>fl,wp:()=>Uc,Z0:()=>mk,yK:()=>cx,t0:()=>ml});var r=n.cw(function(e,t){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}}),o=n.cw(function(e,t){var r=n(1932);e.exports=r.TextareaAutosize}),i={};n.r(i),n.d(i,{canHostEditableRoot:()=>un,getAllPatterns:()=>xn,getBlockRemovalRules:()=>gn,getBlockSettings:()=>qt,getBlockStyles:()=>Rn,getBlockWithoutAttributes:()=>tn,getClientIdWithClientIdsTree:()=>an,getClientIdsTree:()=>ln,getClosestAllowedInsertionPoint:()=>zn,getClosestAllowedInsertionPointForPattern:()=>Fn,getContentLockingParent:()=>In,getEditedContentOnlySection:()=>Ln,getEnabledBlockParents:()=>pn,getEnabledClientIdsTree:()=>dn,getExpandedBlock:()=>En,getInserterMediaCategories:()=>yn,getInsertionPoint:()=>$n,getLastFocus:()=>Cn,getLastInsertedBlocksClientIds:()=>en,getListViewClientIdsTree:()=>fn,getListViewExpandRevision:()=>er,getParentSectionBlock:()=>Nn,getPatternBySlug:()=>kn,getRegisteredInserterMediaCategories:()=>bn,getRemovalPromptData:()=>mn,getRequestedInspectorTab:()=>rr,getReusableBlocks:()=>Sn,getSectionRootClientId:()=>Mn,getSelectedBlockStyleState:()=>ar,getStyleOverrides:()=>hn,getStyleStateViewport:()=>ir,getViewportModalClientIds:()=>nr,getZoomLevel:()=>Dn,hasAllowedPatterns:()=>vn,hasBlockSpotlight:()=>Gn,hasSelectedStyleState:()=>lr,isBlockHiddenAnywhere:()=>Vn,isBlockHiddenAtViewport:()=>Un,isBlockHiddenEverywhere:()=>Hn,isBlockInterfaceHidden:()=>Jt,isBlockParentHiddenAtViewport:()=>Kn,isBlockParentHiddenEverywhere:()=>Wn,isBlockSubtreeDisabled:()=>nn,isContainerInsertableToInContentOnlyMode:()=>rn,isDragging:()=>An,isEditLockedBlock:()=>qn,isListViewContentPanelOpen:()=>Qn,isListViewPanelOpened:()=>Jn,isLockedBlock:()=>Xn,isMoveLockedBlock:()=>Zn,isRemoveLockedBlock:()=>Yn,isResponsiveEditing:()=>sr,isSectionBlock:()=>jn,isSelectedBlockStyleStateShownOnCanvas:()=>cr,isSyncedBlock:()=>Bn,isWithinEditedContentOnlySection:()=>On,isZoomOut:()=>Pn,shouldRenderBlockListView:()=>tr});var s={};n.r(s),n.d(s,{__experimentalGetActiveBlockIdByBlockNames:()=>$i,__experimentalGetAllowedBlocks:()=>yi,__experimentalGetAllowedPatterns:()=>Ci,__experimentalGetBlockListSettingsForBlocks:()=>Li,__experimentalGetDirectInsertBlock:()=>ki,__experimentalGetGlobalBlocksByName:()=>Gr,__experimentalGetLastBlockAttributeChanges:()=>Mi,__experimentalGetParsedPattern:()=>xi,__experimentalGetPatternTransformItems:()=>Ii,__experimentalGetPatternsByBlockTypes:()=>Ei,__experimentalGetReusableBlockTitle:()=>Oi,__unstableGetBlockWithoutInnerBlocks:()=>zr,__unstableGetClientIdWithClientIdsTree:()=>$r,__unstableGetClientIdsTree:()=>Vr,__unstableGetContentLockingParent:()=>Xi,__unstableGetLastBlockChangeHistoryMode:()=>Bi,__unstableGetSelectedBlocksWithPartialSelection:()=>No,__unstableGetTemporarilyEditingAsBlocks:()=>Qi,__unstableGetVisibleBlocks:()=>Ui,__unstableHasActiveBlockOverlayActive:()=>Ki,__unstableIsFullySelected:()=>Ao,__unstableIsLastBlockChangeIgnored:()=>Ri,__unstableIsSelectionCollapsed:()=>Eo,__unstableIsSelectionMergeable:()=>To,__unstableIsWithinBlockOverlay:()=>Gi,__unstableSelectionHasUnmergeableBlock:()=>Io,areInnerBlocksControlled:()=>Fi,canEditBlock:()=>li,canInsertBlockType:()=>ti,canInsertBlocks:()=>ni,canLockBlockType:()=>ci,canMoveBlock:()=>si,canMoveBlocks:()=>ai,canRemoveBlock:()=>oi,canRemoveBlocks:()=>ii,didAutomaticChange:()=>Di,getAdjacentBlockClientId:()=>uo,getAllowedBlocks:()=>bi,getBlock:()=>Dr,getBlockAttributes:()=>Pr,getBlockCount:()=>Yr,getBlockEditingMode:()=>qi,getBlockHierarchyRootClientId:()=>lo,getBlockIndex:()=>Bo,getBlockInsertionPoint:()=>qo,getBlockListSettings:()=>Ti,getBlockMode:()=>$o,getBlockName:()=>Rr,getBlockNamesByClientId:()=>Zr,getBlockOrder:()=>jo,getBlockParents:()=>so,getBlockParentsByBlockName:()=>
2ao,getBlockRootClientId:()=>io,getBlockSelectionEnd:()=>eo,getBlockSelectionStart:()=>Jr,getBlockTransformItems:()=>gi,getBlocks:()=>Fr,getBlocksByClientId:()=>qr,getBlocksByName:()=>Kr,getClientIdsOfDescendants:()=>Hr,getClientIdsWithDescendants:()=>Wr,getDirectInsertBlock:()=>vi,getDraggedBlockClientIds:()=>Wo,getFirstMultiSelectedBlockClientId:()=>vo,getGlobalBlockCount:()=>Ur,getHoveredBlockClientId:()=>Wi,getInserterItems:()=>mi,getLastMultiSelectedBlockClientId:()=>ko,getLowestCommonAncestorWithSelectedBlock:()=>co,getMultiSelectedBlockClientIds:()=>bo,getMultiSelectedBlocks:()=>yo,getMultiSelectedBlocksEndClientId:()=>Co,getMultiSelectedBlocksStartClientId:()=>So,getNextBlockClientId:()=>po,getPatternsByBlockTypes:()=>Ai,getPreviousBlockClientId:()=>fo,getSelectedBlock:()=>oo,getSelectedBlockClientId:()=>ro,getSelectedBlockClientIds:()=>ho,getSelectedBlockCount:()=>to,getSelectedBlocksInitialCaretPosition:()=>mo,getSelectionEnd:()=>Qr,getSelectionStart:()=>Xr,getSettings:()=>Ni,getTemplate:()=>Xo,getTemplateLock:()=>Qo,hasBlockMovingClientId:()=>Pi,hasDraggedInnerBlock:()=>Mo,hasInserterItems:()=>hi,hasMultiSelection:()=>Do,hasSelectedBlock:()=>no,hasSelectedInnerBlock:()=>Ro,isAncestorBeingDragged:()=>Ko,isAncestorMultiSelected:()=>_o,isBlockBeingDragged:()=>Uo,isBlockHighlighted:()=>zi,isBlockInsertionPointVisible:()=>Zo,isBlockMultiSelected:()=>wo,isBlockSelected:()=>Lo,isBlockValid:()=>Mr,isBlockVisible:()=>Hi,isBlockWithinSelection:()=>Po,isCaretWithinFormattedText:()=>Go,isDraggingBlocks:()=>Ho,isFirstMultiSelectedBlock:()=>xo,isGroupable:()=>Yi,isLastBlockChangePersistent:()=>ji,isMultiSelecting:()=>zo,isSelectionEnabled:()=>Fo,isTyping:()=>Vo,isUngroupable:()=>Zi,isValidTemplate:()=>Yo,wasBlockJustInserted:()=>Vi});var a={};n.r(a),n.d(a,{__experimentalUpdateSettings:()=>ts,clearBlockRemovalPrompt:()=>as,clearRequestedInspectorTab:()=>As,closeListViewContentPanel:()=>ws,deleteStyleOverride:()=>us,editContentOnlySection:()=>hs,ensureDefaultBlock:()=>is,expandBlock:()=>ms,hideBlockInterface:()=>ns,hideViewportModal:()=>Ss,openListViewContentPanel:()=>xs,privateRemoveBlocks:()=>os,requestInspectorTab:()=>Cs,resetZoomLevel:()=>vs,setBlockRemovalRules:()=>ls,setInsertionPoint:()=>gs,setLastFocus:()=>ds,setResponsiveEditing:()=>Ns,setSelectedBlockStyleState:()=>Es,setSelectedBlockStyleStateCanvasPreview:()=>Is,setStyleOverride:()=>cs,setStyleStateViewport:()=>Ts,setZoomLevel:()=>ys,showBlockInterface:()=>rs,showViewportModal:()=>_s,startDragging:()=>fs,stopDragging:()=>ps,stopEditingContentOnlySection:()=>bs,toggleBlockSpotlight:()=>ks});var l={};n.r(l),n.d(l,{createErrorNotice:()=>Ps,createInfoNotice:()=>Ms,createNotice:()=>Os,createSuccessNotice:()=>Rs,createWarningNotice:()=>Ds,removeAllNotices:()=>Fs,removeNotice:()=>zs,removeNotices:()=>$s});var c={};n.r(c),n.d(c,{getNotices:()=>Hs});var u={};n.r(u),n.d(u,{__unstableDeleteSelection:()=>Aa,__unstableExpandSelection:()=>Ia,__unstableIncrementListViewExpandRevision:()=>ul,__unstableMarkAutomaticChange:()=>Ga,__unstableMarkLastChangeAsPersistent:()=>Ua,__unstableMarkNextChangeAsNotPersistent:()=>Ka,__unstableSaveReusableBlock:()=>Wa,__unstableSetAllListViewPanelsOpen:()=>ll,__unstableSetEditorMode:()=>qa,__unstableSetOpenListViewPanel:()=>al,__unstableSetTemporarilyEditingAsBlocks:()=>rl,__unstableSplitSelection:()=>Ea,__unstableToggleListViewPanel:()=>cl,clearSelectedBlock:()=>ca,duplicateBlocks:()=>Ya,enterFormattedText:()=>Da,exitFormattedText:()=>za,flashBlock:()=>el,hideInsertionPoint:()=>_a,hoverBlock:()=>ra,insertAfterBlock:()=>Qa,insertBeforeBlock:()=>Xa,insertBlock:()=>ya,insertBlocks:()=>xa,insertDefaultBlock:()=>$a,mergeBlocks:()=>Ta,moveBlockToPosition:()=>ba,moveBlocksDown:()=>ma,moveBlocksToPosition:()=>ha,moveBlocksUp:()=>ga,multiSelect:()=>la,receiveBlocks:()=>Js,registerInserterMediaCategory:()=>ol,removeBlock:()=>ja,removeBlocks:()=>Na,replaceBlock:()=>fa,replaceBlocks:()=>da,replaceInnerBlocks:()=>Ba,resetBlocks:()=>Ys,resetSelection:()=>Qs,selectBlock:()=>na,selectNextBlock:()=>ia,selectPreviousBlock:()=>oa,selectionChange:()=>Fa,setBlockEditingMode:()=>il,setBlockMovingClientId:()=>Za,setBlockVisibility:()=>nl,setHasControlledInnerBlocks:()=>tl,setTemplateValidity:()=>Sa,showInsertionPoint:()=>wa,startDraggingBlocks:()=>Ma,startMultiSelect:()=>sa,startTyping:()=>Oa,stopDraggingBlocks:()=>Pa,stopMultiSelect:()=>aa,stopTyping:()=>Ra,synchronizeTemplate:()=>Ca,toggleBlockHighlight:()=>Ja,toggleBlockMode:()=>La,toggleSelection:()=>ua,unsetBlockEditingMode:()=>sl,updateBlock:()=>ta,updateBlockAttributes:()=>ea,updateBlockListSettings:()=>Va,updateSettings:()=>Ha,validateBlocksToTemplate:()=>Xs});var d={};n.r(d),n.d(d,{set:()=>bx,setDefaults:()=>yx,setPersistenceLayer:()=>vx,toggle:()=>hx});var f={};n.r(f),n.d(f,{get:()=>xx});var p={};n.r(p),n.d(p,{registerShortcut:()=>P_,unregisterShortcut:()=>D_});var m={};n.r(m),n.d(m,{getAllShortcutKeyCombinations:()=>K_,getAllShortcutRawKeyCombinations:()=>G_,getCategoryShortcuts:()=>q_,getShortcutAliases:()=>U_,getShortcutDescription:()=>W_,getShortcutKeyCombination:()=>V_,getShortcutRepresentation:()=>H_});var g=n(3022),h=n(3150),b=n(2376),y=n(9027),v=n(5627),k=n(2769);function x(e,t){return n=>{const r=e(n);return r.displayName=w(t,n),r}}var w=(e,t)=>{const n=t.displayName||t.name||"Component";return`${(0,k.fL)(e??"")}(${n})`},_=n(935),S=Symbol("mayDisplayControls"),C=Symbol("mayDisplayParentControls"),A=Symbol("mayDisplayPatternEditingControls"),E=Symbol("blockEditingMode"),I=Symbol("blockBindings"),T=Symbol("isPreviewMode"),N=Symbol("isInListViewBlockSupportTree"),j={name:"",isSelected:!1},B=(0,b.createContext)(j);B.displayName="BlockEditContext";var{Provider:L}=B;function O(){return(0,b.useContext)(B)}var R=n(5897),M=n(9115),P=n(1663),D=n(4168),z=n(9158),F=n(1113),$=n(6786),V=n(913),H={insertUsage:{}},W={alignWide:!1,supportsLayout:!0,colors:[{name:(0,V.__)("Black"),slug:"black",color:"#000000"},{name:(0,V.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,V.__)("White"),slug:"white",color:"#ffffff"},{name:(0,V.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,V.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,V.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,V.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,V.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,V.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,V.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,V.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,V.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,V._x)("Small","font size name"),size:13,slug:"small"},{name:(0,V._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,V._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,V._x)("Large","font size name"),size:36,slug:"large"},{name:(0,V._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,V.__)("Thumbnail")},{slug:"medium",name:(0,V.__)("Medium")},{slug:"large",name:(0,V.__)("Large")},{slug:"full",name:(0,V.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,blockStatesEditingEnabled:!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,V.__)("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,V.__)("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,V.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,
20,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,V.__)("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,V.__)("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,V.__)("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,V.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,V.__)("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,V.__)("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,V.__)("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,V.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,V.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function U(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function K(e,t,n,r=1){const o=[...e];return o.splice(t,r),U(o,e.slice(t,t+r),n)}var G=Symbol("globalStylesDataKey"),q=Symbol("globalStylesLinks"),Z=Symbol("selectBlockPatternsKey"),Y=Symbol("reusableBlocksSelect"),X=Symbol("userPatternCategoriesSelect"),Q=Symbol("sectionRootClientIdKey"),J=Symbol("mediaEditKey"),ee=Symbol("getMediaSelect"),te=Symbol("isIsolatedEditor"),ne=Symbol("deviceTypeKey"),re=Symbol("isNavigationOverlayContext"),oe=Symbol("isNavigationPostEditor"),ie=Symbol("mediaUploadOnSuccess"),se=Symbol("mediaSideloadFromUrl"),ae=Symbol("openMediaEditorModal"),le=n(5294),{lock:ce,unlock:ue}=(0,le.yf)("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"),{isContentBlock:de}=ue(h.jb),fe=e=>e;function pe(e,t=""){const n=new Map,r=[];return n.set(t,r),e.forEach(e=>{const{clientId:t,innerBlocks:o}=e;r.push(t),pe(o,t).forEach((e,t)=>{n.set(t,e)})}),n}function me(e,t=""){const n=[],r=[[t,e]];for(;r.length;){const[e,t]=r.shift();t.forEach(({innerBlocks:t,...o})=>{n.push([o.clientId,e]),t?.length&&r.push([o.clientId,t])})}return n}function ge(e,t=fe){const n=[],r=[...e];for(;r.length;){const{innerBlocks:e,...o}=r.shift();r.push(...e),n.push([o.clientId,t(o)])}return n}function he(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...r}=n.shift();n.push(...e),t[r.clientId]=!0}return t}function be(e){return ge(e,e=>{const{attributes:t,...n}=e;return n})}function ye(e){return ge(e,e=>e.attributes)}function ve(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&D(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,D(Object.keys(n),Object.keys(r)));var n,r}function ke(e,t){const n=e.tree,r=[...t],o=[...t];for(;r.length;){const e=r.shift();r.push(...e.innerBlocks),o.push(...e.innerBlocks)}for(const e of o)n.set(e.clientId,{});for(const t of o)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map(e=>n.get(e.clientId))}))}function xe(e,t,n=!1){const r=e.tree,o=new Set([]),i=new Set;for(const r of t){let t=n?r:e.parents.get(r);do{if(e.controlledInnerBlocks.has(t)){i.add(t);break}o.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of o)r.set(e,{...r.get(e)});for(const t of o)r.get(t).innerBlocks=(e.order.get(t)||[]).map(e=>r.get(e));for(const t of i)r.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map(e=>r.get(e))})}var we=(0,z.h)(P.HY,e=>(t={},n)=>{const r=e(t,n);if(r===t)return t;switch(r.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":r.tree=new Map(r.tree),ke(r,n.blocks),xe(r,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":r.tree=new Map(r.tree),r.tree.set(n.clientId,{...r.tree.get(n.clientId),...r.byClientId.get(n.clientId),attributes:r.attributes.get(n.clientId)}),xe(r,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":r.tree=new Map(r.tree),n.clientIds.forEach(e
2=>{r.tree.set(e,{...r.tree.get(e),attributes:r.attributes.get(e)})}),xe(r,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=he(n.blocks);r.tree=new Map(r.tree),n.replacedClientIds.forEach(t=>{r.tree.delete(t),e[t]||r.tree.delete("controlled||"+t)}),ke(r,n.blocks),xe(r,n.blocks.map(e=>e.clientId),!1);const o=[];for(const e of n.clientIds){const n=t.parents.get(e);void 0===n||""!==n&&!r.byClientId.get(n)||o.push(n)}xe(r,o,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const o of n.clientIds){const n=t.parents.get(o);void 0===n||""!==n&&!r.byClientId.get(n)||e.push(n)}r.tree=new Map(r.tree),n.removedClientIds.forEach(e=>{r.tree.delete(e),r.tree.delete("controlled||"+e)}),xe(r,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),r.tree=new Map(r.tree),xe(r,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];r.tree=new Map(r.tree),xe(r,e,!0);break}}return r},e=>(t,n)=>{const r=e=>{let r=e;for(let o=0;o<r.length;o++)!t.order.get(r[o])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=[...r]),r.push(...t.order.get(r[o])));return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const r={};if(t.controlledInnerBlocks.size){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...o}=e.shift();e.push(...n),t.controlledInnerBlocks.has(o.clientId)&&(r[o.clientId]=!0)}}let o=t;t.order.get(n.rootClientId)&&(o=e(o,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order.get(n.rootClientId)}));let i=o;if(n.blocks.length){i=e(i,{...n,type:"INSERT_BLOCKS",index:0});const o=new Map(i.order);Object.keys(r).forEach(e=>{t.order.get(e)&&o.set(e,t.order.get(e))}),i.order=o,i.tree=new Map(i.tree),Object.keys(r).forEach(e=>{const n=`controlled||${e}`;t.tree.has(n)&&i.tree.set(n,t.tree.get(n))})}return i},e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const r=e(void 0,{type:"INSERT_BLOCKS",rootClientId:"",blocks:n.blocks}),o=t?.controlledInnerBlocks??new Set;if(t?.order)for(const e of o){if(!r.byClientId.has(e))continue;r.controlledInnerBlocks.add(e);const n=t.order.get(e);if(!n?.length)continue;r.order.set(e,n);const o=(e,n)=>{const i=t.byClientId.get(e);if(!i)return;r.byClientId.set(e,i),r.attributes.set(e,t.attributes.get(e)),r.parents.set(e,n);const s=t.order.get(e)||[];r.order.set(e,s),s.forEach(t=>o(t,e))};n.forEach(t=>o(t,e))}for(const e of r.controlledInnerBlocks){const n=r.order.get(e);if(!n?.length)continue;const o=n.map(e=>t.tree.get(e)),i=r.tree.get(e);i&&(i.innerBlocks=o),r.tree.set("controlled||"+e,{innerBlocks:o});const s=e=>{const n=t.tree.get(e);if(!n)return;r.tree.set(e,n);(r.order.get(e)||[]).forEach(s)};n.forEach(s)}const i=t?.blockEditingModes??new Map;for(const[e,t]of i)r.tree.has(e)&&r.blockEditingModes.set(e,t);return r}return e(t,n)},function(e){let t,n;return(r,o)=>{const i=e(r,o),s=n;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type?o.history??"merge":void 0;const a="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||s;if(r===i&&!a)return void 0!==r.isPersistentChange?r:{...i,isPersistentChange:!0};const l=a?!s:!ve(o,t);if(t=o,"ignore"===s)return{...i,isPersistentChange:l,lastBlockChangeHistoryMode:"ignore"};const{lastBlockChangeHistoryMode:c,...u}=i;return{...u,isPersistentChange:l}}},function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,r)=>{const o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}},e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const r=t.order.get(n.clientId);if(r?.length){const r=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(r,n)}return e(t,n)}return e(t,n)})({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);
2return be(t.blocks).forEach(([e,t])=>{n.set(e,t)}),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...r}=t.updates;if(0===Object.values(r).length)return e;const o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...r}),o}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach(e=>{n.delete(e)}),be(t.blocks).forEach(([e,t])=>{n.set(e,t)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(e=>{n.delete(e)}),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return ye(t.blocks).forEach(([e,t])=>{n.set(e,t)}),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e.get(t)))return e;let n=!1;const r=new Map(e);for(const o of t.clientIds){const i=Object.entries(t.options?.uniqueByBlock?t.attributes[o]:t.attributes??{});if(0===i.length)continue;let s=!1;const a=e.get(o),l={};i.forEach(([e,t])=>{a[e]!==t&&(s=!0,l[e]=t)}),n=n||s,s&&r.set(o,{...a,...l})}return n?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach(e=>{n.delete(e)}
2),ye(t.blocks).forEach(([e,t])=>{n.set(e,t)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(e=>{n.delete(e)}),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=pe(t.blocks),r=new Map(e);return n.forEach((e,t)=>{""!==t&&r.set(t,e)}),r.set("",(e.get("")??[]).concat(n[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,r=e.get(n)||[],o=pe(t.blocks,n),{index:i=r.length}=t,s=new Map(e);return o.forEach((e,t)=>{s.set(t,e)}),s.set(n,U(r,o.get(n),i)),s}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:r="",clientIds:o}=t,{index:i=e.get(r).length}=t;if(n===r){const t=e.get(r).indexOf(o[0]);if(-1===t)return e;const n=new Map(e);return n.set(r,K(e.get(r),t,i,o.length)),n}const s=new Map(e);return s.set(n,e.get(n)?.filter(e=>!o.includes(e))??[]),s.set(r,U(e.get(r),o,i)),s}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:r=""}=t,o=n[0],i=e.get(r);if(!i.length||o===i[0])return e;const s=i.indexOf(o),a=new Map(e);return a.set(r,K(i,s,s-1,n.length)),a}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:r=""}=t,o=n[0],i=n[n.length-1],s=e.get(r);if(!s.length||i===s[s.length-1])return e;const a=s.indexOf(o),l=new Map(e);return l.set(r,K(s,a,a+1,n.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const r=pe(t.blocks),o=new Map(e);return t.replacedClientIds.forEach(e=>{o.delete(e)}),r.forEach((e,t)=>{""!==t&&o.set(t,e)}),o.forEach((e,t)=>{const i=Object.values(e).reduce((e,t)=>t===n[0]?[...e,...r.get("")]:(-1===n.indexOf(t)&&e.push(t),e),[]);o.set(t,i)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(e=>{n.delete(e)}),n.forEach((e,r)=>{const o=e?.filter(e=>!t.removedClientIds.includes(e))??[];o.length!==e.length&&n.set(r,o)}),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);
2return me(t.blocks).forEach(([e,t])=>{n.set(e,t)}),n}case"INSERT_BLOCKS":{const n=new Map(e);return me(t.blocks,t.rootClientId||"").forEach(([e,t])=>{n.set(e,t)}),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach(e=>{n.set(e,t.toRootClientId||"")}),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach(e=>{n.delete(e)}),me(t.blocks,e.get(t.clientIds[0])).forEach(([e,t])=>{n.set(e,t)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(e=>{n.delete(e)}),n}}return e},controlledInnerBlocks(e=new Set,{type:t,clientId:n,hasControlledInnerBlocks:r}){if("SET_HAS_CONTROLLED_INNER_BLOCKS"===t){if(r)return e.has(n)?e:new Set(e).add(n);if(!e.has(n))return e;const t=new Set(e);return t.delete(n),t}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;const n=new Map(e);return n.delete(t.clientId),n}}return e}});function _e(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?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var Se=(0,P.HY)({blocks:we,isDragging:function(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e},isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(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":const{selectionStart:n,selectionEnd:r}=t;return{selectionStart:n,selectionEnd:r};case"MULTI_SELECT":const o={selectionStart:{clientId:t.start},selectionEnd:{clientId:t.end}};return D(e,o)?e:o;case"RESET_BLOCKS":const i=e?.selectionStart?.clientId,s=e?.selectionEnd?.clientId;if(!i&&!s)return e;if(!t.blocks.some(e=>e.clientId===i))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(e=>e.clientId===s))return{...e,selectionEnd:e.selectionStart}}const n=_e(e.selectionStart,t),r=_e(e.selectionEnd,t);return n===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:n,selectionEnd:r}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e=new Map,t)=>{switch(t.type){case"REPLACE_BLOCKS":{const n=new Set,r=[...t.blocks];for(;r.length;){const e=r.shift();n.add(e.clientId),r.push(...e.innerBlocks)}const o=new Map(e);for(const e of t.clientIds)n.has(e)||o.delete(e);return o}case"REMOVE_BLOCKS":{const n=new Map(e);for(const e of t.clientIds)n.delete(e);return n}case"UPDATE_BLOCK_LIST_SETTINGS":{const n=("string"==typeof t.clientId?[[t.clientId,t.settings]]:Object.entries(t.clientId)).filter(([t,n])=>n?!D(e.get(t),n):e.has(t));if(!n.length)return e;const r=new Map(e);for(const[e,t]of n)t?r.set(e,t):r.delete(e);return r}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e},insertionCue:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:r,__unstableWithInserter:o,operation:i,nearestSide:s}=t,a={rootClientId:n,index:r,__unstableWithInserter:o,operation:i,nearestSide:s};return D(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=W,t){if("UPDATE_SETTINGS"===t.type){const n=t.reset?{...W,...t.settings}:{...e,...t.settings};return Object.defineProperty(n,"__unstableIsPreviewMode",{get(){return(0,$.A)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),n}return e},preferences:function(e=H,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce((e,n)=>{const{attributes:r,name:o}=n;let i=o;const s=(0,F.L)(h.M_).getActiveBlockVariation(o,r);return s?.name&&(i+="/"+s.name),"core/block"===o&&(i+="/"+r.ref),{...e,[i]:{time:t.time,count:e[i]?e[i].count+1:1}}},e.insertUsage);return{...e,insertUsage:n}}}return e},lastBlockAttributesChange:function(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((e,n)=>({...e,[n]:t.options?.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return e},lastFocus:function(e=!1,t){return"LAST_FOCUS"===t.type?t.lastFocus:e},expandedBlock:function(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},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:r}=t;return r?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map(e=>
2e.clientId),r=t.meta?.source;return{clientIds:n,source:r};case"RESET_BLOCKS":return{}}return e},editedContentOnlySection:function(e,t){if("EDIT_CONTENT_ONLY_SECTION"===t.type)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(!he(t.blocks)[e])return}return e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},viewportModalClientIds:function(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e},styleOverrides:function(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,message:r}=t;return{clientIds:e,selectPrevious:n,message:r};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e},registeredInserterMediaCategories:function(e=[],t){return"REGISTER_INSERTER_MEDIA_CATEGORY"===t.type?[...e,t.category]:e},zoomLevel:function(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e},hasBlockSpotlight:function(e,t){switch(t.type){case"TOGGLE_BLOCK_SPOTLIGHT":const{clientId:n,hasBlockSpotlight:r}=t;return r?n:e===n?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},openedListViewPanels:function(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||0===t.clientIds.length)return e;const n={...e.panels};let r=!1;return t.clientIds.forEach(e=>{e in n&&(delete n[e],r=!0)}),r?{...e,panels:n}:e}}return e},listViewExpandRevision:function(e=0,t){return"INCREMENT_LIST_VIEW_EXPAND_REVISION"===t.type?e+1:e},listViewContentPanelOpen:function(e=!1,t){switch(t.type){case"OPEN_LIST_VIEW_CONTENT_PANEL":return!0;case"CLOSE_LIST_VIEW_CONTENT_PANEL":case"CLEAR_SELECTED_BLOCK":return!1}return e},requestedInspectorTab:function(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},selectedBlockStyleState:function(e=void 0,t){switch(t.type){case"SET_SELECTED_BLOCK_STYLE_STATE":{if(!t.clientId||!t.value)return;const n=e?.clientId!==t.clientId||(e.showStateOnCanvas??!0),r=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:n,value:{pseudo:"default",...r,...t.value}}}case"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW":{if(!t.clientId||"boolean"!=typeof t.value)return e;const n=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:t.value,value:{pseudo:"default",...n}}}case"SELECT_BLOCK":case"SELECTION_CHANGE":{const n=t.clientId??t.start?.clientId,r=t.clientId??t.end?.clientId;if(e?.clientId&&(n!==r||e.clientId!==n))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&&!he(t.blocks)[e.clientId])return}return e},styleStateViewport:function(e="default",t){return"SET_STYLE_STATE_VIEWPORT"===t.type?t.viewport??"default":e},isResponsiveEditing:function(e=!1,t){return"SET_RESPONSIVE_EDITING"===t.type?t.enabled:e}});function Ce(e,t){if(""===t){const n=e.blocks.tree.get(t);if(!n)return;return{clientId:"",...n}}if(!e.blocks.controlledInnerBlocks.has(t))return e.blocks.tree.get(t);const n=e.blocks.tree.get(`controlled||${t}`);return{...e.blocks.tree.get(t),innerBlocks:n?.innerBlocks}}function Ae(e,t,n){const r=Ce(e,t);if(r&&(n(r),r?.innerBlocks?.length))for(const t of r?.innerBlocks)Ae(e,t.clientId,n)}function Ee(e,t,n){if(!n.length)return;let r=e.blocks.parents.get(t);for(;void 0!==r;){if(n.includes(r))return r;r=e.blocks.parents.get(r)}}function Ie(e,t=""){const n=e?.zoomLevel<100||"auto-scaled"===e?.zoomLevel,r=new Map,o=e.settings?.[Q],i=e.blocks.order.get(o),s=Array.from(e.blocks.blockEditingModes).some(([,e])=>"disabled"===e),a=[],l=[];e.blocks.controlledInnerBlocks.forEach(t=>{const n=e.blocks.byClientId?.get(t);"core/template-part"===n?.name&&a.push(t),"core/block"===n?.name&&l.push(t)});const c=Array.from(e.blockListSettings).flatMap(([e,t])=>"contentOnly"===t?.templateLock?[e]:[]),u=e.settings?.[te],d=e.settings?.disableContentOnlyForUnsyncedPatterns,f=u||d?[]:Array.from(e.blocks.attributes.keys()).filter(t=>e.blocks.attributes.get(t)?.metadata?.patternName),p=e.settings?.disableContentOnlyForTemplateParts,m=[...c,...f,...u||p?[]:a];return Ae(e,t,t=>{const{clientId:a,name:c}=t,u=!!e.editedContentOnlySection;let d=!1;if(!u||(d=a===e.editedContentOnlySection||!!Ee(e,a,[e.editedContentOnlySection]),d)){if(!e.blocks.blockEditingModes.has(a)){if(s){let t,n=e.blocks.parents.get(a);for(;void 0!==n&&(e.blocks.blockEditingModes.has(n)&&(t=e.blocks.blockEditingModes.get(n)),!t);)n=e.blocks.parents.get(n);if("disabled"===t)return void r.set(a,"disabled")}if(n)return a===o||i?.length&&i.includes(a)?void r.set(a,"contentOnly"):void r.set(a,"disabled");if(l.length){if(l.includes(a))return Ee(e,a,l)?void r.set(a,"disabled"):void 0;const n=Ee(e,a,l);if(n)return Ee(e,n,l)?void r.set(a,"disabled"):function(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}(t)?void r.set(a,"contentOnly"):void r.set(a,"disabled")}if(u&&d)r.set(a,"default");else if(m.length){!!Ee(e,a,m)&&(de(c)?r.set(a,"contentOnly"):r.set(a,"disabled"))}}}else r.set(a,"disabled")}),r}function Te({prevState:e,nextState:t,addedBlocks:n,removedClientIds:r}){const o=e.derivedBlockEditingModes;let i;return r?.forEach(t=>{Ae(e,t,e=>{o.has(e.clientId)&&(i||(i=new Map(o)),i.delete(e.clientId))})}
2),n?.forEach(e=>{const n=Ie(t,e.clientId);n.size&&(i=i?new Map([...i?.size?i:[],...n]):new Map([...o?.size?o:[],...n]))}),i}var Ne=(0,z.h)(function(e){return(t,n)=>{const r=e(t,n);if("SET_EDITOR_MODE"!==n.type&&r===t)return t;switch(n.type){case"REMOVE_BLOCKS":{const e=Te({prevState:t,nextState:r,removedClientIds:n.clientIds});if(e)return{...r,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=Te({prevState:t,nextState:r,addedBlocks:n.blocks});if(e)return{...r,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_ATTRIBUTES":{const e=r.settings?.disableContentOnlyForUnsyncedPatterns;if(e)break;const o=[],i=[];for(const e of n?.clientIds){const s=n.options?.uniqueByBlock?n.attributes[e]:n.attributes;if(!s)break;s.metadata?.patternName&&!t.blocks.attributes.get(e)?.metadata?.patternName?o.push(r.blocks.tree.get(e)):s.metadata&&!s.metadata?.patternName&&t.blocks.attributes.get(e)?.metadata?.patternName&&i.push(e)}if(!o?.length&&!i?.length)break;const s=Te({prevState:t,nextState:r,addedBlocks:o,removedClientIds:i});if(s)return{...r,derivedBlockEditingModes:s??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_LIST_SETTINGS":{const e=[],o=[],i="string"==typeof n.clientId?{[n.clientId]:n.settings}:n.clientId;for(const n in i){const i="contentOnly"!==t.blockListSettings.get(n)?.templateLock&&"contentOnly"===r.blockListSettings.get(n)?.templateLock,s="contentOnly"===t.blockListSettings.get(n)?.templateLock&&"contentOnly"!==r.blockListSettings.get(n)?.templateLock;i?e.push(r.blocks.tree.get(n)):s&&o.push(n)}if(!e.length&&!o.length)break;const s=Te({prevState:t,nextState:r,addedBlocks:e,removedClientIds:o});if(s)return{...r,derivedBlockEditingModes:s??t.derivedBlockEditingModes};break}case"SET_BLOCK_EDITING_MODE":case"UNSET_BLOCK_EDITING_MODE":case"SET_HAS_CONTROLLED_INNER_BLOCKS":{const e=Ce(r,n.clientId);if(!e)break;const o=Te({prevState:t,nextState:r,removedClientIds:[n.clientId],addedBlocks:[e]});if(o)return{...r,derivedBlockEditingModes:o??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{const e=Te({prevState:t,nextState:r,addedBlocks:n.blocks,removedClientIds:n.clientIds});if(e)return{...r,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"REPLACE_INNER_BLOCKS":{const e=t.blocks.order.get(n.rootClientId),o=Te({prevState:t,nextState:r,addedBlocks:n.blocks,removedClientIds:e});if(o)return{...r,derivedBlockEditingModes:o??t.derivedBlockEditingModes};break}case"MOVE_BLOCKS_TO_POSITION":{const e=n.clientIds.map(e=>r.blocks.byClientId.get(e)),o=Te({prevState:t,nextState:r,addedBlocks:e,removedClientIds:n.clientIds});if(o)return{...r,derivedBlockEditingModes:o??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":if(t?.settings?.[Q]!==r?.settings?.[Q]||!!t?.settings?.disableContentOnlyForUnsyncedPatterns!=!!r?.settings?.disableContentOnlyForUnsyncedPatterns||!!t?.settings?.[te]!=!!r?.settings?.[te]||!!t?.settings?.disableContentOnlyForTemplateParts!=!!r?.settings?.disableContentOnlyForTemplateParts)return{...r,derivedBlockEditingModes:Ie(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:Ie(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}},function(e){return(t,n)=>{const r=e(t,n);return t?(r.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...r,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...r,automaticChangeStatus:"final"}:r.blocks===t.blocks&&r.selection===t.selection||"final"!==r.automaticChangeStatus&&r.selection!==t.selection?r:{...r,automaticChangeStatus:void 0}):r}})(Se),je=n(5334),Be=n(3236),Le=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Oe=n(7319),Re=n(7817),Me=n(5705),Pe=n(3691),De="core/block-editor",ze={mobile:"480px",tablet:"782px"},Fe=/^(\d+|\d*\.\d+)(px|em|rem)$/;function $e(e){if("number"==typeof e)return e;if("string"!=typeof e)return;const t=e.trim().match(Fe);if(!t)return;const n=Number.parseFloat(t[1]);return"px"===t[2]?n:16*n}function Ve(e){const t=function(e){return e&&"object"==typeof e?function(e){return"mobile"in e||"tablet"in e}(e)?e:e.settings?.viewport??{}:{}}(e),n={},r={};
2Object.keys(ze).forEach(e=>{const o=e,i=t[o],s=$e(i);void 0!==s&&function(e){return"string"==typeof e&&Fe.test(e.trim())}(i)&&(n[o]=i.trim(),r[o]=s)});const o=Object.keys(n);if(!o.length)return{...ze};if(1===o.length)return n;const i=n.mobile,s=n.tablet;return r.mobile>=r.tablet?{mobile:i}:{mobile:i,tablet:s}}function He(e){const t=Ve(e),n={};return t.mobile&&(n["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(n["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),n}var We=n(3270);var Ue=n(4135),Ke="var:",Ge=(e,t)=>{let n=e;return t.forEach(e=>{n=n?.[e]}),n};function qe(e,t,n,r){const o=Ge(e,n);return o?[{selector:t?.selector,key:r,value:Ye(o)}]:[]}function Ze(e,t,n,r,o=["top","right","bottom","left"]){const i=Ge(e,n);if(!i)return[];const s=[];if("string"==typeof i)s.push({selector:t?.selector,key:r.default,value:Ye(i)});else{const e=o.reduce((e,n)=>{const o=Ye(Ge(i,[n]));return o&&e.push({selector:t?.selector,key:r?.individual.replace("%s",Xe(n)),value:o}),e},[]);s.push(...e)}return s}function Ye(e){if("string"==typeof e&&e.startsWith(Ke)){return`var(--wp--${e.slice(4).split("|").map(e=>(0,Ue.c)(e,{splitRegexp:[/([a-z0-9])([A-Z])/g,/([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})).join("--")})`}return e}function Xe(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function Qe(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:r,acceptableUnits:o}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=o?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),a=e.toString().match(s);if(!a||a.length<3)return null;let[,l,c]=a,u=parseFloat(l);return"px"!==n||"em"!==c&&"rem"!==c||(u*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=r,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),c?{value:Je(u,3),unit:c}:null}function Je(e,t=3){const n=Math.pow(10,t);return Math.round(e*n)/n}function et(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function tt(e,t){const{size:n}=e;if(!n||"0"===n||!1===e?.fluid)return n;if(!et(t?.typography)&&!et(e))return n;const r=function(e){const t=e?.typography??{},n=e?.layout,r=Qe(n?.wideSize)?n?.wideSize:null;return et(t)&&r?{fluid:{maxViewportWidth:r,..."object"==typeof t.fluid?t.fluid:{}}}:{fluid:t?.fluid}}(t)?.fluid??{},o=function({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:r="320px",maximumViewportWidth:o="1600px",scaleFactor:i=1,minimumFontSizeLimit:s}){if(s=Qe(s)?s:"14px",n){const r=Qe(n);if(!r?.unit||!r?.value)return null;const o=Qe(s,{coerceTo:r.unit});if(o?.value&&!e&&!t&&r?.value<=o?.value)return null;if(t||(t=`${r.value}${r.unit}`),!e){const t="px"===r.unit?r.value:16*r.value,n=Math.min(Math.max(1-.075*Math.log2(t),.25),.75),i=Je(r.value*n,3);e=o?.value&&i<o?.value?`${o.value}${o.unit}`:`${i}${r.unit}`}}const a=Qe(e),l=a?.unit||"rem",c=Qe(t,{coerceTo:l});if(!a||!c)return null;const u=Qe(e,{coerceTo:"rem"}),d=Qe(o,{coerceTo:l}),f=Qe(r,{coerceTo:l});if(!d||!f||!u)return null;const p=d.value-f.value;if(!p)return null;const m=Je(f.value/100,3),g=Je(m,3)+l,h=Je(((c.value-a.value)/p*100||1)*i,3);return`clamp(${e}, ${u.value}${u.unit} + ((1vw - ${g}) * ${h}), ${t})`}({minimumFontSize:"boolean"==typeof e?.fluid?void 0:e?.fluid?.min,maximumFontSize:"boolean"==typeof e?.fluid?void 0:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:"object"==typeof r?r?.minFontSize:void 0,maximumViewportWidth:"object"==typeof r?r?.maxViewportWidth:void 0,minimumViewportWidth:"object"==typeof r?r?.minViewportWidth:void 0});return o||n}var nt=(e,t,n)=>{const r=Array.isArray(t)?t:t.split(".");let o=e;return r.forEach(e=>{o=o?.[e]}),o??n},rt="body",ot=":root";function it(e){if(!e.includes(","))return[e];const t=[];let n="",r=0;for(const o of e){if("("===o)r++;else if(")"===o&&r>0)r--;else if(","===o&&0===r){t.push(n),n="";continue}n+=o}return t.push(n),t}var st=[{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)=>tt(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 at(e,t){if(!e||!t)return t;const n=it(e),r=it(t),o=[];
2return n.forEach(e=>{r.forEach(t=>{o.push(`${e.trim()} ${t.trim()}`)})}),o.join(", ")}function lt(e,t){if(!e.includes(","))return e+t;return it(e).map(e=>e+t).join(",")}function ct(e,t){const n=`.is-style-${e}`;if(!t)return n;const r=/[^\s:]+/,o=e=>e+n;return it(t).map(e=>e.replace(r,o)).join(",")}function ut(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find(t=>t?.name===e);return n?.href?n?.href:e}function dt(e,t){if(!e||!t)return e;const n=function(e,t){if(!e||!t)return e;if("object"==typeof e&&"ref"in e&&e?.ref){const n=Ye(nt(t,e.ref));if("object"==typeof n&&null!==n&&"ref"in n&&n?.ref)return;return void 0===n?e:n}return e}(e,t);return"object"==typeof n&&null!==n&&"url"in n&&n?.url?{...n,url:ut(n.url,t?._links?.["wp:theme-file"])}:n}function ft(e,t,n,{resolveRefs:r=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=t=>{Object.keys(t).forEach(n=>{const r=t[n];if("object"==typeof r&&null!==r)if(void 0!==r.ref)if("string"!=typeof r.ref||""===r.ref.trim())delete t[n];else{const o=nt(e,r.ref);null!=o?t[n]=o:delete t[n]}else o(r),0===Object.keys(r).length&&delete t[n]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return r&&o(i),i}var pt="default";function mt(e){const t=e?.viewport,n=e?.pseudoState;return!(t&&t!==pt||n&&n!==pt)}function gt(e,t){const n=function(e){return mt(e)?[]:[e.viewport,e.pseudoState].filter(e=>!!e&&e!==pt)}(t);return n.length?nt(e,n):e}var ht=new Set(["blocks","variations","css"]),bt=Object.freeze({value:{},sources:{}}),yt={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function vt(e){const t=yt[e];return t?{...t}:null}function kt(e,t){return e&&t?{styles:e,source:t}:null}function xt(e){return e.join(".")}function wt(e){return{...e}}function _t(e){return""===e||null===e||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length}function St(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)&&"string"==typeof e.ref}function Ct(e){if(!e||"object"!=typeof e||Array.isArray(e))return null;const t={};for(const n of Object.keys(e))ht.has(n)||("elements"!==n?_t(e[n])||(t[n]=e[n]):e.elements&&"object"==typeof e.elements&&(t.elements=e.elements));return 0===Object.keys(t).length?null:t}var At=new Set(["backgroundImage"]);function Et(e,t,n,r,o,i=[]){if(!t||"object"!=typeof t||Array.isArray(t))return e;for(const s of Object.keys(t)){let a=t[s];if(_t(a))continue;if(St(a)){if(""===a.ref.trim())continue;const e=nt(n,a.ref);if(null==e||St(e))continue;a=e}const l=[...i,s];if(At.has(s)||null===a||"object"!=typeof a||Array.isArray(a)||St(a))e[s]=At.has(s)&&null!==a&&"object"==typeof a&&!Array.isArray(a)?{...a}:a,r&&o&&(o[xt(l)]=wt(r));else{const t=e[s]&&"object"==typeof e[s]&&!Array.isArray(e[s])?e[s]:{};e[s]=Et({...t},a,n,r,o,l)}}return e}function It(e,t){if(!e)return null;const n=gt(e,t);return n&&"object"==typeof n&&!Array.isArray(n)?n:null}var Tt=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function Nt(e){return!e.startsWith("elements.")&&Tt.some(t=>e===t||e.startsWith(`${t}.`))}function jt(e,t){if(!e||"object"!=typeof e)return;const[n,...r]=t;if(0===r.length)return void delete e[n];const o=e[n];o&&"object"==typeof o&&(jt(o,r),0===Object.keys(o).length&&delete e[n])}function Bt(e,{blockName:t,variationName:n=null,elements:r=null,viewport:o=null,pseudoState:i=null}={}){if(!e||!e.styles)return bt;if(!t)return bt;const s=e.styles,a={viewport:o,pseudoState:i},l=s,c=s.blocks?.[t]??null,u=(r??[]).map(e=>s.elements?.[e]??null).filter(e=>!!e),d=n?ft(e,t,n)??null:null,f=[kt(Ct(l),vt("root")),...u.map(e=>kt(Ct(e),vt("element"))),c?kt(Ct(c),vt("block")):null,d?kt(Ct(d),vt("blockVariation")):null];mt(a)||f.push(kt(Ct(It(l,a)),vt("root")),...u.map(e=>kt(Ct(It(e,a)),vt("element"))),c?kt(Ct(It(c,a)),vt("block")):null,d?kt(Ct(It(d,a)),vt("blockVariation")):null);const p=f.filter(Boolean);if(0===p.length)return bt;const m={},g=p.reduce((t,n)=>Et(t,n.styles,e,n.source,m),{});return function(e,t){for(const n of Object.keys(t))"root"===t[n].layer&&Nt(n)&&(jt(e,n.split(".")),delete t[n])}(g,m),function(e,t,n){const r=e?.background?.backgroundImage;if(!r)return;const o=dt(r,{...t,_links:n??void 0});void 0!==o&&(e.background.backgroundImage=o)}(g,e,e._links??null),{value:g,sources:m}}var Lt={},Ot=new WeakMap;var{lock:Rt,unlock:Mt}=(0,le.yf)("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"),Pt={};
2Rt(Pt,{getResponsiveMediaQueries:He,getViewportBreakpoints:Ve,getViewportBreakpointValueInPixels:$e,getDuotoneFilter:function(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach(e=>{const n=(0,We.Mj)(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)}),t}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<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>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`},getDuotoneStylesheet:function(e,t){return`${e}{filter:url(#${t})}`},getDuotoneUnsetStylesheet:function(e){return`${e}{filter:none}`},resolveStyle:function(e,t={}){const n=e?.styles;if(!n||"object"!=typeof n)return Bt(e,t);let r=Ot.get(n);r||(r=new WeakMap,Ot.set(n,r));const o=e?._links??Lt;let i=r.get(o);i||(i=new Map,r.set(o,i));const s=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,a=(t.blockName||"")+"�"+(t.variationName||"")+"�"+s;if(i.has(a))return i.get(a);const l=Bt(e,t);return i.set(a,l),l},getVariationStyle:ft});var Dt=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),zt=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Ft=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),$t={desktop:{label:(0,V.__)("Desktop"),icon:Dt,key:"desktop"},tablet:{label:(0,V.__)("Tablet"),icon:zt,key:"tablet"},mobile:{label:(0,V.__)("Mobile"),icon:Ft,key:"mobile"}},Vt=Object.entries($t);function Ht(e,t,n){const r=Array.isArray(t)?[...t]:[t],o=Array.isArray(e)?[...e]:{...e},i=r.pop();let s=o;for(const e of r){const t=s[e];s[e]=s=Array.isArray(t)?[...t]:{...t}}return s[i]=n,o}var Wt=(e,t,n)=>{const r=Array.isArray(t)?t:t.split(".");let o=e;return r.forEach(e=>{o=o?.[e]}),o??n};var Ut=["color","border","dimensions","typography","spacing"],Kt={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},Gt={"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.radiu
2s","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function qt(e,t,...n){const r=Rr(e,t),o=[];if(t){let n=t;do{const t=Rr(e,n);(0,h.pN)(t,"__experimentalSettings",!1)&&o.push(n)}while(n=e.blocks.parents.get(n))}return n.map(n=>{if(Ut.includes(n))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let i=(0,_.W5)("blockEditor.useSetting.before",void 0,n,t,r);if(void 0!==i)return i;const s=(e=>Gt[e]||e)(n);for(const t of o){const n=Pr(e,t);if(i=Wt(n.settings?.blocks?.[r],s)??Wt(n.settings,s),void 0!==i)break}const a=Ni(e);if(void 0===i&&r&&(i=Wt(a.__experimentalFeatures?.blocks?.[r],s)),void 0===i&&(i=Wt(a.__experimentalFeatures,s)),void 0!==i)return h.G8[s]?i.custom??i.theme??i.default:i;const l=Kt[s]?.(a);return void 0!==l?l:"typography.dropCap"===s||void 0})}var{isContentBlock:Zt,editableRootKey:Yt}=ue(h.jb),{getViewportBreakpoints:Xt}=ue(Pt);function Qt(e,t){return t===$t.desktop.key||void 0!==Xt(Ni(e)?.__experimentalFeatures?.viewport)[t]}function Jt(e){return e.isBlockInterfaceHidden}function en(e){return e?.lastBlockInserted?.clientIds}function tn(e,t){return e.blocks.byClientId.get(t)}var nn=(e,t)=>{const n=t=>"disabled"===qi(e,t)&&jo(e,t).every(n);return jo(e,t).every(n)};function rn(e,t,n){const r=Zt(t),o=Rr(e,n),i=Zt(o);return Mn(e)===n||i&&r}function on(e,t){return{clientId:t,innerBlocks:sn(e,t)}}function sn(e,t=""){return jo(e,t).map(t=>on(e,t))}var an=(0,Re.M)(on,e=>[e.blocks.order]),ln=(0,Re.M)(sn,e=>[e.blocks.order]);function cn(e,t,n){const r=jo(e,t),o=[];for(const t of r){const r=cn(e,t,n);n(e,t)?o.push({clientId:t,innerBlocks:r}):o.push(...r)}return o}var un=(0,Re.M)((e,t)=>{if(!t||"default"!==qi(e,t)||"visual"!==$o(e,t)||!(0,h.E7)(Rr(e,t))?.[Yt])return!1;const n=jo(e,io(e,t));return n.length>1&&n.every(t=>"default"===qi(e,t))},e=>[e.blocks.order,e.blocks.parents,e.blocks.byClientId,e.blocks.blockEditingModes,e.derivedBlockEditingModes,e.blocksMode]);var dn=(0,Re.M)(function(e,t){return cn(e,t,(e,t)=>"disabled"!==qi(e,t))},e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes]),fn=(0,Re.M)(function(e,t){return cn(e,t,(e,t)=>{if("disabled"!==qi(e,t))return!0;const n=e.blocks.blockEditingModes.get(t);if(n)return"disabled"!==n;if(function(e,t){let n=e.blocks.parents.get(t);for(;void 0!==n;){const t=e.blocks.blockEditingModes.get(n);if(t)return"disabled"===t;n=e.blocks.parents.get(n)}return!1}(e,t))return!1;if(e.editedContentOnlySection){if(On(e,t))return!1;if(!Nn(e,t))return!0;if(Zt(Rr(e,t)))return!0}return!1})},e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes,e.blocks.parents,e.editedContentOnlySection,...e.editedContentOnlySection?[e.blocks.byClientId,e.blocks.attributes,e.blockListSettings,e.settings]:[]]),pn=(0,Re.M)((e,t,n=!1)=>so(e,t,n).filter(t=>"disabled"!==qi(e,t)),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function mn(e){return e.removalPromptData}function gn(e){return e.blockRemovalRules}var hn=(0,Re.M)(e=>{const t=Wr(e).reduce((e,t,n)=>(e[t]=n,e),{});return[...e.styleOverrides].sort((e,n)=>{const[,{clientId:r}]=e,[,{clientId:o}]=n;return(t[r]??-1)-(t[o]??-1)})},e=>[e.blocks.order,e.styleOverrides]);function bn(e){return e.registeredInserterMediaCategories}var yn=(0,Re.M)(e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:r},registeredInserterMediaCategories:o}=e;if(!t&&!o.length||!n)return;const i=t?.map(({name:e})=>e)||[];return[...t||[],...(o||[]).filter(({name:e})=>!i.includes(e))].filter(e=>!(!r&&"openverse"===e.name)&&Object.values(n).some(t=>t.startsWith(`${e.mediaType}/`)))},e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]),vn=(0,Me.N)(e=>(0,Re.M)((t,n=null)=>{const{getAllPatterns:r}=ue(e(De)),o=r(),{allowedBlockTypes:i}=Ni(t);return o.some(e=>{const{inserter:r=!0}=e;if(!r)return!1;const o=Sr(e);return Ar(o,i)&&o.every(({name:e})=>ti(t,e,n))})},(t,n)=>[...Er(e)(t),...Ir(e)(t,n)])),kn=(0,Me.N)(e=>(0,Re.M)((t,n)=>{if(n?.startsWith("core/block/")){const r=parseInt(n.slice(11),10),o=ue(e(De)).getReusableBlocks().find(({id:e})=>e===r);return o?wr(o,t.settings[X]?.(e)??t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[Z]?.(e)??[]].find(({name:e})=>e===n)},(t,n)=>n?.startsWith("core/block/")?[ue(e(De)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[Z]?.(e)])),xn=(0,Me.N)(e=>(0,Re.M)(t=>[...ue(e(De)).getReusableBlocks().map(n=>wr(n,t.settings[X]?.(e)??t.settings.__experimentalUserPatternCategories)),...t.settings.__experimentalBlockPatterns??[],...t.settings[Z]?.(e)??[]].filter((e,t,n
2)=>t===n.findIndex(t=>e.name===t.name)),Er(e))),wn=[],Sn=(0,Me.N)(e=>t=>{const n=t.settings[Y];return(n?n(e):t.settings.__experimentalReusableBlocks)??wn});function Cn(e){return e.lastFocus}function An(e){return e.isDragging}function En(e){return e.expandedBlock}var In=(e,t)=>{let n,r=t;for(;!n&&(r=e.blocks.parents.get(r));)"contentOnly"===Qo(e,r)&&(n=r);return n};function Tn(e,t){const n=Rr(e,t);if("core/block"===n)return!0;const r=Pr(e,t),o="core/template-part"===n,i=e.settings?.[te],s=e.settings?.disableContentOnlyForUnsyncedPatterns,a=e.settings?.disableContentOnlyForTemplateParts;if((!s&&r?.metadata?.patternName||o&&!a)&&!i)return!0;const l="contentOnly"===Qo(e,t),c="contentOnly"===Qo(e,io(e,t));return!(!l||c)}var Nn=(e,t)=>{if(On(e,t))return;let n,r=t;for(;r=e.blocks.parents.get(r);)Tn(e,r)&&(n=r);return n};function jn(e,t){return!On(e,t)&&!Nn(e,t)&&Tn(e,t)}function Bn(e,t){const n=Rr(e,t);if("core/block"!==n&&"core/template-part"!==n)return!1;const r=Pr(e,t)?.metadata?.patternName;return!(r&&jn(e,t))}function Ln(e){return e.editedContentOnlySection}function On(e,t){if(!e.editedContentOnlySection)return!1;if(e.editedContentOnlySection===t)return!0;let n=t;for(;n=e.blocks.parents.get(n);)if(e.editedContentOnlySection===n)return!0;return!1}var Rn=(0,Re.M)((e,t)=>t.reduce((t,n)=>(t[n]=e.blocks.attributes.get(n)?.style,t),{}),(e,t)=>[...t.map(t=>e.blocks.attributes.get(t)?.style)]);function Mn(e){return e.settings?.[Q]}function Pn(e){return"auto-scaled"===e.zoomLevel||e.zoomLevel<100}function Dn(e){return e.zoomLevel}function zn(e,t,n=""){const r=Array.isArray(t)?t:[t],o=t=>r.every(n=>ti(e,n,t));if(!n){if(o(n))return n;const t=Mn(e);return t&&o(t)?t:null}let i=n;for(;null!==i&&!o(i);){i=io(e,i)}return i}function Fn(e,t,n){const{allowedBlockTypes:r}=Ni(e);if(!Ar(Sr(t),r))return null;return zn(e,Sr(t).map(({blockName:e})=>e),n)}function $n(e){return e.insertionPoint}var Vn=(e,t)=>{const n=Rr(e,t);if(!(0,h.pN)(n,"visibility",!0))return!1;const r=e.blocks.attributes.get(t),o=r?.metadata?.blockVisibility;return!1===o||"object"==typeof o?.viewport&&null!==o?.viewport&&Object.values($t).some(t=>Qt(e,t.key)&&!1===o?.viewport?.[t.key])},Hn=(e,t)=>{const n=Rr(e,t);if(!(0,h.pN)(n,"visibility",!0))return!1;const r=e.blocks.attributes.get(t),o=r?.metadata?.blockVisibility;return!1===o},Wn=(e,t)=>so(e,t).some(t=>Hn(e,t)),Un=(e,t,n)=>{if(Hn(e,t))return!0;const r=e.blocks.attributes.get(t),o=r?.metadata?.blockVisibility?.viewport;if("object"==typeof o&&null!==o&&"string"==typeof n){const t=n.toLowerCase();return Qt(e,t)&&!1===o?.[t]}return!1},Kn=(e,t,n)=>so(e,t).some(t=>Un(e,t,n));function Gn(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function qn(e,t){const n=Pr(e,t);return!!n?.lock?.edit}function Zn(e,t){const n=Pr(e,t);if(void 0!==n?.lock?.move)return!!n?.lock?.move;return"all"===Qo(e,io(e,t))}function Yn(e,t){const n=Pr(e,t);if(void 0!==n?.lock?.remove)return!!n?.lock?.remove;const r=Qo(e,io(e,t));return"all"===r||"insert"===r}function Xn(e,t){return qn(e,t)||Zn(e,t)||Yn(e,t)}function Qn(e){return e.listViewContentPanelOpen}function Jn(e,t){return!!e.openedListViewPanels?.allOpen||!0===e.openedListViewPanels?.panels?.[t]}function er(e){return e.listViewExpandRevision||0}function tr(e,t){const n=Rr(e,t);if("core/navigation"===n)return!0;if(!(0,h.pN)(n,"listView"))return!1;const r=Ti(e,t)?.allowedBlocks;return!(0===jo(e,t).length&&(!1===r||Array.isArray(r)&&0===r.length))}function nr(e){return e.viewportModalClientIds}function rr(e){return e.requestedInspectorTab}var or={viewport:"default",pseudo:"default"};function ir(e){return e.styleStateViewport??or.viewport}function sr(e){return e.isResponsiveEditing}var ar=(0,Re.M)((e,t)=>({...e.selectedBlockStyleState?.clientId===t?e.selectedBlockStyleState.value??or:or,viewport:ir(e)}),e=>[e.styleStateViewport,e.selectedBlockStyleState]);function lr(e,t){const n=ar(e,t);return n.viewport!==or.viewport||n.pseudo!==or.pseudo}function cr(e,t){return e.selectedBlockStyleState?.clientId!==t||(e.selectedBlockStyleState.showStateOnCanvas??!0)}var ur="user",dr="theme",fr="directory",pr="fully",mr="unsynced",gr={name:"allPatterns",label:(0,V._x)("All","patterns")},hr={name:"myPatterns",label:(0,V.__)("My patterns")},br={name:"core/starter-content",label:(0,V.__)("Starter content")};function yr(e,t,n){const r=e.name.startsWith("core/block"),o="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==dr||!r&&!o)||(!(t!==fr||!r&&o)||(t===ur&&e.type!==ur||(n===pr&&""!==e.syncStatus||!(n!==mr||"unsynced"===e.syncStatus||!r))))}var vr=Symbol("isFiltered"),kr=new WeakMap,xr=new WeakMap;function wr(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:ur,title:e.title?.raw,categories:e.wp_pattern_category?.map(e=>{const n=t.find(({id:t})=>t===e);return n?n.slug:e}),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function _r(e){let t=kr.get(e);return t||(t=function(e){const t=(0,h.qg)(e.content,{__unstableSkipMigrationLogs:!0});return 1===t.length&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{}
2,categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}(e),kr.set(e,t)),t}function Sr(e){let t=xr.get(e);return t||(t=(0,Pe.q)(e.content),t=t.filter(e=>null!==e.blockName),xr.set(e,t)),t}var Cr=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,Ar=(e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!Cr(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach(e=>{n.push(e)})}return!0},Er=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[X]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[Z]?.(e),t.blockPatterns,ue(e(De)).getReusableBlocks()],Ir=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,qi(e,t),Mn(e),jn(e,t),Nn(e,t)];function Tr(e,t){return"string"==typeof e&&"string"==typeof t?e>t:Number(e)>Number(t)}function Nr(e,t,n="asc"){return e.concat().sort(((e,t,n)=>(r,o)=>{let i,s;if("function"==typeof e?(i=e(r),s=e(o)):(i=r[e],s=o[e]),Tr(i,s))return"asc"===n?1:-1;if(Tr(s,i))return"asc"===n?-1:1;const a=t.findIndex(e=>e===r),l=t.findIndex(e=>e===o);return a>l?1:l>a?-1:0})(t,e,n))}var{isContentBlock:jr}=ue(h.jb),Br=[],Lr=new Set,Or={[vr]:!0};function Rr(e,t){const n=e.blocks.byClientId.get(t);return n?n.name:null}function Mr(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function Pr(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Dr(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}var zr=(0,Re.M)((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:Pr(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function Fr(e,t){const n=t&&Fi(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||Br}function $r(e,t){return(0,$.A)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),an(e,t)}function Vr(e,t){return(0,$.A)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),ln(e,t)}var Hr=(0,Re.M)((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const r of t){const t=e.blocks.order.get(r);t&&n.push(...t)}let r=0;for(;r<n.length;){const t=n[r],o=e.blocks.order.get(t);o&&n.splice(r+1,0,...o),r++}return n},e=>[e.blocks.order]),Wr=e=>Hr(e,""),Ur=(0,Re.M)((e,t)=>{const n=Wr(e);if(!t)return n.length;let r=0;for(const o of n){e.blocks.byClientId.get(o).name===t&&r++}return r},e=>[e.blocks.order,e.blocks.byClientId]),Kr=(0,Re.M)((e,t)=>{if(!t)return Br;const n=Array.isArray(t)?t:[t],r=Wr(e).filter(t=>{const r=e.blocks.byClientId.get(t);return n.includes(r.name)});return r.length>0?r:Br},e=>[e.blocks.order,e.blocks.byClientId]);function Gr(e,t){return(0,$.A)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Kr(e,t)}var qr=(0,Re.M)((e,t)=>(Array.isArray(t)?t:[t]).map(t=>Dr(e,t)),(e,t)=>(Array.isArray(t)?t:[t]).map(t=>e.blocks.tree.get(t))),Zr=(0,Re.M)((e,t)=>qr(e,t).filter(Boolean).map(e=>e.name),(e,t)=>qr(e,t));function Yr(e,t){return jo(e,t).length}function Xr(e){return e.selection.selectionStart}function Qr(e){return e.selection.selectionEnd}function Jr(e){return e.selection.selectionStart.clientId}function eo(e){return e.selection.selectionEnd.clientId}function to(e){const t=bo(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function no(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function ro(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:r}=t;return r&&r===n.clientId?r:null}function oo(e){const t=ro(e);return t?Dr(e,t):null}function io(e,t){return e.blocks.parents.get(t)??null}var so=(0,Re.M)((e,t,n=!1)=>{const r=[];let o=t;for(;o=e.blocks.parents.get(o);)r.push(o);return r.length?n?r:r.reverse():Br},e=>[e.blocks.parents]),ao=(0,Re.M)((e,t,n,r=!1)=>{const o=so(e,t,r),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return o.filter(t=>i(Rr(e,t)))},e=>[e.blocks.parents]);function lo(e,t){let n,r=t;do{n=r,r=e.blocks.parents.get(r)}while(r);return n}function co(e,t){const n=ro(e),r=[...so(e,t),t],o=[...so(e,n),n];let i;const s=Math.min(r.length,o.length);for(let e=0;e<s&&r[e]===o[e];e++)i=r[e];return i}function uo(e,t,n=1){if(void 0===t&&(t=ro(e)),void 0===t&&(t=n<0?vo(e):ko(e)),!t)return null;const r=io(e,t);if(null===r)return null;const{order:o}=e.blocks,i=o.get(r),s=i.indexOf(t)+1*n;return s<0||s===i.length?null:i[s]}function fo(e,t){return uo(e,t,-1)}function po(e,t){return uo(e,t,1)}function mo(e){return e.initialPosition}function go(e){const{selectionStart:t,selectionEnd:n}=e.selection,r=t.clientId,o=n.clientId;if(r&&o&&r!==o)return so(e,o).includes(r)?r:so(e,r).includes(o)?o:void 0}var ho=(0,Re.M)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return Br;if(t.clientId===n.clientId)return[t.clientId];const r=go(e);if(r)return[r];const o=io(e,t.clientId);if(null===o)return Br;
2const i=jo(e,o),s=i.indexOf(t.clientId),a=i.indexOf(n.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 bo(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?Br:ho(e)}var yo=(0,Re.M)(e=>{const t=bo(e);return t.length?t.map(t=>Dr(e,t)):Br},e=>[...ho.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function vo(e){return bo(e)[0]||null}function ko(e){const t=bo(e);return t[t.length-1]||null}function xo(e,t){return vo(e)===t}function wo(e,t){return-1!==bo(e).indexOf(t)}var _o=(0,Re.M)((e,t)=>{let n=t,r=!1;for(;n&&!r;)n=io(e,n),r=wo(e,n);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function So(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function Co(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Ao(e){if(go(e))return!0;const t=Xr(e),n=Qr(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Eo(e){const t=Xr(e),n=Qr(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Io(e){return ho(e).some(t=>{const n=Rr(e,t);return!(0,h.E7)(n).merge})}function To(e,t){const n=Xr(e),r=Qr(e);if(n.clientId===r.clientId)return!1;if(!n.attributeKey||!r.attributeKey||void 0===n.offset||void 0===r.offset)return!1;const o=io(e,n.clientId);if(o!==io(e,r.clientId))return!1;const i=jo(e,o);let s,a;i.indexOf(n.clientId)>i.indexOf(r.clientId)?(s=r,a=n):(s=n,a=r);const l=t?a.clientId:s.clientId,c=t?s.clientId:a.clientId,u=Rr(e,l);if(!(0,h.E7)(u).merge)return!1;const d=Dr(e,c);if(d.name===u)return!0;const f=(0,h.bh)(d,u);return f&&f.length}var No=e=>{const t=Xr(e),n=Qr(e);if(t.clientId===n.clientId)return Br;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return Br;const r=io(e,t.clientId);if(r!==io(e,n.clientId))return Br;const o=jo(e,r),i=o.indexOf(t.clientId),s=o.indexOf(n.clientId),[a,l]=i>s?[n,t]:[t,n],c=Dr(e,a.clientId),u=Dr(e,l.clientId),d=c.attributes[a.attributeKey],f=u.attributes[l.attributeKey];let p=(0,Oe.vt)({html:d}),m=(0,Oe.vt)({html:f});return p=(0,Oe.TF)(p,0,a.offset),m=(0,Oe.TF)(m,l.offset,m.text.length),[{...c,attributes:{...c.attributes,[a.attributeKey]:(0,Oe.Ky)({value:p})}},{...u,attributes:{...u.attributes,[l.attributeKey]:(0,Oe.Ky)({value:m})}}]};function jo(e,t){return e.blocks.order.get(t||"")||Br}function Bo(e,t){return jo(e,io(e,t)).indexOf(t)}function Lo(e,t){const{selectionStart:n,selectionEnd:r}=e.selection;return n.clientId===r.clientId&&(!!t&&n.clientId===t)}var Oo=(0,Re.M)(e=>{const t=new Set;for(const n of ho(e)){let r=n;for(;(r=e.blocks.parents.get(r))&&!t.has(r);)t.add(r)}return t},e=>ho.getDependants(e));function Ro(e,t,n=!1){if(!t)return!1;const r=ho(e);return!!r.length&&(n?Oo(e).has(t):r.some(n=>io(e,n)===t))}function Mo(e,t,n=!1){return jo(e,t).some(t=>
2Uo(e,t)||n&&Mo(e,t,n))}function Po(e,t){if(!t)return!1;const n=bo(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Do(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function zo(e){return e.isMultiSelecting}function Fo(e){return e.isSelectionEnabled}function $o(e,t){return e.blocksMode[t]||"visual"}function Vo(e){return e.isTyping}function Ho(e){return!!e.draggedBlocks.length}function Wo(e){return e.draggedBlocks}function Uo(e,t){return e.draggedBlocks.includes(t)}function Ko(e,t){if(!Ho(e))return!1;return so(e,t).some(t=>Uo(e,t))}function Go(){return(0,$.A)('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}var qo=(0,Re.M)(e=>{let t,n;const{insertionCue:r,selection:{selectionEnd:o}}=e;if(null!==r)return r;const{clientId:i}=o;return i?(t=io(e,i)||void 0,n=Bo(e,o.clientId)+1):n=jo(e).length,{rootClientId:t,index:n}},e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function Zo(e){return null!==e.insertionCue}function Yo(e){return e.template.isValid}function Xo(e){return e.settings.template}function Qo(e,t){if(!t)return e.settings.templateLock??!1;const n=Ti(e,t)?.templateLock;return("contentOnly"!==n||e.editedContentOnlySection!==t)&&(n??!1)}var Jo=(e,t,n=null)=>{let r,o;if(t&&"object"==typeof t?(r=t,o=t.name):(r=(0,h.E7)(t),o=t),!r)return!1;const{allowedBlockTypes:i}=Ni(e);if(!Cr(i,o,!0))return!1;const s=(Array.isArray(r.parent)?r.parent:[]).concat(Array.isArray(r.ancestor)?r.ancestor:[]);if(s.length>0){if(s.includes("core/post-content"))return!0;let t=n,r=!1;do{if(s.includes(Rr(e,t))){r=!0;break}t=e.blocks.parents.get(t)}while(t);return r}return!0},ei=(e,t,n=null)=>{if(e.settings.isPreviewMode)return!1;if(!Jo(e,t,n))return!1;let r;t&&"object"==typeof t?(r=t,t=r.name):r=(0,h.E7)(t);const o=Qo(e,n);if(o&&"contentOnly"!==o)return!1;if(ri(e,n))return!1;const i=qi(e,n??""),s=!!jn(e,n),a=s?n:Nn(e,n),l=!!a;if("disabled"===i&&(!l||t!==(0,h.K$)()))return!1;const c=Ti(e,n);if(n&&void 0===c)return!1;const u=jr(t);if(l&&!u)return!1;if(l&&"core/block"===Rr(e,a))return!1;if(l&&(s||"contentOnly"===i||"disabled"===i)&&!rn(e,t,n)){const r=(0,h.K$)();if(t!==r)return!1;
2if(!jo(e,n).some(t=>Rr(e,t)===r))return!1}const d=Rr(e,n),f=(0,h.E7)(d),p=f?.allowedBlocks;let m=Cr(p,t);if(!1!==m){const e=c?.allowedBlocks,n=Cr(e,t);null!==n&&(m=n)}const g=r.parent,b=Cr(g,d);let y=!0;const v=r.ancestor;if(v){y=[n,...so(e,n)].some(t=>Cr(v,Rr(e,t)))}const k=y&&(null===m&&null===b||!0===m||!0===b);return k?(0,_.W5)("blockEditor.__unstableCanInsertBlockType",k,r,n,{getBlock:Dr.bind(null,e),getBlockParentsByBlockName:ao.bind(null,e)}):k},ti=(0,Me.N)(e=>(0,Re.M)(ei,(t,n,r)=>Ir(e)(t,r)));function ni(e,t,n=null){return t.every(t=>ti(e,Rr(e,t),n))}function ri(e,t){return!!t&&"core/html"===Rr(e,t)}function oi(e,t){if(e.settings.isPreviewMode)return!1;if(ri(e,io(e,t)))return!1;const n=Pr(e,t);if(null===n)return!0;if(void 0!==n.lock?.remove)return!n.lock.remove;const r=io(e,t),o=Qo(e,r);if(o&&"contentOnly"!==o)return!1;const i=!!jn(e,r),s=i?r:Nn(e,r),a=!!s,l=jr(Rr(e,t));if(a&&!l)return!1;if(a&&"core/block"===Rr(e,s))return!1;const c=qi(e,r),u=Rr(e,t),d=(0,h.K$)();if(a&&(i||u===d||"contentOnly"===c)&&!rn(e,Rr(e,t),r)){if(u===d){return jo(e,r).filter(t=>Rr(e,t)===d).length>1}return!1}return"disabled"!==c}function ii(e,t){return t.every(t=>oi(e,t))}function si(e,t){if(e.settings.isPreviewMode)return!1;if(ri(e,io(e,t)))return!1;const n=Pr(e,t);if(null===n)return!0;if(void 0!==n.lock?.move)return!n.lock.move;const r=io(e,t);if("all"===Qo(e,r))return!1;const o=!!Nn(e,t),i=jr(Rr(e,t));if(o&&!i)return!1;const s=!!jn(e,r),a=qi(e,r);return!(o&&(s||"contentOnly"===a)&&!rn(e,Rr(e,t),r))&&"disabled"!==qi(e,r)}function ai(e,t){return t.every(t=>si(e,t))}function li(e,t){if(e.settings.isPreviewMode)return!1;const n=Pr(e,t);if(null===n)return!0;const{lock:r}=n;return!r?.edit}function ci(e,t){return!e.settings.isPreviewMode&&(!!(0,h.pN)(t,"lock",!0)&&!!e.settings?.canLockBlocks)}function ui(e,t){return e.preferences.insertUsage?.[t]??null}var di=(e,t,n)=>!!(0,h.pN)(t,"inserter",!0)&&ei(e,t.name,n),fi=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},pi=(e,{buildScope:t="inserter"})=>n=>{const r=n.name;let o=!1;(0,h.pN)(n.name,"multiple",!0)||(o=qr(e,Wr(e)).some(({name:e})=>e===n.name));const{time:i,count:s=0}=ui(e,r)||{},a={id:r,name:n.name,title:n.title,icon:n.icon,isDisabled:o,frecency:fi(i,s)};if("transform"===t)return a;const l=[...(0,h.oO)(n.name,"inserter"),...(0,h.oO)(n.name,"block").filter(e=>"core/heading"===n.name&&["h1","h2","h3","h4","h5","h6"].includes(e.name)).map(e=>({...e,isSearchOnly:!0}))];return{...a,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,parent:n.parent,ancestor:n.ancestor,variations:l,example:n.example,utility:1}},mi=(0,Me.N)(e=>(0,Re.M)((t,n=null,r=Or)=>{const o=ei(t,"core/block",n)?ue(e(De)).getReusableBlocks().map(e=>{const n=e.wp_pattern_sync_status?Le:{src:Le,foreground:"var(--wp-block-synced-color)"},r=wr(e),{time:o,count:i=0}=ui(t,r.name)||{},s=fi(o,i);return{id:r.name,name:"core/block",initialAttributes:{ref:e.id},title:r.title,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:r.content,get blocks(){return _r(r).blocks},syncStatus:r.syncStatus}}):[],i=pi(t,{buildScope:"inserter"});let s=(0,h.li)().filter(e=>(0,h.pN)(e,"inserter",!0)).map(i);if(!1!==r[vr])s=s.filter(e=>di(t,e,n));else{const{getClosestAllowedInsertionPoint:r}=ue(e(De));s=s.filter(e=>Jo(t,e,n)&&null!==r(e.name,n)).map(e=>({...e,isAllowedInCurrentRoot:di(t,e,n)}))}const a=s.reduce((e,n)=>{const{variations:r=[]}=n;if(r.some(({isDefault:e})=>e)||e.push(n),r.length){const o=((e,t)=>n=>{const r=`${t.id}/${n.name}`,{time:o,count:i=0}=ui(e,r)||{};return{...t,id:r,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,innerContent:n.innerContent,keywords:n.keywords||t.keywords,frecency:fi(o,i),isSearchOnly:n.isSearchOnly}})(t,n);e.push(...r.map(o))}return e},[]),{core:l,noncore:c}=a.reduce((e,t)=>
2{const{core:n,noncore:r}=e;return(t.name.startsWith("core/")?n:r).push(t),e},{core:[],noncore:[]});return[...[...l,...c],...o]},(t,n)=>[(0,h.li)(),ue(e(De)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Ir(e)(t,n)])),gi=(0,Me.N)(e=>(0,Re.M)((e,t,n=null)=>{const r=Array.isArray(t)?t:[t],o=pi(e,{buildScope:"transform"}),i=(0,h.li)().filter(t=>di(e,t,n)).map(o),s=Object.fromEntries(Object.entries(i).map(([,e])=>[e.name,e])),a=(0,h.Fk)(r).reduce((t,n)=>{const r=s[n?.name];if(!r)return t;const{variationName:o}=n;if(!o)return t.push(r),t;const i=(0,h.oO)(r.name,"transform")?.find(({name:e})=>e===o);return i?(t.push(((e,t)=>n=>{const r=`${t.id}/${n.name}`,{time:o,count:i=0}=ui(e,r)||{};return{...t,id:r,icon:n.icon||t.icon,title:n.title||t.title,frecency:fi(o,i),variationName:n.name}})(e,r)(i)),t):(t.push(r),t)},[]);return Nr(a,e=>e.frecency,"desc")},(t,n,r)=>[(0,h.li)(),t.preferences.insertUsage,...Ir(e)(t,r)])),hi=(e,t=null)=>{if((0,h.li)().some(n=>di(e,n,t)))return!0;return ei(e,"core/block",t)},bi=(0,Me.N)(e=>(0,Re.M)((e,t=null)=>{if(!t)return;const n=(0,h.li)().filter(n=>di(e,n,t));return ei(e,"core/block",t)&&n.push("core/block"),n},(t,n)=>[(0,h.li)(),...Ir(e)(t,n)])),yi=(0,Re.M)((e,t=null)=>((0,$.A)('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),bi(e,t)),(e,t)=>bi.getDependants(e,t));function vi(e,t=null){if(!t)return;const{defaultBlock:n,directInsert:r}=e.blockListSettings.get(t)??{};return n&&r?n:void 0}function ki(e,t=null){return(0,$.A)('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),vi(e,t)}var xi=(0,Me.N)(e=>(t,n)=>{const r=ue(e(De)).getPatternBySlug(n);return r?_r(r):null}),wi=e=>(t,n)=>[...Er(e)(t),...Ir(e)(t,n)],_i=new WeakMap;function Si(e){let t=_i.get(e);return t||(t={...e,get blocks(){return _r(e).blocks}},_i.set(e,t)),t}var Ci=(0,Me.N)(e=>(0,Re.M)((t,n=null,r=Or)=>{const{getAllPatterns:o}=ue(e(De)),i=o(),{allowedBlockTypes:s}=Ni(t);return i.filter(({inserter:e=!0})=>!!e).map(Si).filter(e=>Ar(Sr(e),s)).filter(e=>Sr(e).every(({blockName:e})=>!1!==r[vr]?ti(t,e,n):Jo(t,e,n)))},wi(e))),Ai=(0,Me.N)(e=>(0,Re.M)((t,n,r=null)=>{if(!n)return Br;const o=e(De).__experimentalGetAllowedPatterns(r),i=Array.isArray(n)?n:[n],s=o.filter(e=>e?.blockTypes?.some?.(e=>i.includes(e)));return 0===s.length?Br:s},(t,n,r)=>wi(e)(t,r))),Ei=(0,Me.N)(e=>((0,$.A)('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(De).getPatternsByBlockTypes)),Ii=(0,Me.N)(e=>(0,Re.M)((t,n,r=null)=>{if(!n)return Br;if(n.some(({clientId:e,innerBlocks:n})=>n.length||Fi(t,e)))return Br;const o=Array.from(new Set(n.map(({name:e})=>e)));return e(De).getPatternsByBlockTypes(o,r)},(t,n,r)=>wi(e)(t,r)));function Ti(e,t){return e.blockListSettings.get(t)}function Ni(e){return e.settings}function ji(e){return e.blocks.isPersistentChange}function Bi(e){return e.blocks.lastBlockChangeHistoryMode?e.blocks.lastBlockChangeHistoryMode:!1===e.blocks.isPersistentChange?"merge":"persistent"}var Li=(0,Re.M)((e,t=[])=>{const n={};for(const r of t){const t=Ti(e,r);t&&(n[r]=t)}return n},e=>[e.blockListSettings]),Oi=(0,Me.N)(e=>(0,Re.M)((t,n)=>{(0,$.A)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const r=ue(e(De)).getReusableBlocks().find(e=>e.id===n);return r?r.title?.raw:null},()=>[ue(e(De)).getReusableBlocks()]));function Ri(e){return e.blocks.isIgnoredChange}function Mi(e){return e.lastBlockAttributesChange}function Pi(){return(0,$.A)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function Di(e){return!!e.automaticChangeStatus}function zi(e,t){return e.highlightedBlock===t}function Fi(e,t){return e.blocks.controlledInnerBlocks.has(t)}var $i=(0,Re.M)((e,t)=>{if(!t.length)return null;const n=ro(e);if(t.includes(Rr(e,n)))return n;const r=bo(e),o=ao(e,n||r[0],t);return o?o[o.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function Vi(e,t,n){const{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===n}function Hi(e,t){return e.blockVisibility?.[t]??!0}function Wi(){(0,$.A)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var Ui=(0,Re.M)(e=>{const t=new Set(Object.keys(e.blockVisibility).filter(t=>e.blockVisibility[t]));return 0===t.size?Lr:t},e=>[e.blockVisibility]);function Ki(e,t){if("default"!==qi(e,t))return!1;if(!li(e,t))return!0;
2if(Pn(e)){const n=Mn(e);if(n){const r=jo(e,n);if(r?.includes(t))return!0}else if(t&&!io(e,t))return!0}return!(0,h.pN)(Rr(e,t),"__experimentalDisableBlockOverlay",!1)&&Fi(e,t)&&!Lo(e,t)&&!Ro(e,t,!0)}function Gi(e,t){let n=e.blocks.parents.get(t);for(;n;){if(Ki(e,n))return!0;n=e.blocks.parents.get(n)}return!1}function qi(e,t=""){return null===t&&(t=""),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blocks.blockEditingModes.has(t)?e.blocks.blockEditingModes.get(t):"default"}var Zi=(0,Me.N)(e=>(t,n="")=>{const r=n||ro(t);if(!r)return!1;if(jn(t,r))return!1;const{getGroupingBlockName:o}=e(h.M_),i=Dr(t,r),s=o();return i&&(i.name===s||(0,h.E7)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&oi(t,r)}),Yi=(0,Me.N)(e=>(t,n=Br)=>{const{getGroupingBlockName:r}=e(h.M_),o=r(),i=n?.length?n:ho(t),s=i?.length?io(t,i[0]):void 0;return ti(t,o,s)&&i.length&&ii(t,i)}),Xi=(e,t)=>((0,$.A)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),In(e,t));function Qi(e){return(0,$.A)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Ln(e)}var Ji=n(9042),es=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function ts(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,$.A)("__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 o=r;if(t){o={};for(const e in r)es.includes(e)||(o[e]=r[e])}return{type:"UPDATE_SETTINGS",settings:o,reset:n}}function ns(){return{type:"HIDE_BLOCK_INTERFACE"}}function rs(){return{type:"SHOW_BLOCK_INTERFACE"}}var os=(e,t=!0,n=!1)=>({select:r,dispatch:o,registry:i})=>{if(!e||!e.length)return;var s;s=e,e=Array.isArray(s)?s:[s];if(!r.canRemoveBlocks(e))return;const a=!n&&r.getBlockRemovalRules();if(a){let n=function(e){const t=[],n=[...e];for(;n.length;){const{innerBlocks:e,...r}=n.shift();n.push(...e),t.push(r)}return t};const i=n(e.map(r.getBlock));let s;for(const n of a)if(s=n.callback(i),s)return void o(ss(e,t,s))}let l=!1;const c=r.getBlockRootClientId(e[0]);if(c&&!(0,h.E7)(r.getBlockName(c))?.parent?.length){const t=r.getBlockOrder(c);l=t.length===e.length&&t.every(t=>e.includes(t))&&(0,h.C5)(r.__unstableGetBlockWithoutInnerBlocks(c))}t&&o.selectPreviousBlock(l?c:e[0],t),i.batch(()=>{o({type:"REMOVE_BLOCKS",clientIds:l?[c]:e}),o(is())})},is=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function ss(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function as(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function ls(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function cs(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function us(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function ds(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function fs(){return{type:"START_DRAGGING"}}function ps(){return{type:"STOP_DRAGGING"}}function ms(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function gs(e){return{type:"SET_INSERTION_POINT",value:e}}function hs(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function bs(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var ys=(e=100)=>({select:t,dispatch:n})=>{if(100!==e){const e=t.getBlockSelectionStart(),r=t.getSectionRootClientId();if(e){let o;if(r){const n=t.getBlockOrder(r);o=n?.includes(e)?e:t.getBlockParents(e).find(e=>n.includes(e))}else o=t.getBlockHierarchyRootClientId(e);o?n.selectBlock(o):n.clearSelectedBlock(),(0,Ji.L)((0,V.__)("You are currently in zoom-out mode."))}}n({type:"SET_ZOOM_LEVEL",zoom:e})};function vs(){return{type:"RESET_ZOOM_LEVEL"}}function ks(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function xs(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function ws(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function _s(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function Ss(){return{type:"HIDE_VIEWPORT_MODAL"}}function Cs(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function As(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function Es(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function Is(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}function Ts(e){return{type:"SET_STYLE_STATE_VIEWPORT",viewport:e}}function Ns(e){return{type:"SET_RESPONSIVE_EDITING",enabled:e}}var js=(0,n(6025).b)("context")((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter(({id:e})=>e!==t.notice.id),t.notice];case"REMOVE_NOTICE":return e.filter(({id:e})=>e!==t.id);case"REMOVE_NOTICES":return e.filter(({id:e})=>!t.ids.includes(e));case"REMOVE_ALL_NOTICES":return e.filter(({type:e})=>e!==t.noticeType);default:return e}}),Bs="global",Ls=0;function Os(e="info",t,n={}){const{speak:r=!0,isDismissible:o=!0,context:i=Bs,id:s=`${i}${++Ls}`,actions:a=[],type:l="default",__unstableHTML:c,icon:u=null,explicitDismiss:d=!1,onDismiss:f}=n;
2return{type:"CREATE_NOTICE",context:i,notice:{id:s,status:e,content:t=String(t),spokenMessage:r?t:null,__unstableHTML:c,isDismissible:o,actions:a,type:l,icon:u,explicitDismiss:d,onDismiss:f}}}function Rs(e,t){return Os("success",e,t)}function Ms(e,t){return Os("info",e,t)}function Ps(e,t){return Os("error",e,t)}function Ds(e,t){return Os("warning",e,t)}function zs(e,t=Bs){return{type:"REMOVE_NOTICE",id:e,context:t}}function Fs(e="default",t=Bs){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function $s(e,t=Bs){return{type:"REMOVE_NOTICES",ids:e,context:t}}var Vs=[];function Hs(e,t=Bs){return e[t]||Vs}var Ws=(0,M.A)("core/notices",{reducer:js,actions:l,selectors:c});(0,P.kz)(Ws);var Us="Â";function Ks(e){if(e)return Object.keys(e).find(t=>{const n=e[t];return("string"==typeof n||n instanceof Oe.EF)&&-1!==n.toString().indexOf(Us)})}function Gs(e){for(const[t,n]of Object.entries(e.attributes))if("rich-text"===n.source||"html"===n.source)return t}function qs(e,t){if(!t)return{};const n=new Set((0,h.oA)(e,"content"));return n.add("metadata"),Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e)))}var Zs=e=>Array.isArray(e)?e:[e],Ys=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(Xs(e))},Xs=e=>({select:t,dispatch:n})=>{const r=t.getTemplate(),o=t.getTemplateLock(),i=!r||"all"!==o||(0,h.V6)(e,r);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function Qs(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Js(e){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function ea(e,t,n={uniqueByBlock:!1}){return"boolean"==typeof n&&(n={uniqueByBlock:n}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Zs(e),attributes:t,options:n}}function ta(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function na(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function ra(){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var oa=(e,t=!1)=>({select:n,dispatch:r})=>{const o=n.getPreviousBlockClientId(e);if(o)r.selectBlock(o,-1);else if(t){const t=n.getBlockRootClientId(e);if(t)r.selectBlock(t,-1);else{const t=n.getNextBlockClientId(e);t&&r.selectBlock(t,0)}}},ia=e=>({select:t,dispatch:n})=>{const r=t.getNextBlockClientId(e);r&&n.selectBlock(r)};function sa(){return{type:"START_MULTI_SELECT"}}function aa(){return{type:"STOP_MULTI_SELECT"}}var la=(e,t,n=0)=>({select:r,dispatch:o})=>{if(r.getBlockRootClientId(e)!==r.getBlockRootClientId(t))return;o({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=r.getSelectedBlockCount(),s=r.getClientIdsOfDescendants(r.getMultiSelectedBlockClientIds()).length;(0,Ji.L)(s?(0,V.nv)( 3/* translators: 1: number of selected blocks. 2: number of blocks including nested blocks. */ 4/* translators: 1: number of selected blocks. 2: number of blocks including nested blocks. */ 5(0,V._n)("%1$s block selected, %2$s including nested blocks.","%1$s blocks selected, %2$s including nested blocks.",i),i,i+s):(0,V.nv)( 6/* translators: %s: number of selected blocks */ 7/* translators: %s: number of selected blocks */ 8(0,V._n)("%s block selected.","%s blocks selected.",i),i),"assertive")};function ca(){return{type:"CLEAR_SELECTED_BLOCK"}}function ua(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var da=(e,t,n,r=0,o)=>({select:i,dispatch:s,registry:a})=>{e=Zs(e),t=Zs(t);const l=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,l))return}const c=va(t);a.batch(()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:c,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o}),ka(i,s,t,c,r),s.ensureDefaultBlock()})};function fa(e,t){return da(e,t)}var pa=e=>(t,n)=>({select:r,dispatch:o})=>{r.canMoveBlocks(t)&&o({type:e,clientIds:Zs(t),rootClientId:n})},ma=pa("MOVE_BLOCKS_DOWN"),ga=pa("MOVE_BLOCKS_UP"),ha=(e,t="",n="",r)=>({select:o,dispatch:i})=>{if(o.canMoveBlocks(e)){if(t!==n){if(!o.canRemoveBlocks(e))return;if(!o.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r})}};function ba(e,t="",n="",r){return ha([e],t,n,r)}function ya(e,t,n,r,o,i){return xa([e],t,n,r,o,i)}function va(e,t=new Set){let n=!1;const r=e.map(e=>{let{innerBlocks:r}=e;if(r?.length)r=va(r,t);else if(!t.has(e.name)){const{template:n}=(0,h.E7)(e.name)??{};n?.length&&(r=va((0,h.Nk)([],n),new Set(t).add(e.name)))}return r===e.innerBlocks?e:(n=!0,{...e,innerBlocks:r})});return n?r:e}function ka(e,t,n,r,o){const i=e.getSelectedBlockClientId();if(!i)return;const s=r.findIndex(e=>e.clientId===i);if(-1===s||r[s]===n[s]||!r[s].innerBlocks.length||!(0,h.E7)(r[s].name)?.templateInsertUpdatesSelection)return;let a=r[s];for(;a.innerBlocks[0];)a=a.innerBlocks[0];t.selectBlock(a.clientId,o)}var xa=(e,t,n,r=!0,o=0,i)=>({select:s,dispatch:a,registry:l})=>{null!==o&&"object"==typeof o&&(i=o,o=0,(0,$.A)("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=Zs(e);const c=[];for(const t of e){s.canInsertBlockType(t.name,n)&&c.push(t)}if(c.length){const e=va(c);l.batch(()=>{a({type:"INSERT_BLOCKS",blocks:e,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:i}),ka(s,a,c,e,o)})}};function wa(e,t,n={}){const{__unstableWithInserter:r,operation:o,nearestSide:i}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:o,nearestSide:i}}var _a=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function Sa(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var Ca=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),r=e.getTemplate(),o=(0,h.Nk)(n,r);t.resetBlocks(o)},Aa=e=>({registry:t,select:n,dispatch:r})=>
8{const o=n.getSelectionStart(),i=n.getSelectionEnd();if(o.clientId===i.clientId)return;if(!o.attributeKey||!i.attributeKey||void 0===o.offset||void 0===i.offset)return!1;const s=n.getBlockRootClientId(o.clientId);if(s!==n.getBlockRootClientId(i.clientId))return;const a=n.getBlockOrder(s);let l,c;a.indexOf(o.clientId)>a.indexOf(i.clientId)?(l=i,c=o):(l=o,c=i);const u=e?c:l,d=n.getBlock(u.clientId),f=(0,h.E7)(d.name);if(!f.merge)return;const p=l,m=c,g=n.getBlock(p.clientId),b=n.getBlock(m.clientId),y=g.attributes[p.attributeKey],v=b.attributes[m.attributeKey];let k=(0,Oe.vt)({html:y}),x=(0,Oe.vt)({html:v});k=(0,Oe.TF)(k,p.offset,k.text.length),x=(0,Oe.Yr)(x,Us,0,m.offset);const w=(0,h.JB)(g,{[p.attributeKey]:(0,Oe.Ky)({value:k})}),_=(0,h.JB)(b,{[m.attributeKey]:(0,Oe.Ky)({value:x})}),S=e?w:_,C=g.name===b.name?[S]:(0,h.bh)(S,f.name);if(!C||!C.length)return;let A;if(e){const e=C.pop();A=f.merge(e.attributes,_.attributes)}else{const e=C.shift();A=f.merge(w.attributes,e.attributes)}const E=Ks(A),I=A[E],T=(0,Oe.vt)({html:I}),N=T.text.indexOf(Us),j=(0,Oe.TF)(T,N,N+1),B=(0,Oe.Ky)({value:j});A[E]=B;const L=n.getSelectedBlockClientIds(),O=[...e?C:[],{...d,attributes:{...d.attributes,...A},innerBlocks:b.innerBlocks},...e?[]:C];t.batch(()=>{r.selectionChange(d.clientId,E,N,N),r.replaceBlocks(L,O,0,n.getSelectedBlocksInitialCaretPosition())})},Ea=(e=[])=>({registry:t,select:n,dispatch:r})=>{const o=n.getSelectionStart(),i=n.getSelectionEnd(),s=n.getBlockRootClientId(o.clientId),a=n.getBlockRootClientId(i.clientId);if(s!==a)return;const l=n.getBlockOrder(s);let c,u;l.indexOf(o.clientId)>l.indexOf(i.clientId)?(c=i,u=o):(c=o,u=i);const d=c,f=u,p=n.getBlock(d.clientId),m=n.getBlock(f.clientId),g=(0,h.E7)(p.name),b=(0,h.E7)(m.name),y="string"==typeof d.attributeKey?d.attributeKey:Gs(g),v="string"==typeof f.attributeKey?f.attributeKey:Gs(b),k=n.getBlockAttributes(d.clientId),x=k?.metadata?.bindings;if(x?.[y]){if(e.length){const{createWarningNotice:e}=t.dispatch(Ws);return void e((0,V.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"})}return void r.insertAfterBlock(d.clientId)}if(!y||!v||void 0===o.offset||void 0===i.offset)return;if(d.clientId===f.clientId&&y===v&&d.offset===f.offset)if(e.length){if((0,h.Xw)(p,"content"))return void r.replaceBlocks([d.clientId],e,e.length-1,-1)}else if(!n.getBlockOrder(d.clientId).length){let e=function(){const e=(0,h.K$)();if(n.canInsertBlockType(e,s))return(0,h.Wv)(e);const t=n.getBlockName(d.clientId);return(0,h.Wv)(t,qs(t,k))};const t=k[y].length;if(0===d.offset&&t)return void r.insertBlocks([e()],n.getBlockIndex(d.clientId),s,!1);if(d.offset===t)return void r.insertBlocks([e()],n.getBlockIndex(d.clientId)+1,s)}const w=p.attributes[y],_=m.attributes[v];let S=(0,Oe.vt)({html:w}),C=(0,Oe.vt)({html:_});S=(0,Oe.TF)(S,d.offset,S.text.length),C=(0,Oe.TF)(C,0,f.offset);let A={...p,innerBlocks:p.clientId===m.clientId?[]:p.innerBlocks,attributes:{...p.attributes,[y]:(0,Oe.Ky)({value:S})}},E={...m,clientId:p.clientId===m.clientId?(0,h.Wv)(m.name).clientId:m.clientId,attributes:{...m.attributes,[v]:(0,Oe.Ky)({value:C})}};const I=(0,h.K$)();if(p.clientId===m.clientId&&I&&E.name!==I&&n.canInsertBlockType(I,s)){const e=(0,h.bh)(E,I);1===e?.length&&(E=e[0])}if(!e.length)return void r.replaceBlocks(n.getSelectedBlockClientIds(),[A,E]);let T;const N=[],j=[...e],B=j.shift(),L=(0,h.E7)(A.name),O=L.merge&&B.name===L.name?[B]:(0,h.bh)(B,L.name);if(O?.length){const e=O.shift();A={...A,attributes:{...A.attributes,...L.merge(A.attributes,e.attributes)}},N.push(A),T={clientId:A.clientId,attributeKey:y,offset:(0,Oe.vt)({html:A.attributes[y]}).text.length},j.unshift(...O)}else(0,h.C5)(A)||N.push(A),N.push(B);const R=j.pop(),M=(0,h.E7)(E.name);if(j.length&&N.push(...j),R){const e=M.merge&&M.name===R.name?[R]:(0,h.bh)(R,M.name);if(e?.length){const t=e.pop();N.push({...E,attributes:{...E.attributes,...M.merge(t.attributes,E.attributes)}}),N.push(...e),T={clientId:E.clientId,attributeKey:v,offset:(0,Oe.vt)({html:t.attributes[v]}).text.length}}else N.push(R),(0,h.C5)(E)||N.push(E)}else(0,h.C5)(E)||N.push(E);t.batch(()=>{r.replaceBlocks(n.getSelectedBlockClientIds(),N,N.length-1,0),T&&r.selectionChange(T.clientId,T.attributeKey,T.offset,T.offset)})},Ia=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:r.clientId}})},Ta=(e,t)=>({registry:n,select:r,dispatch:o})=>{const i=e,s=t,a=r.getBlock(i),l=(0,h.E7)(a.name);if(!l||"disabled"===r.getBlockEditingMode(i)||"disabled"===r.getBlockEditingMode(s))return;const c=r.getBlock(s);if(!l.merge&&(0,h.bI)(a.name,"__experimentalOnMerge")){const e=(0,h.bh)(c,l.name);if(1!==e?.length)return void o.selectBlock(a.clientId);const[t]=e;return t.innerBlocks.length<1?void o.selectBlock(a.clientId):void n.batch(()=>{o.insertBlocks(t.innerBlocks,void 0,i),o.removeBlock(s),o.selectBlock(t.innerBlocks[0].clientId);const e=r.getNextBlockClientId(i);if(e&&r.getBlockName(i)===r.getBlockName(e)){const t=r.getBlockAttributes(i),n=r.getBlockAttributes(e);Object.keys(t).every(e=>t[e]===n[e])&&(o.moveBlocksToPosition(r.getBlockOrder(e),e,i),o.removeBlock(e,!1))}})}if((0,h.Xw)(a)||l.merge&&a.name!==c.name&&(0,h.C5)(a,"content")){return void(r.isBlockSelected(i)?n.batch(()=>{o.removeBlock(i,!1),o.selectBlock(s,0)}):o.removeBlock(i,!1))}if((0,h.Xw)(c))return void o.removeBlock(s,r.isBlockSelected(s));if(!l.merge)return void((0,h.C5)(c,"content")?o.removeBlock(s,r.isBlockSelected(s)):o.selectBlock(a.clientId));const u=(0,h.E7)(c.name),{clientId:d,attributeKey:f,offset:p}=r.getSelectionStart(),m=(d===i?l:u).attributes[f],g=(d===i||d===s)&&void 0!==f&&void 0!==p&&!!m;m||("number"==typeof f?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 f):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const b=(0,h.JB)(a),y=(0,h.JB)(c);if(g){const e=d===i?b:y,t=e.attributes[f],n=(0,Oe.Yr)((0,Oe.vt)({html:t}),Us,p,p);e.attributes[f]=(0,Oe.Ky)({value:n})}const v=a.name===c.name?[y]:(0,h.bh)(y,a.name);if(!v||!v.length)return;const k=l.merge(b.attributes,v[0].attributes);if(g){const e=Ks(k),t=k[e],n=(0,Oe.vt)({html:t}),r=n.text.indexOf(Us),i=(0,Oe.TF)(n,r,r+1),s=(0,Oe.Ky)({value:i});k[e]=s,o.selectionChange(a.clientId,e,r,r)}o.replaceBlocks([a.clientId,c.clientId],[{...a,attributes:{...a.attributes,...k}},...v.slice(1)],0)},Na=(e,t=!0)=>os(e,t);function ja(e,t){return Na([e],t)}function Ba(e,t,n=!1,r=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?r:null,time:Date.now()}}function La(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Oa(){return{type:"START_TYPING"}}function Ra(){return{type:"STOP_TYPING"}}function Ma(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Pa(){return{type:"STOP_DRAGGING_BLOCKS"}}function Da(){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",ver
8sion:"6.3"}),{type:"DO_NOTHING"}}function za(){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function Fa(e,t,n,r){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var $a=(e,t,n)=>({dispatch:r})=>{const o=(0,h.K$)();if(!o)return;const i=(0,h.Wv)(o,e);return r.insertBlock(i,n,t)};function Va(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Ha(e){return ts(e,{stripExperimentalSettings:!0})}function Wa(){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function Ua(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Ka({history:e="merge"}={}){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",history:e}}var Ga=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=e=>setTimeout(e,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})};function qa(){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).__unstableSetEditorMode',{since:"7.2",hint:"The Write/Design editor tool has been removed."}),{type:"DO_NOTHING"}}function Za(){return(0,$.A)('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}var Ya=(e,t=!0)=>({select:n,dispatch:r})=>{if(!e||!e.length)return;const o=n.getBlocksByClientId(e);if(o.some(e=>!e))return;if(o.map(e=>e.name).some(e=>!(0,h.pN)(e,"multiple",!0)))return;const i=n.getBlockRootClientId(e[0]),s=Zs(e),a=n.getBlockIndex(s[s.length-1]),l=o.map(e=>(0,h.GI)(e));return r.insertBlocks(l,a+1,i,t),l.length>1&&t&&r.multiSelect(l[0].clientId,l[l.length-1].clientId),l.map(e=>e.clientId)},Xa=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e),o=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return n.insertDefaultBlock({},r,o);const s=(0,h.Wv)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?qs(i.name,t.getBlockAttributes(e)):{}});return n.insertBlock(s,o,r)},Qa=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e),o=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return n.insertDefaultBlock({},r,o+1);const s=(0,h.Wv)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?qs(i.name,t.getBlockAttributes(e)):{}});return n.insertBlock(s,o+1,r)};function Ja(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var el=(e,t=150)=>async({dispatch:n})=>{n(Ja(e,!0)),await new Promise(e=>setTimeout(e,t)),n(Ja(e,!1))};function tl(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function nl(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function rl(e){return(0,$.A)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),hs(e)}var ol=e=>({select:t,dispatch:n})=>{if(!e||"object"!=typeof e)return void console.error("Category should be an `InserterMediaCategory` object.");if(!e.name)return void console.error("Category should have a `name` that should be unique among all media categories.");if(!e.labels?.name)return void console.error("Category should have a `labels.name`.");if(!["image","audio","video"].includes(e.mediaType))return void console.error("Category should have `mediaType` property that is one of `image|audio|video`.");if(!e.fetch||"function"!=typeof e.fetch)return void console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]|InserterMediaResponse>`.");const r=t.getRegisteredInserterMediaCategories();r.some(({name:t})=>t===e.name)?console.error(`A category is already registered with the same name: "${e.name}".`):r.some(({labels:{name:t}={}})=>t===e.labels?.name)?console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`):n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function il(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function sl(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}function al(e){return{type:"SET_OPEN_LIST_VIEW_PANEL",clientId:e}}function ll(){return{type:"SET_ALL_LIST_VIEW_PANELS_OPEN"}}function cl(e,t){return{type:"TOGGLE_LIST_VIEW_PANEL",clientId:e,isOpen:t}}function ul(){return{type:"INCREMENT_LIST_VIEW_EXPAND_REVISION"}}var dl={reducer:Ne,selectors:s,actions:u},fl=(0,M.A)(De,{...dl,persist:["preferences"]}
8),pl=(0,P.ti)(De,{...dl,persist:["preferences"]});function ml(...e){const{clientId:t=null}=O();return(0,R.A)(n=>ue(n(fl)).getBlockSettings(t,...e),[t,...e])}ue(pl).registerPrivateActions(a),ue(pl).registerPrivateSelectors(i),ue(fl).registerPrivateActions(a),ue(fl).registerPrivateSelectors(i);var gl=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map(([e,t])=>[e,gl(t)]).filter(([,e])=>void 0!==e);return t.length?Object.fromEntries(t):void 0};function hl(e,t,n,r,o,i){if(Object.values(e??{}).every(e=>!e))return n;if(1===i.length&&n.innerBlocks.length===r.length)return n;let s=r[0]?.attributes;if(i.length>1&&r.length>1){if(!r[o])return n;s=r[o]?.attributes}let a=n;return Object.entries(e).forEach(([e,n])=>{n&&t[e].forEach(e=>{const t=Wt(s,e);t&&(a={...a,attributes:Ht(a.attributes,e,t)})})}),a}function bl(e,t,n){const r=(0,h.bI)(e,t),o=r?.__experimentalSkipSerialization;return Array.isArray(o)?o.includes(n):o}var yl=new WeakMap;function vl({id:e,css:t}){return kl({id:e,css:t})}function kl({id:e,css:t,assets:n,__unstableType:r,variation:o,clientId:i}={}){const{setStyleOverride:s,deleteStyleOverride:a}=ue((0,y.A)(fl)),l=(0,v.A)(),c=(0,b.useId)();(0,b.useEffect)(()=>{if(!t&&!n)return;const u=e||c,d={id:e,css:t,assets:n,__unstableType:r,variation:o,clientId:i};return yl.get(l)||yl.set(l,[]),yl.get(l).push([u,d]),window.queueMicrotask(()=>{yl.get(l)?.length&&l.batch(()=>{yl.get(l).forEach(e=>{s(...e)}),yl.set(l,[])})}),()=>{const e=yl.get(l)?.find(([e])=>e===u);e?yl.set(l,yl.get(l).filter(([e])=>e!==u)):a(u)}},[e,t,i,n,r,c,s,a,l,o])}function xl(e,t){const[n,r,o,i,s,a,l,c,u,d,f,p,m,g,y,v,k,x,w,_,S,C,A,E,I,T,N,j,B,L,O,M,P,D,z,F,$,V,H,W,U,K,G,q,Z,Y,X,Q,J,ee,te,ne,re,oe,ie,se,ae,le,ce,de,fe,pe,me]=ml("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");return function(e,t,n){const{supportedStyles:r,supports:o}=(0,R.A)(e=>({supportedStyles:ue(e(h.M_)).getSupportedStyles(t,n),supports:e(h.M_).getBlockType(t)?.supports}),[t,n]);return(0,b.useMemo)(()=>{const t={...e};return r.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),r.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&r.includes("color"),background:t.color?.background&&(r.includes("background")||r.includes("backgroundColor")),button:t.color?.button&&r.includes("buttonColor"),heading:t.color?.heading&&r.includes("headingColor"),link:t.color?.link&&r.includes("linkColor"),caption:t.color?.caption&&r.includes("captionColor")},r.includes("background")||r.includes("backgroundGradient")||(t.color.gradients=[],t.color.customGradient=!1),r.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","textIndent","writingMode"].forEach(e
8=>{r.includes(e)||(t.typography={...t.typography,[e]:!1})}),r.includes("textIndent")&&(t.typography={...t.typography,textIndent:t.typography?.textIndent??"subsequent"}),r.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach(e=>{r.includes(e)||(t.layout={...t.layout,[e]:!1})}),["padding","margin","blockGap"].forEach(e=>{r.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(o?.spacing?.[e])?o?.spacing?.[e]:o?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})}),["aspectRatio","height","minHeight","minWidth","width"].forEach(e=>{r.includes(e)||(t.dimensions={...t.dimensions,[e]:!1})}),["radius","color","style","width"].forEach(e=>{r.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})}),[["backgroundImage","backgroundImage"],["backgroundSize","backgroundSize"],["backgroundGradient","gradient"]].forEach(([e,n])=>{r.includes(e)||(t.background={...t.background,[n]:!1})}),t.shadow=!!r.includes("shadow")&&t.shadow,t},[e,r,o])}((0,b.useMemo)(()=>({background:{backgroundImage:n,backgroundSize:r,gradient:o},color:{palette:{custom:q,theme:Y,default:X},gradients:{custom:re,theme:oe,default:ie},duotone:{custom:ee,theme:te,default:ne},defaultGradients:se,defaultPalette:Q,defaultDuotone:J,custom:G,customGradient:ae,customDuotone:Z,background:le,link:ce,heading:fe,button:pe,text:de},typography:{fontFamilies:{custom:i,default:s,theme:a},fontSizes:{custom:c,default:u,theme:d},customFontSize:f,defaultFontSizes:l,fontStyle:p,fontWeight:m,lineHeight:g,textAlign:y,textColumns:v,textDecoration:k,textIndent:x,textTransform:_,letterSpacing:S,writingMode:w},spacing:{spacingSizes:{custom:N,default:j,theme:B},customSpacingSize:T,defaultSpacingSizes:I,padding:C,margin:A,blockGap:E,units:L},border:{color:V,radius:H,style:W,width:U,radiusSizes:K},dimensions:{aspectRatio:O,height:M,minHeight:P,minWidth:D,width:z,dimensionSizes:F},layout:$,parentLayout:t,shadow:me}),[n,r,o,i,s,a,l,c,u,d,f,p,m,g,y,v,k,x,_,S,w,C,A,E,I,T,N,j,B,L,O,M,P,D,z,F,$,t,V,H,W,U,K,G,q,Z,Y,X,Q,J,ee,te,ne,re,oe,ie,se,ae,le,ce,de,fe,pe,me]),e)}var wl=(0,b.memo)(function({index:e,useBlockProps:t,setAllWrapperProps:n,...r}){const o=t(r),i=t=>n(n=>{const r=[...n];return r[e]=t,r});return(0,b.useEffect)(()=>(i(o),()=>{i(void 0)})),null});function _l(e){e.hasAttribute("crossorigin")||e.setAttribute("crossorigin","anonymous")}if((0,_.U2)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",function(e){const{apiVersion:t=1}=e;return t<2&&(0,h.pN)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}),window.crossOriginIsolated){let e=function(){document.body?t.observe(document.body,{childList:!0,attributes:!0,subtree:!0}):"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{document.body&&t.observe(document.body,{childList:!0,attributes:!0,subtree:!0})})};0;const t=new window.MutationObserver(e=>{e.forEach(e=>{[e.addedNodes,e.target].forEach(e=>{(e instanceof window.NodeList?e:[e]).forEach(e=>{const t=e;t.querySelectorAll&&(t.querySelectorAll("source,script,video,link").forEach(e=>{_l(e)}),["SOURCE","SCRIPT","VIDEO","LINK"].includes(t.nodeName)&&_l(t))})})})});e()}var Sl=n(3040),Cl=n(5787),Al=n(4749),El={default:(0,Al.QJ)("BlockControls"),block:(0,Al.QJ)("BlockControlsBlock"),inline:(0,Al.QJ)("BlockFormatControls"),other:(0,Al.QJ)("BlockControlsOther"),parent:(0,Al.QJ)("BlockControlsParent"),"style-state":(0,Al.QJ)("BlockControlsStyleState")};function Il({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:r=!1}){const o=function(e,t){const n=O();return n[S]?El[e]?.Fill:n[C]&&t?El.parent.Fill:null}(e,r);if(!o)return null;const i=(0,Be.jsxs)(Be.Fragment,{children:["default"===e&&(0,Be.jsx)(Sl.A,{controls:t}),n]});return(0,Be.jsx)(Cl.A,{document,children:(0,Be.jsx)(o,{children:e=>{const{forwardedContext:t=[]}=e;return t.reduce((e,[t,n])=>(0,Be.jsx)(t,{...n,children:e}),i)}})})}var Tl=n(6068),Nl=n.t(Tl,2),jl=n(505),Bl=n(8538),{lock:Ll,unlock:Ol}=(0,le.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components"),Rl=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})}),Ml=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M12 19.25C16.004
81 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.wA,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]}),Pl=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})}),Dl=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),zl=n(169);var Fl=function({className:e,intent:t="default",children:n,...r}){const o=function(e="default"){switch(e){case"info":return Rl;case"success":return Ml;case"warning":return Pl;case"error":return Dl;default:return null}}(t),i=!!o;return(0,Be.jsx)("span",{className:(0,g.A)("components-badge",e,{[`is-${t}`]:t,"has-icon":i}),...r,children:(0,Be.jsxs)("span",{className:"components-badge__flex-wrapper",children:[i&&(0,Be.jsx)(zl.A,{icon:o,size:16,fill:"currentColor",className:"components-badge__icon"}),(0,Be.jsx)("span",{className:"components-badge__content",children:n})]})})},$l=n(3730),Vl=n(687),Hl=(0,b.forwardRef)(({required:e,customValidity:t,markWhenOptional:n,...r},o)=>{(0,$.A)("wp.components.privateApis.ValidatedInputControl",{since:"7.2",alternative:"ValidatedInputControl from @wordpress/ui",hint:"This private API will be completely removed within a few Gutenberg plugin releases."});const i=(0,b.useRef)(null),s=(0,$l.A)([o,i]);return(0,Be.jsx)(Tl.ControlWithError,{className:"components-validated-control",required:e,markWhenOptional:n,customValidity:t,getValidityTarget:()=>i.current,children:(0,Be.jsx)(Vl.Ay,{ref:s,...r})})});Hl.displayName="ValidatedInputControl";var Wl=n(5896),Ul=n(1740);function Kl(e){const{help:t,id:n,...r}=e,o=(0,Ul.A)(Wl.Ay,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{"aria-describedby":`${o}__help`}:{}}}}var Gl=n(8787),ql="data-wp-hash";function Zl(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=Zl();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)Yl(e,n,r)}(document)),e.__wpStyleRuntime}function Yl(e,t,n){if(!e.head)return;const r=Zl();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${ql}]`))if(n.getAttribute(ql)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(ql,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=Zl();n.styles.set(e,t);for(const r of n.documents.keys())Yl(r,e,t)})("3558237a49","._0f130cee1a924516__editable{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;width:100%}@media (min-width:600px){._0f130cee1a924516__editable{font-size:13px;line-height:normal}}._0f130cee1a924516__editable:hover:not(:disabled,[aria-disabled=true],[type=checkbox]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}._0f130cee1a924516__editable:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._0f130cee1a924516__editable::placeholder{color:rgba(30,30,30,.62)}._0f130cee1a924516__editable[aria-placeholder]:empty:before{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%);content:attr(aria-placeholder)}._0f130cee1a924516__editable{min-height:40px;padding:12px}._0f130cee1a924516__editable[aria-disabled=true]{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-300,var(--wpds-color-stroke-surface-neutral,#dbdbdb));color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));cursor:default}");var Xl="_0f130cee1a924516__editable";var Ql=(0,b.forwardRef)(function({label:e,id:t,className:n,help:r,hideLabelFromVision:o,disabled:i,required:s,placeholder:a,...l},c){const{baseControlProps:u,controlProps:d}=Kl({id:t,className:n,help:r}),f=`${d.id}__label`,p=(0,b.useRef)(null),m=(0,$l.A)([p,c]);return(0,Be.jsxs)(Wl.Ay,{...u,children:[o?(0,Be.jsx)(Gl.A,{id:f,children:e}):(0,Be.jsx)(Wl.Ay.VisualLabel,{id:f,onClick:()=>p.current?.focus(),children:e}),(0,Be.jsx)("div",{className:Xl,role:"textbox","aria-multiline":!0,"aria-labelledby":f,"aria-placeholder":a||void 0,"aria-disabled":i||void 0,"aria-required":s||void 0,ref:m,contentEditable:!i,suppressContentEditableWarning:!0,...l,...d})]})}),Jl=(0,b.forwardRef)(({required:e,customValidity:t,markWhenOptional:n,value:r,className:o,...i},s)=>{const a=(0,b.useRef)(null);
8return(0,Be.jsxs)("div",{className:"components-validated-control__wrapper-with-error-delegate",children:[(0,Be.jsx)(Tl.ControlWithError,{className:"components-validated-control",required:e,markWhenOptional:n,customValidity:t,getValidityTarget:()=>a.current,children:(0,Be.jsx)(Ql,{ref:s,className:(0,g.A)("components-validated-control__content-editable",o),"aria-invalid":"invalid"===t?.type||void 0,...i})}),(0,Be.jsx)("input",{className:"components-validated-control__error-delegate",type:"text",ref:a,required:e,value:r?.trim()??"",tabIndex:-1,onChange:()=>{},onFocus:e=>{e.target.previousElementSibling?.querySelector('[role="textbox"]')?.focus()}})]})});Jl.displayName="ValidatedContentEditableControl";var ec=n(8438),tc=(0,b.forwardRef)(({required:e,customValidity:t,markWhenOptional:n,...r},o)=>{(0,$.A)("wp.components.privateApis.ValidatedTextareaControl",{since:"7.2",alternative:"ValidatedTextareaControl from @wordpress/ui",hint:"This private API will be completely removed within a few Gutenberg plugin releases."});const i=(0,b.useRef)(null),s=(0,$l.A)([o,i]);return(0,Be.jsx)(Tl.ControlWithError,{className:"components-validated-control",required:e,markWhenOptional:n,customValidity:t,getValidityTarget:()=>i.current,children:(0,Be.jsx)(ec.A,{ref:s,...r})})});tc.displayName="ValidatedTextareaControl";var nc={};Ll(nc,{ContentEditableControl:Ql,__experimentalPopoverLegacyPositionToPlacement:jl.YK,ComponentsContext:Bl.aG,Tabs:Tl.Tabs,Menu:Tl.Menu,Badge:Fl,useDrag:Tl.useDrag,ValidatedInputControl:Hl,ValidatedContentEditableControl:Jl,ValidatedTextareaControl:tc});var rc=n(8817),oc=n(3585);function ic(e){return e?.length}function sc(e){const t=function(e,t,n){const r=(0,b.useMemo)(()=>n=>e.subscribe(t,n),[e,t]),o=()=>n(e.get(t));return(0,b.useSyncExternalStore)(r,o,o)}((0,b.useContext)(oc.A).fills,e,ic);return(0,b.useMemo)(()=>void 0!==t?Array.from({length:t}):void 0,[t])}var ac=n(9261),{ComponentsContext:lc}=ue(nc);function cc({group:e="default",...t}){const n=(0,b.useContext)(rc.A),r=(0,b.useContext)(lc),o=(0,b.useMemo)(()=>({forwardedContext:[[rc.A.Provider,{value:n}],[lc.Provider,{value:r}]]}),[n,r]),i=El[e],s=sc(i.name);if(!i)return(0,ac.A)(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;const{Slot:a}=i,l=(0,Be.jsx)(a,{...t,bubblesVirtually:!0,fillProps:o});return"default"===e?l:(0,Be.jsx)(Sl.A,{children:l})}var uc=Il;uc.Slot=cc;var dc=uc,fc=n(3802),pc=n(3991);var mc=(0,b.forwardRef)(function(e,t){return(0,b.useContext)(rc.A)?(0,Be.jsx)(fc.A,{ref:t,...e.toggleProps,children:t=>(0,Be.jsx)(pc.A,{...e,popoverProps:{...e.popoverProps},toggleProps:t})}):(0,Be.jsx)(pc.A,{...e})});mc.displayName="ToolbarDropdownMenu";var gc=mc;var hc=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,s=(0,Ul.A)(e);if(!b.Children.count(n))return null;const a=`components-menu-group-label-${s}`,l=(0,g.A)(r,"components-menu-group",{"has-hidden-separator":i});return(0,Be.jsxs)("div",{className:l,children:[o&&(0,Be.jsx)("div",{className:"components-menu-group__label",id:a,"aria-hidden":"true",children:o}),(0,Be.jsx)("div",{role:"group","aria-labelledby":o?a:void 0,children:n})]})},bc=n(3770),yc=n(3192);var vc=(0,b.forwardRef)(function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:s="right",shortcut:a,isSelected:l,role:c="menuitem",suffix:u,...d}=e;return o=(0,g.A)("components-menu-item__button",o),r&&(n=(0,Be.jsxs)("span",{className:"components-menu-item__info-wrapper",children:[(0,Be.jsx)("span",{className:"components-menu-item__item",children:n}),(0,Be.jsx)("span",{className:"components-menu-item__info",children:r})]})),i&&"string"!=typeof i&&(i=(0,b.cloneElement)(i,{className:(0,g.A)("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,Be.jsxs)(yc.A,{size:"compact",ref:t,"aria-checked":"menuitemcheckbox"===c||"menuitemradio"===c?l:void 0,role:c,icon:"left"===s?i:void 0,className:o,accessibleWhenDisabled:!0,...d,children:[(0,Be.jsx)("span",{className:"components-menu-item__item",children:n}),!u&&(0,Be.jsx)(bc.A,{className:"components-menu-item__shortcut",shortcut:a}),!u&&i&&"right"===s&&(0,Be.jsx)(zl.A,{icon:i}),u]})});vc.displayName="MenuItem";var kc=vc,xc={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:" >
8 :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}}]}};(0,V.__)("Spacing control"),(0,V.__)("Top"),(0,V.__)("Bottom"),(0,V.__)("Left"),(0,V.__)("Right"),(0,V.__)("Mixed"),(0,V.__)("Vertical"),(0,V.__)("Horizontal"),(0,V.__)("Horizontal & vertical"),(0,V.__)("Custom");function wc(e){if(!e||"string"!=typeof e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function _c(e,t){const n=e?.inherit||e?.contentSize||e?.wideSize?{...e,type:"constrained"}:e||t||{};return["flex","grid"].includes(n?.type)}function Sc(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const r=wc(n?.top)||t,o=wc(n?.left)||t;return r===o?r:`${r} ${o}`}var Cc={name:"default",label:(0,V.__)("Flow"),hasInspectorControls:()=>!1,inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:r,layoutDefinitions:o=xc}){const i=t?.spacing?.blockGap;let s="";bl(n,"spacing","blockGap")||(i?.top?s=Sc(i?.top):"string"==typeof i&&(s=Sc(i)));let a="";return r&&s&&(a+=function(e,t=xc,n,r){let o="";return t?.[n]?.spacingStyles?.length&&r&&t[n].spacingStyles.forEach(t=>{o+=`${function(e,t=""){return e.split(",").map(e=>`${e}${t?` ${t}`:""}`).join(",")}(e,t.selector.trim())} { `,o+=Object.entries(t.rules).map(([e,t])=>`${e}: ${t||r}`).join("; "),o+="; }"}),o}(e,o,"default",s)),a},getOrientation:()=>"vertical",getAlignments(e,t){const n=function(e){const{contentSize:t,wideSize:n,type:r="default"}=e,o={},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)&&"constrained"===r&&(o.none=(0,V.nv)((0,V.__)("Max %s wide"),t)),i.test(n)&&(o.wide=(0,V.nv)((0,V.__)("Max %s wide"),n)),o}(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(e=>({name:e,info:n[e]}));const r=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:o}=e;t&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:n.wide})}return r.unshift({name:"none",info:n.none}),r}},Ac=[Cc,Tl,Tl,Tl];function Ec(e="default"){return Ac.find(t=>t.name===e)}var Ic={type:"default"},Tc=(0,b.createContext)(Ic);Tc.displayName="BlockLayoutContext";var Nc=Tc.Provider;function jc(){return(0,b.useContext)(Tc)}var Bc=[],Lc=["none","left","center","right","wide","full"],Oc=["wide","full"];function Rc(e=Lc){e.includes("none")||(e=["none",...e]);const t=1===e.length&&"none"===e[0],[n,r,o]=(0,R.A)(e=>{if(t)return[!1,!1,!1];const n=e(fl).getSettings();return[n.alignWide??!1,n.supportsLayout,n.__unstableIsBlockBasedTheme]},[t]),i=jc();if(t)return Bc;const s=Ec(i?.type);if(r){const t=s.getAlignments(i,o).filter(t=>e.includes(t.name));return 1===t.length&&"none"===t[0].name?Bc:t}if("default"!==s.name&&"constrained"!==s.name)return Bc;const a=e.filter(e=>i.alignments?i.alignments.includes(e):!(!n&&Oc.includes(e))&&Lc.includes(e)).map(e=>({name:e}));return 1===a.length&&"none"===a[0].name?Bc:a}var Mc=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M5 5H19M5 19H19",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.rw,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]}),Pc=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M5 4.75H13M5 19.25H13",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.rw,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]}),Dc=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M5 4.75H19M5 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.rw,{x:"7",y:"9",width:"10",height:"6",fill:"currentColor",stroke:"none"})]}),zc=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M11 4.75H19M11 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.rw,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]}),Fc=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.rw,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"}),(0,Be.jsx)(je.wA,{d:"M8 4.75H16M8 19.25H16",vectorEffect:"non-scaling-stroke"})]}),$c=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M8 19.25H16",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.rw,{x:"5",y:"4",width:"14",height:"11",fill:"currentColor",stroke:"none"})]}),Vc={none:{icon:Mc,title:(0,V._x)("None","Alignment option")}
8,left:{icon:Pc,title:(0,V.__)("Align left")},center:{icon:Dc,title:(0,V.__)("Align center")},right:{icon:zc,title:(0,V.__)("Align right")},wide:{icon:Fc,title:(0,V.__)("Wide width")},full:{icon:$c,title:(0,V.__)("Full width")}};var Hc=function({value:e,onChange:t,controls:n,isToolbar:r,isCollapsed:o=!0,label:i=(0,V.__)("Align block"),description:s}){const a=Rc(n);if(!!!a.length)return null;function l(n){t([e,"none"].includes(n)?void 0:n)}const c=Vc[e],u=Vc.none,d=r?Sl.A:gc,f={icon:c?c.icon:u.icon,label:i},p=r?{isCollapsed:o,controls:a.map(({name:t})=>({...Vc[t],isActive:e===t||!e&&"none"===t,role:o?"menuitemradio":void 0,onClick:()=>l(t)}))}:{toggleProps:s?{description:s}:{},children:({onClose:t})=>(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)(hc,{className:"block-editor-block-alignment-control__menu-group",children:a.map(({name:n,info:r})=>{const{icon:o,title:i}=Vc[n],s=n===e||!e&&"none"===n;return(0,Be.jsx)(kc,{icon:o,iconPosition:"left",className:(0,g.A)("components-dropdown-menu__menu-item",{"is-active":s}),isSelected:s,onClick:()=>{l(n),t()},role:"menuitemradio",info:r,children:i},n)})})})};return(0,Be.jsx)(d,{...f,...p})},Wc=e=>(0,Be.jsx)(Hc,{...e,isToolbar:!1});function Uc(e){const t=O(),{clientId:n=""}=t,r=(0,v.A)(),o=(0,R.A)(e=>n?null:e(fl).getBlockEditingMode(),[n]);return(0,b.useEffect)(()=>{if(!e)return;const{setBlockEditingMode:t,unsetBlockEditingMode:o,__unstableMarkNextChangeAsNotPersistent:i}=r.dispatch(fl);return i(),t(n,e),()=>{i(),o(n)}},[r,n,e]),n?t[E]:o}var Kc=["left","center","right","wide","full"],Gc=["wide","full"];function qc(e,t=!0,n=!0){let r;return r=Array.isArray(e)?Kc.filter(t=>e.includes(t)):!0===e?[...Kc]:[],!n||!0===e&&!t?r.filter(e=>!Gc.includes(e)):r}var Zc={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const r=Rc(qc((0,h.bI)(e,"align"),(0,h.pN)(e,"alignWide",!0))).map(({name:e})=>e),o=Uc();return r.length&&"default"===o?(0,Be.jsx)(dc,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,Be.jsx)(Wc,{value:t,onChange:t=>{if(!t){const n=(0,h.E7)(e),r=n?.attributes?.align?.default;r&&(t="")}n({align:t})},controls:r})}):null},useBlockProps:function({name:e,align:t}){const n=qc((0,h.bI)(e,"align"),(0,h.pN)(e,"alignWide",!0));if(Rc(n).some(e=>e.name===t))return{"data-align":t};return{}},addSaveProps:function(e,t,n){const{align:r}=n,o=(0,h.bI)(t,"align"),i=(0,h.pN)(t,"alignWide",!0);qc(o,i).includes(r)&&(e.className=(0,g.A)(`align${r}`,e.className));return e},attributeKeys:["align"],hasSupport:e=>(0,h.pN)(e,"align",!1)};(0,_.U2)("blocks.registerBlockType","core/editor/align/addAttribute",function(e){return"type"in(e.attributes?.align??{})||(0,h.pN)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Kc,""]}}),e});var Yc=(0,Al.QJ)("InspectorControls"),Xc=(0,Al.QJ)("InspectorAdvancedControls"),Qc=(0,Al.QJ)("InspectorControlsBindings"),Jc=(0,Al.QJ)("InspectorControlsBackground"),eu=(0,Al.QJ)("InspectorControlsBorder"),tu=(0,Al.QJ)("InspectorControlsColor"),nu=(0,Al.QJ)("InspectorControlsFilter"),ru=(0,Al.QJ)("InspectorControlsDimensions"),ou=(0,Al.QJ)("InspectorControlsLayout"),iu=(0,Al.QJ)("InspectorControlsElements"),su=(0,Al.QJ)("InspectorControlsPosition"),au=(0,Al.QJ)("InspectorControlsTypography"),lu=(0,Al.QJ)("InspectorControlsViewport"),cu=(0,Al.QJ)("InspectorControlsListView"),uu=(0,Al.QJ)("InspectorControlsStyles"),du=(0,Al.QJ)("InspectorControlsEffects"),fu={default:Yc,advanced:Xc,background:Jc,bindings:Qc,border:eu,color:tu,content:(0,Al.QJ)("InspectorControlsContent"),dimensions:ru,effects:du,elements:iu,filter:nu,layout:ou,list:cu,position:su,settings:Yc,styles:uu,typography:au,viewport:lu},pu=(0,Al.QJ)(Symbol("PrivateInspectorControlsAllowedBlocks")),mu="default",gu={viewport:mu,pseudo:mu},hu=(0,b.createContext)(gu),bu=hu.Provider;function yu(){return(0,b.useContext)(hu)}function vu(e){return!!e?.viewport&&e.viewport!==mu}function ku(e){return!!e?.pseudo&&e.pseudo!==mu}function xu(e){return!vu(e)&&!ku(e)}function wu(e){return xu(e)?[]:[e.viewport,e.pseudo].filter(e=>e&&e!==mu)}function _u(e,t){const n=wu(t);return n.length?Wt(e,n):e}function Su(e,t,n){const r=wu(t);return r.length?gl(Ht(e,r,n)):gl(n)}var Cu=Symbol("ListViewContentPopover"),{Fill:Au,Slot:Eu}=(0,Al.QJ)(Cu);var Iu=["content","list"];function Tu({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:r}){n&&((0,$.A)("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const o=O(),i=o[S],s=o[A],a=o[N],l=fu[t]?.Fill;if(!l)return(0,ac.A)(`Unknown InspectorControls group "${t}" provided.`),null;if(s){const e="core/template-part"===o.name,n=Iu.includes(t);if(!(e||n))return null}else if(!i)return null;const c="content"===t&&s&&a;return c&&!i?null:(0,Be.jsx)(Cl.A,{document,children:c?(0,Be.jsx)(Au,{children:e}):(0,Be.jsx)(l,{children:t=>(0,Be.jsx)(ju,{fillProps:t,resetAllFilter:r,children:e})})})}function Nu({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:r}=(0,b.useContext)(Tl.ToolsPanelContext),o=yu(),i=(0,b.useMemo)(()=>function(e,t){return!t||xu(e)?t:n=>{const r=_u(n?.style,e)||{},o=t({style:r}),i=o&&"object"==typeof o&&!Array.isArray(o)&&Object.prototype.hasOwnProperty.call(o,"style")?o.style:o;return{style:Su(n?.style,e,i)}}}(o,e),[e,o]);return(0,b.useEffect)(()=>
8{if(i&&n&&r)return n(i),()=>{r(i)}},[i,n,r]),t}function ju({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:r=[]}=n,o=(0,Be.jsx)(Nu,{resetAllFilter:t,children:e});return r.reduce((e,[t,n])=>(0,Be.jsx)(t,{...n,children:e}),o)}var Bu=n(9700);function Lu(e,t){if(!e||!t)return t;const n=e.split(","),r=t.split(","),o=[];return n.forEach(e=>{r.forEach(t=>{o.push(`${e.trim()} ${t.trim()}`)})}),o.join(", ")}function Ou(e){if("string"!=typeof e)return;const[,t]=e.match(/^var:preset\|duotone\|(.+)$/)??[];return t}function Ru({children:e,group:t,label:n}){const{updateBlockAttributes:r}=(0,y.A)(fl),{getBlockAttributes:o,getBlockName:i,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,R.A)(fl),c=(0,Bu.A)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},u=a(),d=(0,b.useCallback)((e=[])=>{const t={},n=l()?s():[u];n.forEach(n=>{const r=o(n)||{},{style:s}=r;let a={style:s};const l={attributes:r,clientId:n,name:i(n)};e.forEach(e=>{a={...a,...e(a,l)}}),a={...a,style:gl(a.style)},t[n]=a}),r(n,t,!0)},[o,i,s,l,u,r]);return(0,Be.jsx)(Tl.ToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:d,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:c,children:e},u)}function Mu({Slot:e,fillProps:t,...n}){const r=(0,b.useContext)(Tl.ToolsPanelContext),o=(0,b.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[Tl.ToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,Be.jsx)(e,{...n,fillProps:o,bubblesVirtually:!0})}var Pu=(0,b.forwardRef)(function({__experimentalGroup:e,group:t="default",label:n,fillProps:r,...o},i){e&&((0,$.A)("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const s=fu[t],a=sc(s?.name);if(!s)return(0,ac.A)(`Unknown InspectorControls group "${t}" provided.`),null;if(!a?.length)return null;const{Slot:l}=s;return n?(0,Be.jsx)(Ru,{group:t,label:n,children:(0,Be.jsx)(Mu,{...o,fillProps:r,Slot:l})}):(0,Be.jsx)(l,{...o,ref:i,fillProps:r,bubblesVirtually:!0})}),Du=Tu;Du.Slot=Pu;var zu=e=>(0,Be.jsx)(Tu,{...e,group:"advanced"});zu.Slot=function(e){return(0,Be.jsx)(Pu,{...e,group:"advanced"})},zu.slotName="InspectorAdvancedControls";var Fu=Du;function $u(e,t){if("string"!=typeof e)return;const n=`var:preset|${t}|`;if(e.startsWith(n))return e.slice(n.length);const r=`--wp--preset--${t}--`,o=e.match(new RegExp(`^var\\(${r}([^)]+)\\)$`));return o?.[1]}function Vu(e,t="root",n={}){if(!t)return null;const{fallback:r=!1}=n,{name:o,selectors:i,supports:s}=e,a=i&&Object.keys(i).length>0,l=Array.isArray(t)?t.join("."):t;let c=null;if(c=a&&i.root?i?.root:s?.__experimentalSelector?s.__experimentalSelector:".wp-block-"+o.replace("core/","").replace("/","-"),"root"===l)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=r?c:null;if(a){return nt(i,`${l}.root`,null)||nt(i,l,null)||e}const t=s?nt(s,`${l}.__experimentalSelector`,null):void 0;return t?at(c,t):e}let d;return a&&(d=nt(i,l,null)),d||(r?Vu(e,u[0],n):null)}var Hu=n(6089),Wu=n(3295);function Uu({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:r,fontSize:o,isLargeText:i,textColor:s,linkColor:a,messageOverride:l,enableAlphaChecker:c=!1}){const u=e||t;if(!u)return null;const d=s||n,f=a||r;if(!d&&!f)return null;const p=[{color:d,description:(0,V.__)("text color")},{color:f,description:(0,V.__)("link color")}],m=(0,We.Mj)(u),g=m.alpha()<1,h=m.brightness(),b={level:"AA",size:i||!1!==i&&o>=24?"large":"small"};let y="",v="";for(const e of p){if(!e.color)continue;const t=(0,We.Mj)(e.color),n=t.isReadable(m,b),r=t.alpha()<1;if(!n){if(g||r)continue;if(l){y=l,v=l;break}y=h<t.brightness()?(0,V.nv)( 9// translators: %s is a type of text color, e.g., "text color" or "link color". 10// translators: %s is a type of text color, e.g., "text color" or "link color". 11(0,V.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,V.nv)( 12// translators: %s is a type of text color, e.g., "text color" or "link color". 13// translators: %s is a type of text color, e.g., "text color" or "link color". 14(0,V.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),v=(0,V.__)("This color combination may be hard for people to read.");break}r&&c&&(y=(0,V.__)("Transparent text may be hard for people to read."),v=(0,V.__)("Transparent text may be hard for people to read."))}return y?{message:y,speakMessage:v}:null}(0,We.X$)([Wu.A,Hu.A]);var Ku=n(1886),Gu=n(6032),qu=(0,b.createContext)({refsMap:(0,Gu.u)(),eventHandlers:new Map});function Zu({children:e}){const t=(0,b.useMemo)(()=>({refsMap:(0,Gu.u)(),eventHandlers:new Map}),[]);return(0,Be.jsx)(qu.Provider,{value:t,children:e})}function Yu(e){const{refsMap:t}=(0,b.useContext)(qu);return(0,Ku.A)(n=>
14(t.set(e,n),()=>t.delete(e)),[e])}function Xu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Qu(e,t){const{refsMap:n}=(0,b.useContext)(qu);(0,b.useLayoutEffect)(()=>{Xu(t,n.get(e));const r=n.subscribe(e,()=>Xu(t,n.get(e)));return()=>{r(),Xu(t,null)}},[n,e,t])}function Ju(e){const[t,n]=(0,b.useState)(null);return Qu(e,n),t}function ed(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function td(e,t){if(!e||!t)return{};const n=Vu(t,"color.text",{fallback:!0}),r=Vu(t,"color.background",{fallback:!0}),o=e.querySelector(n)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=ed(o,"color"),l=s&&s.textContent?ed(s,"color"):void 0;let c=i,u=ed(c,"background-color");for(;"rgba(0, 0, 0, 0)"===u&&c.parentNode&&c.parentNode.nodeType===c.parentNode.ELEMENT_NODE;)c=c.parentNode,u=ed(c,"background-color");return{textColor:a,backgroundColor:u,linkColor:l}}function nd(e,t){return Object.keys(t).some(n=>e[n]!==t[n])?t:e}function rd({clientId:e,name:t,enabled:n=!0,checkTextColor:r=!0,checkLinkColor:o=!0,messageOverride:i}){const s=Ju(e),[a,l]=(0,b.useReducer)(nd,{}),c=(0,R.A)(e=>t&&n?e(h.M_).getBlockType(t):void 0,[t,n]);(0,b.useLayoutEffect)(()=>{n&&s&&c&&window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>l(td(s,c))))}),(0,b.useLayoutEffect)(()=>{if(!n||!s||!c)return;const e=new window.MutationObserver(()=>{l(td(s,c))});return e.observe(s,{attributes:!0,attributeFilter:["class","style"],subtree:!0}),()=>{e.disconnect()}},[n,s,c]);const u=n?Uu({backgroundColor:a.backgroundColor,textColor:r?a.textColor:void 0,linkColor:o?a.linkColor:void 0,messageOverride:i,enableAlphaChecker:!0}):null,d=u?.speakMessage;return(0,b.useEffect)(()=>{d&&(0,Ji.L)(d)},[d]),u?.message}function od(e){return(t,n)=>qe(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(Xe).join("")}(e))}function id(e){return(t,n)=>["color","style","width"].flatMap(r=>od(["border",e,r])(t,n))}qu.displayName="BlockRefsContext";var sd={name:"radius",generate:(e,t)=>Ze(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},ad={name:"backgroundImage",generate:(e,t)=>{const n=e?.background?.backgroundImage,r=Ye(e?.background?.gradient)||"";if(!n&&!r)return[];const o=[r,"object"==typeof n&&n?.url?`url( '${encodeURI(function(e){try{return decodeURI(e)}catch{return e}}(n.url))}' )`:Ye(n)].filter(Boolean).join(", ");return o?[{selector:t.selector,key:"backgroundImage",value:o}]:[]}},ld=[...[{name:"color",generate:od(["border","color"])},{name:"style",generate:od(["border","style"])},{name:"width",generate:od(["border","width"])},sd,{name:"borderTop",generate:id("top")},{name:"borderRight",generate:id("right")},{name:"borderBottom",generate:id("bottom")},{name:"borderLeft",generate:id("left")}],...[{name:"text",generate:(e,t)=>qe(e,t,["color","text"],"color")},{name:"gradient",generate:(e,t)=>qe(e,t,["color","gradient"],"background")},{name:"background",generate:(e,t)=>qe(e,t,["color","background"],"backgroundColor")}],...[{name:"height",generate:(e,t)=>qe(e,t,["dimensions","height"],"height")},{name:"minHeight",generate:(e,t)=>qe(e,t,["dimensions","minHeight"],"minHeight")},{name:"minWidth",generate:(e,t)=>qe(e,t,["dimensions","minWidth"],"minWidth")},{name:"aspectRatio",generate:(e,t)=>qe(e,t,["dimensions","aspectRatio"],"aspectRatio")},{name:"width",generate:(e,t)=>qe(e,t,["dimensions","width"],"width")},{name:"objectFit",generate:(e,t)=>qe(e,t,["dimensions","objectFit"],"objectFit")}],...[{name:"color",generate:(e,t,n=["outline","color"],r="outlineColor")=>qe(e,t,n,r)},{name:"style",generate:(e,t,n=["outline","style"],r="outlineStyle")=>qe(e,t,n,r)},{name:"offset",generate:(e,t,n=["outline","offset"],r="outlineOffset")=>qe(e,t,n,r)},{name:"width",generate:(e,t,n=["outline","width"],r="outlineWidth")=>qe(e,t,n,r)}],...[{name:"margin",generate:(e,t)=>Ze(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},{name:"padding",generate:(e,t)=>Ze(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})}],...[{name:"fontFamily",generate:(e,t)=>
14qe(e,t,["typography","fontFamily"],"fontFamily")},{name:"fontSize",generate:(e,t)=>qe(e,t,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(e,t)=>qe(e,t,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(e,t)=>qe(e,t,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(e,t)=>qe(e,t,["typography","letterSpacing"],"letterSpacing")},{name:"lineHeight",generate:(e,t)=>qe(e,t,["typography","lineHeight"],"lineHeight")},{name:"textColumns",generate:(e,t)=>qe(e,t,["typography","textColumns"],"columnCount")},{name:"textDecoration",generate:(e,t)=>qe(e,t,["typography","textDecoration"],"textDecoration")},{name:"textIndent",generate:(e,t)=>qe(e,t,["typography","textIndent"],"textIndent")},{name:"textShadow",generate:(e,t)=>qe(e,t,["typography","textShadow"],"textShadow")},{name:"textTransform",generate:(e,t)=>qe(e,t,["typography","textTransform"],"textTransform")},{name:"writingMode",generate:(e,t)=>qe(e,t,["typography","writingMode"],"writingMode")}],...[{name:"shadow",generate:(e,t)=>qe(e,t,["shadow"],"boxShadow")}],...[ad,{name:"backgroundPosition",generate:(e,t)=>qe(e,t,["background","backgroundPosition"],"backgroundPosition")},{name:"backgroundRepeat",generate:(e,t)=>qe(e,t,["background","backgroundRepeat"],"backgroundRepeat")},{name:"backgroundSize",generate:(e,t)=>qe(e,t,["background","backgroundSize"],"backgroundSize")},{name:"backgroundAttachment",generate:(e,t)=>qe(e,t,["background","backgroundAttachment"],"backgroundAttachment")}]];function cd(e,t={}){const n=ud(e,t);if(!t?.selector){const e=[];return n.forEach(t=>{e.push(`${(0,Ue.c)(t.key)}: ${t.value};`)}),e.join(" ")}const r=n.reduce((e,t)=>{const{selector:n}=t;return n?(e[n]||(e[n]=[]),e[n].push(t),e):e},{});return Object.keys(r).reduce((e,t)=>(e.push(`${t} { ${r[t].map(e=>`${(0,Ue.c)(e.key)}: ${e.value};`).join(" ")} }`),e),[]).join("\n")}function ud(e,t={}){const n=[];return ld.forEach(r=>{"function"==typeof r.generate&&n.push(...r.generate(e,t))}),n}function dd(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 fd(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function pd(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const r=fd(n?.top)||t,o=fd(n?.left)||t;return r===o?r:`${r} ${o}`}var md="cover",gd="50% 50%";function hd(e){if(!e||!function(e){return"object"==typeof e&&null!==e&&"url"in e&&!!e.url}(e.backgroundImage))return;let t;return e?.backgroundSize||(t={backgroundSize:md}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(t={backgroundPosition:gd}),t}var bd={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}}]}},yd={"@mobile":"mobile","@tablet":"tablet","-current":"@current"};function vd(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function kd(e){if(!vd(e))return e;let t=e;
14return Object.entries(yd).forEach(([n,r])=>{Object.hasOwn(e,r)&&(t===e&&(t={...e}),Object.hasOwn(e,n)||(t[n]=e[r]),delete t[r])}),Object.entries(t).forEach(([n,r])=>{if(!vd(r))return;const o=kd(r);o!==r&&(t===e&&(t={...e}),t[n]=o)}),t}function xd(e){if(!globalThis.IS_GUTENBERG_PLUGIN)return e;if(!e?.styles)return e;const t=kd(e.styles);return t===e.styles?e:{...e,styles:t}}var wd={button:"wp-element-button",caption:"wp-element-caption"},_d={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},Sd={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},Cd={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]};function Ad(e={},t="",n,r={},o=!1){const i=rt===t,s=Object.entries(h.RY).reduce((t,[r,{value:o,properties:s,useEngine:a,rootOnly:l}])=>{if(l&&!i)return t;const c=o;if("elements"===c[0]||a)return t;const u=nt(e,c);if("--wp--style--root--padding"===r&&("string"==typeof u||!n))return t;if(s&&"string"!=typeof u)Object.entries(s).forEach(e=>{const[n,r]=e;if(!nt(u,[r],!1))return;const o=n.startsWith("--")?n:dd(n);t.push(`${o}: ${Ye(nt(u,[r]))}`)});else if(nt(e,c,!1)){const n=r.startsWith("--")?r:dd(r);t.push(`${n}: ${Ye(nt(e,c))}`)}return t},[]);e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=dt(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...hd(e.background)}}));return ud(e).forEach(e=>{if(i&&(n||o)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:dd(e.key);let a=dt(e.value,r);"font-size"===t&&(a=tt({name:"",slug:"",size:a},r?.settings)),"aspect-ratio"===t&&s.push("min-height: unset"),s.push(`${t}: ${a}`)}),s}var Ed=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function Id(e,t,n){if(!e)return{};const r=Object.entries(e),o=t?Sd[t]??[]:[],i=r.filter(([e])=>Ed.includes(e)||o.includes(e)||n[e]).map(([e,t])=>[e,JSON.parse(JSON.stringify(t))]);return Object.fromEntries(i)}function Td(e){const{styles:t,selector:n,featureSelectors:r,name:o,elementName:i,mediaQuery:s,variationName:a}=e,l=o?Sd[o]??[]:Cd[i??""]??[];return l.length?l.flatMap(e=>{const l=t?.[e];return l&&"object"==typeof l?[{styles:JSON.parse(JSON.stringify(l)),selector:n,selectorSuffix:e,mediaQuery:s,featureSelectors:r&&"string"!=typeof r?r:void 0,name:o,elementName:i,variationName:a}]:[]}):[]}function Nd(e,t){const n={...e?.elements??{}};return Object.keys(t).forEach(t=>{Object.entries(e?.[t]?.elements??{}).forEach(([e,r])=>{n[e]={...n[e]??{},[t]:r}})}),n}var jd=(e,t)=>{const n=[];if(!e?.styles)return n;const r=He(e),o=function(e,t){return Id(e,void 0,t)}(e.styles,r);return o&&n.push({styles:o,selector:rt,skipSelectorWrapper:!0}),Object.entries(h.dB).forEach(([t,r])=>{e.styles?.elements?.[t]&&n.push({styles:e.styles?.elements?.[t]??{},selector:r,elementName:t,skipSelectorWrapper:!wd[t]})}),Object.entries(e.styles?.blocks??{}).forEach(([e,o])=>{const i=Id(o,e,r),s=o,a=[],l=[];s?.variations&&Object.entries(s.variations).forEach(([n,o])=>{const i=o,s=Id(i,e,r);i?.css&&(s.css=i.css);const c="string"!=typeof t?t[e]?.styleVariationSelectors?.[n]:void 0;if(c&&"string"!=typeof t){const r=t[e];l.push({styles:s,selector:c,featureSelectors:r?.featureSelectors,fallbackGapValue:r?.fallbackGapValue,hasLayoutSupport:r?.hasLayoutSupport,isStyleVariation:!0,variationName:n,layoutSelector:c+r.selector,layoutHasBlockGapSupport:!0,name:e})}Object.entries(Nd(i,r)).forEach(([e,t])=>{t&&h.dB[e]&&a.push({styles:t,selector:at(c,h.dB[e]),elementName:e,isStyleVariation:!0})}),Object.entries(i?.blocks??{}).forEach(([e,n])=>{const o="string"!=typeof t?at(c,t[e]?.selector):void 0,i="string"!=typeof t?at(c,t[e]?.duotoneSelector):void 0,s="string"!=typeof t?function(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach(([t,r])=>{"string"==typeof r&&(n[t]=at(e,r)),"object"==typeof r&&(n[t]={},Object.entries(r).forEach(([r,o])=>{n[t][r]=at(e,o)}))}),n}(c,t[e]?.featureSelectors??{}):void 0,l=Id(n,e,r);n?.css&&(l.css=n.css),o&&"string"!=typeof t&&(a.push({selector:o,name:e,isStyleVariation:!0,duotoneSelector:i,featureSelectors:s,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:l}
14),Object.entries(Nd(n,r)).forEach(([e,t])=>{t&&h.dB[e]&&a.push({styles:t,selector:at(o,h.dB[e]),elementName:e,isStyleVariation:!0})}))})}),"string"!=typeof t&&t?.[e]?.selector&&n.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:i,featureSelectors:t[e].featureSelectors,name:e}),n.push(...l),Object.entries(Nd(s,r)).forEach(([r,o])=>{"string"!=typeof t&&o&&t?.[e]&&h.dB[r]&&n.push({styles:o,selector:t[e]?.selector.split(",").map(e=>h.dB[r].split(",").map(t=>e+" "+t)).join(","),elementName:r})}),n.push(...a)}),n},Bd=(e,t)=>{const n=[];if(!e?.settings)return n;const r=e=>{let t={};return st.forEach(({path:n})=>{const r=nt(e,n,!1);!1!==r&&(t=function(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const r=t.pop();let o=e;for(const e of t){const t=o[e];o=o[e]=Array.isArray(t)?[...t]:{...t}}return o[r]=n,e}(t,n,r))}),t},o=r(e.settings),i=e.settings?.custom;return(Object.keys(o).length>0||i)&&n.push({presets:o,custom:i,selector:ot}),Object.entries(e.settings?.blocks??{}).forEach(([e,o])=>{const i=o.custom;if("string"==typeof t||!t[e])return;const s=r(o);(Object.keys(s).length>0||i)&&n.push({presets:s,custom:i,selector:t[e]?.selector,featureSelectors:t[e]?.featureSelectors})}),n};function Ld(e,{tree:t,useRootPaddingAlign:n,disableLayoutStyles:r,hasBlockGapSupport:o,hasFallbackGapSupport:i,disableRootPadding:s}){const{selector:a,selectorSuffix:l,mediaQuery:c,duotoneSelector:u,styles:d,fallbackGapValue:f,hasLayoutSupport:p,featureSelectors:m,layoutSelector:g,layoutHasBlockGapSupport:h,skipSelectorWrapper:b,name:y,variationName:v}=e;let k="";const x=l?lt(a,l):a;if(m&&"string"!=typeof m){let e=((e,t)=>{const n={};return Object.entries(e).forEach(([e,r])=>{if("root"===e||!t?.[e])return;const o="string"==typeof r;if(o||"object"!=typeof r||null===r||Object.entries(r).forEach(([r,o])=>{if("root"===r||!t?.[e][r])return;const i=Ad({[e]:{[r]:t[e][r]}});n[o]=[...n[o]||[],...i],delete t[e][r]}),o||"object"==typeof r&&null!==r&&"root"in r){const i=o?r:r.root,s=Ad({[e]:t[e]});n[i]=[...n[i]||[],...s],delete t[e]}}),n})(m,d);e=((e,t,n)=>{if("core/paragraph"!==n)return e;const r=t?.blocks?.["core/paragraph"];if("all"!==(r?.typography?.textIndent??t?.typography?.textIndent??"subsequent"))return e;const o=".wp-block-paragraph + .wp-block-paragraph";if(o in e){const t=e[o],n={...e};return delete n[o],n[".wp-block-paragraph"]=t,n}return e})(e,t.settings,y),e=((e,t)=>{const n=".wp-block-button";if(!(n in e))return e;const r={...e};return r[n]=r[n].map(e=>{const n=e.match(/^width:\s*(.+)$/);if(!n)return e;const r=n[1];let o=null;r.endsWith("%")&&(o=parseFloat(r));const i="var(--wp--preset--dimension--";if(null===o&&r.startsWith(i)&&r.endsWith(")")){const e=r.slice(29,-1),n={...t?.dimensions?.dimensionSizes??{},...t?.blocks?.["core/button"]?.dimensions?.dimensionSizes??{}};for(const t of Object.values(n))if(Array.isArray(t)){for(const n of t)if(n.slug===e&&"string"==typeof n.size&&n.size.endsWith("%")){o=parseFloat(n.size);break}if(null!==o)break}}return null===o||isNaN(o)?e:`width: calc(${o} * 1% - (var(--wp--style--block-gap, 0.5em) * (1 - ${o} / 100)))`}),r})(e,t.settings),Object.entries(e).forEach(([e,t])=>{if(t.length){let n=v?function(e,t){const n=`.is-style-${e}`,r=it(t).map(e=>{const t=e.trim(),r=`${n} `;return t.startsWith(r)?t.slice(r.length):t});return ct(e,r.join(","))}(v,e):e;n=l?lt(n,l):n;const r=t.join(";");k+=`:root :where(${n}){${r};}`}})}if(u){const e={};d?.filter&&(e.filter=d.filter,delete d.filter);const t=Ad(e);t.length&&(k+=`${u}{${t.join(";")};}`)}const w=g??x;r||rt!==w&&!p||(k+=function({layoutDefinitions:e=bd,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:o,fallbackGapValue:i}){let s="";const a=t?.spacing?.blockGap;let l=r?pd(a):"";o&&(n===rt?l=l||"0.5em":!r&&i&&(l=i));const c=r&&a&&"string"!=typeof a?pd(a.top):l;if(l&&e&&(Object.values(e).forEach(({className:e,name:t,spacingStyles:o})=>{if(!r&&"flex"!==t&&"grid"!==t)return;const i=["default","constrained"].includes(t)?c:l;o?.length&&o.forEach(t=>{const o=[];
14if(t.rules&&Object.entries(t.rules).forEach(([e,t])=>{o.push(`${e}: ${t||i}`)}),o.length){let i="";i=r?n===rt?`:root :where(.${e})${t?.selector||""}`:`:root :where(${n}-${e})${t?.selector||""}`:n===rt?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,s+=`${i} { ${o.join("; ")}; }`}})}),n===rt&&r&&(s+=`${ot} { --wp--style--block-gap: ${l}; }`)),n===rt&&e){const t=["block","flex","grid"];Object.values(e).forEach(({className:e,displayMode:r,baseStyles:o})=>{r&&t.includes(r)&&(s+=`${n} .${e} { display:${r}; }`),o?.length&&o.forEach(t=>{const n=[];t.rules&&Object.entries(t.rules).forEach(([e,t])=>{n.push(`${e}: ${t}`)}),n.length&&(s+=`.${e}${t?.selector||""} { ${n.join("; ")}; }`)})})}return s}({style:d,selector:w,hasBlockGapSupport:h??o,hasFallbackGapSupport:i,fallbackGapValue:f}));const _=Ad(d,x,n,t,s);if(_?.length){k+=`${b?x:`:root :where(${x})`}{${_.join(";")};}`}return d?.css&&(k+=Md(d.css,`:root :where(${x})`)),c&&k?`${c}{${k}}`:k}var Od=(e,t,n,r,o=!1,i=!1,s={})=>{const a={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},l=xd(e),c=jd(l,t),u=Bd(l,t),d=l?.settings?.useRootPaddingAwareAlignments,{contentSize:f,wideSize:p}=l?.settings?.layout||{},m=a.marginReset||a.rootPadding||a.layoutStyles;let g="";if(a.presets&&(f||p)&&(g+=`${ot} {`,g=f?g+` --wp--style--global--content-size: ${f};`:g,g=p?g+` --wp--style--global--wide-size: ${p};`:g,g+="}"),m&&(g+=":where(body) {margin: 0;",a.rootPadding&&d&&(g+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t"),g+="}"),a.blockStyles){const t=He(e);c.forEach(e=>{if(e.isStyleVariation&&!a.variationStyles)return;const s=function(e,t){const{styles:n,selector:r,fallbackGapValue:o,featureSelectors:i,hasLayoutSupport:s,layoutHasBlockGapSupport:a,layoutSelector:l,name:c,elementName:u,isStyleVariation:d,variationName:f}=e;return c||u?Object.entries(t).flatMap(([e,t])=>{const p=n?.[e];return p&&"object"==typeof p?[{styles:JSON.parse(JSON.stringify(p)),selector:r,mediaQuery:t,featureSelectors:i&&"string"!=typeof i?i:void 0,fallbackGapValue:o,hasLayoutSupport:s,name:c,elementName:u,isStyleVariation:d,variationName:f,layoutSelector:l,layoutHasBlockGapSupport:a}]:[]}):[]}(e,t);[e,...s,...Td(e),...s.flatMap(Td)].forEach(e=>{g+=Ld(e,{tree:l,useRootPaddingAlign:d,disableLayoutStyles:o,hasBlockGapSupport:n,hasFallbackGapSupport:r,disableRootPadding:i})})})}if(a.layoutStyles&&(g+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&n){const e=pd(l?.styles?.spacing?.blockGap)||"0.5em";g+=`:root :where(.wp-site-blocks) > * { margin-block-start: ${e}; margin-block-end: 0; }`,g+=":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g+=":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&u.forEach(({selector:e,presets:t})=>{rt!==e&&ot!==e||(e="");const n=function(e="*",t={}){return st.reduce((n,{path:r,cssVarInfix:o,classes:i})=>{if(!i)return n;const s=nt(t,r,[]);return["default","theme","custom"].forEach(t=>{s[t]&&s[t].forEach(({slug:t})=>{i.forEach(({classSuffix:r,propertyName:i})=>{const s=`.has-${dd(t)}-${r}`,a=e?`:where(${e})${s}`:s,l=`var(--wp--preset--${o}--${dd(t)})`;n+=`${a}{${i}: ${l} !important;}`})})}),n},"")}(e,t);n.length>0&&(g+=n)}),g};var Rd=(e,t)=>{const{getBlockStyles:n}=(0,F.L)(h.M_),r={};
14return e.forEach(e=>{const o=e.name,i=Vu(e);if(!i)return;let s=Vu(e,"filter.duotone");if(!s){const t=Vu(e),n=(0,h.bI)(e,"color.__experimentalDuotone",!1);"string"==typeof n&&t&&(s=at(t,n))}const a=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,l=e?.supports?.spacing?.blockGap,c="object"!=typeof l||Array.isArray(l)?void 0:l.__experimentalDefault,u=n(o),d={};u?.forEach(e=>{const n=t?`-${t}`:"",r=`${e.name}${n}`,o=ct(r,i);d[r]=o});const f=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(_d).forEach(([t,r])=>{const o=Vu(e,t);o&&(n[r]=o)}),n})(e,i);r[o]={duotoneSelector:s??void 0,fallbackGapValue:c,featureSelectors:Object.keys(f).length?f:void 0,hasLayoutSupport:a,name:o,selector:i,styleVariationSelectors:u?.length?d:void 0}}),r};function Md(e,t){let n="";if(!e||""===e.trim())return n;return e.split("&").forEach(e=>{if(!e||""===e.trim())return;if(!e.includes("{"))n+=`:root :where(${t}){${e.trim()}}`;else{const r=e.replace("}","").split("{");if(2!==r.length)return;const[o,i]=r,s=o.match(/([>+~\s]*::[a-zA-Z-]+)/),a=s?s[1]:"",l=s?o.replace(a,"").trim():o.trim();let c;c=""===l?t:o.startsWith(" ")?at(t,l):lt(t,l),n+=`:root :where(${c})${a}{${i.trim()}}`}}),n}var{getVariationStyle:Pd}=ue(Pt),Dd="is-style-";function zd(e){return e?e.split(/\s+/).reduce((e,t)=>{if(t.startsWith(Dd)){const n=t.slice(9);"default"!==n&&e.push(n)}return e},[]):[]}function Fd(e,t=[]){const n=zd(e);if(!n)return null;for(const e of n)if(t.some(t=>t.name===e))return e;return null}function $d({override:e}){kl(e)}var Vd={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>zd(e).length>0,useBlockProps:function({name:e,className:t,clientId:n}){const{getBlockStyles:r}=(0,R.A)(h.M_),o=Fd(t,r(e)),i=`${Dd}${o}-${n}`,{settings:s,styles:a}=function(e,t,n){const{globalSettings:r,globalStyles:o}=(0,R.A)(e=>{const t=e(fl).getSettings();return{globalSettings:t.__experimentalFeatures,globalStyles:t[G]}},[]);return(0,b.useMemo)(()=>{const i=Pd({settings:r,styles:o},e,t);return{settings:r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:i}}}}}},[r,o,t,n,e])}(e,o,n),l=(0,b.useMemo)(()=>{if(!o)return;const e={settings:s,styles:a},t=Rd((0,h.li)(),n);return Od(e,t,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[o,s,a,n]);return kl({id:`variation-${n}`,css:l,__unstableType:"variation",variation:o,clientId:n}),o?{className:i}:{}}},Hd=(0,b.createContext)({});function Wd({value:e,children:t}){const n=(0,b.useContext)(Hd),r=(0,b.useMemo)(()=>({...n,...e}),[n,e]);return(0,Be.jsx)(Hd.Provider,{value:r,children:t})}Hd.displayName="BlockContext";var Ud=Hd;var{resolveStyle:Kd}=ue(Pt),Gd={value:void 0,sources:void 0};var qd={"core/accordion-heading":{contextKey:"core/accordion-heading-level",fallbackLevel:3}};function Zd(e,t,n){const r=qd[e];return r?t||n||r.fallbackLevel:t}function Yd(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 0===t?[]: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 Xd(e,t){const{clientId:n}=O(),r=function(e){const t=(0,b.useContext)(Ud),n=qd[e]?.contextKey;return n?t[n]:void 0}(e);return(0,R.A)(o=>{if(!e)return{variationName:null,headingLevel:void 0};const i=o(h.M_).getBlockStyles(e),{level:s}=o(fl).getBlockAttributes(n)||{};return{variationName:t?Fd(t,i):null,headingLevel:Zd(e,s,r)}},[e,t,n,r])}function Qd(e,t,n=null){const{variationName:r,headingLevel:o}=Xd(e,t),i=function(){const{rawGlobalStylesData:e,links:t}=(0,R.A)(e=>{const t=e(fl).getSettings();return{rawGlobalStylesData:t[G]??null,links:t[q]??null}},[]);return(0,b.useMemo)(()=>e?{styles:e,_links:t??void 0}:null,[e,t])}();return(0,b.useMemo)(()=>window.__experimentalGlobalStylesInheritanceUI?e?Kd(i,{blockName:e,variationName:r,elements:Yd(e,o),viewport:n?.viewport??null,pseudoState:n?.pseudo??null}):{value:{},sources:{}}:Gd,[e,r,o,i,n])}var Jd="background",ef={backgroundSize:"cover",backgroundPosition:"50% 50%"};function tf(e,t="any"){const n=(0,h.bI)(e,Jd);return!0===n||("any"===t?!!(n?.backgroundImage||n?.backgroundSize||n?.backgroundRepeat||n?.gradient):!!n?.[t])}function nf(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:ef.backgroundSize}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(t={backgroundPosition:ef.backgroundPosition}),t}
14function rf(e){return(0,Tl.hasBackgroundImageValue)(e)||(0,Tl.hasBackgroundGradientValue)(e)?"has-background":""}function of(e){const t=e.className?.includes("has-background")?e.className.split(" ").filter(e=>"has-background"!==e).join(" ")||void 0:e.className;return{...e,className:t,backgroundColor:void 0,gradient:void 0,style:gl({...e.style,background:void 0,color:{...e.style?.color,background:void 0,gradient:void 0}})}}function sf({children:e}){return(0,Be.jsx)(Fu,{group:"background",resetAllFilter:of,children:e})}function af({clientId:e,name:t,setAttributes:n,settings:r,asWrapper:o}){const i=yu(),{style:s,className:a,backgroundColor:l,gradient:c}=(0,R.A)(t=>{const{getBlockAttributes:n}=t(fl),r=n(e);return{style:r?.style,className:r?.className,backgroundColor:r?.backgroundColor,gradient:r?.gradient}},[e]),{value:u}=Qd(t,a,i),d=tf(t,"gradient")&&!!r?.background?.gradient,f=(0,h.bI)(t,"color"),p=f&&!1!==f.background,m=!!f?.gradients,b=!xu(i),y={...s,color:{...s?.color,background:l?"var:preset|color|"+l:s?.color?.background,gradient:!d&&c?"var:preset|gradient|"+c:s?.color?.gradient},...d&&{background:{...s?.background,gradient:c?"var:preset|gradient|"+c:s?.background?.gradient??s?.color?.gradient}}},v=b?_u(s,i):y,k=!v?.color?.gradient&&!v?.background?.gradient&&!!v?.color?.background&&(r?.color?.text||r?.color?.link)&&!1!==(0,h.bI)(t,["color","enableContrastChecker"]),x=rd({clientId:e,name:t,enabled:!!k,messageOverride:(0,V.__)("This color combination has poor contrast. Consider increasing contrast between background and foreground.")});if(!(0,Tl.useHasBackgroundPanel)(r)||!tf(t)&&!p&&!m)return null;const w={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&tf(t,"backgroundSize")}},_=(0,h.bI)(t,[Jd,"__experimentalDefaultControls"]),S=(0,h.bI)(t,["color","__experimentalDefaultControls"]),C={..._,backgroundColor:S?.background,gradient:_?.gradient??S?.background},A=o||sf;return(0,Be.jsx)(Tl,{as:A,panelId:e,defaultValues:ef,settings:w,onChange:e=>{if(b)return void n({style:Su(s,i,e)});const t=e?.color?.background,r=$u(t,"color"),o=d?e?.background?.gradient:e?.color?.gradient,l=$u(o,"gradient"),c=l?void 0:e?.color?.gradient,u={...e,color:{...e?.color,background:r?void 0:t,gradient:d?void 0:c}};d&&(u.background={...u.background,gradient:e?.background?.gradient});const f=d&&!!s?.color?.gradient,p={style:gl(u),backgroundColor:r,gradient:d?void 0:l},m=!!l||!!o;f&&m?p.className=(0,g.A)(a,"has-background"):!m&&a?.includes("has-background")&&(p.className=a.split(" ").filter(e=>"has-background"!==e).join(" ")||void 0),n(p)},defaultControls:C,value:b?_u(s,i):y,contrastWarning:x,inheritedValue:u})}var lf={useBlockProps:function({name:e,style:t}){if(!tf(e)||!t?.background?.backgroundImage)return;const n=nf(t?.background);return n?{style:{...n}}:void 0},attributeKeys:["style"],hasSupport:tf};(0,_.U2)("blocks.registerBlockType","core/lock/addAttribute",function(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e});var cf=n(9179),uf=n(6930),df=n(1541),ff=n(1207);var pf=(0,cf.KZ)(function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=(0,df.A)(e,"VStack");return(0,ff.A)({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,Be.jsx)(uf.A,{...n,ref:t})},"VStack"),mf=n(8162),gf=n(2474),hf=n(7886),bf=n(5339),yf="data-wp-hash";function vf(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=vf();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)kf(e,n,r)}(document)),e.__wpStyleRuntime}function kf(e,t,n){if(!e.head)return;const r=vf();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${yf}]`))if(n.getAttribute(yf)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(yf,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}function xf(e,t){const n=vf();n.styles.set(e,t);for(const r of n.documents.keys())kf(r,e,t)}xf("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);
14--_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);
14--_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 wf={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"};xf("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var _f="_43cec3e1eec1066d__p",Sf="e97669c6d9a38497__heading",Cf=(0,b.forwardRef)(function({variant:e="body-md",render:t,className:n,...r},o){return(0,hf.C)({render:t,defaultTagName:"span",ref:o,props:(0,bf.v6)(r,{className:(0,g.A)(wf.text,Sf,_f,wf[e],n)})})}),Af=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M7.75 16.25L16.25 7.75M16.25 16.25L7.75 7.75",vectorEffect:"non-scaling-stroke"})}),Ef=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z",vectorEffect:"non-scaling-stroke"})}),If=n(9321);var Tf=(0,cf.KZ)(function(e,t){const n=(0,df.A)(e,"InputControlPrefixWrapper");return(0,Be.jsx)(If.bC,{...n,isPrefix:!0,ref:t})},"InputControlPrefixWrapper"),Nf=n(8501),jf="data-wp-hash";function Bf(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=Bf();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)Lf(e,n,r)}(document)),e.__wpStyleRuntime}function Lf(e,t,n){if(!e.head)return;const r=Bf();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${jf}]`))if(n.getAttribute(jf)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(jf,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=Bf();n.styles.set(e,t);for(const r of n.documents.keys())Lf(r,e,t)})("77f847972d","._5e6152f7430df331__input input[type=search]::-webkit-search-cancel-button,._5e6152f7430df331__input input[type=search]::-webkit-search-decoration,._5e6152f7430df331__input input[type=search]::-webkit-search-results-button,._5e6152f7430df331__input input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}
14._9a856163f1b1aaae__icon:dir(ltr){transform:scaleX(-1)}");var Of="_5e6152f7430df331__input",Rf="_9a856163f1b1aaae__icon";function Mf({searchRef:e,onChange:t,onClose:n}){n&&(0,$.A)("`onClose` prop in wp.components.SearchControl",{since:"6.8"});return(0,Be.jsx)(Nf.i,{variant:"control",children:(0,Be.jsx)(yc.A,{size:"small",icon:Af,label:n?(0,V.__)("Close search"):(0,V.__)("Reset search"),onClick:n??(()=>{t(""),e.current?.focus()})})})}var Pf=(0,b.forwardRef)(function({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,className:n,onChange:r,value:o,label:i=(0,V.__)("Search"),placeholder:s=(0,V.__)("Search"),hideLabelFromVision:a=!0,onClose:l,size:c="default",...u},d){const{disabled:f,...p}=u,m=(0,b.useRef)(null),h=(0,Ul.A)(Pf,"components-search-control"),y=!!l||!!o;return(0,Be.jsx)(Vl.Ay,{id:h,hideLabelFromVision:a,label:i,ref:(0,$l.A)([m,d]),type:"search",size:c,className:(0,g.A)(Of,"components-search-control",n),onChange:e=>r(e??""),autoComplete:"off",placeholder:s,value:o??"",prefix:(0,Be.jsx)(Tf,{variant:"icon",children:(0,Be.jsx)(zl.A,{className:Rf,icon:Ef,fill:"currentColor"})}),suffix:y&&(0,Be.jsx)(Mf,{searchRef:m,onChange:r,onClose:l}),...p})});Pf.displayName="SearchControl";var Df=Pf,zf=n(3715);function Ff(e,t){var n=(0,b.useState)(function(){return{inputs:t,result:e()}})[0],r=(0,b.useRef)(!0),o=(0,b.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,b.useEffect)(function(){r.current=!1,o.current=i},[i]),i.result}var $f=(e,t,n)=>{let r,o,i,s,a,l=0,c=0,u=!1,d=!1,f=!0;function p(t){const n=r,s=o;return r=void 0,o=void 0,c=t,i=e.apply(s,n),i}function m(e,t){s=setTimeout(e,t)}function g(e){return e-(a||0)}function h(e){const n=g(e);return void 0===a||n>=t||n<0||d&&e-c>=l}function b(){const e=Date.now();if(h(e))return v(e);m(b,function(e){const n=g(e),r=e-c,o=t-n;return d?Math.min(o,l-r):o}(e))}function y(){s=void 0}function v(e){return y(),f&&r?p(e):(r=o=void 0,i)}function k(){return void 0!==s}function x(...e){const n=Date.now(),s=h(n);if(r=e,o=this,a=n,s){if(!k())return function(e){return c=e,m(b,t),u?p(e):i}(a);if(d)return m(b,t),p(a)}return k()||m(b,t),i}return n&&(u=!!n.leading,d="maxWait"in n,void 0!==n.maxWait&&(l=Math.max(n.maxWait,t)),f="trailing"in n?!!n.trailing:f),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,y(),r=a=o=void 0},x.flush=function(){return k()?v(Date.now()):i},x.pending=k,x};function Vf(e,t,n){const r=Ff(()=>$f(e,t??0,n),[e,t,n?.leading,n?.trailing,n?.maxWait]);return(0,b.useEffect)(()=>()=>r.cancel(),[r]),r}var Hf=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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 Wf=(0,b.memo)(function({icon:e,showColors:t=!1,className:n,context:r}){"block-default"===e?.src&&(e={src:Hf});const o=(0,Be.jsx)(zl.A,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,Be.jsx)("span",{style:i,className:(0,g.A)("block-editor-block-icon",n,{"has-colors":t}),children:o})});var Uf=function({blockTypes:e,value:t,onItemChange:n}){return(0,Be.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(e=>(0,Be.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,Be.jsx)(zf.A,{label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e,...t)}),(0,Be.jsx)(Wf,{icon:e.icon})]},e.name))})};var Kf=function e({title:t,blockTypes:n,selectedBlockTypes:r,onChange:o}){const i=(0,Ul.A)(e),s=(0,b.useCallback)((e,t)=>{o(t?[...r,e]:r.filter(({name:t})=>t!==e.name))},[r,o]),a=(0,b.useCallback)(e=>{o(e?[...r,...n.filter(e=>!r.find(({name:t})=>t===e.name))]:r.filter(e=>!n.find(({name:t})=>t===e.name)))},[n,r,o]);if(!n.length)return null;const l=n.map(({name:e})=>e).filter(e=>(r??[]).some(t=>t.name===e)),c="block-editor-block-manager__category-title-"+i,u=l.length===n.length,d=!u&&l.length>0;return(0,Be.jsxs)("div",{role:"group","aria-labelledby":c,className:"block-editor-block-manager__category",children:[(0,Be.jsx)(zf.A,{checked:u,onChange:a,className:"block-editor-block-manager__category-title",indeterminate:d,label:(0,Be.jsx)("span",{id:c,children:t})}),(0,Be.jsx)(Uf,{blockTypes:n,value:l,onItemChange:s})]})};function Gf({blockTypes:e,selectedBlockTypes:t,onChange:n,showSelectAll:r=!0}){const o=Vf(Ji.L,500),[i,s]=(0,b.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,R.A)(e=>({categories:e(h.M_).getCategories(),isMatchingSearchTerm:e(h.M_).isMatchingSearchTerm}
14),[]),c=e.filter(e=>!i||l(e,i)),u=t.length>0&&t.length!==e.length,d=e.length>0&&t.length===e.length;return(0,b.useEffect)(()=>{if(!i)return;const e=c.length,t=(0,V.nv)( 15/* translators: %d: number of results. */ 16/* translators: %d: number of results. */ 17(0,V._n)("%d result found.","%d results found.",e),e);o(t)},[c?.length,i,o]),(0,Be.jsxs)(pf,{className:"block-editor-block-manager__content",spacing:4,children:[(0,Be.jsx)(Df,{label:(0,V.__)("Search for a block"),placeholder:(0,V.__)("Search for a block"),value:i,onChange:e=>s(e),className:"block-editor-block-manager__search"}),r&&(0,Be.jsx)(zf.A,{className:"block-editor-block-manager__select-all",label:(0,V.__)("Select all"),checked:d,onChange:()=>{n(d?[]:e)},indeterminate:u}),(0,Be.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,V.__)("Available block types"),className:"block-editor-block-manager__results",children:[0===c.length&&(0,Be.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,V.__)("No blocks found.")}),a.map(e=>(0,Be.jsx)(Kf,{title:e.title,blockTypes:c.filter(t=>t.category===e.slug),selectedBlockTypes:t,onChange:n},e.slug)),(0,Be.jsx)(Kf,{title:(0,V.__)("Uncategorized"),blockTypes:c.filter(({category:e})=>!e),selectedBlockTypes:t,onChange:n})]})]})}function qf({clientId:e,blockTypes:t,selectedBlockTypes:n,onClose:r}){const[o,i]=(0,b.useState)(n),{updateBlockAttributes:s}=(0,y.A)(fl);return(0,Be.jsx)(Tl,{title:(0,V._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,Be.jsxs)(pf,{as:"form",onSubmit:n=>{n.preventDefault(),(()=>{const n=o.length===t.length,i=o.map(({name:e})=>e);s(e,{allowedBlocks:n?void 0:i}),r()})()},spacing:"4",children:[(0,Be.jsx)(Cf,{children:(0,V.__)("Select which blocks can be added inside this container.")}),(0,Be.jsx)(Gf,{blockTypes:t,selectedBlockTypes:o,onChange:e=>{i(e)}}),(0,Be.jsxs)(mf.A,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,V.__)("Cancel")})}),(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,V.__)("Apply")})})]})]})})}function Zf({clientId:e}){const[t,n]=(0,b.useState)(!1),{blockTypes:r,selectedBlockNames:o}=(0,R.A)(t=>{const{getBlockAttributes:n}=t(fl);return{blockTypes:t(h.M_).getBlockTypes(),selectedBlockNames:n(e)?.allowedBlocks}},[e]),i=r.filter(e=>(0,h.pN)(e,"inserter",!0)&&(!e.parent||e.parent.includes("core/post-content")));if(!i)return null;const s=void 0===o?i:i.filter(e=>o.includes(e.name));return(0,Be.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,Be.jsxs)(Wl.Ay,{help:(0,V.__)("Specify which blocks are allowed inside this container."),children:[(0,Be.jsx)(Wl.Ay.VisualLabel,{children:(0,V.__)("Allowed Blocks")}),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{n(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,V.__)("Manage allowed blocks")})]}),t&&(0,Be.jsx)(qf,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>n(!1)})]})}var Yf={edit:function({clientId:e}){return"contentOnly"===Uc()?null:(0,Be.jsx)(pu.Fill,{children:(0,Be.jsx)(Zf,{clientId:e})})},attributeKeys:["allowedBlocks"],hasSupport:e=>(0,h.pN)(e,"allowedBlocks")};(0,_.U2)("blocks.registerBlockType","core/allowedBlocks/attribute",function(e){return e?.attributes?.allowedBlocks?.type||(0,h.pN)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}),(0,_.U2)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",function(e,t,n,r){if(!(0,h.pN)(e.name,"allowedBlocks"))return e;if(1!==t.length&&1===r.length&&e.innerBlocks.length===t.length)return e;if(1===r.length&&t.length>1||r.length>1&&1===t.length)return e;if(r.length>1&&t.length>1&&r.length!==t.length)return e;if(e.attributes.allowedBlocks)return e;const o=t[n]?.attributes?.allowedBlocks;
17if(!o)return e;const i=(0,h.E7)(e.name),s=i?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:o}};const a=o.filter(e=>s.includes(e));return{...e,attributes:{...e.attributes,allowedBlocks:a}}});var Xf=n(3533);var Qf=(0,b.forwardRef)(function(e,t){const{href:n,children:r,className:o,...i}=e,s=(0,g.A)("components-external-link",o),a=!!n?.startsWith("#");return(0,Be.jsxs)("a",{...i,className:s,href:n,onClick:t=>{a&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",ref:t,children:[(0,Be.jsx)("span",{className:"components-external-link__contents",children:r}),(0,Be.jsx)("span",{className:(0,g.A)("components-external-link__icon","wp-exclude-emoji"),"aria-label": 18/* translators: accessibility text */ 19/* translators: accessibility text */(0,V.__)("(opens in a new tab)"),children:(0,V.V8)()?"â":"â"})]})});Qf.displayName="ExternalLink";var Jf=Qf,ep=/[\s#]/g;var tp={addSaveProps:function(e,t,n){(0,h.pN)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor);return e},edit:function({anchor:e,setAttributes:t}){return"default"!==Uc()?null:(0,Be.jsx)(Fu,{group:"advanced",children:(0,Be.jsx)(Xf.A,{className:"html-anchor-control",label:(0,V.__)("HTML anchor"),help:(0,Be.jsxs)(Be.Fragment,{children:[(0,V.__)("Enter a word or twoâwithout spacesâto make a unique web address just for this block, called an âanchorâ. Then, youâll be able to link directly to this section of your page.")," ",(0,Be.jsx)(Jf,{href:(0,V.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,V.__)("Learn more about anchors")})]}),value:e||"",placeholder:null,onChange:e=>{e=e.replace(ep,"-"),t({anchor:""!==e?e:void 0})},autoCapitalize:"none",autoComplete:"off"})})},attributeKeys:["anchor"],hasSupport:e=>(0,h.pN)(e,"anchor")};(0,_.U2)("blocks.registerBlockType","core/anchor/attribute",function(e){return"type"in(e.attributes?.anchor??{})||(0,h.pN)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e});var np={addSaveProps:function(e,t,n){return(0,h.pN)(t,"ariaLabel")&&!bl(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:["ariaLabel"],hasSupport:e=>(0,h.pN)(e,"ariaLabel")};(0,_.U2)("blocks.registerBlockType","core/ariaLabel/attribute",function(e){return e?.attributes?.ariaLabel?.type||(0,h.pN)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e});var rp={edit:function({className:e,setAttributes:t}){return"default"!==Uc()?null:(0,Be.jsx)(Fu,{group:"advanced",children:(0,Be.jsx)(Xf.A,{autoComplete:"off",label:(0,V.__)("Additional CSS class(es)"),value:e||"",onChange:e=>{t({className:""!==e?e:void 0})},help:(0,V.__)("Separate multiple classes with spaces.")})})},addSaveProps:function(e,t,n){(0,h.pN)(t,"customClassName",!0)&&n.className&&(e.className=(0,g.A)(e.className,n.className));return e},attributeKeys:["className"],hasSupport:e=>(0,h.pN)(e,"customClassName",!0)};(0,_.U2)("blocks.registerBlockType","core/editor/custom-class-name/attribute",function(e){return(0,h.pN)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}),(0,_.U2)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",function(e,t,n,r){if(!(0,h.pN)(e.name,"customClassName",!0))return e;if(1===r.length&&e.innerBlocks.length===t.length)return e;if(1===r.length&&t.length>1||r.length>1&&1===t.length)return e;if(t[n]){const r=t[n]?.attributes.className;if(r&&void 0===e.attributes.className)return{...e,attributes:{...e.attributes,className:r}}}return e}),(0,_.U2)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",function(e,t){return(0,h.pN)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,h.KW)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,h.KW)(t.name)),e});var op=n(3764),ip=n(7160);function sp(e,t){return op(xd(e),xd(t),{isMergeableObject:ip.Q,customMerge:e=>{if("backgroundImage"===e)return(e,t)=>t??e}})}function ap(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),(0,Ue.c)(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}(0,We.X$)([Wu.A,Hu.A]);var lp=(e,t,n)=>{if(t){const n=e?.find(e=>e.slug===t);if(n)return n}return{color:n}},cp=(e,t)=>e?.find(e=>e.color===t);function up(e,t){if(e&&t)return`has-${ap(t)}-${e}`}var dp="__experimentalBorder",fp="shadow",pp=(e,t,n)=>{let r;return e.some(e=>e.colors.some(e=>e[t]===n&&(r=e,!0))),r},mp=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=pp(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const r=pp(e,"color",n);return r||{color:n}};function gp(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function hp(e){if((0,Tl.hasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,r={...e};return r.border={...r.border,color:n?void 0:t},{style:gl(r),borderColor:n}}function bp(e){return(0,Tl.hasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function yp({label:e,children:t,resetAllFilter:n}
19){const r=(0,b.useCallback)(e=>{const t=bp(e),r=n(t);return{...e,...hp(r)}},[n]);return(0,Be.jsx)(Fu,{group:"border",resetAllFilter:r,label:e,children:t})}function vp({clientId:e,name:t,setAttributes:n,settings:r}){const o=yu(),i=(0,Tl.useHasBorderPanel)(r),{style:s,borderColor:a,className:l}=(0,R.A)(t=>{if(!i)return{};const{style:n,borderColor:r,className:o}=t(fl).getBlockAttributes(e)||{};return{style:n,borderColor:r,className:o}},[e,i]),{value:c}=Qd(t,l,o),u=!xu(o),d=(0,b.useMemo)(()=>u?_u(s,o):bp({style:s,borderColor:a}),[u,o,s,a]),f=u?e=>{n({style:Su(s,o,e)})}:e=>{n(hp(e))};if(!i)return null;const p={...(0,h.bI)(t,[dp,"__experimentalDefaultControls"]),...(0,h.bI)(t,[fp,"__experimentalDefaultControls"])};return(0,Be.jsx)(Tl.BorderPanel,{as:yp,panelId:e,settings:r,value:d,onChange:f,defaultControls:p,inheritedValue:c})}function kp(e,t="any"){const n=(0,h.bI)(e,dp);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function xp(e,t,n){if(!kp(t,"color")||bl(t,dp,"color"))return e;const r=function(e){const{borderColor:t,style:n}=e,r=up("border-color",t);return(0,g.A)({"has-border-color":t||n?.border?.color,[r]:!!r})}(n),o=(0,g.A)(e.className,r);return e.className=o||void 0,e}var wp={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:r}=function(){const[e,t,n,r,o,i,s,a,l,c]=ml("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"),u={disableCustomColors:!e,disableCustomGradients:!i};return u.colors=(0,b.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:(0,V._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:n}),o&&r&&r.length&&e.push({name:(0,V._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&e.push({name:(0,V._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),e},[t,n,r,o]),u.gradients=(0,b.useMemo)(()=>{const e=[];return a&&a.length&&e.push({name:(0,V._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),c&&l&&l.length&&e.push({name:(0,V._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&e.push({name:(0,V._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),e},[s,a,l,c]),u.hasColorsOrGradients=!!u.colors.length||!!u.gradients.length,u}();if(!kp(e,"color")||bl(e,dp,"color"))return{};const{color:o}=mp({colors:r,namedColor:t}),{color:i}=mp({colors:r,namedColor:gp(n?.border?.top?.color)}),{color:s}=mp({colors:r,namedColor:gp(n?.border?.right?.color)}),{color:a}=mp({colors:r,namedColor:gp(n?.border?.bottom?.color)}),{color:l}=mp({colors:r,namedColor:gp(n?.border?.left?.color)});return xp({style:gl({borderTopColor:i||o,borderRightColor:s||o,borderBottomColor:a||o,borderLeftColor:l||o})||{}},e,{borderColor:t,style:n})},addSaveProps:xp,attributeKeys:["borderColor","style"],hasSupport:e=>kp(e,"color")};function _p(e){if(e)return`has-${e}-gradient-background`}(0,_.U2)("blocks.registerBlockType","core/border/addAttributes",function(e){return kp(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e});var Sp="color",Cp=e=>{const t=(0,h.bI)(e,Sp);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Ap=e=>{const t=(0,h.bI)(e,Sp);return null!==t&&"object"==typeof t&&!!t.link},Ep=e=>{const t=(0,h.bI)(e,Sp);return null!==t&&"object"==typeof t&&!!t.gradients},Ip=e=>{const t=(0,h.bI)(e,Sp);return t&&!1!==t.background},Tp=e=>{const t=(0,h.bI)(e,Sp);return t&&!1!==t.text};function Np(e,t,n){if(!Cp(t)||bl(t,Sp))return e;const r=Ep(t),{backgroundColor:o,textColor:i,gradient:s,style:a}=n,l=e=>!bl(t,Sp,e),c=l("text")?up("color",i):void 0,u=l("gradients")?_p(s):void 0,d=l("background")?up("background-color",o):void 0,f=l("background")||l("gradients"),p=o||a?.color?.background||r&&(s||a?.color?.gradient),m=(0,g.A)(e.className,c,u,{[d]:!(r&&a?.color?.gradient||!d),"has-text-color":l("text")&&(i||a?.color?.text),"has-background":f&&p,"has-link-color":l("link")&&a?.elements?.link?.color});return e.className=m||void 0,e}var jp={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:r,style:o}){const[i,s,a]=ml("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,b.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!Cp(e)||bl(e,Sp))return{};const c={};n&&!bl(e,Sp,"text")&&(c.color=lp(l,n)?.color),t&&!bl(e,Sp,"background")&&(c.backgroundColor=lp(l,t)?.color);const u=Np({style:c},e,{textColor:n,backgroundColor:t,gradient:r,style:o}),d=t||o?.color?.background||r||o?.color?.gradient;return{...u,className:(0,g.A)(u.className,!d&&rf(o))}},addSaveProps:Np,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:Cp},Bp={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Lp({children:e,resetAllFilter:t}){const n=(0,b.useCallback)(e=>{const n=t(e.style);return{...e,style:gl(n)}},[t]);return(0,Be.jsx)(Fu,{group:"elements",resetAllFilter:n,children:e})}function Op({clientId:e,name:t,setAttributes:n,settings:r,asWrapper:o,label:i,defaultControls:s}){const a=yu(),l=(0,Tl.useHasColorPanel)(r),{style:c,className:u}=(0,R.A)(t=>{if(!l)return{};const n=t(fl).getBlockAttributes(e);return{style:n?.style,className:n?.className}},[e,l]),{value:d}=Qd(t,u,a),f=!xu(a),p=(0,b.useMemo)(()=>f?_u(c,a):c,[f,a,c]),m=f?e=>{n({style:Su(c,a,e)})}:e=>{n({style:gl(e)})},g=!!p?.elements?.link?.color?.text&&r?.color?.link&&!1!==(0,h.bI)(t,[Sp,"enableContrastChecker"]),y=rd({clientId:e,name:t,enabled:!!g,checkTextColor:!1,messageOverride:(0,V.__)("This link color has poor contrast against the background. Consider increasing contrast.")});if(!l)return null;s=s||(0,h.bI)(t,[Sp,"__experimentalDefaultControls"]);const v=o||Lp;return(0,Be.jsx)(Tl,{as:v,panelId:e,settings:r,value:p,onChange:m,defaultControls:s,label:i,contrastWarning:y,inheritedValue:d})}(0,_.U2)("blocks.registerBlockType","core/color/addAttribute",function(e){return Cp(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Ep(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e}),(0,_.U2)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",function(e,t,n,r){const o=e.name;return hl({linkColor:Ap(o),textColor:Tp(o),backgroundColor:Ip(o),gradient:Ep(o)},Bp,e,t,n,r)});var Rp="typography.lineHeight";var Mp=class{_currentValue;_valueAsArray;constructor(e=""){this._currentValue="",this._valueAsArray=[],this.value=e}entries(...e){return this._valueAsArray.entries(...e)}forEach(...e){return this._valueAsArray.forEach(...e)}keys(...e){return this._valueAsArray.keys(...e)}values(...e){return this._valueAsArray.values(...e)}get value(){return this._currentValue}set value(e){e=String(e),this._valueAsArray=[...new Set(e.split(/\s+/g).filter(
19Boolean))],this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(e){return this._valueAsArray[e]}contains(e){return-1!==this._valueAsArray.indexOf(e)}add(...e){this.value+=" "+e.join(" ")}remove(...e){this.value=this._valueAsArray.filter(t=>!e.includes(t)).join(" ")}toggle(e,t){return void 0===t&&(t=!this.contains(e)),t?this.add(e):this.remove(e),t}replace(e,t){return!!this.contains(e)&&(this.remove(e),this.add(t),!0)}supports(e){return!0}},Pp="typography.__experimentalFontFamily";function Dp(e,t,n){if(!(0,h.pN)(t,Pp))return e;if(bl(t,bm,"fontFamily"))return e;if(!n?.fontFamily)return e;const r=new Mp(e.className);r.add(`has-${ap(n?.fontFamily)}-font-family`);const o=r.value;return e.className=o||void 0,e}var zp={useBlockProps:function({name:e,fontFamily:t}){return Dp({},e,{fontFamily:t})},addSaveProps:Dp,attributeKeys:["fontFamily"],hasSupport:e=>(0,h.pN)(e,Pp)};(0,_.U2)("blocks.registerBlockType","core/fontFamily/addAttribute",function(e){return(0,h.pN)(e,Pp)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e});var Fp=(e,t,n)=>{if(t){const n=e?.find(({slug:e})=>e===t);if(n)return n}return{size:n}};function $p(e){if(e)return`has-${ap(e)}-font-size`}var Vp="typography.fontSize";function Hp(e,t,n){if(!(0,h.pN)(t,Vp))return e;if(bl(t,bm,"fontSize"))return e;const r=new Mp(e.className);r.add($p(n.fontSize));const o=r.value;return e.className=o||void 0,e}var Wp={useBlockProps:function({name:e,fontSize:t,style:n}){const[r,o,i]=ml("typography.fontSizes","typography.fluid","layout");if(!(0,h.pN)(e,Vp)||bl(e,bm,"fontSize")||!t&&!n?.typography?.fontSize)return;let s;return n?.typography?.fontSize&&(s={style:{fontSize:tt({size:n.typography.fontSize},{typography:{fluid:o},layout:i})}}),t&&(s={style:{fontSize:Fp(r,t,n?.typography?.fontSize).size}}),s?Hp(s,e,{fontSize:t}):void 0},addSaveProps:Hp,attributeKeys:["fontSize","style"],hasSupport:e=>(0,h.pN)(e,Vp)},Up={fontSize:[["fontSize"],["style","typography","fontSize"]]};(0,_.U2)("blocks.registerBlockType","core/font/addAttribute",function(e){return(0,h.pN)(e,Vp)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e}),(0,_.U2)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",function(e,t,n,r){const o=e.name;return hl({fontSize:(0,h.pN)(o,Vp)},Up,e,t,n,r)});var Kp=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M4 5H13M4 12H20M4 19H13",vectorEffect:"non-scaling-stroke"})}),Gp=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M7.5 5H16.5M4 12H20M7.5 19H16.5",vectorEffect:"non-scaling-stroke"})}),qp=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M11 5H20M4 12H20M11 19H20",vectorEffect:"non-scaling-stroke"})}),Zp="typography.textAlign",Yp=[{icon:Kp,title:(0,V.__)("Align text left"),align:"left"},{icon:Gp,title:(0,V.__)("Align text center"),align:"center"},{icon:qp,title:(0,V.__)("Align text right"),align:"right"}],Xp=["left","center","right"],Qp=[];function Jp(e){return Array.isArray(e)?Xp.filter(t=>e.includes(t)):!0===e?Xp:Qp}var em={edit:function({clientId:e,style:t,name:n,setAttributes:r}){const o=xl(n),i=o?.typography?.textAlign,s=Uc(),{selectedState:a,isResponsiveEditing:l}=(0,R.A)(t=>{const{getSelectedBlockStyleState:n,isResponsiveEditing:r}=ue(t(fl));return{selectedState:n(e),isResponsiveEditing:r()}},[e]);if(!i||"default"!==s)return null;const c=Jp((0,h.bI)(n,Zp));if(!c.length)return null;const u=Yp.filter(e=>c.includes(e.align)),d=_u(t,a),f=function(e,t){return e&&vu(t)?"style-state":"block"}(l,a);return(0,Be.jsx)(dc,{group:f,children:(0,Be.jsx)(Tl.AlignmentControl,{value:d?.typography?.textAlign,onChange:e=>{const n={...d,typography:{...d?.typography,textAlign:e}};r({style:Su(t,a,n)})}
19,alignmentControls:u})})},useBlockProps:function({name:e,style:t}){if(!t?.typography?.textAlign)return null;if(!Jp((0,h.bI)(e,Zp)).length)return null;if(bl(e,bm,"textAlign"))return null;const n=t.typography.textAlign;return{className:(0,g.A)({[`has-text-align-${n}`]:n})}},addSaveProps:function(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:r}=n.style.typography,o=(0,h.bI)(t,Zp);Jp(o).includes(r)&&!bl(t,bm,"textAlign")&&(e.className=(0,g.A)(`has-text-align-${r}`,e.className));return e},attributeKeys:["style"],hasSupport:e=>(0,h.pN)(e,Zp,!1)};var tm=n(8036);function nm(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let r=0,o=2400,i=r;const s=window.getComputedStyle(e);let a=parseFloat(s.paddingLeft)||0,l=parseFloat(s.paddingRight)||0;const c=document.createRange();c.selectNodeContents(e);let u=e;const d=e.parentElement;if(d){const e=window.getComputedStyle(d);"flex"===e?.display&&(u=d,a+=parseFloat(e.paddingLeft)||0,l+=parseFloat(e.paddingRight)||0)}let f=u.clientHeight;for(;r<=o;){const s=Math.floor((r+o)/2);t(s);const d=c.getBoundingClientRect().width,p=e.scrollWidth<=u.clientWidth&&d<=u.clientWidth-a-l,m=n||e.scrollHeight<=u.clientHeight||e.scrollHeight<=f;u.clientHeight>f&&(f=u.clientHeight),p&&m?(i=s,r=s+1):o=s-1}return c.detach(),i}(e,t);return t(n),n}var rm=n(621),om=n(2557),im=()=>{};function sm(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function am(e){switch(e){case"warning":return(0,V.__)("Warning notice");case"info":return(0,V.__)("Information notice");case"error":return(0,V.__)("Error notice");default:return(0,V.__)("Notice")}}var lm=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=im,isDismissible:i=!0,actions:s=[],politeness:a=sm(t),__unstableHTML:l,onDismiss:c=im}){!function(e,t){const n="string"==typeof e?e:(0,rm.Ay)(e);(0,b.useEffect)(()=>{n&&(0,Ji.L)(n,t)},[n,t])}(r,a);const u=(0,g.A)(e,"components-notice","is-"+t);return l&&"string"==typeof n&&(n=(0,Be.jsx)(om.A,{children:n})),(0,Be.jsxs)("div",{className:u,children:[(0,Be.jsx)(Gl.A,{children:am(t)}),(0,Be.jsx)("div",{className:"components-notice__content",children:n}),s.length>0&&(0,Be.jsx)("div",{className:"components-notice__actions",children:s.map(({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s,disabled:a},l)=>{let c=r;return"primary"===r||o||(c=s?"link":"secondary"),void 0===c&&n&&(c="primary"),(0,Be.jsx)(yc.A,{size:"compact",href:s,variant:c,onClick:i,disabled:a,accessibleWhenDisabled:!0,className:(0,g.A)("components-notice__action",e),children:t},l)})}),i&&(0,Be.jsx)(yc.A,{size:"small",className:"components-notice__dismiss",icon:Af,label:(0,V.__)("Close"),onClick:()=>{c(),o()}})]})};function cm(){const e=(0,V.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,b.useEffect)(()=>{(0,Ji.L)(e)},[e]),(0,Be.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,Be.jsx)(lm,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var um={},dm="typography.fitText";function fm({clientId:e,fitText:t=!1,setAttributes:n,name:r,fontSize:o,style:i}){const s=(0,R.A)(t=>{const{hasSelectedStyleState:n}=ue(t(fl));return n(e)},[e]);return(0,h.pN)(r,dm)?s?null:(0,Be.jsx)(Tl.ToolsPanelItem,{hasValue:()=>t,label:(0,V.__)("Fit text"),onDeselect:()=>n({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,Be.jsx)(tm.A,{label:(0,V.__)("Fit text"),checked:t,onChange:()=>{const e=!t||void 0,r={fitText:e};e&&(o&&(r.fontSize=void 0),i?.typography?.fontSize&&(r.style={...i,typography:{...i?.typography,fontSize:void 0}})),n(r)},help:t?(0,V.__)("Text will resize to fit its container."):(0,V.__)("The text will resize to fit its container, resetting other font size settings.")})}):null}(0,_.U2)("blocks.registerBlockType","core/fit-text/addAttribute",function(e){return(0,h.pN)(e,dm)?e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}:e});function pm({fitText:e,name:t,clientId:n,isSelected:r}){const{fontSize:o}=function({fitText:e,name:t,clientId:n}
19){const[r,o]=(0,b.useState)(null),i=(0,h.pN)(t,dm),s=Ju(n),{blockAttributes:a,parentId:l,blockMode:c}=(0,R.A)(t=>{if(!n||!i||!e)return um;const r=t(fl).getBlockMode(n);return"html"===r?{blockMode:r}:{blockAttributes:t(fl).getBlockAttributes(n),parentId:t(fl).getBlockRootClientId(n),blockMode:r}},[n,i,e]),u=(0,b.useCallback)(()=>{if(!s||!i||!e)return;const t=`fit-text-${n}`;let r=s.ownerDocument.getElementById(t);r||(r=s.ownerDocument.createElement("style"),r.id=t,s.ownerDocument.head.appendChild(r));const a=`#block-${n}`,l=nm(s,e=>{r.textContent=0===e?"":`${a} { font-size: ${e}px !important; }`});o(l)},[s,n,i,e]);return(0,b.useEffect)(()=>{if(!(e&&s&&n&&i&&"html"!==c))return;const t=s,r=t.style.visibility;let o,a=null,l=null,d=null;return a=window.requestAnimationFrame(()=>{t.style.visibility="hidden",l=window.requestAnimationFrame(()=>{u(),d=setTimeout(()=>{t.style.visibility=r},10)})}),window.ResizeObserver&&t.parentElement&&(o=new window.ResizeObserver(u),o.observe(t.parentElement),o.observe(t)),()=>{null!==a&&window.cancelAnimationFrame(a),null!==l&&window.cancelAnimationFrame(l),null!==d&&clearTimeout(d),o&&o.disconnect();const e=`fit-text-${n}`,r=t.ownerDocument.getElementById(e);r&&r.remove()}},[e,n,l,u,s,i,c]),(0,b.useEffect)(()=>{if(e&&s&&i&&"html"!==c){const e=window.requestAnimationFrame(()=>{s&&u()});return()=>window.cancelAnimationFrame(e)}},[a,e,u,s,i,c]),{fontSize:r}}({fitText:e,name:t,clientId:n});return r&&o&&o<12?(0,Be.jsx)(Fu,{group:"typography",children:(0,Be.jsx)(cm,{})}):null}var mm=x(e=>function(t){const{name:n,attributes:r,clientId:o,isSelected:i,setAttributes:s}=t,{fitText:a}=r;return(0,h.pN)(n,dm)?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(e,{...t}),(0,Be.jsx)(Fu,{group:"typography",children:(0,Be.jsx)(fm,{clientId:o,fitText:a,setAttributes:s,name:n,fontSize:r.fontSize,style:r.style})}),a&&(0,Be.jsx)(pm,{fitText:a,name:n,clientId:o,isSelected:i})]}):(0,Be.jsx)(e,{...t})},"addFitTextControl");(0,_.U2)("editor.BlockEdit","core/fit-text/add-fit-text-control",mm);var gm={useBlockProps:function({name:e,fitText:t}){return t&&(0,h.pN)(e,dm)?{className:"has-fit-text"}:{}},addSaveProps:function(e,t,n){if(!(0,h.pN)(t,dm))return e;const{fitText:r}=n;if(!r)return e;const o=e.className?`${e.className} has-fit-text`:"has-fit-text";return{...e,className:o}},attributeKeys:["fitText","fontSize","style"],hasSupport:e=>(0,h.pN)(e,dm),edit:()=>null};function hm(e,t){return Object.fromEntries(Object.entries(e).filter(([e])=>!t.includes(e)))}var bm="typography",ym=[Rp,Vp,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",Pp,Zp,"typography.textColumns","typography.__experimentalTextDecoration","typography.textIndent","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing",dm];function vm(e){const t={...hm(e,["fontFamily"])},n=e?.typography?.fontSize,r=e?.typography?.fontFamily,o=e?.color?.text,i="string"==typeof n&&n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,s=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0,a=$u(o,"color");return t.typography={...hm(t.typography,["fontFamily"]),fontSize:i?void 0:n},t.color={...t.color,text:a?void 0:o},{style:gl(t),fontFamily:s,fontSize:i,textColor:a}}function km(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 xm({children:e,resetAllFilter:t}){const n=(0,b.useCallback)(e=>{const n=km(e),r=t(n);return{...e,...vm(r)}},[t]);return(0,Be.jsx)(Fu,{group:"typography",resetAllFilter:n,children:e})}function wm({clientId:e,name:t,setAttributes:n,settings:r,asWrapper:o}){const i=yu(),s=(0,Tl.useHasTypographyPanel)(r),{style:a,fontFamily:l,fontSize:c,fitText:u,textColor:d,className:f}=(0,R.A)(t=>{if(!s)return{};const{style:n,fontFamily:r,fontSize:o,fitText:i,textColor:a,className:l}=t(fl).getBlockAttributes(e)||{};return{style:n,fontFamily:r,fontSize:o,fitText:i,textColor:a,className:l}},[e,s]),p=!xu(i),{value:m}=Qd(t,f,i),g=(0,b.useMemo)(()=>p?_u(a,i):km({style:a,fontFamily:l,fontSize:c,textColor:d}),[p,i,a,c,l,d]),y=p?e=>{n({style:Su(a,i,e)})}:e=>{const t=vm(e);(t.fontSize||t.style?.typography?.fontSize)&&u&&(t.fitText=void 0),n(t)},v=!g?.color?.gradient&&!!g?.color?.text&&r?.color?.text&&!1!==(0,h.bI)(t,["color","enableContrastChecker"]),k=rd({clientId:e,name:t,enabled:!!v,checkLinkColor:!1,messageOverride:(0,V.__)("This color has poor contrast against the background. Consider increasing contrast.")});if(!s)return null;const x=(0,h.bI)(t,[bm,"__experimentalDefaultControls"]),w=(0,h.bI)(t,["color","__experimentalDefaultControls"]),_={...x,textColor:w?.text},S=o||xm;return(0,Be.jsx)(Tl,{as:S,panelId:e,settings:r,value:g,onChange:y,defaultControls:_,contrastWarning:k,inheritedValue:m})}var _m=n(1218),Sm=n(9562),Cm=n(8218);function Am(e){return(0,Cm.e)(e.ownerDocument.defaultView,"element.ownerDocument.defaultView"),e.ownerDocument.defaultView.getComputedStyle(e)}function Em(e,t="vertical"){if(e){if(("vertical"===t||"all"===t)&&e.scrollHeight>e.clientHeight){const{overflowY:t}=Am(e);
19if(/(auto|scroll)/.test(t))return e}if(("horizontal"===t||"all"===t)&&e.scrollWidth>e.clientWidth){const{overflowX:t}=Am(e);if(/(auto|scroll)/.test(t))return e}return e.ownerDocument===e.parentNode?e:Em(e.parentNode,t)}}var Im=new WeakMap;var Tm=function(e){const t=(0,Ku.A)(t=>{function n(n){const{deltaX:r,deltaY:o,target:i}=n,s=e.current;let a=Im.get(s);a||(a=Em(s),Im.set(s,a));const l=Em(i);t.contains(l)||a.scrollBy(r,o)}const r={passive:!0};return t.addEventListener("wheel",n,r),()=>{t.removeEventListener("wheel",n,r)}},[e]);return e?t:null},Nm=".block-editor-block-list__block",jm=".block-list-appender",Bm=".block-editor-button-block-appender";function Lm(e,t){return e.closest(Nm)===t.closest(Nm)}function Om(e,t){return t.closest([Nm,jm,Bm].join(","))===e}function Rm(e,t){const{anchorNode:n,focusNode:r}=e;if(!n||!r)return;const o=n.nodeType===n.ELEMENT_NODE?n:n.parentElement,i=o?.closest('[contenteditable="true"]');return i&&i!==t&&i.contains(r)?i:void 0}function Mm(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Nm);return t?t.id.slice(6):void 0}function Pm(e,t){const n=Math.min(e.left,t.left),r=Math.max(e.right,t.right),o=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(n,i,r-n,o-i)}function Dm(e){const t=e.ownerDocument.defaultView;if(!t)return!1;if(e.hasAttribute("data-visually-hidden"))return!1;const n=e.getBoundingClientRect();if(0===n.width||0===n.height)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});const r=t.getComputedStyle(e);return"none"!==r.display&&"hidden"!==r.visibility&&"0"!==r.opacity}function zm(e){const t=window.getComputedStyle(e);return"auto"===t.overflowX||"scroll"===t.overflowX||"auto"===t.overflowY||"scroll"===t.overflowY}var Fm=["core/navigation"];function $m(e){const t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let n=e.getBoundingClientRect();const r=e.getAttribute("data-type");if(r&&Fm.includes(r)){const t=[e];let r;for(;r=t.pop();)if(!zm(r))for(const e of r.children)if(Dm(e)){n=Pm(n,e.getBoundingClientRect()),t.push(e)}}const o=Math.max(n.left,0),i=Math.min(n.right,t.innerWidth);return n=new window.DOMRectReadOnly(o,n.top,i-o,n.height),n}var Vm=Number.MAX_SAFE_INTEGER;var Hm=(0,b.forwardRef)(function({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:r,__unstableContentRef:o,shift:i=!0,...s},a){const l=Ju(e),c=Ju(t??e),u=(0,$l.A)([a,Tm(o)]),[d,f]=(0,b.useReducer)(e=>(e+1)%Vm,0);(0,b.useLayoutEffect)(()=>{if(!l)return;let e;const t=new window.MutationObserver(()=>{e||(e=window.requestAnimationFrame(()=>{e=null,f()}))});return t.observe(l,{attributes:!0}),()=>{t.disconnect(),e&&window.cancelAnimationFrame(e)}},[l]);const p=(0,b.useMemo)(()=>{if(!(d<0||!l||t&&!c))return{getBoundingClientRect:()=>c?Pm($m(l),$m(c)):$m(l),contextElement:l}},[d,l,t,c]);return!l||t&&!c?null:(0,Be.jsx)(Sm.Ay,{ref:u,animate:!1,focusOnMount:!1,anchor:p,__unstableSlotName:r,inline:!r,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:(0,g.A)("block-editor-block-popover",s.className),variant:"unstyled",children:n})});(0,b.forwardRef)(({clientId:e,bottomClientId:t,children:n,...r},o)=>(0,Be.jsx)(Hm,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:o,children:n}));function Wm({selectedElement:e,additionalStyles:t={},children:n}){const[r,o]=(0,b.useState)(e.offsetWidth),[i,s]=(0,b.useState)(e.offsetHeight);(0,b.useEffect)(()=>{const t=new window.ResizeObserver(()=>{o(e.offsetWidth),s(e.offsetHeight)});return t.observe(e,{box:"border-box"}),()=>t.disconnect()},[e]);const a=(0,b.useMemo)(()=>({position:"absolute",width:r,height:i,...t}),[r,i,t]);return(0,Be.jsx)("div",{style:a,children:n})}var Um=(0,b.forwardRef)(function({clientId:e,bottomClientId:t,children:n,shift:r=!1,additionalStyles:o,...i},s){t??=e;const a=Ju(e);return(0,Be.jsx)(Hm,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,Be.jsx)(Wm,{selectedElement:a,additionalStyles:o,children:n}):n})});function Km({clientId:e,value:t,computeStyle:n,forceShow:r}){const o=Ju(e),[i,s]=(0,b.useReducer)(()=>n(o));(0,b.useEffect)(()=>{o&&r&&s()},[o,r]),(0,b.useEffect)(()=>
19{if(!o)return;const e=new window.MutationObserver(s);return e.observe(o,{attributes:!0,attributeFilter:["style","class"]}),()=>{e.disconnect()}},[o]);const a=(0,b.useRef)(t),[l,c]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if((0,_m.hw)(t,a.current)||r)return;c(!0),a.current=t;const e=setTimeout(()=>{c(!1)},400);return()=>{c(!1),clearTimeout(e)}},[t,r]),l||r?(0,Be.jsx)(Um,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,Be.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})}):null}function Gm(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function qm({clientId:e,value:t,forceShow:n}){return(0,Be.jsx)(Km,{clientId:e,value:t?.spacing?.margin,computeStyle:e=>{const t=Gm(e,"margin-top"),n=Gm(e,"margin-right"),r=Gm(e,"margin-bottom"),o=Gm(e,"margin-left");return{borderTopWidth:t,borderRightWidth:n,borderBottomWidth:r,borderLeftWidth:o,top:t?`-${t}`:0,right:n?`-${n}`:0,bottom:r?`-${r}`:0,left:o?`-${o}`:0}},forceShow:n})}function Zm({clientId:e,value:t,forceShow:n}){return(0,Be.jsx)(Km,{clientId:e,value:t?.spacing?.padding,computeStyle:e=>({borderTopWidth:Gm(e,"padding-top"),borderRightWidth:Gm(e,"padding-right"),borderBottomWidth:Gm(e,"padding-bottom"),borderLeftWidth:Gm(e,"padding-left")}),forceShow:n})}var Ym="dimensions",Xm="spacing";function Qm({children:e,resetAllFilter:t}){const n=(0,b.useCallback)(e=>{const n=e.style,r=t(n);return{...e,style:r}},[t]);return(0,Be.jsx)(Fu,{group:"dimensions",resetAllFilter:n,children:e})}function Jm({clientId:e,name:t,setAttributes:n,settings:r}){const o=yu(),i=!xu(o),s=(0,Tl.useHasDimensionsPanel)(r,o),{style:a,className:l,layout:c}=(0,R.A)(t=>{if(!s)return{};const n=t(fl).getBlockAttributes(e)||{};return{style:n.style,className:n.className,layout:n.layout}},[e,s]),{value:u}=Qd(t,l,o),[d,f]=function(){const[e,t]=(0,b.useState)(!1),{hideBlockInterface:n,showBlockInterface:r}=ue((0,y.A)(fl));return(0,b.useEffect)(()=>{e?n():r()},[e,r,n]),[e,t]}(),p=i?_u(a,o):a,m=i?e=>{n({style:Su(a,o,e)})}:e=>{n({style:gl(e)})};if(!s)return null;const g=(0,h.bI)(t,[Ym,"__experimentalDefaultControls"]),v=(0,h.bI)(t,[Xm,"__experimentalDefaultControls"]),{default:k}=(0,h.bI)(t,"layout")||{},x={minHeight:!1,minWidth:!1,...g,...v};return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Tl.DimensionsPanel,{as:Qm,panelId:e,settings:r,allowAxialBlockGap:_c(c,k),value:p,onChange:m,defaultControls:x,styleState:o,onVisualize:i?void 0:f,inheritedValue:u}),!i&&!!r?.spacing?.padding&&"padding"===d&&(0,Be.jsx)(Zm,{forceShow:"padding"===d,clientId:e,value:p}),!i&&!!r?.spacing?.margin&&"margin"===d&&(0,Be.jsx)(qm,{forceShow:"margin"===d,clientId:e,value:p})]})}function eg(e,t="any"){const n=(0,h.bI)(e,Ym);return!0===n||("any"===t?!!(n?.aspectRatio||n?.height||n?.minHeight||n?.width||n?.minWidth):!!n?.[t])}function tg(e){return!!e&&"auto"!==`${e}`.trim().toLowerCase()}var ng={useBlockProps:function({name:e,height:t,minHeight:n,style:r}){if(!eg(e,"aspectRatio")||bl(e,Ym,"aspectRatio"))return{};const o=tg(r?.dimensions?.aspectRatio),i=(0,g.A)({"has-aspect-ratio":o}),s={};o?(s.minHeight="unset",s.height="unset"):(n||r?.dimensions?.minHeight||t||r?.dimensions?.height)&&(s.aspectRatio="unset");return{className:i,style:s}},attributeKeys:["height","minHeight","width","style"],hasSupport:e=>eg(e)};var{getViewportBreakpoints:rg}=ue(Pt);(0,V._x)("Hover","Name for the CSS pseudo-class selector"),(0,V._x)("Focus","Name for the CSS pseudo-class selector"),(0,V._x)("Focus-visible","Name for the CSS pseudo-class selector"),(0,V._x)("Active","Name for the CSS pseudo-class selector"),(0,V.__)("Tablet"),(0,V.__)("Mobile");var og={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function ig(e,t,n=""){if("string"!=typeof t||!t)return it(e).map(e=>`${e.trim()}${n}`).join(", ");const r=it(e).filter(e=>e.trim()),o=it(t).filter(e=>e.trim());return o.length?o.map(e=>{const t=(e=e.trim()).match(/^([.#]?[-_a-zA-Z0-9]+|\[[^\]]+\])/);return t?r.map(r=>`${r.trim()}${e.slice(t[0].length)}${n}`).join(", "):r.map(e=>`${e.trim()}${n}`).join(", ")}).join(", "):r.map(e=>`${e.trim()}${n}`).join(", ")}var{getResponsiveMediaQueries:sg}=ue(Pt),ag=["Top","Right","Bottom","Left"],lg=[...ym,dp,Sp,Ym,Jd,
19Xm,fp],cg=e=>lg.some(t=>(0,h.pN)(e,t));function ug(e={}){const t={};return ud(e).forEach(e=>{t[e.key]=e.value}),t}function dg(e,t){const n=function(e){const t=e?.dimensions;if(t)return tg(t.aspectRatio)?{dimensions:{minHeight:"unset",height:"unset"}}:t.minHeight||t.height?{dimensions:{aspectRatio:"unset"}}:void 0}(e),r=cd(n?pg(e,n):e,{selector:t}),o=r?r.replace(/;/g," !important;"):void 0,i=function(e){const t=e?.border;if(!t)return;const n=!!t.style,r=!!t.color,o=!!t.width,i={};return n||!r&&!o||(i.style="solid"),ag.forEach(e=>{const r=e.toLowerCase(),o=t[r];n||o?.style||!o?.color&&!o?.width||(i[r]={style:"solid"})}),gl({border:gl(i)})}(e),s=i?cd(i,{selector:t}):void 0,a=function(e,t){const n=e?.typography?.textAlign;if("string"!=typeof n||!n)return;const r=`text-align: ${Ye(n)} !important`;return t?`${t} { ${r}; }`:`${r};`}(e,t),l=function(e,t){if(!e?.color?.background)return;if(e?.color?.gradient||e?.background?.gradient||e?.background?.backgroundImage)return;const n="background-image: unset !important";return t?`${t} { ${n}; }`:`${n};`}(e,t);return[o,a,s,l].filter(Boolean).join("\n")}function fg(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function pg(e={},t={}){const n={...e};return Object.entries(t).forEach(([e,t])=>{n[e]=fg(t)&&fg(n[e])?pg(n[e],t):t}),n}function mg(e,t,n){const r=t||"",o=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:pg(o.style,n)})}function gg(e,t){const{name:n,baseSelector:r,state:o=""}=t,i=function(e,t){const n=(0,h.E7)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([e,t])=>{const o=n[e];if("string"!=typeof o){if(fg(o)&&fg(t)){const i={...t};return Object.entries(o).forEach(([n,o])=>{"root"!==n&&"string"==typeof o&&Object.hasOwn(t,n)&&(mg(r,o,{[e]:{[n]:t[n]}}),delete i[n])}),void(Object.keys(i).length&&mg(r,o.root||n.root,{[e]:i}))}mg(r,n.root,{[e]:t})}else mg(r,o,{[e]:t})}),Array.from(r.values())}(e,n).map(({selector:e,style:t})=>dg(t,ig(r,e,o))).filter(Boolean);return i.length?i.join("\n"):void 0}function hg(e,t,n){const r=og[t];if(!r)return[];const o=[];return r.forEach(r=>{const i=e?.[r];if(i){const e=gg(i,{name:t,baseSelector:n,state:r});e&&o.push(e)}}),o}function bg(e,t,n,r){const o=[],i=["elements",...og[t]??[]],s=sg(r);return Object.entries(s).forEach(([r,s])=>{const a=_u(e,{viewport:r,pseudo:gu.pseudo});if(!a)return;const l=[],c=gg(function(e,t){if(!e)return e;const n={...e};return t.forEach(e=>{delete n[e]}),n}(a,i),{name:t,baseSelector:n});c&&l.push(c);
19const u=Ig(a.elements,t,n);u&&l.push(u),l.push(...hg(a,t,n)),l.length&&o.push(`${s}{${l.join("")}}`)}),o}function yg(e,t){const n=_u(e,t);if(!vu(t))return n;const r=_u(e,{...t,viewport:gu.viewport});return r&&n?sp(r,n):n||r}var vg={[`${dp}.__experimentalSkipSerialization`]:["border"],[`${Sp}.__experimentalSkipSerialization`]:[Sp],[`${bm}.__experimentalSkipSerialization`]:[bm],[`${Ym}.__experimentalSkipSerialization`]:[Ym],[`${Xm}.__experimentalSkipSerialization`]:[Xm],[`${fp}.__experimentalSkipSerialization`]:[fp]},kg={...vg,[`${Ym}.aspectRatio`]:[`${Ym}.aspectRatio`],[`${Jd}`]:[Jd]},xg={[`${Ym}.aspectRatio`]:!0,[`${Jd}`]:!0},wg={gradients:"gradient"};function _g(e,t,n=!1){if(!e)return e;let r=e;return n||(r=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;_g(r[t],[n],!0)}else 1===e.length&&delete r[e[0]]}),r}function Sg(e,t,n,r=kg){if(!cg(t))return e;let{style:o}=n;return Object.entries(r).forEach(([e,n])=>{const r=xg[e]||(0,h.bI)(t,e);!0===r&&(o=_g(o,n)),Array.isArray(r)&&r.forEach(e=>{const t=wg[e]||e;o=_g(o,[[...n,t]])})}),e.style={...ug(o),...e.style},e}var Cg={edit:function({clientId:e,name:t,setAttributes:n,style:r,__unstableParentLayout:o}){const i=xl(t,o),s=Uc(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:c}=(0,R.A)(n=>{const r=n(fl),{getSelectedBlockStyleState:o,isSelectedBlockStyleStateShownOnCanvas:i}=ue(r),s=r.getSettings();return{globalBlockStyles:s?.[G]?.blocks?.[t],selectedState:o(e),showStateOnCanvas:i(e)}},[e,t]),u=ku(l);if(vl({css:(0,b.useMemo)(()=>{if(!c||!u)return;const n=yg(a,l),o=yg(r,l);let i;if(n&&o)i=sp(n,o);else if(o)i=o;else{if(!n)return;i=n}return gg(i,{name:t,baseSelector:`[data-block="${e}"]`})},[c,u,a,r,l,e,t])}),"default"!==s)return null;const d={...i,typography:{...i.typography,textAlign:!1}},f={clientId:e,name:t,setAttributes:n,settings:d};return(0,Be.jsxs)(bu,{value:l,children:[(0,Be.jsx)(Op,{...f}),(0,Be.jsx)(af,{...f}),(0,Be.jsx)(wm,{...f}),(0,Be.jsx)(vp,{...f}),(0,Be.jsx)(Jm,{...f})]})},hasSupport:cg,addSaveProps:Sg,attributeKeys:["style"],useBlockProps:function({clientId:e,name:t,style:n}){const r=(0,Ul.A)(Eg,"wp-elements"),o=`.${r}`,i=n?.elements,[s]=ml("viewport");return kl({css:(0,b.useMemo)(()=>{const e=[];const r=Ig(i,t,o);if(r){e.push(r)}e.push(...hg(n,t,o));e.push(...bg(n,t,o,s));return e.length>0?e.join(""):void 0},[o,i,t,n,s]),clientId:e}),Sg({className:r},t,{style:n},vg)}},Ag=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],Eg={};function Ig(e,t,n){if(!e)return;const r=[];return Ag.forEach(({elementType:o,pseudo:i,elements:s})=>{if(bl(t,Sp,o))return;const a=e?.[o];if(a){const e=Lu(n,h.dB[o]);r.push(cd(a,{selector:e})),i&&i.forEach(e=>{a[e]&&r.push(cd(a[e],{selector:Lu(n,`${h.dB[o]}${e}`)}))})}s&&s.forEach(t=>{e[t]&&r.push(cd(e[t],{selector:Lu(n,h.dB[t])}))})}),r.length>0?r.join(""):void 0}(0,_.U2)("blocks.registerBlockType","core/style/addAttribute",function(e){return cg(e)||(0,h.pN)(e,"customCSS",!0)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e});(0,_.U2)("blocks.registerBlockType","core/settings/addAttribute",function(e){return t=e,(0,h.pN)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t});var Tg=(0,b.forwardRef)(function(e,t){const{className:n,colorValue:r,...o}=e;return(0,Be.jsx)("span",{className:(0,g.A)("component-color-indicator",n),style:{background:r},ref:t,...o})});Tg.displayName="ColorIndicator";var Ng=Tg,jg=n(6075),Bg=n(453),Lg=n(8312),Og=n(3109),Rg=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var Mg=function e({id:t,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,selectedSlug:a,onChange:l}){let c;c="unset"===s?(0,Be.jsx)(Ng,{className:"block-editor-duotone-control__unset-indicator"}):s?(0,Be.jsx)(Tl.DuotoneSwatch,{values:s}):(0,Be.jsx)(Og.A,{icon:Rg});const u=(0,V.__)("Apply duotone filter"),d=`${(0,Ul.A)(e,"duotone-control",t)}__description`;return(0,Be.jsx)(jg.A,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,V.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,Be.jsx)(Bg.A,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==Lg.PX||(n.preventDefault(),t())},label:u,icon:c}),renderContent:()=>(0,Be.jsxs)(hc,{label:(0,V.__)("Duotone"),children:[(0,Be.jsx)("p",{children:(0,V.__)("Create a two-tone color effect without losing your original image.")}),(0,Be.jsx)(Tl.DuotonePicker,{"aria-label":u,"aria-describedby":d,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,selectedSlug:a,onChange:l})]})})},{getDuotoneFilter:Pg,getDuotoneStylesheet:Dg,getDuotoneUnsetStylesheet:zg}=ue(Pt),Fg=[],$g=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");function Vg({presetSetting:e,defaultSetting:t}
19){const[n,r,o,i]=ml(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,b.useMemo)(()=>[...r||Fg,...o||Fg,...n&&i||Fg],[n,r,o,i])}function Hg(e,t){if(!e)return;const n=t?.find(({slug:t})=>e===`var:preset|duotone|${t}`);return n?n.colors:void 0}(0,We.X$)([Wu.A]);var Wg={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n,clientId:r}){const o=e?.color?.duotone,i=xl(n),s=Uc(),a=(0,R.A)(e=>r?e(fl).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=Qd(n,a),c=Vg({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),u=Vg({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[d,f]=ml("color.custom","color.customDuotone"),p=!d,m=!f||0===u?.length&&p;if(0===c?.length&&m)return null;if("default"!==s)return null;const g="unset"===o||Array.isArray(o)?o:Hg(o,c);return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Fu,{group:"filter",children:(0,Be.jsx)(Tl,{value:{filter:{duotone:o}},onChange:n=>{const r={...e,color:{...n?.filter}};t({style:gl(r)})},settings:i,inheritedValue:l})}),(0,Be.jsx)(dc,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,Be.jsx)(Mg,{duotonePalette:c,colorPalette:u,disableCustomDuotone:m,disableCustomColors:p,value:g,selectedSlug:Ou(o),onChange:(n,r,o)=>{const i=o?`var:preset|duotone|${o}`:function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find(t=>t?.colors?.every((t,n)=>t===e[n]));return n?`var:preset|duotone|${n.slug}`:void 0}(n,c),s={...e,color:{...e?.color,duotone:i??n}};t({style:gl(s)})},settings:i})})]})},useBlockProps:function({clientId:e,name:t,style:n}){const r=(0,Ul.A)(Kg),o=(0,b.useMemo)(()=>{const e=(0,h.E7)(t);if(e){if(!(0,h.bI)(e,"filter.duotone",!1))return null;const t=(0,h.bI)(e,"color.__experimentalDuotone",!1);if(t){const n=Vu(e);return"string"==typeof t?Lu(n,t):n}return Vu(e,"filter.duotone",{fallback:!0})}},[t]),i=n?.color?.duotone,s=`wp-duotone-${r}`,a=o&&i;return Ug({clientId:e,id:s,selector:o,attribute:i}),{className:a?s:""}},attributeKeys:["style"],hasSupport:e=>(0,h.pN)(e,"filter.duotone")};function Ug({clientId:e,id:t,selector:n,attribute:r}){const o=Vg({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:Hg(r,o),a="string"==typeof r&&s;let l=null;a?l=s:("string"==typeof r&&!a||i)&&(l=r);const c=n.split(",").map(e=>`.${t}${e.trim()}`).join(", "),u=Array.isArray(l)||"unset"===l;kl(u?{css:"unset"!==l?Dg(c,t):zg(c),__unstableType:"presets"}:void 0),kl(u?{assets:"unset"!==l?Pg(t,l):"",__unstableType:"svgs"}:void 0);const d=Ju(e);(0,b.useEffect)(()=>{if(u&&d&&$g){const e=d.style.display;d.style.setProperty("display","inline-block"),d.offsetHeight,d.style.setProperty("display",e)}},[u,d,l])}var Kg={};(0,_.U2)("blocks.registerBlockType","core/editor/duotone/add-attributes",function(e){return(0,h.pN)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e});var Gg={},qg={};function Zg({blockName:e,setAttributes:t,style:n}){if("default"!==Uc())return null;const r=(0,h.E7)(e);const o=(0,V.nv)( 20// translators: %s: is the name of a block e.g., 'Image' or 'Quote'. 21// translators: %s: is the name of a block e.g., 'Image' or 'Quote'. 22(0,V.__)("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;."),r?.title);return(0,Be.jsx)(Fu,{group:"advanced",children:(0,Be.jsx)(Tl,{value:n,onChange:function(e){const n=e?.css?.trim()?e.css:void 0;t({style:gl({...e,css:n})})},inheritedValue:n,help:o})})}var Yg={edit:function({clientId:e,name:t,setAttributes:n}){const{style:r,canEditCSS:o}=(0,R.A)(t=>{const{getBlockAttributes:n,getSettings:r}=t(fl);return{style:n(e)?.style||qg,canEditCSS:r().canEditCSS}},[e]);return o?(0,Be.jsx)(Zg,{blockName:t,setAttributes:n,style:r}):null},useBlockProps:function({style:e,clientId:t}){const n=e?.css,r="string"==typeof n&&n.trim().length>0&&(0,Tl.validateCSS)(n),o=(0,R.A)(e=>e(fl).getSettings().canEditCSS,[]),{createWarningNotice:i}=(0,y.A)(Ws),s=!!n?.trim();(0,b.useEffect)(()=>{!o&&s&&i((0,V.__)("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:"custom-css-edit-warning",isDismissible:!0})},[o,s,i]);const a=(0,Ul.A)(Gg,"wp-custom-css"),l=`.${a}`;return kl({css:(0,b.useMemo)(()=>
22{if(r)return Md(n,l)},[n,l,r]),clientId:t,__unstableType:"custom-css"}),r?{className:`has-custom-css ${a}`}:{}},addSaveProps:function(e,t,n){if(!(0,h.pN)(t,"customCSS",!0))return e;if(!n?.style?.css?.trim())return e;const r=e.className?`${e.className} has-custom-css`:"has-custom-css";return{...e,className:r}},attributeKeys:["style"],hasSupport:e=>(0,h.pN)(e,"customCSS",!0)};function Xg(e){const t=e?.style?.position?.type;return"sticky"===t?(0,V.__)("Sticky"):"fixed"===t?(0,V.__)("Fixed"):null}function Qg(e){return(0,R.A)(t=>{if(!e)return null;const n=t(fl),{getBlockName:r,getBlockAttributes:o,getBlock:i,__experimentalGetParsedPattern:s}=n,{getBlockType:a,getActiveBlockVariation:l}=t(h.M_),c=r(e),u=a(c);if(!u)return null;const d=o(e),{isSectionBlock:f}=ue(n),p=d?.metadata?.patternName;if(p&&f(e)){const e=s(p),t=Xg(d);return{isSynced:!1,title:(0,V.__)("Pattern"),icon:Le,description:e?.description||(0,V.__)("A block pattern."),anchor:d?.anchor,positionLabel:t,positionType:d?.style?.position?.type,name:e?.title||d?.metadata?.name}}const m=l(c,d,void 0,i?.(e)?.innerContent),g=(0,h.tk)(u)||(0,h.gc)(u),b=(g?(0,h.Y0)(u,d):void 0)||u.title,y=Xg(d),v={isSynced:g,title:b,icon:u.icon,description:u.description,anchor:d?.anchor,positionLabel:y,positionType:d?.style?.position?.type,name:d?.metadata?.name};return m?{isSynced:g,title:m.title||u.title,icon:m.icon||u.icon,description:m.description||u.description,anchor:d?.anchor,positionLabel:y,positionType:d?.style?.position?.type,name:d?.metadata?.name}:v},[e])}var Jg="position",eh={key:"default",value:"",label:(0,V.__)("Default")},th={key:"sticky",value:"sticky",label:(0,V._x)("Sticky","Name for the value of the CSS position property"),hint:(0,V.__)("The block will stick to the top of the window instead of scrolling.")},nh={key:"fixed",value:"fixed",label:(0,V._x)("Fixed","Name for the value of the CSS position property"),hint:(0,V.__)("The block will not move when the page is scrolled.")},rh=["top","right","bottom","left"],oh=["sticky","fixed"];function ih(e){const t=e?.style?.position?.type;return"sticky"===t||"fixed"===t}function sh({name:e}={}){const[t,n]=ml("position.fixed","position.sticky"),r=!t&&!n;return o=e,!(0,h.bI)(o,Jg)||r;var o}function ah({style:e={},clientId:t,name:n,setAttributes:r}){const o=function(e){const t=(0,h.bI)(e,Jg);return!(!0!==t&&!t?.fixed)}(n),i=function(e){const t=(0,h.bI)(e,Jg);return!(!0!==t&&!t?.sticky)}(n),s=e?.position?.type,{firstParentClientId:a}=(0,R.A)(e=>{const{getBlockParents:n}=e(fl),r=n(t);return{firstParentClientId:r[r.length-1]}},[t]),l=Qg(a),c=i&&s===th.value&&l?(0,V.nv)( 23/* translators: %s: the name of the parent block. */ 24/* translators: %s: the name of the parent block. */ 25(0,V.__)("The block will stick to the scrollable area of the parent %s block."),l.title):null,u=(0,b.useMemo)(()=>{const e=[eh];return(i||s===th.value)&&e.push(th),(o||s===nh.value)&&e.push(nh),e},[o,i,s]),d=s&&u.find(e=>e.value===s)||eh,f=(0,b.useId)();return u.length>1?(0,Be.jsx)(Fu,{group:"position",children:(0,Be.jsx)(Tl.SelectControl,{label:(0,V.__)("Position"),hideLabelFromVision:!0,description:c,popupWidth:"anchor",items:u,value:d,onValueChange:t=>{(t=>{const n={...e,position:{...e?.position,type:t,top:"sticky"===t||"fixed"===t?"0px":void 0}};r({style:gl(n)})})(t.value)},children:u.map(e=>{const t=e.hint?`${f}-${e.key}`:void 0;return(0,Be.jsxs)(Tl.SelectControl.Item,{value:e,label:e.label,"aria-describedby":t,children:[(0,Be.jsx)("div",{children:e.label}),e.hint&&(0,Be.jsx)("div",{id:t,className:"block-editor-hooks__position-control-item-hint","aria-hidden":"true",children:e.hint})]},e.key)})})}):null}var lh={edit:function(e){return sh(e)?null:(0,Be.jsx)(ah,{...e})},useBlockProps:function({name:e,style:t}){const n=(0,h.pN)(e,Jg),r=sh({name:e}),o=n&&!r,i=(0,Ul.A)(ch),s=`.wp-container-${i}.wp-container-${i}`;let a;o&&(a=function({selector:e,style:t}){let n="";const{type:r}=t?.position||{};return oh.includes(r)?(n+=`${e} {`,n+=`position: ${r};`,rh.forEach(e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)}),"sticky"!==r&&"fixed"!==r||(n+="z-index: 10"),n+="}",n):n}({selector:s,style:t})||"");const l=(0,g.A)({[`wp-container-${i}`]:o&&!!a,[`is-position-${t?.position?.type}`]:o&&!!a&&!!t?.position?.type});return vl({css:a}),{className:l}},attributeKeys:["style"],hasSupport:e=>(0,h.pN)(e,Jg)},ch={};var uh=n(865),dh=n(2615),fh=n(5263),ph=n(8992),mh=n(1252);function gh(e={}){const t=e.store?.getState(),n=(0,fh.zf)({...e,focusLoop:(0,mh.Jh)(e.focusLoop,t?.focusLoop,!0)}
25),r={...n.getState(),value:(0,mh.Jh)(e.value,t?.value,e.defaultValue,null)},o=(0,ph.y$)(r,n,e.store);return{...n,...o,setValue:e=>o.setState("value",e)}}function hh(e={}){e=(0,uh.YC)(e);const[t,n]=(0,dh.Pj)(gh,e);return function(e,t,n){return e=(0,uh.YO)(e,t,n),(0,dh.Tz)(e,n,"value","setValue"),e}(t,n,e)}var bh=n(4786),yh=n(6652),vh=n(2786);const kh=(0,vh.B0)([yh.ws],[yh.aN]),xh=kh.useContext,wh=(kh.useScopedContext,kh.useProviderContext),_h=(kh.ContextProvider,kh.ScopedContextProvider),Sh=(0,b.createContext)(!1);const Ch=(0,vh.ab)(function({store:e,...t}){const n=wh();e=e||n;const r=(0,b.useContext)(Sh)||(0,mh.$f)(t);(0,mh.V1)(e,!1);const o=(t=(0,vh.w7)(t,t=>(0,Be.jsx)(_h,{value:e,children:(0,Be.jsx)(Sh.Provider,{value:r,children:t})}),[e,r])).onBlurCapture,i=(0,vh._q)(t=>{if(o?.(t),t.defaultPrevented)return;if(!(0,mh.aG)(t))return;const n=function(e){const{renderedItems:t}=e.getState();return t.find(e=>function(e){if(!e)return!1;if("INPUT"===e.tagName){const{type:t,checked:n}=e;if("radio"===t)return n}return"radio"===e.getAttribute("role")&&"true"===e.getAttribute("aria-checked")}(e.element))?.id}(e);n&&e.setActiveId(n)});return t={role:"radiogroup",...t,"aria-disabled":r||void 0,onBlurCapture:i},t=(0,bh.T)({store:e,...t})}),Ah=(0,vh.Rf)(function(e){const t=Ch(e);return(0,vh.n)("div",t)});var Eh=(0,b.createContext)(void 0);Eh.displayName="ToggleGroupControlContext";var Ih=(e="ToggleGroupControlOptionBase")=>{const t=(0,b.useContext)(Eh);if(!t)throw new Error(`${e} can only be rendered inside ToggleGroupControl.`);return t},Th=Eh,Nh=n(5766);function jh(e){const t=(0,b.useRef)(!0),n=(0,Nh.A)(e),r=(0,b.useRef)(!1);(0,b.useEffect)(()=>{t.current&&(t.current=!1)},[]);const o=r.current||!t.current&&n!==e;return(0,b.useEffect)(()=>{r.current=o},[o]),o?{value:e??"",defaultValue:void 0}:{value:void 0,defaultValue:e}}var Bh=(0,b.forwardRef)(function({children:e,isAdaptiveWidth:t,label:n,onChange:r,value:o,id:i,setSelectedElement:s,disabled:a,...l},c){const u=(0,Ul.A)(Bh,"toggle-group-control-as-radio-group"),d=i||u,{value:f,defaultValue:p}=jh(o),m=hh({defaultValue:p,value:f,setValue:r?e=>{r(e??void 0)}:void 0,rtl:(0,V.V8)()}),g=dh.O$(m,"value"),h=m.setValue;(0,b.useEffect)(()=>{""===g&&m.setActiveId(void 0)},[m,g]);const y=(0,b.useMemo)(()=>({activeItemIsNotFirstItem:()=>m.getState().activeId!==m.first(),baseId:d,isBlock:!t,value:g,setValue:h,setSelectedElement:s,disabled:Boolean(a)}),[d,t,m,g,s,h,a]);return(0,Be.jsx)(Th.Provider,{value:y,children:(0,Be.jsx)(Ah,{store:m,"aria-label":n,render:(0,Be.jsx)(uf.A,{}),...l,id:d,ref:c,disabled:a||void 0,children:e})})});Bh.displayName="ToggleGroupControlAsRadioGroup";var Lh=n(6624);var Oh=(0,b.forwardRef)(function({children:e,isAdaptiveWidth:t,label:n,onChange:r,value:o,id:i,setSelectedElement:s,disabled:a,...l},c){const u=(0,Ul.A)(Oh,"toggle-group-control-as-button-group"),d=i||u,{value:f,defaultValue:p}=jh(o),[m,g]=(0,Lh.j)({defaultValue:p,value:f,onChange:r}),h=(0,b.useMemo)(()=>({baseId:d,value:m,setValue:g,isBlock:!t,isDeselectable:!0,setSelectedElement:s,disabled:Boolean(a)}),[d,m,g,t,s,a]);return(0,Be.jsx)(Th.Provider,{value:h,children:(0,Be.jsx)(uf.A,{"aria-label":n,...l,ref:c,role:"group",id:d,"aria-disabled":a||void 0,children:e})})});Oh.displayName="ToggleGroupControlAsButtonGroup";var Rh=n(4233),Mh=n(244),Ph={element:void 0,top:0,right:0,bottom:0,left:0,width:0,height:0};function Dh(e,t=[]){const[n,r]=(0,b.useState)(Ph),o=(0,b.useRef)(void 0),i=(0,Rh.A)(()=>{if(e&&e.isConnected){const t=function(e){const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return;const n=e.offsetParent,r=n?.getBoundingClientRect()??Ph,o=n?.scrollLeft??0,i=n?.scrollTop??0,s=parseFloat(getComputedStyle(e).width),a=parseFloat(getComputedStyle(e).height),l=s/t.width,c=a/t.height;return{element:e,top:(t.top-r?.top)*c+i,right:(r?.right-t.right)*l-o,bottom:(r?.bottom-t.bottom)*c-i,left:(t.left-r?.left)*l+o,width:s,height:a}}(e);if(t)return r(t),clearInterval(o.current),!0}else clearInterval(o.current);return!1}),s=(0,Mh.A)(()=>{i()||requestAnimationFrame(()=>{i()||(o.current=setInterval(i,100))})});return(0,b.useLayoutEffect)(()=>{s(e),e||r(Ph)},[s,e]),(0,b.useLayoutEffect)(()=>{i()},t),n}function zh(e,t,{prefix:n="subelement",dataAttribute:r=`${n}-animated`,transitionEndFilter:o=()=>!0,roundRect:i=!1}={}){const s=(0,Rh.A)(()=>{Object.keys(t).forEach(r=>"element"!==r&&e?.style.setProperty(`--${n}-${r}`,String(i?Math.floor(t[r]):t[r])))});(0,b.useLayoutEffect)(()=>{s()},[t,s]),function(e,t){const n=(0,b.useRef)(e),r=(0,Rh.A)(t);(0,b.useLayoutEffect)(()=>{n.current!==e&&(r({previousValue:n.current}),n.current=e)},[r,e])}(t.element,({previousValue:n})=>{t.element&&n&&e?.setAttribute(`data-${r}`,"")}),(0,b.useLayoutEffect)(()=>{function t(t){o(t)&&e?.removeAttribute(`data-${r}`)}return e?.addEventListener("transitionend",t),()=>e?.removeEventListener("transitionend",t)},[r,e,o])}var Fh="data-wp-hash";function $h(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=$h();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)Vh(e,n,r)}(document)),e.__wpStyleRuntime}
25function Vh(e,t,n){if(!e.head)return;const r=$h();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${Fh}]`))if(n.getAttribute(Fh)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(Fh,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=$h();n.styles.set(e,t);for(const r of n.documents.keys())Vh(r,e,t)})("86a73788d7",'.f3fd102dd2f0e90e__toggle-group-control{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid transparent;border-radius:var(--wpds-border-radius-sm,2px);display:inline-flex;height:40px;min-width:0;position:relative}@media not (prefers-reduced-motion){.f3fd102dd2f0e90e__toggle-group-control[data-indicator-animated]:before{transition-duration:.2s;transition-property:transform,border-radius;transition-timing-function:ease-out}}.f3fd102dd2f0e90e__toggle-group-control:before{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));border-radius:var(--wpds-border-radius-sm,2px);content:"";height:calc(var(--selected-height, 0)*1px + 2px);left:-2px;opacity:min(1,max(0,var(--selected-width,0),var(--selected-height,0)));outline:2px solid transparent;outline-offset:-3px;pointer-events:none;position:absolute;top:-1px;transform:translateX(calc(var(--selected-left, 0)*1px));width:calc(var(--selected-width, 0)*1px + 2px)}.f3fd102dd2f0e90e__toggle-group-control[aria-disabled=true]:before{opacity:calc(min(1, max(0, var(--selected-width, 0), var(--selected-height, 0))) * .4)}._1344586004ce6119__has-border{border-color:var(--wp-components-color-gray-300,var(--wpds-color-stroke-surface-neutral,#dbdbdb))}.aa98fad5b5d333be__has-enclosing-borders:hover:not([aria-disabled=true]){border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.aa98fad5b5d333be__has-enclosing-borders:focus-within{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));z-index:1}._4068eff8d72c19b3__is-block{display:flex;width:100%}');var Hh="f3fd102dd2f0e90e__toggle-group-control",Wh="_1344586004ce6119__has-border",Uh="aa98fad5b5d333be__has-enclosing-borders",Kh="_4068eff8d72c19b3__is-block";var Gh=(0,cf.KZ)(function(e,t){const{__nextHasNoMarginBottom:n,size:r,__next40pxDefaultSize:o,className:i,isAdaptiveWidth:s=!1,isBlock:a=!1,isDeselectable:l=!1,disabled:c=!1,id:u,label:d,hideLabelFromVision:f=!1,help:p,onChange:m,value:h,children:y,...v}=(0,df.A)(e,"ToggleGroupControl"),{baseControlProps:k,controlProps:x}=Kl({id:u,help:p,label:d,hideLabelFromVision:f}),[w,_]=(0,b.useState)(),[S,C]=(0,b.useState)(),A=(0,$l.A)([C,t]);zh(S,Dh(null!=h?w:void 0),{prefix:"selected",dataAttribute:"indicator-animated",transitionEndFilter:e=>"::before"===e.pseudoElement,roundRect:!1});const E=(0,g.A)(Hh,{[Kh]:a,[Wh]:a&&!l,[Uh]:!l},i),I=l?Oh:Bh;return(0,Be.jsx)(Wl.Ay,{...k,children:(0,Be.jsx)(I,{...v,...x,setSelectedElement:_,className:E,isAdaptiveWidth:s,label:d,onChange:m,ref:A,value:h,disabled:c,children:y})})},"ToggleGroupControl"),qh=n(9537);const Zh="input";const Yh=(0,vh.ab)(function({store:e,name:t,value:n,checked:r,...o}){const i=xh();e=e||i;const s=(0,b.useContext)(Sh),a=(0,vh.Bi)(o.id),l=(0,b.useRef)(null),c=(0,dh.O$)(e,["value"],e=>r??function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(n,e?.value)),u=(0,dh.O$)(e,"id"),d=t??u;(0,b.useEffect)(()=>{a&&c&&e?.getState().activeId!==a&&e?.setActiveId(a)},[e,c,a]);const f=o.onChange,p=(m=(0,vh.vO)(l,Zh),g=o.type,"input"===m&&(!g||"radio"===g));var m,g;const h=s||(0,mh.$f)(o),[y,v]=(0,vh.CH)();(0,b.useEffect)(()=>{const e=l.current;e&&(p||(void 0!==c&&(e.checked=c),void 0!==d&&(e.name=d),void 0!==n&&(e.value=`${n}`)))},[y,p,c,d,n]);const k=(0,vh._q)(t=>{if(h)return t.preventDefault(),void t.stopPropagation();e?.getState().value!==n&&(p||(t.currentTarget.checked=!0,v()),f?.(t),t.defaultPrevented||e?.setValue(n))}),x=o.onClick,w=(0,vh._q)(e=>{x?.(e),e.defaultPrevented||p||k(e)}),_=o.onFocus,S=(0,vh._q)(t=>{if(_?.(t),t.defaultPrevented)return;if(!p)return;if(h)return;if(!e)return;const{moves:n,activeId:r}=e.getState();n&&(a&&r!==a||t.currentTarget.checked||t.currentTarget.click())});return o={role:p?void 0:"radio",type:p?"radio":void 0,"aria-checked":c,...o,disabled:h||void 0,id:a,ref:(0,vh.SV)(l,o.ref),onChange:k,onClick:w,onFocus:S},o=(0,qh.k)({store:e,clickOnEnter:!p,...o}),(0,mh.HR)({name:p?d:void 0,value:p?n:void 0,checked:c,...o})}),Xh=(0,vh.ph)((0,vh.Rf)(function(e){const t=Yh(e);return(0,vh.n)(Zh,t)}));var Qh=n(1665),Jh="data-wp-hash";function eb(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=eb();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)tb(e,n,r)}(document)),e.__wpStyleRuntime}function tb(e,t,n){if(!e.head)return;const r=eb();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${Jh}]`))if(n.getAttribute(Jh)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(Jh,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=eb();n.styles.set(e,t);for(const r of n.documents.keys())tb(r,e,t)})("94533a674c","._1dec843460a3c9d5__label{display:inline-flex;max-width:100%;min-width:0;position:relative}._50ddec5669c9d4a6__label-block{flex:1}._1563c8aa5e21d063__button{fill:currentColor;align-items:center;appearance:none;background:transparent;border:none;border-radius:var(--wpds-border-radius-xs,1px);color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));cursor:var(--wpds-cursor-control,pointer);display:flex;font-family:inherit;height:100%;justify-content:center;line-height:1;outline:none;padding:0 12px;position:relative;text-align:center}@media not (prefers-reduced-motion){._1563c8aa5e21d063__button{transition:color .16s linear,font-weight 60ms linear}}._1563c8aa5e21d063__button{user-select:none;width:100%;z-index:2}._1563c8aa5e21d063__button::-moz-focus-inner{border:0}._1563c8aa5e21d063__button[aria-disabled=true],._1563c8aa5e21d063__button[disabled]{cursor:default;opacity:.4}._1563c8aa5e21d063__button:hover:not([disabled]):not([aria-disabled=true]){color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.e1b6a1f76b7eb2bb__is-deselectable:focus{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.e1b6a1f76b7eb2bb__is-deselectable:focus[aria-pressed=false]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-shadow:0 0 0 2px var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}._407216dd3e301287__is-icon{aspect-ratio:1;height:38px;padding:0}._617c0f0a1c161590__is-pressed{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));
25font-weight:var(--wpds-typography-font-weight-emphasis,600)}._2850882d974e5419__button-content{display:flex;font-size:var(--wpds-typography-font-size-md,13px);line-height:1}");var nb="_1dec843460a3c9d5__label",rb="_50ddec5669c9d4a6__label-block",ob="_1563c8aa5e21d063__button",ib="e1b6a1f76b7eb2bb__is-deselectable",sb="_407216dd3e301287__is-icon",ab="_617c0f0a1c161590__is-pressed",lb="_2850882d974e5419__button-content",cb=({showTooltip:e,text:t,children:n})=>e&&t?(0,Be.jsx)(Qh.Ay,{text:t,placement:"top",children:n}):(0,Be.jsx)(Be.Fragment,{children:n});var ub=(0,cf.KZ)(function e(t,n){const r=Ih(),o=(0,Ul.A)(e,r.baseId||"toggle-group-control-option-base"),i=(0,df.A)({...t,id:o},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:a=!1}=r,{className:l,isIcon:c=!1,value:u,children:d,showTooltip:f=!1,disabled:p,...m}=i,h=Boolean(r.disabled||p),y=r.value===u,v=(0,g.A)(nb,s&&rb),k=(0,g.A)(ob,{[ib]:a,[sb]:c,[ab]:y},l),x={...m,className:k,"data-value":u,ref:n},w=(0,b.useRef)(null);return(0,b.useLayoutEffect)(()=>{y&&w.current&&r.setSelectedElement(w.current)},[y,r]),(0,Be.jsx)("div",{ref:w,className:v,children:(0,Be.jsx)(cb,{showTooltip:f,text:m["aria-label"],children:a?(0,Be.jsx)("button",{...x,disabled:h,"aria-pressed":y,type:"button",onClick:()=>{a&&y?r.setValue(void 0):r.setValue(u)},children:(0,Be.jsx)("div",{className:lb,children:d})}):(0,Be.jsx)(Xh,{disabled:p,onFocusVisible:()=>{(null===r.value||""===r.value)&&!r.activeItemIsNotFirstItem?.()||r.setValue(u)},render:(0,Be.jsx)("button",{type:"button",...x}),value:u,children:(0,Be.jsx)("div",{className:lb,children:d})})})})},"ToggleGroupControlOptionBase"),db=ub;var fb=(0,b.forwardRef)(function(e,t){Ih("ToggleGroupControlOption");const{label:n,...r}=e,o=r["aria-label"]||n;return(0,Be.jsx)(db,{...r,"aria-label":o,ref:t,children:n})});fb.displayName="ToggleGroupControlOption";var pb=fb,mb="layout",gb=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{getResponsiveMediaQueries:hb}=ue(Pt);function bb(e={},t){const n=e?.default;return t?.attributes?.layout??n}function yb(e={},t){return gl({...bb(e,t)})}function vb(e={},t={},n={}){const r={},o=Object.fromEntries(gb.filter(e=>Object.hasOwn(n||{},e)).map(e=>[e,n[e]]));return Object.entries(e||{}).forEach(([e,n])=>{const o=Object.hasOwn(t||{},e);gb.includes(e)||n===t?.[e]||(r[e]=void 0===n&&o?null:n)}),gl({...o,...r})}function kb(e){return(0,h.pN)(e,"layout")||(0,h.pN)(e,"__experimentalLayout")}function xb(e={},t=""){const{layout:n}=e,{default:r}=(0,h.bI)(t,mb)||{},o=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:"constrained"}:n||r||{},i=[];if(xc[o?.type||"default"]?.className){const e=xc[o?.type||"default"]?.className,n=t.split("/"),r=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;i.push(e,r)}return(0,R.A)(e=>!(!o?.inherit&&!o?.contentSize&&"constrained"!==o?.type)&&e(fl).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[o?.contentSize,o?.inherit,o?.type])&&i.push("has-global-padding"),o?.orientation&&i.push(`is-${ap(o.orientation)}`),o?.justifyContent&&i.push(`is-content-justification-${ap(o.justifyContent)}`),o?.flexWrap&&"nowrap"===o.flexWrap&&i.push("is-nowrap"),i}function wb({attributes:e={},blockName:t,selector:n,layout:r={},hasBlockGapSupport:o,globalBlockGapValue:i,viewportSettings:s}){return Object.entries(hb(s)).map(([s,a])=>{const l=_u(e?.style,{viewport:s,pseudo:gu.pseudo}),c=function(e={}){return Object.fromEntries(Object.entries(e||{}).filter(([e])=>!gb.includes(e)))}(l?.layout),u=Object.keys(c).length>0,d=l?.spacing&&Object.hasOwn(l.spacing,"blockGap"),f=l?.spacing&&Object.hasOwn(l.spacing,"padding");if(!u&&!d&&!f)return"";const p=Ec(r?.type||"default"),m=p?.getLayoutStyle?.({blockName:t,selector:n,layout:r,viewportOverrides:c,style:l,hasBlockGapSupport:o,globalBlockGapValue:i});return m?`${a}{${m}}`:""}).filter(Boolean).join("")}var _b={shareWithChildBlocks:!0,edit:function({layout:e,style:t,setAttributes:n,name:r,clientId:o}){const i=xl(r),{layout:s}=i,{themeSupportsLayout:a,activeBlockVariation:l,selectedState:c,isResponsiveEditing:u}=(0,R.A)(e=>{const{getBlockAttributes:t,getSettings:n,getSelectedBlockStyleState:i,isResponsiveEditing:s}=ue(e(fl));return{activeBlockVariation:e(h.M_).getActiveBlockVariation(r,t(o
25)||{},"block"),themeSupportsLayout:n().supportsLayout,selectedState:i(o),isResponsiveEditing:s()}},[r,o]),d=Uc(),f=vu(c)&&!ku(c),p=(0,b.useCallback)((...e)=>{const n=e[0]||{},o=e[1]||{};if(f){const e=_u(n.style??t,c)||{},r=gl({...e,layout:void 0});return{style:Su(n.style??t,c,r)}}const i=o.name||r;return{layout:yb((0,h.bI)(i,mb,{}),l)}},[r,l,f,c,t]);if("default"!==d)return null;const m=(0,h.bI)(r,mb,{}),g={...s,...m},{allowSwitching:y,allowEditing:v=!0,allowInheriting:k=!0,default:x}=g;if(!v)return null;const w=e||x||{},_=f?_u(t,c):void 0,S=_?.layout,C=f?gl({...w,...S})||{}:w,A=f?w:yb(m,l),E={...m,...C},{type:I,default:{type:T="default"}={}}=E,N=I||T,j=!(!k||N&&"default"!==N&&"constrained"!==N&&!E.inherit),{inherit:B=!1,contentSize:L=null}=C;if(("default"===N||"constrained"===N)&&!a)return null;const O=Ec(N),M=Ec("constrained"),P=!C.type&&(L||B),D=!!B||!!L,z=xu(c)&&!B&&y,F=function({layoutType:e,constrainedType:t,layoutBlockSupport:n,showInheritToggle:r,showLayoutTypeSwitcher:o,displayControlsForLegacyLayouts:i}
25){const s="default"!==e?.name&&e?.hasInspectorControls(n),a=i&&t?.hasInspectorControls(n);return!!(r||o||s||a)}({layoutType:O,constrainedType:M,layoutBlockSupport:g,showInheritToggle:j,showLayoutTypeSwitcher:z,displayControlsForLegacyLayouts:P}),$=e=>{if(f){const r=gl({..._,layout:vb(e,w,_?.layout)});return void n({style:Su(t,c,r)})}n({layout:gl(e)})},H=()=>"constrained"===O?.name||D;return(0,Be.jsxs)(Be.Fragment,{children:[F&&(0,Be.jsxs)(Fu,{group:"layout",resetAllFilter:p,children:[j&&(0,Be.jsx)(Tl.ToolsPanelItem,{label:(0,V.__)("Use content width"),hasValue:()=>f?(C?.type??"default")!==(A?.type??"default"):"constrained"===e?.type,onDeselect:()=>$({type:"default"}),isShownByDefault:!0,panelId:o,children:(0,Be.jsx)(tm.A,{label:(0,V.__)("Inner blocks use content width"),checked:H(),onChange:()=>$({type:H()?"default":"constrained"}),help:H()?(0,V.__)("Nested blocks use content width with options for full and wide widths."):(0,V.__)("Nested blocks will fill the width of this container.")})}),z&&(0,Be.jsx)(Tl.ToolsPanelItem,{label:(0,V.__)("Layout type"),hasValue:()=>(C?.type??"default")!==(A?.type??"default"),onDeselect:()=>$(A),isShownByDefault:!0,panelId:o,children:(0,Be.jsx)(Sb,{type:N,onChange:e=>$({type:e})})}),O&&"default"!==O.name&&(0,Be.jsx)(O.inspectorControls,{layout:C,value:e,onChange:$,layoutBlockSupport:g,resetLayout:A,name:r,clientId:o}),M&&P&&(0,Be.jsx)(M.inspectorControls,{layout:C,value:e,onChange:$,layoutBlockSupport:g,resetLayout:A,name:r,clientId:o})]}),!B&&O&&(0,Be.jsx)(O.toolBarControls,{layout:C,onChange:$,layoutBlockSupport:m,controlsGroup:u&&vu(c)&&!ku(c)?"style-state":"block",name:r,clientId:o})]})},attributeKeys:["layout","style"],hasSupport:e=>kb(e)};function Sb({type:e,onChange:t}){return(0,Be.jsx)(Gh,{isBlock:!0,label:(0,V.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:Ac.map(({name:e,label:t})=>(0,Be.jsx)(pb,{value:e,label:t},e))})}function Cb({block:e,props:t,blockGapSupport:n,globalBlockGapValue:r,viewportSettings:o,layoutClasses:i}){const{name:s,attributes:a}=t,l=(0,Ul.A)(e),{layout:c}=a,{default:u}=(0,h.bI)(s,mb)||{},d=c?.inherit||c?.contentSize||c?.wideSize?{...c,type:"constrained"}:c||u||{},f=`wp-container-${ap(s)}-is-layout-`,p=`.${f}${l}`,m=null!==n,b=Ec(d?.type||"default"),y=b?.getLayoutStyle?.({blockName:s,selector:p,layout:d,style:a?.style,hasBlockGapSupport:m,globalBlockGapValue:r}),v=[y,wb({attributes:a,blockName:s,selector:p,layout:d,hasBlockGapSupport:m,globalBlockGapValue:r,viewportSettings:o})].filter(Boolean).join(""),k=(0,g.A)({[`${f}${l}`]:!!v},i);return vl({css:v}),(0,Be.jsx)(e,{...t,__unstableLayoutClassNames:k})}var Ab=x(e=>function(t){const{clientId:n,name:r,attributes:o}=t,i=kb(r),s=xb(o,r),a=(0,R.A)(e=>{if(!i)return;const{getSettings:t,getBlockSettings:s}=ue(e(fl)),a=t(),{disableLayoutStyles:l}=a;if(l)return;const[c]=s(n,"spacing.blockGap"),u=a[G];let d;const f=o?.className;if(f?.includes("is-style-")){const{getBlockStyles:t}=e(h.M_),n=Fd(f,t(r));d=n?u?.blocks?.[r]?.variations?.[n]?.spacing?.blockGap:void 0}return{blockGapSupport:c,globalBlockGapValue:d??u?.blocks?.[r]?.spacing?.blockGap??u?.spacing?.blockGap,viewportSettings:a?.__experimentalFeatures?.viewport}},[i,n,o?.className,r]);return a?(0,Be.jsx)(Cb,{block:e,props:t,layoutClasses:s,...a}):(0,Be.jsx)(e,{...t,__unstableLayoutClassNames:i?s:void 0})},"withLayoutStyles");(0,_.U2)("blocks.registerBlockType","core/layout/addAttribute",function(e){return"type"in(e.attributes?.layout??{})||kb(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}),(0,_.U2)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Ab);var Eb=n(6890),{getViewportBreakpoints:Ib}=ue(Pt);function Tb({blockVisibility:e,deviceType:t="desktop",viewportSettings:n,view:r=window}={}){const o=Ib(n),i=o.mobile?`(width <= ${o.mobile})`:void 0,s=(0,Eb.A)(i,r);let a;o.tablet&&(a=o.mobile?`(${o.mobile} < width <= ${o.tablet})`:`(width <= ${o.tablet})`);const l=(0,Eb.A)(a,r);let c;c="mobile"===t&&o.mobile?"mobile":"tablet"===t&&o.tablet?"tablet":s?"mobile":l&&o.tablet?"tablet":"desktop";return{isBlockCurrentlyHidden:!1===e||"object"==typeof e&&!1===e?.viewport?.[c],currentViewport:c}}var{getResponsiveMediaQueries:Nb}=ue(Pt),jb={},Bb="fit",Lb="fill",Ob="fixedNoShrink",Rb=["fixed",Ob];function Mb(e){return Rb.includes(e)}function Pb({selector:e,declarations:t}){return`${e} {\n\t\t${Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ")};\n\t}`}function Db({selector:e,layout:t={},viewportOverrides:n,parentLayout:r={},includeContainerQuery:o=!0}){const i=void 0!==n,s=i?{...t,...n}:t,a=e=>Object.hasOwn(n||{},e),{selfStretch:l,flexSize:c,columnStart:u,rowStart:d,columnSpan:f,rowSpan:p}=s,m=t.selfStretch,{columnCount:g,minimumColumnWidth:h}=r,b=[],y={};if((!i||a("selfStretch")||a("flexSize"))&&(i&&(l===Bb||l===Lb)&&Mb(m)&&t.flexSize&&(y["flex-basis"]="unset",m===Ob&&(y["flex-shrink"]="unset")),Mb(l)&&c?(y["flex-basis"]=c,l===Ob?y["flex-shrink"]="0":i&&m===Ob&&(y["flex-shrink"]="unset"),y["box-sizing"]="border-box"):l===Lb&&(y["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(u&&f?y["grid-column"]=`${u} / span ${f}`:u?y["grid-column"]=`${u}`:f&&(y["grid-column"]=`span ${f}`)),(!i||a("rowStart")||a("rowSpan"))&&(d&&p?y["grid-row"]=`${d} / span ${p}`:d?y["grid-row"]=`${d}`:p&&(y["grid-row"]=`span ${p}`)),Object.keys(y).length&&b.push({selector:e,declarations:y}),o&&!i&&(f||u)&&(h||!g)){let t=parseFloat(h);isNaN(t)&&(t=12);let n=h?.replace(t,"");["px","rem","em"].includes(n)||(n="rem");let r=2;r=f&&u?f+u-1:f||u;const o="px"===n?24:1.5,i=r*t+(r-1)*o,s=2*t+o-1,a=f&&f>1?"1/-1":"auto";b.push({rulesGroup:`@container (max-width: ${Math.max(i,s)}${n})`,selector:e,declarations:{"grid-column":a,"grid-row":"auto"}})}return b}function zb({selector:e,layout:t={},parentLayout:n={},includeContainerQuery:r=!0}){return Db({selector:e,layout:t,parentLayout:n,includeContainerQuery:r}).map(e=>{const t=Pb(e);return e.rulesGroup?`${e.rulesGroup} {\n\t\t\t\t${t}\n\t\t\t}`:t}).join("")}function Fb({style:e={},selector:t,parentLayout:n={},viewportSettings:r}){const o=e?.layout??{};return Object.entries(Nb(r)).map(([r,i])=>{const s=_u(e,{viewport:r,pseudo:gu.pseudo})?.layout;if(!s||!Object.keys(s).length)return"";const a=Db({selector:t,layout:o,viewportOverrides:s,parentLayout:n,includeContainerQuery:!1}).map(Pb).join("");return a?`${i}{${a}}`:""}
25).filter(Boolean).join("")}function $b(e,t,n){if(!vu(n))return{...e,layout:{...e?.layout,...t}};const r={viewport:n.viewport,pseudo:gu.pseudo},o=_u(e,r);return Su(e,r,{...o,layout:{...o?.layout,...t}})}function Vb({clientId:e,style:t,setAttributes:n,allowSizingOnChildren:r,isManualPlacement:o,parentLayout:i}){const{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:c,deviceType:u,viewportSettings:d,isChildBlockAGrid:f,selectedState:p}=(0,R.A)(t=>{const{getBlockRootClientId:n,getBlockEditingMode:r,getTemplateLock:o,getBlockAttributes:i,getSettings:s,getSelectedBlockStyleState:a}=ue(t(fl)),l=n(e);if(o(l)||"default"!==r(l))return{rootClientId:l,isVisible:!1};const c=i(l),u=i(e),d=s(),f=d?.[ne]?.toLowerCase()||$t.desktop.key;return{rootClientId:l,isVisible:!0,parentBlockVisibility:c?.metadata?.blockVisibility,blockBlockVisibility:u?.metadata?.blockVisibility,deviceType:f,viewportSettings:d?.__experimentalFeatures?.viewport,isChildBlockAGrid:"grid"===u?.layout?.type,selectedState:a(e)}},[e]),m=Ju(e),g=m?.ownerDocument?.defaultView,h=null===g?void 0:g,{isBlockCurrentlyHidden:y,currentViewport:v}=Tb({blockVisibility:l,deviceType:u,view:h,viewportSettings:d}),k=(0,R.A)(e=>{if(!s)return!1;const{isBlockParentHiddenAtViewport:t}=ue(e(fl));return t(s,v)},[s,v]),{isBlockCurrentlyHidden:x}=Tb({blockVisibility:c,deviceType:u,view:h,viewportSettings:d}),[w,_]=(0,b.useState)(),S=f?e:void 0;if(!a||y||k)return null;const C=r&&!x;function A(e){n({style:$b(t,e,p)})}return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Tl.GridVisualizer,{clientId:s,contentRef:_,parentLayout:i,childGridClientId:S}),C&&(0,Be.jsx)(Tl.GridItemResizer,{clientId:e,bounds:w,onChange:A,parentLayout:i}),o&&window.__experimentalEnableGridInteractivity&&(0,Be.jsx)(Tl.GridItemMovers,{layout:t?.layout,parentLayout:i,onChange:A,gridClientId:s,blockClientId:e})]})}var Hb={useBlockProps:function({style:e}){const{shouldRenderChildLayoutStyles:t,viewportSettings:n}=(0,R.A)(e=>{const t=e(fl).getSettings();return{shouldRenderChildLayoutStyles:!t.disableLayoutStyles,viewportSettings:t?.__experimentalFeatures?.viewport}}),r=e?.layout??{},{columnStart:o,rowStart:i,columnSpan:s,rowSpan:a}=r,l=jc()||{},c=(0,Ul.A)(jb),u=`.wp-container-content-${c}`;let d="";if(t&&(d=[zb({selector:u,layout:r,parentLayout:l}),Fb({style:e,selector:u,parentLayout:l,viewportSettings:n})].join("")),vl({css:d}),d)return{className:`wp-container-content-${c}`}},edit:function({clientId:e,style:t,setAttributes:n}){const r=jc()||{},{type:o="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return"grid"!==o?null:(0,Be.jsx)(Vb,{clientId:e,style:t,setAttributes:n,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})},attributeKeys:["style"],hasSupport:()=>!0},Wb="metadata";(0,_.U2)("blocks.registerBlockType","core/metadata/addMetaAttribute",function(e){return e?.attributes?.[Wb]?.type||(e.attributes={...e.attributes,[Wb]:{type:"object"}}),e}),(0,_.U2)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",function(e,t,n,r){if(1===r.length&&e.innerBlocks.length===t.length)return e;if(1===r.length&&t.length>1||r.length>1&&1===t.length)return e;if(r.length>1&&t.length>1&&r.length!==t.length)return e;const o=t[n]?.attributes?.metadata;if(!o)return e;const i={};return o.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=o.noteId),o.name&&!e.attributes?.metadata?.name&&(0,h.pN)(e.name,"renaming",!0)&&(i.name=o.name),void 0!==o.blockVisibility&&!e.attributes?.metadata?.blockVisibility&&(0,h.pN)(e.name,"visibility",!0)&&(i.blockVisibility=o.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e});var Ub=n(7680),Kb=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M7 13L12 9L17 13",vectorEffect:"non-scaling-stroke"})}),Gb=n(5673),qb=n(7273),Zb={initial:void 0,fallback:""};var Yb=function(e,t=Zb){const{initial:n,fallback:r}={...Zb,...t},[o,i]=(0,b.useState)(e),s=(0,qb.J5)(e);return(0,b.useEffect)(()=>{s&&o&&i(void 0)},[s,o]),[(0,qb.vD)([e,o,n],r),(0,b.useCallback)(e=>{s||i(e)},[s])]},Xb=n(9057),Qb=()=>{};var Jb=(0,b.forwardRef)(({isOpened:e,icon:t,title:n,...r},o)=>n?(0,Be.jsx)("h2",{className:"components-panel__body-title",children:(0,Be.jsxs)(yc.A,{__next40pxDefaultSize:!0,className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r,children:[(0,Be.jsx)("span",{"aria-hidden":"true",children:(0,Be.jsx)(zl.A,{className:"components-panel__arrow",icon:e?Kb:Gb.A})}),n,t&&(0,Be.jsx)(zl.A,{icon:t,className:"components-panel__icon",size:20})]})}):null),ey=(0,b.forwardRef)(function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:s,onToggle:a=Qb,opened:l,title:c,scrollAfterOpen:u=!0}=e,[d,f]=Yb(l,{initial:void 0===s||s,fallback:!1}),p=(0,b.useRef)(null),m=(0,Ub.A)()?"auto":"smooth",h=(0,b.useRef)(void 0);h.current=u,(0,Xb.A)(()=>
25{d&&h.current&&p.current?.scrollIntoView&&p.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:m})},[d,m]);const y=(0,g.A)("components-panel__body",o,{"is-opened":d});return(0,Be.jsxs)("div",{className:y,ref:(0,$l.A)([p,t]),children:[(0,Be.jsx)(Jb,{icon:i,isOpened:Boolean(d),onClick:e=>{e.preventDefault();const t=!d;f(t),a(t)},title:c,...n}),"function"==typeof r?r({opened:Boolean(d)}):d&&r]})});ey.displayName="PanelBody";var ty=ey,ny={};var ry={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const r=(0,R.A)(e=>e(h.M_).getBlockTypes(),[]),o=(0,b.useMemo)(()=>r?.filter(({name:t,blockHooks:r})=>r&&e in r||n.includes(t)),[r,e,n]),i=(0,R.A)(n=>{const{getBlocks:r,getBlockRootClientId:i,getGlobalBlockCount:s}=n(fl),a=i(t),l=o.reduce((n,o)=>{if(0===s(o.name))return n;const i=o?.blockHooks?.[e];let l;switch(i){case"before":case"after":l=r(a);break;case"first_child":case"last_child":l=r(t);break;case void 0:l=[...r(a),...r(t)]}const c=l?.find(e=>e.name===o.name);return c?{...n,[o.name]:c.clientId}:n},{});return Object.values(l).length>0?l:ny},[o,e,t]),{getBlockIndex:s,getBlockCount:a,getBlockRootClientId:l}=(0,R.A)(fl),{insertBlock:c,removeBlock:u}=(0,y.A)(fl);if(!o.length)return null;const d=o.reduce((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e},{});return(0,Be.jsx)(Fu,{children:(0,Be.jsxs)(ty,{className:"block-editor-hooks__block-hooks",title:(0,V.__)("Plugins"),initialOpen:!0,children:[(0,Be.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,V.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(d).map(n=>(0,Be.jsxs)(b.Fragment,{children:[(0,Be.jsx)("h3",{children:n}),d[n].map(n=>{const r=n.name in i;return(0,Be.jsx)(tm.A,{checked:r,label:n.title,onChange:()=>{if(!r){const r=n.blockHooks[e];return void((e,n)=>{const r=s(t),o=a(t),i=l(t);switch(n){case"before":case"after":c(e,"after"===n?r+1:r,i,!1);break;case"first_child":case"last_child":c(e,"first_child"===n?0:o,t,!1);break;case void 0:c(e,r+1,i,!1)}})((0,h.Wv)(n.name),r)}u(i[n.name],!1)}},n.title)})]},n))]})})},attributeKeys:["metadata"],hasSupport:()=>!0},oy="data-wp-hash";function iy(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=iy();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)sy(e,n,r)}(document)),e.__wpStyleRuntime}function sy(e,t,n){if(!e.head)return;const r=iy();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${oy}]`))if(n.getAttribute(oy)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(oy,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=iy();n.styles.set(e,t);for(const r of n.documents.keys())sy(r,e,t)})("d5c166f26a","._68553e70f1f1cb4e__item-group._55756ee749a180e1__is-bordered{border:1px solid rgba(0,0,0,.1)}._68553e70f1f1cb4e__item-group._4e8285db01e0c630__is-separated>:not(marquee)>*{border-block-end:1px solid rgba(0,0,0,.1)}._68553e70f1f1cb4e__item-group._4e8285db01e0c630__is-separated>:last-of-type>*{border-block-end-color:transparent}._68553e70f1f1cb4e__item-group._58738db58e87759e__is-rounded{border-radius:var(--wpds-border-radius-sm,2px)}._68553e70f1f1cb4e__item-group._58738db58e87759e__is-rounded>:first-of-type>*{border-start-end-radius:var(--wpds-border-radius-sm,2px);border-start-start-radius:var(--wpds-border-radius-sm,2px)}._68553e70f1f1cb4e__item-group._58738db58e87759e__is-rounded>:last-of-type>*{border-end-end-radius:var(--wpds-border-radius-sm,2px);border-end-start-radius:var(--wpds-border-radius-sm,2px)}._4f562a88cd53281b__item-wrapper,.fc4c000709063bb0__item{display:block;width:100%}.fc4c000709063bb0__item{box-sizing:border-box;color:inherit;margin:0}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button{appearance:none;background:none;border:1px solid transparent;cursor:var(--wpds-cursor-control,pointer);font-family:inherit;font-size:13px;text-align:start}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link svg,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button svg{fill:currentColor}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link:hover,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button:hover{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link:focus,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button:focus{box-shadow:none;outline:none}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link:focus-visible,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:0}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link{text-decoration:none}.fc4c000709063bb0__item._62800b4fe741b26a__is-spaced-around{border-radius:var(--wpds-border-radius-sm,2px)}.fc4c000709063bb0__item.ff341e6676e9138f__is-size-small{padding:4.3px 8px}.fc4c000709063bb0__item._715af0bb13514a58__is-size-medium{padding:7.9px 12px}.fc4c000709063bb0__item.b141618c0c420070__is-size-large{padding:11.5px 16.0008px}");var ay="_68553e70f1f1cb4e__item-group",ly="_55756ee749a180e1__is-bordered",cy="_4e8285db01e0c630__is-separated",uy="_58738db58e87
25759e__is-rounded";var dy=(0,b.createContext)({isList:!1,size:"medium"});dy.displayName="ItemGroupContext";var fy=()=>(0,b.useContext)(dy);var py=(0,cf.KZ)(function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...s}=(0,df.A)(e,"ItemGroup");return{isBordered:n,className:(0,g.A)(ay,{[ly]:n,[cy]:o,[uy]:r},t),role:i,isSeparated:o,...s}}(e),{size:s}=fy(),a=!n&&!r,l=o||s,c={isList:"list"===i.role||"directory"===i.role,spacedAround:a,size:l};return(0,Be.jsx)(dy.Provider,{value:c,children:(0,Be.jsx)(uf.A,{...i,ref:t})})},"ItemGroup"),my=n(6936);function gy(e){return!e||0===Object.keys(e).length}function hy(e){const{clientId:t}=O(),n=e||t,{updateBlockAttributes:r}=(0,y.A)(fl),{getBlockAttributes:o}=(0,v.A)().select(fl);return{updateBlockBindings:e=>{const{metadata:{bindings:t,...i}={}}=o(n),s={...t};Object.entries(e).forEach(([e,t])=>{t||!s[e]?s[e]=t:delete s[e]});const a={...i,bindings:s};gy(a.bindings)&&delete a.bindings,r(n,{metadata:gy(a)?void 0:a})},removeAllBlockBindings:()=>{const{metadata:{bindings:e,...t}={}}=o(n);r(n,{metadata:gy(t)?void 0:t})}}}var by="data-wp-hash";function yy(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=yy();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)vy(e,n,r)}(document)),e.__wpStyleRuntime}function vy(e,t,n){if(!e.head)return;const r=yy();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${by}]`))if(n.getAttribute(by)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(by,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=yy();n.styles.set(e,t);for(const r of n.documents.keys())vy(r,e,t)})("d5c166f26a","._68553e70f1f1cb4e__item-group._55756ee749a180e1__is-bordered{border:1px solid rgba(0,0,0,.1)}._68553e70f1f1cb4e__item-group._4e8285db01e0c630__is-separated>:not(marquee)>*{border-block-end:1px solid rgba(0,0,0,.1)}._68553e70f1f1cb4e__item-group._4e8285db01e0c630__is-separated>:last-of-type>*{border-block-end-color:transparent}._68553e70f1f1cb4e__item-group._58738db58e87759e__is-rounded{border-radius:var(--wpds-border-radius-sm,2px)}._68553e70f1f1cb4e__item-group._58738db58e87759e__is-rounded>:first-of-type>*{border-start-end-radius:var(--wpds-border-radius-sm,2px);border-start-start-radius:var(--wpds-border-radius-sm,2px)}._68553e70f1f1cb4e__item-group._58738db58e87759e__is-rounded>:last-of-type>*{border-end-end-radius:var(--wpds-border-radius-sm,2px);border-end-start-radius:var(--wpds-border-radius-sm,2px)}._4f562a88cd53281b__item-wrapper,.fc4c000709063bb0__item{display:block;width:100%}.fc4c000709063bb0__item{box-sizing:border-box;color:inherit;margin:0}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button{appearance:none;background:none;border:1px solid transparent;cursor:var(--wpds-cursor-control,pointer);font-family:inherit;font-size:13px;text-align:start}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link svg,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button svg{fill:currentColor}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link:hover,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button:hover{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link:focus,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button:focus{box-shadow:none;outline:none}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link:focus-visible,.fc4c000709063bb0__item.d204dc5a680d24cf__is-unstyled-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:0}.fc4c000709063bb0__item.a5802f3508d737a0__is-unstyled-link{text-decoration:none}.fc4c000709063bb0__item._62800b4fe741b26a__is-spaced-around{border-radius:var(--wpds-border-radius-sm,2px)}.fc4c000709063bb0__item.ff341e6676e9138f__is-size-small{padding:4.3px 8px}.fc4c000709063bb0__item._715af0bb13514a58__is-size-medium{padding:7.9px 12px}.fc4c000709063bb0__item.b141618c0c420070__is-size-large{padding:11.5px 16.0008px}");var ky="_4f562a88cd53281b__item-wrapper",xy="fc4c000709063bb0__item",wy="d204dc5a680d24cf__is-unstyled-button",_y="a5802f3508d737a0__is-unstyled-link",Sy="_62800b4fe741b26a__is-spaced-around",Cy={small:"ff341e6676e9138f__is-size-small",medium:"_715af0bb13514a58__is-size-medium",large:"b141618c0c420070__is-size-large"};var Ay=(0,cf.KZ)(function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{isList:t,spacedAround:n,size:r}=fy(),{as:o,className:i,onClick:s,role:a=(t?"listitem":void 0),size:l,...c}=(0,df.A)(e,"Item"),u=l||r,d=o||(void 0!==s?"button":"div");return{as:d,className:(0,g.A)(xy,"button"===d&&wy,"a"===d&&_y,Cy[u]||Cy.medium,n&&Sy,i),onClick:s,wrapperClassName:ky,role:a,...c}}(e),i=(0,b.useRef)(null),{isList:s}=fy();return(0,b.useEffect)(()=>
25{if(s&&"listitem"===n&&!i.current?.closest('ol, ul, menu, [role="list"], [role="directory"]'))throw new Error('Item with list semantics must be rendered inside an element with role="list".')},[s,n]),(0,Be.jsx)("div",{ref:i,role:n,className:r,children:(0,Be.jsx)(uf.A,{...o,ref:t})})},"Item"),{Menu:Ey}=ue(nc);function Iy({args:e,attribute:t,field:n,source:r,sourceKey:o}){const i=(0,b.useMemo)(()=>({source:o,args:n.args||{key:n.key}}),[n.args,n.key,o]),s=(0,b.useContext)(Ud),a=(0,R.A)(e=>r.getValues({select:e,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=hy();return(0,Be.jsxs)(Ey.CheckboxItem,{onChange:()=>{const r=D(e,n.args)??n.key===e?.key;l(r?{[t]:void 0}:{[t]:i})},name:t+"-binding",value:a[t],checked:D(e,n.args)??n.key===e?.key,children:[(0,Be.jsx)(Ey.ItemLabel,{children:n.label}),(0,Be.jsx)(Ey.ItemHelpText,{children:a[t]})]})}function Ty({args:e,attribute:t,sourceKey:n,fields:r}){const o=(0,Bu.A)("medium","<");if(!r||0===r.length)return null;const i=(0,h.Xm)(n);return(0,Be.jsxs)(Ey,{placement:o?"bottom-start":"left-start",children:[(0,Be.jsx)(Ey.SubmenuTriggerItem,{children:(0,Be.jsx)(Ey.ItemLabel,{children:i.label})}),(0,Be.jsx)(Ey.Popover,{gutter:8,children:(0,Be.jsx)(Ey.Group,{children:r.map(r=>(0,Be.jsx)(Iy,{args:e,attribute:t,field:r,source:i,sourceKey:n},n+JSON.stringify(r.args)||r.key))})})]},n)}var{Menu:Ny}=ue(nc);function jy({attribute:e,binding:t,blockName:n}){const{updateBlockBindings:r}=hy(),o=(0,Bu.A)("medium","<"),i=(0,b.useContext)(Ud),s=(0,R.A)(t=>{const{getAllBlockBindingsSources:r,getBlockBindingsSourceFieldsList:o,getBlockType:s}=ue(t(h.M_)),a=s(n).attributes?.[e];if(a?.enum)return{};const l="rich-text"===a?.type?"string":a?.type,c={};return Object.entries(r()).forEach(([e,t])=>{const n=o(t,i);if(!n?.length)return;const r=n.filter(e=>e.type===l);r.length&&(c[e]=r)}),c},[e,n,i]),{canUpdateBlockBindings:a}=(0,R.A)(e=>({canUpdateBlockBindings:e(fl).getSettings().canUpdateBlockBindings})),l=Object.keys(s).length>0,c=!a||!l,{source:u,args:d}=t||{},f=(0,h.Xm)(u);let p,m=!0;return void 0===t?(p=l?(0,V.__)("Not connected"):(0,V.__)("No sources available"),m=!0):f?p=s?.[u]?.find(e=>D(e.args,d))?.label||f?.label||u:(m=!1,p=(0,V.__)("Source not registered")),(0,Be.jsx)(Tl.ToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:!!l&&(()=>{r({[e]:void 0})}),children:(0,Be.jsxs)(Ny,{placement:o?"bottom-start":"left-start",children:[(0,Be.jsx)(Ny.TriggerButton,{render:(0,Be.jsx)(Ay,{}),disabled:!l,children:(0,Be.jsxs)(pf,{className:"block-editor-bindings__item",spacing:0,children:[(0,Be.jsx)(my.A,{truncate:!0,children:e}),(0,Be.jsx)(my.A,{truncate:!0,variant:m?"muted":void 0,isDestructive:!m,children:p})]})}),!c&&(0,Be.jsx)(Ny.Popover,{gutter:o?8:36,children:(0,Be.jsx)(Ny,{placement:o?"bottom-start":"left-start",children:Object.entries(s).map(([n,r])=>(0,Be.jsx)(Ty,{args:t?.args,attribute:e,sourceKey:n,fields:r},n))})})]})})}var By={edit:({name:e,metadata:t})=>{const n=(0,b.useContext)(Ud),{removeAllBlockBindings:r}=hy(),o=(0,Bu.A)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},{bindableAttributes:i,hasCompatibleFields:s}=(0,R.A)(t=>{const{__experimentalBlockBindingsSupportedAttributes:r}=t(fl).getSettings(),{getAllBlockBindingsSources:o,getBlockBindingsSourceFieldsList:i}=ue(t(h.M_));return{bindableAttributes:r?.[e],hasCompatibleFields:Object.values(o()).some(e=>i(e,n)?.length>0)}},[e,n]);if(!i||0===i.length)return null;const{bindings:a}=t||{};return void 0!==a||s?(0,Be.jsx)(Fu,{group:"bindings",children:(0,Be.jsxs)(Tl.ToolsPanel,{label:(0,V.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:o,className:"block-editor-bindings__panel",children:[(0,Be.jsx)(py,{isBordered:!0,isSeparated:!0,children:i.map(t=>(0,Be.jsx)(jy,{attribute:t,blockName:e,binding:a?.[t]},t))}),(0,Be.jsx)(my.A,{as:"div",variant:"muted",children:(0,Be.jsx)("p",{children:(0,V.__)("Attributes connected to custom fields or other dynamic data.")})})]})}):null},attributeKeys:["metadata"],hasSupport:e=>!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)},Ly=(0,b.createContext)({});function Oy(e){const{isOpened:t,expandRevision:n}=(0,R.A)(t=>{const{isListViewPanelOpened:n,getListViewExpandRevision:r}=ue(t(fl));
25return{isOpened:n(e),expandRevision:r()}},[e]),{__unstableToggleListViewPanel:r}=(0,y.A)(fl);return{isOpened:t,expandRevision:n,handleToggle:t=>{r(e,t)}}}Ly.displayName="PrivateBlockContext";var Ry={edit:function({clientId:e,name:t}){const{isSelectionWithinCurrentSection:n}=(0,b.useContext)(Ly),{isOpened:r,expandRevision:o,handleToggle:i}=Oy(e),{openListViewContentPanel:s}=ue((0,y.A)(fl)),{isEnabled:a,hasChildren:l,isNestedListView:c}=(0,R.A)(t=>{const{getBlockCount:n,getBlockParents:r,shouldRenderBlockListView:o}=ue(t(fl)),i=r(e,!1).find(e=>o(e));return{isEnabled:o(e),hasChildren:!!n(e),isNestedListView:i}},[e]),u=(0,h.E7)(t),d=u?.title||t;if(!a||c)return null;const f=n;return(0,Be.jsx)(Tu,{group:"list",children:(0,Be.jsxs)(ty,{title:f?d:void 0,opened:r,onToggle:i,children:[!l&&(0,Be.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,V.__)("No items yet.")}),(0,Be.jsx)(Tl.PrivateListView,{rootClientId:e,isExpanded:!0,description:d,showAppender:!0,onSelect:s},`${e}-${o}`)]})})},hasSupport:function(e){return(0,h.pN)(e,"listView")},attributeKeys:[],supportsPatternEditing:!0};function My(e){(0,Tl.useGridLayoutSync)(e)}function Py({clientId:e,layout:t}){const{isVisible:n,blockVisibility:r,deviceType:o,viewportSettings:i}=(0,R.A)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r,isDraggingBlocks:o,getTemplateLock:i,getBlockEditingMode:s,getBlockAttributes:a,getSettings:l}=t(fl);if(!o()&&!n(e)||i(e)||"default"!==s(e)||r(e))return{isVisible:!1};const c=a(e),u=l(),d=u?.[ne]?.toLowerCase()||$t.desktop.key;return{isVisible:!0,blockVisibility:c?.metadata?.blockVisibility,deviceType:d,viewportSettings:u?.__experimentalFeatures?.viewport}},[e]),s=Ju(e),a=s?.ownerDocument?.defaultView,l=null===a?void 0:a,{isBlockCurrentlyHidden:c,currentViewport:u}=Tb({blockVisibility:r,deviceType:o,view:l,viewportSettings:i}),d=(0,R.A)(t=>{if(!n)return!1;const{isBlockParentHiddenAtViewport:r}=ue(t(fl));return r(e,u)},[e,u,n]);return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(My,{clientId:e}),n&&!c&&!d&&(0,Be.jsx)(Tl.GridVisualizer,{clientId:e,parentLayout:t})]})}(0,_.U2)("blocks.registerBlockType","core/metadata/addLabelCallback",function(e){return e.__experimentalLabel||(0,h.pN)(e,"renaming",!0)&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if(("list-view"===t||"breadcrumb"===t)&&n?.name)return n.name}),e});var Dy=x(e=>function(t){return"grid"!==t.attributes.layout?.type?(0,Be.jsx)(e,{...t},"edit"):(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Py,{clientId:t.clientId,layout:t.attributes.layout}),(0,Be.jsx)(e,{...t},"edit")]})},"addGridVisualizerToBlockEdit");function zy(e){const t=[],n=[];return Object.entries(e).forEach(([e,r])=>{if(!r.autoGenerateControl)return;const o=function(e,t){const n=t.type,r={id:e,label:t.label||e,type:"string"===n?"text":n};t.enum&&Array.isArray(t.enum)&&(r.elements=t.enum.map(e=>({value:e,label:String(e)})));return r}(e,r);o&&(t.push(o),n.push(e))}),{fields:t,form:{fields:n}}}(0,_.U2)("editor.BlockEdit","core/editor/grid-visualizer",Dy);var Fy,$y={edit:function({name:e,clientId:t,setAttributes:n}){const r=Uc(),o=(0,b.useContext)(Ud),i=(0,R.A)(e=>{const n=e(fl).getBlockAttributes(t);if(!n?.metadata?.bindings)return n;const{getBlockBindingsSource:r}=ue(e(h.M_));return Object.entries(n.metadata.bindings).reduce((t,[n,i])=>{const s=r(i.source);if(!s)return t;const a=s.getValues({select:e,context:o,bindings:{[n]:i}});return{...t,...a}},n)},[o,t]),s=(0,h.E7)(e),{fields:a,form:l}=(0,b.useMemo)(()=>s?.attributes?zy(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return"default"!==r?null:a&&0!==a.length?(0,Be.jsx)(Fu,{children:(0,Be.jsx)(ty,{title:(0,V.__)("Settings"),children:(0,Be.jsx)(Tl.DataForm,{data:i,fields:a,form:l,onChange:n})})}):null},attributeKeys:[],hasSupport(e){const t=(0,h.E7)(e);return n=t?.attributes,!!n&&Object.values(n).some(e=>e?.autoGenerateControl);var n}};function Vy(e=!0){const{setZoomLevel:t,resetZoomLevel:n}=ue((0,y.A)(fl)),{isZoomedOut:r,isZoomOut:o}=(0,R.A)(e=>{const{isZoomOut:t}=ue(e(fl));return{isZoomedOut:t(),isZoomOut:t}},[]),i=(0,b.useRef)(!1),s=(0,b.useRef)(e);(0,b.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,b.useEffect)(()=>(s.current=e,e!==o()&&(i.current=!0,e?t("auto-scaled"):n()),()=>{i.current&&o()&&n()}),[e,o,n,t])}!function(e){e=e.map(e=>
25({...e,Edit:(0,b.memo)(e.edit)}));const t=x(t=>function(n){const r=O();return[...e.map((e,t)=>{const{Edit:o,hasSupport:i,attributeKeys:s=[],shareWithChildBlocks:a,supportsPatternEditing:l}=e;if(!(l&&r[A]||r[S]||r[C]&&a)||!i(n.name))return null;const c={};for(const e of s)n.attributes[e]&&(c[e]=n.attributes[e]);return(0,Be.jsx)(o,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...c},t)}),(0,Be.jsx)(t,{...n},"edit")]},"withBlockEditHooks");(0,_.U2)("editor.BlockEdit","core/editor/hooks",t)}([Zc,em,tp,rp,Cg,Yg,Wg,gm,lh,_b,ry,By,Hb,Yf,Ry,$y].filter(Boolean)),function(e){const t=x(t=>function(n){const[r,o]=(0,b.useState)(Array(e.length).fill(void 0));return[...e.map((e,t)=>{const{hasSupport:r,attributeKeys:i=[],useBlockProps:s,isMatch:a}=e,l={};for(const e of i)n.attributes[e]&&(l[e]=n.attributes[e]);return!Object.keys(l).length||!r(n.name)||a&&!a(l)?null:(0,Be.jsx)(wl,{index:t,useBlockProps:s,setAllWrapperProps:o,name:n.name,clientId:n.clientId,...l},t)}),(0,Be.jsx)(t,{...n,wrapperProps:r.filter(Boolean).reduce((e,t)=>({...e,...t,className:(0,g.A)(e.className,t.className),style:{...e.style,...t.style}}),n.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");(0,_.U2)("editor.BlockListBlock","core/editor/hooks",t)}([Zc,em,lf,Cg,jp,ng,Wg,zp,Wp,gm,wp,Yg,lh,Vd,Hb]),Fy=[Zc,em,tp,np,rp,wp,Yg,gm,jp,Cg,zp,Wp],(0,_.U2)("blocks.getSaveContent.extraProps","core/editor/hooks",function(e,t,n){return Fy.reduce((e,r)=>{const{hasSupport:o,attributeKeys:i=[],addSaveProps:s}=r,a={};for(const e of i)n[e]&&(a[e]=n[e]);return Object.keys(a).length&&o(t)?s(e,t,a):e},e)},0),(0,_.U2)("blocks.getSaveContent.extraProps","core/editor/hooks",e=>(e.hasOwnProperty("className")&&!e.className&&delete e.className,e));var Hy=x(e=>function(t){const[n,r,o,i,s]=ml("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),a=s?[...r||[],...n||[],...o||[]]:[...r||[],...o||[]],{colors:l=a,disableCustomColors:c=!i}=t,u=l&&l.length>0||!c;return(0,Be.jsx)(e,{...{...t,colors:l,disableCustomColors:c,hasColorsToChoose:u}})},"withColorContext")(Tl),Wy=n(167);function Uy({rootClientId:e,className:t,onFocus:n,tabIndex:r,onSelect:o},i){return(0,Be.jsx)(Tl,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...e)=>{o&&"function"==typeof o&&o(...e)},renderToggle:({onToggle:e,disabled:o,isOpen:s,blockTitle:a,hasSingleBlockType:l,appenderLabel:c})=>{const u=!l;let d;return d=c||(l?(0,V.nv)( 26// translators: %s: the name of the block when there is only one 27// translators: %s: the name of the block when there is only one 28(0,V._x)("Add %s","directly add the only allowed block"),a.toLowerCase()):(0,V._x)("Add block","Generic label for block inserter button")),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,ref:i,onFocus:n,tabIndex:r,className:(0,g.A)(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":u?"true":void 0,"aria-expanded":u?s:void 0,disabled:o,label:d,showTooltip:!0,children:(0,Be.jsx)(Og.A,{icon:Wy.A})})},isAppender:!0})}(0,b.forwardRef)((e,t)=>((0,$.A)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),Uy(e,t)));var Ky=(0,b.forwardRef)(Uy);var Gy=n(8520);function qy({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:r,isManualGrid:o}=(0,R.A)(t=>{const{getBlockCount:n,getSettings:r,getTemplateLock:o,getBlockAttributes:i}=t(fl),s=!n(e),{bodyPlaceholder:a}=r();return{showPrompt:s,isLocked:!!o(e),placeholder:a,isManualGrid:i(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:i,startTyping:s}=(0,y.A)(fl);if(n||o)return null;const a=(0,Gy.S)(r)||(0,V.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,Be.jsxs)("div",{"data-root-client-id":e||"",className:(0,g.A)("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,Be.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,V.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{Lg.Fm!==e.keyCode&&Lg.t6!==e.keyCode||l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?a:"\ufeff"}),(0,Be.jsx)(Tl,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var Zy=new WeakMap;function Yy(){let e;return t=>(void 0!==e&&(0,_m.hw)(e,t)||(e=t),e)}function Xy(e){const[t]=(0,b.useState)(Yy);return t(e)}var Qy=n(9626);function Jy(e){return x(t=>{const n="core/with-filters/"+e;let r;class o extends b.Component{constructor(n){super(n),void 0===r&&(r=(0,_.W5)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,_.ip)("hookRemoved",n,s),(0,_.ip)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter(e=>e!==this),0===o.instances.length&&((0,_.V5)("hookRemoved",n),(0,_.V5)("hookAdded",n))}render(){return(0,Be.jsx)(r,{...this.props})}}o.instances=[];const i=$f(()=>
28{r=(0,_.W5)(e,t),o.instances.forEach(e=>{e.forceUpdate()})},16);function s(t){t===e&&i()}return o},"withFilters")}var ev="undefined"!=typeof window?b.useLayoutEffect:b.useEffect,tv=(e,t)=>{const n=(0,v.A)(),r=(0,b.useRef)(e);return ev(()=>{r.current=e}),(0,b.useMemo)(()=>{const e=r.current(n.dispatch,n);return Object.fromEntries(Object.entries(e).map(([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>r.current(n.dispatch,n)[e](...t)])))},[n,...t])},nv=e=>x(t=>n=>{const r=tv((t,r)=>e(t,n,r),[]);return(0,Be.jsx)(t,{...n,...r})},"withDispatch"),rv=n(8838),ov=n(8569),iv=n(4464),sv=n(9123),av=n(6880);function lv(e){return e?.startsWith("#")&&(0,iv.R)(e)}function cv(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function uv(e){if(e.includes(" "))return!1;const t=(0,sv.J)(e),n=(0,av.v)(t),r=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),o=e?.startsWith("www.");return n||o||lv(e)||r||cv(e)}var dv="core/pattern-overrides",fv={};function pv(e,t,n){let r;if(t)for(const[n,o]of Object.entries(e))t.includes(n)&&(void 0===r&&(r={}),r[n]=o);if(n)for(const t of n)t?.usesContext?.forEach(t=>{t in e&&(void 0===r&&(r={}),r[t]=e[t])});return r??fv}function mv(e){return e?.__default?.source===dv}function gv(e,t){if(!mv(e))return e;const n={};for(const r of t){const t=e[r]?e[r]:{source:dv};n[r]=t}return n}var hv=Jy("editor.BlockEdit")(e=>{const{name:t}=e,n=(0,h.E7)(t);if(!n)return null;const r=n.edit||n.save;return(0,Be.jsx)(r,{...e})}),bv=e=>{const{name:t,clientId:n,attributes:r,setAttributes:o}=e,i=(0,v.A)(),s=(0,h.E7)(t),a=(0,b.useContext)(Ud),l=(0,R.A)(e=>ue(e(h.M_)).getAllBlockBindingsSources(),[]),{bindableAttributes:c}=(0,b.useContext)(Ly),{blockBindings:u,context:d,hasPatternOverrides:f}=(0,b.useMemo)(()=>({blockBindings:gv(r?.metadata?.bindings,c),context:pv(a,s?.usesContext,r?.metadata?.bindings?Object.values(r.metadata.bindings).map(e=>l[e?.source]):void 0),hasPatternOverrides:mv(r?.metadata?.bindings)}),[s?.usesContext,a,r?.metadata?.bindings,c,l]),p=(0,R.A)(e=>{if(!u)return r;const t={},o=new Map;for(const[e,t]of Object.entries(u)){const{source:n,args:r}=t,i=l[n];i&&c?.includes(e)&&o.set(i,{...o.get(i),[e]:{args:r}})}if(o.size)for(const[r,i]of o){let o={};r.getValues?o=r.getValues({select:e,context:d,clientId:n,bindings:i}
28):Object.keys(i).forEach(e=>{o[e]=r.label});for(const[e,n]of Object.entries(o))"url"!==e||n&&uv(n)?t[e]=n:t[e]=null}return{...r,...t}},[r,c,u,n,d,l]),m=(0,b.useCallback)(e=>{u?i.batch(()=>{const t={...e},r=new Map;for(const[e,n]of Object.entries(t)){if(!u[e]||!c?.includes(e))continue;const o=u[e],i=l[o?.source];i?.setValues&&(r.set(i,{...r.get(i),[e]:{args:o.args,newValue:n}}),delete t[e])}if(r.size)for(const[e,t]of r)e.setValues({select:i.select,dispatch:i.dispatch,context:d,clientId:n,bindings:t});const s=!!d["pattern/overrides"];f&&s||!Object.keys(t).length||(f&&delete t.href,o(t))}):o(e)},[c,u,n,d,f,o,l,i]);if(!s)return null;if(s.apiVersion>1)return(0,Be.jsx)(hv,{...e,attributes:p,context:d,setAttributes:m});const y=(0,h.pN)(s,"className",!0)?(0,h.KW)(t):null,k=(0,g.A)(y,r?.className,e.className);return(0,Be.jsx)(hv,{...e,attributes:p,className:k,context:d,setAttributes:m})},yv=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var vv=function({className:e,actions:t,children:n,secondaryActions:r}){return(0,Be.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,Be.jsx)("div",{className:(0,g.A)(e,"block-editor-warning"),children:(0,Be.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,Be.jsx)("p",{className:"block-editor-warning__message",children:n}),(t?.length>0||r)&&(0,Be.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map((e,t)=>(0,Be.jsx)("span",{className:"block-editor-warning__action",children:e},t)),r&&(0,Be.jsx)(pc.A,{className:"block-editor-warning__secondary",icon:yv,label:(0,V.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,Be.jsx)(hc,{children:r.map((e,t)=>(0,Be.jsx)(kc,{onClick:e.onClick,children:e.title},t))})})]})]})})})};function kv({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:r}=(0,y.A)(fl),o=(0,h.E7)(t);return(0,Be.jsxs)(vv,{actions:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,V.__)("Find original")},"find-original"),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n([]),children:(0,V.__)("Remove")},"remove")],children:[(0,Be.jsxs)("strong",{children:[o?.title,": "]}),(0,V.__)("This block can only be used once.")]})}function xv({mayDisplayControls:e,mayDisplayParentControls:t,mayDisplayPatternEditingControls:n,blockEditingMode:r,isPreviewMode:o,...i}){const{name:s,isSelected:a,clientId:l,attributes:c={},__unstableLayoutClassNames:u}=i,{layout:d=null,metadata:f={}}=c,{bindings:p}=f,m=(0,h.pN)(s,"layout",!1)||(0,h.pN)(s,"__experimentalLayout",!1),g=!!O()[N]||(0,h.pN)(s,"listView")||"core/navigation"===s,{originalBlockClientId:y}=(0,b.useContext)(Ly);return(0,Be.jsxs)(L,{value:(0,b.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:m?d:null,__unstableLayoutClassNames:u,[S]:e,[C]:t,[A]:n&&"disabled"!==r,[E]:r,[I]:p,[T]:o,[N]:g}),[s,a,l,m,d,u,e,t,n,r,p,o,g]),children:[(0,Be.jsx)(bv,{...i}),y&&(0,Be.jsx)(kv,{originalBlockClientId:y,name:s,onReplace:i.onReplace})]})}function wv({title:e,rawContent:t,renderedContent:n,action:r,actionText:o,className:i}){return(0,Be.jsxs)("div",{className:i,children:[(0,Be.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,Be.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,Be.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,Be.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,Be.jsx)(om.A,{children:(0,ov.A)(n)})})]}),(0,Be.jsx)("div",{className:"block-editor-block-compare__action",children:(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:o})})]})}var _v=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:o}){const i=(s=r(e),(Array.isArray(s)?s:[s]).map(e=>(0,h.Z9)(e.name,e.attributes,e.innerBlocks)).join(""));var s;const a=(l=e.originalContent,c=i,(0,Tl.diffChars)(l,c).map((e,t)=>{const n=(0,g.A)({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,Be.jsx)("span",{className:n,children:e.value},t)}));var l,c;return(0,Be.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,Be.jsx)(wv,{title:(0,V.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,V.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,Be.jsx)(wv,{title:(0,V.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:o,rawContent:a,renderedContent:i})]})},Sv=e=>(0,h.lh)({HTML:e.originalContent});function Cv({clientId:e}){const{block:t,canInsertHTMLBlock:n}=(0,R.A)(t=>
28{const{canInsertBlockType:n,getBlock:r,getBlockRootClientId:o}=t(fl),i=o(e);return{block:r(e),canInsertHTMLBlock:n("core/html",i)}},[e]),{replaceBlock:r}=(0,y.A)(fl),[o,i]=(0,b.useState)(!1),s=(0,b.useCallback)(()=>i(!1),[]),a=(0,b.useMemo)(()=>({toHTML(){const e=(0,h.Wv)("core/html",{},[],[t.originalContent]);return r(t.clientId,e)},toBlocks(){const e=Sv(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,h.Wv)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}}),[t,r]),l=(0,b.useMemo)(()=>[{ 29// translators: Button to fix block content 30title:(0,V._x)("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:(0,V.__)("Convert to HTML"),onClick:a.toHTML}].filter(Boolean),[n,a]);return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(vv,{actions:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,V.__)("Attempt recovery")},"recover")],secondaryActions:l,children:(0,V.__)("Block contains unexpected or invalid content.")}),o&&(0,Be.jsx)(Tl,{title: 31// translators: Dialog title to fix block content 32// translators: Dialog title to fix block content 33(0,V.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare",children:(0,Be.jsx)(_v,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:Sv,convertButtonText:(0,V.__)("Convert to Blocks")})})]})}var Av=(0,Be.jsx)(vv,{className:"block-editor-block-list__block-crash-warning",children:(0,V.__)("This block has encountered an error and cannot be previewed.")});function Ev(){return Av}var Iv=class extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},Tv=Iv;o();var Nv=new WeakSet;function jv(){return(0,Ku.A)(e=>(Nv.add(e),()=>{Nv.delete(e)}),[])}var Bv=function({clientId:e}){const[t,n]=(0,b.useState)(""),r=jv(),i=(0,R.A)(t=>t(fl).getBlock(e),[e]),{updateBlock:s}=(0,y.A)(fl),a=(0,b.useMemo)(()=>i?(0,h.F8)(i):"",[i]);return(0,b.useEffect)(()=>{n(a)},[a]),(0,Be.jsx)(o(),{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const r=(0,h.E7)(i.name);if(!r)return;const o=(0,h.Ph)(r,t,i.attributes),a=t||(0,h.Z9)(r,o),[l]=t?(0,h.YV)({...i,attributes:o,originalContent:a}):[!0];s(e,{attributes:o,originalContent:a,isValid:l}),t||n(a)},onChange:e=>n(e.target.value),ref:r})};function Lv({isDisabled:e=!1}={}){return(0,Ku.A)(t=>{if(e)return;const n=t?.ownerDocument?.defaultView;if(!n)return;const r=[],o=()=>{t.childNodes.forEach(e=>{e instanceof n.HTMLElement&&(e.getAttribute("inert")||(e.setAttribute("inert","true"),r.push(()=>{e.removeAttribute("inert")})))})},i=$f(o,0,{leading:!0});o();const s=new window.MutationObserver(i);return s.observe(t,{childList:!0}),()=>{s&&s.disconnect(),i.cancel(),r.forEach(e=>e())}},[e])}var Ov=n(288);function Rv(e){return"INPUT"===e?.nodeName}function Mv(e){return Rv(e)&&e.type&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"].includes(e.type)||"TEXTAREA"===e.nodeName||"true"===e.contentEditable}var Pv=n(7815);function Dv(e){if(!e)return!1;const{tagName:t}=e;return(0,Pv.A)(e)||"BUTTON"===t||"SELECT"===t}function zv(e,t,n,r){const o=r.style.zIndex,i=r.style.position,s=r.style.borderRadius,{position:a="static"}=Am(r);"static"===a&&(r.style.position="relative"),r.style.zIndex="10000",r.style.borderRadius="0";const l=function(e,t,n){if(e.caretPositionFromPoint){const r=e.caretPositionFromPoint(t,n);if(!r)return null;const o=e.createRange();return o.setStart(r.offsetNode,r.offset),o.collapse(!0),o}return e.caretRangeFromPoint?e.caretRangeFromPoint(t,n):null}(e,t,n);return r.style.zIndex=o,r.style.position=i,r.style.borderRadius=s,l}function Fv(e){return"rtl"===Am(e).direction}function $v(e,t,n){let r=n();return r&&r.startContainer&&e.contains(r.startContainer)||(e.scrollIntoView(t),r=n(),r&&r.startContainer&&e.contains(r.startContainer))?r:null}function Vv(e,t,n){if(!e)return;if(e.focus(),(0,Pv.A)(e)){if("number"!=typeof e.selectionStart)return;return void(t?(e.selectionStart=e.value.length,e.selectionEnd=e.value.length):(e.selectionStart=0,e.selectionEnd=0))}if("true"!==e.contentEditable)return;const r=$v(e,t,()=>function(e,t,n){const{ownerDocument:r}=e,o=Fv(e)?!t:t,i=e.getBoundingClientRect();return void 0===n?n=t?i.right-1:i.left+1:n<=i.left?n=i.left+1:n>
33=i.right&&(n=i.right-1),zv(r,n,o?i.bottom-1:i.top+1,e)}(e,t,n));if(!r)return;const{ownerDocument:o}=e,{defaultView:i}=o;(0,Cm.e)(i,"defaultView");const s=i.getSelection();(0,Cm.e)(s,"selection"),s.removeAllRanges(),s.addRange(r)}function Hv(e,t){return Vv(e,t,void 0)}function Wv({clientId:e,initialPosition:t}){const n=(0,b.useRef)(),{isBlockSelected:r,isMultiSelecting:o,isZoomOut:i,getSelectionStart:s}=ue((0,R.A)(fl));return(0,b.useEffect)(()=>{if(!r(e)||o()||i())return;if(null==t)return;if(!n.current)return;const{ownerDocument:a}=n.current;if(Om(n.current,a.activeElement))return;if(!0===t)return void n.current.focus();const l=Ov.XC.tabbable.find(n.current).filter(e=>Mv(e)),c=-1===t,u=l[c?l.length-1:0]||n.current;if(!Om(n.current,u))return void n.current.focus();if(!n.current.getAttribute("contenteditable")){const e=Ov.XC.tabbable.findNext(n.current);if(e&&Om(n.current,e)&&Dv(e))return void e.focus()}const{activeElement:d}=a,f=a.defaultView.getSelection(),{clientId:p,offset:m}=s();d?.isContentEditable&&d.contains(u)&&!!f.anchorNode&&u.contains(f.anchorNode)&&(0===t||void 0!==m&&p===e)||Hv(u,c)},[t,e]),n}var Uv=n(7124),{subscribeDelegatedListener:Kv}=ue(Uv.j);function Gv({isEnabled:e=!0}={}){return(0,Ku.A)(t=>{if(!e)return;let n;function r(e){if(e.defaultPrevented)return;e.preventDefault();const r="mouseover"===e.type;if(t.classList.toggle("is-hovered",r),clearTimeout(n),!r)return void t.classList.remove("is-hovered-draggable");const{target:o}=e;n=setTimeout(()=>{t.classList.toggle("is-hovered-draggable",!o.isContentEditable)},100)}const o=Kv(t,"mouseout",r),i=Kv(t,"mouseover",r);return()=>{o(),i(),clearTimeout(n),t.classList.remove("is-hovered"),t.classList.remove("is-hovered-draggable")}},[e])}var{subscribeDelegatedListener:qv}=ue(Uv.j);function Zv(e){const{isBlockSelected:t,isBlockMultiSelected:n,isMultiSelecting:r}=(0,R.A)(fl),{selectBlock:o,selectionChange:i}=(0,y.A)(fl);return(0,Ku.A)(s=>qv(s,"focusin",function(a){t(e)?a.target.isContentEditable||i(e):r()||n(e)||Om(s,a.target)&&(a.target.isContentEditable?o(e,null):o(e))}),[t,o])}var Yv={onKeyDown:"keydown",onKeyUp:"keyup",onBeforeInput:"beforeinput",onInput:"input",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onCompositionEnd:"compositionend"},Xv=Object.values(Yv);var Qv=["eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted"],Jv=[...Qv,"view","detail","key","code","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","keyCode","which"],ek=[...Qv,"data"],tk={keydown:Jv,keyup:Jv,beforeinput
33:ek,input:ek,compositionstart:ek,compositionupdate:ek,compositionend:ek};function nk(e,t){let n=!1;const r={nativeEvent:e,type:e.type,target:t,currentTarget:null,preventDefault(){e.preventDefault(),r.defaultPrevented=!0},isDefaultPrevented:()=>r.defaultPrevented,stopPropagation(){e.stopPropagation(),n=!0},isPropagationStopped:()=>n,persist(){},isPersistent:()=>!0};for(const t of tk[e.type]){const n=e[t];r[t]="function"==typeof n?n.bind(e):n}return r}function rk(){const{hasMultiSelection:e,getBlockParents:t}=(0,R.A)(fl),{refsMap:n,eventHandlers:r}=(0,b.useContext)(qu);return(0,Ku.A)(o=>{function i(i){if(!r.size||i.target!==o||!i.isTrusted||"true"!==o.contentEditable||e())return;const s=o.ownerDocument.defaultView.getSelection();if(!s.rangeCount)return;const a=Rm(s,o),l=Mm(a);if(!l)return;const c=[l,...t(l,!0)];let u;for(const e of c){const t=r.get(e)?.current?.[i.type],o=t&&n.get(e);if(o&&(u||(u=nk(i,a)),u.currentTarget=o,t(u),u.isPropagationStopped()))break}}const s=o.ownerDocument.documentElement,a=Xv.map(e=>(s.addEventListener(e,i),()=>s.removeEventListener(e,i)));return()=>a.forEach(e=>e())},[e,t,n,r])}function ok(e,t){const{eventHandlers:n}=(0,b.useContext)(qu),r=function(e){let t;for(const n in Yv)"function"==typeof e[n]&&(t=t||{},t[Yv[n]]=e[n]);return t}(t),o=(0,b.useRef)();(0,b.useInsertionEffect)(()=>{o.current=r});const i=!!r;(0,b.useEffect)(()=>{if(i)return n.set(e,o),()=>n.delete(e)},[n,e,i])}function ik(e){return!e||"transparent"===e||"rgba(0, 0, 0, 0)"===e}function sk({clientId:e,isSelected:t}){const{getBlockRootClientId:n,isZoomOut:r,hasMultiSelection:o,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=ue((0,R.A)(fl)),{removeBlock:l,resetZoomLevel:c,startDraggingBlocks:u,stopDraggingBlocks:d,editContentOnlySection:f}=ue((0,y.A)(fl));return(0,Ku.A)(p=>{if(t)return p.addEventListener("keydown",m),p.addEventListener("dragstart",g),p.addEventListener("dblclick",b),()=>{p.removeEventListener("keydown",m),p.removeEventListener("dragstart",g),p.removeEventListener("dblclick",b)};function m(t){const{keyCode:n,target:o}=t;n!==Lg.Fm&&n!==Lg.G_&&n!==Lg.SJ||o!==p||Mv(o)||(n===Lg.Fm?r()&&(t.preventDefault(),c()):(t.preventDefault(),l(e)))}function g(t){if(p!==t.target||p.isContentEditable||p.ownerDocument.activeElement!==p||o())return void t.preventDefault();const r=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:n(e)});t.dataTransfer.effectAllowed="move",t.dataTransfer.clearData(),t.dataTransfer.setData("wp-blocks",r);const{ownerDocument:i}=p,{defaultView:s}=i;s.getSelection().removeAllRanges();const a=i.createElement("div");a.style.width="1px",a.style.height="1px",a.style.position="fixed",a.style.visibility="hidden",i.body.appendChild(a),t.dataTransfer.setDragImage(a,0,0);const l=p.getBoundingClientRect(),c=p.id,f=p.cloneNode();f.style.display="none",p.id=null,p.after(f);let m=1;{let e=p;for(;e=e.parentElement;){const{scale:t}=s.getComputedStyle(e);if(t&&"none"!==t){m=parseFloat(t);break}}}const g=1/m,h={};for(const e of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])h[e]=p.style[e];const b=s.scrollY,y=s.scrollX,v=t.clientX,k=t.clientY;p.style.position="relative",p.style.top="0px",p.style.left="0px";const x=t.clientX-l.left,w=t.clientY-l.top,_=l.height>200?200/l.height:1;if(p.style.zIndex="1000",p.style.transformOrigin=`${x*g}px ${w*g}px`,p.style.transition="transform 0.2s ease-out",p.style.transform=`scale(${_})`,p.style.opacity="0.9",ik(s.getComputedStyle(p).backgroundColor)){let e="transparent",t=p;for(;t=t.parentElement;){const{backgroundColor:n}=s.getComputedStyle(t);if(!ik(n)){e=n;break}}p.style.backgroundColor=e}let S=!1,C=v,A=k;function E(e){e.clientX===C&&e.clientY===A||(C=e.clientX,A=e.clientY,I())}function I(){S||(S=!0,p.style.pointerEvents="none");const e=A-k,t=C-v,n=s.scrollY,r=s.scrollX,o=e+(n-b),i=t+(r-y);p.style.top=o*g+"px",p.style.left=i*g+"px"}function T(){i.removeEventListener("dragover",E),i.removeEventListener("dragend",T),i.removeEventListener("drop",T),i.removeEventListener("scroll",I);for(const[e,t]of Object.entries(h))p.style[e]=t;f.remove(),p.id=c,a.remove(),d(),document.body.classList.remove("is-dragging-components-draggable"),i.documentElement.classList.remove("is-dragging")}i.addEventListener("dragover",E),i.addEventListener("dragend",T),i.addEventListener("drop",T),i.addEventListener("scroll",I),u([e]),document.body.classList.add("is-dragging-components-draggable"),i.documentElement.classList.add("is-dragging")}function b(t){const n=i(e),r=a(e),o=(0,h.tk)(r),l=(0,h.gc)(r);!n||s===e||o||l||(t.preventDefault(),f(e))}},[e,t,n,a,h.tk,h.gc,l,r,c,o,u,d,i,s,f])}function ak(){const e=(0,b.useContext)(Bk);return(0,Ku.A)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}function lk({isSelected:e}){const t=(0,Ub.A)();return(0,Ku.A)(n=>{if(e){const{ownerDocument:e}=n,{defaultView:r}=e;if(!r.IntersectionObserver)return;const o=new r.IntersectionObserver(e=>{e[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),o.disconnect()});return o.observe(n),()=>{o.disconnect()}}},[e])}function ck({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=ue((0,R.A)(fl));return(0,Ku.A)(r=>{if(!t)return;const o=t=>{(t.target===r||t.target.classList.contains("is-root-container"))&&(t.defaultPrevented||(t.preventDefault(),n(e).forEach(({clientId:e})=>{const t=r.querySelector(`[data-block="${e}"]`);t&&(t.classList.remove("has-editable-outline"),t.offsetWidth,t.classList.add("has-editable-outline"))})))};return r.addEventListener("click",o),()=>r.removeEventListener("click",o)},[t])}var uk=new Map;function dk(e){const t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),"true"!==t||e.getAttribute("draggable")||e.setAttribute("draggable","true"))}function fk(e){const{target:t}=e,{ownerDocument:n,isContentEditable:r,tagName:o}=t,i=["INPUT","TEXTAREA"].includes(o),s=uk.get(n);if(r||i)for(const e of s)"true"===e.getAttribute("draggable")&&e.contains(t)&&(e.removeAttribute("draggable"),e.setAttribute("data-draggable","true"));else for(const e of s)dk(e)}function pk(){return(0,Ku.A)(e=>(function(e,t){let n=uk.get(e);n||(n=new Set,uk.set(e,n),e.addEventListener("pointerdown",fk)),n.add(t)}(e.ownerDocument,e),()=>{!function(e,t){const n=uk.get(e);n&&(n.delete(t),dk(t),0===n.size&&(uk.delete(e),e.removeEventListener("pointerdown",fk)))}(e.ownerDocument,e)}),[])}function mk(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:r,wrapperProps:o={},isAligned:i,index:s,mode:a,name:l,blockApiVersion:c,blockTitle:u,isSelected:d,isSubtreeDisabled:f,hasOverlay:p,initialPosition:m,blockEditingMode:h,isHighlighted:v,isMultiSelected:k,isPartiallySelected:x,isReusable:w,isDragging:_,hasChildSelected:S,isEditingDisabled:C,hasEditableOutline:A,isEditingContentOnlySection:E,defaultClassName:T,isSectionBlock:N,isWithinSectionBlock:j,canMove:B,blockVisibility:L,deviceType:R,viewportSettings:M,ariaLabel:P,ghostBlock:D,rootClientId:z}=(0,b.useContext)(Ly),F=function(e,t){const{insertBlocks:n}=(0,y.A)(fl);return(0,Ku.A)(r=>{if(t)return r.addEventListener("pointerdown",i,!0),r.addEventListener("focusin",i,!0),o;function o(){r.removeEventListener("pointerdown",i,!0),r.removeEventListener("focusin",i,!0)}function i(){o(),n([t],void 0,e,!0,0)}},[t,e,n])}(z,D);ok(n,o);const $=(0,Ku.A)(e=>{if(e){const{ownerDocument:t}=e,{defaultView:n}=t;$.current=n}},[]),H=(0,V.nv)((0,V.__)("Block: %s"),u),W="html"!==a||t?"":"-visual",U=pk(),K=!j,G=(0,$l.A)([e.ref,F,$,Wv({clientId:n,initialPosition:m}),Yu(n),Zv(n),sk({clientId:n,isSelected:d}),Gv({isEnabled:K}),ak(),Tl({triggerAnimationOnChange:s,clientId:n}
33),Lv({isDisabled:!p}),ck({clientId:n,isEnabled:N}),lk({isSelected:d}),B?U:void 0]),q=O(),Z=!!q[I]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{},{isBlockCurrentlyHidden:Y}=Tb({blockVisibility:L,deviceType:R,viewportSettings:M,view:$.current});c<2&&n===q.clientId&&(0,ac.A)(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let X=!1;return"-"!==o?.style?.marginTop?.charAt(0)&&"-"!==o?.style?.marginBottom?.charAt(0)&&"-"!==o?.style?.marginLeft?.charAt(0)&&"-"!==o?.style?.marginRight?.charAt(0)||(X=!0),{tabIndex:"disabled"===h?-1:0,draggable:!(!B||S)||void 0,...o,...e,ref:G,id:`block-${n}${W}`,role:"document","aria-label":P??(n===D?.clientId?(0,V.__)("Add default block"):void 0)??e["aria-label"]??H,"data-block":n,"data-type":l,"data-title":u,inert:f?"true":void 0,className:(0,g.A)("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":p,"is-selected":d,"is-highlighted":v,"is-multi-selected":k,"is-partially-selected":x,"is-reusable":w,"is-dragging":_,"has-child-selected":S,"is-editing-disabled":C,"has-editable-outline":A,"has-negative-margin":X,"is-editing-content-only-section":E,"is-block-hidden":Y},r,e.className,o.className,T),style:{...o.style,...e.style,...Z}}}function gk({children:e,isHtml:t,...n}){return(0,Be.jsx)("div",{...mk(n,{__unstableIsHtml:t}),children:e})}function hk({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:r,clientId:o,isSelected:i,isSelectionEnabled:s,className:a,__unstableLayoutClassNames:l,name:c,isValid:u,attributes:d,wrapperProps:f,setAttributes:p,onReplace:m,onRemove:y,onInsertBlocksAfter:v,onMerge:k,toggleSelection:x}){const{mayDisplayControls:w,mayDisplayParentControls:_,isSelectionWithinCurrentSection:S,themeSupportsLayout:C,...A}=(0,b.useContext)(Ly),E=jc()||{};let I=(0,Be.jsx)(xv,{name:c,isSelected:i,attributes:d,setAttributes:p,insertBlocksAfter:n?void 0:v,onReplace:r?m:void 0,onRemove:r?y:void 0,mergeBlocks:r?k:void 0,clientId:o,isSelectionEnabled:s,toggleSelection:x,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(E).length?E:void 0,mayDisplayControls:w,mayDisplayParentControls:_,mayDisplayPatternEditingControls:S,blockEditingMode:A.blockEditingMode,isPreviewMode:A.isPreviewMode});const T=(0,h.E7)(c);T?.getEditWrapperProps&&(f=function(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=(0,g.A)(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}(f,T.getEditWrapperProps(d)));const N=f&&!!f["data-align"]&&!C,j=a?.includes("is-position-sticky");let B;if(N&&(I=(0,Be.jsx)("div",{className:(0,g.A)("wp-block",j&&a),"data-align":f["data-align"],children:I})),u)B="html"===t?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{style:{display:"none"},children:I}),(0,Be.jsx)(gk,{isHtml:!0,children:(0,Be.jsx)(Bv,{clientId:o})})]}):T?.apiVersion>1?I:(0,Be.jsx)(gk,{children:I});else{const t=e?(0,h.Kx)(e):(0,h.Z9)(T,d);B=(0,Be.jsxs)(gk,{className:"has-warning",children:[(0,Be.jsx)(Cv,{clientId:o}),(0,Be.jsx)(om.A,{children:(0,ov.A)(t)})]})}const{"data-align":L,...O}=f??{},R={...O,className:(0,g.A)(O.className,L&&C&&`align${L}`,!(L&&j)&&a)};return(0,Be.jsx)(Ly.Provider,{value:{wrapperProps:R,isAligned:N,isSelectionWithinCurrentSection:S,...A},children:(0,Be.jsx)(Tv,{fallback:(0,Be.jsx)(gk,{className:"has-warning",children:(0,Be.jsx)(Ev,{})}),children:B})})}mk.save=h.cV;var bk=nv((e,t,n)=>{const{updateBlockAttributes:r,insertBlocks:o,mergeBlocks:i,replaceBlocks:s,toggleSelection:a,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:c,removeBlock:u,selectBlock:d}=e(fl);return{setAttributes(e){const{getMultiSelectedBlockClientIds:o}=n.select(fl),i=o(),{clientId:s,attributes:a}=t,l=i.length?i:[s],c="function"==typeof e?e(a):e;r(l,c)},onInsertBlocks(e,n){const{rootClientId:r}=t;o(e,n,r)},onInsertBlocksAfter(e){const{clientId:r,rootClientId:i}=t,{getBlockIndex:s}=n.select(fl),a=s(r);o(e,a+1,i)},onMerge(e){const{clientId:r,rootClientId:a}=t,{getPreviousBlockClientId:l,getNextBlockClientId:f,getBlock:p,getBlockAttributes:m,getBlockName:g,getBlockOrder:b,getBlockIndex:y,getBlockRo
33otClientId:v,canInsertBlockType:k}=n.select(fl);function x(){const e=p(r),t=(0,h.K$)(),o=(0,h.E7)(t);if(g(r)!==t){const n=(0,h.bh)(e,t);n&&n.length&&s(r,n)}else if((0,h.Xw)(e)){const e=f(r);e&&n.batch(()=>{u(r),d(e)})}else if(o.merge){const n=o.merge({},e.attributes);s([r],[(0,h.Wv)(t,n)])}}function w(e,t=!0){const r=g(e),i="text"===(0,h.E7)(r).category,s=v(e),a=b(e),[l]=a;1===a.length&&(0,h.C5)(p(l),"content")?u(e):i?n.batch(()=>{if(k(g(l),s))c([l],e,s,y(e));else{const n=(0,h.bh)(p(l),(0,h.K$)());n&&n.length&&n.every(e=>k(e.name,s))?(o(n,y(e),s,t),u(l,!1)):x()}!b(e).length&&(0,h.C5)(p(e),"content")&&u(e,!1)}):x()}if(e){if(a){const e=f(a);if(e){if(g(a)!==g(e))return void i(a,e);{const t=m(a),r=m(e);if(Object.keys(t).every(e=>t[e]===r[e]))return void n.batch(()=>{c(b(e),e,a),u(e,!1)})}}}const e=f(r);if(!e)return;if((0,h.Xw)(p(r))){let t=e;for(;b(t).length;)t=b(t)[0];n.batch(()=>{u(r),d(t)})}else b(e).length?w(e,!1):i(r,e)}else{const e=l(r);if(e)i(e,r);else if(a){const e=l(a);if(e&&g(a)===g(e)){const t=m(a),r=m(e);if(Object.keys(t).every(e=>t[e]===r[e]))return void n.batch(()=>{c(b(a),a,e),u(a,!1)})}w(a)}else x()}},onReplace(e,n,r){e.length&&!(0,h.Xw)(e[e.length-1])&&l();const o=1===e?.length&&Array.isArray(e[0])?e[0]:e;s([t.clientId],o,n,r)},onRemove(){u(t.clientId)},toggleSelection(e){a(e)}}});hk=(0,rv.A)(bk,Jy("editor.BlockListBlock"))(hk);var yk=(0,b.memo)(function(e){const{clientId:t,rootClientId:n,ghostBlock:r}=e,o=(0,b.useMemo)(()=>r?{clientId:r.clientId,name:r.name,isValid:!0}:void 0,[r]),i=(0,R.A)(e=>{const{isBlockSelected:i,getBlockMode:s,isSelectionEnabled:a,getTemplateLock:l,isSectionBlock:c,getParentSectionBlock:u,getBlockWithoutAttributes:d,getBlockAttributes:f,canRemoveBlock:p,canMoveBlock:m,getSettings:g,getEditedContentOnlySection:b,getBlockEditingMode:y,getBlockName:v,isFirstMultiSelectedBlock:k,getMultiSelectedBlockClientIds:x,hasSelectedInnerBlock:w,getBlocksByName:_,getBlockIndex:S,isBlockMultiSelected:C,isBlockSubtreeDisabled:A,isBlockHighlighted:E,__unstableIsFullySelected:I,__unstableSelectionHasUnmergeableBlock:T,isBlockBeingDragged:N,isDragging:j,__unstableHasActiveBlockOverlayActive:B,getSelectedBlocksInitialCaretPosition:L}=ue(e(fl)),O=d(t)??(t===o?.clientId?o:void 0);if(!O)return;const{hasBlockSupport:R,getActiveBlockVariation:M}=e(h.M_),P=f(t)??r?.attributes,{name:D,isValid:z}=O,F=(0,h.E7)(D),$=g(),{supportsLayout:V,isPreviewMode:H,__experimentalBlockBindingsSupportedAttributes:W}=$,U=W?.[D],K=P?.metadata?.blockVisibility,G=$?.[ne]?.toLowerCase()||"desktop",q=$?.__experimentalFeatures?.viewport,Z=F?.apiVersion>1,Y=C(t),X=y(t),Q={isPreviewMode:H,blockWithoutAttributes:O,name:D,attributes:P,isValid:z,themeSupportsLayout:V,index:S(t),isReusable:(0,h.tk)(F),className:Z?P.className:void 0,defaultClassName:Z?(0,h.KW)(D):void 0,blockTitle:F?.title,bindableAttributes:U,blockVisibility:K,deviceType:G,viewportSettings:q,isMultiSelected:Y,blockEditingMode:X,isEditingDisabled:"disabled"===X};if(H)return Q;const J=i(t),ee=p(t),te=m(t),re=M(D,P),oe=!0,ie=w(t,oe),se=c(t),ae=se?t:u(t),le=i(ae)||!!ae&&w(ae,oe),ce=(0,h.pN)(D,"multiple",!0)?[]:_(D),de=ce.length&&ce[0]!==t;return{...Q,mode:s(t),isSelectionEnabled:a(),isLocked:!!l(n),isSectionBlock:se,isWithinSectionBlock:!!ae,isSelectionWithinCurrentSection:le,blockType:F,canRemove:ee,canMove:te,isSelected:J,isEditingContentOnlySection:b()===t,blockEditingMode:X,mayDisplayControls:J||k(t)&&x().every(e=>v(e)===D),mayDisplayParentControls:R(v(t),"__experimentalExposeControlsToChildren",!1)&&w(t),blockApiVersion:F?.apiVersion||1,blockTitle:re?.title||F?.title,isSubtreeDisabled:"disabled"===X&&A(t),hasOverlay:B(t)&&!j(),initialPosition:J?L():void 0,isHighlighted:E(t),isMultiSelected:Y,isPartiallySelected:Y&&!I()&&!T(),isDragging:N(t),hasChildSelected:ie,isEditingDisabled:"disabled"===X,hasEditableOutline:"disabled"!==X&&"disabled"===y(n),originalBlockClientId:!!de&&ce[0],blockVisibility:K,deviceType:G,viewportSettings:q,supportsSplitting:(0,h.pN)(D,"splitting",!1)}},[t,n,r,o]),s=(0,Ku.A)(e=>{if(e){const{ownerDocument:t}=e,{defaultView:n}=t;s.current=n}},[]),{isBlockCurrentlyHidden:a}=Tb({blockVisibility:i?.blockVisibility,deviceType:i?.deviceType,viewportSettings:i?.viewportSettings,view:s.current}),l=(0,b.useMemo)(()=>({...i?.blockWithoutAttributes,attributes:i?.attributes}),[i?.blockWithoutAttributes,i?.attributes]);if(!i)return null;const{isPreviewMode:c,mode:u="visual",isSelectionEnabled:d=!1,isLocked:f=!1,
33canRemove:p=!1,canMove:m=!1,name:g,attributes:y,isValid:v,isSelected:k=!1,themeSupportsLayout:x,isEditingContentOnlySection:w,blockEditingMode:_,mayDisplayControls:S,mayDisplayParentControls:C,index:A,blockApiVersion:E,blockType:I,blockTitle:T,isSubtreeDisabled:N,hasOverlay:j,initialPosition:B,isHighlighted:L,isMultiSelected:O,isPartiallySelected:M,isReusable:P,isDragging:D,hasChildSelected:z,isSectionBlock:F,isWithinSectionBlock:$,isSelectionWithinCurrentSection:V,isEditingDisabled:H,hasEditableOutline:W,className:U,defaultClassName:K,originalBlockClientId:G,bindableAttributes:q,blockVisibility:Z,deviceType:Y,viewportSettings:X,supportsSplitting:Q}=i,J={isPreviewMode:c,ghostBlock:r,rootClientId:n,clientId:t,className:U,index:A,mode:u,name:g,blockApiVersion:E,blockType:I,blockTitle:T,isSelected:k,isSubtreeDisabled:N,hasOverlay:j,initialPosition:B,blockEditingMode:_,isHighlighted:L,isMultiSelected:O,isPartiallySelected:M,isReusable:P,isDragging:D,hasChildSelected:z,isSectionBlock:F,isWithinSectionBlock:$,isSelectionWithinCurrentSection:V,isEditingDisabled:H,hasEditableOutline:W,isEditingContentOnlySection:w,defaultClassName:K,mayDisplayControls:S,mayDisplayParentControls:C,originalBlockClientId:G,themeSupportsLayout:x,canMove:m,isBlockCurrentlyHidden:a,bindableAttributes:q,blockVisibility:Z,deviceType:Y,viewportSettings:X,supportsSplitting:Q};return!a||k||O||z?(0,Be.jsx)(Ly.Provider,{value:J,children:(0,Be.jsx)(hk,{...e,mode:u,isSelectionEnabled:d,isLocked:f,canRemove:p,canMove:m,block:l,name:g,attributes:y,isValid:v,isSelected:k})}):null});function vk({rootClientId:e}){return(0,R.A)(t=>t(fl).canInsertBlockType((0,h.K$)(),e))?(0,Be.jsx)(qy,{rootClientId:e}):(0,Be.jsx)(Ky,{rootClientId:e,className:"block-list-appender__toggle"})}function kk({rootClientId:e,CustomAppender:t,className:n,tagName:r="div"}){const o=(0,R.A)(t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:r,getBlockCount:o}=t(fl),i=n();return r()&&e===i?.rootClientId&&0===o(e)},[e]);return(0,Be.jsx)(r,{tabIndex:-1,className:(0,g.A)("block-list-appender wp-block",n,{"is-drag-over":o}),contentEditable:!1,"data-block":!0,children:t?(0,Be.jsx)(t,{}):(0,Be.jsx)(vk,{rootClientId:e})})}var xk=n(6579),wk=Number.MAX_SAFE_INTEGER;var _k=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:r,__unstableContentRef:o,operation:i="insert",nearestSide:s="right",...a}){const[l,c]=(0,b.useReducer)(e=>(e+1)%wk,0),{orientation:u,rootClientId:d,isVisible:f}=(0,R.A)(n=>{const{getBlockListSettings:r,getBlockRootClientId:o,isBlockVisible:i}=n(fl),s=o(e??t);return{orientation:r(s)?.orientation||"vertical",rootClientId:s,isVisible:i(e)&&i(t)}},[e,t]),p=Ju(e),m=Ju(t),h="vertical"===u,y=(0,b.useMemo)(()=>{if(l<0||!p&&!m||!f)return;return{contextElement:"group"===i?m||p:p||m,getBoundingClientRect(){const e=p?p.getBoundingClientRect():null,t=m?m.getBoundingClientRect():null;let n=0,r=0,o=0,a=0;if("group"===i){const i=t||e;r=i.top,o=0,a=i.bottom-i.top,n="left"===s?i.left-2:i.right-2}else h?(r=e?e.bottom:t.top,o=t&&e?(e.width+t.width)/2:(e||t).width,a=t&&e?t.top-e.bottom:0,n=t&&e?(e.left+t.left)/2:(e||t).left):(r=e?e.top:t.top,a=e?e.height:t.height,(0,V.V8)()?(n=t?t.right:e.left,o=e&&t?e.left-t.right:0):(n=e?e.right:t.left,o=e&&t?t.left-e.right:0),o=Math.max(o,0));return new window.DOMRect(n,r,o,a)}}},[p,m,l,h,f,i,s]),v=Tm(o);return(0,b.useLayoutEffect)(()=>{if(!p)return;const e=new window.MutationObserver(c);return e.observe(p,{attributes:!0}),()=>{e.disconnect()}},[p]),(0,b.useLayoutEffect)(()=>{if(!m)return;const e=new window.MutationObserver(c);return e.observe(m,{attributes:!0}),()=>{e.disconnect()}},[m]),(0,b.useLayoutEffect)(()=>{if(p)return p.ownerDocument.defaultView.addEventListener("resize",c),()=>{p.ownerDocument.defaultView?.removeEventListener("resize",c)}},[p]),(p||m)&&f?(0,Be.jsx)(Sm.Ay,{ref:v,animate:!1,anchor:y,focusOnMount:!1,__unstableSlotName:r,inline:!r,...a,className:(0,g.A)("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,Be.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:n})},t+"--"+d):null},Sk={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var Ck=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,R.A)(e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(fl),r=n(),o=t(r.rootClientId);return o.length?{clientId:o[r.index]}:{}},[]),r=(0,Ub.A)();return(0,Be.jsx)(Um,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,Be.jsx)(xk.PY.div,{"data-testid":"block-popover-drop-zone",initial:r?Sk.show:Sk.hide,animate:Sk.show,exit:r?Sk.show:Sk.exit,className:"block-editor-block-popover__drop-zone-foreground"})})},Ak=(0,b.createContext)();function Ek({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:r="right"}){const{selectBlock:o,hideInsertionPoint:i}=(0,y.A)(fl),s=(0,b.useContext)(Ak),a=(0,b.useRef)(),{orientation:l,previousClientId:c,nextClientId:u,rootClientId:d,isInserterShown:f,isDistractionFree:p,isZoomOutMode:m}=(0,R.A)(e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:r,isBlockBeingDragged:o,getPreviousBlockClientId:i,getNextBlockClientId:s,getSettings:a,isZoomOut:l}=ue(e(fl)),c=r(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],f=u[c.index];for(;o(d);)d=i(d);for(;o(f);)f=s(f);const p=a();return{previousClientId:d,nextClientId:f,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isDistractionFree:p.isDistractionFree,isInserterShown:c?.__unstableWithInserter,isZoomOutMode:l()}},[]),{getBlockEditingMode:h}=(0,R.A)(fl),v=(0,Ub.A)();const k=(0,b.useCallback)(e=>{!e&&s.current&&(s.current=!1)},[s]),x={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},w={start:{scale:v?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(p)return null;if(m&&"insert"!==n)return null;const _="horizontal"===l||"group"===n?"is-horizontal":"is-vertical",S=(0,g.A)("block-editor-block-list__insertion-point",_);return(0,Be.jsx)(_k,{previousClientId:c,nextClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:r,children:(0,Be.jsxs)(xk.PY.div,{layout:!v,initial:v?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:function(e){e.target===a.current&&u&&"disabled"!==h(u)&&o(u,-1)},onFocus:function(e){e.target!==a.current&&(s.current=!0)},className:(0,g.A)(S,{"is-with-inserter":f}),onHoverEnd:function(e){e.target!==a.current||s.current||i()},children:[(0,Be.jsx)(xk.PY.div,{variants:x,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),f&&(0,Be.jsx)(xk.PY.div,{variants:w,className:(0,g.A)("block-editor-block-list__insertion-point-inserter"),children:(0,Be.jsx)(Tl,{ref:k,position:"bottom center",clientId:u,rootClientId:d,__experimentalIsQuick:!0,onToggle:e=>{s.current=e},onSelectOrClose:()=>{s.current=!1}})})]})})}function Ik(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:r}=(0,R.A)(e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:r}=e(fl),o=t();return{insertionPoint:o,isVisible:n(),isBlockListEmpty:0===r(o?.rootClientId)}},[]);return!n||r?null:"replace"===t.operation?(0,Be.jsx)(Ck,{...e},`${t.rootClientId}-${t.index}`):(0,Be.jsx)(Ek,{operation:t.operation,nearestSide:t.nearestSide,...e})}function Tk(){const e=(0,b.useContext)(Ak),t=(0,R.A)(e=>{const t=e(fl).getSettings();return t.isDistractionFree||t.isPreviewMode||ue(e(fl)).isZoomOut()},[]),{getBlockListSettings:n,getBlockIndex:r,isMultiSelecting:o,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:a,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:c,getBlockName:u,getBlockAttributes:d,getParentSectionBlock:f}=ue((0,R.A)(fl)),{showInsertionPoint:p,hideInsertionPoint:m}=(0,y.A)(fl);return(0,Ku.A)(g=>{if(!t)return g.addEventListener("mousemove",h),()=>{g.removeEventListener("mousemove",h)};function h(t){if(void 0===e||e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(o())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void m();let g;if(!t.target.classList.contains("is-root-container")){g=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(a(g)||"disabled"===c(g)||"core/block"===u(g)||g&&d(g).layout?.isManualPlacement)return;const h=n(g),b=h?.orientation||"vertical",y=!!h?.__experimentalCaptureToolbars,v=t.clientY,k=t.clientX;let x=Array.from(t.target.children).find(e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===b&&t.top>v||e.classList.contains("wp-block")&&"horizontal"===b&&((0,V.V8)()?t.right<k:t.left>k)});if(!x)return void m();if(!x.id&&(x=x.firstElementChild,!x))return void m();const w=x.id.slice(6);if(!w||l(w)||f(w))return;if(i().includes(w)&&"vertical"===b&&!y&&!s().hasFixedToolbar)return;const _=x.getBoundingClientRect();if("horizontal"===b&&(t.clientY>
33_.bottom||t.clientY<_.top)||"vertical"===b&&(t.clientX>_.right||t.clientX<_.left))return void m();const S=r(w);0!==S?p(g,S,{__unstableWithInserter:!0}):m()}},[e,n,r,o,p,m,i,t])}function Nk(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,R.A)(fl),{clearSelectedBlock:r}=(0,y.A)(fl),{clearBlockSelection:o}=e();return(0,Ku.A)(e=>{if(o)return e.addEventListener("mousedown",i),()=>{e.removeEventListener("mousedown",i)};function i(o){(t()||n())&&o.target===e&&r()}},[t,n,r,o])}function jk({clientId:e,rootClientId:t="",position:n="top"}){const[r,o]=(0,b.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:c,blocksBeingDragged:u}=(0,R.A)(e=>{const{getInsertionPoint:t,getBlockOrder:n,getSectionRootClientId:r,isBlockInsertionPointVisible:o,getBlockInsertionPoint:i,getDraggedBlockClientIds:s}=ue(e(fl)),a=r();return{sectionRootClientId:a,sectionClientIds:n(a),insertionPoint:t(),blockInsertionPoint:i(),blockInsertionPointVisible:o(),blocksBeingDragged:s()}},[]),d=(0,Ub.A)();if(!e)return;let f=!1;if(!(t===i&&s&&s.includes(e)))return null;const p=0===a?.index&&e===s[a.index],m=a&&a.hasOwnProperty("index")&&e===s[a.index-1];"top"===n&&(f=p||l&&0===c.index&&e===s[c.index]),"bottom"===n&&(f=m||l&&e===s[c.index-1]);const h=u[0],y=u.includes(e),v=s.indexOf(h),k=v>0?s[v-1]:null;return(y||k===e)&&(f=!1),(0,Be.jsx)(xk.Ny,{children:f&&(0,Be.jsx)(xk.PY.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:d?0:.2,ease:[.6,0,.4,1]},className:(0,g.A)("block-editor-block-list__zoom-out-separator",{"is-dragged-over":r}),"data-is-insertion-point":"true",onDragOver:()=>o(!0),onDragLeave:()=>o(!1),children:(0,Be.jsx)(xk.PY.div,{initial:{opacity:0}
33,animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,V.__)("Drop pattern.")})})})}Ak.displayName="InsertionPointOpenRefContext";var Bk=(0,b.createContext)();Bk.displayName="IntersectionObserverContext";var Lk=new WeakMap,Ok={trailing:!0};function Rk({className:e,...t}){const{isOutlineMode:n,isFocusMode:r,isPreviewMode:o,editedContentOnlySection:i}=(0,R.A)(e=>{const{getSettings:t,isTyping:n,hasBlockSpotlight:r,getEditedContentOnlySection:o}=ue(e(fl)),{outlineMode:i,focusMode:s,isPreviewMode:a}=t();return{isOutlineMode:i&&!n(),isFocusMode:!a&&(s||r()),isPreviewMode:a,editedContentOnlySection:o()}},[]),s=(0,v.A)(),{setBlockVisibility:a}=(0,y.A)(fl),l=Vf((0,b.useCallback)(()=>{const e={};Lk.get(s).forEach(([t,n])=>{e[t]=n}),a(e)},[s]),300,Ok),c=(0,b.useMemo)(()=>{const{IntersectionObserver:e}=window;if(e)return new e(e=>{Lk.get(s)||Lk.set(s,[]);for(const t of e){const e=t.target.getAttribute("data-block");Lk.get(s).push([e,t.isIntersecting])}l()})},[]),u=cx({ref:(0,$l.A)([Nk(),Tk()]),className:(0,g.A)("is-root-container",e,{"is-outline-mode":n,"is-focus-mode":r,"is-preview-mode":o})},t);return(0,Be.jsxs)(Bk.Provider,{value:c,children:[(0,Be.jsx)("div",{...u}),!!i&&(0,Be.jsx)(Mk,{clientId:i})]})}function Mk({clientId:e}){const{stopEditingContentOnlySection:t}=ue((0,y.A)(fl)),n=(0,R.A)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r,getBlockSelectionStart:o}=t(fl);return!o()||n(e)||r(e,!0)},[e]);return(0,b.useEffect)(()=>{n||t()},[n,t]),null}function Pk(e){return(0,Be.jsx)(L,{value:j,children:(0,Be.jsx)(Rk,{...e})})}var Dk=[],zk=new Set;function Fk({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,layout:o=Ic}){const i=!1!==n,s=!!n,{order:a,isZoomOut:l,selectedBlocks:c,visibleBlocks:u,ghostBlockName:d,ghostBlockAttributes:f,shouldRenderAppender:p}=(0,R.A)(e=>{const{getSettings:n,getBlockOrder:r,getSelectedBlockClientIds:o,__unstableGetVisibleBlocks:a,getTemplateLock:l,getBlockEditingMode:c,isSectionBlock:u,isContainerInsertableToInContentOnlyMode:d,getBlockName:f,getBlockListSettings:p,isZoomOut:m,canInsertBlockType:g}=ue(e(fl)),b=r(t);if(n().isPreviewMode)return{order:b,selectedBlocks:Dk,visibleBlocks:zk};let y,v;if(i&&!s&&!b.length){const e=(t?p(t)?.defaultBlock:void 0)??{name:(0,h.K$)()};
33e.name&&g(e.name,t)&&(y=e.name,v=e.attributes)}const k=o(),x=k[0],w=!(t||x||b.length&&g((0,h.K$)(),t)),_=!(!t||!x||t!==x),S=l(t),C=(!u(t)||d(f(x),t))&&"disabled"!==c(t)&&(!S||"contentOnly"===S)&&i&&!m();return{order:b,selectedBlocks:k,visibleBlocks:a(),isZoomOut:m(),ghostBlockName:C?y:void 0,ghostBlockAttributes:v,shouldRenderAppender:C&&(s||_||w)}},[t,i,s]),m=(0,b.useMemo)(()=>d?(0,h.Wv)(d,f):null,[d,f]),g=!!m,y=g?[...a,m.clientId]:a;return(0,Be.jsxs)(Nc,{value:o,children:[y.map(e=>(0,Be.jsxs)(Qy.Ay,{value:e!==m?.clientId&&!u.has(e)&&!c.includes(e),children:[l&&(0,Be.jsx)(jk,{clientId:e,rootClientId:t,position:"top"}),(0,Be.jsx)(yk,{rootClientId:t,clientId:e,ghostBlock:e===m?.clientId?m:void 0}),l&&(0,Be.jsx)(jk,{clientId:e,rootClientId:t,position:"bottom"})]},e)),a.length<1&&e,p&&!g&&(0,Be.jsx)(kk,{tagName:r,rootClientId:t,CustomAppender:n})]})}function $k(e){return(0,Be.jsx)(Qy.Ay,{value:!1,children:(0,Be.jsx)(Fk,{...e})})}var Vk=(0,b.createContext)({getSelection:()=>{},onChangeSelection:()=>{}}),Hk=()=>{};function Wk(e,t){const n=(0,h.JB)(e);return t.externalToInternal.set(e.clientId,n.clientId),t.internalToExternal.set(n.clientId,e.clientId),e.innerBlocks?.length&&(n.innerBlocks=e.innerBlocks.map(e=>Wk(e,t))),n}function Uk(e,t){return e.map(e=>{const n=t.internalToExternal.get(e.clientId);return{...e,clientId:n??e.clientId,innerBlocks:Uk(e.innerBlocks,t)}})}function Kk(e,t){const{selectionStart:n,selectionEnd:r,initialPosition:o}=e,i=e=>{if(!e?.clientId)return e;const n=t.internalToExternal.get(e.clientId);return{...e,clientId:n??e.clientId}};return{selectionStart:i(n),selectionEnd:i(r),initialPosition:o}}function Gk({clientId:e=null,value:t,onChange:n=Hk,onInput:r=Hk}){const o=(0,v.A)(),{getSelection:i,onChangeSelection:s}=(0,b.useContext)(Vk),{resetBlocks:a,resetSelection:l,replaceInnerBlocks:c,setHasControlledInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=o.dispatch(fl),{getBlockName:f,getBlocks:p,getSelectionStart:m,getSelectionEnd:g}=o.select(fl),h=(0,b.useRef)({incoming:null,outgoing:[]}),y=(0,b.useRef)(!1),k=(0,b.useRef)({externalToInternal:new Map,internalToExternal:new Map}),x=(0,b.useRef)(null),w=(0,b.useRef)(!1),_=()=>{t&&(e?o.batch(()=>{k.current.externalToInternal.clear(),k.current.internalToExternal.clear();const n=t.map(e=>Wk(e,k.current));d({history:"ignore"}),u(e,!0),y.current&&(h.current.incoming=n),d({history:"ignore"}),c(e,n),x.current=null}):(y.current&&(h.current.incoming=t),d({history:"ignore"}),a(t)))},S=(0,b.useRef)(r),C=(0,b.useRef)(n);(0,b.useEffect)(()=>{S.current=r,C.current=n},[r,n]),(0,b.useEffect)(()=>{const n=h.current.outgoing.includes(t),r=p(e)===t;n?h.current.outgoing[h.current.outgoing.length-1]===t&&(h.current.outgoing=[]):r||(h.current.outgoing=[],_(),(()=>{const t=i();if(!t?.selectionStart?.clientId||t===x.current)return;const n=t.selectionStart.clientId;if(e?k.current.externalToInternal.has(n):f(n)){x.current=t;const n=t=>t?.clientId&&e?{...t,clientId:k.current.externalToInternal.get(t.clientId)??t.clientId}:t;w.current=!0,l(n(t.selectionStart),n(t.selectionEnd),t.initialPosition),w.current=!1}})())},[t,e]),(0,b.useEffect)(()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableGetLastBlockChangeHistoryMode:r,__unstableIsLastBlockChangeIgnored:i,areInnerBlocksControlled:a,getBlockParents:l}=o.select(fl);let c=p(e),u=n(),d=r(),b=!1,v=m(),x=g();y.current=!0;const _=o.subscribe(()=>{if(null!==e&&null===f(e))return;const y=n(),_=r(),A=p(e),E=A!==c;if(c=A,E&&(h.current.incoming||i()))return h.current.incoming=null,u=y,void(d=_);const I=E||b&&!E&&y&&!u,T=m(),N=g(),j=T!==v||N!==x;j&&(v=T,x=N),(I||j)&&o.batch(()=>{if(I){u=y,d=_;const n=e?Uk(c,k.current):c,r={selectionStart:T,selectionEnd:N,initialPosition:t()},o=e?Kk(r,k.current):r;h.current.outgoing.push(n);const i=u?C.current:S.current,s={selection:o};"ignore"===d&&(s.undoIgnore=!0),i(n,s)}if(j&&!I&&T?.clientId&&!w.current){if(e?k.current.internalToExternal.has(T.clientId):!l(T.clientId).some(e=>a(e))){const n={selectionStart:T,selectionEnd:N,initialPosition:t()};s(e?Kk(n,k.current):n)}}}),b=E},fl);return()=>{y.current=!1,_()}},[o,e]),(0,b.useEffect)(()=>()=>{e?(d({history:"ignore"}),u(e,!1),d({history:"ignore"}),c(e,[])):(d({history:"ignore"}),a([]))},[])}var qk=(e,t,n)=>{let r=!0,o=!0;return n&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$f(e,t,{leading:r,trailing:o,maxWait:t})};function Zk({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:i,onDragEnd:s,onDragOver:a}){const l=(0,Rh.A)(n),c=(0,Rh.A)(r),u=(0,Rh.A)(o),d=(0,Rh.A)(i),f=(0,Rh.A)(s),p=(0,Rh.A)(a);return(0,Ku.A)(m=>{if(t)return;const g=e??m;let h=!1;const{ownerDocument:b}=g;function y(e){h||(h=!0,b.addEventListener("dragend",_),b.addEventListener("mousemove",_),r&&c(e))}function v(e){e.preventDefault(),g.contains(e.relatedTarget)||o&&u(e)}function k(e){!e.defaultPrevented&&a&&p(e),e.preventDefault()}function x(e){(function(e){const{defaultView:t}=b;if(!(e&&t&&e instanceof t.HTMLElement&&g.contains(e)))return!1;let n=e;do{if(n.dataset.isDropZone)return n===g}while(n=n.parentElement);return!1})(e.relatedTarget)||i&&d(e)}function w(e){e.defaultPrevented||(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files.length,n&&l(e),_(e))}function _(e){h&&(h=!1,b.removeEventListener("dragend",_),b.removeEventListener("mousemove",_),s&&f(e))}return g.setAttribute("data-is-drop-zone","true"),g.addEventListener("drop",w),g.addEventListener("dragenter",v),g.addEventListener("dragover",k),g.addEventListener("dragleave",x),b.addEventListener("dragenter",y),()=>{g.removeAttribute("data-is-drop-zone"),g.removeEventListener("drop",w),g.removeEventListener("dragenter",v),g.removeEventListener("dragover",k),g.removeEventListener("dragleave",x),b.removeEventListener("dragend",_),b.removeEventListener("mousemove",_),b.removeEventListener("dragenter",y)}},[t,e])}function Yk(e){const t=Array.from(e.files);
33return Array.from(e.items).forEach(e=>{const n=e.getAsFile();n&&!t.find(({name:e,type:t,size:r})=>e===n.name&&t===n.type&&r===n.size)&&t.push(n)}),t}function Xk(e,t,n,r,o,i,s,a,l){return c=>{const{srcRootClientId:u,srcClientIds:d,type:f,blocks:p}=function(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}(c);if("inserter"===f){s();const e=p.map(e=>(0,h.JB)(e));i(e,!0,null)}if("block"===f){const s=n(d[0]);if(u===e&&s===t)return;if(d.includes(e)||r(d).some(t=>t===e))return;if("group"===a){const e=d.map(e=>l(e));return void i(e,!0,null,d)}const c=u===e,f=d.length;o(d,u,c&&s<t?t-f:t)}}}function Qk(e,t,n={}){const{operation:r="insert",nearestSide:o="right"}=n,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:a,getBlockOrder:l,getBlocksByClientId:c,getSettings:u,getBlock:d}=(0,R.A)(fl),{getGroupingBlockName:f}=(0,R.A)(h.M_),{insertBlocks:p,moveBlocksToPosition:m,updateBlockAttributes:g,clearSelectedBlock:k,replaceBlocks:x,removeBlocks:w}=(0,y.A)(fl),_=(0,v.A)(),S=(0,b.useCallback)((n,s=!0,a=0,c=[])=>{Array.isArray(n)||(n=[n]);const u=l(e)[t];if("replace"===r)x(u,n,void 0,a);else if("group"===r){const t=d(u);"left"===o?n.push(t):n.unshift(t);const r=n.map(e=>(0,h.GI)(e)),s=n.every(e=>"core/image"===e.name),l=i("core/gallery",e),p=(0,h.Wv)(s&&l?"core/gallery":f(),{layout:{type:"flex",flexWrap:s&&l?null:"nowrap"}},r);x([u,...c],p,void 0,a)}else p(n,t,e,s,a)},[l,e,t,r,x,d,o,i,f,p]),C=(0,b.useCallback)((n,o,i)=>{if("replace"===r){const r=c(n),o=l(e)[t];_.batch(()=>{w(n,!1),x(o,r,void 0,0)})}else m(n,o,e,i)},[r,l,c,m,_,w,x,t,e]),A=Xk(e,t,s,a,C,S,k,r,d),E=function(e,t,n,r,o){return i=>{if(!t().mediaUpload)return;const s=(0,h.wG)((0,h.XD)("from"),t=>"files"===t.type&&r(t.blockName,e)&&t.isMatch(i));if(s){const e=s.transform(i,n);o(e)}}}(e,u,g,i,S),I=function(e){return t=>{const n=(0,h.Gk)({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}(S);return e=>{const t=Yk(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?I(n):t.length?E(t):A(e)}}function Jk(e,t,n=["top","bottom","left","right"]){let r,o;return n.forEach(n=>{const i=function(e,t,n){const r="top"===n||"bottom"===n,{x:o,y:i}=e,s=r?o:i,a=r?i:o,l=r?t.left:t.top,c=r?t.right:t.bottom,u=t[n];let d;return d=s>=l&&s<=c?s:s<c?l:c,Math.sqrt((s-d)**2+(a-u)**2)}(e,t,n);(void 0===r||i<r)&&(r=i,o=n)}),[r,o]}function ex(e,t,n,r){let o=!0;if(t){const e=t?.map(({name:e})=>e);o=n.every(t=>e?.includes(t))}const i=n.map(t=>e(t)).every(e=>{const[t]=e?.parent||[];return!t||t===r});return o&&i}function tx(e,t){const{defaultView:n}=t;return!!(n&&e instanceof n.HTMLElement&&e.closest("[data-is-insertion-point]"))}function nx({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:r=!1}={}){const o=(0,v.A)(),[i,s]=(0,b.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:c}=(0,R.A)(h.M_),{canInsertBlockType:u,getBlockListSettings:d,getBlocks:f,getBlockIndex:p,getDraggedBlockClientIds:m,getBlockNamesByClientId:g,getAllowedBlocks:k,isDragging:x,isGroupable:w,isZoomOut:_,getSectionRootClientId:S,getBlockParents:C}=ue((0,R.A)(fl)),{showInsertionPoint:A,hideInsertionPoint:E,startDragging:I,stopDragging:T}=ue((0,y.A)(fl)),N=Qk("before"===i.operation||"after"===i.operation?n:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),j=function(e,t,n){const r=Ff(()=>qk(e,t??0,n),[e,t,n]);return(0,b.useEffect)(()=>()=>r.cancel(),[r]),r}((0,b.useCallback)((r,i)=>{x()||I();const b=m(),y=[t,...C(t,!0)];if(b.some(e=>y.includes(e)))return;const v=k(t),E=g([t])[0],T=g(b);if(!ex(a,v,T,E))return;const N=S();if(_()&&N!==t)return;const j=f(t).filter(e=>!((0,h.pN)(e.name,"visibility",!0)&&!1===e.attributes?.metadata?.blockVisibility));if(0===j.length)return void o.batch(()=>{s({index:0,operation:"insert"}),A(t,0,{operation:"insert"})});const B=j.map(e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,h.Xw)(e),getBoundingClientRect:()=>{const e=i.getElementById(`block-${t}`);return e?e.getBoundingClientRect():null},blockIndex:p(t),blockOrientation:d(t)?.orientation}}),L=function(e,t,n="vertical",r={}){const o="horizontal"===n?["left","right"]:["top","bottom"];let i=0,s="before",a=1/0,l=null,c="right";const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:f=0}=r;if(u&&"horizontal"!==d){const e=u.getBoundingClientRect(),[n,r]=Jk(t,e,["top","bottom"]);if(e.height>120&&n<30){if("top"===r)return[f,"before"];if("bottom"===r)return[f+1,"after"]}}const p=(0,V.V8)();if(u&&"horizontal"===d){const e=u.getBoundingClientRect(),[n,r]=Jk(t,e,["left","right"]);if(e.width>120&&n<30){if(p&&"right"===r||!p&&"left"===r)return[f,"before"];if(p&&"left"===r||!p&&"right"===r)return[f+1,"after"]}}e.forEach(({isUnmodifiedDefaultBlock:e,getBoundingClientRect:r,blockIndex:u,blockOrientation:d})=>{const f=r();if(!f)return;let[m,g]=Jk(t,f,o);const[h,b]=Jk(t,f,["left","right"]),y=function(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>
33=e.y}(t,f);e&&y?m=0:"vertical"===n&&"horizontal"!==d&&(y&&h<30||!y&&function(e,t){return t.top<=e.y&&t.bottom>=e.y}(t,f))&&(l=u,c=b),m<a&&(s="bottom"===g||!p&&"right"===g||p&&"left"===g?"after":"before",a=m,i=u)});const m=i+("after"===s?1:-1),g=!!e[i]?.isUnmodifiedDefaultBlock,h=!!e[m]?.isUnmodifiedDefaultBlock;if(null!==l)return[l,"group",c];if(!g&&!h)return["after"===s?i+1:i,"insert"];return[g?i:m,"replace"]}(B,{x:r.clientX,y:r.clientY},d(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?d(n)?.orientation:void 0,rootBlockIndex:p(t)}),[O,R,M]=L,P=B[O]?.isUnmodifiedDefaultBlock;if(!_()||P||"insert"===R){if("group"===R){const e=j[O],n=[e.name,...T].every(e=>"core/image"===e),r=u("core/gallery",t),o=w([e.clientId,m()]),i=l(c(),"block"),s=i&&i.find(({name:e})=>"group-row"===e);if(n&&!r&&(!o||!s))return;if(!(n||o&&s))return}o.batch(()=>{s({index:O,operation:R,nearestSide:M});const e=["before","after"].includes(R)?n:t;A(e,O,{operation:R,nearestSide:M})})}},[x,k,t,g,m,a,S,_,f,d,e,n,p,o,I,A,u,w,l,c]),200);return Zk({dropZoneElement:e,isDisabled:r,onDrop:N,onDragOver(e){j(e,e.currentTarget.ownerDocument)},onDragLeave(e){const{ownerDocument:t}=e.currentTarget;tx(e.relatedTarget,t)||tx(e.target,t)||(j.cancel(),E())},onDragEnd(){j.cancel(),T(),E()}})}var rx={};function ox({children:e,clientId:t}){const n=function(e){return(0,R.A)(t=>{const n=t(fl).getBlock(e);if(!n)return;const r=t(h.M_).getBlockType(n.name);return r&&0!==Object.keys(r.providesContext).length?Object.fromEntries(Object.entries(r.providesContext).map(([e,t])=>[e,n.attributes[t]])):void 0},[e])}(t);return(0,Be.jsx)(Wd,{value:n,children:e})}var ix=(0,b.memo)($k);function sx(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:r,defaultBlock:o,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:a,template:l,templateLock:c,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:p,renderAppender:m,orientation:g,placeholder:y,layout:k,name:x,blockType:w,parentLock:_,defaultLayout:S}=e;!function(e,t,n,r,o,i,s,a,l,c,u,d){const f=(0,v.A)(),p=Xy(n),m=Xy(r),g=void 0===l||"contentOnly"===t?t:l;(0,b.useLayoutEffect)(()=>{const t={allowedBlocks:p,prioritizedInserterBlocks:m,templateLock:g};if(void 0!==c&&(t.__experimentalCaptureToolbars=c),void 0!==u)t.orientation=u;else{const e=Ec(d?.type);t.orientation=e.getOrientation(d)}void 0!==s&&((0,$.A)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=s),void 0!==o&&(t.defaultBlock=o),void 0!==a&&((0,$.A)("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=a),void 0!==i&&(t.directInsert=i),void 0!==t.directInsert&&"boolean"!=typeof t.directInsert&&(0,$.A)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),Zy.get(f)||Zy.set(f,{}),Zy.get(f)[e]=t,window.queueMicrotask(()=>{const e=Zy.get(f);if(Object.keys(e).length){const{updateBlockListSettings:t}=f.dispatch(fl);t(e),Zy.set(f,{})}})},[e,p,m,g,o,i,s,a,c,u,d,f])}(t,_,n,r,o,i,s,a,c,f,g,k),function(e,t,n,r){void 0!==t&&(0,$.A)("The template prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"a `template` declared in the block type settings"}),void 0!==r&&(0,$.A)("The templateInsertUpdatesSelection prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"`templateInsertUpdatesSelection` declared in the block type settings"});const o=(0,v.A)(),i=(0,b.useRef)(null);(0,b.useLayoutEffect)(()=>{let s=!1;const{getBlockName:a,getBlocks:l,getSelectedBlocksInitialCaretPosition:c,isBlockSelected:u}=o.select(fl),{replaceInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=o.dispatch(fl);return window.queueMicrotask(()=>{if(s)return;let o=t,p=r;if(void 0===t){const t=(0,h.E7)(a(e));o=t?.template,p=t?.templateInsertUpdatesSelection}const m=l(e),g=D(o,i.current);if(0!==m.length&&"all"!==n&&"contentOnly"!==n||g)return;i.current=o;const b=(0,h.Nk)(m,o);D(b,m)||(f({history:"ignore"}),d(e,b,0===m.length&&p&&0!==b.length&&u(e),c()))}),()=>{s=!0}},[t,n,e,o,r])}(t,l,c,d);const C=(0,h.bI)(x,"layout")||(0,h.bI)(x,"__experimentalLayout")||rx,{allowSizingOnChildren:A=!1}=C,E=k||C.default||rx,I=(0,b.useMemo)(()=>({...S,...E,...A&&{allowSizingOnChildren:!0}}),[S,E,A]),T=(0,Be.jsx)(ix,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:p,layout:I,wrapperRef:u,placeholder:y});return w?.providesContext&&0!==Object.keys(w.providesContext).length?(0,Be.jsx)(ox,{clientId:t,children:T}):T}function ax(e){return Gk(e),(0,Be.jsx)(sx,{...e})}var lx=(0,b.forwardRef)((e,t)=>{const n=cx({ref:t},e);return(0,Be.jsx)("div",{className:"block-editor-inner-blocks",children:(0,Be.jsx)("div",{...n})})});
33function cx(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:r,dropZoneElement:o,layout:i}=t,{clientId:s,layout:a=null,__unstableLayoutClassNames:l=""}=O(),c=i??a,u=(0,R.A)(e=>{const{getBlockName:t,isZoomOut:n,getTemplateLock:r,getBlockRootClientId:o,getBlockEditingMode:i,getBlockSettings:a,getSectionRootClientId:l}=ue(e(fl));if(!s){const e=l();return{isDropZoneDisabled:n()&&""!==e}}const{hasBlockSupport:c,getBlockType:u}=e(h.M_),d=t(s),f=i(s),p=o(s),[m]=a(s,"layout");let g="disabled"===f;if(n()){const e=l();g=s!==e}return{__experimentalCaptureToolbars:c(d,"__experimentalExposeControlsToChildren",!1),name:d,blockType:u(d),parentLock:r(p),parentClientId:p,isDropZoneDisabled:g,defaultLayout:m}},[s]),{__experimentalCaptureToolbars:d,name:f,blockType:p,parentLock:m,parentClientId:b,isDropZoneDisabled:y,defaultLayout:v}=u,k=nx({dropZoneElement:o,rootClientId:s,parentClientId:b}),x=(0,$l.A)([e.ref,r||y||c?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:k]),w={__experimentalCaptureToolbars:d,layout:c,name:f,blockType:p,parentLock:m,defaultLayout:v,...t},_=w.value&&w.onChange?ax:sx;return{...e,ref:x,className:(0,g.A)(e.className,"block-editor-block-list__layout",n?"":l),children:s?(0,Be.jsx)(_,{...w,clientId:s}):(0,Be.jsx)($k,{...t})}}cx.save=h.v9,lx.DefaultBlockAppender=function(){const{clientId:e}=O();return(0,Be.jsx)(qy,{rootClientId:e})},lx.ButtonBlockAppender=function({showSeparator:e,isFloating:t,onAddBlock:n,isToggle:r}){const{clientId:o}=O();return(0,Be.jsx)(Ky,{className:(0,g.A)({"block-list-appender__toggle":r}),rootClientId:o,showSeparator:e,isFloating:t,onAddBlock:n})},lx.Content=()=>cx.save().children;var ux=lx,dx=n(9217),fx=n(3832),px=n(5935);var mx=function(e){let t;return(n,r)=>{if("SET_PERSISTENCE_LAYER"===r.type){const{persistenceLayer:e,persistedData:n}=r;return t=e,n}const o=e(n,r);return"SET_PREFERENCE_VALUE"===r.type&&t?.set(o),o}}((e={},t)=>{if("SET_PREFERENCE_VALUE"===t.type){const{scope:n,name:r,value:o}=t;return{...e,[n]:{...e[n],[r]:o}}}return e}),gx=(0,P.HY)({defaults:function(e={},t){if("SET_PREFERENCE_DEFAULTS"===t.type){const{scope:n,defaults:r}=t;return{...e,[n]:{...e[n],...r}}}return e},preferences:mx});function hx(e,t){return function({select:n,dispatch:r}){const o=n.get(e,t);r.set(e,t,!o)}}function bx(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function yx(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function vx(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}var kx,xx=(kx=(e,t,n)=>{const r=e.preferences[t]?.[n];return void 0!==r?r:e.defaults[t]?.[n]},(e,t,n)=>["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault","isPublishSidebarEnabled","isComplementaryAreaVisible","pinnedItems"].includes(n)&&["core/edit-post","core/edit-site"].includes(t)?((0,$.A)(`wp.data.select( 'core/preferences' ).get( '${t}', '${n}' )`,{since:"6.5",alternative:`wp.data.select( 'core/preferences' ).get( 'core', '${n}' )`}),kx(e,"core",n)):kx(e,t,n)),wx=(0,M.A)("core/preferences",{reducer:gx,actions:d,selectors:f});(0,P.kz)(wx);var Sx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M9.5 12H12.5M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10.2333M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75H14.7667M8.5 19.5L16.5 4.5",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})}),Cx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Ax=n(6855),Ex=n(1462),Ix=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M13.5 8.5L10.5 12L13.5 15.5",vectorEffect:"non-scaling-stroke"})}),Tx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M10.5 8.5L13.5 12L10.5 15.5",vectorEffect:"non-scaling-stroke"})});var Nx=function e({children:t,settingsOpen:n,setSettingsOpen:r}){const o=(0,Ub.A)(),i=o?b.Fragment:xk.Ny,s=o?"div":xk.PY.div,a=`link-control-sett
33ings-drawer-${(0,Ul.A)(e)}`;return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>r(!n),icon:(0,V.V8)()?Ix:Tx,"aria-controls":a,children:(0,V._x)("Advanced","Additional link settings")}),(0,Be.jsx)(i,{children:n&&(0,Be.jsx)(s,{className:"block-editor-link-control__drawer",hidden:!n,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,Be.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:t})})})]})},{ValidatedInputControl:jx}=ue(nc),Bx=()=>{};function Lx(e){return"function"==typeof e}function Ox(e){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n,__experimentalRenderControl:r,__experimentalRenderSuggestions:o,__experimentalShowInitialSuggestions:i=!1,autocompleteRef:s,className:a,customValidity:l,disableSuggestions:c,disabled:u=!1,help:d=null,hideLabelFromVision:f=!1,inputRef:p,isFullWidth:m,label:h=null,markWhenOptional:y,onChange:v,onKeyDown:k,onSubmit:x,placeholder:w=(0,V.__)("Paste URL or type to search"),required:_=!0,suffix:S,value:C=""}=e,A=(0,Ul.A)(Ox),{getSettings:E}=(0,R.A)(fl),I=Vf(Ji.L,500),[T,N]=(0,b.useState)([]),[j,B]=(0,b.useState)(null),[L,O]=(0,b.useState)(null),[M,P]=(0,b.useState)(!1),[D,z]=(0,b.useState)(!1),[F,$]=(0,b.useState)(!1),H=(0,b.useRef)(),W=(0,b.useRef)([]),U=(0,b.useRef)(null),K=p??H,G=`url-input-control-${A}`,q=`block-editor-url-input-suggestions-${A}`,Z=`block-editor-url-input-suggestion-${A}`,Y=M&&!0!==c&&(i||!!C.length),X=Vf((0,Rh.A)((e="")=>{const r=Lx(t)?t:E().__experimentalFetchLinkSuggestions;if(!r)return;const o=!e?.length,i=e.trim();if(!o&&(i.length<2||!n&&(0,Ex.m)(i)))return U.current?.cancel?.(),U.current=null,N([]),P(!1),B(i),O(null),void z(!1);O(null),z(!0);const s=r(i,{isInitialSuggestions:o});U.current=s,s.then(e=>{U.current===s&&(N(e),B(i),z(!1),P(!!e.length),e.length?I((0,V.nv)( 34/* translators: %d: number of results. */ 35/* translators: %d: number of results. */ 36(0,V._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):I((0,V.__)("No results."),"assertive"))}).catch(()=>{U.current===s&&z(!1)}).finally(()=>{U.current===s&&(U.current=null)})}),200);function Q(e){v(e.url,e),O(null),P(!1)}(0,b.useEffect)(()=>{c||F||!C.length&&!i||X(C)},[C,F,c,i,X]),(0,b.useEffect)(()=>{Y||P(!1)},[Y]),(0,b.useEffect)(()=>{Y&&null!==L&&W.current[L]?.scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"})},[Y,L]),(0,b.useEffect)(()=>()=>{U.current?.cancel?.(),U.current=null},[]);const J={id:G,label:h,className:(0,g.A)("block-editor-url-input",a,{"is-full-width":m}),hideLabelFromVision:f},ee={id:G,value:C,required:_,type:"text",name:G,autoComplete:"off",onChange:u?Bx:function(e){v(e)},onCompositionStart:u?Bx:function(){$(!0),X.cancel()},onCompositionEnd:u?Bx:function(){$(!1)},onFocus:u?Bx:function(){!C||c||T.length||null!==U.current||X(C)},onKeyDown:u?Bx:function(e){if(k?.(e),!Y||!T.length||D){if(e.shiftKey||e.keyCode!==Lg.UP&&e.keyCode!==Lg.PX)e.keyCode===Lg.Fm&&x&&(e.preventDefault(),x(null,e));else{const t=e.keyCode===Lg.UP?0:e.target.value.length;e.target.selectionStart===t&&e.target.selectionEnd===t||(e.preventDefault(),e.target.setSelectionRange(t,t))}return}const t=T[L]??null;switch(e.keyCode){case Lg.UP:case Lg.PX:{e.preventDefault();const t=e.keyCode===Lg.UP?-1:1;O(((L??(-1===t?0:-1))+t+T.length)%T.length);break}case Lg.wn:t&&(Q(t),(0,Ji.L)((0,V.__)("Link selected.")));break;case Lg.Fm:e.preventDefault(),t&&Q(t),x?.(t,e)}},placeholder:w,role:"combobox","aria-label":h?void 0:(0,V.__)("URL"),"aria-expanded":Y,"aria-autocomplete":"list","aria-owns":q,"aria-activedescendant":null!==L?`${Z}-${L}`:void 0,ref:K,disabled:u,suffix:S,help:d};return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Rx,{controlProps:J,inputProps:ee,isLoading:D,customValidity:l,markWhenOptional:y,renderControl:r}),Y&&T.length>0&&(0,Be.jsx)(Mx,{autocompleteRef:s,className:a,handleSuggestionClick:function(e){Q(e),K.current.focus()},isLoading:D,renderSuggestions:o,selectedSuggestion:L,suggestionNodesRef:W,suggestionOptionIdPrefix:Z,suggestions:T,suggestionsListboxId:q,suggestionsValue:j})]})}function Rx({controlProps:e,inputProps:t,isLoading:n,customValidity:r,markWhenOptional:o,renderControl:i}){const[s,a]=(0,b.useState)(void 0!==r);if(void 0===r||s||a(!0),i)return i(e,t,n);const l=s?jx:Vl.Ay;return(0,Be.jsxs)(Wl.Ay,{...e,children:[(0,Be.jsx)(l,{...t,...s&&{customValidity:r,...void 0!==o&&{markWhenOptional:o}}}),n&&(0,Be.jsx)(dx.Ay,{})]})}function Mx({autocompleteRef:e,className:t,handleSuggestionClick:n,isLoading:r,render
36Suggestions:o,selectedSuggestion:i,suggestionNodesRef:s,suggestionOptionIdPrefix:a,suggestions:l,suggestionsListboxId:c,suggestionsValue:u}){const d={id:c,ref:e,role:"listbox"},f=(e,t)=>({role:"option",tabIndex:"-1",id:`${a}-${t}`,ref:e=>{s.current[t]=e},"aria-selected":t===i||void 0});return Lx(o)?o({suggestions:l,selectedSuggestion:i,suggestionsListProps:d,buildSuggestionItemProps:f,isLoading:r,handleSuggestionClick:n,isInitialSuggestions:!u?.length,currentInputValue:u}):(0,Be.jsx)(Sm.Ay,{placement:"bottom",focusOnMount:!1,children:(0,Be.jsx)("div",{...d,className:(0,g.A)("block-editor-url-input__suggestions",{[`${t}__suggestions`]:t}),children:l.map((e,t)=>(0,b.createElement)(yc.A,{__next40pxDefaultSize:!0,...f(0,t),key:e.id,className:(0,g.A)("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>n(e)},e.title))})})}var Px=n(5596),Dx=({searchTerm:e,onClick:t,itemProps:n,buttonText:r})=>{if(!e)return null;let o;return o=r?"function"==typeof r?r(e):r:(0,Px.A)((0,V.nv)( 37/* translators: %s: search term. */ 38/* translators: %s: search term. */ 39(0,V.__)("Create: <mark>%s</mark>"),e),{mark:(0,Be.jsx)("mark",{})}),(0,Be.jsx)(kc,{...n,iconPosition:"left",icon:Wy.A,className:"block-editor-link-control__search-item",onClick:t,children:o})},zx=n(4775);new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu);function Fx(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}var $x=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,Be.jsx)(Be.Fragment,{children:t});const o=new RegExp(`(${Fx(r)})`,"gi");return(0,Px.A)(t.replace(o,"<mark>$&</mark>"),{mark:(0,Be.jsx)("mark",{})})};$x.displayName="TextHighlight";var Vx=$x,Hx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Wx=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Be.jsx)(je.wA,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Be.jsx)(je.wA,{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"})]}),Ux=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Kx=(0,Be.jsxs)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Be.jsx)(je.wA,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H9C9.69036 4.75 10.25 5.30964 10.25 6V9C10.25 9.69036 9.69036 10.25 9 10.25H6C5.30964 10.25 4.75 9.69036 4.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.wA,{d:"M4.75 15C4.75 14.3096 5.30964 13.75 6 13.75H9C9.69036 13.75 10.25 14.3096 10.25 15V18C10.25 18.6904 9.69036 19.25 9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15Z",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.wA,{d:"M13.75 6C13.75 5.30964 14.3096 4.75 15 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V9C19.25 9.69036 18.6904 10.25 18 10.25H15C14.3096 10.25 13.75 9.69036 13.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,Be.jsx)(je.wA,{d:"M13.75 15C13.75 14.3096 14.3096 13.75 15 13.75H18C18.6904 13.75 19.25 14.3096 19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15C14.3096 19.25 13.75 18.6904 13.75 18V15Z",vectorEffect:"non-scaling-stroke"})]}),Gx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),qx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
39currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Zx=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),Yx=n(8450),Xx=n(5394);function Qx(e){try{return decodeURI(e)}catch{return e}}var Jx=n(4746);function ew(e,t=null){if(!e)return"";let n=e.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"");n.match(/^[^\/]+\/$/)&&(n=n.replace("/",""));if(!t||n.length<=t||!n.match(/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/))return n;n=n.split("?")[0];const r=n.split("/"),o=r[r.length-1];if(o.length<=t)return"â¦"+n.slice(-t);const i=o.lastIndexOf("."),[s,a]=[o.slice(0,i),o.slice(i+1)],l=s.slice(-3)+"."+a;return o.slice(0,Math.max(0,t-l.length-1))+"â¦"+l}var tw={post:{icon:Hx,label:(0,V.__)("Post")},page:{icon:Wx,label:(0,V.__)("Page")},post_tag:{icon:Ux,label:(0,V.__)("Tag")},category:{icon:Kx,label:(0,V.__)("Category")},attachment:{icon:Gx,label:(0,V.__)("Attachment")}};function nw({isURL:e,suggestion:t}){let n=null;return e?n=qx:t.type in tw&&(n=tw[t.type].icon,"page"===t.type&&(t.isFrontPage&&(n=Zx),t.isBlogHome&&(n=Yx.A))),n?(0,Be.jsx)(Og.A,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function rw(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function ow(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}var iw=({itemProps:e,suggestion:t,searchTerm:n,onClick:r,isURL:o=!1,shouldShowType:i=!1})=>{const s=o?(0,V.__)("Press ENTER to add this link"):(a=t.url)?(0,z.h)(Qx,Jx.Y,(l="",e=>null==e||e!=e?l:e),((e,...t)=>(...n)=>e(...n,...t))(ew,24),ow,rw)(a):a;var a,l;return(0,Be.jsx)(kc,{...e,info:s,iconPosition:"left",icon:(0,Be.jsx)(nw,{suggestion:t,isURL:o}),onClick:r,shortcut:i&&sw(t),className:"block-editor-link-control__search-item",children:(0,Be.jsx)(Vx,{text:(0,Xx.A)(t.title),highlight:n})})};function sw(e){return e.isFrontPage?(0,V.__)("Front page"):e.isBlogHome?(0,V.__)("Blog home"):e.type in tw?tw[e.type].label:e.type}var aw=iw,lw="__CREATE__",cw="link",uw="mailto",dw="internal",fw=[cw,uw,"tel",dw],pw=[{id:"opensInNewTab",title:(0,V.__)("Open in new tab")}];function mw({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:n,suggestionsListProps:r,buildSuggestionItemProps:o,suggestions:i,selectedSuggestion:s,isLoading:a,isInitialSuggestions:l,createSuggestionButtonText:c,suggestionsQuery:u}){const d=(0,g.A)("block-editor-link-control__search-results",{"is-loading":a}),f=1===i.length&&fw.includes(i[0].type),p=e&&!f&&!l,m=!u?.type,h=l?(0,V.__)("Suggestions"):(0,V.nv)( 40/* translators: %s: search term. */ 41/* translators: %s: search term. */ 42(0,V.__)('Search results for "%s"'),t);return(0,Be.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,Be.jsx)("div",{...r,className:d,"aria-label":h,children:(0,Be.jsx)(hc,{children:i.map((e,r)=>p&&lw===e.type?(0,Be.jsx)(Dx,{searchTerm:t,buttonText:c,onClick:()=>n(e),itemProps:o(e,r),isSelected:r===s},e.type):lw===e.type?null:(0,Be.jsx)(aw,{itemProps:o(e,r),suggestion:e,index:r,onClick:()=>{n(e)},isSelected:r===s,isURL:fw.includes(e.type),searchTerm:t,shouldShowType:m,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome}
42,`${e.id}-${e.type}`))})})})}var gw=mw;function hw(e){const t=e?.trim();if(!t)return{url:t,type:cw};let n=cw;const r=(0,sv.J)(t)||"";return r.includes("mailto")?n=uw:r.includes("tel")?n="tel":t?.startsWith("#")&&(n=dw),lv(t)||cv(t)||t.startsWith("?")||r?{url:t,type:n}:{url:(0,Ax.i)(t),type:n}}var bw=()=>Promise.resolve([]),yw=e=>{const{url:t,type:n}=hw(e);return Promise.resolve([{id:e,title:e,url:t,type:n}])};function vw(e,t,n){const{fetchSearchSuggestions:r,pageOnFront:o,pageForPosts:i}=(0,R.A)(e=>{const{getSettings:t}=e(fl);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),s=t?yw:bw;return(0,b.useCallback)((t,{isInitialSuggestions:a})=>uv(t)?s(t,{isInitialSuggestions:a}):(async(e,t,n,r,o,i)=>{const{isInitialSuggestions:s}=t,a=await n(e,t);return a.map(e=>Number(e.id)===o?(e.isFrontPage=!0,e):Number(e.id)===i?(e.isBlogHome=!0,e):e),s||uv(e)||!r?a:a.concat({title:e,url:e,type:lw})})(t,{...e,isInitialSuggestions:a},r,n,o,i),[s,r,o,i,e,n])}var kw=()=>Promise.resolve([]),xw=()=>{},ww=(0,b.forwardRef)(({value:e,children:t,currentLink:n={},className:r=null,placeholder:o=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=xw,onChange:a=xw,onSelect:l=xw,showSuggestions:c=!0,renderSuggestions:u=e=>(0,Be.jsx)(gw,{...e}),fetchSuggestions:d=null,allowDirectEntry:f=!0,showInitialSuggestions:p=!1,suggestionsQuery:m={},withURLSuggestion:g=!0,createSuggestionButtonText:h,hideLabelFromVision:y=!1,suffix:v,isEntity:k=!1,customValidity:x},w)=>{const _=vw(m,f,i),S=c?d||_:kw,[C,A]=(0,b.useState)(),E=async e=>{let t=e;if(lw!==e.type){if(f||t&&Object.keys(t).length>=1){const{id:e,url:r,kind:o,type:i,...s}=n??{};l({...s,...t},t)}}else try{t=await s(e.title),t?.url&&l(t)}catch{}},I=o??(0,V.__)("Search or type URL"),T=y&&""!==o?I:(0,V.__)("Link");return(0,Be.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,Be.jsx)(Ox,{disableSuggestions:n?.url===e,label:T,hideLabelFromVision:y,className:r,value:e,onChange:(e,t)=>
42{a(e),A(t)},placeholder:I,__experimentalRenderSuggestions:c?e=>u({...e,withCreateSuggestion:i,createSuggestionButtonText:h,suggestionsQuery:m,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),E(t)}}):null,__experimentalFetchLinkSuggestions:S,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:p,customValidity:x,required:!1,onSubmit:(t,n)=>{const r=t||C;r||e?.trim()?.length?E(r||{url:e}):n.preventDefault()},inputRef:w,suffix:v,disabled:k}),t]})}),_w=ww,Sw=n(7357);var Cw=(0,cf.KZ)(function(e,t){const n=(0,Sw.A)(e);return(0,Be.jsx)(uf.A,{as:"span",...n,ref:t})},"Truncate");function Aw(e){const t=(0,b.useRef)(e);return(0,b.useLayoutEffect)(()=>{t.current=e},[e]),t}var Ew=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Iw=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),{Slot:Tw,Fill:Nw}=(0,Al.QJ)("BlockEditorLinkControlViewer");function jw(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}`)}}var Bw=function(e){const[t,n]=(0,b.useReducer)(jw,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,R.A)(e=>{const{getSettings:t}=e(fl);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}},[]);return(0,b.useEffect)(()=>{if(e?.length&&r&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,o=t.signal;return r(e,{signal:o}).then(e=>{n({type:"RESOLVED",richData:e})}).catch(()=>{o.aborted||n({type:"ERROR"})}),()=>{t.abort()}}},[e]),t},{Badge:Lw}=ue(nc);function Ow({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:r=!1,onRemove:o}){const i=(0,R.A)(e=>e(wx).get("core","showIconLabels"),[]),s=n?e?.url:null,{richData:a,isFetching:l}=Bw(s),c=a&&Object.keys(a).length,u=e&&ew(Qx(e.url),24)||"",d=!e?.url?.length,f=!d&&(0,Xx.A)(e?.entityTitle||a?.title||e?.title||u);let p;p=a?.icon?(0,Be.jsx)("img",{src:a?.icon,alt:""}):d?(0,Be.jsx)(Og.A,{icon:Rl,size:32}):(0,Be.jsx)(Og.A,{icon:qx});const{createNotice:m}=(0,y.A)(Ws),h=function(e,t){const n=Aw(e),r=Aw(t);return(0,Ku.A)(e=>{let t=!0;const o=async()=>{const o="function"==typeof n.current?n.current():n.current||"",i=await async function(e,t){if(!t)return!1;const{ownerDocument:n}=t;if(!n)return!1;const{defaultView:r}=n;try{if(r?.navigator?.clipboard?.writeText)return await r.navigator.clipboard.writeText(e),!0;const t=n.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",t.style.top="-9999px",n.body.appendChild(t),t.select();const o=n.execCommand("copy");return t.remove(),o}catch{return!1}}(o,e);var s;i&&(t&&"focus"in(s=e)&&"function"==typeof s.focus&&s.focus(),r.current&&r.current())};return e.addEventListener("click",o),()=>{t=!1,e.removeEventListener("click",o)}},[])}(e.url,()=>{m("info",(0,V.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Be.jsx)(mf.A,{role:"group","aria-label":(0,V.__)("Manage link"),className:(0,g.A)("block-editor-link-control__preview",{"is-current":!0,"is-rich":c,"is-fetching":!!l,"is-preview":!0,"is-error":d,"is-url-title":f===u}),children:(0,Be.jsxs)(mf.A,{gap:0,align:"flex-start",children:[(0,Be.jsxs)(mf.A,{className:"block-editor-link-control__link-information",role:"figure","aria-label": 43/* translators: Accessibility text for the link preview when editing a link. */ 44/* translators: Accessibility text for the link preview when editing a link. */(0,V.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,Be.jsx)(mf.A,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,Be.jsx)("img",{src:e?.image,alt:""})}):(0,Be.jsx)(mf.A,{className:(0,g.A)("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:p}),(0,Be.jsx)(mf.A,{className:"block-editor-link-control__preview-details",direction:"column",gap:2,children:d?(0,Be.jsx)("span",{className:"block-editor-link-control__preview-error-notice",children:(0,V.__)("Link is empty")}):(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Jf,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,Be.jsx)(Cw,{numberOfLines:1,children:f})}),(0,Be.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,Be.jsx)(Cw,{numberOfLines:1,children:u})}),e?.badges?.length>0&&(0,Be.jsx)(fx.A,{className:"block-editor-link-control__preview-badges",alignment:"left",gap:1,children:e.badges.map((e,t)=>(0,Be.jsx)(Lw,{intent:e.intent,children:e.label},`${e.label}|${e.intent}|${t}`))})]})})]}),(0,Be.jsx)(yc.A,{icon:Ew,label:(0,V.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,Be.jsx)(yc.A,{icon:Sx,label:(0,V.__)("Remove link"),onClick:o,size:"compact",showTooltip:!i}),(0,Be.jsx)(yc.A,{icon:Iw,label:(0,V.__)("Copy link"),ref:h,accessibleWhenDisabled:!0,disabled:d,size:"compact",showTooltip:!i}),(0,Be.jsx)(Tw,{fillProps:e})]})})}var Rw=n(1436),Mw=()=>{}
44,Pw=({value:e,onChange:t=Mw,settings:n})=>{if(!n||!n.length)return null;const r=n=>r=>{t({...e,[n.id]:r})},o=n.map(n=>{if("render"in n){if("function"==typeof n.render){const r=n.render(n,e,t);return(0,Be.jsx)("div",{className:"block-editor-link-control__setting",children:r},n.id)}return null}return(0,Be.jsx)(zf.A,{className:"block-editor-link-control__setting",label:n.title,onChange:r(n),checked:!!e&&!!e[n.id],help:n?.help},n.id)}).filter(Boolean);return(0,Be.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,Be.jsx)(Rw.s,{render:(0,Be.jsx)("legend",{}),children:(0,V.__)("Currently selected link settings")}),o]})};var Dw=e=>{let t=!1;return{promise:new Promise((n,r)=>{e.then(e=>t?r({isCanceled:!0}):n(e),e=>r(t?{isCanceled:!0}:e))}),cancel(){t=!0}}};r();var zw=()=>{},Fw="core/block-editor",$w="linkControlSettingsDrawer";function Vw({searchInputPlaceholder:e,value:t,settings:n=pw,onChange:o=zw,onInputChange:i,onRemove:s,onCancel:a,noDirectEntry:l=!1,showSuggestions:c=!0,showInitialSuggestions:u,forceIsEditingLink:d,createSuggestion:f,withCreateSuggestion:p,inputValue:m="",suggestionsQuery:h={},noURLSuggestion:v=!1,createSuggestionButtonText:k,hasRichPreviews:x=!1,hasTextControl:w=!1,renderControlBottom:_=null,handleEntities:S=!1}){void 0===p&&f&&(p=!0);const[C,A]=(0,b.useState)(!1),[E,I]=(0,b.useState)(void 0),{advancedSettingsPreference:T}=(0,R.A)(e=>({advancedSettingsPreference:e(wx).get(Fw,$w)??!1}),[]),{set:N}=(0,y.A)(wx),j=T||C,B=(0,b.useRef)(!0),L=(0,b.useRef)(),O=(0,$l.A)([L,jv()]),M=(0,b.useRef)(),P=(0,b.useRef)(),D=(0,b.useRef)(),z=n.map(({id:e})=>e),[F,$,H,W,U]=function(e){const[t,n]=(0,b.useState)(e||{}),[o,i]=(0,b.useState)(e);return r()(e,o)||(i(e),n(e)),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>r=>{const o=Object.keys(r).reduce((t,n)=>(e.includes(n)&&(t[n]=r[n]),t),{});n({...t,...o})}]}(t),K=S&&!!F?.id,G=(0,Ul.A)(Vw,"link-control"),q=K?`${G}__help`:null,Z=t&&!(0,px.A)(F,t),[Y,X]=(0,b.useState)(void 0!==d?d:!t||!t.url),{createPage:Q,isCreatingPage:J,errorMessage:ee}=function(e){const t=(0,b.useRef)(),[n,r]=(0,b.useState)(!1),[o,i]=(0,b.useState)(null);return(0,b.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:async function(n){r(!0),i(null);try{return t.current=Dw(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||(0,V.__)("An unknown error occurred during creation. Please try again.")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:o}}(f);(0,b.useEffect)(()=>{void 0!==d&&X(d)},[d]),(0,b.useEffect)(()=>{if(B.current)return;(Ov.XC.focusable.find(L.current)[0]||L.current).focus()},[Y,J]),(0,b.useEffect)(()=>(B.current=!1,()=>{B.current=!0}),[]);const te=(0,b.useRef)();(0,b.useEffect)(()=>{void 0!==te.current?te.current!==m&&(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."),te.current=m):te.current=m},[m]),(0,b.useEffect)(()=>{if("invalid"===E?.type){const e=P.current;e&&"function"==typeof e.reportValidity&&e.reportValidity()}},[E]);const ne=t?.url?.trim()?.length>0,re=()=>{X(!1)},oe=e=>{const t={type:"invalid",message:(0,V.__)("Please enter a valid URL.")},n={type:"valid"},r=e?.trim();if(!r?.length||!uv(r))return t;if(lv(r)||cv(r))return n;const o=(0,Ax.i)(r);return(0,Ex.m)(o)?n:t},ie=()=>{(()=>{if(ce)return!1;const e=le.trim();if(F&&F.id&&F.type&&!fw.includes(F.type)&&t?.url===e)return I(void 0),!0;const n=oe(le);return"invalid"===n.type?(I(n),!1):(I(void 0),!0)})()&&(Z&&o({...t,...F,url:hw(le).url}),re(),I(void 0))},[se,ae]=(0,b.useState)(!1);(0,b.useEffect)(()=>{se&&(P.current?.focus(),ae(!1))},[se]);const le=void 0!==F?.url?F.url:m||"",ce=!le?.trim()?.length;(0,b.useEffect)(()=>{I(void 0)},[le]);const ue=s&&t&&!Y&&!J,de=Y&&ne,fe=ne&&w,pe=(Y||!t)&&!J,me=ce||!!E||t&&!Z,ge=!!n?.length&&Y&&ne,he=(0,b.useMemo)(()=>"taxonomy"===t?.kind&&!t?.url&&D.current?{...t,url:D.current}:t,[t]);return(0,Be.jsxs)("div",{tabIndex:-1,ref:O,className:"block-editor-link-control",children:[J&&(0,Be.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,Be.jsx)(dx.Ay,{})," ",(0,V.__)("Creating"),"â¦"]}),pe&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:(0,g.A)({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":fe,"has-actions":de}),children:[fe&&(0,Be.jsx)(Xf.A,{ref:M,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,V.__)("Text"),value:F?.title,onChange:W,onKeyDown:e=>{const{keyCode:t}=e;t!==Lg.Fm||ce||(e.preventDefault(),ie())}}),(0,Be.jsx)(_w,{ref:P,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:le,withCreateSuggestion:p,onCreateSuggestion:Q,onChange:e=>{H(e),i?.(e)},onSelect:e=>{if(!(e&&e.id&&e.type&&!fw.includes(e.type))){const t=e?.url||le,n=oe(t);if("invalid"===n.type)return void I(n);const{url:r}=hw(t);e={...e,url:r}}"taxonomy"===e?.kind&&e?.url&&(D.current=e.url);const t=Object.keys(e).reduce((t,n)=>(z.includes(n)||(t[n]=e[n]),t),{});
44o({...F,...t,title:F?.title||e?.title}),I(void 0),re()},showInitialSuggestions:u,allowDirectEntry:!l,showSuggestions:c,suggestionsQuery:h,withURLSuggestion:!v,createSuggestionButtonText:k,hideLabelFromVision:!fe,isEntity:K,customValidity:E,suffix:(0,Be.jsx)(Hw,{isEntity:K,showActions:de,isDisabled:me,onUnlink:()=>{const{id:e,kind:t,type:n,...r}=F;$({...r,id:void 0,kind:void 0,type:void 0,url:void 0}),ae(!0)},onSubmit:ie,helpTextId:q})}),K&&q&&(0,Be.jsx)("p",{id:q,className:"block-editor-link-control__help",children:(0,V.nv)( 45/* translators: %s: entity type (e.g., page, post) */ 46/* translators: %s: entity type (e.g., page, post) */ 47(0,V.__)("Synced with the selected %s."),F?.type||"item")})]}),ee&&(0,Be.jsx)(lm,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:ee})]}),t&&!Y&&!J&&(0,Be.jsx)(Ow,{value:he,onEditClick:()=>X(!0),hasRichPreviews:x,hasUnlinkControl:ue,onRemove:()=>{s(),X(!0)}},he?.url),ge&&(0,Be.jsx)("div",{className:"block-editor-link-control__tools",children:!ce&&(0,Be.jsx)(Nx,{settingsOpen:j,setSettingsOpen:e=>{N&&N(Fw,$w,e),A(e)},children:(0,Be.jsx)(Pw,{value:F,settings:n,onChange:U(z)})})}),de&&(0,Be.jsxs)(fx.A,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),$(t),I(void 0),ne?re():s?.(),a?.()},children:(0,V.__)("Cancel")}),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"primary",onClick:me?zw:ie,className:"block-editor-link-control__search-submit","aria-disabled":me,children:(0,V.__)("Apply")})]}),!J&&_&&_()]})}function Hw({isEntity:e,showActions:t,isDisabled:n,onUnlink:r,onSubmit:o,helpTextId:i}){return e?(0,Be.jsx)(yc.A,{icon:Sx,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,V.__)("Unsync and edit"),__next40pxDefaultSize:!0}):t?void 0:(0,Be.jsx)(Nf.A,{variant:"control",children:(0,Be.jsx)(yc.A,{onClick:n?zw:o,label:(0,V.__)("Submit"),icon:Cx,className:"block-editor-link-control__search-submit","aria-disabled":n,size:"small"})})}Vw.ViewerFill=Nw,Vw.DEFAULT_LINK_SETTINGS=pw;var Ww=e=>((0,$.A)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,Be.jsx)(Vw,{...e}));Ww.ViewerFill=Vw.ViewerFill,Ww.DEFAULT_LINK_SETTINGS=Vw.DEFAULT_LINK_SETTINGS;var Uw=Vw,Kw=Jy("editor.MediaUpload")(()=>null);var Gw=function({fallback:e=null,children:t}){const n=(0,R.A)(e=>{const{getSettings:t}=e(fl);return!!t().mediaUpload},[]);return n?t:e},qw=n(17),Zw=n(7995),Yw=n(5149);function Xw(e){return t=>{const[n,r]=(0,b.useState)([]);return(0,b.useLayoutEffect)(()=>{const{options:n,isDebounced:o}=e,i=$f(()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then(n=>{if(o.canceled)return;const i=n.map((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)})),s=new RegExp("(?:\\b|\\s|^)"+Fx(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:s=[]}=i;if("string"==typeof i.label&&(s=[...s,i.label]),s.some(t=>e.test(zx(t)))&&(r.push(i),r.length===n))break}return r}(s,i))});return o},o?250:0),s=i();return()=>{i.cancel(),s&&(s.canceled=!0)}},[t]),[n]}}function Qw({items:e,onSelect:t,selectedIndex:n,instanceId:r,listBoxId:o,className:i,Component:s="div"}){return(0,Be.jsx)(s,{id:o,role:"listbox",className:"components-autocomplete__results",children:e.map((e,o)=>(0,Be.jsx)(yc.A,{id:`components-autocomplete-item-${r}-${e.key}`,role:"option",__next40pxDefaultSize:!0,"aria-selected":o===n,accessibleWhenDisabled:!0,disabled:e.isDisabled,className:(0,g.A)("components-autocomplete__result",i,{"is-selected":o===n}),variant:o===n?"primary":void 0,onClick:()=>t(e),children:e.label},e.key))})}function Jw({autocompleter:e,filterValue:t,instanceId:n,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:a,reset:l,contentRef:c}){const u=e.useItems??Xw(e),[d]=u(t),f=(0,Oe.d6)({editableContentElement:c.current}),[p,m]=(0,b.useState)(!1),g=(0,b.useRef)(null),h=(0,$l.A)([g,(0,Ku.A)(e=>{c.current&&m(e.ownerDocument!==c.current.ownerDocument)},[c])]);var y,v;y=g,v=l,(0,b.useEffect)(()=>{const e=e=>{y.current&&!y.current.contains(e.target)&&v(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[v,y]);const k=Vf(Ji.L,500);return(0,b.useLayoutEffect)(()=>{var e;
47s(d),e=d,k&&(e.length?k(t?(0,V.nv)( 48/* translators: %d: number of results. */ 49/* translators: %d: number of results. */ 50(0,V._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length):(0,V.nv)( 51/* translators: %d: number of results. */ 52/* translators: %d: number of results. */ 53(0,V._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",e.length),e.length),"assertive"):k((0,V.__)("No results."),"assertive"))},[d]),0===d.length?null:(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Sm.Ay,{offset:8,focusOnMount:!1,placement:"top-start",className:"components-autocomplete__popover",anchor:f,ref:h,children:(0,Be.jsx)(Qw,{items:d,onSelect:a,selectedIndex:i,instanceId:n,listBoxId:r,className:o})}),c.current&&p&&(0,Yw.createPortal)((0,Be.jsx)(Qw,{items:d,onSelect:a,selectedIndex:i,instanceId:n,listBoxId:r,className:o,Component:Gl.A}),c.current.ownerDocument.body)]})}var e_=e=>{if(null===e)return"";switch(typeof e){case"string":case"number":return e.toString();case"object":return e instanceof Array?e.map(e_).join(""):"props"in e?e_(e.props.children):"";default:return""}},t_=e_,{subscribeOwnedListener:n_}=Ol(Oe.jb),r_={};var o_={selectedIndex:0,filteredOptions:[],filterValue:"",autocompleter:null};function i_(e,t){switch(t.type){case"RESET":return o_;case"SELECT":return{...e,selectedIndex:t.index};case"OPTIONS":return{...e,filteredOptions:t.options,selectedIndex:t.options.length===e.filteredOptions.length?e.selectedIndex:0};case"MATCH":return{...e,autocompleter:t.completer,filterValue:t.query}}}function s_({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,Ul.A)(r_),[s,a]=(0,b.useReducer)(i_,o_),{selectedIndex:l,filteredOptions:c,filterValue:u,autocompleter:d}=s,f=(0,b.useRef)(!1),p=(0,b.useRef)(""),m=(0,b.useRef)(null);function g(r){if(r.isDisabled||!d)return;const{getOptionCompletion:i}=d;if(!i)return a({type:"RESET"}),void o.current?.focus();const s=null!==(l=i(r.value,u))&&"object"==typeof l&&"action"in l&&void 0!==l.action&&"value"in l&&void 0!==l.value?l:{action:"insert-at-caret",value:l};var l;if("replace"!==s.action){if("insert-at-caret"===s.action){const n=function(n){if(null===d)return"";const r=e.start,o=r-d.triggerPrefix.length-u.length,i=(0,Oe.vt)({html:(0,rm.Ay)(n)});return t((0,Oe.Yr)(e,i,o,r)),(0,Oe.rf)(i)}(s.value);if(n.startsWith(d.triggerPrefix)){const e=n.slice(d.triggerPrefix.length);e&&(m.current={name:d.name,value:e})}}a({type:"RESET"}),o.current?.focus()}else n([s.value])}const h=(0,b.useMemo)(()=>(0,Oe.kW)(e)?(0,Oe.rf)((0,Oe.di)(e,0)):"",[e]);(0,b.useEffect)(()=>{const t=e.text!==p.current;p.current=e.text;const n=function(e,t,n){const{matchCount:r,isBackspacing:o,getTextAfterSelection:i,lastCompletion:s}=n;if(!e)return null;let a=null,l=-1,c=-1,u=0;for(const n of t){const t=e.lastIndexOf(n.triggerPrefix);if(t<0)continue;const r=t+n.triggerPrefix.length;(r>c||r===c&&n.triggerPrefix.length>u)&&(a=n,l=t,c=r,u=n.triggerPrefix.length)}if(!a)return null;const{allowContext:d,triggerPrefix:f}=a,p=e.slice(l+f.length);if(p.length>50)return null;const m=0===r,g=p.split(/\s/),h=1===g.length,b=o&&g.length<=3;return!m||b||h?d&&!d(e.slice(0,l),i())||/^\s/.test(p)||/\s\s+$/.test(p)||s&&s.name===a.name&&p.trimEnd()===s.value?null:{completer:a,filterValue:zx(p)}:null}(h,r,{matchCount:c.length,isBackspacing:f.current,getTextAfterSelection:function(){return h?(0,Oe.rf)((0,Oe.di)(e,void 0,(0,Oe.rf)(e).length)):""},lastCompletion:m.current});if(!n)return void(d&&a({type:"RESET"}));const{completer:o,filterValue:i}=n;(d||t)&&(m.current&&m.current.name===o.name&&(m.current=null),a({type:"MATCH",completer:o,query:i}))},[h]);const{key:y=""}=c[l]||{},{className:v}=d||{},k=!!d&&c.length>0,x=k?`components-autocomplete-listbox-${i}`:void 0,w=k?`components-autocomplete-item-${i}-${y}`:null,_=void 0!==e.start,S=!!h&&_&&!!d;return{listBoxId:x,activeId:w,onKeyDown:(0,Zw.n)(function(e){if(f.current="Backspace"===e.key,d&&0!==c.length&&!e.defaultPrevented){switch(e.key){case"ArrowUp":case"ArrowDown":{const t="ArrowUp"===e.key?-1:1,n=(l+t+c.length)%c.length;a({type:"SELECT",index:n}),(0,qw.H)()&&(0,Ji.L)(t_(c[n].label),"assertive");break}case"Escape":a({type:"RESET"}),e.preventDefault();break;
53case"Enter":g(c[l]);break;case"ArrowLeft":case"ArrowRight":return void a({type:"RESET"});default:return}e.preventDefault()}}),popover:S&&(0,Be.jsx)(Jw,{autocompleter:d,className:v,filterValue:u,instanceId:i,listBoxId:x,selectedIndex:l,onChangeOptions:function(e){a({type:"OPTIONS",options:e})},onSelect:g,contentRef:o,reset:()=>a({type:"RESET"})},d.name+d.triggerPrefix)}}function a_(e){const t=(0,b.useRef)(null),n=(0,b.useRef)(void 0),{record:r}=e,o=function(e){const t=(0,b.useRef)([]),n=t.current[t.current.length-1];var r,o;return n&&(o=n,(r=e).text===o.text&&r.start===o.start&&r.end===o.end)||t.current.push(e),t.current.length>2&&t.current.shift(),t.current[0]}(r),{popover:i,listBoxId:s,activeId:a,onKeyDown:l}=s_({...e,contentRef:t});n.current=l;const c=(0,$l.A)([t,(0,Ku.A)(e=>n_(e,"keydown",function(e){n.current?.(e)},!0),[])]);return r.text!==o?.text?{ref:c,children:i,"aria-autocomplete":s?"list":void 0,"aria-haspopup":s?"listbox":void 0,"aria-controls":s,"aria-owns":s,"aria-activedescendant":a??void 0}:{ref:c}}var l_=n(7942),c_=e=>e.name||"",u_=e=>e.title,d_=e=>e.description||"",f_=e=>e.keywords||[],p_=e=>e.category,m_=()=>null,g_=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],h_=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),b_=new Map,y_=new Map;function v_(e=""){if(b_.has(e))return b_.get(e);const t=(0,l_.W)(e,{splitRegexp:g_,stripRegexp:h_}).split(" ").filter(Boolean);return b_.set(e,t),t}function k_(e=""){if(y_.has(e))return y_.get(e);let t=zx(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),y_.set(e,t),t}var x_=(e="")=>v_(k_(e)),w_=(e,t,n,r)=>{if(0===x_(r).length)return e;return S_(e,r,{getCategory:e=>t.find(({slug:t})=>t===e.category)?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},S_=(e=[],t="",n={})=>{if(0===x_(t).length)return e;const r=e.map(e=>[e,C_(e,t,n)]).filter(([,e])=>e>0);return r.sort(([,e],[,t])=>t-e),r.map(([e])=>e)};function C_(e,t,n={}){const{getName:r=c_,getTitle:o=u_,getDescription:i=d_,getKeywords:s=f_,getCategory:a=p_,getCollection:l=m_}=n,c=r(e),u=o(e),d=i(e),f=s(e),p=a(e),m=l(e),g=k_(t),h=k_(u);let b=0;if(g===h)b+=30;else if(h.startsWith(g))b+=20;else{const e=[c,u,d,...f,p,m].join(" ");0===((e,t)=>e.filter(e=>!x_(t).some(t=>t.includes(e))))(v_(g),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}var A_=(e,t,n)=>{const r=(0,b.useMemo)(()=>({[vr]:!!n}),[n]),[o]=(0,R.A)(t=>[t(fl).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=ue((0,R.A)(fl)),{createErrorNotice:s}=(0,y.A)(Ws),[a,l]=(0,R.A)(e=>{const{getCategories:t,getCollections:n}=e(h.M_);return[t(),n()]},[]);return[o,a,l,(0,b.useCallback)(({name:n,initialAttributes:r,innerBlocks:o,innerContent:a,syncStatus:l,content:c},u)=>{const d=i(n,e);if(null===d){const e=(0,h.E7)(n)?.title??n;return void s((0,V.nv)( 54/* translators: %s: block pattern title. */ 55/* translators: %s: block pattern title. */ 56(0,V.__)('Block "%s" can\'t be inserted.'),e),{type:"snackbar",id:"inserter-notice"})}const f="unsynced"===l?(0,h.qg)(c,{__unstableSkipMigrationLogs:!0}):(0,h.Wv)(n,r,(0,h.to)(o),a);t(f,void 0,u,d)},[i,e,t,s])]},E_=(e,t)=>t?(e.sort(({id:e},{id:n})=>{let r=t.indexOf(e),o=t.indexOf(n);return r<0&&(r=t.length),o<0&&(o=t.length),r-o}),e):e,I_=()=>{};var T_={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockId:n,prioritizedBlocks:r}=(0,R.A)(e=>{const{getSelectedBlockClientId:t,getBlock:n,getBlockListSettings:r,getBlockRootClientId:o}=e(fl),{getActiveBlockVariation:i}=e(h.M_),s=t(),{name:a,attributes:l}=n(s),c=i(a,l),u=o(s);return{selectedBlockId:c?`${a}/${c.name}`:a,rootClientId:u,prioritizedBlocks:r(u)?.prioritizedInserterBlocks}},[]),[o,i,s]=A_(t,I_,!0),a=(0,b.useMemo)(()=>(e.trim()?w_(o,i,s,e):E_(Nr(o,"frecency","desc"),r)).filter(e=>e.id!==n).slice(0,9),[e,n,o,i,s,r]);return[(0,b.useMemo)(()=>a.map(e=>{const{title:t,icon:n,isDisabled:r}=e;return{key:`block-${e.id}`,value:e,label:(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Wf,{icon:n,showColors:!0},"icon"),t]}),isDisabled:r}}),[a])]},allowContext:(e,t)=>
56!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:r,innerContent:o,syncStatus:i,blocks:s}=e;return{action:"replace",value:"unsynced"===i?(s??[]).map(e=>(0,h.JB)(e)):(0,h.Wv)(t,n,(0,h.to)(r),o)}}},N_=[];function j_({completers:e=N_}){const{name:t}=O();return(0,b.useMemo)(()=>{let n=[...e];return(t===(0,h.K$)()||(0,h.bI)(t,"__experimentalSlashInserter",!1))&&(n=[...n,T_]),(0,_.FC)("editor.Autocomplete.completers")&&(n===e&&(n=n.map(e=>({...e}))),n=(0,_.W5)("editor.Autocomplete.completers",n,t)),n},[e,t])}var B_={placement:"bottom-start"},L_=()=>(0,Be.jsxs)(Be.Fragment,{children:[["bold","italic","link","unknown"].map(e=>(0,Be.jsx)(Al.DX,{name:`RichText.ToolbarControls.${e}`},e)),(0,Be.jsx)(Al.DX,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;const t=e.map(([{props:e}])=>e).some(({isActive:e})=>e);return(0,Be.jsx)(fc.A,{children:n=>(0,Be.jsx)(pc.A,{icon:Gb.A,label:(0,V.__)("More"),toggleProps:{...n,className:(0,g.A)(n.className,{"is-pressed":t}),description:(0,V.__)("Displays more block tools")},controls:Nr(e.map(([{props:e}])=>e),"title"),popoverProps:B_})})}})]}),O_=n(5850),R_=n(790);var M_=function(e={},t){switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":const{[t.name]:n,...r}=e;return r}return e};function P_({name:e,category:t,description:n,keyCombination:r,aliases:o}){return{type:"REGISTER_SHORTCUT",name:e,category:t,keyCombination:r,aliases:o,description:n}}function D_(e){return{type:"UNREGISTER_SHORTCUT",name:e}}var z_=[],F_={display:Lg.dz,raw:Lg.JF,ariaLabel:Lg._A};function $_(e,t){return e?e.modifier?F_[t][e.modifier](e.character):e.character:null}function V_(e,t){return e[t]?e[t].keyCombination:null}function H_(e,t,n="display"){return $_(V_(e,t),n)}function W_(e,t){return e[t]?e[t].description:null}function U_(e,t){return e[t]&&e[t].aliases?e[t].aliases:z_}var K_=(0,Re.M)((e,t)=>[V_(e,t),...U_(e,t)].filter(e=>!!e),(e,t)=>[e[t]]),G_=(0,Re.M)((e,t)=>K_(e,t).map(e=>$_(e,"raw")),(e,t)=>[e[t]]),q_=(0,Re.M)((e,t)=>Object.entries(e).filter(([,e])=>e.category===t).map(([e])=>e),e=>[e]),Z_=(0,M.A)("core/keyboard-shortcuts",{reducer:M_,actions:p,selectors:m});function Y_(){const{getAllShortcutKeyCombinations:e}=(0,R.A)(Z_);return(0,b.useCallback)((t,n)=>e(t).some(e=>!!e&&Lg.kx[e.modifier??"undefined"](n,e.character)),[e])}(0,P.kz)(Z_);var X_=new Set,Q_=e=>{for(const t of X_)t(e)},J_=(0,b.createContext)({add:e=>{0===X_.size&&document.addEventListener("keydown",Q_),X_.add(e)},delete:e=>{X_.delete(e),0===X_.size&&document.removeEventListener("keydown",Q_)}});function eS(e,t,{isDisabled:n=!1}={}){const r=(0,b.useContext)(J_),o=Y_(),i=(0,b.useRef)();(0,b.useEffect)(()=>{i.current=t},[t]),(0,b.useEffect)(()=>{if(!n)return r.add(t),()=>{r.delete(t)};function t(t){o(e,t)&&i.current&&i.current(t)}},[e,n,r,o])}J_.displayName="KeyboardShortcutsContext";var{Provider:tS}=J_;function nS(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function rS(e){return e.contains(e.ownerDocument.activeElement)}function oS({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:r,onIndexChange:o,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){const[a]=(0,b.useState)(t),[l]=(0,b.useState)(r),{getLastFocus:c,getSelectedBlockClientId:u}=ue((0,R.A)(fl)),{refsMap:d}=(0,b.useContext)(qu),f=(0,b.useCallback)(()=>{!function(e){const[t]=Ov.XC.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)},[e]);eS("core/block-editor/focus-toolbar",()=>{i&&f()}),(0,b.useEffect)(()=>{a&&f()},[n,a,f]),(0,b.useEffect)(()=>{const t=e.current;let n=0;return a||rS(t)||(n=window.requestAnimationFrame(()=>{const e=nS(t),n=l||0;e[n]&&rS(t)&&e[n].focus({preventScroll:!0})}
56)),()=>{if(window.cancelAnimationFrame(n),!o||!t)return;const e=nS(t).findIndex(e=>0===e.tabIndex);o(e)}},[l,a,o,e]),(0,b.useEffect)(()=>{if(!s)return;const t=e.current,n=e=>{if(e.keyCode!==Lg._f)return;const t=c()?.current??d.get(u());t&&(e.preventDefault(),t.focus())};return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},[s,c,u,d,e])}function iS({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:o,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){const l=(0,b.useRef)(),c=function(e){const[t,n]=(0,b.useState)(!0),r=(0,b.useCallback)(()=>{const t=Ov.XC.tabbable.find(e.current);if(0===t.length)return;const r=!t.some(e=>!("toolbarItem"in e.dataset));r||(0,$.A)("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"}),n(r)},[e]);return(0,b.useLayoutEffect)(()=>{const t=new window.MutationObserver(r);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[r,t,e]),t}(l);return oS({toolbarRef:l,focusOnMount:t,defaultIndex:o,onIndexChange:i,isAccessibleToolbar:c,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:n}),c?(0,Be.jsx)(O_.A,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,Be.jsx)(R_.Ay,{orientation:s,role:"toolbar",ref:l,...a,children:e})}function sS({popoverAnchor:e}){return(0,Be.jsx)(Sm.Ay,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,Be.jsx)(iS,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,V.__)("Format tools"),children:(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(L_,{})})})})}var aS=({inline:e,editableContentElement:t})=>e?(0,Be.jsx)(sS,{popoverAnchor:t}):(0,Be.jsx)(dc,{group:"inline",children:(0,Be.jsx)(L_,{})});var{subscribeOwnedListener:lS}=ue(Oe.jb),cS=["`",'"',"'","ââ","ââ"];var{subscribeOwnedListener:uS}=ue(Oe.jb);function dS(e){let t=e.length;for(;t--;){const n=Ks(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].toString().replace(Us,""),[e[t].clientId,n,0,0];const r=dS(e[t].innerBlocks);if(r)return r}return[]}var{subscribeOwnedListener:fS}=ue(Oe.jb),{subscribeOwnedListener:pS}=ue(Oe.jb),{subscribeOwnedListener:mS}=ue(Oe.jb),{subscribeOwnedListener:gS}=ue(Oe.jb);function hS(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}
56function bS({allowedFormats:e,disableFormats:t}){return t?bS.EMPTY_ARRAY:e}function yS({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch{return}n=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const r=(e=e.substring(n+20)).indexOf("\x3c!--EndFragment--\x3e");return r>-1&&(e=e.substring(0,r)),e}(n),n=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(22):e}(n);const r=Yk(e);return r.length&&!function(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}(r,n)?{files:r}:{html:n,plainText:t,files:[]}}bS.EMPTY_ARRAY=[];var{subscribeDelegatedListener:vS}=ue(Uv.j),{ownsSelection:kS}=ue(Oe.jb),{subscribeOwnedListener:xS}=ue(Oe.jb),{subscribeOwnedListener:wS,ownsSelection:_S}=ue(Oe.jb),{subscribeDelegatedListener:SS}=ue(Uv.j),CS=[e=>t=>lS(t,"beforeinput",function(n){const{inputType:r,data:o}=n,{value:i,onChange:s,registry:a}=e.current;if("insertText"!==r)return;if((0,Oe.kW)(i))return;const l=(0,_.W5)("blockEditor.wrapSelectionSettings",cS).find(([e,t])=>e===o||t===o);if(!l)return;const[c,u=c]=l,d=i.start,f=i.end+c.length;let p=(0,Oe.Yr)(i,c,d,d);p=(0,Oe.Yr)(p,u,f,f);const{__unstableMarkLastChangeAsPersistent:m,__unstableMarkAutomaticChange:g}=a.dispatch(fl);m(),s(p),g();const h={};for(const e in n)h[e]=n[e];h.data=u;const{ownerDocument:b}=t,{defaultView:y}=b,v=new y.InputEvent("input",h);window.queueMicrotask(()=>{t.dispatchEvent(v)}),n.preventDefault()},!0),e=>t=>{function n(){const{getValue:t,onReplace:n,selectionChange:r,registry:o}=e.current;if(!n)return;const i=t(),{start:s,text:a}=i;if(" "!==a.slice(s-1,s))return;const l=a.slice(0,s).trim(),c=(0,h.XD)("from").filter(({type:e})=>"prefix"===e),u=(0,h.wG)(c,({prefix:e})=>l===e);if(!u)return;const d=(0,Oe.Ky)({value:(0,Oe.Yr)(i,Us,0,s)}),f=u.transform(d);return o.batch(()=>{r(...dS([f])),n([f])}),o.dispatch(fl).__unstableMarkAutomaticChange(),!0}function r(t){const{inputType:r,type:o}=t,{getValue:i,onChange:s,__unstableAllowPrefixTransformations:a,formatTypes:l,registry:c,onReplace:u}=e.current;if("insertText"!==r&&"compositionend"!==o)return;if(a&&n())return;const d=i();if(u){const e=(0,h.XD)("from").filter(e=>"input"===e.type),t=(0,h.wG)(e,e=>e.regExp.test(d.text));if(t)return u(t.transform()),void c.dispatch(fl).__unstableMarkAutomaticChange()}const f=l.reduce((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e),function(e){const t="tales of gutenberg",{start:n,text:r}=e;return n<18||r.slice(n-18,n).toLowerCase()!==t?e:(0,Oe.Yr)(e," ð¡ð¢ð¦ð¤ð¦ðð§ð¹ð¦ð¦ð¦ð¼ð¿ðð´ððð¦ð¦ð±ðÏððð§ð¥¨ððð ð¥¦ð¥ð¥ðð¥¥ð¥ðµð¥ðð¯ð¾ð²ðºðð®âï¸")}(d)),{__unstableMarkLastChangeAsPersistent:p,__unstableMarkAutomaticChange:m}=c.dispatch(fl);f!==d&&(p(),s({...f,activeFormats:d.activeFormats}),m())}const o=uS(t,"input",r,!0),i=uS(t,"compositionend",r,!0);return()=>{o(),i()}},e=>t=>fS(t,"beforeinput",function(t){if("insertReplacementText"!==t.inputType)return;const{registry:n}=e.current;n.dispatch(fl).__unstableMarkLastChangeAsPersistent()}),()=>e=>pS(e,"keydown",function(e){(Lg.kx.primary(e,"z")||Lg.kx.primary(e,"y")||Lg.kx.primaryShift(e,"z"))&&e.preventDefault()},!0),e=>t=>{const{keyboardShortcuts:n}=e.current;return mS(t,"keydown",function(e){for(const t of n.current)t(e)},!0)},e=>t=>{const{inputEvents:n}=e.current;return gS(t,"input",function(e){for(const t of n.current)t(e)}
56)},e=>t=>{const{defaultView:n}=t.ownerDocument;return vS(n,"paste",function(n){const{disableFormats:r,onChange:o,value:i,formatTypes:s,tagName:a,onReplace:l,__unstableEmbedURLOnPaste:c,preserveWhiteSpace:u,pastePlainText:d,registry:f}=e.current;if(!t.contains(n.target)&&!kS(t))return;if(n.defaultPrevented)return;const p=yS(n);if(!p)return;n.preventDefault();const{plainText:m,html:g,files:b}=p;if(b.length)return;if(window.console.log("Received HTML (RichText):\n\n",g),window.console.log("Received plain text (RichText):\n\n",m),r)return void o((0,Oe.Yr)(i,m));function y(e){const t=s.reduce((e,{__unstablePasteRule:t})=>(t&&e===i&&(e=t(i,{html:g,plainText:m})),e),i);if(t!==i)o(t);else{const t=(0,Oe.vt)({html:e});!function(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}(t,i.activeFormats),o((0,Oe.Yr)(i,t))}}if("true"===n.clipboardData.getData("rich-text"))return void y(g);if(d)return void o((0,Oe.Yr)(i,(0,Oe.vt)({text:m})));let v="INLINE";const k=m.trim();c&&(0,Oe.Im)(i)&&(0,Ex.m)(k)&&/^https?:/.test(k)&&(v="BLOCKS");const x=(0,h.Gk)({HTML:g,plainText:m,mode:v,tagName:a,preserveWhiteSpace:u});"string"!=typeof x?x.length&&l&&(0,Oe.Im)(i)&&("BLOCKS"===v&&(y(g),f.dispatch(fl).__unstableMarkLastChangeAsPersistent()),l(x,x.length-1,-1)):y(x)})},e=>t=>xS(t,"keydown",function(t){const{keyCode:n}=t;if(t.defaultPrevented)return;const{value:r,onMerge:o,onRemove:i}=e.current;if(n===Lg.SJ||n===Lg.G_){const{start:e,end:s,text:a}=r,l=n===Lg.G_,c=r.activeFormats&&!!r.activeFormats.length;if(!(0,Oe.kW)(r)||c||l&&0!==e||!l&&s!==a.length)return;o?o(!l):i&&(0,Oe.Im)(r)&&l&&i(!l),t.preventDefault()}}),e=>t=>{const{defaultView:n}=t.ownerDocument,r=SS(n,"beforeinput",function(e){e.defaultPrevented||"insertParagraph"!==e.inputType&&"insertLineBreak"!==e.inputType||(e.target===t||_S(t))&&e.preventDefault()}),o=wS(t,"keydown",function(t){if(t.keyCode!==Lg.Fm)return;const{onReplace:n,onSplit:r,supportsSplitting:o,disableLineBreaks:i,onChange:s,getValue:a,onSplitAtDoubleLineEnd:l,registry:c,onSplitAtEnd:u}=e.current,d=a(),{text:f,start:p,end:m}=d;t.shiftKey?i||(t.preventDefault(),s((0,Oe.Yr)(d,"\n"))):u&&p===m&&m===f.length?(t.preventDefault(),u()):o||n&&r||i||t.defaultPrevented||(t.preventDefault(),l&&p===m&&m===f.length&&"\n\n"===f.slice(-2)?c.batch(()=>{const e={...d};e.start=e.end-2,s((0,Oe.TF)(e)),l()}):s((0,Oe.Yr)(d,"\n")))},!0),i=wS(t,"beforeinput",function(t){if("insertParagraph"!==t.inputType)return;const{onReplace:n,onSplit:r}=e.current;n&&r&&(t.__deprecatedOnSplit=!0)},!0);return()=>{r(),o(),i()}},e=>t=>{function n(){const{registry:n}=e.current;if(!n.select(fl).isMultiSelecting())return;const r=t.parentElement.closest('[contenteditable="true"]');r&&r.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}];function AS(e){const t=(0,b.useRef)(e);(0,b.useInsertionEffect)(()=>{t.current=e});const n=(0,b.useMemo)(()=>CS.map(e=>e(t)),[t]);return(0,Ku.A)(t=>{if(!e.isSelected)return;const r=n.map(e=>e(t));return()=>{r.forEach(e=>e())}},[n,e.isSelected])}var ES={},IS=Symbol("usesContext");
56function TS({onChange:e,onFocus:t,value:n,forwardedRef:r,settings:o,isVisible:i}){const{name:s,edit:a,[IS]:l}=o,c=(0,b.useContext)(Ud),u=(0,b.useMemo)(()=>l?Object.fromEntries(Object.entries(c).filter(([e])=>l.includes(e))):ES,[l,c]);if(!a)return null;const d=(0,Oe.SX)(n,s),f=void 0!==d,p=(0,Oe.o_)(n),m=void 0!==p&&p.type===s;return(0,Be.jsx)(a,{isActive:f,isVisible:i,activeAttributes:f&&d.attributes||{},isObjectActive:m,activeObjectAttributes:m&&p.attributes||{},value:n,onChange:e,onFocus:t,contentRef:r,context:u},s)}function NS({formatTypes:e,...t}){return e.map(e=>(0,b.createElement)(TS,{settings:e,...t,key:e.name}))}function jS(e,t){if(KS.isEmpty(e)){const e=hS(t);return e?`<${e}></${e}>`:""}return Array.isArray(e)?((0,$.A)("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/"}),h.Y_.toHTML(e)):"string"==typeof e?e:e.toHTMLString()}function BS({value:e,tagName:t,multiline:n,format:r,...o}){return e=(0,Be.jsx)(om.A,{children:jS(e,n)}),t?(0,Be.jsx)(t,{...o,children:e}):e}var{subscribeOwnedListener:LS}=ue(Oe.jb);function OS(e){const{value:t,values:n,onChange:r,index:o,identifier:i,multilineTagName:s,...a}=e,{clientId:l}=O(),{selectionChange:c}=(0,y.A)(fl),u=(0,b.useRef)();(0,b.useInsertionEffect)(()=>{u.current={...e,clientId:l}});const d=function(e){const{getSelectionStart:t,getSelectionEnd:n}=(0,R.A)(fl),{selectionChange:r}=(0,y.A)(fl);return(0,Ku.A)(o=>LS(o,"keydown",function(o){if(o.keyCode!==Lg.Fm)return;o.preventDefault();const{value:i,values:s,onChange:a,index:l,identifier:c,clientId:u}=e.current,{offset:d}=t(),{offset:f}=n();if("number"!=typeof d||"number"!=typeof f)return;const p=(0,Oe.vt)({html:i});p.start=d,p.end=f;const m=(0,Oe.lD)(p).map(e=>(0,Oe.Ky)({value:e})),g=s.slice();g.splice(l,1,...m),a(g),r(u,`${c}-${l+1}`,0,0)},!0),[])}(u);return(0,Be.jsx)(HS,{identifier:`${i}-${o}`,tagName:s,value:t,onChange:e=>{const t=n.slice();t[o]=e,r(t)},isSelected:void 0,ref:d,onMerge:e=>{const t=n.slice();let s=0;if(e){if(!t[o+1])return;t.splice(o,2,t[o]+t[o+1]),s=t[o].length-1}else{if(!t[o-1])return;t.splice(o-1,2,t[o-1]+t[o]),s=t[o-1].length-1}r(t),c(l,`${i}-${o-(e?0:1)}`,s,s)},...a},o)}var RS=(0,b.forwardRef)(function({children:e,identifier:t,tagName:n="div",value:r="",onChange:o,multiline:i,...s},a){(0,$.A)("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/"});const l=hS(i),c=`</${l}>${r=r||`<${l}></${l}>`}<${l}>`.split(`</${l}><${l}>`);function u(e){o(`<${l}>${e.join(`</${l}><${l}>`)}</${l}>`)}return c.shift(),c.pop(),(0,Be.jsx)(n,{ref:a,children:c.map((e,n)=>(0,Be.jsx)(OS,{values:c,value:e,onChange:u,index:n,identifier:t,multilineTagName:l,...s},n))})});var{useRichText:MS,KeyboardShortcutContext:PS,InputEventContext:DS,RichTextShortcut:zS,RichTextInputEvent:FS}=ue(Oe.jb),$S=Symbol("instanceId");var VS,HS=(0,b.forwardRef)(function e({children:t,tagName:n="div",value:r="",onChange:o,isSelected:i,multiline:s,inlineToolbar:a,wrapperClassName:l,autocompleters:c,onReplace:u,placeholder:d,allowedFormats:f,withoutInteractiveFormatting:p,onRemove:m,onMerge:k,onSplit:x,__unstableOnSplitAtEnd:w,__unstableOnSplitAtDoubleLineEnd:_,identifier:S,preserveWhiteSpace:C,__unstablePastePlainText:A,__unstableEmbedURLOnPaste:T,__unstableDisableFormats:N,disableLineBreaks:j,__unstableAllowPrefixTransformations:B,readOnly:L,...M},P){x&&(0,$.A)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});const{supportsSplitting:z}=(0,b.useContext)(Ly),F=(0,Ul.A)(e),H=(0,b.useRef)(),[W,U]=(0,b.useState)(null),K=O(),{clientId:G,isSelected:q,name:Z}=K,Y=K[I],X="default"===K[E],Q=(0,b.useContext)(Ud),J=(0,v.A)(),{selectionStart:ee,selectionEnd:te,isSelected:ne}=(0,R.A)(e=>{if(!q)return{isSelected:!1};const{getSelectionStart:t,getSelectionEnd:n}=e(fl),r=t(),o=n();let s;return void 0===i?s=r.clientId===G&&o.clientId===G&&(S?r.attributeKey===S:r[$S]===F):i&&(s=r.clientId===G),{selectionStart:s?r.offset:void 0,selectionEnd:s?o.offset:void 0,isSelected:s}},[G,S,F,i,q]),{disableBoundBlock:re,bindingsPlaceholder:oe,bindingsLabel:ie}=(0,R.A)(e=>{if(!Y?.[S])return{};const{__experimentalBlockBindingsSupportedAttributes:t}=e(fl).getSettings(),n=t?.[Z];if(!n)return{};const o=Y[S],i=(0,h.Xm)(o.source),s={};if(i?.usesContext?.length)for(const e of i.usesContext)s[e]=Q[e];const a=!i?.canUserEditValue?.({select:e,context:s,args:o.args});if(r.length>0)return{disableBoundBlock:a,bindingsPlaceholder:null,bindingsLabel:null};const{getBlockAttributes:l}=e(fl),c=l(G);let u=null;if(i?.getFieldsList){const t=i.getFieldsList({select:e,context:s});u=t?.find(e=>D(e.args,o?.args))?.label}const d=u??i?.label,f=a?d:(0,V.nv)( 57/* translators: %s: connected field label or source label */ 58/* translators: %s: connected field label or source label */ 59(0,V.__)("Add %s"),d),p=a?o?.args?.key||i?.label:(0,V.nv)( 60/* translators: %s: source label or key */ 61/* translators: %s: source label or key */ 62(0,V.__)("Empty %s; start writing to edit its value"),o?.args?.key||i?.label);return{disableBoundBlock:a,bindingsPlaceholder:c?.placeholder||f,bindingsLabel:p}},[Y,S,Z,r,G,Q]),se=L||re||!!Q?.["pattern/overrides"]&&!("core/pattern-overrides"===Y?.__default?.source),ae=(0,R.A)(e=>{if(se||!X||!q)return!1;const{getSelectedBlockClientId:t,canHostEditableRoot:n}=ue(e(fl));return n(t())}
62,[se,X,q]),{getSelectionStart:le,getSelectionEnd:ce,getBlockRootClientId:de}=(0,R.A)(fl),{selectionChange:fe}=(0,y.A)(fl),pe=bS({allowedFormats:f,disableFormats:N}),me=!pe||pe.length>0,ge=(0,b.useCallback)((e,t)=>{const n={},r=void 0===e&&void 0===t,o={clientId:G,[S?"attributeKey":$S]:S||F};if("number"==typeof e||r){if(void 0===t&&de(G)!==de(ce().clientId))return;n.start={...o,offset:e}}if("number"==typeof t||r){if(void 0===e&&de(G)!==de(le().clientId))return;n.end={...o,offset:t}}fe(n)},[G,de,ce,le,S,F,fe]),{value:he,getValue:be,onChange:ye,ref:ve,formatTypes:ke}=MS({value:r,onChange:o,selectionStart:ee,selectionEnd:te,onSelectionChange:ge,placeholder:oe||d,__unstableIsSelected:ne,__unstableDisableFormats:N,preserveWhiteSpace:C,__unstableDependencies:[n],allowedFormats:pe,withoutInteractiveFormatting:p,__unstableFormatTypeHandlerContext:(0,b.useMemo)(()=>({richTextIdentifier:S,blockClientId:G}),[S,G])}),xe=function(e){return a_({...e,completers:j_(e)})}({onReplace:u,completers:c,record:he,onChange:ye}),{"aria-autocomplete":we,"aria-haspopup":_e,"aria-controls":Se,"aria-owns":Ce,"aria-activedescendant":Ae}=xe;(0,b.useEffect)(()=>{if(!ne)return;const e=H.current?.parentElement?.closest('[contenteditable="true"]');if(!e)return;const t={"aria-autocomplete":we,"aria-haspopup":_e,"aria-controls":Se,"aria-owns":Ce,"aria-activedescendant":Ae};for(const[n,r]of Object.entries(t))void 0===r?e.removeAttribute(n):e.setAttribute(n,r);return()=>{for(const n of Object.keys(t))e.removeAttribute(n)}},[ne,we,_e,Se,Ce,Ae]),function({html:e,value:t}){const n=(0,b.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:o}=(0,y.A)(fl);(0,b.useLayoutEffect)(()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout(()=>{o()},1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}o()}else n.current=t.text},[e,r])}({html:r,value:he});const Ee=(0,b.useRef)(new Set),Ie=(0,b.useRef)(new Set);function Te(){H.current?.focus()}let Ne=M.tabIndex;ae?Ne=M.tabIndex??0:se||0!==M.tabIndex||(Ne=null);const je=n;return(0,Be.jsxs)(Be.Fragment,{children:[ne&&(0,Be.jsx)(PS.Provider,{value:Ee,children:(0,Be.jsx)(DS.Provider,{value:Ie,children:(0,Be.jsxs)(Sm.Ay.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[t&&t({value:he,onChange:ye,onFocus:Te}),(0,Be.jsx)(NS,{value:he,onChange:ye,onFocus:Te,formatTypes:ke,forwardedRef:H})]})})}),ne&&me&&(0,Be.jsx)(aS,{inline:a,editableContentElement:W}),(0,Be.jsx)(je,{role:"textbox","aria-multiline":!j,"aria-readonly":se,...M,draggable:void 0,"aria-label":ie||M["aria-label"]||d,...xe,ref:(0,$l.A)([ve,P,xe.ref,M.ref,AS({registry:J,getValue:be,onChange:ye,__unstableAllowPrefixTransformations:B,formatTypes:ke,onReplace:u,selectionChange:fe,isSelected:ne,disableFormats:N,value:he,tagName:n,onSplit:x,__unstableEmbedURLOnPaste:T,pastePlainText:A,onMerge:k,onRemove:m,disableLineBreaks:j,onSplitAtEnd:w,onSplitAtDoubleLineEnd:_,keyboardShortcuts:Ee,inputEvents:Ie,supportsSplitting:z}),H,U]),contentEditable:!se,suppressContentEditableWarning:!0,className:(0,g.A)("block-editor-rich-text__editable",M.className,"rich-text"),tabIndex:Ne,"data-wp-block-attribute-key":S})]})}),WS=(VS=HS,(0,b.forwardRef)((e,t)=>{let n=e.value,r=e.onChange;Array.isArray(n)&&((0,$.A)("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/"}),n=h.Y_.toHTML(e.value),r=t=>e.onChange(h.Y_.fromDOM((0,Oe.Ng)(document,t).childNodes)));const o=e.multiline?RS:VS;return(0,Be.jsx)(o,{...e,value:n,onChange:r,ref:t})}));WS.Content=BS,WS.isEmpty=e=>!e||0===e.length;var US=(0,b.forwardRef)((e,t)=>{if(O()[T]){const{children:n,tagName:r="div",value:o,onChange:i,isSelected:s,multiline:a,inlineToolbar:l,wrapperClassName:c,autocompleters:u,onReplace:d,placeholder:f,allowedFormats:p,withoutInteractiveFormatting:m,onRemove:g,onMerge:h,onSplit:b,__unstableOnSplitAtEnd:y,__unstableOnSplitAtDoubleLineEnd:v,identifier:k,preserveWhiteSpace:x,__unstablePastePlainText:w,__unstableEmbedURLOnPaste:_,__unstableDisableFormats:S,disableLineBreaks:C,__unstableAllowPrefixTransformations:A,readOnly:E,...I}=e;return(0,Be.jsx)(r,{ref:t,...I,dangerouslySetInnerHTML:{__html:jS(o,a)||"<br>"}})}return(0,Be.jsx)(WS,{ref:t,...e,readOnly:!1})});US.Content=BS,US.isEmpty=e=>!e||0===e.length;var KS=US,GS=n(1203);function qS({name:e,shortcutType:t,shortcutCharacter:n,...r}){let o,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&n&&(o=Lg.dz[t](n)),(0,Be.jsx)(GS.A,{name:i,children:(0,Be.jsx)(Bg.A,{...r,shortcut:o})})}var ZS={placement:"top-start"},YS={...ZS,flip:!1,shift:!0},XS={...ZS,flip:!0,shift:!1};function QS(e,t,n,r,o){if(!e||!t)return YS;const i=n?.scrollTop||0,s=$m(t),a=i+e.getBoundingClientRect().top,l=e.ownerDocument.documentElement.clientHeight,c=a+r,u=s.top>c,d=s.height>l-r;return o||!u&&!d?XS:YS}var JS=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
62currentColor",children:(0,Be.jsx)(je.wA,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})}),eC="data-wp-hash";function tC(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=tC();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)nC(e,n,r)}(document)),e.__wpStyleRuntime}function nC(e,t,n){if(!e.head)return;const r=tC();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${eC}]`))if(n.getAttribute(eC)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(eC,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=tC();n.styles.set(e,t);for(const r of n.documents.keys())nC(r,e,t)})("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 rC="_11fc52b637ff8a7e__slot",oC="data-wp-compat-overlay-slot";var iC=null;function sC(e){return e.setAttribute("aria-hidden","false"),e}function aC(){if("undefined"==typeof window)return;if(!function(){let e;try{e=window.top?.wp}catch{}const t=e??window.wp;return"object"==typeof t?.components&&null!==t.components}()&&!0!==window.__wpUiCompatOverlaySlotEnabled)return;const e="undefined"==typeof document?null:document;if(!e||!e.body)return;if(iC&&iC.ownerDocument===e&&iC.isConnected)return sC(iC);const t=e.querySelector(`[${oC}]`);return t instanceof HTMLDivElement?iC=sC(t):(iC?.isConnected&&iC.remove(),iC=sC(function(e){const t=e.createElement("div");return t.setAttribute(oC,""),rC&&t.classList.add(rC),e.body.appendChild(t),t}(e)),iC)}var lC="data-wp-hash";function cC(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=cC();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)uC(e,n,r)}(document)),e.__wpStyleRuntime}function uC(e,t,n){if(!e.head)return;const r=cC();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${lC}]`))if(n.getAttribute(lC)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(lC,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=cC();n.styles.set(e,t);for(const r of n.documents.keys())uC(r,e,t)})("e7e88c1781","._3476c2e530687f96__invisible-drag-image{height:50px;left:-1000px;position:fixed;width:50px}._6f00e51ab7574306__clone{background:transparent;padding:0;pointer-events:none;position:fixed}._6f00e51ab7574306__clone:not(._664ecd37377558df__is-in-compat-slot){z-index:1000000000}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}");var dC={"invisible-drag-image":"_3476c2e530687f96__invisible-drag-image",clone:"_6f00e51ab7574306__clone","is-in-compat-slot":"_664ecd37377558df__is-in-compat-slot"},fC=[dC["invisible-drag-image"],"components-draggable__invisible-drag-image"].filter(Boolean),pC=[dC.clone,"components-draggable__clone"].filter(Boolean),mC="is-dragging-components-draggable";var gC=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:a,__experimentalTransferDataType:l="text",__experimentalDragComponent:c}){const u=(0,b.useRef)(null),d=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>()=>{d.current()},[]),(0,Be.jsxs)(Be.Fragment,{children:[e({onDraggableStart:function(e){const{ownerDocument:r}=e.target,c=aC(),f=c?.ownerDocument===r?c:null;e.dataTransfer.setData(l,JSON.stringify(a));const p=r.createElement("div");p.style.top="0",p.style.left="0";const m=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(m.classList.add(...fC),r.body.appendChild(m),e.dataTransfer.setDragImage(m,0,0)),p.classList.add(...pC);const g=dC["is-in-compat-slot"];f&&g&&p.classList.add(g),i&&p.classList.add(i);let h=0,b=0;if(u.current){h=e.clientX,b=e.clientY,p.style.transform=`translate( ${h}px, ${b}px )`;const t=r.createElement("div");t.innerHTML=u.current.innerHTML,p.appendChild(t),(f??r.body).appendChild(p)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,a=t.left;p.style.width=`${t.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${s}`,h=a-0,b=i-0,p.style.transform=`translate( ${h}px, ${b}
62px )`,Array.from(l.querySelectorAll("iframe")).forEach(e=>e.parentNode?.removeChild(e)),p.appendChild(l),f?f.appendChild(p):o?r.body.appendChild(p):n?.appendChild(p)}let y=e.clientX,v=e.clientY;const k=qk(function(e){if(y===e.clientX&&v===e.clientY)return;const t=h+e.clientX-y,r=b+e.clientY-v;p.style.transform=`translate( ${t}px, ${r}px )`,y=e.clientX,v=e.clientY,h=t,b=r,n&&n(e)},16);r.addEventListener("dragover",k),r.body.classList.add(mC),t&&t(e),d.current=()=>{p&&p.parentNode&&p.parentNode.removeChild(p),m&&m.parentNode&&m.parentNode.removeChild(m),r.body.classList.remove(mC),r.removeEventListener("dragover",k)}},onDraggableEnd:function(e){e.preventDefault(),d.current(),r&&r(e)}}),c&&(0,Be.jsx)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:u,children:c})]})};function hC({count:e,icon:t,isPattern:n,fadeWhenDisabled:r}){const o=n&&(0,V.__)("Pattern");return(0,Be.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,Be.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,Be.jsxs)(mf.A,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,Be.jsx)(gf.A,{children:t?(0,Be.jsx)(Wf,{icon:t}):o||(0,V.nv)( 63/* translators: %d: Number of blocks. */ 64/* translators: %d: Number of blocks. */ 65(0,V._n)("%d block","%d blocks",e),e)}),(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(Wf,{icon:JS})}),r&&(0,Be.jsx)(gf.A,{className:"block-editor-block-draggable-chip__disabled",children:(0,Be.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var bC=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:r,elementId:o,onDragStart:i,onDragEnd:s,fadeWhenDisabled:a=!1,dragComponent:l})=>{const{srcRootClientId:c,isDraggable:u,icon:d,visibleInserter:f,getBlockType:p}=(0,R.A)(e=>{const{canMoveBlocks:t,getBlockRootClientId:r,getBlockName:o,getBlockAttributes:i,isBlockInsertionPointVisible:s}=e(fl),{getBlockType:a,getActiveBlockVariation:l}=e(h.M_),c=r(n[0]),u=o(n[0]),d=l(u,i(n[0]));return{srcRootClientId:c,isDraggable:t(n),icon:d?.icon||a(u)?.icon,visibleInserter:s(),getBlockType:a}},[n]),m=(0,b.useRef)(!1),[g,v,k]=function(){const e=(0,b.useRef)(null),t=(0,b.useRef)(null),n=(0,b.useRef)(null),r=(0,b.useRef)(null);return(0,b.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]),[(0,b.useCallback)(o=>{e.current=o.clientY,n.current=Em(o.target),r.current=setInterval(()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}},25)},[]),(0,b.useCallback)(r=>{if(!n.current)return;const o=n.current.offsetHeight,i=e.current-n.current.offsetTop,s=r.clientY-n.current.offsetTop;if(r.clientY>i){const e=Math.max(o-i-50,0),n=Math.max(s-i-50,0),r=0===e||0===n?0:n/e;t.current=25*r}else if(r.clientY<i){const e=Math.max(i-50,0),n=Math.max(i-s-50,0),r=0===e||0===n?0:n/e;t.current=-25*r}else t.current=0},[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{getAllowedBlocks:x,getBlockNamesByClientId:w,getBlockRootClientId:_}=(0,R.A)(fl),{startDraggingBlocks:S,stopDraggingBlocks:C}=(0,y.A)(fl);(0,b.useEffect)(()=>()=>{m.current&&C()},[]);const A=Ju(n[0]),E=A?.closest("body");if((0,b.useEffect)(()=>{if(!E||!a)return;const e=qk(e=>{if(!e.target.closest("[data-block]"))return;const t=w(n),r=e.target.closest("[data-block]").getAttribute("data-block"),o=x(r),i=w([r])[0];let s;if(0===o?.length){const e=_(r),n=w([e])[0],o=x(e);s=ex(p,o,t,n)}else s=ex(p,o,t,i);s||f?window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.add("block-draggable-invalid-drag-token")},200);return E.addEventListener("dragover",e),()=>{E.removeEventListener("dragover",e)}},[n,E,a,x,w,_,p,f]),!u)return t({draggable:!1});const I={type:"block",srcClientIds:n,srcRootClientId:c};return(0,Be.jsx)(gC,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:I,onDragStart:e=>{window.requestAnimationFrame(()=>{S(n),m.current=!0,g(e),i&&i()})},onDragOver:v,onDragEnd:()=>{C(),m.current=!1,k(),s&&s()},__experimentalDragComponent:void 0!==l?l:(0,Be.jsx)(hC,{count:n.length,icon:d,fadeWhenDisabled:!0}),elementId:o,children:({onDraggableStart:e,onDraggableEnd:n}
65)=>t({draggable:!0,onDragStart:e,onDragEnd:n})})},yC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})}),vC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M14 6.5L9 12L14 17.5",vectorEffect:"non-scaling-stroke"})}),kC=(e,t)=>"up"===e?"horizontal"===t?(0,V.V8)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,V.V8)()?"left":"right":"down":null;function xC(e,t,n,r,o,i,s){const a=n+1;if(e>1)return function(e,t,n,r,o,i){const s=t+1;if(n&&r)return(0,V.__)("All blocks are selected, and cannot be moved");if(o>0&&!r){const t=kC("down",i);if("down"===t)return(0,V.nv)( 66// translators: 1: Number of selected blocks, 2: Position of selected blocks 67// translators: 1: Number of selected blocks, 2: Position of selected blocks 68(0,V.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if("left"===t)return(0,V.nv)( 69// translators: 1: Number of selected blocks, 2: Position of selected blocks 70// translators: 1: Number of selected blocks, 2: Position of selected blocks 71(0,V.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if("right"===t)return(0,V.nv)( 72// translators: 1: Number of selected blocks, 2: Position of selected blocks 73// translators: 1: Number of selected blocks, 2: Position of selected blocks 74(0,V.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(o>0&&r){const e=kC("down",i);if("down"===e)return(0,V.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,V.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,V.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(o<0&&!n){const t=kC("up",i);if("up"===t)return(0,V.nv)( 75// translators: 1: Number of selected blocks, 2: Position of selected blocks 76// translators: 1: Number of selected blocks, 2: Position of selected blocks 77(0,V.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if("left"===t)return(0,V.nv)( 78// translators: 1: Number of selected blocks, 2: Position of selected blocks 79// translators: 1: Number of selected blocks, 2: Position of selected blocks 80(0,V.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if("right"===t)return(0,V.nv)( 81// translators: 1: Number of selected blocks, 2: Position of selected blocks 82// translators: 1: Number of selected blocks, 2: Position of selected blocks 83(0,V.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(o<0&&n){const e=kC("up",i);if("up"===e)return(0,V.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,V.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,V.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,r,o,i,s);if(r&&o)return(0,V.nv)( 84// translators: %s: Type of block (i.e. Text, Image etc) 85// translators: %s: Type of block (i.e. Text, Image etc) 86(0,V.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!o){const e=kC("down",s);if("down"===e)return(0,V.nv)( 87// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 88// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 89(0,V.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===e)return(0,V.nv)( 90// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 91// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 92(0,V.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===e)return(0,V.nv)( 93// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 94// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 95(0,V.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&o){const e=kC("down",s);if("down"===e)return(0,V.nv)( 96// translators: 1: Type of block (i.e. Text, Image etc) 97// translators: 1: Type of block (i.e. Text, Image etc) 98(0,V.__)("Block %1$s is at the end of the content and canât be moved down"),t);if("left"===e)return(0,V.nv)( 99// translators: 1: Type of block (i.e. Text, Image etc) 100// translators: 1: Type of block (i.e. Text, Image etc) 101(0,V.__)("Block %1$s is at the end of the content and canât be moved left"),t);if("right"===e)return(0,V.nv)( 102// translators: 1: Type of block (i.e. Text, Image etc) 103// translators: 1: Type of block (i.e. Text, Image etc) 104(0,V.__)("Block %1$s is at the end of the content and canât be moved right"),t)}if(i<0&&!r){const e=kC("up",s);if("up"===e)return(0,V.nv)( 105// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 106// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 107(0,V.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===e)return(0,V.nv)( 108// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 109// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 110(0,V.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===e)return(0,V.nv)( 111// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 112// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position 113(0,V.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){const e=kC("up",s);if("up"===e)return(0,V.nv)( 114// translators: 1: Type of block (i.e. Text, Image etc) 115// translators: 1: Type of block (i.e. Text, Image etc) 116(0,V.__)("Block %1$s is at the beginning of the content and canât be moved up"),t);if("left"===e)return(0,V.nv)( 117// translators: 1: Type of block (i.e. Text, Image etc) 118// translators: 1: Type of block (i.e. Text, Image etc) 119(0,V.__)("Block %1$s is at the beginning of the content and canât be moved left"),t);if("right"===e)return(0,V.nv)( 120// translators: 1: Type of block (i.e. Text, Image etc) 121// translators: 1: Type of block (i.e. Text, Image etc) 122(0,V.__)("Block %1$s is at the beginning of the content and canât be moved right"),t)}}var wC=(e,t)=>"up"===e?"horizontal"===t?(0,V.V8)()?yC:vC:Kb:"down"===e?"horizontal"===t?(0,V.V8)()?vC:yC:Gb.A:null,_C=(e,t)=>"up"===e?"horizontal"===t?(0,V.V8)()?(0,V.__)("Move right"):(0,V.__)("Move left"):(0,V.__)("Move up"):"down"===e?"horizontal"===t?(0,V.V8)()?(0,V.__)("Move left"):(0,V.__)("Move right"):(0,V.__)("Move down"):null,SC=(0,b.forwardRef)(({clientIds:e,direction:t,orientation:n,...r},o)=>{const i=(0,Ul.A)(SC),s=(0,b.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=s.length,l=(0,Bu.A)("small","<"),{blockType:c,isDisabled:u,rootClientId:d,isFirst:f,isLast:p,firstIndex:m,orientation:v="vertical"}=(0,R.A)(e=>
122{const{getBlockIndex:r,getBlockRootClientId:o,getBlockOrder:i,getBlock:a,getBlockListSettings:l}=e(fl),c=s[0],u=o(c),d=r(c),f=r(s[s.length-1]),p=i(u),m=a(c),g=0===d,b=f===p.length-1,{orientation:y}=l(u)||{};return{blockType:m?(0,h.E7)(m.name):null,isDisabled:"up"===t?g:b,rootClientId:u,firstIndex:d,isFirst:g,isLast:b,orientation:n||y}},[t,n,s]),{moveBlocksDown:k,moveBlocksUp:x}=(0,y.A)(fl),w="up"===t?x:k,_=`block-editor-block-mover-button__description-${i}`,S="up"===t?"t":"y";return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,ref:o,className:(0,g.A)("block-editor-block-mover-button",`is-${t}-button`),icon:wC(t,v),label:_C(t,v),tooltipPosition:l||"down"!==t||"vertical"!==v?"top":"bottom","aria-describedby":_,...r,onClick:u?null:t=>{w(e,d),r.onClick&&r.onClick(t)},disabled:u,accessibleWhenDisabled:!0,shortcut:Lg.dz.secondary(S)}),(0,Be.jsx)(Rw.s,{id:_,children:(0,V.nv)( 123// translators: 1: Description of the block movement. 2: Keyboard shortcut. 124// translators: 1: Description of the block movement. 2: Keyboard shortcut. 125(0,V.__)("%1$s (%2$s)"),xC(a,c&&c.title,m,f,p,"up"===t?-1:1,v),Lg._A.secondary(S))})]})}),CC=(0,b.forwardRef)((e,t)=>(0,Be.jsx)(SC,{direction:"up",ref:t,...e})),AC=(0,b.forwardRef)((e,t)=>(0,Be.jsx)(SC,{direction:"down",ref:t,...e}));var EC=function({clientIds:e,hideDragHandle:t}){const{canMove:n,rootClientId:r,isFirst:o,isLast:i,orientation:s,isManualGrid:a}=(0,R.A)(t=>{const{getBlockIndex:n,getBlockListSettings:r,canMoveBlocks:o,getBlockOrder:i,getBlockRootClientId:s,getBlockAttributes:a}=t(fl),l=Array.isArray(e)?e:[e],c=l[0],u=s(c),d=n(c),f=n(l[l.length-1]),p=i(u),{layout:m={}}=a(u)??{};return{canMove:o(e),rootClientId:u,isFirst:0===d,isLast:f===p.length-1,orientation:r(u)?.orientation,isManualGrid:"grid"===m.type&&m.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!n||o&&i&&!r||t&&a?null:(0,Be.jsxs)(Sl.A,{className:(0,g.A)("block-editor-block-mover",{"is-horizontal":"horizontal"===s}),children:[!t&&(0,Be.jsx)(bC,{clientIds:e,fadeWhenDisabled:!0,children:e=>(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,icon:JS,className:"block-editor-block-mover__drag-handle",label:(0,V.__)("Drag"),tabIndex:"-1",...e})}),!a&&(0,Be.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,Be.jsx)(fc.A,{children:t=>(0,Be.jsx)(CC,{clientIds:e,...t})}),(0,Be.jsx)(fc.A,{children:t=>(0,Be.jsx)(AC,{clientIds:e,...t})})]})]})},{clearTimeout:IC,setTimeout:TC}=window;function NC({ref:e,isFocused:t,highlightParent:n,debounceTimeout:r=200}){const{getSelectedBlockClientId:o,getBlockRootClientId:i}=(0,R.A)(fl),{toggleBlockHighlight:s}=(0,y.A)(fl),a=(0,b.useRef)(),l=(0,R.A)(e=>e(fl).getSettings().isDistractionFree,[]),c=e=>{if(e&&l)return;const t=o(),r=n?i(t):t;s(r,e)},u=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},d=()=>{const e=a.current;e&&IC&&IC(e)};return(0,b.useEffect)(()=>()=>{c(!1),d()},[]),{debouncedShowGestures:e=>{e&&e.stopPropagation(),d(),c(!0)},debouncedHideGestures:e=>{e&&e.stopPropagation(),d(),a.current=TC(()=>{u()&&c(!1)},r)}}}function jC({ref:e,highlightParent:t=!1,debounceTimeout:n=200}){const[r,o]=(0,b.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=NC({ref:e,debounceTimeout:n,isFocused:r,highlightParent:t}),a=(0,b.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,b.useEffect)(()=>{const t=e.current,n=()=>{l()&&(o(!0),i())},r=()=>{l()||(o(!1),s())};return t&&!a.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",r,!0),a.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",r))}},[e,a,o,i,s]),{onMouseMove:i,onMouseLeave:s}}function BC(){const{selectBlock:e}=(0,y.A)(fl),{parentClientId:t,nextSiblingClientId:n,showInserter:r}=(0,R.A)(e=>{const{getBlockParents:t,getSelectedBlockClientIds:n,getParentSectionBlock:r,getBlockName:o,getNextBlockClientId:i}=ue(e(fl)),[s]=n(),a=r(s),l=t(s),c=l[l.length-1],u=a??c,d=(0,h.E7)(o(u)),f=d?.merge||(0,h.pN)(d,"__experimentalOnMerge");return{parentClientId:u,nextSiblingClientId:i(s),showInserter:!!u&&u===c&&!f}},[]),o=Qg(t),i=(0,b.useRef)(),s=jC({ref:i,highlightParent:!0}),a=(0,Be.jsx)(Bg.A,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,V.nv)( 126/* translators: %s: Name of the block's parent. */ 127/* translators: %s: Name of the block's parent. */ 128(0,V.__)("Select parent block: %s"),o?.title),showTooltip:!0,icon:(0,Be.jsx)(Wf,{icon:o?.icon})});return(0,Be.jsxs)("div",{className:"block-editor-block-parent-selector",ref:i,...s,children:[!r&&a,r&&(0,Be.jsxs)(Sl.A,{children:[a,(0,Be.jsx)(Tl,{position:"bottom right",rootClientId:t,clientId:n,isAppender:!n,__experimentalIsQuick:!0,renderToggle:({onToggle:e,isOpen:t,disabled:n,blockTitle:r,hasSingleBlockType:o})=>(0,Be.jsx)(Bg.A,{className:"block-editor-block-parent-selector__inserter",onClick:e,"aria-expanded":t,disabled:n,label:o?(0,
128V.nv)( 129// translators: %s: the name of the block when there is only one 130// translators: %s: the name of the block when there is only one 131(0,V._x)("Add %s","directly add the only allowed block"),r.toLowerCase()):(0,V._x)("Add block","Generic label for block inserter button"),showTooltip:!0,icon:Wy.A})})]})]},t)}var{Fill:LC,Slot:OC}=(0,Al.QJ)("__unstableBlockToolbarLastItem");LC.Slot=OC;var RC=LC,MC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),PC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})});function DC(e){return(0,R.A)(t=>{const{canLockBlockType:n,getBlockName:r,isEditLockedBlock:o,isMoveLockedBlock:i,isRemoveLockedBlock:s,isLockedBlock:a}=ue(t(fl));return{isEditLocked:o(e),isMoveLocked:i(e),isRemoveLocked:s(e),canLock:n(r(e)),isLocked:a(e)}},[e])}var zC=["core/navigation"];function FC(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function $C({clientId:e,onClose:t}){const[n,r]=(0,b.useState)({move:!1,remove:!1}),{isEditLocked:o,isMoveLocked:i,isRemoveLocked:s}=DC(e),{allowsEditLocking:a,templateLock:l,hasTemplateLock:c}=(0,R.A)(t=>{const{getBlockName:n,getBlockAttributes:r}=t(fl),o=n(e),i=(0,h.E7)(o);return{allowsEditLocking:zC.includes(o),templateLock:r(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}},[e]),[u,d]=(0,b.useState)(!!l),{updateBlockAttributes:f}=(0,y.A)(fl),p=Qg(e);(0,b.useEffect)(()=>{r({move:i,remove:s,...a?{edit:o}:{}})},[o,i,s,a]);const m=Object.values(n).every(Boolean),g=Object.values(n).some(Boolean)&&!m,v=n.move!==i||n.remove!==s||a&&n.edit!==o||c&&u!==!!l;return(0,Be.jsx)(Tl,{title:(0,V.nv)( 132/* translators: %s: Name of the block. */ 133/* translators: %s: Name of the block. */ 134(0,V.__)("Lock %s"),p.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,Be.jsxs)("form",{onSubmit:r=>{r.preventDefault(),v&&(f([e],{lock:n,templateLock:u?FC(n):void 0}),t())},children:[(0,Be.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,Be.jsx)("legend",{children:(0,V.__)("Select the features you want to lock")}),(0,Be.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,Be.jsxs)("li",{children:[(0,Be.jsx)(zf.A,{className:"block-editor-block-lock-modal__options-all",label:(0,V.__)("Lock all"),checked:m,indeterminate:g,onChange:e=>r({move:e,remove:e,...a?{edit:e}:{}})}),(0,Be.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,Be.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Be.jsx)(zf.A,{label:(0,V.__)("Lock editing"),checked:!!n.edit,onChange:e=>r(t=>({...t,edit:e}))}),(0,Be.jsx)(zl.A,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?MC:PC})]}),(0,Be.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Be.jsx)(zf.A,{label:(0,V.__)("Lock movement"),checked:n.move,onChange:e=>r(t=>({...t,move:e}))}),(0,Be.jsx)(zl.A,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?MC:PC})]}),(0,Be.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Be.jsx)(zf.A,{label:(0,V.__)("Lock removal"),checked:n.remove,onChange:e=>r(t=>({...t,remove:e}))}),(0,Be.jsx)(zl.A,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?MC:PC})]})]})]})}),c&&(0,Be.jsx)(tm.A,{className:"block-editor-block-lock-modal__template-lock",label:(0,V.__)("Apply to all blocks inside"),checked:u,disabled:n.move&&!n.remove,onChange:()=>d(!u)})]}),(0,Be.jsxs)(mf.A,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,V.__)("Cancel")})}),(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{variant:"primary",type:"submit",disabled:!v,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,V.__)("Apply")})})]})]})})}function VC({clientId:e}){const{canLock:t,isLocked:n}=DC(e),[r,o]=(0,b.useReducer)(e=>!e,!1),i=(0,b.useRef)(!1);if((0,b.useEffect)(()=>{n&&(i.current=!0)},[n]),!n&&!i.current)return null;let s=n?(0,V.__)("Unlock"):(0,V.__)("Lock");return!t&&n&&(s=(0,V.__)("Locked")),(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Sl.A,{className:"block-editor-block-lock-toolbar",children:(0,Be.jsx)(Bg.A,{disabled:!t,icon:n?MC:PC,label:s,onClick:o,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Be.jsx)($C,{clientId:e,onClose:o})]})}var HC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
134currentColor",children:(0,Be.jsx)(je.wA,{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"})}),WC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})});function UC({clientIds:e}){const t=(0,b.useRef)(!1),[n]=ml("blockVisibility.allowEditing"),{canToggleBlockVisibility:r,areBlocksHiddenAnywhere:o}=(0,R.A)(t=>{const{getBlocksByClientId:n,getBlockName:r,isBlockHiddenAnywhere:o}=ue(t(fl));return{canToggleBlockVisibility:n(e).every(({clientId:e})=>(0,h.pN)(r(e),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(e=>o(e))}},[e]),i=(0,y.A)(fl);if((0,b.useEffect)(()=>{o&&(t.current=!0)},[o]),!1===n)return null;if(!o&&!t.current)return null;const{showViewportModal:s}=ue(i);return(0,Be.jsx)(Sl.A,{className:"block-editor-block-visibility-toolbar",children:(0,Be.jsx)(Bg.A,{disabled:!r,icon:o?HC:WC,label:o?(0,V.__)("Hidden"):(0,V.__)("Visible"),onClick:()=>s(e),"aria-haspopup":"dialog"})})}var KC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),GC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),qC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),ZC=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})});function YC(e,t){const n=(0,h.wG)((0,h.XD)("from",t),e=>"block"===e.type&&e.isMultiBlock&&e.blocks.includes("*"));if(n?.__experimentalConvert){const t=n.__experimentalConvert(e);return Array.isArray(t)?t:[t]}return(0,h.bh)(e,t)}var XC={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};var QC=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:r}=(0,R.A)(e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n,isUngroupable:r,isGroupable:i}=e(fl),{getGroupingBlockName:s,getBlockType:a}=e(h.M_),l=o?.length?o:n(),c=t(l),[u]=c,d=1===l.length&&r(l[0]);return{clientIds:l,isGroupable:i(l),isUngroupable:d,blocksSelection:c,groupingBlockName:s(),onUngroup:d&&a(u.name)?.transforms?.ungroup}},[o]);var o;const{replaceBlocks:i}=(0,y.A)(fl),{canRemove:s,variations:a}=(0,R.A)(e=>{const{canRemoveBlocks:r}=e(fl),{getBlockVariations:o}=e(h.M_);return{canRemove:r(t),variations:o(n,"transform")}},[t,n]),l=r=>{const o=YC(e,n);"string"!=typeof r&&(r="group"),o&&o.length>0&&(o[0].attributes.layout=XC[r],i(t,o))};if(!r||!s)return null;const c=!!a.find(({name:e})=>"group-row"===e),u=!!a.find(({name:e})=>"group-stack"===e),d=!!a.find(({name:e})=>"group-grid"===e);return(0,Be.jsxs)(Sl.A,{children:[(0,Be.jsx)(Bg.A,{icon:KC,label:(0,V._x)("Group","action: convert blocks to group"),onClick:l}),c&&(0,Be.jsx)(Bg.A,{icon:GC,label:(0,V._x)("Row","action: convert blocks to row"),onClick:()=>l("row")}),u&&(0,Be.jsx)(Bg.A,{icon:qC,label:(0,V._x)("Stack","action: convert blocks to stack"),onClick:()=>l("stack")}),d&&(0,Be.jsx)(Bg.A,{icon:ZC,label:(0,V._x)("Grid","action: convert blocks to grid"),onClick:()=>l("grid")})]})};function JC({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,R.A)(e=>!!t&&"html"===e(fl).getBlockMode(t),[t]),{toggleBlockMode:r}=(0,y.A)(fl);return n?(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(Bg.A,{onClick:()=>{r(t)},children:(0,V.__)("Edit visually")})}):null}function eA(){const e=(0,R.A)(e=>{const{getBlockEditingMode:t,getBlockName:n,getBlockSelectionStart:r}=e(fl),o=r(),i=o&&(0,h.E7)(n(o));return i&&(0,h.pN)(i,"__experimentalToolbar",!0)&&"disabled"!==t(o)},[]);return e}var tA="data-wp-hash";function nA(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=nA();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)rA(e,n,r)}(document)),e.__wpStyleRuntime}function rA(e,t,n){if(!e.head)return;const r=nA();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${tA}]`))if(n.getAttribute(tA)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(tA,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=nA();n.styles.set(e,t);for(const r of n.documents.keys())rA(r,e,t)})("7f9bfd3385",".ab61d20c737fa550__content-wrapper{margin-left:-8px;margin-right:-8px}.ab61d20c737fa550__content-wrapper:first-of-type{margin-top:-8px}.ab61d20c737fa550__content-wrapper:last-of-type{margin-bottom:-8px}.f0a033fae417d720__padding-small{padding:8px}.d83816967399484e__padding-medium{padding:16px}");var oA="ab61d20c737fa550__content-wrapper",iA="f0a033fae417d720__padding-small",sA="d83816967399484e__padding-medium";var aA=(0,cf.KZ)(function(e,t){const{paddingSize:n="small",className:r,...o}=(0,df.A)(e,"DropdownContentWrapper");return(0,Be.jsx)("div",{...o,className:(0,g.A)(oA,{[iA]:"none"!==n&&"medium"!==n,[sA]:"medium"===n},r),ref:t})},"DropdownContentWrapper"),lA=(0,b.createContext)({});lA.displayName="CompositeContext";var cA=()=>(0,b.useContext)(lA),uA=(0,b.createContext)(!1);uA.displayName="CompositeGroupContext";const dA=(0,b.createContext)(void 0),fA=(0,vh.ab)(function(e){const[t,n]=(0,b.useState)();return e={role:"group","aria-labelledby":null!=(e=(0,vh.w7)(e,e=>(0,Be.jsx)(dA.Provider,{value:n,children:e}),[]))["aria-label"]?void 0:t,...e}}),pA=((0,vh.Rf)(function(e){const t=fA(e);return(0,vh.n)("div",t)}),(0,vh.ab)(function({store:e,...t}){return t=fA(t)})),mA=(0,vh.Rf)(function(e){const t=pA(e);return(0,vh.n)("div",t)});var gA=(0,b.forwardRef)(function(e,t){const n=cA(),{children:r,...o}=e,i=e.store??n.store;return(0,Be.jsx)(mA,{store:i,...o,ref:t,children:(0,Be.jsx)(uA.Provider,{value:!0,children:r})})});const hA=(0,vh.ab)(function(e){const t=(0,b.useContext)(dA),n=(0,vh.Bi)(e.id);return(0,vh.UQ)(()=>(t?.(n),()=>t?.(void 0)),[t,n]),e={"aria-hidden":!0,...e,id:n}}),bA=((0,vh.Rf)(function(e){const t=hA(e);return(0,vh.n)("div",t)}),(0,vh.ab)(function({store:e,...t}){return t=hA(t)})),yA=(0,vh.Rf)(function(e){const t=bA(e);return(0,vh.n)("div",t)});var vA=(0,b.forwardRef)(function(e,t){const n=cA();if(!(0,b.useContext)(uA))throw new Error("Composite.GroupLabel c
134an only be rendered inside Composite.Group.");const r=e.store??n.store;return(0,Be.jsx)(yA,{store:r,...e,ref:t})});const kA=Symbol("composite-hover");const xA=(0,vh.ab)(function({store:e,focusOnHover:t=!0,blurOnHoverEnd:n=!!t,...r}){const o=(0,yh.SZ)();e=e||o,(0,mh.V1)(e,!1);const i=(0,vh.P$)(),s=r.onMouseMove,a=(0,vh.O4)(t),l=(0,vh._q)(t=>{if(s?.(t),!t.defaultPrevented&&i()&&a(t)){if(!(0,mh.oW)(t.currentTarget)){const t=e?.getState().compositeElement;t&&!(0,mh.AJ)(t)&&t.focus({preventScroll:!0})}e?.setActiveId(t.currentTarget.id)}}),c=r.onMouseLeave,u=(0,vh.O4)(n),d=(0,vh._q)(t=>{c?.(t),t.defaultPrevented||i()&&(function(e){const t=e.relatedTarget;return!!(0,mh.vq)(t)&&(0,mh.gR)(e.currentTarget,t)}(t)||function(e){const{relatedTarget:t}=e;if(!(0,mh.vq)(t))return!1;let n=t;do{if((0,mh.mQ)(n,kA)&&n[kA])return!0;n=n.parentElement}while(n);return!1}(t)||a(t)&&u(t)&&(e?.setActiveId(null),e?.getState().compositeElement?.focus({preventScroll:!0})))}),f=(0,b.useCallback)(e=>{e&&(e[kA]=!0)},[]);return r={...r,ref:(0,vh.SV)(f,r.ref),onMouseMove:l,onMouseLeave:d}}),wA=(0,vh.ph)((0,vh.Rf)(function(e){const t=xA(e);return(0,vh.n)("div",t)}));var _A=(0,b.forwardRef)(function(e,t){const n=cA(),r=e.store??n.store;return(0,Be.jsx)(wA,{store:r,...e,ref:t})}),SA=(0,b.forwardRef)(function(e,t){const n=cA(),r=e.store??n.store;return r||!0===globalThis.SCRIPT_DEBUG&&(0,ac.A)("Composite.Item: Missing composite state. Render inside Composite to enable composite keyboard behavior."),(0,Be.jsx)(qh.l,{store:r,...e,ref:t})});const CA=(0,vh.ab)(function({store:e,"aria-setsize":t,"aria-posinset":n,...r}){const o=(0,yh.SZ)();e=e||o,(0,mh.V1)(e,!1);const i=(0,vh.Bi)(r.id),s=(0,dh.O$)(e,"compositeElement")||void 0,a=(0,b.useMemo)(()=>({id:i,compositeElement:s,ariaSetSize:t,ariaPosInSet:n}),[i,s,t,n]);return r=(0,vh.w7)(r,e=>(0,Be.jsx)(yh.$o.Provider,{value:a,children:e}),[a]),r={...r,id:i}}),AA=(0,vh.Rf)(function(e){const t=CA(e);return(0,vh.n)("div",t)});var EA=(0,b.forwardRef)(function(e,t){const n=cA(),r=e.store??n.store;return(0,Be.jsx)(AA,{store:r,...e,ref:t})}),IA=n(2300);const TA=new WeakMap;function NA(e){e.chars=""}function jA(e,t){const n=e.typeaheadText??(e.element?.textContent||e.children||"value"in e&&e.value);return!!n&&(0,mh.J2)(n).trim().toLowerCase().startsWith(t.toLowerCase())}const BA=(0,vh.ab)(function({store:e,typeahead:t=!0,...n}){const r=(0,yh.SZ)();e=e||r,(0,mh.V1)(e,!1);const o=n.onKeyDownCapture,i=(0,vh._q)(n=>{if(o?.(n),n.defaultPrevented)return;if(!t)return;if(!e)return;const r=function(e){let t=TA.get(e);return t||(t={chars:"",cleanupTimeout:0},TA.set(e,t)),t}(e);if(!function(e,t){const n=e.target;return(!n||!(0,mh.mB)(n))&&(!(" "!==e.key||!t.chars.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(n,r))return NA(r);const{renderedItems:i,items:s,activeId:a}=e.getState();let l=function(e){return e.filter(e=>!e.disabled)}(s.length>i.length?s:i);if(!function(e,t){if((0,mh.uh)(e))return!0;const n=e.target;return!!n&&t.some(e=>e.element===n)}(n,l))return NA(r);n.preventDefault(),window.clearTimeout(r.cleanupTimeout),r.cleanupTimeout=window.setTimeout(()=>{NA(r)},500);const c=n.key.toLowerCase();r.chars+=c,l=function({activeId:e,char:t,items:n,typeaheadState:r}){if(!e)return n;const o=n.find(t=>t.id===e);if(!o)return n;if(!jA(o,t))return n;const{chars:i}=r;return i!==t&&jA(o,i)?n:(r.chars=t,(0,IA._d)(n.filter(e=>jA(e,t)),e).filter(t=>t.id!==e))}({activeId:a,char:c,items:l,typeaheadState:r});const u=l.find(e=>jA(e,r.chars));u?e.move(u.id):NA(r)});return n={...n,onKeyDownCapture:i},(0,mh.HR)(n)}),LA=(0,vh.Rf)(function(e){const t=BA(e);return(0,vh.n)("div",t)});var OA=(0,b.forwardRef)(function(e,t){const n=cA(),r=e.store??n.store;return(0,Be.jsx)(LA,{store:r,...e,ref:t})}),RA=Object.assign((0,b.forwardRef)(function({activeId:e,defaultActiveId:t,setActiveId:n,focusLoop:r=!1,focusWrap:o=!1,focusShift:i=!1,virtualFocus:s=!1,orientation:a="both",rtl:l=(0,V.V8)(),children:c,disabled:u=!1,...d},f){const p=d.store,m=uh.q4({activeId:e,defaultActiveId:t,setActiveId:n,focusLoop:r,focusWrap:o,focusShift:i,virtualFocus:s,orientation:a,rtl:l}),g=p??m,h=(0,b.useMemo)(()=>({store:g}),[g]);return(0,Be.jsx)(bh.e,{disabled:u,store:g,...d,ref:f,children:(0,Be.jsx)(lA.Provider,{value:h,children:c})})}),{Group:Object.assign(gA,{displayName:"Composite.Group"}),GroupLabel:Object.assign(vA,{displayName:"Composite.GroupLabel"}),Item:Object.assign(SA,{displayName:"Composite.Item"}),Row:Object.assign(EA,{displayName:"Composite.Row"}),Hover:Object.assign(_A,{displayName:"Composite.Hover"}),Typeahead:Object.assign(OA,{displayName:"Composite.Typeahead"}),Context:Object.assign(lA,{displayName:"Composite.Context"})}),MA=({isEnabled:e,blocks:t,icon:n,children:r,pattern:o})=>{const i=1===t.length?t[0].name:void 0,s=(0,R.A)(e=>i&&e(h.M_).getBlockType(i)?.icon,[i]),{startDragging:a,stopDragging:l}=ue((0,y.A)(fl)),c=(0,b.useMemo)(()=>o?.type===ur&&"unsynced"!==o?.syncStatus?[(0,h.Wv)("core/block",{ref:o.id})]:void 0,[o?.type,o?.syncStatus,o?.id]);if(!e)return r({draggable:!1,onDragStart:void 0,onDragEnd:void 0});const u=c??t;return(0,Be.jsx)(gC,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:u},onDragStart:e=>{a();const t=new Set;for(const n of u){const r=`wp-block:${n.name}`;t.has(r)||(e.dataTransfer.items.add("",r),t.add(r))}},onDragEnd:()=>
134{l()},__experimentalDragComponent:(0,Be.jsx)(hC,{count:t.length,icon:n||!o&&s,isPattern:!!o}),children:({onDraggableStart:e,onDraggableEnd:t})=>r({draggable:!0,onDragStart:e,onDragEnd:t})})};function PA({currentPage:e,numPages:t,changePage:n,totalItems:r}){return(0,Be.jsxs)(pf,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,Be.jsx)(my.A,{variant:"muted",children:(0,V.nv)( 135// translators: %s: Total number of patterns. 136// translators: %s: Total number of patterns. 137(0,V._n)("%s item","%s items",r),r)}),t>1&&(0,Be.jsxs)(fx.A,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,Be.jsxs)(fx.A,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,V.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Be.jsx)("span",{children:"«"})}),(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,V.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Be.jsx)("span",{children:"â¹"})})]}),(0,Be.jsx)(my.A,{variant:"muted",children:(0,V.nv)( 138// translators: 1: Current page number. 2: Total number of pages. 139// translators: 1: Current page number. 2: Total number of pages. 140(0,V._x)("%1$s of %2$s","paging"),e,t)}),(0,Be.jsxs)(fx.A,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,V.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Be.jsx)("span",{children:"âº"})}),(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,V.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Be.jsx)("span",{children:"»"})})]})]})]})}var DA=({showTooltip:e,title:t,children:n})=>e?(0,Be.jsxs)(Tl.Root,{children:[(0,Be.jsx)(Tl.Trigger,{render:n}),(0,Be.jsx)(Tl.Popup,{children:t})]}):(0,Be.jsx)(Be.Fragment,{children:n});function zA({id:e,isDraggable:t,pattern:n,onClick:r,onHover:o,showTitlesAsTooltip:i,category:s,isSelected:a}){const[l,c]=(0,b.useState)(!1),{blocks:u,viewportWidth:d}=n,f=`block-editor-block-patterns-list__item-description-${(0,Ul.A)(zA)}`,p=n.type===ur,m=(0,b.useMemo)(()=>s&&t?(u??[]).map(e=>{const t=(0,h.JB)(e);return t.attributes.metadata?.categories?.includes(s)&&(t.attributes.metadata.categories=[s]),t}):u,[u,t,s]);return(0,Be.jsx)(MA,{isEnabled:t,blocks:m,pattern:n,children:({draggable:t,onDragStart:s,onDragEnd:m})=>(0,Be.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:t,onDragStart:e=>{c(!0),s&&(o?.(null),s(e))},onDragEnd:e=>{c(!1),m&&m(e)},children:(0,Be.jsx)(DA,{showTooltip:i&&!p,title:n.title,children:(0,Be.jsxs)(RA.Item,{render:(0,Be.jsx)("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?f:void 0,className:(0,g.A)("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===ur&&!n.syncStatus,"is-selected":a})}),id:e,onClick:()=>{r(n,u),o?.(null)},onMouseEnter:()=>{l||o?.(n)},onMouseLeave:()=>o?.(null),children:[(0,Be.jsx)(Tl.Async,{placeholder:(0,Be.jsx)(FA,{}),children:(0,Be.jsx)(Tl,{blocks:u,viewportWidth:d})}),(!i||p)&&(0,Be.jsxs)(fx.A,{className:"block-editor-patterns__pattern-details",spacing:2,children:[p&&!n.syncStatus&&(0,Be.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,Be.jsx)(Og.A,{className:"block-editor-patterns__pattern-icon",icon:Le})}),(0,Be.jsx)(Cf,{render:(0,Be.jsx)("div",{}),className:"block-editor-block-patterns-list__item-title",variant:"body-sm",children:n.title})]}),!!n.description&&(0,Be.jsx)(Rw.s,{id:f,children:n.description})]})})})})}function FA(){return(0,Be.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var $A=(0,b.forwardRef)(function({isDraggable:e,blockPatterns:t,onHover:n,onClickPattern:r,orientation:o,category:i,label:s=(0,V.__)("Patterns"),showTitlesAsTooltip:a,pagingProps:l},c){const[u,d]=(0,b.useState)(void 0),[f,p]=(0,b.useState)(null);(0,b.useEffect)(()=>{const e=t[0]?.name;d(e)},[t]);const m=(e,t)=>
140{p(e.name),r(e,t)};return(0,Be.jsxs)(RA,{orientation:o,activeId:u,setActiveId:d,role:"listbox",className:"block-editor-block-patterns-list","aria-label":s,ref:c,children:[t.map(t=>(0,Be.jsx)(zA,{id:t.name,pattern:t,onClick:m,onHover:n,isDraggable:e,showTitlesAsTooltip:a,category:i,isSelected:!!f&&f===t.name},t.name)),l&&(0,Be.jsx)(PA,{...l})]})}),VA=[],HA={placement:"bottom-start"};function WA({clientId:e}){const{categories:t,currentPatternName:n,patterns:r}=(0,R.A)(t=>{const{getBlockAttributes:n,getBlockRootClientId:r,__experimentalGetAllowedPatterns:o}=t(fl),i=n(e),s=i?.metadata?.categories||VA,a=r(e),l=s.length>0?o(a):VA;return{categories:s,currentPatternName:i?.metadata?.patternName,patterns:l}},[e]),{replaceBlocks:o}=(0,y.A)(fl),i=(0,b.useMemo)(()=>0!==t.length&&r&&0!==r.length?r.filter(e=>{const r="core"===e.source||e.source?.startsWith("pattern-directory")&&"pattern-directory/theme"!==e.source;return 1===e.blocks.length&&!r&&n!==e.name&&e.categories?.some(e=>t.includes(e))&&("unsynced"===e.syncStatus||!e.id)}).slice(0,6):VA,[t,n,r]);if(i.length<2)return null;const s=n=>{const r=(n.blocks??[]).map(e=>(0,h.JB)(e));r[0].attributes.metadata={...r[0].attributes.metadata,categories:t},o(e,r)};return(0,Be.jsx)(jg.A,{popoverProps:HA,renderToggle:({onToggle:e,isOpen:t})=>(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(Bg.A,{onClick:()=>e(!t),"aria-expanded":t,children:(0,V.__)("Change design")})}),renderContent:()=>(0,Be.jsx)(aA,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,Be.jsx)($A,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}function UA(e,t,n){const r=new Mp(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}function KA(e){return e?.find(e=>e.isDefault)}function GA({clientId:e,onSwitch:t}){const{styles:n,block:r,blockType:o,className:i}=(0,R.A)(t=>{const{getBlock:n}=t(fl),r=n(e);if(!r)return{};const o=(0,h.E7)(r.name),{getBlockStyles:i}=t(h.M_);return{block:o?.example?null:r,blockType:o,styles:i(r.name),className:r.attributes.className||""}},[e]),{updateBlockAttributes:s}=(0,y.A)(fl),a=function(e){return e&&0!==e.length?KA(e)?e:[{name:"default",label:(0,V._x)("Default","block style"),isDefault:!0},...e]:[]}(n),l=function(e,t){for(const n of new Mp(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=e?.find(({name:e})=>e===t);if(r)return r}return KA(e)}(a,i),c=function(e,t){return(0,b.useMemo)(()=>{const n=t?.example,r=t?.name;return n&&r?(0,h.KL)(r,{attributes:n.attributes,innerBlocks:n.innerBlocks,innerContent:n.innerContent}):e?(0,h.JB)(e):void 0},[e,t?.example,t?.name])}(r,o);return{onSelect:n=>{const r=UA(i,l,n);s(e,{className:r}),t()},stylesToRender:a,activeStyle:l,genericPreviewBlock:c,className:i}}var{getVariationStyle:qA}=ue(Pt),ZA=(0,Be.jsxs)(je.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Be.jsx)(je.wA,{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,Be.jsx)(je.wA,{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"})]});var YA=function({clientId:e}){const{stylesToRender:t,activeStyle:n,className:r}=GA({clientId:e}),{updateBlockAttributes:o}=(0,y.A)(fl),{globalSettings:i,globalStyles:s,blockName:a}=(0,R.A)(t=>{const n=t(fl).getSettings();return{globalSettings:n.__experimentalFeatures,globalStyles:n[G],blockName:t(fl).getBlockName(e)}},[e]),l=n?.name?qA({settings:i,styles:s},a,n.name)?.color?.background:void 0;return t&&0!==t.length?(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(Bg.A,{onClick:()=>{const i=(t.findIndex(e=>e.name===n.name)+1)%t.length,s=t[i],a=UA(r,n,s);o(e,{className:a})},label:(0,V.__)("Shuffle styles"),children:(0,Be.jsx)(zl.A,{icon:ZA,style:{fill:l||"transparent"}})})}):null};function XA({clientId:e}){const{isSectionBlock:t,isEditingContentOnlySection:n,editContentOnlySection:r,stopEditingContentOnlySection:o}=function(e){const{isSectionBlock:t,isWithinSection:n,isWithinEditedSection:r,isEditingContentOnlySection:o,editedContentOnlySection:i}=(0,R.A)(t=>{const{isSectionBlock:n,getParentSectionBlock:r,getEditedContentOnlySection:o,isWithinEditedContentOnlySection:i}=ue(t(fl)),s=o();return{isSectionBlock:n(e),isWithinSection:n(e)||!!r(e),isWithinEditedSection:i(e),isEditingContentOnlySection:s===e,editedContentOnlySection:s}},[e]),s=(0,y.A)(fl),{editContentOnlySection:a,stopEditingContentOnlySection:l}=ue(s);return{isSectionBlock:t,isWithinSection:n,isWithinEditedSection:r,isEditingContentOnlySection:o,editedContentOnlySection:i,editContentOnlySection:a,stopEditingContentOnlySection:l}}(e),i=(0,R.A)(t=>{if(!e)return null;const{getBlockName:n}=t(fl),r=n(e);return r?{name:r}:null},[e]);if(!e||!t&&!n||(0,h.tk)(i)||(0,h.gc)(i))return null;const s=n;return(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(Bg.A,{onClick:()=>{s?o():r(e)},children:s? 141/* translators: Button label to leave pattern editing mode. */ 142/* translators: Button label to leave pattern editing mode. */(0,V.__)("Exit pattern"): 143/* translators: Button label to enter pattern editing mode. */ 144/* translators: Button label to enter pattern editing mode. */(0,V.__)("Edit pattern")})})}var QA=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
144currentColor",children:(0,Be.jsx)(je.wA,{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"})});function JA({blocks:e,placement:t="right-start",offset:n=16,anchor:r}){return(0,Bu.A)("medium","<")?null:(0,Be.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,Be.jsx)(Sm.Ay,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:n,anchor:r,children:(0,Be.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,Be.jsx)(Tl,{viewportWidth:601,blocks:e})})})})}var eE={};function tE({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:r,icon:o,title:i}=e;return(0,Be.jsxs)(kc,{className:(0,h.HK)(r),onClick:e=>{e.preventDefault(),t(r)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(r),onFocus:()=>n(r),onBlur:()=>n(null),children:[(0,Be.jsx)(Wf,{icon:o,showColors:!0}),i]})}var nE=({transformations:e,onSelect:t,blocks:n})=>{const[r,o]=(0,b.useState)();return(0,Be.jsxs)(Be.Fragment,{children:[r&&(0,Be.jsx)(JA,{blocks:(0,h.JB)(n[0],e.find(({name:e})=>e===r).attributes)}),e?.map(e=>(0,Be.jsx)(tE,{item:e,onSelect:t,setHoveredTransformItemName:o},e.name))]})};function rE({restTransformations:e,onSelect:t,setHoveredTransformItem:n}){return e.map(e=>(0,Be.jsx)(oE,{item:e,onSelect:t,setHoveredTransformItem:n},e.id||e.name))}function oE({item:e,onSelect:t,setHoveredTransformItem:n}){const{name:r,icon:o,title:i,isDisabled:s}=e;return(0,Be.jsxs)(kc,{className:(0,h.HK)(r),onClick:n=>{n.preventDefault(),t(r,e.variationName)},disabled:s,onMouseLeave:()=>n(null),onMouseEnter:()=>n(e),onFocus:()=>n(e),onBlur:()=>n(null),children:[(0,Be.jsx)(Wf,{icon:o,showColors:!0}),i]})}var iE=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:r,onSelectVariation:o,blocks:i})=>{const[s,a]=(0,b.useState)(),{priorityTextTransformations:l,restTransformations:c}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,b.useMemo)(()=>{const n=Object.keys(t),r=e.reduce((e,t)=>{const{name:r}=t;return n.includes(r)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e},{priorityTextTransformations:[],restTransformations:[]});if(1===r.priorityTextTransformations.length&&"core/quote"===r.priorityTextTransformations[0].name){const e=r.priorityTextTransformations.pop();r.restTransformations.push(e)}return r},[e]);return n.priorityTextTransformations.sort(({name:e},{name:n})=>t[e]<t[n]?-1:1),n}(t),u=l.length&&c.length,d=!!c.length&&(0,Be.jsx)(rE,{restTransformations:c,onSelect:r,setHoveredTransformItem:a});return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)(hc,{label:(0,V.__)("Transform to"),className:e,children:[s&&(0,Be.jsx)(JA,{blocks:(0,h.bh)(i,s.name,s.variationName)}),!!n?.length&&(0,Be.jsx)(nE,{transformations:n,blocks:i,onSelect:o}),l.map(e=>(0,Be.jsx)(oE,{item:e,onSelect:r,setHoveredTransformItem:a},e.id||e.name)),!u&&d]}),!!u&&(0,Be.jsx)(hc,{className:e,children:d})]})},sE=n(8901),aE=()=>{};function lE({stylesToRender:e,activeStyle:t,onSelect:n=aE,onHoverStyle:r=aE}){return e&&0!==e.length?(0,Be.jsx)(Be.Fragment,{children:e.map(e=>{const o=e.label||e.name;return(0,Be.jsx)(kc,{icon:t.name===e.name?sE.A:null,onClick:()=>n(e),onFocus:()=>r(e),onBlur:()=>r(null),onMouseEnter:()=>r(e),onMouseLeave:()=>r(null),children:(0,Be.jsx)(my.A,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:o})},e.name)})}):null}function cE({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e,[r,o]=(0,b.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:c}=GA({clientId:n,onSwitch:t}),u=(0,b.useMemo)(()=>{if(!r||!l)return null;const e=UA(c,a,r);return[{...l,attributes:{...l.attributes||{},className:e}}]},[r,l,c,a]);return s&&0!==s.length?(0,Be.jsxs)(hc,{label:(0,V.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[u&&(0,Be.jsx)(JA,{blocks:u}),(0,Be.jsx)(lE,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:o})]}):null}var uE=(e,t,n=new Set)=>{const{clientId:r,name:o,innerBlocks:i=[]}=e;if(!n.has(r)){if(o===t)return e;for(const e of i){const r=uE(e,t,n);if(r)return r}}},dE=(e,t)=>{const n=((e,t)=>{const n=(0,h.oA)(e,"content");return n?.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}},fE=(e,t)=>(0,b.useMemo)(()=>e.reduce((e,n)=>{const r=((e,t)=>{const n=t.map(e=>(0,h.JB)(e)),r=new Set;for(const t of e){let e=!1;for(const o of n){const n=uE(o,t.name,r);
144if(n){e=!0,r.add(n.clientId),dE(n,t);break}}if(!e)return}return n})(t,n.blocks);return r&&e.push({...n,transformedBlocks:r}),e},[]),[e,t]);function pE({patterns:e,onSelect:t}){const n=(0,Bu.A)("medium","<");return(0,Be.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,Be.jsx)(Sm.Ay,{className:"block-editor-block-switcher__popover-preview",placement:n?"bottom":"right-start",offset:16,children:(0,Be.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,Be.jsx)(mE,{patterns:e,onSelect:t})})})})}function mE({patterns:e,onSelect:t}){return(0,Be.jsx)(RA,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,V.__)("Patterns list"),children:e.map(e=>(0,Be.jsx)(gE,{pattern:e,onSelect:t},e.name))})}function gE({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",r=(0,Ul.A)(gE,`${n}-list__item-description`);return(0,Be.jsxs)("div",{className:`${n}-list__list-item`,children:[(0,Be.jsxs)(RA.Item,{render:(0,Be.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?r:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,Be.jsx)(Tl,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,Be.jsx)("div",{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&&(0,Be.jsx)(Rw.s,{id:r,children:e.description})]})}var hE=function({blocks:e,patterns:t,onSelect:n}){const[r,o]=(0,b.useState)(!1),i=fE(t,e);return i.length?(0,Be.jsxs)(hc,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,Be.jsx)(pE,{patterns:i,onSelect:n}),(0,Be.jsx)(kc,{onClick:e=>{e.preventDefault(),o(!r)},icon:yC,children:(0,V.__)("Patterns")})]}):null};function bE({onClose:e,clientIds:t}){const{replaceBlocks:n,multiSelect:r,updateBlockAttributes:o}=(0,y.A)(fl),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:c,hasBlockStyles:u}=(0,R.A)(e=>{const{getBlockAttributes:n,getBlocksByClientId:r,getBlockRootClientId:o,getBlockTransformItems:i,__experimentalGetPatternTransformItems:s,canRemoveBlocks:a,getBlockName:l}=e(fl),{getBlockStyles:c}=e(h.M_),u=o(t[0]),d=r(t),f=1===t.length,p=f&&l(t[0]),m=f&&!!c(p)?.length;return{blocks:d,possibleBlockTransformations:i(d,u),patterns:s(d,u),isUsingBindings:t.every(e=>!!n(e)?.metadata?.bindings),canRemove:a(t),hasBlockStyles:m}},[t]),d=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:r}=(0,R.A)(n=>{const{getBlockAttributes:r,canRemoveBlocks:o}=n(fl),{getActiveBlockVariation:i,getBlockVariations:s}=n(h.M_),a=o(e);if(1!==t.length||!a)return eE;const[l]=t;return{blockVariationTransformations:s(l.name,"transform"),activeBlockVariation:i(l.name,r(l.clientId))}},[e,t]);return(0,b.useMemo)(()=>r?.filter(({name:e})=>e!==n?.name),[r,n])}({clientIds:t,blocks:a});function f(e){e.length>1&&r(e[0].clientId,e[e.length-1].clientId)}const p=1===a.length,m=p&&((0,h.gc)(a[0])||(0,h.tk)(a[0])),g=!!i?.length&&c&&!m,v=!!d?.length,k=!!s?.length&&c,x=g||v;if(!(u||x||k))return(0,Be.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,V.__)("No transforms.")});const w=p?(0,V._x)("This block is connected.","block toolbar button label and description"):(0,V._x)("These blocks are connected.","block toolbar button label and description");return(0,Be.jsxs)("div",{className:"block-editor-block-switcher__container",children:[k&&(0,Be.jsx)(hE,{blocks:a,patterns:s,onSelect:r=>{!function(e){n(t,e),f(e)}(r),e()}}),x&&(0,Be.jsx)(iE,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:d,blocks:a,onSelect:(r,o)=>{!function(e,r){const o=(0,h.bh)(a,e,r);n(t,o),f(o)}(r,o),e()},onSelectVariation:t=>{!function(e){o(a[0].clientId,{...d.find(({name:t})=>t===e).attributes})}(t),e()}}),u&&(0,Be.jsx)(cE,{hoveredBlock:a[0],onSwitch:e}),l&&(0,Be.jsx)(hc,{children:(0,Be.jsx)(Cf,{className:"block-editor-block-switcher__binding-indicator",children:w})})]})}var yE=({children:e,clientIds:t,label:n,text:r})=>{const o=1===t.length?(0,V.__)("Change block type or style"):(0,V.nv)( 145/* translators: %d: number of blocks. */ 146/* translators: %d: number of blocks. */ 147(0,V._n)("Change type of %d block","Change type of %d blocks",t.length),t.length);return(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(fc.A,{children:i=>(0,Be.jsx)(pc.A,{className:"block-editor-block-switcher",label:n,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:e,text:r,toggleProps:{description:o,...i},menuProps:{orientation:"both"},children:({onClose:e})=>(0,Be.jsx)(bE,{onClose:e,clientIds:t})})})})};function vE({clientIds:e,children:t,label:n,text:r}){return(0,Be.jsx)(Sl.A,{children:(0,Be.jsx)(fc.A,{children:o=>(0,Be.jsx)(pc.A,{className:"block-editor-block-switcher",label:n,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:t,text:r,toggleProps:{description:(0,V.__)("Change block style"),...o},menuProps:{orientation:"both"},children:({onClose:t})=>(0,Be.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,Be.jsx)(cE,{hoveredBlock:{clientId:e[0]},onSwitch:t})})})})})}function kE({clientIds:e,blockTitle:t}){const n=(0,R.A)(t=>{const{getBlockAttributes:n}=t(fl);return n(e?.[0])?.metadata?.name},[e]);let r;return r=1===e.length&&n?(0,V.nv)( 148/* translators: 1: The block type's name. 2: The block's user-prov
148ided name (the same as the override name). */ 149/* translators: 1: The block type's name. 2: The block's user-provided name (the same as the override name). */ 150(0,V.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),n):(0,V.__)("These blocks are editable using overrides."),(0,Be.jsx)(Cf,{children:r})}function xE({icon:e,clientIds:t,blockTitle:n,label:r}){const[o,i]=(0,b.useState)(!1),s=(0,b.useRef)();return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Bg.A,{ref:s,className:"block-editor-block-toolbar__pattern-overrides-indicator",icon:e,label:r,onClick:()=>i(!o),"aria-expanded":o}),o&&(0,Be.jsx)(Sm.Ay,{anchor:s.current,onClose:()=>i(!1),placement:"bottom-start",offset:16,className:"block-editor-block-toolbar__pattern-overrides-popover",children:(0,Be.jsx)(kE,{clientIds:t,blockTitle:n})})]})}function wE({clientId:e,maximumLength:t,context:n}){const r=(0,R.A)(t=>{if(!e)return null;const{getBlockName:r,getBlockAttributes:o,getBlock:i}=t(fl),{getBlockType:s,getActiveBlockVariation:a}=t(h.M_),l=r(e),c=s(l);if(!c)return null;const u=o(e),d=(0,h.Y0)(c,u,n);if(d!==c.title)return d;const f=a(l,u,void 0,i?.(e)?.innerContent);return f?.title||c.title},[e,n]);if(!r)return null;if(t&&t>0&&r.length>t){const e="...";return r.slice(0,t-e.length)+e}return r}function _E({select:e,clientIds:t}){const{getBlockName:n,getBlockAttributes:r,getBlockParentsByBlockName:o,canRemoveBlocks:i,getTemplateLock:s,getBlockEditingMode:a,canEditBlock:l,isSectionBlock:c}=ue(e(fl)),{getBlockStyles:u}=e(h.M_),d=t.some(e=>"contentOnly"===s(e)),f=1===t.length,p=f&&n(t[0]),m=f&&!!u(p)?.length,g=t.some(e=>!!r(e)?.metadata?.patternName&&c(e)),b=t.every(e=>mv(r(e)?.metadata?.bindings)),y=t.every(e=>o(e,"core/block",!0).length>0),v=i(t),k=t.every(e=>l(e)),x=a(t[0]);return!g&&"default"===x&&(m||v)&&!d&&k?"switcher":"contentOnly"===x&&m&&!b&&k?"styles-only":b&&y?"pattern-overrides":"default"}function SE({select:e,clientIds:t}){const{getBlockName:n,getBlockAttributes:r,getBlock:o,isSectionBlock:i}=ue(e(fl)),s=1===t.length,a=t[0],l=r(a);if(s&&l?.metadata?.patternName&&i(a))return Le;const c=n(a),u=(0,h.E7)(c);if(s){const{getActiveBlockVariation:t}=e(h.M_),n=t(c,l,void 0,o?.(a)?.innerContent);return n?.icon||u?.icon}const d=t.map(e=>n(e));return 1===new Set(d).size?u?.icon:QA}function CE({clientIds:e,isSynced:t}){const{icon:n,showIconLabels:r,variant:o}=(0,R.A)(t=>({icon:SE({select:t,clientIds:e}),showIconLabels:t(wx).get("core","showIconLabels"),variant:_E({select:t,clientIds:e})}),[e]),i=wE({clientId:e?.[0],maximumLength:35}),s=1===e.length,a=s&&t&&!r,l=s?i:(0,V.__)("Multiple blocks selected"),c=a&&i?i:void 0,u=(0,Be.jsx)(Wf,{className:"block-editor-block-toolbar__block-icon",icon:n});return"switcher"===o?(0,Be.jsx)(yE,{clientIds:e,label:l,text:c,children:u}):"styles-only"===o?(0,Be.jsx)(vE,{clientIds:e,label:l,text:c,children:u}):"pattern-overrides"===o?(0,Be.jsx)(xE,{icon:u,clientIds:e,blockTitle:i,label:l}):(0,Be.jsx)(Bg.A,{disabled:!0,className:"block-editor-block-toolbar__block-icon-button",title:l,icon:u,text:c})}function AE({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:r,variant:o="unstyled"}){const{blockClientId:i,blockClientIds:s,isDefaultEditingMode:a,blockType:l,toolbarKey:c,shouldShowVisualToolbar:u,showParentSelector:d,isUsingBindings:f,isSectionContainer:p,hasContentOnlyLocking:m,showShuffleButton:y,showSlots:v,showGroupButtons:k,showLockButtons:x,showBlockVisibilityButton:w,showSwitchSectionStyleButton:_,areSelectedBlocksHiddenOnViewport:S,showStyleStateSlot:C,canEdit:A}=(0,R.A)(e=>{const{canEditBlock:t}=e(fl),{getBlockName:n,getBlockMode:r,getBlockParents:o,getSelectedBlockClientIds:i,isBlockValid:s,getBlockEditingMode:a,getBlockAttributes:l,getSettings:c,getTemplateLock:u,getParentSectionBlock:d,isZoomOut:f,isSectionBlock:p,isBlockHiddenAtViewport:m,getSelectedBlockStyleState:g,isResponsiveEditing:b}=ue(e(fl)),y=i(),v=y[0],k=o(v),x=d(v)??k[k.length-1],w=n(x),_=(0,h.E7)(w),S=a(v),C="default"===S,A=n(v),E=y.every(e=>s(e)),I=y.every(e=>"visual"===r(e)),T=y.every(e=>!!l(e)?.metadata?.bindings),N=y.some(e=>
150"contentOnly"===u(e)),j=f(),B=p(v),L=t(v),O=L&&(j||B),R=c()?.[ne]?.toLowerCase()||"desktop",M=y.length>0&&y.every(e=>m(e,R)),P=b()&&vu(g(v));return{blockClientId:v,blockClientIds:y,isDefaultEditingMode:C,blockType:v&&(0,h.E7)(A),shouldShowVisualToolbar:E&&I,toolbarKey:`${v}${x}`,showParentSelector:!j&&_&&"contentOnly"!==S&&"disabled"!==a(x)&&(0,h.pN)(_,"__experimentalParentSelector",!0)&&1===y.length,isUsingBindings:T,isSectionContainer:B,hasContentOnlyLocking:N,showShuffleButton:j,showSlots:!j&&!P,showStyleStateSlot:!j&&P,showGroupButtons:!j,showLockButtons:!j,showBlockVisibilityButton:!j,showSwitchSectionStyleButton:O,areSelectedBlocksHiddenOnViewport:M,canEdit:L}},[]),E=(0,b.useRef)(null),I=(0,b.useRef)(),T=jC({ref:I}),N=!(0,Bu.A)("medium","<");if(!eA())return null;const j=s.length>1,B=(0,h.tk)(l)||(0,h.gc)(l),L=(0,g.A)("block-editor-block-contextual-toolbar",{"has-parent":d}),O=(0,g.A)("block-editor-block-toolbar",{"is-synced":B,"is-connected":f});return(0,Be.jsx)(iS,{focusEditorOnEscape:!0,className:L,"aria-label":(0,V.__)("Block tools"),variant:"toolbar"===o?void 0:o,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:r,children:(0,Be.jsxs)("div",{ref:E,className:O,children:[d&&!j&&N&&(0,Be.jsx)(BC,{}),(u||j)&&(0,Be.jsx)("div",{ref:I,...T,children:(0,Be.jsxs)(Sl.A,{className:"block-editor-block-toolbar__block-controls",children:[(0,Be.jsx)(CE,{clientIds:s,isSynced:B}),a&&w&&(0,Be.jsx)(UC,{clientIds:s}),!j&&a&&x&&(0,Be.jsx)(VC,{clientId:i}),(0,Be.jsx)(EC,{clientIds:s,hideDragHandle:e})]})}),!S&&!m&&u&&j&&k&&(0,Be.jsx)(QC,{}),!j&&A&&(0,Be.jsx)(XA,{clientId:s[0]}),!S&&y&&(0,Be.jsx)(WA,{clientId:s[0]}),!S&&_&&(0,Be.jsx)(YA,{clientId:s[0]}),!S&&u&&(0,Be.jsxs)(Be.Fragment,{children:[!p&&(0,Be.jsxs)(Be.Fragment,{children:[v&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(dc.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,Be.jsx)(dc.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,Be.jsx)(dc.Slot,{className:"block-editor-block-toolbar__slot"}),(0,Be.jsx)(dc.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"})]}),C&&(0,Be.jsx)(dc.Slot,{group:"style-state",className:"block-editor-block-toolbar__slot"})]}),v&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(dc.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,Be.jsx)(RC.Slot,{})]})]}),(0,Be.jsx)(JC,{clientIds:s}),(0,Be.jsx)(Tl,{clientIds:s})]})},c)}function EE({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:r,isInsertionPointVisible:o,lastClientId:i}=function(e){const t=(0,R.A)(t=>{const{getBlockRootClientId:n,getBlockParents:r,__experimentalGetBlockListSettingsForBlocks:o,isBlockInsertionPointVisible:i,getBlockInsertionPoint:s,getBlockOrder:a,hasMultiSelection:l,getLastMultiSelectedBlockClientId:c}=t(fl),u=r(e),d=o(u),f=u.find(e=>d[e]?.__experimentalCaptureToolbars);let p=!1;if(i()){const t=s();p=a(t.rootClientId)[t.index]===e}return{capturingClientId:f,isInsertionPointVisible:p,lastClientId:l()?c():null,rootClientId:n(e)}},[e]);return t}(e),s=(0,b.useRef)();(0,b.useEffect)(()=>{s.current=void 0},[e]);const{stopTyping:a}=(0,y.A)(fl),l=(0,b.useRef)(!1);eS("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,b.useEffect)(()=>{l.current=!1});const c=r||e,u=function({contentElement:e,clientId:t}){const n=Ju(t),[r,o]=(0,b.useState)(0),{blockIndex:i,isSticky:s}=(0,R.A)(e=>{const{getBlockIndex:n,getBlockAttributes:r}=e(fl);return{blockIndex:n(t),isSticky:ih(r(t))}},[t]),a=(0,b.useMemo)(()=>{if(e)return Em(e)},[e]),[l,c]=(0,b.useState)(()=>QS(e,n,a,r,s)),u=(0,Ku.A)(e=>{o(e.offsetHeight)},[]),d=(0,b.useCallback)(()=>c(QS(e,n,a,r,s)),[e,n,a,r,s]);return(0,b.useLayoutEffect)(d,[i,d]),(0,b.useLayoutEffect)(()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let r;t?.addEventListener?.("resize",d);const o=n?.ownerDocument?.defaultView;return o?.ResizeObserver&&(r=new o.ResizeObserver(d),r.observe(n)),()=>{t?.removeEventListener?.("resize",d),r&&r.disconnect()}},[d,e,n]),{...l,ref:u}}({contentElement:n?.current,clientId:c});return!t&&(0,Be.jsx)(Hm,{clientId:c,bottomClientId:i,className:(0,g.A)("block-editor-block-list__block-popover",{"is-insertion-point-visible":o}),resize:!1,...u,__unstableContentRef:n,children:(0,Be.jsx)(AE,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:e=>{s.current=e},variant:"toolbar"})})}var IE=function({onClick:e}){return(0,Be.jsx)(yc.A,{variant:"primary",icon:Wy.A,size:"compact",className:(0,g.A)("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,V._x)("Add pattern","Generic label for pattern inserter button")})};var TE=function(){const[e,t]=(0,b.useState)(!1),{hasSelection:n,blockOrder:r,setInserterIsOpened:o,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,R.A)(e=>{const{getSettings:t,getBlockOrder:n,getSelectionStart:r,getSelectedBlockClientId:o,getSectionRootClientId:i,getBlockInsertionPoint:s,isBlockInsertionPointVisible:a}=ue(e(fl)),l=i();return{hasSelection:!!r().clientId,blockOrder:n(l),sectionRootClientId:l,setInserterIsOpened:t().__experimentalSetIsInserterOpened,selectedBlockClientId:o(),blockInsertionPoint:s(),insertionPointVisible:a()}},[]),{showInsertionPoint:c}=ue((0,y.A)(fl));if((0,b.useEffect)(()=>{const e=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(e)}},[]),!e||!n)return null;const u=s,d=r.findIndex(e=>s===e)+1,f=r[d];return l&&a?.index===d?null:(0,Be.jsx)(_k,{previousClientId:u,nextClientId:f,children:(0,Be.jsx)(IE,{onClick:()=>{o({rootClientId:i,insertionIndex:d,tab:"patterns",category:"all"}),c(i,d,{operation:"insert"})}})})};var NE="align",jE="__experimentalBorder",BE="color",LE="customClassName",OE="typography.__experimentalFontFamily",RE="typography.fontSize",ME="typography.textAlign",PE="layout",DE=["shadow",...["typography.lineHeight",RE,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",OE,ME,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalWritingMode","typography.__experimentalLetterSpacing"],jE,BE,"spacing"];var zE={align:e=>(0,h.pN)(e,NE),borderColor:e=>function(e,t="any"){const n=(0,h.bI)(e,jE);
150return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,h.bI)(e,BE);return t&&!1!==t.background},textAlign:e=>(0,h.pN)(e,ME),textColor:e=>{const t=(0,h.bI)(e,BE);return t&&!1!==t.text},gradient:e=>{const t=(0,h.bI)(e,BE);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,h.pN)(e,LE,!0),fontFamily:e=>(0,h.pN)(e,OE),fontSize:e=>(0,h.pN)(e,RE),layout:e=>(0,h.pN)(e,PE),style:e=>DE.some(t=>(0,h.pN)(e,t))};function FE(e,t){return Object.entries(zE).reduce((n,[r,o])=>(o(e.name)&&o(t.name)&&(n[r]=e.attributes[r]),n),{})}function $E(e,t,n){for(let r=0;r<Math.min(t.length,e.length);r+=1)n(e[r].clientId,FE(t[r],e[r])),$E(e[r].innerBlocks,t[r].innerBlocks,n)}function VE(){const e=(0,v.A)(),{updateBlockAttributes:t}=(0,y.A)(fl),{createSuccessNotice:n,createWarningNotice:r,createErrorNotice:o}=(0,y.A)(Ws);return(0,b.useCallback)(async i=>{let s="";try{if(!window.navigator.clipboard)return void o((0,V.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});s=await window.navigator.clipboard.readText()}catch{return void o((0,V.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!s||!function(e){try{const t=(0,h.qg)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch{return!1}}(s))return void r((0,V.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const a=(0,h.qg)(s);if(1===a.length?e.batch(()=>{$E(i,i.map(()=>a[0]),t)}):e.batch(()=>{$E(i,a,t)}),1===i.length){const e=(0,h.E7)(i[0].name)?.title;n((0,V.nv)( 151// Translators: %s: Name of the block being pasted, e.g. "Paragraph". 152// Translators: %s: Name of the block being pasted, e.g. "Paragraph". 153(0,V.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,V.nv)( 154// Translators: %d: The number of the blocks. 155// Translators: %d: The number of the blocks. 156(0,V.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})},[e.batch,t,n,r,o])}function HE({clientId:e,onClose:t}){const[n,r]=(0,b.useState)(),o=Qg(e),{metadata:i}=(0,R.A)(t=>{const{getBlockAttributes:n}=t(fl);return{metadata:n(e)?.metadata}},[e]),{updateBlockAttributes:s}=(0,y.A)(fl),a=i?.name||"",l=o?.title,c=!!a&&!!i?.bindings&&Object.values(i.bindings).some(e=>"core/pattern-overrides"===e.source),u=void 0!==n&&n!==a,d=n===l,f=(p=n,0===p?.trim()?.length);var p;const m=u||d;return(0,Be.jsx)(Tl,{title:(0,V.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,Be.jsx)("form",{onSubmit:r=>{r.preventDefault(),m&&(()=>{const r=d||f?void 0:n,o=d||f?(0,V.nv)( 157/* translators: %s: new name/label for the block */ 158/* translators: %s: new name/label for the block */ 159(0,V.__)('Block name reset to: "%s".'),n):(0,V.nv)( 160/* translators: %s: new name/label for the block */ 161/* translators: %s: new name/label for the block */ 162(0,V.__)('Block name changed to: "%s".'),n);(0,Ji.L)(o,"assertive"),s([e],{metadata:gl({...i,name:r})}),t()})()},children:(0,Be.jsxs)(pf,{spacing:"3",children:[(0,Be.jsx)(Xf.A,{value:n??a,label:(0,V.__)("Name"),help:c?(0,V.__)("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:e=>e.target.select()}),(0,Be.jsxs)(fx.A,{justify:"right",children:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,V.__)("Cancel")}),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!m,variant:"primary",type:"submit",children:(0,V.__)("Save")})]})]})})})}var{getViewportBreakpoints:WE}=ue(Pt);function UE(e){const t=WE(e);return Vt.filter(([e])=>!(e===$t.tablet.key&&void 0===t.tablet||e===$t.mobile.key&&void 0===t.mobile))}function KE(e,t){if(!e?.length)return!1;const n=e.filter(e=>function(e,t){if(!e)return!1;const n=e.attributes?.metadata?.blockVisibility;if(!0===n)return!1;if("object"!=typeof n)return!1;const r=n.viewport;return!(!r||"object"!=typeof r||!Vt.some(([,{key:e}])=>e===t)||!1!==r[t])}(e,t)).length;return 0!==n&&(n===e.length||null)}function GE(e){if(!e?.length)return!1;const t=e.filter(e=>e&&!1===e.attributes?.metadata?.blockVisibility).length;return 0!==t&&(t===e.length||null)}var qE={[$t.mobile.key]:!1,[$t.tablet.key]:!1,[$t.desktop.key]:!1},ZE=[];function YE({clientIds:e,onClose:t}){const{createSuccessNotice:n}=(0,y.A)(Ws),{updateBlockAttributes:r}=(0,y.A)(fl),o=(0,R.A)(t=>t(fl).getBlocksByClientId(e)??ZE,[e]),i=(0,R.A)(e=>
162e(Z_).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,R.A)(e=>e(fl).getSettings().__experimentalFeatures?.viewport,[]),a=(0,b.useMemo)(()=>UE(s),[s]),l=(0,b.useMemo)(()=>{if(0===o?.length)return{hideEverywhere:!1,viewportChecked:{}};const e={};return a.forEach(([,{key:t}])=>{e[t]=KE(o,t)}),{hideEverywhere:GE(o),viewportChecked:e}},[o,a]),[c,u]=(0,b.useState)(l?.viewportChecked??{}),[d,f]=(0,b.useState)(l?.hideEverywhere??!1),p=(0,b.useCallback)((e,t)=>{u({...c,[e]:t})},[c]),m=(0,b.useMemo)(()=>{if(!d)return(0,V.nv)( 163// translators: %s: The shortcut key to access the List View. 164// translators: %s: The shortcut key to access the List View. 165(0,V.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);const e=o?.length>1? 166// translators: %s: The shortcut key to access the List View. 167// translators: %s: The shortcut key to access the List View. 168(0,V.__)("Blocks hidden. You can access them via the List View (%s)."): 169// translators: %s: The shortcut key to access the List View. 170// translators: %s: The shortcut key to access the List View. 171(0,V.__)("Block hidden. You can access it via the List View (%s).");return(0,V.nv)(e,i)},[d,o?.length,i]),h=(0,b.useMemo)(()=>Object.values(c).some(e=>!0===e||null===e),[c]),v=(0,b.useMemo)(()=>d!==l.hideEverywhere||a.some(([,{key:e}])=>c[e]!==l.viewportChecked[e]),[d,c,l,a]),k=(0,b.useMemo)(()=>null===d||Object.values(c).some(e=>null===e),[d,c]),x=(0,b.useCallback)(i=>{i.preventDefault();const s=!d&&{viewport:a.reduce((e,[,{key:t}])=>(c[t]&&(e[t]=!1),e),{})},l=Object.fromEntries(o.map(({clientId:e,attributes:t})=>[e,{metadata:gl({...t?.metadata,blockVisibility:s})}]));r(e,l,{uniqueByBlock:!0}),n(m,{id:d?"block-visibility-hidden":"block-visibility-viewports-updated",type:"snackbar"}),t()},[o,e,n,d,m,t,r,a,c]),w=o?.length>1;return(0,Be.jsx)(Tl,{title:e?.length>1?(0,V.__)("Hide blocks"):(0,V.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,Be.jsxs)("form",{onSubmit:x,children:[(0,Be.jsxs)("fieldset",{children:[(0,Be.jsx)("legend",{children:w?(0,V.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,V.__)("Select the viewport size for which you want to hide the block.")}),(0,Be.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,Be.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,Be.jsx)(zf.A,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,V.__)("Omit from published content"),checked:!0===d,indeterminate:null===d,onChange:e=>{f(e),u(qE)}}),!0!==d&&(0,Be.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:a.map(([,{label:e,icon:t,key:n}])=>(0,Be.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,Be.jsx)(zf.A,{label:(0,V.nv)( 172// translators: %s: The viewport name. 173// translators: %s: The viewport name. 174(0,V.__)("Hide on %s"),e),checked:c[n]??!1,indeterminate:null===c[n],onChange:e=>p(n,e)}),(0,Be.jsx)(zl.A,{icon:t,className:(0,g.A)({"block-editor-block-visibility-modal__options-icon--checked":c[n]})})]},n))})]})}),w&&k&&(0,Be.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,V.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!w&&!0===d&&(0,Be.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,V.nv)( 175// translators: %s: The shortcut key to access the List View. 176// translators: %s: The shortcut key to access the List View. 177(0,V.__)("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)}),!w&&!d&&h&&(0,Be.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Px.A)((0,V.nv)( 178// translators: %s: The shortcut key to access the List View 179// translators: %s: The shortcut key to access the List View 180(0,V.__)("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,Be.jsx)("strong",{})})})]}),(0,Be.jsxs)(mf.A,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,V.__)("Cancel")})}),(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{variant:"primary",type:"submit",disabled:!v,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,V.__)("Apply")})})]})]})})}function XE(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:r,isTyping:o,isDragging:i,isZoomOut:s,getViewportModalClientIds:a}=ue(e(fl));return{clientId:t()||n(),hasFixedToolbar:r().hasFixedToolbar,isTyping:o(),isZoomOutMode:s(),isDragging:i(),viewportModalClientIds:a(),blockVisibilitySetting:e(fl).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing}}function QE({children:e,__unstableContentRef:t,...n}){const{clientId:r,hasFixedToolbar:o,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l,blockVisibilitySetting:c}=(0,R.A)(XE,[]),u=Y_(),{getBlocksByClientId:d,getSelectedBlockClientIds:f,getBlockRo
180otClientId:p,getBlockEditingMode:m,getBlockName:v,isGroupable:k,getEditedContentOnlySection:x,canEditBlock:w}=ue((0,R.A)(fl)),{getGroupingBlockName:_}=(0,R.A)(h.M_),{showEmptyBlockSideInserter:S,showBlockToolbarPopover:C}=(0,R.A)(e=>{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:r,getBlockMode:o,getSettings:i,isTyping:s,isBlockInterfaceHidden:a}=ue(e(fl)),l=t()||n(),c=r(l),u=!!l&&!!c,d=u&&(0,h.Xw)(c,"content")&&"html"!==o(l),f=l&&!s()&&d;return{showEmptyBlockSideInserter:f,showBlockToolbarPopover:!a()&&!i().hasFixedToolbar&&!f&&u&&!d}},[]),A=VE(),[E,I]=(0,b.useState)(null),{canRename:T}={canRename:!!(N=v(f()[0]))&&(0,h.bI)(N,"renaming",!0)};var N;const{duplicateBlocks:j,removeBlocks:B,replaceBlocks:L,insertAfterBlock:O,insertBeforeBlock:M,selectBlock:P,moveBlocksUp:D,moveBlocksDown:z,expandBlock:F,stopEditingContentOnlySection:$,showViewportModal:H,hideViewportModal:W}=ue((0,y.A)(fl));const U=Tm(t),K=Tm(t);return(0,Be.jsxs)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented){if(u("core/block-editor/move-up",e)||u("core/block-editor/move-down",e)){const t=f();if(t.length){e.preventDefault();const n=p(t[0]);"up"===(u("core/block-editor/move-up",e)?"up":"down")?D(t,n):z(t,n);const r=Array.isArray(t)?t.length:1,o=(0,V.nv)( 181// translators: %d: the name of the block that has been moved 182// translators: %d: the name of the block that has been moved 183(0,V._n)("%d block moved.","%d blocks moved.",t.length),r);(0,Ji.L)(o)}}else if(u("core/block-editor/duplicate",e)){const t=f();t.length&&(e.preventDefault(),j(t))}else if(u("core/block-editor/remove",e)){const t=f();t.length&&(e.preventDefault(),B(t))}else if(u("core/block-editor/paste-styles",e)){const t=f();if(t.length){e.preventDefault();const n=d(t);A(n)}}else if(u("core/block-editor/insert-after",e)){const t=f();t.length&&(e.preventDefault(),O(t[t.length-1]))}else if(u("core/block-editor/insert-before",e)){const t=f();t.length&&(e.preventDefault(),M(t[0]))}else if(u("core/block-editor/unselect",e)){if(e.target.closest("[role=toolbar]"))return;const t=f();t.length>1&&(e.preventDefault(),P(t[0]))}else if(u("core/block-editor/collapse-list-view",e)){if(Mv(e.target)||Mv(e.target?.contentWindow?.document?.activeElement))return;e.preventDefault(),F(r)}else if(u("core/block-editor/group",e)){const t=f();if(t.length>1&&k(t)){e.preventDefault();const n=YC(d(t),_());L(t,n),(0,Ji.L)((0,V.__)("Selected blocks are grouped."))}}else if(u("core/block-editor/rename",e)){const t=f();if(1===t.length){const n="contentOnly"===m(t[0]);T&&!n&&w(t[0])&&(e.preventDefault(),I(t[0]))}}else if(u("core/block-editor/toggle-block-visibility",e)){if(!1===c)return;const t=f();if(t.length){e.preventDefault();if(!d(t).every(e=>(0,h.pN)(e.name,"visibility",!0)))return;if(t.some(e=>"default"!==m(e)||!w(e)))return;H(t)}}u("core/block-editor/stop-editing-as-blocks",e)&&x()&&$()}},className:(0,g.A)(n.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,Be.jsxs)(Ak.Provider,{value:(0,b.useRef)(!1),children:[!i&&!s&&(0,Be.jsx)(Ik,{__unstableContentRef:t}),S&&(0,Be.jsx)(Tl,{__unstableContentRef:t,clientId:r}),C&&(0,Be.jsx)(EE,{__unstableContentRef:t,clientId:r,isTyping:i}),!s&&!o&&(0,Be.jsx)(Sm.Ay.Slot,{name:"block-toolbar",ref:U}),e,(0,Be.jsx)(Sm.Ay.Slot,{name:"__unstable-block-tools-after",ref:K}),s&&!a&&(0,Be.jsx)(TE,{__unstableContentRef:t})]}),E&&(0,Be.jsx)(HE,{clientId:E,onClose:()=>I(null)}),l&&(0,Be.jsx)(YE,{clientIds:l,onClose:W})]})}var JE=new Set([Lg.UP,Lg.NS,Lg.PX,Lg.M3,Lg.Fm,Lg.G_]);function eI(){const e=(0,R.A)(e=>e(fl).isTyping(),[]),{stopTyping:t}=(0,y.A)(fl);return(0,Ku.A)(n=>{if(!e)return;const{ownerDocument:r}=n;let o,i;function s(e){const{clientX:n,clientY:r}=e;o&&i&&(o!==n||i!==r)&&t(),o=n,i=r}return r.addEventListener("mousemove",s),()=>{r.removeEventListener("mousemove",s)}},[e,t])}function tI(){const e=(0,R.A)(e=>e(fl).isTyping(),[]),{startTyping:t,stopTyping:n}=(0,y.A)(fl),r=eI(),o=(0,Ku.A)(r=>{if(e){let e=function(e){const{target:t}=e;i=s.setTimeout(()=>{Mv(t)||n()})},t=function(e){const{keyCode:t}=e;t!==Lg._f&&t!==Lg.wn||n()},o=function(){s.getSelection().isCollapsed||n()};let i;const{defaultView:s}=r.ownerDocument;return r.addEventListener("focus",e),r.addEventListener("keydown",t),r.ownerDocument.addEventListener("selectionchange",o),()=>{s.clearTimeout(i),r.removeEventListener("focus",e),r.removeEventListener("keydown",t),r.ownerDocument.removeEventListener("selectionchange",o)}}function o(e){const{type:n,target:o}=e;Mv(o)&&r.contains(o)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&JE.has(t)}(e))&&t()}return r.addEventListener("keypress",o),r.addEventListener("keydown",o),()=>{r.removeEventListener("keypress",o),r.removeEventListener("keydown",o)}},[e,t,n]);return(0,$l.A)([r,o])}var nI=function({children:e}){return(0,Be.jsx)("div",{ref:tI(),children:e})},rI=Symbol("requiresWrapperOnCopy");
183function oI(e,t,n){let r=t;const[o]=t;if(o){if(n.select(h.M_).getBlockType(o.name)[rI]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:i}=n.select(fl),s=e(o.clientId),a=t(s);a&&(r=(0,h.Wv)(a,i(s),r))}}const i=(0,h.lK)(r);e.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,Xx.A)(e).trim().replace(/\n\n+/g,"\n\n")}(i)),e.clipboardData.setData("text/html",i)}function iI(e,t,{focus:n=!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,V.__)("Editor canvas")),n&&e.focus({preventScroll:!0}),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}function sI(){const e=(0,v.A)(),t=(0,R.A)(e=>{const{getSelectedBlockClientId:t,canHostEditableRoot:n,isZoomOut:r}=ue(e(fl));return!r()&&n(t())},[]);return(0,Ku.A)(n=>{if(!t)return;const{getSelectedBlockClientId:r,hasMultiSelection:o,isMultiSelecting:i}=e.select(fl);if(!iI(n,!0,{focus:!1}))return;const{activeElement:s}=n.ownerDocument,a=n.ownerDocument.defaultView.getSelection();return s!==n&&s?.isContentEditable&&n.contains(s)&&Mm(s)===r()&&a.anchorNode&&s.contains(a.anchorNode)&&n.focus(),()=>{if(!o()&&!i()&&(iI(n,!1),n.ownerDocument.activeElement===n)){const e=Rm(n.ownerDocument.defaultView.getSelection(),n);e&&Mm(e)===r()&&e.focus()}}},[t,e])}function aI(){const{hasMultiSelection:e}=(0,R.A)(fl);return(0,Ku.A)(t=>
183{function n(n){if(n.defaultPrevented)return;if(n.keyCode!==Lg.yZ&&n.keyCode!==Lg.Kp)return;if(n.metaKey||n.ctrlKey||n.altKey)return;if(!n.target.isContentEditable||e())return;const r=t.ownerDocument.defaultView.getSelection();Rm(r,t)&&(n.preventDefault(),r.modify(n.shiftKey?"extend":"move",n.keyCode===Lg.yZ?"backward":"forward","lineboundary"))}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},[])}function lI(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:r,getSelectedBlockClientId:o,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(fl);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:r(),selectedBlockClientId:o(),initialPosition:i(),isFullSelection:s()}}function cI(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:r,selectedBlockClientId:o,isFullSelection:i}=(0,R.A)(lI,[]);return(0,Ku.A)(o=>{const{ownerDocument:s}=o,{defaultView:a}=s;if(null==e)return;if(!r||t)return;const{length:l}=n;l<2||i&&(iI(o,!0),a.getSelection().removeAllRanges())},[r,t,n,o,e,i])}var uI={position:"absolute",inset:0,pointerEvents:"none",outline:"none"},dI=["Enter"," ","F2","Escape"];function fI(){const e=(0,b.useRef)(),t=(0,b.useRef)(),n=(0,b.useRef)(),r=(0,Ul.A)(fI,"block-editor-writing-flow__canvas-stop-hint"),{hasMultiSelection:o,getSelectedBlockClientId:i,getBlockCount:s,getBlockOrder:a,getLastFocus:l,getSectionRootClientId:c,getEditedContentOnlySection:u,isZoomOut:d}=ue((0,R.A)(fl)),{setLastFocus:f}=ue((0,y.A)(fl)),p=(0,b.useRef)();function m(){if(e.current.ownerDocument.defaultView.focus(),o())e.current.focus();else if(i())l()?.current?l().current.focus():e.current.querySelector(`[data-block="${i()}"]`).focus();else if(d()){const t=c(),n=a(t);n.length?e.current.querySelector(`[data-block="${n[0]}"]`).focus():t?e.current.querySelector(`[data-block="${t}"]`).focus():e.current.focus()}else{const t=Ov.XC.tabbable.find(e.current);t.length?t[0].focus():e.current.focus()}}const g=(0,Be.jsx)("div",{ref:t,tabIndex:"0",role:"button","aria-label":(0,V.__)("Editor canvas"),"aria-describedby":r,className:"block-editor-writing-flow__canvas-stop",style:uI,onFocus:function(){p.current?p.current=null:m()},onKeyDown:function(e){if(e.defaultPrevented||e.ctrlKey||e.metaKey||e.altKey)return;const{key:t}=e;if(!e.shiftKey&&dI.includes(t))return e.preventDefault(),void m();"Tab"!==t||e.shiftKey||(e.preventDefault(),Ov.XC.tabbable.findNext(n.current)?.focus())},onClick:m,children:(0,Be.jsx)("div",{className:"block-editor-writing-flow__canvas-stop-hint",id:r,children:(0,V.__)("Press Enter to edit the document")})});const h=(0,Be.jsx)("div",{ref:n,tabIndex:"0",onFocus:function(){p.current?p.current=null:m()},style:uI}),v=(0,Ku.A)(e=>{function r(t){e.contains(t.relatedTarget)||f({current:t.target});const{ownerDocument:n}=e;!t.relatedTarget&&t.target.hasAttribute("data-block")&&n.activeElement===n.body&&0===s()&&e.focus()}const o=(0,Zw.n)(function(e){if(e.defaultPrevented)return;if(!("Escape"!==e.key||e.shiftKey||e.ctrlKey||e.metaKey||e.altKey)){if(u())return;return void(t.current&&(e.preventDefault(),p.current=!0,t.current.focus()))}if(e.keyCode!==Lg.wn)return;if(!n.current||!t.current)return;const{target:r,shiftKey:o}=e,i=o?"findPrevious":"findNext",s=Ov.XC.tabbable[i](r),a=r.closest("[data-block]"),l=a&&s&&(Lm(a,s)||Om(a,s));if(Dv(s)&&l)return;const c=o?t:n;p.current=!0,c.current.focus()});return e.addEventListener("keydown",o),e.addEventListener("focusout",r),()=>{e.removeEventListener("keydown",o),e.removeEventListener("focusout",r)}},[]);return[g,(0,$l.A)([e,v]),h]}function pI(){const{didAutomaticChange:e,getSettings:t}=(0,R.A)(fl);function n(n){const{keyCode:r}=n;if(n.defaultPrevented)return;if(r!==Lg.G_&&r!==Lg._f)return;const{__experimentalUndo:o}=t();o&&e()&&(n.preventDefault(),o())}return(0,Ku.A)(e=>(e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}),[])}var mI=n(7835);function gI(e){const{anchorNode:t,focusNode:n,anchorOffset:r,focusOffset:o}=e;(0,Cm.e)(t,"anchorNode"),(0,Cm.e)(n,"focusNode");const i=t.compareDocumentPosition(n);return!(i&t.DOCUMENT_POSITION_PRECEDING)&&(!!(i&t.DOCUMENT_POSITION_FOLLOWING)||(0!==i||r<=o))}function hI(e,t,n=!1){if((0,Pv.A)(e)&&"number"==typeof e.selectionStart)return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;const{ownerDocument:r}=e,{defaultView:o}=r;(0,Cm.e)(o,"defaultView");const i=o.getSelection();if(!i||!i.rangeCount)return!1;const s=i.getRangeAt(0),a=s.cloneRange(),l=gI(i),c=i.isCollapsed;c||a.collapse(!l);const u=(0,mI.A)(a),d=(0,mI.A)(s);if(!u||!d)return!1;const f=function(e){const t=Array.from(e.getClientRects());if(!t.length)return;const n=Math.min(...t.map(({top:e})=>e));return Math.max(...t.map(({bottom:e})=>e))-n}(s);if(!c&&f&&f>u.height&&l===t)return!1;const p=Fv(e)?!t:t,m=e.getBoundingClientRect(),g=p?m.left+1:m.right-1,h=t?m.top+1:m.bottom-1,b=(h<0||h>o.innerHeight)&&d.top>=0&&d.bottom<=o.innerHeight,y=(g<0||g>o.innerWidth)&&d.left>=0&&d.right<=o.innerWidth;if(b||!n&&y)return!1;const v=$v(e,t,()=>zv(r,g,h,e));if(!v)return!1;const k=(0,mI.A)(v);if(!k)return!1;const x=t?"top":"bottom",w=p?"left":"right",_=k[x]-d[x],S=k[w]-u[w],C=Math.abs(_)<=1,A=Math.abs(S)<=1;return n?C:C&&A}function bI(e,t){return hI(e,t,!0)}function yI(e,t){return hI(e,t)}function vI(e,t,n,r){let o,i=Ov.XC.focusable.find(n);return t&&i.reverse(),i=i.slice(i.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),i.find(function(e){if(1===e.children.length&&Lm(e,e.firstElementChild)&&"true"===e.firstElementChild.getAttribute("contenteditable"))return;const t=(0,h.E7)(e.getAttribute("data-type"));if("true"!==e.contentEditable&&Mm(e)&&t&&(t.merge||(0,h.pN)(t,"__experimentalOnMerge"))&&0!==Ov.XC.focusable.find(e).filter(e=>!Dv(e)).length)return!1;if(!Ov.XC.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable&&Mm(e.closest('[contenteditable="true"]')))return!1;if(r){const t=e.getBoundingClientRect();if(t.left>=o.right||t.right<=o.left)return!1}return!0})}function kI(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getNextBlockClientId:n,getPreviousBlockClientId:r,getSelectedBlockClientId:o,getSelectionStart:i,get
183Settings:s,hasMultiSelection:a,__unstableIsFullySelected:l}=(0,R.A)(fl),{selectBlock:c,multiSelect:u}=(0,y.A)(fl);return(0,Ku.A)(d=>{let f;function p(){f=null}function m(p){if(p.defaultPrevented)return;const{keyCode:m,shiftKey:g,ctrlKey:h,altKey:b,metaKey:y}=p,v=p.target===d&&Rm(d.ownerDocument.defaultView.getSelection(),d)||p.target,k=m===Lg.UP,x=m===Lg.PX,w=m===Lg.M3,_=m===Lg.NS,S=k||w,C=w||_,A=k||x,E=C||A,I=g||h||b||y,T=A?bI:yI,{ownerDocument:N}=d,{defaultView:j}=N;if(!E)return;if(s().isPreviewMode)return;if(a()){if(g){const o=j.getSelection();if(l()&&(!o.rangeCount||o.isCollapsed)){const o=e(),i=t(),s=S?r(i):n(i);s&&(u(o,s),p.preventDefault())}return}if(!l())return;return p.preventDefault(),void(S?c(e()):c(t(),-1))}if(g&&o()&&!i().attributeKey){const e=o(),t=S?r(e):n(e);return void(t&&(u(e,t),p.preventDefault()))}if(!function(e,t,n){const r=t===Lg.UP||t===Lg.PX,{tagName:o}=e,i=e.getAttribute("type");if(r&&!n)return"INPUT"!==o||!["date","datetime-local","month","number","range","time","week"].includes(i);if("INPUT"===o)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i);return"TEXTAREA"!==o}(v,m,I))return;A?f||(f=function(e){const t=e.getSelection();(0,Cm.e)(t,"selection");const n=t.rangeCount?t.getRangeAt(0):null;return n?(0,mI.A)(n):null}(j)):f=null;const B=Fv(v)?!S:S,{keepCaretInsideBlock:L}=s();if(g){if(T(v,S))if(function(e,t){const n=vI(e,t,d);return n&&Mm(n)}(v,S))iI(d,!0);else if("true"===d.contentEditable){j.getSelection().extend(v,S?0:v.childNodes.length),p.preventDefault()}}else if(!A||!bI(v,S)||b&&!yI(v,B)||L){if(C&&j.getSelection().isCollapsed&&yI(v,B)&&!L){Hv(vI(v,B,d),S),p.preventDefault()}}else{const e=vI(v,S,d,!0);e&&(!function(e,t,n){Vv(e,t,n?.left)}(e,b?!S:S,b?void 0:f),p.preventDefault())}}return d.addEventListener("mousedown",p),d.addEventListener("keydown",m),()=>{d.removeEventListener("mousedown",p),d.removeEventListener("keydown",m)}},[])}function xI(){const e=(0,R.A)(e=>e(fl).getSettings().isPreviewMode,[]);return(0,Ku.A)(t=>{if(e)return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)};function n(e){const{keyCode:n,shiftKey:r,target:o}=e,i=n===Lg.wn,s=n===Lg.UP,a=n===Lg.PX,l=n===Lg.M3,c=n===Lg.NS;if(!i&&!(s||a||l||c))return;const u=i?r:s||l,d=Array.from(t.querySelectorAll("[data-block]"));if(!d.length)return;const f=o.closest("[data-block]"),p=f?d.indexOf(f):-1;if(-1===p)return;if(i){if(u&&0===p)return;if(!u&&p===d.length-1)return}let m;m=u?p<=0?d.length-1:p-1:-1===p||p>=d.length-1?0:p+1,e.preventDefault(),d[m].focus()}},[e])}var wI=n(2317);function _I(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,R.A)(fl),{multiSelect:r,selectBlock:o}=(0,y.A)(fl),i=Y_();return(0,Ku.A)(s=>{function a(a){if(!i("core/block-editor/select-all",a))return;const l=t(),{ownerDocument:c}=s,u=c.defaultView.getSelection(),d=a.target===s&&Rm(u,s)||a.target;if(l.length<2&&!(0,wI.A)(d)){if(a.target===s&&d!==s){a.preventDefault();const e=c.createRange();e.selectNodeContents(d),u.removeAllRanges(),u.addRange(e),c.dispatchEvent(new Event("selectionchange"))}return}a.preventDefault();const[f]=l,p=Mm(c.activeElement);if(p&&p!==f&&!Om(c.getElementById("block-"+f),c.activeElement))return void o(p);const m=n(f),g=e(m);l.length!==g.length?r(g[0],g[g.length-1]):m&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),o(m))}return s.addEventListener("keydown",a),()=>{s.removeEventListener("keydown",a)}},[])}function SI(){const{startMultiSelect:e,stopMultiSelect:t}=(0,y.A)(fl),{getSettings:n,isSelectionEnabled:r,hasSelectedBlock:o,isDraggingBlocks:i,isMultiSelecting:s}=(0,R.A)(fl);return(0,Ku.A)(a=>{const{ownerDocument:l}=a,{defaultView:c}=l;let u,d,f;function p(){t(),c.removeEventListener("mouseup",p),d=c.requestAnimationFrame(()=>{if(!o())return;iI(a,!1);const e=c.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,r=t.cloneRange();u.contains(n)&&(u.focus(),e.removeAllRanges(),e.addRange(r))}})}function m({buttons:t,target:o,relatedTarget:l}){o.contains(f)&&(o.contains(l)||i()||1===t&&(s()||a!==o&&("true"===o.getAttribute("contenteditable")||n().isPreviewMode)&&r()&&(u=o,e(),c.addEventListener("mouseup",p),iI(a,!0))))}return a.addEventListener("mouseout",m),a.addEventListener("mousedown",function({target:e}){f=e}),()=>{a.removeEventListener("mouseout",m),c.removeEventListener("mouseup",p),c.cancelAnimationFrame(d)}},[e,t,r,o])}var{ownsSelection:CI}=ue(Oe.jb);function AI(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}function EI(e,t){const{focusNode:n,focusOffset:r}=e;return n.nodeType===n.TEXT_NODE||r===n.childNodes.length?n:0===r&&gI(e)&&t?n.previousSibling??n.parentElement:n.childNodes[r]}function II(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-wp-block-attribute-key]")}function TI(){const{multiSelect:e,selectBlock:t,selectionChange:n,startMultiSelect:r,stopMultiSelect:o}=(0,y.A)(fl),{getBlockParents:i,getBlockSelectionStart:s,isMultiSelecting:a,getSelectionStart:l,getSelectionEnd:c,get
183SelectedBlockClientId:u,canHostEditableRoot:d}=ue((0,R.A)(fl));return(0,Ku.A)(f=>{const{ownerDocument:p}=f,{defaultView:m}=p;let g=!1;function h(e){g=3===e.detail,e.shiftKey&&r()}function b(){g=!1}function y(r){const o=m.getSelection();if(!o.rangeCount)return;const h=AI(o),b=EI(o,g);if(!f.contains(h)||!f.contains(b))return;const y=r.shiftKey&&"mouseup"===r.type;if(o.isCollapsed&&!y){const e=Mm(h);if(!a()&&e&&e===u()&&d(e)){iI(f,!0);const{activeElement:t}=p;return void(t!==f&&t?.isContentEditable&&f.contains(t)&&Mm(t)===e&&f.focus())}if("true"===f.contentEditable&&!a()){iI(f,!1);let e=h.nodeType===h.ELEMENT_NODE?h:h.parentElement;e=e?.closest("[contenteditable]"),e?.focus()}return}let v=Mm(h),k=Mm(b);if(y){const e=s(),t=Mm(r.target),n=t!==k;(v===k&&o.isCollapsed||!k||n)&&(k=t),v!==e&&(v=e)}if(void 0===v&&void 0===k)return void iI(f,!1);if("mouseup"===r.type&&!r.shiftKey&&!a()&&v===k){const e=Mm(r.target);if(e&&e!==v)return void o.removeAllRanges()}if(v===k)if(a())e(v,v);else{const e=!o.isCollapsed&&(II(h)||II(b));if(e&&("true"!==e.contentEditable||p.activeElement!==e&&!CI(e))){const t=o.getRangeAt(0),r=(0,Oe.vt)({element:e,range:t,__unstableIsEditableTree:!0}),i={start:{clientId:v,attributeKey:e.dataset.wpBlockAttributeKey,offset:r.start??0},end:{clientId:v,attributeKey:e.dataset.wpBlockAttributeKey,offset:r.end??r.text.length}},{start:s,end:a}=i,u=l(),d=c();u.clientId===s.clientId&&d.clientId===a.clientId&&u.attributeKey===s.attributeKey&&u.offset===s.offset&&d.offset===a.offset||n(i)}else t(v)}else{const t=[...i(v),v],r=[...i(k),k],s=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,r);if(!(s>=t.length||s>=r.length)&&(t[s]!==v||r[s]!==k))return void e(t[s],r[s]);const a=II(h),l=II(b);if(a&&l){const e=o.getRangeAt(0),t=(0,Oe.vt)({element:a,range:e,__unstableIsEditableTree:!0}),r=(0,Oe.vt)({element:l,range:e,__unstableIsEditableTree:!0}),i=t.start??t.end,s=r.start??r.end;n({start:{clientId:v,attributeKey:a.dataset.wpBlockAttributeKey,offset:i},end:{clientId:k,attributeKey:l.dataset.wpBlockAttributeKey,offset:s}})}else e(v,k)}}function v(e){const t=m.getSelection();if(!t.rangeCount||t.isCollapsed)return;Mm(AI(t))!==Mm(EI(t,g))&&y(e)}function k(e){y(e),o()}return p.addEventListener("selectionchange",y),m.addEventListener("mouseup",k),f.addEventListener("mousedown",h),f.addEventListener("keydown",b),p.addEventListener("copy",v,!0),p.addEventListener("cut",v,!0),p.addEventListener("paste",v,!0),()=>{p.removeEventListener("selectionchange",y),m.removeEventListener("mouseup",k),f.removeEventListener("mousedown",h),f.removeEventListener("keydown",b),p.removeEventListener("copy",v,!0),p.removeEventListener("cut",v,!0),p.removeEventListener("paste",v,!0)}},[e,t,n,i])}function NI(){const{selectBlock:e}=(0,y.A)(fl),{isSelectionEnabled:t,getBlockSelectionStart:n,getSelectionStart:r,hasMultiSelection:o}=(0,R.A)(fl);return(0,Ku.A)(i=>{function s(s){if(!t()||0!==s.button)return;const a=n(),l=Mm(s.target);if(s.shiftKey){if(a&&a!==l){const{clientId:e,attributeKey:t}=r();iI(i,!0,{focus:!!t});const{ownerDocument:n}=i,o=n.defaultView.getSelection(),a=!t&&n.getElementById(`block-${e}`);if(a&&(!o.anchorNode||!a.contains(o.anchorNode))){const e=a.compareDocumentPosition(s.target)&i.DOCUMENT_POSITION_FOLLOWING;o.setPosition(a,e?0:a.childNodes.length)}}}else o()&&e(l)}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[e,t,n,r,o])}function jI(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:r,hasMultiSelection:o,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:a,getSelectionStart:l,getSelectionEnd:c,getBlockAttributes:u,getNextBlockClientId:d,getBlockOrder:f,getBlockEditingMode:p,getBlockListSettings:m}=(0,R.A)(fl),{replaceBlocks:g,__unstableSplitSelection:b,removeBlocks:v,__unstableDeleteSelection:k,__unstableExpandSelection:x,__unstableMarkAutomaticChange:w,insertAfterBlock:_,insertBlock:S,selectBlock:C}=(0,y.A)(fl);return(0,Ku.A)(y=>{function A(e){if("insertParagraph"===e.inputType&&!e.defaultPrevented&&!o()&&(E(e),e.defaultPrevented))return;if("true"!==y.contentEditable)return;if(o())return void e.preventDefault();Rm(y.ownerDocument.defaultView.getSelection(),y)||e.preventDefault()}function E(A){if(!A.defaultPrevented)if(o())A.keyCode===Lg.Fm?(iI(y,!1),A.preventDefault(),e()?g(t(),(0,h.Wv)((0,h.K$)())):b()):A.keyCode===Lg.G_||A.keyCode===Lg.SJ?(iI(y,!1),A.preventDefault(),e()?v(t()):r()?k(A.keyCode===Lg.SJ):x()):1!==A.key.length||A.metaKey||A.ctrlKey||(iI(y,!1),r()?k(A.keyCode===Lg.SJ):(A.preventDefault(),y.ownerDocument.defaultView.getSelection().removeAllRanges()));else if(A.keyCode===Lg.Fm||"insertParagraph"===A.inputType){if(A.shiftKey||"keydown"===A.type&&A.target.ownerDocument.activeElement.isContentEditable)return;const t=n();if(!t)return;const r=i(t),o=l(),y=c();if(o.attributeKey===y.attributeKey){const e=u(t)[o.attributeKey],n=(0,h.XD)("from").filter(({type:e})=>"enter"===e),r=(0,h.wG)(n,t=>t.regExp.test(e));if(r)return g(t,r.transform({content:e})),void w()}const v=a(t),{activeElement:k}=A.target.ownerDocument;if(e()||!s((0,h.K$)(),v)&&!s(r,v)||!(0,h.pN)(r,"splitting",!1)&&!A.__deprecatedOnSplit){if((k.getAttribute("data-block")===t||k.isContentEditable)&&Mm(k)===t){const{defaultBlock:e}=v&&m(v)||{};if(s(e?.name??(0,h.K$)(),v))A.preventDefault(),_(t);else{let e=function(e){let t=null;for(;"string"==typeof e&&!(t=d(e));)e=a(e);return t};if(!f(t).length){const{defaultBlock:e}=m(t)??{},n=e?.name??(0,h.K$)();if(s(n,t))return A.preventDefault(),void S((0,h.Wv)(n,e?.attributes),0,t)}let n=f(t)[0]??e(t);for(;n&&"disabled"===p(n);)n=e(n);n&&(A.preventDefault(),C(n,!0))}}}else A.preventDefault(),b()}}function I(e){o()&&(iI(y,!1),r()?k():(e.preventDefault(),y.ownerDocument.defaultView.getSelection().removeAllRanges()))}return y.addEventListener("beforeinput",A),y.addEventListener("keydown",E),y.addEventListener("compositionstart",I),()=>{y.removeEventListener("beforeinput",A),y.removeEventListener("keydown",E),y.removeEventListener("compositionstart",I)}},[])}function BI(e){(0,Cm.e)(e.defaultView,"doc.defaultView");const t=e.defaultView.getSelection();(0,Cm.e)(t,"selection");const n=t.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function LI(e){return BI(e)||!!e.activeElement&&function(e){if(!Rv(e)&&!Mv(e))return!1;try{const{selectionStart:t,selectionEnd:n}=e;return null===t||t!==n}catch{return!0}}(e.activeElement)}function OI(e,t){if(Mm(e.defaultView.getSelection().anchorNode)!==t)return!1;const n=e.getElementById(`block-${t}`);return!!n?.isContentEditable&&(0,wI.A)(n)}function RI(){const e=(0,v.A)(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:r,getSettings:o,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:c,canInsertBlockType:u,getBlockRo
183otClientId:d}=(0,R.A)(fl),{flashBlock:f,removeBlocks:p,replaceBlocks:m,__unstableDeleteSelection:g,__unstableExpandSelection:k,__unstableSplitSelection:x}=(0,y.A)(fl),w=function(){const{getBlockName:e}=(0,R.A)(fl),{getBlockType:t}=(0,R.A)(h.M_),{createSuccessNotice:n}=(0,y.A)(Ws);return(0,b.useCallback)((r,o)=>{let i="";if("copyStyles"===r)i=(0,V.__)("Styles copied to clipboard.");else if(1===o.length){const n=o[0],s=t(e(n))?.title;i="copy"===r?(0,V.nv)( 184// Translators: %s: Name of the block being copied, e.g. "Paragraph". 185// Translators: %s: Name of the block being copied, e.g. "Paragraph". 186(0,V.__)('Copied "%s" to clipboard.'),s):(0,V.nv)( 187// Translators: %s: Name of the block being cut, e.g. "Paragraph". 188// Translators: %s: Name of the block being cut, e.g. "Paragraph". 189(0,V.__)('Moved "%s" to clipboard.'),s)}else i="copy"===r?(0,V.nv)( 190// Translators: %d: Number of blocks being copied. 191// Translators: %d: Number of blocks being copied. 192(0,V._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):(0,V.nv)( 193// Translators: %d: Number of blocks being moved. 194// Translators: %d: Number of blocks being moved. 195(0,V._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(i,{type:"snackbar"})},[n,e,t])}();return(0,Ku.A)(b=>{function y(y){if(y.defaultPrevented)return;const v=n();if(0===v.length)return;const _="copy"===y.type&&!r()&&OI(y.target.ownerDocument,v[0]);if(!r()){const{ownerDocument:e}=y.target;if(("copy"===y.type||"cut"===y.type?LI(e):!!(S=e).activeElement&&(Rv(S.activeElement)||Mv(S.activeElement)||BI(S))&&!e.activeElement.isContentEditable)&&!_)return}var S;const{activeElement:C}=y.target.ownerDocument;if(!b.contains(C))return;const A=l(),E=a()||s()||_,I=!E&&!A;if("copy"===y.type||"cut"===y.type)if(y.preventDefault(),1===v.length&&f(v[0]),I)k();else{let n;if(w(y.type,v),E)n=t(v);else{const[e,r]=c();n=[e,...t(v.slice(1,v.length-1)),r]}oI(y,n,e)}if("cut"===y.type)E&&!I?p(v):(iI(y.target.ownerDocument.activeElement,!1),g());else if("paste"===y.type){const{__experimentalCanUserUseUnfilteredHTML:e,mediaUpload:t}=o();if("true"===y.clipboardData.getData("rich-text"))return;const{plainText:n,html:a,files:l}=yS(y),c=s();let f=[];if(l.length){if(!t)return void y.preventDefault();const e=(0,h.XD)("from");f=l.reduce((t,n)=>{const r=(0,h.wG)(e,e=>"files"===e.type&&e.isMatch([n]));return r&&t.push(r.transform([n])),t},[]).flat()}else f=(0,h.Gk)({HTML:a,plainText:n,mode:c?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:e});if("string"==typeof f)return;if(c)return m(v,f,f.length-1,-1),void y.preventDefault();if(!r()&&OI(y.target.ownerDocument,v[0]))return m(v,f,f.length-1,-1),void y.preventDefault();if(!r()&&!(0,h.pN)(i(v[0]),"splitting",!1)&&!y.__deprecatedOnSplit)return;const[p]=v,g=d(p),b=[];for(const e of f)if(u(e.name,g))b.push(e);else{const t=i(g),n=e.name!==t?(0,h.bh)(e,t):[e];if(!n)return;for(const e of n)for(const t of e.innerBlocks)b.push(t)}x(b),y.preventDefault()}}return b.ownerDocument.addEventListener("copy",y),b.ownerDocument.addEventListener("cut",y),b.ownerDocument.addEventListener("paste",y),()=>{b.ownerDocument.removeEventListener("copy",y),b.ownerDocument.removeEventListener("cut",y),b.ownerDocument.removeEventListener("paste",y)}},[])}var MI=(0,b.forwardRef)(function({children:e,...t},n){const[r,o,i]=function(){const[e,t,n]=fI(),r=(0,R.A)(e=>e(fl).hasMultiSelection(),[]);return[e,(0,$l.A)([pI(),t,rk(),RI(),jI(),sI(),aI(),SI(),TI(),NI(),cI(),_I(),kI(),xI(),(0,Ku.A)(e=>(e.tabIndex=0,e.dataset.hasMultiSelection=r,r?(e.setAttribute("aria-label",(0,V.__)("Multiple selected blocks")),()=>{delete e.dataset.hasMultiSelection,"true"===e.contentEditable?e.setAttribute("aria-label",(0,V.__)("Editor canvas")):e.removeAttribute("aria-label")}):()=>{delete e.dataset.hasMultiSelection}),[r])]),n]}();return(0,Be.jsxs)(Be.Fragment,{children:[r,(0,Be.jsx)("div",{...t,ref:(0,$l.A)([o,n]),className:(0,g.A)(t.className,"block-editor-writing-flow"),children:e}),i]})}),PI=n(4349),DI=n(6185);var zI=x(e=>function({useSubRegistry:t=!0,...n}){const r=(0,v.A)(),[o]=(0,b.useState)(()=>new WeakMap),i=function(e,t,n){if(!n)return t;let r=e.get(t);return r||(r=(0,PI.I)({},t),r.registerStore(De,dl),e.set(t,r)),r}(o,r,t);return i===r?(0,Be.jsx)(e,{registry:r,...n}):(0,Be.jsx)(DI.Ay,{value:i,children:(0,Be.jsx)(e,{registry:i,...n})})},"withRegistryProvider");function FI(){return null}FI.Register=function(){const{registerShortcut:e,unregisterShortcut:t}=(0,y.A)(Z_),[n]=ml("blockVisibility.allowEditing");return(0,b.useEffect)(()=>
195{e({name:"core/block-editor/copy",category:"block",description:(0,V.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,V.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,V.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,V.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,V.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,V.__)("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,V.__)("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,V.__)("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,V.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,V.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,V.__)("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,V.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,V.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,V.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,V.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,V.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,V.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,V.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),!1===n?t("core/block-editor/toggle-block-visibility"):e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,V.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,V.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e,t,n]),null};var $I=FI;function VI({entry:e,apply:t}){return eS(e.name,n=>{n.defaultPrevented||t(e)&&n.preventDefault()}),null}function HI({shortcuts:e}){const{registerShortcut:t,unregisterShortcut:n}=(0,y.A)(Z_),r=(0,b.useRef)(new Map);return(0,b.useEffect)(()=>{const o=new Map,i=new Map;for(const n of e){const e={name:n.name,category:"block",description:n.description,keyCombination:n.keyCombination,aliases:n.aliases},r=JSON.stringify(e),s=o.get(n.name);if(void 0!==s){s!==r&&(0,ac.A)(`Block keyboard shortcut "${n.name}" is declared more than once with different settings.`);continue}const{modifier:a,character:l}=n.keyCombination,c=`${a??""}+${l}`;i.has(c)&&(0,ac.A)(`Block keyboard shortcut "${n.name}" uses the same key combination as "${i.get(c)}".`),i.set(c,n.name),t(e),o.set(n.name,r)}for(const e of r.current.keys())o.has(e)||n(e);r.current=o},[e,t,n]),null}function WI(){const e=(0,R.A)(e=>ue(e(h.M_)).getBlockKeyboardShortcuts(),[]),t=function(){const{getBlock:e,getBlockName:t,getBlockAttributes:n,getBlockEditingMode:r,getSelectedBlockClientId:o}=(0,R.A)(fl),{getBlockVariations:i,getActiveBlockVariation:s}=(0,R.A)(h.M_),{replaceBlocks:a,updateBlockAttributes:l}=(0,y.A)(fl);return(0,b.useCallback)(({targetBlockName:c,blockNames:u,variationName:d})=>{const f=o();if(!f)return!1;if("default"!==r(f))return!1;const p=t(f);if(!u.includes(p))return!1;const m=d?i(c)?.find(({name:e})=>e===d):void 0;if(p===c){if(!m?.attributes)return!1;const e=s(c,n(f));return e?.name!==d&&l(f,m.attributes),!0}const g=e(f);if(!g)return!1;let b=m?(0,h.bh)(g,c,m.name):null;return b||(b=(0,h.bh)(g,c),b&&m?.attributes&&(b=b.map(e=>e.name===c?{...e,attributes:{...e.attributes,...m.attributes}}:e))),!!b&&(a(f,b),!0)},[e,t,n,r,o,i,s,a,l])}();return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(HI,{shortcuts:e}),e.map((e,n)=>(0,Be.jsx)(VI,{entry:e,apply:t},`${e.name}-${n}`))]})}var UI=function(e={}){return(0,b.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])},KI=()=>{},GI=!1,qI=null,ZI=null,YI=["image/heic","image/heif"];function XI(e,t,n){return!t&&e.length>1&&(n((0,V.__)("Only one file can be used here.")),!0)}function QI(){if(null!==qI)return qI;if(!window.__clientSideMediaProcessing)return qI=!1,!1;if("function"!=typeof Tl.detectClientSideMediaSupport)return qI=!1,!1;const e=(0,Tl.detectClientSideMediaSupport)();return e&&e.supported?(qI=!0,!0):(GI||(console.info(`Client-side media processing unavailable: ${e.reason}. Using server-side processing.`),GI=!0),qI=!1,!1)}function JI(e,t,{allowedTypes:n,additionalData:r={},filesList:o,onError:i=KI,onFileChange:s,onSuccess:a,onBatchSuccess:l,multiple:c=!0}){XI(o,c,i)||e.dispatch(Tl.store).addItems({files:Array.from(o),onChange:s,onSuccess:e=>{t?.[ie]?.(e),a?.(e)},onBatchSuccess:l,onError:e=>i("string"==typeof e?e:e?.message??""),additionalData:r,allowedTypes:n})}function eT(e,t,{allowedTypes:n,additionalData:r={},filesList:o,onError:i=KI,onFileChange:s,onSuccess:a,onBatchSuccess:l,multiple:c=!0}){if(XI(o,c,i))return;const u=Array.from(o),d=u.filter(e=>YI.includes(e.type)),f=u.filter(e=>!YI.includes(e.type)),p=d.length>0&&f.length>0&&t?.mediaUpload;let m=p?2:1;const g=p?()=>{m--,m<=0&&l?.()}:l;d.length>0&&e.dispatch(Tl.store).addItems({files:d,onChange:s,onSuccess:e=>{t?.[ie]?.(e),a?.(e)},onBatchSuccess:g,onError:e=>i("string"==typeof e?e:e?.message??""),additionalData:r,allowedTypes:n}),f.length>0&&t?.mediaUpload&&t.mediaUpload({allowedTypes:n,additionalData:r,filesList:f,onError:i,onFileChange:s,onSuccess:a,onBatchSuccess:g,multiple:c})}function tT(e){return Gk(e),null}var nT=zI(e=>{const{settings:t,registry:n,stripExperimentalSettings:r=!1}=e,o=UI(t),i=QI(),s=null!==ZI?ZI:QI()?(ZI=!1,!1):window.__clientSideMediaProcessing&&"function"==typeof Tl.isHeicCanvasSupported&&(0,Tl.isHeicCanvasSupported)()?(ZI=!0,!0):(ZI=!1,!1),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,c=(0,b.useMemo)(()=>
195{if(a&&t?.mediaUpload&&!l){const e=(i?JI:eT).bind(null,n,t);return e.__isMediaUploadInterceptor=!0,{...t,mediaUpload:e}}return t},[t,n,a,i,l]),{__experimentalUpdateSettings:u}=ue((0,y.A)(fl));(0,b.useEffect)(()=>{u({...c,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[c,r,u]);const d=(0,b.useRef)(e.selection);d.current=e.selection;const f=(0,b.useRef)(e.onChangeSelection??KI);f.current=e.onChangeSelection??KI;const p=(0,b.useMemo)(()=>({getSelection:()=>d.current,onChangeSelection:(...e)=>f.current(...e)}),[]),m=(0,Be.jsxs)(Al.Kq,{passthrough:!0,children:[!c?.isPreviewMode&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)($I.Register,{}),(0,Be.jsx)(WI,{})]}),(0,Be.jsx)(Zu,{children:e.children})]}),g=(0,Be.jsxs)(Vk.Provider,{value:p,children:[(0,Be.jsx)(tT,{clientId:e.clientId,value:e.value,onChange:e.onChange,onInput:e.onInput}),m]});return a&&!l?(0,Be.jsx)(Tl.MediaUploadProvider,{settings:o,useSubRegistry:!1,children:g}):g}),rT=e=>(0,Be.jsx)(nT,{...e,stripExperimentalSettings:!0,children:e.children}),oT={button:"wp-element-button",caption:"wp-element-caption"},iT=e=>oT[e]?oT[e]:"";function sT(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return aT(e,t,n);switch(typeof e){case"string":case"number":return}const{type:r,props:o}=e;switch(r){case b.StrictMode:case b.Fragment:return aT(o.children,t,n);case om.A:return;case ux.Content:return lT(t,n);case BS:return void t.push(o.value)}switch(typeof r){case"string":return void 0!==o.children?aT(o.children,t,n):void 0;case"function":return sT(r.prototype&&"function"==typeof r.prototype.render?new r(o).render():r(o),t,n)}}function aT(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)sT(e[n],...t)}function lT(e,t){for(let n=0;n<t.length;n++){const{name:r,attributes:o,innerBlocks:i}=t[n];sT((0,h.GD)(r,o,(0,Be.jsx)(ux.Content,{})),e,i)}}var cT=n(6457),uT=()=>{},dT="bottom",fT="corner";function pT({axis:e,fadeTimeout:t=180,onResize:n=uT,position:r=dT,showPx:o=!1}){const[i,s]=(0,Mh.A)(),a=!!e,[l,c]=(0,b.useState)(!1),[u,d]=(0,b.useState)(!1),{width:f,height:p}=s,m=(0,b.useRef)(p),g=(0,b.useRef)(f),h=(0,b.useRef)(void 0),y=(0,b.useCallback)(()=>{h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{a||(c(!1),d(!1))},t)},[t,a]);(0,b.useEffect)(()=>{if(!(null!==f||null!==p))return;const e=f!==g.current,t=p!==m.current;if(e||t){if(f&&!g.current&&p&&!m.current)return g.current=f,void(m.current=p);e&&(c(!0),g.current=f),t&&(d(!0),m.current=p),n({width:f,height:p}),y()}},[f,p,n,y]);const v=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=dT,showPx:i=!1,width:s}){if(!n&&!r)return;if(o===fT)return`${s} x ${t}`;const a=i?" px":"";if(e){if("x"===e&&n)return`${s}${a}`;if("y"===e&&r)return`${t}${a}`}if(n&&r)return`${s} x ${t}`;if(n)return`${s}${a}`;if(r)return`${t}${a}`;return}({axis:e,height:p,moveX:l,moveY:u,position:r,showPx:o,width:f});return{label:v,resizeListener:i}}var mT="data-wp-hash";function gT(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=gT();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)hT(e,n,r)}(document)),e.__wpStyleRuntime}function hT(e,t,n){if(!e.head)return;const r=gT();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${mT}]`))if(n.getAttribute(mT)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(mT,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=gT();n.styles.set(e,t);for(const r of n.documents.keys())hT(r,e,t)})("6a3e579287",".f1c3c2f08c84bcca__root{box-sizing:border-box;inset:0;pointer-events:none;position:absolute}.dd094b49bf71dfd9__tooltip-wrapper{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity .12s linear}.d768357cc581321f__tooltip{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;padding:4px 8px;position:relative}.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));
195display:block;font-size:13px;line-height:1.4;white-space:nowrap}");var bT="dd094b49bf71dfd9__tooltip-wrapper",yT="d768357cc581321f__tooltip",vT="a32e43dd68941abb__label-text";var kT=(0,b.forwardRef)(function({label:e,position:t=fT,zIndex:n=1e3,...r},o){const i=!!e,s=t===fT;if(!i)return null;let a={opacity:i?1:void 0,zIndex:n},l={};return t===dT&&(a={...a,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},l={transform:"translate(0, 100%)"}),s&&(a={...a,position:"absolute",top:4,right:(0,V.V8)()?void 0:4,left:(0,V.V8)()?4:void 0}),(0,Be.jsx)("div",{"aria-hidden":"true",className:(0,g.A)("components-resizable-tooltip__tooltip-wrapper",bT),ref:o,style:a,...r,children:(0,Be.jsx)("div",{className:(0,g.A)("components-resizable-tooltip__tooltip",yT),style:l,children:(0,Be.jsx)(my.A,{as:"span",className:vT,children:e})})})}),xT="data-wp-hash";function wT(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=wT();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)_T(e,n,r)}(document)),e.__wpStyleRuntime}function _T(e,t,n){if(!e.head)return;const r=wT();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${xT}]`))if(n.getAttribute(xT)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(xT,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=wT();n.styles.set(e,t);for(const r of n.documents.keys())_T(r,e,t)})("6a3e579287",".f1c3c2f08c84bcca__root{box-sizing:border-box;inset:0;pointer-events:none;position:absolute}.dd094b49bf71dfd9__tooltip-wrapper{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity .12s linear}.d768357cc581321f__tooltip{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;padding:4px 8px;position:relative}.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));display:block;font-size:13px;line-height:1.4;white-space:nowrap}");var ST="f1c3c2f08c84bcca__root",CT=()=>{};var AT=(0,b.forwardRef)(function({as:e="div",axis:t,className:n,fadeTimeout:r=180,isVisible:o=!0,labelRef:i,onResize:s=CT,position:a=dT,showPx:l=!0,zIndex:c=1e3,...u},d){const{label:f,resizeListener:p}=pT({axis:t,fadeTimeout:r,onResize:s,showPx:l,position:a});if(!o)return null;const m=(0,g.A)("components-resize-tooltip",ST,n);return(0,Be.jsxs)(cT.Z,{"aria-hidden":"true",as:e,...u,className:m,ref:d,children:[p,(0,Be.jsx)(kT,{"aria-hidden":u["aria-hidden"],label:f,position:a,ref:i,zIndex:c})]})}),ET="components-resizable-box__handle",IT="components-resizable-box__side-handle",TT="components-resizable-box__corner-handle",NT={top:(0,g.A)(ET,IT,"components-resizable-box__handle-top"),right:(0,g.A)(ET,IT,"components-resizable-box__handle-right"),bottom:(0,g.A)(ET,IT,"components-resizable-box__handle-bottom"),left:(0,g.A)(ET,IT,"components-resizable-box__handle-left"),topLeft:(0,g.A)(ET,TT,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:(0,g.A)(ET,TT,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:(0,g.A)(ET,TT,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:(0,g.A)(ET,TT,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},jT={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},BT={top:jT,right:jT,bottom:jT,left:jT,topLeft:jT,topRight:jT,bottomRight:jT,bottomLeft:jT};var LT=(0,b.forwardRef)(function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i}
195,s){return(0,Be.jsxs)(Tl.Resizable,{className:(0,g.A)("components-resizable-box__container",n&&"has-show-handle",e),handleComponent:Object.fromEntries(Object.keys(NT).map(e=>[e,(0,Be.jsx)("div",{tabIndex:-1},e)])),handleClasses:NT,handleStyles:BT,ref:s,...i,children:[t,r&&(0,Be.jsx)(AT,{...o})]})});LT.displayName="ResizableBox";var OT=LT;var RT=n(9546),MT=n(7454);var PT=function(e,t={step:1}){const{step:n=1}=t,[r,o]=(0,b.useState)([]);return(0,b.useEffect)(()=>{let t=function(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);t.length<n&&(t=t.concat(e.slice(t.length,n))),o(t);const i=(0,MT.y)();for(let r=t.length;r<e.length;r+=n)i.add({},()=>{(0,RT.qX)(()=>{o(t=>[...t,...e.slice(r,r+n)])})});return()=>i.reset()},[e]),r};var DT=(0,b.forwardRef)(function({isFirst:e,as:t,children:n,...r},o){return(0,Be.jsx)(RA.Item,{ref:o,role:"option",accessibleWhenDisabled:!0,...r,render:r=>{const o={...r,tabIndex:e?0:r.tabIndex};return t?(0,Be.jsx)(t,{...o,children:n}):"function"==typeof n?n(o):(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,...o,children:n})}})});var zT=(0,b.memo)(function({className:e,isFirst:t,item:n,onSelect:r,onHover:o,isDraggable:i,...s}){const a=(0,b.useRef)(!1),l=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,b.useMemo)(()=>[(0,h.Wv)(n.name,n.initialAttributes,(0,h.to)(n.innerBlocks),n.innerContent)],[n.name,n.initialAttributes,n.innerBlocks,n.innerContent]),u=(0,h.tk)(n)&&"unsynced"!==n.syncStatus||(0,h.gc)(n);return(0,Be.jsx)(MA,{isEnabled:i&&!n.isDisabled,blocks:c,icon:n.icon,children:({draggable:i,onDragStart:c,onDragEnd:d})=>(0,Be.jsx)("div",{className:(0,g.A)("block-editor-block-types-list__list-item",{"is-synced":u}),draggable:i,onDragStart:e=>{a.current=!0,c&&(o(null),c(e))},onDragEnd:e=>{a.current=!1,d&&d(e)},children:(0,Be.jsxs)(DT,{isFirst:t,className:(0,g.A)("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),r(n,(0,qw.H)()?e.metaKey:e.ctrlKey),o(null)},onKeyDown:e=>{const{keyCode:t}=e;t===Lg.Fm&&(e.preventDefault(),r(n,(0,qw.H)()?e.metaKey:e.ctrlKey),o(null))},onMouseEnter:()=>{a.current||o(n)},onMouseLeave:()=>o(null),...s,children:[(0,Be.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,Be.jsx)(Wf,{icon:n.icon,showColors:!0})}),(0,Be.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,Be.jsx)(Cw,{numberOfLines:3,children:n.title})})]})})})});var FT=(0,b.forwardRef)(function(e,t){const[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{n&&(0,Ji.L)((0,V.__)("Use left and right arrow keys to move through blocks"))},[n]),(0,Be.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)},...e})});var $T=(0,b.forwardRef)(function(e,t){return(0,Be.jsx)(RA.Group,{role:"presentation",ref:t,...e})});function VT(e,t){const n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}var HT=function e({items:t=[],onSelect:n,onHover:r=()=>{},children:o,label:i,isDraggable:s=!0}){const a="block-editor-block-types-list",l=(0,Ul.A)(e,a);return(0,Be.jsxs)(FT,{className:a,"aria-label":i,children:[VT(t,3).map((e,t)=>(0,Be.jsx)($T,{children:e.map((e,o)=>(0,Be.jsx)(zT,{item:e,className:(0,h.HK)(e.id),onSelect:n,onHover:r,isDraggable:s&&!e.isDisabled,isFirst:0===t&&0===o,rowId:`${l}-${t}`},e.id))},t)),o]})},{Fill:WT,Slot:UT}=(0,Al.QJ)("__unstableInserterMenuExtension");WT.Slot=UT;var KT=WT;var GT=function({title:e,icon:t,children:n}){return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,Be.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,Be.jsx)(zl.A,{icon:t})]}),(0,Be.jsx)("div",{className:"block-editor-inserter__panel-content",children:n})]})};var qT=function({children:e=(0,V.__)("No results found.")}){return(0,Be.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,Be.jsx)("p",{children:e})})};function ZT({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:r}){if(n===e)return t;const o=["",...r.select(fl).getBlockParents(e),e],i=o.indexOf(n);return-1!==i?r.select(fl).getBlockIndex(o[i+1])+1:r.select(fl).getBlockOrder(n).length}var YT=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:r,onSelect:o,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){const a=(0,v.A)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:c,getBlockInsertionPoint:u}=ue((0,R.A)(fl)),{destinationRootClientId:d,destinationIndex:f}=(0,R.A)(o=>
195{const{getSelectedBlockClientId:i,getBlockRootClientId:s,getBlockIndex:a,getBlockOrder:l,getInsertionPoint:c}=ue(o(fl)),u=i();let d,f=e;const p=c();return void 0!==t?d=t:p&&p.hasOwnProperty("index")?(f=p?.rootClientId?p.rootClientId:e,d=p.index):n?d=a(n):!r&&u?(f=s(u),d=a(u)+1):d=l(f).length,{destinationRootClientId:f,destinationIndex:d}},[e,t,n,r]),{replaceBlocks:p,insertBlocks:m,showInsertionPoint:g,hideInsertionPoint:k,setLastFocus:x}=ue((0,y.A)(fl)),w=(0,b.useCallback)((e,t,n=!1,c)=>{(n||i||s)&&x(null);const u=l();!r&&u&&(0,h.Xw)(u,"content")?p(u.clientId,e,null,i||n?0:null,t):m(e,r||void 0===c?f:ZT({destinationRootClientId:d,destinationIndex:f,rootClientId:c,registry:a}),r||void 0===c?d:c,s,i||n?0:null,t);const g=Array.isArray(e)?e.length:1,b=(0,V.nv)( 196// translators: %d: the name of the block that has been added 197// translators: %d: the name of the block that has been added 198(0,V._n)("%d block added.","%d blocks added.",g),g);(0,Ji.L)(b),o&&o(e)},[r,l,p,m,d,f,o,i,s,x,a]),_=(0,b.useCallback)(e=>{if(e){const t=c(e.name,d);null!==t&&g(t,ZT({destinationRootClientId:d,destinationIndex:f,rootClientId:t,registry:a}))}else u()?.__unstableWithInserter||k()},[c,u,g,k,d,f,a]);return[d,w,_]},XT=(e,t,n,r)=>{const o=(0,b.useMemo)(()=>({[vr]:!!r}),[r]),i=(0,R.A)(e=>{const{getSettings:t}=ue(e(fl));return t()[re]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,R.A)(e=>{const{getSettings:n,__experimentalGetAllowedPatterns:r}=ue(e(fl)),i=n(),s=i[X];return{patterns:r(t,o),userPatternCategories:s?s(e):i.__experimentalUserPatternCategories,patternCategories:i.__experimentalBlockPatternCategories}},[t,o]),c=(0,b.useMemo)(()=>a.filter(e=>{const t=e.categories?.includes("navigation");return!(t&&!i)}),[a,i]),{getClosestAllowedInsertionPointForPattern:u}=ue((0,R.A)(fl)),d=(0,b.useMemo)(()=>{const e=[...s];return l?.forEach(t=>{e.find(e=>e.name===t.name)||e.push(t)}),e},[s,l]),{createSuccessNotice:f}=(0,y.A)(Ws),p=(0,b.useCallback)((o,i)=>{const s=r?t:u(o,t);if(null===s)return;const a=o.type===ur&&"unsynced"!==o.syncStatus?[(0,h.Wv)("core/block",{ref:o.id})]:i;e((a??[]).map(e=>{const t=(0,h.JB)(e);return t.attributes.metadata?.categories?.includes(n)&&(t.attributes.metadata.categories=[n]),t}),o.name,!1,s),f((0,V.nv)( 199/* translators: %s: block pattern title. */ 200/* translators: %s: block pattern title. */ 201(0,V.__)('Pattern "%s" inserted.'),o.title),{type:"snackbar",id:"inserter-notice"})},[f,e,n,t,u,r]);return[c,d,p]};function QT({key:e,children:t}){return(0,Be.jsx)(b.Fragment,{children:t},e)}var JT=function({children:e}){return(0,Be.jsx)(RA,{focusShift:!0,focusWrap:"horizontal",render:QT,children:e})},eN=[];var tN=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:r,rootClientId:o,clientId:i,isAppender:s,__experimentalInsertionIndex:a,maxBlockPatterns:l,maxBlockTypes:c,showBlockDirectory:u=!1,isDraggable:d=!0,shouldFocusBlock:f=!0,prioritizePatterns:p,selectBlockOnInsert:m,isQuick:g}){const h=Vf(Ji.L,500),{prioritizedBlocks:y}=(0,R.A)(e=>{const t=e(fl).getBlockListSettings(o);return{prioritizedBlocks:t?.prioritizedInserterBlocks||eN}},[o]),[v,k]=YT({onSelect:t,rootClientId:o,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:f,selectBlockOnInsert:m}),[x,w,_,S]=A_(v,k,g),[C,,A]=XT(k,v,void 0,g),E=(0,b.useMemo)(()=>{if(0===l)return[];const t=S_(C,e);return void 0!==l?t.slice(0,l):t},[e,C,l]);let I=c;p&&E.length>2&&(I=0);const T=(0,b.useMemo)(()=>{if(0===I)return[];let t=Nr(x.filter(e=>"core/block"!==e.name),"frecency","desc");!e&&y.length&&(t=E_(t,y));const n=w_(t,w,_,e);return void 0!==I?n.slice(0,I):n},[e,x,w,_,I,y]);(0,b.useEffect)(()=>{if(!e)return;const t=T.length+E.length,n=(0,V.nv)( 202/* translators: %d: number of results. */ 203/* translators: %d: number of results. */ 204(0,V._n)("%d result found.","%d results found.",t),t);h(n)},[e,h,T,E]);const N=PT(T,{step:9}),j=T.length>0||E.length>0,B=!!T.length&&(0,Be.jsx)(GT,{title:(0,Be.jsx)(Rw.s,{children:(0,V.__)("Blocks")}),children:(0,Be.jsx)(HT,{items:N,onSelect:S,onHover:n,label:(0,V.__)("Blocks"),isDraggable:d})}),L=!!E.length&&(0,Be.jsx)(GT,{title:(0,Be.jsx)(Rw.s,{children:(0,V.__)("Patterns")}),children:(0,Be.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,Be.jsx)($A,{blockPatterns:E,onClickPattern:A,onHover:r,isDraggable:d})})});return(0,Be.jsxs)(JT,{children:[!u&&!j&&(0,Be.jsx)(qT,{}),p?L:B,!!T.length&&!!E.length&&(0,Be.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),p?B:L,u&&(0,Be.jsx)(KT.Slot,{fillProps:{onSelect:S,onHover:n,filterValue:e,hasItems:j,rootClientId:v},children:e=>e.length?e:j?null:(0,Be.jsx)(qT,{})})]})};var{Fill:nN,Slot:rN}=(0,Al.QJ)(Symbol("InspectorControlsLastItem")),oN=e=>O()[S]?(0,Be.jsx)(nN,{...e}):null;oN.Slot=function(e){return(0,Be.jsx)(rN,{...e})};var iN=oN,sN=n(4103);function aN({clientId:e,onSelect:t,onSwitchToListView:n,hasListViewTab:r}){const o=Qg(e),{isSelected:i,childBlocks:s,shouldRenderListView:a,blockName:l}=(0,R.A)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r,getBlockOrder:o,getBlockName:i,shouldRenderBlockListView:s}=ue(t(fl)),a=i(e);return{isSelected:n(e)||r(e,!0),childBlocks:o(e),shouldRenderListView:s(e),blockName:a}},[e]),c=(0,h.E7)(l),u=wE({clientId:e,context:"list-view"})||c?.title||l,{selectBlock:d}=(0,y.A)(fl),f=s&&s.length>0&&r&&a;return(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,className:"block-editor-block-quick-navigation__item",isPressed:i,onClick:async()=>{await d(e),f&&n&&n(e),t&&t(e)},children:(0,Be.jsxs)(mf.A,{children:[(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(Wf,{icon:o?.icon})}),(0,Be.jsx)(sN.A,{style:{textAlign:"left"},children:(0,Be.jsx)(Cw,{children:u})}),f&&(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(Og.A,{icon:yC,size:24})})]})})}var lN=n(6069),cN=[{label:(0,V._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,V._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,V._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,V._x)("Full Size","Image size option for resolution control"),value:"full"}];var uN=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M4 5H20M4 12H20M4 19H16.5",vectorEffect:"non-scaling-stroke"})});var dN=(0,b.forwardRef)(function(e,t){Ih("ToggleGroupControlOptionIcon");const{icon:n,label:r,...o}=e;return(0,Be.jsx)(db,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t,children:(0,Be.jsx)(zl.A,{icon:n})})});dN.displayName="ToggleGroupControlOptionIcon";var fN=dN,pN=[{label:(0,V.__)("Align text left"),value:"left",icon:Kp},{label:(0,V.__)("Align text center"),value:"center",icon:Gp},{label:(0,V.__)("Align text right"),value:"right",icon:qp},{label:(0,V.__)("Justify text"),value:"justify",icon:uN}],mN=["left","center","right"];const gN={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},hN=new Set(["combinator","comma"]),bN=(new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(gN[e].source.replace("(?<argument>¶*)","(?<argument>.*)"),"gu");default:return gN[e]}});function yN(e,t){let n=0,r="";for(;t<e.length;t++){const o=e[t];switch(o){case"(":++n;break;case")":--n}if(r+=o,0===n)return r}return r}const vN=/(['"])([^\\\n]*?)\1/g,kN=/\\./g;function xN(e,t=gN){if(""===(e=e.trim()))return[];const n=[];e=e.replace(kN,(e,t)=>(n.push({value:e,offset:t}),"î".repeat(e.length))),e=e.replace(vN,(e,t,r,o)=>(n.push({value:e,offset:o}),`${t}${"î".repeat(r.length)}${t}`));{let t,r=0;for(;(t=e.indexOf("(",r))>-1;){const o=yN(e,t);n.push({value:o,offset:t}),e=`${e.substring(0,t)}(${"¶".repeat(o.length-2)})${e.substring(t+o.length)}`,r=t+o.length}}const r=function(e,t=gN){if(!e)return[];const n=[e];for(const[e,r]of Object.entries(t))for(let t=0;t<n.length;t++){const o=n[t];if("string"!=typeof o)continue;r.lastIndex=0;const i=r.exec(o);if(!i)continue;const s=i.index-1,a=[],l=i[0],c=o.slice(0,s+1);c&&a.push(c),a.push({...i.groups,type:e,content:l});const u=o.slice(s+l.length+1);u&&a.push(u),n.splice(t,1,...a)}let r=0;for(const e of n)switch(typeof e){case"string":throw new Error(`Unexpected sequence ${e}
204 found at index ${r}`);case"object":r+=e.content.length,e.pos=[r-e.content.length,r],hN.has(e.type)&&(e.content=e.content.trim()||" ")}return n}(e,t),o=new Set;for(const e of n.reverse())for(const t of r){const{offset:n,value:r}=e;if(!(t.pos[0]<=n&&n+r.length<=t.pos[1]))continue;const{content:i}=t,s=n-t.pos[0];t.content=i.slice(0,s)+r+i.slice(s+r.length),t.content!==i&&o.add(t)}for(const e of o){const t=bN(e.type);if(!t)throw new Error(`Unknown token type: ${e.type}`);t.lastIndex=0;const n=t.exec(e.content);if(!n)throw new Error(`Unable to parse content for ${e.type}: ${e.content}`);Object.assign(e,n.groups)}return r}function wN(e){if(Array.isArray(e))return e.map(e=>e.content).join("");switch(e.type){case"list":return e.list.map(wN).join(",");case"relative":return e.combinator+wN(e.right);case"complex":return wN(e.left)+e.combinator+wN(e.right);case"compound":return e.list.map(wN).join("");default:return e.content}}var _N=n(5389),SN=n(9310),CN=new Map,AN=[{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 EN({css:e,ignoredSelectors:t=[],baseURL:n},r="",o){if(!r&&!n)return e;try{const i=[...t,...o?.ignoredSelectors??[],r];return new Tl([r&&_N({prefix:r,transform(e,t,n){if(i.some(e=>e instanceof RegExp?t.match(e):t.includes(e)))return t;return AN.some(e=>t.startsWith(e.content))?function(e,t){const n=xN(t);let r=-1;for(let e=n.findLastIndex(({content:e,type:t})=>AN.some(n=>e===n.content&&t===n.type))+1;e<n.length;e++)if("combinator"===n[e].type){r=e;break}const o=xN(e);return n.splice(-1===r?n.length:r,0,{type:"combinator",content:" ",pos:[0,0]},...o),wN(n)}(e,t):n}}),n&&SN({rootUrl:n})].filter(Boolean)).process(e,{}).css}catch(e){return e instanceof Tl?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e.message+"\n"+e.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e),null}}var IN=(e,t="",n)=>{let r=CN.get(t);return r||(r=new WeakMap,CN.set(t,r)),e.map(e=>{let o=r.get(e);return o||(o=EN(e,t,n),r.set(e,o)),o})};function TN(e,t){return(0,b.useCallback)(e=>{if(!e)return;const{ownerDocument:n}=e,{defaultView:r,body:o}=n,i=t?n.querySelector(t):o;let s;if(i)s=r?.getComputedStyle(i,null).getPropertyValue("background-color");else{const e=n.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),s=r?.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const a=(0,We.Mj)(s);a.luminance()>.5||0===a.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")},[e,t])}(0,We.X$)([Wu.A,Hu.A]);var NN=(0,b.memo)(function({styles:e,scope:t,transformOptions:n}){const r=(0,R.A)(e=>ue(e(fl)).getStyleOverrides(),[]),[o,i]=(0,b.useMemo)(()=>{const o=Object.values(e??[]),i=[...r.filter(([,e])=>"custom-css"!==e?.__unstableType),...r.filter(([,e])=>"custom-css"===e?.__unstableType)];for(const[e,t]of i){const n=o.findIndex(({id:t})=>e===t),r={...t,id:e};-1===n?o.push(r):o[n]=r}return[IN(o.filter(e=>e?.css),t,n),o.filter(e=>"svgs"===e.__unstableType).map(e=>e.assets).join("")]},[e,r,t,n]);return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("style",{ref:TN(o,t)}),o.map((e,t)=>(0,Be.jsx)("style",{children:e},t)),(0,Be.jsx)(je.t4,{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}})]})}),jN=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),BN=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),LN=()=>function(){const{replaceBlocks:e,multiSelect:t}=(0,y.A)(fl),{blocks:n,clientIds:r,canRemove:o,possibleBlockTransformations:i,invalidSelection:s}=(0,R.A)(e=>
204{const{getBlockRootClientId:t,getBlockTransformItems:n,getSelectedBlockClientIds:r,getBlocksByClientId:o,canRemoveBlocks:i}=e(fl),s=r(),a=o(s);if(a.filter(e=>!e).length>0)return{invalidSelection:!0};return{blocks:a,clientIds:s,possibleBlockTransformations:n(a,t(s[0])),canRemove:i(s),invalidSelection:!1}},[]);if(s)return{isLoading:!1,commands:[]};const a=1===n.length&&(0,h.gc)(n[0]);function l(o,i){const s=(0,h.bh)(n,o,i);var a;e(r,s),(a=s).length>1&&t(a[0].clientId,a[a.length-1].clientId)}const c=!!i.length&&o&&!a;if(!r||r.length<1||!c)return{isLoading:!1,commands:[]};return{isLoading:!1,commands:i.map(e=>{const{id:t,name:n,title:r,icon:o,variationName:i}=e,s=o?.src&&"block-default"!==o?.src?o:{src:Hf};return{name:"core/block-editor/transform-to-"+(t||n).replace(/\//g,"-"), 205/* translators: %s: Block or block variation name. */ 206label:(0,V.nv)((0,V.__)("Transform to %s"),r),icon:s?.src,category:"command",callback:({close:e})=>{l(n,i),e()}}})}},ON=(0,Al.QJ)(Symbol("BlockCanvasCover"));function RN({children:e}){return(0,Be.jsx)("div",{className:"block-canvas-cover",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:e})}var MN={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function PN({shouldIframe:e=!0,height:t="300px",children:n=(0,Be.jsx)(Pk,{}),styles:r,contentRef:o,iframeProps:i}){(0,Tl.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:LN()}),(0,Tl.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:function(){const{clientIds:e,isUngroupable:t,isGroupable:n,blockVisibilitySetting:r}=(0,R.A)(e=>{const{getSelectedBlockClientIds:t,getSettings:n,isUngroupable:r,isGroupable:o}=e(fl);return{clientIds:t(),isUngroupable:r(),isGroupable:o(),blockVisibilitySetting:n().__experimentalFeatures?.blockVisibility?.allowEditing}},[]),{canInsertBlockType:o,getBlockRootClientId:i,getBlocksByClientId:s,canRemoveBlocks:a,isBlockHiddenAnywhere:l}=ue((0,R.A)(fl)),{getBlockEditingMode:c}=(0,R.A)(fl),{getDefaultBlockName:u,getGroupingBlockName:d}=(0,R.A)(h.M_),f=s(e),p=(0,y.A)(fl),{removeBlocks:m,replaceBlocks:g,duplicateBlocks:b,insertAfterBlock:v,insertBeforeBlock:k}=p,x=()=>{if(!f.length)return;const t=d(),n=YC(f,t);n&&g(e,n)},w=()=>{if(!f.length)return;const t=f[0].innerBlocks;t.length&&g(e,t)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const{showViewportModal:_}=ue(p),S=i(e[0]),C=o(u(),S),A=f.every(e=>!!e&&(0,h.pN)(e.name,"multiple",!0)&&o(e.name,S)),E=a(e),I=[];A&&I.push({name:"duplicate",label:(0,V.__)("Duplicate"),callback:()=>b(e,!0),icon:QA}),C&&I.push({name:"add-before",label:(0,V.__)("Add before"),callback:()=>{const t=Array.isArray(e)?e[0]:t;k(t)},icon:Wy.A},{name:"add-after",label:(0,V.__)("Add after"),callback:()=>{const t=Array.isArray(e)?e[e.length-1]:t;v(t)},icon:Wy.A}),n&&I.push({name:"Group",label:(0,V.__)("Group"),callback:x,icon:KC}),t&&I.push({name:"ungroup",label:(0,V.__)("Ungroup"),callback:w,icon:jN}),E&&I.push({name:"remove",label:(0,V.__)("Delete"),callback:()=>m(e,!0),icon:BN});const T=f.every(e=>!!e&&(0,h.pN)(e.name,"visibility",!0)),N=e.every(e=>"default"===c(e));if(T&&N&&!1!==r){const t=e.some(e=>l(e));I.push({name:"toggle-visibility",label:t?(0,V.__)("Show"):(0,V.__)("Hide"),callback:()=>_(e),icon:t?WC:HC})}return{isLoading:!1,commands:I.map(e=>({...e,name:"core/block-editor/action-"+e.name,category:"command",callback:({close:t})=>{e.callback(),t()}}))}},context:"block-selection-edit"});const s=(0,Bu.A)("medium","<"),a=eI(),l=Nk(),c=(0,b.useRef)(),u=(0,$l.A)([o,l,c,tI()]),d=(0,R.A)(e=>ue(e(fl)).getZoomLevel(),[]),f=100===d||s?{}:{scale:d,frameSize:"40px"};return e?(0,Be.jsx)(QE,{__unstableContentRef:c,style:{height:t,display:"flex"},children:(0,Be.jsxs)(Tl,{...i,...f,ref:a,contentRef:u,style:{...i?.style},name:"editor-canvas",children:[(0,Be.jsx)(ON.Slot,{fillProps:{containerRef:c},children:e=>e.map((e,t)=>(0,Be.jsx)(RN,{children:e},t))}),(0,Be.jsx)(NN,{styles:r}),n]})}):(0,Be.jsxs)(QE,{__unstableContentRef:c,style:{height:t,display:"flex"},children:[(0,Be.jsx)(ON.Slot,{fillProps:{containerRef:c},children:e=>e.map((e,t)=>(0,Be.jsx)(RN,{children:e},t))}),(0,Be.jsx)(NN,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:MN}),(0,Be.jsx)(MI,{ref:u,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%",overflow:"auto"},children:n})]})}function DN(e=""){const[t,n]=(0,b.useState)(e),[r,o]=(0,b.useState)(e),i=Vf(o,250);return(0,b.useEffect)(()=>{i(t)},[t,i]),[t,n,r]}var zN=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M8 18.25L16 18.25M10 21.25H14M18 9C18 12.3137 15.3137 15 12 15C8.68629 15 6 12.3137 6 9C6 5.68629 8.68629 3 12 3C15.3137 3 18 5.68629 18 9Z",vectorEffect:"non-scaling-stroke"})});var FN=function(e){const{children:t}=e;return(0,Be.jsxs)("div",{className:"components-tip",children:[(0,Be.jsx)(Og.A,{icon:zN}),(0,Be.jsx)("p",{children:t})]})},$N=[(0,Px.A)((0,V.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,Be.jsx)("kbd",{})}),(0,Px.A)((0,V.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,Be.jsx)("kbd",{})}),(0,Px.A)((0,V.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,Be.jsx)("kbd",{})}),(0,V.__)("Drag files into the editor to automatically insert media blocks."),(0,V.__)("Change a block's type by pressing the block icon on the toolbar.")];var VN=function(){const[e]=(0,b.useState)(()=>Math.floor(Math.random()*$N.length));return(0,Be.jsx)(FN,{children:$N[e]})},HN=n(7123),WN=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M20 12L5 12M10 7L5 12L10 17",vectorEffect:"non-scaling-stroke"})}),UN=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Be.jsx)(je.wA,{d:"M4 12L19
20612M14 17L19 12L14 7",vectorEffect:"non-scaling-stroke"})}),{Badge:KN}=ue(nc);function GN({children:e,onClick:t}){return t?(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}var qN=function({title:e,icon:t,description:n,blockType:r,className:o,name:i,allowParentNavigation:s,parentClientId:a,isChild:l,children:c,clientId:u,controls:d}){r&&((0,$.A)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r));const{parentBlockClientId:f,parentBlockName:p}=(0,R.A)(e=>{if(a||l||!s)return{};const{getBlockParents:t,getBlockName:n,shouldRenderBlockListView:r}=ue(e(fl)),o=t(u,!1).find(e=>r(e));return{parentBlockClientId:o,parentBlockName:o?n(o):null}},[u,s,l,a]),{selectBlock:m}=(0,y.A)(fl),b=a?"div":"h2";return(0,Be.jsx)("div",{className:(0,g.A)("block-editor-block-card",{"is-parent":a,"is-child":l},o),children:(0,Be.jsxs)(HN.B,{direction:"column",gap:"sm",children:[(0,Be.jsxs)(HN.B,{direction:"row",align:"center",justify:"space-between",children:[(0,Be.jsxs)(HN.B,{direction:"row",align:"center",justify:"flex-start",children:[f&&(0,Be.jsx)(yc.A,{onClick:()=>m(f),label:p?(0,V.nv)( 207/* translators: %s: The name of the parent block. */ 208/* translators: %s: The name of the parent block. */ 209(0,V.__)('Go to "%s" block'),(0,h.E7)(p)?.title):(0,V.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,V.V8)()?yC:vC,size:"small"}),l&&(0,Be.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,Be.jsx)(zl.A,{icon:(0,V.V8)()?WN:UN})}),(0,Be.jsxs)(GN,{onClick:a?()=>{m(a)}:void 0,children:[(0,Be.jsx)(Wf,{icon:t,showColors:!0}),(0,Be.jsxs)(HN.B,{direction:"column",gap:"xs",children:[(0,Be.jsxs)(b,{className:"block-editor-block-card__title",children:[(0,Be.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,Be.jsx)(KN,{children:e})]}),c]})]})]}),d]}),!a&&!l&&n&&(0,Be.jsx)(Cf,{className:"block-editor-block-card__description",children:n})]})})};var ZN=function({item:e}){const{name:t,title:n,icon:r,description:o,initialAttributes:i,example:s}=e,a=(0,h.tk)(e),l=(0,b.useMemo)(()=>s?(0,h.KL)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks,innerContent:s.innerContent}):(0,h.Wv)(t,i),[t,s,i]),c=144,u=s?.viewportWidth??500,d=280/u,f=0!==d&&d<1?c/d:c;return(0,Be.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,Be.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,Be.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,Be.jsx)(Tl,{blocks:l,viewportWidth:u,minHeight:c,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\t\t\tbody { \n\t\t\t\t\t\t\t\t\t\t\tpadding: 24px;\n\t\t\t\t\t\t\t\t\t\t\tmin-height:${Math.round(f)}px;\n\t\t\t\t\t\t\t\t\t\t\tdisplay:flex;\n\t\t\t\t\t\t\t\t\t\t\talign-items:center;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t.is-root-container { width: 100%; }\n\t\t\t\t\t\t\t\t\t`}]})}):(0,Be.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,V.__)("No preview available.")})}),!a&&(0,Be.jsx)(qN,{title:n,icon:r,description:o})]})},YN=[];function XN({items:e,collections:t,categories:n,onSelectItem:r,onHover:o,showMostUsedBlocks:i,className:s}){const a=(0,b.useMemo)(()=>Nr(e,"frecency","desc").slice(0,6),[e]),l=(0,b.useMemo)(()=>e.filter(e=>!e.category),[e]),c=(0,b.useMemo)(()=>{const n={...t};return Object.keys(t).forEach(t=>{n[t]=e.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===n[t].length&&delete n[t]}),n},[e,t]);(0,b.useEffect)(()=>()=>o(null),[]);const u=PT(n),d=n.length===u.length,f=(0,b.useMemo)(()=>Object.entries(t),[t]),p=PT(d?f:YN);return(0,Be.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,Be.jsx)(GT,{title:(0,V._x)("Most used","blocks"),children:(0,Be.jsx)(HT,{items:a,onSelect:r,onHover:o,label:(0,V._x)("Most used","blocks")})}),u.map(t=>{const n=e.filter(e=>e.category===t.slug);return n&&n.length?(0,Be.jsx)(GT,{title:t.title,icon:t.icon,children:(0,Be.jsx)(HT,{items:n,onSelect:r,onHover:o,label:t.title})},t.slug):null}),d&&l.length>0&&(0,Be.jsx)(GT,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,V.__)("Uncategorized"),children:(0,Be.jsx)(HT,{items:l,onSelect:r,onHover:o,label:(0,V.__)("Uncategorized")})}),p.map(([e,t])=>{const n=c[e];return n&&n.length?(0,Be.jsx)(GT,{title:t.title,icon:t.icon,children:(0,Be.jsx)(HT,{items:n,onSelect:r,onHover:o,label:t.title})},e):null})]})}var QN=(0,b.forwardRef)(function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r},o){const[i,s,a,l]=A_(e,t);if(!i.length)return(0,Be.jsx)(qT,{});const c=[],u=[];for(const e of i)"reusable"!==e.category&&(e.isSearchOnly||(e.isAllowedInCurrentRoot?c.push(e):u.push(e)));return(0,Be.jsx)(JT,{children:(0,Be.jsxs)("div",{ref:o,children:[!!c.length&&(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)(XN,{items:c,categories:s,collections:a,onSelectItem:l,onHover:n,showMostUsedBlocks:r,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,Be.jsx)(XN,{items:u,categories:s,collections:a,onSelectItem:l,onHover:n,showMostUsedBlocks:r,className:"block-editor-inserter__all-blocks"})]})})});var JN=function({patternCategories:e,searchValue:t,setSearchValue:n}){return(0,Be.jsxs)(HN.B,{direction:"column",gap:"lg",className:"block-editor-block-patterns-explorer__sidebar",children:[(0,Be.jsx)(Df,{onChange:n,value:t,label:(0,V.__)("Search"),placeholder:(0,V.__)("Search")}),(0,Be.jsx)(Tl.List,{children:e.map(({name:e,label:t})=>(0,Be.jsx)(Tl.Tab,{value:e,children:t},e))})]})};function ej(e,t,n,r=""){const[o,i]=(0,b.useState)(1),s=(0,Nh.A)(t),a=(0,Nh.A)(r);s===t&&a===r||1===o||i(1);const l=e.length,c=o-1,u=(0,b.useMemo)(()=>e.slice(20*c,20*c+20),[c,e]),d=Math.ceil(e.length/20);return(0,b.useEffect)(function(){const e=Em(n?.current);e?.scrollTo(0,0)},[t,n]),{totalItems:l,categoryPatterns:u,numPages:d,changePage:e=>{const t=Em(n?.current);t?.scrollTo(0,0),i(e)},currentPage:o}}var tj=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:r,onModalClose:o}){const i=(0,b.useRef)(),s=Vf(Ji.L,500),[a,l]=YT({rootClientId:r,shouldFocusBlock:!0}),[c,,u]=XT(l,a,t),d=(0,b.useMemo)(()=>n.map(e=>e.name),[n]),f=(0,b.useMemo)(()=>{const n=c.filter(e=>{if(t===gr.name)return!0;
209if(t===hr.name&&e.type===ur)return!0;if(t===br.name&&e.blockTypes?.includes("core/post-content"))return!0;if("uncategorized"===t){const t=e.categories?.some(e=>d.includes(e))??!1;return!e.categories?.length||!t}return e.categories?.includes(t)});return e?S_(n,e):n},[e,c,t,d]);(0,b.useEffect)(()=>{if(!e)return;const t=f.length,n=(0,V.nv)( 210/* translators: %d: number of results. */ 211/* translators: %d: number of results. */ 212(0,V._n)("%d result found.","%d results found.",t),t);s(n)},[e,s,f.length]);const p=ej(f,t,i),[m,g]=(0,b.useState)(e);e!==m&&(g(e),p.changePage(1));const h=!!f?.length;return(0,Be.jsx)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:h?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)($A,{blockPatterns:p.categoryPatterns,onClickPattern:(e,t)=>{u(e,t),o()},isDraggable:!1}),(0,Be.jsx)(PA,{...p})]}):(0,Be.jsx)(Cf,{render:(0,Be.jsx)("p",{}),className:"block-editor-block-patterns-explorer__no-results",children:(0,V.__)("No results found.")})})};function nj(e,t="all"){const[n,r]=XT(void 0,e),o=(0,b.useMemo)(()=>"all"===t?n:n.filter(e=>!yr(e,t)),[t,n]);return(0,b.useMemo)(()=>{const e=r.filter(e=>o.some(t=>t.categories?.includes(e.name))).sort((e,t)=>e.label.localeCompare(t.label));return o.some(e=>!function(e,t){return!(!e.categories||!e.categories.length)&&e.categories.some(e=>t.some(t=>t.name===e))}(e,r))&&!e.find(e=>"uncategorized"===e.name)&&e.push({name:"uncategorized",label:(0,V._x)("Uncategorized")}),o.some(e=>e.blockTypes?.includes("core/post-content"))&&e.unshift(br),o.some(e=>e.type===ur)&&e.unshift(hr),o.length>0&&e.unshift({name:gr.name,label:gr.label}),(0,Ji.L)((0,V.nv)( 213/* translators: %d: number of categories . */ 214/* translators: %d: number of categories . */ 215(0,V._n)("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e},[r,o])}function rj({initialCategory:e,rootClientId:t,onModalClose:n}){const[r,o]=(0,b.useState)(""),[i,s]=(0,b.useState)(e?.name),a=nj(t);return(0,Be.jsxs)(Tl.Root,{className:"block-editor-block-patterns-explorer",orientation:"vertical",value:i,onValueChange:s,children:[(0,Be.jsx)(JN,{patternCategories:a,searchValue:r,setSearchValue:o}),a.map(({name:e})=>(0,Be.jsx)(Tl.Panel,{value:e,tabIndex:-1,className:"block-editor-block-patterns-explorer__panel",children:(0,Be.jsx)(tj,{searchValue:r,selectedCategory:e,patternCategories:a,rootClientId:t,onModalClose:n})},e))]})}var oj=function({onModalClose:e,...t}){return(0,Be.jsx)(Tl,{title:(0,V.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,Be.jsx)(rj,{onModalClose:e,...t})})},ij=n(358),sj=n(6873),aj=n(5350),lj=n(7266),cj=n(2868);var uj=(0,cf.KZ)(function(e,t){const n=function(e){const{as:t,level:n=2,color:r=lj.l.theme.foreground,isBlock:o=!0,weight:i=cj.A.fontWeightEmphasis,...s}=(0,df.A)(e,"Heading"),a=t||`h${n}`,l={};return"string"==typeof a&&"h"!==a[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...(0,sj.A)({color:r,isBlock:o,weight:i,size:(0,aj.fM)(n),...s}),...l,as:a}}(e);return(0,Be.jsx)(uf.A,{...n,ref:t})},"Heading"),dj=uj;function fj({title:e}){return(0,Be.jsx)(pf,{spacing:0,children:(0,Be.jsx)(uf.A,{children:(0,Be.jsx)(ij.A,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Be.jsxs)(fx.A,{spacing:2,children:[(0,Be.jsx)(Tl.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,V.V8)()?yC:vC,size:"small",label:(0,V.__)("Back")}),(0,Be.jsx)(ij.A,{children:(0,Be.jsx)(dj,{level:5,children:e})})]})})})})}function pj({categories:e,children:t,screenClassName:n}){return(0,Be.jsxs)(Tl.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,Be.jsx)(Tl.Navigator.Screen,{path:"/",children:(0,Be.jsx)(py,{children:e.map(e=>(0,Be.jsx)(Tl.Navigator.Button,{path:`/category/${e.name}`,as:Ay,isAction:!0,children:(0,Be.jsxs)(fx.A,{children:[(0,Be.jsx)(sN.A,{children:e.label}),(0,Be.jsx)(Og.A,{icon:(0,V.V8)()?vC:yC})]})},e.name))})}),e.map(e=>(0,Be.jsxs)(Tl.Navigator.Screen,{className:n,path:`/category/${e.name}`,children:[(0,Be.jsx)(fj,{title:(0,V.__)("Back")}),t(e)]},e.name))]})}var mj=()=>{};
215var gj=function({choices:e=[],onHover:t=mj,onSelect:n,value:r}){return(0,Be.jsx)(Be.Fragment,{children:e.map(e=>{const o=r===e.value;return(0,Be.jsx)(kc,{role:"menuitemradio",disabled:e.disabled,icon:o?sE.A:null,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"],children:e.label},e.value)})})},hj=e=>"all"!==e&&"user"!==e,bj=[{value:"all",label:(0,V._x)("All","patterns")},{value:fr,label:(0,V.__)("Pattern Directory")},{value:dr,label:(0,V.__)("Theme & Plugins")},{value:ur,label:(0,V.__)("User")}];function yj({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:r,scrollContainerRef:o,category:i}){const s=i.name===hr.name?ur:r,a=hj(s),l=(e=>e.name===hr.name)(i),c=(0,b.useMemo)(()=>[{value:"all",label:(0,V._x)("All","patterns")},{value:pr,label:(0,V._x)("Synced","patterns"),disabled:a},{value:mr,label:(0,V._x)("Not synced","patterns"),disabled:a}],[a]);return(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)(pc.A,{popoverProps:{placement:"right-end"},label:(0,V.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,Be.jsx)(Og.A,{icon:(0,Be.jsx)(je.t4,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)(je.wA,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,Be.jsxs)(Be.Fragment,{children:[!l&&(0,Be.jsx)(hc,{label:(0,V.__)("Source"),children:(0,Be.jsx)(gj,{choices:bj,onSelect:n=>{var r;t(r=n),hj(r)&&e("all"),o.current?.scrollTo(0,0)},value:s})}),(0,Be.jsx)(hc,{label:(0,V.__)("Type"),children:(0,Be.jsx)(gj,{choices:c,onSelect:t=>{e(t),o.current?.scrollTo(0,0)},value:n})}),(0,Be.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,Px.A)((0,V.__)("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,Be.jsx)(Jf,{href:(0,V.__)("https://wordpress.org/patterns/")})})})]})})})}var vj=()=>{};function kj({rootClientId:e,onInsert:t,onHover:n=vj,category:r,showTitlesAsTooltip:o}){const[i,,s]=XT(t,e,r?.name),[a,l]=(0,b.useState)("all"),[c,u]=(0,b.useState)("all"),d=nj(e,c),f=(0,b.useRef)(),p=(0,b.useMemo)(()=>i.filter(e=>!yr(e,c,a)&&(r.name===gr.name||(r.name===hr.name&&e.type===ur||(!(r.name!==br.name||!e.blockTypes?.includes("core/post-content"))||("uncategorized"===r.name?!e.categories||!e.categories.some(e=>d.some(t=>t.name===e)):e.categories?.includes(r.name)))))),[i,d,r.name,c,a]),m=ej(p,r,f),{changePage:g}=m;(0,b.useEffect)(()=>()=>n(null),[]);const h=(0,b.useCallback)(e=>{l(e),g(1)},[l,g]),y=(0,b.useCallback)(e=>{u(e),g(1)},[u,g]);return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)(pf,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,Be.jsxs)(fx.A,{children:[(0,Be.jsx)(sN.A,{children:(0,Be.jsx)(dj,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,Be.jsx)(yj,{patternSyncFilter:a,patternSourceFilter:c,setPatternSyncFilter:h,setPatternSourceFilter:y,scrollContainerRef:f,category:r})]}),!p.length&&(0,Be.jsx)(my.A,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,V.__)("No results found")})]}),p.length>0&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(my.A,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,V.__)("Drag and drop patterns into the canvas.")}),(0,Be.jsx)($A,{ref:f,blockPatterns:m.categoryPatterns,onClickPattern:s,onHover:n,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:o,patternFilter:c,pagingProps:m})]})]})}var{Tabs:xj}=ue(nc);var wj=function({categories:e,selectedCategory:t,onSelectCategory:n,children:r}){const o={type:"tween",duration:(0,Ub.A)()?0:.25,ease:[.6,0,.4,1]},i=(0,Nh.A)(t),s=t?t.name:null,[a,l]=(0,b.useState)(),c=e?.[0]?.name;return null===s&&!a&&c&&l(c),(0,Be.jsxs)(xj,{selectOnMove:!1,selectedTabId:s,orientation:"vertical",onSelect:t=>{n(e.find(e=>e.name===t))}
215,activeTabId:a,onActiveTabIdChange:l,children:[(0,Be.jsx)(xj.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(e=>(0,Be.jsx)(xj.Tab,{tabId:e.name,"aria-current":e===t?"true":void 0,children:e.label},e.name))}),e.map(e=>(0,Be.jsx)(xj.TabPanel,{tabId:e.name,focusable:!1,children:(0,Be.jsx)(xk.PY.div,{className:"block-editor-inserter__category-panel",initial:i?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:o,children:r})},e.name))]})};var _j=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:r,children:o}){const[i,s]=(0,b.useState)(!1),a=nj(r),l=(0,Bu.A)("medium","<");return a.length?(0,Be.jsxs)(Be.Fragment,{children:[!l&&(0,Be.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,Be.jsx)(wj,{categories:a,selectedCategory:t,onSelectCategory:e,children:o}),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,V.__)("Explore all patterns")})]}),l&&(0,Be.jsx)(pj,{categories:a,children:e=>(0,Be.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,Be.jsx)(kj,{onInsert:n,rootClientId:r,category:e},e.name)})}),i&&(0,Be.jsx)(oj,{initialCategory:t||a[0],patternCategories:a,onModalClose:()=>s(!1),rootClientId:r})]}):(0,Be.jsx)(qT,{})},Sj=(0,Be.jsx)(je.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Be.jsx)(je.wA,{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"})}),Cj=n(4552);var Aj={image:"img",video:"video",audio:"audio"};function Ej(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},r=e.url,o=e.alt||void 0;"image"===t?(n.url=r,n.alt=o):["video","audio"].includes(t)&&(n.src=r);const i=Aj[t],s=(0,Be.jsx)(i,{src:e.previewUrl||r,alt:o,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=r)}});return[(0,h.Wv)(`core/${t}`,n),s]}var Ij=["image"],Tj={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function Nj({category:e,media:t,onDetach:n}){if(!e.getReportUrl&&!n)return null;const r=e.getReportUrl?.(t);return(0,Be.jsx)(pc.A,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,V.__)("Options"),popoverProps:Tj,icon:yv,children:()=>(0,Be.jsxs)(hc,{children:[r&&(0,Be.jsx)(kc,{onClick:()=>window.open(r,"_blank").focus(),icon:Sj,children:(0,V.nv)( 216/* translators: %s: The media type to report e.g: "image", "video", "audio" */ 217/* translators: %s: The media type to report e.g: "image", "video", "audio" */ 218(0,V.__)("Report %s"),e.mediaType)}),n&&(0,Be.jsx)(kc,{onClick:()=>n(t),icon:Sx,children:e.postTypeLabel?(0,V.nv)( 219/* translators: %s: Name of the post type e.g: "Page". */ 220/* translators: %s: Name of the post type e.g: "Page". */ 221(0,V.__)("Detach from %s"),e.postTypeLabel):(0,V.__)("Detach from post")})]})})}function jj({onClose:e,onSubmit:t}){return(0,Be.jsxs)(Tl,{title:(0,V.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,Be.jsxs)(pf,{spacing:3,children:[(0,Be.jsx)("p",{children:(0,V.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,Be.jsx)("p",{children:(0,V.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,Be.jsxs)(mf.A,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,V.__)("Cancel")})}),(0,Be.jsx)(gf.A,{children:(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,V.__)("Insert")})})]})]})}function Bj({media:e,onClick:t,onDetach:n,category:r}){const[o,i]=(0,b.useState)(!1),[s,a]=(0,b.useState)(!1),[l,c]=(0,b.useState)(!1),[u,d]=(0,b.useMemo)(()=>Ej(e,r.mediaType),[e,r.mediaType]),{createErrorNotice:f,createSuccessNotice:p}=(0,y.A)(Ws),{getSettings:m,getBlock:v}=(0,R.A)(fl),{updateBlockAttributes:k}=(0,y.A)(fl),x=(0,b.useCallback)(e=>{if(l)return;const n=m(),r=(0,h.JB)(e),{id:o,url:s,caption:a}=r.attributes;o||n.mediaUpload?o?t(r):(c(!0),window.fetch(s).then(e=>e.blob()).then(e=>{const o=function(e){let t;if(e){try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch{}return t||void 0}}(s)||"image.jpg",i=new File([e],o,{type:e.type});n.mediaUpload({filesList:[i],additionalData:{caption:a},onFileChange([e]){(0,Cj.H8)(e.url)||(v(r.clientId)?k(r.clientId,{...r.attributes,id:e.id,url:e.url}):(t({...r,attributes:{...r.attributes,id:e.id,url:e.url}}),p((0,V.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),c(!1))},allowedTypes:Ij,onError(e){f(e,{type:"snackbar",id:"inserter-notice"}),c(!1)}})}).catch(()=>{i(!0),c(!1)})):i(!0)},[l,m,t,p,k,f,v]),w="string"==typeof e.title?e.title:e.title?.rendered||(0,V.__)("no title"),_=(0,b.useCallback)(()=>a(!0),[]),S=(0,b.useCallback)(()=>a(!1),[]);return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(MA,{isEnabled:!0,blocks:[u],children:({draggable:t,onDragStart:o,onDragEnd:i})=>(0,Be.jsx)("div",{className:(0,g.A)("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:t,onDragStart:o,onDragEnd:i,children:(0,Be.jsxs)("div",{onMouseEnter:_,onMouseLeave:S,children:[(0,Be.jsxs)(Tl.Root,{children:[(0,Be.jsx)(Tl.Trigger,{render:(0,Be.jsx)(RA.Item,{render:(0,Be.jsx)("div",{"aria-label":w,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>x(u),children:(0,Be.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[d,l&&(0,Be.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,Be.jsx)(dx.Ay,{})})]})})}),(0,Be.jsx)(Tl.Popup,{children:w})]}),!l&&(0,Be.jsx)(Nj,{category:r,media:e,onDetach:n})]})})}),o&&(0,Be.jsx)(jj,{onClose:()=>i(!1),onSubmit:()=>{t((0,h.JB)(u)),p((0,V.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),i(!1)}})]})}var Lj=function({mediaList:e,category:t,onClick:n,onDetach:r,label:o=(0,V.__)("Media List")}){return(0,Be.jsx)(RA,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":o,children:e.map((e,o)=>(0,Be.jsx)(Bj,{media:e,category:t,onClick:n,onDetach:r},e.id||e.sourceId||o))})};function Oj(e){return Array.isArray(e)?{mediaItems:e}:{mediaItems:e?.mediaItems??[],totalItems:e?.totalItems,totalPages:e?.totalPages}}var Rj=["image"];function Mj({onSelect:e}){return(0,Be.jsx)(Gw,{children:(0,Be.jsx)(Kw,{multiple:"add",onSelect:e,allowedTypes:Rj,title:(0,V.__)("Attach images"),render:({open:e})=>(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,className:"block-editor-inserter__media-panel-attach","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",onClick:t=>
221{t.target.focus(),e()},variant:"secondary",children:(0,V.__)("Attach images")})})})}function Pj({rootClientId:e,onInsert:t,category:n}){const[r,o,i]=DN(),[s,a]=(0,b.useState)(1),l=(0,Nh.A)(n.name),c=(0,Nh.A)(i);l===n.name&&c===i||1===s||a(1);const u=(0,b.useMemo)(()=>({per_page:20,page:s,search:i}),[s,i]),[d,f]=(0,b.useState)(0),{mediaList:p,isLoading:m,totalItems:h,totalPages:v}=function(e,t={},n){const[r,o]=(0,b.useState)(),[i,s]=(0,b.useState)({}),[a,l]=(0,b.useState)(!1),c=(0,b.useRef)(),u=(0,b.useRef)(),d=(0,b.useRef)(),f=(0,b.useRef)();return(0,b.useEffect)(()=>{(async()=>{const n=JSON.stringify({category:e.name,...t}),r={};c.current=r,l(!0),u.current===n&&d.current===e.fetch||o([]),f.current===e.name&&d.current===e.fetch||s({}),u.current=n,d.current=e.fetch,f.current=e.name;const{page:i,...a}=t,p=i>1?t:a,{mediaItems:m,totalItems:g,totalPages:h}=Oj(await(e.fetch?.(p)));r===c.current&&(o(m),s({totalItems:g,totalPages:h}),l(!1))})()},[e.name,e.fetch,...Object.values(t),n]),{mediaList:r,isLoading:a,totalItems:i.totalItems,totalPages:i.totalPages}}(n,u,d),k=v||1;"number"==typeof v&&s>k&&a(k);const x=!n.isExternalResource,w=x?n.attach:void 0,_=x?n.detach:void 0,S=x?n.subscribe:void 0,C=k>1,A=C||!!w,E=(0,b.useRef)(),I=(0,b.useCallback)(e=>{const t=Em(E.current);t?.scrollTo(0,0),a(e)},[]),{createErrorNotice:T,createSuccessNotice:N,createWarningNotice:j}=(0,y.A)(Ws),B=function(e,t=400){const[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!e)return;const n=setTimeout(()=>r(!0),t);return()=>{clearTimeout(n),r(!1)}},[e,t]),n}(m),L=(0,b.useCallback)(()=>{x&&n.invalidate?.(u),f(e=>e+1)},[n,u,x]);(0,b.useEffect)(()=>{if(S)return S(()=>f(e=>e+1),u)},[S,u]);const O=(0,b.useCallback)(async e=>{try{const t=await w(e);if(!t)return void j((0,V.__)("No images were attached."),{type:"snackbar",id:"inserter-notice"});L(),N(n.postTypeLabel?(0,V.nv)( 222/* translators: %1$d: Number of images attached. %2$s: Name of the post type e.g: "Page". */ 223/* translators: %1$d: Number of images attached. %2$s: Name of the post type e.g: "Page". */ 224(0,V._n)("%1$d image attached to %2$s.","%1$d images attached to %2$s.",t),t,n.postTypeLabel):(0,V.nv)( 225/* translators: %d: Number of images attached to the post. */ 226/* translators: %d: Number of images attached to the post. */ 227(0,V._n)("%d image attached to post.","%d images attached to post.",t),t),{type:"snackbar",id:"inserter-notice"})}catch{T((0,V.__)("Could not attach images."),{type:"snackbar",id:"inserter-notice"})}},[w,n,L,T,N,j]),R=(0,b.useCallback)(async e=>{try{await _(e),L(),N(n.postTypeLabel?(0,V.nv)( 228/* translators: %s: Name of the post type e.g: "Page". */ 229/* translators: %s: Name of the post type e.g: "Page". */ 230(0,V.__)("Image detached from %s."),n.postTypeLabel):(0,V.__)("Image detached from post."),{type:"snackbar",id:"inserter-notice"})}catch{T((0,V.__)("Could not detach image."),{type:"snackbar",id:"inserter-notice"})}},[_,n,L,T,N]),[M,P]=(0,b.useState)(),D=(0,b.useCallback)(()=>{const e=M;P(void 0),R(e)},[R,M]),z="block-editor-inserter__media-panel",F=n.labels.search_items||(0,V.__)("Search");return(0,Be.jsxs)("div",{ref:E,className:(0,g.A)(z,{"has-footer":A}),children:[(0,Be.jsx)(Df,{className:`${z}-search`,onChange:o,value:r,label:F,placeholder:F}),m&&!p?.length&&(0,Be.jsx)("div",{className:`${z}-spinner`,children:(0,Be.jsx)(dx.Ay,{})}),!m&&!p?.length&&(0,Be.jsx)(qT,{children:n.emptyMessage&&!i?n.emptyMessage:(0,V.__)("No results found.")}),!!p?.length&&(0,Be.jsx)("div",{className:(0,g.A)(`${z}-results`,{"is-loading":B}),"aria-busy":B,children:(0,Be.jsx)(Lj,{rootClientId:e,onClick:t,onDetach:_?P:void 0,mediaList:p,category:n})}),A&&(0,Be.jsxs)(HN.B,{direction:"column",gap:"sm",className:`${z}-footer`,children:[C&&(0,Be.jsx)(PA,{currentPage:s,numPages:k,changePage:I,totalItems:h}),w&&(0,Be.jsx)(Mj,{onSelect:O})]}),M&&(0,Be.jsxs)(Tl,{title:(0,V.__)("Detach image"),onRequestClose:()=>P(void 0),overlayClassName:`${z}-detach-modal`,children:[(0,Be.jsx)("p",{children:n.postTypeLabel?(0,V.nv)( 231/* translators: %s: Name of the post type e.g: "Page". */ 232/* translators: %s: Name of the post type e.g: "Page". */ 233(0,V.__)("Detach this image from the current %s? The image will remain in the Media Library."),n.postTypeLabel):(0,V.__)("Detach this image from the current post? The image will remain in the Media Library.")}),(0,Be.jsxs)("div",{className:`${z}-detach-actions`,children:[(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>P(void 0),children:(0,V.__)("Cancel")}),(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,variant:"primary",onClick:D,children:(0,V.__)("Detach")})]})]})]})}var Dj=["image","video","audio"];var zj=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:r,children:o}){const i=function(e){const[t,n]=(0,b.useState)([]),r=(0,R.A)(e=>ue(e(fl)).getInserterMediaCategories(),[]),{canInsertImage:o,canInsertVideo:i,canInsertAudio:s}=(0,R.A)(t=>{const{canInsertBlockType:n}=t(fl);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}},[e]);return(0,b.useEffect)(()=>{(async()=>{const e=[];
233if(!r)return;const t=new Map(await Promise.all(r.map(async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{const{mediaItems:n}=Oj(await e.fetch({per_page:1}));t=n}catch{}return[e.name,!!t.length]}))),a={image:o,video:i,audio:s};r.forEach(n=>{a[n.mediaType]&&(t.get(n.name)||n.emptyMessage)&&e.push(n)}),e.length&&n(e)})()},[o,i,s,r]),t}(e),s=(0,Bu.A)("medium","<"),a=(0,b.useCallback)(e=>{if(!e?.url)return;const t=window.__experimentalDataViewsMediaModal&&e.mime_type?e.mime_type.split("/")[0]:e.type,[n]=Ej(e,t);r(n)},[r]),l=(0,b.useMemo)(()=>i.map(e=>({...e,label:e.labels.name})),[i]);return(0,b.useEffect)(()=>{if(!t)return;const e=l.find(e=>e.name===t.name);e&&e!==t?n(e):e||n(null)},[l,n,t]),l.length?(0,Be.jsxs)(Be.Fragment,{children:[!s&&(0,Be.jsxs)("div",{className:"block-editor-inserter__media-tabs-container",children:[(0,Be.jsx)(wj,{categories:l,selectedCategory:t,onSelectCategory:n,children:o}),(0,Be.jsx)(Gw,{children:(0,Be.jsx)(Kw,{multiple:!1,onSelect:a,allowedTypes:Dj,render:({open:e})=>(0,Be.jsx)(yc.A,{__next40pxDefaultSize:!0,onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,V.__)("Open Media Library")})})})]}),s&&(0,Be.jsx)(pj,{categories:l,screenClassName:"block-editor-inserter__media-mobile-screen",children:t=>(0,Be.jsx)(Pj,{onInsert:r,rootClientId:e,category:t})})]}):(0,Be.jsx)(qT,{})},{Tabs:Fj}=ue(nc);var $j=(0,b.forwardRef)(function({defaultTabId:e,onClose:t,onSelect:n,selectedTab:r,tabs:o,closeButtonLabel:i},s){return(0,Be.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,Be.jsxs)(Fj,{selectOnMove:!1,defaultTabId:e,onSelect:n,selectedTabId:r,children:[(0,Be.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,Be.jsx)(yc.A,{className:"block-editor-tabbed-sidebar__close-button",icon:Af,label:i,onClick:()=>t(),size:"compact"}),(0,Be.jsx)(Fj.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:o.map(e=>(0,Be.jsx)(Fj.Tab,{tabId:e.name,className:"block-editor-tabbed-sidebar__tab",children:e.title},e.name))})]}),o.map(e=>(0,Be.jsx)(Fj.TabPanel,{tabId:e.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:e.panelRef,children:e.panel},e.name))]})})}),Vj=()=>{};var Hj=(0,b.forwardRef)(function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,onSelect:o,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:a="",shouldFocusBlock:l=!0,onPatternCategorySelection:c,onClose:u,__experimentalInitialTab:d,__experimentalInitialCategory:f},p){const{isZoomOutMode:m,hasSectionRootClientId:h}=(0,R.A)(e=>{const{isZoomOut:t,getSectionRootClientId:n}=ue(e(fl));return{isZoomOutMode:t(),hasSectionRootClientId:!!n()}},[]),[v,k,x]=DN(a),[w,_]=(0,b.useState)(null),[S,C]=(0,b.useState)(f),[A,E]=(0,b.useState)("all"),[I,T]=(0,b.useState)(null),N=(0,Bu.A)("large"),j=(0,Bu.A)("medium","<")?u:Vj,[B,L]=(0,b.useState)(d||(m?"patterns":"blocks"));Vy(h&&("patterns"===B||"media"===B)&&N);const[O,M,P]=YT({rootClientId:e,clientId:t,isAppender:n,insertionIndex:r,shouldFocusBlock:l}),{hideInsertionPoint:D}=(0,y.A)(fl),z=(0,b.useRef)(),F=(0,b.useCallback)((e,t,n,r)=>{D(),M(e,t,n,r),o(e),j(),window.requestAnimationFrame(()=>{l||z.current?.contains(p.current.ownerDocument.activeElement)||z.current?.querySelector("button").focus()})},[D,M,j,o,p,l]),$=(0,b.useCallback)((e,t,...n)=>{D(),M(e,{patternName:t},...n),o(),j()},[D,M,j,o]),H=(0,b.useCallback)(e=>{P(e),_(e)},[P,_]),W=(0,b.useCallback)((e,t)=>{C(e),E(t),c?.()},[C,c]),U="patterns"===B&&!x&&!!S,K="media"===B&&!!I,[G,q]=(0,b.useState)(!1),Z=(0,b.useRef)(null),Y=(0,b.useRef)(null),X=(0,b.useRef)(null);(0,b.useEffect)(()=>{const e=e=>{q(e.currentTarget.scrollTop>0)}
233,t=[Z.current,Y.current,X.current].filter(Boolean);return t.forEach(t=>t.addEventListener("scroll",e)),()=>{t.forEach(t=>t.removeEventListener("scroll",e))}},[]);const Q=(0,b.useMemo)(()=>"media"===B?null:(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(Df,{className:(0,g.A)("block-editor-inserter__search",{"is-scrolled":G}),onChange:e=>{w&&_(null),k(e)},value:v,label:(0,V.__)("Search"),placeholder:(0,V.__)("Search")}),!!x&&(0,Be.jsx)(tN,{filterValue:x,onSelect:o,onHover:H,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:"patterns"===B})]}),[B,w,_,k,v,x,o,H,l,t,e,r,n,G]),J=(0,b.useMemo)(()=>(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,Be.jsx)(QN,{ref:z,rootClientId:O,onInsert:F,onHover:H,showMostUsedBlocks:s})}),i&&(0,Be.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,Be.jsx)(Rw.s,{render:(0,Be.jsx)("h2",{}),children:(0,V.__)("A tip for using the block editor")}),(0,Be.jsx)(VN,{})]})]}),[O,F,H,s,i]),ee=(0,b.useMemo)(()=>(0,Be.jsx)(_j,{rootClientId:O,onInsert:$,onSelectCategory:W,selectedCategory:S,children:U&&(0,Be.jsx)(kj,{rootClientId:O,onInsert:$,category:S,patternFilter:A,showTitlesAsTooltip:!0})}),[O,$,W,A,S,U]),te=(0,b.useMemo)(()=>(0,Be.jsx)(zj,{rootClientId:O,selectedCategory:I,onSelectCategory:T,onInsert:F,children:K&&(0,Be.jsx)(Pj,{rootClientId:O,onInsert:F,category:I})}),[O,F,I,T,K]),ne=(0,b.useRef)();return(0,b.useLayoutEffect)(()=>{if(!ne.current)return;const e=window.requestAnimationFrame(()=>{ne.current?.querySelector('[role="tab"][aria-selected="true"]')?.focus()});return()=>window.cancelAnimationFrame(e)},[]),(0,Be.jsxs)("div",{className:(0,g.A)("block-editor-inserter__menu",{"show-panel":U||K,"is-zoom-out":m}),ref:p,children:[(0,Be.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,Be.jsx)($j,{ref:ne,onSelect:e=>{"patterns"!==e&&C(null),L(e)},onClose:u,selectedTab:B,closeButtonLabel:(0,V.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,V.__)("Blocks"),panelRef:Z,panel:(0,Be.jsxs)(Be.Fragment,{children:[Q,"blocks"===B&&!x&&J]})},{name:"patterns",title:(0,V.__)("Patterns"),panelRef:Y,panel:(0,Be.jsxs)(Be.Fragment,{children:[Q,"patterns"===B&&!x&&ee]})},{name:"media",title:(0,V.__)("Media"),panelRef:X,panel:(0,Be.jsxs)(Be.Fragment,{children:[Q,te]})}]})}),i&&w&&(0,Be.jsx)(Sm.Ay,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:{mainAxis:16,crossAxis:16},focusOnMount:!1,animate:!1,children:(0,Be.jsx)(ZN,{item:w})})]})});(0,b.forwardRef)(function(e,t){return(0,Be.jsx)(Hj,{...e,onPatternCategorySelection:Vj,ref:t})});var Wj=()=>{};var Uj=(0,b.forwardRef)(function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:r,showMostUsedBlocks:o=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:a,__experimentalFilterValue:l,onPatternCategorySelection:c,onSelect:u=Wj,shouldFocusBlock:d=!1,onClose:f},p){const{destinationRootClientId:m}=(0,R.A)(n=>{const{getBlockRootClientId:r}=n(fl);return{destinationRootClientId:e||r(t)||void 0}},[t,e]);return(0,Be.jsx)(Hj,{onSelect:u,rootClientId:m,clientId:t,isAppender:n,showInserterHelpPanel:r,showMostUsedBlocks:o,__experimentalInsertionIndex:i,__experimentalFilterValue:l,onPatternCategorySelection:c,__experimentalInitialTab:s,__experimentalInitialCategory:a,shouldFocusBlock:d,ref:p,onClose:f})});(0,b.forwardRef)(function(e,t){return(0,Be.jsx)(Uj,{...e,onPatternCategorySelection:void 0,ref:t})});function Kj({title:e,help:t,actions:n=[],onClose:r}){return(0,Be.jsxs)(pf,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,Be.jsxs)(fx.A,{alignment:"center",children:[(0,Be.jsx)(Cf,{variant:"heading-md",render:(0,Be.jsx)("h2",{}),className:"block-editor-inspector-popover-header__heading",children:e}),(0,Be.jsx)(ij.A,{}),n.map(({label:e,icon:t,onClick:n})=>(0,Be.jsx)(yc.A,{size:"small",className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n,children:!t&&e},e)),r&&(0,Be.jsx)(yc.A,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,V.__)("Close"),icon:Af,onClick:r})]}),t&&(0,Be.jsx)(Cf,{children:t})]})}var Gj=(0,b.forwardRef)(function({onClose:e,onChange:t,showPopoverHeader:n=!0,showPopoverHeaderActions:r,isCompact:o,currentDate:i,title:s,...a},l){const c={startOfWeek:(0,Tl.getSettings)().l10n.startOfWeek,onChange:t,currentDate:o?void 0:i,currentTime:o?i:void 0,...a},u=o?Tl.TimePicker:Tl;return(0,Be.jsxs)("div",{ref:l,className:"block-editor-publish-date-time-picker",children:[n&&(0,Be.jsx)(Kj,{title:s||(0,V.__)("Publish"),actions:r?[{label:(0,V.__)("Reset"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,Be.jsx)(u,{...c})]})});(0,b.forwardRef)(function(e,t){return(0,Be.jsx)(Gj,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})});var qj=[],Zj=new Intl.Collator("und",{numeric:!0}).compare;var Yj=(0,Al.QJ)(Symbol("NoteIconSlotFill")),Xj=(0,Al.QJ)(Symbol("NoteIconToolbarSlotFill")),Qj={a:(0,V.__)("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,V.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,V.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,V.__)("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,V.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,V.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,V.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,V.__)("The <main> element should be used for the primary content of your document only."),nav:(0,V.__)("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,V.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};var{Badge:Jj}=ue(nc);function eB({title:e,url:t,image:n,badges:r}){return(0,Be.jsxs)(fx.A,{justify:"space-between",alignment:"top",children:[(0,Be.jsx)(gf.A,{className:"link-preview-button__content",children:(0,Be.jsxs)(fx.A,{alignment:"top",children:[n&&(0,Be.jsx)(gf.A,{className:"link-preview-button__image-container",children:(0,Be.jsx)("img",{className:"link-preview-button__image",src:n,alt:""})}),(0,Be.jsxs)(pf,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,Be.jsx)(Cw,{numberOfLines:1,className:"link-preview-button__title",children:(0,Xx.A)(e)}),t&&(0,Be.jsx)(Cw,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,Be.jsx)(fx.A,{className:"link-preview-button__badges",alignment:"left",children:r.map(e=>(0,Be.jsx)(Jj,{intent:e.intent,children:e.label},`${e.label}|${e.intent}`))})]})]})}),(0,Be.jsx)(Og.A,{icon:Gb.A,className:"link-preview-button__icon"})]})}var tB="wp-inner-block-slot",nB={type:"default",alignments:[]};var{getDuotoneFilter:rB}=ue(Pt),oB={};ce(oB,{...Nl,ExperimentalBlockCanvas:PN,BlockCanvasCover:ON,ExperimentalBlockEditorProvider:nT,getDuotoneFilter:rB,getRichTextValues:function(e=[]){h.cV.skipFilters=!0;const t=[];return lT(t,e),h.cV.skipFilters=!1,t.map(e=>e instanceof Oe.EF?e:Oe.EF.fromHTMLString(e))},PrivateQuickInserter:function({onSelect:e,rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:o,hasSearch:i=!0}){const[s,a]=(0,b.useState)(""),[l,c]=YT({onSelect:e,rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:o}),[u]=A_(l,c,!0),{setInserterIsOpened:d,insertionIndex:f}=(0,R.A)(e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:o}=e(fl),i=t(),s=r(n),a=o();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===s?a:s}},[n]),p=i&&u.length>6;return(0,b.useEffect)(()=>{d&&d(!1)},[d]),(0,Be.jsxs)("div",{className:(0,g.A)("block-editor-inserter__quick-inserter",{"has-search":p,"has-expand":d}),children:[p&&(0,Be.jsx)(Df,{className:"block-editor-inserter__search",value:s,onChange:e=>{a(e)},label:(0,V.__)("Search"),placeholder:(0,V.__)("Search")}),(0,Be.jsxs)("div",{className:"block-editor-inserter__quick-inserter-results",children:[(0,Be.jsx)(tN,{filterValue:s,onSelect:e,rootClientId:t,clientId:n,isAppender:r,maxBlockPatterns:s?2:0,maxBlockTypes:6,isDraggable:!1,selectBlockOnInsert:o,isQuick:!0}),d&&(0,Be.jsx)("div",{className:"block-editor-inserter__quick-inserter-expand",children:(0,Be.jsx)(yc.A,{className:"block-editor-inserter__quick-inserter-expand-toggle",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{d({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:f})},"aria-label":(0,V.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,V.__)("Browse all")})})]})]})},extractWords:v_,getNormalizedSearchTerms:x_,normalizeString:k_,PrivateListView:Tl.PrivateListView,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,Be.jsx)(Um,{clientId:e,__unstablePopoverSlot:"block-toolbar",...n,children:(0,Be.jsx)(OT,{...t})})},InspectorControlsLastItem:iN,useHasBlockToolbar:eA,cleanEmptyObject:gl,getStyleForState:_u,isDefaultBlockStyleState:xu,setStyleForState:Su,usePrivateStyleOverride:kl,BlockQuickNavigation:function({clientIds:e,onSelect:t,onSwitchToListView:n,hasListViewTab:r}){return e.length?(0,Be.jsx)(pf,{spacing:1,children:e.map(e=>(0,Be.jsx)(aN,{onSelect:t,onSwitchToListView:n,hasListViewTab:r,clientId:e},e))}):null},LayoutStyle:function({layout:e={}
233,css:t,...n}){const r=Ec(e.type),[o]=ml("spacing.blockGap"),i=null!==o;if(r){if(t)return(0,Be.jsx)("style",{children:t});const o=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...n});if(o)return(0,Be.jsx)("style",{children:o})}return null},BlockManager:Gf,BlockRemovalWarningModal:function({rules:e}){const[t,n]=(0,b.useState)(!1),{clientIds:r,selectPrevious:o,message:i}=(0,R.A)(e=>ue(e(fl)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=ue((0,y.A)(fl));if((0,b.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,b.useEffect)(()=>{n(!1)},[r]),!i)return;const c="object"==typeof i&&null!==i,u=c?i.description:i,d=c&&i.requireConfirmation,f=d&&!t;return(0,Be.jsx)(Tl,{title:(0,V.__)("Confirm deletion"),onRequestClose:s,size:"medium",children:(0,Be.jsxs)(pf,{spacing:4,children:[(0,Be.jsxs)("div",{children:[(0,Be.jsx)("p",{children:u}),c&&(i.warning||i.subtext)&&(0,Be.jsxs)("p",{children:[i.warning&&(0,Be.jsx)("strong",{children:i.warning}),i.warning&&i.subtext&&" ",i.subtext]})]}),d&&(0,Be.jsx)(zf.A,{label:(0,V.__)("I understand the consequences"),checked:t,onChange:n}),(0,Be.jsxs)(fx.A,{justify:"right",children:[(0,Be.jsx)(yc.A,{variant:"tertiary",onClick:s,__next40pxDefaultSize:!0,children:(0,V.__)("Cancel")}),(0,Be.jsx)(yc.A,{variant:"primary",onClick:()=>{l(r,o,!0),s()},disabled:f,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,V.__)("Delete")})]})]})})},useLayoutClasses:xb,useLayoutStyles:function(e={},t,n){const{layout:r={},style:o={}}=e,i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||{},s=Ec(i?.type||"default"),[a]=ml("spacing.blockGap"),l=null!==a;return s?.getLayoutStyle?.({blockName:t,selector:n,layout:r,style:o,hasBlockGapSupport:l})},DimensionsTool:Tl,ResolutionTool:function({panelId:e,value:t,onChange:n,options:r=cN,defaultValue:o=cN[0].value,isShownByDefault:i=!0,resetAllFilter:s}){const a=t??o;return(0,Be.jsx)(Tl.ToolsPanelItem,{hasValue:()=>a!==o,label:(0,V.__)("Resolution"),onDeselect:()=>n(o),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,Be.jsx)(lN.A,{label:(0,V.__)("Resolution"),value:a,options:r,onChange:n,help:(0,V.__)("Select the size of the source image.")})})},TabbedSidebar:$j,TextAlignmentControl:function({className:e,value:t,onChange:n,options:r=mN}){const o=(0,b.useMemo)(()=>pN.filter(e=>r.includes(e.value)),[r]);return o.length?(0,Be.jsx)(Gh,{isDeselectable:!0,label:(0,V.__)("Text alignment"),className:(0,g.A)("block-editor-text-alignment-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:o.map(e=>(0,Be.jsx)(fN,{value:e.value,icon:e.icon,label:e.label},e.value))}):null},usesContextKey:IS,useFlashEditableBlocks:ck,HTMLElementControl:function({tagName:e,onChange:t,clientId:n,options:r=[{label:(0,V.__)("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"}]}){const o=!!n&&r.some(e=>"main"===e.value),i=(0,R.A)(e=>{if(!o)return!1;const{getClientIdsWithDescendants:t,getBlockAttributes:r}=e(fl);return t().some(e=>e!==n&&"main"===r(e)?.tagName)},[n,o]),s=r.map(t=>"main"===t.value&&i&&"main"!==e?{...t,disabled:!0,label:(0,V.nv)( 234/* translators: %s: HTML element name */ 235/* translators: %s: HTML element name */ 236(0,V.__)("%s (Already in use)"),t.label)}:t);return(0,Be.jsxs)(pf,{spacing:2,className:"block-editor-html-element-control",children:[(0,Be.jsx)(lN.A,{label:(0,V.__)("HTML element"),options:s,value:e,onChange:t,help:Qj[e]}),"main"===e&&i&&(0,Be.jsx)(lm,{status:"warning",isDismissible:!1,children:(0,V.__)("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.")})]})},useZoomOut:Vy,globalStylesDataKey:G,globalStylesLinksDataKey:q,selectBlockPatternsKey:Z,requiresWrapperOnCopy:rI,PrivateRichText:WS,PrivateInserterLibrary:Uj,reusableBlocksSelectKey:Y,userPatternCategoriesSelectKey:X,PrivateBlockPopover:Hm,PrivatePublishDateTimePicker:Gj,useSpacingSizes:function(){const[e,t,n,r]=ml("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),o=e??qj,i=t??qj,s=n&&!1!==r?n:qj;return(0,b.useMemo)(()=>{const e=[{name:(0,V.__)("None"),slug:"0",size:0},...o,...i,...s];return e.every(({slug:e})=>/^[0-9]/.test(e))&&e.sort((e,t)=>
236Zj(e.slug,t.slug)),e.length>8?[{name:(0,V.__)("Default"),slug:"default",size:void 0},...e]:e},[o,i,s])},useBlockDisplayTitle:wE,BlockStyleVariationOverridesWithConfig:function({config:e}){const{overrides:t}=(0,R.A)(e=>({overrides:ue(e(fl)).getStyleOverrides()}),[]),{getBlockName:n}=(0,R.A)(fl),r=(0,b.useMemo)(()=>{if(!t?.length)return;const r=[],o=[];for(const[,i]of t)if(i?.variation&&i?.clientId&&!o.includes(i.clientId)){const t=n(i.clientId),s=e?.styles?.blocks?.[t]?.variations?.[i.variation];if(s){const n={settings:e?.settings,styles:{blocks:{[t]:{variations:{[`${i.variation}-${i.clientId}`]:s}}}}},a=Rd((0,h.li)(),i.clientId),l=Od(n,a,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});r.push({id:`${i.variation}-${i.clientId}`,css:l,__unstableType:"variation",variation:i.variation,clientId:i.clientId}),o.push(i.clientId)}}return r},[e,t,n]);return r&&r.length?(0,Be.jsx)(Be.Fragment,{children:r.map(e=>(0,Be.jsx)($d,{override:e},e.id))}):null},setBackgroundStyleDefaults:nf,sectionRootClientIdKey:Q,NoteIconSlotFill:Yj,NoteIconToolbarSlotFill:Xj,mediaEditKey:J,getMediaSelectKey:ee,deviceTypeKey:ne,isIsolatedEditorKey:te,isNavigationOverlayContextKey:re,isNavigationPostEditorKey:oe,mediaUploadOnSuccessKey:ie,mediaSideloadFromUrlKey:se,openMediaEditorModalKey:ae,useBlockElement:Ju,useBlockElementRef:Qu,LinkPicker:function({preview:e,onSelect:t,suggestionsQuery:n,label:r,help:o}){const[i,s]=(0,b.useState)(!1),a=(0,b.useId)(),l=`link-picker-title-${a}`,c=`link-picker-description-${a}`,u=(0,b.useRef)(null),{baseControlProps:d,controlProps:f}=Kl({help:o});return(0,Be.jsxs)(Wl.Ay,{...d,children:[(0,Be.jsx)(Wl.Ay.VisualLabel,{children:r}),(0,Be.jsxs)(yc.A,{ref:u,onClick:()=>s(!i),"aria-haspopup":"dialog","aria-expanded":i,"aria-describedby":f["aria-describedby"],variant:"secondary",__next40pxDefaultSize:!0,className:"link-preview-button",children:[r&&(0,Be.jsxs)(Rw.s,{children:[r,":"]}),(0,Be.jsx)(eB,{title:e.title||(0,V.__)("Add link"),url:e.url,image:e.image,badges:e.badges})]}),i&&(0,Be.jsx)(Sm.Ay,{anchor:u.current,onClose:()=>s(!1),placement:"left-start",offset:36,shift:!0,children:(0,Be.jsxs)("div",{role:"dialog","aria-labelledby":l,"aria-describedby":c,children:[(0,Be.jsxs)(Rw.s,{children:[(0,Be.jsx)("h2",{id:l,children:(0,V.__)("Select a link")}),(0,Be.jsx)("p",{id:c,children:(0,V.__)("Search for and add a link to the navigation item.")})]}),(0,Be.jsx)(Uw,{value:null,onChange:e=>{if(s(!1),e){const n={url:e.url,kind:e.kind,type:e.type,id:e.id,title:e.title};t(n)}},suggestionsQuery:n,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})},useRemoteUrlData:Bw,PrivateBlockContext:Ly,useListViewPanelState:Oy,isHashLink:lv,isRelativePath:cv,InnerContent:function({clientId:e}){const{innerContent:t,order:n,selectedClientIds:r}=(0,R.A)(t=>{const{getBlock:n,getBlockOrder:r,getSelectedBlockClientIds:o}=t(fl);return{innerContent:n(e)?.innerContent,order:r(e),selectedClientIds:o()}},[e]),o=(0,b.useMemo)(()=>{let e=0;return(t??[]).map(t=>null===t?`<${tB} data-slot-index="${e++}" style="display: contents"></${tB}>`:t).join("")},[t]),i=(0,b.useRef)(),[s,a]=(0,b.useState)([]);return(0,b.useLayoutEffect)(()=>{const e=i.current;e.innerHTML=(0,ov.A)(o),a(Array.from(e.querySelectorAll(tB)).sort((e,t)=>Number(e.dataset.slotIndex)-Number(t.dataset.slotIndex)))},[o]),(0,Be.jsxs)(Nc,{value:nB,children:[(0,Be.jsx)("div",{ref:i,className:"block-editor-inner-content",style:{display:"contents"}}),n.map((t,n)=>s[n]?(0,RT.d5)((0,Be.jsx)(Qy.Ay,{value:!r.includes(t),children:(0,Be.jsx)(yk,{rootClientId:e,clientId:t})}),s[n],t):null)]})},useNativeUndo:jv,usesNativeUndo:function(e){let{target:t}=e;for("IFRAME"===t?.nodeName&&(t=t.contentDocument?.activeElement);t;){if(Nv.has(t))return!0;t=t.parentElement}return!1},isElementVisible:Dm})},4171(e,t,n){"use strict";n.r(t),n.d(t,{init:()=>y,metadata:()=>c,name:()=>h,settings:()=>b});var r=n(913),o=n(8756),i=n(6036),s=n(792),a=n(3150),l=n(3236);const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/code","title":"Code","category":"text","description":"Display code snippets that respect your spacing and tabs.","textdomain":"default","attributes":{"content":{"type":"rich-text","source":"rich-text","selector":"code","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"align":["wide"],"anchor":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"width":true,"color":true}},"color":{"text":true,"background":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-code"}');var u=n(9158);function d(e){return e.replace(/\[/g,"[")}function f(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var p=n(7319);function m(e,t,n=null){if(!e)return;const r=(0,a.E7)(t);if(!r)return;const o={};if((0,a.pN)(r,"anchor")&&e.anchor&&(o.anchor=e.anchor),(0,a.pN)(r,"ariaLabel")&&e.ariaLabel&&(o.ariaLabel=e.ariaLabel),e.metadata){const t=[];if(n&&t.push("id","bindings"),t.length>0){const r=Object.entries(e.metadata).reduce((e,[r,o])=>t.includes(r)?(e[r]="bindings"===r?n(o):o,e):e,{});Object.keys(r).length>0&&(o.metadata=r)}}return 0!==Object.keys(o).length?o:void 0}var g={from:[{type:"input",regExp:/^```$/,transform:()=>(0,a.Wv)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,a.Wv)("core/code",{...e,...m(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){const{attributes:t}=e;return(0,a.Wv)("core/code",{...t,...m(t,"core/code"),content:(0,p.Ky)({value:(0,p.vt)({text:(0,a.F8)(e)})})})}}
236,{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,a.Wv)("core/paragraph",{...m(e,"core/paragraph"),content:t})}}]},{name:h}=c,b={icon:o.A,example:{attributes:{ 237// translators: Preserve \n markers for line breaks 238content:(0,r.__)("// A âblockâ is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:g,edit:function({attributes:e,setAttributes:t,onRemove:n,insertBlocksAfter:o,mergeBlocks:i}){const c=(0,s.Z0)();return(0,l.jsx)("pre",{...c,children:(0,l.jsx)(s.sD,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:n,onMerge:i,placeholder:(0,r.__)("Write codeâ¦"),"aria-label":(0,r.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:o?()=>o((0,a.Wv)((0,a.K$)())):void 0,style:{whiteSpace:"break-spaces"}})})},save:function({attributes:e}){return(0,l.jsx)("pre",{...s.Z0.save(),children:(0,l.jsx)(s.sD.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,u.h)(d,f)(t||""))})});var t}},y=()=>(0,i.A)({name:h,metadata:c,settings:b})},9040(e,t,n){"use strict";n.d(t,{oQ:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.wA,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})})},7609(e,t,n){"use strict";n.r(t),n.d(t,{init:()=>R,metadata:()=>l,name:()=>L,settings:()=>O});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),s=n(792),a=n(6036);const l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list-item","title":"List Item","category":"text","parent":["core/list"],"allowedBlocks":["core/list"],"description":"An individual item within a list.","textdomain":"default","attributes":{"placeholder":{"type":"string"},"content":{"type":"rich-text","source":"rich-text","selector":"li","role":"content"}},"supports":{"anchor":true,"html":false,"className":false,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"background":true,"__experimentalDefaultControls":{"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-list > li","border":".wp-block-list:not(.wp-block-list .wp-block-list) > li"}}');var c=n(913),u=n(453),d=n(6927),f=n(3970),p=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})}),m=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})}),g=n(3730),h=n(5627),b=n(5897),y=n(8312),v=n(3150),k=n(1886),x=n(7319);function w(e,t){return e.getPreviousBlockClientId(t)}
238function _(e,t){const n=e.getBlockRootClientId(t),r=e.getBlockRootClientId(n);if(r&&"core/list-item"===e.getBlockName(r))return r}function S(e,t,n,r){const{getBlockOrder:o,getBlock:i}=e.select(s.M_),{moveBlocksToPosition:a,removeBlocks:l,insertBlock:c}=e.dispatch(s.M_),u=o(r),d=u[u.length-1];if(d)return void a(t,n,d);const f=(0,v.JB)(i(n),{},t.map(e=>i(e)));e.batch(()=>{l(t,!1),c(f,0,r,!1)})}function C(e,t){const n=e.select(s.M_),{getBlockRootClientId:r,getSelectedBlockClientIds:o,getSelectionStart:i,getSelectionEnd:a,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=n,{selectionChange:u,multiSelect:d}=e.dispatch(s.M_),f=l(),p=f?c():o();void 0===t&&(t=p[0]);const m=w(n,t);if(!m)return!1;const g=r(t),h=i(),b=a();return e.batch(()=>{S(e,p,g,m),f?d(p[0],p[p.length-1]):u(p[0],b.attributeKey,b.clientId===h.clientId?h.offset:b.offset,b.offset)}),!0}function A(e,t){const n=e.select(s.M_),{getBlockRootClientId:r,getBlockName:o,getBlockOrder:i,getBlockIndex:a,getSelectedBlockClientIds:l}=n,{moveBlocksToPosition:c,removeBlock:u,multiSelect:d}=e.dispatch(s.M_);if(void 0===t&&(t=l()),Array.isArray(t)||(t=[t]),!t.length)return!1;const f=t[0];if("core/list-item"!==o(f))return!1;const p=_(n,f);if(!p)return!1;const m=r(f),g=t[t.length-1],h=i(m).slice(a(g)+1);return e.batch(()=>{if(h.length&&S(e,h,m,f),c(t,m,r(p),a(p)+1),!i(m).length){u(m,!1)}t.length>1&&d(f,g)}),!0}var E=n(1190),{subscribeOwnedListener:I}=(0,E.T)(x.jb);var T=n(2317),{subscribeOwnedListener:N}=(0,E.T)(x.jb);function j({clientId:e}){const t=(0,h.A)(),{canIndent:n,canOutdent:r}=(0,b.A)(t=>{const n=t(s.M_);return{canIndent:!!w(n,e),canOutdent:!!_(n,e)}},[e]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.A,{icon:(0,c.V8)()?d.A:f.A,title:(0,c.__)("Outdent"),shortcut:y.dz.shift("Tab"),description:(0,c.__)("Outdent list item"),disabled:!r,onClick:()=>A(t)}),(0,o.jsx)(u.A,{icon:(0,c.V8)()?p:m,title:(0,c.__)("Indent"),shortcut:"Tab",description:(0,c.__)("Indent list item"),disabled:!n,onClick:()=>C(t,e)})]})}var B={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,v.Wv)("core/paragraph",e),...t.map(e=>(0,v.JB)(e))]}]},{name:L}=l,O={icon:i,edit:function({attributes:e,setAttributes:t,clientId:n,mergeBlocks:r}){const{placeholder:i,content:a}=e,l=(0,s.Z0)(),u=(0,s.yK)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),d=function(e){const t=(0,h.A)();return(0,k.A)(n=>I(n,"beforeinput",function(n){if(n.defaultPrevented||"insertParagraph"!==n.inputType)return;const r=t.select(s.M_),{getBlock:o,getBlockAttributes:i,getBlockRootClientId:a,getBlockIndex:l}=r,{replaceBlocks:c,selectionChange:u}=t.dispatch(s.M_),{content:d}=i(e)??{};if(d?.length)return;if(n.preventDefault(),_(r,e))return void A(t);const f=o(a(e)),p=l(e),m=(0,v.JB)({...f,innerBlocks:f.innerBlocks.slice(0,p)}),g=(0,v.Wv)((0,v.K$)()),h=[...f.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...f.innerBlocks.slice(p+1)],b=h.length?[(0,v.JB)({...f,innerBlocks:h})]:[];c(f.clientId,[m,g,...b],1),u(g.clientId)},!0),[e,t])}(n),f=function(){const e=(0,h.A)();return(0,k.A)(t=>N(t,"keydown",function(n){const{keyCode:r,shiftKey:o,altKey:i,metaKey:a,ctrlKey:l}=n;if(n.defaultPrevented||r!==y.t6&&r!==y.wn||i||a||l)return;const{getSelectionStart:c,getSelectionEnd:u}=e.select(s.M_);(0===c().offset&&0===u().offset||r===y.wn&&(0,T.A)(t))&&(o?A:C)(e)&&n.preventDefault()},!0),[e])}(),p=function(e){const t=(0,h.A)(),n=(0,b.A)(t=>{const{hasMultiSelection:n,getMultiSelectedBlockClientIds:r,getBlockName:o}=t(s.M_);if(!n())return!1;const i=r();return i[0]===e&&i.every(e=>"core/list-item"===o(e))},[e]);return(0,k.A)(e=>{if(!n)return;function r(n){const{keyCode:r,shiftKey:o,altKey:i,metaKey:s,ctrlKey:a}=n;r!==y.wn||n.defaultPrevented||i||s||a||n.target.contains(e)&&(o?A(t)&&n.preventDefault():C(t)&&n.preventDefault())}const{ownerDocument:o}=e;return o.addEventListener("keydown",r,!0),()=>{o.removeEventListener("keydown",r,!0)}},[n,t])}(n),m=function(e,t){const n=(0,h.A)();return r=>{const o=n.select(s.M_),{getPreviousBlockClientId:i,getNextBlockClientId:a,getBlockOrder:l,getBlockIndex:c,getBlockRootClientId:u,getBlockName:d,getBlock:f}=o,{mergeBlocks:p,moveBlocksToPosition:m,removeBlock:g,insertBlocks:h}=n.dispatch(s.M_);function b(e,t){n.batch(()=>{const[n]=l(t);n&&(i(t)!==e||l(e).length?_(o,t)===e?m(l(n),n,u(t),c(t)+1):m(l(n),n,u(e)):m([n],t,e));const r=u(t);p(e,t),l(r).length||g(r,!1)})}if(r){const t=l(e)[0];let r,i=e;if(t)r=l(t)[0];else for(;!(r=a(i));){const e=_(o,i);if(!e)break;i=e}if(r)b(e,r);else{const e=u(i),t=a(e);if(t)if("core/list"===d(t))n.batch(()=>{m(l(t),t,e),g(t,!1)});else{const r=(0,v.bh)(f(t),"core/list"),o=r?.[0]?.innerBlocks;o?.length&&n.batch(()=>{h(o,void 0,e,!1),g(t,!1)})}}}else{const s=i(e);if(s){return void b(function e(t){const n=l(t);return n.length?e(n[n.length-1]):t}(s),e)}const a=_(o,e);if(a)return void b(a,e);const c=l(e);(0,v.C5)(f(e),"content")&&c.length>0?n.batch(()=>{A(n,l(c[0])),g(e,!0)}):t(r)}}}(n,r);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("li",{...u,children:[(0,o.jsx)(s.sD,{ref:(0,g.A)([d,f,p]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:a,"aria-label":(0,c.__)("List text"),placeholder:i||(0,c.__)("List"),onMerge:m}),u.children]}),(0,o.jsx)(s.mC,{group:"block",children:(0,o.jsx)(j,{clientId:n}
238)})]})},save:function({attributes:e}){return(0,o.jsxs)("li",{...s.Z0.save(),children:[(0,o.jsx)(s.sD.Content,{value:e.content}),(0,o.jsx)(s.Tj.Content,{})]})},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:B,[(0,E.T)(s.jb).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){const{content:n}=e,r=e?.metadata?.name,o=n?.trim().length>0;return"list-view"===t&&(r||o)?r||n:"breadcrumb"===t&&r?r:void 0}},R=()=>(0,a.A)({name:L,metadata:l,settings:O})},6269(e,t,n){"use strict";n.r(t),n.d(t,{init:()=>Z,metadata:()=>$,name:()=>G,settings:()=>q});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})}),s=n(913),a=n(6036),l=n(792),c=n(1190),{cleanEmptyObject:u}=(0,c.T)(l.jb);var d=n(3150),f={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function p(e){const{values:t,start:n,reversed:r,ordered:o,type:i,...s}=e,a=document.createElement(o?"ol":"ul");a.innerHTML=t,n&&a.setAttribute("start",n),r&&a.setAttribute("reversed",!0),i&&a.setAttribute("type",i);const[l]=(0,d.lh)({HTML:a.outerHTML});return[{...s,...l.attributes},l.innerBlocks]}var m={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:r,reversed:i,start:s}=e,a=t?"ol":"ul";return(0,o.jsx)(a,{...l.Z0.save({type:r,reversed:i,start:s}),children:(0,o.jsx)(l.sD.Content,{value:n,multiline:"li"})})},migrate:function(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:u({...e.style,typography:n}),fontFamily:t.split("|").pop()}},isEligible:({style:e})=>e?.typography?.fontFamily},g={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:r,reversed:i,start:s}=e,a=t?"ol":"ul";return(0,o.jsx)(a,{...l.Z0.save({type:r,reversed:i,start:s}),children:(0,o.jsx)(l.sD.Content,{value:n,multiline:"li"})})},migrate:p},h={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:n,reversed:r,start:i}=e,s=t?"ol":"ul";return(0,o.jsx)(s,{...l.Z0.save({type:n,reversed:r,start:i}),children:(0,o.jsx)(l.Tj.Content,{})})},migrate:function(e){const{type:t}=e;return t&&f[t]?{...e,type:f[t]}:e}},b={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,type:n,reversed:r,start:i}=e,s=t?"ol":"ul";return(0,o.jsx)(s,{...l.Z0.save({reversed:r,start:i,style:{listStyleType:t&&"decimal"!==n?n:void 0}}),children:(0,o.jsx)(l.Tj.Content,{})})}},y=[b,h,g,m],v=n(453),k=n(5627),x=n(9027),w=n(5897),_=n(6927),S=n(3970),C=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
238currentColor",children:(0,o.jsx)(r.wA,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})}),A=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),E=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})}),I=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})}),T=n(2376),N=n(6786),j=n(6068),B=n(6069),L=n(3533),O=n(8036),R=n(9700);var M=[{label:(0,s.__)("Numbers"),value:"decimal"},{label:(0,s.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,s.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,s.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,s.__)("Lowercase Roman numerals"),value:"lower-roman"}],P=({setAttributes:e,reversed:t,start:n,type:r})=>{const i=(0,R.A)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}};return(0,o.jsx)(l.s1,{children:(0,o.jsxs)(j.ToolsPanel,{label:(0,s.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:i,children:[(0,o.jsx)(j.ToolsPanelItem,{label:(0,s.__)("List style"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({type:void 0}),children:(0,o.jsx)(B.A,{label:(0,s.__)("List style"),options:M,value:r||"decimal",onChange:t=>e({type:t})})}),(0,o.jsx)(j.ToolsPanelItem,{label:(0,s.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>e({start:void 0}),children:(0,o.jsx)(L.A,{label:(0,s.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"})}),(0,o.jsx)(j.ToolsPanelItem,{label:(0,s.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,o.jsx)(O.A,{label:(0,s.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})})]})})};var D=(0,T.forwardRef)(function(e,t){const{ordered:n,...r}=e,i=n?"ol":"ul";return(0,o.jsx)(i,{ref:t,...r})}),z={name:"core/list-item"};function F({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:n}=(0,x.A)(l.M_),{getBlockRootClientId:r,getBlockAttributes:o,getBlock:i}=(0,w.A)(l.M_);return(0,T.useCallback)(()=>{const s=r(e),a=o(s),l=(0,d.Wv)("core/list-item",a),{innerBlocks:c}=i(e);t([s],[l,...c]),n(c[c.length-1].clientId)},[e])}(e),n=(0,w.A)(t=>{const{getBlockRootClientId:n,getBlockName:r}=t(l.M_);return"core/list-item"===r(n(e))},[e]);return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(v.A,{icon:(0,s.V8)()?_.A:S.A,title:(0,s.__)("Outdent"),description:(0,s.__)("Outdent list item"),disabled:!n,onClick:t})})}const $=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list","title":"List","category":"text","allowedBlocks":["core/list-item"],"description":"An organized collection of items displayed in a specific order.","keywords":["bullet list","ordered list","numbered list"],"textdomain":"default","attributes":{"ordered":{"type":"boolean","default":false,"role":"content"},"values":{"type":"string","source":"html","selector":"ol,ul","multiline":"li","default":"","role":"content"},"type":{"type":"string"},"start":{"type":"number"},"reversed":{"type":"boolean"},"placeholder":{"type":"string"}},"supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__unstablePasteTextInline":true,"__experimentalOnMerge":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true},"listView":true},"selectors":{"border":".wp-block-list:not(.wp-block-list .wp-block-list)"},"editorStyle":"wp-block-list-editor","style":"wp-block-list"}');var V=n(7319);function H({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};
238return["ul","ol"].forEach(e=>{t[e].children={li:{children:t}}}),t}function W(e){return e.flatMap(({name:e,attributes:t,innerBlocks:n=[]})=>"core/list-item"===e?[t.content,...W(n)]:W(n))}var U={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:e})=>(0,d.Wv)("core/list-item",{content:e}));else if(1===e.length){const n=(0,V.vt)({html:e[0].content});t=(0,V.lD)(n,"\n").map(e=>(0,d.Wv)("core/list-item",{content:(0,V.Ky)({value:e})}))}return(0,d.Wv)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:H(e).ol,ul:H(e).ul}),transform:function e(t){const n=t.getAttribute("type"),r={ordered:"OL"===t.tagName,anchor:t.id?t.id:void 0,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:n&&f[n]?f[n]:void 0},o=Array.from(t.children).map(t=>{const n=Array.from(t.childNodes).filter(e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length);n.reverse();const[r,...o]=n;if(!("UL"===r?.tagName||"OL"===r?.tagName))return(0,d.Wv)("core/list-item",{content:t.innerHTML});const i=o.map(e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML);i.reverse();const s={content:i.join("").trim()},a=[e(r)];return(0,d.Wv)("core/list-item",s,a)});return(0,d.Wv)("core/list",r,o)}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>(0,d.Wv)("core/list",{},[(0,d.Wv)("core/list-item",{content:e})])})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>(0,d.Wv)("core/list",{ordered:!0},[(0,d.Wv)("core/list-item",{content:e})])}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,n)=>W(n).map(t=>(0,d.Wv)(e,{content:t}))}))]},K=U,{name:G}=$,q={icon:i,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,s.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,s.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,s.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,s.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,s.__)("The Queen of Hearts.")}}]},transforms:K,template:[["core/list-item"]],templateInsertUpdatesSelection:!0,edit:function({attributes:e,setAttributes:t,clientId:n}){const{ordered:r,type:i,reversed:a,start:c}=e,u=(0,l.Z0)({style:{listStyleType:r&&"decimal"!==i?i:void 0}}),d=(0,l.yK)(u,{defaultBlock:z,directInsert:!0,templateLock:!1,__experimentalCaptureToolbars:!0});!function(e,t){const n=(0,k.A)(),{updateBlockAttributes:r,replaceInnerBlocks:o,selectBlock:i}=(0,x.A)(l.M_);(0,T.useEffect)(()=>{if(!e.values)return;const[s,a]=p(e);
238(0,N.A)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"});const c=n.select(l.M_).hasSelectedInnerBlock(t,!0);n.batch(()=>{r(t,s),o(t,a),c&&i(t)})},[e.values])}(e,n);const f=(0,o.jsxs)(l.mC,{group:"block",children:[(0,o.jsx)(v.A,{icon:(0,s.V8)()?C:A,title:(0,s.__)("Unordered"),description:(0,s.__)("Convert to unordered list"),isActive:!1===r,onClick:()=>{t({ordered:!1})}}),(0,o.jsx)(v.A,{icon:(0,s.V8)()?E:I,title:(0,s.__)("Ordered"),description:(0,s.__)("Convert to ordered list"),isActive:!0===r,onClick:()=>{t({ordered:!0})}}),(0,o.jsx)(F,{clientId:n})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D,{ordered:r,reversed:a,start:c,...d}),f,r&&(0,o.jsx)(P,{setAttributes:t,reversed:a,start:c,type:i})]})},save:function({attributes:e}){const{ordered:t,type:n,reversed:r,start:i}=e,s=t?"ol":"ul";return(0,o.jsx)(s,{...l.Z0.save({reversed:r,start:i,style:{listStyleType:t&&"decimal"!==n?n:void 0}}),children:(0,o.jsx)(l.Tj.Content,{})})},deprecated:y},Z=()=>(0,a.A)({name:G,metadata:$,settings:q})},1190(e,t,n){"use strict";n.d(t,{T:()=>i});var r=n(5294),{lock:o,unlock:i}=(0,r.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library")},9950(e,t,n){"use strict";n.r(t),n.d(t,{init:()=>H,metadata:()=>D,name:()=>$,settings:()=>V});var r=n(913),o=n(5334),i=n(3236),s=(0,i.jsxs)(o.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,i.jsx)(o.wA,{d:"M10.75 20V4.75L14.75 4.75M14.75 20V4.75M14.75 4.75H18.5",vectorEffect:"non-scaling-stroke"}),(0,i.jsx)(o.wA,{d:"M5.75 9C5.75 11.3472 7.65279 13.25 10 13.25H10.75V4.75H10C7.65279 4.75 5.75 6.65279 5.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]}),a=n(6036),l=n(3022),c=n(2557),u=n(792),d={className:!1},f={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},p=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:n,customBackgroundColor:r,customFontSize:o,...i}=e;return{...i,style:t}},m=e=>{const{align:t,...n}=e;return t?{...n,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:g,...h}=f,b=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:f,isEligible:e=>!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/),save({attributes:e}){const{align:t,content:n,dropCap:o,direction:s}=e,a=(0,l.A)({"has-drop-cap":t!==((0,r.V8)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,i.jsx)("p",{...u.Z0.save({className:a,dir:s}),children:(0,i.jsx)(u.sD.Content,{value:n})})},migrate:m},{supports:d,attributes:{...h,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:m,save({attributes:e}){const{align:t,content:n,dropCap:o,direction:s}=e,a=(0,l.A)({"has-drop-cap":t!==((0,r.V8)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,i.jsx)("p",{...u.Z0.save({className:a,dir:s}),children:(0,i.jsx)(u.sD.Content,{value:n})})}},{supports:d,attributes:{...h,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:e=>p(m(e)),save({attributes:e}){const{align:t,content:n,dropCap:r,backgroundColor:o,textColor:s,customBackgroundColor:a,customTextColor:c,fontSize:d,customFontSize:f,direction:p}=e,m=(0,u.tQ)("color",s),g=(0,u.tQ)("background-color",o),h=(0,u.t4)(d),b=(0,l.A)({"has-text-color":s||c,"has-background":o||a,"has-drop-cap":r,[`has-text-align-${t}`]:t,[h]:h,[m]:m,[g]:g}),y={backgroundColor:g?void 0:a,color:m?void 0:c,fontSize:h?void 0:f};return(0,i.jsx)(u.sD.Content,{tagName:"p",style:y,className:b||void 0,value:n,dir:p})}},{supports:d,attributes:{...h,customTextColor:{type:"string"}
238,customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:e=>p(m(e)),save({attributes:e}){const{align:t,content:n,dropCap:r,backgroundColor:o,textColor:s,customBackgroundColor:a,customTextColor:c,fontSize:d,customFontSize:f,direction:p}=e,m=(0,u.tQ)("color",s),g=(0,u.tQ)("background-color",o),h=(0,u.t4)(d),b=(0,l.A)({"has-text-color":s||c,"has-background":o||a,"has-drop-cap":r,[h]:h,[m]:m,[g]:g}),y={backgroundColor:g?void 0:a,color:m?void 0:c,fontSize:h?void 0:f,textAlign:t};return(0,i.jsx)(u.sD.Content,{tagName:"p",style:y,className:b||void 0,value:n,dir:p})}},{supports:d,attributes:{...h,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:e=>p(m(e)),save({attributes:e}){const{width:t,align:n,content:r,dropCap:o,backgroundColor:s,textColor:a,customBackgroundColor:c,customTextColor:d,fontSize:f,customFontSize:p}=e,m=(0,u.tQ)("color",a),g=(0,u.tQ)("background-color",s),h=f&&`is-${f}-text`,b=(0,l.A)({[`align${t}`]:t,"has-background":s||c,"has-drop-cap":o,[h]:h,[m]:m,[g]:g}),y={backgroundColor:g?void 0:c,color:m?void 0:d,fontSize:h?void 0:p,textAlign:n};return(0,i.jsx)(u.sD.Content,{tagName:"p",style:y,className:b||void 0,value:r})}},{supports:d,attributes:{...h,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:n,content:r,dropCap:o,backgroundColor:s,textColor:a,fontSize:c}=e,u=(0,l.A)({[`align${t}`]:t,"has-background":s,"has-drop-cap":o}),d={backgroundColor:s,color:a,fontSize:c,textAlign:n};return(0,i.jsx)("p",{style:d,className:u||void 0,children:r})},migrate:e=>p(m({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}))},{supports:d,attributes:{...f,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,i.jsx)(c.A,{children:e.content}),migrate:e=>e}],y=n(453),v=n(6068),k=n(8036),x=n(5897),w=n(3150),_=(0,i.jsx)(o.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)(o.wA,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})}),S=n(2376),C=n(1886),A=n(7319),E=n(5627),I=n(9027),T=n(1190),{subscribeOwnedListener:N}=(0,T.T)(A.jb);function j(e){const{batch:t}=(0,E.A)(),{moveBlocksToPosition:n,replaceBlocks:r,selectionChange:o}=(0,I.A)(u.M_),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:a,getBlockName:l,getBlock:c,canInsertBlockType:d}=(0,x.A)(u.M_),f=(0,S.useRef)(e);return f.current=e,(0,C.A)(e=>N(e,"beforeinput",function(e){if(e.defaultPrevented)return;if("insertParagraph"!==e.inputType)return;const{content:u,clientId:p}=f.current;if(u.length)return;const m=i(p);if(!(0,w.pN)(l(m),"__experimentalOnEnter",!1))return;const g=a(m),h=g.indexOf(p);if(h===g.length-1){let t=m;for(;!d(l(p),i(t));)t=i(t);return void("string"==typeof t&&(e.preventDefault(),n([p],m,i(t),s(t)+1)))}const b=(0,w.K$)(),y=l(m),v=i(m);if(!d(b,v)||!d(y,v))return;e.preventDefault();const k=c(m),x=(0,w.JB)({...k,innerBlocks:k.innerBlocks.slice(0,h)}),_=(0,w.Wv)(b),S=(0,w.JB)({...k,innerBlocks:k.innerBlocks.slice(h+1)});t(()=>{r(m,[x,_,S]),o(_.clientId)})},!0),[])}var B=n(4233),L=n(6786);function O({direction:e,setDirection:t}){return(0,r.V8)()&&(0,i.jsx)(y.A,{icon:_,title:(0,r._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function R(e){return e===((0,r.V8)()?"left":"right")||"center"===e}function M({clientId:e,attributes:t,setAttributes:n,name:o}){const[s]=(0,u.t0)("typography.dropCap"),a=(0,x.A)(t=>{const{hasSelectedStyleState:n}=(0,T.T)(t(u.M_));return n(e)},[e]);if(!s||a)return null;const{style:l,dropCap:c}=t,d=l?.typography?.textAlign;let f;f=R(d)?(0,r.__)("Not available for aligned text."):c?(0,r.__)("Showing large initial letter."):(0,r.__)("Show a large initial letter.");const p=(0,w.bI)(o,"typography.defaultControls.dropCap",!1);return(0,i.jsx)(u.s1,{group:"typography",children:(0,i.jsx)(v.ToolsPanelItem,{hasValue:()=>!!c,label:(0,r.__)("Drop cap"),isShownByDefault:p,onDeselect:()=>n({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,i.jsx)(k.A,{label:(0,r.__)("Drop cap"),checked:!!c,onChange:()=>n({dropCap:!c}),help:f,disabled:R(d)})})})}var P=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:o,setAttributes:s,clientId:a,isSelected:c,name:d}){const{content:f,direction:p,dropCap:m,placeholder:g,style:h}=e,b=h?.typography?.textAlign;!function(e,t,n){const{__unstableMarkNextChangeAsNotPersistent:r}=(0,I.A)(u.M_),o=(0,B.A)(()=>{(0,L.A)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),r(),n({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,S.useRef)();(0,S.useEffect)(()=>{"full"!==e&&"wide"!==e&&e!==i.current&&(i.current=e,o())},[e,o])}(e.align,h,s);const y=(0,u.Z0)({ref:j({clientId:a,content:f}),className:(0,l.A)({"has-drop-cap":!R(b)&&m}),style:{direction:p},"aria-label":u.sD.isEmpty(f)?(0,r.__)("Empty block; start writing or type forward slash to choose a block"):(0,r.__)("Block: Paragraph")}),v=(0,u.wp)();return(0,i.jsxs)(i.Fragment,{children:["default"===v&&(0,i.jsx)(u.mC,{group:"block",children:(0,i.jsx)(O,{direction:p,setDirection:e=>s({direction:e})})}),c&&(0,i.jsx)(M,{name:d,clientId:a,attributes:e,setAttributes:s}),(0,i.jsx)(u.sD,{identifier:"content",tagName:"p",...y,value:f,onChange:e=>s({content:e}),onMerge:t,onReplace:n,onRemove:o,"data-empty":u.sD.isEmpty(f),placeholder:g||(0,r.__)("Type / to choose a block"),"data-custom-placeholder":!!g||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})};const D=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/paragraph","title":"Paragraph","category":"text","description":"Start with the basic building block of all narrative.","keywords":["text"],"textdomain":"default","attributes":{"content":{"type":"rich-text","source":"rich-text","selector":"p","role":"content"},"dropCap":{"type":"boolean","default":false},"placeholder":{"type":"string"},"direction":{"type":"string","enum":["ltr","rtl"]}},"supports":{"align":["wide","full"],"splitting":true,"anchor":true,"className":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"textAlign":true,"textColumns":true,"textIndent":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalSelector":"p","__unstablePasteTextInline":true,"interactivity":{"clientNavigation":true}},"selectors":{"root":"p","typography":{"textIndent":".wp-block-paragraph + .wp-block-paragraph"}},"editorStyle":"wp-block-paragraph-editor","style":"wp-block-paragraph"}');var{name:z}=D,F={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,w.Ph)(z,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.style={...t.style,typography:{...t.style?.typography,textAlign:n}}),(0,w.Wv)(z,t)}}]},{name:$}=D,V={icon:s,example:{attributes:{content:(0,r.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;if(("list-view"===t||"breadcrumb"===t)&&n)return n;if("accessibility"===t){if(n)return n;const{content:t}=e;return t&&0!==t.length?t:(0,r.__)("Empty")}},transforms:F,deprecated:b,merge:(e,t)=>
238({content:(e.content||"")+(t.content||"")}),edit:P,save:function({attributes:e}){const{content:t,dropCap:n,direction:o,style:s}=e,a=s?.typography?.textAlign,c=(0,l.A)({"has-drop-cap":a!==((0,r.V8)()?"left":"right")&&"center"!==a&&n});return(0,i.jsx)("p",{...u.Z0.save({className:c,dir:o}),children:(0,i.jsx)(u.sD.Content,{value:t})})}},H=()=>(0,a.A)({name:$,metadata:D,settings:V})},6043(e,t,n){"use strict";n.r(t),n.d(t,{init:()=>T,metadata:()=>C,name:()=>E,settings:()=>I});var r=n(913),o=n(5334),i=n(3236),s=(0,i.jsx)(o.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)(o.wA,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})}),a=n(6036),l=n(3022),c=n(3150),u=n(792),d=e=>{const{value:t,...n}=e;return[{...n},t?(0,c.b6)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:e})=>(0,c.Wv)("core/paragraph",{content:e})):(0,c.Wv)("core/paragraph")]},f=["left","right","center"],p=(e,t)=>{const{align:n,...r}=e;return[f.includes(n)?{...r,textAlign:n}:e,t]},m=[{attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>f.includes(e),save({attributes:e}){const{align:t,citation:n}=e,r=(0,l.A)({[`has-text-align-${t}`]:t});return(0,i.jsxs)("blockquote",{...u.Z0.save({className:r}),children:[(0,i.jsx)(u.Tj.Content,{}),!u.sD.isEmpty(n)&&(0,i.jsx)(u.sD.Content,{tagName:"cite",value:n})]})},migrate:p},{attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:n,citation:r}=e,o=(0,l.A)({[`has-text-align-${t}`]:t});return(0,i.jsxs)("blockquote",{...u.Z0.save({className:o}),children:[(0,i.jsx)(u.sD.Content,{multiline:!0,value:n}),!u.sD.isEmpty(r)&&(0,i.jsx)(u.sD.Content,{tagName:"cite",value:r})]})},migrate:e=>p(...d(e))},{attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:e=>p(...d(e)),save({attributes:e}){const{align:t,value:n,citation:r}=e;return(0,i.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,i.jsx)(u.sD.Content,{multiline:!0,value:n}),!u.sD.isEmpty(r)&&(0,i.jsx)(u.sD.Content,{tagName:"cite",value:r})]})}},{attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...n}=e;return p(...((e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t])(...d(n)))}return p(...d(e))},save({attributes:e}){const{align:t,value:n,citation:r,style:o}=e;return(0,i.jsxs)("blockquote",{className:2===o?"is-large":"",style:{textAlign:t||null},children:[(0,i.jsx)(u.sD.Content,{multiline:!0,value:n}),!u.sD.isEmpty(r)&&(0,i.jsx)(u.sD.Content,{tagName:"cite",value:r})]})}},{attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...n}=e;return p(...d(n))}return p(...d(e))},save({attributes:e}){const{align:t,value:n,citation:r,style:o}=e;return(0,i.jsxs)("blockquote",{className:`blocks-quote-style-${o}`,style:{textAlign:t||null},children:[(0,i.jsx)(u.sD.Content,{multiline:!0,value:n}),!u.sD.isEmpty(r)&&(0,i.jsx)(u.sD.Content,{tagName:"footer",value:r})]})}}],g=n(5627),h=n(9027),b=n(5897),y=n(2376),v=n(6786),k=n(8450),x=n(5766),w=n(453),_=(0,i.jsx)(o.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
238currentColor",children:(0,i.jsx)(o.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function S({attributeKey:e="caption",attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:s,placeholder:a=(0,r.__)("Add caption"),label:d=(0,r.__)("Caption text"),showToolbarButton:f=!0,excludeElementClassName:p,className:m,readOnly:g,tagName:h="figcaption",addLabel:b=(0,r.__)("Add caption"),removeLabel:v=(0,r.__)("Remove caption"),icon:k=_,...S}){const C=t[e],A=(0,x.A)(C),E=u.sD.isEmpty(C),I=u.sD.isEmpty(A),[T,N]=(0,y.useState)(!E);(0,y.useEffect)(()=>{!E&&I&&N(!0)},[E,I]),(0,y.useEffect)(()=>{!o&&E&&N(!1)},[o,E]);const j=(0,y.useCallback)(e=>{e&&E&&e.focus()},[E]);return(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)(u.mC,{group:"block",children:(0,i.jsx)(w.A,{onClick:()=>{N(!T),T&&C&&n({[e]:void 0})},icon:k,isPressed:T,label:T?v:b})}),T&&(!u.sD.isEmpty(C)||o)&&(0,i.jsx)(u.sD,{identifier:e,tagName:h,className:(0,l.A)(m,p?"":(0,u.oJ)("caption")),ref:j,"aria-label":d,placeholder:a,value:C,onChange:t=>n({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:s?()=>s((0,c.Wv)((0,c.K$)())):void 0,readOnly:g,...S})]})}const C=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/quote","title":"Quote","category":"text","description":"Give quoted text visual emphasis. \\"In quoting others, we cite ourselves.\\" â Julio Cortázar","keywords":["blockquote","cite"],"textdomain":"default","attributes":{"value":{"type":"string","source":"html","selector":"blockquote","multiline":"p","default":"","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"gradient":true,"__experimentalDefaultControls":{"backgroundImage":true,"gradient":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"__experimentalOnEnter":true,"__experimentalOnMerge":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"layout":{"allowEditing":false},"spacing":{"blockGap":true,"padding":true,"margin":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"plain","label":"Plain"}],"editorStyle":"wp-block-quote-editor","style":"wp-block-quote"}');var A={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,c.Wv)("core/quote",{},[(0,c.Wv)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:n,anchor:r,fontSize:o,style:i})=>(0,c.Wv)("core/quote",{align:t,citation:n,anchor:r,fontSize:o,style:i},[(0,c.Wv)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,c.Wv)("core/quote",{},[(0,c.Wv)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,c.Wv)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some(({name:e})=>"core/quote"===e),__experimentalConvert:e=>(0,c.Wv)("core/quote",{},e.map(e=>(0,c.GI)(e)))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every(({name:e})=>"core/paragraph"===e),transform:({align:e,citation:t,anchor:n,fontSize:r,style:o},i)=>{const s=i.map(({attributes:e})=>`${e.content}`).join("<br>");return(0,c.Wv)("core/pullquote",{value:s,align:e,citation:t,anchor:n,fontSize:r,style:o})}}
238,{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(e=>{if("core/paragraph"===e.name)return!0;return null!==(0,c.bh)(e,"core/paragraph")}),transform:({},e)=>{const t=e.flatMap(e=>"core/paragraph"===e.name?e:(0,c.bh)(e,"core/paragraph")||[]).map(({attributes:e})=>e.content||"").filter(Boolean).join("<br>");return(0,c.Wv)("core/verse",{content:t})}},{type:"block",blocks:["core/paragraph"],isMatch:({citation:e},t)=>{const n=t.innerBlocks;return n.length?n.every(e=>{if("core/paragraph"===e.name)return!0;return null!==(0,c.bh)(e,"core/paragraph")}):!u.sD.isEmpty(e)},transform:({citation:e},t)=>{const n=t.flatMap(e=>"core/paragraph"===e.name?e:(0,c.bh)(e,"core/paragraph")||[]);return u.sD.isEmpty(e)?n:[...n,(0,c.Wv)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},n)=>(0,c.Wv)("core/group",{anchor:t},u.sD.isEmpty(e)?n:[...n,(0,c.Wv)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>u.sD.isEmpty(e)?t:[...t,(0,c.Wv)("core/paragraph",{content:e})]},{name:E}=C,I={icon:s,example:{attributes:{citation:(0,r.__)("Julio Cortázar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,r.__)("In quoting others, we cite ourselves.")}}]},transforms:A,template:[["core/paragraph",{}]],templateInsertUpdatesSelection:!0,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n,clientId:o,className:s,isSelected:a}){const{textAlign:c,allowedBlocks:f}=e,{hasInnerBlocks:p}=(0,b.A)(e=>{const{getBlockCount:t}=e(u.M_);return{hasInnerBlocks:t(o)>0}},[o]);((e,t)=>{const n=(0,g.A)(),{updateBlockAttributes:r,replaceInnerBlocks:o,selectBlock:i}=(0,h.A)(u.M_);(0,y.useEffect)(()=>{if(!e.value)return;const[s,a]=d(e);
238(0,v.A)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"});const l=n.select(u.M_).hasSelectedInnerBlock(t,!0);n.batch(()=>{r(t,s),o(t,a),l&&i(t)})},[e.value])})(e,o);const m=(0,u.Z0)({className:(0,l.A)(s,{[`has-text-align-${c}`]:c})}),x=(0,u.yK)(m,{__experimentalCaptureToolbars:!0,renderAppender:!p&&void 0,allowedBlocks:f});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.mC,{group:"block",children:(0,i.jsx)(u.LE,{value:c,onChange:e=>{t({textAlign:e})}})}),(0,i.jsxs)("blockquote",{...x,children:[x.children,(0,i.jsx)(S,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:a,attributes:e,setAttributes:t,icon:k.A,label:(0,r.__)("Quote citation"),placeholder: 239// translators: placeholder text used for the 240// translators: placeholder text used for the 241(0,r.__)("Add citation"),addLabel:(0,r.__)("Add citation"),removeLabel:(0,r.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:n})]})]})},save:function({attributes:e}){const{textAlign:t,citation:n}=e,r=(0,l.A)({[`has-text-align-${t}`]:t});return(0,i.jsxs)("blockquote",{...u.Z0.save({className:r}),children:[(0,i.jsx)(u.Tj.Content,{}),!u.sD.isEmpty(n)&&(0,i.jsx)(u.sD.Content,{tagName:"cite",value:n})]})},deprecated:m},T=()=>(0,a.A)({name:E,metadata:C,settings:I})},6036(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(3150);function o(e){if(!e)return;const{metadata:t,settings:n,name:o}=e;return(0,r.xU)({name:o,...t},n)}},3691(e,t,n){"use strict";var r,o,i,s;n.d(t,{q:()=>u});var a=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function l(e,t,n,r,o){return{blockName:e,attrs:t,innerBlocks:n,innerHTML:r,innerContent:o}}function c(e){return l(null,{},[],e,[e])}var u=e=>{r=e,o=0,i=[],s=[],a.lastIndex=0;do{}while(d());return i};function d(){const e=s.length,t=function(){const e=a.exec(r);if(null===e)return["no-more-tokens","",null,0,0];const t=e.index,[n,o,i,s,l,,c]=e,u=n.length,d=!!o,f=!!c,p=(i||"core/")+s,m=!!l,g=m?function(e){try{return JSON.parse(e)}catch{return null}}(l):{};if(f)return["void-block",p,g,t,u];
241if(d)return["block-closer",p,null,t,u];return["block-opener",p,g,t,u]}(),[n,u,d,g,h]=t,b=g>o?o:null;switch(n){case"no-more-tokens":if(0===e)return f(),!1;if(1===e)return m(),!1;for(;0<s.length;)m();return!1;case"void-block":return 0===e?(null!==b&&i.push(c(r.substr(b,g-b))),i.push(l(u,d,[],"",[])),o=g+h,!0):(p(l(u,d,[],"",[]),g,h),o=g+h,!0);case"block-opener":return s.push(function(e,t,n,r,o){return{block:e,tokenStart:t,tokenLength:n,prevOffset:r||t+n,leadingHtmlStart:o}}(l(u,d,[],"",[]),g,h,g+h,b)),o=g+h,!0;case"block-closer":if(0===e)return f(),!1;if(1===e)return m(g),o=g+h,!0;const t=s.pop(),n=r.substr(t.prevOffset,g-t.prevOffset);return t.block.innerHTML+=n,t.block.innerContent.push(n),t.prevOffset=g+h,p(t.block,t.tokenStart,t.tokenLength,g+h),o=g+h,!0;default:return f(),!1}}function f(e){const t=e||r.length-o;0!==t&&i.push(c(r.substr(o,t)))}function p(e,t,n,o){const i=s[s.length-1];i.block.innerBlocks.push(e);const a=r.substr(i.prevOffset,t-i.prevOffset);a&&(i.block.innerHTML+=a,i.block.innerContent.push(a)),i.block.innerContent.push(null),i.prevOffset=o||t+n}function m(e){const{block:t,leadingHtmlStart:n,prevOffset:o,tokenStart:a}=s.pop(),l=e?r.substr(o,e-o):r.substr(o);l&&(t.innerHTML+=l,t.innerContent.push(l)),null!==n&&i.push(c(r.substr(n,a-n))),i.push(t)}},3150(e,t,n){"use strict";n.d(t,{dB:()=>C,G8:()=>A,RY:()=>S,Y0:()=>te,cV:()=>tn,v9:()=>nn,Y_:()=>nr,JB:()=>Lt,GI:()=>Bt,Wv:()=>Nt,to:()=>jt,V6:()=>is,wG:()=>Dt,Ph:()=>lr,oA:()=>ie,Xm:()=>Z,F8:()=>sn,KW:()=>Xt,KL:()=>Vt,HK:()=>Qt,bI:()=>W,XD:()=>zt,E7:()=>V,li:()=>H,oO:()=>q,K$:()=>$,Fk:()=>Pt,Z9:()=>on,GD:()=>rn,pN:()=>U,tk:()=>K,gc:()=>G,C5:()=>X,Xw:()=>Q,qg:()=>yr,b6:()=>ar,Gk:()=>os,jb:()=>cs,lh:()=>to,xU:()=>M,lK:()=>cn,Kx:()=>Zt,uz:()=>F,M_:()=>At,bh:()=>$t,Nk:()=>ls,YV:()=>Wn});var r=n.cw(function(e,t){var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case s:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case m:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===s||e===f||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)}}),o=n.cw(function(e,t){e.exports=r()}),i={};n.r(i),n.d(i,{getAllBlockBindingsSources:()=>Te,getBlockBindingsSource:()=>Ne,getBlockBindingsSourceFieldsList:()=>je,getBlockKeyboardShortcuts:()=>Be,getBootstrappedBlockType:()=>Ee,getSupportedStyles:()=>Ae,getUnprocessedBlockTypes:()=>Ie,hasContentRoleAttribute:()=>Le});var s={};n.r(s),n.d(s,{__experimentalHasContentRoleAttribute:()=>et,getActiveBlockVariation:()=>ze,getBlockStyles:()=>Pe,getBlockSupport:()=>qe,getBlockType:()=>Me,getBlockTypes:()=>Re,getBlockVariations:()=>De,getCategories:()=>$e,getChildBlockNames:()=>Ge,getCollections:()=>Ve,getDefaultBlockName:()=>He,getDefaultBlockVariation:()=>Fe,getFreeformFallbackBlockName:()=>We,getGroupingBlockName:()=>Ke,getUnregisteredFallbackBlockName:()=>Ue,hasBlockSupport:()=>Ze,hasChildBlocks:()=>Qe,hasChildBlocksWithInserterSupport:()=>Je,isMatchingSearchTerm:()=>Xe});var a={};n.r(a),n.d(a,{__experimentalReapplyBlockFilters:()=>lt,addBlockCollection:()=>kt,addBlockStyles:()=>ut,addBlockTypes:()=>st,addBlockVariations:()=>ft,reapplyBlockTypeFilters:()=>at,removeBlockCollection:()=>xt,removeBlockStyles:()=>dt,removeBlockTypes:()=>ct,removeBlockVariations:()=>pt,setCategories:()=>yt,setDefaultBlockName:()=>mt,setFreeformFallbackBlockName:()=>gt,setGroupingBlockName:()=>bt,setUnregisteredFallbackBlockName:()=>ht,updateCategory:()=>vt});var l={};n.r(l),n.d(l,{addBlockBindingsSource:()=>St,addBootstrappedBlockType:()=>wt,addUnprocessedBlockType:()=>_t,removeBlockBindingsSource:()=>Ct});var c=n(9115),u=n(1663),d=n(9565),f=n(2769);function p(e,t){return 0===t?e.toLowerCase():(0,f.l3)(e,t)}var m=n(913),g=n(3270),h=n(3295),b=n(6089),y=n(2376),v=n(5394),k=n(7319),x=n(6786),w="block-default",_=["attributes","supp
241orts","save","migrate","isEligible","apiVersion"],S={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundImage:{value:["background","backgroundImage"],support:["background","backgroundImage"],useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},backgroundPosition:{value:["background","backgroundPosition"],support:["background","backgroundPosition"],useEngine:!0},backgroundGradient:{value:["background","gradient"],support:["background","gradient"],useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},minWidth:{value:["dimensions","minWidth"],support:["dimensions","minWidth"],useEngine:!0},height:{value:["dimensions","height"],support:["dimensions","height"],useEngine:!0},width:{value:["dimensions","width"],support:["dimensions","width"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textAlign:{value:["typography","textAlign"],support:["typography","textAlign"],useEngine:!1},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},textIndent:{value:["typography","textIndent"],support:["typography","textIndent"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}}
241,C={link:"a:where(:not(.wp-element-button))",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite",label:"label",select:"select",textInput:"textarea, input:where([type=email],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=url])"},A={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"dimensions.aspectRatios":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0},E=n(1113),I=n(6319),T=n(9261);const N=JSON.parse('{"title":"block title","description":"block description","keywords":["block keyword"],"styles":[{"label":"block style label"}],"variations":[{"title":"block variation title","description":"block variation description","keywords":["block variation keyword"]}]}');var j=n(5294),{lock:B,unlock:L}=(0,j.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/blocks");function O(e){return null!==e&&"object"==typeof e}function R({textdomain:e,...t}){const n=["apiVersion","title","category","parent","ancestor","icon","description","keywords","attributes","providesContext","usesContext","selectors","supp
241orts","styles","example","variations","blockHooks","allowedBlocks"],r=Object.fromEntries(Object.entries(t).filter(([e])=>n.includes(e)));return e&&Object.keys(N).forEach(t=>{r[t]&&(r[t]=P(N[t],r[t],e))}),r}function M(e,t){const n=O(e)?e.name:e;if("string"!=typeof n)return void(0,T.A)("Block names must be strings.");if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(n))return void(0,T.A)("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");if((0,E.L)(At).getBlockType(n))return void(0,T.A)('Block "'+n+'" is already registered.');const{addBootstrappedBlockType:r,addUnprocessedBlockType:o}=L((0,I.J)(At));if(O(e)){r(n,R(e))}return o(n,t),(0,E.L)(At).getBlockType(n)}function P(e,t,n){return"string"==typeof e&&"string"==typeof t?(0,m._x)(t,e,n):Array.isArray(e)&&e.length&&Array.isArray(t)?t.map(t=>P(e[0],t,n)):O(e)&&Object.entries(e).length&&O(t)?Object.keys(t).reduce((r,o)=>e[o]?(r[o]=P(e[o],t[o],n),r):(r[o]=t[o],r),{}):t}function D(){return(0,E.L)(At).getFreeformFallbackBlockName()}function z(){return(0,E.L)(At).getUnregisteredFallbackBlockName()}function F(e){(0,I.J)(At).setDefaultBlockName(e)}function $(){return(0,E.L)(At).getDefaultBlockName()}function V(e){return(0,E.L)(At)?.getBlockType(e)}function H(){return(0,E.L)(At).getBlockTypes()}function W(e,t,n){return(0,E.L)(At).getBlockSupport(e,t,n)}function U(e,t,n){return(0,E.L)(At).hasBlockSupport(e,t,n)}function K(e){return"core/block"===e?.name}function G(e){return"core/template-part"===e?.name}var q=(e,t)=>(0,E.L)(At).getBlockVariations(e,t);function Z(e){return L((0,E.L)(At)).getBlockBindingsSource(e)}(0,g.X$)([h.A,b.A]);var Y=["#191e23","#f8f9f9"];function X(e,t){const n=V(e.name)?.attributes??{},r=t?Object.entries(n).filter(([n,r])=>"content"===t&&"metadata"===n?Object.keys(e.attributes[n]?.bindings??{}).length>0:r.role===t||r.__experimentalRole===t):[];return(r.length?r:Object.entries(n)).every(([t,n])=>{const r=e.attributes[t];return n.hasOwnProperty("default")?r===n.default:"rich-text"===n.type?!r?.length:void 0===r})}function Q(e,t){return e.name===$()&&X(e,t)}function J(e){return!!e&&("string"==typeof e||(0,y.isValidElement)(e)||"function"==typeof e||e instanceof y.Component)}function ee(e){return"string"==typeof e?V(e):e}function te(e,t,n="visual"){const{__experimentalLabel:r,title:o}=e,i=r&&r(t,{context:n});return i?i.toPlainText?i.toPlainText():(0,v.A)(i):o}function ne(e){return void 0!==e.default?e.default:"rich-text"===e.type?new k.EF:void 0}function re(e){return void 0!==V(e)}function oe(e,t){const n=V(e);if(void 0===n)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(n.attributes).reduce((e,[n,r])=>{const o=t[n];if(void 0!==o)"rich-text"===r.type?o instanceof k.EF?e[n]=o:"string"==typeof o&&(e[n]=k.EF.fromHTMLString(o)):"string"===r.type&&o instanceof k.EF?e[n]=o.toHTMLString():e[n]=o;else{const t=ne(r);void 0!==t&&(e[n]=t)}return-1!==["node","children"].indexOf(r.source??"")&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e},{})}function ie(e,t){const n=V(e)?.attributes;if(!n)return[];const r=Object.keys(n);return t?r.filter(r=>{const o=n[r];return o?.role===t||o?.__experimentalRole===t&&((0,x.A)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${e} block.`}),!0)}):r}function se(e,t){const n=Array.isArray(t)?t:[t];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)))}var ae=[{slug:"text",title:(0,m.__)("Text")},{slug:"media",title:(0,m.__)("Media")},{slug:"design",title:(0,m.__)("Design")},{slug:"widgets",title:(0,m.__)("Widgets")},{slug:"theme",title:(0,m.__)("Theme")},{slug:"embed",title:(0,m.__)("Embeds")},{slug:"reusable",title:(0,m.__)("Reusable blocks")}];function le(e){return e.reduce((e,t)=>({...e,[t.name]:t}),{})}function ce(e){return e.reduce((e,t)=>(e.some(e=>e.name===t.name)||e.push(t),e),[])}function ue(e){return(t=null,n)=>{switch(n.type){case"REMOVE_BLOCK_TYPES":return-1!==n.names.indexOf(t)?null:t;case e:return n.name||null}return t}}var de=ue("SET_DEFAULT_BLOCK_NAME"),fe=ue("SET_FREEFORM_FALLBACK_BLOCK_NAME"),pe=ue("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),me=ue("SET_GROUPING_BLOCK_NAME");function ge(e=[],t=[]){const n=Array.from(new Set(e.concat(t)));return n.length>0?n:void 0}var he=(0,u.HY)({bootstrappedBlockTypes:function(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":const{name:n,blockType:r}=t;if(e[n])return e;const o=Object.fromEntries(Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>{return[(n=e,void 0===r&&(r={}),(0,f.fL)(n,(0,d.Cl)({transform:p},r))),t];var n,r}));return o.name=n,{...e,[n]:o};case"REMOVE_BLOCK_TYPES":return se(e,t.names)}return e},unprocessedBlockTypes:function(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return se(e,t.names)}return e},blockTypes:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...le(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return se(e,t.names)}return e},blockStyles:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(le(t.blockTypes)).map(([t,n])=>[t,ce([...(n.styles??[]).map(e=>({...e,source:"block"})),...(e[n.name]??[]).filter(({source:e})=>"block"!==e)])]))};case"ADD_BLOCK_STYLES":const n={};
241return t.blockNames.forEach(r=>{n[r]=ce([...e[r]??[],...t.styles])}),{...e,...n};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:(e[t.blockName]??[]).filter(e=>-1===t.styleNames.indexOf(e.name))}}return e},blockVariations:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(le(t.blockTypes)).map(([t,n])=>[t,ce([...(n.variations??[]).map(e=>({...e,source:"block"})),...(e[n.name]??[]).filter(({source:e})=>"block"!==e)])]))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:ce([...e[t.blockName]??[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:(e[t.blockName]??[]).filter(e=>-1===t.variationNames.indexOf(e.name))}}return e},defaultBlockName:de,freeformFallbackBlockName:fe,unregisteredFallbackBlockName:pe,groupingBlockName:me,categories:function(e=ae,t){switch(t.type){case"SET_CATEGORIES":const n=new Map;return(t.categories||[]).forEach(e=>{n.set(e.slug,e)}),[...n.values()];case"UPDATE_CATEGORY":if(!t.category||!Object.keys(t.category).length)return e;if(e.find(({slug:e})=>e===t.slug))return e.map(e=>e.slug===t.slug?{...e,...t.category}:e)}return e},collections:function(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return se(e,t.namespace)}return e},blockBindingsSources:function(e={},t){switch(t.type){case"ADD_BLOCK_BINDINGS_SOURCE":return{...e,[t.name]:{label:t.label||e[t.name]?.label,usesContext:ge(e[t.name]?.usesContext,t.usesContext),getValues:t.getValues,setValues:t.setValues,canUserEditValue:t.setValues&&t.canUserEditValue,getFieldsList:t.getFieldsList}};case"REMOVE_BLOCK_BINDINGS_SOURCE":return se(e,t.name)}return e}}),be=n(4775),ye=n(4168),ve=n(7817),ke=(e,t,n)=>{const r=Array.isArray(t)?t:t.split(".");let o=e;return r.forEach(e=>{o=o?.[e]}),o??n};function xe(e){return"object"==typeof e&&null!==e&&e.constructor===Object}function we(e,t){return xe(e)&&xe(t)?Object.entries(t).every(([t,n])=>we(e?.[t],n)):e===t}var _e=n(5705),Se=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textAlign","textDecoration","textIndent","textTransform","letterSpacing"];function Ce(e,t,n){return e.filter(e=>("fontSize"!==e||"heading"!==n)&&(!("textDecoration"===e&&!t&&"link"!==n)&&(!("textTransform"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(n)&&"button"!==n&&"caption"!==n&&"text"!==n)&&(!("letterSpacing"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(n)&&"button"!==n&&"caption"!==n&&"text"!==n)&&(!("textIndent"===e&&!t)&&!("textColumns"===e&&!t))))))}var Ae=(0,ve.M)((e,t,n)=>{if(!t)return Ce(Se,t,n);const r=Me(e,t);if(!r)return[];const o=[],i=r?.supports;i?.spacing?.blockGap&&o.push("blockGap"),i?.shadow&&o.push("shadow");const s=S;return Object.keys(s).forEach(e=>{s[e].support&&(s[e].requiresOptOut&&i&&s[e].support[0]in i&&!1!==ke(i,s[e].support)||i&&ke(i,s[e].support,!1))&&o.push(e)}),Ce(o,t,n)},(e,t)=>[e.blockTypes[t]]);function Ee(e,t){return e.bootstrappedBlockTypes[t]}function Ie(e){return e.unprocessedBlockTypes}function Te(e){return e.blockBindingsSources}function Ne(e,t){return e.blockBindingsSources[t]}var je=(0,_e.N)(e=>(0,ve.M)((t,n,r)=>{if(!n.getFieldsList)return[];const o={};if(n?.usesContext?.length)for(const e of n.usesContext)o[e]=r[e];return n.getFieldsList({select:e,context:o})},(e,t,n)=>[t.getFieldsList,t.usesContext,n])),Be=(0,ve.M)(e=>{const t=[];for(const n of Object.keys(e.blockTypes)){for(const r of e.blockVariations[n]??[])r.shortcut&&t.push({...r.shortcut,targetBlockName:n,blockNames:[n],variationName:r.name});const r=e.blockTypes[n]?.transforms;for(const e of r?.to??[]){if("block"!==e.type)continue;const r=e.blocks?.[0];if(r)for(const o of e.shortcuts??[])t.push({...o,targetBlockName:r,blockNames:[n],variationName:o.variationName??e.variationName})}for(const e of r?.from??[])if("block"===e.type&&e.blocks?.length)for(const r of e.shortcuts??[])t.push({...r,targetBlockName:n,blockNames:e.blocks,variationName:r.variationName??e.variationName})}return t},e=>[e.blockTypes,e.blockVariations]),Le=(e,t)=>{const n=Me(e,t);return!!n&&Object.values(n.attributes).some(({role:e,__experimentalRole:n})=>"content"===e||"content"===n&&((0,x.A)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${t} block.`}),!0))},Oe=(e,t)=>
241"string"==typeof t?Me(e,t):t,Re=(0,ve.M)(e=>Object.values(e.blockTypes),e=>[e.blockTypes]);function Me(e,t){return e.blockTypes[t]}function Pe(e,t){return e.blockStyles[t]}var De=(0,ve.M)((e,t,n)=>{const r=e.blockVariations[t];return r&&n?r.filter(e=>(e.scope||["block","inserter"]).includes(n)):r},(e,t)=>[e.blockVariations[t]]);function ze(e,t,n,r,o){const i=De(e,t,r);if(!i)return i;if(o){const e=i.find(e=>e.innerContent&&ye(e.innerContent,o));if(e)return e}const s=Me(e,t),a=Object.keys(s?.attributes||{});let l,c=0;for(const e of i)if(!e.innerContent)if(Array.isArray(e.isActive)){const t=e.isActive.filter(e=>{const t=e.split(".")[0];return a.includes(t)}),r=t.length;if(0===r)continue;t.every(t=>{const r=ke(e.attributes,t);if(void 0===r)return!1;let o=ke(n,t);return o instanceof k.EF&&(o=o.toHTMLString()),we(o,r)})&&r>c&&(l=e,c=r)}else if(e.isActive?.(n,e.attributes))return l||e;return!l&&["block","transform"].includes(r)&&(l=i.find(e=>e?.isDefault&&!Object.hasOwn(e,"isActive"))),l}function Fe(e,t,n){const r=De(e,t,n);return[...r||[]].reverse().find(({isDefault:e})=>!!e)||r?.[0]}function $e(e){return e.categories}function Ve(e){return e.collections}function He(e){return e.defaultBlockName}function We(e){return e.freeformFallbackBlockName}function Ue(e){return e.unregisteredFallbackBlockName}function Ke(e){return e.groupingBlockName}var Ge=(0,ve.M)((e,t)=>Re(e).filter(e=>e.parent?.includes(t)).map(({name:e})=>e),e=>[e.blockTypes]),qe=(e,t,n,r)=>{const o=Oe(e,t);return o?.supports?ke(o.supports,n,r):r};function Ze(e,t,n,r){return!!qe(e,t,n,r)}function Ye(e){return be(e??"").toLowerCase().trim()}function Xe(e,t,n=""){const r=Oe(e,t),o=Ye(n),i=e=>Ye(e).includes(o);return i(r?.title)||r?.keywords?.some(i)||i(r?.category)||"string"==typeof r?.description&&i(r.description)}var Qe=(e,t)=>Ge(e,t).length>0,Je=(e,t)=>Ge(e,t).some(t=>Ze(e,t,"inserter",!0)),et=(...e)=>((0,x.A)("__experimentalHasContentRoleAttribute",{since:"6.7",version:"6.8",hint:"This is a private selector."}),Le(...e)),tt=n(7160);o();var nt=n(935),rt={common:"text",formatting:"text",layout:"design"};function ot(e=[],t=[]){const n=[...e];return t.forEach(e=>{const t=n.findIndex(t=>t.name===e.name);-1!==t?n[t]={...n[t],...e}:n.push(e)}),n}var it=(e,t)=>({select:n})=>{const o=n.getBootstrappedBlockType(e),i={apiVersion:1,name:e,icon:w,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],blockHooks:{},save:()=>null,...o,...t,variations:ot(Array.isArray(o?.variations)?o.variations:[],Array.isArray(t?.variations)?t.variations:[])};i.attributes&&"object"==typeof i.attributes||((0,T.A)('The block "'+e+'" is registering attributes as `null` or `undefined`. Use an empty object (`attributes: {}`) or exclude the `attributes` key.'),i.attributes={});const s=(0,nt.W5)("blocks.registerBlockType",i,e,null);if(s.apiVersion<=2&&(0,x.A)("Block with API version 2 or lower",{since:"6.9",hint:`The block "${e}" is registered with API version ${s.apiVersion}. This means that the post editor may work as a non-iframe editor. Since all editors are planned to work as iframes in the future, set the \`apiVersion\` field to 3 and test the block inside the iframe editor.`,link:"https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/block-migration-for-iframe-editor-compatibility/"}),s.description&&"string"!=typeof s.description&&(0,x.A)("Declaring non-string block descriptions",{since:"6.2"}),s.deprecated&&(s.deprecated=s.deprecated.map(e=>Object.fromEntries(Object.entries((0,nt.W5)("blocks.registerBlockType",{...se(i,_),...e},i.name,e)).filter(([e])=>_.includes(e))))),!(0,tt.Q)(s))return void(0,T.A)("Block settings must be a valid object.");if("function"!=typeof s.save)return void(0,T.A)('The "save" property must be a valid function.');if("edit"in s&&!(0,r().isValidElementType)(s.edit))return void(0,T.A)('The "edit" property must be a valid component.');if("string"==typeof s.category&&rt.hasOwnProperty(s.category)&&(s.category=rt[s.category]),"category"in s&&!n.getCategories().some(({slug:e})=>e===s.category)&&((0,T.A)('The block "'+e+'" is registered with an invali
241d category "'+s.category+'".'),delete s.category),!("title"in s)||""===s.title)return void(0,T.A)('The block "'+e+'" must have a title.');if("string"!=typeof s.title)return void(0,T.A)("Block titles must be strings.");const a=function(e){const t=e||w;if(J(t))return{src:t};const n=t;if("background"in n){const e=(0,g.Mj)(n.background),t=t=>e.contrast(t),r=Math.max(...Y.map(t));return{...n,foreground:n.foreground?n.foreground:Y.find(e=>t(e)===r),shadowColor:e.alpha(.3).toRgbString()}}return n}(s.icon);if(s.icon=a,J(a.src))if(("string"==typeof s?.parent||s?.parent instanceof String)&&(s.parent=[s.parent],(0,T.A)("Parent must be undefined or an array of strings (block types), but it is a string.")),Array.isArray(s?.parent)||void 0===s?.parent){if(1!==s?.parent?.length||e!==s.parent[0])return s;(0,T.A)('Block "'+e+'" cannot be a parent of itself. Please remove the block name from the parent list.')}else(0,T.A)("Parent must be undefined or an array of block types, but it is "+s.parent);else(0,T.A)("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional")};function st(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function at(){return({dispatch:e,select:t})=>{const n=[];for(const[r,o]of Object.entries(t.getUnprocessedBlockTypes())){const t=e(it(r,o));t&&n.push(t)}n.length&&e.addBlockTypes(n)}}function lt(){return(0,x.A)('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),at()}function ct(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function ut(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockNames:Array.isArray(e)?e:[e]}}function dt(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function ft(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function pt(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function mt(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function gt(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function ht(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function bt(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function yt(e){return{type:"SET_CATEGORIES",categories:e}}function vt(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function kt(e,t,n){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:n}}function xt(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}function wt(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function _t(e,t){return({dispatch:n})=>{n({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});const r=n(it(e,t));r&&n.addBlockTypes(r)}}function St(e){return{type:"ADD_BLOCK_BINDINGS_SOURCE",name:e.name,label:e.label,usesContext:e.usesContext,getValues:e.getValues,setValues:e.setValues,canUserEditValue:e.canUserEditValue,getFieldsList:e.getFieldsList}}function Ct(e){return{type:"REMOVE_BLOCK_BINDINGS_SOURCE",name:e}}var At=(0,c.A)("core/blocks",{reducer:he,selectors:s,actions:a});(0,u.kz)(At),L(At).registerPrivateSelectors(i),L(At).registerPrivateActions(l);var Et=n(3578),It=e=>"block"===e?.type,Tt=(e,t)=>t.variationName?{...e,variationName:t.variationName}:e;function Nt(e,t={},n=[],r){if(!re(e))return Nt("core/missing",{originalName:e,originalContent:"",originalUndelimitedContent:""});const o=oe(e,t),i={clientId:(0,Et.A)(),name:e,isValid:!0,attributes:o,innerBlocks:n};return r&&("core/html"===e?i.innerContent=r:(0,T.A)(`The innerContent argument passed to createBlock for the "${e}" block was ignored. Only the Custom HTML block stores static inner content.`)),i}function jt(e=[]){return e.map(e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks,e.innerContent],[n,r,o=[],i]=t;return Nt(n,r,jt(o),i)})}function Bt(e,t={},n){const{name:r}=e;if(!re(r))return Nt("core/missing",{originalName:r,originalContent:"",originalUndelimitedContent:""});const o=(0,Et.A)(),i=oe(r,{...e.attributes,...t});return{...e,clientId:o,attributes:i,innerBlocks:n||e.innerBlocks.map(e=>Bt(e))}}function Lt(e,t={},n){const r=(0,Et.A)();return{...e,clientId:r,attributes:{...e.attributes,...t},innerBlocks:n||e.innerBlocks.map(e=>Lt(e))}}var Ot=(e,t,n)=>{if(!n.length)return!1;const r=n.length>1,o=n[0].name;if(!(Rt(e)||!r||e.isMultiBlock))return!1;
241if(!Rt(e)&&!n.every(e=>e.name===o))return!1;const i=n[0];return!("from"===t&&-1===e.blocks.indexOf(i.name)&&!Rt(e))&&(!(!r&&"from"===t&&Mt(i.name)&&Mt(e.blockName))&&!!Ft(e,n))},Rt=e=>It(e)&&Array.isArray(e.blocks)&&e.blocks.includes("*"),Mt=e=>e===(0,E.L)(At).getGroupingBlockName();function Pt(e){if(!e.length)return[];const t=(e=>e.length?H().flatMap(t=>zt("from",t.name).filter(It).filter(t=>Ot(t,"from",e)).map(e=>Tt(t,e))):[])(e),n=(e=>{if(!e.length)return[];const t=V(e[0].name);return(t?zt("to",t.name):[]).filter(It).filter(t=>Ot(t,"to",e)).flatMap(e=>(e.blocks??[]).map(t=>{const n=V(t);return n?Tt(n,e):void 0})).filter(e=>!!e)})(e),r=new Map;for(const e of[...t,...n]){const t=e.variationName?`${e.name}/${e.variationName}`:e.name;r.has(t)||r.set(t,e)}return[...r.values()]}function Dt(e,t){const n=(0,nt.FF)();for(let r=0;r<e.length;r++){const o=e[r];t(o)&&n.addFilter("transform","transform/"+r.toString(),e=>e||o,o.priority)}return n.applyFilters("transform",null)}function zt(e,t){if(void 0===t)return H().map(({name:t})=>zt(e,t)).flat();const n=ee(t),r=n?.transforms?.[e];return n&&Array.isArray(r)?r.map(e=>({...e,blockName:n.name})):[]}function Ft(e,t){if("function"!=typeof e.isMatch)return!0;const n=t[0],r=e.isMultiBlock?t.map(e=>e.attributes):n.attributes,o=e.isMultiBlock?t:n;return e.isMatch(r,o)}function $t(e,t,n){const r=Array.isArray(e)?e:[e],o=r.length>1,i=r[0],s=i.name,a=zt("from",t).filter(It),l=zt("to",s).filter(It),c=e=>n?e.variationName===n:!e.variationName,u=Dt(l,e=>c(e)&&(Rt(e)||-1!==e.blocks.indexOf(t))&&(!o||!!e.isMultiBlock)&&Ft(e,r))||Dt(a,e=>c(e)&&(Rt(e)||-1!==e.blocks.indexOf(s))&&(!o||!!e.isMultiBlock)&&Ft(e,r));if(!u)return null;let d;if(d=u.isMultiBlock?"__experimentalConvert"in u?u.__experimentalConvert(r):u.transform(r.map(e=>e.attributes),r.map(e=>e.innerBlocks)):"__experimentalConvert"in u?u.__experimentalConvert(i):u.transform(i.attributes,i.innerBlocks),null===d||"object"!=typeof d)return null;if(d=Array.isArray(d)?d:[d],d.some(e=>!V(e.name)))return null;if(!d.some(e=>e.name===t))return null;return d.map((t,n,r)=>(0,nt.W5)("blocks.switchToBlockType.transformedBlock",t,e,n,r))}var Vt=(e,t)=>Nt(e,t.attributes,(t.innerBlocks??[]).map(e=>Vt(e.name,e)),t.innerContent),Ht=n(3691),Wt=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function Ut(e,t){const n=function(e){const t=[];let n,r=e;for(;n=r.match(Wt);){const e=n.index;t.push(r.slice(0,e)),t.push(n[0]),r=r.slice(e+n[0].length)}return r.length&&t.push(r),t}(e);let r=!1;const o=Object.keys(t);for(let e=1;e<n.length;e+=2)for(let i=0;i<o.length;i++){const s=o[i];if(-1!==n[e].indexOf(s)){n[e]=n[e].replace(new RegExp(s,"g"),t[s]),r=!0;break}}return r&&(e=n.join("")),e}var Kt=n(2557),Gt=n(621),qt=n(1218);function Zt(e,t={}){const{isCommentDelimited:n=!0}=t,{blockName:r,attrs:o={},innerBlocks:i=[],innerContent:s=[]}=e;let a=0;const l=s.map(e=>null!==e?e:Zt(i[a++],t)).join("\n").replace(/\n+/g,"\n").trim();return n?an(r??void 0,o,l):l}var Yt=n(3236);function Xt(e){const t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,nt.W5)("blocks.getBlockDefaultClassName",t,e)}function Qt(e){const t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,nt.W5)("blocks.getBlockMenuDefaultClassName",t,e)}var Jt={},en={};function tn(e={}){const{blockType:t,attributes:n}=Jt;return tn.skipFilters?e:(0,nt.W5)("blocks.getSaveContent.extraProps",{...e},t,n)}function nn(e={}){const{innerBlocks:t}=en;if(!Array.isArray(t))return{...e,children:t};const n=cn(t,{isInnerBlocks:!0}),r=(0,Yt.jsx)(Kt.A,{children:n});return{...e,children:r}}function rn(e,t,n=[]){const r=ee(e);if(!r?.save)return null;let o=r.save;if(o.prototype instanceof y.Component){const e=new o({attributes:t});o=e.render.bind(e)}Jt.blockType=r,Jt.attributes=t,en.innerBlocks=n;let i=o({attributes:t,innerBlocks:n});if(null!==i&&"object"==typeof i&&(0,nt.FC)("blocks.getSaveContent.extraProps")&&!((r.apiVersion??0)>1)){const e=(0,nt.W5)("blocks.getSaveContent.extraProps",{...i.props},r,t);(0,qt.hw)(e,i.props)||(i=(0,y.cloneElement)(i,e))}return(0,nt.W5)("blocks.getSaveElement",i,r,t)}function on(e,t,n){const r=ee(e);return r?(0,Gt.Ay)(rn(r,t,n)):""}function sn(e){if(e.innerContent&&"core/html"===e.name)return function(e,t){let n=0;const r=e.map(e=>{if(null!==e)return e;const r=t[n++];return r?ln(r,{isInnerBlocks:!0}):""});for(;n<t.length;n++)r.push(ln(t[n],{isInnerBlocks:!0}));return r.join("").trim()}(e.innerContent,e.innerBlocks);let t=e.originalContent??"";if(e.isValid||e.innerBlocks.length)try{t=on(e.name,e.attributes,e.innerBlocks)}catch{}return t}function an(e,t,n){const r=t&&Object.entries(t).length?function(e){return JSON.stringify(e).replaceAll("\\\\","\\u005c").replaceAll("--","\\u002d\\u002d").replaceAll("<","\\u003c").replaceAll(">","\\u003e").replaceAll("&","\\u0026").replaceAll('\\"',"\\u0022")}(t)+" ":"",o=e?.startsWith("core/")?e.slice(5):e;return n?`\x3c!-- wp:${o} ${r}--\x3e\n`+n+`\n\x3c!-- /wp:${o} --\x3e`:`\x3c!-- wp:${o} ${r}/--\x3e`}function ln(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return Zt(e.__unstableBlockSource);const n=e.name,r=sn(e);if(n===z()||!t&&n===D())return r;const o=V(n);if(!o)return r;const i=function(e,t){return Object.entries(e.attributes??{}).reduce((n,[r,o])=>{const i=t[r];return void 0===i||void 0!==o.source||"local"===o.role?n:"local"===o.__experimentalRole?((0,x.A)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${e?.name} block.`}),n):("default"in o&&JSON.stringify(o.default)===JSON.stringify(i)||(n[r]=i),n)},{})}(o,e.attributes);return an(n,i,r)}function cn(e,t){return(Array.isArray(e)?e:[e]).map(e=>ln(e,t)).join("\n\n")}var un=/^#[xX]([A-Fa-f0-9]+)$/,dn=/^#([0-9]+)$/,fn=/^([A-Za-z0-9]+)$/,pn=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(un);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(dn))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(fn))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),mn=/[A-Za-z]/,gn=/\r\n?/g;function hn(e){return pn.test(e)}function bn(e){return mn.test(e)}var yn=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||bn(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){hn(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();hn(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();hn(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!hn(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();hn(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();hn(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctype
241SystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();hn(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();hn(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();hn(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();hn(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();hn(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();hn(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();hn(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();hn(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();hn(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();hn(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||bn(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(gn,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),vn=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new yn(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var kn=n(8520);function xn(){function e(e){return(t,...n)=>e("Block validation: "+t,...n)}return{error:e(console.error),warning:e(console.warn),getItems:()=>[]}}var wn=/[\t\n\r\v\f ]+/g,Sn=/^[\t\n\r\v\f ]*$/,Cn=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,An=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","auto
241play","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],En=[...An,"autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],In=[e=>e,function(e){return Ln(e).join(" ")}],Tn=/^[\da-z]+$/i,Nn=/^#\d+$/,jn=/^#x[\da-f]+$/i;var Bn=class{parse(e){if(t=e,Tn.test(t)||Nn.test(t)||jn.test(t))return(0,kn.S)("&"+e+";");var t}};function Ln(e){return e.trim().split(wn)}function On(e){return(e.attributes??[]).filter(e=>{const[t,n]=e;return n||0===t.indexOf("data-")||En.includes(t)})}function Rn(e,t,n=xn()){let r=e.chars,o=t.chars;for(let e=0;e<In.length;e++){const t=In[e];if(r=t(r),o=t(o),r===o)return!0}return n.warning("Expected text `%s`, saw `%s`.",t.chars,e.chars),!1}function Mn(e){return 0===parseFloat(e)?"0":0===e.indexOf(".")?"0"+e:e}function Pn(e){return Ln(e).map(Mn).join(" ").replace(Cn,"url($1)")}function Dn(e){const t=e.replace(/;?\s*$/,"").split(";").map(e=>{const[t,...n]=e.split(":"),r=n.join(":");return[t.trim(),Pn(r.trim())]});return Object.fromEntries(t)}var zn={class:(e,t)=>{const[n,r]=[e,t].map(Ln),o=n.filter(e=>!r.includes(e)),i=r.filter(e=>!n.includes(e));return 0===o.length&&0===i.length},style:(e,t)=>ye(...[e,t].map(Dn)),...Object.fromEntries(An.map(e=>[e,()=>!0]))};var Fn={StartTag:(e,t,n=xn())=>e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(n.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):function(e,t,n=xn()){if(e.length!==t.length)return n.warning("Expected attributes %o, instead saw %o.",t,e),!1;const r={};for(let e=0;e<t.length;e++)r[t[e][0].toLowerCase()]=t[e][1];for(let t=0;t<e.length;t++){const[o,i]=e[t],s=o.toLowerCase();if(!r.hasOwnProperty(s))return n.warning("Encountered unexpected attribute `%s`.",o),!1;const a=r[s],l=zn[s];if(l){if(!l(i,a))return n.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,a,i),!1}else if(i!==a)return n.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,a,i),!1}return!0}(...[e,t].map(On),n),Chars:Rn,Comment:Rn};function $n(e){let t;for(;t=e.shift();){if("Chars"!==t.type)return t;if(!Sn.test(t.chars))return t}}function Vn(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Hn(e,t,n=xn()){if(e===t)return!0;const[r,o]=[e,t].map(e=>function(e,t=xn()){try{return new vn(new Bn).tokenize(e)}catch{t.warning("Malformed HTML detected: %s",e)}return null}(e,n));if(!r||!o)return!1;let i,s;for(;i=$n(r);){if(s=$n(o),!s)return n.warning("Expected end of content, instead saw %o.",i),!1;if(i.type!==s.type)return n.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",s.type,s,i.type,i),!1;const e=Fn[i.type];if(e&&!e(i,s,n))return!1;Vn(i,o[0])?$n(o):Vn(s,r[0])&&$n(r)}return!(s=$n(o))||(n.warning("Expected %o, instead saw end of content.",s),!1)}function Wn(e,t=e.name){if(e.name===D()||e.name===z())return[!0,[]];const n=function(){const e=[],t=xn();return{error(...n){e.push({log:t.error,args:n})},warning(...n){e.push({log:t.warning,args:n})},getItems:()=>e}}(),r=ee(t);let o;try{o=on(r,e.attributes)}catch(e){return n.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),[!1,n.getItems()]}const i=Hn(e.originalContent,o,n);return i||n.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",r.name,r,o,e.originalContent),[i,n.getItems()]}function Un(e,t){const n={...t};if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(n.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){const t=e.substring(11),r={speaker:"speaker-deck",polldaddy:"crowdsignal"};n.providerNameSlug=t in r?r[t]:t,["amazon-kindle","wordpress"].includes(t)||(n.responsive=!0),e="core/embed"}if("core/post-comment-author"===e&&(e="core/comment-author-name"),"core/post-comment-content"===e&&(e="core/comment-content"),"core/post-comment-date"===e&&(e="core/comment-date"),"core/comments-query-loop"===e){e="core/comments";const t=n.className??"";t.includes("wp-block-comments-query-loop")||(n.className=["wp-block-comments-query-loop",t].join(" "))}"core/post-comments"===e&&(e="core/comments",n.legacy=!0);const r=t.layout;"grid"===r?.type&&"string"==typeof r?.columnCount&&(n.layout={...n.layout,columnCount:parseInt(r.columnCount,10)});const o=t.style,i=o?.layout;if("string"==typeof i?.columnSpan){const e=parseInt(i.columnSpan,10);n.style={...n.style,layout:{...n.style?.layout,columnSpan:isNaN(e)?void 0:e}}}if("string"==typeof i?.rowSpan){const e=parseInt(i.rowSpan,10);n.style={...n.style,layout:{...n.style?.layout,rowSpan:isNaN(e)?void 0:e}}}const s=function(e){if(!globalThis.IS_GUTENBERG_PLUGIN)return e;if(!e||"object"!=typeof e||Array.isArray(e))return e;let t=e;return Object.entries({"@mobile":"mobile","@tablet":"tablet"}
241).forEach(([n,r])=>{Object.hasOwn(t,r)&&(t===e&&(t={...t}),Object.hasOwn(t,n)||(t[n]=t[r]),delete t[r])}),t}(n.style);return s!==n.style&&(n.style=s),[e,n]}var Kn,Gn=function(){return Kn||(Kn=document.implementation.createHTMLDocument("")),Kn};function qn(e,t){if(t){if("string"==typeof e){var n=Gn();n.body.innerHTML=e,e=n.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(n,r){var o=t[r];return n[r]=qn(e,o),n},{})}}function Zn(e,t){var n,r;return 1===arguments.length?(n=e,r=void 0):(n=t,r=e),function(e){var t=e;if(r&&(t=e.querySelector(r)),t)return function(e,t){for(var n,r=t.split(".");n=r.shift();){if(!(n in e))return;e=e[n]}return e}(t,n)}}var Yn=n(1636);function Xn(e){const t={};for(let n=0;n<e.length;n++){const{name:r,value:o}=e[n];t[r]=o}return t}function Qn(e){if((0,x.A)("wp.blocks.node.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e.nodeType===e.TEXT_NODE)return e.nodeValue;if(e.nodeType!==e.ELEMENT_NODE)throw new TypeError("A block node can only be created from a node of type text or element.");return{type:e.nodeName.toLowerCase(),props:{...Xn(e.attributes),children:er(e.childNodes)}}}function Jn(e){return(0,x.A)("wp.blocks.node.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let n=t;e&&(n=t.querySelector(e));try{return Qn(n)}catch{return null}}}function er(e){(0,x.A)("wp.blocks.children.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let n=0;n<e.length;n++)try{t.push(Qn(e[n]))}catch{}return t}function tr(e){return(0,x.A)("wp.blocks.children.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let n=t;return e&&(n=t.querySelector(e)),n?er(n.childNodes):[]}}var nr={concat:function(...e){(0,x.A)("wp.blocks.children.concat",{since:"6.1",version:"6.3",alternative:"wp.richText.concat",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let n=0;n<e.length;n++){const r=Array.isArray(e[n])?e[n]:[e[n]];for(let e=0;e<r.length;e++){const n=r[e];"string"==typeof n&&"string"==typeof t[t.length-1]?t[t.length-1]+=n:t.push(n)}}return t},getChildrenArray:function(e){return(0,x.A)("wp.blocks.children.getChildrenArray",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e},fromDOM:er,toHTML:function(e){(0,x.A)("wp.blocks.children.toHTML",{since:"6.1",version:"6.3",alternative:"wp.richText.toHTMLString",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=e;return(0,Gt.Ay)(t)},matcher:tr};function rr(e,t){return t.some(t=>function(e,t){switch(t){case"rich-text":return e instanceof k.EF;case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"object":return!!e&&e.constructor===Object;case"null":return null===e;case"array":return Array.isArray(e);case"integer":case"number":return"number"==typeof e}return!0}(e,t))}function or(e,t,n,r,o){let i;switch(t.source){case void 0:i=r?r[e]:void 0;break;case"raw":i=o;break;case"attribute":case"property":case"html":case"text":case"rich-text":case"children":case"node":case"query":case"tag":i=ar(n,t)}return function(e,t){return void 0===t||rr(e,Array.isArray(t)?t:[t])}(i,t.type)&&function(e,t){return!Array.isArray(t)||t.includes(e)}(i,t.enum)||(i=void 0),void 0===i&&(i=ne(t)),i}var ir=(0,Yn.A)(e=>{switch(e.source){case"attribute":{const t=function(e,t){var n,r;return 1===arguments.length?(n=e,r=void 0):(n=t,r=e),function(e){var t=Zn(r,"attributes")(e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n].value}}(e.selector,e.attribute);return"boolean"===e.type?(e=>t=>void 0!==e(t))(t):t}case"html":return t=e.selector,n=e.multiline,e=>{let r=e;if(t&&(r=e.querySelector(t)),!r)return"";if(n){let e="";const t=r.children.length;for(let o=0;o<t;o++){const t=r.children[o];t.nodeName.toLowerCase()===n&&(e+=t.outerHTML)}return e}return r.innerHTML};case"text":return function(e){return Zn(e,"textContent")}(e.selector);case"rich-text":return((e,t)=>n=>{const r=e?n.querySelector(e):n;return r?k.EF.fromHTMLElement(r,{preserveWhiteSpace:t}):k.EF.empty()})(e.selector,e.__unstablePreserveWhiteSpace);case"children":return tr(e.selector);case"node":return Jn(e.selector);case"query":const r=Object.fromEntries(Object.entries(e.query).map(([e,t])=>[e,ir(t)]));return function(e,t){return function(n){var r=n.querySelectorAll(e);return[].map.call(r,function(e){return qn(e,t)})}}(e.selector,r);case"tag":{const t=Zn(e.selector,"nodeName");return e=>t(e)?.toLowerCase()}default:return void console.error(`Unknown source type "${e.source}"`)}var t,n});function sr(e){return qn(e??"",e=>e)}function ar(e,t){return ir(t)(sr(e))}function lr(e,t,n={}){const r=sr(t),o=ee(e),i=Object.fromEntries(Object.entries(o?.attributes??{}).map(([e,o])=>[e,or(e,o,r,n,t)]));return(0,nt.W5)("blocks.getBlockAttributes",i,o,t,n)}var cr={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function ur(e){const t=ar(`<div data-custom-class-name>${e}</div>`,cr);return t?t.trim().split(/\s+/):[]}
241function dr(e,t,n,r,o,i){if(!U(t,r,!1))return e;const s={...e},a=function(e,t,n){return ar(`<div ${t}>${e}</div>`,n)}(n,o,i);return a&&(s[r]=a),s}var fr={type:"string",source:"attribute",selector:"[data-aria-label] > *",attribute:"aria-label"},pr={type:"string",source:"attribute",selector:"[data-anchor] > *",attribute:"id"};function mr(e,t){const{attributes:n,originalContent:r}=e;let o=n;return o=function(e,t,n){if(!U(t,"customClassName",!0))return e;const r={...e},{className:o,...i}=r,s=on(t,i),a=ur(s),l=ur(n).filter(e=>!a.includes(e));return l.length?r.className=l.join(" "):s&&delete r.className,r}(n,t,r??""),o=dr(o,t,r??"","ariaLabel","data-aria-label",fr),o=dr(o,t,r??"","anchor","data-anchor",pr),{...e,attributes:o}}function gr(){return!1}function hr(e,t){const n=D(),r=e.blockName||D(),o=e.attrs||{},i=e.innerBlocks||[];let s=e.innerHTML.trim();return r!==n||"core/freeform"!==r||t?.__unstableSkipAutop||(s=function(e,t=!0){const n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const t=e.split("</pre>"),r=t.pop();e="";for(let r=0;r<t.length;r++){const o=t[r],i=o.indexOf("<pre");if(-1===i){e+=o;continue}const s="<pre wp-pre-tag-"+r+"></pre>";n.push([s,o.substr(i)+"</pre>"]),e+=o.substr(0,i)+s}e+=r}const r="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=Ut(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+r+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+r+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));const o=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",o.forEach(t=>{e+="<p>"+t.replace(/^\n*|\n*$/g,"")+"</p>\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+r+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+r+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+r+"[^>]*>)\\s*</p>","g"),"$1"),t&&(e=(e=(e=(e=e.replace(/<(script|style|svg|math)[\s\S]*?<\/\1>/g,e=>e.replace(/\n/g,"<WPPreserveNewline />"))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(e,t)=>t?e:"<br />\n")).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+r+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach(t=>{const[n,r]=t;e=e.replace(n,()=>r)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}(s).trim()),{...e,blockName:r,attrs:o,innerHTML:s,innerBlocks:i}}function br(e,t){let n=hr(e,t);n=function(e){const[t,n]=Un(e.blockName,e.attrs??{});return{...e,blockName:t,attrs:n}}(n);let r=V(n.blockName);r||(n=function(e){const t=z()||D(),n=Zt(e,{isCommentDelimited:!1}),r=Zt(e,{isCommentDelimited:!0});return{blockName:t,attrs:{originalName:e.blockName,originalContent:r,originalUndelimitedContent:n},innerHTML:e.blockName?r:e.innerHTML,innerBlocks:e.innerBlocks,innerContent:e.innerContent}}(n),r=V(n.blockName));const o=n.blockName===D()||n.blockName===z();if(!r||!n.innerHTML&&o)return;const i=n.innerBlocks.map(e=>br(e,t)).filter(e=>!!e),s=Nt(n.blockName,lr(r,n.innerHTML,n.attrs),i);if(s.originalContent=n.innerHTML,"core/html"===r.name)return s.innerContent=n.innerContent??[n.innerHTML],s.isValid=!0,s.validationIssues=[],s;const a=function(e,t){const[n]=Wn(e,t);if(n)return{...e,isValid:n,validationIssues:[]};const r=mr(e,t),[o,i]=Wn(r,t);return{...r,isValid:o,validationIssues:i}}(s,r),{validationIssues:l}=a,c=function(e,t,n){const r=t.attrs??{},{deprecated:o}=n;if(!o||!o.length)return e;for(let i=0;i<o.length;i++){const{isEligible:s=gr}=o[i];if(e.isValid&&!s(r,e.innerBlocks,{blockNode:t,block:e}))continue;const a=Object.assign(se(n,_),o[i]);let l={...e,attributes:lr(a,e.originalContent??"",r)},[c]=Wn(l,a);if(c||(l=mr(l,a),[c]=Wn(l,a)),!c)continue;let u=l.innerBlocks,d=l.attributes;const{migrate:f}=a;if(f){let t=f(d,e.innerBlocks);Array.isArray(t)||(t=[t]),[d=r,u=e.innerBlocks]=t}e={...e,attributes:d,innerBlocks:u,isValid:!0,validationIssues:[]}}return e}(a,n,r);return c.isValid||(c.__unstableBlockSource=e),a.isValid||!c.isValid||t?.__unstableSkipMigrationLogs?a.isValid||c.isValid||l.forEach(({log:e,args:t})=>e(...t)):(console.groupCollapsed("Updated Block: %s",r.name),console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",r.name,r,on(r,c.attributes),c.originalContent),console.groupEnd()),c}function yr(e,t){return(0,Ht.q)(e).reduce((e,n)=>{const r=br(n,t);return r&&e.push(r),e},[])}function vr(){return zt("from").filter(e=>"raw"===e.type).map(e=>({...e,isMatch:e.isMatch??(t=>!!e.selector&&t.matches(e.selector))}))}function kr(e,t){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Array.from(n.body.children).flatMap(e=>{const n=Dt(vr(),t=>t.isMatch(e));if(!n)return Nt("core/html",{},[],[e.outerHTML]);const{transform:r,blockName:o}=n;
241if(r){const n=r(e,t);return e.hasAttribute("class")&&(n.attributes.className=e.getAttribute("class")),n}return Nt(o,lr(o,e.outerHTML))})}function xr(e){switch(e.nodeType){case e.TEXT_NODE:return/^[ \f\n\r\t\v\u00a0]*$/.test(e.nodeValue||"");case e.ELEMENT_NODE:return!e.hasAttributes()&&(!e.hasChildNodes()||Array.from(e.childNodes).every(xr));default:return!0}}var wr={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel","id"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}},_r={audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","playsinline","autoplay","mediagroup","loop","muted","controls","width","height"]},math:{attributes:["display","xmlns"],children:"*"}},Sr=["#text","br","wbr"];Object.keys(wr).filter(e=>!Sr.includes(e)).forEach(e=>{const{[e]:t,...n}=wr;wr[e].children={...n,img:_r.img}});var Cr={...wr,..._r};function Ar(e){if("paste"!==e)return Cr;const{u:t,abbr:n,data:r,time:o,wbr:i,bdi:s,bdo:a,...l}={...Cr,ins:{children:Cr.ins.children},del:{children:Cr.del.children}};return l}function Er(e){const t=e.nodeName.toLowerCase();return Ar().hasOwnProperty(t)||"span"===t}function Ir(e){const t=e.nodeName.toLowerCase();return wr.hasOwnProperty(t)||"span"===t}function Tr(e,t={}){const n=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),o=n.body,i=r.body;for(o.innerHTML=e;o.firstChild;){const e=o.firstChild;e.nodeType===e.TEXT_NODE?xr(e)?o.removeChild(e):(i.lastChild&&"P"===i.lastChild.nodeName||i.appendChild(r.createElement("P")),i.lastChild.appendChild(e)):e.nodeType===e.ELEMENT_NODE?"BR"===e.nodeName?(e.nextSibling&&"BR"===e.nextSibling.nodeName&&(i.appendChild(r.createElement("P")),o.removeChild(e.nextSibling)),i.lastChild&&"P"===i.lastChild.nodeName&&i.lastChild.hasChildNodes()?i.lastChild.appendChild(e):o.removeChild(e)):"P"===e.nodeName?xr(e)&&!t.raw?o.removeChild(e):i.appendChild(e):Er(e)?(i.lastChild&&"P"===i.lastChild.nodeName||i.appendChild(r.createElement("P")),i.lastChild.appendChild(e)):i.appendChild(e):o.removeChild(e)}return i.innerHTML}var Nr=n(8218);function jr(e,t){(0,Nr.e)(t.parentNode,"referenceNode.parentNode"),t.parentNode.insertBefore(e,t.nextSibling)}var Br=n(9166);function Lr(e,t){if(e.nodeType!==e.COMMENT_NODE)return;if("nextpage"!==e.nodeValue&&0!==e.nodeValue.indexOf("more"))return;const n=function(e,t){if("nextpage"===e.nodeValue)return function(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t);const n=e.nodeValue.slice(4).trim();let r=e,o=!1;for(;r=r.nextSibling;)if(r.nodeType===r.COMMENT_NODE&&"noteaser"===r.nodeValue){o=!0,(0,Br.A)(r);break}return function(e,t,n){const r=n.createElement("wp-block");r.dataset.block="core/more",e&&(r.dataset.customText=e);t&&(r.dataset.noTeaser="");return r}(n,o,t)}(e,t);if(e.parentNode&&"P"===e.parentNode.nodeName){const r=Array.from(e.parentNode.childNodes),o=r.indexOf(e),i=e.parentNode.parentNode||t.body,s=(e,n)=>(e||(e=t.createElement("p")),e.appendChild(n),e);[r.slice(0,o).reduce(s,null),n,r.slice(o+1).reduce(s,null)].forEach(t=>t&&i.insertBefore(t,e.parentNode)),(0,Br.A)(e.parentNode)}else r=e,o=n,(0,Nr.e)(r.parentNode,"processedNode.parentNode"),jr(o,r.parentNode),(0,Br.A)(r);var r,o}function Or(e){const t=e.parentNode;for((0,Nr.e)(t,"node.parentNode");e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function Rr(e){return"OL"===e.nodeName||"UL"===e.nodeName}function Mr(e){if(!Rr(e))return;const t=e,n=t.previousElementSibling;if(n&&n.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)n.appendChild(t.firstChild);t.parentNode.removeChild(t)}const r=e.parentNode;if(r&&"LI"===r.nodeName&&1===r.children.length&&!/\S/.test((o=r,Array.from(o.childNodes).map(({nodeValue:e=""})=>e).join("")))){const e=r,n=e.previousElementSibling,o=e.parentNode;n&&(n.appendChild(t),o.removeChild(e))}var o;if(r&&Rr(r)){const n=t.previousElementSibling;n?n.appendChild(e):Or(e)}}function Pr(e={}){return t=>{if("BLOCKQUOTE"!==t.nodeName)return;const n=t;n.innerHTML=Tr(n.innerHTML,e)}}
241function Dr(e,t=e){const n=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(n,t),n.appendChild(e)}function zr(e,t,n){if(!n||!function(e,t){const n=e.nodeName.toLowerCase();return"figcaption"!==n&&!Ir(e)&&n in(t?.figure?.children??{})}(e,n))return;let r=e;const o=e.parentNode;(function(e,t){return e.nodeName.toLowerCase()in(t?.figure?.children?.a?.children??{})})(e,n)&&"A"===o.nodeName&&1===o.childNodes.length&&(r=e.parentNode);const i=r.closest("p,div");if(i){const t=e;t.classList?(t.classList.contains("alignright")||t.classList.contains("alignleft")||t.classList.contains("aligncenter")||!i.textContent.trim())&&Dr(r,i):Dr(r,i)}else Dr(r)}function Fr(e,t,n=0){const r=Hr(e);r.lastIndex=n;const o=r.exec(t);if(!o)return;if("["===o[1]&&"]"===o[7])return Fr(e,t,r.lastIndex);const i={index:o.index,content:o[0],shortcode:Ur(o)};return o[1]&&(i.content=i.content.slice(1),i.index++),o[7]&&(i.content=i.content.slice(0,-1)),i}function $r(e,t,n){return t.replace(Hr(e),(...e)=>{const t=e[0],r=e[1],o=e[7];if("["===r&&"]"===o)return t;const i=n(Ur(e));return i||""===i?r+i+o:t})}function Vr(e){return new Kr(e).string()}function Hr(e){return new RegExp("\\[(\\[?)("+e+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var Wr=(0,Yn.A)(e=>{const t={},n=[],r=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;let o;for(e=e.replace(/[\u00a0\u200b]/g," ");o=r.exec(e);)o[1]?t[o[1].toLowerCase()]=o[2]:o[3]?t[o[3].toLowerCase()]=o[4]:o[5]?t[o[5].toLowerCase()]=o[6]:o[7]?n.push(o[7]):o[8]?n.push(o[8]):o[9]&&n.push(o[9]);return{named:t,numeric:n}});function Ur(e){let t;return t=e[4]?"self-closing":e[6]?"closed":"single",new Kr({tag:e[2],attrs:e[3],type:t,content:e[5]})}var Kr=class{tag;type;content;attrs;static next=Fr;static replace=$r;static string=Vr;static regexp=Hr;static attrs=Wr;static fromMatch=Ur;constructor(e){const{tag:t,attrs:n,type:r,content:o}=e;this.tag=t,this.type=r,this.content=o,this.attrs={named:{},numeric:[]},n&&("string"==typeof n?this.attrs=Wr(n):"named"in n&&"numeric"in n&&void 0!==n.named&&void 0!==n.numeric?this.attrs=n:Object.entries(n).forEach(([e,t])=>{void 0!==t&&this.set(e,String(t))}))}get(e){return"number"==typeof e?this.attrs.numeric[e]:this.attrs.named[e]}set(e,t){return"number"==typeof e?this.attrs.numeric[e]=t:this.attrs.named[e]=t,this}string(){let e="["+this.tag;return this.attrs.numeric.forEach(t=>{/\s/.test(t)?e+=' "'+t+'"':e+=" "+t}),Object.entries(this.attrs.named).forEach(([t,n])=>{e+=" "+t+'="'+n+'"'}),"single"===this.type?e+"]":"self-closing"===this.type?e+" /]":(e+="]",this.content&&(e+=this.content),e+"[/"+this.tag+"]")}},Gr=e=>Array.isArray(e)?e:[e],qr=/(\n|<p>|<br\s*\/?>)\s*$/,Zr=/^\s*(\n|<\/p>|<br\s*\/?>)/;var Yr=function e(t,n=0,r=[]){const o=Dt(zt("from").filter(e=>"shortcode"===e.type),e=>-1===r.indexOf(e.blockName)&&Gr(e.tag).some(e=>Hr(e).test(t)));if(!o)return[t];const i=n,s=Fr(Gr(o.tag).find(e=>Hr(e).test(t)),t,n);if(!s)return[t];n=s.index+s.content.length;const a=t.substr(0,s.index),l=t.substr(n);if(!(s.shortcode.content?.includes("<")||qr.test(a)&&Zr.test(l)))return e(t,n);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,i,[...r,o.blockName]);let c=[];if("function"==typeof o.transform)c=[].concat(o.transform(s.shortcode.attrs,s)),c=c.map(e=>(e.originalContent=s.shortcode.content,mr(e,V(e.name))));else{const e=V(o.blockName);if(!e)return[t];const n=o.attributes??e.attributes,r=Object.fromEntries(Object.entries(n).filter(([,e])=>e.shortcode).map(([e,t])=>[e,t.shortcode(s.shortcode.attrs,s)])),i={...e,attributes:n};let a=Nt(o.blockName,lr(i,s.shortcode.content,r));a.originalContent=s.shortcode.content,a=mr(a,i),c=[a]}return[...e(a.replace(qr,"")),...c,...e(l.replace(Zr,""))]};function Xr(e){return function(e,t){const n={phrasingContentSchema:Ar(t),isPaste:"paste"===t};function r(e,t,n){switch(n){case"children":return"*"===e||"*"===t?"*":i({...e||{}},t||{});case"attributes":case"require":return Array.from(new Set([...e||[],...t||[]]));case"isMatch":if(!e||!t)return;return(...n)=>e(...n)||t(...n);case"classes":return(e||[]).includes("*")||(t||[]).includes("*")?["*"]:[...e||[],...t||[]]}}function o(e,t){if(e===t)return e;for(const n in t)e[n]?e[n]=r(e[n],t[n],n):Array.isArray(t[n])?e[n]=t[n].slice():e[n]={...t[n]};return e}function i(e,t){if(e===t)return e;for(const n in t)e[n]?e[n]=o(e[n],t[n]):Array.isArray(t[n])?e[n]=t[n].slice():e[n]={...t[n]};return e}return e.map(({isMatch:e,blockName:t,schema:r})=>{const o=U(t,"anchor");return r="function"==typeof r?r(n):r,o||e?r?Object.fromEntries(Object.entries(r).map(([t,n])=>{let r=n.attributes||[];return o&&(r=[...r,"id"]),[t,{...n,attributes:r,isMatch:e||void 0}]})):{}:r}).reduce(i,{})}(vr(),e)}
241function Qr(e,t,n,r){Array.from(e).forEach(e=>{Qr(e.childNodes,t,n,r),t.forEach(t=>{n.contains(e)&&t(e,n,r)})})}function Jr(e,t=[],n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,Qr(r.body.childNodes,t,r,n),r.body.innerHTML}function eo(e,t){const n=e[`${t}Sibling`];if(n&&Er(n))return n;const{parentNode:r}=e;return r&&Er(r)?eo(r,t):void 0}function to({HTML:e=""}){if(-1!==e.indexOf("\x3c!-- wp:")){const t=yr(e);if(!(1===t.length&&"core/freeform"===t[0].name))return t}const t=Yr(e),n=Xr();return t.map(e=>{if("string"!=typeof e)return e;return kr(e=Tr(e=Jr(e,[Mr,Lr,zr,Pr({raw:!0})],n),{raw:!0}),to)}).flat().filter(Boolean)}var no=()=>{};function ro(e,t,n,r){Array.from(e).forEach(e=>{const o=e.nodeName.toLowerCase();if(!n.hasOwnProperty(o)||n[o].isMatch&&!n[o].isMatch?.(e))ro(e.childNodes,t,n,r),r&&!Er(e)&&e.nextElementSibling&&jr(t.createElement("br"),e),Or(e);else if(function(e){return!!e&&e.nodeType===e.ELEMENT_NODE}(e)){const{attributes:i=[],classes:s=[],children:a,require:l=[],allowEmpty:c}=n[o];if(a&&!c&&xr(e))return void(Er(e)&&e.hasChildNodes()?Or(e):(0,Br.A)(e));if(e.hasAttributes()&&(Array.from(e.attributes).forEach(({name:t})=>{"class"===t||i.includes(t)||e.removeAttribute(t)}),e.classList&&e.classList.length)){const t=s.map(e=>"*"===e?()=>!0:"string"==typeof e?t=>t===e:e instanceof RegExp?t=>e.test(t):no);Array.from(e.classList).forEach(n=>{t.some(e=>e(n))||e.classList.remove(n)}),e.classList.length||e.removeAttribute("class")}if(e.hasChildNodes()){if("*"===a)return;if(a)l.length&&!e.querySelector(l.join(","))?(ro(e.childNodes,t,n,r),Or(e)):e.parentNode&&"BODY"===e.parentNode.nodeName&&Er(e)?(ro(e.childNodes,t,n,r),Array.from(e.childNodes).some(e=>!Er(e))&&Or(e)):ro(e.childNodes,t,a,r);else for(;e.firstChild;)(0,Br.A)(e.firstChild)}}})}function oo(e,t,n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,ro(r.body.childNodes,r,t,n),r.body.innerHTML}function io(e){e.nodeType===e.COMMENT_NODE&&(0,Br.A)(e)}function so(e,t){return e.every(e=>function(e,t){if(Ir(e))return!0;if(!t)return!1;const n=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some(e=>0===[n,t].filter(t=>!e.includes(t)).length)}(e,t)&&so(Array.from(e.children),t))}function ao(e){return"BR"===e.nodeName&&!!e.previousSibling&&"BR"===e.previousSibling.nodeName}function lo(e,t){(0,Nr.e)(t.parentNode,"referenceNode.parentNode"),t.parentNode.insertBefore(e,t),e.appendChild(t)}function co(e,t){const n=e.ownerDocument.createElement(t);for(;e.firstChild;)n.appendChild(e.firstChild);return(0,Nr.e)(e.parentNode,"node.parentNode"),e.parentNode.replaceChild(n,e),n}function uo(e,t){if("SPAN"===e.nodeName&&e.style){const{fontWeight:n,fontStyle:r,textDecorationLine:o,textDecoration:i,verticalAlign:s}=e.style,a=e;"bold"!==n&&"700"!==n||lo(t.createElement("strong"),a),"italic"===r&&lo(t.createElement("em"),a),("line-through"===o||i.includes("line-through"))&&lo(t.createElement("s"),a),"super"===s?lo(t.createElement("sup"),a):"sub"===s&&lo(t.createElement("sub"),a)}else if("B"===e.nodeName)co(e,"strong");else if("I"===e.nodeName)co(e,"em");else if("A"===e.nodeName){const t=e;t.target&&"_blank"===t.target.toLowerCase()?t.rel="noopener":(t.removeAttribute("target"),t.removeAttribute("rel")),t.name&&!t.id&&(t.id=t.name),t.id&&!t.ownerDocument.querySelector(`[href="#${t.id}"]`)&&t.removeAttribute("id")}}function fo(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}function po(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e,n=t.getAttribute("style");if(!n||!n.includes("mso-list"))return;"ignore"===n.split(";").reduce((e,t)=>{const[n,r]=t.split(":");return n&&r&&(e[n.trim().toLowerCase()]=r.trim().toLowerCase()),e},{})["mso-list"]&&t.remove()}function mo(e){return"OL"===e.nodeName||"UL"===e.nodeName}function go(e,t){if("P"!==e.nodeName)return;const n=e,r=n.getAttribute("style");if(!r||!r.includes("mso-list"))return;const o=n.previousElementSibling;if(!o||!mo(o)){const e=n.textContent.trim().slice(0,1),r=/[1iIaA]/.test(e),o=t.createElement(r?"ol":"ul");r&&o.setAttribute("type",e),n.parentNode.insertBefore(o,n)}const i=n.previousElementSibling,s=i.nodeName,a=t.createElement("li");let l=i;a.innerHTML=Jr(n.innerHTML,[po]);const c=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);let u=c&&parseInt(c[1],10)-1||0;for(;u--;)l=l.lastChild||l,mo(l)&&(l=l.lastChild||l);mo(l)||(l=l.appendChild(t.createElement(s))),l.appendChild(a),n.parentNode.removeChild(n)}var ho=n(4552);function bo(e){if("IMG"!==e.nodeName)return;const t=e;if(0===t.src.indexOf("file:")&&(t.src=""),0===t.src.indexOf("data:")){const[e,n]=t.src.split(","),[r]=e.slice(5).split(";");if(!n||!r)return void(t.src="");let o;try{o=atob(n)}catch{return void(t.src="")}const i=new Uint8Array(o.length);for(let e=0;e<i.length;
241e++)i[e]=o.charCodeAt(e);const s=r.replace("/","."),a=new window.File([i],s,{type:r});t.src=(0,ho.bW)(a)}1!==t.height&&1!==t.width||t.parentNode.removeChild(t)}function yo(e){if("DIV"!==e.nodeName)return;const t=e;t.innerHTML=Tr(t.innerHTML)}function vo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ko={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function xo(e){ko=e}var wo={exec:()=>null};function _o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function So(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(Ao.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var Co=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ao={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:_o(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:_o(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:_o(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:_o(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:_o(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:_o(e=>new RegExp(`^ {0,${e}}>`))},Eo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Io=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,To=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,No=So(To).replace(/bull/g,Io).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),jo=So(To).replace(/bull/g,Io).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Lo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oo=So(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ro=So(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Io).getRegex(),Mo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Po=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Do=So("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>
vendor: 39,512 bytes, line 241
241)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Po).replace("tag",Mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zo=e=>So(Bo).replace("hr",Eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mo).getRegex(),Fo=zo(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),$o=zo(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Vo={blockquote:So(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$o).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Oo,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Eo,html:Do,lheading:No,list:Ro,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Fo,table:wo,text:/^[^\n]+/},Ho=So("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mo).getRegex(),Wo={...Vo,lheading:jo,table:Ho,paragraph:So(Bo).replace("hr",Eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ho).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mo).getRegex()},Uo={...Vo,html:So("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Po).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:So(Bo).replace("hr",Eo).replace("heading"," *#{1,6} *[^\n]").replace("lheading",No).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ko=/^( {2,}|\\)\n(?!\s*$)/,Go=/[\p{P}\p{S}]/u,qo=/[\s\p{P}\p{S}]/u,Zo=/[^\s\p{P}\p{S}]/u,Yo=So(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qo).getRegex(),Xo=/(?!~)[\p{P}\p{S}]/u,Qo=So(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Co?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Jo=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ei=So(Jo,"u").replace(/punct/g,Go).getRegex(),ti=So(Jo,"u").replace(/punct/g,Xo).getRegex(),ni=So(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,/[\p{Pi}\p{Ps}"']/u).replace(/punct/g,Go).getRegex(),ri="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",oi=So(ri,"gu").replace(/notPunctSpace/g,Zo).replace(/punctSpace/g,qo).replace(/punct/g,Go).getRegex(),ii=So(ri,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Xo).getRegex(),si=So("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Zo).replace(/punctSpace/g,qo).replace(/punct/g,Go).getRegex(),ai=So("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zo).replace(/punctSpace/g,qo).replace(/punct/g,Go).getRegex(),li=So("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Zo).replace(/punctSpace/g,qo).replace(/punct/g,Go).getRegex(),ci=So(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Go).getRegex(),ui=So("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Zo).replace(/punctSpace/g,qo).replace(/punct/g,Go).getRegex(),di=So(/\\(punct)/,"gu").replace(/punct/g,Go).getRegex(),fi=So(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),pi=So(Po).replace("(?:--\x3e|$)","--\x3e").getRegex(),mi=So("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pi).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,hi=So(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",gi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bi=So(/^!?\[(label)\]\[(ref)\]/).replace("label",gi).replace("ref",Lo).getRegex(),yi=So(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lo).getRegex(),vi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ki={_backpedal:wo,anyPunctuation:di,autolink:fi,blockSkip:Qo,br:Ko,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:wo,delLDelim:wo,delRDelim:wo,emStrongLDelim:ei,emStrongRDelimAst:oi,emStrongRDelimUnd:ai,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:hi,nolink:yi,punctuation:Yo,reflink:bi,reflinkSearch:So("reflink|nolink(?!\\()","g").replace("reflink",bi).replace("nolink",yi).getRegex(),tag:mi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:wo},xi={...ki,emStrongLDelim:ni,emStrongRDelimAst:si,emStrongRDelimUnd:li,link:So(/^!?\[(label)\]\((.*?)\)/).replace("label",gi).getRegex(),reflink:So(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gi).getRegex()},wi={...ki,emStrongRDelimAst:ii,emStrongLDelim:ti,delLDelim:ci,delRDelim:ui,url:So(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vi).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:So(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vi).getRegex()},_i={...wi,br:So(Ko).replace("{2,}","*").getRegex(),text:So(wi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Si={normal:Vo,gfm:Wo,pedantic:Uo},Ci={normal:ki,gfm:wi,breaks:_i,pedantic:xi},Ai={"&":"&","<":"<",">":">",'"':""","'":"'"},Ei=e=>Ai[e];function Ii(e,t){if(t){if(Ao.escapeTest.test(e))return e.replace(Ao.escapeReplace,Ei)}else if(Ao.escapeTestNoEncode.test(e))return e.replace(Ao.escapeReplaceNoEncode,Ei);return e}function Ti(e){try{e=encodeURI(e).replace(Ao.percentDecode,"%")}catch{return null}return e}function Ni(e,t){let n=e.replace(Ao.findPipe,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(Ao.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(Ao.slashPipe,"|");return n}function ji(e,t,n){let r=e.length;if(0===r)return"";let o=0;for(;o<r;){let i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Bi(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&Ao.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function Li(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function Oi(e,t,n,r,o){let i=t.href,s=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1"),l="!"===e[0].charAt(0);r.state.inLink=!0;let c=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(a),f=r.state.linkEmitted;if(r.state.linkEmitted=c,r.state.inLink=!1,!l){if(f)return void(r.state.inRawBlock=u);r.state.linkEmitted=!0}return{type:l?"image":"link",raw:n,href:i,title:s,text:a,tokens:d}}var Ri=class{options;rules;lexer;constructor(e){this.options=e||ko}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Bi(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ji(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:ji(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ji(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ji(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),i=!0;else{if(i)break;s.push(e[t])}e=e.slice(t);let a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=c,0===e.length)break;let u=o.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,i=e.join("\n"),s=t.raw+"\n"+i.replace(this.rules.other.blockquoteSetextReplace2,""),a=this.blockquote(s);o[o.length-1]=a,n=`${n}\n${i}`,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===u?.type){let t=u,i=t.raw+"\n"+e.join("\n"),s=this.list(i);o[o.length-1]=s,n=n.substring(0,n.length-u.raw.length)+s.raw,r=r.substring(0,r.length-t.raw.length)+s.raw,e=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",a="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=Li(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):u?d=t[1].length+1:(d=l.search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p,m=e.split("\n",1)[0];if(c=m,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||s.test(c)||f.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+p.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(l)||i.test(l)||n.test(l))break;a+="\n"+c}u=!c.trim(),r+=m+"\n",e=e.substring(m.length+1),l=p.slice(d)}}o.loose||(s?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),o.raw+=r}let a=o.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e of o.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!o.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=n}for(let e of o.items){let t=e.tokens[0];if(!e.task||"text"!==t?.type&&"paragraph"!==t?.type)e.task&&(e.task=!1);else{e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Bi(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:ji(t[0],"\n"),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Ni(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:ji(t[0],"\n"),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(let e of o)i.rows.push(Ni(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:ji(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ji(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Oi(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Oi(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(r[1]||r[2]||r[3]||r[4])&&(!r[4]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[3]||!n||this.rules.inline.punctuation.exec(n))){let o,i,s=[...r[0]].length-1,a=s,l=0,c=r[0][0],u=n===c,d="*"===c?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+s);null!==(r=d.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=[...o].length,r[3]||r[4]){a+=i;continue}if(r[5]||r[6]){if(s%3&&!((s+i)%3)){l+=i;continue}if(u)break}if(a-=i,a>0)continue;i=Math.min(i,i+a+l);let t=[...r[0]][0].length,n=e.slice(0,s+r.index+t+i);if(Math.min(s,i)%2){let e=n.slice(1,-1);return{type:"em",raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let c=n.slice(2,-2);return{type:"strong",raw:n,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,s=i,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=a.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(o=[...n].length,o!==i))continue;if(r[3]||r[4]){s+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s);let t=[...r[0]][0].length,a=e.slice(0,i+r.index+t+o),l=a.slice(i,-i);return{type:"del",raw:a,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Mi=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ko,this.options.tokenizer=this.options.tokenizer||new Ri,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:Ao,block:Si.normal,inline:Ci.normal};this.options.pedantic?(t.block=Si.pedantic,t.inline=Ci.pedantic):this.options.gfm&&(t.block=Si.gfm,this.options.breaks?t.inline=Ci.breaks:t.inline=Ci.gfm),this.tokenizer.rules=t}static get rules(){return{block:Si,inline:Ci}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Ao.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Ao.tabCharGlobal," ").replace(Ao.spaceLine,""));let r=1/0;for(;e;){if(!(e.length<r)){this.infiniteLoopError(e.charCodeAt(0));break}let o;if(r=e.length,this.options.extensions?.block?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let r=t.at(-1);n&&"paragraph"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o),n=i.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes("["))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&"!"!==e.charAt(n.index-1))return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf("[");if("!"!==e.charAt(0)&&Object.hasOwn(this.tokens.links,e.slice(n+1,-1))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes("[")){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&"!"!==n.charAt(0)){let o=n.slice(1,r-1);if(this.linkInText(o))return"["+o.replace(e,t)+"]["+"a".repeat(n.length-r-2)+"]"}return"["+"a".repeat(n.length-2)+"]"};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>"+".repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+"["+"a".repeat(e.length-r-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,o="",i=1/0;for(;e;){if(!(e.length<i)){this.infiniteLoopError(e.charCodeAt(0));break}let s;if(i=e.length,r||(o=""),r=!1,this.options.extensions?.inline?.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);let n=t.at(-1);"text"===s.type&&"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,n,o)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e,n,o)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}let a=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(a=e.substring(0,n+1))}if(s=this.tokenizer.inlineText(a)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(o=s.raw.slice(-1)),r=!0;let n=t.at(-1);"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(!this.options.silent)throw new Error(t);console.error(t)}},Pi=class{options;parser;constructor(e){this.options=e||ko}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(Ao.notSpaceStart)?.[0],o=e.replace(Ao.endingNewline,"")+"\n";return r?'<pre><code class="language-'+Ii(r)+'">'+(n?o:Ii(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:Ii(o,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ii(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=Ti(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+Ii(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=Ti(e);if(null===o)return Ii(n);let i=`<img src="${e=o}" alt="${Ii(n)}"`;return t&&(i+=` title="${Ii(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ii(e.text)}},Di=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},zi=class e{options;renderer;textRenderer;constructor(e){this.options=e||ko,this.options.renderer=this.options.renderer||new Pi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Di}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let o=r;switch(o.type){case"space":t+=this.renderer.space(o);break;case"hr":t+=this.renderer.hr(o);break;case"heading":t+=this.renderer.heading(o);break;case"code":t+=this.renderer.code(o);break;case"table":t+=this.renderer.table(o);break;case"blockquote":t+=this.renderer.blockquote(o);break;case"list":t+=this.renderer.list(o);break;case"checkbox":t+=this.renderer.checkbox(o);break;case"html":t+=this.renderer.html(o);break;case"def":t+=this.renderer.def(o);break;case"paragraph":t+=this.renderer.paragraph(o);break;case"text":t+=this.renderer.text(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}let i=o;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},Fi=class{options;block;constructor(e){this.options=e||ko}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Mi.lex:Mi.lexInline}provideParser(e=this.block){return e?zi.parse:zi.parseInline}},$i=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=zi;Renderer=Pi;TextRenderer=Di;Lexer=Mi;Tokenizer=Ri;Hooks=Fi;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let o=e[r].flat(1/0);n=n.concat(this.walkTokens(o,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Pi(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,o=e.renderer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Ri(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,o=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Fi;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,o=e.hooks[r],i=t[r];Fi.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Fi.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await o.call(t,e);return i.call(t,n)})();let r=o.call(t,e);return i.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await o.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Mi.lex(e,t??this.defaults)}parser(e,t){return zi.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer(e):e?Mi.lex:Mi.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let s=await(o.hooks?await o.hooks.provideParser(e):e?zi.parse:zi.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(s):s})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer(e):e?Mi.lex:Mi.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser(e):e?zi.parse:zi.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Ii(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Vi=new $i;function Hi(e,t){return Vi.parse(e,t)}Hi.options=Hi.setOptions=function(e){return Vi.setOptions(e),Hi.defaults=Vi.defaults,xo(Hi.defaults),Hi},Hi.getDefaults=vo,Hi.defaults=ko,Hi.use=function(...e){return Vi.use(...e),Hi.defaults=Vi.defaults,xo(Hi.defaults),Hi},Hi.walkTokens=function(e,t){return Vi.walkTokens(e,t)},Hi.parseInline=Vi.parseInline,Hi.Parser=zi,Hi.parser=zi.parse,Hi.Renderer=Pi,Hi.TextRenderer=Di,Hi.Lexer=Mi,Hi.lexer=Mi.lex,Hi.Tokenizer=Ri,Hi.Hooks=Fi,Hi.parse=Hi;Hi.options,Hi.setOptions,Hi.walkTokens,Hi.parseInline,zi.parse,Mi.lex;function Wi(e){return e.replace(/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">")}var Ui=new $i({gfm:!0,breaks:!0,renderer:{code({text:e,lang:t}){const n=(t||"").match(/^\S*/)?.[0];return`<pre><code${n?` class="${n} language-${n}"`:""}>${Wi(e)}</code></pre>`},text:e=>!("tokens"in e&&e.tokens||"escaped"in e&&e.escaped)&&Wi(e.text)}});var Ki=[function(e){return e.includes("\n")?e:e.replace(/^(\d+)\.(\s)/,"$1\\.$2")},function(e){return e.replace(/(^|\n)â¢( +)/g,"$1*$2")},function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(e,t,n,r)=>`${t}\n${n}\n${r}`)}];
241function Gi(e){if("IFRAME"===e.nodeName){const t=e,n=t.ownerDocument.createTextNode(t.src);t.parentNode.replaceChild(n,t)}}function qi(e){const t=e;t.id&&0===t.id.indexOf("docs-internal-guid-")&&("B"===t.tagName?Or(e):t.removeAttribute("id"))}function Zi(e){if(e.nodeType!==e.TEXT_NODE)return;let t=e;for(;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;const n=e;let r=n.data.replace(/[ \r\n\t]+/g," ");if(" "===r[0]){const t=eo(e,"previous");t&&"BR"!==t.nodeName&&" "!==t.textContent.slice(-1)||(r=r.slice(1))}if(" "===r[r.length-1]){const t=eo(e,"next");(!t||"BR"===t.nodeName||t.nodeType===t.TEXT_NODE&&(" "===(o=t.textContent[0])||"\r"===o||"\n"===o||"\t"===o))&&(r=r.slice(0,-1))}var o;r?n.data=r:e.parentNode.removeChild(e)}function Yi(e,t,n){const r=n?e.firstChild:e.lastChild;if(!r||r.nodeType!==e.TEXT_NODE)return;const o=r,i=n?0:o.data.length-1;" "===o.data[i]&&(o.data=n?o.data.slice(1):o.data.slice(0,-1),o.data||e.removeChild(o),e.parentNode.insertBefore(t.createTextNode(" "),n?e:e.nextSibling))}function Xi(e,t){e.nodeType===e.ELEMENT_NODE&&Er(e)&&(Yi(e,t,!0),Yi(e,t,!1))}function Qi(e){"BR"===e.nodeName&&(eo(e,"next")||e.parentNode.removeChild(e))}function Ji(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function es(e){if("SPAN"!==e.nodeName)return;if("paragraph-break"!==e.getAttribute("data-stringify-type"))return;const t=e.parentNode;t.insertBefore(e.ownerDocument.createElement("br"),e),t.insertBefore(e.ownerDocument.createElement("br"),e),t.removeChild(e)}function ts(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e;if("P"===t.tagName&&"heading"===t.getAttribute("role")&&t.hasAttribute("aria-level")){const e=parseInt(t.getAttribute("aria-level"),10);if(e>=1&&e<=6){const n=`H${e}`,r=t.ownerDocument.createElement(n);for(Array.from(t.attributes).forEach(e=>{"role"!==e.name&&"aria-level"!==e.name&&r.setAttribute(e.name,e.value)});t.firstChild;)r.appendChild(t.firstChild);t.parentNode.replaceChild(r,t)}}}var ns=(...e)=>window?.console?.log?.(...e);function rs(e){return e=Jr(e,[fo,qi,po,uo,io]),e=Jr(e=oo(e,Ar("paste"),!0),[Zi,Xi,Qi]),ns("Processed inline HTML:\n\n",e),e}function os({HTML:e="",plainText:t="",mode:n="AUTO",tagName:r}){if(ns("Received HTML (pasteHandler):\n\n",e),ns("Received plain text (pasteHandler):\n\n",t),e=(e=(e=e.replace(/<meta[^>]+>/g,"")).replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,"")).replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==n){const n=e||t;if(-1!==n.indexOf("\x3c!-- wp:")){const e=yr(n);if(!(1===e.length&&"core/freeform"===e[0].name))return e}}e=Jr(e=e.normalize(),[es]);const o=t&&(!e||function(e){if(!/<(?!br[ />])/i.test(e))return!0;const t=document.implementation.createHTMLDocument("");if(t.body.innerHTML=e,1!==t.body.children.length)return!1;const n=t.body.children.item(0),r=n.getElementsByTagName("*");for(let e=0;e<r.length;e++)if("BR"!==r.item(e).tagName)return!1;return"SPAN"===n.tagName}(e));if(o&&function(e){const t=/[\p{L}\s]+/gu;let n;for(;n=t.exec(e);){if("{"===e[n.index-1])continue;let t=n[0];if("\\"===e[n.index-1]&&(t=t.replace(/^[a-zA-Z]+/,"")),!(t.length<6))return!1}return!!/\\[a-zA-Z]+\s*\{/g.test(e)||[e=>e.includes("^")&&!e.startsWith("^"),e=>["=","+","-","/","*"].some(t=>e.includes(t)),e=>/\\[a-zA-Z]+/g.test(e)].filter(t=>t(e)).length>=2}(t))return[Nt("core/math",{latex:t})];var i;o&&(e=t,/^\s+$/.test(t)||(i=e,e=Ui.parse(Ki.reduce((e,t)=>t(e),i),{async:!1})));const s=Yr(e),a=s.length>1;if(o&&!a&&"AUTO"===n&&-1===t.indexOf("\n")&&0!==t.indexOf("<p>")&&0===e.indexOf("<p>")&&(n="INLINE"),"INLINE"===n)return rs(e);if("AUTO"===n&&!a&&function(e,t){const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=Array.from(n.body.children);return!r.some(ao)&&so(r,t)}(e,r))return rs(e);const l=Ar("paste"),c=Xr("paste"),u=s.map(e=>{if("string"!=typeof e)return e;const t=[qi,go,fo,Mr,bo,uo,Lr,io,Gi,zr,Pr(),yo,ts],n={...c,...l};return e=Jr(e,t,c),e=Jr(e=Tr(e=oo(e,n,!1)),[Zi,Xi,Qi,Ji],c),ns("Processed HTML piece:\n\n",e),kr(e,os)}).flat().filter(Boolean);if("AUTO"===n&&1===u.length&&U(u[0].name,"__unstablePasteTextInline",!1)){const e=/^[\n]+|[\n]+$/g,n=t.replace(e,"");if(""!==n&&-1===n.indexOf("\n"))return oo(sn(u[0]),l,!1).replace(e,"")}return u}function is(e=[],t=[]){return e.length===t.length&&t.every(([t,,n],r)=>
241{const o=e[r];return t===o.name&&is(o.innerBlocks,n)})}function ss(e,t){return t?Object.fromEntries(Object.entries(t).map(([t,n])=>[t,as(e[t],n)])):{}}function as(e,t){return n=e,"html"===n?.source&&Array.isArray(t)?(0,Gt.Ay)(t):(e=>"query"===e?.source)(e)&&t?t.map(t=>ss(e.query,t)):t;var n}function ls(e=[],t){return t?t.map(([t,n,r],o)=>{const i=e[o];if(i&&i.name===t){const e=ls(i.innerBlocks,r);return{...i,innerBlocks:e}}const s=V(t),a=ss(s?.attributes??{},n),[l,c]=Un(t,a);return Nt(l,c,ls([],r))}):e}var cs={};B(cs,{isContentBlock:function(e){const t=V(e),n=t?.attributes,r=t?.supports?.contentRole;return!!r||!!n&&!!Object.keys(n)?.some(e=>{const t=n[e];return"content"===t?.role||"content"===t?.__experimentalRole})},editableRootKey:Symbol("editableRoot"),parseRawBlock:br})},5896(e,t,n){"use strict";n.d(t,{Ay:()=>_});var r=n(3022),o=n(2376),i=n(8787),s=n(6457),a=n(3236),l="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)u(e,n,r)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())u(r,e,t)})("bae7d73a59","._94dff8a2f7c49fc8__wrapper{box-sizing:border-box;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}._94dff8a2f7c49fc8__wrapper *,._94dff8a2f7c49fc8__wrapper :after,._94dff8a2f7c49fc8__wrapper :before{box-sizing:inherit}.components-panel__row .d9ac8e2c0db95cc7__field{margin-bottom:inherit}.a54361fe302593c3__label{display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-bottom:8px;padding:0;text-transform:uppercase}.de68669d18f359f5__help{text-wrap:pretty;color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));font-size:12px;font-style:normal;margin-bottom:0;margin-top:8px}");var d="_94dff8a2f7c49fc8__wrapper",f="d9ac8e2c0db95cc7__field",p="a54361fe302593c3__label",m="de68669d18f359f5__help";var g=(0,o.forwardRef)(function({className:e,...t},n){return(0,a.jsx)(s.Z,{ref:n,...t,className:(0,r.A)(d,e)})}),h=(0,o.forwardRef)(function({className:e,...t},n){return(0,a.jsx)(s.Z,{ref:n,...t,className:(0,r.A)(f,e)})}),b=(0,o.forwardRef)(function({as:e,className:t,...n},o){return(0,a.jsx)(s.Z,{as:e??"label",ref:o,...n,className:(0,r.A)(p,t)})}),y=(0,o.forwardRef)(function({as:e,className:t,...n},o){return(0,a.jsx)(s.Z,{as:e??"p",ref:o,...n,className:(0,r.A)(m,t)})}),v=(0,o.forwardRef)(function({as:e,className:t,...n},o){return(0,a.jsx)(s.Z,{as:e??"span",ref:o,...n,className:(0,r.A)(p,t)})}),k=n(1541),x=n(9179),w=(0,o.forwardRef)((e,t)=>{const{className:n,children:o,...i}=e;return(0,a.jsx)(v,{ref:t,...i,className:(0,r.A)("components-base-control__label",n),children:o})}),_=Object.assign((0,x.zS)(e=>{const{id:t,label:n,hideLabelFromVision:r=!1,help:o,className:s,children:l}=(0,k.A)(e,"BaseControl");return(0,a.jsxs)(g,{className:s,children:[(0,a.jsxs)(h,{className:"components-base-control__field",children:[n&&t&&(r?(0,a.jsx)(i.A,{as:"label",htmlFor:t,children:n}):(0,a.jsx)(b,{className:"components-base-control__label",htmlFor:t,children:n})),n&&!t&&(r?(0,a.jsx)(i.A,{as:"label",children:n}):(0,a.jsx)(w,{children:n})),l]}),!!o&&(0,a.jsx)(y,{id:t?t+"__help":void 0,className:"components-base-control__help",children:o})]})},"BaseControl"),{VisualLabel:w})},3192(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(3022),o=n(6786),i=n(2376),s=n(1740),a=n(1665),l=n(169),c=n(8787),u=n(505),d=n(3236),f=["onMouseDown","onClick"],p=e=>i.Children.toArray(e).some(e=>(0,i.isValidElement)(e)?e.type===i.Fragment?p(e.props.children):"components-tooltip"!==e.props.className:""!==e);var m=(0,i.forwardRef)(function(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:i,isBusy:g,isDestructive:h,className:b,disabled:y,icon:v,iconPosition:k="left",iconSize:x,showTooltip:w,tooltipPosition:_,shortcut:S,label:C,children:A,size:E="default",text:I,variant:T,description:N,...j}=function({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:i,isLink:s,isPressed:a,isSmall:l,size:c,variant:u,describedBy:d,...f}){let p=c,m=u;const g={accessibleWhenDisabled:e,"aria-pressed":a,description:d};return l&&(p??="small"),n&&(m??="primary"),i&&(m??="tertiary"),r&&(m??="secondary"),t&&((0,o.A)("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),m??="secondary"),s&&(m??="link"),{...g,...f,size:p,variant:m}}(e),{href:B,target:L,"aria-checked":O,"aria-pressed":R,"aria-selected":M,...P}="href"in j?j:{href:void 0,target:void 0,...j},D=(0,s.A)(m,"components-button__description"),z=(0,r.A)("components-button",b,{"is-next-40px-default-size":n,"is-secondary":"secondary"===T,"is-primary":"primary"===T,"is-small":"small"===E,"is-compact":"compact"===E,"is-tertiary":"tertiary"===T,"is-pressed":[!0,"true","mixed"].includes(R),"is-pressed-mixed":"mixed"===R,"is-busy":g,"is-link":"link"===T,"is-destructive":h,"has-text":!!v&&(I||p(A)),"has-icon":!!v,"has-icon-right":"right"===k}),F=y&&!i,$=void 0===B||y?"button":"a",V="button"===$?{type:"button",disabled:F,"aria-checked":O,"aria-pressed":R,"aria-selected":M}:{},H="a"===$?{href:B,target:L}:{},W={};if(y&&i){V["aria-disabled"]=!0,H["aria-disabled"]=!0;for(const e of f)W[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const U=!F&&(w&&!!C||!!S||!!C&&!A?.length&&!1!==w),K=N?D:void 0,G=P["aria-describedby"]||K,q={className:z,"aria-label":P["aria-label"]||C,"aria-describedby":G,ref:t},Z=(0,d.jsxs)(d.Fragment,{children:[v&&"left"===k&&(0,d.jsx)(l.A,{icon:v,size:x}),I&&(0,d.jsx)(d.Fragment,{children:I}),A,v&&"right"===k&&(0,d.jsx)(l.A,{icon:v,size:x})]}),Y="a"===$?(0,d.jsx)("a",{...H,...P,...W,...q,children:Z}):(0,d.jsx)("button",{...V,...P,...W,...q,children:Z}),X=U?{text:A?.length&&N?N:C,shortcut:S,placement:_&&(0,u.YK)(_)}:{};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.Ay,{...X,children:Y}),N&&(0,d.jsx)(c.A,{children:(0,d.jsx)("span",{id:K,children:N})})]})}),g=m},3715(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(3022),o=n(2376),i=n(1740),s=n(1886),a=n(6786),l=n(3109),c=n(8901),u=n(2484),d=n(5896),f=n(3832),p=n(3236);var m=function e(t){const{__nextHasNoMarginBottom:n,label:m,className:g,heading:h,checked:b,indeterminate:y,help:v,id:k,onChange:x,onClick:w,..._}=t;h&&(0,a.A)("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});
241const[S,C]=(0,o.useState)(!1),[A,E]=(0,o.useState)(!1),I=(0,s.A)(e=>{e&&(e.indeterminate=!!y,C(e.matches(":checked")),E(e.matches(":indeterminate")))},[b,y]),T=(0,i.A)(e,"inspector-checkbox-control",k);return(0,p.jsx)(d.Ay,{label:h,id:T,help:v&&(0,p.jsx)("span",{className:"components-checkbox-control__help",children:v}),className:(0,r.A)("components-checkbox-control",g),children:(0,p.jsxs)(f.A,{spacing:0,justify:"start",alignment:"top",children:[(0,p.jsxs)("span",{className:"components-checkbox-control__input-container",children:[(0,p.jsx)("input",{ref:I,id:T,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>x(e.target.checked),checked:b,"aria-describedby":v?T+"__help":void 0,onClick:e=>{e.currentTarget.focus(),w?.(e)},..._}),A?(0,p.jsx)(l.A,{icon:u.A,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,S?(0,p.jsx)(l.A,{icon:c.A,className:"components-checkbox-control__checked",role:"presentation"}):null]}),m&&(0,p.jsx)("label",{className:"components-checkbox-control__label",htmlFor:T,children:m})]})})}},1576(e,t,n){"use strict";n.d(t,{Yr:()=>i,yG:()=>r,yy:()=>o});var r="data-wp-component",o="data-wp-c16t",i="__contextSystemKey__"},9179(e,t,n){"use strict";n.d(t,{KZ:()=>a,SZ:()=>d,zS:()=>l});var r=n(2376),o=n(9261),i=n(1576),s=n(5081);function a(e,t){return c(e,t,{forwardsRef:!0})}function l(e,t){return c(e,t)}function c(e,t,n){const a=n?.forwardsRef?(0,r.forwardRef)(e):e;void 0===t&&!0===globalThis.SCRIPT_DEBUG&&(0,o.A)("contextConnect: Please provide a namespace");let l=a[i.Yr]||[t];return Array.isArray(t)&&(l=[...l,...t]),"string"==typeof t&&(l=[...l,t]),Object.assign(a,{[i.Yr]:[...new Set(l)],displayName:t,selector:`.${(0,s.o)(t)}`})}function u(e){if(!e)return[];let t=[];return e[i.Yr]&&(t=e[i.Yr]),e.type&&e.type[i.Yr]&&(t=e.type[i.Yr]),t}function d(e,t){return!!e&&("string"==typeof t?u(e).includes(t):!!Array.isArray(t)&&t.some(t=>u(e).includes(t)))}},8538(e,t,n){"use strict";n.d(t,{aG:()=>u,c7:()=>f,rm:()=>d});var r=n(3764),o=n(4168),i=n(7160),s=n(2376),a=n(9261),l=n(9057),c=n(3236),u=(0,s.createContext)({});u.displayName="ComponentsContext";var d=()=>(0,s.useContext)(u);var f=(0,s.memo)(({children:e,value:t})=>{const n=function({value:e}){const t=d(),n=(0,s.useRef)(e);return(0,l.A)(()=>{o(n.current,e)&&n.current!==e&&!0===globalThis.SCRIPT_DEBUG&&(0,a.A)(`Please memoize your context: ${JSON.stringify(e)}`)},[e]),(0,s.useMemo)(()=>r(t??{},e??{},{isMergeableObject:i.Q}),[t,e])}({value:t});return(0,c.jsx)(u.Provider,{value:n,children:e})})},5081(e,t,n){"use strict";n.d(t,{o:()=>o});var r=n(4135);var o=(0,n(1636).A)(function(e){return`components-${(0,r.c)(e)}`})},1541(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(9261),o=n(8538),i=n(1576);var s=n(5081),a=n(4558);function l(e,t){const n=(0,o.rm)();void 0===t&&!0===globalThis.SCRIPT_DEBUG&&(0,r.A)("useContextSystem: Please provide a namespace");const l=n?.[t]||{},c={[i.yy]:!0,...(u=t,{[i.yG]:u})};var u;const{_overrides:d,...f}=l,p=d,m=Object.entries(f).length?Object.assign({},f,e):e,g=m,h=(0,a.l)()((0,s.o)(t),e.className),b="function"==typeof g.renderChildren?g.renderChildren(m):g.children;for(const e in m)c[e]=m[e];for(const e in p)c[e]=p[e];return void 0!==b&&(c.children=b),c.className=h,c}},3991(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(3022),o=n(5334),i=n(3236),s=(0,i.jsx)(o.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,i.jsx)(o.wA,{d:"M5 12H19M5 18.25H19M5 5.75H19",vectorEffect:"non-scaling-stroke"})}),a=n(1541),l=n(9179),c=n(3192),u=n(6075),d=n(790);function f(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=(0,r.A)(t.className,e.className)),n}function p(e){return"function"==typeof e}var m=(0,l.zS)(function(e){const{children:t,className:n,controls:o,icon:l=s,label:m,popoverProps:g,toggleProps:h,menuProps:b,disableOpenOnArrowDown:y=!1,text:v,noIcons:k,open:x,defaultOpen:w,onToggle:_,variant:S}=(0,a.A)(e,"DropdownMenu");if(!o?.length&&!p(t))return null;let C;o?.length&&(C=o,Array.isArray(C[0])||(C=[o]));const A=f({className:"components-dropdown-menu__popover",variant:S},g);return(0,i.jsx)(u.A,{className:n,popoverProps:A,renderToggle:({isOpen:e,onToggle:t})=>{const{as:n=c.A,...o}=h??{},s=f({className:(0,r.A)("components-dropdown-menu__toggle",{"is-opened":e})},o);return(0,i.jsx)(n,{...s,icon:l,onClick:e=>{t(),s.onClick&&s.onClick(e)},onKeyDown:n=>{(n=>{y||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),s.onKeyDown&&s.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:m,text:v,showTooltip:h?.showTooltip??!0,children:s.children})},renderContent:e=>{const n=f({"aria-label":m,className:(0,r.A)("components-dropdown-menu__menu",{"no-icons":k})},b);return(0,i.jsxs)(d.Ay,{...n,role:"menu",children:[p(t)?t(e):null,C?.flatMap((t,n)=>t.map((t,o)=>(0,i.jsx)(c.A,{size:"compact",onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:(0,r.A)("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===o,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",accessibleWhenDisabled:!0,disabled:t.isDisabled,children:t.title},[n,o].join())))]})},open:x,defaultOpen:w,onToggle:_})},"DropdownMenu")}
241,6075(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(3022),o=n(2376),i=n(3730),s=n(6786),a=n(9179),l=n(1541),c=n(6624),u=n(9562),d=n(3236),f=(0,a.KZ)((e,t)=>{const{renderContent:n,renderToggle:a,className:f,contentClassName:p,expandOnMobile:m,headerTitle:g,focusOnMount:h,popoverProps:b,onClose:y,onToggle:v,style:k,open:x,defaultOpen:w,position:_,variant:S}=(0,l.A)(e,"Dropdown");void 0!==_&&(0,s.A)("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[C,A]=(0,o.useState)(null),E=(0,o.useRef)(null),[I,T]=(0,c.j)({defaultValue:w,value:x,onChange:v});function N(){y?.(),T(!1)}const j={isOpen:!!I,onToggle:()=>T(!I),onClose:N},B=!!(b?.anchor||b?.anchorRef||b?.getAnchorRect||b?.anchorRect);return(0,d.jsxs)("div",{className:f,ref:(0,i.A)([E,t,A]),tabIndex:-1,style:k,children:[a(j),I&&(0,d.jsx)(u.Ay,{position:_,onClose:N,onFocusOutside:function(){if(!E.current)return;const{ownerDocument:e}=E.current,t=e?.activeElement?.closest('[role="dialog"]');E.current.contains(e.activeElement)||t&&!t.contains(E.current)||N()},expandOnMobile:m,headerTitle:g,focusOnMount:h,offset:13,anchor:B?void 0:C,variant:S,...b,className:(0,r.A)("components-dropdown__content",b?.className,p),children:n(j)})]})},"Dropdown")},6139(e,t,n){"use strict";n.d(t,{R:()=>o,a:()=>i});var r=n(2376),o=(0,r.createContext)({flexItemDisplay:void 0}),i=()=>(0,r.useContext)(o)},4103(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(9179),o=n(6930),i=n(1541),s=n(4756);var a=n(3236);var l=(0,r.KZ)(function(e,t){const n=function(e){const t=(0,i.A)(e,"FlexBlock");return(0,s.K)({isBlock:!0,...t})}(e);return(0,a.jsx)(o.A,{...n,ref:t})},"FlexBlock")},2474(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(9179),o=n(6930),i=n(4756),s=n(3236);var a=(0,r.KZ)(function(e,t){const n=(0,i.K)(e);return(0,s.jsx)(o.A,{...n,ref:t})},"FlexItem")},4756(e,t,n){"use strict";n.d(t,{K:()=>d});var r=n(3022),o=n(1541),i=n(6139),s="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=a();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("1931a27616",".e518617e7c3a18e7__flex{align-items:var(--wp-components-flex-align);display:flex;flex-direction:var(--wp-components-flex-direction);flex-wrap:var(--wp-components-flex-wrap);gap:var(--wp-components-flex-gap);justify-content:var(--wp-components-flex-justify)}.e4a76957e0b12292__expanded-column{height:100%}.cc39999a5fb580d4__expanded-row{width:100%}.bc09d0edcc10c304__item{display:var(--wp-components-flex-item-display);max-height:100%;max-width:100%;min-height:0;min-width:0}.c184ec8e81027f31__block{flex:1}.f9694ed4faabfc82__items-column>*{min-height:0}._3896336788892095__items-row>*{min-width:0}");var c="bc09d0edcc10c304__item",u="c184ec8e81027f31__block";function d(e){const{className:t,display:n,isBlock:s=!1,style:a,...l}=(0,o.A)(e,"FlexItem"),d=(0,i.a)().flexItemDisplay,f={...a,"--wp-components-flex-item-display":n||d||"block"};return{...l,className:(0,r.A)(c,s&&u,t),style:f}}},8162(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(9179),o=n(8967),i=n(6139),s=n(6930),a=n(3236);var l=(0,r.KZ)(function(e,t){const{children:n,isColumn:r,...l}=(0,o.v)(e);return(0,a.jsx)(i.R.Provider,{value:{flexItemDisplay:r?"block":void 0},children:(0,a.jsx)(s.A,{...l,ref:t,children:n})})},"Flex")},8967(e,t,n){"use strict";n.d(t,{v:()=>y});var r=n(3022),o=n(6786),i=n(1541),s=n(2376),a=["40em","52em","64em"],l=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>a.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${a.length} breakpoints, got index ${t}`);
241const[n,r]=(0,s.useState)(t);return(0,s.useEffect)(()=>{const e=()=>{const e=a.filter(e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}},[n]),n};var c=n(359),u="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)f(e,n,r)}(document)),e.__wpStyleRuntime}function f(e,t,n){if(!e.head)return;const r=d();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${u}]`))if(n.getAttribute(u)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(u,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=d();n.styles.set(e,t);for(const r of n.documents.keys())f(r,e,t)})("1931a27616",".e518617e7c3a18e7__flex{align-items:var(--wp-components-flex-align);display:flex;flex-direction:var(--wp-components-flex-direction);flex-wrap:var(--wp-components-flex-wrap);gap:var(--wp-components-flex-gap);justify-content:var(--wp-components-flex-justify)}.e4a76957e0b12292__expanded-column{height:100%}.cc39999a5fb580d4__expanded-row{width:100%}.bc09d0edcc10c304__item{display:var(--wp-components-flex-item-display);max-height:100%;max-width:100%;min-height:0;min-width:0}.c184ec8e81027f31__block{flex:1}.f9694ed4faabfc82__items-column>*{min-height:0}._3896336788892095__items-row>*{min-width:0}");var p="e518617e7c3a18e7__flex",m="e4a76957e0b12292__expanded-column",g="cc39999a5fb580d4__expanded-row",h="f9694ed4faabfc82__items-column",b="_3896336788892095__items-row";function y(e){const{align:t,className:n,direction:s="row",expanded:a=!0,gap:u=2,justify:d="space-between",style:f,wrap:y=!1,...v}=(0,i.A)(function(e){const{isReversed:t,...n}=e;return void 0!==t?((0,o.A)("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),k=function(e,t={}){const n=l(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}(Array.isArray(s)?s:[s]),x="string"==typeof k&&!!k.includes("column"),w={...f,"--wp-components-flex-align":t??(x?"normal":"center"),"--wp-components-flex-direction":k,"--wp-components-flex-wrap":y?"wrap":"nowrap","--wp-components-flex-gap":(0,c.x)(u),"--wp-components-flex-justify":d};return{...v,className:(0,r.A)(p,x?h:b,a&&(x?m:g),n),style:w,isColumn:x}}},3832(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(9179),o=n(6930),i=n(1207),s=n(3236);var a=(0,r.KZ)(function(e,t){const n=(0,i.A)(e);return(0,s.jsx)(o.A,{...n,ref:t})},"HStack")},1207(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(1541),o=n(9179),i=n(2474),s=n(8967),a=n(7273),l={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},c={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};var u=n(2376);var d=n(3236);function f(e){const{alignment:t="edge",children:n,direction:f,spacing:p=2,...m}=(0,r.A)(e,"HStack"),g=function(e,t="row"){if(!(0,a.J5)(e))return{};const n="column"===t?c:l;return e in n?n[e]:{align:e}}(t,f),h=function(e){return"string"==typeof e?[e]:u.Children.toArray(e).filter(e=>(0,u.isValidElement)(e))}(n),b={children:h.map((e,t)=>{if((0,o.SZ)(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,d.jsx)(i.A,{isBlock:!0,...n.props},r)}return e}),direction:f,justify:"center",...g,...m,gap:p},{isColumn:y,...v}=(0,s.v)(b);return v}},169(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(2376),o=n(5334),i=n(3236);var s=function({icon:e,className:t,size:n=20,style:r={},...o}
241){const s=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),a={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,i.jsx)("span",{className:s,style:a,...o})};var a=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,i.jsx)(s,{icon:e,size:t,...n});if((0,r.isValidElement)(e)&&s===e.type)return(0,r.cloneElement)(e,{...n});if("function"==typeof e)return(0,r.createElement)(e,{size:t,...n});if((0,r.isValidElement)(e)){const{style:s,...a}=n,l=e.props.style||s?{...e.props.style,...s}:void 0,c=l?{style:l}:{};if("svg"===e.type||e.type===o.t4){const n={...e.props,width:t,height:t,...a,...c};return(0,i.jsx)(o.t4,{...n})}return(0,r.cloneElement)(e,{size:t,width:t,height:t,...a,...c})}return e}},687(e,t,n){"use strict";n.d(t,{Ay:()=>x});var r=n(3022),o=n(1740),i=n(2376),s=n(4512),a=n(6068),l=n(7995);var c=n(9321),u=e=>e,d={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},f=n(7322);function p(e=u,t=d,n){const[r,o]=(0,i.useReducer)((s=e,(e,t)=>{const n={...e};switch(t.type){case f.W3:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case f.wX:case f.r7:n.isDirty=!1;break;case f.Qf:n.isDragging=!0;break;case f.Ry:n.isDragging=!1;break;case f.PL:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case f.cJ:n.value=t.payload.value,n.isDirty=!1;break;case f.Ut:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case f.uY:n.error=t.payload.error}return n._event=t.payload.event,s(n,t)}),function(e=d){const{value:t}=e;return{...d,...e,initialValue:t}}(t));var s;const a=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},l=e=>t=>{o({type:e,payload:{event:t}})},c=e=>t=>{o({type:e,payload:t})},p=a(f.PL),m=a(f.Ut),g=a(f.cJ),h=c(f.Qf),b=c(f.j),y=c(f.Ry),v=l(f.wX),k=l(f.r7),x=l(f.bR),w=(0,i.useRef)(r),_=(0,i.useRef)({value:t.value,onChangeHandler:n});return(0,i.useLayoutEffect)(()=>{w.current=r,_.current={value:t.value,onChangeHandler:n}}),(0,i.useLayoutEffect)(()=>{void 0===w.current._event||r.value===_.current.value||r.isDirty||_.current.onChangeHandler(r.value??"",{event:w.current._event})},[r.value,r.isDirty]),(0,i.useLayoutEffect)(()=>{t.value===w.current.value||w.current.isDirty||o({type:f.W3,payload:{value:t.value??""}})},[t.value]),{change:p,commit:g,dispatch:o,drag:b,dragEnd:y,dragStart:h,invalidate:(e,t)=>o({type:f.uY,payload:{error:e,event:t}}),pressDown:k,pressEnter:x,pressUp:v,reset:m,state:r}}var m=n(3236),g=()=>{};var h=(0,i.forwardRef)(function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isPressEnterToChange:s=!1,onBlur:u=g,onChange:d=g,onDrag:f=g,onDragEnd:h=g,onDragStart:b=g,onKeyDown:y=g,onValidate:v=g,size:k="default",stateReducer:x=e=>e,value:w,type:_,...S},C){const{state:A,change:E,commit:I,drag:T,dragEnd:N,dragStart:j,invalidate:B,pressDown:L,pressEnter:O,pressUp:R,reset:M}=p(x,{isDragEnabled:o,value:w,isPressEnterToChange:s},d),{value:P,isDragging:D,isDirty:z}=A,F=(0,i.useRef)(!1),$=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,i.useEffect)(()=>{e?document.documentElement.style.cursor=n:document.documentElement.style.removeProperty("cursor")},[e,n]),n}(D,t),V=e=>{const t=e.currentTarget.value;try{v(t),I(t,e)}catch(t){B(t,e)}},H=(0,a.useDrag)(e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return h(e),void N(e);f(e),T(e),D||(b(e),j(e))}},{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),W=o?H():{};return(0,m.jsx)(c.pd,{...S,...W,className:"components-input-control__input","data-empty-value":P?void 0:"",disabled:e,dragCursor:$,isDragging:D,id:r,onBlur:e=>{u(e),!z&&e.target.validity.valid||(F.current=!0,V(e))},onChange:e=>{const t=e.target.value;E(t,e)},onKeyDown:(0,l.n)(e=>{const{key:t}=e;switch(y(e),t){case"ArrowUp":R(e);break;case"ArrowDown":L(e);break;case"Enter":O(e),s&&(e.preventDefault(),V(e));break;case"Escape":s&&z&&(e.preventDefault(),M(w,e))}}),ref:C,inputSize:k,value:P??"",type:_})}),b=n(359),y=n(5896),v=()=>{};var k=(0,i.forwardRef)(function(e,t){const{__next40pxDefaultSize:n,__next36pxDefaultSize:a,__unstableStateReducer:l=e=>e,__unstableInputWidth:c,className:u,disabled:d=!1,help:f,hideLabelFromVision:p=!1,id:g,isPressEnterToChange:x=!1,label:w,labelPosition:_="top",onChange:S=v,onValidate:C=v,onKeyDown:A=v,prefix:E,size:I="default",style:T,suffix:N,value:j,...B}=e,L=function(e){const t=(0,o.A)(k);return e||`inspector-input-control-${t}`}(g),O=(0,r.A)("components-input-control",u),R=function(e){const t=(0,i.useRef)(e.value),[n,r]=(0,i.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,i.useLayoutEffect)(()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})},[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r(e=>Object.assign(e,{value:t,isStale:!1})),e.onChange(t,n)}}}({value:j,onBlur:B.onBlur,onChange:S}),M=f?{"aria-describedby":`${L}__help`}:{};return(0,m.jsx)(y.Ay,{className:O,help:f,id:L,children:(0,m.jsx)(s.A,{__unstableInputWidth:c,disabled:d,gap:3,hideLabelFromVision:p,id:L,justify:"left",label:w,labelPosition:_,prefix:E,size:I,style:T,suffix:N,children:(0,m.jsx)(h,{...B,...M,className:"components-input-control__input",disabled:d,id:L,isPressEnterToChange:x,onKeyDown:A,onValidate:C,paddingInlineStart:E?(0,b.x)(1):void 0,paddingInlineEnd:N?(0,b.x)(1):void 0,ref:t,size:I,stateReducer:l,...R})})})}),x=k},4512(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(1740),o=n(2376),i=n(9321),s=n(3236);var a=(0,o.memo)(function({disabled:e=!1,isBorderless:t=!1}){return(0,s.jsx)(i.Hr,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})}),l=n(8787);function c({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,s.jsx)(l.A,{as:"label",htmlFor:n,children:e}):(0,s.jsx)(i.cR,{children:(0,s.jsx)(i.JU,{htmlFor:n,...r,children:e})}):null}var u=n(1541),d=n(8538);function f(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function p(e,t){const{__unstableInputWidth:n,children:l,className:m,disabled:g=!1,hideLabelFromVision:h=!1,labelPosition:b,id:y,isBorderless:v=!1,label:k,prefix:x,size:w="default",suffix:_,...S}=(0,u.A)(e,"InputBase"),C=function(e){const t=(0,r.A)(p);return e||`input-base-control-${t}`}
241(y),A=h||!k,E=(0,o.useMemo)(()=>({InputControlPrefixWrapper:{size:w},InputControlSuffixWrapper:{size:w}}),[w]);return(0,s.jsxs)(i.bL,{...S,...f(b),className:m,gap:2,ref:t,children:[(0,s.jsx)(c,{className:"components-input-control__label",hideLabelFromVision:h,labelPosition:b,htmlFor:C,children:k}),(0,s.jsxs)(i.mc,{__unstableInputWidth:n,className:"components-input-control__container",disabled:g,hideLabel:A,labelPosition:b,children:[(0,s.jsxs)(d.c7,{value:E,children:[x&&(0,s.jsx)(i.b3,{className:"components-input-control__prefix",children:x}),l,_&&(0,s.jsx)(i.sZ,{className:"components-input-control__suffix",children:_})]}),(0,s.jsx)(a,{disabled:g,isBorderless:v})]})]})}var m=(0,n(9179).KZ)(p,"InputBase")},8501(e,t,n){"use strict";n.d(t,{A:()=>l,i:()=>a});var r=n(9179),o=n(1541),i=n(9321),s=n(3236);var a=(0,r.KZ)(function(e,t){const n=(0,o.A)(e,"InputControlSuffixWrapper");return(0,s.jsx)(i.bC,{...n,ref:t})},"InputControlSuffixWrapper"),l=a},7322(e,t,n){"use strict";n.d(t,{PL:()=>r,Qf:()=>a,Ry:()=>s,Ut:()=>p,W3:()=>i,bR:()=>d,cJ:()=>o,j:()=>l,r7:()=>u,uY:()=>c,wX:()=>f});var r="CHANGE",o="COMMIT",i="CONTROL",s="DRAG_END",a="DRAG_START",l="DRAG",c="INVALIDATE",u="PRESS_DOWN",d="PRESS_ENTER",f="PRESS_UP",p="RESET"},9321(e,t,n){"use strict";n.d(t,{Hr:()=>y,mc:()=>_,pd:()=>N,JU:()=>B,cR:()=>L,b3:()=>p,bC:()=>R,bL:()=>v,sZ:()=>m,TA:()=>C});var r=n(5449),o=n(3423),i=n(8162),s=n(2474),a=n(6936),l=n(7266),c=n(1731),u=n(2868),d=(0,o.AH)("font-size:11px;font-weight:",u.A.fontWeightEmphasis,";line-height:1.4;text-transform:uppercase;",""),f=n(3236);var p=(0,r.A)("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),m=(0,r.A)("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),g=({disabled:e,isBorderless:t})=>t?"transparent":e?l.l.ui.borderDisabled:l.l.ui.border,h={name:"v60t78",styles:"@media ( forced-colors: active ){border-color:GrayText;}"},b=({disabled:e,isBorderless:t})=>{if(e&&!t)return h},y=(0,r.A)("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",g,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(0,c.h)({paddingLeft:2})," ",b,";}"),v=(0,r.A)(i.A,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",u.A.radiusSmall,";padding-top:0;"),k=({disabled:e})=>{if(e)return(0,o.AH)("color:",l.l.ui.textDisabled,";@media ( forced-colors: active ){color:GrayText;}","")},x={name:"1d3w5wq",styles:"width:100%"},w=({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":"edge"===t?(0,o.AH)({flex:`0 0 ${e}`},"",""):(0,o.AH)({width:e},"",""):x,_=(0,r.A)("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;background-color:",l.l.ui.background,";",k," ",w,";"),S=({disabled:e})=>e?(0,o.AH)("color:",l.l.ui.textDisabled,";@media ( forced-colors: active ){color:GrayText;}&:disabled::placeholder{color:",l.l.ui.textDisabled,";}",""):"",C=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px"},n=t[e]||t.default;return n?(0,o.AH)("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},A=({inputSize:e})=>{const t={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:u.A.controlPaddingX,paddingRight:u.A.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:u.A.controlPaddingXSmall,paddingRight:u.A.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:u.A.controlPaddingXSmall,paddingRight:u.A.controlPaddingXSmall}};return t[e]||t.default},E=e=>(0,o.AH)(A(e),"",""),I=({paddingInlineStart:e,paddingInlineEnd:t})=>(0,o.AH)({paddingInlineStart:e,paddingInlineEnd:t},"",""),T=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=(0,o.AH)("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=(0,o.AH)("&:active{cursor:",t,";}","")),(0,o.AH)(n," ",r,";","")},N=(0,r.A)("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",l.l.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",T," ",S," ",C," ",E," ",I," &::-webkit-input-placeholder{color:",l.l.ui.darkGrayPlaceholder,";}&::-moz-placeholder{color:",l.l.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",l.l.ui.darkGrayPlaceholder,";}&[type='date'],&[type='datetime-local'],&[type='month'],&[type='time'],&[type='week']{&::-webkit-datetime-edit{display:flex;align-items:center;height:100%;}}@supports ( -webkit-hyphens: none ) and ( not ( -moz-appearance: none ) ){&[type='date'][data-empty-value]:not( :focus ),&[type='time'][data-empty-value]:not( :focus ),&[type='datetime-local'][data-empty-value]:not( :focus ){color:transparent;&:disabled::-webkit-datetime-edit-text{color:transparent;}}}&[type='email'],&[type='url']{direction:ltr;}}"),j=(0,r.A)(a.A,{target:"em5sgkm2"})("&&&{",d,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;}"),B=e=>(0,f.jsx)(j,{...e,as:"label"}),L=(0,r.A)(s.A,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),O=({variant:e="default",size:t,isPrefix:n})=>{const{paddingLeft:r}=A({inputSize:t}),i=n?"paddingInlineStart":"paddingInlineEnd";return"default"===e?(0,o.AH)({[i]:r},"",""):(0,o.AH)({display:"flex",[i]:r-4},"","")},R=(0,r.A)("div",{target:"em5sgkm0"})(O,";")}
241,790(e,t,n){"use strict";n.d(t,{Ay:()=>f});var r=n(2376),o=n(3730),i=n(288),s=n(3236),a=()=>{},l=["menuitem","menuitemradio","menuitemcheckbox"];var c=(0,r.forwardRef)(function({children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:c=a,onKeyDown:u,cycle:d=!0,onlyBrowserTabstops:f,...p},m){const g=(0,r.useRef)(null);(0,r.useEffect)(()=>{const e=g.current;if(e)return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)};function r(r){u&&u(r);const o=n(r);if(void 0!==o&&t){r.stopImmediatePropagation();const e=r.target?.getAttribute("role");!!e&&l.includes(e)&&r.preventDefault()}if(!o)return;const s=r.target?.ownerDocument?.activeElement;if(!s)return;const a=function(e,t,n){const r=(n?i.XC.tabbable:i.XC.focusable).find(e),o=r.indexOf(t);return o>-1?{index:o,target:t,focusables:r}:null}(e,s,!!f);if(!a)return;const{index:p,focusables:m}=a,g=d?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(p,m.length,o):p+o;g>=0&&g<m.length&&(m[g].focus(),c(g,m[g]),"Tab"===r.code&&r.preventDefault())}},[u,n,t,d,c,f]);const h=(0,o.A)([g,m]);return(0,s.jsx)("div",{ref:h,...p,children:e})});c.displayName="NavigableContainer";var u=c;var d=(0,r.forwardRef)(function({role:e="menu",orientation:t="vertical",...n},r){return(0,s.jsx)(u,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})});d.displayName="NavigableMenu";var f=d},9749(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(3022),o=n(244),i=n(5334),s=n(2376),a=n(9042),l=n(169),c=n(3236),u=(0,c.jsx)(i.t4,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",children:(0,c.jsx)(i.wA,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})});var d=function(e){const{icon:t,children:n,label:i,instructions:d,className:f,notices:p,preview:m,isColumnLayout:g,withIllustration:h,...b}=e,[y,{width:v}]=(0,o.A)();let k;"number"==typeof v&&(k={"is-large":v>=480,"is-medium":v>=160&&v<480,"is-small":v<160});const x=(0,r.A)("components-placeholder",f,k,h?"has-illustration":null),w=(0,r.A)("components-placeholder__fieldset",{"is-column-layout":g});return(0,s.useEffect)(()=>{d&&(0,a.L)(d)},[d]),(0,c.jsxs)("div",{...b,className:x,children:[h?u:null,y,p,m&&(0,c.jsx)("div",{className:"components-placeholder__preview",children:m}),(0,c.jsxs)("div",{className:"components-placeholder__label",children:[(0,c.jsx)(l.A,{icon:t}),i]}),!!d&&(0,c.jsx)("div",{className:"components-placeholder__instructions",children:d}),(0,c.jsx)("div",{className:w,children:n})]})}},9562(e,t,n){"use strict";n.d(t,{Ay:()=>ee});var r=n(3022),o=n(4693),i=n(2376),s=n(5149),a="undefined"!=typeof document?i.useLayoutEffect:function(){};function l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!l(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function d(e){const t=i.useRef(e);return a(()=>{t.current=e}),t}const f=(e,t)=>{const n=(0,o.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},p=(e,t)=>{const n=(0,o.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{const n=(0,o.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},g=(e,t)=>{const n=(0,o.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,o.UE)({element:n.current,padding:r}).fn(t):{}:n?(0,o.UE)({element:n,padding:r}).fn(t):{};var i}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var b=n(6579),y=n(9546),v=n(9700),k=n(288),x=n(1886);var w=function(){return(0,x.A)(e=>{function t(t){const{key:n,shiftKey:r,target:o}=t;if("Tab"!==n)return;const i=r?"findPrevious":"findNext",s=k.XC.tabbable[i](o)||null;if(o.contains(s))return t.preventDefault(),void s?.focus();if(e.contains(s))return;const a=r?"append":"prepend",{ownerDocument:l}=e,c=l.createElement("div");c.tabIndex=-1,e[a](c),c.addEventListener("blur",()=>e.removeChild(c)),c.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])};var _=null;var S=function(e){const t=(0,i.useRef)(null),n=(0,i.useRef)(null),r=(0,i.useRef)(e);return(0,i.useEffect)(()=>{r.current=e},[e]),(0,i.useCallback)(e=>{if(e){if(t.current=e,n.current)return;const r=e.ownerDocument.activeElement instanceof window.HTMLIFrameElement?e.ownerDocument.activeElement.contentDocument:e.ownerDocument;n.current=r?.activeElement??null}else if(n.current){const e=t.current?.contains(t.current?.ownerDocument.activeElement??null);if(t.current?.isConnected&&!e)return void(_??=n.current);if(r.current)r.current();else{const e=n.current.isConnected?n.current:_;e?.focus()}_=null}},[])},C=["button","submit"];function A(e){const t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]);const n=(0,i.useRef)(!1),r=(0,i.useRef)(void 0),o=(0,i.useCallback)(()=>{clearTimeout(r.current)},[]);(0,i.useEffect)(()=>{e||o()},[e,o]);const s=(0,i.useCallback)(e=>{const{type:t,target:r}=e;["mouseup","touchend"].includes(t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return C.includes(e.type)}return!1}(r)&&(n.current=!0)},[]),a=(0,i.useCallback)(e=>{if(e.persist(),n.current)return;const o=e.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");o&&e.relatedTarget?.closest(o)||(r.current=setTimeout(()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()},0))},[]);return{onFocus:o,onMouseDown:s,onMouseUp:s,onTouchStart:s,onTouchEnd:s,onBlur:a}}var E=n(3730);var I=function(e){const t=(0,i.useRef)(void 0),{constrainTabbing:n=!1!==e.focusOnMount}=e;(0,i.useEffect)(()=>{t.current=e},Object.values(e));const r=w(),o=function(e="firstElement"){const t=(0,i.useRef)(e),n=e=>{e.focus({preventScroll:!0})};return(0,i.useEffect)(()=>{t.current=e},[e]),(0,x.A)(e=>{if(!1===t.current)return;if(e.contains(e.ownerDocument?.activeElement??null))return;if("firstElement"!==t.current&&"firstInputElement"!==t.current)return void n(e);const r=setTimeout(()=>{if("firstInputElement"===t.current){const t=e.querySelector('input:not([type="hidden"]):not([disabled]), select:not([disabled]), textarea:not([disabled])');if(t)return void n(t)}const r=k.XC.tabbable.find(e)[0];r&&n(r)},0);return()=>{clearTimeout(r)}},[])}(e.focusOnMount),s=S(),a=A(e=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):t.current?.onClose&&t.current.onClose()}),l=(0,i.useCallback)(e=>{t.current?.onKeyDown?.(e),"Escape"===e.key&&!e.defaultPrevented&&t.current?.onClose&&(e.preventDefault(),e.stopPropagation(),t.current.onClose())},[]);return[(0,E.A)([n?r:null,!1!==e.focusOnMount?s:null,!1!==e.focusOnMount?o:null]),{...a,onKeyDown:l,tabIndex:-1}]},T=n(7680),N=n(5334),j=n(3236),B=(0,j.jsx)(N.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,j.jsx)(N.wA,{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})}),L=n(6786),O=n(913),R=n(3192),M=0;function P(e){const t=document.scrollingElement||document.body;e&&(M=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=M)}var D=0;var z=function(){return(0,i.useEffect)(()=>(0===D&&P(!0),++D,()=>{1===D&&P(!1),--D}),[]),null},F=n(8178),$=n(3585);
241var V=n(1203),H=n(4749),W=n(505),U=n(1541),K=n(9179);var G=n(5787),q=(0,i.createContext)(void 0);q.displayName="__unstableSlotNameContext";var Z="Popover",Y=()=>(0,j.jsxs)(N.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[(0,j.jsx)(N.wA,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,j.jsx)(N.wA,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),X="components-popover__fallback-container",Q=(0,i.forwardRef)(({name:e=Z},t)=>(0,j.jsx)(H.DX,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})),J=Object.assign((0,K.KZ)((e,t)=>{const{animate:n=!0,headerTitle:k,constrainTabbing:x,onClose:w,children:_,className:S,noArrow:C=!0,position:A,placement:N="bottom-start",offset:M=0,focusOnMount:P="firstElement",anchor:D,expandOnMobile:H,onFocusOutside:K,__unstableSlotName:Q=Z,flip:J=!0,resize:ee=!0,shift:te=!1,inline:ne=!1,variant:re,style:oe,__unstableForcePosition:ie,anchorRef:se,anchorRect:ae,getAnchorRect:le,isAlternate:ce,onKeyDown:ue,...de}=(0,U.A)(e,"Popover");let fe=J,pe=ee;void 0!==ie&&((0,L.A)("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),fe=!ie,pe=!ie),void 0!==se&&(0,L.A)("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==ae&&(0,L.A)("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==le&&(0,L.A)("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const me=ce?"toolbar":re;void 0!==ce&&(0,L.A)("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const ge=(0,i.useRef)(null),[he,be]=(0,i.useState)(null),ye=(0,i.useCallback)(e=>{be(e)},[]),ve=(0,v.A)("medium","<"),ke=H&&ve,xe=!ke&&!C,we=A?(0,W.YK)(A):N,_e=[..."overlay"===N?[{name:"overlay",fn:({rects:e})=>e.reference},g({apply({rects:e,elements:t}){const{firstElementChild:n}=t.floating??{};n instanceof HTMLElement&&Object.assign(n.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],f(M),fe&&m(),pe&&g({padding:8,apply(e){const{firstElementChild:t}=Le.floating.current??{};t instanceof HTMLElement&&Object.assign(t.style,{maxHeight:`${Math.max(0,e.availableHeight)}px`,overflow:"auto"})}}),te&&p({crossAxis:!0,limiter:{fn:(0,o.ER)(Se).fn,options:[Se,Ce]},padding:1}),h({element:ge})];var Se,Ce;const Ae=(0,i.useContext)(q)||Q,Ee=function(e){const t=(0,i.useContext)($.A),n=(0,F.A)(t.slots,e);let r;return n&&"portal"===n.type&&(r=n.ref),{ref:r}}(Ae);let Ie;(w||K)&&(Ie=(e,t)=>{if("focus-outside"===e){const e=t?.target,n=Le.reference.current,r=Le.floating.current,o=n&&"contains"in n&&n.contains(e)||r?.contains(e),i=r?.ownerDocument;if(!(o||"relatedTarget"in t&&t.relatedTarget||i?.activeElement!==i?.body))return;const s="relatedTarget"in t?t.relatedTarget:null;if(s instanceof Element&&s.closest("[data-wp-compat-overlay-slot]"))return;if(r&&i?.activeElement instanceof Element&&r.contains(i.activeElement))return;K?K(t):w&&w()}else w&&w()});const[Te,Ne]=I({constrainTabbing:x,focusOnMount:P,onKeyDown:ue,__unstableOnClose:Ie,onClose:Ie}),{x:je,y:Be,refs:Le,strategy:Oe,update:Re,placement:Me,middlewareData:{arrow:Pe}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:f,elements:{reference:p,floating:m}={},transform:g=!0,whileElementsMounted:h,open:b}=e,[y,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[k,x]=i.useState(r);l(k,r)||x(r);const[w,_]=i.useState(null),[S,C]=i.useState(null),A=i.useCallback(e=>{e!==N.current&&(N.current=e,_(e))},[]),E=i.useCallback(e=>{e!==j.current&&(j.current=e,C(e))},[]),I=p||w,T=m||S,N=i.useRef(null),j=i.useRef(null),B=i.useRef(y),L=null!=h,O=d(h),R=d(f),M=d(b),P=i.useCallback(()=>{if(!N.current||!j.current)return;const e={placement:t,strategy:n,middleware:k};R.current&&(e.platform=R.current),(0,o.rD)(N.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==M.current};D.current&&!l(B.current,t)&&(B.current=t,s.flushSync(()=>{v(t)}))})},[k,t,n,R,M]);a(()=>{!1===b&&B.current.isPositioned&&(B.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[b]);const D=i.useRef(!1);a(()=>(D.current=!0,()=>{D.current=!1}),[]),a(()=>
241{if(I&&(N.current=I),T&&(j.current=T),I&&T){if(O.current)return O.current(I,T,P);P()}},[I,T,P,O,L]);const z=i.useMemo(()=>({reference:N,floating:j,setReference:A,setFloating:E}),[A,E]),F=i.useMemo(()=>({reference:I,floating:T}),[I,T]),$=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!F.floating)return e;const t=u(F.floating,y.x),r=u(F.floating,y.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...c(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,F.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:P,refs:z,elements:F,floatingStyles:$}),[y,P,z,F,$])}({placement:"overlay"===we?void 0:we,middleware:_e,whileElementsMounted:(e,t,n)=>(0,o.ll)(e,t,n,{layoutShift:!1,animationFrame:!0})}),De=(0,i.useCallback)(e=>{ge.current=e,Re()},[Re]),ze=se?.top,Fe=se?.bottom,$e=se?.startContainer,Ve=se?.current;(0,i.useLayoutEffect)(()=>{const e=(0,W._G)({anchor:D,anchorRef:se,anchorRect:ae,getAnchorRect:le,fallbackReferenceElement:he});Le.setReference(e)},[D,se,ze,Fe,$e,Ve,ae,le,he,Le]);const He=(0,E.A)([Le.setFloating,Te,t]),We=ke?void 0:{position:Oe,top:0,left:0,x:(0,W.WS)(je),y:(0,W.WS)(Be)},Ue=(0,T.A)(),Ke=n&&!ke&&!Ue,[Ge,qe]=(0,i.useState)(!1),{style:Ze,...Ye}=(0,i.useMemo)(()=>(0,W.Vn)(Me),[Me]),Xe=Ke?{style:{...oe,...Ze,...We},onAnimationComplete:()=>qe(!0),...Ye}:{animate:!1,style:{...oe,...We}},Qe=(!Ke||Ge)&&null!==je&&null!==Be;let Je=(0,j.jsxs)(b.PY.div,{className:(0,r.A)(S,{"is-expanded":ke,"is-positioned":Qe,[`is-${"toolbar"===me?"alternate":me}`]:me}),...Xe,...de,ref:He,...Ne,tabIndex:-1,children:[ke&&(0,j.jsx)(z,{}),ke&&(0,j.jsxs)("div",{className:"components-popover__header",children:[(0,j.jsx)("span",{className:"components-popover__header-title",children:k}),(0,j.jsx)(R.A,{className:"components-popover__close",size:"small",icon:B,onClick:w,label:(0,O.__)("Close")})]}),(0,j.jsx)("div",{className:"components-popover__content",children:_}),xe&&(0,j.jsx)("div",{ref:De,className:["components-popover__arrow",`is-${Me.split("-")[0]}`].join(" "),style:{left:void 0!==Pe?.x&&Number.isFinite(Pe.x)?`${Pe.x}px`:"",top:void 0!==Pe?.y&&Number.isFinite(Pe.y)?`${Pe.y}px`:""},children:(0,j.jsx)(Y,{})})]});const et=Ee.ref&&!ne,tt=se||ae||D;return et?Je=(0,j.jsx)(V.A,{name:Ae,children:Je}):ne||(Je=(0,y.d5)((0,j.jsx)(G.N,{document,children:Je}),(()=>{let e=document.body.querySelector("."+X);return e||(e=document.createElement("div"),e.className=X,document.body.append(e)),e})())),tt?Je:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{ref:ye}),Je]})},"Popover"),{Slot:Object.assign(Q,{displayName:"Popover.Slot"}),__unstableSlotNameProvider:Object.assign(q.Provider,{displayName:"Popover.__unstableSlotNameProvider"})}),ee=J},505(e,t,n){"use strict";n.d(t,{WS:()=>d,_G:()=>u,Vn:()=>c,YK:()=>a});var r=n(6579),o=Object.freeze({SLIDE_DISTANCE:4,SLIDE_DURATION:200,SLIDE_EASING:{function:"cubic-bezier",args:[.25,0,0,1]},FADE_DURATION:100,FADE_EASING:{function:"linear"}}),i=e=>e.args?.length?`${e.function}(${e.args.join(",")})`:e.function,s=(Object.freeze({SLIDE_DISTANCE:`${o.SLIDE_DISTANCE}px`,SLIDE_DURATION:`${o.SLIDE_DURATION}ms`,SLIDE_EASING:i(o.SLIDE_EASING),FADE_DURATION:`${o.FADE_DURATION}ms`,FADE_EASING:i(o.FADE_EASING)}),{bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center"
241:"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"}),a=e=>s[e]??"bottom",l={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},c=e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:l[e],initial:{opacity:0,[t]:o.SLIDE_DISTANCE*n+"px"},animate:{opacity:1,[t]:0},transition:{opacity:{duration:o.FADE_DURATION/1e3,ease:o.FADE_EASING.function},[t]:{duration:o.SLIDE_DURATION/1e3,ease:(0,r.AK)(...o.SLIDE_EASING.args)}}}};var u=({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{let i=null;return e?i=e:!function(e){return!!e?.top}(t)?!function(e){return!!e?.current}(t)?t?i=t:n?i={getBoundingClientRect:()=>n}:r?i={getBoundingClientRect(){const e=r(o);return new window.DOMRect(e.x??e.left,e.y??e.top,e.width??e.right-e.left,e.height??e.bottom-e.top)}}:o&&(i=o.parentElement):i=t.current:i={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}},i??null},d=e=>null===e||Number.isNaN(e)?void 0:Math.round(e)},2990(e,t,n){"use strict";n.d(t,{Ay:()=>m});var r=n(3022),o=n(621),i=n(2376),s=n(3730),a=n(1886);function l(){return(0,a.A)(e=>{const{ownerDocument:t}=e;if(!t)return;const{defaultView:n}=t;if(n)return n.addEventListener("blur",r),()=>{n.removeEventListener("blur",r)};function r(){t&&t.activeElement===e&&e.focus()}},[])}var c=n(3236),u=function(){const{MutationObserver:e}=window;function t(){if(!document.body)return;const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(){const{body:n}=document;if(!n)return;function r(e){e.style&&["width","height","minHeight","maxHeight"].forEach(function(t){/^\d*\.?\d+(?:vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(e.style[t])&&(e.style[t]="")})}new e(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),Array.prototype.forEach.call(document.querySelectorAll("[style]"),r),Array.prototype.forEach.call(document.styleSheets,function(e){let t;try{t=e.cssRules||e.rules}catch{return}Array.prototype.forEach.call(t,r)}),n.style.position="absolute",n.style.width="100%",n.setAttribute("data-resizable-iframe-connected",""),t()}e&&window.parent&&(window.addEventListener("load",t,!0),window.addEventListener("resize",t,!0),document.body?n():document.addEventListener("DOMContentLoaded",n))};function d({html:e,title:t,type:n,styles:r,scripts:i,lang:s}){const a=(0,c.jsxs)("html",{lang:s,className:n,children:[(0,c.jsxs)("head",{children:[(0,c.jsx)("title",{children:t}),(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map((e,t)=>(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:e}},t)),(0,c.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${u.toString()})();`}})]}),(0,c.jsxs)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n,children:[(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),i.map(e=>(0,c.jsx)("script",{src:e},e))]})]});return"<!DOCTYPE html>"+(0,o.Ay)(a)}function f({html:e="",title:t="",type:n,styles:o=[],scripts:a=[],onFocus:u,tabIndex:f,allowPopups:p=!1,allowForms:m=!1}){const g=(0,i.useRef)(null),[h,b]=(0,i.useState)(0),[y,v]=(0,i.useState)(0),k=(0,r.A)("allow-scripts","allow-presentation",{"allow-popups":p,"allow-forms":m}),x=(0,i.useMemo)(()=>d({html:e,title:t,type:n,styles:o,scripts:a,lang:document.documentElement.lang}),[e,t,n,o,a]);return(0,i.useEffect)(()=>{const e=g.current;if(!e)return;function t(t){if(!e||e.contentWindow!==t.source)return;let n=t.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch{}"resize"===n.action&&(b(n.width),v(n.height))}let n=null;function r(){const r=e?.ownerDocument?.defaultView??null;r!==n&&(n?.removeEventListener("message",t),n=r,n?.addEventListener("message",t))}return r(),e.addEventListener("load",r),()=>{e.removeEventListener("load",r),n?.removeEventListener("message",t)}},[]),(0,c.jsx)("iframe",{ref:(0,s.A)([g,l()]),title:t,tabIndex:f,className:"components-sandbox",sandbox:k,srcDoc:x,onFocus:u,width:Math.ceil(h),height:Math.ceil(y)})}function p({html:e="",title:t="",type:n,styles:o=[],scripts:a=[],onFocus:u,tabIndex:f,allowPopups:p=!1,allowForms:m=!1}){const g=(0,i.useRef)(null),[h,b]=(0,i.useState)(0),[y,v]=(0,i.useState)(0),k=(0,r.A)("allow-scripts","allow-same-origin","allow-presentation",{"allow-popups":p,"allow-forms":m});function x(r=!1){if(!function(){try{return!!g.current?.contentDocument?.body}catch{return!1}}())return;const{contentDocument:i,ownerDocument:s}=g.current;(r||null===i?.body.getAttribute("data-resizable-iframe-connected"))&&(i.open(),i.write(d({html:e,title:t,type:n,styles:o,scripts:a,lang:s.documentElement.lang})),i.close())}return(0,i.useEffect)(()=>{function e(){x(!1)}function t(e){const t=g.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch{}"resize"===n.action&&(b(n.width),v(n.height))}x();const n=g.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.removeEventListener("message",t)}},[]),(0,i.useEffect)(()=>{x()},[t,o,a]),(0,i.useEffect)(()=>{x(!0)},[e,n]),(0,c.jsx)("iframe",{ref:(0,s.A)([g,l()]),title:t,tabIndex:f,className:"components-sandbox",sandbox:k,onFocus:u,width:Math.ceil(h),height:Math.ceil(y)})}var m=function({allowSameOrigin:e=!1,...t}){return e?(0,c.jsx)(p,{...t}):(0,c.jsx)(f,{...t})}},6069(e,t,n){"use strict";n.d(t,{A:()=>O});var r=n(3022),o=n(1740),i=n(2376),s=n(5896),a=n(5449),l=n(3423),c=n(7266),u=n(2868),d=n(1731),f=n(359),p=n(8501),m=n(9321),g=n(4512);var h=({disabled:e})=>e?(0,l.AH)("color:",c.l.ui.textDisabled,";cursor:default;",""):"",b={name:"1lv1yo7",styles:"display:inline-flex"},y=({variant:e})=>"minimal"===e?b:"",v=(0,a.A)(g.A,{target:"e1mv6sxx3"})("color:",c.l.theme.foreground,";cursor:pointer;",h," ",y,";"),k=({multiple:e,selectSize:t="default"})=>
241{if(e)return;const n={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0}},r=n[t]||n.default;return(0,l.AH)(r,"","")},x=({multiple:e,selectSize:t="default"})=>{const n={default:u.A.controlPaddingX,small:u.A.controlPaddingXSmall,compact:u.A.controlPaddingXSmall},r=n[t]||n.default;return(0,d.h)({paddingLeft:r,paddingRight:r+18,...e?{paddingTop:r,paddingBottom:r}:{}})},w=({multiple:e})=>({overflow:e?"auto":"hidden"}),_={name:"n1jncc",styles:"field-sizing:content"},S=({variant:e})=>"minimal"===e?_:"",C=(0,a.A)("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;line-height:1.3;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",m.TA,";",k,";",x,";",w," ",S,";}"),A=(0,a.A)("div",{target:"e1mv6sxx1"})("margin-inline-end:",(0,f.x)(-1),";line-height:0;path{fill:currentColor;}"),E=(0,a.A)(p.A,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",(0,d.h)({right:0}),";"),I=n(3109),T=n(5673),N=n(3236),j=()=>(0,N.jsx)(E,{children:(0,N.jsx)(A,{children:(0,N.jsx)(I.A,{icon:T.A,size:18})})});function B({options:e}){return e.map(({id:e,label:t,value:n,...r},o)=>{const i=e||`${t}-${n}-${o}`;return(0,N.jsx)("option",{value:n,...r,children:t},i)})}var L=(0,i.forwardRef)(function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:i,__next36pxDefaultSize:a,className:l,disabled:c=!1,help:u,hideLabelFromVision:d,id:f,label:p,multiple:m=!1,onChange:g,options:h=[],size:b="default",value:y,labelPosition:k="top",children:x,prefix:w,suffix:_,variant:S="default",...A}=e,E=function(e){const t=(0,o.A)(L);return e||`inspector-select-control-${t}`}(f),I=u?`${E}__help`:void 0;if(!h?.length&&!x)return null;const T=(0,r.A)("components-select-control",l);return(0,N.jsx)(s.Ay,{help:u,id:E,className:T,children:(0,N.jsx)(v,{disabled:c,hideLabelFromVision:d,id:E,isBorderless:"minimal"===S,label:p,size:b,suffix:_||!m&&(0,N.jsx)(j,{}),prefix:w,labelPosition:k,__unstableInputWidth:"minimal"===S?"auto":void 0,variant:S,children:(0,N.jsx)(C,{...A,"aria-describedby":I,className:"components-select-control__input",disabled:c,id:E,multiple:m,onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter(({selected:e})=>e).map(({value:e})=>e);return void e.onChange?.(n,{event:t})}e.onChange?.(t.target.value,{event:t})},ref:t,selectSize:b,value:y,variant:S,children:x||(0,N.jsx)(B,{options:h})})})})});L.displayName="SelectControl";var O=L},3770(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(3236);var o=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let o,i;return"string"==typeof t&&(o=t),null!==t&&"object"==typeof t&&(o=t.display,i=t.ariaLabel),(0,r.jsx)("span",{className:n,"aria-label":i,children:o})}},3585(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(6032),o=n(2376),i=n(9261),s={slots:(0,r.u)(),fills:(0,r.u)(),registerSlot:()=>{!0===globalThis.SCRIPT_DEBUG&&(0,i.A)("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},unregisterSlot:()=>{},updateSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},updateFill:()=>{},isDefault:!0},a=(0,o.createContext)(s);a.displayName="SlotFillContext";var l=a},1203(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8178),o=n(2376),i=n(9546),s=n(3585),a=n(5787),l=n(3236);function c({name:e,children:t}){const n=(0,o.useContext)(s.A),c=(0,o.useRef)({}),u=(0,o.useRef)(t);(0,o.useLayoutEffect)(()=>{u.current=t},[t]),(0,o.useLayoutEffect)(()=>{const t=c.current;return n.registerFill(e,{instance:t,children:u.current}),()=>n.unregisterFill(e,t)},[n,e]),(0,o.useLayoutEffect)(()=>{n.updateFill(e,{instance:c.current,children:t})},[n,e,t]);const d=(0,r.A)(n.slots,e);if(!d)return null;if("children"===d.type)return null;const f=d.ref.current;if(!f)return null;const p="function"==typeof t?t(d.fillProps??{}):t;return(0,i.d5)((0,l.jsx)(a.A,{document:f.ownerDocument,children:p}),f)}},4749(e,t,n){"use strict";n.d(t,{Kq:()=>y,DX:()=>b,QJ:()=>v});var r=n(2376),o=n(1203),i=n(8178),s=n(3585),a=n(3236);function l(e){return"function"==typeof e}var c=function(e){const{name:t,children:n,fillProps:o={}}=e,c=(0,r.useContext)(s.A),u=(0,r.useRef)({});(0,r.useLayoutEffect)(()=>{const e=u.current;return c.registerSlot(t,{type:"children",instance:e}),()=>c.unregisterSlot(t,e)},[c,t]);let d=(0,i.A)(c.fills,t)??[];const f=(0,i.A)(c.slots,t);f&&f.instance===u.current||(d=[]);const p=d.map(e=>function(e){return r.Children.map(e,(e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,r.cloneElement)(e,{key:n})})}(l(e.children)?e.children(o):e.children)).filter(e=>!(e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e))(e));return(0,a.jsx)(a.Fragment,{children:l(n)?n(p):p})},u=n(3730),d=n(6930);var f=(0,r.forwardRef)(function(e,t){const{name:n,fillProps:o={},as:i,children:l,...c}=e,f=(0,r.useContext)(s.A),p=(0,r.useRef)({}),m=(0,r.useRef)(null),g=(0,r.useRef)(o);return(0,r.useLayoutEffect)(()=>{g.current=o},[o]),(0,r.useLayoutEffect)(()=>{const e=p.current;return f.registerSlot(n,{type:"portal",instance:e,ref:m,fillProps:g.current}),()=>f.unregisterSlot(n,e)},[f,n]),(0,r.useLayoutEffect)(()=>{f.updateSlot(n,{type:"portal",instance:p.current,ref:m,fillProps:g.current})}),(0,a.jsx)(d.A,{as:i,ref:(0,u.A)([t,m]),...c})}),p=n(6032),m=n(1218);function g(){const e=(0,p.u)(),t=(0,p.u)();return{slots:e,fills:t,registerSlot:function(t,n){e.set(t,n)},unregisterSlot:function(t,n){const r=e.get(t);r&&r.instance===n&&e.delete(t)},updateSlot:function(t,n){if("portal"!==n.type)return;const r=e.get(t);r&&"portal"===r.type&&r.instance===n.instance&&((0,m.hw)(r.fillProps,n.fillProps)||e.set(t,n))},registerFill:function(e,n){t.set(e,[...t.get(e)||[],n])},unregisterFill:function(e,n){const r=t.get(e);r&&t.set(e,r.filter(e=>e.instance!==n))},updateFill:function(e,n){const r=t.get(e);if(!r)return;const o=r.find(e=>e.instance===n.instance);o&&o.children!==n.children&&t.set(e,r.map(e=>e.instance===n.instance?n:e))}}}var h=function({children:e}){const[t]=(0,r.useState)(g);return(0,a.jsx)(s.A.Provider,{value:t,children:e})},b=(0,r.forwardRef)((e,t)=>{const{bubblesVirtually:n,...r}=e;return n?(0,a.jsx)(f,{...r,ref:t}):(0,a.jsx)(c,{...r})});function y({children:e,passthrough:t=!1}){return!(0,r.useContext)(s.A).isDefault&&t?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsx)(h,{children:e})}function v(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,a.jsx)(o.A,{name:e,...t});n.displayName=`${t}Fill`;const i=(0,r.forwardRef)((t,n)=>(0,a.jsx)(b,{name:e,ref:n,...t}));return i.displayName=`${t}Slot`,i.__unstableName=e,{name:e,Fill:n,Slot:i}}b.displayName="Slot",y.displayName="SlotFillProvider"},358(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(9179),o=n(6930),i=n(3022),s=n(1541),a=n(359),l="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)u(e,n,r)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())u(r,e,t)})("f61ad86e00","._91de5852bdb7a4b8__spacer{--wp-components-spacer-margin:initial;--wp-components-spacer-margin-block-start:initial;--wp-components-spacer-margin-block-end:initial;--wp-components-spacer-margin-inline-start:initial;--wp-components-spacer-margin-inline-end:initial;--wp-components-spacer-padding:initial;--wp-components-spacer-padding-block-start:initial;--wp-components-spacer-padding-block-end:initial;--wp-components-spacer-padding-inline-start:initial;--wp-components-spacer-padding-inline-end:initial;margin:var(--wp-components-spacer-margin);margin-block-end:var(--wp-components-spacer-margin-block-end,var(--wp-components-spacer-margin));margin-block-start:var(--wp-components-spacer-margin-block-start,var(--wp-components-spacer-margin));margin-inline-end:var(--wp-components-spacer-margin-inline-end,var(--wp-components-spacer-margin));margin-inline-start:var(--wp-components-spacer-margin-inline-start,var(--wp-components-spacer-margin));padding:var(--wp-components-spacer-padding);padding-block-end:var(--wp-components-spacer-padding-block-end,var(--wp-components-spacer-padding));padding-block-start:var(--wp-components-spacer-padding-block-start,var(--wp-components-spacer-padding));padding-inline-end:var(--wp-components-spacer-padding-inline-end,var(--wp-components-spacer-padding));padding-inline-start:var(--wp-components-spacer-padding-inline-start,var(--wp-components-spacer-padding))}");var d="_91de5852bdb7a4b8__spacer";function f(e){return null!=e}var p=n(3236);var m=(0,r.KZ)(function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:l,marginTop:c,marginX:u,marginY:p,padding:m,paddingBottom:g,paddingLeft:h,paddingRight:b,paddingTop:y,paddingX:v,paddingY:k,style:x,...w}=(0,s.A)(e,"Spacer"),_={};f(n)&&(_["--wp-components-spacer-margin"]=(0,a.x)(n)),f(p)&&(_["--wp-components-spacer-margin-block-start"]=(0,a.x)(p),_["--wp-components-spacer-margin-block-end"]=(0,a.x)(p)),f(u)&&(_["--wp-components-spacer-margin-inline-start"]=(0,a.x)(u),_["--wp-components-spacer-margin-inline-end"]=(0,a.x)(u)),f(c)&&(_["--wp-components-spacer-margin-block-start"]=(0,a.x)(c)),f(r)&&(_["--wp-components-spacer-margin-block-end"]=(0,a.x)(r)),f(o)&&(_["--wp-components-spacer-margin-inline-start"]=(0,a.x)(o)),f(l)&&(_["--wp-components-spacer-margin-inline-end"]=(0,a.x)(l)),f(m)&&(_["--wp-components-spacer-padding"]=(0,a.x)(m)),f(k)&&(_["--wp-components-spacer-padding-block-start"]=(0,a.x)(k),_["--wp-components-spacer-padding-block-end"]=(0,a.x)(k)),f(v)&&(_["--wp-components-spacer-padding-inline-start"]=(0,a.x)(v),_["--wp-components-spacer-padding-inline-end"]=(0,a.x)(v)),f(y)&&(_["--wp-components-spacer-padding-block-start"]=(0,a.x)(y)),f(g)&&(_["--wp-components-spacer-padding-block-end"]=(0,a.x)(g)),f(h)&&(_["--wp-components-spacer-padding-inline-start"]=(0,a.x)(h)),f(b)&&(_["--wp-components-spacer-padding-inline-end"]=(0,a.x)(b));const S={..._,...x};return{...w,className:(0,i.A)(d,t),style:S}}(e);return(0,p.jsx)(o.A,{...n,ref:t})},"Spacer")}
241,9217(e,t,n){"use strict";n.d(t,{Ay:()=>p});var r=n(3022),o=n(2376),i=n(3236),s="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=a();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("a4ac9b380a","._5223dcef142ddf2a__spinner{background-color:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:inline-block;height:16px;margin:5px 11px 0;opacity:1;overflow:visible;position:relative;width:16px}._00e30fe487ccb5cc__track,.b33a3d348ed141fd__indicator{fill:transparent;stroke-width:1.5px}._00e30fe487ccb5cc__track{stroke:var(--wp-components-color-gray-300,var(--wpds-color-stroke-surface-neutral,#dbdbdb))}.b33a3d348ed141fd__indicator{stroke:currentColor;stroke-linecap:round;animation:e5c099d0667bd442__spin 1.4s linear infinite both;transform-origin:50% 50%}@keyframes e5c099d0667bd442__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}");var c="_5223dcef142ddf2a__spinner",u="_00e30fe487ccb5cc__track",d="b33a3d348ed141fd__indicator";var f=(0,o.forwardRef)(function({className:e,...t},n){return(0,i.jsxs)("svg",{className:(0,r.A)("components-spinner",c,e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[(0,i.jsx)("circle",{className:u,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,i.jsx)("path",{className:d,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});f.displayName="Spinner";var p=f},5787(e,t,n){"use strict";n.d(t,{A:()=>g,N:()=>m});var r=n(6960),o=n(9479),i=n(3578),s=n(2376),a=n(3236),l="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&d(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}function d(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)u(e,n,r);return()=>{const n=t.documents.get(e);void 0!==n&&(n<=1?t.documents.delete(e):t.documents.set(e,n-1))}}var f=new Set,p=new WeakMap;function m(e){const{children:t,document:n}=e;if((0,s.useLayoutEffect)(()=>{if(n)return d(n)},[n]),!n)return null;const l=(e=>{if(p.has(e))return p.get(e);let t=i.A().replace(/[0-9]/g,"");for(;f.has(t);)t=i.A().replace(/[0-9]/g,"");f.add(t);
241const n=(0,o.A)({container:e,key:t});return p.set(e,n),n})(n.head);return(0,a.jsx)(r.C,{value:l,children:t})}var g=m},3533(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(1740),o=n(2376),i=n(5896),s=n(3236);var a=(0,o.forwardRef)(function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:__,label:o,hideLabelFromVision:l,value:c,help:u,id:d,className:f,onChange:p,type:m="text",...g}=e,h=(0,r.A)(a,"inspector-text-control",d);return(0,s.jsx)(i.Ay,{label:o,hideLabelFromVision:l,id:h,help:u,className:f,children:(0,s.jsx)("input",{className:"components-text-control__input",type:m,id:h,value:c,onChange:e=>p(e.target.value),"aria-describedby":u?h+"__help":void 0,ref:t,...g})})});a.displayName="TextControl";var l=a},6936(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(9179),o=n(6930),i=n(6873),s=n(3236);var a=(0,r.KZ)(function(e,t){const n=(0,i.A)(e);return(0,s.jsx)(o.A,{as:"span",...n,ref:t})},"Text")},6873(e,t,n){"use strict";n.d(t,{A:()=>N});var r={};n.r(r),n.d(r,{Text:()=>b,block:()=>y,destructive:()=>k,highlighterText:()=>w,muted:()=>x,positive:()=>v,upperCase:()=>_});var o,i=n(3423),s=n(2376),a=n(1541),l=n(9179),c=n(7357),u=n(1636),d=n(3270),f=n(3295);(0,d.X$)([f.A]);var p=(0,u.A)(function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&(0,d.Mj)(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!o){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),o=e}return o}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""});function m(e){const t=function(e){const t=p(e);return(0,d.Mj)(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}var g=n(7266),h=n(2868);var b=(0,i.AH)("color:",g.l.theme.foreground,";line-height:",h.A.fontLineHeightBase,";margin:0;text-wrap:pretty;",""),y={name:"4zleql",styles:"display:block"},v=(0,i.AH)("color:",g.l.alert.green,";",""),k=(0,i.AH)("color:",g.l.alert.red,";",""),x=(0,i.AH)("color:",g.l.theme.gray[700],";",""),w=(0,i.AH)("mark{background:",g.l.alert.yellow,";border-radius:",h.A.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),_={name:"50zrmy",styles:"text-transform:uppercase"},S=n(1626),C=(0,u.A)(e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t});var A=n(5350),E=n(359);var I=n(4558);var T={name:"50zrmy",styles:"text-transform:uppercase"};function N(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:u,color:d,ellipsizeMode:f,isDestructive:p=!1,display:v,highlightEscape:_=!1,highlightCaseSensitive:N=!1,highlightWords:j,highlightSanitize:B,isBlock:L=!1,letterSpacing:O,lineHeight:R,optimizeReadabilityFor:M,size:P,truncate:D=!1,upperCase:z=!1,variant:F,weight:$=h.A.fontWeight,...V}=(0,a.A)(e,"Text");let H=o;const W=Array.isArray(j),U="caption"===P;if(W){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");H=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:a,highlightClassName:l="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;
241const g=i,h=(0,S.findAll)({autoEscape:r,caseSensitive:o,findChunks:a,sanitize:d,searchWords:f,textToHighlight:g}),b=u;let y,v=-1,k="";return h.map((r,i)=>{const a=g.substr(r.start,r.end-r.start);if(r.highlight){let r;v++,r="object"==typeof l?o?l[a]:(l=C(l))[a.toLowerCase()]:l;const u=v===+t;k=`${r} ${u?e:""}`,y=!0===u&&null!==n?Object.assign({},c,n):c;const d={children:a,className:k,key:i,style:y};return"string"!=typeof b&&(d.highlightIndex=v),(0,s.createElement)(b,d)}return(0,s.createElement)("span",{children:a,className:p,key:i,style:m})})}({autoEscape:_,children:o,caseSensitive:N,searchWords:j,sanitize:B})}const K=(0,I.l)();let G;!0===D&&(G="auto"),!1===D&&(G="none");const q={...V,className:(0,s.useMemo)(()=>{const e=function(e,t){if(t)return t;if(!e)return;let n=`calc(${h.A.controlHeight} + ${(0,E.x)(2)})`;switch(e){case"large":n=`calc(${h.A.controlHeightLarge} + ${(0,E.x)(2)})`;break;case"small":n=`calc(${h.A.controlHeightSmall} + ${(0,E.x)(2)})`;break;case"xSmall":n=`calc(${h.A.controlHeightXSmall} + ${(0,E.x)(2)})`}return n}(t,R),o=(0,i.AH)({color:d,display:v,fontSize:(0,A.ny)(P),fontWeight:$,lineHeight:e,letterSpacing:O,textAlign:n},"",""),s=T;let a=null;if(M){a="dark"===m(M)?(0,i.AH)({color:g.l.gray[900]},"",""):(0,i.AH)({color:g.l.white},"","")}return K((0,i.AH)(b,o,a,p&&k,!!W&&w,L&&y,U&&x,F&&r[F],z&&s,"",""),u)},[t,n,u,d,K,v,L,U,p,W,O,R,M,P,z,F,$]),children:o,ellipsizeMode:f||G},Z=(0,c.A)(q);return!D&&Array.isArray(o)&&(H=s.Children.map(o,e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return(0,l.SZ)(e,["Link"])?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e})),{...Z,children:D?Z.children:H}}},8438(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(3022),o=n(1740),i=n(2376),s=n(5896),a=n(3236),l="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)u(e,n,r)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())u(r,e,t)})("dffbabc16f",".aa08a6e706634925__textarea{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;resize:vertical;width:100%}@media (min-width:600px){.aa08a6e706634925__textarea{font-size:13px;line-height:normal}}.aa08a6e706634925__textarea:hover:not(:disabled,[aria-disabled=true],[type=checkbox]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.aa08a6e706634925__textarea:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.aa08a6e706634925__textarea::placeholder{color:rgba(30,30,30,.62)}.aa08a6e706634925__textarea{line-height:20px;min-height:38px;padding:9px 11px}.aa08a6e706634925__textarea:disabled{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.aa08a6e706634925__textarea::-webkit-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.aa08a6e706634925__textarea::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.aa08a6e706634925__textarea:-ms-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.is-dark-theme .aa08a6e706634925__textarea::-webkit-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.is-dark-theme .aa08a6e706634925__textarea::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.is-dark-theme .aa08a6e706634925__textarea:-ms-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.aa08a6e706634925__textarea:disabled::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}");var d="aa08a6e706634925__textarea";var f=(0,i.forwardRef)(function(e,t){const{__nextHasNoMarginBottom:n,label:i,hideLabelFromVision:l,value:c,help:u,onChange:p,rows:m=4,className:g,...h}=e,b=`inspector-textarea-control-${(0,o.A)(f)}`,y=(0,r.A)("components-textarea-control",g);return(0,a.jsx)(s.Ay,{label:i,hideLabelFromVision:l,id:b,help:u,className:y,children:(0,a.jsx)("textarea",{className:(0,r.A)("components-textarea-control__input",d),id:b,rows:m,onChange:e=>p(e.target.value),"aria-describedby":u?b+"__help":void 0,value:c,ref:t,...h})})});f.displayName="TextareaControl";var p=f}
241,8036(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(3022),o=n(2376),i=n(1740),s=n(4103),a=n(3236),l=()=>{};var c=(0,o.forwardRef)(function(e,t){const{className:n,checked:o,id:i,disabled:s,onChange:c=l,onClick:u,...d}=e,f=(0,r.A)("components-form-toggle",n,{"is-checked":o,"is-disabled":s});return(0,a.jsxs)("span",{className:f,children:[(0,a.jsx)("input",{className:"components-form-toggle__input",id:i,type:"checkbox",checked:o,onChange:c,disabled:s,onClick:e=>{e.currentTarget.focus(),u?.(e)},...d,ref:t}),(0,a.jsx)("span",{className:"components-form-toggle__track"}),(0,a.jsx)("span",{className:"components-form-toggle__thumb"})]})});c.displayName="FormToggle";var u=c,d=n(5896),f=n(3832);var p=(0,o.forwardRef)(function({label:e,checked:t,help:n,className:o,onChange:l,disabled:c,__nextHasNoMarginBottom:m,...g},h){const b=`inspector-toggle-control-${(0,i.A)(p)}`;let y,v;return n&&("function"==typeof n?void 0!==t&&(v=n(t)):v=n,v&&(y=b+"__help")),(0,a.jsx)(d.Ay,{id:b,help:v&&(0,a.jsx)("span",{className:"components-toggle-control__help",children:v}),className:(0,r.A)("components-toggle-control",o),children:(0,a.jsxs)(f.A,{justify:"flex-start",spacing:2,children:[(0,a.jsx)(u,{id:b,checked:t,onChange:function(e){l(e.target.checked)},"aria-describedby":y,disabled:c,ref:h,...g}),(0,a.jsx)(s.A,{as:"label",htmlFor:b,className:(0,r.A)("components-toggle-control__label",{"is-disabled":c}),children:e})]})})});p.displayName="ToggleControl";var m=p},453(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(3022),o=n(2376),i=n(3192),s=n(3802),a=n(8817),l=n(3236),c=({children:e,className:t})=>(0,l.jsx)("div",{className:t,children:e});var u=(0,o.forwardRef)(function(e,t){const{children:n,className:u,containerClassName:d,extraProps:f,isActive:p,title:m,...g}=function({isDisabled:e,...t}){return{disabled:e,...t}}(e);return(0,o.useContext)(a.A)?(0,l.jsx)(s.A,{className:(0,r.A)("components-toolbar-button",u),...f,...g,ref:t,children:e=>(0,l.jsx)(i.A,{size:"compact",label:m,isPressed:p,...e,children:n})}):(0,l.jsx)(c,{className:d,children:(0,l.jsx)(i.A,{ref:t,icon:g.icon,size:"compact",label:m,shortcut:g.shortcut,"data-subscript":g.subscript,onClick:e=>{e.stopPropagation(),g.onClick&&g.onClick(e)},className:(0,r.A)("components-toolbar__control",u),isPressed:p,accessibleWhenDisabled:!0,"data-toolbar-item":!0,...f,...g,children:n})})});u.displayName="ToolbarButton";var d=u},8817(e,t,n){"use strict";n.d(t,{A:()=>o});var r=(0,n(2376).createContext)(void 0);r.displayName="ToolbarContext";var o=r},3040(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(3022),o=n(2376),i=n(453),s=n(3236),a=({className:e,children:t,...n})=>(0,s.jsx)("div",{className:e,...n,children:t}),l=n(3991),c=n(8817),u=n(3802);var d=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,s.jsx)(l.A,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,o.useContext)(c.A)?(0,s.jsx)(u.A,{...t,children:r}):r(t)};var f=function({controls:e=[],children:t,className:n,isCollapsed:l,title:u,...f}){const p=(0,o.useContext)(c.A);if(!(e&&e.length||t))return null;const m=(0,r.A)(p?"components-toolbar-group":"components-toolbar",n);let g;var h;return h=e,g=Array.isArray(h)&&Array.isArray(h[0])?e:[e],l?(0,s.jsx)(d,{label:u,controls:g,className:m,children:t,...f}):(0,s.jsxs)(a,{className:m,...f,children:[g?.flatMap((e,t)=>e.map((e,n)=>(0,s.jsx)(i.A,{containerClassName:t>0&&0===n?"has-left-divider":void 0,...e},[t,n].join()))),t]})}},3802(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(1023),o=n(9537),i=n(3356),s=n(2786);const a=(0,s.ab)(function({store:e,...t}){const n=(0,i.wU)();return e=e||n,t=(0,o.k)({store:e,...t})}),l=(0,s.ph)((0,s.Rf)(function(e){const t=a((0,r.Y)(e));return(0,s.n)("button",t)}));var c=n(2376),u=n(9261),d=n(8817),f=n(3236);var p=(0,c.forwardRef)(function({children:e,as:t,...n},r){const o=(0,c.useContext)(d.A),i="function"==typeof e;if(!i&&!t)return!0===globalThis.SCRIPT_DEBUG&&(0,u.A)("`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component. See https://developer.wordpress.org/block-editor/components/toolbar-item/"),null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,f.jsx)(t,{...s,children:e}):i?e(s):null;const a=i?e:t&&(0,f.jsx)(t,{children:e});return(0,f.jsx)(l,{accessibleWhenDisabled:!0,...s,store:o,render:a})});p.displayName="ToolbarItem";var m=p},5850(e,t,n){"use strict";n.d(t,{A:()=>C});var r=n(3022),o=n(2376),i=n(6786),s=n(3040),a=n(865),l=n(2615),c=n(5263),u=n(1252);function d(e={}){const t=e.store?.getState();return(0,c.zf)({...e,orientation:(0,u.Jh)(e.orientation,t?.orientation,"horizontal"),focusLoop:(0,u.Jh)(e.focusLoop,t?.focusLoop,!0)})}function f(e={}){const[t,n]=(0,l.Pj)(d,e);return function(e,t,n){return(0,a.YO)(e,t,n)}(t,n,e)}var p=n(4786),m=n(3356),g=n(2786),h=n(3236);const b=(0,g.ab)(function({store:e,orientation:t,virtualFocus:n,focusLoop:r,rtl:o,...i}){const s=(0,m.P$)(),a=f({store:e=e||s,orientation:t,virtualFocus:n,focusLoop:r,rtl:o}),c=(0,l.O$)(a,["orientation"],e=>"both"===e.orientation?void 0:e.orientation);return i=(0,g.w7)(i,e=>(0,h.jsx)(m._N,{value:a,children:e}),[a]),i={role:"toolbar","aria-orientation":c,...i},i=(0,p.T)({store:a,...i})}),y=(0,g.Rf)(function(e){const t=b(e);return(0,g.n)("div",t)});var v=n(913),k=n(8817);var x=(0,o.forwardRef)(function({label:e,...t},n){const r=f({focusLoop:!0,rtl:(0,v.V8)()});return(0,h.jsx)(k.A.Provider,{value:r,children:(0,h.jsx)(y,{ref:n,"aria-label":e,store:r,...t})})});x.displayName="ToolbarContainer";var w=x,_=n(8538);var S=(0,o.forwardRef)(function({className:e,label:t,variant:n,...a},l){const c=void 0!==n,u=(0,o.useMemo)(()=>c?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"},Menu:{variant:"toolbar"}},[c]);if(!t){(0,i.A)("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=a;return(0,h.jsx)(s.A,{isCollapsed:!1,...n,className:e})}const d=(0,r.A)("components-accessible-toolbar",e,n&&`is-${n}`);return(0,h.jsx)(_.c7,{value:u,children:(0,h.jsx)(w,{className:d,label:t,ref:l,...a})})});S.displayName="Toolbar";var C=S}
241,1665(e,t,n){"use strict";n.d(t,{Ay:()=>Pt});var r=n(2786),o=n(2615),i=n(8992),s=n(1252);function a(e={}){const t=e.store||e.disclosure?(0,i.od)(e.store,(0,i.cJ)(e.disclosure,["contentElement","disclosureElement"])):void 0;(0,i.UE)(e,t);const n=t?.getState(),r=(0,s.Jh)(e.open,n?.open,e.defaultOpen,!1),o=(0,s.Jh)(e.animated,n?.animated,!1),a={open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:(0,s.Jh)(n?.contentElement,null),disclosureElement:(0,s.Jh)(n?.disclosureElement,null)},l=t?(0,i.y$)(a,t):(0,i.y$)(a);return(0,i.mj)(l,()=>(0,i.OH)(l,["animated","animating"],e=>{e.animated||l.setState("animating",!1)})),(0,i.mj)(l,()=>(0,i.B1)(l,["open"],()=>{l.getState().animated&&l.setState("animating",!0)})),(0,i.mj)(l,()=>(0,i.OH)(l,["open","animating"],e=>{l.setState("mounted",e.open||e.animating)})),{...l,disclosure:e.disclosure,setOpen:e=>l.setState("open",e),show:()=>l.setState("open",!0),hide:()=>l.setState("open",!1),toggle:()=>l.setState("open",e=>!e),stopAnimation:()=>l.setState("animating",!1),setContentElement:e=>l.setState("contentElement",e),setDisclosureElement:e=>l.setState("disclosureElement",e)}}function l(e,t,n){return(0,r.w5)(t,[n.store,n.disclosure,t]),(0,o.Tz)(e,n,"open","setOpen"),(0,o.Tz)(e,n,"mounted","setMounted"),(0,o.Tz)(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function c(e={}){return a(e)}function u(e,t,n){return l(e,t,n)}function d(e={}){const[t,n]=(0,o.Pj)(c,e);return u(t,n,e)}function f(e,t,n){return(0,r.w5)(t,[n.popover,t]),(0,o.Tz)(e,n,"placement"),u(e,t,n)}function p(e,t,n){return(0,o.Tz)(e,n,"timeout"),(0,o.Tz)(e,n,"showTimeout"),(0,o.Tz)(e,n,"hideTimeout"),f(e,t,n)}function m(e={}){const t=e.store?.getState(),n=function({popover:e,...t}={}){const n=(0,i.od)(t.store,(0,i.cJ)(e,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement","unstable_placing"]));(0,i.UE)(t,n);const r=n?.getState(),o=c({...t,store:n}),a=(0,s.Jh)(t.placement,r?.placement,"bottom"),l={...o.getState(),placement:a,currentPlacement:a,anchorElement:(0,s.Jh)(r?.anchorElement,null),popoverElement:(0,s.Jh)(r?.popoverElement,null),arrowElement:(0,s.Jh)(r?.arrowElement,null),rendered:Symbol("rendered"),unstable_placing:!1},u=(0,i.y$)(l,o,n);let d=l.anchorElement===l.disclosureElement?l.anchorElement:null;return(0,i.mj)(u,()=>(0,i.OH)(u,["anchorElement","disclosureElement"],e=>{e.anchorElement&&e.anchorElement!==d?d=null:(d=e.disclosureElement,u.setState("anchorElement",d))})),{...o,...u,setAnchorElement:e=>u.setState("anchorElement",e),setPopoverElement:e=>u.setState("popoverElement",e),setArrowElement:e=>u.setState("arrowElement",e),render:()=>u.setState("rendered",Symbol("rendered"))}}({...e,placement:(0,s.Jh)(e.placement,t?.placement,"bottom")}),r=(0,s.Jh)(e.timeout,t?.timeout,500),o={...n.getState(),timeout:r,showTimeout:(0,s.Jh)(e.showTimeout,t?.showTimeout),hideTimeout:(0,s.Jh)(e.hideTimeout,t?.hideTimeout),autoFocusOnShow:(0,s.Jh)(t?.autoFocusOnShow,!1)},a=(0,i.y$)(o,n,e.store);return{...n,...a,setAutoFocusOnShow:e=>a.setState("autoFocusOnShow",e)}}function g(e={}){const t=e.store?.getState(),n=m({...e,placement:(0,s.Jh)(e.placement,t?.placement,"top"),hideTimeout:(0,s.Jh)(e.hideTimeout,t?.hideTimeout,0)}),r={...n.getState(),type:(0,s.Jh)(e.type,t?.type,"description"),skipTimeout:(0,s.Jh)(e.skipTimeout,t?.skipTimeout,300)},o=(0,i.y$)(r,n,e.store);return{...n,...o}}function h(e={}){const[t,n]=(0,o.Pj)(g,e);return function(e,t,n){return(0,o.Tz)(e,n,"type"),(0,o.Tz)(e,n,"skipTimeout"),p(e,t,n)}(t,n,e)}(0,r.ab)(function(e){return e});const b=(0,r.Rf)(function(e){return(0,r.n)("div",e)});Object.assign(b,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce((e,t)=>(e[t]=(0,r.Rf)(function(e){return(0,r.n)(t,e)}),e),{}));var y=n(8106),v=n(2376);const k=(0,r.ab)(function({store:e,showOnHover:t=!0,unstable_showOnHoverWhenDisabled:n=!0,setAnchorElement:o=!1,...i}){const a=(0,s.$f)(i),l=!1!==i.focusable,c=(0,v.useRef)(null),u=(0,v.useRef)(0),d=(0,r._q)(e=>!(!a||l)||(0,y.o)(e));(0,v.useEffect)(()=>()=>window.clearTimeout(u.current),[]),(0,v.useEffect)(()=>(0,s.dg)("mouseleave",e=>{const t=c.current;t&&e.target===t&&(window.clearTimeout(u.current),u.current=0)},!0),[]);const f=i.onMouseMove,p=(0,r.O4)(t),m=(0,r.O4)(n),g=(0,r.P$)(),h=(0,r._q)(t=>{if(f?.(t),t.defaultPrevented)return;if(u.current)return;if(!g())return;const n=t.currentTarget;if(d(n))return;if((a||(0,s.lp)(n))&&!m(t))return;if(!p(t))return;o&&e.setAnchorElement(n),e.setDisclosureElement(n);const{showTimeout:r,timeout:i}=e.getState(),l=()=>{u.current=0,g()&&(d(n)||(o&&e.setAnchorElement(n),e.show(),queueMicrotask(()=>{e.setDisclosureElement(n)})))},c=r??i;0===c?l():u.current=window.setTimeout(l,c)}),b=i.onClick,k=(0,r._q)(e=>{b?.(e),window.clearTimeout(u.current),u.current=0}),x=(0,v.useCallback)(t=>{if(c.current=t,!o)return;const{anchorElement:n}=e.getState();n?.isConnected||e.setAnchorElement(t)},[e,o]);return i={...i,ref:(0,r.SV)(x,i.ref),onMouseMove:h,onClick:k},i=(0,y.n)(i)}),x=(0,r.B0)(),w=(x.useContext,x.useScopedContext,x.useProviderContext),_=x.ContextProvider,S=x.ScopedContextProvider,C=(0,r.B0)([_],[S]),A=(C.useContext,C.use
241ScopedContext,C.useProviderContext),E=C.ContextProvider,I=C.ScopedContextProvider,T=(0,v.createContext)(void 0),N=(0,v.createContext)(void 0),j=(0,r.B0)([E],[I]),B=(j.useContext,j.useScopedContext,j.useProviderContext),L=j.ContextProvider,O=j.ScopedContextProvider,R=(0,r.B0)([L],[O]),M=(R.useContext,R.useScopedContext,R.useProviderContext),P=R.ContextProvider,D=R.ScopedContextProvider,z=(0,r.ab)(function({store:e,showOnHover:t=!0,...n}){const r=M();return e=e||r,(0,s.V1)(e,!1),k({store:e,showOnHover:t,setAnchorElement:!0,...n})}),F=((0,r.Rf)(function(e){const t=z(e);return(0,r.n)("a",t)}),(0,r.B0)([P],[D])),$=(F.useContext,F.useScopedContext,F.useProviderContext),V=(F.ContextProvider,F.ScopedContextProvider),H=(0,i.y$)({activeStore:null}),W=new WeakSet;const U=(0,r.ab)(function({store:e,showOnHover:t=!0,...n}){const a=$();e=e||a,(0,s.V1)(e,!1);const l=(0,v.useRef)(!1);(0,v.useEffect)(()=>(0,i.OH)(e,["mounted"],e=>{e.mounted||(l.current=!1)}),[e]),(0,v.useEffect)(()=>{if(!e)return;const t=function(e){return()=>{const{activeStore:t}=H.getState();t===e&&H.setState("activeStore",null)}}(e);return(0,s.cy)(t,(0,i.OH)(e,["mounted"],n=>{if(!e)return;if(n.mounted){const{activeStore:t}=H.getState();if(t!==e){if(W.has(e))return;!function(e){e&&(W.add(e),e.hide(),queueMicrotask(()=>W.delete(e)))}(t)}return H.setState("activeStore",e)}const r=setTimeout(t,e.getState().skipTimeout);return()=>clearTimeout(r)}))},[e]);const c=n.onMouseEnter,u=(0,r._q)(e=>{c?.(e),l.current=!0}),d=n.onFocusVisible,f=(0,r._q)(t=>{d?.(t),t.defaultPrevented||(e?.setAnchorElement(t.currentTarget),e?.show())}),p=n.onBlur,m=(0,r._q)(t=>{if(p?.(t),t.defaultPrevented)return;const{activeStore:n}=H.getState();l.current=!1,n===e&&H.setState("activeStore",null)}),g=(0,o.O$)(e,["type","contentElement"],e=>"label"===e.type?e.contentElement:null);(0,r.Cy)(g,"id");const h=g?.id;return n={"aria-labelledby":null==n["aria-label"]?h:void 0,...n,onMouseEnter:u,onFocusVisible:f,onBlur:m},n=z({store:e,showOnHover(n){if(!l.current)return!1;if((0,s.zO)(t,n))return!1;const{activeStore:r}=H.getState();return!r||(e?.show(),!1)},...n})}),K=(0,r.Rf)(function(e){const t=U(e);return(0,r.n)("div",t)});var G=n(3236),q=n(5149);function Z(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Y(e){const t=e?.trim()||"0s",n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t)*n;return Number.isNaN(r)?0:r}function X(e,t,n){const r=e.split(","),o=t.split(","),i=n.split(",");let s=0;for(const[e,t]of r.entries()){if("none"===t.trim())continue;const n=Y(o[e%o.length]),r=Y(i[e%i.length]);s=Math.max(s,n+r)}return s}function Q(e){const{transitionProperty:t,transitionDuration:n,transitionDelay:r,animationName:o,animationDuration:i,animationDelay:s}=getComputedStyle(e);return Math.max(X(t,r,n),X(o,s,i))}function J(e,t,n){return!(n||!1===t||e&&!t)}const ee=(0,r.ab)(function({store:e,alwaysVisible:t,unstable_otherElementRef:n,...i}){const a=w();e=e||a,(0,s.V1)(e,!1);const l=(0,v.useRef)(null),c=(0,r.Bi)(i.id),[u,d]=(0,v.useState)(null),{open:f,mounted:p,animated:m,contentElement:g}=(0,o.PX)(e,{open:"open",mounted:"mounted",animated:"animated",contentElement:"contentElement"}),h=(0,o.O$)(e.disclosure,"contentElement"),b=(0,v.useRef)(!1);(0,r.UQ)(()=>{l.current&&e?.setContentElement(l.current)},[e]),(0,r.UQ)(()=>{let t;return e?.setState("animated",e=>(t=e,!0)),()=>{void 0!==t&&e?.setState("animated",t)}},[e]),(0,r.UQ)(()=>{if(m){if(g?.isConnected)return(0,s.ny)(()=>{d(f?"enter":p?"leave":null)});d(null)}else f?b.current&&(b.current=!1,d("enter")):(b.current=!0,d(null))},[m,g,f,p]),(0,r.UQ)(()=>{if(!e)return;if(!m)return;if(!u)return;if(!g)return;const t=()=>e?.setState("animating",!1),r=()=>(0,q.flushSync)(t);if("leave"===u&&f)return;if("enter"===u&&!f)return;if("number"==typeof m)return Z(m,r);const o=[g];h&&o.push(h);const i=n?.current;i&&o.push(i);const s=Math.max(...o.map(Q));return s?Z(Math.max(s-1e3/60,0),r):("enter"===u&&e.setState("animated",!1),void t())},[e,m,g,h,n,f,u]),i=(0,r.w7)(i,t=>(0,G.jsx)(I,{value:e,children:t}),[e]);const y=J(p,i.hidden,t),k=i.style,x=(0,v.useMemo)(()=>y?{...k,display:"none"}:k,[y,k]);return i={"data-open":f||void 0,"data-enter":"enter"===u||void 0,"data-leave":"leave"===u||void 0,hidden:y,...i,id:c,ref:(0,r.SV)(c?e.setContentElement:null,l,i.ref),style:x},(0,s.HR)(i)}),te=(0,r.Rf)(function(e){const t=ee(e);return(0,r.n)("div",t)});(0,r.Rf)(function({unmountOnHide:e,...t}){const n=w(),r=t.store||n;return!1===(0,o.O$)(r,["mounted"],t=>!e||t?.mounted)?null:(0,G.jsx)(te,{...t})});var ne=n(8292);const re=(0,r.ab)(function({autoFocusOnShow:e=!0,...t}){return t=(0,r.w7)(t,t=>(0,G.jsx)(ne.g.Provider,{value:e,children:t}),[e])}),oe=((0,r.Rf)(function(e){const t=re(e);return(0,r.n)("div",t)}),(0,v.createContext)(0));function ie({level:e,children:t}){const n=(0,v.useContext)(oe),r=Math.max(Math.min(e||n+1,6),1);return(0,G.jsx)(oe.Provider,{value:r,children:t})}function se(e){return{borderWidth:0,clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px",...e}}const ae=(0,r.ab)(function(e){return e={...e,style:se(e.style)}
241}),le=((0,r.Rf)(function(e){const t=ae(e);return(0,r.n)("span",t)}),(0,r.ab)(function(e){return e={"data-focus-trap":"",tabIndex:0,"aria-hidden":!0,...e,style:{position:"fixed",top:0,left:0,...e.style}},e=ae(e)})),ce=(0,r.Rf)(function(e){const t=le(e);return(0,r.n)("span",t)}),ue=(0,v.createContext)(null);function de(e){const t=(0,s.YE)(e),{fullscreenElement:n}=t,r=(0,s.zk)(e).HTMLElement;return r&&n instanceof r?n:t.body}function fe(e){queueMicrotask(()=>{e?.focus()})}function pe(e,t){return{ref:e,node:t,cleanup:(0,r.cZ)(e,t)}}function me(e){"function"==typeof e.cleanup?e.cleanup():(0,r.cZ)(e.ref,null)}const ge=(0,r.ab)(function({preserveTabOrder:e,preserveTabOrderAnchor:t,portalElement:n,portalRef:o,portal:i=!0,...a}){const l=(0,v.useRef)(null),c=(0,r.SV)(l,a.ref),u=(0,v.useContext)(ue),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(null),g=(0,v.useRef)(null),h=(0,v.useRef)(null),b=(0,v.useRef)(null),y=(0,v.useRef)(null),k=(0,r.hX)(o),x=(0,v.useRef)(null);return(0,r.UQ)(()=>{const e=l.current;if(!e||!i)return void f(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:(0,s.YE)(e).createElement("div")}(e,n);if(!t)return void f(null);const r=t.isConnected;return r||(u||de(e)).appendChild(t),t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}()),f(t),x.current=pe(k.current,t),()=>{const e=x.current;e&&(x.current=null,me(e)),r||t.remove()}},[i,n,u,k]),(0,r.UQ)(()=>{const e=x.current;e&&e.ref!==o&&(me(e),x.current=pe(o,e.node))},[o]),(0,v.useEffect)(()=>{if(!d)return;if(u)return;if(n)return;const e=(0,s.YE)(d),t=()=>{const e=de(d);d.parentElement!==e&&e.appendChild(d)};return d.isConnected&&t(),e.addEventListener("fullscreenchange",t),()=>{e.removeEventListener("fullscreenchange",t)}},[d,u,n]),(0,r.UQ)(()=>{if(!i)return;if(!e)return;if(!t)return;const n=(0,s.YE)(t).createElement("span");return n.style.position="fixed",t.insertAdjacentElement("afterend",n),m(n),()=>{n.remove(),m(null)}},[i,e,t]),(0,v.useEffect)(()=>{if(!d)return;if(!e)return;let t=0;const n=e=>{if(!(0,s.aG)(e))return;const n="focusin"===e.type;if(cancelAnimationFrame(t),n)return(0,s.QZ)(d);t=requestAnimationFrame(()=>{(0,s.gw)(d,!0)})};return d.addEventListener("focusin",n,!0),d.addEventListener("focusout",n,!0),()=>{cancelAnimationFrame(t),d.removeEventListener("focusin",n,!0),d.removeEventListener("focusout",n,!0)}},[d,e]),a=(0,r.w7)(a,t=>{if(t=(0,G.jsx)(ue.Provider,{value:d||u,children:t}),!i)return t;if(!d)return(0,G.jsx)("span",{ref:c,id:a.id,style:{position:"fixed"},hidden:!0});t=(0,G.jsxs)(G.Fragment,{children:[e&&(0,G.jsx)(ce,{ref:h,"data-focus-trap":a.id,className:"__focus-trap-inner-before",onFocus:e=>{(0,s.aG)(e,d)?fe((0,s.vF)()):fe(g.current)}}),t,e&&(0,G.jsx)(ce,{ref:b,"data-focus-trap":a.id,className:"__focus-trap-inner-after",onFocus:e=>{(0,s.aG)(e,d)?fe((0,s.XJ)()):fe(y.current)}})]}),t=(0,q.createPortal)(t,d);let n=(0,G.jsxs)(G.Fragment,{children:[e&&(0,G.jsx)(ce,{ref:g,"data-focus-trap":a.id,className:"__focus-trap-outer-before",onFocus:e=>{e.relatedTarget!==y.current&&(0,s.aG)(e,d)?fe(h.current):fe((0,s.XJ)())}}),e&&(0,G.jsx)("span",{"aria-owns":d.id,style:{position:"fixed"}}),e&&(0,G.jsx)(ce,{ref:y,"data-focus-trap":a.id,className:"__focus-trap-outer-after",onFocus:e=>{if((0,s.aG)(e,d))fe(b.current);else{const e=(0,s.vF)();if(e===h.current)return void requestAnimationFrame(()=>(0,s.vF)()?.focus());fe(e)}}})]});return p&&e&&(n=(0,q.createPortal)(n,p)),(0,G.jsxs)(G.Fragment,{children:[n,t]})},[d,u,i,a.id,e,p]),a={...a,ref:c}});(0,r.Rf)(function(e){const t=ge(e);return(0,r.n)("div",t)});function he(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some(e=>n===e))))}const be=new WeakMap;function ye(e,t,n){let r=be.get(e);r||(r=new Map,be.set(e,r));const o=r.get(t)??[],i={cleanup:n(),disposed:!1};return o.length||r.set(t,o),o.push(i),()=>{o.includes(i)&&(i.disposed=!0,function(e,t,n){for(;n.length;){const r=n[n.length-1];if(!r)return void e.delete(t);if(!r.disposed)return;n.pop(),r.cleanup()}e.delete(t)}(r,t,o))}}function ve(e,t,n){return ye(e,t,()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}})}function ke(e,t,n){return ye(e,t,()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}})}function xe(e,t){if(!e)return()=>{};return ye(e,"style",()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}})}function we(e,t,n){if(!e)return()=>{};return ye(e,t,()=>{const r=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{r?e.style.setProperty(t,r,o):e.style.removeProperty(t)}})}const _e=new WeakMap;function Se(e="",t="outside"){return`__ariakit-dialog-${t}${e?`-${e}`:""}`}function Ce(e,t=""){return(0,s.cy)(ke(e,Se("","ancestor"),!0),ke(e,Se(t,"ancestor"),!0))}function Ae(e,t){const n=_e.get(t);if(!n)return!1;for(;;){if(n.has(e))return!0;
241if(!e.parentElement)return!1;e=e.parentElement}}function Ee(e,t){if(e[Se(t,"ancestor")])return!0;const n=Se(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Ie({cleanups:e,element:t,id:n,ids:r}){he(t,...r)||e.push(function(e,t=""){return(0,s.cy)(ke(e,Se(),!0),ke(e,Se(t),!0))}(t,n))}function Te({cleanups:e,ancestor:t,element:n,id:r}){n.hasAttribute("data-dialog")&&n.id!==r||e.push(Ce(t,r))}function Ne(e){for(let t=e.length-1;t>=0;t-=1)e[t]?.()}const je=["SCRIPT","STYLE"];function Be(e){return`__ariakit-dialog-snapshot-${e}`}function Le(e,t,n){return!je.includes(t.tagName)&&(!!function(e,t){const n=(0,s.YE)(t),r=Be(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some(e=>e&&(0,s.gR)(t,e)))}function Oe(e,t,n,r){for(let o of t){if(!o?.isConnected)continue;const i=t.some(e=>!!e&&(e!==o&&e.contains(o))),a=(0,s.YE)(o),l=o;for(;o.parentElement&&o!==a.body;){if(r?.(o.parentElement,l),!i)for(const r of o.parentElement.children)Le(e,r,t)&&n(r,l);o=o.parentElement}}}function Re({store:e,backdrop:t,backdropRef:n,alwaysVisible:i,hidden:s}){const c=(0,v.useRef)(null),u=function(e={}){const[t,n]=(0,o.Pj)(a,e);return l(t,n,e)}({disclosure:e}),d=(0,o.O$)(e,"contentElement");(0,r.UQ)(()=>{const e=c.current,t=d;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)},[d]),(0,r.UQ)(()=>{const e=d?.id;if(!e)return;const t=c.current;return t?Ce(t,e):void 0},[d]);const f=ee({ref:(0,r.SV)(c,n),store:u,role:"presentation","data-backdrop":d?.id||"",alwaysVisible:i,...null!=s&&{hidden:s},style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if((0,v.isValidElement)(t))return(0,G.jsx)(b,{...f,render:t});const p="boolean"!=typeof t?t:"div";return(0,G.jsx)(b,{...f,render:(0,G.jsx)(p,{})})}function Me(e,...t){if(!e)return!1;const n=e.getAttribute("data-dialog-hidden-dismiss");return null!=n&&(""===n||(!t.length||t.some(e=>n===e)))}function Pe(){return"inert"in HTMLElement.prototype}function De(e,t){if(!("style"in e))return s.lQ;if(Pe())return ke(e,"inert",!0);const n=(0,s.a9)(e,!0).map(e=>{if(t?.some(t=>t&&(0,s.gR)(t,e)))return s.lQ;const n=ye(e,"focus",()=>(e.focus=s.lQ,()=>{delete e.focus}));return(0,s.cy)(ve(e,"tabindex","-1"),n)});return(0,s.cy)(...n,function(e){return ve(e,"aria-hidden","true")}(e),xe(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function ze(e,t){const n=[],r=t.map(e=>e?.id);Oe(e,t,o=>{Ie({cleanups:n,element:o,id:e,ids:r}),function({cleanups:e,element:t,elements:n,ids:r}){he(t,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some(e=>n===e))}(t,...r)||Me(t,...r)||e.push(De(t,n))}({cleanups:n,element:o,elements:t,ids:r})},(r,o)=>{Te({cleanups:n,ancestor:r,element:o,id:e}),function(e,t,n){t.hasAttribute("role")&&(n.some(e=>e&&(0,s.gR)(e,t))||e.push(ve(t,"role","none")))}(n,r,t)});return()=>{Ne(n)}}function Fe(e){const t=[e];for(;;){let n;try{n=(0,s.zk)(e).frameElement}catch{return t}if(!(0,s.vq)(n))return t;
241t.push(n),e=n}}function $e(e,t){const n=e.composedPath().filter(s.vq);!n.length&&(0,s.vq)(e.target)&&n.push(e.target);const r=n[0];if(r)for(const e of Fe(r).slice(1))n.includes(e)||n.push(e);const o=t?.getRootNode();return{elements:n,rootTarget:o?n.find(e=>e.getRootNode()===o)||e.target:n[0]||e.target}}function Ve(e){const t=Fe(e).at(-1);return(0,s.zk)(t??e)}function He(e){return e.isConnected}function We(e,t,n){return!!(0,s.gR)(t,e)||(!!function(e,t){if(!e)return!1;if((0,s.gR)(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const r=(0,s.YE)(t).getElementById(n);if(r)return(0,s.gR)(e,r)}return!1}(n,e)||(!!e.hasAttribute("data-focus-trap")||(!!Me(e,t.id)||Ae(e,t))))}function Ue(e,t,n){return e.elements.some(e=>We(e,t,n))}function Ke({store:e,type:t,listener:n,capture:o,open:i,contentElement:a,focusedRef:l}){const c=(0,r._q)(n);(0,v.useEffect)(()=>{if(!i)return;const n=a?Ve(a):void 0;return(0,s.dg)(t,t=>{const{contentElement:n,disclosureElement:r}=e.getState();if(!n)return;const o=$e(t,n),i=o.elements[0],a=o.rootTarget;if(!(0,s.vq)(a))return;if(i&&!He(i))return;if(!He(a))return;if(Ue(o,n,r))return;const u=(0,s.YE)(n);(0,s.YE)(a)===u&&((0,s.YE)(i??a)===u&&function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n)||l.current&&!Ee(a,n.id))||c(t)},o,n)},[i,o,e,t,c,a,l])}function Ge(e,t){return"function"==typeof e?e(t):!!e}function qe({store:e,hideOnInteractOutside:t,domReady:n,interactedOutsideRef:i,focusedStoreRef:a}){const l=(0,o.O$)(e,"open"),c=(0,o.O$)(e,"contentElement"),u=c?Ve(c):void 0,d=function(e,t,n){const r=(0,v.useRef)(null);return(0,v.useEffect)(()=>{if(e)return(0,s.dg)("mousedown",e=>{r.current=$e(e,n)},!0,t);r.current=null},[e,t,n]),r}(l,u,c),f=(0,v.useRef)(!1);(0,r.UQ)(()=>{if(!l)return;if(!n)return;if(!c)return;f.current=!1;const t=()=>{f.current=!0,a.current=e};return c.addEventListener("focusin",t,!0),()=>c.removeEventListener("focusin",t,!0)},[l,n,c,e,a]);const p={store:e,capture:!0,open:l,contentElement:c,focusedRef:f};Ke({...p,type:"click",listener:n=>{const{contentElement:r,disclosureElement:o}=e.getState(),a=d.current;if(!a)return;if(!r)return;if(Ue(a,r,o))return;const l=a.rootTarget;(0,s.vq)(l)&&((0,s.YE)(l)!==(0,s.YE)(r)||Ee(l,r.id))&&Ge(t,n)&&(i.current=!0,e.hide())}}),Ke({...p,type:"focusin",listener:n=>{const{contentElement:r}=e.getState();if(!r)return;if(n.target===(0,s.YE)(r))return;if(!Ge(t,n))return;const o=n.target;(0,s.vq)(o)&&(0,s.YE)(o)!==(0,s.YE)(r)&&(i.current=!0),e.hide()}}),Ke({...p,type:"contextmenu",listener:n=>{Ge(t,n)&&(i.current=!0,e.hide())}})}const Ze=(0,v.createContext)({});const Ye=(0,s.f8)()&&!(0,s.cX)(),Xe=Ye?v.useEffect:r.UQ;function Qe(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Je(e,t,n){const o=function({attribute:e,contentId:t,contentElement:n,enabled:o}){const[i,a]=(0,r.CH)(),l=(0,v.useCallback)(()=>{if(!o)return!1;if(!n)return!1;const{body:r}=(0,s.YE)(n),i=r.getAttribute(e);return!i||i===t},[i,o,n,e,t]);return(0,r.UQ)(()=>{if(!o)return;if(!t)return;if(!n)return;const{body:r}=(0,s.YE)(n);if(l())return r.setAttribute(e,t),()=>r.removeAttribute(e);const i=new MutationObserver(()=>(0,q.flushSync)(a));return i.observe(r,{attributeFilter:[e]}),()=>i.disconnect()},[i,o,t,n,l,e,a]),l}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});Xe(()=>{if(!o())return;if(!e)return;const t=(0,s.YE)(e),n=(0,s.zk)(e),{documentElement:r,body:i}=t,a=r.style.getPropertyValue("--scrollbar-width"),l=a?Number.parseInt(a,10):n.innerWidth-r.clientWidth;if(Ye)return(()=>{const{scrollX:e,scrollY:t,visualViewport:o}=n,s=o?.offsetLeft??0,a=o?.offsetTop??0,c=xe(i,{position:"fixed",overflow:"hidden",top:-(t-Math.floor(a))+"px",left:-(e-Math.floor(s))+"px",right:"0",[Qe(r)]:`${l}px`});return()=>{c(),n.scrollTo({left:e,top:t,behavior:"instant"})}})();const c=(()=>{const e=n.getComputedStyle(r),t=e.getPropertyValue("scrollbar-gutter"),o=t.includes("stable"),a=e=>!e||"visible"===e,c=!a(e.getPropertyValue("overflow-x"))||!a(e.getPropertyValue("overflow-y")),u=()=>(0,s.cy)(we(r,"overflow-x","hidden"),we(r,"overflow-y","hidden")),d=e=>c?(0,s.cy)(e,u()):e;return o||l?o||function(e){const{CSS:t}=e;return!!t?.supports("scrollbar-gutter","stable")}(n)?(0,s.cy)(we(r,"scrollbar-gutter",o?t:"stable"),u()):d((0,s.cy)(we(r,"--scrollbar-width",`${l}px`),xe(i,{overflow:"hidden",[Qe(r)]:`${l}px`}))):d(xe(i,{overflow:"hidden"}))})();return()=>{queueMicrotask(c)}},[o,e])}const et=new WeakSet;const tt=(0,s.nr)(),nt=new WeakSet;function rt(e,t,n){return!!(0,s.gR)(t,e)||(!(!n||!(0,s.gR)(n,e))||Ae(e,t))}function ot(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?(0,s.tp)(n)?n:null:n:null}function it(e){if(!e.isConnected)return[];const t=e.getRootNode(),n=t.querySelectorAll("[data-dialog][data-dialog-portal][data-open]"),r=[];let o=!1;for(const i of n){if(i===e){o=!0;continue}if(!o)continue;const n=i.getAttribute("data-dialog-portal");if(!n)continue;const a=t.getElementById(n);a&&(0,s.gR)(a,i)&&(nt.has(a)||r.push(a))}return r}const st=(0,r.ab)(function({store:e,open:t,onClose:n,focusable:a=!0,modal:l=!0,portal:c=l,backdrop:u=l,hideOnEscape:f=!0,hideOnInteractOutside:p=!0,getPersistentElements:m,preventBodyScroll:g=l,autoFocusOnShow:h=!0,autoFocusOnHide:b=!0,initialFocus:k,finalFocus:x,unmountOnHide:w,unstable_treeSnapshotKey:_,...S}){const C=A(),E=(0,v.useRef)(null),j=(0,v.useRef)(null),B=l&&c&&!S.portalElement,L=d({store:e||C,open:t,setOpen(e){if(e)return;const t=E.current;if(!t)return;const r=new Event("close",{bubbles:!1,cancelable:!0});n&&t.addEventListener("close",n,{once:!0}
241),t.dispatchEvent(r),r.defaultPrevented&&L.setOpen(!0)}}),{portalRef:O,portalNode:R,domReady:M}=(0,r.TE)(c,S.portalRef),P=S.preserveTabOrder,D=(0,o.O$)(L,["mounted"],e=>P&&!l&&e.mounted),z=(0,r.Bi)(S.id),F=(0,o.O$)(L,"open"),$=(0,o.O$)(L,"mounted"),V=(0,o.O$)(L,"contentElement"),H=J($,S.hidden,S.alwaysVisible);Je(V,z,g&&!H);const W=(0,v.useRef)(!1),U=(0,v.useRef)(null);(0,r.UQ)(()=>(0,i.OH)(L,["open"],e=>{e.open?(W.current=!1,U.current!==L&&(U.current=null)):U.current=null}),[L]),qe({store:L,hideOnInteractOutside:p,domReady:M,interactedOutsideRef:W,focusedStoreRef:U});const{wrapElement:K,nestedDialogs:q}=function(e){const t=(0,v.useContext)(Ze),[n,o]=(0,v.useState)([]),a=(0,v.useCallback)(e=>(o(t=>[...t,e]),(0,s.cy)(t.add?.(e),()=>{o(t=>t.filter(t=>t!==e))})),[t]);(0,r.UQ)(()=>(0,i.OH)(e,["open","contentElement"],n=>{if(n.open&&n.contentElement)return t.add?.(e)}),[e,t]);const l=(0,v.useMemo)(()=>({store:e,add:a}),[e,a]);return{wrapElement:(0,v.useCallback)(e=>(0,G.jsx)(Ze.Provider,{value:l,children:e}),[l]),nestedDialogs:n}}(L);S=(0,r.w7)(S,K,[K]);const Z=(0,v.useRef)(null);tt&&(0,v.useEffect)(()=>{if(!M)return;const e=E.current;if(!e)return;const t=(0,s.YE)(e),n=e=>{Z.current=e.target};return t.addEventListener("mousedown",n,!0),()=>{t.removeEventListener("mousedown",n,!0)}},[M]),(0,r.UQ)(()=>{if(!F)return;if(U.current===L)return;const e=E.current;if((()=>{const{disclosureElement:t}=L.getState();return!!t&&(n=t,!et.has(n)&&(!!t.isConnected&&(!e||!(0,s.gR)(e,t))));var n})())return;const t=e=>{!function(e){et.add(e)}(e),L.setDisclosureElement(e)},n=(0,s.bq)(e,{activeDescendant:!0});if(n){if("BODY"===n.tagName){const n=Z.current;if(Z.current=null,!n?.isConnected)return;if(!(0,s.tp)(n))return;if(e&&(0,s.gR)(e,n))return;return void t(n)}e&&(0,s.gR)(e,n)||t(n)}},[L,F]),(0,v.useEffect)(()=>{if(!$)return;if(!M)return;const e=E.current;if(!e)return;const t=(0,s.zk)(e),n=t.visualViewport||t,r=()=>{const n=t.visualViewport?.height??t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${n}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}},[$,M]);const[Y,X]=(0,v.useState)(!1);(0,r.UQ)(()=>{if(!(l&&F&&M&&V))return void X(!1);const e=()=>{X(!function(e){const t=e.querySelectorAll("[data-dialog-dismiss]");for(const n of t)if(n.closest("[data-dialog]")===e)return!0;return!1}(V))};e();const{MutationObserver:t}=(0,s.zk)(V),n=new t(e);return n.observe(V,{childList:!0,subtree:!0}),()=>n.disconnect()},[l,F,M,V]),(0,r.UQ)(()=>{if(!Pe())return;if(F)return;if(!$)return;if(!M)return;const e=E.current;return e?De(e):void 0},[F,$,M]);const Q=F&&M,te=(0,v.useRef)(null);(0,r.UQ)(()=>{if(!(z&&B&&Q&&R))return void(te.current=null);const e=E.current;if(e&&(0,s.gR)(R,e))return te.current?.portal!==R&&(te.current={portal:R,peers:it(e)}),nt.add(R),()=>{nt.delete(R)};te.current=null},[z,Q,B,R]),(0,r.UQ)(()=>{if(!z)return;if(!Q)return;const e=E.current;return function(e,t){const{body:n}=(0,s.YE)(t[0]),r=[];return Oe(e,t,t=>{r.push(ke(t,Be(e),!0))}),(0,s.cy)(ke(n,Be(e),!0),()=>{for(const e of r)e()})}(z,[e])},[z,Q,_]);const ne=(0,r._q)(m);(0,r.UQ)(()=>{if(!z)return;if(!Q)return;const{disclosureElement:e}
241=L.getState(),t=V??E.current;if(!t)return;const n=[t,...ne()||[],...te.current?.peers||[],...q.map(e=>e.getState().contentElement)],r=function(e,t){const n=new WeakSet;_e.set(e,n);for(const e of t)e&&n.add(e);return()=>{_e.get(e)===n&&_e.delete(e)}}(t,n);return l?(0,s.cy)(r,ze(z,n)):(0,s.cy)(r,function(e,t){const n=[],r=t.map(e=>e?.id);return Oe(e,t,t=>{Ie({cleanups:n,element:t,id:e,ids:r})},(t,r)=>{Te({cleanups:n,ancestor:t,element:r,id:e})}),()=>{Ne(n)}}(z,[e,...n]))},[z,L,Q,V,l,B,ne,q,_]);const oe=!!h,ae=(0,r.O4)(h),[le,ce]=(0,v.useState)(!1);(0,v.useEffect)(()=>{if(!F)return;if(!oe)return;if(!M)return;if(!V?.isConnected)return;const e=ot(k,!0)||V.querySelector("[data-autofocus=true],[autofocus]")||(0,s.LC)(V,!0,c&&D)||V,t=(0,s.tp)(e);ae(t?e:null)&&(ce(!0),queueMicrotask(()=>{const{open:t,disclosureElement:n}=L.getState();if(!t)return;const r=(0,s.bq)(V,{frame:!1}),o=r&&function(e){let t=e;for(;t.shadowRoot;){const e=t.shadowRoot.activeElement;if(!(0,s.vq)(e))break;t=e}return t}(r);U.current===L&&r&&o&&(0,s.tp)(o)&&!rt(r,V,n)&&!rt(o,V,n)||((0,s.tp)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"}),e.focus({preventScroll:!0}))}))},[F,oe,M,V,k,c,D,L,ae,U]);const ue=!!b,de=(0,r.O4)(b),[fe,pe]=(0,v.useState)(!1);(0,r.UQ)(()=>{if(F)return pe(!0),()=>pe(!1)},[F]);const me=(0,v.useCallback)((e,t=!0)=>{if(W.current)return;const{disclosureElement:n}=L.getState();if(function(e){const t=(0,s.bq)(e);return!(!t||e&&(0,s.gR)(e,t)||Me(t,e?.id)||!(0,s.tp)(t))}(e))return;let r=ot(x)||n;if(r?.id){const e=(0,s.YE)(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!(0,s.tp)(r)){const e=r.closest("[data-dialog]");if(e?.id){const t=(0,s.YE)(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&(0,s.tp)(r);o||!t?de(o?r:null)&&o&&r?.focus():requestAnimationFrame(()=>me(e,!1))},[L,x,de]),he=(0,v.useRef)(!1);(0,r.UQ)(()=>{if(F)return;if(!fe)return;if(!ue)return;const e=E.current;he.current=!0,me(e)},[F,fe,M,ue,me]),(0,v.useEffect)(()=>{if(!fe)return;if(!ue)return;const e=E.current;return()=>{he.current?he.current=!1:me(e)}},[fe,ue,me]);const be=(0,r.O4)(f),[ye]=(0,v.useState)(()=>new WeakMap),ve=S.onKeyDown,xe=S.onKeyDownCapture,we=S.onFocusCapture,Se=(0,r._q)(e=>{if(we?.(e),!L.getState().open)return;const t=e.target;(0,s.Ll)(t)&&(0,s.gR)(e.currentTarget,t)&&(U.current=L)}),Ce=(0,r._q)(e=>{if("Escape"!==e.key)return!1;if(!e.bubbles)return!1;const t=ye.get(e);if(t)return!(e.defaultPrevented&&!t.defaultPrevented)&&t.accepted;if(e.defaultPrevented)return!1;const n=E.current;if(!$)return!1;if(!n)return!1;if(Ee(n))return!1;const r=be(e);return ye.set(e,{accepted:r,defaultPrevented:e.defaultPrevented}),r}),Ae=(0,r._q)(e=>{const t=Ce(e);return ye.delete(e),!!t&&(L.hide(),!0)}),je=(0,r._q)(e=>{const t=e.nativeEvent,n=t.cancelBubble;ve?.(e),n?ye.delete(t):Ae(t)&&e.stopPropagation()}),Le=(0,r._q)(e=>{const t=e.nativeEvent,n=t.cancelBubble;xe?.(e),n?ye.delete(t):(e.isPropagationStopped()||t.cancelBubble)&&Ae(t)});(0,v.useEffect)(()=>{if(!M)return;if(!$)return;const e=V?(0,s.zk)(V):void 0;return(0,s.cy)((0,s.dg)("keydown",e=>{if("Escape"!==e.key)return;if(!e.bubbles)return;if(e.cancelBubble)return void ye.delete(e);if(ye.has(e))return;const t=E.current;if(!t)return;const n=e.target;if(!(0,s.Ll)(n))return;const{disclosureElement:r}=L.getState();((0,s.vq)(n)&&"BODY"===n.tagName||(0,s.gR)(t,n)||!r||(0,s.gR)(r,n)||(0,s.vq)(n)&&Ee(n,t.id)||(0,s.vq)(n)&&Me(n,t.id))&&Ce(e)&&e.cancelBubble&&Ae(e)},!0,e),(0,s.dg)("keydown",e=>{ye.has(e)&&(e.cancelBubble?ye.delete(e):Ae(e)&&e.stopPropagation())},!1,e))},[L,M,$,V,Ae,Ce,ye]);const Fe=(S=(0,r.w7)(S,e=>(0,G.jsx)(ie,{level:l?1:void 0,children:e}),[l])).hidden,$e=S.alwaysVisible;S=(0,r.w7)(S,e=>(0,G.jsxs)(G.Fragment,{children:[Y&&(0,G.jsx)("button",{type:"button",tabIndex:-1,"data-dialog-hidden-dismiss":z||"",style:se(),onClick:L.hide,children:"Dismiss popup"}),e]}),[Y,z,L]),S=(0,r.w7)(S,e=>(0,G.jsxs)(G.Fragment,{children:[!!u&&(0,G.jsx)(Re,{store:L,backdrop:u,backdropRef:j,hidden:Fe,alwaysVisible:$e}),e]}),[L,u,Fe,$e]);const[Ve,He]=(0,v.useState)(),[We,Ue]=(0,v.useState)();return S={"data-dialog":"",role:"dialog",tabIndex:a?-1:void 0,"aria-labelledby":null!=(S=(0,r.w7)(S,e=>(0,G.jsx)(I,{value:L,children:(0,G.jsx)(T.Provider,{value:He,children:(0,G.jsx)(N.Provider,{value:Ue,children:e})})}),[L]))["aria-label"]?void 0:Ve,"aria-describedby":We,...S,"data-dialog-portal":B?R?.id:void 0,id:z,ref:(0,r.SV)(E,S.ref),onFocusCapture:Se,onKeyDown:je,onKeyDownCapture:Le},S=re({...S,autoFocusOnShow:le}),S=ee({store:L,...S,unstable_otherElementRef:j}),S=(0,y.n)({...S,focusable:a}),S=ge({portal:c,...S,portalRef:O,preserveTabOrder:D})});function at(e,t=A){return(0,r.Rf)(function(n){const r=t(),i=n.store||r;return(0,o.O$)(i,["mounted"],e=>!n.unmountOnHide||e?.mounted||!!n.open)?(0,G.jsx)(e,{...n}):null})}const lt=at((0,r.Rf)(function(e){const t=st(e);return(0,r.n)("div",t)}),A),ct=(0,r.Rf)(function(e){const t=d({open:e.open});return(0,G.jsx)(lt,{...e,store:t})});(0,r.Rf)(function(e){const t=A();return e.store||t||!e.unmountOnHide?(0,G.jsx)(lt,{...e}):(0,G.jsx)(ct,{...e})});var ut=n(4693);const dt=new WeakMap;function ft(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function pt(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?function(e){if(!e)return ft();const{x:t,y:n,width:r,height:o}=e;return ft(t,n,r,o)}(r):n.getBoundingClientRect()}}}function mt(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function gt(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function ht(e,t){return(0,ut.cY)(({placement:n})=>{const r=(e?.clientHeight||0)/2,o="number"==typeof t.gutter?t.gutter+r:t.gutter??r;
241return{crossAxis:n.split("-")[1]?void 0:t.shift,mainAxis:o,alignmentAxis:t.shift}})}function bt(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return(0,s.V1)(!t||t.every(mt),!1),(0,ut.UU)({padding:e.overflowPadding,fallbackPlacements:t})}function yt(e){if(e.slide||e.overlap)return(0,ut.BN)({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(0,ut.ER)()})}function vt(e,t){return(0,ut.Ej)({padding:e.overflowPadding,apply({elements:n,availableWidth:r,availableHeight:o,rects:i}){if(t?.())return;const s=n.floating,a=Math.round(i.reference.width);r=Math.floor(r),o=Math.floor(o),s.style.setProperty("--popover-anchor-width",`${a}px`),s.style.setProperty("--popover-available-width",`${r}px`),s.style.setProperty("--popover-available-height",`${o}px`),e.sameWidth&&(s.style.width=`${a}px`),e.fitViewport&&(s.style.maxWidth=`${r}px`,s.style.maxHeight=`${o}px`)}})}function kt(e,t){if(e)return(0,ut.UE)({element:e,padding:t.arrowPadding})}const xt=(0,r.ab)(function({store:e,modal:t=!1,portal:n=t,preserveTabOrder:a=!0,autoFocusOnShow:l=!0,wrapperProps:c,fixed:u=!1,flip:d=!0,shift:f=0,slide:p=!0,overlap:m=!1,sameWidth:g=!1,fitViewport:h=!1,gutter:b,arrowPadding:y=4,overflowPadding:k=8,getAnchorRect:x,updatePosition:w,..._}){const S=B();e=e||S,(0,s.V1)(e,!1);const C=(0,o.O$)(e,"arrowElement"),A=(0,o.O$)(e,"anchorElement"),E=a&&n&&!t,I=(0,o.O$)(e,E?["disclosureElement"]:[],e=>E?e.disclosureElement:null),T=(0,o.O$)(e,"popoverElement"),N=(0,o.O$)(e,"unstable_placing"),j=(0,o.O$)(e,"contentElement"),L=(0,o.O$)(e,"placement"),R=(0,o.O$)(e,"mounted"),M=(0,o.O$)(e,"rendered"),P=(0,v.useRef)(null),D=!N,{portalRef:z,domReady:F}=(0,r.TE)(n,_.portalRef),$=(0,r._q)(x),V=(0,r._q)(w),H=!!w,W="number"==typeof k?k:k.top??0,U="number"==typeof k?k:k.right??0,K="number"==typeof k?k:k.bottom??0,q="number"==typeof k?k:k.left??0,Z=!R&&J(R,_.hidden,_.alwaysVisible);(0,r.UQ)(()=>{if(R&&e?.setState("unstable_placing",!0),!T?.isConnected)return;const t={top:W,right:U,bottom:K,left:q};var n;if(T.style.setProperty("--popover-overflow-padding",`${n=t,"number"==typeof n?n:Math.max(n.left??0,n.right??0)}px`),Z&&!H)return;const r=pt(A,$);let o=!1,i=!1;const s=()=>!!o||!T.isConnected,a=async()=>{if(s())return;if(!R)return;C||(P.current=P.current||document.createElement("div"));const n=C||P.current,o=[ht(n,{gutter:b,shift:f}),bt({flip:d,overflowPadding:t}),yt({slide:p,shift:f,overlap:m,overflowPadding:t}),kt(n,{arrowPadding:y}),vt({sameWidth:g,fitViewport:h,overflowPadding:t},s)],a=await(0,ut.rD)(r,T,{placement:L,strategy:u?"fixed":"absolute",middleware:o});if(s())return;e?.setState("currentPlacement",a.placement);const l=gt(a.x),c=gt(a.y);if(Object.assign(T.style,{top:"0",left:"0",transform:`translate3d(${l}px,${c}px,0)`}),i=!0,n&&a.middlewareData.arrow){const{x:e,y:t}=a.middlewareData.arrow,r=function(e){return e.split("-")[0]}(a.placement),o=n.clientWidth/2,i=n.clientHeight/2,s=null!=e?e+o:-o,l=null!=t?t+i:-i;T.style.setProperty("--popover-transform-origin",{top:`${s}px calc(100% + ${i}px)`,bottom:`${s}px ${-i}px`,left:`calc(100% + ${o}px) ${l}px`,right:`${-o}px ${l}px`}[r]),Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[r]:"100%"})}},l=(0,ut.ll)(r,T,async()=>{if(!s()){try{H?await V({updatePosition:a}):await a()}catch(t){throw i&&!s()&&e?.setState("unstable_placing",!1),t}s()||e?.setState("unstable_placing",!1)}},{elementResize:"function"==typeof ResizeObserver});return()=>{o=!0,l()}},[e,M,T,C,A,L,R,Z,F,u,d,f,p,m,g,h,b,y,W,U,K,q,$,H,V]),(0,r.UQ)(()=>{if(!R)return;if(!F)return;if(!T?.isConnected)return;if(!j?.isConnected)return;const e=()=>{T.style.zIndex=getComputedStyle(j).zIndex};e();let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)},[R,F,T,j]),(0,r.UQ)(()=>{if(!e)return;const t=e;dt.set(t,(dt.get(t)??0)+1);const n=(0,i.OH)(t,["mounted"],e=>{t.setState("unstable_placing",e.mounted)});return()=>{n(),dt.set(t,(dt.get(t)??1)-1),queueMicrotask(()=>{dt.get(t)||t.setState("unstable_placing",!1)})}},[e]);const Y=u?"fixed":"absolute";return _=(0,r.w7)(_,t=>(0,G.jsx)("div",{...c,style:{position:Y,top:0,left:0,width:"max-content",...c?.style},ref:e?.setPopoverElement,children:t}),[e,Y,c]),_=(0,r.w7)(_,t=>(0,G.jsx)(O,{value:e,children:t}
241),[e]),_={"data-placing":N||void 0,..._,style:{position:"relative",..._.style}},_=st({store:e,modal:t,portal:n,preserveTabOrder:a,preserveTabOrderAnchor:I||A,autoFocusOnShow:D&&l,..._,portalRef:z})});at((0,r.Rf)(function(e){const t=xt(e);return(0,r.n)("div",t)}),B);function wt(e){return[e.clientX,e.clientY]}function _t({event:e,element:t,enterPointRef:n,disablePointerEvents:r,refreshEnterPoint:o=!1}){const i=n.current;if(!i)return!1;const s=wt(e),a=function(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e;return[s<i?"left":s>r?"right":null,a<n?"top":a>o?"bottom":null]}(t,n),c=[t];return a?("top"!==l&&c.push(["left"===a?s:o,r]),c.push(["left"===a?o:s,r]),c.push(["left"===a?o:s,i]),"bottom"!==l&&c.push(["left"===a?s:o,i])):"top"===l?(c.push([s,r]),c.push([s,i]),c.push([o,i]),c.push([o,r])):(c.push([s,i]),c.push([s,r]),c.push([o,r]),c.push([o,i])),c}(t,i);return!!function(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,s=e-1;i<e;s=i++){const a=t[i],l=t[s],c=t[0===s?e-1:s-1];if(null==a)return!1;if(null==l)return!1;if(null==c)return!1;const[u,d]=a,[f,p]=l,[,m]=c,g=(d-p)*(n-u)-(u-f)*(r-d);if(p<d){if(r>=p&&r<d){if(0===g)return!0;g>0&&(r===p?r>m&&(o=!o):o=!o)}}else if(d<p){if(r>d&&r<=p){if(0===g)return!0;g<0&&(r===p?r<m&&(o=!o):o=!o)}}else if(r===d&&(n>=f&&n<=u||n>=u&&n<=f))return!0}return o}(s,a)&&(o&&(n.current=s),r(e)&&(e.preventDefault(),e.stopPropagation()),!0)}const St=(0,v.createContext)(null),Ct=(0,r.ab)(function({store:e,modal:t=!1,portal:n=t,hideOnEscape:a=!0,hideOnHoverOutside:l=!0,disablePointerEventsOnApproach:c=!!l,...u}){const d=M();e=e||d,(0,s.V1)(e,!1);const f=(0,v.useRef)(null),p=(0,v.useRef)([]),m=(0,v.useRef)(0),g=(0,v.useRef)(null),{portalRef:h,domReady:b}=(0,r.TE)(n,u.portalRef),y=(0,r.P$)(),k=!!l,x=(0,r.O4)(l),w=!!c,_=(0,r.O4)(c),S=(0,o.O$)(e,"open"),C=(0,o.O$)(e,"mounted"),A=(0,v.useCallback)(()=>{window.clearTimeout(m.current),m.current=0},[]);(0,v.useEffect)(()=>{if(!b)return;if(!C)return;if(!k&&!w)return;const t=f.current;if(!t)return;return(0,s.cy)((0,s.dg)("mousemove",n=>{if(!e)return;if(!y())return;const{anchorElement:r,disclosureElement:o,hideTimeout:i,timeout:a}=e.getState(),l=n.composedPath(),c=[r,o],u=c.find(e=>e&&l.includes(e));if(function(e,t,n,r){return!!((0,s.oW)(t)||e.includes(t)||n.some(t=>t&&e.includes(t))||r?.some(t=>(0,s.oW)(t)||e.includes(t)))}(l,t,c,p.current))return g.current=u?wt(n):null,void A();m.current||_t({event:n,element:t,enterPointRef:g,disablePointerEvents:_,refreshEnterPoint:!0})||x(n)&&(m.current=window.setTimeout(()=>{m.current=0,e?.hide()},i??a))},!0),A)},[e,y,b,C,k,w,p,A,_,x]),(0,v.useEffect)(()=>{if(!b)return;if(!C)return;if(!w)return;const e=e=>{const t=f.current;t&&_t({event:e,element:t,enterPointRef:g,disablePointerEvents:_})};return(0,s.cy)((0,s.dg)("mouseenter",e,!0),(0,s.dg)("mouseover",e,!0),(0,s.dg)("mouseout",e,!0),(0,s.dg)("mouseleave",e,!0))},[b,C,w,_]),(0,v.useEffect)(()=>{b&&(S||e?.setAutoFocusOnShow(!1))},[e,b,S]);const E=(0,r.hX)(S);(0,v.useEffect)(()=>{if(b)return()=>{E.current||e?.setAutoFocusOnShow(!1)}},[e,b]);const I=(0,v.useContext)(St);(0,r.UQ)(()=>{if(t)return;if(!n)return;if(!C)return;if(!b)return;const e=f.current;return e?I?.(e):void 0},[t,n,C,b,I]);const T=(0,v.useCallback)(e=>{A(),p.current=[...p.current,e];const t=I?.(e);return()=>{A(),p.current=p.current.filter(t=>t!==e),t?.()}},[A,I]);u=(0,r.w7)(u,t=>(0,G.jsx)(D,{value:e,children:(0,G.jsx)(St.Provider,{value:T,children:t})}),[e,T]),u={...u,ref:(0,r.SV)(f,u.ref)},u=function({store:e,...t}){const[n,s]=(0,v.useState)(!1),a=(0,o.O$)(e,"mounted");(0,v.useEffect)(()=>{a||s(!1)},[a]);const l=t.onFocus,c=(0,r._q)(e=>{l?.(e),e.defaultPrevented||s(!0)}),u=(0,v.useRef)(null);return(0,v.useEffect)(()=>(0,i.OH)(e,["anchorElement"],e=>{u.current=e.anchorElement}),[e]),{autoFocusOnHide:n,finalFocus:u,...t,onFocus:c}}({store:e,...u});const N=(0,o.O$)(e,["autoFocusOnShow"],e=>t||e.autoFocusOnShow);return u=xt({store:e,modal:t,portal:n,autoFocusOnShow:N,...u,portalRef:h,hideOnEscape:t=>!(0,s.zO)(a,t)&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{e?.hide()})}),!0)})}),At=(at((0,r.Rf)(function(e){const t=Ct(e);return(0,r.n)("div",t)}),M),(0,r.ab)(function({store:e,portal:t=!0,gutter:n=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:l=!0,...c}){const u=$();return e=e||u,(0,s.V1)(e,!1),c=(0,r.w7)(c,t=>(0,G.jsx)(V,{value:e,children:t}),[e]),c={role:(0,o.O$)(e,["type"],e=>"description"===e.type?"tooltip":"none"),...c},c=Ct({...c,store:e,portal:t,gutter:n,preserveTabOrder:i,hideOnHoverOutside(t){if((0,s.zO)(a,t))return!1;const n=e?.getState().anchorElement;return!n||!("focusVisible"in n.dataset)},hideOnInteractOutside:t=>{if((0,s.zO)(l,t))return!1;const n=e?.getState().anchorElement;return!n||!(0,s.gR)(n,t.target)}})})),Et=at((0,r.Rf)(function(e){const t=At(e);return(0,r.n)("div",t)}),$);var It=n(3022),Tt=n(1740),Nt=n(6786),jt=n(3770),Bt=n(505),Lt=(0,v.createContext)({isNestedInTooltip:!1});Lt.displayName="TooltipInternalContext";var Ot=700,Rt={isNestedInTooltip:!0};var Mt=(0,v.forwardRef)(function(e,t){const{children:n,className:r,delay:i=Ot,hideOnClick:s=!0,placement:a,position:l,shortcut:c,text:u,...d}=e,{isNestedInTooltip:f}=(0,v.useContext)(Lt),p=(0,Tt.A)(Mt,"tooltip"),m=u||c?p:void 0,g=1===v.Children.count(n);let y;void 0!==a?y=a:void 0!==l&&(y=(0,Bt.YK)(l),(0,Nt.A)("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),y=y||"top";
241const k=h({placement:y,showTimeout:i}),x=o.O$(k,"mounted");return f?g?(0,G.jsx)(b,{...d,render:n}):n:(0,G.jsxs)(Lt.Provider,{value:Rt,children:[(0,G.jsx)(K,{onClick:s?k.hide:void 0,store:k,render:g?(w=n,m&&x&&void 0===w.props["aria-describedby"]&&w.props["aria-label"]!==u?(0,v.cloneElement)(w,{"aria-describedby":m}):w):void 0,ref:t,children:g?void 0:n}),g&&(u||c)&&(0,G.jsxs)(Et,{...d,className:(0,It.A)("components-tooltip",r),unmountOnHide:!0,gutter:4,id:m,overflowPadding:.5,store:k,children:[u,c&&(0,G.jsx)(jt.A,{className:u?"components-tooltip__shortcut":"",shortcut:c})]})]});var w}),Pt=Mt},7357(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(3022),o=n(1541),i=n(7273),s="â¦",a={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},l={ellipsis:s,ellipsizeMode:a.auto,limit:0,numberOfLines:0};function c(e="",t){const n={...l,...t},{ellipsis:r,ellipsizeMode:o,limit:c}=n;if(o===a.none)return e;let u,d;switch(o){case a.head:u=0,d=c;break;case a.middle:u=Math.floor(c/2),d=Math.floor(c/2);break;default:u=c,d=0}const f=o!==a.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,a=~~t,l=~~n,c=(0,i.J5)(r)?r:s;return 0===a&&0===l||a>=o||l>=o||a+l>=o?e:0===l?e.slice(0,a)+c:e.slice(0,a)+c+e.slice(o-l)}(e,u,d,r):e;return f}var u="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)f(e,n,r)}(document)),e.__wpStyleRuntime}function f(e,t,n){if(!e.head)return;const r=d();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${u}]`))if(n.getAttribute(u)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(u,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=d();n.styles.set(e,t);for(const r of n.documents.keys())f(r,e,t)})("beeae56da8","._51f2afb77f24a721__truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.d232bf8e2132288d__is-line-clamp{-webkit-box-orient:vertical;-webkit-line-clamp:var(--wp-components-truncate-lines);display:-webkit-box;overflow:hidden}.d232bf8e2132288d__is-line-clamp._95bf20b727db236f__is-single-line{word-break:break-all}");var p="_51f2afb77f24a721__truncate",m="d232bf8e2132288d__is-line-clamp",g="_95bf20b727db236f__is-single-line";function h(e){const{className:t,children:n,ellipsis:i=s,ellipsizeMode:l=a.auto,limit:u=0,numberOfLines:d=0,style:f,...h}=(0,o.A)(e,"Truncate");let b;"string"==typeof n?b=n:"number"==typeof n&&(b=n.toString());const y=b?c(b,{ellipsis:i,ellipsizeMode:l,limit:u,numberOfLines:d}):n,v=!!b&&l===a.auto,k=v&&!!d,x=k&&1===d;return{...h,className:(0,r.A)(v&&!d&&p,k&&m,x&&g,t),style:k?{...f,"--wp-components-truncate-lines":d}:f,children:y}}},7266(e,t,n){"use strict";n.d(t,{l:()=>i});var r={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:"var(--wp-components-color-accent-inverted, var(--wpds-color-foreground-interactive-brand-strong, #fff))",background:"var(--wp-components-color-background, var(--wpds-color-background-surface-neutral-strong, #fff))",foreground:"var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e))",foregroundInverted:"var(--wp-components-color-foreground-inverted, var(--wpds-color-background-surface-neutral, #fcfcfc))",gray:{900:"var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e))",800:"var(--wp-components-color-gray-800, var(--wpds-color-foreground-content-neutral, #1e1e1e))",700:"var(--wp-components-color-gray-700, var(--wpds-color-foreground-content-neutral-weak, #707070))",600:"var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d))",400:"var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d))",300:"var(--wp-components-color-gray-300, var(--wpds-color-stroke-surface-neutral, #dbdbdb))",200:"var(--wp-components-color-gray-200, var(--wpds-color-stroke-surface-neutral, #dbdbdb))",100:"var(--wp-components-color-gray-100, var(--wpds-color-background-surface-neutral, #fcfcfc))"}},o={background:r.background,backgroundDisabled:r.gray[100],border:r.gray[600],borderHover:r.gray[700],borderFocus:r.accent,borderDisabled:"var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb)",textDisabled:"var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d)",dar
241kGrayPlaceholder:`color-mix(in srgb, ${r.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${r.background}, transparent 35%)`},i=Object.freeze({gray:{900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},white:"#fff",alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:r,ui:o})},2868(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(7266),o="36px",i={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBoxShadowFocus:`0 0 0 0.5px ${r.l.theme.accent}`,controlHeight:o,controlHeightXSmall:`calc( ${o} * 0.6 )`,controlHeightSmall:`calc( ${o} * 0.8 )`,controlHeightLarge:`calc( ${o} * 1.2 )`,controlHeightXLarge:`calc( ${o} * 1.4 )`},s=Object.assign({},i,{colorDivider:"rgba(0, 0, 0, 0.1)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightEmphasis:"600",gridBase:"4px",elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceColor:r.l.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"})},5350(e,t,n){"use strict";n.d(t,{fM:()=>a,ny:()=>s});var r=n(2868),o={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},i=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function s(e=13){if(e in o)return s(o[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / 13)`} * ${r.A.fontSize})`}function a(e=3){if(!i.includes(e))return s(e);const t=`fontSizeH${e}`;return r.A[t]}},6624(e,t,n){"use strict";n.d(t,{j:()=>o});var r=n(2376);function o({defaultValue:e,onChange:t,value:n}){const o=void 0!==n,i=o?n:e,[s,a]=(0,r.useState)(i),l=o?n:s,c=(0,r.useCallback)((e,...n)=>{a(e),t?.(e,...n)},[t]);let u;return u=o&&"function"==typeof t?t:o||"function"!=typeof t?a:c,[l,u]}},4558(e,t,n){"use strict";n.d(t,{l:()=>p});var r=n(6960),o=n(4045),i=n(9479),s=n(2123);function a(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function l(e,t,n){var r=[],i=(0,o.Rk)(e,r,n);return r.length<2?n:i+t(r)}var c=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},u=function(e){var t=(0,i.A)(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=(0,s.J)(n,t.registered,void 0);return(0,o.sk)(t,i,!1),t.key+"-"+i.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return l(t.registered,n,c(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,s.J)(n,t.registered);a(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,s.J)(n,t.registered),i="animation-"+o.name;return a(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:o.Rk.bind(null,t.registered),merge:l.bind(null,t.registered,n)}}({key:"css"}),d=(u.flush,u.hydrate,u.cx),f=(u.merge,u.getRegisteredStyles,u.injectGlobal,u.keyframes,u.css,u.sheet,u.cache,n(2376)),p=()=>{const e=(0,r._)();return(0,f.useCallback)((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return d(...t.map(t=>{return null!=(n=t)&&["name","styles"].every(e=>void 0!==n[e])?((0,o.sk)(e,t,!1),`${e.key}-${t.name}`):t;var n}))},[e])}}
241,9057(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2376);var o=function(e,t){const n=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current)return e();n.current=!0},t),(0,r.useEffect)(()=>()=>{n.current=!1},[])}},6457(e,t,n){"use strict";n.d(t,{Z:()=>f});var r=n(2376),o=n(3236),i=/^(data|aria|x)-/i,s=/^on[A-Z]/,a=new Set("animate animateMotion animateTransform circle clipPath defs desc ellipse\n\tfeBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix\n\tfeDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood\n\tfeFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode\n\tfeMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile\n\tfeTurbulence filter foreignObject g image line linearGradient marker mask\n\tmetadata mpath path pattern polygon polyline radialGradient rect set stop svg\n\tswitch symbol text textPath tspan use view".split(/\s+/)),l=new Set("children dangerouslySetInnerHTML key autoFocus defaultValue defaultChecked\n\tinnerHTML suppressContentEditableWarning suppressHydrationWarning valueLink\n\tabbr accept acceptCharset accessKey action allow allowUserMedia\n\tallowPaymentRequest allowFullScreen allowTransparency alt async autoComplete\n\tautoPlay capture cellPadding cellSpacing challenge charSet checked cite classID\n\tclassName cols colSpan content contentEditable contextMenu controls controlsList\n\tcoords crossOrigin data dateTime decoding default defer dir disabled\n\tdisablePictureInPicture disableRemotePlayback download draggable encType\n\tenterKeyHint fetchpriority fetchPriority form formAction formEncType formMethod\n\tformNoValidate formTarget frameBorder headers height hidden high href hrefLang\n\thtmlFor httpEquiv id inputMode integrity is keyParams keyType kind label lang\n\tlist loading loop low marginHeight marginWidth max maxLength media mediaGroup\n\tmethod min minLength multiple muted name nonce noValidate open optimum pattern\n\tplaceholder playsInline popover popoverTarget popoverTargetAction poster\n\tpreload profile radioGroup readOnly referrerPolicy rel required reversed role\n\trows rowSpan sandbox scope scoped scrolling seamless selected shape size sizes\n\tslot span spellCheck src srcDoc srcLang srcSet start step style summary\n\ttabIndex target title translate type useMap value width wmode wrap about\n\tdatatype inlist prefix property resource typeof vocab autoCapitalize\n\tautoCorrect autoSave color incremental fallback inert itemProp itemScope\n\titemType itemID itemRef on option results security unselectable".split(/\s+/)),c=new Set("accentHeight accumulate additive alignmentBaseline allowReorder alphabetic\n\tamplitude arabicForm ascent attributeName attributeType autoReverse azimuth\n\tbaseFrequency baselineShift baseProfile bbox begin bias by calcMode capHeight\n\tclip clipPathUnits clipPath clipRule colorInterpolation\n\tcolorInterpolationFilters colorProfile colorRendering contentScriptType\n\tcontentStyleType cursor cx cy d decelerate descent diffuseConstant direction\n\tdisplay divisor dominantBaseline dur dx dy edgeMode elevation enableBackground\n\tend exponent externalResourcesRequired fill fillOpacity fillRule filter\n\tfilterRes filterUnits floodColor floodOpacity focusable fontFamily fontSize\n\tfontSizeAdjust fontStretch fontStyle fontVariant fontWeight format from fr fx\n\tfy g1 g2 glyphName glyphOrientationHorizontal glyphOrientationVertical\n\tglyphRef gradientTransform gradientUnits hanging horizAdvX horizOriginX\n\tideographic imageRendering in in2 intercept k k1 k2 k3 k4 kernelMatrix\n\tkernelUnitLength kerning keyPoints keySplines keyTimes lengthAdjust\n\tletterSpacing lightingColor limitingConeAngle local markerEnd markerMid\n\tmarkerStart markerHeight markerUnits markerWidth mask maskContentUnits\n\tmaskUnits mathematical mode numOctaves offset opacity operator order orient\n\torientation origin overflow overlinePosition overlineThickness panose1\n\tpaintOrder pathLength patternContentUnits patternTransform patternUnits\n\tpointerEvents points pointsAtX pointsAtY pointsAtZ preserveAlpha\n\tpreserveAspectRatio primitiveUnits r radius refX refY renderingIntent\n\trepeatCount repeatDur requiredExtensions requiredFeatures restart result rotate\n\trx ry scale seed shapeRendering slope spacing specularConstant\n\tspecularExponent speed spreadMethod startOffset stdDeviation stemh stemv\n\tstitchTiles stopColor stopOpacity strikethroughPosition strikethroughThickness\n\tstring stroke strokeDasharray strokeDashoffset strokeLinecap strokeLinejoin\n\tstrokeMiterlimit strokeOpacity strokeWidth surfaceScale systemLanguage\n\ttableValues targetX targetY textAnchor textDecoration textRendering textLength\n\tto transform u1 u2 underlinePosition underlineThickness unicode unicodeBidi\n\tunicodeRange unitsPerEm vAlphabetic vHanging vIdeographic vMathematical values\n\tvectorEffect version vertAdvY vertOriginX vertOriginY viewBox viewTarget\n\tvisibility widths wordSpacing writingMode x xHeight x1 x2 xChannelSelector\n\txlinkActuate xlinkArcrole xlinkHref xlinkRole xlinkShow xlinkTitle xlinkType\n\txmlBase xmlns xmlnsXlink xmlLang xmlSpace y y1 y2 yChannelSelector z\n\tzoomAndPan".split(/\s+/)),u=new Set(["autofocus","class","for"]);function d(e,t){return Object.fromEntries(Object.entries(e).filter(([e])=>function(e,t){return!(!i.test(e)&&!s.test(e))||!(!l.has(e)&&!u.has(e))||a.has(t)&&
241c.has(e)}(e,t)))}var f=(0,r.forwardRef)(function({as:e,...t},n){const r=e||"div",i="string"==typeof r?d(t,r):t;return(0,o.jsx)(r,{ref:n,...i})})},1731(e,t,n){"use strict";n.d(t,{h:()=>u});var r=n(3423),o=n(913),i=new RegExp(/-left/g),s=new RegExp(/-right/g),a=new RegExp(/Left/g),l=new RegExp(/Right/g);function c(e){return"left"===e?"right":"right"===e?"left":i.test(e)?e.replace(i,"-right"):s.test(e)?e.replace(s,"-left"):a.test(e)?e.replace(a,"Right"):l.test(e)?e.replace(l,"Left"):e}function u(e={},t){return()=>t?(0,o.V8)()?(0,r.AH)(t,"",""):(0,r.AH)(e,"",""):(0,o.V8)()?(0,r.AH)(((e={})=>Object.fromEntries(Object.entries(e).map(([e,t])=>[c(e),t])))(e),"",""):(0,r.AH)(e,"","")}u.watch=()=>(0,o.V8)()},359(e,t,n){"use strict";n.d(t,{x:()=>r});function r(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(4px * ${e})`}},7273(e,t,n){"use strict";function r(e){return null!=e}function o(e){const t=""===e;return!r(e)||t}function i(e=[],t){return e.find(r)??t}n.d(t,{GB:()=>s,J5:()=>r,r6:()=>o,vD:()=>i});var s=e=>"string"==typeof e?(e=>parseFloat(e))(e):e},6930(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2376),o=n(6457),i=n(3236);var s=Object.assign((0,r.forwardRef)(function({css:e,...t},n){return(0,i.jsx)(o.Z,{ref:n,...t})}),{selector:".components-view"})},8787(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(1541),o=n(9179),i={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal",wordBreak:"normal"},s=n(6930),a=n(3236);var l=(0,o.KZ)(function(e,t){const{style:n,...o}=(0,r.A)(e,"VisuallyHidden");return(0,a.jsx)(s.A,{ref:t,...o,"data-visually-hidden":"",style:{...i,...n||{}}})},"VisuallyHidden")},8838(e,t,n){"use strict";n.d(t,{A:()=>r});var r=(0,n(9158).A)(!0)},9158(e,t,n){"use strict";n.d(t,{A:()=>r,h:()=>o});var r=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce((e,t)=>[t(...e)],n)[0]},o=r()},4233(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2376);function o(e){const t=(0,r.useRef)(()=>{throw new Error("Callbacks created with `useEvent` cannot be called during rendering.")});return(0,r.useInsertionEffect)(()=>{t.current=e}),(0,r.useCallback)((...e)=>t.current?.(...e),[])}},1740(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2376),o=new WeakMap;var i=function(e,t,n){return(0,r.useMemo)(()=>{if(n)return n;const r=function(e){const t=o.get(e)||0;return o.set(e,t+1),t}(e);return t?`${t}-${r}`:r},[e,n,t])}},6890(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2376),o=new WeakMap,i={subscribe:()=>()=>{},getValue:()=>!1};function s(e,t=("undefined"!=typeof window?window:void 0)){const n=function(e,t){if(!e||!t||"function"!=typeof e.matchMedia)return i;let n=o.get(e);n||(n=new Map,o.set(e,n));const r=n.get(t);if(r)return r;const s=e.matchMedia(t),a=new Set,l=()=>{for(const e of a)e()},c={subscribe:e=>(0===a.size&&s.addEventListener?.("change",l),a.add(e),()=>{a.delete(e),0===a.size&&s.removeEventListener?.("change",l)}),getValue:()=>s.matches};return n.set(t,c),c}(t,e);return(0,r.useSyncExternalStore)(n.subscribe,n.getValue,()=>!1)}},3730(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2376);function o(e,t){if("function"==typeof e){const n=e(t);return"function"==typeof n?n:void 0}e&&e.hasOwnProperty("current")&&(e.current=t)}function i(e,t,n){const r=n[t];r?(n[t]=void 0,r()):o(e,null)}function s(e){const t=(0,r.useRef)(null),n=(0,r.useRef)([]),s=(0,r.useRef)(e),a=(0,r.useRef)([]);return s.current=e,(0,r.useLayoutEffect)(()=>{const r=t.current;null!==r&&(e.forEach((e,t)=>{const s=n.current[t];e!==s&&(i(s,t,a.current),a.current[t]=o(e,r))}),n.current=e)},e),(0,r.useCallback)(e=>{t.current=e,null===e?(n.current.forEach((e,t)=>{i(e,t,a.current)}),n.current=[]):(n.current=s.current,n.current.forEach((t,n)=>{a.current[n]=o(t,e)}))},[])}},8178(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2376);function o(e,t){const[n,o]=(0,r.useMemo)(()=>[n=>e.subscribe(t,n),()=>e.get(t)],[e,t]);return(0,r.useSyncExternalStore)(n,o,o)}},5766(e,t,n){"use strict";n.d(t,{A:()=>
241o});var r=n(2376);function o(e){const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}},7680(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6890),o=()=>(0,r.A)("(prefers-reduced-motion: reduce)")},1886(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2376);function o(e,t){const n=(0,r.useRef)(void 0);return(0,r.useCallback)(t=>{t?n.current=e(t):n.current&&n.current()},t)}},244(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(2376),o=n(4233);function i(e,t={}){const n=(0,o.A)(e),i=(0,r.useRef)(null),s=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>(i.current&&s.current?.observe(i.current,t),()=>s.current?.disconnect()),[]),(0,o.A)(e=>{if(e===i.current)return;s.current??=new ResizeObserver(n);const{current:r}=s;i.current&&r.unobserve(i.current),i.current=e??null,e&&r.observe(e,t)})}var s=n(3236),a={position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1};function l({onResize:e}){const t=i(t=>{const n=(e=>{let t;if(e.contentBoxSize)if(e.contentBoxSize[0]){const n=e.contentBoxSize[0];t=[n.inlineSize,n.blockSize]}else{const n=e.contentBoxSize;t=[n.inlineSize,n.blockSize]}else t=[e.contentRect.width,e.contentRect.height];const[n,r]=t.map(e=>Math.round(e));return{width:n,height:r}})(t.at(-1));e(n)});return(0,s.jsx)("div",{ref:t,style:a,"aria-hidden":"true"})}var c={width:null,height:null};function u(e,t={}){return e?i(e,t):function(){const[e,t]=(0,r.useState)(c),n=(0,r.useRef)(c),o=(0,r.useCallback)(e=>{var r,o;o=e,((r=n.current).width!==o.width||r.height!==o.height)&&(n.current=e,t(e))},[]);return[(0,s.jsx)(l,{onResize:o}),e]}()}},9700(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(2376),o=n(6890),i={xhuge:1920,huge:1440,wide:1280,xlarge:1080,large:960,medium:782,small:600,mobile:480},s={">=":"min-width","<":"max-width"},a={">=":(e,t)=>
241t>=e,"<":(e,t)=>t<e},l=(0,r.createContext)(null);l.displayName="ViewportMatchWidthContext";var c=(e,t=">=",n=("undefined"!=typeof window?window:void 0))=>{const c=(0,r.useContext)(l),u=!c&&`screen and (${s[t]}: ${i[e]}px)`,d=(0,o.A)(u||void 0,n);return c?a[t](i[e],c):d};c.__experimentalWidthProvider=l.Provider;var u=c},7124(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(5294),{lock:o,unlock:i}=(0,r.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/compose"),s=new WeakMap;var a={};o(a,{subscribeDelegatedListener:function(e,t,n,r=!1){const o=e.ownerDocument,i=o??e,a=void 0===o;let l=s.get(i);l||(l=new Map,s.set(i,l));const c=r?`${t}:capture`:t;let u=l.get(c);if(!u){u=new WeakMap,l.set(c,u);const e=u;i.addEventListener(t,t=>{if(a){const n=e.get(i);if(n)for(const e of n)e(t);return}if(r){const n=[];let r=t.target;for(;r&&(n.push(r),r!==i);)r=r.parentNode;for(let r=n.length-1;r>=0;r--){const o=e.get(n[r]);if(o)for(const e of o)e(t)}}else{let n=t.target;for(;n;){const r=e.get(n);if(r)for(const e of r)e(t);if(n===i)break;n=n.parentNode}}},r)}let d=u.get(e);return d||(d=new Set,u.set(e,d)),d.add(n),()=>{d.delete(n)}}})},6032(e,t,n){"use strict";function r(){const e=new Map,t=new Map;function n(e){const n=t.get(e);if(n)for(const e of n)e()}return{get:t=>e.get(t),set(t,r){e.set(t,r),n(t)},delete(t){e.delete(t),n(t)},subscribe(e,n){let r=t.get(e);return r||(r=new Set,t.set(e,r)),r.add(n),()=>{r.delete(n),0===r.size&&t.delete(e)}}}}n.d(t,{u:()=>r})},9626(e,t,n){"use strict";n.d(t,{Ay:()=>s,ob:()=>r});var r=(0,n(2376).createContext)(!1);r.displayName="AsyncModeContext";var{Consumer:o,Provider:i}=r,s=i},6185(e,t,n){"use strict";n.d(t,{Ay:()=>l,ob:()=>i});var r=n(2376),o=n(8200),i=(0,r.createContext)(o.A);i.displayName="RegistryProviderContext";var{Consumer:s,Provider:a}=i,l=a},5627(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2376),o=n(6185);function i(){return(0,r.useContext)(o.ob)}},9027(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5627),o=e=>{const{dispatch:t}=(0,r.A)();return void 0===e?t:t(e)}},5897(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(7454),o=n(2376),i=n(1218),s=n(5627),a=n(9626);var l=(0,r.y)();function c(e,t){const n=t?e.suspendSelect:e.select,r={};let o,s,a,c,u,d=!1;const f=new Map;function p(t){return e.stores[t]?.store?.getState?.()??{}}return(t,m)=>{function g(){if(d&&t===o)return;const m={current:null},g=e.__unstableMarkListeningStores(()=>t(n,e),m);if(globalThis.SCRIPT_DEBUG&&!u){const r=t(n,e);(0,i.hw)(g,r)||(!function(e,t){if(!e||!t)return;const n="object"==typeof e&&"object"==typeof t?Object.keys(e).filter(n=>e[n]!==t[n]):[];console.warn("The `useSelect` hook returns different values when called with the same state and parameters.\nThis can lead to unnecessary re-renders and performance issues if not fixed.\n\nNon-equal value keys: %s\n\n",n.join(", "))}(g,r),u=!0)}if(c)c.updateStores(m.current);else{for(const e of m.current)f.set(e,p(e));c=(t=>{const n=[...t],o=new Set;return{subscribe:function(t){if(d)for(const e of n)f.get(e)!==p(e)&&(d=!1);f.clear();const i=()=>{d=!1,t()},s=()=>{a?l.add(r,i):i()},c=[];function u(t){c.push(e.subscribe(s,t))}for(const e of n)u(e);return o.add(u),()=>{o.delete(u);for(const e of c.values())e?.();l.cancel(r)}},updateStores:function(e){for(const t of e)if(!n.includes(t)){n.push(t);for(const e of o)e(t)}}}})(m.current)}(0,i.hw)(s,g)||(s=g),o=t,d=!0}return a&&!m&&(d=!1,l.cancel(r)),g(),a=m,{subscribe:c.subscribe,getValue:function(){return g(),s}}}}function u(e,t,n){const r=(0,s.A)(),i=(0,o.useContext)(a.ob),l=(0,o.useMemo)(()=>c(r,e),[r,e]),u=(0,o.useCallback)(t,n),{subscribe:d,getValue:f}=l(u,i),p=(0,o.useSyncExternalStore)(d,f,f);return(0,o.useDebugValue)(p),p}function d(e,t){const n="function"!=typeof e,r=(0,o.useRef)(n);if(n!==r.current){const e=r.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${n?"static":"mapping"} is not allowed`)}return n?(i=e,(0,s.A)().select(i)):u(!1,e,t);var i}},7817(e,t,n){"use strict";n.d(t,{M:()=>l}),n.dn(a);var r={};function o(e){return[e]}function i(e){return!!e&&"object"==typeof e}function s(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function a(e,t){var n,a=t||o;function l(){n=new WeakMap}function c(){var t,o,l,c,u,d=arguments.length;for(c=new Array(d),l=0;l<d;l++)c[l]=arguments[l];for(t=function(e){var t,o,s,a,l=n,c=!0;for(t=0;t<e.length;t++){if(!i(o=e[t])){c=!1;break}l.has(o)?l=l.get(o):(s=new WeakMap,l.set(o,s),l=s)}return l.has(r)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,l.set(r,a)),l.get(r)}(u=a.apply(null,c)),t.isUniqueByDependants||(t.lastDependants&&!s(u,t.lastDependants,0)&&t.clear(),t.lastDependants=u),o=t.head;o;){if(s(o.args,c,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return c.getDependants=a,c.clear=l,l(),c}var l=a},8200(e,t,n){"use strict";n.d(t,{A:()=>r});var r=(0,n(4349).I)()},6319(e,t,n){"use strict";n.d(t,{J:()=>
241o});var r=n(8200);function o(e){return r.A.dispatch(e)}},5705(e,t,n){"use strict";function r(e){const t=new WeakMap,n=(...r)=>{let o=t.get(n.registry);return o||(o=e(n.registry.select),t.set(n.registry,o)),o(...r)};return n.isRegistrySelector=!0,n}function o(e){return e.isRegistryControl=!0,e}n.d(t,{N:()=>r,b:()=>o})},1663(e,t,n){"use strict";n.d(t,{HY:()=>o,kz:()=>s,ti:()=>i});var r=n(8200),o=n(2747).H;r.A.registerGenericStore;var i=r.A.registerStore,s=(r.A.use,e=>r.A.register(e))},8521(e,t,n){"use strict";n.d(t,{T:()=>i,s:()=>o});var r=n(5294),{lock:o,unlock:i}=(0,r.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data")},2747(e,t,n){"use strict";function r(e){const t=Object.keys(e);return function(n={},r){const o={};let i=!1;for(const s of t){const t=e[s],a=n[s],l=t(a,r);o[s]=l,i=i||l!==a}return i?o:n}}n.d(t,{H:()=>r})},9115(e,t,n){"use strict";n.d(t,{A:()=>ie});var r=n.cw(function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){var n=e._map,r=e._arrayTreeMap,o=e._objectTreeMap;if(n.has(t))return n.get(t);for(var i=Object.keys(t).sort(),s=Array.isArray(t)?r:o,a=0;a<i.length;a++){var l=i[a];if(void 0===(s=s.get(l)))return;var c=t[l];if(void 0===(s=s.get(c)))return}var u=s.get("_ekm_value");return u?(n.delete(u[0]),u[0]=t,s.set("_ekm_value",u),n.set(t,u),u):void 0}var i=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach(function(e,t){n.push([t,e])}),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var t,i,s;return t=e,i=[{key:"set",value:function(t,r){if(null===t||"object"!==n(t))return this._map.set(t,r),this;for(var o=Object.keys(t).sort(),i=[t,r],s=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<o.length;a++){var l=o[a];s.has(l)||s.set(l,new e),s=s.get(l);var c=t[l];s.has(c)||s.set(c,new e),s=s.get(c)}var u=s.get("_ekm_value");return u&&this._map.delete(u[0]),s.set("_ekm_value",i),this._map.set(t,i),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=o(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==n(e)?this._map.has(e):void 0!==o(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],i&&r(t.prototype,i),s&&r(t,s),e}();e.exports=i}),o=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapControls=t.asyncControls=t.create=void 0;var r=i();Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=l(n(269)),s=l(n(5684)),a=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}t.create=o.default,t.asyncControls=s.default,t.wrapControls=a.default}),i=()=>n(6286),s={};n.r(s),n.d(s,{countSelectorsByStatus:()=>W,getCachedResolvers:()=>V,getIsResolving:()=>M,getResolutionError:()=>F,getResolutionState:()=>R,hasFinishedResolution:()=>D,hasResolutionFailed:()=>z,hasResolvingSelectors:()=>H,hasStartedResolution:()=>P,isResolving:()=>$});var a={};function l(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.r(a),n.d(a,{failResolution:()=>G,failResolutions:()=>Y,finishResolution:()=>K,finishResolutions:()=>Z,invalidateResolution:()=>X,invalidateResolutionForStore:()=>Q,invalidateResolutionForStoreSelector:()=>J,startResolution:()=>U,startResolutions:()=>q});var c=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),u=()=>Math.random().toString(36).substring(7).split("").join("."),d={INIT:`@@redux/INIT${u()}`,REPLACE:`@@redux/REPLACE${u()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${u()}`};function f(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function p(e,t,n){if("function"!=typeof e)throw new Error(l(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){
241if("function"!=typeof n)throw new Error(l(1));return n(p)(e,t)}let r=e,o=t,i=new Map,s=i,a=0,u=!1;function m(){s===i&&(s=new Map,i.forEach((e,t)=>{s.set(t,e)}))}function g(){if(u)throw new Error(l(3));return o}function h(e){if("function"!=typeof e)throw new Error(l(4));if(u)throw new Error(l(5));let t=!0;m();const n=a++;return s.set(n,e),function(){if(t){if(u)throw new Error(l(6));t=!1,m(),s.delete(n),i=null}}}function b(e){if(!f(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if("string"!=typeof e.type)throw new Error(l(17));if(u)throw new Error(l(9));try{u=!0,o=r(o,e)}finally{u=!1}return(i=s).forEach(e=>{e()}),e}b({type:d.INIT});return{dispatch:b,subscribe:h,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(l(10));r=e,b({type:d.REPLACE})},[c]:function(){const e=h;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(l(11));function n(){const e=t;e.next&&e.next(g())}n();return{unsubscribe:e(n)}},[c](){return this}}}}}function m(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(l(15))};const s={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},a=e.map(e=>e(s));return i=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}(...a)(o.dispatch),{...o,dispatch:i}}}function g(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}r(),o();var h=n(7160);function b(e){return(0,h.Q)(e)&&"string"==typeof e.type}function y(e={},t){const n=Object.entries(e).map(([e,t])=>(n,r,o,i,s)=>{if(l=e,!b(a=n)||a.type!==l)return!1;var a,l;const c=t(n);return g(c)?c.then(i,s):i(c),!0});n.push((e,n)=>!!b(e)&&(t(e),n(),!0));const r=(0,o().create)(n);return e=>new Promise((n,o)=>r(e,e=>{b(e)&&t(e),n(e)},o))}function v(e={}){return t=>{const n=y(e,t.dispatch);return e=>t=>{return(r=t)&&"function"==typeof r[Symbol.iterator]&&"function"==typeof r.next?n(t):e(t);var r}}}var k=n(8838),x=n(2747),w=n(5705),_="@@data/SELECT",S="@@data/RESOLVE_SELECT",C="@@data/DISPATCH";var A={[_]:(0,w.b)(e=>({storeKey:t,selectorName:n,args:r})=>e.select(t)[n](...r)),[S]:(0,w.b)(e=>({storeKey:t,selectorName:n,args:r})=>{const o=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[o](t)[n](...r)}),[C]:(0,w.b)(e=>({storeKey:t,actionName:n,args:r})=>e.dispatch(t)[n](...r))},E=n(8521),I=()=>e=>t=>g(t)?t.then(t=>{if(t)return e(t)}):e(t),T=(e,t)=>()=>n=>r=>{const o=e.select(t).getCachedResolvers();return Object.entries(o).forEach(([n,o])=>{const i=e.stores[t]?.resolvers?.[n];if(!i||!i.shouldInvalidate)return;const{shouldInvalidate:s}=i;o.forEach((o,i)=>{void 0!==o&&("finished"!==o.status&&"error"!==o.status||s(r,...i)&&e.dispatch(t).invalidateResolution(n,i))})}),n(r)};function N(e){return()=>t=>n=>"function"==typeof n?n(e):t(n)}function j(e){if(null==e)return[];const t=e.length;let n=t;for(;n>0&&void 0===e[n-1];)n--;return n===t?e:e.slice(0,n)}var B=(0,n(6025).b)("selectorName")((e=new(r()),t)=>{switch(t.type){case"START_RESOLUTION":{const n=new(r())(e);return n.set(j(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new(r())(e);return n.set(j(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new(r())(e);return n.set(j(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new(r())(e);for(const e of t.args)n.set(j(e),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new(r())(e);for(const e of t.args)n.set(j(e),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new(r())(e);return t.args.forEach((e,r)=>{const o={status:"error",error:void 0},i=t.errors[r];i&&(o.error=i),n.set(j(e),o)}),n}case"INVALIDATE_RESOLUTION":{const n=new(r())(e);return n.delete(j(t.args)),n}}return e}),L=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:n,...r}=e;return r}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return B(e,t);default:return e}},O=n(6786);function R(e,t,n){const r=e[t];if(r)return r.get(j(n))}function M(e,t,n){(0,O.A)("wp.data.select( store ).getIsResolving",{since:"6.6",ver
241sion:"6.8",alternative:"wp.data.select( store ).getResolutionState"});const r=R(e,t,n);return r&&"resolving"===r.status}function P(e,t,n){return void 0!==R(e,t,n)}function D(e,t,n){const r=R(e,t,n)?.status;return"finished"===r||"error"===r}function z(e,t,n){return"error"===R(e,t,n)?.status}function F(e,t,n){const r=R(e,t,n);return"error"===r?.status?r.error:null}function $(e,t,n){return"resolving"===R(e,t,n)?.status}function V(e){return e}function H(e){return Object.values(e).some(e=>Array.from(e._map.values()).some(e=>"resolving"===e[1]?.status))}var W=(0,n(7817).M)(e=>{const t={};return Object.values(e).forEach(e=>Array.from(e._map.values()).forEach(e=>{const n=e[1]?.status??"error";t[n]||(t[n]=0),t[n]++})),t},e=>[e]);function U(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function K(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function G(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function q(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function Z(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function Y(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function X(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function Q(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function J(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}var ee=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},te=(e,t)=>Object.fromEntries(Object.entries(e??{}).map(([e,n])=>[e,t(n,e)])),ne=(e,t)=>t instanceof Map?Object.fromEntries(t):"undefined"!=typeof window&&t instanceof window.HTMLElement?null:t;function re(e,t){const n=new WeakMap;return{get(r){const o=e(r);if(!o)return null;let i=n.get(o);return i||(i=t(o,r),n.set(o,i)),i}}}function oe(e,t){return new Proxy(e,{get:(e,n)=>t.get(n)||Reflect.get(e,n)})}function ie(e,t){const n={},o={},i={privateActions:n,registerPrivateActions:e=>{Object.assign(n,e)},privateSelectors:o,registerPrivateSelectors:e=>{Object.assign(o,e)}},l={name:e,instantiate:l=>{const c=new Set,u=t.reducer,d=function(e,t,n,r){const o={...t.controls,...A},i=te(o,e=>e.isRegistryControl?e(n):e),s=[T(n,e),I,v(i),N(r)],a=[m(...s)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&a.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:ne}}));const{reducer:l,initialState:c}=t,u=(0,x.H)({metadata:L,root:l});return p(u,{root:c},(0,k.A)(...a))}(e,t,l,{registry:l,get dispatch(){return y},get select(){return R},get resolveSelect(){return P}});(0,E.s)(d,i);const f=function(){const e={};return{isRunning:(t,n)=>!(!e[t]||!e[t].get(ee(n))),clear(t,n){e[t]&&e[t].delete(ee(n))},markAsRunning(t,n){e[t]||(e[t]=new(r())),e[t].set(ee(n),!0)}}}();function g(e){return(...t)=>Promise.resolve(d.dispatch(e(...t)))}const h={...te(a,g),...te(t.actions,g)},b=oe(h,re(e=>n[e],g)),y=new Proxy(e=>d.dispatch(e),{get:(e,t)=>b[t]});(0,E.s)(h,b);const w=t.resolvers?te(t.resolvers,se):{};function _(e,t){e.isRegistrySelector&&(e.registry=l);const n=(...t)=>{t=ae(e,t);const n=d.__unstableOriginalGetState();return e.isRegistrySelector&&(e.registry=l),e(n.root,...t)};n.__unstableNormalizeArgs=e.__unstableNormalizeArgs;const r=w[t];return r?function(e,t,n,r,o,i){function s(e){o.isRunning(t,e)||i.hasStartedResolution(t,e)||"function"==typeof n.isFulfilled&&n.isFulfilled(r.getState(),...e)||(o.markAsRunning(t,e),setTimeout(async()=>{o.clear(t,e),r.dispatch(U(t,e));try{const o=n.fulfill(...e);o&&await r.dispatch(o),r.dispatch(K(t,e))}catch(n){r.dispatch(G(t,e,n))}},0))}const a=(...t)=>(s(t=ae(e,t)),e(...t));return a.hasResolver=!0,a}(n,t,r,d,f,S):(n.hasResolver=!1,n)}const S=te(s,function(e){const n=(n,r,...o)=>{if(n){const e=t.selectors?.[n];e&&(r=ae(e,r))}const i=d.__unstableOriginalGetState();return e(i.metadata,n,r,...o)};return n.hasResolver=!1,n}),C=te(t.selectors,_),j={...S,...C},B=re(e=>o[e],_),O=oe(j,B);for(const e of Object.keys(o))B.get(e);const R=new Proxy(e=>e(d.__unstableOriginalGetState()),{get:(e,t)=>O[t]});(0,E.s)(j,O);const M=function(e,t,n){return(r,o)=>r.hasResolver?(...i)=>new Promise((s,a)=>{const l=t[o],c=()=>n.hasFinishedResolution(o,i)||"function"==typeof l.isFulfilled&&l.isFulfilled(e.getState(),...i),u=e=>{if(n.hasResolutionFailed(o,i)){const e=n.getResolutionError(o,i);a(e)}else s(e)},d=()=>r(...i),f=d();if(c())return u(f);const p=e.subscribe(()=>{c()&&(p(),u(d()))})}):async(...e)=>r(...e)}(d,w,S),P=te(C,M),D=oe(P,re(e=>B.get(e),M));(0,E.s)(P,D);const z=function(e,t){return(n,r)=>n.hasResolver?(...o)=>{const i=n(...o);if(t.hasFinishedResolution(r,o)){if(t.hasResolutionFailed(r,o))throw t.getResolutionError(r,o);return i}throw new Promise(n=>{const i=e.subscribe(()=>{t.hasFinishedResolution(r,o)&&(n(),i())})})}:n}(d,S),F={...S,...te(C,z)},$=oe(F,re(e=>B.get(e),z));(0,E.s)(F,$);d.__unstableOriginalGetState=d.getState,d.getState=()=>d.__unstableOriginalGetState().root;let V=d.__unstableOriginalGetState();return d.subscribe(()=>{const e=d.__unstableOriginalGetState(),t=e!==V;if(V=e,t)for(const e of c)e()}),{reducer:u,store:d,actions:h,selectors:j,resolvers:w,getSelectors:()=>j,getResolveSelectors:()=>P,getSuspendSelectors:()=>F,getActions:()=>h,subscribe:e=>(c.add(e),()=>c.delete(e))}}};return(0,E.s)(l,i),l}function se(e){return e.fulfill?e:{...e,fulfill:e}}function ae(e,t){return e.__unstableNormalizeArgs&&"function"==typeof e.__unstableNormalizeArgs&&t?.length?e.__unstableNormalizeArgs(t):t}},6025(e,t,n){"use strict";n.d(t,{b:()=>r});var r=e=>t=>(n={},r)=>{const o=r[e];if(void 0===o)return n;const i=t(n[o],r);return i===n[o]?n:{...n,[o]:i}}},4349(e,t,n){"use strict";n.d(t,{I:()=>c});var r=n(6786),o=n(9115),i={name:"core/data",instantiate(e){const t=t=>(n,...r)=>e.select(n)[t](...r),n=t=>(n,...r)=>e.dispatch(n)[t](...r);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map(e=>[e,t(e)])),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invali
241dateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map(e=>[e,n(e)])),subscribe:()=>()=>()=>{}}}};function s(){let e=!1,t=!1;const n=new Set,r=()=>Array.from(n).forEach(e=>e());return{get isPaused(){return e},subscribe:e=>(n.add(e),()=>n.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,r())},emit(){e?t=!0:r()}}}var a=n(8521);function l(e){return"string"==typeof e?e:e.name}function c(e={},t=null){const n={},c=s();let u=null;function d(){c.emit()}function f(e,r){if(n[e])return console.error('Store "'+e+'" is already registered.'),n[e];const o=r();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=s();const i=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),n=i(()=>{o.emitter.isPaused?o.emitter.emit():e()});return()=>{n?.(),t?.()}},n[e]=o,o.subscribe(d),t)try{(0,a.T)(o.store).registerPrivateActions((0,a.T)(t).privateActionsOf(e)),(0,a.T)(o.store).registerPrivateSelectors((0,a.T)(t).privateSelectorsOf(e))}catch{}return o}let p={batch:function(e){if(c.isPaused)e();else{c.pause(),Object.values(n).forEach(e=>e.emitter.pause());try{e()}finally{c.resume(),Object.values(n).forEach(e=>e.emitter.resume())}}},stores:n,namespaces:n,subscribe:(e,r)=>{if(!r)return c.subscribe(e);const o=l(r),i=n[o];return i?i.subscribe(e):t?t.subscribe(e,r):c.subscribe(e)},select:function(e){const r=l(e);u?.add(r);const o=n[r];return o?o.getSelectors():t?.select(r)},resolveSelect:function(e){const r=l(e);u?.add(r);const o=n[r];return o?o.getResolveSelectors():t&&t.resolveSelect(r)},suspendSelect:function(e){const r=l(e);u?.add(r);const o=n[r];return o?o.getSuspendSelectors():t&&t.suspendSelect(r)},dispatch:function(e){const r=l(e),o=n[r];return o?o.getActions():t&&t.dispatch(r)},use:function(e,t){if(!e)return;return p={...p,...e(p,t)},p},register:function(e){f(e.name,()=>e.instantiate(p))},registerGenericStore:function(e,t){(0,r.A)("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),f(e,()=>t)},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return f(e,()=>(0,o.A)(e,t).instantiate(p)).store},__unstableMarkListeningStores:function(e,t){u=new Set;try{return e.call(this)}finally{t.current=Array.from(u),u=null}}};p.register(i);for(const[t,n]of Object.entries(e))p.register((0,o.A)(t,n));t&&t.subscribe(d);const m=(g=p,Object.fromEntries(Object.entries(g).map(([e,t])=>"function"!=typeof t?[e,t]:[e,(...t)=>p[e](...t)])));var g;return(0,a.s)(m,{privateActionsOf:e=>{try{return(0,a.T)(n[e].store).privateActions}catch{return{}}},privateSelectorsOf:e=>{try{return(0,a.T)(n[e].store).privateSelectors}catch{return{}}}}),m}},1113(e,t,n){"use strict";n.d(t,{L:()=>o});var r=n(8200);function o(e){return r.A.select(e)}}
241,6786(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(935),o=Object.create(null);function i(e,t={}){const{since:n,version:i,alternative:s,plugin:a,link:l,hint:c}=t,u=`${e} is deprecated${n?` since version ${n}`:""}${i?` and will be removed${a?` from ${a}`:""} in version ${i}`:""}.${s?` Please use ${s} instead.`:""}${l?` See: ${l}`:""}${c?` Note: ${c}`:""}`;u in o||((0,r.Eo)("deprecated",e,t,u),console.warn(u),o[u]=!0)}},7835(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8218);function o(e){if(!e.collapsed){const t=Array.from(e.getClientRects());if(1===t.length)return t[0];const n=t.filter(({width:e})=>e>1);if(0===n.length)return e.getBoundingClientRect();if(1===n.length)return n[0];let{top:r,bottom:o,left:i,right:s}=n[0];for(const{top:e,bottom:t,left:a,right:l}of n)e<r&&(r=e),t>o&&(o=t),a<i&&(i=a),l>s&&(s=l);return new window.DOMRect(i,r,s-i,o-r)}const{startContainer:t}=e,{ownerDocument:n}=t;if("BR"===t.nodeName){const{parentNode:o}=t;(0,r.e)(o,"parentNode");const i=Array.from(o.childNodes).indexOf(t);(0,r.e)(n,"ownerDocument"),(e=n.createRange()).setStart(o,i),e.setEnd(o,i)}const o=e.getClientRects();if(o.length>1)return null;if(1===o.length&&t.nodeType===t.TEXT_NODE&&e.startOffset>0&&e.startOffset<t.length){(0,r.e)(n,"ownerDocument");const o=(e,r)=>{const o=n.createRange();return o.setStart(t,e),o.setEnd(t,r),o.getBoundingClientRect()},i=o(e.startOffset-1,e.startOffset),s=o(e.startOffset,e.startOffset+1);if(i.bottom<=s.top)return null}let i=o[0];if(!i||0===i.height){(0,r.e)(n,"ownerDocument");const t=n.createTextNode("â");(e=e.cloneRange()).insertNode(t),i=e.getClientRects()[0],(0,r.e)(t.parentNode,"padNode.parentNode"),t.parentNode.removeChild(t)}return i}},2317(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8218),o=n(7815);function i(e){if((0,o.A)(e))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;const t=e.textContent||"";if(""===t||"\ufeff"===t)return!0;const{ownerDocument:n}=e,{defaultView:i}=n;(0,r.e)(i,"defaultView");const a=i.getSelection();(0,r.e)(a,"selection");const l=a.rangeCount?a.getRangeAt(0):null;if(!l)return!0;const{startContainer:c,endContainer:u,startOffset:d,endOffset:f}=l;if(c===e&&u===e&&0===d&&f===e.childNodes.length)return!0;const p=e.lastChild;(0,r.e)(p,"lastChild");const m=u.nodeType===u.TEXT_NODE?u.data.length:u.childNodes.length;return s(c,e,"firstChild")&&s(u,e,"lastChild")&&0===d&&f===m}function s(e,t,n){let r=t;do{if(e===r)return!0;for(r=r[n];r&&r.nodeType===r.TEXT_NODE&&""===r.nodeValue;)r=r["lastChild"===n?"previousSibling":"nextSibling"]}while(r);return!1}},7815(e,t,n){"use strict";function r(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}n.d(t,{A:()=>r})},9166(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8218);function o(e){(0,r.e)(e.parentNode,"node.parentNode"),e.parentNode.removeChild(e)}},8569(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9166);function o(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let o=n.length;for(;o--;){const e=n[o];if("SCRIPT"===e.tagName)(0,r.A)(e);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}return t.innerHTML}},5394(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8569);function o(e){e=(0,r.A)(e);const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}},288(e,t,n){"use strict";n.d(t,{XC:()=>h});var r={};n.r(r),n.d(r,{find:()=>s});var o={};function i(e){if("function"==typeof e.checkVisibility){if(!e.checkVisibility({visibilityProperty:!0}))return!1}else{const t=e.ownerDocument.defaultView?.getComputedStyle(e).visibility;if("hidden"===t||"collapse"===t)return!1}return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function s(e,{sequential:t=!1}={}){const n=e.querySelectorAll(function(e){return[e?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","summary","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}(t));return Array.from(n).filter(e=>{if(!i(e))return!1;if(e.closest("[inert]"))return!1;const{nodeName:t}=e;return"AREA"!==t||function(e){const t=e.closest("map[name]");if(!t)return!1;const n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&i(n)}(e)})}function a(e){const t=e.getAttribute("tabindex");
241return null===t?0:parseInt(t,10)}function l(e){return-1!==a(e)}function c(e,t){return{element:e,index:t}}function u(e){return e.element}function d(e,t){const n=a(e.element),r=a(t.element);return n===r?e.index-t.index:n-r}function f(e){return e.filter(l).map(c).sort(d).map(u).reduce(function(){const e={};return function(t,n){const{nodeName:r,type:o,checked:i,name:s}=n;if("INPUT"!==r||"radio"!==o||!s)return t.concat(n);const a=e.hasOwnProperty(s);if(!i&&a)return t;if(a){const n=e[s];t=t.filter(e=>e!==n)}return e[s]=n,t.concat(n)}}(),[])}function p(e){return f(s(e))}function m(e){return f(s(e.ownerDocument.body)).reverse().find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING)}function g(e){return f(s(e.ownerDocument.body)).find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING)}n.r(o),n.d(o,{find:()=>p,findNext:()=>g,findPrevious:()=>m,isTabbableIndex:()=>l});var h={focusable:r,tabbable:o}},8218(e,t,n){"use strict";function r(e,t){0}n.d(t,{e:()=>r})},5596(e,t,n){"use strict";n.d(t,{A:()=>m});var r,o,i,s,a=n(2376),l=/<(\/)?(\w+)\s*(\/)?>/g;function c(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}var u=e=>{const t="object"==typeof e&&null!==e,n=t&&Object.values(e);return t&&n.length>0&&n.every(e=>(0,a.isValidElement)(e))};function d(e){const t=function(){const e=l.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,o,i,s]=e,a=n.length;if(s)return["self-closed",i,t,a];if(o)return["closer",i,t,a];return["opener",i,t,a]}(),[n,u,d,m]=t,g=s.length,h=d>o?o:null;if(u&&!e[u])return f(),!1;switch(n){case"no-more-tokens":if(0!==g){const{leadingTextStart:e,tokenStart:t}=s.pop();i.push(r.substr(e,t))}return f(),!1;case"self-closed":return 0===g?(null!==h&&i.push(r.substr(h,d-h)),i.push(e[u]),o=d+m,!0):(p(c(e[u],d,m)),o=d+m,!0);case"opener":return s.push(c(e[u],d,m,d+m,h)),o=d+m,!0;case"closer":if(0===g)return globalThis.SCRIPT_DEBUG&&console.warn(`Unmatched closing tag '</${u}>' in createInterpolateElement. The rest of the string was not interpolated.`),f(),!1;if(1===g)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:l,children:c}=s.pop(),u=e?r.substr(o,e-o):r.substr(o);u&&c.push(u);null!==n&&i.push(r.substr(n,l-n));i.push((0,a.cloneElement)(t,null,...c))}(d),o=d+m,!0;const t=s.pop(),n=r.substr(t.prevOffset,d-t.prevOffset);t.children.push(n),t.prevOffset=d+m;const l=c(t.element,t.tokenStart,t.tokenLength,d+m);return l.children=t.children,p(l),o=d+m,!0;default:return f(),!1}}function f(){const e=r.length-o;0!==e&&i.push(r.substr(o,e))}function p(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:i,children:l}=e,c=s[s.length-1],u=r.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push((0,a.cloneElement)(t,null,...l)),c.prevOffset=i||n+o}var m=function(e,t){if(r=e,o=0,i=[],s=[],l.lastIndex=0,!u(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(d(t));return(0,a.createElement)(a.Fragment,null,...i)}},2557(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2376);function o({children:e,...t}){let n="";return r.Children.toArray(e).forEach(e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)}),(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})}},9546(e,t,n){"use strict";let r;n.d(t,{d5:()=>i,qX:()=>s});var o=n(5149),{createPortal:i,flushSync:s,findDOMNode:a,render:l,hydrate:c,unmountComponentAtNode:u}=(n(8950),r||(r=n.t(o,2)))},621(e,t,n){"use strict";n.d(t,{Ay:()=>N});var r=n(7160),o=n(4135),i=n(9957),s=n(2376),a=n(2557),l=(0,s.createContext)(void 0);l.displayName="ElementContext";var{Provider:c,Consumer:u}=l,d=(0,s.forwardRef)(()=>null),f=(0,s.memo)(()=>null),p=new Set(["string","boolean","number"]),m=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),g=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","o
241pen","playsinline","readonly","required","reversed","selected","typemustmatch"]),h=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),b=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function y(e,t){return t.some(t=>0===e.indexOf(t))}function v(e){return"key"===e||"children"===e}function k(e,t){return"style"===e?function(e){if(!(0,r.Q)(e))return e;let t;const n=e;for(const e in n){const r=n[e];if(null==r)continue;t?t+=";":t="";t+=C(e)+":"+A(e,r)}return t}(t):t}var x=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),w=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),_=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e),{});function S(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return w[t]?w[t]:x[t]?(0,o.c)(x[t]):_[t]?_[t]:t}function C(e){return e.startsWith("--")?e:y(e,["ms","O","Moz","Webkit"])?"-"+(0,o.c)(e):(0,o.c)(e)}function A(e,t){return"number"!=typeof t||0===t||y(e,["--"])||b.has(e)?t:t+"px"}function E(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return T(e,t,n);switch(typeof e){case"string":return(0,i.Zn)(e);case"number":return e.toString()}const{type:r,props:o}=e;switch(r){case s.StrictMode:case s.Fragment:return T(o.children,t,n);case a.A:const{children:e,...r}=o;return I(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return I(r,o,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?function(e,t,n,r={}){const o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());const i=E(o.render(),n,r);return i}(r,o,t,n):E(r(o,n),t,n)}switch(r&&r.$$typeof){case c.$$typeof:return T(o.children,o.value,
241n);case u.$$typeof:return E(o.children(t||r._currentValue),t,n);case d.$$typeof:return E(r.render(o),t,n);case f.$$typeof:return E((0,s.createElement)(r.type,o),t,n)}return""}function I(e,t,n,r={}){let o="";if("textarea"===e&&t.hasOwnProperty("value")){o=T(t.value,n,r);const{value:e,...i}=t;t=i}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=T(t.children,n,r));if(!e)return o;const s=function(e){let t="";for(const n in e){const r=S(n);if(!(0,i.i8)(r))continue;let o=k(n,e[n]);if(!p.has(typeof o))continue;if(v(n))continue;const s=g.has(r);if(s&&!1===o)continue;const a=s||y(n,["data-","aria-"])||h.has(r);("boolean"!=typeof o||a)&&(t+=" "+r,s||("string"==typeof o&&(o=(0,i.Gj)(o)),t+='="'+o+'"'))}return t}(t);return m.has(e)?"<"+e+s+"/>":"<"+e+s+">"+o+"</"+e+">"}function T(e,t,n={}){let r="";const o=Array.isArray(e)?e:[e];for(let e=0;e<o.length;e++){r+=E(o[e],t,n)}return r}var N=E},9957(e,t,n){"use strict";n.d(t,{Gj:()=>s,jG:()=>l,Zn:()=>a,i8:()=>c});var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function o(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function i(e){return e.replace(/</g,"<")}function s(e){return function(e){return e.replace(/>/g,">")}(i(function(e){return e.replace(/"/g,""")}(o(e))))}function a(e){return i(o(e))}function l(e){return i(e.replace(/&/g,"&"))}function c(e){return!r.test(e)}},7782(e,t,n){"use strict";var r=n(7319),o=n(913),i=n(792),s=n(5334),a=n(3236),l=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})}),c="core/bold",u=(0,o.__)("Bold"),d={name:c,title:u,tagName:"strong",className:null,edit({isActive:e,value:t,onChange:n,onFocus:o,isVisible:s=!0}){function d(){n((0,r.Kt)(t,{type:c,title:u}))}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aX,{type:"primary",character:"b",onUse:d}),s&&(0,a.jsx)(i.RD,{name:"bold",icon:l,title:u,onClick:function(){n((0,r.Kt)(t,{type:c,title:u})),o()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),(0,a.jsx)(i.EW,{inputType:"formatBold",onInput:d})]})}},f=n(8756),p="core/code",m=(0,o.__)("Inline code"),g={name:p,title:m,tagName:"code",className:null,__unstableInputRule(e){const{start:t,text:n}=e;if("`"!==n[t-1])return e;if(t-2<0)return e;const o=n.lastIndexOf("`",t-2);if(-1===o)return e;const i=o,s=t-2;return i===s?e:(e=(0,r.TF)(e,i,i+1),e=(0,r.TF)(e,s,s+1),e=(0,r.Wc)(e,{type:p},i,s))},edit({value:e,onChange:t,onFocus:n,isActive:o}){function s(){t((0,r.Kt)(e,{type:p,title:m})),n()}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aX,{type:"access",character:"x",onUse:s}),(0,a.jsx)(i.RD,{icon:f.A,title:m,onClick:s,isActive:o,role:"menuitemcheckbox"})]})}},h=n(9562),b=n(3022),y=n(2376),v=n(167),k=n(2484),x=n(3730),w=n(6786),_=n(5449),S=n(3423),C=n(687),A=n(7266),E=n(3192),I=n(359);var T={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"},N=({hideHTMLArrows:e})=>e?T:"",j=(0,_.A)(C.Ay,{target:"ep09it41"})(N,";"),B=(0,_.A)(E.A,{target:"ep09it40"})("&&&&&{color:",A.l.theme.accent,";}"),L={smallSpinButtons:(0,S.AH)("width:",(0,I.x)(5),";min-width:",(0,I.x)(5),";height:",(0,I.x)(5),";","")},O=n(7322);function R(e){const t=Number(e);return isNaN(t)?0:t}function M(...e){return e.reduce((e,t)=>e+R(t),0)}function P(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}var D=n(7273),z=n(3832),F=n(358),$=n(4558),V=()=>{};var H=(0,y.forwardRef)(function(e,t){const{__unstableStateReducer:n,className:r,dragDirection:i="n",hideHTMLArrows:s=!1,spinControls:l=(s?"none":"native"),isDragEnabled:c=!0,isShiftStepEnabled:u=!0,label:d,max:f=1/0,min:p=-1/0,required:m=!1,shiftStep:g=10,step:h=1,spinFactor:_=1,type:S="number",value:C,size:A="default",suffix:E,onChange:I=V,...T}=e;s&&(0,w.A)("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const N=(0,y.useRef)(null),H=(0,x.A)([N,t]),W="any"===h,U=W?1:(0,D.GB)(h),K=(0,D.GB)(_)*U,G=(e,t)=>(W||(e=function(e,t,n){const r=R(e),o=R(t),i=R(n),s=Math.max(P(n),P(t)),a=o%i?o:0,l=Math.round((r-a)/i)*i+a;return s?R(l.toFixed(s)):l}(e,p,t??U)),`${function(e,t,n){const r=R(e);return Math.max(t,Math.min(r,n))}(e,p,f)}
241`),q=G(0),Z="number"===S?"off":void 0,Y=(0,b.A)("components-number-control",r),X=(0,$.l)()("small"===A&&L.smallSpinButtons),Q=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&u,o=r?(0,D.GB)(g)*K:K;let i=(0,D.r6)(e)?q:e;return"up"===t?i=M(i,o):"down"===t&&(i=function(...e){return e.reduce((e,t,n)=>{const r=R(t);return 0===n?r:e-r},0)}(i,o)),G(i,r?o:void 0)},J=e=>t=>I(String(Q(C,e,t)),{event:{...t,target:N.current}});return(0,a.jsx)(j,{autoComplete:Z,inputMode:"numeric",...T,className:Y,dragDirection:i,hideHTMLArrows:"native"!==l,isDragEnabled:c,label:d,max:f===1/0?void 0:f,min:p===-1/0?void 0:p,ref:H,required:m,step:h,type:S,value:C,__unstableStateReducer:(e,t)=>{const r={...e},{type:s,payload:a}=t,l=a.event,d=r.value;if(s!==O.wX&&s!==O.r7||(r.value=Q(d,s===O.wX?"up":"down",l)),s===O.j&&c){const[e,t]=a.delta,n=a.shiftKey&&u,s=n?(0,D.GB)(g)*K:K;let l,c;switch(i){case"n":c=t,l=-1;break;case"e":c=e,l=(0,o.V8)()?-1:1;break;case"s":c=t,l=1;break;case"w":c=e,l=(0,o.V8)()?1:-1}if(0!==c){c=Math.ceil(Math.abs(c))*Math.sign(c);const e=c*s*l;r.value=G(M(d,e),n?s:void 0)}}if(s===O.bR||s===O.cJ){const e=!1===m&&""===d;r.value=e?d:G(d)}return n?.(r,t)??r},size:A,suffix:"custom"===l?(0,a.jsxs)(a.Fragment,{children:[E,(0,a.jsx)(F.A,{marginBottom:0,marginRight:2,children:(0,a.jsxs)(z.A,{spacing:1,children:[(0,a.jsx)(B,{className:X,icon:v.A,size:"small",label:(0,o.__)("Increment"),onClick:J("up")}),(0,a.jsx)(B,{className:X,icon:k.A,size:"small",label:(0,o.__)("Decrement"),onClick:J("down")})]})})]}):E,onChange:I})});H.displayName="NumberControl";var W=H,U=n(8438),K=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})}),G=n(7123),q=n(6068),Z=["image"],Y="core/image",X=(0,o.__)("Inline image");function Q(e){if(!e?.className)return;const[,t]=e.className.match(/wp-image-(\d+)/)??[];return t?parseInt(t,10):void 0}var J={name:Y,title:X,keywords:[(0,o.__)("photo"),(0,o.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function({value:e,onChange:t,onFocus:n,isObjectActive:s,activeObjectAttributes:l,contentRef:c}){return(0,a.jsxs)(i.qJ,{children:[(0,a.jsx)(i.Q8,{allowedTypes:Z,value:Q(l),onSelect:({id:o,url:i,alt:s,width:a})=>{t((0,r.PE)(e,{type:Y,attributes:{className:`wp-image-${o}`,style:`width: ${Math.min(a,150)}px;`,url:i,alt:s}})),n()},render:({open:e})=>(0,a.jsx)(i.RD,{icon:K,title:s?(0,o.__)("Replace image"):X,onClick:e,isActive:s})}),s&&(0,a.jsx)(ee,{value:e,onChange:t,activeObjectAttributes:l,contentRef:c})]})}};function ee({value:e,onChange:t,activeObjectAttributes:n,contentRef:i}){const s=n?.style,l=n?.alt,c=s?.replace(/\D/g,""),[u,d]=(0,y.useState)(c),[f,p]=(0,y.useState)(l),m=u!==c||f!==l,g=(0,r.d6)({editableContentElement:i.current,settings:J});return(0,a.jsx)(h.Ay,{focusOnMount:!1,anchor:g,className:"block-editor-format-toolbar__image-popover",children:(0,a.jsx)("form",{className:"block-editor-format-toolbar__image-container-content",onSubmit:r=>{const o=e.replacements.slice();o[e.start]={type:Y,attributes:{...n,style:u?`width: ${u}px;`:"",alt:f??""}},t({...e,replacements:o}),r.preventDefault()},children:(0,a.jsxs)(G.B,{direction:"column",gap:"lg",children:[(0,a.jsx)(W,{label:(0,o.__)("Width"),value:u,min:1,onChange:e=>{d(e)}}),(0,a.jsx)(U.A,{label:(0,o.__)("Alternative text"),value:f??"",onChange:e=>{p(e)},help:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(q.Link,{openInNewTab:!0,href: 242// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. 243// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. 244(0,o.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,o.__)("Describe the purpose of the image.")}),(0,a.jsx)("br",{}),(0,o.__)("Leave empty if decorative.")]})}),(0,a.jsx)(G.B,{justify:"right",children:(0,a.jsx)(E.A,{disabled:!m,accessibleWhenDisabled:!0,variant:"primary",type:"submit",size:"compact",children:(0,o.__)("Apply")})})]})})})}var te=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
244currentColor",children:(0,a.jsx)(s.wA,{d:"M12.5 5L10 19h1.9l2.5-14z"})}),ne="core/italic",re=(0,o.__)("Italic"),oe={name:ne,title:re,tagName:"em",className:null,edit({isActive:e,value:t,onChange:n,onFocus:o,isVisible:s=!0}){function l(){n((0,r.Kt)(t,{type:ne,title:re}))}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aX,{type:"primary",character:"i",onUse:l}),s&&(0,a.jsx)(i.RD,{name:"italic",icon:te,title:re,onClick:function(){n((0,r.Kt)(t,{type:ne,title:re})),o()},isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),(0,a.jsx)(i.EW,{inputType:"formatItalic",onInput:l})]})}},ie=n(1462),se=n(2249),ae=/^(tel:)?(\+)?\d{6,15}$/;var le=n(8520),ce=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(s.wA,{d:"M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75",vectorEffect:"non-scaling-stroke"})}),ue=n(9042),de=n(5596),fe=n(6855),pe=n(9027),me=n(5897),ge=n(9123),he=n(6880);var be=n(4746);var ye=n(4464);function ve(e){if(!e)return!1;const t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){const e=(0,ge.J)(t);if(!e||!(0,he.v)(e))return!1;if(e.startsWith("http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;const n=function(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}(t);if(!n||!function(e){return!!e&&/^[^\s#?]+$/.test(e)}(n))return!1;const r=(0,be.Y)(t);if(r&&!function(e){return!!e&&/^[^\s#?]+$/.test(e)}(r))return!1;const o=function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}(t);if(o&&!function(e){return!!e&&/^[^\s#?\/]+$/.test(e)}(o))return!1;const i=function(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}(t);if(i&&!(0,ye.R)(i))return!1}return!(t.startsWith("#")&&!(0,ye.R)(t))}function ke(e,t,n=e.start,r=e.end){const o={start:void 0,end:void 0},{formats:i}=e;let s,a;if(!i?.length)return o;const l=i.slice(),c=l[n]?.find(({type:e})=>e===t.type),u=l[r]?.find(({type:e})=>e===t.type),d=l[r-1]?.find(({type:e})=>e===t.type);if(c)s=c,a=n;else if(u)s=u,a=r;else{if(!d)return o;s=d,a=r-1}const f=l[a].indexOf(s);return{start:n=(n=we(l,a,s,f))<0?0:n,end:(r=_e(l,a,s,f))+1}}function xe(e,t,n,r,o){let i=t;const s={forwards:1,backwards:-1}[o]||1,a=-1*s;for(;e[i]&&e[i][r]===n;)i+=s;return i+=a,i}var we=(...e)=>xe(...e,"backwards"),_e=(...e)=>xe(...e,"forwards"),Se=n(1740),Ce=n(3715),Ae=n(1436),Ee=({setting:e,value:t,onChange:n})=>{const r=!!t?.cssClasses?.length,[i,s]=(0,y.useState)(r),l=`css-classes-setting-${(0,Se.A)(Ee)}`,c=r=>{const o="string"==typeof r?r.replace(/,/g," ").replace(/\s+/g," ").trim():r;n({...t,[e.id]:o})};return(0,a.jsxs)("fieldset",{children:[(0,a.jsx)(Ae.s,{render:(0,a.jsx)("legend",{}),children:e.title}),(0,a.jsxs)(G.B,{direction:"column",gap:"md",children:[(0,a.jsx)(Ce.A,{label:e.title,onChange:()=>{i?(r&&c(""),s(!1)):s(!0)},checked:i||r,"aria-expanded":i,"aria-controls":i?l:void 0}),i&&(0,a.jsx)("div",{id:l,children:(0,a.jsx)(C.Ay,{label:(0,o.__)("CSS classes"),value:t?.cssClasses,onChange:c,help:(0,o.__)("Separate multiple classes with spaces."),__unstableInputWidth:"100%"})})]})]})},Ie=Ee,Te=[...i.mF.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,o.__)("Mark as nofollow")}
244,{id:"cssClasses",title:(0,o.__)("Additional CSS class(es)"),render:(e,t,n)=>(0,a.jsx)(Ie,{setting:e,value:t,onChange:n})}];var Ne=function({isActive:e,activeAttributes:t,value:n,onChange:s,onFocusOutside:l,stopAddingLink:c,contentRef:u,focusOnMount:d}){const f=function(e,t){let n=e.start,o=e.end;if(t){const t=ke(e,{type:"core/link"});n=t.start??e.start,o=t.end??e.end}return(0,r.di)(e,n,o)}(n,e).text,{selectionChange:p}=(0,pe.A)(i.M_),{createPageEntity:m,userCanCreatePages:g,selectionStart:b}=(0,me.A)(e=>{const{getSettings:t,getSelectionStart:n}=e(i.M_),r=t();return{createPageEntity:r.__experimentalCreatePageEntity,userCanCreatePages:r.__experimentalUserCanCreatePages,selectionStart:n()}},[]),v=(0,y.useMemo)(()=>({url:t.url,type:t.type,id:t.id,opensInNewTab:"_blank"===t.target,nofollow:t.rel?.includes("nofollow"),title:f,cssClasses:t.class}),[t.class,t.id,t.rel,t.target,t.type,t.url,f]),k={...Le,isActive:e},x=(0,r.d6)({editableContentElement:u.current,settings:k});return(0,a.jsx)(h.Ay,{anchor:x,animate:!1,onClose:c,onFocusOutside:l,placement:"bottom",offset:8,shift:!0,focusOnMount:d,constrainTabbing:!0,children:(0,a.jsx)(i.mF,{value:v,onChange:function(t){const i=v?.url,a=!i;t={...v,...t};const l=(0,fe.i)(t?.url??""),u=function({url:e,type:t,id:n,opensInNewWindow:r,nofollow:o,cssClasses:i}
244){const s={type:"core/link",attributes:{url:e}};t&&(s.attributes.type=t),n&&(s.attributes.id=n),r&&(s.attributes.target="_blank",s.attributes.rel=s.attributes.rel?s.attributes.rel+" noopener":"noopener"),o&&(s.attributes.rel=s.attributes.rel?s.attributes.rel+" nofollow":"nofollow");const a=i?.trim();return a?.length&&(s.attributes.class=a),s}({url:l,type:t.type,id:void 0!==t.id&&null!==t.id?String(t.id):void 0,opensInNewWindow:t.opensInNewTab,nofollow:t.nofollow,cssClasses:t.cssClasses}),d=t.title||l;let m;if((0,r.kW)(n)&&!e){const e=(0,r.Yr)(n,d);return m=(0,r.Wc)(e,u,n.start,n.start+d.length),s(m),c(),void p({clientId:b.clientId,identifier:b.attributeKey,start:n.start+d.length+1})}if(d===f){const e=ke(n,{type:"core/link"});m=(0,r.Wc)(n,u,e.start,e.end)}else{m=(0,r.vt)({text:d}),m=(0,r.Wc)(m,u,0,d.length);const e=ke(n,{type:"core/link"}),t=(0,r.lD)(n,e.start,e.start);if(!t)return;const[o,i]=t,s=(0,r.HC)(i,f,m);m=(0,r.xW)(o,s)}s(m),a||c(),ve(l)?e?(0,ue.L)((0,o.__)("Link edited."),"assertive"):(0,ue.L)((0,o.__)("Link inserted."),"assertive"):(0,ue.L)((0,o.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")},onRemove:function(){const e=(0,r.k2)(n,"core/link");s(e),c(),(0,ue.L)((0,o.__)("Link removed."),"assertive")},hasRichPreviews:!0,createSuggestion:m&&async function(e){const t=await m({title:e,status:"draft"});return{id:t.id,type:t.type,title:t.title.rendered,url:t.link,kind:"post-type"}},withCreateSuggestion:g,createSuggestionButtonText:function(e){return(0,de.A)((0,o.nv)( 245/* translators: %s: search term. */ 246/* translators: %s: search term. */ 247(0,o.__)("Create page: <mark>%s</mark>"),e),{mark:(0,a.jsx)("mark",{})})},hasTextControl:!0,settings:Te,showInitialSuggestions:!0,suggestionsQuery:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}})})},je="core/link",Be=(0,o.__)("Link");var Le={name:je,title:Be,tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",_id:"id",target:"target",rel:"rel",class:"class"},__unstablePasteRule(e,{html:t,plainText:n}){const o=(t||n).replace(/<[^>]+>/g,"").trim();if(!(0,ie.m)(o)||!/^https?:/.test(o))return e;window.console.log("Created link:\n\n",o);const i={type:je,attributes:{url:(0,le.S)(o)}};return(0,r.kW)(e)?(0,r.Yr)(e,(0,r.Wc)((0,r.vt)({text:n}),i,0,n.length)):(0,r.Wc)(e,i)},edit:function({isActive:e,activeAttributes:t,value:n,onChange:s,onFocus:l,contentRef:c,isVisible:u=!0}){const[d,f]=(0,y.useState)(!1),[p,m]=(0,y.useState)(null);function g(t){const o=(0,r.rf)((0,r.di)(n));var i;!e&&o&&(0,ie.m)(o)&&ve(o)?s((0,r.Wc)(n,{type:je,attributes:{url:o}})):!e&&o&&(0,se.x)(o)?s((0,r.Wc)(n,{type:je,attributes:{url:`mailto:${o}`}})):!e&&o&&(i=(i=o).replace(/[-.() ]/g,""),ae.test(i))?s((0,r.Wc)(n,{type:je,attributes:{url:`tel:${o.replace(/\D/g,"")}`}})):(t&&m({el:t,action:null}),f(!0))}(0,y.useEffect)(()=>{e||f(!1)},[e]),(0,y.useLayoutEffect)(()=>{const t=c.current;if(t)return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)};function n(t){const n=t.target.closest("[contenteditable] a");n&&e&&(f(!0),m({el:n,action:"click"}))}},[c,e]);const h=!("A"===p?.el?.tagName&&"click"===p?.action),b=!(0,r.kW)(n);return(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(i.aX,{type:"primary",character:"k",onUse:g}),(0,a.jsx)(i.aX,{type:"primaryShift",character:"k",onUse:function(){s((0,r.k2)(n,je)),(0,ue.L)((0,o.__)("Link removed."),"assertive")}}),u&&(0,a.jsx)(i.RD,{name:"link",icon:ce,title:e?(0,o.__)("Link"):Be,onClick:e=>{g(e.currentTarget)},isActive:e||d,shortcutType:"primary",shortcutCharacter:"k","aria-haspopup":"true","aria-expanded":d}),u&&d&&(0,a.jsx)(Ne,{stopAddingLink:function(){f(!1),"BUTTON"===p?.el?.tagName?p.el.focus():l(),m(null)},onFocusOutside:function(){f(!1),m(null)},isActive:e,activeAttributes:t,value:n,onChange:s,contentRef:c,focusOnMount:!!h&&"firstElement"})]})}},Oe=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{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"})}),Re="core/strikethrough",Me=(0,o.__)("Strikethrough"),Pe={name:Re,title:Me,tagName:"s",className:null,edit({isActive:e,value:t,onChange:n,onFocus:o}){function s(){n((0,r.Kt)(t,{type:Re,title:Me})),o()}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aX,{type:"access",character:"d",onUse:s}),(0,a.jsx)(i.RD,{icon:Oe,title:Me,onClick:s,isActive:e,role:"menuitemcheckbox"})]})}},De="core/underline",ze=(0,o.__)("Underline"),Fe={name:De,title:ze,tagName:"span",className:null,attributes:{style:"style"}
247,edit({value:e,onChange:t}){const n=()=>{t((0,r.Kt)(e,{type:De,attributes:{style:"text-decoration: underline;"},title:ze}))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aX,{type:"primary",character:"u",onUse:n}),(0,a.jsx)(i.EW,{inputType:"formatUnderline",onInput:n})]})}},$e=n(3109),Ve=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})}),He=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{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-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),We=[{name:"color",title:(0,o.__)("Text")},{name:"backgroundColor",title:(0,o.__)("Backgroun
247d")}];function Ue(e=""){return e.split(";").reduce((e,t)=>{if(t){const[n,r]=t.split(":");"color"===n&&(e.color=r),"background-color"===n&&r!==Ye&&(e.backgroundColor=r)}return e},{})}function Ke(e="",t){return e.split(" ").reduce((e,n)=>{if(n.startsWith("has-")&&n.endsWith("-color")){const r=n.replace(/^has-/,"").replace(/-color$/,""),o=(0,i.MK)(t,r);e.color=o.color}return e},{})}function Ge(e,t,n){const o=(0,r.SX)(e,t);return o?{...Ue(o.attributes?.style),...Ke(o.attributes?.class,n)}:{}}function qe({name:e,property:t,value:n,onChange:o}){const s=(0,me.A)(e=>{const{getSettings:t}=e(i.M_);return t().colors??[]},[]),l=(0,y.useMemo)(()=>Ge(n,e,s),[e,n,s]);return(0,a.jsx)(i.rE,{value:l[t],onChange:a=>{o(function(e,t,n,o){const{color:s,backgroundColor:a}={...Ge(e,t,n),...o};if(!s&&!a)return(0,r.k2)(e,t);const l=[],c=[],u={};if(a?l.push(["background-color",a].join(":")):l.push(["background-color",Ye].join(":")),s){const e=(0,i.cr)(n,s);if(e&&e.slug){const t=(0,i.tQ)("color",e.slug);t&&c.push(t)}else l.push(["color",s].join(":"))}return l.length&&(u.style=l.join(";")),c.length&&(u.class=c.join(" ")),(0,r.Wc)(e,{type:t,attributes:u})}(n,e,s,{[t]:a}))},enableAlpha:!0,__experimentalIsRenderedInSidebar:!0})}function Ze({name:e,value:t,onChange:n,onClose:o,contentRef:i,isActive:s}){const l={...tt,isActive:s},c=(0,r.d6)({editableContentElement:i.current,settings:l});return(0,a.jsx)(h.Ay,{onClose:o,className:"format-library__inline-color-popover",anchor:c,children:(0,a.jsxs)(q.Root,{defaultValue:We[0].name,children:[(0,a.jsx)(q.List,{children:We.map(e=>(0,a.jsx)(q.Tab,{value:e.name,children:e.title},e.name))}),We.map(r=>(0,a.jsx)(q.Panel,{value:r.name,tabIndex:-1,children:(0,a.jsx)(qe,{name:e,property:r.name,value:t,onChange:n})},r.name))]})})}var Ye="rgba(0, 0, 0, 0)",Xe="core/text-color",Qe=(0,o.__)("Highlight"),Je=[];function et(e,t){const{ownerDocument:n}=e,{defaultView:r}=n,o=r?.getComputedStyle(e),i=o?.getPropertyValue(t);return"background-color"===t&&i===Ye&&e.parentElement?et(e.parentElement,t):i}var tt={name:Xe,title:Qe,tagName:"mark",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function({value:e,onChange:t,isActive:n,activeAttributes:o,contentRef:s}){const[l,c=Je]=(0,i.t0)("color.custom","color.palette"),[u,d]=(0,y.useState)(!1),f=(0,y.useMemo)(()=>function(e,{color:t,backgroundColor:n}){if(e&&(t||n))return{color:t||et(e,"color"),backgroundColor:n===Ye?et(e,"background-color"):n}}(s.current,Ge(e,Xe,c)),[s,e,c]),p=!!c.length||l;return p||n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.RD,{className:"format-library-text-color-button",isActive:n,icon:(0,a.jsx)($e.A,{icon:Object.keys(o).length?Ve:He,style:f}),title:Qe,onClick:p?()=>d(!0):()=>t((0,r.k2)(e,Xe)),role:"menuitemcheckbox"}),u&&(0,a.jsx)(Ze,{name:Xe,onClose:()=>d(!1),value:e,onChange:t,contentRef:s,isActive:n})]}):null}},nt=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),rt="core/subscript",ot=(0,o.__)("Subscript"),it={name:rt,title:ot,tagName:"sub",className:null,edit:({isActive:e,value:t,onChange:n,onFocus:o})=>(0,a.jsx)(i.RD,{icon:nt,title:ot,onClick:function(){n((0,r.Kt)(t,{type:rt,title:ot})),o()},isActive:e,role:"menuitemcheckbox"})},st=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),at="core/superscript",lt=(0,o.__)("Superscript"),ct={name:at,title:lt,tagName:"sup",className:null,edit:({isActive:e,value:t,onChange:n,onFocus:o})=>(0,a.jsx)(i.RD,{icon:st,title:lt,onClick:function(){n((0,r.Kt)(t,{type:at,title:lt})),o()},isActive:e,role:"menuitemcheckbox"})},ut=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
247currentColor",children:(0,a.jsx)(s.wA,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),dt="core/keyboard",ft=(0,o.__)("Keyboard input"),pt={name:dt,title:ft,tagName:"kbd",className:null,edit:({isActive:e,value:t,onChange:n,onFocus:o})=>(0,a.jsx)(i.RD,{icon:ut,title:ft,onClick:function(){n((0,r.Kt)(t,{type:dt,title:ft})),o()},isActive:e,role:"menuitemcheckbox"})},mt=(0,a.jsxs)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,a.jsx)(s.wA,{d:"M9.75 10.25C9.75 9.00736 10.7574 8 12 8C13.2426 8 14.25 9.00736 14.25 10.25C14.25 11.4083 13.3748 12.3621 12.2496 12.4863C12.1124 12.5015 12 12.6119 12 12.75V14M12 15V16.5",vectorEffect:"non-scaling-stroke"}),(0,a.jsx)(s.wA,{d:"M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]}),gt="core/unknown",ht=(0,o.__)("Clear Unknown Formatting");var bt={name:gt,title:ht,tagName:"*",className:null,edit({isActive:e,value:t,onChange:n,onFocus:o}){if(!e&&!function(e){return!(0,r.kW)(e)&&(0,r.di)(e).formats.some(e=>e.some(e=>e.type===gt))}(t))return null;return(0,a.jsx)(i.RD,{name:"unknown",icon:mt,title:ht,onClick:function(){n((0,r.k2)(t,gt)),o()},isActive:!0})}},yt=n(3533),vt=n(6069),kt=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})}),xt="core/language",wt=(0,o.__)("Language"),_t={name:xt,title:wt,tagName:"bdo",className:null,attributes:{lang:"lang",dir:"dir"},edit:function({isActive:e,value:t,onChange:n,contentRef:o}){const[s,l]=(0,y.useState)(!1),c=()=>{l(e=>!e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.RD,{icon:kt,label:wt,title:wt,onClick:()=>{e?n((0,r.k2)(t,xt)):c()},isActive:e,role:"menuitemcheckbox"}),s&&(0,a.jsx)(St,{value:t,onChange:n,onClose:c,contentRef:o})]})}};function St({value:e,contentRef:t,onChange:n,onClose:i}){const s=(0,r.d6)({editableContentElement:t.current,settings:_t}),[l,c]=(0,y.useState)(""),[u,d]=(0,y.useState)("ltr");return(0,a.jsx)(h.Ay,{className:"block-editor-format-toolbar__language-popover",anchor:s,onClose:i,children:(0,a.jsxs)(G.B,{render:(0,a.jsx)("form",{}),direction:"column",gap:"lg",className:"block-editor-format-toolbar__language-container-content",onSubmit:t=>{t.preventDefault(),n((0,r.Wc)(e,{type:xt,attributes:{lang:l,dir:u}})),i()},children:[(0,a.jsx)(yt.A,{label:wt,value:l,onChange:e=>c(e),help:(0,o.__)('A valid language attribute, like "en" or "fr".')}),(0,a.jsx)(vt.A,{label:(0,o.__)("Text direction"),value:u,options:[{label:(0,o.__)("Left to right"),value:"ltr"},{label:(0,o.__)("Right to left"),value:"rtl"}],onChange:e=>d(e)}),(0,a.jsx)(G.B,{justify:"right",children:(0,a.jsx)(E.A,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",text:(0,o.__)("Apply")})})]})})}var Ct=(0,a.jsx)(s.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(s.wA,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})}),At="core/math",Et=(0,o.__)("Math");function It({value:e,onChange:t,activeAttributes:n,contentRef:i,latexToMathML:s}){const[l,c]=(0,y.useState)(n?.["data-latex"]||""),[u,d]=(0,y.useState)(null),f=(0,y.useRef)(null),p=(0,r.d6)({editableContentElement:i.current,settings:Tt});return(0,a.jsx)(h.Ay,{placement:"bottom-start",offset:8,focusOnMount:!1,anchor:p,onFocusOutside:()=>f.current?.reportValidity(),className:"block-editor-format-toolbar__math-popover",children:(0,a.jsx)("form",{ref:f,style:{minWidth:"300px",padding:"4px"},onSubmit:e=>e.preventDefault(),children:(0,a.jsx)(q.ValidatedInputControl,{hideLabelFromVision:!0,label:(0,o.__)("LaTeX math syntax"),value:l,customValidity:u?{type:"invalid",message:u}:void 0,onValueChange:n=>{c(n);let r="";if(n&&s)try{r=s(n,{displayMode:!1}),d(null)}catch(e){d(e instanceof Error?e.message:(0,o.__)("Could not parse the LaTeX math syntax."))}else d(null);const i=e.replacements.slice();i[e.start]={type:At,attributes:{"data-latex":n},innerHTML:r},t({...e,replacements:i})},placeholder:(0,o.__)("e.g., x^2, \\frac{a}{b}"),autoComplete:"off",className:"block-editor-format-toolbar__math-in
247put"})})})}var Tt={name:At,title:Et,tagName:"math",className:null,attributes:{"data-latex":"data-latex"},contentEditable:!1,edit:function({value:e,onChange:t,onFocus:o,isObjectActive:s,activeObjectAttributes:l,contentRef:c}){const[u,d]=(0,y.useState)();return(0,y.useEffect)(()=>{Promise.resolve().then(()=>n.t(6068,19)).then(e=>{d(()=>e.default)})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.RD,{icon:Ct,title:Et,onClick:function(){let n;if(s){const t=l?.["data-latex"]||"";n=(0,r.Yr)(e,t),n.start=n.end-t.length}else{const t=(0,r.rf)((0,r.di)(e));let o="";if(t&&u)try{o=u(t,{displayMode:!1})}catch{}n=(0,r.PE)(e,{type:At,attributes:{"data-latex":t},innerHTML:o}),n.start=n.end-1}t(n),o()},isActive:s}),s&&(0,a.jsx)(It,{value:e,onChange:t,activeAttributes:l,contentRef:c,latexToMathML:u})]})}},Nt="core/non-breaking-space",jt=(0,o.__)("Non breaking space");function Bt({contentRef:e}){const t=(0,r.d6)({editableContentElement:e.current,settings:Lt});return(0,a.jsx)(h.Ay,{anchor:t,children:(0,a.jsx)("div",{style:{whiteSpace:"nowrap",padding:"4px"},children:(0,o.__)("Non-breaking space")})})}var Lt={name:Nt,title:jt,tagName:"span",className:"non-breaking-space",edit({value:e,onChange:t,contentRef:n}){const o=e.start&&e.end?e.text.slice(e.start,e.end):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aX,{type:"primaryShift",character:" ",onUse:function(){t((0,r.Yr)(e,"Â "))}}),"Â "===o&&(0,a.jsx)(Bt,{contentRef:n})]})},__experimentalCreatePrepareEditableTree:()=>(e,t)=>{let n={formats:e,text:t},o=-1;do{o=t.indexOf("Â ",o+1),-1!==o&&(n=(0,r.Wc)(n,{type:Nt},o,o+1))}while(-1!==o);return n.formats}};[d,g,J,oe,Le,Pe,Fe,tt,it,ct,pt,bt,_t,Tt,Lt].forEach(({name:e,...t})=>(0,r.DE)(e,t))},935(e,t,n){"use strict";n.d(t,{ip:()=>g,U2:()=>h,W5:()=>C,FF:()=>p,se:()=>m,Eo:()=>_,FC:()=>k,V5:()=>b});var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,s,a=10){const l=e[t];if(!o(n))return;if(!r(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof a)return void console.error("If specified, the hook priority must be a number.");const c={callback:s,priority:a,namespace:i};if(l[n]){const e=l[n].handlers;let t;for(t=e.length;t>0&&!(a>=e[t-1].priority);t--);t===e.length?e[t]=c:e.splice(t,0,c),l.__current.forEach(e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++})}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,s,a)}};var s=function(e,t,n=!1){return function(i,s){const a=e[t];if(!o(i))return;if(!n&&!r(s))return;if(!a[i])return 0;let l=0;if(n)l=a[i].handlers.length,a[i]={runs:a[i].runs,handlers:[]};else{const e=a[i].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===s&&(e.splice(t,1),l++,a.__current.forEach(e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),l}};var a=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some(e=>e.namespace===r):n in o}};var l=function(e,t,n,r){return function(o,...i){const s=e[t];s[o]||(s[o]={handlers:[],runs:0}),s[o].runs++;const a=s[o].handlers;if(!a||!a.length)return n?i[0]:void 0;const l={name:o,currentIndex:0};return(r?async function(){try{s.__current.add(l);let e=n?i[0]:void 0;for(;l.currentIndex<a.length;){const t=a[l.currentIndex];e=await t.callback.apply(null,i),n&&(i[0]=e),l.currentIndex++}return n?e:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let e=n?i[0]:void 0;for(;l.currentIndex<a.length;
247){e=a[l.currentIndex].callback.apply(null,i),n&&(i[0]=e),l.currentIndex++}return n?e:void 0}finally{s.__current.delete(l)}})()}};var c=function(e,t){return function(){const n=e[t],r=Array.from(n.__current);return r.at(-1)?.name??null}};var u=function(e,t){return function(n){const r=e[t];return void 0===n?r.__current.size>0:Array.from(r.__current).some(e=>e.name===n)}};var d=function(e,t){return function(n){const r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},f=class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=a(this,"actions"),this.hasFilter=a(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")}};var p=function(){return new f},m=p(),{addAction:g,addFilter:h,removeAction:b,removeFilter:y,hasAction:v,hasFilter:k,removeAllActions:x,removeAllFilters:w,doAction:_,doActionAsync:S,applyFilters:C,applyFiltersAsync:A,currentAction:E,currentFilter:I,doingAction:T,doingFilter:N,didAction:j,didFilter:B,actions:L,filters:O}=m},8520(e,t,n){"use strict";var r;function o(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===r&&(r=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),r.innerHTML=e;const t=r.textContent??"";return r.innerHTML="",t}n.d(t,{S:()=>o})},913(e,t,n){"use strict";n.d(t,{__:()=>__,_n:()=>_n,_x:()=>_x,V8:()=>b,fh:()=>h,nv:()=>l});var r,o,i,s,a=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function l(e,...t){return function(e,...t){var n=0;return Array.isArray(t[0])&&(t=t[0]),e.replace(a,function(){var e,r,o,i,s;return e=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n],n++),void 0===r?(void 0===e&&(e=n+1),n++,s=t[e-1]):t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(s=t[0][r]),"f"===i?s=parseFloat(s)||0:"d"===i&&(s=parseInt(s)||0),void 0!==o&&("f"===i?s=s.toFixed(o):"s"===i&&(s=s.substr(0,o))),null!=s?s:"")})}(e,...t)}r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var c={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function u(e){var t=function(e){for(var t,n,a,l,c=[],u=[];t=e.match(s);){for(n=t[0],(a=e.substr(0,t.index).trim())&&c.push(a);l=u.pop();){if(i[n]){if(i[n][0]===l){n=i[n][1]||n;break}}else if(o.indexOf(l)>=0||r[l]<r[n]){u.push(l);break}c.push(l)}i[n]||u.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&c.push(e),c.concat(u.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,s,a,l=[];for(n=0;n<e.length;n++){if(s=e[n],i=c[s]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{a=i.apply(null,o)}catch(e){return e}}else a=t.hasOwnProperty(s)?t[s]:+s;l.push(a)}return l[0]}(t,e)}}var d={contextDelimiter:"�",onMissingKey:null};function f(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},d)this.options[n]=void 0!==t&&n in t?t[n]:d[n]}f.prototype.getPluralForm=function(e,t){var n,r,o,i=this.pluralForms[e];
247return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=function(e){var t=u(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},f.prototype.dcnpgettext=function(e,t,n,r,o){var i,s,a;return i=void 0===o?0:this.getPluralForm(e,o),s=n,t&&(s=t+this.options.contextDelimiter+n),(a=this.data[e][s])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var p={plural_forms:e=>1===e?0:1},m=/^i18n\.(n?gettext|has_translation)(_|$)/,g=((e,t,n)=>{const r=new f({}),o=new Set,i=()=>{o.forEach(e=>e())},s=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...p,...r.data[t]?.[""]},delete r.pluralForms[t]},a=(e,t)=>{s(e,t),i()},l=(e="default",t,n,o,i)=>(r.data[e]||s(void 0,e),r.dcnpgettext(e,t,n,o,i)),c=e=>e||"default",_x=(e,t,r)=>{let o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),o,e,t,r)):o};if(e&&a(e,t),n){const e=e=>{m.test(e)&&i()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:a,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...p,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],i()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},a(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x,_n:(e,t,r,o)=>{let i=l(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+c(o),i,e,t,r,o)):i},_nx:(e,t,r,o,i)=>{let s=l(i,o,e,t,r);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+c(i),s,e,t,r,o,i)):s},isRTL:()=>"rtl"===_x("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+"�"+e:e;let s=!!r.data?.[o??"default"]?.[i];return n&&(s=n.applyFilters("i18n.has_translation",s,e,t,o),s=n.applyFilters("i18n.has_translation_"+c(o),s,e,t,o)),s}}})(void 0,void 0,n(935).se),h=(g.getLocaleData.bind(g),g.setLocaleData.bind(g)),__=(g.resetLocaleData.bind(g),g.subscribe.bind(g),g.__.bind(g)),_x=g._x.bind(g),_n=g._n.bind(g),b=(g._nx.bind(g),g.isRTL.bind(g));g.hasTranslation.bind(g)},3109(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2376),o=(0,r.forwardRef)(({icon:e,size:t=24,style:n,...o},i)=>{const s=e.props.style,a=s||n?{...s,...n}:void 0;return(0,r.cloneElement)(e,{width:t,height:t,...o,...a?{style:a}:{},ref:i})})},8901(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,o.jsx)(r.wA,{d:"M7 12L10 15L17 8",vectorEffect:"non-scaling-stroke"})})},5673(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,o.jsx)(r.wA,{d:"M7 11L12 15L17 11",vectorEffect:"non-scaling-stroke"})})},8756(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,o.jsx)(r.wA,{d:"M7.99997 7L3.70708 11.2929C3.31655 11.6834 3.31655 12.3166 3.70708 12.7071L7.99997 17M16 17L20.2929 12.7071C20.6834 12.3166 20.6834 11.6834 20.2929 11.2929L16 7",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})},6927(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})})},3970(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
247currentColor",children:(0,o.jsx)(r.wA,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})})},167(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,o.jsx)(r.wA,{d:"M12 18V6M18 12H6",vectorEffect:"non-scaling-stroke"})})},2484(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,o.jsx)(r.wA,{d:"M7 12H17",vectorEffect:"non-scaling-stroke"})})},8450(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5334),o=n(3236),i=(0,o.jsx)(r.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.wA,{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"})})},1218(e,t,n){"use strict";n.d(t,{hw:()=>o});var r=n(5935);function o(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return(0,r.A)(e,t);if(Array.isArray(e)&&Array.isArray(t))return function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(e,t)}return e===t}},5935(e,t,n){"use strict";function r(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;let o=0;for(;o<n.length;){const r=n[o],i=e[r];if(void 0===i&&!t.hasOwnProperty(r)||i!==t[r])return!1;o++}return!0}n.d(t,{A:()=>r})},8312(e,t,n){"use strict";n.d(t,{Fm:()=>a,G_:()=>i,JF:()=>S,Kp:()=>u,M3:()=>f,NS:()=>m,PX:()=>g,SJ:()=>h,UP:()=>p,_A:()=>A,_f:()=>l,dz:()=>C,kx:()=>E,t6:()=>c,wn:()=>s,yZ:()=>d});var r=n(913),o=n(17),i=8,s=9,a=13,l=27,c=32,u=35,d=36,f=37,p=38,m=39,g=40,h=46,b="alt",y="ctrl",v="meta",k="shift";function x(e){return e.length<2?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)}function w(e,t){return Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]))}var _={primary:e=>e()?[v]:[y],primaryShift:e=>e()?[k,v]:[y,k],primaryAlt:e=>e()?[b,v]:[y,b],secondary:e=>e()?[k,b,v]:[y,k,b],access:e=>e()?[y,b]:[k,b],ctrl:()=>[y],alt:()=>[b],ctrlShift:()=>[y,k],shift:()=>[k],shiftAlt:()=>[k,b],undefined:()=>[]},S=w(_,e=>(t,n=o.H)=>[...e(n),t.toLowerCase()].join("+")),C=w(w(_,e=>(t,n=o.H)=>{const r=n(),i={[b]:r?"â¥":"Alt",[y]:r?"â":"Ctrl",[v]:"â",[k]:r?"â§":"Shift"};return[...e(n).reduce((e,t)=>{const n=i[t]??t;return r?[...e,n]:[...e,n,"+"]},[]),x(t)]}),e=>(t,n=o.H)=>e(t,n).join("")),A=w(_,e=>(t,n=o.H)=>{const i=n(),s={[k]:"Shift",[v]:i?"Command":"Control",[y]:"Control",[b]:i?"Option":"Alt", 248/* translators: comma as in the character ',' */ 249",":(0,r.__)("Comma"), 250/* translators: period as in the character '.' */ 251".":(0,r.__)("Period"), 252/* translators: backtick as in the character '`' */ 253"`":(0,r.__)("Backtick"), 254/* translators: tilde as in the character '~' */ 255"~":(0,r.__)("Tilde")};return[...e(n),t].map(e=>x(s[e]??e)).join(i?" ":" + ")});var E=w(_,e=>(t,n,r=o.H)=>{const i=e(r),s=function(e){return[b,y,v,k].filter(t=>e[`${t}Key`])}(t),a={Comma:",",Backslash:"\\",IntlRo:"\\",IntlYen:"\\"},l=i.filter(e=>!s.includes(e)),c=s.filter(e=>!i.includes(e));if(l.length>0||c.length>0)return!1;let u=t.key.toLowerCase();return n?(t.altKey&&1===n.length&&(u=String.fromCharCode(t.keyCode).toLowerCase()),t.shiftKey&&1===n.length&&a[t.code]&&(u=a[t.code]),"del"===n&&(n="delete"),u===n.toLowerCase()):i.includes(u)})},17(e,t,n){"use strict";function r(e){if(!e){if("undefined"==typeof window)return!1;e=window}const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}n.d(t,{H:()=>r})},7995(e,t,n){"use strict";function r(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||229===t.keyCode||e(t)}}n.d(t,{n:()=>r})},5334(e,t,n){"use strict";n.d(t,{rw:()=>a,t4:()=>l,wA:()=>s});var r=n(3022),o=n(2376),i=n(3236),s=e=>(0,o.createElement)("path",e),a=e=>(0,o.createElement)("rect",e),l=(0,o.forwardRef)(({className:e,isPressed:t,...n},o)=>{const s={...n,className:(0,r.A)(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,i.jsx)("svg",{...s,ref:o})});l.displayName="SVG"},7454(e,t,n){"use strict";n.d(t,{y:()=>o});n(2655);var r="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback,o=()=>{const e=new Map;let t=!1;const n=o=>{for(const[t,n]of e)if(e.delete(t),n(),"number"==typeof o||o.timeRemaining()<=0)break;0!==e.size?r(n):t=!1};return{add:(o,i)=>{e.set(o,i),t||(t=!0,r(n))},flush:t=>{const n=e.get(t);return void 0!==n&&(e.delete(t),n(),!0)},cancel:t=>e.delete(t),reset:()=>{e.clear(),t=!1}}}},5294(e,t,n){"use strict";n.d(t,{yf:()=>o});var r=["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/patterns","@wordpress/preferences","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/sync","@wordpress/theme","@wordpress/dataviews","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-engine","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views","@wordpress/widget-dashboard"],o=(e,t)=>{if(!r.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:i,unlock:s}};function i(e,t){if(!e)throw new Error("Cannot lock an undefined object.");const n=e;l in n||(n[l]={}),a.set(n[l],t)}function s(e){if(!e)throw new Error("Cannot unlock an undefined object.");const t=e;if(!(l in t))throw new Error("Cannot unlock an object that was not locked before. ");return a.get(t[l])}var a=new WeakMap,l=Symbol("Private API ID")},7319(e,t,n){"use strict";n.d(t,{EF:()=>V,Ng:()=>k,Wc:()=>y,xW:()=>X,vt:()=>H,SX:()=>Q,o_:()=>J,rf:()=>z,Yr:()=>se,PE:()=>ce,kW:()=>ee,Im:()=>te,jb:()=>ct,DE:()=>re,TF:()=>ae,k2:()=>oe,HC:()=>le,di:()=>ue,lD:()=>de,Ky:()=>T,Kt:()=>me,MX:()=>ge,d6:()=>gt});var r={};n.r(r),n.d(r,{getFormatType:()=>c,getFormatTypeForBareElement:()=>u,getFormatTypeForClassName:()=>d,getFormatTypes:()=>l});var o={};n.r(o),n.d(o,{addFormatTypes:()=>f,removeFormatTypes:()=>p});var i=n(9115),s=n(1663);var a=(0,s.HY)({formatTypes:function(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...t.formatTypes.reduce((e,t)=>
255({...e,[t.name]:t}),{})};case"REMOVE_FORMAT_TYPES":return Object.fromEntries(Object.entries(e).filter(([e])=>!t.names.includes(e)))}return e}}),l=(0,n(7817).M)(e=>Object.values(e.formatTypes),e=>[e.formatTypes]);function c(e,t){return e.formatTypes[t]}function u(e,t){const n=l(e);return n.find(({className:e,tagName:n})=>null===e&&t===n)||n.find(({className:e,tagName:t})=>null===e&&"*"===t)}function d(e,t){return l(e).find(({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0)}function f(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function p(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}var m=(0,i.A)("core/rich-text",{reducer:a,selectors:r,actions:o});function g(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;let n=e.attributes,r=t.attributes;if((e.unregisteredAttributes||t.unregisteredAttributes)&&(n={...n,...e.unregisteredAttributes},r={...r,...t.unregisteredAttributes}),n===r)return!0;if(!n||!r)return!1;const o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;const s=o.length;for(let e=0;e<s;e++){const t=o[e];if(n[t]!==r[t])return!1}return!0}function h(e){const t=e.formats.slice();return t.forEach((e,n)=>{const r=t[n-1];if(r){const o=e.slice();o.forEach((e,t)=>{const n=r[t];g(e,n)&&(o[t]=n)}),t[n]=o}}),{...e,formats:t}}function b(e,t,n){return(e=e.slice())[t]=n,e}function y(e,t,n=e.start,r=e.end){const{formats:o,activeFormats:i}=e,s=o.slice();if(n===r){const e=s[n]?.find(({type:e})=>e===t.type);if(e){const o=s[n].indexOf(e);for(;s[n]&&s[n][o]===e;)s[n]=b(s[n],o,t),n--;for(r++;s[r]&&s[r][o]===e;)s[r]=b(s[r],o,t),r++}}else{let e=1/0;for(let o=n;o<r;o++)if(s[o]){s[o]=s[o].filter(({type:e})=>e!==t.type);const n=s[o].length;n<e&&(e=n)}else s[o]=[],e=0;for(let o=n;o<r;o++)s[o].splice(e,0,t)}return h({...e,formats:s,activeFormats:[...i?.filter(({type:e})=>e!==t.type)||[],t]})}(0,s.kz)(m);var v=n(1113);function k({implementation:e},t){return k.body||(k.body=e.createHTMLDocument("").body),k.body.innerHTML=t,k.body}var x="",w=n(9957);function _(e,t=[]){const{formats:n,start:r,end:o,activeFormats:i}=e;if(void 0===r)return t;if(r===o){if(i)return i;const e=n[r-1]||t,o=n[r]||t;return e.length<o.length?e:o}if(!n[r])return t;const s=n.slice(r,o),a=[...s[0]];let l=s.length;for(;l--;){const e=s[l];if(!e)return t;let n=a.length;for(;n--;){const t=a[n];e.find(e=>g(t,e))||a.splice(n,1)}if(0===a.length)return t}return a||t}function S(e){return(0,v.L)(m).getFormatType(e)}function C(e,t){if(t)return e;const n={};for(const t in e){let r=t;t.startsWith("data-disable-rich-text-")&&(r=t.slice(23)),n[r]=e[t]}return n}function A({type:e,tagName:t,attributes:n,unregisteredAttributes:r,object:o,boundaryClass:i,isEditableTree:s}){const a=S(e);let l={};if(i&&s&&(l["data-rich-text-format-boundary"]="true"),!a)return n&&(l={...n,...l}),{type:e,attributes:C(l,s),object:o};l={...r,...l};for(const e in n){const t=!!a.attributes&&a.attributes[e];t?l[t]=n[e]:l[e]=n[e]}return a.className&&(l.class?l.class=`${a.className} ${l.class}`:l.class=a.className),{type:t||a.tagName,object:a.object,attributes:C(l,s)}}function E(e,t,n){do{if(e[n]!==t[n])return!1}while(n--);return!0}function I({value:e,preserveWhiteSpace:t,createEmpty:n,append:r,getLastChild:o,getParent:i,isText:s,getText:a,remove:l,appendText:c,onStartIndex:u,onEndIndex:d,isEditableTree:f,placeholder:p}){const{formats:m,replacements:g,text:h,start:b,end:y}=e,v=m.length+1,k=n(),w=_(e),C=w[w.length-1];let I,T;r(k,"");for(let e=0;e<v;e++){const n=h.charAt(e),v=f&&(!T||"\n"===T),w=m[e];let _=o(k);if(w&&w.forEach((e,t)=>{if(_&&I&&E(w,I,t))return void(_=o(_));const{type:n,tagName:c,attributes:u,unregisteredAttributes:d}=e,p=f&&e===C,m=i(_),g=r(m,A({type:n,tagName:c,attributes:u,unregisteredAttributes:d,boundaryClass:p,isEditableTree:f}));s(_)&&0===a(_).length&&l(_),_=r(g,"")}),0===e&&(u&&0===b&&u(k,_),d&&0===y&&d(k,_)),n===x){const t=g[e];if(!t)continue;const{type:n,attributes:o,innerHTML:s}=t,a=S(n);if(f&&"#comment"===n)_=r(i(_),{type:"span",attributes:{contenteditable:"false","data-rich-text-comment":o["data-rich-text-comment"]}}),r(r(_,{type:"span"}),o["data-rich-text-comment"].trim());else if(f||"script"!==n)if(!1===a?.contentEditable){if(s||f){if(_=i(_),f){const t={contenteditable:"false","data-rich-text-bogus":!0};b===e&&y===e+1&&(t["data-rich-text-format-boundary"]=!0),_=r(_,{type:"span",attributes:t}),f&&e+1===h.length&&r(i(_),"\ufeff")}_=r(_,A({...t,isEditableTree:f})),s&&r(_,{html:s})}}else _=r(i(_),A({...t,object:!0,isEditableTree:f}));else _=r(i(_),A({type:"script",isEditableTree:f})),r(_,{html:decodeURIComponent(o["data-rich-text-script"])});_=r(i(_),"")}else t||"\n"!==n?s(_)?c(_,n):_=r(i(_),n):(_=r(i(_),{type:"br",attributes:f?{"data-rich-text-line-break":"true"}:void 0,object:!0}),_=r(i(_),""));u&&b===e+1&&u(k,_),d&&y===e+1&&d(k,_),v&&e===h.length&&(r(i(_),"\ufeff"),p&&0===h.length&&r(i(_),{type:"span",attributes:{"data-rich-text-placeholder":p,style:"pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;"}})),I=w,T=n}return k}function T({value:e,preserveWhiteSpace:t}){return D(I({value:e,preserveWhiteSpace:t,createEmpty:N,append:B,getLastChild:j,getParent:O,isText:R,getText:M,remove:P,appendText:L}).children)}function N(){return{}}function j({children:e}){return e&&e[e.length-1]}function B(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function L(e,t){e.text+=t}function O({parent:e}){return e}function R({text:e}){return"string"==typeof e}function M({text:e}){return e}function P(e){const t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function D(e=[]){return e.map(e=>void 0!==e.html?e.html:void 0===e.text?function({type:e,attributes:t,object:n,children:r}){if("#comment"===e)return`\x3c!--${t["data-rich-text-comment"]}--\x3e`;let o="";for(const e in t)(0,w.i8)(e)&&(o+=` ${e}="${(0,w.Gj)(t[e])}"`);return n?`<${e}${o}
255>`:`<${e}${o}>${D(r)}</${e}>`}(e):(0,w.jG)(e.text)).join("")}function z({text:e}){return e.replace(x,"")}function F(){return{formats:[],replacements:[],text:""}}function $({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=(0,v.L)(m).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=(0,v.L)(m).getFormatTypeForBareElement(e)),!n)return t?{type:e,attributes:t}:{type:e};if(n.__experimentalCreatePrepareEditableTree&&!n.__experimentalCreateOnChangeEditableValue)return null;if(!t)return{formatType:n,type:n.name,tagName:e};const r={},o={},i={...t};for(const e in n.attributes){const t=n.attributes[e];r[e]=i[t],delete i[t],void 0===r[e]&&delete r[e]}for(const e in i)o[e]=t[e];!1===n.contentEditable&&delete o.contenteditable;const s={formatType:n,type:n.name,tagName:e};return Object.keys(r).length&&(s.attributes=r),Object.keys(o).length&&(s.unregisteredAttributes=o),s}var V=class e{#e;static empty(){return new e}static fromPlainText(t){return new e(H({text:t}))}static fromHTMLString(t){return new e(H({html:t}))}static fromHTMLElement(t,n={}){const{preserveWhiteSpace:r=!1}=n,o=r?t:K(t),i=new e(H({element:o}));return Object.defineProperty(i,"originalHTML",{value:t.innerHTML}),i}constructor(e={formats:[],replacements:[],text:""}){this.#e=e}toPlainText(){return z(this.#e)}toHTMLString({preserveWhiteSpace:e}={}){return this.originalHTML||T({value:this.#e,preserveWhiteSpace:e})}valueOf(){return this.toHTMLString()}toString(){return this.toHTMLString()}toJSON(){return this.toHTMLString()}get length(){return this.text.length}get formats(){return this.#e.formats}get replacements(){return this.#e.replacements}get text(){return this.#e.text}};for(const e of Object.getOwnPropertyNames(String.prototype))V.prototype.hasOwnProperty(e)||Object.defineProperty(V.prototype,e,{value(...t){return this.toHTMLString()[e](...t)}});function H({element:e,text:t,html:n,range:r,__unstableIsEditableTree:o}={}){return n instanceof V?{text:n.text,formats:n.formats,replacements:n.replacements}:"string"==typeof t&&t.length>0?{formats:Array(t.length),replacements:Array(t.length),text:t}:("string"==typeof n&&n.length>0&&(e=k(document,n)),"object"!=typeof e?{formats:[],replacements:[],text:""}:q({element:e,range:r,isEditableTree:o}))}function W(e,t,n,r){if(!n)return;const{parentNode:o}=t,{startContainer:i,startOffset:s,endContainer:a,endOffset:l}=n,c=e.text.length;void 0!==r.start?e.start=c+r.start:t===i&&t.nodeType===t.TEXT_NODE?e.start=c+s:o===i&&t===i.childNodes[s]?e.start=c:o===i&&t===i.childNodes[s-1]?e.start=c+r.text.length:t===i&&(e.start=c),void 0!==r.end?e.end=c+r.end:t===a&&t.nodeType===t.TEXT_NODE?e.end=c+l:o===a&&t===a.childNodes[l-1]?e.end=c+r.text.length:o===a&&t===a.childNodes[l]?e.end=c:t===a&&(e.end=c+l)}function U(e,t,n){if(!t)return;const{startContainer:r,endContainer:o}=t;let{startOffset:i,endOffset:s}=t;return e===r&&(i=n(e.nodeValue.slice(0,i)).length),e===o&&(s=n(e.nodeValue.slice(0,s)).length),{startContainer:r,startOffset:i,endContainer:o,endOffset:s}}function K(e,t=!0,n=!1,r=!1){const o=e.cloneNode(!0);return o.normalize(),Array.from(o.childNodes).forEach((e,o,i)=>{if(e.nodeType===e.TEXT_NODE){let s=e.nodeValue;/[\n\t\r\f]/.test(s)&&(s=s.replace(/[\n\t\r\f]+/g," ")),-1!==s.indexOf(" ")&&(s=s.replace(/ {2,}/g," ")),0===o&&s.startsWith(" ")&&(t||n)&&(s=s.slice(1)),o===i.length-1&&s.endsWith(" ")&&(t||r)&&(s=s.slice(0,-1)),e.nodeValue=s}else if(e.nodeType===e.ELEMENT_NODE){const{previousSibling:o,nextSibling:i}=e,s=o?.textContent.endsWith(" "),a=i?.textContent.startsWith(" ");e.replaceWith(K(e,!1,o?s:t||n,i?a:t||r))}}),o}function G(e){return e.replace(new RegExp(`[\ufeff${x}\r]`,"gu"),"")}function q({element:e,range:t,isEditableTree:n}){const r={formats:[],replacements:[],text:""};if(!e)return r;if(!e.hasChildNodes())return W(r,e,t,{formats:[],replacements:[],text:""}),r;const o=e.childNodes.length;for(let i=0;i<o;i++){const o=e.childNodes[i],s=o.nodeName.toLowerCase();if(o.nodeType===o.TEXT_NODE){const e=G(o.nodeValue);W(r,o,t=U(o,t,G),{text:e}),r.formats.length+=e.length,r.replacements.length+=e.length,r.text+=e;continue}if(o.nodeType===o.COMMENT_NODE||o.nodeType===o.ELEMENT_NODE&&"SPAN"===o.tagName&&o.hasAttribute("data-rich-text-comment")){const e={formats:[,],replacements:[{type:"#comment",attributes:{"data-rich-text-comment":o.nodeType===o.COMMENT_NODE?o.nodeValue:o.getAttribute("data-rich-text-comment")}}],text:x};W(r,o,t,e),Y(r,e);continue}if(o.nodeType!==o.ELEMENT_NODE)continue;if(n&&"br"===s&&!o.getAttribute("data-rich-text-line-break")){W(r,o,t,F());continue}if("script"===s){const e={formats:[,],replacements:[{type:s,attributes:{"data-rich-text-script":o.getAttribute("data-rich-text-script")||encodeURIComponent(o.innerHTML)}}],text:x};W(r,o,t,e),Y(r,e);continue}if("br"===s){W(r,o,t,F()),Y(r,H({text:"\n"}));continue}const a=$({tagName:s,attributes:Z({element:o})});if(!1===a?.formatType?.contentEditable){delete a.formatType,W(r,o,t,F()),Y(r,{formats:[,],replacements:[{...a,innerHTML:o.innerHTML}],text:x});continue}a&&delete a.formatType;const l=q({element:o,range:t,isEditableTree:n});if(W(r,o,t,l),!a||o.getAttribute("data-rich-text-placeholder")||o.getAttribute("data-rich-text-bogus"))Y(r,l);else if(0===l.text.length)a.attributes&&Y(r,{formats:[,],replacements:[a],text:x});else{let e=function(t){if(e.formats===t)return e.newFormats;const n=t?[a,...t]:[a];return e.formats=t,e.newFormats=n,n};e.newFormats=[a],Y(r,{...l,formats:Array.from(l.formats,e)})}}return r}function Z({element:e}){if(!e.hasAttributes())return;const t=e.attributes.length;let n;for(let r=0;r<t;r++){const{name:t,value:o}=e.attributes[r];if(0===t.indexOf("data-rich-text-"))continue;n=n||{},n[/^on/i.test(t)?"data-disable-rich-text-"+t:t]=o}return n}function Y(e,t){return e.formats=e.formats.concat(t.formats),e.replacements=e.replacements.concat(t.replacements),e.text
255+=t.text,e}function X(...e){return h(e.reduce(Y,H()))}function Q(e,t){return _(e).find(({type:e})=>e===t)}function J({start:e,end:t,replacements:n,text:r}){if(e+1===t&&r[e]===x)return n[e]}function ee({start:e,end:t}){if(void 0!==e&&void 0!==t)return e===t}function te({text:e}){return 0===e.length}var ne=n(6319);function re(e,t){if("string"==typeof(t={name:e,...t}).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if((0,v.L)(m).getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9_-]*$/.test(t.className)){if(null===t.className){const e=(0,v.L)(m).getFormatTypeForBareElement(t.tagName);if(e&&"core/unknown"!==e.name)return void window.console.error(`Format "${e.name}" is already registered to handle bare tag name "${t.tagName}".`)}else{const e=(0,v.L)(m).getFormatTypeForClassName(t.className);if(e)return void window.console.error(`Format "${e.name}" is already registered to handle class name "${t.className}".`)}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return(0,ne.J)(m).addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, underscores, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function oe(e,t,n=e.start,r=e.end){const{formats:o,activeFormats:i}=e,s=o.slice();if(n===r){const e=s[n]?.find(({type:e})=>e===t);if(e){for(;s[n]?.find(t=>t===e);)ie(s,n,t),n--;for(r++;s[r]?.find(t=>t===e);)ie(s,r,t),r++}}else for(let e=n;e<r;e++)s[e]&&ie(s,e,t);return h({...e,formats:s,activeFormats:i?.filter(({type:e})=>e!==t)||[]})}function ie(e,t,n){const r=e[t].filter(({type:e})=>e!==n);r.length?e[t]=r:delete e[t]}function se(e,t,n=e.start,r=e.end){const{formats:o,replacements:i,text:s}=e;"string"==typeof t&&(t=H({text:t}));const a=n+t.text.length;return h({formats:o.slice(0,n).concat(t.formats,o.slice(r)),replacements:i.slice(0,n).concat(t.replacements,i.slice(r)),text:s.slice(0,n)+t.text+s.slice(r),start:a,end:a})}function ae(e,t,n){return se(e,H(),t,n)}function le({formats:e,replacements:t,text:n,start:r,end:o},i,s){return n=n.replace(i,(n,...i)=>{const a=i[i.length-2];let l,c,u=s;return"function"==typeof u&&(u=s(n,...i)),"object"==typeof u?(l=u.formats,c=u.replacements,u=u.text):(l=Array(u.length),c=Array(u.length),e[a]&&(l=l.fill(e[a]))),e=e.slice(0,a).concat(l,e.slice(a+n.length)),t=t.slice(0,a).concat(c,t.slice(a+n.length)),r&&(r=o=a+u.length),u}),h({formats:e,replacements:t,text:n,start:r,end:o})}function ce(e,t,n,r){return se(e,{formats:[,],replacements:[t],text:x},n,r)}function ue(e,t=e.start,n=e.end){const{formats:r,replacements:o,text:i}=e;return void 0===t||void 0===n?{...e}:{formats:r.slice(t,n),replacements:o.slice(t,n),text:i.slice(t,n)}}function de({formats:e,replacements:t,text:n,start:r,end:o},i){if("string"!=typeof i)return function({formats:e,replacements:t,text:n,start:r,end:o},i=r,s=o){if(void 0===r||void 0===o)return;const a={formats:e.slice(0,i),replacements:t.slice(0,i),text:n.slice(0,i)},l={formats:e.slice(s),replacements:t.slice(s),text:n.slice(s),start:0,end:0};return[a,l]}(...arguments);let s=0;return n.split(i).map(n=>{const a=s,l={formats:e.slice(a,a+n.length),replacements:t.slice(a,a+n.length),text:n};return s+=i.length+n.length,void 0!==r&&void 0!==o&&(r>=a&&r<s?l.start=r-a:r<a&&o>a&&(l.start=0),o>=a&&o<s?l.end=o-a:r<s&&o>s&&(l.end=n.length)),l})}var fe=n(9042),pe=n(913);function me(e,t){return Q(e,t.type)?(t.title&&(0,fe.L)((0,pe.nv)((0,pe.__)("%s removed."),t.title),"assertive"),oe(e,t.type)):(t.title&&(0,fe.L)((0,pe.nv)((0,pe.__)("%s applied."),t.title),"assertive"),y(e,t))}function ge(e){const t=(0,v.L)(m).getFormatType(e);if(t)return(0,ne.J)(m).removeFormatTypes(e),t;window.console.error(`Format ${e} is not registered.`)}var he=n(5294),{lock:be,unlock:ye}=(0,he.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/rich-text"),ve=n(2376),ke=n(3730),xe=n(1886),we=n(5627);function _e(e,t){return e===t||e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}var Se="http://www.w3.org/1998/Math/MathML";function Ce(e,t,n){const r=e.parentNode;let o=0;for(;e=e.previousSibling;)o++;return n=[o,...n],r!==t&&(n=Ce(r,t,n)),n}function Ae(e,t){for(t=[...t];e&&t.length>1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function Ee(e,t){if(void 0!==t.html)return e.innerHTML+=t.html;"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));const{type:n,attributes:r}=t;if(n)if("#comment"===n)t=e.ownerDocument.createComment(r["data-rich-text-comment"]);else{const o=e.namespaceURI;t="math"===n?e.ownerDocument.createElementNS(Se,n):o===Se?"MTEXT"===e.tagName?e.ownerDocument.createElement(n):e.ownerDocument.createElementNS(Se,n):e.ownerDocument.createElement(n);for(const e in r)t.setAttribute(e,r[e])}return e.appendChild(t)}function Ie(e,t){e.appendData(t)}function Te({lastChild:e}){return e}function Ne({parentNode:e}){return e}
255function je(e){return e.nodeType===e.TEXT_NODE}function Be({nodeValue:e}){return e}function Le(e){return e.parentNode.removeChild(e)}function Oe({value:e,current:t,prepareEditableTree:n,__unstableDomOnly:r,placeholder:o}){const{body:i,selection:s}=function({value:e,prepareEditableTree:t,isEditableTree:n=!0,placeholder:r,doc:o=document}){let i=[],s=[];return t&&(e={...e,formats:t(e)}),{body:I({value:e,createEmpty:()=>k(o,""),append:Ee,getLastChild:Te,getParent:Ne,isText:je,getText:Be,remove:Le,appendText:Ie,onStartIndex(e,t){i=Ce(t,e,[t.nodeValue.length])},onEndIndex(e,t){s=Ce(t,e,[t.nodeValue.length])},isEditableTree:n,placeholder:r}),selection:{startPath:i,endPath:s}}}({value:e,prepareEditableTree:n,placeholder:o,doc:t.ownerDocument});Re(i,t),void 0===e.start||r||function({startPath:e,endPath:t},n){const{node:r,offset:o}=Ae(n,e),{node:i,offset:s}=Ae(n,t),{ownerDocument:a}=n,{defaultView:l}=a,c=l.getSelection(),u=a.createRange();u.setStart(r,o),u.setEnd(i,s);const{activeElement:d}=a;if(c.rangeCount>0){if(_e(u,c.getRangeAt(0)))return;c.removeAllRanges()}c.addRange(u),d!==a.activeElement&&d instanceof l.HTMLElement&&d.focus()}(s,t)}function Re(e,t){let n,r=0;for(;n=e.firstChild;){const o=t.childNodes[r];if(o)if(o.isEqualNode(n))e.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)t.replaceChild(n,o);else{const t=o.attributes,r=n.attributes;if(t){let e=t.length;for(;e--;){const{name:r}=t[e];n.getAttribute(r)||o.removeAttribute(r)}}if(r)for(let e=0;e<r.length;e++){const{name:t,value:n}=r[e];o.getAttribute(t)!==n&&o.setAttribute(t,n)}Re(n,o),e.removeChild(n)}else t.appendChild(n);r++}for(;t.childNodes[r];)t.removeChild(t.childNodes[r])}function Me(e){const{ownerDocument:t}=e,{activeElement:n}=t;if(n===e)return!0;if(!n||"true"!==n.contentEditable||"true"!==e.contentEditable||!n.contains(e))return!1;const r=t.defaultView.getSelection(),{anchorNode:o,focusNode:i}=r;return!!o&&!!i&&e.contains(o)&&e.contains(i)}var Pe=n(3270);function De({record:e}){const t=(0,ve.useRef)(),{activeFormats:n=[],replacements:r,start:o}=e.current,i=r[o];return(0,ve.useEffect)(()=>{if(!(n&&n.length||i))return;const e="*[data-rich-text-format-boundary]",r=t.current.querySelector(e);if(!r)return;const{ownerDocument:o}=r,{defaultView:s}=o,a=s.getComputedStyle(r),l=`${`.rich-text:focus ${e}`} {${`background-color: ${(0,Pe.Mj)(a.color).alpha(.2).toRgbString()}`}}`,c="rich-text-boundary-style";let u=o.getElementById(c);u||(u=o.createElement("style"),u.id=c,o.head.appendChild(u)),u.innerHTML!==l&&(u.innerHTML=l)},[n,i]),t}var ze=n(7124),{subscribeDelegatedListener:Fe}=ye(ze.j),{subscribeDelegatedListener:$e}=ye(ze.j),Ve=n(8312),{subscribeDelegatedListener:He}=ye(ze.j),We=new WeakMap;function Ue(e,t,n,r=!1){const{ownerDocument:o}=e;let i=We.get(o);i||(i=new Map,We.set(o,i));const s=r?`${t}:capture`:t;let a=i.get(s);a||(a=new WeakMap,i.set(s,a),He(o,t,e=>{const{defaultView:t,activeElement:n}=o,r=t?.getSelection()?.anchorNode;for(let t=r??n;t;t=t.parentNode){const n=a.get(t);if(n&&Me(t))for(const t of n)t(e)}},r));let l=a.get(e);return l||(l=new Set,a.set(e,l)),l.add(n),()=>{l.delete(n)}}var Ke=[];var{subscribeDelegatedListener:Ge}=ye(ze.j),qe=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),Ze=[],{subscribeDelegatedListener:Ye}=ye(ze.j),{subscribeDelegatedListener:Xe}=ye(ze.j);var Qe=[e=>t=>{const{ownerDocument:n}=t,{defaultView:r}=n;let o,i=!1;function s(t){if(i)return;let n;t&&(n=t.inputType);const{record:r,applyRecord:o,createRecord:s,handleChange:a}=e.current;if(n&&(0===n.indexOf("format")||qe.has(n)))return void o(r.current);const l=s(),{start:c,activeFormats:u=[]}=r.current,d=!ee(r.current)&&l.start<=c,f=function({value:e,start:t,end:n,formats:r}){const o=Math.min(t,n),i=Math.max(t,n),s=e.formats[o-1]||[],a=e.formats[i]||[];for(e.activeFormats=r.map((e,t)=>{if(s[t]){if(g(e,s[t]))return s[t]}else if(a[t]&&g(e,a[t]))return a[t];return e});--n>=t;)e.activeFormats.length>0?e.formats[n]=e.activeFormats:delete e.formats[n];return e}({value:l,start:c,end:l.start,formats:d?[]:u});a(f)}function a(){const{record:a,applyRecord:l,createRecord:c,onSelectionChange:u}=e.current;if("true"!==t.contentEditable)return;if(n.activeElement!==t&&!Me(t))return;if(i)return;const d=r.getSelection();
255if(o&&o.anchorNode===d.anchorNode&&o.anchorOffset===d.anchorOffset&&o.focusNode===d.focusNode&&o.focusOffset===d.focusOffset&&o.processedStart===a.current.start&&o.processedEnd===a.current.end)return;const{start:f,end:p,text:m}=c(),g=a.current;if(0===m.length&&l({...g,start:f,end:p}),o={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset,processedStart:f,processedEnd:p},m!==g.text)return void s();if(f===g.start&&p===g.end)return;const h={...g,start:f,end:p,activeFormats:g._newActiveFormats,_newActiveFormats:void 0},b=_(h,Ze);h.activeFormats=b,a.current=h,l(h,{domOnly:!0}),u(f,p)}const l=Ue(t,"input",s,!0),c=Ue(t,"compositionstart",function(){i=!0,t.querySelector("[data-rich-text-placeholder]")?.remove()}),u=Ue(t,"compositionend",function(){i=!1,s({inputType:"insertText"})},!0),d=Ge(t,"focusin",function(n){if(n.target!==t)return;if("true"!==t.contentEditable)return;const{record:i,isSelected:s,onSelectionChange:l,applyRecord:c}=e.current;if(t.parentElement.closest('[contenteditable="true"]')){const e=r.getSelection();return e.anchorNode&&t.contains(e.anchorNode)||(s&&void 0!==i.current.start?c(i.current):e.collapse(t,0)),void window.queueMicrotask(a)}if(s)c(i.current);else{const e=void 0;i.current={...i.current,start:e,end:e,activeFormats:Ze},o=void 0}l(i.current.start,i.current.end),window.queueMicrotask(a)}),f=Ue(t,"selectionchange",a),p=["keydown","beforeinput","copy","cut","paste"].map(e=>Ue(t,e,a,!0));return()=>{l(),c(),u(),d(),f(),p.forEach(e=>e())}},e=>t=>{function n(n){const{record:r,handleChange:o}=e.current,{ownerDocument:i}=t;if(n.defaultPrevented||ee(r.current)||!t.contains(i.activeElement)&&!Me(t))return;const s=ue(r.current),a=z(s),l=T({value:s});n.clipboardData.setData("text/plain",a),n.clipboardData.setData("text/html",l),n.clipboardData.setData("rich-text","true"),n.preventDefault(),"cut"===n.type&&o(ae(r.current))}const{defaultView:r}=t.ownerDocument,o=Fe(r,"copy",n),i=Fe(r,"cut",n);return()=>{o(),i()}},()=>e=>{function t(t){const{target:n}=t;if(n===e||n.textContent&&n.isContentEditable)return;const{ownerDocument:r}=n,{defaultView:o}=r,i=o.getSelection();if(i.containsNode(n))return;const s=r.createRange(),a=n.isContentEditable?n:n.closest("[contenteditable]");s.selectNode(a),i.removeAllRanges(),i.addRange(s),t.preventDefault()}const n=$e(e,"click",t),r=$e(e,"focusin",function(n){n.relatedTarget&&!e.contains(n.relatedTarget)&&t(n)});return()=>{n(),r()}},e=>t=>Ue(t,"keydown",function(n){const{keyCode:r,shiftKey:o,altKey:i,metaKey:s,ctrlKey:a}=n;if(o||i||s||a||r!==Ve.M3&&r!==Ve.NS)return;const{record:l,applyRecord:c,forceRender:u}=e.current,{text:d,formats:f,start:p,end:m,activeFormats:g=[]}=l.current,h=ee(l.current),{defaultView:b}=t.ownerDocument,{direction:y}=b.getComputedStyle(t),v="rtl"===y?Ve.NS:Ve.M3,k=n.keyCode===v;if(h&&0===g.length){if(0===p&&k)return;if(m===d.length&&!k)return}if(!h)return;const x=f[p-1]||Ke,w=f[p]||Ke,_=k?x:w,S=g.every((e,t)=>e===_[t]);let C=g.length;if(S?C<_.length&&C++:C--,C===g.length)return void(l.current._newActiveFormats=_);n.preventDefault();const A=(S?_:k?w:x).slice(0,C),E={...l.current,activeFormats:A};l.current=E,c(E),u()},!0),e=>t=>Ue(t,"keydown",function(t){const{keyCode:n}=t;if(t.defaultPrevented)return;if(n!==Ve.SJ&&n!==Ve.G_)return;const{createRecord:r,handleChange:o}=e.current,i=r(),{start:s,end:a,text:l}=i;0===s&&0!==a&&a===l.length&&(o(ae(i)),t.preventDefault())}),()=>e=>{const{ownerDocument:t}=e,{defaultView:n}=t,r=n?.getSelection();let o;function i(){return r.rangeCount?r.getRangeAt(0):null}function s(e){const n="keydown"===e.type?"keyup":"pointerup";function r(){t.removeEventListener(n,s),t.removeEventListener("selectionchange",r),t.removeEventListener("input",r)}function s(){r(),_e(o,i())||t.dispatchEvent(new Event("selectionchange"))}t.addEventListener(n,s),t.addEventListener("selectionchange",r),t.addEventListener("input",r),o=i()}const a=Ye(e,"pointerdown",s),l=Ye(e,"keydown",s);return()=>{a(),l()}},function(){return e=>{const{ownerDocument:t}=e,{defaultView:n}=t;let r=null;function o(){null!==r&&(e.setAttribute("contenteditable",r),r=null)}const i=Xe(n,"pointerdown",function(t){t.defaultPrevented||t.target!==e&&t.target.contains(e)&&(r=e.getAttribute("contenteditable"),e.setAttribute("contenteditable","false"),n.getSelection().removeAllRanges())}),s=Xe(n,"pointerup",o),a=Xe(n,"pointercancel",o);return()=>{i(),s(),a()}}}];function Je(e){const t=(0,ve.useRef)(e);(0,ve.useInsertionEffect)(()=>{t.current=e});const n=(0,ve.useMemo)(()=>Qe.map(e=>e(t)),[t]);return(0,xe.A)(e=>{const t=n.map(t=>t(e));return()=>
255{t.forEach(e=>e())}},[n])}var et=n(5897),tt=n(9027);function nt(e){return e(m).getFormatTypes()}var rt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function ot(e,t){return e[t]?e[t]:Object.keys(e).filter(e=>e.startsWith(t+".")).reduce((n,r)=>(n[r.slice(t.length+1)]=e[r],n),{})}function it({value:e="",selectionStart:t,selectionEnd:n,placeholder:r,onSelectionChange:o,preserveWhiteSpace:i,onChange:s,__unstableDisableFormats:a,__unstableIsSelected:l,__unstableDependencies:c=[],__unstableAfterParse:u,__unstableBeforeSerialize:d,__unstableAddInvisibleFormats:f}){const p=(0,we.A)(),[,m]=(0,ve.useReducer)(()=>({})),g=(0,ve.useRef)();function h(e,{domOnly:t}={}){Oe({value:e,current:g.current,prepareEditableTree:f,__unstableDomOnly:t,placeholder:r})}const b=(0,ve.useRef)(e),y=(0,ve.useRef)();function v(){const r=y.current?.activeFormats;b.current=e,y.current=e,e instanceof V||(y.current=e?V.fromHTMLString(e,{preserveWhiteSpace:i}):V.empty()),y.current={text:y.current.text,formats:y.current.formats,replacements:y.current.replacements,activeFormats:r},a&&(y.current.formats=Array(e.length),y.current.replacements=Array(e.length)),u&&(y.current.formats=u(y.current)),y.current.start=t,y.current.end=n}const k=(0,ve.useRef)(!1);function x(t){if(y.current=t,h(t),a)b.current=t.text;else{const n=d?d(t):t.formats;t={...t,formats:n},b.current="string"==typeof e?T({value:t,preserveWhiteSpace:i}):new V(t)}const{start:n,end:r,formats:l,text:c}=y.current;p.batch(()=>{o(n,r),s(b.current,{__unstableFormats:l,__unstableText:c})}),m()}function w(){const t=b.current;v();const n=t&&"string"==typeof t&&"string"==typeof e&&t.length!==e.length,r=g.current?.contains(g.current.ownerDocument.activeElement)||Me(g.current),o=n&&!r;h(y.current,{domOnly:o})}y.current?t===y.current.start&&n===y.current.end||(k.current=l,y.current={...y.current,start:t,end:n,activeFormats:void 0}):(k.current=l,v());const _=(0,ve.useRef)(!1);(0,ve.useLayoutEffect)(()=>{_.current&&e!==b.current&&(w(),m())},[e]),(0,ve.useLayoutEffect)(()=>{k.current&&(g.current.ownerDocument.activeElement===g.current||Me(g.current)||g.current.focus(),h(y.current),k.current=!1)},[k.current]);const S=(0,ke.A)([g,(0,ve.useCallback)(e=>{e&&(e.style.whiteSpace=e.style.whiteSpace||"pre-wrap")},[]),De({record:y}),Je({record:y,handleChange:x,applyRecord:h,createRecord:function(){const{ownerDocument:{defaultView:e}}=g.current,t=e.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;return H({element:g.current,range:n,__unstableIsEditableTree:!0})},isSelected:l,onSelectionChange:o,forceRender:m}),(0,xe.A)(()=>{w(),_.current=!0},[r,...c])]);return{value:y.current,getValue:()=>y.current,onChange:x,ref:S}}var st=(0,ve.createContext)();st.displayName="KeyboardShortcutContext";var at=(0,ve.createContext)();at.displayName="InputEventContext";var lt=n(4233);var ct={};be(ct,{useRichText:function({allowedFormats:e,withoutInteractiveFormatting:t,onChange:n,__unstableDependencies:r=[],__unstableFormatTypeHandlerContext:o,...i}){const{formatTypes:s,prepareHandlers:a,valueHandlers:l,changeHandlers:c,dependencies:u}=function({allowedFormats:e,withoutInteractiveFormatting:t,__unstableFormatTypeHandlerContext:n}){const r=(0,et.A)(nt,[]),o=(0,ve.useMemo)(()=>r.filter(({name:n,interactive:r,tagName:o})=>!(e&&!e.includes(n)||t&&(r||rt.has(o)))),[r,e,t]),i=(0,et.A)(e=>o.reduce((t,r)=>{return r.__experimentalGetPropsForEditableTreePreparation&&n?{...t,...(o=r.__experimentalGetPropsForEditableTreePreparation(e,n),i=r.name,"object"!=typeof o?{[i]:o}:Object.fromEntries(Object.entries(o).map(([e,t])=>[`${i}.${e}`,t])))}:t;var o,i},{}),[o,n]),s=(0,tt.A)(),a=[],l=[],c=[],u=[];for(const e in i)u.push(i[e]);return o.forEach(e=>{if(e.__experimentalCreatePrepareEditableTree&&n){const t=e.__experimentalCreatePrepareEditableTree(ot(i,e.name),n);e.__experimentalCreateOnChangeEditableValue?l.push(t):a.push(t)}if(e.__experimentalCreateOnChangeEditableValue&&n){let t={};e.__experimentalGetPropsForEditableTreeChangeHandler&&(t=e.__experimentalGetPropsForEditableTreeChangeHandler(s,n));const r=ot(i,e.name);c.push(e.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...t},n))}}),{formatTypes:o,prepareHandlers:a,valueHandlers:l,changeHandlers:c,dependencies:u}}
255({allowedFormats:e,withoutInteractiveFormatting:t,__unstableFormatTypeHandlerContext:o});return{...it({...i,onChange(e,{__unstableFormats:t,__unstableText:r}){n(e,{__unstableFormats:t,__unstableText:r}),Object.values(c).forEach(e=>{e(t,r)})},__unstableDependencies:[...u,...r],__unstableAfterParse:function(e){return l.reduce((t,n)=>n(t,e.text),e.formats)},__unstableBeforeSerialize:function(e){return s.forEach(t=>{t.__experimentalCreatePrepareEditableTree&&(e=oe(e,t.name,0,e.text.length))}),e.formats},__unstableAddInvisibleFormats:function(e){return a.reduce((t,n)=>n(t,e.text),e.formats)}}),formatTypes:s}},KeyboardShortcutContext:st,InputEventContext:at,RichTextShortcut:function({character:e,type:t,onUse:n}){const r=(0,ve.useContext)(st),o=(0,lt.A)(n);return(0,ve.useEffect)(()=>{const n=r.current;function i(n){Ve.kx[t](n,e)&&(o(),n.preventDefault())}return n.add(i),()=>{n.delete(i)}},[e,t,r,o]),null},RichTextInputEvent:function({inputType:e,onInput:t}){const n=(0,ve.useContext)(at),r=(0,lt.A)(t);return(0,ve.useEffect)(()=>{const t=n.current;function o(t){t.inputType===e&&(r(),t.preventDefault())}return t.add(o),()=>{t.delete(o)}},[e,n,r]),null},shortcutsListener:e=>t=>{const{keyboardShortcuts:n}=e.current;function r(e){for(const t of n.current)t(e)}return t.addEventListener("keydown",r),()=>{t.removeEventListener("keydown",r)}},inputEventsListener:e=>t=>{const{inputEvents:n}=e.current;function r(e){for(const t of n.current)t(e)}return t.addEventListener("input",r),()=>{t.removeEventListener("input",r)}},ownsSelection:Me,subscribeOwnedListener:Ue});var ut=n(5766),dt=n(7835);function ft(e,t){return{contextElement:t,getBoundingClientRect:()=>t.contains(e.startContainer)?(0,dt.A)(e)??e.getBoundingClientRect():t.getBoundingClientRect()}}function pt(e,t,n){if(!e)return;const{ownerDocument:r}=e,{defaultView:o}=r,i=o?.getSelection();if(!i)return;if(!i.rangeCount)return;const s=i.getRangeAt(0);return s&&s.startContainer?t||n?function(e,t,n,r){let o=e.startContainer;if(o.nodeType===o.TEXT_NODE&&o instanceof window.Text&&e.startOffset===o.length&&o.nextSibling)for(o=o.nextSibling;o.firstChild;)o=o.firstChild;if(o.nodeType!==o.ELEMENT_NODE){if(!o.parentElement)return;o=o.parentElement}if(o===t)return;if(!t.contains(o))return;const i=n+(r?"."+r:"");if(!i)return;if(!(o instanceof window.HTMLElement))return;let s=o;for(;s&&s!==t;){if(s.matches(i))return s;s=s.parentElement}}(s,e,t,n)??ft(s,e):ft(s,e):void 0}var mt={tagName:"",className:""};function gt({editableContentElement:e,settings:t}){const{tagName:n,className:r}=t??mt,o=!!(t&&"isActive"in t&&t.isActive),[i,s]=(0,ve.useState)(()=>pt(e,n,r??"")),a=(0,ut.A)(o);return(0,ve.useLayoutEffect)(()=>{if(!e)return;function t(){s(pt(e,n,r??""))}function i(){c.addEventListener("selectionchange",t)}function l(){c.removeEventListener("selectionchange",t)}const{ownerDocument:c}=e;return(Me(e)||!a&&o||a&&!o)&&(s(pt(e,n,r??"")),i()),e.addEventListener("focusin",i),e.addEventListener("focusout",l),()=>{l(),e.removeEventListener("focusin",i),e.removeEventListener("focusout",l)}},[e,n,r,o,a]),i}},7123(e,t,n){"use strict";n.d(t,{B:()=>d});var r=n(7886),o=n(5339),i=n(2376),s="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=a();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var c="_19ce0419607e1896__stack",u={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)"},d=(0,i.forwardRef)(function({direction:e,gap:t,align:n,justify:i,wrap:s,render:a,...l},d){const f={gap:t&&u[t],alignItems:n,justifyContent:i,flexDirection:e,flexWrap:s};return(0,r.C)({render:a,ref:d,props:(0,o.v6)(l,{style:f,className:c})})})},1436(e,t,n){"use strict";n.d(t,{s:()=>u});var r=n(7886),o=n(5339),i=n(2376),s="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=a();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),o.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);
255height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var c="f37b9e2e191ebd66__visually-hidden",u=(0,i.forwardRef)(function({render:e,...t},n){return(0,r.C)({render:e,ref:n,props:(0,o.v6)({className:c},t,{"data-visually-hidden":""})})})},4746(e,t,n){"use strict";function r(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}n.d(t,{Y:()=>r})},9123(e,t,n){"use strict";function r(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}n.d(t,{J:()=>r})},2249(e,t,n){"use strict";n.d(t,{x:()=>o});var r=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function o(e){return r.test(e)}},1462(e,t,n){"use strict";function r(e){try{return new URL(e),!0}catch{return!1}}n.d(t,{m:()=>r})},4464(e,t,n){"use strict";function r(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}n.d(t,{R:()=>r})},6880(e,t,n){"use strict";function r(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}n.d(t,{v:()=>r})},6855(e,t,n){"use strict";n.d(t,{i:()=>i});var r=n(2249),o=/^(?:[a-z]+:|#|\?|\.|\/)/i;function i(e){return e?e.startsWith("http://")?e:(e=function(e){return e?(e=e.trim(),o.test(e)||(0,r.x)(e)?e:"http://"+e):e}(e)).replace(/^http:/,"https:"):e}},9261(e,t,n){"use strict";n.d(t,{A:()=>o});var r=new Set;function o(e){if(!0===globalThis.SCRIPT_DEBUG&&!r.has(e)){console.warn(e);try{throw Error(e)}catch{}r.add(e)}}},3022(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o};n.d(t,["A",0,o])},3270(e,t,n){"use strict";n.d(t,{Mj:()=>O,X$:()=>M});for(var r={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},s=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)<0?e+360:e},l=function(e,t){return void 0===t&&(t=0),i(e,t)%360},c=function(e){return{r:s(e.r,0,255),g:s(e.g,0,255),b:s(e.b,0,255),a:s(e.a)}},u=function(e){return{r:i(e.r),g:i(e.g),b:i(e.b),a:i(e.a,3)}},d=/^#([0-9a-f]{3,8})$/i,f=function(e,t){var n=e.charCodeAt(t);return(15&n)+9*(n>>6)},p=function(e,t){return f(e,t)<<4|f(e,t+1)},m=[],g=0;g<256;g++)m.push((g<16?"0":"")+g.toString(16));var h=function(e){return m[s(e,0,255)]},b=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},y=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},v=function(e){return{h:a(e.h),s:s(e.s,0,100),l:s(e.l,0,100),a:s(e.a)}},k=function(e){return{h:l(e.h),s:i(e.s),l:i(e.l),a:i(e.a,3)}},x=function(e){return y((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},w=function(e){return{h:(t=b(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},_=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,S=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s+([+-]?(?:\d*\.\d+|\d+))%\s+([+-]?(?:\d*\.\d+|\d+))%\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,C=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,A=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,E={string:[[function(e){if(!d.test(e))return null;var t=e.length;return t<=5?{r:17*f(e,1),g:17*f(e,2),b:17*f(e,3),a:5===t?i(17*f(e,4)/255,2):1}:7===t||9===t?{r:p(e,1),g:p(e,3),b:p(e,5),a:9===t?i(p(e,7)/255,2):1}:null},"hex"],[function(e){var t=C.exec(e)||A.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:c({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:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=_.exec(e)||S.exec(e);if(!t)return null;var n,o,i=v({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(r[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return x(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,s=void 0===i?1:i;return o(t)&&o(n)&&o(r)?c({r:Number(t),g:Number(n),b:Number(r),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,s=void 0===i?1:i;if(!o(t)||!o(n)||!o(r))return null;var a=v({h:Number(t),s:Number(n),l:Number(r),a:Number(s)});return x(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,l=void 0===i?1:i;if(!o(t)||!o(n)||!o(r))return null;var c=function(e){return{h:a(e.h),s:s(e.s,0,100),v:s(e.v,0,100),a:s(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(l)});return y(c)},"hsv"]]},I=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},T=function(e){return"string"==typeof e?I(e.trim(),E.string):"object"==typeof e&&null!==e?I(e,E.object):[null,void 0]},N=function(e,t){var n=w(e);return{h:n.h,s:s(n.s+100*t,0,100),l:n.l,a:n.a}},j=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},B=function(e,t){var n=w(e);return{h:n.h,s:n.s,l:s(n.l+100*t,0,100),a:n.a}
255},L=function(){function e(e){this.parsed=T(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return i(j(this.rgba),2)},e.prototype.isDark=function(){return j(this.rgba)<.5},e.prototype.isLight=function(){return j(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,s=(o=e.a)<1?h(i(255*o)):"","#"+h(t)+h(n)+h(r)+s;var e,t,n,r,o,s},e.prototype.toRgb=function(){return u(this.rgba)},e.prototype.toRgbString=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return k(w(this.rgba))},e.prototype.toHslString=function(){return t=(e=k(w(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=b(this.rgba),{h:l(e.h),s:i(e.s),v:i(e.v),a:i(e.a,3)};var e},e.prototype.invert=function(){return O({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),O(N(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),O(N(this.rgba,-e))},e.prototype.grayscale=function(){return O(N(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),O(B(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),O(B(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(w(this.rgba).h+e)},e.prototype.alpha=function(e){return"number"==typeof e?O({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):i(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=w(this.rgba);return"number"==typeof e?O({h:e,s:t.s,l:t.l,a:t.a}):l(t.h)},e.prototype.isEqual=function(e){return this.toHex()===O(e).toHex()},e}(),O=function(e){return e instanceof L?e:new L(e)},R=[],M=function(e){e.forEach(function(e){R.indexOf(e)<0&&(e(L,E),R.push(e))})}},6089(e,t,n){"use strict";n.d(t,{A:()=>i});var r=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},o=function(e){return.2126*r(e.r)+.7152*r(e.g)+.0722*r(e.b)},i=function(e){e.prototype.luminance=function(){return e=o(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,i,s,a,l,c,u=t instanceof e?t:new e(t);return s=this.rgba,a=u.toRgb(),n=(l=o(s))>(c=o(a))?(l+.05)/(c+.05):(c+.05)/(l+.05),void 0===(r=2)&&(r=0),void 0===i&&(i=Math.pow(10,r)),Math.floor(i*n)/i+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(s=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===s?7:"AA"===o&&"large"===s?3:4.5);var n,r,o,i,s}}},3295(e,t,n){"use strict";n.d(t,{A:()=>r});var r=function(e,t){var n={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",s
255andybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,s,a=r[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,s=i[f],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));p<c&&(c=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}},7160(e,t,n){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{Q:()=>o})},1636(e,t,n){"use strict";function r(e,t){var n,r,o=0;function i(){var i,s,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<l;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}n.d(t,{A:()=>r})},9565(e,t,n){"use strict";n.d(t,{Cl:()=>r});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.create;Object.create},3578(e,t,n){"use strict";n.d(t,{A:()=>s});const r=new Uint8Array(16);const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function i(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}const s=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){e=e||{};const o=e.random??e.rng?.()??crypto.getRandomValues(r);if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return i(o)}(e,t,n):crypto.randomUUID()}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.