| 8 |
e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,c;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),c=null,a=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var i=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;a=this.getColorFromArray4(i,t)}catch(e){c=e}return this._prepareResult(a,c)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),c="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[c])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[c](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),c=this._getOption(t,"width",e.width),a=this._getOption(t,"height",e.height),i=c,l=a;return"precision"===t.mode?{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}:(c>a?(n=c/a,i=100,l=Math.round(i/n)):(n=a/c,l=100,i=Math.round(l/n)),(i>c||l>a||i<10||l<10)&&(i=c,l=a),{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l+3];r+=e[l]*s,o+=e[l+1]*s,c+=e[l+2]*s,a+=s,i++}return a?[Math.round(r/a),Math.round(o/a),Math.round(c/a),Math.round(a/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l],u=e[l+1],b=e[l+2],m=e[l+3];r+=s*s*m,o+=u*u*m,c+=b*b*m,a+=m,i++}return a?[Math.round(Math.sqrt(r/a)),Math.round(Math.sqrt(o/a)),Math.round(Math.sqrt(c/a)),Math.round(a/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},c=0;c<n;c+=r){var a=e[c],i=e[c+1],l=e[c+2],s=e[c+3],u=Math.round(a/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+a*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[a*s,i*s,l*s,s,1]}var b=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-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,c=this._getDefaultColor(n),a=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),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),c&&e(r,c),n}()}()},24:function(e,t){!function(){e.exports=this.wp.richText}()},250:function(e,t,n){"use strict";var r=n(0),o=n(17),c=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=c},251:function(e,t,n){"use strict";var r=n(0),o=n(17),c=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=c},252:function(e,t,n){"use strict";var r=n(0),o=n(17),c=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=c},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.dom}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31: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}))},32:function(e,t){!function(){e.exports=this.moment}()},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}))},349:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return Pe})),n.d(r,"name",(function(){return Te})),n.d(r,"settings",(function(){return Ne}));var o={};n.r(o),n.d(o,"metadata",(function(){return At})),n.d(o,"name",(function(){return Mt})),n.d(o,"settings",(function(){return It}));var c={};n.r(c),n.d(c,"metadata",(function(){return Wt})),n.d(c,"name",(function(){return Zt})),n.d(c,"settings",(function(){return Kt}));var a={};n.r(a),n.d(a,"metadata",(function(){return ln})),n.d(a,"name",(function(){return sn})),n.d(a,"settings",(function(){return un}));var i={};n.r(i),n.d(i,"metadata",(function(){return Mn})),n.d(i,"name",(function(){return In})),n.d(i,"settings",(function(){return zn}));var l={};n.r(l),n.d(l,"name",(function(){return Vn})),n.d(l,"settings",(function(){return Fn}));var s={};n.r(s),n.d(s,"metadata",(function(){return $n})),n.d(s,"name",(function(){return Qn})),n.d(s,"settings",(function(){return Jn}));var u={};n.r(u),n.d(u,"metadata",(function(){return br})),n.d(u,"name",(function(){return mr})),n.d(u,"settings",(function(){return dr}));var b={};n.r(b),n.d(b,"metadata",(function(){return Or})),n.d(b,"name",(function(){return vr})),n.d(b,"settings",(function(){return jr}));var m={};n.r(m),n.d(m,"name",(function(){return xr})),n.d(m,"settings",(function(){return Sr}));var d={};n.r(d),n.d(d,"name",(function(){return Br})),n.d(d,"settings",(function(){return Rr}));var p={};n.r(p),n.d(p,"metadata",(function(){return Hr})),n.d(p,"name",(function(){return Dr})),n.d(p,"settings",(function(){return Vr}));var h={};n.r(h),n.d(h,"metadata",(function(){return no})),n.d(h,"name",(function(){return ro})),n.d(h,"settings",(function(){return oo}));var g={};n.r(g),n.d(g,"metadata",(function(){return lo})),n.d(g,"name",(function(){return so})),n.d(g,"settings",(function(){return uo}));var f={};n.r(f),n.d(f,"metadata",(function(){return Ro})),n.d(f,"name",(function(){return Ao})),n.d(f,"settings",(function(){return Mo}));var O={};n.r(O),n.d(O,"name",(function(){return Yo})),n.d(O,"settings",(function(){return Xo})),n.d(O,"common",(function(){return ec})),n.d(O,"others",(function(){return tc}));var v={};n.r(v),n.d(v,"metadata",(function(){return ic})),n.d(v,"name",(function(){return lc})),n.d(v,"settings",(function(){return sc}));var j={};n.r(j),n.d(j,"metadata",(function(){return pc})),n.d(j,"name",(function(){return hc})),n.d(j,"settings",(function(){return gc}));var y={};n.r(y),n.d(y,"metadata",(function(){return Nc})),n.d(y,"name",(function(){return Bc})),n.d(y,"settings",(function(){return Rc}));var w={};n.r(w),n.d(w,"justifyLeftIcon",(function(){return Dc})),n.d(w,"justifyCenterIcon",(function(){return Vc})),n.d(w,"justifyRightIcon",(function(){return Fc}));var _={};n.r(_),n.d(_,"name",(function(){return Gc})),n.d(_,"settings",(function(){return qc}));var k={};n.r(k),n.d(k,"metadata",(function(){return Jc})),n.d(k,"name",(function(){return Yc})),n.d(k,"settings",(function(){return Xc}));var C={};n.r(C),n.d(C,"name",(function(){return na})),n.d(C,"settings",(function(){return ra}));var E={};n.r(E),n.d(E,"name",(function(){return ba})),n.d(E,"settings",(function(){return ma}));var x={};n.r(x),n.d(x,"name",(function(){return Ca})),n.d(x,"settings",(function(){return Ea}));var S={};n.r(S),n.d(S,"metadata",(function(){return Ma})),n.d(S,"name",(function(){return Ia})),n.d(S,"settings",(function(){return za}));var P={};n.r(P),n.d(P,"metadata",(function(){return Ha})),n.d(P,"name",(function(){return Da})),n.d(P,"settings",(function(){return Va}));var T={};n.r(T),n.d(T,"metadata",(function(){return qa})),n.d(T,"name",(function(){return Wa})),n.d(T,"settings",(function(){return Za}));var N={};n.r(N),n.d(N,"metadata",(function(){return Qa})),n.d(N,"name",(function(){return Ja})),n.d(N,"settings",(function(){return Ya}));var B={};n.r(B),n.d(B,"metadata",(function(){return ti})),n.d(B,"name",(function(){return ni})),n.d(B,"settings",(function(){return ri}));var R={};n.r(R),n.d(R,"metadata",(function(){return di})),n.d(R,"name",(function(){return pi})),n.d(R,"settings",(function(){return hi}));var A={};n.r(A),n.d(A,"name",(function(){return ji})),n.d(A,"settings",(function(){return yi}));var M={};n.r(M),n.d(M,"name",(function(){return ki})),n.d(M,"settings",(function(){return Ci}));var I={};n.r(I),n.d(I,"name",(function(){return xi})),n.d(I,"settings",(function(){return Si}));var z={};n.r(z),n.d(z,"metadata",(function(){return Bi})),n.d(z,"name",(function(){return Ri})),n.d(z,"settings",(function(){return Ai}));var L={};n.r(L),n.d(L,"metadata",(function(){return Hi})),n.d(L,"name",(function(){return Di})),n.d(L,"settings",(function(){return Vi}));var H={};n.r(H),n.d(H,"metadata",(function(){return qi})),n.d(H,"name",(function(){return Wi})),n.d(H,"settings",(function(){return Zi}));var D={};n.r(D),n.d(D,"metadata",(function(){return Qi})),n.d(D,"name",(function(){return Ji})),n.d(D,"settings",(function(){return Yi}));var V={};n.r(V),n.d(V,"metadata",(function(){return nl})),n.d(V,"name",(function(){return rl})),n.d(V,"settings",(function(){return ol}));var F={};n.r(F),n.d(F,"metadata",(function(){return xl})),n.d(F,"name",(function(){return Sl})),n.d(F,"settings",(function(){return Pl}));var U={};n.r(U),n.d(U,"metadata",(function(){return Nl})),n.d(U,"name",(function(){return Bl})),n.d(U,"settings",(function(){return Rl}));var G={};n.r(G),n.d(G,"metadata",(function(){return zl})),n.d(G,"name",(function(){return Ll})),n.d(G,"settings",(function(){return Hl}));var q={};n.r(q),n.d(q,"metadata",(function(){return Zl})),n.d(q,"name",(function(){return Kl})),n.d(q,"settings",(function(){return $l}));var W={};n.r(W),n.d(W,"name",(function(){return Xl})),n.d(W,"settings",(function(){return es}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return as})),n.d(Z,"name",(function(){return is})),n.d(Z,"settings",(function(){return ls}));var K={};n.r(K),n.d(K,"metadata",(function(){return ps})),n.d(K,"name",(function(){return hs})),n.d(K,"settings",(function(){return gs}));var $={};n.r($),n.d($,"metadata",(function(){return ws})),n.d($,"name",(function(){return _s})),n.d($,"settings",(function(){return ks}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return Bs})),n.d(Q,"name",(function(){return Rs})),n.d(Q,"settings",(function(){return As}));var J={};n.r(J),n.d(J,"metadata",(function(){return Is})),n.d(J,"name",(function(){return zs})),n.d(J,"settings",(function(){return Ls}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return Ds})),n.d(Y,"name",(function(){return Vs})),n.d(Y,"settings",(function(){return Fs}));var X={};n.r(X),n.d(X,"metadata",(function(){return Gs})),n.d(X,"name",(function(){return qs})),n.d(X,"settings",(function(){return Ws}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return Ks})),n.d(ee,"name",(function(){return $s})),n.d(ee,"settings",(function(){return Qs}));var te={};n.r(te),n.d(te,"metadata",(function(){return Ys})),n.d(te,"name",(function(){return Xs})),n.d(te,"settings",(function(){return eu}));var ne=n(18),re=n(5),oe=n(43),ce=n(6),ae=n(9),ie=n(2),le=n(1),se=n(0),ue=n(17),be=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.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"})),me=n(10),de=n.n(me);function pe(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 he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge={className:!1},fe={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}},Oe=[{supports:ge,attributes:fe,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(ce.getColorClassName)("color",i),p=Object(ce.getColorClassName)("background-color",a),h=Object(ce.getFontSizeClass)(u),g=de()((t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},Object(re.a)(t,h,h),Object(re.a)(t,d,d),Object(re.a)(t,p,p),t)),f={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:h?void 0:b,textAlign:r};return Object(se.createElement)(ce.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},{supports:ge,attributes:he({},fe,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(ce.getColorClassName)("color",l),p=Object(ce.getColorClassName)("background-color",i),h=b&&"is-".concat(b,"-text"),g=de()((t={},Object(re.a)(t,"align".concat(r),r),Object(re.a)(t,"has-background",i||s),Object(re.a)(t,"has-drop-cap",a),Object(re.a)(t,h,h),Object(re.a)(t,d,d),Object(re.a)(t,p,p),t)),f={backgroundColor:p?void 0:s,color:d?void 0:u,fontSize:h?void 0:m,textAlign:o};return Object(se.createElement)(ce.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:c})}},{supports:ge,attributes:Object(ie.omit)(he({},fe,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=de()((t={},Object(re.a)(t,"align".concat(r),r),Object(re.a)(t,"has-background",i),Object(re.a)(t,"has-drop-cap",a),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object(se.createElement)("p",{style:b,className:u||void 0},c)},migrate:function(e){return Object(ie.omit)(he({},e,{customFontSize:Object(ie.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}),["fontSize","textColor","backgroundColor"])}},{supports:ge,attributes:he({},fe,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object(se.createElement)(se.RawHTML,null,t.content)},migrate:function(e){return e}}],ve=n(19),je=n(3),ye=n(8),we=n(4);function _e(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 ke=window.getComputedStyle,Ce=window.document.querySelector.bind(document);function Ee(e){var t=e.direction,n=e.setDirection;return Object(we.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[])&&Object(se.createElement)(je.ToolbarGroup,{controls:[{icon:"editor-ltr",title:Object(le._x)("Left to right","editor button"),isActive:"ltr"===t,onClick:function(){n("ltr"===t?void 0:"ltr")}}]})}var xe=Object(ye.compose)([Object(ce.withFontSizes)("fontSize")])((function(e){var t,n,r,o,c,a,i,l=e.attributes,s=e.className,u=e.fontSize,b=e.mergeBlocks,m=e.onReplace,d=e.setAttributes,p=e.setFontSize,h=l.align,g=l.content,f=l.dropCap,O=l.placeholder,v=l.direction,j=Object(se.useRef)(),y=(n=f,r=[u.size],o=Object(se.useState)(),c=Object(ve.a)(o,2),a=c[0],i=c[1],Object(se.useEffect)((function(){var e=Ce("p.has-drop-cap");n&&e?i(ke(e,"first-letter").lineHeight):a&&i(void 0)}),[n,a,i].concat(Object(ne.a)(r))),a),w=Object(ce.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0,fontSize:u.size}],colorDetector:{targetRef:j}},[u.size]),_=w.TextColor,k=w.BackgroundColor,C=w.InspectorControlsColorPanel;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.AlignmentToolbar,{value:h,onChange:function(e){return d({align:e})}}),Object(se.createElement)(Ee,{direction:v,setDirection:function(e){return d({direction:e})}})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Text settings")},Object(se.createElement)(ce.FontSizePicker,{value:u.size,onChange:p}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Drop Cap"),checked:!!f,onChange:function(){return d({dropCap:!f})},help:f?Object(le.__)("Showing large initial letter."):Object(le.__)("Toggle to show a large initial letter.")}))),C,Object(se.createElement)(k,null,Object(se.createElement)(_,null,Object(se.createElement)(ce.RichText,{ref:j,identifier:"content",tagName:"p",className:de()("wp-block-paragraph",s,(t={"has-drop-cap":f},Object(re.a)(t,"has-text-align-".concat(h),h),Object(re.a)(t,u.class,u.class),t)),style:{fontSize:u.size?u.size+"px":void 0,direction:v,minHeight:y},value:g,onChange:function(e){return d({content:e})},onSplit:function(e){return e?Object(ae.createBlock)("core/paragraph",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l,{content:e})):Object(ae.createBlock)("core/paragraph")},onMerge:b,onReplace:m,onRemove:m?function(){return m([])}:void 0,"aria-label":g?Object(le.__)("Paragraph block"):Object(le.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:O||Object(le.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))))}));var Se={from:[{type:"raw",priority:20,selector:"p",schema:function(e){return{p:{children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style"]}}},transform:function(e){var t=Object(ae.getBlockAttributes)("core/paragraph",e.outerHTML),n=(e.style||{}).textAlign;return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(ae.createBlock)("core/paragraph",t)}}]},Pe={name:"core/paragraph",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}}},Te=Pe.name,Ne={title:Object(le.__)("Paragraph"),description:Object(le.__)("Start with the building block of all narrative."),icon:be,keywords:[Object(le.__)("text")],example:{attributes:{content:Object(le.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),customFontSize:28,dropCap:!0}},supports:{className:!1,__unstablePasteTextInline:!0},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content;return Object(ie.isEmpty)(n)?Object(le.__)("Empty"):n}},transforms:Se,deprecated:Oe,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},getEditWrapperProps:function(e){var t=e.width;if(-1!==["wide","full","left","right"].indexOf(t))return{"data-align":t}},edit:xe,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(ce.getColorClassName)("color",i),p=Object(ce.getColorClassName)("background-color",a),h=Object(ce.getFontSizeClass)(u),g=de()((t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},Object(re.a)(t,"has-text-align-".concat(r),r),Object(re.a)(t,h,h),Object(re.a)(t,d,d),Object(re.a)(t,p,p),t)),f={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:h?void 0:b};return Object(se.createElement)(ce.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},Be=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"m19 5v14h-14v-14h14m0-2h-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-2z"}),Object(se.createElement)(ue.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Re=n(11),Ae={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > 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"}},Me=[{attributes:Ae,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=de()((t={},Object(re.a)(t,"align".concat(a),a),Object(re.a)(t,"is-resized",l||s),t)),m=Object(se.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(se.createElement)("figure",{className:b},i?Object(se.createElement)("a",{href:i},m):m,!ce.RichText.isEmpty(c)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:Ae,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(se.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(se.createElement)("figure",{className:c?"align".concat(c):null},a?Object(se.createElement)("a",{href:a},u):u,!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ae,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(se.createElement)("img",Object(Re.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(se.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(se.createElement)("a",{href:a},u):u,!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:o}))}}],Ie=n(13),ze=n(12),Le=n(14),He=n(15),De=n(7),Ve=n(16),Fe=n(41),Ue=n(26),Ge=n(55),qe=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(se.createElement)(je.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"})),We=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(se.createElement)(je.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"})),Ze=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(se.createElement)(je.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(se.createElement)(je.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),Ke=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(se.createElement)(je.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"})),$e={foreground:"#1da1f2",src:Object(se.createElement)(je.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.G,null,Object(se.createElement)(je.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"})))},Qe={foreground:"#ff0000",src:Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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"}))},Je={foreground:"#3b5998",src:Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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"}))},Ye=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.G,null,Object(se.createElement)(je.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"}))),Xe={foreground:"#0073AA",src:Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.G,null,Object(se.createElement)(je.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"})))},et={foreground:"#1db954",src:Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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"}))},tt=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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"})),nt={foreground:"#1ab7ea",src:Object(se.createElement)(je.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.G,null,Object(se.createElement)(je.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"})))},rt=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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"})),ot={foreground:"#35465c",src:Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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"}))},ct=Object(se.createElement)(je.SVG,{viewBox:"0 0 24 24"},Object(se.createElement)(je.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(se.createElement)(je.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(se.createElement)(je.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"})),at=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:$e,keywords:["tweet"],description:Object(le.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Qe,keywords:[Object(le.__)("music"),Object(le.__)("video")],description:Object(le.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Je,description:Object(le.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Ye,keywords:[Object(le.__)("image")],description:Object(le.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Xe,keywords:[Object(le.__)("post"),Object(le.__)("blog")],responsive:!1,description:Object(le.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:We,keywords:[Object(le.__)("music"),Object(le.__)("audio")],description:Object(le.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:et,keywords:[Object(le.__)("music"),Object(le.__)("audio")],description:Object(le.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:tt,keywords:[Object(le.__)("image")],description:Object(le.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:nt,keywords:[Object(le.__)("video")],description:Object(le.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],it=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:Ke,description:Object(le.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:qe,description:Object(le.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Ke,description:Object(le.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:qe,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(ae.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(le.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Ke,description:Object(le.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Ke,description:Object(le.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Ze,description:Object(le.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:qe,description:Object(le.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:qe,description:Object(le.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:qe,description:Object(le.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:We,keywords:[Object(le.__)("music"),Object(le.__)("audio")],description:Object(le.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:qe,description:Object(le.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:rt,description:Object(le.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:We,description:Object(le.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Ke,description:Object(le.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:qe,description:Object(le.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:qe,description:Object(le.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Ze,description:Object(le.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:We,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:qe,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(ae.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(le.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Ke,description:Object(le.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:ot,description:Object(le.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Ke,keywords:[Object(le.__)("video")],description:Object(le.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Ke,description:Object(le.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:ct,keywords:[Object(le.__)("ebook")],responsive:!1,description:Object(le.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],lt=["facebook.com","smugmug.com"],st=[{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"}],ut=n(83),bt=n.n(ut),mt=n(45),dt=n.n(mt);function pt(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 ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},gt=function(e){return Object(ie.includes)(e,'class="wp-embedded-content"')},ft=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,n=[].concat(Object(ne.a)(at),Object(ne.a)(it));t<n.length;t++){var r=n[t];if(ht(e,r.patterns))return r.name}return"core/embed"}(o);if(Object(ae.getBlockType)(c)){if("core-embed/wordpress"!==r&&"core/embed"!==c&&r!==c)return Object(ae.createBlock)(c,{url:o});if(n){var a=n.html;if(gt(a)&&"core-embed/wordpress"!==r)return Object(ae.createBlock)("core-embed/wordpress",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:o},t))}}}};function Ot(e){var t=arguments.length>1&&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<st.length;o++){var c=st[o];r[c.className]=!1}return bt()(t,r)}var a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;var i=a.body.querySelector("iframe");if(i&&i.height&&i.width)for(var l=(i.width/i.height).toFixed(2),s=0;s<st.length;s++){var u,b=st[s];if(l>=b.ratio)return bt()(t,(u={},Object(re.a)(u,b.className,n),Object(re.a)(u,"wp-has-aspect-ratio",n),u))}return t}function vt(e,t){var n=Object(se.createElement)("a",{href:e},e);t(Object(ae.createBlock)("core/paragraph",{content:Object(se.renderToString)(n)}))}var jt=dt()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(ie.kebabCase)(Object(ie.toLower)(""!==s?s:t));return gt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=Ot(l,n,r&&o),c})),yt=["image"];var wt=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(De.a)(e)),e.calculateSize=e.calculateSize.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.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=ie.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,c=(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}),a=c.width,i=c.height;this.setState({width:a,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(se.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(se.Component),_t=Object(ye.withGlobalEvents)({resize:"calculateSize"})(wt);function kt(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 Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et=function(e,t){return!e&&Object(Fe.isBlobURL)(t)},xt=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).updateAlt=e.updateAlt.bind(Object(De.a)(e)),e.updateAlignment=e.updateAlignment.bind(Object(De.a)(e)),e.onFocusCaption=e.onFocusCaption.bind(Object(De.a)(e)),e.onImageClick=e.onImageClick.bind(Object(De.a)(e)),e.onSelectImage=e.onSelectImage.bind(Object(De.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(De.a)(e)),e.updateImage=e.updateImage.bind(Object(De.a)(e)),e.onSetHref=e.onSetHref.bind(Object(De.a)(e)),e.onSetTitle=e.onSetTitle.bind(Object(De.a)(e)),e.getFilename=e.getFilename.bind(Object(De.a)(e)),e.onUploadError=e.onUploadError.bind(Object(De.a)(e)),e.onImageError=e.onImageError.bind(Object(De.a)(e)),e.state={captionFocused:!1},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=n.id,a=n.url,i=void 0===a?"":a;if(Et(c,i)){var l=Object(Fe.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ve.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:yt,onError:function(e){o.createErrorNotice(e)}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,c=this.props.attributes,a=c.id,i=c.url,l=void 0===i?"":i;Et(n,o)&&!Et(a,l)&&Object(Fe.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"onSelectImage",value:function(e){if(e&&e.url){var t,n,r,o=this.props.attributes,c=o.id,a=o.url,i=o.alt,l=o.caption,s=o.linkDestination,u=(t=e,(n=Object(ie.pick)(t,["alt","id","link","caption"])).url=Object(ie.get)(t,["sizes","large","url"])||Object(ie.get)(t,["media_details","sizes","large","source_url"])||t.url,n);Et(c,a)&&(i&&(u=Object(ie.omit)(u,["alt"])),l&&(u=Object(ie.omit)(u,["caption"]))),r=e.id&&e.id===c?{url:a}:{width:void 0,height:void 0,sizeSlug:"large"},"media"===s&&(u.href=e.url),"attachment"===s&&(u.href=e.link),this.props.setAttributes(Ct({},u,{},r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"})}},{key:"onImageError",value:function(e){var t=ft({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){this.props.setAttributes(e)}},{key:"onSetTitle",value:function(e){this.props.setAttributes({title:e})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Ct({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(ie.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{key:"getFilename",value:function(e){var t=Object(Ue.getPath)(e);if(t)return Object(ie.last)(t.split("/"))}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(ie.map)(Object(ie.filter)(t,(function(e){var t=e.slug;return Object(ie.get)(n,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.isLargeViewport,c=t.isSelected,a=t.className,i=t.maxWidth,l=t.noticeUI,s=t.isRTL,u=t.onResizeStart,b=t.onResizeStop,m=n.url,d=n.alt,p=n.caption,h=n.align,g=n.id,f=n.href,O=n.rel,v=n.linkClass,j=n.linkDestination,y=n.title,w=n.width,_=n.height,k=n.linkTarget,C=n.sizeSlug,E=function(e,t){return t&&!e&&!Object(Fe.isBlobURL)(t)}(g,m),x=Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.BlockAlignmentToolbar,{value:h,onChange:this.updateAlignment}),m&&Object(se.createElement)(ce.MediaReplaceFlow,{mediaURL:m,allowedTypes:yt,accept:"image/*",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError}),m&&Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(ce.__experimentalImageURLInputUI,{url:f||"",onChangeUrl:this.onSetHref,linkDestination:j,mediaUrl:this.props.image&&this.props.image.source_url,mediaLink:this.props.image&&this.props.image.link,linkTarget:k,linkClass:v,rel:O}))),S=E?m:void 0,P={title:m?Object(le.__)("Edit image"):Object(le.__)("Image"),instructions:Object(le.__)("Upload an image file, pick one from your media library, or add one with a URL.")},T=!!m&&Object(se.createElement)("img",{alt:Object(le.__)("Edit image"),title:Object(le.__)("Edit image"),className:"edit-image-preview",src:m}),N=Object(se.createElement)(ce.MediaPlaceholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:Be}),className:a,labels:P,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:l,onError:this.onUploadError,accept:"image/*",allowedTypes:yt,value:{id:g,src:S},mediaPreview:T,disableMediaButtons:m});if(!m)return Object(se.createElement)(se.Fragment,null,x,N);var B=de()(a,Object(re.a)({"is-transient":Object(Fe.isBlobURL)(m),"is-resized":!!w||!!_,"is-focused":c},"size-".concat(C),C)),R=-1===["wide","full"].indexOf(h)&&o,A=this.getImageSizeOptions(),M=function(t,n){return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Image settings")},Object(se.createElement)(je.TextareaControl,{label:Object(le.__)("Alt Text (Alternative Text)"),value:d,onChange:e.updateAlt,help:Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(le.__)("Describe the purpose of the image")),Object(le.__)("Leave empty if the image is purely decorative."))}),Object(se.createElement)(ce.__experimentalImageSizeControl,{onChangeImage:e.updateImage,onChange:function(e){return r(e)},slug:C,width:w,height:_,imageSizeOptions:A,isResizable:R,imageWidth:t,imageHeight:n}))),Object(se.createElement)(ce.InspectorAdvancedControls,null,Object(se.createElement)(je.TextControl,{label:Object(le.__)("Title Attribute"),value:y||"",onChange:e.onSetTitle,help:Object(se.createElement)(se.Fragment,null,Object(le.__)("Describe the role of this image on the page."),Object(se.createElement)(je.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(le.__)("(Note: many devices and browsers do not display this text.)")))})))};return Object(se.createElement)(se.Fragment,null,x,Object(se.createElement)("figure",{className:B},Object(se.createElement)(_t,{src:m,dirtynessTrigger:h},(function(t){var n,o=t.imageWidthWithinContainer,c=t.imageHeightWithinContainer,a=t.imageWidth,l=t.imageHeight,p=e.getFilename(m);n=d||(p?Object(le.sprintf)(Object(le.__)("This image has an empty alt attribute; its file name is %s"),p):Object(le.__)("This image has an empty alt attribute"));var g=Object(se.createElement)(se.Fragment,null,Object(se.createElement)("img",{src:m,alt:n,onClick:e.onImageClick,onError:function(){return e.onImageError(m)}}),Object(Fe.isBlobURL)(m)&&Object(se.createElement)(je.Spinner,null));if(!R||!o)return Object(se.createElement)(se.Fragment,null,M(a,l),Object(se.createElement)("div",{style:{width:w,height:_}},g));var f=w||o,O=_||c,v=a/l,j=a<l?20:20*v,y=l<a?20:20/v,k=2.5*i,C=!1,E=!1;return"center"===h?(C=!0,E=!0):s?"left"===h?C=!0:E=!0:"right"===h?E=!0:C=!0,Object(se.createElement)(se.Fragment,null,M(a,l),Object(se.createElement)(je.ResizableBox,{size:{width:w,height:_},minWidth:j,maxWidth:k,minHeight:y,maxHeight:k/v,lockAspectRatio:!0,enable:{top:!1,right:C,bottom:!0,left:E},onResizeStart:u,onResizeStop:function(e,t,n,o){b(),r({width:parseInt(f+o.width,10),height:parseInt(O+o.height,10)})}},g))})),(!ce.RichText.isEmpty(p)||c)&&Object(se.createElement)(ce.RichText,{tagName:"figcaption",placeholder:Object(le.__)("Write caption…"),value:p,unstableOnFocus:this.onFocusCaption,onChange:function(e){return r({caption:e})},isSelected:this.state.captionFocused,inlineToolbar:!0})),N)}}]),t}(se.Component),St=Object(ye.compose)([Object(we.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),Object(we.withSelect)((function(e,t){var n=e("core").getMedia,r=e("core/block-editor").getSettings,o=t.attributes.id,c=t.isSelected,a=r(),i=a.mediaUpload,l=a.imageSizes,s=a.isRTL,u=a.maxWidth;return{image:o&&c?n(o):null,maxWidth:u,isRTL:s,imageSizes:l,mediaUpload:i}})),Object(Ge.withViewportMatch)({isLargeViewport:"medium"}),je.withNotices])(xt);function Pt(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 Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nt(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}var Bt={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Rt={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:function(e){var t=e.phrasingContentSchema;return{figure:{require:["img"],children:Tt({},Bt,{a:{attributes:["href","rel","target"],children:Bt},figcaption:{children:t}})}}},transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),c=o?Number(o[1]):void 0,a=e.querySelector("a"),i=a&&a.href?"custom":void 0,l=a&&a.href?a.href:void 0,s=a&&a.rel?a.rel:void 0,u=a&&a.className?a.className:void 0,b=Object(ae.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:c,linkDestination:i,href:l,rel:s,linkClass:u});return Object(ae.createBlock)("core/image",b)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(ae.createBlock)("core/image",{url:Object(Fe.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;r.innerHTML=n.content;for(var o=r.querySelector("img");o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}},href:{shortcode:function(e,t){return Nt(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return Nt(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return Nt(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},At={name:"core/image",category:"common",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > 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"}}},Mt=At.name,It={title:Object(le.__)("Image"),description:Object(le.__)("Insert an image to make a visual statement."),icon:Be,keywords:["img",Object(le.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(le.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(le._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(le._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(le.__)("Empty")}},transforms:Rt,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:St,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=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(ie.isEmpty)(l)?void 0:l,f=de()((t={},Object(re.a)(t,"align".concat(a),a),Object(re.a)(t,"size-".concat(p),p),Object(re.a)(t,"is-resized",u||b),t)),O=Object(se.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),v=Object(se.createElement)(se.Fragment,null,i?Object(se.createElement)("a",{className:s,href:i,target:d,rel:g},O):O,!ce.RichText.isEmpty(c)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(se.createElement)("div",null,Object(se.createElement)("figure",{className:f},v)):Object(se.createElement)("figure",{className:f},v)},deprecated:Me},zt=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(se.createElement)(ue.Path,{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4"})),Lt={className:!1,anchor:!0},Ht={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"}},Dt=[{attributes:Ht,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(ce.getColorClassName)("color",i),u=de()((t={},Object(re.a)(t,s,s),Object(re.a)(t,"has-text-align-".concat(r),r),t));return Object(se.createElement)(ce.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})},supports:Lt},{supports:Lt,attributes:Ht,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,c=t.textColor,a=t.customTextColor,i="h"+r,l=Object(ce.getColorClassName)("color",c),s=de()(Object(re.a)({},l,l));return Object(se.createElement)(ce.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:a},value:o})}}];function Vt(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(se.createElement)(je.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(se.createElement)(je.Path,{d:o[t]})):null}var Ft=function(e){function t(){return Object(Ie.a)(this,t),Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"createLevelControl",value:function(e,t,n){var r=e===t;return{icon:Object(se.createElement)(Vt,{level:e,isPressed:r}),title:Object(le.sprintf)(Object(le.__)("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,c=t.maxLevel,a=t.selectedLevel,i=t.onChange;return Object(se.createElement)(je.ToolbarGroup,{isCollapsed:r,icon:Object(se.createElement)(Vt,{level:a}),controls:Object(ie.range)(o,c).map((function(t){return e.createLevelControl(t,a,i)}))})}}]),t}(se.Component);function Ut(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 Gt=function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=e.className,a=Object(se.useRef)(),i=Object(ce.__experimentalUseColors)([{name:"textColor",property:"color"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:a}},[]),l=i.TextColor,s=i.InspectorControlsColorPanel,u=t.align,b=t.content,m=t.level,d=t.placeholder,p="h"+m;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(Ft,{minLevel:2,maxLevel:5,selectedLevel:m,onChange:function(e){return n({level:e})}}),Object(se.createElement)(ce.AlignmentToolbar,{value:u,onChange:function(e){n({align:e})}})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Heading settings")},Object(se.createElement)("p",null,Object(le.__)("Level")),Object(se.createElement)(Ft,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:m,onChange:function(e){return n({level:e})}}))),s,Object(se.createElement)(l,null,Object(se.createElement)(ce.RichText,{ref:a,identifier:"content",tagName:p,value:b,onChange:function(e){return n({content:e})},onMerge:r,onSplit:function(e){return e?Object(ae.createBlock)("core/heading",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{content:e})):Object(ae.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},className:de()(c,Object(re.a)({},"has-text-align-".concat(u),u)),placeholder:d||Object(le.__)("Write heading…")})))};var qt={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(ae.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:function(e){var t={children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style"]};return{h1:t,h2:t,h3:t,h4:t,h5:t,h6:t}},transform:function(e){var t,n=Object(ae.getBlockAttributes)("core/heading",e.outerHTML),r=(e.style||{}).textAlign;return n.level=(t=e.nodeName,Number(t.substr(1))),"left"!==r&&"center"!==r&&"right"!==r||(n.align=r),Object(ae.createBlock)("core/heading",n)}}].concat(Object(ne.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(ae.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(ae.createBlock)("core/paragraph",{content:t})}}]},Wt={name:"core/heading",category:"common",attributes:{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"}}},Zt=Wt.name,Kt={title:Object(le.__)("Heading"),description:Object(le.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:zt,keywords:[Object(le.__)("title"),Object(le.__)("subtitle")],supports:{className:!1,anchor:!0,__unstablePasteTextInline:!0},example:{attributes:{content:Object(le.__)("Code is Poetry"),level:2}},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content,r=e.level;return Object(ie.isEmpty)(n)?Object(le.sprintf)(Object(le.__)("Level %s. Empty."),r):Object(le.sprintf)(Object(le.__)("Level %1$s. %2$s"),r,n)}},transforms:qt,deprecated:Dt,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Gt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(ce.getColorClassName)("color",i),u=de()((t={},Object(re.a)(t,s,s),Object(re.a)(t,"has-text-color",i||c),Object(re.a)(t,"has-text-align-".concat(r),r),t));return Object(se.createElement)(ce.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})}},$t=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"}));function Qt(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 Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yt={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},Xt=[{attributes:Yt,save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(se.createElement)("blockquote",{style:{textAlign:n||null}},Object(se.createElement)(ce.RichText.Content,{multiline:!0,value:r}),!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Jt({},Yt,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Jt({},Object(ie.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(se.createElement)("blockquote",{className:2===c?"is-large":"",style:{textAlign:n||null}},Object(se.createElement)(ce.RichText.Content,{multiline:!0,value:r}),!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Jt({},Yt,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(se.createElement)("blockquote",{className:"blocks-quote-style-".concat(c),style:{textAlign:n||null}},Object(se.createElement)(ce.RichText.Content,{multiline:!0,value:r}),!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"footer",value:o}))}}];function en(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 tn=n(20),nn=n(24);function rn(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 on={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(ae.createBlock)("core/quote",{value:Object(nn.toHTMLString)({value:Object(nn.join)(e.map((function(e){var t=e.content;return Object(nn.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(ae.createBlock)("core/quote",{value:"<p>".concat(t,"</p>")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(ae.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(ae.createBlock)("core/quote",{value:"<p>".concat(e,"</p>")})}},{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&&"<p></p>"!==t&&r.push.apply(r,Object(ne.a)(Object(nn.split)(Object(nn.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(ae.createBlock)("core/paragraph",{content:Object(nn.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(ae.createBlock)("core/paragraph",{content:n})),0===r.length?Object(ae.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(tn.a)(e,["value","citation"]);if("<p></p>"===t)return Object(ae.createBlock)("core/heading",{content:n});var o=Object(nn.split)(Object(nn.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(ae.createBlock)("core/heading",{content:Object(nn.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return c;var a=o.slice(1);return[c,Object(ae.createBlock)("core/quote",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{citation:n,value:Object(nn.toHTMLString)({value:a.length?Object(nn.join)(o.slice(1),"\u2028"):Object(nn.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(ae.createBlock)("core/pullquote",{value:t,citation:n})}}]};function cn(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},sn=ln.name,un={title:Object(le.__)("Quote"),description:Object(le.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:$t,keywords:[Object(le.__)("blockquote"),Object(le.__)("cite")],example:{attributes:{value:"<p>"+Object(le.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(le._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(le._x)("Large","block style")}],transforms:on,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=t.align,l=t.value,s=t.citation;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(se.createElement)(je.BlockQuotation,{className:de()(a,Object(re.a)({},"has-text-align-".concat(i),i))},Object(se.createElement)(ce.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&&c([])},placeholder:Object(le.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object(ae.createBlock)("core/quote",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(ae.createBlock)("core/paragraph")}}),(!ce.RichText.isEmpty(s)||r)&&Object(se.createElement)(ce.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(le.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=de()(Object(re.a)({},"has-text-align-".concat(n),n));return Object(se.createElement)("blockquote",{className:c},Object(se.createElement)(ce.RichText.Content,{multiline:!0,value:r}),!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),an({},e,n&&"<p></p>"!==n?{value:e.value+n,citation:r}:{citation:r})},deprecated:Xt},bn=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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 mn(e){return Math.min(3,e.images.length)}var dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(ie.pick)(e,["alt","id","link","caption"]);n.url=Object(ie.get)(e,["sizes",t,"url"])||Object(ie.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(ie.get)(e,["sizes","full","url"])||Object(ie.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};function pn(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 hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gn=[{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",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return hn({},e,{ids:Object(ie.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?mn(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(se.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(se.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(se.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(se.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(se.createElement)("figure",null,t?Object(se.createElement)("a",{href:t},n):n,!ce.RichText.isEmpty(e.caption)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!ce.RichText.isEmpty(a)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},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"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?mn(t):r,c=t.imageCrop,a=t.linkTo;return Object(se.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(se.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(se.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(se.createElement)("figure",null,t?Object(se.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(se.createElement)(ce.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(ie.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return hn({},e,{ids:Object(ie.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?mn(t):r,c=t.imageCrop,a=t.linkTo;return Object(se.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(se.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(se.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(se.createElement)("figure",null,t?Object(se.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(se.createElement)(ce.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?mn(t):r,c=t.align,a=t.imageCrop,i=t.linkTo,l=de()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(se.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(se.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(se.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(se.createElement)("a",{href:t},n):n)})))}}],fn=Object(se.createElement)(ce.BlockIcon,{icon:bn}),On=n(21),vn=Object(se.createElement)(je.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),jn=Object(se.createElement)(je.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),yn=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(De.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(De.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(De.a)(e)),e.bindContainer=e.bindContainer.bind(Object(De.a)(e)),e.state={captionSelected:!1},e}return Object(Ve.a)(t,e),Object(ze.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!==[On.BACKSPACE,On.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,c=t.__unstableMarkNextChangeAsNotPersistent;r&&!o&&(c(),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,c=t.linkTo,a=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(c){case"media":e=n;break;case"attachment":e=a}var g=Object(se.createElement)(se.Fragment,null,Object(se.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(Fe.isBlobURL)(n)&&Object(se.createElement)(je.Spinner,null)),f=de()({"is-selected":s,"is-transient":Object(Fe.isBlobURL)(n)});return Object(se.createElement)("figure",{className:f},e?Object(se.createElement)("a",{href:e},g):g,Object(se.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(se.createElement)(je.Button,{icon:vn,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(le.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(se.createElement)(je.Button,{icon:jn,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(le.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(se.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(se.createElement)(je.Button,{icon:"no-alt",onClick:b,className:"blocks-gallery-item__remove",label:Object(le.__)("Remove image"),disabled:!s})),(s||u)&&Object(se.createElement)(ce.RichText,{tagName:"figcaption",placeholder:s?Object(le.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(se.Component),wn=Object(ye.compose)([Object(we.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})),Object(we.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(yn),_n=function(e){var t,n=e.attributes,r=e.className,o=e.isSelected,c=e.setAttributes,a=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?mn(n):h,f=n.caption,O=n.imageCrop,v=n.images,j=de()("blocks-gallery-caption",{"screen-reader-text":!o&&ce.RichText.isEmpty(f)});return Object(se.createElement)("figure",{className:de()(r,(t={},Object(re.a)(t,"align".concat(p),p),Object(re.a)(t,"columns-".concat(g),g),Object(re.a)(t,"is-cropped",O),t))},Object(se.createElement)("ul",{className:"blocks-gallery-grid"},v.map((function(e,t){var n=Object(le.sprintf)(Object(le.__)("image %1$d of %2$d in gallery"),t+1,v.length);return Object(se.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(se.createElement)(wn,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===v.length,isSelected:o&&a===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(se.createElement)(ce.RichText,{tagName:"figcaption",className:j,placeholder:Object(le.__)("Write gallery caption…"),value:f,unstableOnFocus:d,onChange:function(e){return c({caption:e})},inlineToolbar:!0}))};function kn(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 Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var En=[{value:"attachment",label:Object(le.__)("Attachment Page")},{value:"media",label:Object(le.__)("Media File")},{value:"none",label:Object(le.__)("None")}],xn=["image"],Sn=se.Platform.select({web:Object(le.__)("Drag images, upload new ones or select files from your library."),native:Object(le.__)("ADD MEDIA")}),Pn=se.Platform.select({web:{},native:{separatorType:"fullWidth"}}),Tn=se.Platform.select({web:{},native:{separatorType:"none"}}),Nn=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(De.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(De.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(De.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(De.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(De.a)(e)),e.onMove=e.onMove.bind(Object(De.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(De.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(De.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(De.a)(e)),e.onUploadError=e.onUploadError.bind(Object(De.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(De.a)(e)),e.setAttributes=e.setAttributes.bind(Object(De.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(De.a)(e)),e.getImagesSizeOptions=e.getImagesSizeOptions.bind(Object(De.a)(e)),e.updateImagesSize=e.updateImagesSize.bind(Object(De.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Cn({},e,{ids:Object(ie.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onMove",value:function(e,t){var n=Object(ne.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(ie.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"selectCaption",value:function(e,t,n){var r=Object(ie.find)(t,{id:e.id}),o=r?r.caption:e.caption;if(!n)return o;var c=Object(ie.find)(n,{id:e.id});return c&&c.caption!==e.caption?e.caption:o}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,o=n.images,c=n.sizeSlug,a=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:e.id,caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Cn({},dn(e,c),{caption:t.selectCaption(e,o,a)})})),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(le.__)("Thumbnails are cropped to align."):Object(le.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:[].concat(Object(ne.a)(n.slice(0,e)),[Cn({},n[e],{},t)],Object(ne.a)(n.slice(e+1)))})}},{key:"getImagesSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.resizedImages;return Object(ie.map)(Object(ie.filter)(t,(function(e){var t=e.slug;return Object(ie.some)(n,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"updateImagesSize",value:function(e){var t=this.props,n=t.attributes.images,r=t.resizedImages,o=Object(ie.map)(n,(function(t){if(!t.id)return t;var n=Object(ie.get)(r,[parseInt(t.id,10),e]);return Cn({},t,{},n&&{url:n})}));this.setAttributes({images:o,sizeSlug:e})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if("web"===se.Platform.OS&&r&&r.length>0&&Object(ie.every)(r,(function(e){var t=e.url;return Object(Fe.isBlobURL)(t)}))){var o=Object(ie.map)(r,(function(e){var t=e.url;return Object(Fe.getBlobByURL)(t)}));Object(ie.forEach)(r,(function(e){var t=e.url;return Object(Fe.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,c=t.columns,a=void 0===c?mn(t):c,i=t.imageCrop,l=t.images,s=t.linkTo,u=t.sizeSlug,b=!!l.length,m=b&&Object(ie.some)(l,(function(e){return e.id})),d=Object(se.createElement)(ce.MediaPlaceholder,{addToGallery:m,isAppender:b,className:n,disableMediaButtons:b&&!r,icon:!b&&fn,labels:{title:!b&&Object(le.__)("Gallery"),instructions:!b&&Sn},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:xn,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(ie.isEmpty)(p),g=h?Pn:Tn;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Gallery settings")},l.length>1&&Object(se.createElement)(je.RangeControl,Object(Re.a)({label:Object(le.__)("Columns")},Pn,{value:a,onChange:this.setColumnsNumber,min:1,max:Math.min(8,l.length),required:!0})),Object(se.createElement)(je.ToggleControl,Object(Re.a)({label:Object(le.__)("Crop Images")},Pn,{checked:!!i,onChange:this.toggleImageCrop,help:this.getImageCropHelp})),Object(se.createElement)(je.SelectControl,Object(Re.a)({label:Object(le.__)("Link To")},g,{value:s,onChange:this.setLinkTo,options:En})),h&&Object(se.createElement)(je.SelectControl,Object(Re.a)({label:Object(le.__)("Images Size")},Tn,{value:u,options:p,onChange:this.updateImagesSize})))),o,Object(se.createElement)(_n,Object(Re.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}(se.Component),Bn=Object(ye.compose)([Object(we.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return r&&(l=Object(ie.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(ie.reduce)(a,(function(e,t){var r=Object(ie.get)(n,["sizes",t.slug,"url"]),o=Object(ie.get)(n,["media_details","sizes",t.slug,"source_url"]);return Cn({},e,Object(re.a)({},t.slug,r||o))}),{});return Cn({},e,Object(re.a)({},parseInt(t,10),r))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),je.withNotices,Object(Ge.withViewportMatch)({isNarrow:"< small"})])(Nn);var Rn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},An={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(ie.every)(e,["align",n])?n:void 0,r=Object(ie.every)(e,["sizeSlug",r])?r:void 0;var o=Object(ie.filter)(e,(function(e){return e.url}));return Object(ae.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 Rn(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Rn(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(ie.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(ae.createBlock)("core/gallery",{images:e.map((function(e){return dn({url:Object(Fe.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,c=e.alt,a=e.caption;return Object(ae.createBlock)("core/image",{id:t,url:o,alt:c,caption:a,align:n,sizeSlug:r})})):Object(ae.createBlock)("core/image",{align:n})}}]},Mn={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"}}},In=Mn.name,zn={title:Object(le.__)("Gallery"),description:Object(le.__)("Display multiple images in a rich gallery."),icon:bn,keywords:[Object(le.__)("images"),Object(le.__)("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:An,edit:Bn,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?mn(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(se.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(se.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(se.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(se.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(se.createElement)("figure",null,t?Object(se.createElement)("a",{href:t},n):n,!ce.RichText.isEmpty(e.caption)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!ce.RichText.isEmpty(a)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:gn},Ln=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),Hn=n(59),Dn=n.n(Hn);var Vn="core/archives",Fn={title:Object(le.__)("Archives"),description:Object(le.__)("Display a monthly archive of your posts."),icon:Ln,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(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Archives settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display as Dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Show Post Counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(se.createElement)(je.Disabled,null,Object(se.createElement)(Dn.a,{block:"core/archives",attributes:t})))}},Un=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),Gn=[{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,c=t.preload,a=t.src;return Object(se.createElement)("figure",null,Object(se.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!ce.RichText.isEmpty(r)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:r}))}}],qn=["audio"],Wn=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).toggleAttribute=e.toggleAttribute.bind(Object(De.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(De.a)(e)),e.onUploadError=e.onUploadError.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Fe.isBlobURL)(i)){var l=Object(Fe.getBlobByURL)(i);l&&n({filesList:[l],onFileChange:function(e){var t=Object(ve.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:qn})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(re.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=ft({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(le.__)("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,c=e.src,a=this.props,i=a.setAttributes,l=a.isSelected,s=a.className,u=a.noticeUI,b=function(e){e&&e.url?i({src:e.url,id:e.id}):i({src:void 0,id:void 0})};return c?Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.MediaReplaceFlow,{mediaURL:c,allowedTypes:qn,accept:"audio/*",onSelect:b,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Audio settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:t,help:this.getAutoplayHelp}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:r}),Object(se.createElement)(je.SelectControl,{label:Object(le.__)("Preload"),value:void 0!==o?o:"none",onChange:function(e){return i({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(le.__)("Auto")},{value:"metadata",label:Object(le.__)("Metadata")},{value:"none",label:Object(le.__)("None")}]}))),Object(se.createElement)("figure",{className:s},Object(se.createElement)(je.Disabled,null,Object(se.createElement)("audio",{controls:"controls",src:c})),(!ce.RichText.isEmpty(n)||l)&&Object(se.createElement)(ce.RichText,{tagName:"figcaption",placeholder:Object(le.__)("Write caption…"),value:n,onChange:function(e){return i({caption:e})},inlineToolbar:!0}))):Object(se.createElement)(ce.MediaPlaceholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:Un}),className:s,onSelect:b,onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:qn,value:this.props.attributes,notices:u,onError:this.onUploadError})}}]),t}(se.Component),Zn=Object(ye.compose)([Object(we.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),je.withNotices])(Wn);var Kn={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(ae.createBlock)("core/audio",{src:Object(Fe.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}}}}]},$n={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"}}},Qn=$n.name,Jn={title:Object(le.__)("Audio"),description:Object(le.__)("Embed a simple audio player."),keywords:[Object(le.__)("music"),Object(le.__)("sound"),Object(le.__)("podcast"),Object(le.__)("recording")],icon:Un,transforms:Kn,deprecated:Gn,supports:{align:!0},edit:Zn,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(se.createElement)("figure",null,Object(se.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!ce.RichText.isEmpty(r)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:r}))}},Yn=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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 Xn(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 er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tr=function(e){return Object(ie.omit)(er({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},nr={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},rr=[{attributes:er({},nr,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),er({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.customTextColor,a=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(ce.getColorClassName)("color",s),d=Object(ce.getColorClassName)("background-color",r),p=de()("wp-block-button__link",(t={"has-text-color":s||c},Object(re.a)(t,m,m),Object(re.a)(t,"has-background",r||o),Object(re.a)(t,d,d),t)),h={backgroundColor:d?void 0:o,color:m?void 0:c};return Object(se.createElement)("div",null,Object(se.createElement)(ce.RichText.Content,{tagName:"a",className:p,href:b,title:u,style:h,value:l,target:a,rel:i}))}},{attributes:er({},nr,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.url,o=n.text,c=n.title,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(ce.getColorClassName)("color",i),b=Object(ce.getColorClassName)("background-color",a),m=de()("wp-block-button__link",(t={"has-text-color":i||s},Object(re.a)(t,u,u),Object(re.a)(t,"has-background",a||l),Object(re.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(se.createElement)("div",null,Object(se.createElement)(ce.RichText.Content,{tagName:"a",className:m,href:r,title:c,style:d,value:o}))},migrate:tr},{attributes:er({},nr,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(se.createElement)("div",{className:"align".concat(c)},Object(se.createElement)(ce.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:a,value:r}))},migrate:tr},{attributes:er({},nr,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a=t.color,i=t.textColor;return Object(se.createElement)("div",{className:"align".concat(c),style:{backgroundColor:a}},Object(se.createElement)(ce.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:tr}];function or(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 cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ar=window.getComputedStyle,ir=Object(je.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,c=n&&n.color,a=!c&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:ar(e).backgroundColor,fallbackTextColor:c||!a?void 0:ar(a).color}}));function lr(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=Object(se.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Border settings")},Object(se.createElement)(je.RangeControl,{value:n,label:Object(le.__)("Border Radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:o}))}function sr(e){var t=e.isSelected,n=e.url,r=e.title,o=e.setAttributes,c=e.opensInNewTab,a=e.onToggleOpenInNewTab,i=Object(se.useState)(!1),l=Object(ve.a)(i,2),s=l[0],u=l[1],b=function(){u(!0)},m=s&&Object(se.createElement)(je.Popover,{position:"bottom center",onClose:function(){return u(!1)}},Object(se.createElement)(ce.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:n,title:r,opensInNewTab:c},onChange:function(e){var t=e.title,n=void 0===t?"":t,r=e.url,i=void 0===r?"":r,l=e.opensInNewTab;o({title:Object(ie.escape)(n),url:i}),c!==l&&a(l)}}));return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(je.ToolbarButton,{name:"link",icon:"admin-links",title:Object(le.__)("Link"),shortcut:On.displayShortcut.primary("k"),onClick:b}))),t&&Object(se.createElement)(je.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(re.a)({},On.rawShortcut.primary("k"),b)}),m)}var ur=Object(ye.compose)([Object(ce.withColors)("backgroundColor",{textColor:"color"}),ir])((function(e){var t,n=e.attributes,r=e.backgroundColor,o=e.textColor,c=e.setBackgroundColor,a=e.setTextColor,i=e.fallbackBackgroundColor,l=e.fallbackTextColor,s=e.setAttributes,u=e.className,b=e.isSelected,m=n.borderRadius,d=n.linkTarget,p=n.placeholder,h=n.rel,g=n.text,f=n.title,O=n.url,v=Object(se.useCallback)((function(e){s({rel:e})}),[s]),j=Object(se.useCallback)((function(e){var t=e?"_blank":void 0,n=h;t&&!h?n="noreferrer noopener":t||"noreferrer noopener"!==h||(n=void 0),s({linkTarget:t,rel:n})}),[h,s]),y=Object(ce.__experimentalUseGradient)(),w=y.gradientClass,_=y.gradientValue,k=y.setGradient;return Object(se.createElement)("div",{className:u,title:f},Object(se.createElement)(ce.RichText,{placeholder:p||Object(le.__)("Add text…"),value:g,onChange:function(e){return s({text:e})},withoutInteractiveFormatting:!0,className:de()("wp-block-button__link",(t={"has-background":r.color||_},Object(re.a)(t,r.class,!_&&r.class),Object(re.a)(t,"has-text-color",o.color),Object(re.a)(t,o.class,o.class),Object(re.a)(t,w,w),Object(re.a)(t,"no-border-radius",0===m),t)),style:cr({},!r.color&&_?{background:_}:{backgroundColor:r.color},{color:o.color,borderRadius:m?m+"px":void 0})}),Object(se.createElement)(sr,{title:f,url:O,setAttributes:s,isSelected:b,opensInNewTab:"_blank"===d,onToggleOpenInNewTab:j}),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(ce.__experimentalPanelColorGradientSettings,{title:Object(le.__)("Background & Text Color"),settings:[{colorValue:o.color,onColorChange:a,label:Object(le.__)("Text Color")},{colorValue:r.color,onColorChange:c,gradientValue:_,onGradientChange:k,label:Object(le.__)("Background")}]},Object(se.createElement)(ce.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})),Object(se.createElement)(lr,{borderRadius:m,setAttributes:s}),Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Link settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Open in new tab"),onChange:j,checked:"_blank"===d}),Object(se.createElement)(je.TextControl,{label:Object(le.__)("Link rel"),value:h||"",onChange:v}))))}));var br={name:"core/button",category:"layout",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}},mr=br.name,dr={title:Object(le.__)("Button"),description:Object(le.__)("Prompt visitors to take action with a button-style link."),icon:Yn,keywords:[Object(le.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(le.__)("Call to Action")}},supports:{align:!0,alignWide:!1},parent:["core/buttons"],styles:[{name:"fill",label:Object(le.__)("Fill"),isDefault:!0},{name:"outline",label:Object(le.__)("Outline")}],edit:ur,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,c=n.customBackgroundColor,a=n.customTextColor,i=n.customGradient,l=n.linkTarget,s=n.gradient,u=n.rel,b=n.text,m=n.textColor,d=n.title,p=n.url,h=Object(ce.getColorClassName)("color",m),g=!i&&Object(ce.getColorClassName)("background-color",r),f=Object(ce.__experimentalGetGradientClass)(s),O=de()("wp-block-button__link",(t={"has-text-color":m||a},Object(re.a)(t,h,h),Object(re.a)(t,"has-background",r||c||i||s),Object(re.a)(t,g,g),Object(re.a)(t,"no-border-radius",0===o),Object(re.a)(t,f,f),t)),v={background:i||void 0,backgroundColor:g||i||s?void 0:c,color:h?void 0:a,borderRadius:o?o+"px":void 0};return Object(se.createElement)("div",null,Object(se.createElement)(ce.RichText.Content,{tagName:"a",className:O,href:p,title:d,style:v,value:b,target:l,rel:u}))},deprecated:rr},pr=[mr],hr=[["core/button"]],gr={hasSelectedUI:!1};var fr=function(e){var t=e.className;return Object(se.createElement)("div",{className:t},Object(se.createElement)(ce.InnerBlocks,{allowedBlocks:pr,template:hr,__experimentalUIParts:gr,__experimentalMoverDirection:"horizontal"}))};var Or={name:"core/buttons",category:"layout",attributes:{}},vr=Or.name,jr={title:Object(le.__)("Buttons"),description:Object(le.__)("Prompt visitors to take action with a group of button-style links."),icon:Yn,keywords:[Object(le.__)("link")],supports:{align:!0,alignWide:!1},edit:fr,save:function(){return Object(se.createElement)("div",null,Object(se.createElement)(ce.InnerBlocks.Content,null))}},yr=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})),wr=n(32),_r=n.n(wr);function kr(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 Cr=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).getYearMonth=dt()(e.getYearMonth.bind(Object(De.a)(e)),{maxSize:1}),e.getServerSideAttributes=dt()(e.getServerSideAttributes.bind(Object(De.a)(e)),{maxSize:1}),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=_r()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},this.getYearMonth(t))}},{key:"render",value:function(){return Object(se.createElement)(je.Disabled,null,Object(se.createElement)(Dn.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(se.Component),Er=Object(we.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(Cr),xr="core/calendar",Sr={title:Object(le.__)("Calendar"),description:Object(le.__)("A calendar of your site’s posts."),icon:yr,category:"widgets",keywords:[Object(le.__)("posts"),Object(le.__)("archive")],supports:{align:!0},example:{},edit:Er},Pr=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(se.createElement)(ue.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(se.createElement)(ue.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),Tr=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(De.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(De.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&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(ie.unescape)(e.name).trim():Object(le.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(se.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,c=r.showPostCounts,a=this.getCategories(e.id);return Object(se.createElement)("li",{key:e.id},Object(se.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(se.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(se.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.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(se.createElement)(se.Fragment,null,Object(se.createElement)("label",{htmlFor:o,className:"screen-reader-text"},Object(le.__)("Categories")),Object(se.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,c=r.showPostCounts,a=this.getCategories(e.id);return[Object(se.createElement)("option",{key:e.id},Object(ie.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.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,c=t.showPostCounts,a=Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Categories settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Show Hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Show Post Counts"),checked:c,onChange:this.toggleShowPostCounts})));return n?Object(se.createElement)(se.Fragment,null,a,Object(se.createElement)(je.Placeholder,{icon:"admin-post",label:Object(le.__)("Categories")},Object(se.createElement)(je.Spinner,null))):Object(se.createElement)(se.Fragment,null,a,Object(se.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(se.Component),Nr=Object(ye.compose)(Object(we.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])}})),ye.withInstanceId)(Tr),Br="core/categories",Rr={title:Object(le.__)("Categories"),description:Object(le.__)("Display a list of all categories."),icon:Pr,category:"widgets",supports:{align:!0,html:!1},edit:Nr},Ar=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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 Mr=n(68);function Ir(e){return e.replace(/\[/g,"[")}function zr(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Lr={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(ae.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":{}}}}}}}]},Hr={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},Dr=Hr.name,Vr={title:Object(le.__)("Code"),description:Object(le.__)("Display code snippets that respect your spacing and tabs."),icon:Ar,example:{attributes:{content:Object(le.__)('// 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:Lr,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object(se.createElement)("div",{className:r},Object(se.createElement)(ce.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(le.__)("Write code…"),"aria-label":Object(le.__)("Code")}))},save:function(e){var t,n=e.attributes;return Object(se.createElement)("pre",null,Object(se.createElement)("code",null,(t=n.content,Object(ie.flow)(Mr.escapeEditableHTML,Ir,zr)(t||""))))}},Fr=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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 Ur(e){var t,n=Ur.doc;n||(n=document.implementation.createHTMLDocument(""),Ur.doc=n),n.body.innerHTML=e;var r=!0,o=!1,c=void 0;try{for(var a,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){if(t=a.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}}var Gr=[{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!==Ur(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=Ur(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(ae.createBlock)("core/column",{},e)}));return[Object(ie.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(se.createElement)("div",{className:"has-".concat(t,"-columns")},Object(se.createElement)(ce.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(ie.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=de()("has-".concat(r,"-columns"),Object(re.a)({},"are-vertically-aligned-".concat(n),n));return Object(se.createElement)("div",{className:o},Object(se.createElement)(ce.InnerBlocks.Content,null))}}],qr=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function Wr(e,t){var n=e.attributes.width;return qr(void 0===n?100/t:n)}function Zr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(ie.sumBy)(e,(function(e){return Wr(e,t)}))}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=Wr(n,t);return Object.assign(e,Object(re.a)({},n.clientId,r))}),{})}function $r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=Zr(e,n),o=t-r,c=o/e.length;return Object(ie.mapValues)(Kr(e,n),(function(e){return qr(e+c)}))}function Qr(e,t){return e.map((function(e){return Object(ie.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Jr=["core/column"];var Yr=Object(we.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;c({verticalAlignment:r}),i(o).forEach((function(e){a(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(c),l=i.some((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=qr(100/o),b=$r(i,100-u);i=[].concat(Object(ne.a)(Qr(i,b)),Object(ne.a)(Object(ie.times)(o-r,(function(){return Object(ae.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(ne.a)(i),Object(ne.a)(Object(ie.times)(o-r,(function(){return Object(ae.createBlock)("core/column")}))));else{if(i=Object(ie.dropRight)(i,r-o),l)i=Qr(i,$r(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateColumns,c=e.clientId,a=t.verticalAlignment,i=Object(we.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,l=Object(ce.__experimentalUseColors)([{name:"backgroundColor",className:"has-background"}]),s=l.BackgroundColor,u=l.InspectorControlsColorPanel,b=de()(n,Object(re.a)({},"are-vertically-aligned-".concat(a),a));return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.BlockVerticalAlignmentToolbar,{onChange:r,value:a})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,null,Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Columns"),value:i,onChange:function(e){return o(i,e)},min:2,max:6}))),u,Object(se.createElement)(s,null,Object(se.createElement)("div",{className:b},Object(se.createElement)(ce.InnerBlocks,{templateLock:"all",allowedBlocks:Jr}))))})),Xr=function e(t){return Object(ie.map)(t,(function(t){var n=Object(ve.a)(t,3),r=n[0],o=n[1],c=n[2],a=void 0===c?[]:c;return Object(ae.createBlock)(r,o,e(a))}))},eo=function(e){var t=e.clientId,n=e.name,r=Object(we.useSelect)((function(e){var r=e("core/blocks"),o=r.__experimentalGetBlockVariations,c=r.getBlockType,a=r.__experimentalGetDefaultBlockVariation;return{blockType:c(n),defaultVariation:a(n,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(n,"block")}}),[t,n]),o=r.blockType,c=r.defaultVariation,a=r.hasInnerBlocks,i=r.variations,l=Object(we.useDispatch)("core/block-editor").replaceInnerBlocks;return a?Object(se.createElement)(Yr,e):Object(se.createElement)(ce.__experimentalBlockVariationPicker,{icon:Object(ie.get)(o,["icon","src"]),label:Object(ie.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,Xr(t.innerBlocks))},allowSkip:!0})};var to=[{name:"two-columns-equal",title:Object(le.__)("Two columns; equal split"),icon:Object(se.createElement)(je.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.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(le.__)("Two columns; one-third, two-thirds split"),icon:Object(se.createElement)(je.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.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(le.__)("Two columns; two-thirds, one-third split"),icon:Object(se.createElement)(je.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.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(le.__)("Three columns; equal split"),icon:Object(se.createElement)(je.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.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(le.__)("Three columns; wide center column"),icon:Object(se.createElement)(je.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.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"]}],no={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},ro=no.name,oo={title:Object(le.__)("Columns"),icon:Fr,description:Object(le.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},variations:to,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(le.__)("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(le.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(le.__)("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(le.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Gr,edit:eo,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.backgroundColor,c=n.customBackgroundColor,a=Object(ce.getColorClassName)("background-color",o),i=de()((t={"has-background":o||c},Object(re.a)(t,a,a),Object(re.a)(t,"are-vertically-aligned-".concat(r),r),t)),l={backgroundColor:a?void 0:c};return Object(se.createElement)("div",{className:i||void 0,style:l},Object(se.createElement)(ce.InnerBlocks.Content,null))}},co=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.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 ao(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 io=Object(ye.compose)(Object(we.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(we.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;c({verticalAlignment:r}),a(i(o),{verticalAlignment:null})},updateWidth:function(r){var o=t.clientId,c=e("core/block-editor").updateBlockAttributes,a=n.select("core/block-editor"),i=a.getBlockRootClientId,l=(0,a.getBlocks)(i(o)),s=function(e,t){var n=Object(ie.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}(l,o),u=r+Zr(Object(ie.difference)(l,[Object(ie.find)(l,{clientId:o})].concat(Object(ne.a)(s)))),b=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Kr(l,l.length),Object(re.a)({},o,qr(r)),$r(s,100-u,l.length));Object(ie.forEach)(b,(function(e,t){c(t,{width:e})}))}}})))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateWidth,c=e.hasChildBlocks,a=t.verticalAlignment,i=t.width,l=de()(n,"block-core-columns",Object(re.a)({},"is-vertically-aligned-".concat(a),a));return Object(se.createElement)("div",{className:l},Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.BlockVerticalAlignmentToolbar,{onChange:r,value:a})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Column settings")},Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Percentage width"),value:i||"",onChange:o,min:0,max:100,required:!0,allowReset:!0}))),Object(se.createElement)(ce.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(se.createElement)(ce.InnerBlocks.ButtonBlockAppender,null)}}))}));var lo={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},so=lo.name,uo={title:Object(le.__)("Column"),parent:["core/columns"],icon:co,description:Object(le.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:io,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,c=de()(Object(re.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(se.createElement)("div",{className:c,style:t},Object(se.createElement)(ce.InnerBlocks.Content,null))}},bo=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}));function mo(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function po(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function ho(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 go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fo={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"}},Oo=[{attributes:go({},fo,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(ce.getColorClassName)("background-color",s),d=Object(ce.__experimentalGetGradientClass)(r),p="image"===n?mo(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var h=de()(po(a),m,Object(re.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(se.createElement)("div",{className:h,style:p},u&&(r||o)&&0!==a&&Object(se.createElement)("span",{"aria-hidden":"true",className:de()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===n&&u&&Object(se.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(se.createElement)("div",{className:"wp-block-cover__inner-container"},Object(se.createElement)(ce.InnerBlocks.Content,null)))}},{attributes:go({},fo,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,o=t.customOverlayColor,c=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(ce.getColorClassName)("background-color",l),m="image"===n?mo(u):{};b||(m.backgroundColor=o),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=de()(po(c),b,Object(re.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(r,"-content"),"center"!==r));return Object(se.createElement)("div",{className:d,style:m},"video"===n&&u&&Object(se.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!ce.RichText.isEmpty(s)&&Object(se.createElement)(ce.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(ie.omit)(e,["title","contentAlign"]),[Object(ae.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(le.__)("Write title…")})]]}},{attributes:go({},fo,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(ce.getColorClassName)("background-color",l),b=mo(n);u||(b.backgroundColor=s);var m=de()("wp-block-cover-image",po(c),u,Object(re.a)({"has-background-dim":0!==c,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(se.createElement)("div",{className:m,style:b},!ce.RichText.isEmpty(r)&&Object(se.createElement)(ce.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(ie.omit)(e,["title","contentAlign","align"]),[Object(ae.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(le.__)("Write title…")})]]}},{attributes:go({},fo,{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=mo(n),l=de()("wp-block-cover-image",po(c),{"has-background-dim":0!==c,"has-parallax":o},a?"align".concat(a):null);return Object(se.createElement)("section",{className:l,style:i},Object(se.createElement)(ce.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(ie.omit)(e,["title","contentAlign","align"]),[Object(ae.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(le.__)("Write title…")})]]}}],vo=n(233),jo=n.n(vo),yo=n(52),wo=n.n(yo);function _o(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 ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Co=["image","video"],Eo=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(le.__)("Write title…")}]];function xo(){return xo.fastAverageColor||(xo.fastAverageColor=new jo.a),xo.fastAverageColor}var So=Object(ye.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,r=e.instanceId,o=e.onChange,c=Object(se.useState)(null),a=Object(ve.a)(c,2),i=a[0],l=a[1],s="block-cover-height-input-".concat(r);return Object(se.createElement)(je.BaseControl,{label:Object(le.__)("Minimum height in pixels"),id:s},Object(se.createElement)("input",{type:"number",id:s,onChange:function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t<50)&&void 0!==t?l(e.target.value):(l(null),o(t))},onBlur:function(){null!==i&&l(null)},value:null!==i?i:n,min:50,step:"1"}))})),Po={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function To(e){var t=e.className,n=e.children,r=e.onResizeStart,o=e.onResize,c=e.onResizeStop,a=Object(se.useState)(!1),i=Object(ve.a)(a,2),l=i[0],s=i[1];return Object(se.createElement)(je.ResizableBox,{className:de()(t,{"is-resizing":l}),enable:Po,onResizeStart:function(e,t,n){r(n.clientHeight),o(n.clientHeight)},onResize:function(e,t,n){o(n.clientHeight),l||s(!0)},onResizeStop:function(e,t,n){c(n.clientHeight),s(!1)},minHeight:50},n)}var No=Object(ye.compose)([Object(we.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(ce.withColors)({overlayColor:"background-color"}),je.withNotices,ye.withInstanceId])((function(e){var t,n=e.attributes,r=e.setAttributes,o=e.isSelected,c=e.className,a=e.noticeUI,i=e.overlayColor,l=e.setOverlayColor,s=e.toggleSelection,u=e.noticeOperations,b=n.backgroundType,m=n.dimRatio,d=n.focalPoint,p=n.hasParallax,h=n.minHeight,g=n.url,f=Object(ce.__experimentalUseGradient)(),O=f.gradientClass,v=f.gradientValue,j=f.setGradient,y=function(e){return function(t){if(t&&t.url){var n;if(t.media_type)n="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;n=t.type}e(ko({url:t.url,id:t.id,backgroundType:n},"video"===n?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}(r),w=Object(se.useRef)(),_=function(e){var t=arguments.length>1&&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(se.useState)(!1),c=Object(ve.a)(o,2),a=c[0],i=c[1];return Object(se.useEffect)((function(){e&&t<=50&&r.current&&xo().getColorAsync(r.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&r.current,i]),Object(se.useEffect)((function(){if(t>50||!e){if(!n)return void i(!0);i(wo()(n).isDark())}}),[n,t>50||!e,i]),Object(se.useEffect)((function(){e||n||i(!1)}),[!e&&!n,i]),a}(g,m,i.color,w),k=Object(se.useState)(null),C=Object(ve.a)(k,2),E=C[0],x=C[1],S=u.removeAllNotices,P=u.createErrorNotice,T=ko({},"image"===b?mo(g):{},{backgroundColor:i.color,minHeight:E||h});v&&!g&&(T.background=v),d&&(T.backgroundPosition="".concat(100*d.x,"% ").concat(100*d.y,"%"));var N=!!(g||i.color||v),B=Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,N&&Object(se.createElement)(ce.MediaReplaceFlow,{mediaURL:g,allowedTypes:Co,accept:"image/*,video/*",onSelect:y})),Object(se.createElement)(ce.InspectorControls,null,!!g&&Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Media settings")},"image"===b&&Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Fixed Background"),checked:p,onChange:function(){r(ko({hasParallax:!p},p?{}:{focalPoint:void 0}))}}),"image"===b&&!p&&Object(se.createElement)(je.FocalPointPicker,{label:Object(le.__)("Focal Point Picker"),url:g,value:d,onChange:function(e){return r({focalPoint:e})}}),"video"===b&&Object(se.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:g}),Object(se.createElement)(je.PanelRow,null,Object(se.createElement)(je.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(le.__)("Clear Media")))),N&&Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Dimensions")},Object(se.createElement)(So,{value:E||h,onChange:function(e){return r({minHeight:e})}})),Object(se.createElement)(ce.__experimentalPanelColorGradientSettings,{title:Object(le.__)("Overlay"),initialOpen:!0,settings:[{colorValue:i.color,gradientValue:v,onColorChange:l,onGradientChange:j,label:Object(le.__)("Overlay")}]},!!g&&Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Background Opacity"),value:m,onChange:function(e){return r({dimRatio:e})},min:0,max:100,step:10,required:!0})))));if(!N){var R=Object(se.createElement)(ce.BlockIcon,{icon:bo}),A=Object(le.__)("Cover");return Object(se.createElement)(se.Fragment,null,B,Object(se.createElement)(ce.MediaPlaceholder,{icon:R,className:c,labels:{title:A,instructions:Object(le.__)("Upload an image or video file, or pick one from your media library.")},onSelect:y,accept:"image/*,video/*",allowedTypes:Co,notices:a,onError:function(e){S(),P(e)}},Object(se.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(se.createElement)(ce.ColorPalette,{disableCustomColors:!0,value:i.color,onChange:l,clearable:!1}))))}var M=de()(c,po(m),(t={"is-dark-theme":_,"has-background-dim":0!==m,"has-parallax":p},Object(re.a)(t,i.class,i.class),Object(re.a)(t,"has-background-gradient",v),Object(re.a)(t,O,!g&&O),t));return Object(se.createElement)(se.Fragment,null,B,Object(se.createElement)(To,{className:de()("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(se.createElement)("div",{"data-url":g,style:T,className:M},"image"===b&&Object(se.createElement)("img",{ref:w,"aria-hidden":!0,alt:"",style:{display:"none"},src:g}),g&&v&&0!==m&&Object(se.createElement)("span",{"aria-hidden":"true",className:de()("wp-block-cover__gradient-background",O),style:{background:v}}),"video"===b&&Object(se.createElement)("video",{ref:w,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:g}),Object(se.createElement)("div",{className:"wp-block-cover__inner-container"},Object(se.createElement)(ce.InnerBlocks,{template:Eo})))))}));var Bo={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(ae.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(ae.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return n?"image"===t:!(r||o||c||a)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(ae.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,c=e.gradient,a=e.customGradient;return n?"video"===t:!(r||o||c||a)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(ae.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},Ro={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"}}},Ao=Ro.name,Mo={title:Object(le.__)("Cover"),description:Object(le.__)("Add an image or video with a text overlay — great for headers."),icon:bo,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(le.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Bo,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(ce.getColorClassName)("background-color",s),d=Object(ce.__experimentalGetGradientClass)(r),p="image"===n?mo(u):{};m||(p.backgroundColor=c),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=de()(po(a),m,Object(re.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(se.createElement)("div",{className:h,style:p},u&&(r||o)&&0!==a&&Object(se.createElement)("span",{"aria-hidden":"true",className:de()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===n&&u&&Object(se.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(se.createElement)("div",{className:"wp-block-cover__inner-container"},Object(se.createElement)(ce.InnerBlocks.Content,null)))},edit:No,deprecated:Oo},Io=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,null,n&&Object(se.createElement)(je.Button,{className:"components-toolbar__control",label:Object(le.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Media settings"),className:"blocks-responsive"},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},zo=function(){return Object(se.createElement)("div",{className:"wp-block-embed is-loading"},Object(se.createElement)(je.Spinner,null),Object(se.createElement)("p",null,Object(le.__)("Embedding…")))},Lo=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(se.createElement)(je.Placeholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(le.__)("Paste a link to the content you want to display on your site.")},Object(se.createElement)("form",{onSubmit:o},Object(se.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(le.__)("Enter URL to embed here…"),onChange:c}),Object(se.createElement)(je.Button,{isSecondary:!0,type:"submit"},Object(le._x)("Embed","button label"))),Object(se.createElement)("div",{className:"components-placeholder__learn-more"},Object(se.createElement)(je.ExternalLink,{href:Object(le.__)("https://wordpress.org/support/article/embeds/")},Object(le.__)("Learn more about embeds"))),a&&Object(se.createElement)("div",{className:"components-placeholder__error"},Object(se.createElement)("div",{className:"components-placeholder__instructions"},Object(le.__)("Sorry, this content could not be embedded.")),Object(se.createElement)(je.Button,{isSecondary:!0,onClick:l},Object(le._x)("Try again","button label"))," ",Object(se.createElement)(je.Button,{isSecondary:!0,onClick:i},Object(le._x)("Convert to link","button label"))))},Ho=n(107),Do=window.FocusEvent,Vo=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(De.a)(e)),e.node=Object(se.createRef)(),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Do("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(se.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(se.Component),Fo=Object(ye.withGlobalEvents)({blur:"checkFocus"})(Vo),Uo=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(De.a)(e)),e.state={interactive:!1},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.preview,c=r.url,a=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"===a?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,n=Object(se.createElement)("p",null,Object(se.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(se.renderToString)(n)):o.html,g=Object(Ho.parse)(c).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),O=Object(ie.includes)(lt,f),v=Object(le.sprintf)(Object(le.__)("Embedded content from %s"),f),j=bt()(a,u,"wp-block-embed__wrapper"),y="wp-embed"===a?Object(se.createElement)(Fo,{html:h}):Object(se.createElement)("div",{className:"wp-block-embed__wrapper"},Object(se.createElement)(je.SandBox,{html:h,scripts:d,title:v,type:j,onFocus:this.hideOverlay}),!p&&Object(se.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(se.createElement)("figure",{className:bt()(u,"wp-block-embed",{"is-type-video":"video"===a})},O?Object(se.createElement)(je.Placeholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:b,showColors:!0}),label:m},Object(se.createElement)("p",{className:"components-placeholder__error"},Object(se.createElement)("a",{href:c},c)),Object(se.createElement)("p",{className:"components-placeholder__error"},Object(le.sprintf)(Object(le.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!ce.RichText.isEmpty(i)||s)&&Object(se.createElement)(ce.RichText,{tagName:"figcaption",placeholder:Object(le.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(se.Component);function Go(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 qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ko={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function $o(e){var t=e.title,n=e.description,r=e.icon,o=e.category,c=void 0===o?"embed":o,a=e.transforms,i=e.keywords,l=void 0===i?[]:i,s=e.supports,u=void 0===s?{}:s,b=e.responsive,m=void 0===b||b,d=n||Object(le.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),p=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function o(){var e;return Object(Ie.a)(this,o),(e=Object(Le.a)(this,Object(He.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(De.a)(e)),e.setUrl=e.setUrl.bind(Object(De.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(De.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(De.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(De.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(De.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(De.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(Ve.a)(o,r),Object(ze.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=ft(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,c=r.allowResponsive;return qo({},this.props.attributes,{},jt(t,e,o,n,c))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(le.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(le.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,c=!t;this.props.setAttributes({allowResponsive:c,className:Ot(o,r,n&&c)})}},{key:"render",value:function(){var r=this,o=this.state,c=o.url,a=o.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,p=i.tryAgain;if(l)return Object(se.createElement)(zo,null);var h=Object(le.sprintf)(Object(le.__)("%s URL"),e);if(!b||m||a)return Object(se.createElement)(Lo,{icon:t,label:h,onSubmit:this.setUrl,value:c,cannotEmbed:m,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return vt(c,r.props.onReplace)},tryAgain:p});var g=this.getMergedAttributes(),f=g.caption,O=g.type,v=g.allowResponsive,j=de()(g.className,this.props.className);return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(Io,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:n,allowResponsive:v,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(se.createElement)(Uo,{preview:b,className:j,url:c,type:O,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:h}))}}]),o}(se.Component))}(t,r,m);return{title:t,description:d,icon:r,category:c,keywords:l,attributes:Ko,supports:Zo({align:!0},u),transforms:a,edit:Object(ye.compose)(Object(we.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,c=r.isPreviewEmbedFallback,a=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&c(n),u=void 0!==n&&a(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,p=!!l&&!m&&!d,h=void 0!==n&&(!p||s);return{preview:p?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:h}})),Object(we.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(p),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,c=n.type,a=n.providerNameSlug;if(!r)return null;var i=bt()("wp-block-embed",(t={},Object(re.a)(t,"is-type-".concat(c),c),Object(re.a)(t,"is-provider-".concat(a),a),t));return Object(se.createElement)("figure",{className:i},Object(se.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:Ko,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,c=n.type,a=n.providerNameSlug;if(!r)return null;var i=bt()("wp-block-embed",(t={},Object(re.a)(t,"is-type-".concat(c),c),Object(re.a)(t,"is-provider-".concat(a),a),t));return Object(se.createElement)("figure",{className:i},"\n".concat(r,"\n"),!ce.RichText.isEmpty(o)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:o}))}}]}}function Qo(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yo="core/embed",Xo=$o({title:Object(le._x)("Embed","block title"),description:Object(le.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:qe,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(ae.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),ec=at.map((function(e){return Jo({},e,{settings:$o(e.settings)})})),tc=it.map((function(e){return Jo({},e,{settings:$o(e.settings)})})),nc=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function rc(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,c=e.changeOpenInNewWindow,a=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(le.__)("URL")}];return s&&(u=[{value:i,label:Object(le.__)("Media File")},{value:s,label:Object(le.__)("Attachment page")}]),Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Text link settings")},Object(se.createElement)(je.SelectControl,{label:Object(le.__)("Link To"),value:l,options:u,onChange:o}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Open in new tab"),checked:n,onChange:c})),Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Download button settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Show download button"),checked:r,onChange:a}))))}var oc=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(De.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(De.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(De.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(De.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(De.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(De.a)(e)),e.onUploadError=e.onUploadError.bind(Object(De.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=t.setAttributes,a=n.downloadButtonText,i=n.href;Object(Fe.isBlobURL)(i)&&(r({filesList:[Object(Fe.getBlobByURL)(i)],onFileChange:function(t){var n=Object(ve.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),Object(Fe.revokeBlobURL)(i));void 0===a&&c({downloadButtonText:Object(le._x)("Download","button label")})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,o=t.attributes,c=t.setAttributes,a=t.noticeUI,i=t.media,l=o.fileName,s=o.href,u=o.textLinkHref,b=o.textLinkTarget,m=o.showDownloadButton,d=o.downloadButtonText,p=this.state,h=p.hasError,g=p.showCopyConfirmation,f=i&&i.link;if(!s||h)return Object(se.createElement)(ce.MediaPlaceholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:nc}),labels:{title:Object(le.__)("File"),instructions:Object(le.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:a,onError:this.onUploadError,accept:"*"});var O=de()(n,{"is-transient":Object(Fe.isBlobURL)(s)});return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(rc,Object(Re.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:f}},{openInNewWindow:!!b,showDownloadButton:m,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.MediaReplaceFlow,{mediaURL:s,accept:"*",onSelect:this.onSelectFile,onError:this.onUploadError})),Object(se.createElement)(je.Animate,{type:Object(Fe.isBlobURL)(s)?"loading":null},(function(t){var n=t.className;return Object(se.createElement)("div",{className:de()(O,n)},Object(se.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(se.createElement)("div",{className:"wp-block-file__textlink"},Object(se.createElement)(ce.RichText,{tagName:"div",value:l,placeholder:Object(le.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return c({fileName:e})}})),m&&Object(se.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(se.createElement)(ce.RichText,{tagName:"div",className:"wp-block-file__button",value:d,withoutInteractiveFormatting:!0,placeholder:Object(le.__)("Add text…"),onChange:function(e){return c({downloadButtonText:e})}}))),r&&Object(se.createElement)(je.ClipboardButton,{isSecondary:!0,text:s,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(Fe.isBlobURL)(s)},g?Object(le.__)("Copied!"):Object(le.__)("Copy URL")))})))}}]),t}(se.Component),cc=Object(ye.compose)([Object(we.withSelect)((function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().mediaUpload,o=t.attributes.id;return{media:void 0===o?void 0:n(o),mediaUpload:r}})),je.withNotices])(oc);var ac={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var n=Object(Fe.createBlobURL)(e);t.push(Object(ae.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(ae.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(ae.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(ae.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(we.select)("core").getMedia)(t);return!!n&&Object(ie.includes)(n.mime_type,"audio")},transform:function(e){return Object(ae.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(we.select)("core").getMedia)(t);return!!n&&Object(ie.includes)(n.mime_type,"video")},transform:function(e){return Object(ae.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(we.select)("core").getMedia)(t);return!!n&&Object(ie.includes)(n.mime_type,"image")},transform:function(e){return Object(ae.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},ic={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]"}}},lc=ic.name,sc={title:Object(le.__)("File"),description:Object(le.__)("Add a link to a downloadable file."),icon:nc,keywords:[Object(le.__)("document"),Object(le.__)("pdf"),Object(le.__)("download")],supports:{align:!0},transforms:ac,edit:cc,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(se.createElement)("div",null,!ce.RichText.isEmpty(r)&&Object(se.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(se.createElement)(ce.RichText.Content,{value:r})),a&&Object(se.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(se.createElement)(ce.RichText.Content,{value:i})))}},uc=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),bc=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(De.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.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(ne.a)(Object(ce.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,c=r.styles;return Object(se.createElement)("div",{className:"wp-block-html"},Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(je.Button,{className:"components-tab-button",isPressed:!o,onClick:this.switchToHTML},Object(se.createElement)("span",null,"HTML")),Object(se.createElement)(je.Button,{className:"components-tab-button",isPressed:o,onClick:this.switchToPreview},Object(se.createElement)("span",null,Object(le.__)("Preview"))))),Object(se.createElement)(je.Disabled.Consumer,null,(function(e){return o||e?Object(se.createElement)(je.SandBox,{html:t.content,styles:c}):Object(se.createElement)(ce.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(le.__)("Write HTML…"),"aria-label":Object(le.__)("HTML")})})))}}]),t}(se.Component),mc=Object(we.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(bc);var dc={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}}}}}}]},pc={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},hc=pc.name,gc={title:Object(le.__)("Custom HTML"),description:Object(le.__)("Add custom HTML code and preview it as you edit."),icon:uc,keywords:[Object(le.__)("embed")],example:{attributes:{content:"<marquee>"+Object(le.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},supports:{customClassName:!1,className:!1,html:!1},transforms:dc,edit:mc,save:function(e){var t=e.attributes;return Object(se.createElement)(se.RawHTML,null,t.content)}},fc=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),Oc=Object(se.createElement)(je.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.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(se.createElement)(je.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(se.createElement)(je.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),vc=["image","video"];function jc(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var yc=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.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(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.MediaReplaceFlow,{mediaURL:n,allowedTypes:vc,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,c=e.focalPoint,a=o?jc(n,c):{};return Object(se.createElement)(se.Fragment,null,this.renderToolbarEditButton(),Object(se.createElement)("figure",{className:r,style:a},Object(se.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(se.createElement)(se.Fragment,null,this.renderToolbarEditButton(),Object(se.createElement)("figure",{className:n},Object(se.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(se.createElement)(ce.MediaPlaceholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:Oc}),labels:{title:Object(le.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:vc,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,c=e.commitWidthChange,a=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(se.createElement)(je.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){a(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),c(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(se.Component),wc=Object(ye.compose)([Object(we.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),je.withNotices])(yc);function _c(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 kc={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}},Cc=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_c(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},kc,{verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,c=r.customBackgroundColor,a=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d=r.verticalAlignment,p=r.imageFill,h=r.focalPoint,g={image:function(){return Object(se.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(se.createElement)("video",{controls:!0,src:u})}},f=Object(ce.getColorClassName)("background-color",o),O=de()((t={"has-media-on-the-right":"right"===l},Object(re.a)(t,f,f),Object(re.a)(t,"is-stacked-on-mobile",a),Object(re.a)(t,"is-vertically-aligned-".concat(d),d),Object(re.a)(t,"is-image-fill",p),t)),v=p?jc(u,h):{};50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:c,gridTemplateColumns:n};return Object(se.createElement)("div",{className:O,style:j},Object(se.createElement)("figure",{className:"wp-block-media-text__media",style:v},(g[s]||ie.noop)()),Object(se.createElement)("div",{className:"wp-block-media-text__content"},Object(se.createElement)(ce.InnerBlocks.Content,null)))}},{attributes:kc,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,c=r.customBackgroundColor,a=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object(se.createElement)("img",{src:u,alt:i})},video:function(){return Object(se.createElement)("video",{controls:!0,src:u})}},d=Object(ce.getColorClassName)("background-color",o),p=de()((t={"has-media-on-the-right":"right"===l},Object(re.a)(t,d,d),Object(re.a)(t,"is-stacked-on-mobile",a),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var h={backgroundColor:d?void 0:c,gridTemplateColumns:n};return Object(se.createElement)("div",{className:p,style:h},Object(se.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||ie.noop)()),Object(se.createElement)("div",{className:"wp-block-media-text__content"},Object(se.createElement)(ce.InnerBlocks.Content,null)))}}],Ec=[["core/paragraph",{fontSize:"large",placeholder:Object(le._x)("Content…","content placeholder")}]],xc=function(e){return Math.max(15,Math.min(e,85))},Sc=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(De.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(De.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(De.a)(e)),e.state={mediaWidth:null},e.onSetHref=e.onSetHref.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes,o=this.props.attributes,c=o.linkDestination,a=o.href;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(ie.get)(e,["sizes","large","url"])||Object(ie.get)(e,["media_details","sizes","large","source_url"]));var i=a;"media"===c&&(i=e.url),"attachment"===c&&(i=e.link),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,mediaLink:e.link||void 0,href:i,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:xc(e)})}},{key:"onSetHref",value:function(e){this.props.setAttributes(e)}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:xc(e)}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,c=e.mediaUrl,a=e.mediaWidth,i=e.imageFill,l=e.focalPoint;return Object(se.createElement)(wc,Object(Re.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:c,mediaPosition:r,mediaWidth:a,imageFill:i,focalPoint:l}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,c=t.isSelected,a=t.setAttributes,i=t.setBackgroundColor,l=t.image,s=n.isStackedOnMobile,u=n.mediaAlt,b=n.mediaPosition,m=n.mediaType,d=n.mediaWidth,p=n.verticalAlignment,h=n.mediaUrl,g=n.imageFill,f=n.focalPoint,O=n.rel,v=n.href,j=n.linkTarget,y=n.linkClass,w=n.linkDestination,_=this.state.mediaWidth,k=de()(r,(e={"has-media-on-the-right":"right"===b,"is-selected":c,"has-background":o.class||o.color},Object(re.a)(e,o.class,o.class),Object(re.a)(e,"is-stacked-on-mobile",s),Object(re.a)(e,"is-vertically-aligned-".concat(p),p),Object(re.a)(e,"is-image-fill",g),e)),C="".concat(_||d,"%"),E="right"===b?"1fr ".concat(C):"".concat(C," 1fr"),x={gridTemplateColumns:E,msGridColumns:E,backgroundColor:o.color},S=[{value:o.color,onChange:i,label:Object(le.__)("Background Color")}],P=[{icon:"align-pull-left",title:Object(le.__)("Show media on left"),isActive:"left"===b,onClick:function(){return a({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(le.__)("Show media on right"),isActive:"right"===b,onClick:function(){return a({mediaPosition:"right"})}}],T=Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Media & Text settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Stack on mobile"),checked:s,onChange:function(){return a({isStackedOnMobile:!s})}}),"image"===m&&Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Crop image to fill entire column"),checked:g,onChange:function(){return a({imageFill:!g})}}),g&&Object(se.createElement)(je.FocalPointPicker,{label:Object(le.__)("Focal Point Picker"),url:h,value:f,onChange:function(e){return a({focalPoint:e})}}),"image"===m&&Object(se.createElement)(je.TextareaControl,{label:Object(le.__)("Alt Text (Alternative Text)"),value:u,onChange:function(e){a({mediaAlt:e})},help:Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(le.__)("Describe the purpose of the image")),Object(le.__)("Leave empty if the image is purely decorative."))}));return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,T,Object(se.createElement)(ce.PanelColorSettings,{title:Object(le.__)("Color settings"),initialOpen:!1,colorSettings:S})),Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,{controls:P}),Object(se.createElement)(ce.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e})},value:p}),"image"===m&&Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(ce.__experimentalImageURLInputUI,{url:v||"",onChangeUrl:this.onSetHref,linkDestination:w,mediaType:m,mediaUrl:l&&l.source_url,mediaLink:l&&l.link,linkTarget:j,linkClass:y,rel:O}))),Object(se.createElement)("div",{className:k,style:x},this.renderMediaArea(),Object(se.createElement)(ce.InnerBlocks,{template:Ec,templateInsertUpdatesSelection:!1})))}}]),t}(se.Component),Pc=Object(ye.compose)([Object(ce.withColors)("backgroundColor"),Object(we.withSelect)((function(e,t){var n=e("core").getMedia,r=t.attributes.mediaId,o=t.isSelected;return{image:r&&o?n(r):null}}))])(Sc);var Tc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(ae.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(ae.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(ae.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(ae.createBlock)("core/video",{id:t,src:n})}}]},Nc={name:"core/media-text",category:"layout",attributes:{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"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},Bc=Nc.name,Rc={title:Object(le.__)("Media & Text"),description:Object(le.__)("Set media and words side-by-side for a richer layout."),icon:fc,keywords:[Object(le.__)("image"),Object(le.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(le.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(le.__)("— Kobayashi Issa (一茶)")}}]},transforms:Tc,edit:Pc,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.isStackedOnMobile,a=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(ie.isEmpty)(O)?void 0:O,j=Object(se.createElement)("img",{src:s,alt:a,className:b&&"image"===l?"wp-image-".concat(b):null});g&&(j=Object(se.createElement)("a",{className:h,href:g,target:f,rel:v},j));var y,w={image:function(){return j},video:function(){return Object(se.createElement)("video",{controls:!0,src:s})}},_=Object(ce.getColorClassName)("background-color",r),k=de()((t={"has-media-on-the-right":"right"===i,"has-background":_||o},Object(re.a)(t,_,_),Object(re.a)(t,"is-stacked-on-mobile",c),Object(re.a)(t,"is-vertically-aligned-".concat(m),m),Object(re.a)(t,"is-image-fill",d),t)),C=d?jc(s,p):{};50!==u&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var E={backgroundColor:_?void 0:o,gridTemplateColumns:y};return Object(se.createElement)("div",{className:k,style:E},Object(se.createElement)("figure",{className:"wp-block-media-text__media",style:C},(w[l]||ie.noop)()),Object(se.createElement)("div",{className:"wp-block-media-text__content"},Object(se.createElement)(ce.InnerBlocks.Content,null)))},deprecated:Cc},Ac=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(se.createElement)(ue.Path,{d:"M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z"}));function Mc(e){var t=e.clientId,n=Object(we.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,c=Object(we.useDispatch)("core/block-editor").selectBlock;return Object(se.createElement)(ce.__experimentalBlockNavigationList,{blocks:[r],selectedBlockClientId:o,selectBlock:c,showNestedBlocks:!0,showAppender:!0})}var Ic=Object(se.createElement)(je.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(se.createElement)(je.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var zc=function(){return Object(se.createElement)(je.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(se.createElement)(je.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"}))},Lc=function(e){var t=e.style,n=e.className;return Object(se.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(se.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(se.createElement)(zc,null)))},Hc=function(e){var t,n,r,o=e.children,c=Object(tn.a)(e,["children"]);return Object(se.createElement)(je.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(je.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(le.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==On.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(se.createElement)(r,null,Object(se.createElement)(n,null,Object(se.createElement)(Lc,null)))}))}),renderContent:function(){return o}})},Dc=Object(se.createElement)(je.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.Path,{d:"M11 16v-3h10v-2H11V8l-4 4 4 4zM5 4H3v16h2V4z"})),Vc=Object(se.createElement)(je.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.Path,{d:"M5 8v3H1v2h4v3l4-4-4-4zm14 8v-3h4v-2h-4V8l-4 4 4 4zM13 4h-2v16h2V4z"})),Fc=Object(se.createElement)(je.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.Path,{d:"M13 8v3H3v2h10v3l4-4-4-4zm8-4h-2v16h2V4z"}));var Uc=Object(ye.compose)([Object(ce.withFontSizes)("fontSize"),Object(we.withSelect)((function(e,t){var n,r,o=t.clientId,c={parent:0,order:"asc",orderby:"id"},a=["core","getEntityRecords",["postType","page",c]];return{hasExistingNavItems:!!e("core/block-editor").getBlocks(o).length,pages:e("core").getEntityRecords("postType","page",c),isRequestingPages:(n=e("core/data")).isResolving.apply(n,a),hasResolvedPages:(r=e("core/data")).hasFinishedResolution.apply(r,a)}})),Object(we.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,c=e.hasExistingNavItems,a=e.hasResolvedPages,i=e.isRequestingPages,l=e.pages,s=e.setAttributes,u=e.setFontSize,b=e.updateNavItemBlocks,m=Object(se.useRef)(),d=Object(we.useDispatch)("core/block-editor").selectBlock,p=Object(ce.__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(se.useState)(!1),n=Object(ve.a)(t,2),r=n[0],o=n[1];return{navigatorToolbarButton:Object(se.createElement)(je.Button,{className:"components-toolbar__control",label:Object(le.__)("Open block navigator"),onClick:function(){return o(!0)},icon:Ic}),navigatorModal:r&&Object(se.createElement)(je.Modal,{title:Object(le.__)("Block Navigator"),closeLabel:Object(le.__)("Close"),onRequestClose:function(){o(!1)}},Object(se.createElement)(Mc,{clientId:e}))}}(r),j=v.navigatorToolbarButton,y=v.navigatorModal,_=Object(se.useMemo)((function(){return l?l.map((function(e){var t=e.title,n=e.type,r=e.link,o=e.id;return Object(ae.createBlock)("core/navigation-link",{type:n,id:o,url:r,label:t.rendered?Object(ie.escape)(t.rendered):Object(le.__)("(no title)"),title:t.raw?Object(ie.escape)(t.raw):Object(le.__)("(no title)"),opensInNewTab:!1})})):null}),[l]);function k(e){return function(){var t=n.itemsJustification===e?void 0:e;s({itemsJustification:t})}}var C=a&&l&&l.length,E=de()("wp-block-navigation",(t={},Object(re.a)(t,"items-justification-".concat(n.itemsJustification),n.itemsJustification),Object(re.a)(t,o.class,o.class),t)),x={fontSize:o.size?o.size+"px":void 0};return c?Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.Toolbar,{icon:n.itemsJustification?w["justify".concat(Object(ie.upperFirst)(n.itemsJustification),"Icon")]:Dc,label:Object(le.__)("Change items justification"),isCollapsed:!0,controls:[{icon:Dc,title:Object(le.__)("Justify items left"),isActive:"left"===n.itemsJustification,onClick:k("left")},{icon:Vc,title:Object(le.__)("Justify items center"),isActive:"center"===n.itemsJustification,onClick:k("center")},{icon:Fc,title:Object(le.__)("Justify items right"),isActive:"right"===n.itemsJustification,onClick:k("right")}]}),Object(se.createElement)(je.ToolbarGroup,null,j),Object(se.createElement)(Hc,{TextColor:h,BackgroundColor:g},O)),y,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Navigation Structure")},Object(se.createElement)(Mc,{clientId:r})),Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Text settings")},Object(se.createElement)(ce.FontSizePicker,{value:o.size,onChange:u}))),f,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Display settings")},Object(se.createElement)(je.ToggleControl,{checked:n.showSubmenuIcon,onChange:function(e){s({showSubmenuIcon:e})},label:Object(le.__)("Show submenu icon for top-level items")}))),Object(se.createElement)(h,null,Object(se.createElement)(g,null,Object(se.createElement)("div",{ref:m,className:E,style:x},!c&&i&&Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.Spinner,null)," ",Object(le.__)("Loading Navigation…")," "),Object(se.createElement)(ce.InnerBlocks,{allowedBlocks:["core/navigation-link"],templateInsertUpdatesSelection:!1,__experimentalMoverDirection:"horizontal"}))))):Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.Placeholder,{className:"wp-block-navigation-placeholder",icon:"menu",label:Object(le.__)("Navigation"),instructions:Object(le.__)("Create a Navigation from all existing pages, or create an empty one.")},Object(se.createElement)("div",{ref:m,className:"wp-block-navigation-placeholder__buttons"},Object(se.createElement)(je.Button,{isSecondary:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){b(_),d(r)},disabled:!C},Object(le.__)("Create from all top-level pages")),Object(se.createElement)(je.Button,{isLink:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){var e=Object(ae.createBlock)("core/navigation-link");b([e])}},Object(le.__)("Create empty")))))}));var Gc="core/navigation",qc={title:Object(le.__)("Navigation"),icon:Ac,description:Object(le.__)("Add a navigation block to your site."),keywords:[Object(le.__)("menu"),Object(le.__)("navigation"),Object(le.__)("links")],category:"layout",supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},styles:[{name:"light",label:Object(le.__)("Light"),isDefault:!0},{name:"dark",label:Object(le.__)("Dark")}],edit:Uc,save:function(){return Object(se.createElement)(ce.InnerBlocks.Content,null)}},Wc=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),Zc=n(27),Kc=Object(se.createElement)(je.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(se.createElement)(je.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(se.createElement)(je.Path,{fill:"none",d:"M0 0h24v24H0z"})),$c=Object(se.createElement)(je.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(se.createElement)(je.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 Qc=Object(ye.compose)([Object(we.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockName,o=n.getBlockAttributes,c=n.getBlockParents,a=n.getClientIdsOfDescendants,i=n.hasSelectedInnerBlock,l=t.clientId,s=c(l)[0],u=c(l,!0)[0],b=o(s),m=!!a([l]).length,d="core/navigation"===r(u),p=b.showSubmenuIcon&&d&&m;return{isParentOfSelectedBlock:i(l,!0),hasDescendants:m,showSubmenuIcon:p}})),Object(we.withDispatch)((function(e,t,n){return{insertLinkBlock:function(){var r=t.clientId,o=e("core/block-editor").insertBlock,c=(0,n.select("core/block-editor").getClientIdsOfDescendants)([r]),a=c.length?c.length:0;o(Object(ae.createBlock)("core/navigation-link"),a,r)}}}))])((function(e){var t=e.attributes,n=e.hasDescendants,r=e.isSelected,o=e.isParentOfSelectedBlock,c=e.setAttributes,a=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(ie.unescape)(u):"",url:b,opensInNewTab:s},h=Object(se.useState)(!1),g=Object(ve.a)(h,2),f=g[0],O=g[1],v=Object(le.__)("Add link…"),j=Object(se.useRef)();return Object(se.useEffect)((function(){b||O(!0)}),[]),Object(se.useEffect)((function(){r||O(!1)}),[r]),Object(se.useEffect)((function(){f&&b&&(O(!1),Object(Ue.isURL)(Object(Ue.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(Zc.placeCaretAtHorizontalEdge)(j.current,!0))}),[b]),Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(je.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(re.a)({},On.rawShortcut.primary("k"),(function(){return O(!0)}))}),Object(se.createElement)(je.ToolbarButton,{name:"link",icon:"admin-links",title:Object(le.__)("Link"),shortcut:On.displayShortcut.primary("k"),onClick:function(){return O(!0)}}),Object(se.createElement)(je.ToolbarButton,{name:"submenu",icon:Kc,title:Object(le.__)("Add submenu"),onClick:i}))),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("SEO settings")},Object(se.createElement)(je.TextControl,{value:u||"",onChange:function(e){c({title:e})},label:Object(le.__)("Title Attribute"),help:Object(le.__)("Provide more context about where the link goes.")}),Object(se.createElement)(je.ToggleControl,{checked:m,onChange:function(e){c({nofollow:e})},label:Object(le.__)("Add nofollow to link"),help:Object(se.createElement)(se.Fragment,null,Object(le.__)("Don't let search engines follow this link."),Object(se.createElement)(je.ExternalLink,{className:"wp-block-navigation-link__nofollow-external-link",href:Object(le.__)("https://codex.wordpress.org/Nofollow")},Object(le.__)("What's this?")))})),Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Link settings")},Object(se.createElement)(je.TextareaControl,{value:d||"",onChange:function(e){c({description:e})},label:Object(le.__)("Description"),help:Object(le.__)("The description will be displayed in the menu if the current theme supports it.")}))),Object(se.createElement)("div",{className:de()("wp-block-navigation-link",{"is-editing":r||o,"is-selected":r,"has-link":!!b})},Object(se.createElement)("div",{className:"wp-block-navigation-link__content"},Object(se.createElement)(ce.RichText,{ref:j,tagName:"span",className:"wp-block-navigation-link__label",value:l,onChange:function(e){return c({label:e})},placeholder:v,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}),a&&Object(se.createElement)("span",{className:"wp-block-navigation-link__submenu-icon"},$c),f&&Object(se.createElement)(je.Popover,{position:"bottom center",onClose:function(){return O(!1)}},Object(se.createElement)(ce.__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,a=n.url,i=void 0===a?"":a,s=n.opensInNewTab,u=n.id;return c({title:Object(ie.escape)(o),url:encodeURI(i),label:(e=o.replace(/http(s?):\/\//gi,""),t=i.replace(/http(s?):\/\//gi,""),""!==o&&e!==t&&l!==o?Object(ie.escape)(o):l||Object(ie.escape)(t)),opensInNewTab:s,id:u})}}))),Object(se.createElement)(ce.InnerBlocks,{allowedBlocks:["core/navigation-link"],renderAppender:!!(n&&r||o)&&ce.InnerBlocks.DefaultAppender})))}));var Jc={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"}}},Yc=Jc.name,Xc={title:Object(le.__)("Navigation Link"),parent:["core/navigation"],icon:Wc,description:Object(le.__)("Add a page, link, or another item to your navigation."),supports:{reusable:!1,html:!1},__experimentalLabel:function(e){return e.label},edit:Qc,save:function(){return Object(se.createElement)(ce.InnerBlocks.Content,null)}},ea=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),ta=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(De.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(re.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(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Latest comments settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display Date"),checked:r,onChange:this.toggleDisplayDate}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display Excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(se.createElement)(je.Disabled,null,Object(se.createElement)(Dn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(se.Component),na="core/latest-comments",ra={title:Object(le.__)("Latest Comments"),description:Object(le.__)("Display a list of your most recent comments."),icon:ea,category:"widgets",keywords:[Object(le.__)("recent comments")],supports:{align:!0,html:!1},edit:ta},oa=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(se.createElement)(ue.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(se.createElement)(ue.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(se.createElement)(ue.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(se.createElement)(ue.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"})),ca=n(40),aa=n.n(ca),ia=n(54),la={per_page:-1},sa=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=aa()({path:Object(Ue.addQueryArgs)("/wp/v2/categories",la)}).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,c=t.displayPostContentRadio,a=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(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Post content settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Post Content"),checked:a,onChange:function(e){return n({displayPostContent:e})}}),a&&Object(se.createElement)(je.RadioControl,{label:Object(le.__)("Show:"),selected:c,options:[{label:Object(le.__)("Excerpt"),value:"excerpt"},{label:Object(le.__)("Full Post"),value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),a&&"excerpt"===c&&Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Max number of words in excerpt"),value:p,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Post meta settings")},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display post date"),checked:i,onChange:function(e){return n({displayPostDate:e})}})),Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Sorting and filtering")},Object(se.createElement)(je.QueryControls,Object(Re.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(se.createElement)(je.RangeControl,{label:Object(le.__)("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(se.createElement)(se.Fragment,null,h,Object(se.createElement)(je.Placeholder,{icon:"admin-post",label:Object(le.__)("Latest Posts")},Array.isArray(r)?Object(le.__)("No posts found."):Object(se.createElement)(je.Spinner,null)));var f=r.length>d?r.slice(0,d):r,O=[{icon:"list-view",title:Object(le.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===l},{icon:"grid-view",title:Object(le.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===l}],v=Object(ia.__experimentalGetSettings)().formats.date;return Object(se.createElement)(se.Fragment,null,h,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,{controls:O})),Object(se.createElement)("ul",{className:de()(this.props.className,Object(re.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(se.createElement)("li",{key:t},Object(se.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(se.createElement)(se.RawHTML,null,n):Object(le.__)("(no title)")),i&&e.date_gmt&&Object(se.createElement)("time",{dateTime:Object(ia.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(ia.dateI18n)(v,e.date_gmt)),a&&"excerpt"===c&&Object(se.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(se.createElement)(se.RawHTML,{key:"html"},p<r.trim().split(" ").length?r.trim().split(" ",p).join(" ")+" ... <a href="+e.link+'target="_blank" rel="noopener noreferrer">'+Object(le.__)("Read more")+"</a>":r.trim().split(" ",p).join(" "))),a&&"full_post"===c&&Object(se.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(se.createElement)(se.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}(se.Component),ua=Object(we.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,c=n.orderBy,a=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(ie.pickBy)({categories:a,order:o,orderby:c,per_page:r},(function(e){return!Object(ie.isUndefined)(e)})))}}))(sa),ba="core/latest-posts",ma={title:Object(le.__)("Latest Posts"),description:Object(le.__)("Display a list of your most recent posts."),icon:oa,category:"widgets",keywords:[Object(le.__)("recent posts")],supports:{align:!0,html:!1},edit:ua},da=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})),pa=n(49),ha=n.n(pa),ga=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).containerRef=Object(se.createRef)(),e.formRef=Object(se.createRef)(),e.widgetContentRef=Object(se.createRef)(),e.idBaseInputRef=Object(se.createRef)(),e.widgetNumberInputRef=Object(se.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){var t=!1;(e.idBase!==this.props.idBase&&this.idBaseInputRef.current&&(this.idBaseInputRef.current.value=e.idBase,t=!0),e.number!==this.props.number&&this.widgetNumberInputRef.current&&(this.widgetNumberInputRef.current.value=e.number),e.form!==this.props.form&&this.widgetContentRef.current)&&(this.widgetContentRef.current.innerHTML=e.form,t=!0);return t&&(this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current)),!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.idBase,o=t.number,c=t.form,a=t.isReferenceWidget;return Object(se.createElement)("div",{className:"widget open",ref:this.containerRef},Object(se.createElement)("div",{className:"widget-inside"},Object(se.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&(a&&e.containerRef.current&&window.wpWidgets.save(window.jQuery(e.containerRef.current)),e.props.onInstanceChange(e.retrieveUpdatedInstance()))}},Object(se.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:c}}),a&&Object(se.createElement)(se.Fragment,null,Object(se.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(se.createElement)("input",{ref:this.idBaseInputRef,type:"hidden",name:"id_base",className:"id_base",value:r}),Object(se.createElement)("input",{ref:this.widgetNumberInputRef,type:"hidden",name:"widget_number",className:"widget_number",value:o}),Object(se.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(se.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""})))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0,o=t;r<o.length;r++){var c=o[r];if(!ha()(e.getAll(c),this.previousFormData.getAll(c)))return this.previousFormData=e,!0}return!1}},{key:"triggerWidgetEvent",value:function(e){window.jQuery(window.document).trigger(e,[window.jQuery(this.containerRef.current)])}},{key:"retrieveUpdatedInstance",value:function(){if(this.formRef.current){var e=this.formRef.current,t=new window.FormData(e),n={},r=!0,o=!1,c=void 0;try{for(var a,i=t.keys()[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var l=a.value;if(!Object(ie.includes)(["widget-id","id_base","widget_number","multi_number","add_new"],l)){var s=l.match(/[^\[]*\[[-\d]*\]\[([^\]]*)\]/),u=s&&s[1]?s[1]:l,b=t.getAll(l);b.length>1?n[u]=b:n[u]=b[0]}}}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}}]),t}(se.Component),fa=window,Oa=fa.XMLHttpRequest,va=fa.FormData,ja=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={form:null},e.widgetNonce=null,e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(De.a)(e)),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.trySetNonce(),this.requestWidgetUpdater(void 0,(function(t){e.props.onInstanceChange(null,!!t.form)}))}},{key:"componentDidUpdate",value:function(e){var t=this;this.widgetNonce||this.trySetNonce(),e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(void 0,(function(e){t.props.onInstanceChange(null,!!e.form)})),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.id,o=t.number,c=t.idBase,a=t.instance,i=t.isSelected,l=t.widgetName,s=this.state.form;if(!s)return null;var u=Object(ie.get)(a,["title"]),b=null;return i&&(u&&l?b="".concat(l,": ").concat(u):!u&&l?b=l:u&&!l&&(b=u)),Object(se.createElement)(se.Fragment,null,b&&Object(se.createElement)("div",{className:"wp-block-legacy-widget__edit-widget-title"},b),Object(se.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(se.createElement)(ga,{isReferenceWidget:!!r,ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,number:o||-1*n,id:r,idBase:c,form:s})))}},{key:"trySetNonce",value:function(){var e=document.getElementById("_wpnonce_widgets");e&&e.value&&(this.widgetNonce=e.value)}},{key:"onInstanceChange",value:function(e){var t=this;this.props.id?this.props.onInstanceChange(e,!0):this.requestWidgetUpdater(e,(function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance,!!e.form)}))}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.id,c=r.idBase,a=r.instance,i=r.widgetClass,l=this.isStillMounted;if(o||i){if(o){var s=new Oa,u=new va;return u.append("action","save-widget"),u.append("id_base",c),u.append("widget-id",o),u.append("widget-width","250"),u.append("widget-height","200"),u.append("savewidgets",this.widgetNonce),s.open("POST",window.ajaxurl),s.addEventListener("load",(function(){if(l){var e=s.responseText;n.setState({form:e}),t&&t({form:e})}})),void s.send(u)}i&&aa()({path:"/__experimental/widget-forms/".concat(i,"/"),data:{instance:a,instance_changes:e},method:"POST"}).then((function(e){l&&(n.setState({form:e.form}),t&&t(e))}))}}}]),t}(se.Component),ya=Object(ye.withInstanceId)(ja);function wa(e){var t,n=e.availableLegacyWidgets,r=e.currentWidget,o=e.hasPermissionsToManageWidgets,c=e.onChangeWidget,a=Object(se.useMemo)((function(){return Object(ie.pickBy)(n,(function(e){return!e.isHidden}))}),[n]);return t=o?Object(ie.isEmpty)(a)?Object(le.__)("There are no widgets available."):Object(se.createElement)(je.SelectControl,{label:Object(le.__)("Select a legacy widget to display:"),value:r||"none",onChange:c,options:[{value:"none",label:"Select widget"}].concat(Object(ie.map)(a,(function(e,t){return{value:t,label:e.name}})))}):Object(le.__)("You don't have permissions to use widgets on this site."),Object(se.createElement)(je.Placeholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:"admin-customizer"}),label:Object(le.__)("Legacy Widget")},t)}var _a=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={hasEditForm:!0,isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(De.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(De.a)(e)),e.changeWidget=e.changeWidget.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.availableLegacyWidgets,o=t.hasPermissionsToManageWidgets,c=t.isSelected,a=t.setAttributes,i=this.state,l=i.isPreview,s=i.hasEditForm,u=n.id,b=n.widgetClass,m=u&&r[u]||b&&r[b];if(!u&&!b)return Object(se.createElement)(wa,{availableLegacyWidgets:r,hasPermissionsToManageWidgets:o,onChangeWidget:function(e){var t=r[e].isReferenceWidget;a({instance:{},id:t?e:void 0,widgetClass:t?void 0:e})}});var d=m?Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:m.name},m.description)):null;return o?Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,null,m&&!m.isHidden&&Object(se.createElement)(je.Button,{onClick:this.changeWidget,label:Object(le.__)("Change widget"),icon:"update"}),s&&Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.Button,{className:"components-tab-button",isPressed:!l,onClick:this.switchToEdit},Object(se.createElement)("span",null,Object(le.__)("Edit"))),Object(se.createElement)(je.Button,{className:"components-tab-button",isPressed:l,onClick:this.switchToPreview},Object(se.createElement)("span",null,Object(le.__)("Preview")))))),d,s&&Object(se.createElement)(ya,{isSelected:c,isVisible:!l,id:u,idBase:n.idBase||n.id,number:n.number,widgetName:Object(ie.get)(m,["name"]),widgetClass:n.widgetClass,instance:n.instance,onInstanceChange:function(t,n){t&&e.props.setAttributes({instance:t}),n!==e.hasEditForm&&e.setState({hasEditForm:n})}}),(l||!s)&&this.renderWidgetPreview()):Object(se.createElement)(se.Fragment,null,d,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},id:void 0,widgetClass:void 0}),this.setState({hasEditForm:!0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(se.createElement)(Dn.a,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(se.Component),ka=Object(we.withSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}}))(_a),Ca="core/legacy-widget",Ea={title:Object(le.__)("Legacy Widget (Experimental)"),description:Object(le.__)("Display a legacy widget."),icon:da,category:"widgets",supports:{html:!1,customClassName:!1},edit:ka},xa=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),Sa=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Ordered list settings")},Object(se.createElement)(je.TextControl,{label:Object(le.__)("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(se.createElement)(je.ToggleControl,{label:Object(le.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Pa(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 Ta(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 Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ba(e){var t=Na({},e.phrasingContentSchema,{ul:{},ol:{attributes:["type","start","reversed"]}});return["ul","ol"].forEach((function(e){t[e].children={li:{children:t}}})),t}var Ra={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(ae.createBlock)("core/list",{values:Object(nn.toHTMLString)({value:Object(nn.join)(e.map((function(t){var n=t.content,r=Object(nn.create)({html:n});return e.length>1?r:Object(nn.replace)(r,/\n/g,nn.__UNSTABLE_LINE_SEPARATOR)})),nn.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(ae.createBlock)("core/list",{values:Object(nn.toHTMLString)({value:Object(nn.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Ba(e).ol,ul:Ba(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(ae.createBlock)("core/list",Na({},Object(ae.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(ne.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(ae.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Object(ne.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(ae.createBlock)("core/list",{ordered:!0,values:"<li>".concat(e,"</li>")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(nn.split)(Object(nn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),nn.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(ae.createBlock)("core/paragraph",{content:Object(nn.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(ae.createBlock)("core/quote",{value:Object(nn.toHTMLString)({value:Object(nn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};function Aa(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 Ma={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"}}},Ia=Ma.name,za={title:Object(le.__)("List"),description:Object(le.__)("Create a bulleted or numbered list."),icon:xa,keywords:[Object(le.__)("bullet list"),Object(le.__)("ordered list"),Object(le.__)("numbered list")],supports:{className:!1,__unstablePasteTextInline:!0},example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:Ra,merge:function(e,t){var n=t.values;return n&&"<li></li>"!==n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=e.className,a=e.isSelected,i=t.ordered,l=t.values,s=t.type,u=t.reversed,b=t.start,m=i?"ol":"ul";return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.RichText,{identifier:"values",multiline:"li",tagName:m,onChange:function(e){return n({values:e})},value:l,className:c,placeholder:Object(le.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(ae.createBlock)(Ia,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{values:e}))},__unstableOnSplitMiddle:function(){return Object(ae.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:b,reversed:u,type:s},(function(e){var t=e.value,r=e.onChange,o=e.onFocus;return Object(se.createElement)(se.Fragment,null,a&&Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(nn.__unstableOutdentListItems)(t))}}),Object(se.createElement)(ce.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(nn.__unstableIndentListItems)(t,{type:m}))}}),Object(se.createElement)(ce.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(nn.__unstableIndentListItems)(t,{type:m}))}}),Object(se.createElement)(ce.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(nn.__unstableOutdentListItems)(t))}})),Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,{controls:[{icon:"editor-ul",title:Object(le.__)("Convert to unordered list"),isActive:Object(nn.__unstableIsActiveListType)(t,"ul",m),onClick:function(){r(Object(nn.__unstableChangeListType)(t,{type:"ul"})),o(),Object(nn.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(le.__)("Convert to ordered list"),isActive:Object(nn.__unstableIsActiveListType)(t,"ol",m),onClick:function(){r(Object(nn.__unstableChangeListType)(t,{type:"ol"})),o(),Object(nn.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(le.__)("Outdent list item"),shortcut:Object(le._x)("Backspace","keyboard key"),isDisabled:!Object(nn.__unstableCanOutdentListItems)(t),onClick:function(){r(Object(nn.__unstableOutdentListItems)(t)),o()}},{icon:"editor-indent",title:Object(le.__)("Indent list item"),shortcut:Object(le._x)("Space","keyboard key"),isDisabled:!Object(nn.__unstableCanIndentListItems)(t),onClick:function(){r(Object(nn.__unstableIndentListItems)(t,{type:m})),o()}}]})))})),i&&Object(se.createElement)(Sa,{setAttributes:n,ordered:i,reversed:u,start:b}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.type,c=t.reversed,a=t.start,i=n?"ol":"ul";return Object(se.createElement)(ce.RichText.Content,{tagName:i,value:r,type:o,reversed:c,start:a,multiline:"li"})}};var La=Object(we.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(ae.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,c=n.originalUndelimitedContent,a=!!c,i=Object(ae.getBlockType)("core/html"),l=[];return a&&i?(t=Object(le.sprintf)(Object(le.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),l.push(Object(se.createElement)(je.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(le.__)("Keep as HTML")))):t=Object(le.sprintf)(Object(le.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.Warning,{actions:l},t),Object(se.createElement)(se.RawHTML,null,c))}));var Ha={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},Da=Ha.name,Va={name:Da,title:Object(le.__)("Unsupported"),description:Object(le.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.originalName,r=n?Object(ae.getBlockType)(n):void 0;return r?r.settings.title||n:""}},edit:La,save:function(e){var t=e.attributes;return Object(se.createElement)(se.RawHTML,null,t.originalContent)}},Fa=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"})),Ua=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(De.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(De.a)(e)),e.state={defaultText:Object(le.__)("Read more")},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===On.ENTER&&n([Object(ae.createBlock)(Object(ae.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(le.__)("The excerpt is hidden."):Object(le.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,r=this.props.setAttributes,o=this.state.defaultText,c=void 0!==t?t:o,a={width:c.length+1.2+"em"};return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,null,Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return r({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(se.createElement)("div",{className:"wp-block-more"},Object(se.createElement)("input",{type:"text",value:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown,style:a})))}}]),t}(se.Component);var Ga={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(ae.createBlock)("core/more",o)}}]},qa={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},Wa=qa.name,Za={title:Object(le._x)("More","block name"),description:Object(le.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Fa,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Ga,edit:Ua,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",c=r?"\x3c!--noteaser--\x3e":"";return Object(se.createElement)(se.RawHTML,null,Object(ie.compact)([o,c]).join("\n"))}},Ka=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var $a={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(ae.createBlock)("core/nextpage",{})}}]},Qa={name:"core/nextpage",category:"layout"},Ja=Qa.name,Ya={title:Object(le.__)("Page Break"),parent:["core/post-content"],description:Object(le.__)("Separate your content into a multi-page experience."),icon:Ka,keywords:[Object(le.__)("next page"),Object(le.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:$a,edit:function(){return Object(se.createElement)("div",{className:"wp-block-nextpage"},Object(se.createElement)("span",null,Object(le.__)("Page break")))},save:function(){return Object(se.createElement)(se.RawHTML,null,"\x3c!--nextpage--\x3e")}},Xa=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(se.createElement)(ue.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(se.createElement)(ue.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"10",y:"10",width:"8",height:"2"}));var ei={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(ae.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(ae.createBlock)("core/paragraph",e)}}]},ti={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}}},ni=ti.name,ri={title:Object(le.__)("Preformatted"),description:Object(le.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Xa,example:{attributes:{content:Object(le.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:ei,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.className,c=e.style,a=t.content;return Object(se.createElement)(ce.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){r({content:e})},placeholder:Object(le.__)("Write preformatted text…"),className:o,style:c,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(se.createElement)(ce.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},oi=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(se.createElement)(ue.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(se.createElement)(ue.Polygon,{points:"21 4 2 4 2 6 21 6"})),ci="is-style-".concat("solid-color");function ai(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 ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var li={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function si(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var ui=[{attributes:ii({},li,{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className,b=r.figureStyle;if(Object(ie.includes)(u,ci)){var m=Object(ce.getColorClassName)("background-color",o);t=de()(Object(re.a)({"has-background":m||c},m,m)),n={backgroundColor:m?void 0:c}}else if(c)n={borderColor:c};else if(o){n={borderColor:si(b)}}var d=Object(ce.getColorClassName)("color",a),p=(a||i)&&de()("has-text-color",Object(re.a)({},d,d)),h=d?void 0:{color:i};return Object(se.createElement)("figure",{className:t,style:n},Object(se.createElement)("blockquote",{className:p,style:h},Object(se.createElement)(ce.RichText.Content,{value:l,multiline:!0}),!ce.RichText.isEmpty(s)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(tn.a)(e,["className","figureStyle","mainColor"]);if(!Object(ie.includes)(t,ci)&&r&&n){var c=si(n);if(c)return ii({},o,{className:t,customMainColor:c})}return ii({className:t,mainColor:r},o)}},{attributes:li,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(ie.includes)(u,ci))(t=Object(ce.getColorClassName)("background-color",o))||(n={backgroundColor:c});else if(c)n={borderColor:c};else if(o){var b=Object(ie.get)(Object(we.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(ce.getColorObjectByAttributeValues)(b,o).color}}var m=Object(ce.getColorClassName)("color",a),d=a||i?de()("has-text-color",Object(re.a)({},m,m)):void 0,p=m?void 0:{color:i};return Object(se.createElement)("figure",{className:t,style:n},Object(se.createElement)("blockquote",{className:d,style:p},Object(se.createElement)(ce.RichText.Content,{value:l,multiline:!0}),!ce.RichText.isEmpty(s)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:s})))}},{attributes:ii({},li),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(se.createElement)("blockquote",null,Object(se.createElement)(ce.RichText.Content,{value:n,multiline:!0}),!ce.RichText.isEmpty(r)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:r}))}},{attributes:ii({},li,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(se.createElement)("blockquote",{className:"align".concat(o)},Object(se.createElement)(ce.RichText.Content,{value:n,multiline:!0}),!ce.RichText.isEmpty(r)&&Object(se.createElement)(ce.RichText.Content,{tagName:"footer",value:r}))}}],bi=function(e){function t(e){var n;return Object(Ie.a)(this,t),(n=Object(Le.a)(this,Object(He.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(De.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(De.a)(n)),n}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setAttributes,c=t.setTextColor,a=t.setMainColor,i=t.className,l=Object(ie.includes)(i,ci),s=!r.color||this.wasTextColorAutomaticallyComputed,u=l&&s&&e;l?a(e):o({customMainColor:e}),u&&(this.wasTextColorAutomaticallyComputed=!0,c(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.className,o=t.mainColor,c=t.setAttributes;n.mainColor&&!Object(ie.includes)(r,ci)&&Object(ie.includes)(e.className,ci)&&c({mainColor:void 0,customMainColor:o.color})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,o=e.setAttributes,c=e.isSelected,a=e.className,i=t.value,l=t.citation,s=Object(ie.includes)(a,ci),u=s?{backgroundColor:n.color}:{borderColor:n.color},b=de()(a,Object(re.a)({"has-background":s&&n.color},n.class,s&&n.class)),m={color:r.color},d=r.color&&de()("has-text-color",Object(re.a)({},r.class,r.class));return Object(se.createElement)(se.Fragment,null,Object(se.createElement)("figure",{style:u,className:b},Object(se.createElement)("blockquote",{style:m,className:d},Object(se.createElement)(ce.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(le.__)("Write quote…")}),(!ce.RichText.isEmpty(l)||c)&&Object(se.createElement)(ce.RichText,{value:l,placeholder:Object(le.__)("Write citation…"),onChange:function(e){return o({citation:e})},className:"wp-block-pullquote__citation"}))),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(ce.PanelColorSettings,{title:Object(le.__)("Color settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(le.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(le.__)("Text Color")}]},s&&Object(se.createElement)(ce.ContrastChecker,Object(Re.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(se.Component),mi=Object(ce.withColors)({mainColor:"background-color",textColor:"color"})(bi);var di={name:"core/pullquote",category:"formatting",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},pi=di.name,hi={title:Object(le.__)("Pullquote"),description:Object(le.__)("Give special visual emphasis to a quote from your text."),icon:oi,example:{attributes:{value:"<p>"+Object(le.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(le.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(le._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(le.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:mi,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(ie.includes)(u,ci)){var b=Object(ce.getColorClassName)("background-color",o);t=de()(Object(re.a)({"has-background":b||c},b,b)),n={backgroundColor:b?void 0:c}}else c&&(n={borderColor:c});var m=Object(ce.getColorClassName)("color",a),d=(a||i)&&de()("has-text-color",Object(re.a)({},m,m)),p=m?void 0:{color:i};return Object(se.createElement)("figure",{className:t,style:n},Object(se.createElement)("blockquote",{className:d,style:p},Object(se.createElement)(ce.RichText.Content,{value:l,multiline:!0}),!ce.RichText.isEmpty(s)&&Object(se.createElement)(ce.RichText.Content,{tagName:"cite",value:s})))},deprecated:ui},gi=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).titleField=Object(se.createRef)(),e.editButton=Object(se.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(De.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(De.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.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===On.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,c=e.onEdit,a=e.instanceId;return Object(se.createElement)(se.Fragment,null,!t&&!r&&Object(se.createElement)("div",{className:"reusable-block-edit-panel"},Object(se.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(se.createElement)(je.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:c},Object(le.__)("Edit"))),(t||r)&&Object(se.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(se.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(le.__)("Name:")),Object(se.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(a)}),Object(se.createElement)(je.Button,{type:"submit",isSecondary:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(le.__)("Save"))))}}]),t}(se.Component),fi=Object(ye.withInstanceId)(gi),Oi=function(e){function t(e){var n,r=e.reusableBlock;return Object(Ie.a)(this,t),(n=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(De.a)(n)),n.stopEditing=n.stopEditing.bind(Object(De.a)(n)),n.setBlocks=n.setBlocks.bind(Object(De.a)(n)),n.setTitle=n.setTitle.bind(Object(De.a)(n)),n.save=n.save.bind(Object(De.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(ae.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(Ve.a)(t,e),Object(ze.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(ae.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(ae.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(ae.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,c=e.canUpdateBlock,a=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object(se.createElement)(je.Placeholder,null,Object(se.createElement)(je.Spinner,null));if(!n)return Object(se.createElement)(je.Placeholder,null,Object(le.__)("Block has been deleted or is unavailable."));var b=Object(se.createElement)(ce.BlockEditorProvider,{settings:a,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(se.createElement)(ce.WritingFlow,null,Object(se.createElement)(ce.BlockList,null)));return l||(b=Object(se.createElement)(je.Disabled,null,b)),Object(se.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(se.createElement)(fi,{isEditing:l,title:null!==s?s:n.title,isSaving:o&&!n.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),t}(se.Component),vi=Object(ye.compose)([Object(we.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,c=n.__experimentalIsSavingReusableBlock,a=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:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(we.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,c=n.__experimentalSaveReusableBlock,a=t.attributes.ref;return{fetchReusableBlock:Object(ie.partial)(r,a),onChange:Object(ie.partial)(o,a),onSave:Object(ie.partial)(c,a)}}))])(Oi),ji="core/block",yi={title:Object(le.__)("Reusable Block"),category:"reusable",description:Object(le.__)("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:vi},wi=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(se.createElement)(ue.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"})),_i=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(De.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(re.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,c=t.displayExcerpt,a=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object(se.createElement)(je.Placeholder,{icon:"rss",label:"RSS"},Object(se.createElement)("form",{onSubmit:this.onSubmitURL},Object(se.createElement)(je.TextControl,{placeholder:Object(le.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object(se.createElement)(je.Button,{isSecondary:!0,type:"submit"},Object(le.__)("Use URL"))));var b=[{icon:"edit",title:Object(le.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(le.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(le.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,{controls:b})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("RSS settings")},Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display date"),checked:a,onChange:this.toggleAttribute("displayDate")}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object(se.createElement)(je.Disabled,null,Object(se.createElement)(Dn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(se.Component),ki="core/rss",Ci={title:Object(le.__)("RSS"),description:Object(le.__)("Display entries from any RSS or Atom feed."),icon:wi,category:"widgets",keywords:[Object(le.__)("atom"),Object(le.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:_i},Ei=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(se.createElement)(ue.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 xi="core/search",Si={title:Object(le.__)("Search"),description:Object(le.__)("Help visitors find your content."),icon:Ei,category:"widgets",keywords:[Object(le.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=n.label,c=n.placeholder,a=n.buttonText;return Object(se.createElement)("div",{className:t},Object(se.createElement)(ce.RichText,{className:"wp-block-search__label","aria-label":Object(le.__)("Label text"),placeholder:Object(le.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return r({label:e})}}),Object(se.createElement)("input",{className:"wp-block-search__input","aria-label":Object(le.__)("Optional placeholder text"),placeholder:c?void 0:Object(le.__)("Optional placeholder…"),value:c,onChange:function(e){return r({placeholder:e.target.value})}}),Object(se.createElement)(ce.RichText,{className:"wp-block-search__button","aria-label":Object(le.__)("Button text"),placeholder:Object(le.__)("Add button text…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return r({buttonText:e})}}))}},Pi=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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(se.createElement)(ue.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"})),Ti=[{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(ce.getColorClassName)("background-color",n),c=de()(o,{"has-background":n||r}),a={backgroundColor:o?void 0:r};return Object(se.createElement)("div",{className:c,style:a},Object(se.createElement)(ce.InnerBlocks.Content,null))}}];var Ni=Object(ye.compose)([Object(we.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(se.useRef)(),r=Object(ce.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:n}}),o=r.TextColor,c=r.BackgroundColor,a=r.InspectorControlsColorPanel;return Object(se.createElement)(se.Fragment,null,a,Object(se.createElement)(c,null,Object(se.createElement)(o,null,Object(se.createElement)("div",{className:"wp-block-group",ref:n},Object(se.createElement)("div",{className:"wp-block-group__inner-container"},Object(se.createElement)(ce.InnerBlocks,{renderAppender:!t&&ce.InnerBlocks.ButtonBlockAppender}))))))}));var Bi={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Ri=Bi.name,Ai={title:Object(le.__)("Group"),icon:Pi,description:Object(le.__)("A block that groups other blocks."),keywords:[Object(le.__)("container"),Object(le.__)("wrapper"),Object(le.__)("row"),Object(le.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff",customTextColor:"#000000"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(le.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(le.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(le.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(le.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(le.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(le.__)("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(ae.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(ae.createBlock)("core/group",{align:n},r)}}}]},edit:Ni,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(ce.getColorClassName)("background-color",n),i=Object(ce.getColorClassName)("color",o),l=de()(a,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(se.createElement)("div",{className:l,style:s},Object(se.createElement)("div",{className:"wp-block-group__inner-container"},Object(se.createElement)(ce.InnerBlocks.Content,null)))},deprecated:Ti},Mi=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M19 13H5v-2h14v2z"})),Ii=function(e){var t=e.color,n=e.setColor;return Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(ce.PanelColorSettings,{title:Object(le.__)("Color settings"),colorSettings:[{value:t.color,onChange:n,label:Object(le.__)("Color")}]}))};var zi=Object(ce.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.HorizontalRule,{className:de()(r,Object(re.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(se.createElement)(Ii,{color:t,setColor:n}))}));var Li={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(ae.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Hi={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},Di=Hi.name,Vi={title:Object(le.__)("Separator"),description:Object(le.__)("Create a break between ideas or sections with a horizontal separator."),icon:Mi,keywords:[Object(le.__)("horizontal-line"),"hr",Object(le.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(le.__)("Default"),isDefault:!0},{name:"wide",label:Object(le.__)("Wide Line")},{name:"dots",label:Object(le.__)("Dots")}],transforms:Li,edit:zi,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,c=Object(ce.getColorClassName)("background-color",r),a=Object(ce.getColorClassName)("color",r),i=de()((t={"has-text-color has-background":r||o},Object(re.a)(t,c,c),Object(re.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(se.createElement)("hr",{className:i,style:l})}},Fi=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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 Ui=n(80),Gi={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Ui.removep)(Object(Ui.autop)(n))}}},priority:20}]},qi={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}}},Wi=qi.name,Zi={title:Object(le.__)("Shortcode"),description:Object(le.__)("Insert additional custom elements with a WordPress shortcode."),icon:Fi,transforms:Gi,supports:{customClassName:!1,className:!1,html:!1},edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(ye.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(se.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(se.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(se.createElement)(je.Dashicon,{icon:"shortcode"}),Object(le.__)("Shortcode")),Object(se.createElement)(ce.PlainText,{className:"input-control",id:c,value:n.text,placeholder:Object(le.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(se.createElement)(se.RawHTML,null,t.text)}},Ki=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})),$i=Object(ye.compose)([Object(we.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),ye.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.instanceId,c=e.onResizeStart,a=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object(se.useState)(i),u=Object(ve.a)(s,2),b=u[0],m=u[1];return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.ResizableBox,{className:de()("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:c,onResizeStop:function(e,t,n,o){a();var c=parseInt(i+o.height,10);r({height:c}),m(c)}}),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Spacer settings")},Object(se.createElement)(je.BaseControl,{label:Object(le.__)("Height in pixels"),id:l},Object(se.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 Qi={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},Ji=Qi.name,Yi={title:Object(le.__)("Spacer"),description:Object(le.__)("Add white space between blocks and customize its height."),icon:Ki,edit:$i,save:function(e){var t=e.attributes;return Object(se.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},Xi=n(35),el=n.n(Xi);var tl={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(ae.createBlock)("core/paragraph",e)}}]},nl={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},rl=nl.name,ol={title:Object(le.__)("Subheading (deprecated)"),description:Object(le.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(se.createElement)(je.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(je.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),supports:{inserter:!1,multiple:!1},transforms:tl,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,c=t.content,a=t.placeholder;return el()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(se.createElement)(ce.RichText,{tagName:"p",value:c,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:a||Object(le.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(se.createElement)(ce.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}},cl=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),al=[{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,c=t.foot,a=t.backgroundColor;if(!r.length&&!o.length&&!c.length)return null;var i=Object(ce.getColorClassName)("background-color",a),l=de()(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(se.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(se.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(se.createElement)(ce.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(se.createElement)("table",{className:l},Object(se.createElement)(s,{type:"head",rows:r}),Object(se.createElement)(s,{type:"body",rows:o}),Object(se.createElement)(s,{type:"foot",rows:c}))}}],il=n(250),ll=n(251),sl=n(252);function ul(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 bl=["align"];function ml(e,t,n){if(!t)return e;var r=Object(ie.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(ie.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){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:c,rowIndex:o},t)?n(e):e}))}}))}))}function dl(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,c=function(e){return gl(e.head)?gl(e.body)?gl(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(ie.get)(c,["cells","length"]):o;return a?Object(re.a)({},n,[].concat(Object(ne.a)(e[n].slice(0,r)),[{cells:Object(ie.times)(a,(function(e){var t=Object(ie.get)(c,["cells",e],{});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(ie.pick)(t,bl),{content:"",tag:"head"===n?"th":"td"})}))}],Object(ne.a)(e[n].slice(r)))):e}function pl(e,t){var n=t.columnIndex,r=Object(ie.pick)(e,["head","body","foot"]);return Object(ie.mapValues)(r,(function(e,t){return gl(e)?e:e.map((function(e){return fl(e)||e.cells.length<n?e:{cells:[].concat(Object(ne.a)(e.cells.slice(0,n)),[{content:"",tag:"head"===t?"th":"td"}],Object(ne.a)(e.cells.slice(n)))}}))}))}function hl(e,t){return gl(e[t])?dl(e,{sectionName:t,rowIndex:0,columnCount:Object(ie.get)(e,["body",0,"cells","length"],1)}):Object(re.a)({},t,[])}function gl(e){return!e||!e.length||Object(ie.every)(e,fl)}function fl(e){return!(e.cells&&e.cells.length)}function Ol(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 vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ol(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jl=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],yl=[{icon:il.a,title:Object(le.__)("Align Column Left"),align:"left"},{icon:ll.a,title:Object(le.__)("Align Column Center"),align:"center"},{icon:sl.a,title:Object(le.__)("Align Column Right"),align:"right"}],wl=Object(ce.createCustomColorsHOC)(jl),_l=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(De.a)(e)),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(De.a)(e)),e.onChange=e.onChange.bind(Object(De.a)(e)),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(De.a)(e)),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(De.a)(e)),e.renderSection=e.renderSection.bind(Object(De.a)(e)),e.getTableControls=e.getTableControls.bind(Object(De.a)(e)),e.onInsertRow=e.onInsertRow.bind(Object(De.a)(e)),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(De.a)(e)),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(De.a)(e)),e.onDeleteRow=e.onDeleteRow.bind(Object(De.a)(e)),e.onInsertColumn=e.onInsertColumn.bind(Object(De.a)(e)),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(De.a)(e)),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(De.a)(e)),e.onDeleteColumn=e.onDeleteColumn.bind(Object(De.a)(e)),e.onToggleHeaderSection=e.onToggleHeaderSection.bind(Object(De.a)(e)),e.onToggleFooterSection=e.onToggleFooterSection.bind(Object(De.a)(e)),e.onChangeColumnAlignment=e.onChangeColumnAlignment.bind(Object(De.a)(e)),e.getCellAlignment=e.getCellAlignment.bind(Object(De.a)(e)),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,c=this.state,a=c.initialRowCount,i=c.initialColumnCount;a=parseInt(a,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:a,columnCount:i}).rowCount,r=t.columnCount,{body:Object(ie.times)(n,(function(){return{cells:Object(ie.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(ml(r,t,(function(t){return vl({},t,{content:e})})))}}},{key:"onChangeColumnAlignment",value:function(e){var t=this.state.selectedCell;if(t){var n={type:"column",columnIndex:t.columnIndex},r=this.props,o=r.attributes;(0,r.setAttributes)(ml(o,n,(function(t){return vl({},t,{align:e})})))}}},{key:"getCellAlignment",value:function(){var e=this.state.selectedCell;if(e){var t,n,r,o,c,a,i=this.props.attributes;return t=i,r="align",o=(n=e).sectionName,c=n.rowIndex,a=n.columnIndex,Object(ie.get)(t,[o,c,"cells",a,r])}}},{key:"onToggleHeaderSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(hl(t,"head"))}},{key:"onToggleFooterSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(hl(t,"foot"))}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,c=t.sectionName,a=t.rowIndex;this.setState({selectedCell:null}),o(dl(r,{sectionName:c,rowIndex:a+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.sectionName,c=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.sectionName,r=t.rowIndex;return Object(re.a)({},n,e[n].filter((function(e,t){return t!==r})))}(n,{sectionName:o,rowIndex:c}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,c=t.columnIndex;this.setState({selectedCell:null}),o(pl(r,{columnIndex:c+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,c=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(ie.pick)(e,["head","body","foot"]);return Object(ie.mapValues)(r,(function(e){return gl(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:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:vl({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(le.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(le.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(le.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(le.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(le.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(le.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(gl(r))return null;var o="t".concat(n);return Object(se.createElement)(o,null,r.map((function(e,r){var o=e.cells;return Object(se.createElement)("tr",{key:r},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:n,rowIndex:r,columnIndex:o},u=de()(Object(re.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===n?b=Object(le.__)("Header label"):"foot"===n&&(b=Object(le.__)("Footer label")),Object(se.createElement)(ce.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,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,c=t.setBackgroundColor,a=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=gl(m)&&gl(d)&&gl(p),g=this.renderSection;if(h)return Object(se.createElement)(je.Placeholder,{label:Object(le.__)("Table"),icon:Object(se.createElement)(ce.BlockIcon,{icon:cl,showColors:!0}),instructions:Object(le.__)("Insert a table for sharing data.")},Object(se.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object(se.createElement)(je.TextControl,{type:"number",label:Object(le.__)("Column Count"),value:s,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(se.createElement)(je.TextControl,{type:"number",label:Object(le.__)("Row Count"),value:l,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(se.createElement)(je.Button,{className:"wp-block-table__placeholder-button",isSecondary:!0,type:"submit"},Object(le.__)("Create Table"))));var f=de()(o.class,{"has-fixed-layout":u,"has-background":!!o.color});return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(je.ToolbarGroup,null,Object(se.createElement)(je.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(le.__)("Edit table"),controls:this.getTableControls()})),Object(se.createElement)(ce.AlignmentToolbar,{label:Object(le.__)("Change column alignment"),alignmentControls:yl,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Table settings"),className:"blocks-table-settings"},Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Fixed width table cells"),checked:!!u,onChange:this.onChangeFixedLayout}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Header section"),checked:!(!m||!m.length),onChange:this.onToggleHeaderSection}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Footer section"),checked:!(!p||!p.length),onChange:this.onToggleFooterSection})),Object(se.createElement)(ce.PanelColorSettings,{title:Object(le.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(le.__)("Background Color"),disableCustomColors:!0,colors:jl}]})),Object(se.createElement)("figure",{className:r},Object(se.createElement)("table",{className:f},Object(se.createElement)(g,{name:"head",rows:m}),Object(se.createElement)(g,{name:"body",rows:d}),Object(se.createElement)(g,{name:"foot",rows:p})),Object(se.createElement)(ce.RichText,{tagName:"figcaption",placeholder:Object(le.__)("Write caption…"),value:b,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})}})))}}]),t}(se.Component),kl=wl("backgroundColor")(_l);var Cl=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},El={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Cl(e)},tfoot:{allowEmpty:!0,children:Cl(e)},tbody:{allowEmpty:!0,children:Cl(e)}}}}}}]},xl={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"}}}}}}},Sl=xl.name,Pl={title:Object(le.__)("Table"),description:Object(le.__)("Insert a table — perfect for sharing charts and data."),icon:cl,example:{attributes:{head:[{cells:[{content:Object(le.__)("Version"),tag:"th"},{content:Object(le.__)("Jazz Musician"),tag:"th"},{content:Object(le.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(le.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(le.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(le.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(le._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(le.__)("Stripes")}],supports:{align:!0},transforms:El,edit:kl,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!c.length)return null;var l=Object(ce.getColorClassName)("background-color",a),s=de()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!ce.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(se.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(se.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,c=e.align,a=de()(Object(re.a)({},"has-text-align-".concat(c),c));return Object(se.createElement)(ce.RichText.Content,{className:a||void 0,"data-align":c,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(se.createElement)("figure",null,Object(se.createElement)("table",{className:""===s?void 0:s},Object(se.createElement)(b,{type:"head",rows:r}),Object(se.createElement)(b,{type:"body",rows:o}),Object(se.createElement)(b,{type:"foot",rows:c})),u&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:al};var Tl={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(ae.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(ae.createBlock)("core/column",{},[Object(ae.createBlock)("core/paragraph",{content:t})])})))}}]},Nl={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"}}},Bl=Nl.name,Rl={supports:{inserter:!1},title:Object(le.__)("Text Columns (deprecated)"),description:Object(le.__)("This block is deprecated. Please use the Columns block instead."),transforms:Tl,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,c=t.content,a=t.columns;return el()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,null,Object(se.createElement)(je.RangeControl,{label:Object(le.__)("Columns"),value:a,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(se.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(a)},Object(ie.times)(a,(function(e){return Object(se.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(se.createElement)(ce.RichText,{tagName:"p",value:Object(ie.get)(c,[e,"children"]),onChange:function(t){n({content:[].concat(Object(ne.a)(c.slice(0,e)),[{children:t}],Object(ne.a)(c.slice(e+1)))})},placeholder:Object(le.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(se.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(ie.times)(o,(function(e){return Object(se.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(se.createElement)(ce.RichText.Content,{tagName:"p",value:Object(ie.get)(r,[e,"children"])}))})))}},Al=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"})),Ml=[{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(se.createElement)(ce.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var Il={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(ae.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(ae.createBlock)("core/paragraph",e)}}]},zl={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}}},Ll=zl.name,Hl={title:Object(le.__)("Verse"),description:Object(le.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Al,example:{attributes:{content:Object(le.__)("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(le.__)("poetry"),Object(le.__)("poem")],transforms:Il,deprecated:Ml,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,c=t.textAlign,a=t.content;return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.AlignmentToolbar,{value:c,onChange:function(e){n({textAlign:e})}})),Object(se.createElement)(ce.RichText,{tagName:"pre",preserveWhiteSpace:!0,value:a,onChange:function(e){n({content:e})},placeholder:Object(le.__)("Write…"),className:de()(r,Object(re.a)({},"has-text-align-".concat(c),c)),onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=de()(Object(re.a)({},"has-text-align-".concat(n),n));return Object(se.createElement)(ce.RichText.Content,{tagName:"pre",className:o,value:r})}},Dl=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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"})),Vl=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,c=n.loop,a=n.muted,i=n.playsInline,l=n.preload,s=function(e){return function(n){t(Object(re.a)({},e,n))}};return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Autoplay"),onChange:s("autoplay"),checked:r,help:function(e){return e?Object(le.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Loop"),onChange:s("loop"),checked:c}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Muted"),onChange:s("muted"),checked:a}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Playback Controls"),onChange:s("controls"),checked:o}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(se.createElement)(je.SelectControl,{label:Object(le.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(le.__)("Auto")},{value:"metadata",label:Object(le.__)("Metadata")},{value:"none",label:Object(le.__)("None")}]}))},Fl=["video"],Ul=["image"],Gl=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).videoPlayer=Object(se.createRef)(),e.posterImageButton=Object(se.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(De.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(De.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(De.a)(e)),e.onUploadError=e.onUploadError.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Fe.isBlobURL)(i)){var l=Object(Fe.getBlobByURL)(i);l&&n({filesList:[l],onFileChange:function(e){var t=Object(ve.a)(e,1)[0].url;o({src:t})},onError:function(e){r.createErrorNotice(e)},allowedTypes:Fl})}}},{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=ft({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,c=t.src,a=this.props,i=a.className,l=a.instanceId,s=a.isSelected,u=a.noticeUI,b=a.attributes,m=a.setAttributes,d=function(e){e&&e.url?m({src:e.url,id:e.id}):m({src:void 0,id:void 0})};if(!c)return Object(se.createElement)(ce.MediaPlaceholder,{icon:Object(se.createElement)(ce.BlockIcon,{icon:Dl}),className:i,onSelect:d,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:Fl,value:this.props.attributes,notices:u,onError:this.onUploadError});var p="video-block__poster-image-description-".concat(l);return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.BlockControls,null,Object(se.createElement)(ce.MediaReplaceFlow,{mediaURL:c,allowedTypes:Fl,accept:"video/*",onSelect:d,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Video settings")},Object(se.createElement)(Vl,{setAttributes:m,attributes:b}),Object(se.createElement)(ce.MediaUploadCheck,null,Object(se.createElement)(je.BaseControl,{className:"editor-video-poster-control"},Object(se.createElement)(je.BaseControl.VisualLabel,null,Object(le.__)("Poster Image")),Object(se.createElement)(ce.MediaUpload,{title:Object(le.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:Ul,render:function(t){var n=t.open;return Object(se.createElement)(je.Button,{isSecondary:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":p},e.props.attributes.poster?Object(le.__)("Replace image"):Object(le.__)("Select Poster Image"))}}),Object(se.createElement)("p",{id:p,hidden:!0},this.props.attributes.poster?Object(le.sprintf)(Object(le.__)("The current poster image url is %s"),this.props.attributes.poster):Object(le.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(se.createElement)(je.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(le.__)("Remove Poster Image")))))),Object(se.createElement)("figure",{className:i},Object(se.createElement)(je.Disabled,null,Object(se.createElement)("video",{controls:r,poster:o,src:c,ref:this.videoPlayer})),(!ce.RichText.isEmpty(n)||s)&&Object(se.createElement)(ce.RichText,{tagName:"figcaption",placeholder:Object(le.__)("Write caption…"),value:n,onChange:function(e){return m({caption:e})},inlineToolbar:!0})))}}]),t}(se.Component),ql=Object(ye.compose)([Object(we.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),je.withNotices,ye.withInstanceId])(Gl);var Wl={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(ae.createBlock)("core/video",{src:Object(Fe.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,c=t.webm,a=t.ogv,i=t.flv;return n||r||o||c||a||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}}}}]},Zl={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"}}},Kl=Zl.name,$l={title:Object(le.__)("Video"),description:Object(le.__)("Embed a video from your media library or upload a new one."),icon:Dl,keywords:[Object(le.__)("movie")],transforms:Wl,supports:{align:!0},edit:ql,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(se.createElement)("figure",null,s&&Object(se.createElement)("video",{autoPlay:n,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!ce.RichText.isEmpty(r)&&Object(se.createElement)(ce.RichText.Content,{tagName:"figcaption",value:r}))}},Ql=Object(se.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(se.createElement)(ue.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"})),Jl=function(e){function t(){var e;return Object(Ie.a)(this,t),(e=Object(Le.a)(this,Object(He.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(De.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(De.a)(e)),e}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(ie.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(le.__)("- Select -"),value:"",disabled:!0},n=Object(ie.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(ne.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(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.__)("Tag Cloud settings")},Object(se.createElement)(je.SelectControl,{label:Object(le.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object(se.createElement)(je.ToggleControl,{label:Object(le.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(se.createElement)(se.Fragment,null,o,Object(se.createElement)(Dn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(se.Component),Yl=Object(we.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(Jl),Xl="core/tag-cloud",es={title:Object(le.__)("Tag Cloud"),description:Object(le.__)("A cloud of your most used tags."),icon:Ql,category:"widgets",supports:{html:!1,align:!0},edit:Yl},ts=Object(se.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(ue.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(se.createElement)(ue.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(se.createElement)(ue.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(se.createElement)(ue.Rect,{x:"17",y:"8",width:"2",height:"2"}));function ns(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 rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var os=window.wp;var cs=function(e){function t(e){var n;return Object(Ie.a)(this,t),(n=Object(Le.a)(this,Object(He.a)(t).call(this,e))).initialize=n.initialize.bind(Object(De.a)(n)),n.onSetup=n.onSetup.bind(Object(De.a)(n)),n.focus=n.focus.bind(Object(De.a)(n)),n}return Object(Ve.a)(t,e),Object(ze.a)(t,[{key:"componentDidMount",value:function(){var e=window.wpEditorL10n.tinymce,t=e.baseURL,n=e.suffix;window.tinymce.EditorManager.overrideDefaults({base_url:t,suffix:n}),"complete"===document.readyState?this.initialize():window.addEventListener("DOMContentLoaded",this.initialize)}},{key:"componentWillUnmount",value:function(){window.addEventListener("DOMContentLoaded",this.initialize),os.oldEditor.remove("editor-".concat(this.props.clientId))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.clientId,r=t.attributes.content,o=window.tinymce.get("editor-".concat(n));e.attributes.content!==r&&o.setContent(r||"")}},{key:"initialize",value:function(){var e=this.props.clientId,t=window.wpEditorL10n.tinymce.settings;os.oldEditor.initialize("editor-".concat(e),{tinymce:rs({},t,{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(e),setup:this.onSetup})})}},{key:"onSetup",value:function(e){var t,n=this,r=this.props,o=r.attributes.content,c=r.setAttributes,a=this.ref;this.editor=e,o&&e.on("loadContent",(function(){return e.setContent(o)})),e.on("blur",(function(){return t=e.selection.getBookmark(2,!0),c({content:e.getContent()}),e.once("focus",(function(){t&&e.selection.moveToBookmark(t)})),!1})),e.on("mousedown touchstart",(function(){t=null})),e.on("keydown",(function(t){t.keyCode!==On.BACKSPACE&&t.keyCode!==On.DELETE||!function(e){var t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===On.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(le._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(a,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(a,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(le.__)("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(se.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(le.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(se.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(se.Component);var as={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},is=as.name,ls={title:Object(le._x)("Classic","block title"),description:Object(le.__)("Use the classic WordPress editor."),icon:ts,supports:{className:!1,customClassName:!1,reusable:!1},edit:cs,save:function(e){var t=e.attributes.content;return Object(se.createElement)(se.RawHTML,null,t)}},ss={fivehundredpx:{name:"500px",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},amazon:{name:"Amazon",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},bandcamp:{name:"Bandcamp",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},behance:{name:"Behance",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},chain:{name:"Link",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))}},codepen:{name:"CodePen",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},deviantart:{name:"DeviantArt",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},dribbble:{name:"Dribbble",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},dropbox:{name:"Dropbox",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},etsy:{name:"Etsy",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},facebook:{name:"Facebook",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},feed:{name:"RSS Feed",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},flickr:{name:"Flickr",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},foursquare:{name:"Foursquare",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},goodreads:{name:"Goodreads",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},google:{name:"Google",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},github:{name:"GitHub",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},instagram:{name:"Instagram",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},lastfm:{name:"Last.fm",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},linkedin:{name:"LinkedIn",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},mail:{name:"Mail",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},mastodon:{name:"Mastodon",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},meetup:{name:"Meetup",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},medium:{name:"Medium",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},pinterest:{name:"Pinterest",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},pocket:{name:"Pocket",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},reddit:{name:"Reddit",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},skype:{name:"Skype",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},snapchat:{name:"Snapchat",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},soundcloud:{name:"SoundCloud",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},spotify:{name:"Spotify",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},tumblr:{name:"Tumblr",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z"}))}},twitch:{name:"Twitch",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},twitter:{name:"Twitter",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},vimeo:{name:"Vimeo",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},vk:{name:"VK",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},wordpress:{name:"WordPress",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(se.createElement)(je.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},yelp:{name:"Yelp",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},youtube:{name:"YouTube",icon:function(){return Object(se.createElement)(je.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(se.createElement)(je.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}},us=ss,bs=Object.keys(us).map((function(e){return"core/social-link-"+e})),ms=[["core/social-link-wordpress",{url:"https://wordpress.org"}],["core/social-link-facebook"],["core/social-link-twitter"],["core/social-link-instagram"],["core/social-link-linkedin"],["core/social-link-youtube"]],ds=function(e){var t=e.className;return Object(se.createElement)("div",{className:t},Object(se.createElement)(ce.InnerBlocks,{allowedBlocks:bs,templateLock:!1,template:ms,__experimentalMoverDirection:"horizontal"}))};var ps={name:"core/social-links",category:"widgets",icon:"share",attributes:{}},hs=ps.name,gs={title:Object(le.__)("Social links"),description:Object(le.__)("Create a block of links to your social media or external sites"),supports:{align:["left","center","right"]},example:{innerBlocks:[{name:"core/social-link-wordpress",attributes:{url:"https://wordpress.org"}},{name:"core/social-link-facebook",attributes:{url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link-twitter",attributes:{url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(le.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(le.__)("Logos Only")},{name:"pill-shape",label:Object(le.__)("Pill Shape")}],edit:ds,save:function(e){var t=e.className;return Object(se.createElement)("ul",{className:t},Object(se.createElement)(ce.InnerBlocks.Content,null))}};function fs(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 Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vs={category:"widgets",parent:["core/social-links"],supports:{reusable:!1,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=t.url,c=t.site,a=t.label,i=Object(se.useState)(!1),l=Object(ve.a)(i,2),s=l[0],u=l[1],b=de()("wp-social-link","wp-social-link-"+c,{"wp-social-link__is-incomplete":!o}),m=function(e){return ss[e].icon}(c),d=function(e){return ss[e].name}(c);return Object(se.createElement)(se.Fragment,null,Object(se.createElement)(ce.InspectorControls,null,Object(se.createElement)(je.PanelBody,{title:Object(le.sprintf)(Object(le.__)("%s label"),d),initialOpen:!1},Object(se.createElement)(je.PanelRow,null,Object(se.createElement)(je.TextControl,{label:Object(le.__)("Link Label"),help:Object(le.__)("Briefly describe the link to help screen reader users."),value:a,onChange:function(e){return n({label:e})}})))),Object(se.createElement)(je.Button,{className:b,onClick:function(){return u(!0)}},Object(se.createElement)(m,null),r&&s&&Object(se.createElement)(ce.URLPopover,{onClose:function(){return u(!1)}},Object(se.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),u(!1)}},Object(se.createElement)("div",{className:"block-editor-url-input"},Object(se.createElement)(ce.URLInput,{value:o,onChange:function(e){return n({url:e})},placeholder:Object(le.__)("Enter Address"),disableSuggestions:!0})),Object(se.createElement)(je.Button,{icon:"editor-break",label:Object(le.__)("Apply"),type:"submit"})))))}},js=Object.keys(us).map((function(e){var t=us[e];return{name:"core/social-link-"+e,settings:Os({title:t.name,icon:t.icon,description:Object(le.__)("Link to "+t.name)},vs,{attributes:{url:{type:"string"},site:{type:"string",default:e},label:{type:"string"}}})}})),ys=Object(se.createElement)(ue.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),Object(se.createElement)(ue.Circle,{cx:"12",cy:"9",r:"2.5"}));var ws={name:"core/site-title",category:"layout"},_s=ws.name,ks={title:Object(le.__)("Site Title"),icon:ys,supports:{html:!1},edit:function(){var e=Object(oe.useEntityProp)("root","site","title"),t=Object(ve.a)(e,2),n=t[0],r=t[1];return Object(se.createElement)(ce.RichText,{tagName:"h1",placeholder:Object(le.__)("Site Title"),value:n,onChange:r,allowedFormats:[]})}};function Cs(e,t,n){return Object(we.useSelect)((function(r){if(e)return r("core").getEntityRecord("postType","wp_template_part",e)&&e;if(t&&n){var o=r("core").getEntityRecords("postType","wp_template_part",{status:"auto-draft",slug:t,meta:{theme:n}}),c=o&&o.find((function(e){return e.slug===t&&e.meta&&e.meta.theme===n}));return c&&c.id}}),[e,t,n])}function Es(){var e=Object(oe.useEntityBlockEditor)("postType","wp_template_part",{initialEdits:{status:"publish"}}),t=Object(ve.a)(e,3),n=t[0],r=t[1],o=t[2];return Object(se.createElement)(ce.InnerBlocks,{__experimentalBlocks:n,onInput:r,onChange:o})}var xs=n(23),Ss=n.n(xs),Ps=n(47);function Ts(){var e=Object(oe.useEntityBlockEditor)("postType","wp_template_part"),t=Object(ve.a)(e,1)[0];return Object(se.createElement)("div",{className:"wp-block-template-part__placeholder-preview"},Object(se.createElement)("div",{className:"wp-block-template-part__placeholder-preview-title"},Object(le.__)("Preview")),Object(se.createElement)(ce.BlockPreview,{blocks:t}))}function Ns(e){var t=e.setAttributes,n=Object(se.useState)(),r=Object(ve.a)(n,2),o=r[0],c=r[1],a=Object(se.useState)(),i=Object(ve.a)(a,2),l=i[0],s=i[1],u=Object(se.useState)(),b=Object(ve.a)(u,2),m=b[0],d=b[1],p=Cs(null,o,l),h=Object(we.useSelect)((function(e){if(p)return e("core").getEntityRecord("postType","wp_template_part",p)?Object(se.createElement)(oe.EntityProvider,{kind:"postType",type:"wp_template_part",id:p},Object(se.createElement)(Ts,null)):void 0}),[p]),g=Object(se.useCallback)((function(e){c(e),d(Object(Ue.cleanForSlug)(e))}),[]),f=Object(we.useDispatch)("core").saveEntityRecord,O=Object(se.useCallback)(Object(Ps.a)(Ss.a.mark((function e(){var n,r,c;return Ss.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={slug:o,theme:l},null==p){e.next=5;break}n.postId=p,e.next=16;break;case 5:return e.prev=5,r=Object(Ue.cleanForSlug)(o),e.next=9,f("postType","wp_template_part",{title:r,status:"publish",slug:r,meta:{theme:l}});case 9:c=e.sent,n.postId=c.id,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),d(Object(le.__)("Error adding template."));case 16:t(n);case 17:case"end":return e.stop()}}),e,null,[[5,13]])}))),[p,o,l]);return Object(se.createElement)(je.Placeholder,{icon:"layout",label:Object(le.__)("Template Part"),instructions:Object(le.__)("Choose a template part by slug and theme, or create a new one.")},Object(se.createElement)("div",{className:"wp-block-template-part__placeholder-input-container"},Object(se.createElement)(je.TextControl,{label:Object(le.__)("Slug"),placeholder:Object(le.__)("header"),value:o,onChange:g,help:m,className:"wp-block-template-part__placeholder-input"}),Object(se.createElement)(je.TextControl,{label:Object(le.__)("Theme"),placeholder:Object(le.__)("twentytwenty"),value:l,onChange:s,className:"wp-block-template-part__placeholder-input"})),h,Object(se.createElement)(je.Button,{isPrimary:!0,disabled:!o||!l,onClick:O},p?Object(le.__)("Choose"):Object(le.__)("Create")))}var Bs={name:"core/template-part",category:"layout",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"}}},Rs=Bs.name,As={title:Object(le.__)("Template Part"),supports:{html:!1},edit:function(e){var t=e.attributes,n=t.postId,r=t.slug,o=t.theme,c=e.setAttributes,a=Object(se.useRef)(n),i=Object(se.useRef)(r),l=Object(se.useRef)(o),s=Cs(n,r,o);return Object(se.useEffect)((function(){void 0!==a.current&&null!==a.current||null==s||c({postId:s})}),[s]),s?Object(se.createElement)(oe.EntityProvider,{kind:"postType",type:"wp_template_part",id:s},Object(se.createElement)(Es,null)):i.current||l.current?null:Object(se.createElement)(Ns,{setAttributes:c})}},Ms=Object(se.createElement)(ue.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.Path,{d:"M5 4v3h5.5v12h3V7H19V4H5z"}));var Is={name:"core/post-title",category:"layout"},zs=Is.name,Ls={title:Object(le.__)("Post Title"),icon:Ms,supports:{html:!1},edit:function(){return"Post Title Placeholder"}},Hs=Object(se.createElement)(ue.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(se.createElement)(ue.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}));var Ds={name:"core/post-content",category:"layout"},Vs=Ds.name,Fs={title:Object(le.__)("Post Content"),icon:Hs,supports:{html:!1},edit:function(){return"Post Content Placeholder"}};function Us(){var e=Object(oe.useEntityProp)("postType","post","author"),t=Object(ve.a)(e,1)[0],n=Object(we.useSelect)((function(e){return e("core").getEntityRecord("root","user",t)}),[t]);return n?Object(se.createElement)("address",null,Object(le.sprintf)(Object(le.__)("By %s"),n.name)):null}var Gs={name:"core/post-author",category:"layout"},qs=Gs.name,Ws={title:Object(le.__)("Post Author"),supports:{html:!1},edit:function(){return Object(oe.useEntityId)("postType","post")?Object(se.createElement)(Us,null):"Post Author Placeholder"}};function Zs(){var e=Object(oe.useEntityProp)("postType","post","date"),t=Object(ve.a)(e,1)[0],n=Object(ia.__experimentalGetSettings)();return t?Object(se.createElement)("time",{dateTime:Object(ia.dateI18n)("c",t)},Object(ia.dateI18n)(n.formats.date,t)):Object(le.__)("No Date")}var Ks={name:"core/post-date",category:"layout"},$s=Ks.name,Qs={title:Object(le.__)("Post Date"),supports:{html:!1},edit:function(){return Object(oe.useEntityId)("postType","post")?Object(se.createElement)(Zs,null):"Post Date Placeholder"}};function Js(){var e=Object(oe.useEntityProp)("postType","post","excerpt"),t=Object(ve.a)(e,2),n=t[0],r=t[1];return Object(se.createElement)(ce.PlainText,{value:n,onChange:r})}var Ys={name:"core/post-excerpt",category:"layout"},Xs=Ys.name,eu={title:Object(le.__)("Post Excerpt"),supports:{html:!1},edit:function(){return Object(oe.useEntityId)("postType","post")?Object(se.createElement)(Js,null):"Post Excerpt Placeholder"}};n.d(t,"registerCoreBlocks",(function(){return nu})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return ru}));var tu=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(ae.unstable__bootstrapServerSideBlockDefinitions)(Object(re.a)({},r,t)),Object(ae.registerBlockType)(r,n)}},nu=function(){[r,o,c,i,S,a,H,l,s,u,b,m,d,p,h,g,f,O].concat(Object(ne.a)(ec),Object(ne.a)(tc),[v,z,window.wp&&window.wp.oldEditor?Z:null,j,y,C,E,P,T,_,k,N,B,R,M,I,L,A,D,V,F,W,U,G,q]).forEach(tu),Object(ae.setDefaultBlockName)(Te),window.wp&&window.wp.oldEditor&&Object(ae.setFreeformContentHandlerName)(is),Object(ae.setUnregisteredTypeHandlerName)(Da),z&&Object(ae.setGroupingBlockName)(Ri)},ru=function(e){var t=e.__experimentalEnableLegacyWidgetBlock,n=e.__experimentalEnableFullSiteEditing;[t?x:null,K].concat(Object(ne.a)(js),Object(ne.a)(n?[$,Q,J,Y,X,ee,te]:[])).forEach(tu)}},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},36:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},37: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}))},38:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t){!function(){e.exports=this.wp.apiFetch}()},41:function(e,t){!function(){e.exports=this.wp.blob}()},43:function(e,t){!function(){e.exports=this.wp.coreData}()},45:function(e,t,n){e.exports=function(e,t){var n,r,o,c=0;function a(){var t,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a<l;a++)if(i.args[a]!==arguments[a]){i=i.next;continue e}return i!==r&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=r,i.prev=null,r.prev=i,r=i),i.val}i=i.next}for(t=new Array(l),a=0;a<l;a++)t[a]=arguments[a];return i={args:t,val:e.apply(null,t)},r?(r.prev=i,i.next=r):o=i,c===n?(o=o.prev).next=null:c++,r=i,i.val}return t&&t.maxSize&&(n=t.maxSize),a.clear=function(){r=null,o=null,c=0},a}},47:function(e,t,n){"use strict";function r(e,t,n,r,o,c,a){try{var i=e[c](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var a=e.apply(t,n);function i(e){r(a,o,c,i,l,"next",e)}function l(e){r(a,o,c,i,l,"throw",e)}i(void 0)}))}}n.d(t,"a",(function(){return o}))},49:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},52:function(e,t,n){var r;!function(o){var c=/^\s+/,a=/\s+$/,i=0,l=o.round,s=o.min,u=o.max,b=o.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,b=!1,m=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(a,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:H(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(d=e.r,p=e.g,h=e.b,t={r:255*R(d,255),g:255*R(p,255),b:255*R(h,255)},b=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=z(e.s),i=z(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=o.floor(e),c=e-r,a=n*(1-t),i=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,i,a,a,l,n][s],g:255*[l,n,n,i,a,a][s],b:255*[a,a,l,n,n,i][s]}}(e.h,r,i),b=!0,m="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=z(e.s),l=z(e.l),t=function(e,t,n){var r,o,c;function a(e,t,n){return n<0&&(n+=1),n>1&&(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=c=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(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,c=u(e,t,n),a=s(e,t,n),i=(c+a)/2;if(c==a)r=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:i}}function p(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,c=u(e,t,n),a=s(e,t,n),i=c,l=c-a;if(o=0===c?0:l/c,c==a)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:i}}function h(e,t,n,r){var o=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(e,t,n,r){return[I(L(r)),I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.s-=t/100,n.s=A(n.s),m(n)}function O(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.s+=t/100,n.s=A(n.s),m(n)}function v(e){return m(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.l+=t/100,n.l=A(n.l),m(n)}function y(e,t){t=0===t?0:t||10;var n=m(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),m(n)}function w(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.l-=t/100,n.l=A(n.l),m(n)}function _(e,t){var n=m(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,m(n)}function k(e){var t=m(e).toHsl();return t.h=(t.h+180)%360,m(t)}function C(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+120)%360,s:t.s,l:t.l}),m({h:(n+240)%360,s:t.s,l:t.l})]}function E(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+90)%360,s:t.s,l:t.l}),m({h:(n+180)%360,s:t.s,l:t.l}),m({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+72)%360,s:t.s,l:t.l}),m({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=m(e).toHsl(),o=360/n,c=[m(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(m(r));return c}function P(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,c=n.v,a=[],i=1/t;t--;)a.push(m({h:r,s:o,v:c})),c=(c+i)%1;return a}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 c=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16)),I(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.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(w,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(_,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(k,arguments)},monochromatic:function(){return this._applyCombination(P,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(),c=n/100;return m({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+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,c=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=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,n){var r,o,c,a,i=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,a=n.size;for(var s=0;s<t.length;s++)(r=m.readability(e,t[s]))>l&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var T=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}(T);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 M(e){return parseInt(e,16)}function I(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 M(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 G(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.date}()},55:function(e,t){!function(){e.exports=this.wp.viewport}()},59:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},68: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}))},8:function(e,t){!function(){e.exports=this.wp.compose}()},80:function(e,t){!function(){e.exports=this.wp.autop}()},83:function(e,t,n){var r; |