/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=410)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(156);function v(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?R+="x":R+=B[A];if(!R.match(d)){var M=P.slice(0,x),z=P.slice(x+1),L=B.match(p);L&&(M.push(L[1]),z.unshift(L[2])),z.length&&(v="/"+z.join(".")+v),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[_])for(x=0,N=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=k.slice(-1)[0],E=(n.host||e.host||k.length>1)&&("."===C||".."===C)||""===C,x=0,S=k.length;S>=0;S--)"."===(C=k[S])?k.splice(S,1):".."===C?(k.splice(S,1),x++):x&&(k.splice(S,1),x--);if(!y&&!_)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var T,P=""===k[0]||k[0]&&"/"===k[0].charAt(0);w&&(n.hostname=n.host=P?"":k.length?k.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&k.length)&&!P&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},11:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,k=String.fromCharCode;function w(e){throw RangeError(j[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(v,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+m))}function N(e){var t,n,r,o,a,c,i,m,d,f,O,v=[],j=e.length,y=0,k=h,C=p;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&w("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=j&&w("invalid-input"),((m=(O=e.charCodeAt(o++))-48<10?O-22:O-65<26?O-65:O-97<26?O-97:s)>=s||m>_((l-y)/c))&&w("overflow"),y+=m*c,!(m<(d=i<=C?u:i>=C+b?b:i-C));i+=s)c>_(l/(f=s-d))&&w("overflow"),c*=f;C=P(y-a,t=v.length+1,0==a),_(y/t)>l-k&&w("overflow"),k+=_(y/t),y%=t,v.splice(y++,0,k)}return S(v)}function B(e){var t,n,r,o,a,c,i,m,d,f,O,v,j,y,C,E=[];for(v=(e=x(e)).length,t=h,n=0,a=p,c=0;c=t&&O_((l-n)/(j=r+1))&&w("overflow"),n+=(i-t)*j,t=i,c=0;cl&&w("overflow"),O==t){for(m=n,d=s;!(m<(f=d<=a?u:d>=a+b?b:d-a));d+=s)C=m-f,y=s-f,E.push(k(T(f+C%y,0))),m=_(C/y);E.push(k(T(m,0))),a=P(n,j,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.3.2",ucs2:{decode:x,encode:S},decode:N,encode:B,toASCII:function(e){return E(e,(function(e){return O.test(e)?"xn--"+B(e):e}))},toUnicode:function(e){return E(e,(function(e){return f.test(e)?N(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(154)(e),n(71))},154:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},155:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},156:function(e,t,n){"use strict";t.decode=t.parse=n(157),t.encode=t.stringify=n(158)},157:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=h.substr(0,g),m=h.substr(g+1)):(b=h,m=""),d=decodeURIComponent(b),p=decodeURIComponent(m),r(c,d)?o(c[d])?c[d].push(p):c[d]=[c[d],p]:c[d]=p}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},158:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),(function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[c]))})).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.wp.keycodes}()},22:function(e,t,n){"use strict";var r=n(37);var o=n(38);function a(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},24:function(e,t){!function(){e.exports=this.wp.richText}()},258:function(e,t,n){ /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ e.exports=function(){"use strict";function e(e,t){for(var n=0;nc?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=0,i=0,l=0;lr?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n}()}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.dom}()},275:function(e,t,n){"use strict";var r=n(0),o=n(18),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z"}));t.a=a},276:function(e,t,n){"use strict";var r=n(0),o=n(18),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z"}));t.a=a},277:function(e,t,n){"use strict";var r=n(0),o=n(18),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z"}));t.a=a},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.moment}()},32:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},33:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},38:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},39:function(e,t){!function(){e.exports=this.wp.blob}()},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t){!function(){e.exports=this.wp.apiFetch}()},41:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},410:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return ye})),n.d(r,"name",(function(){return _e})),n.d(r,"settings",(function(){return ke}));var o={};n.r(o),n.d(o,"metadata",(function(){return Ct})),n.d(o,"name",(function(){return Et})),n.d(o,"settings",(function(){return xt}));var a={};n.r(a),n.d(a,"metadata",(function(){return zt})),n.d(a,"name",(function(){return Lt})),n.d(a,"settings",(function(){return Ht}));var c={};n.r(c),n.d(c,"metadata",(function(){return Yt})),n.d(c,"name",(function(){return Xt})),n.d(c,"settings",(function(){return en}));var i={};n.r(i),n.d(i,"metadata",(function(){return En})),n.d(i,"name",(function(){return xn})),n.d(i,"settings",(function(){return Sn}));var l={};n.r(l),n.d(l,"name",(function(){return Bn})),n.d(l,"settings",(function(){return Rn}));var s={};n.r(s),n.d(s,"metadata",(function(){return Dn})),n.d(s,"name",(function(){return Vn})),n.d(s,"settings",(function(){return Fn}));var u={};n.r(u),n.d(u,"metadata",(function(){return cr})),n.d(u,"name",(function(){return ir})),n.d(u,"settings",(function(){return lr}));var b={};n.r(b),n.d(b,"metadata",(function(){return dr})),n.d(b,"name",(function(){return pr})),n.d(b,"settings",(function(){return hr}));var m={};n.r(m),n.d(m,"name",(function(){return _r})),n.d(m,"settings",(function(){return kr}));var d={};n.r(d),n.d(d,"name",(function(){return xr})),n.d(d,"settings",(function(){return Sr}));var p={};n.r(p),n.d(p,"metadata",(function(){return Ar})),n.d(p,"name",(function(){return Ir})),n.d(p,"settings",(function(){return Mr}));var h={};n.r(h),n.d(h,"metadata",(function(){return Qr})),n.d(h,"name",(function(){return Yr})),n.d(h,"settings",(function(){return Xr}));var g={};n.r(g),n.d(g,"metadata",(function(){return ro})),n.d(g,"name",(function(){return oo})),n.d(g,"settings",(function(){return ao}));var f={};n.r(f),n.d(f,"metadata",(function(){return No})),n.d(f,"name",(function(){return Bo})),n.d(f,"settings",(function(){return Ro}));var O={};n.r(O),n.d(O,"name",(function(){return Jo})),n.d(O,"settings",(function(){return Qo})),n.d(O,"common",(function(){return Yo})),n.d(O,"others",(function(){return Xo}));var v={};n.r(v),n.d(v,"metadata",(function(){return aa})),n.d(v,"name",(function(){return ca})),n.d(v,"settings",(function(){return ia}));var j={};n.r(j),n.d(j,"metadata",(function(){return ma})),n.d(j,"name",(function(){return da})),n.d(j,"settings",(function(){return pa}));var y={};n.r(y),n.d(y,"metadata",(function(){return Pa})),n.d(y,"name",(function(){return Na})),n.d(y,"settings",(function(){return Ba}));var _={};n.r(_),n.d(_,"justifyLeftIcon",(function(){return Ha})),n.d(_,"justifyCenterIcon",(function(){return Da})),n.d(_,"justifyRightIcon",(function(){return Va}));var k={};n.r(k),n.d(k,"name",(function(){return Ua})),n.d(k,"settings",(function(){return qa}));var w={};n.r(w),n.d(w,"metadata",(function(){return Ja})),n.d(w,"name",(function(){return Qa})),n.d(w,"settings",(function(){return Ya}));var C={};n.r(C),n.d(C,"name",(function(){return tc})),n.d(C,"settings",(function(){return nc}));var E={};n.r(E),n.d(E,"name",(function(){return uc})),n.d(E,"settings",(function(){return bc}));var x={};n.r(x),n.d(x,"metadata",(function(){return jc})),n.d(x,"name",(function(){return yc})),n.d(x,"settings",(function(){return _c}));var S={};n.r(S),n.d(S,"metadata",(function(){return wc})),n.d(S,"name",(function(){return Cc})),n.d(S,"settings",(function(){return Ec}));var T={};n.r(T),n.d(T,"metadata",(function(){return Pc})),n.d(T,"name",(function(){return Nc})),n.d(T,"settings",(function(){return Bc}));var P={};n.r(P),n.d(P,"metadata",(function(){return Ic})),n.d(P,"name",(function(){return Mc})),n.d(P,"settings",(function(){return zc}));var N={};n.r(N),n.d(N,"metadata",(function(){return Dc})),n.d(N,"name",(function(){return Vc})),n.d(N,"settings",(function(){return Fc}));var B={};n.r(B),n.d(B,"metadata",(function(){return Yc})),n.d(B,"name",(function(){return Xc})),n.d(B,"settings",(function(){return ei}));var R={};n.r(R),n.d(R,"name",(function(){return ai})),n.d(R,"settings",(function(){return ci}));var A={};n.r(A),n.d(A,"name",(function(){return si})),n.d(A,"settings",(function(){return ui}));var I={};n.r(I),n.d(I,"name",(function(){return mi})),n.d(I,"settings",(function(){return di}));var M={};n.r(M),n.d(M,"metadata",(function(){return fi})),n.d(M,"name",(function(){return Oi})),n.d(M,"settings",(function(){return vi}));var z={};n.r(z),n.d(z,"metadata",(function(){return wi})),n.d(z,"name",(function(){return Ci})),n.d(z,"settings",(function(){return Ei}));var L={};n.r(L),n.d(L,"metadata",(function(){return Pi})),n.d(L,"name",(function(){return Ni})),n.d(L,"settings",(function(){return Bi}));var H={};n.r(H),n.d(H,"metadata",(function(){return Ii})),n.d(H,"name",(function(){return Mi})),n.d(H,"settings",(function(){return zi}));var D={};n.r(D),n.d(D,"metadata",(function(){return Vi})),n.d(D,"name",(function(){return Fi})),n.d(D,"settings",(function(){return Ui}));var V={};n.r(V),n.d(V,"metadata",(function(){return ml})),n.d(V,"name",(function(){return dl})),n.d(V,"settings",(function(){return pl}));var F={};n.r(F),n.d(F,"metadata",(function(){return gl})),n.d(F,"name",(function(){return fl})),n.d(F,"settings",(function(){return Ol}));var U={};n.r(U),n.d(U,"metadata",(function(){return _l})),n.d(U,"name",(function(){return kl})),n.d(U,"settings",(function(){return wl}));var q={};n.r(q),n.d(q,"metadata",(function(){return Bl})),n.d(q,"name",(function(){return Rl})),n.d(q,"settings",(function(){return Al}));var G={};n.r(G),n.d(G,"name",(function(){return Ll})),n.d(G,"settings",(function(){return Hl}));var W={};n.r(W),n.d(W,"metadata",(function(){return Gl})),n.d(W,"name",(function(){return Wl})),n.d(W,"settings",(function(){return Kl}));var K=n(17),Z=n(5),$=(n(73),n(6)),J=n(9),Q=n(2),Y=n(1),X=n(0),ee=n(18),te=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"})),ne=n(10),re=n.n(ne);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},xe=[{attributes:Ee,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=re()((t={},Object(Z.a)(t,"align".concat(c),c),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(X.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(X.createElement)("figure",{className:b},i?Object(X.createElement)("a",{href:i},m):m,!$.RichText.isEmpty(a)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:a}))}},{attributes:Ee,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=t.id,u=Object(X.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(X.createElement)("figure",{className:a?"align".concat(a):null},c?Object(X.createElement)("a",{href:c},u):u,!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ee,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(X.createElement)("img",Object(Ce.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==a&&"right"!==a||(b={maxWidth:"50%"}),Object(X.createElement)("figure",{className:a?"align".concat(a):null,style:b},c?Object(X.createElement)("a",{href:c},u):u,!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}}],Se=n(13),Te=n(12),Pe=n(14),Ne=n(15),Be=n(7),Re=n(16),Ae=n(39),Ie=n(26),Me=n(54),ze=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ue.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),Le=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ue.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),He=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ue.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(X.createElement)(ue.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),De=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ue.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),Ve={foreground:"#1da1f2",src:Object(X.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.G,null,Object(X.createElement)(ue.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Fe={foreground:"#ff0000",src:Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Ue={foreground:"#3b5998",src:Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},qe=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.G,null,Object(X.createElement)(ue.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Ge={foreground:"#0073AA",src:Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.G,null,Object(X.createElement)(ue.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},We={foreground:"#1db954",src:Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Ke=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),Ze={foreground:"#1ab7ea",src:Object(X.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.G,null,Object(X.createElement)(ue.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},$e=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Je={foreground:"#35465c",src:Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},Qe=Object(X.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(X.createElement)(ue.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(X.createElement)(ue.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),Ye=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Ve,keywords:["tweet"],description:Object(Y.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Fe,keywords:[Object(Y.__)("music"),Object(Y.__)("video")],description:Object(Y.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Ue,description:Object(Y.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:qe,keywords:[Object(Y.__)("image")],description:Object(Y.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Ge,keywords:[Object(Y.__)("post"),Object(Y.__)("blog")],responsive:!1,description:Object(Y.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Le,keywords:[Object(Y.__)("music"),Object(Y.__)("audio")],description:Object(Y.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:We,keywords:[Object(Y.__)("music"),Object(Y.__)("audio")],description:Object(Y.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:Ke,keywords:[Object(Y.__)("image")],description:Object(Y.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Ze,keywords:[Object(Y.__)("video")],description:Object(Y.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],Xe=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:De,description:Object(Y.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:ze,description:Object(Y.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:De,description:Object(Y.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:ze,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(J.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Y.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:De,description:Object(Y.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:De,description:Object(Y.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:He,description:Object(Y.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:ze,description:Object(Y.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:ze,description:Object(Y.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:ze,description:Object(Y.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Le,keywords:[Object(Y.__)("music"),Object(Y.__)("audio")],description:Object(Y.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:ze,description:Object(Y.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:$e,description:Object(Y.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Le,description:Object(Y.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:De,description:Object(Y.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:ze,description:Object(Y.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:ze,description:Object(Y.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:He,description:Object(Y.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Le,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:ze,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(J.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Y.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:De,description:Object(Y.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Je,description:Object(Y.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:De,keywords:[Object(Y.__)("video")],description:Object(Y.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:De,description:Object(Y.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Qe,keywords:[Object(Y.__)("ebook")],responsive:!1,description:Object(Y.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],et=["facebook.com","smugmug.com"],tt=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],nt=n(86),rt=n.n(nt),ot=n(44),at=n.n(ot);function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var it=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},lt=function(e){return Object(Q.includes)(e,'class="wp-embedded-content"')},st=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=0,n=[].concat(Object(K.a)(Ye),Object(K.a)(Xe));t1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},o=0;o=u.ratio)return rt()(t,(s={},Object(Z.a)(s,u.className,n),Object(Z.a)(s,"wp-has-aspect-ratio",n),s))}return t}var bt=at()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var a={},c=e.type,i=void 0===c?"rich":c,l=e.html,s=e.provider_name,u=Object(Q.kebabCase)(Object(Q.toLower)(""!==s?s:t));return lt(l)&&(i="wp-embed"),(l||"photo"===i)&&(a.type=i,a.providerNameSlug=u),a.className=ut(l,n,r&&o),a})),mt=["image"];var dt=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(Be.a)(e)),e.calculateSize=e.calculateSize.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=Q.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),c=a.width,i=a.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(X.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(X.Component),pt=Object(be.withGlobalEvents)({resize:"calculateSize"})(dt);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},Et=Ct.name,xt={title:Object(Y.__)("Image"),description:Object(Y.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Y.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Y.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Y._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.caption,r=e.alt;return e.url?r?r+(n?". "+n:""):n||"":Object(Y.__)("Empty")}},transforms:wt,getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:vt,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,p=n.sizeSlug,h=n.title,g=Object(Q.isEmpty)(l)?void 0:l,f=re()((t={},Object(Z.a)(t,"align".concat(c),c),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(X.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),v=Object(X.createElement)(X.Fragment,null,i?Object(X.createElement)("a",{className:s,href:i,target:d,rel:g},O):O,!$.RichText.isEmpty(a)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:a}));return"left"===c||"right"===c||"center"===c?Object(X.createElement)("div",null,Object(X.createElement)("figure",{className:f},v)):Object(X.createElement)("figure",{className:f},v)},deprecated:xe},St=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4"})),Tt={className:!1,anchor:!0},Pt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},Nt=[{attributes:Pt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object($.getColorClassName)("color",i),u=re()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-align-".concat(r),r),t));return Object(X.createElement)($.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})},supports:Tt},{supports:Tt,attributes:Pt,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,a=t.textColor,c=t.customTextColor,i="h"+r,l=Object($.getColorClassName)("color",a),s=re()(Object(Z.a)({},l,l));return Object(X.createElement)($.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:c},value:o})}}];function Bt(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n,o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(t)?Object(X.createElement)(ue.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(X.createElement)(ue.Path,{d:o[t]})):null}var Rt=function(e){function t(){return Object(Se.a)(this,t),Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"createLevelControl",value:function(e,t,n){var r=e===t;return{icon:Object(X.createElement)(Bt,{level:e,isPressed:r}),title:Object(Y.sprintf)(Object(Y.__)("Heading %d"),e),isActive:r,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,a=t.maxLevel,c=t.selectedLevel,i=t.onChange;return Object(X.createElement)(ue.ToolbarGroup,{isCollapsed:r,icon:Object(X.createElement)(Bt,{level:c}),controls:Object(Q.range)(o,a).map((function(t){return e.createLevelControl(t,c,i)}))})}}]),t}(X.Component);function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var It=function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,a=e.className,c=Object(X.useRef)(),i=Object($.__experimentalUseColors)([{name:"textColor",property:"color"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:c}},[]),l=i.TextColor,s=i.InspectorControlsColorPanel,u=t.align,b=t.content,m=t.level,d=t.placeholder,p="h"+m;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(Rt,{minLevel:2,maxLevel:5,selectedLevel:m,onChange:function(e){return n({level:e})}}),Object(X.createElement)($.AlignmentToolbar,{value:u,onChange:function(e){n({align:e})}})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Heading settings")},Object(X.createElement)("p",null,Object(Y.__)("Level")),Object(X.createElement)(Rt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:m,onChange:function(e){return n({level:e})}}))),s,Object(X.createElement)(l,null,Object(X.createElement)($.RichText,{ref:c,identifier:"content",tagName:p,value:b,onChange:function(e){return n({content:e})},onMerge:r,onSplit:function(e){return e?Object(J.createBlock)("core/heading",function(e){for(var t=1;t".concat(t,"

")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(J.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(J.createBlock)("core/quote",{value:"

".concat(e,"

")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

"!==t&&r.push.apply(r,Object(K.a)(Object(Kt.split)(Object(Kt.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(Kt.toHTMLString)({value:e})})})))),n&&"

"!==n&&r.push(Object(J.createBlock)("core/paragraph",{content:n})),0===r.length?Object(J.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(Wt.a)(e,["value","citation"]);if("

"===t)return Object(J.createBlock)("core/heading",{content:n});var o=Object(Kt.split)(Object(Kt.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(J.createBlock)("core/heading",{content:Object(Kt.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;var c=o.slice(1);return[a,Object(J.createBlock)("core/quote",function(e){for(var t=1;t"+Object(Y.__)("In quoting others, we cite ourselves.")+"

",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Y._x)("Large","block style")}],transforms:$t,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,l=t.value,s=t.citation;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(X.createElement)(ue.BlockQuotation,{className:re()(c,Object(Z.a)({},"has-text-align-".concat(i),i))},Object(X.createElement)($.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!s||0===s.length;!e&&t&&a([])},placeholder:Object(Y.__)("Write quote…"),onReplace:a,onSplit:function(e){return Object(J.createBlock)("core/quote",function(e){for(var t=1;t

"!==n?{value:e.value+n,citation:r}:{citation:r})},deprecated:qt},tn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}));function nn(e){return Math.min(3,e.images.length)}var rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(Q.pick)(e,["alt","id","link","caption"]);n.url=Object(Q.get)(e,["sizes",t,"url"])||Object(Q.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(Q.get)(e,["sizes","full","url"])||Object(Q.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t0&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(Q.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return an({},e,{ids:Object(Q.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?nn(t):r,a=t.imageCrop,c=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?nn(t):r,a=t.align,c=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===a,"is-cropped":c});return Object(X.createElement)("div",{className:l},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(X.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(X.createElement)("a",{href:t},n):n)})))}}],ln=Object(X.createElement)($.BlockIcon,{icon:tn}),sn=n(20),un=Object(X.createElement)(ue.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),bn=Object(X.createElement)(ue.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),mn=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(Be.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Be.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Be.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Be.a)(e)),e.state={captionSelected:!1},e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[sn.BACKSPACE,sn.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url,a=t.__unstableMarkNextChangeAsNotPersistent;r&&!o&&(a(),this.props.setAttributes({url:r.source_url,alt:r.alt_text})),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,a=t.linkTo,c=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,h=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var g=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":h,ref:this.bindContainer}),Object(Ae.isBlobURL)(n)&&Object(X.createElement)(ue.Spinner,null)),f=re()({"is-selected":s,"is-transient":Object(Ae.isBlobURL)(n)});return Object(X.createElement)("figure",{className:f},e?Object(X.createElement)("a",{href:e},g):g,Object(X.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(X.createElement)(ue.Button,{icon:un,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(Y.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(X.createElement)(ue.Button,{icon:bn,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(Y.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(X.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(X.createElement)(ue.Button,{icon:"no-alt",onClick:b,className:"blocks-gallery-item__remove",label:Object(Y.__)("Remove image"),disabled:!s})),(s||u)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:s?Object(Y.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(X.Component),dn=Object(be.compose)([Object(me.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})),Object(me.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(mn),pn=function(e){var t,n=e.attributes,r=e.className,o=e.isSelected,a=e.setAttributes,c=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onSetImageAttributes,d=e.onFocusGalleryCaption,p=n.align,h=n.columns,g=void 0===h?nn(n):h,f=n.caption,O=n.imageCrop,v=n.images,j=re()("blocks-gallery-caption",{"screen-reader-text":!o&&$.RichText.isEmpty(f)});return Object(X.createElement)("figure",{className:re()(r,(t={},Object(Z.a)(t,"align".concat(p),p),Object(Z.a)(t,"columns-".concat(g),g),Object(Z.a)(t,"is-cropped",O),t))},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},v.map((function(e,t){var n=Object(Y.sprintf)(Object(Y.__)("image %1$d of %2$d in gallery"),t+1,v.length);return Object(X.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(X.createElement)(dn,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===v.length,isSelected:o&&c===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),setAttributes:function(e){return m(t,e)},caption:e.caption,"aria-label":n}))}))),i,Object(X.createElement)($.RichText,{tagName:"figcaption",className:j,placeholder:Object(Y.__)("Write gallery caption…"),value:f,unstableOnFocus:d,onChange:function(e){return a({caption:e})},inlineToolbar:!0}))};function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t0&&Object(Q.every)(r,(function(e){var t=e.url;return Object(Ae.isBlobURL)(t)}))){var o=Object(Q.map)(r,(function(e){var t=e.url;return Object(Ae.getBlobByURL)(t)}));Object(Q.forEach)(r,(function(e){var t=e.url;return Object(Ae.revokeBlobURL)(t)})),n({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,o=e.noticeUI,a=t.columns,c=void 0===a?nn(t):a,i=t.imageCrop,l=t.images,s=t.linkTo,u=t.sizeSlug,b=!!l.length,m=b&&Object(Q.some)(l,(function(e){return e.id})),d=Object(X.createElement)($.MediaPlaceholder,{addToGallery:m,isAppender:b,className:n,disableMediaButtons:b&&!r,icon:!b&&ln,labels:{title:!b&&Object(Y.__)("Gallery"),instructions:!b&&vn},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:On,multiple:!0,value:m?l:void 0,onError:this.onUploadError,notices:b?void 0:o,onFocus:this.props.onFocus});if(!b)return d;var p=this.getImagesSizeOptions(),h=b&&!Object(Q.isEmpty)(p),g=h?jn:yn;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Gallery settings")},l.length>1&&Object(X.createElement)(ue.RangeControl,Object(Ce.a)({label:Object(Y.__)("Columns")},jn,{value:c,onChange:this.setColumnsNumber,min:1,max:Math.min(8,l.length),required:!0})),Object(X.createElement)(ue.ToggleControl,Object(Ce.a)({label:Object(Y.__)("Crop Images")},jn,{checked:!!i,onChange:this.toggleImageCrop,help:this.getImageCropHelp})),Object(X.createElement)(ue.SelectControl,Object(Ce.a)({label:Object(Y.__)("Link To")},g,{value:s,onChange:this.setLinkTo,options:fn})),h&&Object(X.createElement)(ue.SelectControl,Object(Ce.a)({label:Object(Y.__)("Images Size")},yn,{value:u,options:p,onChange:this.updateImagesSize})))),o,Object(X.createElement)(pn,Object(Ce.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption})))}}]),t}(X.Component),kn=Object(be.compose)([Object(me.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e("core").getMedia,a=(0,e("core/block-editor").getSettings)(),c=a.imageSizes,i=a.mediaUpload,l={};return r&&(l=Object(Q.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(Q.reduce)(c,(function(e,t){var r=Object(Q.get)(n,["sizes",t.slug,"url"]),o=Object(Q.get)(n,["media_details","sizes",t.slug,"source_url"]);return gn({},e,Object(Z.a)({},t.slug,r||o))}),{});return gn({},e,Object(Z.a)({},parseInt(t,10),r))}),{})),{imageSizes:c,mediaUpload:i,resizedImages:l}})),ue.withNotices,Object(Me.withViewportMatch)({isNarrow:"< small"})])(_n);var wn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Cn={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(Q.every)(e,["align",n])?n:void 0,r=Object(Q.every)(e,["sizeSlug",r])?r:void 0;var o=Object(Q.filter)(e,(function(e){return e.url}));return Object(J.createBlock)("core/gallery",{images:o.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:o.map((function(e){return e.id})),align:n,sizeSlug:r})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return wn(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return wn(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Q.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(J.createBlock)("core/gallery",{images:e.map((function(e){return rn({url:Object(Ae.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align,r=e.sizeSlug;return t.length>0?t.map((function(e){var t=e.id,o=e.url,a=e.alt,c=e.caption;return Object(J.createBlock)("core/image",{id:t,url:o,alt:a,caption:c,align:n,sizeSlug:r})})):Object(J.createBlock)("core/image",{align:n})}}]},En={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}}},xn=En.name,Sn={title:Object(Y.__)("Gallery"),description:Object(Y.__)("Display multiple images in a rich gallery."),icon:tn,keywords:[Object(Y.__)("images"),Object(Y.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:Cn,edit:kn,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?nn(t):r,a=t.imageCrop,c=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},n):n,!$.RichText.isEmpty(e.caption)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!$.RichText.isEmpty(c)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:c}))},deprecated:cn},Tn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"})),Pn=n(65),Nn=n.n(Pn);var Bn="core/archives",Rn={title:Object(Y.__)("Archives"),description:Object(Y.__)("Display a monthly archive of your posts."),icon:Tn,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Archives settings")},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display as Dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Show Post Counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(X.createElement)(ue.Disabled,null,Object(X.createElement)(Nn.a,{block:"core/archives",attributes:t})))}},An=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),In=[{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:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:r}))}}],Mn=["audio"],zn=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).toggleAttribute=e.toggleAttribute.bind(Object(Be.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(Be.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=e.noticeOperations,o=e.setAttributes,a=t.id,c=t.src,i=void 0===c?"":c;if(!a&&Object(Ae.isBlobURL)(i)){var l=Object(Ae.getBlobByURL)(i);l&&n({filesList:[l],onFileChange:function(e){var t=Object(se.a)(e,1)[0],n=t.id,r=t.url;o({id:n,src:r})},onError:function(e){o({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:Mn})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(Z.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=st({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(Y.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this.props.attributes,t=e.autoplay,n=e.caption,r=e.loop,o=e.preload,a=e.src,c=this.props,i=c.setAttributes,l=c.isSelected,s=c.className,u=c.noticeUI,b=function(e){e&&e.url?i({src:e.url,id:e.id}):i({src:void 0,id:void 0})};return a?Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.MediaReplaceFlow,{mediaURL:a,allowedTypes:Mn,accept:"audio/*",onSelect:b,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Audio settings")},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:t,help:this.getAutoplayHelp}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:r}),Object(X.createElement)(ue.SelectControl,{label:Object(Y.__)("Preload"),value:void 0!==o?o:"none",onChange:function(e){return i({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(Y.__)("Auto")},{value:"metadata",label:Object(Y.__)("Metadata")},{value:"none",label:Object(Y.__)("None")}]}))),Object(X.createElement)("figure",{className:s},Object(X.createElement)(ue.Disabled,null,Object(X.createElement)("audio",{controls:"controls",src:a})),(!$.RichText.isEmpty(n)||l)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:n,onChange:function(e){return i({caption:e})},inlineToolbar:!0}))):Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:An}),className:s,onSelect:b,onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:Mn,value:this.props.attributes,notices:u,onError:this.onUploadError})}}]),t}(X.Component),Ln=Object(be.compose)([Object(me.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ue.withNotices])(zn);var Hn={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(J.createBlock)("core/audio",{src:Object(Ae.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Dn={name:"core/audio",category:"common",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"}}},Vn=Dn.name,Fn={title:Object(Y.__)("Audio"),description:Object(Y.__)("Embed a simple audio player."),keywords:[Object(Y.__)("music"),Object(Y.__)("sound"),Object(Y.__)("podcast"),Object(Y.__)("recording")],icon:An,transforms:Hn,deprecated:In,supports:{align:!0},edit:Ln,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return c&&Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:r}))}},Un=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}));function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Q.unescape)(e.name).trim():Object(Y.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(X.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return Object(X.createElement)("li",{key:e.id},Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),a&&Object(X.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!c.length&&Object(X.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map((function(e){return n.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,r=this.getCategories(n),o="blocks-category-select-".concat(t);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)("label",{htmlFor:o,className:"screen-reader-text"},Object(Y.__)("Categories")),Object(X.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},r.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return[Object(X.createElement)("option",{key:e.id},Object(Q.times)(3*t,(function(){return" "})),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.map((function(e){return n.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,r=t.displayAsDropdown,o=t.showHierarchy,a=t.showPostCounts,c=Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Categories settings")},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Show Hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Show Post Counts"),checked:a,onChange:this.toggleShowPostCounts})));return n?Object(X.createElement)(X.Fragment,null,c,Object(X.createElement)(ue.Placeholder,{icon:"admin-post",label:Object(Y.__)("Categories")},Object(X.createElement)(ue.Spinner,null))):Object(X.createElement)(X.Fragment,null,c,Object(X.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(X.Component),Er=Object(be.compose)(Object(me.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),be.withInstanceId)(Cr),xr="core/categories",Sr={title:Object(Y.__)("Categories"),description:Object(Y.__)("Display a list of all categories."),icon:wr,category:"widgets",supports:{align:!0,html:!1},edit:Er},Tr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"}));var Pr=n(66);function Nr(e){return e.replace(/\[/g,"[")}function Br(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Rr={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(J.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Ar={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},Ir=Ar.name,Mr={title:Object(Y.__)("Code"),description:Object(Y.__)("Display code snippets that respect your spacing and tabs."),icon:Tr,example:{attributes:{content:Object(Y.__)('// 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 );')}},supports:{html:!1},transforms:Rr,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object(X.createElement)("div",{className:r},Object(X.createElement)($.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Y.__)("Write code…"),"aria-label":Object(Y.__)("Code")}))},save:function(e){var t,n=e.attributes;return Object(X.createElement)("pre",null,Object(X.createElement)("code",null,(t=n.content,Object(Q.flow)(Pr.escapeEditableHTML,Nr,Br)(t||""))))}},zr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}));function Lr(e){var t,n=Lr.doc;n||(n=document.implementation.createHTMLDocument(""),Lr.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var Hr=[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==Lr(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=Lr(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(J.createBlock)("core/column",{},e)}));return[Object(Q.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(X.createElement)("div",{className:"has-".concat(t,"-columns")},Object(X.createElement)($.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(Q.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=re()("has-".concat(r,"-columns"),Object(Z.a)({},"are-vertically-aligned-".concat(n),n));return Object(X.createElement)("div",{className:o},Object(X.createElement)($.InnerBlocks.Content,null))}}],Dr=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function Vr(e,t){var n=e.attributes.width;return Dr(void 0===n?100/t:n)}function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Q.sumBy)(e,(function(e){return Vr(e,t)}))}function Ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=Vr(n,t);return Object.assign(e,Object(Z.a)({},n.clientId,r))}),{})}function qr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-Fr(e,n))/e.length;return Object(Q.mapValues)(Ur(e,n),(function(e){return Dr(e+r)}))}function Gr(e,t){return e.map((function(e){return Object(Q.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Wr=["core/column"];var Kr=Object(me.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;a({verticalAlignment:r}),i(o).forEach((function(e){c(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var a=t.clientId,c=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(a),l=i.some((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=Dr(100/o),b=qr(i,100-u);i=[].concat(Object(K.a)(Gr(i,b)),Object(K.a)(Object(Q.times)(o-r,(function(){return Object(J.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(K.a)(i),Object(K.a)(Object(Q.times)(o-r,(function(){return Object(J.createBlock)("core/column")}))));else{if(i=Object(Q.dropRight)(i,r-o),l)i=Gr(i,qr(i,100))}c(a,i,!1)}}}))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateColumns,a=e.clientId,c=t.verticalAlignment,i=Object(me.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(a)}}),[a]).count,l=Object($.__experimentalUseColors)([{name:"backgroundColor",className:"has-background"}]),s=l.BackgroundColor,u=l.InspectorControlsColorPanel,b=re()(n,Object(Z.a)({},"are-vertically-aligned-".concat(c),c));return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,null,Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Columns"),value:i,onChange:function(e){return o(i,e)},min:2,max:6}))),u,Object(X.createElement)(s,null,Object(X.createElement)("div",{className:b},Object(X.createElement)($.InnerBlocks,{templateLock:"all",allowedBlocks:Wr}))))})),Zr=function e(t){return Object(Q.map)(t,(function(t){var n=Object(se.a)(t,3),r=n[0],o=n[1],a=n[2],c=void 0===a?[]:a;return Object(J.createBlock)(r,o,e(c))}))},$r=function(e){var t=e.clientId,n=e.name,r=Object(me.useSelect)((function(e){var r=e("core/blocks"),o=r.__experimentalGetBlockVariations,a=r.getBlockType,c=r.__experimentalGetDefaultBlockVariation;return{blockType:a(n),defaultVariation:c(n,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(n,"block")}}),[t,n]),o=r.blockType,a=r.defaultVariation,c=r.hasInnerBlocks,i=r.variations,l=Object(me.useDispatch)("core/block-editor").replaceInnerBlocks;return c?Object(X.createElement)(Kr,e):Object(X.createElement)($.__experimentalBlockVariationPicker,{icon:Object(Q.get)(o,["icon","src"]),label:Object(Q.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,Zr(t.innerBlocks))},allowSkip:!0})};var Jr=[{name:"two-columns-equal",title:Object(Y.__)("Two columns; equal split"),icon:Object(X.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.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:Object(Y.__)("Two columns; one-third, two-thirds split"),icon:Object(X.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.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:Object(Y.__)("Two columns; two-thirds, one-third split"),icon:Object(X.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.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:Object(Y.__)("Three columns; equal split"),icon:Object(X.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.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:Object(Y.__)("Three columns; wide center column"),icon:Object(X.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ue.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"]}],Qr={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},Yr=Qr.name,Xr={title:Object(Y.__)("Columns"),icon:zr,description:Object(Y.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},variations:Jr,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Y.__)("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:Object(Y.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Y.__)("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:Object(Y.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Hr,edit:$r,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.backgroundColor,a=n.customBackgroundColor,c=Object($.getColorClassName)("background-color",o),i=re()((t={"has-background":o||a},Object(Z.a)(t,c,c),Object(Z.a)(t,"are-vertically-aligned-".concat(r),r),t)),l={backgroundColor:c?void 0:a};return Object(X.createElement)("div",{className:i||void 0,style:l},Object(X.createElement)($.InnerBlocks.Content,null))}},eo=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}));function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var no=Object(be.compose)(Object(me.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(me.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;a({verticalAlignment:r}),c(i(o),{verticalAlignment:null})},updateWidth:function(r){var o=t.clientId,a=e("core/block-editor").updateBlockAttributes,c=n.select("core/block-editor"),i=c.getBlockRootClientId,l=(0,c.getBlocks)(i(o)),s=function(e,t){var n=Object(Q.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}(l,o),u=r+Fr(Object(Q.difference)(l,[Object(Q.find)(l,{clientId:o})].concat(Object(K.a)(s)))),b=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=Object(X.useState)(!1),a=Object(se.a)(o,2),c=a[0],i=a[1];return Object(X.useEffect)((function(){e&&t<=50&&r.current&&Co().getColorAsync(r.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&r.current,i]),Object(X.useEffect)((function(){if(t>50||!e){if(!n)return void i(!0);i(jo()(n).isDark())}}),[n,t>50||!e,i]),Object(X.useEffect)((function(){e||n||i(!1)}),[!e&&!n,i]),c}(g,m,i.color,_),w=Object(X.useState)(null),C=Object(se.a)(w,2),E=C[0],x=C[1],S=u.removeAllNotices,T=u.createErrorNotice,P=_o({},b===io?uo(g):{},{backgroundColor:i.color,minHeight:E||h});v&&!g&&(P.background=v),d&&(P.backgroundPosition="".concat(100*d.x,"% ").concat(100*d.y,"%"));var N=!!(g||i.color||v),B=Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,N&&Object(X.createElement)($.MediaReplaceFlow,{mediaURL:g,allowedTypes:ko,accept:"image/*,video/*",onSelect:y})),Object(X.createElement)($.InspectorControls,null,!!g&&Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Media settings")},io===b&&Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Fixed Background"),checked:p,onChange:function(){r(_o({hasParallax:!p},p?{}:{focalPoint:void 0}))}}),io===b&&!p&&Object(X.createElement)(ue.FocalPointPicker,{label:Object(Y.__)("Focal Point Picker"),url:g,value:d,onChange:function(e){return r({focalPoint:e})}}),lo===b&&Object(X.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:g}),Object(X.createElement)(ue.PanelRow,null,Object(X.createElement)(ue.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return r({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(Y.__)("Clear Media")))),N&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Dimensions")},Object(X.createElement)(Eo,{value:E||h,onChange:function(e){return r({minHeight:e})}})),Object(X.createElement)($.__experimentalPanelColorGradientSettings,{title:Object(Y.__)("Overlay"),initialOpen:!0,settings:[{colorValue:i.color,gradientValue:v,onColorChange:l,onGradientChange:j,label:Object(Y.__)("Overlay")}]},!!g&&Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Background Opacity"),value:m,onChange:function(e){return r({dimRatio:e})},min:0,max:100,step:10,required:!0})))));if(!N){var R=Object(X.createElement)($.BlockIcon,{icon:co}),A=Object(Y.__)("Cover");return Object(X.createElement)(X.Fragment,null,B,Object(X.createElement)($.MediaPlaceholder,{icon:R,className:a,labels:{title:A,instructions:Object(Y.__)("Upload an image or video file, or pick one from your media library.")},onSelect:y,accept:"image/*,video/*",allowedTypes:ko,notices:c,onError:function(e){S(),T(e)}},Object(X.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(X.createElement)($.ColorPalette,{disableCustomColors:!0,value:i.color,onChange:l,clearable:!1}))))}var I=re()(a,bo(m),(t={"is-dark-theme":k,"has-background-dim":0!==m,"has-parallax":p},Object(Z.a)(t,i.class,i.class),Object(Z.a)(t,"has-background-gradient",v),Object(Z.a)(t,O,!g&&O),t));return Object(X.createElement)(X.Fragment,null,B,Object(X.createElement)(So,{className:re()("block-library-cover__resize-container",{"is-selected":o}),onResizeStart:function(){return s(!1)},onResize:x,onResizeStop:function(e){s(!0),r({minHeight:e}),x(null)}},Object(X.createElement)("div",{"data-url":g,style:P,className:I},io===b&&Object(X.createElement)("img",{ref:_,"aria-hidden":!0,alt:"",style:{display:"none"},src:g}),g&&v&&0!==m&&Object(X.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",O),style:{background:v}}),lo===b&&Object(X.createElement)("video",{ref:_,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:g}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)($.InnerBlocks,{template:wo})))))}));var Po={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(J.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(J.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:lo})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,a=e.gradient,c=e.customGradient;return n?t===io:!(r||o||a||c)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(J.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,a=e.gradient,c=e.customGradient;return n?t===lo:!(r||o||a||c)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(J.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},No={name:"core/cover",category:"common",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}},Bo=No.name,Ro={title:Object(Y.__)("Cover"),description:Object(Y.__)("Add an image or video with a text overlay — great for headers."),icon:co,supports:{align:!0,html:!1},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Y.__)("Snow Patrol"),align:"center"}}]},transforms:Po,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,a=t.customOverlayColor,c=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object($.getColorClassName)("background-color",s),d=Object($.__experimentalGetGradientClass)(r),p=n===io?uo(u):{};m||(p.backgroundColor=a),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var h=re()(bo(c),m,Object(Z.a)({"has-background-dim":0!==c,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(X.createElement)("div",{className:h,style:p},u&&(r||o)&&0!==c&&Object(X.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),lo===n&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)($.InnerBlocks.Content,null)))},edit:To,deprecated:go},Ao=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,i=e.switchBackToURLInput;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.ToolbarGroup,null,n&&Object(X.createElement)(ue.Button,{className:"components-toolbar__control",label:Object(Y.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Media settings"),className:"blocks-responsive"},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},Io=function(){return Object(X.createElement)("div",{className:"wp-block-embed is-loading"},Object(X.createElement)(ue.Spinner,null),Object(X.createElement)("p",null,Object(Y.__)("Embedding…")))},Mo=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(X.createElement)(ue.Placeholder,{icon:Object(X.createElement)($.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(Y.__)("Paste a link to the content you want to display on your site.")},Object(X.createElement)("form",{onSubmit:o},Object(X.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(Y.__)("Enter URL to embed here…"),onChange:a}),Object(X.createElement)(ue.Button,{isSecondary:!0,type:"submit"},Object(Y._x)("Embed","button label"))),Object(X.createElement)("div",{className:"components-placeholder__learn-more"},Object(X.createElement)(ue.ExternalLink,{href:Object(Y.__)("https://wordpress.org/support/article/embeds/")},Object(Y.__)("Learn more about embeds"))),c&&Object(X.createElement)("div",{className:"components-placeholder__error"},Object(X.createElement)("div",{className:"components-placeholder__instructions"},Object(Y.__)("Sorry, this content could not be embedded.")),Object(X.createElement)(ue.Button,{isSecondary:!0,onClick:l},Object(Y._x)("Try again","button label"))," ",Object(X.createElement)(ue.Button,{isSecondary:!0,onClick:i},Object(Y._x)("Convert to link","button label"))))},zo=n(109),Lo=window.FocusEvent,Ho=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(Be.a)(e)),e.node=Object(X.createRef)(),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Lo("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(X.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(X.Component),Do=Object(be.withGlobalEvents)({blur:"checkFocus"})(Ho),Vo=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(Be.a)(e)),e.state={interactive:!1},e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.preview,a=r.url,c=r.type,i=r.caption,l=r.onCaptionChange,s=r.isSelected,u=r.className,b=r.icon,m=r.label,d=o.scripts,p=this.state.interactive,h="photo"===c?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,n=Object(X.createElement)("p",null,Object(X.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(X.renderToString)(n)):o.html,g=Object(zo.parse)(a).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),O=Object(Q.includes)(et,f),v=Object(Y.sprintf)(Object(Y.__)("Embedded content from %s"),f),j=rt()(c,u,"wp-block-embed__wrapper"),y="wp-embed"===c?Object(X.createElement)(Do,{html:h}):Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},Object(X.createElement)(ue.SandBox,{html:h,scripts:d,title:v,type:j,onFocus:this.hideOverlay}),!p&&Object(X.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(X.createElement)("figure",{className:rt()(u,"wp-block-embed",{"is-type-video":"video"===c})},O?Object(X.createElement)(ue.Placeholder,{icon:Object(X.createElement)($.BlockIcon,{icon:b,showColors:!0}),label:m},Object(X.createElement)("p",{className:"components-placeholder__error"},Object(X.createElement)("a",{href:a},a)),Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Y.sprintf)(Object(Y.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!$.RichText.isEmpty(i)||s)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(X.Component);function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uo(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function o(){var e;return Object(Se.a)(this,o),(e=Object(Pe.a)(this,Object(Ne.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(Be.a)(e)),e.setUrl=e.setUrl.bind(Object(Be.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(Be.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(Be.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(Be.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(Be.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(Be.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(Re.a)(o,r),Object(Te.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=st(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,r=this.props.attributes,o=r.className,a=r.allowResponsive;return function(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var n=Object(Ae.createBlobURL)(e);t.push(Object(J.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(J.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(J.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(J.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(me.select)("core").getMedia)(t);return!!n&&Object(Q.includes)(n.mime_type,"audio")},transform:function(e){return Object(J.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(me.select)("core").getMedia)(t);return!!n&&Object(Q.includes)(n.mime_type,"video")},transform:function(e){return Object(J.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(me.select)("core").getMedia)(t);return!!n&&Object(Q.includes)(n.mime_type,"image")},transform:function(e){return Object(J.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},aa={name:"core/file",category:"common",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}}},ca=aa.name,ia={title:Object(Y.__)("File"),description:Object(Y.__)("Add a link to a downloadable file."),icon:ea,keywords:[Object(Y.__)("document"),Object(Y.__)("pdf"),Object(Y.__)("download")],supports:{align:!0},transforms:oa,edit:ra,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(X.createElement)("div",null,!$.RichText.isEmpty(r)&&Object(X.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object(X.createElement)($.RichText.Content,{value:r})),c&&Object(X.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(X.createElement)($.RichText.Content,{value:i})))}},la=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),sa=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(Be.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(K.a)(Object($.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=this.state,o=r.isPreview,a=r.styles;return Object(X.createElement)("div",{className:"wp-block-html"},Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.ToolbarGroup,null,Object(X.createElement)(ue.Button,{className:"components-tab-button",isPressed:!o,onClick:this.switchToHTML},Object(X.createElement)("span",null,"HTML")),Object(X.createElement)(ue.Button,{className:"components-tab-button",isPressed:o,onClick:this.switchToPreview},Object(X.createElement)("span",null,Object(Y.__)("Preview"))))),Object(X.createElement)(ue.Disabled.Consumer,null,(function(e){return o||e?Object(X.createElement)(ue.SandBox,{html:t.content,styles:a}):Object(X.createElement)($.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Y.__)("Write HTML…"),"aria-label":Object(Y.__)("HTML")})})))}}]),t}(X.Component),ua=Object(me.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(sa);var ba={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:function(e){return{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:e.phrasingContentSchema}}}}}}]},ma={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},da=ma.name,pa={title:Object(Y.__)("Custom HTML"),description:Object(Y.__)("Add custom HTML code and preview it as you edit."),icon:la,keywords:[Object(Y.__)("embed")],example:{attributes:{content:""+Object(Y.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:ba,edit:ua,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)}},ha=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),ga=Object(X.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(X.createElement)(ue.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(X.createElement)(ue.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),fa=["image","video"];function Oa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var va=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.onSelectMedia,n=e.mediaUrl;return Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.MediaReplaceFlow,{mediaURL:n,allowedTypes:fa,accept:"image/*,video/*",onSelect:t}))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,a=e.focalPoint,c=o?Oa(n,a):{};return Object(X.createElement)(X.Fragment,null,this.renderToolbarEditButton(),Object(X.createElement)("figure",{className:r,style:c},Object(X.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(X.createElement)(X.Fragment,null,this.renderToolbarEditButton(),Object(X.createElement)("figure",{className:n},Object(X.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className,r=e.noticeUI;return Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:ga}),labels:{title:Object(Y.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:fa,notices:r,onError:this.onUploadError})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,a=e.commitWidthChange,c=e.onWidthChange,i=e.toggleSelection;if(r&&n){var l={right:"left"===t,left:"right"===t},s=null;switch(r){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object(X.createElement)(ue.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),a(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(X.Component),ja=Object(be.compose)([Object(me.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),ue.withNotices])(va);function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _a={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},ka=[{attributes:function(e){for(var t=1;tEarns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Y.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ta,edit:xa,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,a=n.isStackedOnMobile,c=n.mediaAlt,i=n.mediaPosition,l=n.mediaType,s=n.mediaUrl,u=n.mediaWidth,b=n.mediaId,m=n.verticalAlignment,d=n.imageFill,p=n.focalPoint,h=n.linkClass,g=n.href,f=n.linkTarget,O=n.rel,v=Object(Q.isEmpty)(O)?void 0:O,j=Object(X.createElement)("img",{src:s,alt:c,className:b&&"image"===l?"wp-image-".concat(b):null});g&&(j=Object(X.createElement)("a",{className:h,href:g,target:f,rel:v},j));var y,_={image:function(){return j},video:function(){return Object(X.createElement)("video",{controls:!0,src:s})}},k=Object($.getColorClassName)("background-color",r),w=re()((t={"has-media-on-the-right":"right"===i,"has-background":k||o},Object(Z.a)(t,k,k),Object(Z.a)(t,"is-stacked-on-mobile",a),Object(Z.a)(t,"is-vertically-aligned-".concat(m),m),Object(Z.a)(t,"is-image-fill",d),t)),C=d?Oa(s,p):{};u!==Sa&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var E={backgroundColor:k?void 0:o,gridTemplateColumns:y};return Object(X.createElement)("div",{className:w,style:E},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:C},(_[l]||Q.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)($.InnerBlocks.Content,null)))},deprecated:ka},Ra=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z"}));function Aa(e){var t=e.clientId,n=Object(me.useSelect)((function(e){var n=e("core/block-editor"),r=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(t),selectedBlockClientId:r()}}),[t]),r=n.block,o=n.selectedBlockClientId,a=Object(me.useDispatch)("core/block-editor").selectBlock;return Object(X.createElement)($.__experimentalBlockNavigationList,{blocks:[r],selectedBlockClientId:o,selectBlock:a,showNestedBlocks:!0,showAppender:!0})}var Ia=Object(X.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(X.createElement)(ue.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var Ma=function(){return Object(X.createElement)(ue.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(X.createElement)(ue.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},za=function(e){var t=e.style,n=e.className;return Object(X.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(X.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(X.createElement)(Ma,null)))},La=function(e){var t,n,r,o=e.children,a=Object(Wt.a)(e,["children"]);return Object(X.createElement)(ue.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=a,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(X.createElement)(ue.ToolbarGroup,null,Object(X.createElement)(ue.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(Y.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==sn.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(X.createElement)(r,null,Object(X.createElement)(n,null,Object(X.createElement)(za,null)))}))}),renderContent:function(){return o}})},Ha=Object(X.createElement)(ue.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M11 16v-3h10v-2H11V8l-4 4 4 4zM5 4H3v16h2V4z"})),Da=Object(X.createElement)(ue.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M5 8v3H1v2h4v3l4-4-4-4zm14 8v-3h4v-2h-4V8l-4 4 4 4zM13 4h-2v16h2V4z"})),Va=Object(X.createElement)(ue.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M13 8v3H3v2h10v3l4-4-4-4zm8-4h-2v16h2V4z"}));var Fa=Object(be.compose)([Object($.withFontSizes)("fontSize"),Object(me.withSelect)((function(e,t){var n,r,o=t.clientId,a={parent:0,order:"asc",orderby:"id"},c=["core","getEntityRecords",["postType","page",a]];return{hasExistingNavItems:!!e("core/block-editor").getBlocks(o).length,pages:e("core").getEntityRecords("postType","page",a),isRequestingPages:(n=e("core/data")).isResolving.apply(n,c),hasResolvedPages:(r=e("core/data")).hasFinishedResolution.apply(r,c)}})),Object(me.withDispatch)((function(e,t){var n=t.clientId;return{updateNavItemBlocks:function(t){e("core/block-editor").replaceInnerBlocks(n,t)}}}))])((function(e){var t,n=e.attributes,r=e.clientId,o=e.fontSize,a=e.hasExistingNavItems,c=e.hasResolvedPages,i=e.isRequestingPages,l=e.pages,s=e.setAttributes,u=e.setFontSize,b=e.updateNavItemBlocks,m=Object(X.useRef)(),d=Object(me.useDispatch)("core/block-editor").selectBlock,p=Object($.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"background-color"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0,fontSize:o.size}],colorDetector:{targetRef:m},colorPanelProps:{initialOpen:!0}},[o.size]),h=p.TextColor,g=p.BackgroundColor,f=p.InspectorControlsColorPanel,O=p.ColorPanel,v=function(e){var t=Object(X.useState)(!1),n=Object(se.a)(t,2),r=n[0],o=n[1];return{navigatorToolbarButton:Object(X.createElement)(ue.Button,{className:"components-toolbar__control",label:Object(Y.__)("Open block navigator"),onClick:function(){return o(!0)},icon:Ia}),navigatorModal:r&&Object(X.createElement)(ue.Modal,{title:Object(Y.__)("Block Navigator"),closeLabel:Object(Y.__)("Close"),onRequestClose:function(){o(!1)}},Object(X.createElement)(Aa,{clientId:e}))}}(r),j=v.navigatorToolbarButton,y=v.navigatorModal,k=Object(X.useMemo)((function(){return l?l.map((function(e){var t=e.title,n=e.type,r=e.link,o=e.id;return Object(J.createBlock)("core/navigation-link",{type:n,id:o,url:r,label:t.rendered?Object(Q.escape)(t.rendered):Object(Y.__)("(no title)"),title:t.raw?Object(Q.escape)(t.raw):Object(Y.__)("(no title)"),opensInNewTab:!1})})):null}),[l]);function w(e){return function(){var t=n.itemsJustification===e?void 0:e;s({itemsJustification:t})}}var C=c&&l&&l.length,E=re()("wp-block-navigation",(t={},Object(Z.a)(t,"items-justification-".concat(n.itemsJustification),n.itemsJustification),Object(Z.a)(t,o.class,o.class),t)),x={fontSize:o.size?o.size+"px":void 0};return a?Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.Toolbar,{icon:n.itemsJustification?_["justify".concat(Object(Q.upperFirst)(n.itemsJustification),"Icon")]:Ha,label:Object(Y.__)("Change items justification"),isCollapsed:!0,controls:[{icon:Ha,title:Object(Y.__)("Justify items left"),isActive:"left"===n.itemsJustification,onClick:w("left")},{icon:Da,title:Object(Y.__)("Justify items center"),isActive:"center"===n.itemsJustification,onClick:w("center")},{icon:Va,title:Object(Y.__)("Justify items right"),isActive:"right"===n.itemsJustification,onClick:w("right")}]}),Object(X.createElement)(ue.ToolbarGroup,null,j),Object(X.createElement)(La,{TextColor:h,BackgroundColor:g},O)),y,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Navigation Structure")},Object(X.createElement)(Aa,{clientId:r})),Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Text settings")},Object(X.createElement)($.FontSizePicker,{value:o.size,onChange:u}))),f,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Display settings")},Object(X.createElement)(ue.ToggleControl,{checked:n.showSubmenuIcon,onChange:function(e){s({showSubmenuIcon:e})},label:Object(Y.__)("Show submenu icon for top-level items")}))),Object(X.createElement)(h,null,Object(X.createElement)(g,null,Object(X.createElement)("div",{ref:m,className:E,style:x},!a&&i&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ue.Spinner,null)," ",Object(Y.__)("Loading Navigation…")," "),Object(X.createElement)($.InnerBlocks,{allowedBlocks:["core/navigation-link"],templateInsertUpdatesSelection:!1,__experimentalMoverDirection:"horizontal"}))))):Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ue.Placeholder,{className:"wp-block-navigation-placeholder",icon:"menu",label:Object(Y.__)("Navigation"),instructions:Object(Y.__)("Create a Navigation from all existing pages, or create an empty one.")},Object(X.createElement)("div",{ref:m,className:"wp-block-navigation-placeholder__buttons"},Object(X.createElement)(ue.Button,{isSecondary:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){b(k),d(r)},disabled:!C},Object(Y.__)("Create from all top-level pages")),Object(X.createElement)(ue.Button,{isLink:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){var e=Object(J.createBlock)("core/navigation-link");b([e])}},Object(Y.__)("Create empty")))))}));var Ua="core/navigation",qa={title:Object(Y.__)("Navigation"),icon:Ra,description:Object(Y.__)("Add a navigation block to your site."),keywords:[Object(Y.__)("menu"),Object(Y.__)("navigation"),Object(Y.__)("links")],category:"layout",supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},styles:[{name:"light",label:Object(Y.__)("Light"),isDefault:!0},{name:"dark",label:Object(Y.__)("Dark")}],edit:Fa,save:function(){return Object(X.createElement)($.InnerBlocks.Content,null)}},Ga=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"})),Wa=n(27),Ka=Object(X.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(X.createElement)(ue.Path,{d:"M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z"}),Object(X.createElement)(ue.Path,{fill:"none",d:"M0 0h24v24H0z"})),Za=Object(X.createElement)(ue.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(X.createElement)(ue.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "}));var $a=Object(be.compose)([Object(me.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockName,o=n.getBlockAttributes,a=n.getBlockParents,c=n.getClientIdsOfDescendants,i=n.hasSelectedInnerBlock,l=t.clientId,s=a(l)[0],u=a(l,!0)[0],b=o(s),m=!!c([l]).length,d="core/navigation"===r(u),p=b.showSubmenuIcon&&d&&m;return{isParentOfSelectedBlock:i(l,!0),hasDescendants:m,showSubmenuIcon:p}})),Object(me.withDispatch)((function(e,t,n){return{insertLinkBlock:function(){var r=t.clientId,o=e("core/block-editor").insertBlock,a=(0,n.select("core/block-editor").getClientIdsOfDescendants)([r]),c=a.length?a.length:0;o(Object(J.createBlock)("core/navigation-link"),c,r)}}}))])((function(e){var t=e.attributes,n=e.hasDescendants,r=e.isSelected,o=e.isParentOfSelectedBlock,a=e.setAttributes,c=e.showSubmenuIcon,i=e.insertLinkBlock,l=t.label,s=t.opensInNewTab,u=t.title,b=t.url,m=t.nofollow,d=t.description,p={title:u?Object(Q.unescape)(u):"",url:b,opensInNewTab:s},h=Object(X.useState)(!1),g=Object(se.a)(h,2),f=g[0],O=g[1],v=Object(Y.__)("Add link…"),j=Object(X.useRef)();return Object(X.useEffect)((function(){b||O(!0)}),[]),Object(X.useEffect)((function(){r||O(!1)}),[r]),Object(X.useEffect)((function(){f&&b&&(O(!1),Object(Ie.isURL)(Object(Ie.prependHTTP)(l))&&/^.+\.[a-z]+/.test(l)?function(){j.current.focus();var e=window.getSelection(),t=document.createRange();t.selectNodeContents(j.current),e.removeAllRanges(),e.addRange(t)}():Object(Wa.placeCaretAtHorizontalEdge)(j.current,!0))}),[b]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.ToolbarGroup,null,Object(X.createElement)(ue.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(Z.a)({},sn.rawShortcut.primary("k"),(function(){return O(!0)}))}),Object(X.createElement)(ue.ToolbarButton,{name:"link",icon:"admin-links",title:Object(Y.__)("Link"),shortcut:sn.displayShortcut.primary("k"),onClick:function(){return O(!0)}}),Object(X.createElement)(ue.ToolbarButton,{name:"submenu",icon:Ka,title:Object(Y.__)("Add submenu"),onClick:i}))),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("SEO settings")},Object(X.createElement)(ue.TextControl,{value:u||"",onChange:function(e){a({title:e})},label:Object(Y.__)("Title Attribute"),help:Object(Y.__)("Provide more context about where the link goes.")}),Object(X.createElement)(ue.ToggleControl,{checked:m,onChange:function(e){a({nofollow:e})},label:Object(Y.__)("Add nofollow to link"),help:Object(X.createElement)(X.Fragment,null,Object(Y.__)("Don't let search engines follow this link."),Object(X.createElement)(ue.ExternalLink,{className:"wp-block-navigation-link__nofollow-external-link",href:Object(Y.__)("https://codex.wordpress.org/Nofollow")},Object(Y.__)("What's this?")))})),Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Link settings")},Object(X.createElement)(ue.TextareaControl,{value:d||"",onChange:function(e){a({description:e})},label:Object(Y.__)("Description"),help:Object(Y.__)("The description will be displayed in the menu if the current theme supports it.")}))),Object(X.createElement)("div",{className:re()("wp-block-navigation-link",{"is-editing":r||o,"is-selected":r,"has-link":!!b})},Object(X.createElement)("div",{className:"wp-block-navigation-link__content"},Object(X.createElement)($.RichText,{ref:j,tagName:"span",className:"wp-block-navigation-link__label",value:l,onChange:function(e){return a({label:e})},placeholder:v,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}),c&&Object(X.createElement)("span",{className:"wp-block-navigation-link__submenu-icon"},Za),f&&Object(X.createElement)(ue.Popover,{position:"bottom center",onClose:function(){return O(!1)}},Object(X.createElement)($.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:p,showInitialSuggestions:!0,onChange:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.title,o=void 0===r?"":r,c=n.url,i=void 0===c?"":c,s=n.opensInNewTab,u=n.id;return a({title:Object(Q.escape)(o),url:encodeURI(i),label:(e=o.replace(/http(s?):\/\//gi,""),t=i.replace(/http(s?):\/\//gi,""),""!==o&&e!==t&&l!==o?Object(Q.escape)(o):l||Object(Q.escape)(t)),opensInNewTab:s,id:u})}}))),Object(X.createElement)($.InnerBlocks,{allowedBlocks:["core/navigation-link"],renderAppender:!!(n&&r||o)&&$.InnerBlocks.DefaultAppender})))}));var Ja={name:"core/navigation-link",category:"layout",attributes:{label:{type:"string"},nofollow:{type:"boolean",default:!1},title:{type:"string"},type:{type:"string"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}}},Qa=Ja.name,Ya={title:Object(Y.__)("Navigation Link"),parent:["core/navigation"],icon:Ga,description:Object(Y.__)("Add a page, link, or another item to your navigation."),supports:{reusable:!1,html:!1},__experimentalLabel:function(e){return e.label},edit:$a,save:function(){return Object(X.createElement)($.InnerBlocks.Content,null)}},Xa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"})),ec=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(Be.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,r=e.displayDate,o=e.displayExcerpt;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Latest comments settings")},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display Date"),checked:r,onChange:this.toggleDisplayDate}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display Excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(X.createElement)(ue.Disabled,null,Object(X.createElement)(Nn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(X.Component),tc="core/latest-comments",nc={title:Object(Y.__)("Latest Comments"),description:Object(Y.__)("Display a list of your most recent comments."),icon:Xa,category:"widgets",keywords:[Object(Y.__)("recent comments")],supports:{align:!0,html:!1},edit:ec},rc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(X.createElement)(ee.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(X.createElement)(ee.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(X.createElement)(ee.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(X.createElement)(ee.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),oc=n(40),ac=n.n(oc),cc=n(58),ic={per_page:-1},lc=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=ac()({path:Object(Ie.addQueryArgs)("/wp/v2/categories",ic)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,o=this.state.categoriesList,a=t.displayPostContentRadio,c=t.displayPostContent,i=t.displayPostDate,l=t.postLayout,s=t.columns,u=t.order,b=t.orderBy,m=t.categories,d=t.postsToShow,p=t.excerptLength,h=Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Post content settings")},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Post Content"),checked:c,onChange:function(e){return n({displayPostContent:e})}}),c&&Object(X.createElement)(ue.RadioControl,{label:Object(Y.__)("Show:"),selected:a,options:[{label:Object(Y.__)("Excerpt"),value:"excerpt"},{label:Object(Y.__)("Full Post"),value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),c&&"excerpt"===a&&Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Max number of words in excerpt"),value:p,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Post meta settings")},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display post date"),checked:i,onChange:function(e){return n({displayPostDate:e})}})),Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Sorting and filtering")},Object(X.createElement)(ue.QueryControls,Object(Ce.a)({order:u,orderBy:b},{numberOfItems:d,categoriesList:o,selectedCategoryId:m,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),"grid"===l&&Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Columns"),value:s,onChange:function(e){return n({columns:e})},min:2,max:g?Math.min(6,r.length):6,required:!0}))),g=Array.isArray(r)&&r.length;if(!g)return Object(X.createElement)(X.Fragment,null,h,Object(X.createElement)(ue.Placeholder,{icon:"admin-post",label:Object(Y.__)("Latest Posts")},Array.isArray(r)?Object(Y.__)("No posts found."):Object(X.createElement)(ue.Spinner,null)));var f=r.length>d?r.slice(0,d):r,O=[{icon:"list-view",title:Object(Y.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===l},{icon:"grid-view",title:Object(Y.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===l}],v=Object(cc.__experimentalGetSettings)().formats.date;return Object(X.createElement)(X.Fragment,null,h,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.ToolbarGroup,{controls:O})),Object(X.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===l,"has-dates":i},"columns-".concat(s),"grid"===l))},f.map((function(e,t){var n=e.title.rendered.trim(),r=e.excerpt.rendered;""===e.excerpt.raw&&(r=e.content.raw);var o=document.createElement("div");return o.innerHTML=r,r=o.textContent||o.innerText||"",Object(X.createElement)("li",{key:t},Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(X.createElement)(X.RawHTML,null,n):Object(Y.__)("(no title)")),i&&e.date_gmt&&Object(X.createElement)("time",{dateTime:Object(cc.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(cc.dateI18n)(v,e.date_gmt)),c&&"excerpt"===a&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(X.createElement)(X.RawHTML,{key:"html"},p'+Object(Y.__)("Read more")+"":r.trim().split(" ",p).join(" "))),c&&"full_post"===a&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(X.createElement)(X.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}(X.Component),sc=Object(me.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(Q.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(Q.isUndefined)(e)})))}}))(lc),uc="core/latest-posts",bc={title:Object(Y.__)("Latest Posts"),description:Object(Y.__)("Display a list of your most recent posts."),icon:rc,category:"widgets",keywords:[Object(Y.__)("recent posts")],supports:{align:!0,html:!1},edit:sc},mc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})),dc=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Ordered list settings")},Object(X.createElement)(ue.TextControl,{label:Object(Y.__)("Start Value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t1?r:Object(Kt.replace)(r,/\n/g,Kt.__UNSTABLE_LINE_SEPARATOR)})),Kt.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(J.createBlock)("core/list",{values:Object(Kt.toHTMLString)({value:Object(Kt.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:fc(e).ol,ul:fc(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName};if(t.ordered){var n=e.getAttribute("type");n&&(t.type=n),null!==e.getAttribute("reversed")&&(t.reversed=!0);var r=parseInt(e.getAttribute("start"),10);isNaN(r)||1===r&&!t.reversed||(t.start=r)}return Object(J.createBlock)("core/list",gc({},Object(J.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(K.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(J.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(K.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(J.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(Kt.split)(Object(Kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),Kt.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(Kt.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(J.createBlock)("core/quote",{value:Object(Kt.toHTMLString)({value:Object(Kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var jc={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}}},yc=jc.name,_c={title:Object(Y.__)("List"),description:Object(Y.__)("Create a bulleted or numbered list."),icon:mc,keywords:[Object(Y.__)("bullet list"),Object(Y.__)("ordered list"),Object(Y.__)("numbered list")],supports:{className:!1,__unstablePasteTextInline:!0},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Oc,merge:function(e,t){var n=t.values;return n&&"
  • "!==n?function(e){for(var t=1;t"+Object(Y.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(Y.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Y.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:Qc,save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(Q.includes)(u,qc)){var b=Object($.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||a},b,b)),n={backgroundColor:b?void 0:a}}else a&&(n={borderColor:a});var m=Object($.getColorClassName)("color",c),d=(c||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:n},Object(X.createElement)("blockquote",{className:d,style:p},Object(X.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:s})))},deprecated:$c},ti=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).titleField=Object(X.createRef)(),e.editButton=Object(X.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(Be.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(Be.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===sn.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,r=e.isSaving,o=e.isEditDisabled,a=e.onEdit,c=e.instanceId;return Object(X.createElement)(X.Fragment,null,!t&&!r&&Object(X.createElement)("div",{className:"reusable-block-edit-panel"},Object(X.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(X.createElement)(ue.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:a},Object(Y.__)("Edit"))),(t||r)&&Object(X.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(X.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(c),className:"reusable-block-edit-panel__label"},Object(Y.__)("Name:")),Object(X.createElement)("input",{ref:this.titleField,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(c)}),Object(X.createElement)(ue.Button,{type:"submit",isSecondary:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(Y.__)("Save"))))}}]),t}(X.Component),ni=Object(be.withInstanceId)(ti),ri=function(e){function t(e){var n,r=e.reusableBlock;return Object(Se.a)(this,t),(n=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(Be.a)(n)),n.stopEditing=n.stopEditing.bind(Object(Be.a)(n)),n.setBlocks=n.setBlocks.bind(Object(Be.a)(n)),n.setTitle=n.setTitle.bind(Object(Be.a)(n)),n.save=n.save.bind(Object(Be.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(J.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(J.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(J.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,o=r.blocks;t({title:r.title,content:Object(J.serialize)(o)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.isFetching,o=e.isSaving,a=e.canUpdateBlock,c=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object(X.createElement)(ue.Placeholder,null,Object(X.createElement)(ue.Spinner,null));if(!n)return Object(X.createElement)(ue.Placeholder,null,Object(Y.__)("Block has been deleted or is unavailable."));var b=Object(X.createElement)($.BlockEditorProvider,{settings:c,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(X.createElement)($.WritingFlow,null,Object(X.createElement)($.BlockList,null)));return l||(b=Object(X.createElement)(ue.Disabled,null,b)),Object(X.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(X.createElement)(ni,{isEditing:l,title:null!==s?s:n.title,isSaving:o&&!n.isTemporary,isEditDisabled:!a,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),t}(X.Component),oi=Object(be.compose)([Object(me.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:o(u),isSaving:a(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}})),Object(me.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,a=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(Q.partial)(r,c),onChange:Object(Q.partial)(o,c),onSave:Object(Q.partial)(a,c)}}))])(ri),ai="core/block",ci={title:Object(Y.__)("Reusable Block"),category:"reusable",description:Object(Y.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),supports:{customClassName:!1,html:!1,inserter:!1},edit:oi},ii=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z"})),li=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(Be.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,r=t.columns,o=t.displayAuthor,a=t.displayExcerpt,c=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object(X.createElement)(ue.Placeholder,{icon:"rss",label:"RSS"},Object(X.createElement)("form",{onSubmit:this.onSubmitURL},Object(X.createElement)(ue.TextControl,{placeholder:Object(Y.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object(X.createElement)(ue.Button,{isSecondary:!0,type:"submit"},Object(Y.__)("Use URL"))));var b=[{icon:"edit",title:Object(Y.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(Y.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(Y.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.ToolbarGroup,{controls:b})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("RSS settings")},Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Display excerpt"),checked:a,onChange:this.toggleAttribute("displayExcerpt")}),a&&Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object(X.createElement)(ue.Disabled,null,Object(X.createElement)(Nn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(X.Component),si="core/rss",ui={title:Object(Y.__)("RSS"),description:Object(Y.__)("Display entries from any RSS or Atom feed."),icon:ii,category:"widgets",keywords:[Object(Y.__)("atom"),Object(Y.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:li},bi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z"}));var mi="core/search",di={title:Object(Y.__)("Search"),description:Object(Y.__)("Help visitors find your content."),icon:bi,category:"widgets",keywords:[Object(Y.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=n.label,a=n.placeholder,c=n.buttonText;return Object(X.createElement)("div",{className:t},Object(X.createElement)($.RichText,{className:"wp-block-search__label","aria-label":Object(Y.__)("Label text"),placeholder:Object(Y.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return r({label:e})}}),Object(X.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Y.__)("Optional placeholder text"),placeholder:a?void 0:Object(Y.__)("Optional placeholder…"),value:a,onChange:function(e){return r({placeholder:e.target.value})}}),Object(X.createElement)($.RichText,{className:"wp-block-search__button","aria-label":Object(Y.__)("Button text"),placeholder:Object(Y.__)("Add button text…"),withoutInteractiveFormatting:!0,value:c,onChange:function(e){return r({buttonText:e})}}))}},pi=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object(X.createElement)(ee.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"})),hi=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object($.getColorClassName)("background-color",n),a=re()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object(X.createElement)("div",{className:a,style:c},Object(X.createElement)($.InnerBlocks.Content,null))}}];var gi=Object(be.compose)([Object(me.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}}))])((function(e){var t=e.hasInnerBlocks,n=Object(X.useRef)(),r=Object($.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:n}}),o=r.TextColor,a=r.BackgroundColor,c=r.InspectorControlsColorPanel;return Object(X.createElement)(X.Fragment,null,c,Object(X.createElement)(a,null,Object(X.createElement)(o,null,Object(X.createElement)("div",{className:"wp-block-group",ref:n},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)($.InnerBlocks,{renderAppender:!t&&$.InnerBlocks.ButtonBlockAppender}))))))}));var fi={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Oi=fi.name,vi={title:Object(Y.__)("Group"),icon:pi,description:Object(Y.__)("A block that groups other blocks."),keywords:[Object(Y.__)("container"),Object(Y.__)("wrapper"),Object(Y.__)("row"),Object(Y.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff",customTextColor:"#000000"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Y.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Y.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Y.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Y.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Y.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Y.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(J.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(J.createBlock)("core/group",{align:n},r)}}}]},edit:gi,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,a=t.customTextColor,c=Object($.getColorClassName)("background-color",n),i=Object($.getColorClassName)("color",o),l=re()(c,{"has-text-color":o||a,"has-background":n||r}),s={backgroundColor:c?void 0:r,color:i?void 0:a};return Object(X.createElement)("div",{className:l,style:s},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)($.InnerBlocks.Content,null)))},deprecated:hi},ji=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 13H5v-2h14v2z"})),yi=function(e){var t=e.color,n=e.setColor;return Object(X.createElement)($.InspectorControls,null,Object(X.createElement)($.PanelColorSettings,{title:Object(Y.__)("Color settings"),colorSettings:[{value:t.color,onChange:n,label:Object(Y.__)("Color")}]}))};var _i=Object($.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ue.HorizontalRule,{className:re()(r,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(X.createElement)(yi,{color:t,setColor:n}))}));var ki={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(J.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},wi={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},Ci=wi.name,Ei={title:Object(Y.__)("Separator"),description:Object(Y.__)("Create a break between ideas or sections with a horizontal separator."),icon:ji,keywords:[Object(Y.__)("horizontal-line"),"hr",Object(Y.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Y.__)("Default"),isDefault:!0},{name:"wide",label:Object(Y.__)("Wide Line")},{name:"dots",label:Object(Y.__)("Dots")}],transforms:ki,edit:_i,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,a=Object($.getColorClassName)("background-color",r),c=Object($.getColorClassName)("color",r),i=re()((t={"has-text-color has-background":r||o},Object(Z.a)(t,a,a),Object(Z.a)(t,c,c),t)),l={backgroundColor:a?void 0:o,color:c?void 0:o};return Object(X.createElement)("hr",{className:i,style:l})}},xi=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"}));var Si=n(83),Ti={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Si.removep)(Object(Si.autop)(n))}}},priority:20}]},Pi={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}}},Ni=Pi.name,Bi={title:Object(Y.__)("Shortcode"),description:Object(Y.__)("Insert additional custom elements with a WordPress shortcode."),icon:xi,transforms:Ti,supports:{customClassName:!1,className:!1,html:!1},edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(be.useInstanceId)(e),a="blocks-shortcode-input-".concat(o);return Object(X.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(X.createElement)("label",{htmlFor:a,className:"components-placeholder__label"},Object(X.createElement)(ue.Dashicon,{icon:"shortcode"}),Object(Y.__)("Shortcode")),Object(X.createElement)($.PlainText,{className:"input-control",id:a,value:n.text,placeholder:Object(Y.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.text)}},Ri=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})),Ai=Object(be.compose)([Object(me.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),be.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.instanceId,a=e.onResizeStart,c=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object(X.useState)(i),u=Object(se.a)(s,2),b=u[0],m=u[1];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ue.ResizableBox,{className:re()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:i},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:a,onResizeStop:function(e,t,n,o){c();var a=parseInt(i+o.height,10);r({height:a}),m(a)}}),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Spacer settings")},Object(X.createElement)(ue.BaseControl,{label:Object(Y.__)("Height in pixels"),id:l},Object(X.createElement)("input",{type:"number",id:l,onChange:function(e){var t=parseInt(e.target.value,10);m(t),isNaN(t)?(m(""),t=100):t<20&&(t=20),r({height:t})},value:b,min:"20",step:"10"})))))}));var Ii={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},Mi=Ii.name,zi={title:Object(Y.__)("Spacer"),description:Object(Y.__)("Add white space between blocks and customize its height."),icon:Ri,edit:Ai,save:function(e){var t=e.attributes;return Object(X.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},Li=n(35),Hi=n.n(Li);var Di={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/paragraph",e)}}]},Vi={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},Fi=Vi.name,Ui={title:Object(Y.__)("Subheading (deprecated)"),description:Object(Y.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(X.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ue.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),supports:{inserter:!1,multiple:!1},transforms:Di,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return Hi()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(X.createElement)($.RichText,{tagName:"p",value:a,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:c||Object(Y.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(X.createElement)($.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}},qi=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"})),Gi=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot,c=t.backgroundColor;if(!r.length&&!o.length&&!a.length)return null;var i=Object($.getColorClassName)("background-color",c),l=re()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(X.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(X.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(X.createElement)($.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(X.createElement)("table",{className:l},Object(X.createElement)(s,{type:"head",rows:r}),Object(X.createElement)(s,{type:"body",rows:o}),Object(X.createElement)(s,{type:"foot",rows:a}))}}],Wi=n(275),Ki=n(276),Zi=n(277);function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ji=["align"];function Qi(e,t,n){if(!t)return e;var r=Object(Q.pick)(e,["head","body","foot"]),o=t.sectionName,a=t.rowIndex;return Object(Q.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return a&&a!==o?e:{cells:e.cells.map((function(e,a){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e}))}}))}))}function Yi(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,a=function(e){return tl(e.head)?tl(e.body)?tl(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===o?Object(Q.get)(a,["cells","length"]):o;return c?Object(Z.a)({},n,[].concat(Object(K.a)(e[n].slice(0,r)),[{cells:Object(Q.times)(c,(function(e){var t=Object(Q.get)(a,["cells",e],{});return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.columnIndex;this.setState({selectedCell:null}),o(Xi(r,{columnIndex:a+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.sectionName,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(Q.pick)(e,["head","body","foot"]);return Object(Q.mapValues)(r,(function(e){return tl(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(n,{sectionName:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:ol({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(Y.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(Y.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(Y.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(Y.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(Y.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(Y.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(tl(r))return null;var o="t".concat(n);return Object(X.createElement)(o,null,r.map((function(e,r){var o=e.cells;return Object(X.createElement)("tr",{key:r},o.map((function(e,o){var a=e.content,c=e.tag,i=e.scope,l=e.align,s={sectionName:n,rowIndex:r,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===n?b=Object(Y.__)("Header label"):"foot"===n&&(b=Object(Y.__)("Footer label")),Object(X.createElement)($.RichText,{tagName:c,key:o,className:u,scope:"th"===c?i:void 0,value:a,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.setBackgroundColor,c=t.setAttributes,i=this.state,l=i.initialRowCount,s=i.initialColumnCount,u=n.hasFixedLayout,b=n.caption,m=n.head,d=n.body,p=n.foot,h=tl(m)&&tl(d)&&tl(p),g=this.renderSection;if(h)return Object(X.createElement)(ue.Placeholder,{label:Object(Y.__)("Table"),icon:Object(X.createElement)($.BlockIcon,{icon:qi,showColors:!0}),instructions:Object(Y.__)("Insert a table for sharing data.")},Object(X.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object(X.createElement)(ue.TextControl,{type:"number",label:Object(Y.__)("Column Count"),value:s,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(X.createElement)(ue.TextControl,{type:"number",label:Object(Y.__)("Row Count"),value:l,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(X.createElement)(ue.Button,{className:"wp-block-table__placeholder-button",isSecondary:!0,type:"submit"},Object(Y.__)("Create Table"))));var f=re()(o.class,{"has-fixed-layout":u,"has-background":!!o.color});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ue.ToolbarGroup,null,Object(X.createElement)(ue.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(Y.__)("Edit table"),controls:this.getTableControls()})),Object(X.createElement)($.AlignmentToolbar,{label:Object(Y.__)("Change column alignment"),alignmentControls:cl,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Table settings"),className:"blocks-table-settings"},Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Fixed width table cells"),checked:!!u,onChange:this.onChangeFixedLayout}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Header section"),checked:!(!m||!m.length),onChange:this.onToggleHeaderSection}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Footer section"),checked:!(!p||!p.length),onChange:this.onToggleFooterSection})),Object(X.createElement)($.PanelColorSettings,{title:Object(Y.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:a,label:Object(Y.__)("Background Color"),disableCustomColors:!0,colors:al}]})),Object(X.createElement)("figure",{className:r},Object(X.createElement)("table",{className:f},Object(X.createElement)(g,{name:"head",rows:m}),Object(X.createElement)(g,{name:"body",rows:d}),Object(X.createElement)(g,{name:"foot",rows:p})),Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:b,onChange:function(e){return c({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})}})))}}]),t}(X.Component),sl=il("backgroundColor")(ll);var ul=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},bl={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:ul(e)},tfoot:{allowEmpty:!0,children:ul(e)},tbody:{allowEmpty:!0,children:ul(e)}}}}}}]},ml={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},dl=ml.name,pl={title:Object(Y.__)("Table"),description:Object(Y.__)("Insert a table — perfect for sharing charts and data."),icon:qi,example:{attributes:{head:[{cells:[{content:Object(Y.__)("Version"),tag:"th"},{content:Object(Y.__)("Jazz Musician"),tag:"th"},{content:Object(Y.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Y.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Y.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Y.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Y.__)("Stripes")}],supports:{align:!0},transforms:bl,edit:sl,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot,c=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!a.length)return null;var l=Object($.getColorClassName)("background-color",c),s=re()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!$.RichText.isEmpty(i),b=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(X.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(X.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,a=e.align,c=re()(Object(Z.a)({},"has-text-align-".concat(a),a));return Object(X.createElement)($.RichText.Content,{className:c||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(X.createElement)("figure",null,Object(X.createElement)("table",{className:""===s?void 0:s},Object(X.createElement)(b,{type:"head",rows:r}),Object(X.createElement)(b,{type:"body",rows:o}),Object(X.createElement)(b,{type:"foot",rows:a})),u&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Gi};var hl={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(J.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(J.createBlock)("core/column",{},[Object(J.createBlock)("core/paragraph",{content:t})])})))}}]},gl={name:"core/text-columns",icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}}},fl=gl.name,Ol={supports:{inserter:!1},title:Object(Y.__)("Text Columns (deprecated)"),description:Object(Y.__)("This block is deprecated. Please use the Columns block instead."),transforms:hl,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.width,a=t.content,c=t.columns;return Hi()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,null,Object(X.createElement)(ue.RangeControl,{label:Object(Y.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(X.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(Q.times)(c,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)($.RichText,{tagName:"p",value:Object(Q.get)(a,[e,"children"]),onChange:function(t){n({content:[].concat(Object(K.a)(a.slice(0,e)),[{children:t}],Object(K.a)(a.slice(e+1)))})},placeholder:Object(Y.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(X.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(Q.times)(o,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)($.RichText.Content,{tagName:"p",value:Object(Q.get)(r,[e,"children"])}))})))}},vl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"})),jl=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(X.createElement)($.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var yl={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/paragraph",e)}}]},_l={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}}},kl=_l.name,wl={title:Object(Y.__)("Verse"),description:Object(Y.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:vl,example:{attributes:{content:Object(Y.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Y.__)("poetry"),Object(Y.__)("poem")],transforms:yl,deprecated:jl,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.mergeBlocks,a=t.textAlign,c=t.content;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:a,onChange:function(e){n({textAlign:e})}})),Object(X.createElement)($.RichText,{tagName:"pre",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Y.__)("Write…"),className:re()(r,Object(Z.a)({},"has-text-align-".concat(a),a)),onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(n),n));return Object(X.createElement)($.RichText.Content,{tagName:"pre",className:o,value:r})}},Cl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),El=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,a=n.loop,c=n.muted,i=n.playsInline,l=n.preload,s=function(e){return function(n){t(Object(Z.a)({},e,n))}};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Autoplay"),onChange:s("autoplay"),checked:r,help:function(e){return e?Object(Y.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Loop"),onChange:s("loop"),checked:a}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Muted"),onChange:s("muted"),checked:c}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Playback Controls"),onChange:s("controls"),checked:o}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(X.createElement)(ue.SelectControl,{label:Object(Y.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Y.__)("Auto")},{value:"metadata",label:Object(Y.__)("Metadata")},{value:"none",label:Object(Y.__)("None")}]}))},xl=["video"],Sl=["image"],Tl=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).videoPlayer=Object(X.createRef)(),e.posterImageButton=Object(X.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(Be.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(Be.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(Be.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=e.noticeOperations,o=e.setAttributes,a=t.id,c=t.src,i=void 0===c?"":c;if(!a&&Object(Ae.isBlobURL)(i)){var l=Object(Ae.getBlobByURL)(i);l&&n({filesList:[l],onFileChange:function(e){var t=Object(se.a)(e,1)[0].url;o({src:t})},onError:function(e){r.createErrorNotice(e)},allowedTypes:xl})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=st({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.caption,r=t.controls,o=t.poster,a=t.src,c=this.props,i=c.className,l=c.instanceId,s=c.isSelected,u=c.noticeUI,b=c.attributes,m=c.setAttributes,d=function(e){e&&e.url?m({src:e.url,id:e.id}):m({src:void 0,id:void 0})};if(!a)return Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:Cl}),className:i,onSelect:d,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:xl,value:this.props.attributes,notices:u,onError:this.onUploadError});var p="video-block__poster-image-description-".concat(l);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.MediaReplaceFlow,{mediaURL:a,allowedTypes:xl,accept:"video/*",onSelect:d,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Video settings")},Object(X.createElement)(El,{setAttributes:m,attributes:b}),Object(X.createElement)($.MediaUploadCheck,null,Object(X.createElement)(ue.BaseControl,{className:"editor-video-poster-control"},Object(X.createElement)(ue.BaseControl.VisualLabel,null,Object(Y.__)("Poster Image")),Object(X.createElement)($.MediaUpload,{title:Object(Y.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:Sl,render:function(t){var n=t.open;return Object(X.createElement)(ue.Button,{isSecondary:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":p},e.props.attributes.poster?Object(Y.__)("Replace image"):Object(Y.__)("Select Poster Image"))}}),Object(X.createElement)("p",{id:p,hidden:!0},this.props.attributes.poster?Object(Y.sprintf)(Object(Y.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Y.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(X.createElement)(ue.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(Y.__)("Remove Poster Image")))))),Object(X.createElement)("figure",{className:i},Object(X.createElement)(ue.Disabled,null,Object(X.createElement)("video",{controls:r,poster:o,src:a,ref:this.videoPlayer})),(!$.RichText.isEmpty(n)||s)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:n,onChange:function(e){return m({caption:e})},inlineToolbar:!0})))}}]),t}(X.Component),Pl=Object(be.compose)([Object(me.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ue.withNotices,be.withInstanceId])(Tl);var Nl={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(J.createBlock)("core/video",{src:Object(Ae.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,a=t.webm,c=t.ogv,i=t.flv;return n||r||o||a||c||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Bl={name:"core/video",category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},Rl=Bl.name,Al={title:Object(Y.__)("Video"),description:Object(Y.__)("Embed a video from your media library or upload a new one."),icon:Cl,keywords:[Object(Y.__)("movie")],transforms:Nl,supports:{align:!0},edit:Pl,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(X.createElement)("figure",null,s&&Object(X.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:r}))}},Il=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),Ml=function(e){function t(){var e;return Object(Se.a)(this,t),(e=Object(Pe.a)(this,Object(Ne.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(Be.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(Be.a)(e)),e}return Object(Re.a)(t,e),Object(Te.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(Q.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Y.__)("- Select -"),value:"",disabled:!0},n=Object(Q.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(K.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,r=this.getTaxonomyOptions(),o=Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ue.PanelBody,{title:Object(Y.__)("Tag Cloud settings")},Object(X.createElement)(ue.SelectControl,{label:Object(Y.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object(X.createElement)(ue.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(X.createElement)(X.Fragment,null,o,Object(X.createElement)(Nn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(X.Component),zl=Object(me.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(Ml),Ll="core/tag-cloud",Hl={title:Object(Y.__)("Tag Cloud"),description:Object(Y.__)("A cloud of your most used tags."),icon:Il,category:"widgets",supports:{html:!1,align:!0},edit:zl},Dl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(X.createElement)(ee.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(X.createElement)(ee.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(X.createElement)(ee.Rect,{x:"17",y:"8",width:"2",height:"2"}));function Vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===sn.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Y._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(c,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(c,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Y.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(X.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Y.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(X.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(X.Component);var Gl={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},Wl=Gl.name,Kl={title:Object(Y._x)("Classic","block title"),description:Object(Y.__)("Use the classic WordPress editor."),icon:Dl,supports:{className:!1,customClassName:!1,reusable:!1},edit:ql,save:function(e){var t=e.attributes.content;return Object(X.createElement)(X.RawHTML,null,t)}};n.d(t,"registerCoreBlocks",(function(){return $l})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Jl}));var Zl=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(J.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},r,t)),Object(J.registerBlockType)(r,n)}},$l=function(){[r,o,a,i,x,c,L,l,s,u,b,m,d,p,h,g,f,O].concat(Object(K.a)(Yo),Object(K.a)(Xo),[v,M,window.wp&&window.wp.oldEditor?W:null,j,y,C,E,S,T,k,w,P,N,B,A,I,z,R,H,D,V,G,F,U,q]).forEach(Zl),Object(J.setDefaultBlockName)(_e),window.wp&&window.wp.oldEditor&&Object(J.setFreeformContentHandlerName)(Wl),Object(J.setUnregisteredTypeHandlerName)(Cc),M&&Object(J.setGroupingBlockName)(Oi)},Jl=void 0},44:function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=o=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),o=c(l,i,e),a=c(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,p,h;return n=B(n),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function d(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=(a+c)/2;if(a==c)r=o=0;else{var l=a-c;switch(o=i>.5?l/(2-a-c):l/(a+c),a){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(m(r));return a}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:o,v:a})),a=(a+i)%1;return c}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[M(l(e).toString(16)),M(l(t).toString(16)),M(l(n).toString(16)),M(L(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*R(this._r,255))+"%",g:l(100*R(this._g,255))+"%",b:l(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%)":"rgba("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),a=n/100;return m({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,a=m.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},m.mostReadable=function(e,t,n){var r,o,a,c,i=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,c=n.size;for(var s=0;sl&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var P=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(P);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function I(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return I(e)/255}var D,V,F,U=(V="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",F="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},54:function(e,t){!function(){e.exports=this.wp.viewport}()},58:function(e,t){!function(){e.exports=this.wp.date}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},65:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},66:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},7:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},71:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},73:function(e,t){!function(){e.exports=this.wp.coreData}()},8:function(e,t){!function(){e.exports=this.wp.compose}()},83:function(e,t){!function(){e.exports=this.wp.autop}()},86:function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r