/*! This file is auto-generated */ (()=>{var e={2321:e=>{e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},7734:e=>{"use strict";e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var n,a,r;if(Array.isArray(t)){if((n=t.length)!=o.length)return!1;for(a=n;0!=a--;)if(!e(t[a],o[a]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(a of t.entries())if(!o.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],o.get(a[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(a of t.entries())if(!o.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((n=t.length)!=o.length)return!1;for(a=n;0!=a--;)if(t[a]!==o[a])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((n=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(o,r[a]))return!1;for(a=n;0!=a--;){var i=r[a];if(!e(t[i],o[i]))return!1}return!0}return t!=t&&o!=o}},9681: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̆:"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",y̆:"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",й:"и",Й:"И",ё:"е",Ё:"Е"},o=Object.keys(t).join("|"),n=new RegExp(o,"g"),a=new RegExp(o,"");function r(e){return t[e]}var i=function(e){return e.replace(n,r)};e.exports=i,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=i}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{__experimentalGetCoreBlocks:()=>MB,__experimentalRegisterExperimentalCoreBlocks:()=>zB,privateApis:()=>IB,registerCoreBlocks:()=>DB});var e={};o.r(e),o.d(e,{init:()=>_t,metadata:()=>gt,name:()=>ht,settings:()=>xt});var t={};o.r(t),o.d(t,{init:()=>Dt,metadata:()=>Pt,name:()=>It,settings:()=>Mt});var a={};o.r(a),o.d(a,{init:()=>ro,metadata:()=>oo,name:()=>no,settings:()=>ao});var r={};o.r(r),o.d(r,{init:()=>Mo,metadata:()=>No,name:()=>Po,settings:()=>Io});var i={};o.r(i),o.d(i,{init:()=>qo,metadata:()=>$o,name:()=>Go,settings:()=>Uo});var s={};o.r(s),o.d(s,{init:()=>Xo,metadata:()=>Ko,name:()=>Yo,settings:()=>Jo});var l={};o.r(l),o.d(l,{init:()=>cn,metadata:()=>rn,name:()=>sn,settings:()=>ln});var c={};o.r(c),o.d(c,{init:()=>vn,metadata:()=>bn,name:()=>yn,settings:()=>fn});var u={};o.r(u),o.d(u,{init:()=>Pn,metadata:()=>Bn,name:()=>Tn,settings:()=>Nn});var d={};o.r(d),o.d(d,{init:()=>Vn,metadata:()=>Rn,name:()=>Hn,settings:()=>Ln});var p={};o.r(p),o.d(p,{init:()=>aa,metadata:()=>ta,name:()=>oa,settings:()=>na});var m={};o.r(m),o.d(m,{init:()=>_a,metadata:()=>ga,name:()=>ha,settings:()=>xa});var g={};o.r(g),o.d(g,{init:()=>va,metadata:()=>ba,name:()=>ya,settings:()=>fa});var h={};o.r(h),o.d(h,{init:()=>Ta,metadata:()=>ja,name:()=>Sa,settings:()=>Ba});var x={};o.r(x),o.d(x,{init:()=>Da,metadata:()=>Pa,name:()=>Ia,settings:()=>Ma});var _={};o.r(_),o.d(_,{init:()=>Ea,metadata:()=>La,name:()=>Va,settings:()=>Fa});var b={};o.r(b),o.d(b,{init:()=>qa,metadata:()=>$a,name:()=>Ga,settings:()=>Ua});var y={};o.r(y),o.d(y,{init:()=>Ja,metadata:()=>Qa,name:()=>Ka,settings:()=>Ya});var f={};o.r(f),o.d(f,{init:()=>ur,metadata:()=>sr,name:()=>lr,settings:()=>cr});var v={};o.r(v),o.d(v,{init:()=>xr,metadata:()=>mr,name:()=>gr,settings:()=>hr});var k={};o.r(k),o.d(k,{init:()=>wr,metadata:()=>fr,name:()=>vr,settings:()=>kr});var w={};o.r(w),o.d(w,{init:()=>Nr,metadata:()=>Sr,name:()=>Br,settings:()=>Tr});var C={};o.r(C),o.d(C,{init:()=>Ar,metadata:()=>Mr,name:()=>Dr,settings:()=>zr});var j={};o.r(j),o.d(j,{init:()=>$r,metadata:()=>Fr,name:()=>Er,settings:()=>Or});var S={};o.r(S),o.d(S,{init:()=>Os,metadata:()=>Vs,name:()=>Fs,settings:()=>Es});var B={};o.r(B),o.d(B,{init:()=>Ks,metadata:()=>Ws,name:()=>Zs,settings:()=>Qs});var T={};o.r(T),o.d(T,{init:()=>Fl,metadata:()=>Hl,name:()=>Ll,settings:()=>Vl});var N={};o.r(N),o.d(N,{init:()=>nc,metadata:()=>ec,name:()=>tc,settings:()=>oc});var P={};o.r(P),o.d(P,{init:()=>mc,metadata:()=>uc,name:()=>dc,settings:()=>pc});var I={};o.r(I),o.d(I,{init:()=>Bc,metadata:()=>Cc,name:()=>jc,settings:()=>Sc});var M={};o.r(M),o.d(M,{init:()=>Dc,metadata:()=>Pc,name:()=>Ic,settings:()=>Mc});var D={};o.r(D),o.d(D,{init:()=>Oc,metadata:()=>Vc,name:()=>Fc,settings:()=>Ec});var z={};o.r(z),o.d(z,{init:()=>Hu,metadata:()=>zu,name:()=>Au,settings:()=>Ru});var A={};o.r(A),o.d(A,{init:()=>td,metadata:()=>Ju,name:()=>Xu,settings:()=>ed});var R={};o.r(R),o.d(R,{init:()=>Cd,metadata:()=>vd,name:()=>kd,settings:()=>wd});var H={};o.r(H),o.d(H,{init:()=>Pd,metadata:()=>Bd,name:()=>Td,settings:()=>Nd});var L={};o.r(L),o.d(L,{init:()=>Ld,metadata:()=>Ad,name:()=>Rd,settings:()=>Hd});var V={};o.r(V),o.d(V,{init:()=>xp,metadata:()=>mp,name:()=>gp,settings:()=>hp});var F={};o.r(F),o.d(F,{init:()=>vp,metadata:()=>bp,name:()=>yp,settings:()=>fp});var E={};o.r(E),o.d(E,{init:()=>Ap,metadata:()=>Mp,name:()=>Dp,settings:()=>zp});var O={};o.r(O),o.d(O,{init:()=>cm,metadata:()=>im,name:()=>sm,settings:()=>lm});var $={};o.r($),o.d($,{init:()=>km,metadata:()=>ym,name:()=>fm,settings:()=>vm});var G={};o.r(G),o.d(G,{init:()=>Bm,metadata:()=>Cm,name:()=>jm,settings:()=>Sm});var U={};o.r(U),o.d(U,{init:()=>bg,metadata:()=>hg,name:()=>xg,settings:()=>_g});var q={};o.r(q),o.d(q,{init:()=>kg,metadata:()=>yg,name:()=>fg,settings:()=>vg});var W={};o.r(W),o.d(W,{init:()=>Ng,metadata:()=>Sg,name:()=>Bg,settings:()=>Tg});var Z={};o.r(Z),o.d(Z,{init:()=>dx,metadata:()=>lx,name:()=>cx,settings:()=>ux});var Q={};o.r(Q),o.d(Q,{init:()=>Cx,metadata:()=>vx,name:()=>kx,settings:()=>wx});var K={};o.r(K),o.d(K,{init:()=>zx,metadata:()=>Ix,name:()=>Mx,settings:()=>Dx});var Y={};o.r(Y),o.d(Y,{init:()=>Fx,metadata:()=>Hx,name:()=>Lx,settings:()=>Vx});var J={};o.r(J),o.d(J,{init:()=>Kx,metadata:()=>Wx,name:()=>Zx,settings:()=>Qx});var X={};o.r(X),o.d(X,{init:()=>l_,metadata:()=>r_,name:()=>i_,settings:()=>s_});var ee={};o.r(ee),o.d(ee,{init:()=>m_,metadata:()=>u_,name:()=>d_,settings:()=>p_});var te={};o.r(te),o.d(te,{init:()=>z_,metadata:()=>I_,name:()=>M_,settings:()=>D_});var oe={};o.r(oe),o.d(oe,{init:()=>E_,metadata:()=>L_,name:()=>V_,settings:()=>F_});var ne={};o.r(ne),o.d(ne,{init:()=>W_,metadata:()=>G_,name:()=>U_,settings:()=>q_});var ae={};o.r(ae),o.d(ae,{init:()=>J_,metadata:()=>Q_,name:()=>K_,settings:()=>Y_});var re={};o.r(re),o.d(re,{init:()=>ab,metadata:()=>tb,name:()=>ob,settings:()=>nb});var ie={};o.r(ie),o.d(ie,{init:()=>cb,metadata:()=>ib,name:()=>sb,settings:()=>lb});var se={};o.r(se),o.d(se,{init:()=>gb,metadata:()=>db,name:()=>pb,settings:()=>mb});var le={};o.r(le),o.d(le,{init:()=>yb,metadata:()=>xb,name:()=>_b,settings:()=>bb});var ce={};o.r(ce),o.d(ce,{init:()=>Nb,metadata:()=>Sb,name:()=>Bb,settings:()=>Tb});var ue={};o.r(ue),o.d(ue,{init:()=>Lb,metadata:()=>Ab,name:()=>Rb,settings:()=>Hb});var de={};o.r(de),o.d(de,{init:()=>Gb,metadata:()=>Eb,name:()=>Ob,settings:()=>$b});var pe={};o.r(pe),o.d(pe,{init:()=>ay,metadata:()=>ty,name:()=>oy,settings:()=>ny});var me={};o.r(me),o.d(me,{init:()=>py,metadata:()=>cy,name:()=>uy,settings:()=>dy});var ge={};o.r(ge),o.d(ge,{init:()=>yy,metadata:()=>xy,name:()=>_y,settings:()=>by});var he={};o.r(he),o.d(he,{init:()=>Ny,metadata:()=>Sy,name:()=>By,settings:()=>Ty});var xe={};o.r(xe),o.d(xe,{init:()=>Ry,metadata:()=>Dy,name:()=>zy,settings:()=>Ay});var _e={};o.r(_e),o.d(_e,{init:()=>Oy,metadata:()=>Vy,name:()=>Fy,settings:()=>Ey});var be={};o.r(be),o.d(be,{init:()=>Qy,metadata:()=>qy,name:()=>Wy,settings:()=>Zy});var ye={};o.r(ye),o.d(ye,{init:()=>xf,metadata:()=>mf,name:()=>gf,settings:()=>hf});var fe={};o.r(fe),o.d(fe,{init:()=>Bv,metadata:()=>Cv,name:()=>jv,settings:()=>Sv});var ve={};o.r(ve),o.d(ve,{init:()=>Mv,metadata:()=>Nv,name:()=>Pv,settings:()=>Iv});var ke={};o.r(ke),o.d(ke,{init:()=>Fv,metadata:()=>Hv,name:()=>Lv,settings:()=>Vv});var we={};o.r(we),o.d(we,{init:()=>Uv,metadata:()=>Ov,name:()=>$v,settings:()=>Gv});var Ce={};o.r(Ce),o.d(Ce,{init:()=>Kv,metadata:()=>Wv,name:()=>Zv,settings:()=>Qv});var je={};o.r(je),o.d(je,{init:()=>tk,metadata:()=>Jv,name:()=>Xv,settings:()=>ek});var Se={};o.r(Se),o.d(Se,{init:()=>uk,metadata:()=>sk,name:()=>lk,settings:()=>ck});var Be={};o.r(Be),o.d(Be,{init:()=>_k,metadata:()=>gk,name:()=>hk,settings:()=>xk});var Te={};o.r(Te),o.d(Te,{init:()=>Rk,metadata:()=>Dk,name:()=>zk,settings:()=>Ak});var Ne={};o.r(Ne),o.d(Ne,{init:()=>Jk,metadata:()=>Qk,name:()=>Kk,settings:()=>Yk});var Pe={};o.r(Pe),o.d(Pe,{init:()=>ow,metadata:()=>Xk,name:()=>ew,settings:()=>tw});var Ie={};o.r(Ie),o.d(Ie,{init:()=>sw,metadata:()=>aw,name:()=>rw,settings:()=>iw});var Me={};o.r(Me),o.d(Me,{init:()=>vw,metadata:()=>bw,name:()=>yw,settings:()=>fw});var De={};o.r(De),o.d(De,{init:()=>Nw,metadata:()=>Sw,name:()=>Bw,settings:()=>Tw});var ze={};o.r(ze),o.d(ze,{init:()=>Rw,metadata:()=>Dw,name:()=>zw,settings:()=>Aw});var Ae={};o.r(Ae),o.d(Ae,{init:()=>Ww,metadata:()=>Gw,name:()=>Uw,settings:()=>qw});var Re={};o.r(Re),o.d(Re,{init:()=>eC,metadata:()=>Yw,name:()=>Jw,settings:()=>Xw});var He={};o.r(He),o.d(He,{init:()=>lC,metadata:()=>rC,name:()=>iC,settings:()=>sC});var Le={};o.r(Le),o.d(Le,{init:()=>yC,metadata:()=>xC,name:()=>_C,settings:()=>bC});var Ve={};o.r(Ve),o.d(Ve,{init:()=>TC,metadata:()=>jC,name:()=>SC,settings:()=>BC});var Fe={};o.r(Fe),o.d(Fe,{init:()=>OC,metadata:()=>VC,name:()=>FC,settings:()=>EC});var Ee={};o.r(Ee),o.d(Ee,{init:()=>Tj,metadata:()=>jj,name:()=>Sj,settings:()=>Bj});var Oe={};o.r(Oe),o.d(Oe,{init:()=>Vj,metadata:()=>Rj,name:()=>Hj,settings:()=>Lj});var $e={};o.r($e),o.d($e,{init:()=>Uj,metadata:()=>Oj,name:()=>$j,settings:()=>Gj});var Ge={};o.r(Ge),o.d(Ge,{init:()=>wS,metadata:()=>fS,name:()=>vS,settings:()=>kS});var Ue={};o.r(Ue),o.d(Ue,{init:()=>TS,metadata:()=>jS,name:()=>SS,settings:()=>BS});var qe={};o.r(qe),o.d(qe,{init:()=>zS,metadata:()=>IS,name:()=>MS,settings:()=>DS});var We={};o.r(We),o.d(We,{init:()=>$S,metadata:()=>FS,name:()=>ES,settings:()=>OS});var Ze={};o.r(Ze),o.d(Ze,{init:()=>dB,metadata:()=>lB,name:()=>cB,settings:()=>uB});var Qe={};o.r(Qe),o.d(Qe,{init:()=>SB,metadata:()=>wB,name:()=>CB,settings:()=>jB});const Ke=window.wp.blocks,Ye=window.wp.primitives,Je=window.ReactJSXRuntime,Xe=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});function et(e){if(!e)return;const{metadata:t,settings:o,name:n}=e;return(0,Ke.registerBlockType)({name:n,...t},o)}const tt=window.wp.components,ot=window.wp.i18n,nt=window.wp.blockEditor,at=window.wp.serverSideRender;var rt=o.n(at);const it=window.wp.data,st=window.wp.element,lt=window.wp.blob,ct=window.wp.coreData,ut=window.wp.compose;function dt(e,t,o){return(0,it.useSelect)((n=>n(ct.store).canUser("update",{kind:e,name:t,id:o})),[e,t,o])}function pt(e={}){const t=(0,st.useRef)(e),o=(0,st.useRef)(!1),{getSettings:n}=(0,it.useSelect)(nt.store);(0,st.useLayoutEffect)((()=>{t.current=e})),(0,st.useEffect)((()=>{if(o.current)return;if(!t.current.url||!(0,lt.isBlobURL)(t.current.url))return;const e=(0,lt.getBlobByURL)(t.current.url);if(!e)return;const{url:a,allowedTypes:r,onChange:i,onError:s}=t.current,{mediaUpload:l}=n();o.current=!0,l({filesList:[e],allowedTypes:r,onFileChange:([e])=>{(0,lt.isBlobURL)(e?.url)||((0,lt.revokeBlobURL)(a),i(e),o.current=!1)},onError:e=>{(0,lt.revokeBlobURL)(a),s(e),o.current=!1}})}),[n])}function mt(){return(0,ut.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const gt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:ht}=gt,xt={icon:Xe,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:o,showPostCounts:n,displayAsDropdown:a,type:r}=e,i=mt();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsxs)(tt.__experimentalToolsPanel,{label:(0,ot.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!1,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:i,children:[(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Display as dropdown"),checked:a,onChange:()=>t({displayAsDropdown:!a})})}),a&&(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!1}),children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Group by"),isShownByDefault:!0,hasValue:()=>"monthly"!==r,onDeselect:()=>t({type:"monthly"}),children:(0,Je.jsx)(tt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,ot.__)("Group by"),options:[{label:(0,ot.__)("Year"),value:"yearly"},{label:(0,ot.__)("Month"),value:"monthly"},{label:(0,ot.__)("Week"),value:"weekly"},{label:(0,ot.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})})})]})}),(0,Je.jsx)("div",{...(0,nt.useBlockProps)(),children:(0,Je.jsx)(tt.Disabled,{children:(0,Je.jsx)(rt(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}},_t=()=>et({name:ht,metadata:gt,settings:xt}),bt=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});function yt(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:o}=t();return o}));return e}const Ct={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const jt=function({value:e,onChange:t}){const[o,n]=(0,st.useState)(),a=(0,it.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(Ct)}),[]);if(!a)return null;const r=a.map((e=>({label:e.name,value:e.id})));return(0,Je.jsx)(tt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,ot.__)("User"),help:(0,ot.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:o||r,onFilterValueChange:e=>n(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})},St=({setAttributes:e,avatar:t,attributes:o,selectUser:n})=>(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsxs)(tt.PanelBody,{title:(0,ot.__)("Settings"),children:[(0,Je.jsx)(tt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,ot.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size}),(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink}),o.isLink&&(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===o.linkTarget}),n&&(0,Je.jsx)(jt,{value:o?.userId,onChange:t=>{e({userId:t})}})]})}),Bt=({setAttributes:e,attributes:t,avatar:o,blockProps:n,isSelected:a})=>{const r=(0,nt.__experimentalUseBorderProps)(t),i=(0,vt.addQueryArgs)((0,vt.removeQueryArgs)(o?.src,["s"]),{s:2*t?.size});return(0,Je.jsx)("div",{...n,children:(0,Je.jsx)(tt.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(o,n,a,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,ot.isRTL)(),bottom:!0,left:(0,ot.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,Je.jsx)("img",{src:i,alt:o.alt,className:ft("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})})})},Tt=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{commentId:a}=t,r=(0,nt.useBlockProps)(),i=function({commentId:e}){const[t]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,ct.useEntityProp)("root","comment","author_name",e),n=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:r,maxSize:i}=kt(a),s=wt();return{src:n?n[n.length-1]:s,minSize:r,maxSize:i,alt:o?(0,ot.sprintf)((0,ot.__)("%s Avatar"),o):(0,ot.__)("Default Avatar")}}({commentId:a});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(St,{avatar:i,setAttributes:o,attributes:e,selectUser:!1}),e.isLink?(0,Je.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,Je.jsx)(Bt,{attributes:e,avatar:i,blockProps:r,isSelected:n,setAttributes:o})}):(0,Je.jsx)(Bt,{attributes:e,avatar:i,blockProps:r,isSelected:n,setAttributes:o})]})},Nt=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{postId:a,postType:r}=t,i=function({userId:e,postId:t,postType:o}){const{authorDetails:n}=(0,it.useSelect)((n=>{const{getEditedEntityRecord:a,getUser:r}=n(ct.store);if(e)return{authorDetails:r(e)};const i=a("postType",o,t)?.author;return{authorDetails:i?r(i):null}}),[o,t,e]),a=n?.avatar_urls?Object.values(n.avatar_urls):null,r=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:s}=kt(r),l=wt();return{src:a?a[a.length-1]:l,minSize:i,maxSize:s,alt:n?(0,ot.sprintf)((0,ot.__)("%s Avatar"),n?.name):(0,ot.__)("Default Avatar")}}({userId:e?.userId,postId:a,postType:r}),s=(0,nt.useBlockProps)();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(St,{selectUser:!0,attributes:e,avatar:i,setAttributes:o}),e.isLink?(0,Je.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,Je.jsx)(Bt,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})}):(0,Je.jsx)(Bt,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})]})};const Pt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:It}=Pt,Mt={icon:bt,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,Je.jsx)(Tt,{...e}):(0,Je.jsx)(Nt,{...e})},example:{}},Dt=()=>et({name:It,metadata:Pt,settings:Mt}),zt=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})}),At=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:a,src:r}=e;return(0,Je.jsxs)("figure",{children:[(0,Je.jsx)("audio",{controls:"controls",src:r,autoPlay:t,loop:n,preload:a}),!nt.RichText.isEmpty(o)&&(0,Je.jsx)(nt.RichText.Content,{tagName:"figcaption",value:o})]})}}],Rt=window.wp.notices;function Ht(e,t){var o,n,a=0;function r(){var r,i,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;ie&&e.includes('class="wp-embedded-content"'),qt=(e,t={})=>{const{preview:o,attributes:n={}}=e,{url:a,providerNameSlug:r,type:i,...s}=n;if(!a||!(0,Ke.getBlockType)($t))return;const l=(e=>(0,Ke.getBlockVariations)($t)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(a),c="wordpress"===r||i===Vt;if(!c&&l&&(l.attributes.providerNameSlug!==r||!r))return(0,Ke.createBlock)($t,{url:a,...s,...l.attributes});const u=(0,Ke.getBlockVariations)($t)?.find((({name:e})=>"wordpress"===e));return u&&o&&Ut(o.html)&&!c?(0,Ke.createBlock)($t,{url:a,...u.attributes,...t}):void 0},Wt=e=>{if(!e)return e;const t=Lt.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let o=e;for(const e of t)o=o.replace(e,"");return o.trim()};function Zt(e,t,o=!0){if(!o)return Wt(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const a=n.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let o=0;o=n.ratio){return e-n.ratio>.1?Wt(t):ft(Wt(t),n.className,"wp-has-aspect-ratio")}}}return t}const Qt=Ht(((e,t,o,n,a=!0)=>{if(!e)return{};const r={};let{type:i="rich"}=e;const{html:s,provider_name:l}=e,c=Gt((l||t).toLowerCase());return Ut(s)&&(i=Vt),(s||"photo"===i)&&(r.type=i,r.providerNameSlug=c),(u=o)&&Lt.some((({className:e})=>u.includes(e)))||(r.className=Zt(s,o,n&&a)),r;var u})),Kt=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function Yt({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:a,placeholder:r=(0,ot.__)("Add caption"),label:i=(0,ot.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:l,className:c,readOnly:u,tagName:d="figcaption",addLabel:p=(0,ot.__)("Add caption"),removeLabel:m=(0,ot.__)("Remove caption"),icon:g=Kt,...h}){const x=t[e],_=(0,ut.usePrevious)(x),{PrivateRichText:b}=Ot(nt.privateApis),y=b.isEmpty(x),f=b.isEmpty(_),[v,k]=(0,st.useState)(!y);(0,st.useEffect)((()=>{!y&&f&&k(!0)}),[y,f]),(0,st.useEffect)((()=>{!n&&y&&k(!1)}),[n,y]);const w=(0,st.useCallback)((e=>{e&&y&&e.focus()}),[y]);return(0,Je.jsxs)(Je.Fragment,{children:[s&&(0,Je.jsx)(nt.BlockControls,{group:"block",children:(0,Je.jsx)(tt.ToolbarButton,{onClick:()=>{k(!v),v&&x&&o({[e]:void 0})},icon:g,isPressed:v,label:v?m:p})}),v&&(!b.isEmpty(x)||n)&&(0,Je.jsx)(b,{identifier:e,tagName:d,className:ft(c,l?"":(0,nt.__experimentalGetElementClassName)("caption")),ref:w,"aria-label":i,placeholder:r,value:x,onChange:t=>o({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a((0,Ke.createBlock)((0,Ke.getDefaultBlockName)())),readOnly:u,...h})]})}const Jt=["audio"];const Xt=function({attributes:e,className:t,setAttributes:o,onReplace:n,isSelected:a,insertBlocksAfter:r}){const{id:i,autoplay:s,loop:l,preload:c,src:u}=e,[d,p]=(0,st.useState)(e.blob);function m(e){return t=>{o({[e]:t})}}function g(e){if(e!==u){const t=qt({attributes:{url:e}});if(void 0!==t&&n)return void n(t);o({src:e,id:void 0,blob:void 0}),p()}}pt({url:d,allowedTypes:Jt,onChange:_,onError:x});const{createErrorNotice:h}=(0,it.useDispatch)(Rt.store);function x(e){h(e,{type:"snackbar"})}function _(e){if(!e||!e.url)return o({src:void 0,id:void 0,caption:void 0,blob:void 0}),void p();(0,lt.isBlobURL)(e.url)?p(e.url):(o({blob:void 0,src:e.url,id:e.id,caption:e.caption}),p())}const b=ft(t,{"is-transient":!!d}),y=(0,nt.useBlockProps)({className:b});return u||d?(0,Je.jsxs)(Je.Fragment,{children:[a&&(0,Je.jsx)(nt.BlockControls,{group:"other",children:(0,Je.jsx)(nt.MediaReplaceFlow,{mediaId:i,mediaURL:u,allowedTypes:Jt,accept:"audio/*",onSelect:_,onSelectURL:g,onError:x,onReset:()=>_(void 0)})}),(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsxs)(tt.PanelBody,{title:(0,ot.__)("Settings"),children:[(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Autoplay"),onChange:m("autoplay"),checked:s,help:function(e){return e?(0,ot.__)("Autoplay may cause usability issues for some users."):null}}),(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Loop"),onChange:m("loop"),checked:l}),(0,Je.jsx)(tt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,ot._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:(0,ot.__)("Browser default")},{value:"auto",label:(0,ot.__)("Auto")},{value:"metadata",label:(0,ot.__)("Metadata")},{value:"none",label:(0,ot._x)("None","Preload value")}]})]})}),(0,Je.jsxs)("figure",{...y,children:[(0,Je.jsx)(tt.Disabled,{isDisabled:!a,children:(0,Je.jsx)("audio",{controls:"controls",src:null!=u?u:d})}),!!d&&(0,Je.jsx)(tt.Spinner,{}),(0,Je.jsx)(Yt,{attributes:e,setAttributes:o,isSelected:a,insertBlocksAfter:r,label:(0,ot.__)("Audio caption text"),showToolbarButton:a})]})]}):(0,Je.jsx)("div",{...y,children:(0,Je.jsx)(nt.MediaPlaceholder,{icon:(0,Je.jsx)(nt.BlockIcon,{icon:zt}),onSelect:_,onSelectURL:g,accept:"audio/*",allowedTypes:Jt,value:e,onError:x})})};const eo={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Ke.createBlock)("core/audio",{blob:(0,lt.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:a,wma:r}})=>e||t||o||n||a||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},to=eo,oo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:no}=oo,ao={icon:zt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:to,deprecated:At,edit:Xt,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:a,src:r}=e;return r&&(0,Je.jsxs)("figure",{...nt.useBlockProps.save(),children:[(0,Je.jsx)("audio",{controls:"controls",src:r,autoPlay:t,loop:n,preload:a}),!nt.RichText.isEmpty(o)&&(0,Je.jsx)(nt.RichText.Content,{tagName:"figcaption",value:o,className:(0,nt.__experimentalGetElementClassName)("caption")})]})}},ro=()=>et({name:no,metadata:oo,settings:ao}),io=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),{cleanEmptyObject:so}=Ot(nt.privateApis);function lo(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...o}=e.style.typography;return{...e,style:so({...e.style,typography:o}),fontFamily:t.split("|").pop()}}const co=e=>{const{borderRadius:t,...o}=e,n=[t,o.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return n?{...o,style:{...o.style,border:{...o.style?.border,radius:`${n}px`}}}:o};const uo=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:o,customBackgroundColor:n,customGradient:a,...r}=e;return{...r,style:t}},po=e=>{const{color:t,textColor:o,...n}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return uo(n)},mo={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},go={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){const{tagName:o,type:n,textAlign:a,fontSize:r,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",x=(0,nt.__experimentalGetBorderClassesAndStyles)(e),_=(0,nt.__experimentalGetColorClassesAndStyles)(e),b=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),y=(0,nt.__experimentalGetShadowClassesAndStyles)(e),f=ft("wp-block-button__link",_.className,x.className,{[`has-text-align-${a}`]:a,"no-border-radius":0===l?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),v={...x.style,..._.style,...b.style,...y.style},k=ft(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":r||l?.typography?.fontSize});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:k}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:m,type:g?h:null,className:f,href:g?null:d,title:u,style:v,value:c,target:g?null:i,rel:g?null:s})})}},ho={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:a,style:r,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,nt.__experimentalGetBorderClassesAndStyles)(e),d=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),m=ft("wp-block-button__link",d.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...d.style,...p.style},h=ft(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||r?.typography?.fontSize});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:h}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:a})})}},xo={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:a,style:r,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,nt.__experimentalGetBorderClassesAndStyles)(e),d=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),m=ft("wp-block-button__link",d.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...d.style,...p.style},h=ft(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||r?.typography?.fontSize});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:h}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:a})})},migrate:lo,isEligible:({style:e})=>e?.typography?.fontFamily},_o=[go,ho,xo,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...mo,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:a,style:r,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=r?.border?.radius,d=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=ft("wp-block-button__link",d.className,{"no-border-radius":0===r?.border?.radius}),m={borderRadius:u||void 0,...d.style},g=ft(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||r?.typography?.fontSize});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:g}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:p,href:l,title:s,style:m,value:i,target:n,rel:a})})},migrate:(0,ut.compose)(lo,co)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...mo,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:a,text:r,title:i,url:s,width:l}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),u=ft("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=ft(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:p}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:r,target:n,rel:a})})},migrate:(0,ut.compose)(lo,co)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...mo,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:a,text:r,title:i,url:s,width:l}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),u=ft("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=ft(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:p}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:r,target:n,rel:a})})},migrate:(0,ut.compose)(lo,co)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...mo,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:o,rel:n,text:a,title:r,url:i}=e,s=ft("wp-block-button__link",{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0};return(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:s,href:i,title:r,style:l,value:a,target:o,rel:n})},migrate:co},{supports:{align:!0,alignWide:!1},attributes:{...mo,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,ut.compose)(co,uo,(function(e){if(!e.align)return e;const{align:t,...o}=e;return{...o,className:ft(o.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:a,customGradient:r,linkTarget:i,gradient:s,rel:l,text:c,textColor:u,title:d,url:p}=e,m=(0,nt.getColorClassName)("color",u),g=!r&&(0,nt.getColorClassName)("background-color",t),h=(0,nt.__experimentalGetGradientClass)(s),x=ft("wp-block-button__link",{"has-text-color":u||a,[m]:m,"has-background":t||n||r||s,[g]:g,"no-border-radius":0===o,[h]:h}),_={background:r||void 0,backgroundColor:g||r||s?void 0:n,color:m?void 0:a,borderRadius:o?o+"px":void 0};return(0,Je.jsx)("div",{children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:x,href:p,title:d,style:_,value:c,target:i,rel:l})})}},{attributes:{...mo,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),co(uo({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:a,rel:r,text:i,textColor:s,title:l,url:c}=e,u=(0,nt.getColorClassName)("color",s),d=(0,nt.getColorClassName)("background-color",t),p=ft("wp-block-button__link",{"has-text-color":s||n,[u]:u,"has-background":t||o,[d]:d}),m={backgroundColor:d?void 0:o,color:u?void 0:n};return(0,Je.jsx)("div",{children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:p,href:c,title:l,style:m,value:i,target:a,rel:r})})}},{attributes:{...mo,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:po,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:a,textColor:r,customBackgroundColor:i,customTextColor:s}=e,l=(0,nt.getColorClassName)("color",r),c=(0,nt.getColorClassName)("background-color",a),u=ft("wp-block-button__link",{"has-text-color":r||s,[l]:l,"has-background":a||i,[c]:c}),d={backgroundColor:c?void 0:i,color:l?void 0:s};return(0,Je.jsx)("div",{children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:d,value:o})})}},{attributes:{...mo,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:a,color:r,textColor:i}=e,s={backgroundColor:r,color:i};return(0,Je.jsx)("div",{className:`align${a}`,children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:s,value:o})})},migrate:po},{attributes:{...mo,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:a,color:r,textColor:i}=e;return(0,Je.jsx)("div",{className:`align${a}`,style:{backgroundColor:r},children:(0,Je.jsx)(nt.RichText.Content,{tagName:"a",href:t,title:n,style:{color:i},value:o})})},migrate:po}],bo=_o,yo="noreferrer noopener",fo="_blank",vo="nofollow";function ko(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const wo=window.wp.keycodes,Co=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),jo=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),So=[...nt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,ot.__)("Mark as nofollow")}];function Bo({selectedWidth:e,setAttributes:t}){const o=mt();return(0,Je.jsx)(tt.__experimentalToolsPanel,{label:(0,ot.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:o,children:(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),__nextHasNoMarginBottom:!0,children:(0,Je.jsx)(tt.__experimentalToggleGroupControl,{label:(0,ot.__)("Width"),value:e,onChange:e=>t({width:e}),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[25,50,75,100].map((e=>(0,Je.jsx)(tt.__experimentalToggleGroupControlOption,{value:e,label:(0,ot.sprintf)((0,ot.__)("%d%%"),e)},e)))})})})}const To=function(e){const{attributes:t,setAttributes:o,className:n,isSelected:a,onReplace:r,mergeBlocks:i,clientId:s,context:l}=e,{tagName:c,textAlign:u,linkTarget:d,placeholder:p,rel:m,style:g,text:h,url:x,width:_,metadata:b}=t,y=c||"a",[f,v]=(0,st.useState)(null),k=(0,nt.__experimentalUseBorderProps)(t),w=(0,nt.__experimentalUseColorProps)(t),C=(0,nt.__experimentalGetSpacingClassesAndStyles)(t),j=(0,nt.__experimentalGetShadowClassesAndStyles)(t),S=(0,st.useRef)(),B=(0,st.useRef)(),T=(0,nt.useBlockProps)({ref:(0,ut.useMergeRefs)([v,S]),onKeyDown:function(e){wo.isKeyboardEvent.primary(e,"k")?R(e):wo.isKeyboardEvent.primaryShift(e,"k")&&(H(),B.current?.focus())}}),N=(0,nt.useBlockEditingMode)(),[P,I]=(0,st.useState)(!1),M=!!x,D=d===fo,z=!!m?.includes(vo),A="a"===y;function R(e){e.preventDefault(),I(!0)}function H(){o({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,st.useEffect)((()=>{a||I(!1)}),[a]);const L=(0,st.useMemo)((()=>({url:x,opensInNewTab:D,nofollow:z})),[x,D,z]),V=function(e){const{replaceBlocks:t,selectionChange:o}=(0,it.useDispatch)(nt.store),{getBlock:n,getBlockRootClientId:a,getBlockIndex:r}=(0,it.useSelect)(nt.store),i=(0,st.useRef)(e);return i.current=e,(0,ut.useRefEffect)((e=>{function s(e){if(e.defaultPrevented||e.keyCode!==wo.ENTER)return;const{content:s,clientId:l}=i.current;if(s.length)return;e.preventDefault();const c=n(a(l)),u=r(l),d=(0,Ke.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,Ke.createBlock)((0,Ke.getDefaultBlockName)()),m=c.innerBlocks.slice(u+1),g=m.length?[(0,Ke.cloneBlock)({...c,innerBlocks:m})]:[];t(c.clientId,[d,p,...g],1),o(p.clientId)}return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}}),[])}({content:h,clientId:s}),F=(0,ut.useMergeRefs)([V,B]),{lockUrlControls:E=!1}=(0,it.useSelect)((e=>{if(!a)return{};const t=(0,Ke.getBlockBindingsSource)(b?.bindings?.url?.source);return{lockUrlControls:!!b?.bindings?.url&&!t?.canUserEditValue?.({select:e,context:l,args:b?.bindings?.url?.args})}}),[l,a,b?.bindings?.url]),[O,$]=(0,nt.useSettings)("typography.fluid","layout"),G=(0,nt.getTypographyClassesAndStyles)(t,{typography:{fluid:O},layout:{wideSize:$?.wideSize}});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{...T,className:ft(T.className,{[`has-custom-width wp-block-button__width-${_}`]:_}),children:(0,Je.jsx)(nt.RichText,{ref:F,"aria-label":(0,ot.__)("Button text"),placeholder:p||(0,ot.__)("Add text…"),value:h,onChange:e=>o({text:ko(e)}),withoutInteractiveFormatting:!0,className:ft(n,"wp-block-button__link",w.className,k.className,G.className,{[`has-text-align-${u}`]:u,"no-border-radius":0===g?.border?.radius,"has-custom-font-size":T.style.fontSize},(0,nt.__experimentalGetElementClassName)("button")),style:{...k.style,...w.style,...C.style,...j.style,...G.style,writingMode:void 0},onReplace:r,onMerge:i,identifier:"text"})}),(0,Je.jsxs)(nt.BlockControls,{group:"block",children:["default"===N&&(0,Je.jsx)(nt.AlignmentControl,{value:u,onChange:e=>{o({textAlign:e})}}),!M&&A&&!E&&(0,Je.jsx)(tt.ToolbarButton,{name:"link",icon:Co,title:(0,ot.__)("Link"),shortcut:wo.displayShortcut.primary("k"),onClick:R}),M&&A&&!E&&(0,Je.jsx)(tt.ToolbarButton,{name:"link",icon:jo,title:(0,ot.__)("Unlink"),shortcut:wo.displayShortcut.primaryShift("k"),onClick:H,isActive:!0})]}),A&&a&&(P||M)&&!E&&(0,Je.jsx)(tt.Popover,{placement:"bottom",onClose:()=>{I(!1),B.current?.focus()},anchor:f,focusOnMount:!!P&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Je.jsx)(nt.LinkControl,{value:L,onChange:({url:e,opensInNewTab:t,nofollow:n})=>o(function({rel:e="",url:t="",opensInNewTab:o,nofollow:n}){let a,r=e;if(o)a=fo,r=r?.includes(yo)?r:r+` ${yo}`;else{const e=new RegExp(`\\b${yo}\\s*`,"g");r=r?.replace(e,"").trim()}if(n)r=r?.includes(vo)?r:(r+` ${vo}`).trim();else{const e=new RegExp(`\\b${vo}\\s*`,"g");r=r?.replace(e,"").trim()}return{url:(0,vt.prependHTTP)(t),linkTarget:a,rel:r||void 0}}({rel:m,url:e,opensInNewTab:t,nofollow:n})),onRemove:()=>{H(),B.current?.focus()},forceIsEditingLink:P,settings:So})}),(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsx)(Bo,{selectedWidth:_,setAttributes:o})}),(0,Je.jsx)(nt.InspectorControls,{group:"advanced",children:A&&(0,Je.jsx)(tt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,ot.__)("Link rel"),value:m||"",onChange:e=>o({rel:e})})})]})};const No={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button",selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}}},{name:Po}=No,Io={icon:io,example:{attributes:{className:"is-style-fill",text:(0,ot.__)("Call to action")}},edit:To,save:function({attributes:e,className:t}){const{tagName:o,type:n,textAlign:a,fontSize:r,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",x=(0,nt.__experimentalGetBorderClassesAndStyles)(e),_=(0,nt.__experimentalGetColorClassesAndStyles)(e),b=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),y=(0,nt.__experimentalGetShadowClassesAndStyles)(e),f=(0,nt.getTypographyClassesAndStyles)(e),v=ft("wp-block-button__link",_.className,x.className,f.className,{[`has-text-align-${a}`]:a,"no-border-radius":0===l?.border?.radius,"has-custom-font-size":r||l?.typography?.fontSize},(0,nt.__experimentalGetElementClassName)("button")),k={...x.style,..._.style,...b.style,...y.style,...f.style,writingMode:void 0},w=ft(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,Je.jsx)("div",{...nt.useBlockProps.save({className:w}),children:(0,Je.jsx)(nt.RichText.Content,{tagName:m,type:g?h:null,className:v,href:g?null:d,title:u,style:k,value:c,target:g?null:i,rel:g?null:s})})},deprecated:bo,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Mo=()=>et({name:Po,metadata:No,settings:Io}),Do=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),zo=e=>{if(e.layout)return e;const{contentJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},Ao=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:zo,save:({attributes:{contentJustification:e,orientation:t}})=>(0,Je.jsx)("div",{...nt.useBlockProps.save({className:ft({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})}),children:(0,Je.jsx)(nt.InnerBlocks.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Je.jsx)("div",{children:(0,Je.jsx)(nt.InnerBlocks.Content,{})}),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>zo({...e,align:void 0,contentJustification:e.align})}],Ro=Ao,Ho=window.wp.richText;function Lo(e,t,o){if(!e)return;const{supports:n}=(0,Ke.getBlockType)(t),a=[];if(["core/paragraph","core/heading","core/image","core/button"].includes(t)&&o&&a.push("id","bindings"),!1!==n.renaming&&a.push("name"),!a.length)return;const r=Object.entries(e).reduce(((e,[t,n])=>a.includes(t)?(e[t]="bindings"===t?o(n):n,e):e),{});return Object.keys(r).length?r:void 0}const Vo={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Ke.createBlock)("core/buttons",{},e.map((e=>(0,Ke.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Ke.createBlock)("core/buttons",{},e.map((e=>{const{content:t,metadata:o}=e,n=(0,Ho.__unstableCreateElement)(document,t),a=n.innerText||"",r=n.querySelector("a"),i=r?.getAttribute("href");return(0,Ke.createBlock)("core/button",{text:a,url:i,metadata:Lo(o,"core/button",(({content:e})=>({text:e})))})}))),isMatch:e=>e.every((e=>{const t=(0,Ho.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1}))}]},Fo=Vo,Eo={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const Oo=function({attributes:e,className:t}){var o;const{fontSize:n,layout:a,style:r}=e,i=(0,nt.useBlockProps)({className:ft(t,{"has-custom-font-size":n||r?.typography?.fontSize})}),{hasButtonVariations:s}=(0,it.useSelect)((e=>({hasButtonVariations:e(Ke.store).getBlockVariations("core/button","inserter").length>0})),[]),l=(0,nt.useInnerBlocksProps)(i,{defaultBlock:Eo,directInsert:!s,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:null!==(o=a?.orientation)&&void 0!==o?o:"horizontal"});return(0,Je.jsx)("div",{...l})};const $o={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Go}=$o,Uo={icon:Do,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,ot.__)("Find out more")}},{name:"core/button",attributes:{text:(0,ot.__)("Contact us")}}]},deprecated:Ro,transforms:Fo,edit:Oo,save:function({attributes:e,className:t}){const{fontSize:o,style:n}=e,a=nt.useBlockProps.save({className:ft(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),r=nt.useInnerBlocksProps.save(a);return(0,Je.jsx)("div",{...r})}},qo=()=>et({name:Go,metadata:$o,settings:Uo}),Wo=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),Zo=Ht((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));const Qo={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Ke.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Ke.createBlock)("core/archives")}]},Ko={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:Yo}=Ko,Jo={icon:Wo,example:{},edit:function({attributes:e}){const t=(0,nt.useBlockProps)(),{date:o,hasPosts:n,hasPostsResolved:a}=(0,it.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(ct.store),n={status:"publish",per_page:1},a=t("postType","post",n),r=o("getEntityRecords",["postType","post",n]);let i;const s=e("core/editor");if(s){"post"===s.getEditedPostAttribute("type")&&(i=s.getEditedPostAttribute("date"))}return{date:i,hasPostsResolved:r,hasPosts:r&&1===a?.length}}),[]);return n?(0,Je.jsx)("div",{...t,children:(0,Je.jsx)(tt.Disabled,{children:(0,Je.jsx)(rt(),{block:"core/calendar",attributes:{...e,...Zo(o)}})})}):(0,Je.jsx)("div",{...t,children:(0,Je.jsx)(tt.Placeholder,{icon:Wo,label:(0,ot.__)("Calendar"),children:a?(0,ot.__)("No published posts found."):(0,Je.jsx)(tt.Spinner,{})})})},transforms:Qo},Xo=()=>et({name:Yo,metadata:Ko,settings:Jo}),en=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),tn=window.wp.htmlEntities,on=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});const nn=[{name:"terms",title:(0,ot.__)("Terms List"),icon:en,attributes:{taxonomy:"post_tag"},isActive:e=>"category"!==e.taxonomy},{name:"categories",title:(0,ot.__)("Categories List"),description:(0,ot.__)("Display a list of all categories."),icon:en,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],an=nn,rn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:sn}=rn,ln={icon:en,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n,showOnlyTopLevel:a,showEmpty:r,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u}){const d=(0,ut.useInstanceId)(e,"blocks-category-select"),{records:p,isResolvingTaxonomies:m}=(0,ct.useEntityRecords)("root","taxonomy"),g=p?.filter((e=>e.visibility.public)),h=g?.find((e=>e.slug===l)),x=!m&&h?.hierarchical,_={per_page:-1,hide_empty:!r,context:"view"};x&&a&&(_.parent=0);const{records:b,isResolving:y}=(0,ct.useEntityRecords)("taxonomy",l,_),f=e=>b?.length?null===e?b:b.filter((({parent:t})=>t===e)):[],v=e=>t=>c({[e]:t}),k=e=>e?(0,tn.decodeEntities)(e).trim():(0,ot.__)("(Untitled)"),w=e=>{const t=f(e.id),{id:a,link:r,count:i,name:s}=e;return(0,Je.jsxs)("li",{className:`cat-item cat-item-${a}`,children:[(0,Je.jsx)("a",{href:r,target:"_blank",rel:"noreferrer noopener",children:k(s)}),n&&` (${i})`,x&&o&&!!t.length&&(0,Je.jsx)("ul",{className:"children",children:t.map((e=>w(e)))})]},a)},C=(e,t)=>{const{id:a,count:r,name:i}=e,s=f(a);return[(0,Je.jsxs)("option",{className:`level-${t}`,children:[Array.from({length:3*t}).map((()=>" ")),k(i),n&&` (${r})`]},a),x&&o&&!!s.length&&s.map((e=>C(e,t+1)))]},j=!b?.length||t||y?"div":"ul",S=ft(u,{"wp-block-categories-list":!!b?.length&&!t&&!y,"wp-block-categories-dropdown":!!b?.length&&t&&!y}),B=(0,nt.useBlockProps)({className:S}),T=mt();return(0,Je.jsxs)(j,{...B,children:[(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsxs)(tt.__experimentalToolsPanel,{label:(0,ot.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:T,children:[Array.isArray(g)&&(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==l,label:(0,ot.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,Je.jsx)(tt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,ot.__)("Taxonomy"),options:g.map((e=>({label:e.name,value:e.slug}))),value:l,onChange:e=>c({taxonomy:e})})}),(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,ot.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Display as dropdown"),checked:t,onChange:v("displayAsDropdown")})}),t&&(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,ot.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,ot.__)("Show label"),checked:s,onChange:v("showLabel")})}),(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,ot.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Show post counts"),checked:n,onChange:v("showPostCounts")})}),x&&(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,ot.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Show only top level terms"),checked:a,onChange:v("showOnlyTopLevel")})}),(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,ot.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Show empty terms"),checked:r,onChange:v("showEmpty")})}),x&&!a&&(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,ot.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Show hierarchy"),checked:o,onChange:v("showHierarchy")})})]})}),y&&(0,Je.jsx)(tt.Placeholder,{icon:on,label:(0,ot.__)("Terms"),children:(0,Je.jsx)(tt.Spinner,{})}),!y&&0===b?.length&&(0,Je.jsx)("p",{children:h.labels.no_terms}),!y&&b?.length>0&&(t?(()=>{const e=f(x&&o?0:null);return(0,Je.jsxs)(Je.Fragment,{children:[s?(0,Je.jsx)(nt.RichText,{className:"wp-block-categories__label","aria-label":(0,ot.__)("Label text"),placeholder:h.name,withoutInteractiveFormatting:!0,value:i,onChange:e=>c({label:e})}):(0,Je.jsx)(tt.VisuallyHidden,{as:"label",htmlFor:d,children:i||h.name}),(0,Je.jsxs)("select",{id:d,children:[(0,Je.jsx)("option",{children:(0,ot.sprintf)((0,ot.__)("Select %s"),h.labels.singular_name)}),e.map((e=>C(e,0)))]})]})})():f(x&&o?0:null).map((e=>w(e))))]})},variations:an},cn=()=>et({name:sn,metadata:rn,settings:ln}),un=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})}),dn=({clientId:e})=>{const{replaceBlocks:t}=(0,it.useDispatch)(nt.store),o=(0,it.useSelect)((t=>t(nt.store).getBlock(e)),[e]);return(0,Je.jsx)(tt.ToolbarButton,{onClick:()=>t(o.clientId,(0,Ke.rawHandler)({HTML:(0,Ke.serialize)(o)})),children:(0,ot.__)("Convert to blocks")})},pn=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});function mn({onClick:e,isModalFullScreen:t}){return(0,ut.useViewportMatch)("small","<")?null:(0,Je.jsx)(tt.Button,{size:"compact",onClick:e,icon:pn,isPressed:t,label:t?(0,ot.__)("Exit fullscreen"):(0,ot.__)("Enter fullscreen")})}function gn(e){const t=(0,it.useSelect)((e=>e(nt.store).getSettings().styles));return(0,st.useEffect)((()=>{const{baseURL:o,suffix:n,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:n}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(e){e.on("init",(()=>{const o=e.getDoc();t.forEach((({css:e})=>{const t=o.createElement("style");t.innerHTML=e,o.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,Je.jsx)("textarea",{...e})}function hn(e){const{clientId:t,attributes:{content:o},setAttributes:n,onReplace:a}=e,[r,i]=(0,st.useState)(!1),[s,l]=(0,st.useState)(!1),c=`editor-${t}`,u=()=>o?i(!1):a([]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(nt.BlockControls,{children:(0,Je.jsx)(tt.ToolbarGroup,{children:(0,Je.jsx)(tt.ToolbarButton,{onClick:()=>i(!0),children:(0,ot.__)("Edit")})})}),o&&(0,Je.jsx)(st.RawHTML,{children:o}),(r||!o)&&(0,Je.jsxs)(tt.Modal,{title:(0,ot.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,Je.jsx)(mn,{onClick:()=>l(!s),isModalFullScreen:s}),children:[(0,Je.jsx)(gn,{id:c,defaultValue:o}),(0,Je.jsxs)(tt.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Je.jsx)(tt.FlexItem,{children:(0,Je.jsx)(tt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:u,children:(0,ot.__)("Cancel")})}),(0,Je.jsx)(tt.FlexItem,{children:(0,Je.jsx)(tt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{n({content:window.wp.oldEditor.getContent(c)}),i(!1)},children:(0,ot.__)("Save")})})]})]})]})}const{wp:xn}=window;function _n({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const{getMultiSelectedBlockClientIds:a}=(0,it.useSelect)(nt.store),r=(0,st.useRef)(!1);return(0,st.useEffect)((()=>{if(!r.current)return;const o=window.tinymce.get(`editor-${e}`);if(!o)return;o.getContent()!==t&&o.setContent(t||"")}),[e,t]),(0,st.useEffect)((()=>{const{baseURL:i,suffix:s}=window.wpEditorL10n.tinymce;function l(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return a()?.length||o({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==n&&(t.scrollTop=n))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const i=(0,ut.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",i),e.on("remove",i.cancel),e.on("keydown",(t=>{wo.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==wo.BACKSPACE&&t.keyCode!==wo.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===wo.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;xn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:l}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:i,suffix:s}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),xn.oldEditor.remove(`editor-${e}`),r.current=!1}}),[]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,ot.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,Je.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const bn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:yn}=bn,fn={icon:un,edit:function(e){const{clientId:t}=e,o=(0,it.useSelect)((e=>e(nt.store).canRemoveBlock(t)),[t]),[n,a]=(0,st.useState)(!1),r=(0,ut.useRefEffect)((e=>{a(e.ownerDocument!==document)}),[]);return(0,Je.jsxs)(Je.Fragment,{children:[o&&(0,Je.jsx)(nt.BlockControls,{children:(0,Je.jsx)(tt.ToolbarGroup,{children:(0,Je.jsx)(dn,{clientId:t})})}),(0,Je.jsx)("div",{...(0,nt.useBlockProps)({ref:r}),children:n?(0,Je.jsx)(hn,{...e}):(0,Je.jsx)(_n,{...e})})]})},save:function({attributes:e}){const{content:t}=e;return(0,Je.jsx)(st.RawHTML,{children:t})}},vn=()=>et({name:yn,metadata:bn,settings:fn}),kn=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});function wn(e){return e.replace(/\[/g,"[")}function Cn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const jn={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Ke.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Ke.createBlock)("core/code",{content:e,metadata:Lo(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>(0,Ke.createBlock)("core/code",{content:(0,Ho.toHTMLString)({value:(0,Ho.create)({text:e})}),metadata:Lo(t,"core/code")})},{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:({content:e,metadata:t})=>(0,Ke.createBlock)("core/paragraph",{content:e,metadata:Lo(t,"core/paragraph")})}]},Sn=jn,Bn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:Tn}=Bn,Nn={icon:kn,example:{attributes:{content:(0,ot.__)("// 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:Sn,edit:function({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:n,mergeBlocks:a}){const r=(0,nt.useBlockProps)();return(0,Je.jsx)("pre",{...r,children:(0,Je.jsx)(nt.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:o,onMerge:a,placeholder:(0,ot.__)("Write code…"),"aria-label":(0,ot.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,Ke.createBlock)((0,Ke.getDefaultBlockName)()))})})},save:function({attributes:e}){return(0,Je.jsx)("pre",{...nt.useBlockProps.save(),children:(0,Je.jsx)(nt.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,ut.pipe)(wn,Cn)(t||""))})});var t}},Pn=()=>et({name:Tn,metadata:Bn,settings:Nn}),In=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),Mn=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=ft({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:o+"%"};return(0,Je.jsx)("div",{className:n,style:a,children:(0,Je.jsx)(nt.InnerBlocks.Content,{})})}}],Dn=Mn;function zn({width:e,setAttributes:t}){const[o]=(0,nt.useSettings)("spacing.units"),n=(0,tt.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]}),a=mt();return(0,Je.jsx)(tt.__experimentalToolsPanel,{label:(0,ot.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:a,children:(0,Je.jsx)(tt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==e,label:(0,ot.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,Je.jsx)(tt.__experimentalUnitControl,{label:(0,ot.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:n})})})}const An=function({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:n},setAttributes:a,clientId:r}){const i=ft("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:l,rootClientId:c}=(0,it.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(nt.store),n=o(r);return{hasChildBlocks:t(r).length>0,rootClientId:n,columnsIds:t(n)}}),[r]),{updateBlockAttributes:u}=(0,it.useDispatch)(nt.store),d=Number.isFinite(t)?t+"%":t,p=(0,nt.useBlockProps)({className:i,style:d?{flexBasis:d}:void 0}),m=s.length,g=s.indexOf(r)+1,h=(0,ot.sprintf)((0,ot.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,m),x=(0,nt.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:o,allowedBlocks:n,renderAppender:l?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(nt.BlockControls,{children:(0,Je.jsx)(nt.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),u(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})}),(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsx)(zn,{width:t,setAttributes:a})}),(0,Je.jsx)("div",{...x})]})};const Rn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:Hn}=Rn,Ln={icon:In,edit:An,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=ft({[`is-vertically-aligned-${t}`]:t});let a;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&o?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}a={flexBasis:e}}const r=nt.useBlockProps.save({className:n,style:a}),i=nt.useInnerBlocksProps.save(r);return(0,Je.jsx)("div",{...i})},deprecated:Dn},Vn=()=>et({name:Hn,metadata:Rn,settings:Ln}),Fn=(0,Je.jsx)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function En(e){let t,{doc:o}=En;o||(o=document.implementation.createHTMLDocument(""),En.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}const On=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:a,customTextColor:r}=e,i=(0,nt.getColorClassName)("background-color",o),s=(0,nt.getColorClassName)("color",a),l=ft({"has-background":o||n,"has-text-color":a||r,[i]:i,[s]:s,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:i?void 0:n,color:s?void 0:r};return(0,Je.jsx)("div",{className:l||void 0,style:c,children:(0,Je.jsx)(nt.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==En(e.originalContent))),migrate(e,t){const o=t.reduce(((e,t)=>{const{originalContent:o}=t;let n=En(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((e=>(0,Ke.createBlock)("core/column",{},e))),{columns:n,...a}=e;return[{...a,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return(0,Je.jsx)("div",{className:`has-${t}-columns`,children:(0,Je.jsx)(nt.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:o,...n}=e;return[e={...n,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=ft(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Je.jsx)("div",{className:n,children:(0,Je.jsx)(nt.InnerBlocks.Content,{})})}}],$n=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Gn(e,t){const{width:o=100/t}=e.attributes;return $n(o)}function Un(e,t,o=e.length){const n=function(e,t=e.length){return e.reduce(((e,o)=>e+Gn(o,t)),0)}(e,o);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,o)=>{const n=Gn(o,t);return Object.assign(e,{[o.clientId]:n})}),{})}(e,o)).map((([e,o])=>[e,$n(t*o/n)])))}function qn(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Wn={name:"core/column"};function Zn({clientId:e,setAttributes:t,isStackedOnMobile:o}){const{count:n,canInsertColumnBlock:a,minCount:r}=(0,it.useSelect)((t=>{const{canInsertBlockType:o,canRemoveBlock:n,getBlockOrder:a}=t(nt.store),r=a(e),i=r.reduce(((e,t,o)=>(n(t)||e.push(o),e)),[]);return{count:r.length,canInsertColumnBlock:o("core/column",e),minCount:Math.max(...i)+1}}),[e]),{getBlocks:i}=(0,it.useSelect)(nt.store),{replaceInnerBlocks:s}=(0,it.useDispatch)(nt.store);function l(t,o){let n=i(e);const a=n.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const r=o>t;if(r&&a){const e=$n(100/o),a=o-t;n=[...qn(n,Un(n,100-e*a)),...Array.from({length:a}).map((()=>(0,Ke.createBlock)("core/column",{width:`${e}%`})))]}else if(r)n=[...n,...Array.from({length:o-t}).map((()=>(0,Ke.createBlock)("core/column")))];else if(o{l(n,r),t({isStackedOnMobile:!0})},dropdownMenuProps:c,children:[a&&(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Columns"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>l(n,r),children:(0,Je.jsxs)(tt.__experimentalVStack,{spacing:4,children:[(0,Je.jsx)(tt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,ot.__)("Columns"),value:n,onChange:e=>l(n,Math.max(r,e)),min:Math.max(1,r),max:Math.max(6,n)}),n>6&&(0,Je.jsx)(tt.Notice,{status:"warning",isDismissible:!1,children:(0,ot.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]})}),(0,Je.jsx)(tt.__experimentalToolsPanelItem,{label:(0,ot.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!0!==o,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Je.jsx)(tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ot.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})})]})}function Qn({attributes:e,setAttributes:t,clientId:o}){const{isStackedOnMobile:n,verticalAlignment:a,templateLock:r}=e,i=(0,it.useRegistry)(),{getBlockOrder:s}=(0,it.useSelect)(nt.store),{updateBlockAttributes:l}=(0,it.useDispatch)(nt.store),c=ft({[`are-vertically-aligned-${a}`]:a,"is-not-stacked-on-mobile":!n}),u=(0,nt.useBlockProps)({className:c}),d=(0,nt.useInnerBlocksProps)(u,{defaultBlock:Wn,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:r});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(nt.BlockControls,{children:(0,Je.jsx)(nt.BlockVerticalAlignmentToolbar,{onChange:function(e){const n=s(o);i.batch((()=>{t({verticalAlignment:e}),l(n,{verticalAlignment:e})}))},value:a})}),(0,Je.jsx)(nt.InspectorControls,{children:(0,Je.jsx)(Zn,{clientId:o,setAttributes:t,isStackedOnMobile:n})}),(0,Je.jsx)("div",{...d})]})}function Kn({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:a,variations:r}=(0,it.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:a}=e(Ke.store);return{blockType:n(t),defaultVariation:a(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:i}=(0,it.useDispatch)(nt.store),s=(0,nt.useBlockProps)();return(0,Je.jsx)("div",{...s,children:(0,Je.jsx)(nt.__experimentalBlockVariationPicker,{icon:n?.icon?.src,label:n?.title,variations:r,instructions:(0,ot.__)("Divide into columns. Select a layout:"),onSelect:(t=a)=>{t.attributes&&o(t.attributes),t.innerBlocks&&i(e,(0,Ke.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0})})}const Yn=e=>{const{clientId:t}=e,o=(0,it.useSelect)((e=>e(nt.store).getBlocks(t).length>0),[t])?Qn:Kn;return(0,Je.jsx)(o,{...e})};const Jn=[{name:"one-column-full",title:(0,ot.__)("100"),description:(0,ot.__)("One column"),icon:(0,Je.jsx)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(tt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,ot.__)("50 / 50"),description:(0,ot.__)("Two columns; equal split"),icon:(0,Je.jsx)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(tt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,ot.__)("33 / 66"),description:(0,ot.__)("Two columns; one-third, two-thirds split"),icon:(0,Je.jsx)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(tt.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,ot.__)("66 / 33"),description:(0,ot.__)("Two columns; two-thirds, one-third split"),icon:(0,Je.jsx)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(tt.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,ot.__)("33 / 33 / 33"),description:(0,ot.__)("Three columns; equal split"),icon:(0,Je.jsx)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(tt.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,ot.__)("25 / 50 / 25"),description:(0,ot.__)("Three columns; wide center column"),icon:(0,Je.jsx)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(tt.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],Xn={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map((({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:`${t}%`},[[e,{...o},n]]]));return(0,Ke.createBlock)("core/columns",{},(0,Ke.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:a,style:r,mediaAlt:i,mediaId:s,mediaPosition:l,mediaSizeSlug:c,mediaType:u,mediaUrl:d,mediaWidth:p,verticalAlignment:m}=e;let g;if("image"!==u&&u)g=["core/video",{id:s,src:d}];else{g=["core/image",{...{id:s,alt:i,url:d,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===l&&h.reverse(),(0,Ke.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:a,style:r,verticalAlignment:m},(0,Ke.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))},ea=Xn,ta={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:oa}=ta,na={icon:Fn,variations:Jn,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ot.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,ot.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ot.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,ot.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:On,edit:Yn,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:o}=e,n=ft({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),a=nt.useBlockProps.save({className:n}),r=nt.useInnerBlocksProps.save(a);return(0,Je.jsx)("div",{...r})},transforms:ea},aa=()=>et({name:oa,metadata:ta,settings:na}),ra=(0,Je.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ye.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),ia=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=nt.useBlockProps.save(),{className:o}=t,n=o?.split(" ")||[],a=n?.filter((e=>"wp-block-comments"!==e)),r={...t,className:a.join(" ")};return(0,Je.jsx)(e,{...r,children:(0,Je.jsx)(nt.InnerBlocks.Content,{})})}}],sa={article:(0,ot.__)("The
element should represent a self-contained, syndicatable portion of the document."),aside:(0,ot.__)("The