/*! This file is auto-generated */ (()=>{var e={7078:e=>{e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},3827:(e,t)=>{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var a=function(){function e(){}function t(e,t){for(var n=t.length,a=0;a{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var a={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,o,r;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(o=a;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((a=t.length)!=n.length)return!1;for(o=a;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=a;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,r[o]))return!1;for(o=a;0!=o--;){var l=r[o];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},4793: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",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),a=new RegExp(n,"g"),o=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(a,r)};e.exports=l,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=l}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";n.r(a),n.d(a,{__experimentalGetCoreBlocks:()=>XS,__experimentalRegisterExperimentalCoreBlocks:()=>tB,registerCoreBlocks:()=>eB});var e={};n.r(e),n.d(e,{init:()=>st,metadata:()=>rt,name:()=>lt,settings:()=>it});var t={};n.r(t),n.d(t,{init:()=>Bt,metadata:()=>Et,name:()=>Ct,settings:()=>St});var o={};n.r(o),n.d(o,{init:()=>nn,metadata:()=>Xt,name:()=>en,settings:()=>tn});var r={};n.r(r),n.d(r,{init:()=>Nn,metadata:()=>Cn,name:()=>Sn,settings:()=>Bn});var l={};n.r(l),n.d(l,{init:()=>$n,metadata:()=>Dn,name:()=>Vn,settings:()=>Fn});var i={};n.r(i),n.d(i,{init:()=>Zn,metadata:()=>qn,name:()=>jn,settings:()=>Wn});var s={};n.r(s),n.d(s,{init:()=>ta,metadata:()=>Jn,name:()=>Xn,settings:()=>ea});var c={};n.r(c),n.d(c,{init:()=>da,metadata:()=>ua,name:()=>ma,settings:()=>pa});var u={};n.r(u),n.d(u,{init:()=>ka,metadata:()=>ya,name:()=>va,settings:()=>fa});var m={};n.r(m),n.d(m,{init:()=>Ta,metadata:()=>Sa,name:()=>Ba,settings:()=>Na});var p={};n.r(p),n.d(p,{init:()=>ja,metadata:()=>Oa,name:()=>Ua,settings:()=>qa});var d={};n.r(d),n.d(d,{init:()=>oo,metadata:()=>to,name:()=>no,settings:()=>ao});var g={};n.r(g),n.d(g,{init:()=>so,metadata:()=>ro,name:()=>lo,settings:()=>io});var h={};n.r(h),n.d(h,{init:()=>bo,metadata:()=>po,name:()=>go,settings:()=>ho});var b={};n.r(b),n.d(b,{init:()=>ko,metadata:()=>yo,name:()=>vo,settings:()=>fo});var _={};n.r(_),n.d(_,{init:()=>To,metadata:()=>So,name:()=>Bo,settings:()=>No});var y={};n.r(y),n.d(y,{init:()=>Ro,metadata:()=>Po,name:()=>Mo,settings:()=>zo});var v={};n.r(v),n.d(v,{init:()=>Fo,metadata:()=>Lo,name:()=>Do,settings:()=>Vo});var f={};n.r(f),n.d(f,{init:()=>Jo,metadata:()=>Qo,name:()=>Ko,settings:()=>Yo});var k={};n.r(k),n.d(k,{init:()=>or,metadata:()=>tr,name:()=>nr,settings:()=>ar});var x={};n.r(x),n.d(x,{init:()=>mr,metadata:()=>sr,name:()=>cr,settings:()=>ur});var w={};n.r(w),n.d(w,{init:()=>_r,metadata:()=>gr,name:()=>hr,settings:()=>br});var E={};n.r(E),n.d(E,{init:()=>wr,metadata:()=>fr,name:()=>kr,settings:()=>xr});var C={};n.r(C),n.d(C,{init:()=>Pr,metadata:()=>Nr,name:()=>Tr,settings:()=>Ir});var S={};n.r(S),n.d(S,{init:()=>Si,metadata:()=>wi,name:()=>Ei,settings:()=>Ci});var B={};n.r(B),n.d(B,{init:()=>zi,metadata:()=>Ii,name:()=>Pi,settings:()=>Mi});var N={};n.r(N),n.d(N,{init:()=>xs,metadata:()=>vs,name:()=>fs,settings:()=>ks});var T={};n.r(T),n.d(T,{init:()=>Vs,metadata:()=>Hs,name:()=>Ls,settings:()=>Ds});var I={};n.r(I),n.d(I,{init:()=>Ks,metadata:()=>Ws,name:()=>Zs,settings:()=>Qs});var P={};n.r(P),n.d(P,{init:()=>sc,metadata:()=>rc,name:()=>lc,settings:()=>ic});var M={};n.r(M),n.d(M,{init:()=>hc,metadata:()=>pc,name:()=>dc,settings:()=>gc});var z={};n.r(z),n.d(z,{init:()=>Ec,metadata:()=>kc,name:()=>xc,settings:()=>wc});var R={};n.r(R),n.d(R,{init:()=>Du,metadata:()=>Au,name:()=>Hu,settings:()=>Lu});var A={};n.r(A),n.d(A,{init:()=>tm,metadata:()=>Ju,name:()=>Xu,settings:()=>em});var H={};n.r(H),n.d(H,{init:()=>Em,metadata:()=>km,name:()=>xm,settings:()=>wm});var L={};n.r(L),n.d(L,{init:()=>Im,metadata:()=>Bm,name:()=>Nm,settings:()=>Tm});var D={};n.r(D),n.d(D,{init:()=>Vm,metadata:()=>Hm,name:()=>Lm,settings:()=>Dm});var V={};n.r(V),n.d(V,{init:()=>bp,metadata:()=>dp,name:()=>gp,settings:()=>hp});var F={};n.r(F),n.d(F,{init:()=>kp,metadata:()=>yp,name:()=>vp,settings:()=>fp});var $={};n.r($),n.d($,{init:()=>Pp,metadata:()=>Np,name:()=>Tp,settings:()=>Ip});var G={};n.r(G),n.d(G,{init:()=>ad,metadata:()=>ed,name:()=>td,settings:()=>nd});var O={};n.r(O),n.d(O,{init:()=>yd,metadata:()=>hd,name:()=>bd,settings:()=>_d});var U={};n.r(U),n.d(U,{init:()=>wd,metadata:()=>fd,name:()=>kd,settings:()=>xd});var q={};n.r(q),n.d(q,{init:()=>cg,metadata:()=>lg,name:()=>ig,settings:()=>sg});var j={};n.r(j),n.d(j,{init:()=>hg,metadata:()=>pg,name:()=>dg,settings:()=>gg});var W={};n.r(W),n.d(W,{init:()=>xg,metadata:()=>vg,name:()=>fg,settings:()=>kg});var Z={};n.r(Z),n.d(Z,{init:()=>Jh,metadata:()=>Qh,name:()=>Kh,settings:()=>Yh});var Q={};n.r(Q),n.d(Q,{init:()=>mb,metadata:()=>sb,name:()=>cb,settings:()=>ub});var K={};n.r(K),n.d(K,{init:()=>kb,metadata:()=>yb,name:()=>vb,settings:()=>fb});var Y={};n.r(Y),n.d(Y,{init:()=>Bb,metadata:()=>Eb,name:()=>Cb,settings:()=>Sb});var J={};n.r(J),n.d(J,{init:()=>Lb,metadata:()=>Rb,name:()=>Ab,settings:()=>Hb});var X={};n.r(X),n.d(X,{init:()=>Qb,metadata:()=>jb,name:()=>Wb,settings:()=>Zb});var ee={};n.r(ee),n.d(ee,{init:()=>e_,metadata:()=>Yb,name:()=>Jb,settings:()=>Xb});var te={};n.r(te),n.d(te,{init:()=>k_,metadata:()=>y_,name:()=>v_,settings:()=>f_});var ne={};n.r(ne),n.d(ne,{init:()=>N_,metadata:()=>C_,name:()=>S_,settings:()=>B_});var ae={};n.r(ae),n.d(ae,{init:()=>R_,metadata:()=>P_,name:()=>M_,settings:()=>z_});var oe={};n.r(oe),n.d(oe,{init:()=>V_,metadata:()=>H_,name:()=>L_,settings:()=>D_});var re={};n.r(re),n.d(re,{init:()=>q_,metadata:()=>G_,name:()=>O_,settings:()=>U_});var le={};n.r(le),n.d(le,{init:()=>K_,metadata:()=>W_,name:()=>Z_,settings:()=>Q_});var ie={};n.r(ie),n.d(ie,{init:()=>ty,metadata:()=>J_,name:()=>X_,settings:()=>ey});var se={};n.r(se),n.d(se,{init:()=>ly,metadata:()=>ay,name:()=>oy,settings:()=>ry});var ce={};n.r(ce),n.d(ce,{init:()=>_y,metadata:()=>gy,name:()=>hy,settings:()=>by});var ue={};n.r(ue),n.d(ue,{init:()=>Sy,metadata:()=>wy,name:()=>Ey,settings:()=>Cy});var me={};n.r(me),n.d(me,{init:()=>My,metadata:()=>Ty,name:()=>Iy,settings:()=>Py});var pe={};n.r(pe),n.d(pe,{init:()=>Uy,metadata:()=>$y,name:()=>Gy,settings:()=>Oy});var de={};n.r(de),n.d(de,{init:()=>Jy,metadata:()=>Qy,name:()=>Ky,settings:()=>Yy});var ge={};n.r(ge),n.d(ge,{init:()=>rv,metadata:()=>nv,name:()=>av,settings:()=>ov});var he={};n.r(he),n.d(he,{init:()=>hv,metadata:()=>pv,name:()=>dv,settings:()=>gv});var be={};n.r(be),n.d(be,{init:()=>xv,metadata:()=>vv,name:()=>fv,settings:()=>kv});var _e={};n.r(_e),n.d(_e,{init:()=>Nv,metadata:()=>Cv,name:()=>Sv,settings:()=>Bv});var ye={};n.r(ye),n.d(ye,{init:()=>Av,metadata:()=>Mv,name:()=>zv,settings:()=>Rv});var ve={};n.r(ve),n.d(ve,{init:()=>tf,metadata:()=>Jv,name:()=>Xv,settings:()=>ef});var fe={};n.r(fe),n.d(fe,{init:()=>pk,metadata:()=>ck,name:()=>uk,settings:()=>mk});var ke={};n.r(ke),n.d(ke,{init:()=>_k,metadata:()=>gk,name:()=>hk,settings:()=>bk});var xe={};n.r(xe),n.d(xe,{init:()=>Ck,metadata:()=>xk,name:()=>wk,settings:()=>Ek});var we={};n.r(we),n.d(we,{init:()=>Ik,metadata:()=>Bk,name:()=>Nk,settings:()=>Tk});var Ee={};n.r(Ee),n.d(Ee,{init:()=>Ak,metadata:()=>Mk,name:()=>zk,settings:()=>Rk});var Ce={};n.r(Ce),n.d(Ce,{init:()=>Fk,metadata:()=>Lk,name:()=>Dk,settings:()=>Vk});var Se={};n.r(Se),n.d(Se,{init:()=>Qk,metadata:()=>jk,name:()=>Wk,settings:()=>Zk});var Be={};n.r(Be),n.d(Be,{init:()=>ux,metadata:()=>ix,name:()=>sx,settings:()=>cx});var Ne={};n.r(Ne),n.d(Ne,{init:()=>Bx,metadata:()=>Ex,name:()=>Cx,settings:()=>Sx});var Te={};n.r(Te),n.d(Te,{init:()=>Px,metadata:()=>Nx,name:()=>Tx,settings:()=>Ix});var Ie={};n.r(Ie),n.d(Ie,{init:()=>Hx,metadata:()=>zx,name:()=>Rx,settings:()=>Ax});var Pe={};n.r(Pe),n.d(Pe,{init:()=>Qx,metadata:()=>jx,name:()=>Wx,settings:()=>Zx});var Me={};n.r(Me),n.d(Me,{init:()=>aw,metadata:()=>ew,name:()=>tw,settings:()=>nw});var ze={};n.r(ze),n.d(ze,{init:()=>uw,metadata:()=>iw,name:()=>sw,settings:()=>cw});var Re={};n.r(Re),n.d(Re,{init:()=>kw,metadata:()=>yw,name:()=>vw,settings:()=>fw});var Ae={};n.r(Ae),n.d(Ae,{init:()=>Nw,metadata:()=>Cw,name:()=>Sw,settings:()=>Bw});var He={};n.r(He),n.d(He,{init:()=>Lw,metadata:()=>Rw,name:()=>Aw,settings:()=>Hw});var Le={};n.r(Le),n.d(Le,{init:()=>Zw,metadata:()=>qw,name:()=>jw,settings:()=>Ww});var De={};n.r(De),n.d(De,{init:()=>aE,metadata:()=>eE,name:()=>tE,settings:()=>nE});var Ve={};n.r(Ve),n.d(Ve,{init:()=>hE,metadata:()=>pE,name:()=>dE,settings:()=>gE});var Fe={};n.r(Fe),n.d(Fe,{init:()=>KE,metadata:()=>WE,name:()=>ZE,settings:()=>QE});var $e={};n.r($e),n.d($e,{init:()=>iC,metadata:()=>oC,name:()=>rC,settings:()=>lC});var Ge={};n.r(Ge),n.d(Ge,{init:()=>dC,metadata:()=>uC,name:()=>mC,settings:()=>pC});var Oe={};n.r(Oe),n.d(Oe,{init:()=>qC,metadata:()=>GC,name:()=>OC,settings:()=>UC});var Ue={};n.r(Ue),n.d(Ue,{init:()=>KC,metadata:()=>WC,name:()=>ZC,settings:()=>QC});var qe={};n.r(qe),n.d(qe,{init:()=>nS,metadata:()=>XC,name:()=>eS,settings:()=>tS});var je={};n.r(je),n.d(je,{init:()=>pS,metadata:()=>cS,name:()=>uS,settings:()=>mS});var We={};n.r(We),n.d(We,{init:()=>AS,metadata:()=>MS,name:()=>zS,settings:()=>RS});var Ze={};n.r(Ze),n.d(Ze,{init:()=>KS,metadata:()=>WS,name:()=>ZS,settings:()=>QS});const Qe=window.wp.blocks,Ke=window.React,Ye=window.wp.primitives,Je=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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 Xe(e){if(!e)return;const{metadata:t,settings:n,name:a}=e;return(0,Qe.registerBlockType)({name:a,...t},n)}const et=window.wp.components,tt=window.wp.i18n,nt=window.wp.blockEditor,at=window.wp.serverSideRender;var ot=n.n(at);const rt={$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,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}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:lt}=rt,it={icon:Je,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:a,displayAsDropdown:o,type:r}=e;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:o,onChange:()=>t({displayAsDropdown:!o})}),o&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Group by:"),options:[{label:(0,tt.__)("Year"),value:"yearly"},{label:(0,tt.__)("Month"),value:"monthly"},{label:(0,tt.__)("Week"),value:"weekly"},{label:(0,tt.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},st=()=>Xe({name:lt,metadata:rt,settings:it}),ct=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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"}));var ut=n(4403),mt=n.n(ut);const pt=window.wp.url,dt=window.wp.coreData,gt=window.wp.data;function ht(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function bt(){const{avatarURL:e}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const _t=window.wp.element,yt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const vt=function({value:e,onChange:t}){const[n,a]=(0,_t.useState)(),o=(0,gt.useSelect)((e=>{const{getUsers:t}=e(dt.store);return t(yt)}),[]);if(!o)return null;const r=o.map((e=>({label:e.name,value:e.id})));return(0,Ke.createElement)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("User"),help:(0,tt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>a(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})},ft=({setAttributes:e,avatar:t,attributes:n,selectUser:a})=>(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),a&&(0,Ke.createElement)(vt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),kt=({setAttributes:e,attributes:t,avatar:n,blockProps:a,isSelected:o})=>{const r=(0,nt.__experimentalUseBorderProps)(t),l=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.ResizableBox,{size:{width:t.size,height:t.size},showHandle:o,onResizeStop:(n,a,o,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,Ke.createElement)("img",{src:l,alt:n.alt,className:mt()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},xt=({attributes:e,context:t,setAttributes:n,isSelected:a})=>{const{commentId:o}=t,r=(0,nt.useBlockProps)(),l=function({commentId:e}){const[t]=(0,dt.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,dt.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,o=t?Object.keys(t):null,{minSize:r,maxSize:l}=ht(o),i=bt();return{src:a?a[a.length-1]:i,minSize:r,maxSize:l,alt:n?(0,tt.sprintf)((0,tt.__)("%s Avatar"),n):(0,tt.__)("Default Avatar")}}({commentId:o});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(ft,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,Ke.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:r,isSelected:a,setAttributes:n})):(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:r,isSelected:a,setAttributes:n}))},wt=({attributes:e,context:t,setAttributes:n,isSelected:a})=>{const{postId:o,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:a}=(0,gt.useSelect)((a=>{const{getEditedEntityRecord:o,getUser:r}=a(dt.store);if(e)return{authorDetails:r(e)};const l=o("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),o=a?.avatar_urls?Object.values(a.avatar_urls):null,r=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:i}=ht(r),s=bt();return{src:o?o[o.length-1]:s,minSize:l,maxSize:i,alt:a?(0,tt.sprintf)((0,tt.__)("%s Avatar"),a?.name):(0,tt.__)("Default Avatar")}}({userId:e?.userId,postId:o,postType:r}),i=(0,nt.useBlockProps)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(ft,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),e.isLink?(0,Ke.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:n})):(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:n}))};const Et={$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:Ct}=Et,St={icon:ct,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,Ke.createElement)(xt,{...e}):(0,Ke.createElement)(wt,{...e})}},Bt=()=>Xe({name:Ct,metadata:Et,settings:St}),Nt=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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"})),Tt=[{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:n,loop:a,preload:o,src:r}=e;return(0,Ke.createElement)("figure",null,(0,Ke.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:a,preload:o}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}}],It=window.wp.blob,Pt=window.wp.notices;var Mt=n(3827),zt=n.n(Mt);function Rt(e,t){var n,a,o=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;le&&e.includes('class="wp-embedded-content"'),Gt=(e,t={})=>{const{preview:n,attributes:a={}}=e,{url:o,providerNameSlug:r,type:l,...i}=a;if(!o||!(0,Qe.getBlockType)(Ft))return;const s=(e=>(0,Qe.getBlockVariations)(Ft)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(o),c="wordpress"===r||l===Ht;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,Qe.createBlock)(Ft,{url:o,...i,...s.attributes});const u=(0,Qe.getBlockVariations)(Ft)?.find((({name:e})=>"wordpress"===e));return u&&n&&$t(n.html)&&!c?(0,Qe.createBlock)(Ft,{url:o,...u.attributes,...t}):void 0},Ot=e=>{if(!e)return e;const t=At.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Ut(e,t,n=!0){if(!n)return Ot(t);const a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;const o=a.body.querySelector("iframe");if(o&&o.height&&o.width){const e=(o.width/o.height).toFixed(2);for(let n=0;n=a.ratio){return e-a.ratio>.1?Ot(t):zt()(Ot(t),a.className,"wp-has-aspect-ratio")}}}return t}const qt=Rt(((e,t,n,a,o=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,{kebabCase:c}=Vt(et.privateApis),u=c((s||t).toLowerCase());return $t(i)&&(l=Ht),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=u),(m=n)&&At.some((({className:e})=>m.includes(e)))||(r.className=Ut(i,n,a&&o)),r;var m})),jt=window.wp.compose,Wt=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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 Zt({key:e="caption",attributes:t,setAttributes:n,isSelected:a,insertBlocksAfter:o,placeholder:r=(0,tt.__)("Add caption"),label:l=(0,tt.__)("Caption text"),showToolbarButton:i=!0,className:s}){const c=t[e],u=(0,jt.usePrevious)(c),m=nt.RichText.isEmpty(c),p=nt.RichText.isEmpty(u),[d,g]=(0,_t.useState)(!m);(0,_t.useEffect)((()=>{!m&&p&&g(!0)}),[m,p]),(0,_t.useEffect)((()=>{!a&&m&&g(!1)}),[a,m]);const h=(0,_t.useCallback)((e=>{e&&m&&e.focus()}),[m]);return(0,Ke.createElement)(Ke.Fragment,null,i&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{g(!d),d&&c&&n({caption:void 0})},icon:Wt,isPressed:d,label:d?(0,tt.__)("Remove caption"):(0,tt.__)("Add caption")})),d&&(!nt.RichText.isEmpty(c)||a)&&(0,Ke.createElement)(nt.RichText,{identifier:e,tagName:"figcaption",className:mt()(s,(0,nt.__experimentalGetElementClassName)("caption")),ref:h,"aria-label":l,placeholder:r,value:c,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))}const Qt=["audio"];const Kt=function({attributes:e,className:t,setAttributes:n,onReplace:a,isSelected:o,insertBlocksAfter:r}){const{id:l,autoplay:i,loop:s,preload:c,src:u}=e,m=!l&&(0,It.isBlobURL)(u),{getSettings:p}=(0,gt.useSelect)(nt.store);function d(e){return t=>{n({[e]:t})}}function g(e){if(e!==u){const t=Gt({attributes:{url:e}});if(void 0!==t&&a)return void a(t);n({src:e,id:void 0})}}(0,_t.useEffect)((()=>{if(!l&&(0,It.isBlobURL)(u)){const e=(0,It.getBlobByURL)(u);e&&p().mediaUpload({filesList:[e],onFileChange:([e])=>_(e),onError:e=>b(e),allowedTypes:Qt})}}),[]);const{createErrorNotice:h}=(0,gt.useDispatch)(Pt.store);function b(e){h(e,{type:"snackbar"})}function _(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const y=mt()(t,{"is-transient":m}),v=(0,nt.useBlockProps)({className:y});return u?(0,Ke.createElement)(Ke.Fragment,null,o&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:l,mediaURL:u,allowedTypes:Qt,accept:"audio/*",onSelect:_,onSelectURL:g,onError:b})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:d("autoplay"),checked:i,help:function(e){return e?(0,tt.__)("Autoplay may cause usability issues for some users."):null}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:d("loop"),checked:s}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,tt.__)("Browser default")},{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}]}))),(0,Ke.createElement)("figure",{...v},(0,Ke.createElement)(et.Disabled,{isDisabled:!o},(0,Ke.createElement)("audio",{controls:"controls",src:u})),m&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Zt,{attributes:e,setAttributes:n,isSelected:o,insertBlocksAfter:r,label:(0,tt.__)("Audio caption text"),showToolbarButton:o}))):(0,Ke.createElement)("div",{...v},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Nt}),onSelect:_,onSelectURL:g,accept:"audio/*",allowedTypes:Qt,value:e,onError:b}))};const Yt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/audio",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:a,wav:o,wma:r}})=>e||t||n||a||o||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}}}]},Jt=Yt,Xt={$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:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"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:en}=Xt,tn={icon:Nt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Jt,deprecated:Tt,edit:Kt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:a,preload:o,src:r}=e;return r&&(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:a,preload:o}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n,className:(0,nt.__experimentalGetElementClassName)("caption")}))}},nn=()=>Xe({name:en,metadata:Xt,settings:tn}),an=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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:on}=Vt(nt.privateApis);function rn(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:on({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const ln=e=>{const{borderRadius:t,...n}=e,a=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return a?{...n,style:{...n.style,border:{...n.style?.border,radius:`${a}px`}}}:n};const sn=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:n,customBackgroundColor:a,customGradient:o,...r}=e;return{...r,style:t}},cn=e=>{const{color:t,textColor:n,...a}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return sn(a)},un={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"}},mn={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:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,nt.__experimentalGetBorderClassesAndStyles)(e),m=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),d=mt()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=mt()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:h})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:a,rel:o}))}},pn={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:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,nt.__experimentalGetBorderClassesAndStyles)(e),m=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),d=mt()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=mt()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:h})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:a,rel:o}))},migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},dn=[mn,pn,{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:{...un,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:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=r?.border?.radius,m=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=mt()("wp-block-button__link",m.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:u||void 0,...m.style},g=mt()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:g})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:a,rel:o}))},migrate:(0,jt.compose)(rn,ln)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...un,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:n,linkTarget:a,rel:o,text:r,title:l,url:i,width:s}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),u=mt()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=mt()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:p})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:a,rel:o}))},migrate:(0,jt.compose)(rn,ln)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...un,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:n,linkTarget:a,rel:o,text:r,title:l,url:i,width:s}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),u=mt()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=mt()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:p})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:a,rel:o}))},migrate:(0,jt.compose)(rn,ln)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...un,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:n,rel:a,text:o,title:r,url:l}=e,i=mt()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:o,target:n,rel:a})},migrate:ln},{supports:{align:!0,alignWide:!1},attributes:{...un,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,jt.compose)(ln,sn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:mt()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:a,customTextColor:o,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:u,title:m,url:p}=e,d=(0,nt.getColorClassName)("color",u),g=!r&&(0,nt.getColorClassName)("background-color",t),h=(0,nt.__experimentalGetGradientClass)(i),b=mt()("wp-block-button__link",{"has-text-color":u||o,[d]:d,"has-background":t||a||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),_={background:r||void 0,backgroundColor:g||r||i?void 0:a,color:d?void 0:o,borderRadius:n?n+"px":void 0};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:b,href:p,title:m,style:_,value:c,target:l,rel:s}))}},{attributes:{...un,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()),ln(sn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:a,linkTarget:o,rel:r,text:l,textColor:i,title:s,url:c}=e,u=(0,nt.getColorClassName)("color",i),m=(0,nt.getColorClassName)("background-color",t),p=mt()("wp-block-button__link",{"has-text-color":i||a,[u]:u,"has-background":t||n,[m]:m}),d={backgroundColor:m?void 0:n,color:u?void 0:a};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:o,rel:r}))}},{attributes:{...un,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:cn,save({attributes:e}){const{url:t,text:n,title:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,nt.getColorClassName)("color",r),c=(0,nt.getColorClassName)("background-color",o),u=mt()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":o||l,[c]:c}),m={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:u,href:t,title:a,style:m,value:n}))}},{attributes:{...un,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:a,align:o,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,Ke.createElement)("div",{className:`align${o}`},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:i,value:n}))},migrate:cn},{attributes:{...un,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:a,align:o,color:r,textColor:l}=e;return(0,Ke.createElement)("div",{className:`align${o}`,style:{backgroundColor:r}},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:n}))},migrate:cn}],gn=dn,hn="noreferrer noopener",bn="_blank",_n="nofollow";function yn(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const vn=window.wp.keycodes,fn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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"})),kn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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"})),xn=[...nt.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,tt.__)("Mark as nofollow")}];function wn({selectedWidth:e,setAttributes:t}){return(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Width settings")},(0,Ke.createElement)(et.ButtonGroup,{"aria-label":(0,tt.__)("Button width")},[25,50,75,100].map((n=>(0,Ke.createElement)(et.Button,{key:n,size:"small",variant:n===e?"primary":void 0,onClick:()=>{var a;t({width:e===(a=n)?void 0:a})}},n,"%")))))}const En=function(e){const{attributes:t,setAttributes:n,className:a,isSelected:o,onReplace:r,mergeBlocks:l,clientId:i}=e,{tagName:s,textAlign:c,linkTarget:u,placeholder:m,rel:p,style:d,text:g,url:h,width:b,metadata:_}=t,y=s||"a",[v,f]=(0,_t.useState)(null),k=(0,nt.__experimentalUseBorderProps)(t),x=(0,nt.__experimentalUseColorProps)(t),w=(0,nt.__experimentalGetSpacingClassesAndStyles)(t),E=(0,nt.__experimentalGetShadowClassesAndStyles)(t),C=(0,_t.useRef)(),S=(0,_t.useRef)(),B=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([f,C]),onKeyDown:function(e){vn.isKeyboardEvent.primary(e,"k")?A(e):vn.isKeyboardEvent.primaryShift(e,"k")&&(H(),S.current?.focus())}}),N=(0,nt.useBlockEditingMode)(),[T,I]=(0,_t.useState)(!1),P=!!h,M=u===bn,z=!!p?.includes(_n),R="a"===y;function A(e){e.preventDefault(),I(!0)}function H(){n({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,_t.useEffect)((()=>{o||I(!1)}),[o]);const L=(0,_t.useMemo)((()=>({url:h,opensInNewTab:M,nofollow:z})),[h,M,z]),D=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlock:a,getBlockRootClientId:o,getBlockIndex:r}=(0,gt.useSelect)(nt.store),l=(0,_t.useRef)(e);return l.current=e,(0,jt.useRefEffect)((e=>{function i(e){if(e.defaultPrevented||e.keyCode!==vn.ENTER)return;const{content:i,clientId:s}=l.current;if(i.length)return;e.preventDefault();const c=a(o(s)),u=r(s),m=(0,Qe.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),d=c.innerBlocks.slice(u+1),g=d.length?[(0,Qe.cloneBlock)({...c,innerBlocks:d})]:[];t(c.clientId,[m,p,...g],1),n(p.clientId)}return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}}),[])}({content:g,clientId:i}),V=(0,jt.useMergeRefs)([D,S]),{lockUrlControls:F=!1}=(0,gt.useSelect)((e=>{if(!o)return{};const{getBlockBindingsSource:t}=Vt(e(nt.store));return{lockUrlControls:!!_?.bindings?.url&&!0===t(_?.bindings?.url?.source)?.lockAttributesEditing}}),[o]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...B,className:mt()(B.className,{[`has-custom-width wp-block-button__width-${b}`]:b,"has-custom-font-size":B.style.fontSize})},(0,Ke.createElement)(nt.RichText,{ref:V,"aria-label":(0,tt.__)("Button text"),placeholder:m||(0,tt.__)("Add text…"),value:g,onChange:e=>n({text:yn(e)}),withoutInteractiveFormatting:!0,className:mt()(a,"wp-block-button__link",x.className,k.className,{[`has-text-align-${c}`]:c,"no-border-radius":0===d?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),style:{...k.style,...x.style,...w.style,...E.style},onSplit:e=>(0,Qe.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,Ke.createElement)(nt.BlockControls,{group:"block"},"default"===N&&(0,Ke.createElement)(nt.AlignmentControl,{value:c,onChange:e=>{n({textAlign:e})}}),!P&&R&&!F&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:fn,title:(0,tt.__)("Link"),shortcut:vn.displayShortcut.primary("k"),onClick:A}),P&&R&&!F&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:kn,title:(0,tt.__)("Unlink"),shortcut:vn.displayShortcut.primaryShift("k"),onClick:H,isActive:!0})),R&&o&&(T||P)&&!F&&(0,Ke.createElement)(et.Popover,{placement:"bottom",onClose:()=>{I(!1),S.current?.focus()},anchor:v,focusOnMount:!!T&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,Ke.createElement)(nt.__experimentalLinkControl,{value:L,onChange:({url:e,opensInNewTab:t,nofollow:a})=>n(function({rel:e="",url:t="",opensInNewTab:n,nofollow:a}){let o,r=e;if(n)o=bn,r=r?.includes(hn)?r:r+` ${hn}`;else{const e=new RegExp(`\\b${hn}\\s*`,"g");r=r?.replace(e,"").trim()}if(a)r=r?.includes(_n)?r:r+` ${_n}`;else{const e=new RegExp(`\\b${_n}\\s*`,"g");r=r?.replace(e,"").trim()}return{url:(0,pt.prependHTTP)(t),linkTarget:o,rel:r||void 0}}({rel:p,url:e,opensInNewTab:t,nofollow:a})),onRemove:()=>{H(),S.current?.focus()},forceIsEditingLink:T,settings:xn})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(wn,{selectedWidth:b,setAttributes:n})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},R&&(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:p||"",onChange:e=>n({rel:e})})))};const Cn={$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",usesContext:["pattern/overrides"],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",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",__experimentalRole:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,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,__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 .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:Sn}=Cn,Bn={icon:an,example:{attributes:{className:"is-style-fill",text:(0,tt.__)("Call to Action")}},edit:En,save:function({attributes:e,className:t}){const{tagName:n,type:a,textAlign:o,fontSize:r,linkTarget:l,rel:i,style:s,text:c,title:u,url:m,width:p}=e;if(nt.RichText.isEmpty(c))return null;const d=n||"a",g="button"===d,h=a||"button",b=(0,nt.__experimentalGetBorderClassesAndStyles)(e),_=(0,nt.__experimentalGetColorClassesAndStyles)(e),y=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),v=(0,nt.__experimentalGetShadowClassesAndStyles)(e),f=mt()("wp-block-button__link",_.className,b.className,{[`has-text-align-${o}`]:o,"no-border-radius":0===s?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),k={...b.style,..._.style,...y.style,...v.style},x=mt()(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":r||s?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:x})},(0,Ke.createElement)(nt.RichText.Content,{tagName:d,type:g?h:null,className:f,href:g?null:m,title:u,style:k,value:c,target:g?null:l,rel:g?null:i}))},deprecated:gn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Nn=()=>Xe({name:Sn,metadata:Cn,settings:Bn}),Tn=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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"})),In=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...a}=e;return(t||n)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),a},Pn=[{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:In,save:({attributes:{contentJustification:e,orientation:t}})=>(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:mt()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>In({...e,align:void 0,contentJustification:e.align})}],Mn=Pn,zn=window.wp.richText,Rn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>(0,Qe.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>{const t=(0,zn.__unstableCreateElement)(document,e.content),n=t.innerText||"",a=t.querySelector("a"),o=a?.getAttribute("href");return(0,Qe.createBlock)("core/button",{text:n,url:o})}))),isMatch:e=>e.every((e=>{const t=(0,zn.__unstableCreateElement)(document,e.content),n=t.innerText||"",a=t.querySelectorAll("a");return n.length<=30&&a.length<=1}))}]},An=Rn,Hn={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const Ln=function({attributes:e,className:t}){var n;const{fontSize:a,layout:o,style:r}=e,l=(0,nt.useBlockProps)({className:mt()(t,{"has-custom-font-size":a||r?.typography?.fontSize})}),{preferredStyle:i,hasButtonVariations:s}=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings().__experimentalPreferredStyleVariations,n=e(Qe.store).getBlockVariations("core/button","inserter");return{preferredStyle:t?.value?.["core/button"],hasButtonVariations:n.length>0}}),[]),c=(0,nt.useInnerBlocksProps)(l,{defaultBlock:Hn,directInsert:!s,template:[["core/button",{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=o?.orientation)&&void 0!==n?n:"horizontal"});return(0,Ke.createElement)("div",{...c})};const Dn={$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,spacing:{blockGap:!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}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Vn}=Dn,Fn={icon:Tn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,tt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,tt.__)("Contact us")}}]},deprecated:Mn,transforms:An,edit:Ln,save:function({attributes:e,className:t}){const{fontSize:n,style:a}=e,o=nt.useBlockProps.save({className:mt()(t,{"has-custom-font-size":n||a?.typography?.fontSize})}),r=nt.useInnerBlocksProps.save(o);return(0,Ke.createElement)("div",{...r})}},$n=()=>Xe({name:Vn,metadata:Dn,settings:Fn}),Gn=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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"})),On=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));const Un={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/archives")}]},qn={$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:jn}=qn,Wn={icon:Gn,example:{},edit:function({attributes:e}){const t=(0,nt.useBlockProps)(),{date:n,hasPosts:a,hasPostsResolved:o}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(dt.store),a={status:"publish",per_page:1},o=t("postType","post",a),r=n("getEntityRecords",["postType","post",a]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===o?.length}}),[]);return a?(0,Ke.createElement)("div",{...t},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/calendar",attributes:{...e,...On(n)}}))):(0,Ke.createElement)("div",{...t},(0,Ke.createElement)(et.Placeholder,{icon:Gn,label:(0,tt.__)("Calendar")},o?(0,tt.__)("No published posts found."):(0,Ke.createElement)(et.Spinner,null)))},transforms:Un},Zn=()=>Xe({name:jn,metadata:qn,settings:Wn}),Qn=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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"})),Kn=window.wp.htmlEntities,Yn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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 Jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{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}},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}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Xn}=Jn,ea={icon:Qn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:a,showOnlyTopLevel:o,showEmpty:r},setAttributes:l,className:i}){const s=(0,jt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};o&&(c.parent=0);const{records:u,isResolving:m}=(0,dt.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,Kn.decodeEntities)(e).trim():(0,tt.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:o,link:r,count:l,name:i}=e;return(0,Ke.createElement)("li",{key:o,className:`cat-item cat-item-${o}`},(0,Ke.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),a&&` (${l})`,n&&!!t.length&&(0,Ke.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},b=(e,t)=>{const{id:o,count:r,name:l}=e,i=p(o);return[(0,Ke.createElement)("option",{key:o,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),a&&` (${r})`),n&&!!i.length&&i.map((e=>b(e,t+1)))]},_=!u?.length||t||m?"div":"ul",y=mt()(i,{"wp-block-categories-list":!!u?.length&&!t&&!m,"wp-block-categories-dropdown":!!u?.length&&t&&!m}),v=(0,nt.useBlockProps)({className:y});return(0,Ke.createElement)(_,{...v},(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:d("showPostCounts")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show only top level categories"),checked:o,onChange:d("showOnlyTopLevel")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!o&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),m&&(0,Ke.createElement)(et.Placeholder,{icon:Yn,label:(0,tt.__)("Categories")},(0,Ke.createElement)(et.Spinner,null)),!m&&0===u?.length&&(0,Ke.createElement)("p",null,(0,tt.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!m&&u?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.VisuallyHidden,{as:"label",htmlFor:s},(0,tt.__)("Categories")),(0,Ke.createElement)("select",{id:s},(0,Ke.createElement)("option",null,(0,tt.__)("Select Category")),e.map((e=>b(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},ta=()=>Xe({name:Xn,metadata:Jn,settings:ea}),na=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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"})),aa=({clientId:e})=>{const{replaceBlocks:t}=(0,gt.useDispatch)(nt.store),n=(0,gt.useSelect)((t=>t(nt.store).getBlock(e)),[e]);return(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>t(n.clientId,(0,Qe.rawHandler)({HTML:(0,Qe.serialize)(n)}))},(0,tt.__)("Convert to blocks"))},oa=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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 ra({onClick:e,isModalFullScreen:t}){return(0,jt.useViewportMatch)("small","<")?null:(0,Ke.createElement)(et.Button,{onClick:e,icon:oa,isPressed:t,label:t?(0,tt.__)("Exit fullscreen"):(0,tt.__)("Enter fullscreen")})}function la(e){const t=(0,gt.useSelect)((e=>e(nt.store).getSettings().styles));return(0,_t.useEffect)((()=>{const{baseURL:n,suffix:a,settings:o}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...o,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,Ke.createElement)("textarea",{...e})}function ia(e){const{clientId:t,attributes:{content:n},setAttributes:a,onReplace:o}=e,[r,l]=(0,_t.useState)(!1),[i,s]=(0,_t.useState)(!1),c=`editor-${t}`,u=()=>n?l(!1):o([]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>l(!0)},(0,tt.__)("Edit")))),n&&(0,Ke.createElement)(_t.RawHTML,null,n),(r||!n)&&(0,Ke.createElement)(et.Modal,{title:(0,tt.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:i,className:"block-editor-freeform-modal__content",headerActions:(0,Ke.createElement)(ra,{onClick:()=>s(!i),isModalFullScreen:i})},(0,Ke.createElement)(la,{id:c,defaultValue:n}),(0,Ke.createElement)(et.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,Ke.createElement)(et.FlexItem,null,(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:u},(0,tt.__)("Cancel"))),(0,Ke.createElement)(et.FlexItem,null,(0,Ke.createElement)(et.Button,{variant:"primary",onClick:()=>{a({content:window.wp.oldEditor.getContent(c)}),l(!1)}},(0,tt.__)("Save"))))))}const{wp:sa}=window;function ca({clientId:e,attributes:{content:t},setAttributes:n,onReplace:a}){const{getMultiSelectedBlockClientIds:o}=(0,gt.useSelect)(nt.store),r=(0,_t.useRef)(!1);return(0,_t.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),a=n?.getContent();a!==t&&n.setContent(t||"")}),[t]),(0,_t.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(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"),a=t.scrollTop;return o()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==a&&(t.scrollTop=a))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,jt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{vn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==vn.BACKSPACE&&t.keyCode!==vn.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)||(a([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===vn.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;sa.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),sa.oldEditor.remove(`editor-${e}`)}}),[]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,tt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,Ke.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const ua={$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:ma}=ua,pa={icon:na,edit:function(e){const{clientId:t}=e,n=(0,gt.useSelect)((e=>e(nt.store).canRemoveBlock(t)),[t]),[a,o]=(0,_t.useState)(!1),r=(0,jt.useRefEffect)((e=>{o(e.ownerDocument!==document)}),[]);return(0,Ke.createElement)(Ke.Fragment,null,n&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(aa,{clientId:t}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({ref:r})},a?(0,Ke.createElement)(ia,{...e}):(0,Ke.createElement)(ca,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,Ke.createElement)(_t.RawHTML,null,t)}},da=()=>Xe({name:ma,metadata:ua,settings:pa}),ga=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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 ha(e){return e.replace(/\[/g,"[")}function ba(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const _a={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Qe.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,Qe.createBlock)("core/code",{content:e})},{type:"block",blocks:["core/html"],transform:({content:e})=>(0,Qe.createBlock)("core/code",{content:(0,zn.toHTMLString)({value:(0,zn.create)({text:e})})})},{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})=>(0,Qe.createBlock)("core/paragraph",{content:e})}]},ya={$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:va}=ya,fa={icon:ga,example:{attributes:{content:(0,tt.__)("// 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:_a,edit:function({attributes:e,setAttributes:t,onRemove:n,insertBlocksAfter:a,mergeBlocks:o}){const r=(0,nt.useBlockProps)();return(0,Ke.createElement)("pre",{...r},(0,Ke.createElement)(nt.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:n,onMerge:o,placeholder:(0,tt.__)("Write code…"),"aria-label":(0,tt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},save:function({attributes:e}){return(0,Ke.createElement)("pre",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{tagName:"code",value:(t=e.content.toString(),(0,jt.pipe)(ha,ba)(t||""))}));var t}},ka=()=>Xe({name:va,metadata:ya,settings:fa}),xa=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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"})),wa=[{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:n}=e,a=mt()({[`is-vertically-aligned-${t}`]:t}),o={flexBasis:n+"%"};return(0,Ke.createElement)("div",{className:a,style:o},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],Ea=wa;const Ca=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:a},setAttributes:o,clientId:r}){const l=mt()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),[i]=(0,nt.useSettings)("spacing.units"),s=(0,et.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem","vw"]}),{columnsIds:c,hasChildBlocks:u,rootClientId:m}=(0,gt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(nt.store),a=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:a,columnsIds:t(a)}}),[r]),{updateBlockAttributes:p}=(0,gt.useDispatch)(nt.store),d=Number.isFinite(t)?t+"%":t,g=(0,nt.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=c.length,b=c.indexOf(r)+1,_=(0,tt.sprintf)((0,tt.__)("%1$s (%2$d of %3$d)"),g["aria-label"],b,h),y=(0,nt.useInnerBlocksProps)({...g,"aria-label":_},{templateLock:n,allowedBlocks:a,renderAppender:u?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentToolbar,{onChange:e=>{o({verticalAlignment:e}),p(m,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,o({width:e})},units:s}))),(0,Ke.createElement)("div",{...y}))};const Sa={$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,style:!0,width:!0,__experimentalDefaultControls:{color:!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:Ba}=Sa,Na={icon:xa,edit:Ca,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,a=mt()({[`is-vertically-aligned-${t}`]:t});let o;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}o={flexBasis:e}}const r=nt.useBlockProps.save({className:a,style:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("div",{...l})},deprecated:Ea},Ta=()=>Xe({name:Ba,metadata:Sa,settings:Na}),Ia=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(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 Pa(e){let t,{doc:n}=Pa;n||(n=document.implementation.createHTMLDocument(""),Pa.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}const Ma=[{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:n,customBackgroundColor:a,...o}=e;return{...o,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:a,textColor:o,customTextColor:r}=e,l=(0,nt.getColorClassName)("background-color",n),i=(0,nt.getColorClassName)("color",o),s=mt()({"has-background":n||a,"has-text-color":o||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:a,color:i?void 0:r};return(0,Ke.createElement)("div",{className:s||void 0,style:c},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Pa(e.originalContent))),migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let a=Pa(n);return void 0===a&&(a=0),e[a]||(e[a]=[]),e[a].push(t),e}),[]).map((e=>(0,Qe.createBlock)("core/column",{},e))),{columns:a,...o}=e;return[{...o,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,Ke.createElement)("div",{className:`has-${t}-columns`},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...a}=e;return[e={...a,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,a=mt()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Ke.createElement)("div",{className:a},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],za=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Ra(e,t){const{width:n=100/t}=e.attributes;return za(n)}function Aa(e,t,n=e.length){const a=function(e,t=e.length){return e.reduce(((e,n)=>e+Ra(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const a=Ra(n,t);return Object.assign(e,{[n.clientId]:a})}),{})}(e,n)).map((([e,n])=>[e,za(t*n/a)])))}function Ha(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}function La({attributes:e,setAttributes:t,clientId:n}){const{isStackedOnMobile:a,verticalAlignment:o,templateLock:r}=e,{count:l,canInsertColumnBlock:i,minCount:s}=(0,gt.useSelect)((e=>{const{canInsertBlockType:t,canRemoveBlock:a,getBlocks:o,getBlockCount:r}=e(nt.store),l=o(n).reduce(((e,t,n)=>(a(t.clientId)||e.push(n),e)),[]);return{count:r(n),canInsertColumnBlock:t("core/column",n),minCount:Math.max(...l)+1}}),[n]),c=(0,gt.useRegistry)(),{getBlocks:u,getBlockOrder:m}=(0,gt.useSelect)(nt.store),{updateBlockAttributes:p,replaceInnerBlocks:d}=(0,gt.useDispatch)(nt.store),g=mt()({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!a}),h=(0,nt.useBlockProps)({className:g}),b=(0,nt.useInnerBlocksProps)(h,{orientation:"horizontal",renderAppender:!1,templateLock:r});function _(e,t){let a=u(n);const o=a.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const r=t>e;if(r&&o){const n=za(100/t);a=[...Ha(a,Aa(a,100-n)),...Array.from({length:t-e}).map((()=>(0,Qe.createBlock)("core/column",{width:`${n}%`})))]}else if(r)a=[...a,...Array.from({length:t-e}).map((()=>(0,Qe.createBlock)("core/column")))];else if(t{t({verticalAlignment:e}),p(a,{verticalAlignment:e})}))},value:o})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},i&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:l,onChange:e=>_(l,Math.max(s,e)),min:Math.max(1,s),max:Math.max(6,l)}),l>6&&(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:a,onChange:()=>t({isStackedOnMobile:!a})}))),(0,Ke.createElement)("div",{...b}))}function Da({clientId:e,name:t,setAttributes:n}){const{blockType:a,defaultVariation:o,variations:r}=(0,gt.useSelect)((e=>{const{getBlockVariations:n,getBlockType:a,getDefaultBlockVariation:o}=e(Qe.store);return{blockType:a(t),defaultVariation:o(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,gt.useDispatch)(nt.store),i=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(nt.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:r,onSelect:(t=o)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}const Va=e=>{const{clientId:t}=e,n=(0,gt.useSelect)((e=>e(nt.store).getBlocks(t).length>0),[t])?La:Da;return(0,Ke.createElement)(n,{...e})};const Fa=[{name:"one-column-full",title:(0,tt.__)("100"),description:(0,tt.__)("One column"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,tt.__)("50 / 50"),description:(0,tt.__)("Two columns; equal split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,tt.__)("33 / 66"),description:(0,tt.__)("Two columns; one-third, two-thirds split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,tt.__)("66 / 33"),description:(0,tt.__)("Two columns; two-thirds, one-third split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,tt.__)("33 / 33 / 33"),description:(0,tt.__)("Three columns; equal split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,tt.__)("25 / 50 / 25"),description:(0,tt.__)("Three columns; wide center column"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],$a={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:a})=>["core/column",{width:`${t}%`},[[e,{...n},a]]]));return(0,Qe.createBlock)("core/columns",{},(0,Qe.createBlocksFromInnerBlocksTemplate)(n))},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:n,backgroundColor:a,textColor:o,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,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"===s&&h.reverse(),(0,Qe.createBlock)("core/columns",{align:n,backgroundColor:a,textColor:o,style:r,verticalAlignment:d},(0,Qe.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))},Ga=$a,Oa={$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:Ua}=Oa,qa={icon:Ia,variations:Fa,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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,tt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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,tt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Ma,edit:Va,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,a=mt()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),o=nt.useBlockProps.save({className:a}),r=nt.useInnerBlocksProps.save(o);return(0,Ke.createElement)("div",{...r})},transforms:Ga},ja=()=>Xe({name:Ua,metadata:Oa,settings:qa}),Wa=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(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"})),Za=[{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:n}=t,a=n?.split(" ")||[],o=a?.filter((e=>"wp-block-comments"!==e)),r={...t,className:o.join(" ")};return(0,Ke.createElement)(e,{...r},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}];function Qa({attributes:{tagName:e},setAttributes:t}){const n={section:(0,tt.__)("The
element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The