WordPress/wp-includes/js/dist/block-library.min.js
youknowriad ebca9841e8 Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1.
This brings the JS packages up to date and is the first step that will allow us 
to include the other block editor updates for WordPress 5.9:
FSE infrastrucutre, site editor and global styles.

Props noisysocks.
See #54337.

Built from https://develop.svn.wordpress.org/trunk@52042


git-svn-id: http://core.svn.wordpress.org/trunk@51634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-08 14:29:21 +00:00

14 lines
591 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="K51g")}({"+WrK":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=a},"//kF":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},"1CF3":function(e,t){e.exports=window.wp.dom},"1Yn1":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=a},"1ZqX":function(e,t){e.exports=window.wp.data},"1iEr":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},"2gm7":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},"4eJC":function(e,t,n){e.exports=function(e,t){var n,o,r=0;function a(){var a,l,c=n,i=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(l=0;l<i;l++)if(c.args[l]!==arguments[l]){c=c.next;continue e}return c!==n&&(c===o&&(o=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return c={args:a,val:e.apply(null,a)},n?(n.prev=c,c.next=n):o=c,r===t.maxSize?(o=o.prev).next=null:r++,n=c,c.val}return t=t||{},a.clear=function(){n=null,o=null,r=0},a}},"A/WM":function(e,t,n){var o;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,o=0;o<n;++o)r(e,t[o])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var o=/\s+/;function r(e,r){if(r){var a=typeof r;"string"===a?function(e,t){for(var n=t.split(o),r=n.length,a=0;a<r;++a)e[n[a]]=!0}(e,r):Array.isArray(r)?t(e,r):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var o in t)n.call(t,o)&&(e[o]=!!t[o]);else e[t.toString()]=!0}(e,r):"number"===a&&function(e,t){e[t]=!0}(e,r)}}return function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];var a=new e;t(a,o);var l=[];for(var c in a)a[c]&&l.push(c);return l.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},B9Az:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");var a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},Bpkj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=a},Civd:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},FEKF:function(e,t,n){
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(r)throw a}}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 o,r,a;return o=n,(r=[{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),o=this._getOriginalSize(e),r=this._prepareSizeAndPosition(o,t),a=null,l=n;if(!(r.srcWidth&&r.srcHeight&&r.destWidth&&r.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=r.destWidth,this._canvas.height=r.destHeight;try{this._ctx.clearRect(0,0,r.destWidth,r.destHeight),this._ctx.drawImage(e,r.srcLeft,r.srcTop,r.srcWidth,r.srcHeight,0,0,r.destWidth,r.destHeight);var c=this._ctx.getImageData(0,0,r.destWidth,r.destHeight).data;l=this.getColorFromArray4(c,t)}catch(e){a=e}return this._prepareResult(l,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var o=n-n%4,r=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](e,o,r)}},{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,o=this._getOption(t,"left",0),r=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),l=this._getOption(t,"height",e.height),c=a,i=l;return"precision"===t.mode||(a>l?(n=a/l,c=100,i=Math.round(c/n)):(n=l/a,i=100,c=Math.round(i/n)),(c>a||i>l||c<10||i<10)&&(c=a,i=l)),{srcLeft:o,srcTop:r,srcWidth:a,srcHeight:l,destWidth:c,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var o=0,r=0,a=0,l=0,c=0,i=0;i<t;i+=n){var s=e[i+3];o+=e[i]*s,r+=e[i+1]*s,a+=e[i+2]*s,l+=s,c++}return l?[Math.round(o/l),Math.round(r/l),Math.round(a/l),Math.round(l/c)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var o=0,r=0,a=0,l=0,c=0,i=0;i<t;i+=n){var s=e[i],u=e[i+1],m=e[i+2],d=e[i+3];o+=s*s*d,r+=u*u*d,a+=m*m*d,l+=d,c++}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(r/l)),Math.round(Math.sqrt(a/l)),Math.round(l/c)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,o){for(var r={},a=0;a<n;a+=o){var l=e[a],c=e[a+1],i=e[a+2],s=e[a+3],u=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(i/24);r[u]?r[u]=[r[u][0]+l*s,r[u][1]+c*s,r[u][2]+i*s,r[u][3]+s,r[u][4]+1]:r[u]=[l*s,c*s,i*s,s,1]}var m=t(Object.keys(r).map((function(e){return r[e]})).sort((function(e,t){var n=e[4],o=t[4];return n>o?-1:n===o?0:1}))[0],5),d=m[0],b=m[1],p=m[2],g=m[3],h=m[4];return g?[Math.round(d/g),Math.round(b/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var o=this,r=(n=n||{})&&n.data,a=this._getDefaultColor(n),l=function(){s(),t.call(e,o.getColor(e,n),r)},c=function(){s(),t.call(e,o._prepareResult(a,new Error("Image error")),r)},i=function(){s(),t.call(e,o._prepareResult(a,new Error("Image abort")),r)},s=function(){e.removeEventListener("load",l),e.removeEventListener("error",c),e.removeEventListener("abort",i)};e.addEventListener("load",l),e.addEventListener("error",c),e.addEventListener("abort",i)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),o=[].concat(n,e[3]/255),r=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:r,isLight:!r}}},{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(o.prototype,r),a&&e(o,a),n}()}()},FqII:function(e,t){e.exports=window.wp.date},G8mJ:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},JREk:function(e,t){e.exports=window.wp.serverSideRender},K51g:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetCoreBlocks",(function(){return Np})),n.d(t,"registerCoreBlocks",(function(){return Pp})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return zp}));var o={};n.r(o),n.d(o,"metadata",(function(){return Se})),n.d(o,"name",(function(){return Be})),n.d(o,"settings",(function(){return Te}));var r={};n.r(r),n.d(r,"metadata",(function(){return Je})),n.d(r,"name",(function(){return Qe})),n.d(r,"settings",(function(){return Ye}));var a={};n.r(a),n.d(a,"metadata",(function(){return vt})),n.d(a,"name",(function(){return Ot})),n.d(a,"settings",(function(){return jt}));var l={};n.r(l),n.d(l,"metadata",(function(){return St})),n.d(l,"name",(function(){return Bt})),n.d(l,"settings",(function(){return Tt}));var c={};n.r(c),n.d(c,"metadata",(function(){return Rt})),n.d(c,"name",(function(){return Lt})),n.d(c,"settings",(function(){return Vt}));var i={};n.r(i),n.d(i,"metadata",(function(){return Ft})),n.d(i,"name",(function(){return Dt})),n.d(i,"settings",(function(){return Gt}));var s={};n.r(s),n.d(s,"metadata",(function(){return $t})),n.d(s,"name",(function(){return Zt})),n.d(s,"settings",(function(){return Kt}));var u={};n.r(u),n.d(u,"metadata",(function(){return en})),n.d(u,"name",(function(){return tn})),n.d(u,"settings",(function(){return nn}));var m={};n.r(m),n.d(m,"metadata",(function(){return ln})),n.d(m,"name",(function(){return cn})),n.d(m,"settings",(function(){return sn}));var d={};n.r(d),n.d(d,"metadata",(function(){return kn})),n.d(d,"name",(function(){return wn})),n.d(d,"settings",(function(){return En}));var b={};n.r(b),n.d(b,"metadata",(function(){return Jn})),n.d(b,"name",(function(){return Qn})),n.d(b,"settings",(function(){return Yn}));var p={};n.r(p),n.d(p,"metadata",(function(){return Mo})),n.d(p,"name",(function(){return Ro})),n.d(p,"settings",(function(){return Lo}));var g={};n.r(g),n.d(g,"metadata",(function(){return Jo})),n.d(g,"name",(function(){return Qo})),n.d(g,"settings",(function(){return Yo}));var h={};n.r(h),n.d(h,"metadata",(function(){return Ar})),n.d(h,"name",(function(){return Hr})),n.d(h,"settings",(function(){return Fr}));var v={};n.r(v),n.d(v,"metadata",(function(){return Zr})),n.d(v,"name",(function(){return Kr})),n.d(v,"settings",(function(){return Jr}));var O={};n.r(O),n.d(O,"metadata",(function(){return ga})),n.d(O,"name",(function(){return ha})),n.d(O,"settings",(function(){return va}));var j={};n.r(j),n.d(j,"metadata",(function(){return ya})),n.d(j,"name",(function(){return fa})),n.d(j,"settings",(function(){return _a}));var y={};n.r(y),n.d(y,"metadata",(function(){return Ma})),n.d(y,"name",(function(){return Ra})),n.d(y,"settings",(function(){return La}));var f={};n.r(f),n.d(f,"metadata",(function(){return Aa})),n.d(f,"name",(function(){return Ha})),n.d(f,"settings",(function(){return Fa}));var _={};n.r(_),n.d(_,"metadata",(function(){return Ja})),n.d(_,"name",(function(){return Qa})),n.d(_,"settings",(function(){return Ya}));var k={};n.r(k),n.d(k,"metadata",(function(){return ml})),n.d(k,"name",(function(){return dl})),n.d(k,"settings",(function(){return bl}));var w={};n.r(w),n.d(w,"metadata",(function(){return gl})),n.d(w,"name",(function(){return hl})),n.d(w,"settings",(function(){return vl}));var E={};n.r(E),n.d(E,"metadata",(function(){return Rl})),n.d(E,"name",(function(){return Ll})),n.d(E,"settings",(function(){return Vl}));var C={};n.r(C),n.d(C,"metadata",(function(){return Fl})),n.d(C,"name",(function(){return Dl})),n.d(C,"settings",(function(){return Gl}));var x={};n.r(x),n.d(x,"metadata",(function(){return $l})),n.d(x,"name",(function(){return Zl})),n.d(x,"settings",(function(){return Kl}));var S={};n.r(S),n.d(S,"metadata",(function(){return Pc})),n.d(S,"name",(function(){return zc})),n.d(S,"settings",(function(){return Ic}));var B={};n.r(B),n.d(B,"metadata",(function(){return Ac})),n.d(B,"name",(function(){return Hc})),n.d(B,"settings",(function(){return Fc}));var T={};n.r(T),n.d(T,"metadata",(function(){return ni})),n.d(T,"name",(function(){return oi})),n.d(T,"settings",(function(){return ri}));var N={};n.r(N),n.d(N,"metadata",(function(){return bi})),n.d(N,"name",(function(){return pi})),n.d(N,"settings",(function(){return gi}));var P={};n.r(P),n.d(P,"metadata",(function(){return Oi})),n.d(P,"name",(function(){return ji})),n.d(P,"settings",(function(){return yi}));var z={};n.r(z),n.d(z,"metadata",(function(){return _i})),n.d(z,"name",(function(){return ki})),n.d(z,"settings",(function(){return wi}));var I={};n.r(I),n.d(I,"metadata",(function(){return Ii})),n.d(I,"name",(function(){return Mi})),n.d(I,"settings",(function(){return Ri}));var M={};n.r(M),n.d(M,"metadata",(function(){return $i})),n.d(M,"name",(function(){return Zi})),n.d(M,"settings",(function(){return Ki}));var R={};n.r(R),n.d(R,"metadata",(function(){return Yi})),n.d(R,"name",(function(){return Xi})),n.d(R,"settings",(function(){return es}));var L={};n.r(L),n.d(L,"metadata",(function(){return os})),n.d(L,"name",(function(){return rs})),n.d(L,"settings",(function(){return as}));var V={};n.r(V),n.d(V,"metadata",(function(){return bs})),n.d(V,"name",(function(){return ps})),n.d(V,"settings",(function(){return gs}));var A={};n.r(A),n.d(A,"metadata",(function(){return Os})),n.d(A,"name",(function(){return js})),n.d(A,"settings",(function(){return ys}));var H={};n.r(H),n.d(H,"metadata",(function(){return _s})),n.d(H,"name",(function(){return ks})),n.d(H,"settings",(function(){return ws}));var F={};n.r(F),n.d(F,"metadata",(function(){return Ps})),n.d(F,"name",(function(){return zs})),n.d(F,"settings",(function(){return Is}));var D={};n.r(D),n.d(D,"metadata",(function(){return As})),n.d(D,"name",(function(){return Hs})),n.d(D,"settings",(function(){return Fs}));var G={};n.r(G),n.d(G,"metadata",(function(){return Us})),n.d(G,"name",(function(){return Ws})),n.d(G,"settings",(function(){return $s}));var q={};n.r(q),n.d(q,"metadata",(function(){return Js})),n.d(q,"name",(function(){return Qs})),n.d(q,"settings",(function(){return Ys}));var U={};n.r(U),n.d(U,"metadata",(function(){return eu})),n.d(U,"name",(function(){return tu})),n.d(U,"settings",(function(){return nu}));var W={};n.r(W),n.d(W,"metadata",(function(){return au})),n.d(W,"name",(function(){return lu})),n.d(W,"settings",(function(){return cu}));var $={};n.r($),n.d($,"metadata",(function(){return pu})),n.d($,"name",(function(){return gu})),n.d($,"settings",(function(){return hu}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return Lu})),n.d(Z,"name",(function(){return Vu})),n.d(Z,"settings",(function(){return Au}));var K={};n.r(K),n.d(K,"metadata",(function(){return qu})),n.d(K,"name",(function(){return Uu})),n.d(K,"settings",(function(){return Wu}));var J={};n.r(J),n.d(J,"metadata",(function(){return Ku})),n.d(J,"name",(function(){return Ju})),n.d(J,"settings",(function(){return Qu}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return em})),n.d(Q,"name",(function(){return tm})),n.d(Q,"settings",(function(){return nm}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return am})),n.d(Y,"name",(function(){return lm})),n.d(Y,"settings",(function(){return cm}));var X={};n.r(X),n.d(X,"metadata",(function(){return bm})),n.d(X,"name",(function(){return pm})),n.d(X,"settings",(function(){return gm}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return fm})),n.d(ee,"name",(function(){return _m})),n.d(ee,"settings",(function(){return km}));var te={};n.r(te),n.d(te,"metadata",(function(){return xm})),n.d(te,"name",(function(){return Sm})),n.d(te,"settings",(function(){return Bm}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return Nm})),n.d(ne,"name",(function(){return Pm})),n.d(ne,"settings",(function(){return zm}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return Fm})),n.d(oe,"name",(function(){return Dm})),n.d(oe,"settings",(function(){return Gm}));var re={};n.r(re),n.d(re,"metadata",(function(){return Zm})),n.d(re,"name",(function(){return Km})),n.d(re,"settings",(function(){return Jm}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return ed})),n.d(ae,"name",(function(){return td})),n.d(ae,"settings",(function(){return nd}));var le={};n.r(le),n.d(le,"metadata",(function(){return ld})),n.d(le,"name",(function(){return cd})),n.d(le,"settings",(function(){return id}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return md})),n.d(ce,"name",(function(){return dd})),n.d(ce,"settings",(function(){return bd}));var ie={};n.r(ie),n.d(ie,"metadata",(function(){return jd})),n.d(ie,"name",(function(){return yd})),n.d(ie,"settings",(function(){return fd}));var se={};n.r(se),n.d(se,"metadata",(function(){return Bd})),n.d(se,"name",(function(){return Td})),n.d(se,"settings",(function(){return Nd}));var ue={};n.r(ue),n.d(ue,"metadata",(function(){return Vd})),n.d(ue,"name",(function(){return Ad})),n.d(ue,"settings",(function(){return Hd}));var me={};n.r(me),n.d(me,"metadata",(function(){return Gd})),n.d(me,"name",(function(){return qd})),n.d(me,"settings",(function(){return Ud}));var de={};n.r(de),n.d(de,"metadata",(function(){return Ob})),n.d(de,"name",(function(){return jb})),n.d(de,"settings",(function(){return yb}));var be={};n.r(be),n.d(be,"metadata",(function(){return _b})),n.d(be,"name",(function(){return kb})),n.d(be,"settings",(function(){return wb}));var pe={};n.r(pe),n.d(pe,"metadata",(function(){return Ub})),n.d(pe,"name",(function(){return Wb})),n.d(pe,"settings",(function(){return $b}));var ge={};n.r(ge),n.d(ge,"metadata",(function(){return Kb})),n.d(ge,"name",(function(){return Jb})),n.d(ge,"settings",(function(){return Qb}));var he={};n.r(he),n.d(he,"metadata",(function(){return tp})),n.d(he,"name",(function(){return np})),n.d(he,"settings",(function(){return op}));var ve={};n.r(ve),n.d(ve,"metadata",(function(){return cp})),n.d(ve,"name",(function(){return ip})),n.d(ve,"settings",(function(){return sp}));var Oe={};n.r(Oe),n.d(Oe,"metadata",(function(){return xp})),n.d(Oe,"name",(function(){return Sp})),n.d(Oe,"settings",(function(){return Bp}));var je=n("HSyU"),ye=n("GRId"),fe=n("Tqx9");var _e=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),ke=n("tI+e"),we=n("l3Sj"),Ee=n("axFQ"),Ce=n("JREk"),xe=n.n(Ce);const Se={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:Be}=Se,Te={icon:_e,example:{},edit:function({attributes:e,setAttributes:t}){const{showPostCounts:n,displayAsDropdown:o}=e;return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Archives settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display as dropdown"),checked:o,onChange:()=>t({displayAsDropdown:!o})}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})}))),Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)(ke.Disabled,null,Object(ye.createElement)(xe.a,{block:"core/archives",attributes:e}))))}};var Ne=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Pe=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:a}=e;return Object(ye.createElement)("figure",null,Object(ye.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:o,preload:r}),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:n}))}}],ze=n("xTGt"),Ie=n("1ZqX");const Me=[{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"}];var Re=n("YLtl"),Le=n("A/WM"),Ve=n.n(Le),Ae=n("4eJC"),He=n.n(Ae);const{name:Fe}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},De=e=>e&&e.includes('class="wp-embedded-content"'),Ge=(e,t={})=>{var n;const{preview:o,attributes:r={}}=e,{url:a,providerNameSlug:l,type:c,...i}=r;if(!a||!Object(je.getBlockType)(Fe))return;const s=(e=>{var t;return null===(t=Object(je.getBlockVariations)(Fe))||void 0===t?void 0:t.find(({patterns:t})=>((e,t=[])=>t.some(t=>e.match(t)))(e,t))})(a),u="wordpress"===l||"wp-embed"===c;if(!u&&s&&(s.attributes.providerNameSlug!==l||!l))return Object(je.createBlock)(Fe,{url:a,...i,...s.attributes});const m=null===(n=Object(je.getBlockVariations)(Fe))||void 0===n?void 0:n.find(({name:e})=>"wordpress"===e);return m&&o&&De(o.html)&&!u?Object(je.createBlock)(Fe,{url:a,...m.attributes,...t}):void 0},qe=e=>{if(!e)return e;const t=Me.reduce((e,{className:t})=>(e[t]=!1,e),{"wp-has-aspect-ratio":!1});return Ve()(e,t)};function Ue(e,t,n=!0){if(!n)return qe(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const r=o.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let n=0;n<Me.length;n++){const o=Me[n];if(e>=o.ratio){return e-o.ratio>.1?qe(t):Ve()(qe(t),o.className,"wp-has-aspect-ratio")}}}return t}const We=He()((e,t,n,o,r=!0)=>{if(!e)return{};const a={};let{type:l="rich"}=e;const{html:c,provider_name:i}=e,s=Object(Re.kebabCase)((i||t).toLowerCase());return De(c)&&(l="wp-embed"),(c||"photo"===l)&&(a.type=l,a.providerNameSlug=s),a.className=Ue(c,n,o&&r),a}),$e=["audio"];var Ze=Object(ke.withNotices)((function({attributes:e,noticeOperations:t,setAttributes:n,onReplace:o,isSelected:r,noticeUI:a,insertBlocksAfter:l}){const{id:c,autoplay:i,caption:s,loop:u,preload:m,src:d}=e,b=Object(Ee.useBlockProps)(),p=Object(Ie.useSelect)(e=>{const{getSettings:t}=e(Ee.store);return t().mediaUpload},[]);function g(e){return t=>{n({[e]:t})}}function h(e){if(e!==d){const t=Ge({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function v(e){t.removeAllNotices(),t.createErrorNotice(e)}function O(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(ye.useEffect)(()=>{if(!c&&Object(ze.isBlobURL)(d)){const e=Object(ze.getBlobByURL)(d);e&&p({filesList:[e],onFileChange:([{id:e,url:t}])=>{n({id:e,src:t})},onError:e=>{n({src:void 0,id:void 0}),t.createErrorNotice(e)},allowedTypes:$e})}},[]),d?Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:c,mediaURL:d,allowedTypes:$e,accept:"audio/*",onSelect:O,onSelectURL:h,onError:v})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Audio settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Autoplay"),onChange:g("autoplay"),checked:i,help:function(e){return e?Object(we.__)("Autoplay may cause usability issues for some users."):null}}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Loop"),onChange:g("loop"),checked:u}),Object(ye.createElement)(ke.SelectControl,{label:Object(we._x)("Preload","noun; Audio block parameter"),value:m||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:Object(we.__)("Browser default")},{value:"auto",label:Object(we.__)("Auto")},{value:"metadata",label:Object(we.__)("Metadata")},{value:"none",label:Object(we._x)("None",'"Preload" value')}]}))),Object(ye.createElement)("figure",b,Object(ye.createElement)(ke.Disabled,{isDisabled:!r},Object(ye.createElement)("audio",{controls:"controls",src:d})),(!Ee.RichText.isEmpty(s)||r)&&Object(ye.createElement)(Ee.RichText,{tagName:"figcaption","aria-label":Object(we.__)("Audio caption text"),placeholder:Object(we.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>l(Object(je.createBlock)("core/paragraph"))}))):Object(ye.createElement)("div",b,Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:Ne}),onSelect:O,onSelectURL:h,accept:"audio/*",allowedTypes:$e,value:e,notices:a,onError:v}))}));var Ke={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return Object(je.createBlock)("core/audio",{src:Object(ze.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:r,wma:a}})=>e||t||n||o||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const Je={apiVersion:2,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},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:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:Qe}=Je,Ye={icon:Ne,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"}},transforms:Ke,deprecated:Pe,edit:Ze,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:a}=e;return a&&Object(ye.createElement)("figure",Ee.useBlockProps.save(),Object(ye.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:o,preload:r}),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:n}))}};var Xe=n("oMoS"),et=n("TSYQ"),tt=n.n(et),nt=n("K9lf");const ot=e=>{if(!Object(Re.isObject)(e)||Array.isArray(e))return e;const t=Object(Re.pickBy)(Object(Re.mapValues)(e,ot),Re.identity);return Object(Re.isEmpty)(t)?void 0:t};var rt=ot,at=function(e){var t,n;if(null==e||null===(t=e.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.fontFamily)return e;const o=Object(Re.cloneDeep)(e),r=o.style.typography.fontFamily.split("|").pop();return delete o.style.typography.fontFamily,o.style=rt(o.style),{...o,fontFamily:r}};const lt=e=>{var t,n,o;const{borderRadius:r,...a}=e,l=[r,null===(t=a.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius].find(e=>"number"==typeof e&&0!==e);return l?{...a,style:{...a.style,border:{...null===(o=a.style)||void 0===o?void 0:o.border,radius:l+"px"}}}:a},ct=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...Object(Re.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},it=e=>ct(Object(Re.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),st={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"}};var ut=[{attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){var n,o;const{fontSize:r,linkTarget:a,rel:l,style:c,text:i,title:s,url:u,width:m}=e;if(!i)return null;const d=Object(Ee.__experimentalGetBorderClassesAndStyles)(e),b=Object(Ee.__experimentalGetColorClassesAndStyles)(e),p=Object(Ee.__experimentalGetSpacingClassesAndStyles)(e),g=tt()("wp-block-button__link",b.className,d.className,{"no-border-radius":0===(null==c||null===(n=c.border)||void 0===n?void 0:n.radius)}),h={...d.style,...b.style,...p.style},v=tt()(t,{["has-custom-width wp-block-button__width-"+m]:m,"has-custom-font-size":r||(null==c||null===(o=c.typography)||void 0===o?void 0:o.fontSize)});return Object(ye.createElement)("div",Ee.useBlockProps.save({className:v}),Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:g,href:u,title:s,style:h,value:i,target:a,rel:l}))},migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){var t;return"number"==typeof(null==e||null===(t=e.border)||void 0===t?void 0:t.radius)},save({attributes:e,className:t}){var n,o,r;const{fontSize:a,linkTarget:l,rel:c,style:i,text:s,title:u,url:m,width:d}=e;if(!s)return null;const b=null==i||null===(n=i.border)||void 0===n?void 0:n.radius,p=Object(Ee.__experimentalGetColorClassesAndStyles)(e),g=tt()("wp-block-button__link",p.className,{"no-border-radius":0===(null==i||null===(o=i.border)||void 0===o?void 0:o.radius)}),h={borderRadius:b||void 0,...p.style},v=tt()(t,{["has-custom-width wp-block-button__width-"+d]:d,"has-custom-font-size":a||(null==i||null===(r=i.typography)||void 0===r?void 0:r.fontSize)});return Object(ye.createElement)("div",Ee.useBlockProps.save({className:v}),Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:g,href:m,title:u,style:h,value:s,target:l,rel:c}))},migrate:Object(nt.compose)(at,lt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:a,title:l,url:c,width:i}=e,s=Object(Ee.__experimentalGetColorClassesAndStyles)(e),u=tt()("wp-block-button__link",s.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...s.style},d=tt()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(ye.createElement)("div",Ee.useBlockProps.save({className:d}),Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:u,href:c,title:l,style:m,value:a,target:o,rel:r}))},migrate:Object(nt.compose)(at,lt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:a,title:l,url:c,width:i}=e,s=Object(Ee.__experimentalGetColorClassesAndStyles)(e),u=tt()("wp-block-button__link",s.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...s.style},d=tt()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(ye.createElement)("div",Ee.useBlockProps.save({className:d}),Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:u,href:c,title:l,style:m,value:a,target:o,rel:r}))},migrate:Object(nt.compose)(at,lt)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...st,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:r,title:a,url:l}=e,c=tt()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:c,href:l,title:a,style:i,value:r,target:n,rel:o})},migrate:lt},{supports:{align:!0,alignWide:!1},attributes:{...st,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient,migrate:Object(nt.compose)(lt,ct),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:r,customGradient:a,linkTarget:l,gradient:c,rel:i,text:s,textColor:u,title:m,url:d}=e,b=Object(Ee.getColorClassName)("color",u),p=!a&&Object(Ee.getColorClassName)("background-color",t),g=Object(Ee.__experimentalGetGradientClass)(c),h=tt()("wp-block-button__link",{"has-text-color":u||r,[b]:b,"has-background":t||o||a||c,[p]:p,"no-border-radius":0===n,[g]:g}),v={background:a||void 0,backgroundColor:p||a||c?void 0:o,color:b?void 0:r,borderRadius:n?n+"px":void 0};return Object(ye.createElement)("div",null,Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:h,href:d,title:m,style:v,value:s,target:l,rel:i}))}},{attributes:{...st,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),lt(ct({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:r,rel:a,text:l,textColor:c,title:i,url:s}=e,u=Object(Ee.getColorClassName)("color",c),m=Object(Ee.getColorClassName)("background-color",t),d=tt()("wp-block-button__link",{"has-text-color":c||o,[u]:u,"has-background":t||n,[m]:m}),b={backgroundColor:m?void 0:n,color:u?void 0:o};return Object(ye.createElement)("div",null,Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:b,value:l,target:r,rel:a}))}},{attributes:{...st,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:it,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:r,textColor:a,customBackgroundColor:l,customTextColor:c}=e,i=Object(Ee.getColorClassName)("color",a),s=Object(Ee.getColorClassName)("background-color",r),u=tt()("wp-block-button__link",{"has-text-color":a||c,[i]:i,"has-background":r||l,[s]:s}),m={backgroundColor:s?void 0:l,color:i?void 0:c};return Object(ye.createElement)("div",null,Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:m,value:n}))}},{attributes:{...st,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:a,textColor:l}=e,c={backgroundColor:a,color:l};return Object(ye.createElement)("div",{className:"align"+r},Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:c,value:n}))},migrate:it},{attributes:{...st,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:a,textColor:l}=e;return Object(ye.createElement)("div",{className:"align"+r,style:{backgroundColor:a}},Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:n}))},migrate:it}],mt=n("wx14"),dt=n("RxS6"),bt=n("Bpkj"),pt=n("Mp0b");function gt({selectedWidth:e,setAttributes:t}){return Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Width settings")},Object(ye.createElement)(ke.ButtonGroup,{"aria-label":Object(we.__)("Button width")},[25,50,75,100].map(n=>Object(ye.createElement)(ke.Button,{key:n,isSmall:!0,variant:n===e?"primary":void 0,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%"))))}var ht=function(e){var t;const{attributes:n,setAttributes:o,className:r,isSelected:a,onReplace:l,mergeBlocks:c}=e,{linkTarget:i,placeholder:s,rel:u,style:m,text:d,url:b,width:p}=n,g=Object(ye.useCallback)(e=>{o({rel:e})},[o]),h=Object(Ee.__experimentalUseBorderProps)(n),v=Object(Ee.__experimentalUseColorProps)(n),O=Object(Ee.__experimentalGetSpacingClassesAndStyles)(n),j=Object(ye.useRef)(),y=Object(ye.useRef)(),f=Object(Ee.useBlockProps)({ref:j,onKeyDown:function(e){if(dt.isKeyboardEvent.primary(e,"k"))C(e);else if(dt.isKeyboardEvent.primaryShift(e,"k")){var t;x(),null===(t=y.current)||void 0===t||t.focus()}}}),[_,k]=Object(ye.useState)(!1),w=!!b,E="_blank"===i;function C(e){e.preventDefault(),k(!0)}function x(){o({url:void 0,linkTarget:void 0,rel:void 0}),k(!1)}return Object(ye.useEffect)(()=>{a||k(!1)},[a]),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("div",Object(mt.a)({},f,{className:tt()(f.className,{["has-custom-width wp-block-button__width-"+p]:p,"has-custom-font-size":f.style.fontSize})}),Object(ye.createElement)(Ee.RichText,{ref:y,"aria-label":Object(we.__)("Button text"),placeholder:s||Object(we.__)("Add text…"),value:d,onChange:e=>{o({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:tt()(r,"wp-block-button__link",v.className,h.className,{"no-border-radius":0===(null==m||null===(t=m.border)||void 0===t?void 0:t.radius)}),style:{...h.style,...v.style,...O.style},onSplit:e=>Object(je.createBlock)("core/button",{...n,text:e}),onReplace:l,onMerge:c,identifier:"text"})),Object(ye.createElement)(Ee.BlockControls,{group:"block"},!w&&Object(ye.createElement)(ke.ToolbarButton,{name:"link",icon:bt.a,title:Object(we.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:C}),w&&Object(ye.createElement)(ke.ToolbarButton,{name:"link",icon:pt.a,title:Object(we.__)("Unlink"),shortcut:dt.displayShortcut.primaryShift("k"),onClick:x,isActive:!0})),a&&(_||w)&&Object(ye.createElement)(ke.Popover,{position:"bottom center",onClose:()=>{var e;k(!1),null===(e=y.current)||void 0===e||e.focus()},anchorRef:null==j?void 0:j.current,focusOnMount:!!_&&"firstElement"},Object(ye.createElement)(Ee.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:b,opensInNewTab:E},onChange:({url:e="",opensInNewTab:t})=>{o({url:e}),E!==t&&function(e){const t=e?"_blank":void 0;let n=u;t&&!u?n="noreferrer noopener":t||"noreferrer noopener"!==u||(n=void 0),o({linkTarget:t,rel:n})}(t)},onRemove:()=>{var e;x(),null===(e=y.current)||void 0===e||e.focus()},forceIsEditingLink:_})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(gt,{selectedWidth:p,setAttributes:o})),Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Link rel"),value:u||"",onChange:g})))};const vt={apiVersion:2,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:Ot}=vt,jt={icon:Xe.a,example:{attributes:{className:"is-style-fill",text:Object(we.__)("Call to Action")}},edit:ht,save:function({attributes:e,className:t}){var n,o;const{fontSize:r,linkTarget:a,rel:l,style:c,text:i,title:s,url:u,width:m}=e;if(!i)return null;const d=Object(Ee.__experimentalGetBorderClassesAndStyles)(e),b=Object(Ee.__experimentalGetColorClassesAndStyles)(e),p=Object(Ee.__experimentalGetSpacingClassesAndStyles)(e),g=tt()("wp-block-button__link",b.className,d.className,{"no-border-radius":0===(null==c||null===(n=c.border)||void 0===n?void 0:n.radius)}),h={...d.style,...b.style,...p.style},v=tt()(t,{["has-custom-width wp-block-button__width-"+m]:m,"has-custom-font-size":r||(null==c||null===(o=c.typography)||void 0===o?void 0:o.fontSize)});return Object(ye.createElement)("div",Ee.useBlockProps.save({className:v}),Object(ye.createElement)(Ee.RichText.Content,{tagName:"a",className:g,href:u,title:s,style:h,value:i,target:a,rel:l}))},deprecated:ut,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})};var yt=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));const ft=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n}=e,o={...e};return(t||n)&&Object.assign(o,{layout:{type:"flex",justifyContent:t||"left",orientation:n||"horizontal"}}),o};var _t=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({layout:e})=>!e,migrate:ft,save:({attributes:{contentJustification:e,orientation:t}})=>Object(ye.createElement)("div",Ee.useBlockProps.save({className:tt()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),Object(ye.createElement)(Ee.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>Object(ye.createElement)("div",null,Object(ye.createElement)(Ee.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>ft({...e,align:void 0,contentJustification:e.align})}],kt=n("qRz9");const{name:wt}={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var Et={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>Object(je.createBlock)(wt,{},e.map(e=>Object(je.createBlock)("core/button",e)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(je.createBlock)(wt,{},e.map(e=>{const t=Object(kt.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),r=null==o?void 0:o.getAttribute("href");return Object(je.createBlock)("core/button",{text:n,url:r})})),isMatch:e=>e.every(e=>{const t=Object(kt.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1})}]};const Ct=[Ot];var xt=function({attributes:{layout:e={}}}){const t=Object(Ee.useBlockProps)(),n=Object(Ie.useSelect)(e=>{var t;const n=e(Ee.store).getSettings().__experimentalPreferredStyleVariations;return null==n||null===(t=n.value)||void 0===t?void 0:t[Ot]},[]),o=Object(Ee.useInnerBlocksProps)(t,{allowedBlocks:Ct,template:[[Ot,{className:n&&"is-style-"+n}]],__experimentalLayout:e,templateInsertUpdatesSelection:!0});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block",__experimentalShareWithChildBlocks:!0}),Object(ye.createElement)("div",o))};const St={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Bt}=St,Tt={icon:yt,example:{innerBlocks:[{name:"core/button",attributes:{text:Object(we.__)("Find out more")}},{name:"core/button",attributes:{text:Object(we.__)("Contact us")}}]},deprecated:_t,transforms:Et,edit:xt,save:function(){const e=Ee.useInnerBlocksProps.save(Ee.useBlockProps.save());return Object(ye.createElement)("div",e)}};var Nt=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Pt=n("wy2R"),zt=n.n(Pt),It=n("jZUy");const Mt=He()(e=>{if(!e)return{};const t=zt()(e);return{year:t.year(),month:t.month()+1}});const Rt={apiVersion:2,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your sites posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},{name:Lt}=Rt,Vt={icon:Nt,example:{},edit:function({attributes:e}){const t=Object(Ee.useBlockProps)(),{date:n,hasPosts:o,hasPostsResolved:r}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store),o={status:"publish",per_page:1},r=t("postType","post",o),a=n("getEntityRecords",["postType","post",o]);let l;const c=e("core/editor");if(c){"post"===c.getEditedPostAttribute("type")&&(l=c.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:a,hasPosts:a&&1===(null==r?void 0:r.length)}},[]);return o?Object(ye.createElement)("div",t,Object(ye.createElement)(ke.Disabled,null,Object(ye.createElement)(xe.a,{block:"core/calendar",attributes:{...e,...Mt(n)}}))):Object(ye.createElement)("div",t,Object(ye.createElement)(ke.Placeholder,{icon:Nt,label:Object(we.__)("Calendar")},r?Object(we.__)("No published posts found."):Object(ye.createElement)(ke.Spinner,null)))}};var At=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var Ht=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));const Ft={apiVersion:2,name:"core/categories",title:"Categories",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Dt}=Ft,Gt={icon:At,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o,showOnlyTopLevel:r},setAttributes:a}){const l=Object(nt.useInstanceId)(e,"blocks-category-select"),{categories:c,isRequesting:i}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t,isResolving:n}=e(It.store),o={per_page:-1,hide_empty:!0,context:"view"};return r&&(o.parent=0),{categories:t("taxonomy","category",o),isRequesting:n("getEntityRecords",["taxonomy","category",o])}},[r]),s=e=>null!=c&&c.length?null===e?c:c.filter(({parent:t})=>t===e):[],u=e=>"wp-block-categories__list wp-block-categories__list-level-"+e,m=e=>t=>a({[e]:t}),d=e=>e?Object(Re.unescape)(e).trim():Object(we.__)("(Untitled)"),b=(e,t)=>{const r=s(e.id),{id:a,link:l,count:c,name:i}=e;return Object(ye.createElement)("li",{key:a},Object(ye.createElement)("a",{href:l,target:"_blank",rel:"noreferrer noopener"},d(i)),o&&Object(ye.createElement)("span",{className:"wp-block-categories__post-count"},` (${c})`),n&&!!r.length&&Object(ye.createElement)("ul",{className:u(t+1)},r.map(e=>b(e,t+1))))},p=(e,t)=>{const{id:r,count:a,name:l}=e,c=s(r);return[Object(ye.createElement)("option",{key:r},Object(Re.times)(3*t,()=>" "),d(l),o&&` (${a})`),n&&!!c.length&&c.map(e=>p(e,t+1))]};return Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Categories settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display as dropdown"),checked:t,onChange:m("displayAsDropdown")}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show post counts"),checked:o,onChange:m("showPostCounts")}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show only top level categories"),checked:r,onChange:m("showOnlyTopLevel")}),!r&&Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show hierarchy"),checked:n,onChange:m("showHierarchy")}))),i&&Object(ye.createElement)(ke.Placeholder,{icon:Ht,label:Object(we.__)("Categories")},Object(ye.createElement)(ke.Spinner,null)),!i&&0===(null==c?void 0:c.length)&&Object(ye.createElement)("p",null,Object(we.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!i&&(null==c?void 0:c.length)>0&&(t?(()=>{const e=s(n?0:null);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.VisuallyHidden,{as:"label",htmlFor:l},Object(we.__)("Categories")),Object(ye.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},e.map(e=>p(e,0))))})():(()=>{const e=s(n?0:null);return Object(ye.createElement)("ul",{className:u(0)},e.map(e=>b(e,0)))})()))}};var qt=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));var Ut=({clientId:e})=>{const{replaceBlocks:t}=Object(Ie.useDispatch)(Ee.store),n=Object(Ie.useSelect)(t=>t(Ee.store).getBlock(e),[e]);return Object(ye.createElement)(ke.ToolbarButton,{onClick:()=>t(n.clientId,Object(je.rawHandler)({HTML:Object(je.serialize)(n)}))},Object(we.__)("Convert to blocks"))};const{wp:Wt}=window;const $t={apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:Zt}=$t,Kt={icon:qt,edit:function({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:r}=Object(Ie.useSelect)(Ee.store),a=Object(ye.useRef)(!1);return Object(ye.useEffect)(()=>{if(!a.current)return;const n=window.tinymce.get("editor-"+e);(null==n?void 0:n.getContent())!==t&&n.setContent(t||"")},[t]),Object(ye.useEffect)(()=>{const{baseURL:l,suffix:c}=window.wpEditorL10n.tinymce;function i(e){let a;t&&e.on("loadContent",()=>e.setContent(t)),e.on("blur",()=>{var t;a=e.selection.getBookmark(2,!0);const o=document.querySelector(".interface-interface-skeleton__content"),l=o.scrollTop;return null!==(t=r())&&void 0!==t&&t.length||n({content:e.getContent()}),e.once("focus",()=>{a&&(e.selection.moveToBookmark(a),o.scrollTop!==l&&(o.scrollTop=l))}),!1}),e.on("mousedown touchstart",()=>{a=null});const l=Object(Re.debounce)(()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))},250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",t=>{dt.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==dt.BACKSPACE&&t.keyCode!==dt.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(o([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===dt.F10&&t.stopPropagation()}),e.on("init",()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())})}function s(){const{settings:t}=window.wpEditorL10n.tinymce;Wt.oldEditor.initialize("editor-"+e,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-"+e,setup:i}})}function u(){"complete"===document.readyState&&s()}return a.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:c}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Wt.oldEditor.remove("editor-"+e)}},[]),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(Ut,{clientId:e}))),Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)("div",{key:"toolbar",id:"toolbar-"+e,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get("editor-"+e);t&&t.focus()},"data-placeholder":Object(we.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(ye.createElement)("div",{key:"editor",id:"editor-"+e,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function({attributes:e}){const{content:t}=e;return Object(ye.createElement)(ye.RawHTML,null,t)}};var Jt=n("1Yn1");function Qt(e){return e.replace(/\[/g,"&#91;")}function Yt(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var Xt={from:[{type:"enter",regExp:/^```$/,transform:()=>Object(je.createBlock)("core/code")},{type:"block",blocks:["core/html"],transform:({content:e})=>Object(je.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const en={apiVersion:2,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,__experimentalSelector:".wp-block-code > code",typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{text:!0,background:!0,gradients:!0}},style:"wp-block-code"},{name:tn}=en,nn={icon:Jt.a,example:{attributes:{content:Object(we.__)('// 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 );')}},transforms:Xt,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=Object(Ee.useBlockProps)();return Object(ye.createElement)("pre",o,Object(ye.createElement)(Ee.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:Object(we.__)("Write code…"),"aria-label":Object(we.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return Object(ye.createElement)("pre",Ee.useBlockProps.save(),Object(ye.createElement)(Ee.RichText.Content,{tagName:"code",value:(t=e.content,Object(Re.flow)(Qt,Yt)(t||""))}));var t}};var on=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var rn=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:e.width+"%"}),save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=tt()({["is-vertically-aligned-"+t]:t}),r={flexBasis:n+"%"};return Object(ye.createElement)("div",{className:o,style:r},Object(ye.createElement)(Ee.InnerBlocks.Content,null))}}];var an=function({attributes:{verticalAlignment:e,width:t,templateLock:n=!1,allowedBlocks:o},setAttributes:r,clientId:a}){const l=tt()("block-core-columns",{["is-vertically-aligned-"+e]:e}),c=Object(ke.__experimentalUseCustomUnits)({availableUnits:Object(Ee.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:i,hasChildBlocks:s,rootClientId:u}=Object(Ie.useSelect)(e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Ee.store),o=n(a);return{hasChildBlocks:t(a).length>0,rootClientId:o,columnsIds:t(o)}},[a]),{updateBlockAttributes:m}=Object(Ie.useDispatch)(Ee.store),d=Number.isFinite(t)?t+"%":t,b=Object(Ee.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),p=i.length,g=i.indexOf(a)+1,h=Object(we.sprintf)(Object(we.__)("%1$s (%2$d of %3$d)"),b["aria-label"],g,p),v=Object(Ee.useInnerBlocksProps)({...b,"aria-label":h},{templateLock:n,allowedBlocks:o,renderAppender:s?void 0:Ee.InnerBlocks.ButtonBlockAppender});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.BlockVerticalAlignmentToolbar,{onChange:e=>{r({verticalAlignment:e}),m(u,{verticalAlignment:null})},value:e})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Column settings")},Object(ye.createElement)(ke.__experimentalUnitControl,{label:Object(we.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,r({width:e})},units:c}))),Object(ye.createElement)("div",v))};const ln={apiVersion:2,name:"core/column",title:"Column",category:"text",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:"string",enum:["all","insert",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}}}},{name:cn}=ln,sn={icon:on,edit:an,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=tt()({["is-vertically-aligned-"+t]:t});let r;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&null!=n&&n.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}r={flexBasis:e}}const a=Ee.useBlockProps.save({className:o,style:r}),l=Ee.useInnerBlocksProps.save(a);return Object(ye.createElement)("div",l)},deprecated:rn};var un=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function mn(e){let t,{doc:n}=mn;n||(n=document.implementation.createHTMLDocument(""),mn.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var dn=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(Re.omit)(e,["customTextColor","customBackgroundColor"]),style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:r,customTextColor:a}=e,l=Object(Ee.getColorClassName)("background-color",n),c=Object(Ee.getColorClassName)("color",r),i=tt()({"has-background":n||o,"has-text-color":r||a,[l]:l,[c]:c,["are-vertically-aligned-"+t]:t}),s={backgroundColor:l?void 0:o,color:c?void 0:a};return Object(ye.createElement)("div",{className:i||void 0,style:s},Object(ye.createElement)(Ee.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some(e=>/layout-column-\d+/.test(e.originalContent))&&t.some(e=>void 0!==mn(e.originalContent)),migrate(e,t){const n=t.reduce((e,t)=>{const{originalContent:n}=t;let o=mn(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e},[]).map(e=>Object(je.createBlock)("core/column",{},e));return[{...Object(Re.omit)(e,["columns"]),isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return Object(ye.createElement)("div",{className:`has-${t}-columns`},Object(ye.createElement)(Ee.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e={...Object(Re.omit)(e,["columns"]),isStackedOnMobile:!0},t],save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=tt()(`has-${n}-columns`,{["are-vertically-aligned-"+t]:t});return Object(ye.createElement)("div",{className:o},Object(ye.createElement)(Ee.InnerBlocks.Content,null))}}];const bn=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function pn(e,t){const{width:n=100/t}=e.attributes;return bn(n)}function gn(e,t,n=e.length){const o=function(e,t=e.length){return Object(Re.sumBy)(e,e=>pn(e,t))}(e,n);return Object(Re.mapValues)(function(e,t=e.length){return e.reduce((e,n)=>{const o=pn(n,t);return Object.assign(e,{[n.clientId]:o})},{})}(e,n),e=>bn(t*e/o))}function hn(e,t){return e.map(e=>Object(Re.merge)({},e,{attributes:{width:t[e.clientId]+"%"}}))}const vn=["core/column"];const On=Object(Ie.withDispatch)((e,t,n)=>({updateAlignment(o){const{clientId:r,setAttributes:a}=t,{updateBlockAttributes:l}=e(Ee.store),{getBlockOrder:c}=n.select(Ee.store);a({verticalAlignment:o});c(r).forEach(e=>{l(e,{verticalAlignment:o})})},updateColumns(o,r){const{clientId:a}=t,{replaceInnerBlocks:l}=e(Ee.store),{getBlocks:c}=n.select(Ee.store);let i=c(a);const s=i.every(e=>{var t;const n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)});const u=r>o;if(u&&s){const e=bn(100/r);i=[...hn(i,gn(i,100-e)),...Object(Re.times)(r-o,()=>Object(je.createBlock)("core/column",{width:e+"%"}))]}else if(u)i=[...i,...Object(Re.times)(r-o,()=>Object(je.createBlock)("core/column"))];else if(i=Object(Re.dropRight)(i,o-r),s){i=hn(i,gn(i,100))}l(a,i)}}))((function({attributes:e,setAttributes:t,updateAlignment:n,updateColumns:o,clientId:r}){const{isStackedOnMobile:a,verticalAlignment:l}=e,{count:c}=Object(Ie.useSelect)(e=>({count:e(Ee.store).getBlockCount(r)}),[r]),i=tt()({["are-vertically-aligned-"+l]:l,"is-not-stacked-on-mobile":!a}),s=Object(Ee.useBlockProps)({className:i}),u=Object(Ee.useInnerBlocksProps)(s,{allowedBlocks:vn,orientation:"horizontal",renderAppender:!1});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.BlockVerticalAlignmentToolbar,{onChange:n,value:l})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,null,Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Columns"),value:c,onChange:e=>o(c,e),min:1,max:Math.max(6,c)}),c>6&&Object(ye.createElement)(ke.Notice,{status:"warning",isDismissible:!1},Object(we.__)("This column count exceeds the recommended amount and may cause visual breakage.")),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Stack on mobile"),checked:a,onChange:()=>t({isStackedOnMobile:!a})}))),Object(ye.createElement)("div",u))}));function jn({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:r,variations:a}=Object(Ie.useSelect)(e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:r}=e(je.store);return{blockType:o(t),defaultVariation:r(t,"block"),variations:n(t,"block")}},[t]),{replaceInnerBlocks:l}=Object(Ie.useDispatch)(Ee.store),c=Object(Ee.useBlockProps)();return Object(ye.createElement)("div",c,Object(ye.createElement)(Ee.__experimentalBlockVariationPicker,{icon:Object(Re.get)(o,["icon","src"]),label:Object(Re.get)(o,["title"]),variations:a,onSelect:(t=r)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,Object(je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var yn=e=>{const{clientId:t}=e,n=Object(Ie.useSelect)(e=>e(Ee.store).getBlocks(t).length>0,[t])?On:jn;return Object(ye.createElement)(n,e)};var fn=[{name:"one-column-full",title:Object(we.__)("100"),description:Object(we.__)("One column"),icon:Object(ye.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(we.__)("50 / 50"),description:Object(we.__)("Two columns; equal split"),icon:Object(ye.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.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(we.__)("30 / 70"),description:Object(we.__)("Two columns; one-third, two-thirds split"),icon:Object(ye.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.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(we.__)("70 / 30"),description:Object(we.__)("Two columns; two-thirds, one-third split"),icon:Object(ye.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.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(we.__)("33 / 33 / 33"),description:Object(we.__)("Three columns; equal split"),icon:Object(ye.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.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(we.__)("25 / 50 / 25"),description:Object(we.__)("Three columns; wide center column"),icon:Object(ye.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.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"]}];var _n={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map(({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:t+"%"},[[e,{...n},o]]]);return Object(je.createBlock)("core/columns",{},Object(je.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e})=>e&&e<=6},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:r,style:a,mediaAlt:l,mediaId:c,mediaPosition:i,mediaSizeSlug:s,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:b}=e;let p;if("image"!==u&&u)p=["core/video",{id:c,src:m}];else{p=["core/image",{...{id:c,alt:l,url:m,sizeSlug:s},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const g=[["core/column",{width:d+"%"},[p]],["core/column",{width:100-d+"%"},t]];return"right"===i&&g.reverse(),Object(je.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:r,style:a,verticalAlignment:b},Object(je.createBlocksFromInnerBlocksTemplate)(g))}}]};const kn={apiVersion:2,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{blockGap:!0,margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{blockGap:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:wn}=kn,En={icon:un,variations:fn,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(we.__)("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(we.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(we.__)("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(we.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:dn,edit:yn,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=tt()({["are-vertically-aligned-"+n]:n,"is-not-stacked-on-mobile":!t}),r=Ee.useBlockProps.save({className:o}),a=Ee.useInnerBlocksProps.save(r);return Object(ye.createElement)("div",a)},transforms:_n};var Cn=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const xn={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Sn(e){return e?{backgroundImage:`url(${e})`}:{}}const Bn=["image","video"];function Tn(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function Nn(e){return!e||"center center"===e||"center"===e}function Pn(e){return Nn(e)?"":xn[e]}function zn(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function In(e){return{...e,dimRatio:e.url?e.dimRatio:100}}const Mn={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"}};var Rn=[{attributes:{...Mn,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:r,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,isRepeated:s,overlayColor:u,url:m,alt:d,id:b,minHeight:p,minHeightUnit:g}=e,h=Object(Ee.getColorClassName)("background-color",u),v=Object(Ee.__experimentalGetGradientClass)(n),O=g?`${p}${g}`:p,j="image"===t,y="video"===t,f=!(i||s),_={...j&&!f?Sn(m):{},backgroundColor:h?void 0:a,background:r&&!m?r:void 0,minHeight:O||void 0},k=c&&f?`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`:void 0,w=tt()(zn(l),h,{"has-background-dim":0!==l,"has-parallax":i,"is-repeated":s,"has-background-gradient":n||r,[v]:!m&&v,"has-custom-content-position":!Nn(o)},Pn(o));return Object(ye.createElement)("div",Ee.useBlockProps.save({className:w,style:_}),m&&(n||r)&&0!==l&&Object(ye.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",v),style:r?{background:r}:void 0}),j&&f&&m&&Object(ye.createElement)("img",{className:tt()("wp-block-cover__image-background",b?"wp-image-"+b:null),alt:d,src:m,style:{objectPosition:k},"data-object-fit":"cover","data-object-position":k}),y&&m&&Object(ye.createElement)("video",{className:tt()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:k},"data-object-fit":"cover","data-object-position":k}),Object(ye.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))},migrate:In},{attributes:{...Mn,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:r,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,isRepeated:s,overlayColor:u,url:m,minHeight:d,minHeightUnit:b}=e,p=Object(Ee.getColorClassName)("background-color",u),g=Object(Ee.__experimentalGetGradientClass)(n),h=b?`${d}${b}`:d,v="image"===t,O="video"===t,j=v?Sn(m):{},y={};let f;p||(j.backgroundColor=a),r&&!m&&(j.background=r),j.minHeight=h||void 0,c&&(f=`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`,v&&!i&&(j.backgroundPosition=f),O&&(y.objectPosition=f));const _=tt()(zn(l),p,{"has-background-dim":0!==l,"has-parallax":i,"is-repeated":s,"has-background-gradient":n||r,[g]:!m&&g,"has-custom-content-position":!Nn(o)},Pn(o));return Object(ye.createElement)("div",Ee.useBlockProps.save({className:_,style:j}),m&&(n||r)&&0!==l&&Object(ye.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",g),style:r?{background:r}:void 0}),O&&m&&Object(ye.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:y}),Object(ye.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))},migrate:In},{attributes:{...Mn,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:r,dimRatio:a,focalPoint:l,hasParallax:c,overlayColor:i,url:s,minHeight:u}=e,m=Object(Ee.getColorClassName)("background-color",i),d=Object(Ee.__experimentalGetGradientClass)(n),b="image"===t?Sn(s):{};m||(b.backgroundColor=r),l&&!c&&(b.backgroundPosition=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`),o&&!s&&(b.background=o),b.minHeight=u||void 0;const p=tt()(zn(a),m,{"has-background-dim":0!==a,"has-parallax":c,"has-background-gradient":o,[d]:!s&&d});return Object(ye.createElement)("div",{className:p,style:b},s&&(n||o)&&0!==a&&Object(ye.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===t&&s&&Object(ye.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(ye.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))},migrate:In},{attributes:{...Mn,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:r,dimRatio:a,focalPoint:l,hasParallax:c,overlayColor:i,url:s,minHeight:u}=e,m=Object(Ee.getColorClassName)("background-color",i),d=Object(Ee.__experimentalGetGradientClass)(n),b="image"===t?Sn(s):{};m||(b.backgroundColor=r),l&&!c&&(b.backgroundPosition=`${100*l.x}% ${100*l.y}%`),o&&!s&&(b.background=o),b.minHeight=u||void 0;const p=tt()(zn(a),m,{"has-background-dim":0!==a,"has-parallax":c,"has-background-gradient":o,[d]:!s&&d});return Object(ye.createElement)("div",{className:p,style:b},s&&(n||o)&&0!==a&&Object(ye.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===t&&s&&Object(ye.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(ye.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))},migrate:In},{attributes:{...Mn,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:o,dimRatio:r,focalPoint:a,hasParallax:l,overlayColor:c,title:i,url:s}=e,u=Object(Ee.getColorClassName)("background-color",c),m="image"===t?Sn(s):{};u||(m.backgroundColor=o),a&&!l&&(m.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const d=tt()(zn(r),u,{"has-background-dim":0!==r,"has-parallax":l,[`has-${n}-content`]:"center"!==n});return Object(ye.createElement)("div",{className:d,style:m},"video"===t&&s&&Object(ye.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),!Ee.RichText.isEmpty(i)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:i}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Re.omit)(t,["title","contentAlign"]),[Object(je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title")})]]}},{attributes:{...Mn,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:r,align:a,contentAlign:l,overlayColor:c,customOverlayColor:i}=e,s=Object(Ee.getColorClassName)("background-color",c),u=Sn(t);s||(u.backgroundColor=i);const m=tt()("wp-block-cover-image",zn(r),s,{"has-background-dim":0!==r,"has-parallax":o,[`has-${l}-content`]:"center"!==l},a?"align"+a:null);return Object(ye.createElement)("div",{className:m,style:u},!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Re.omit)(t,["title","contentAlign","align"]),[Object(je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title")})]]}},{attributes:{...Mn,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:r,align:a}=e,l=Sn(t),c=tt()("wp-block-cover-image",zn(r),{"has-background-dim":0!==r,"has-parallax":o},a?"align"+a:null);return Object(ye.createElement)("section",{className:c,style:l},Object(ye.createElement)(Ee.RichText.Content,{tagName:"h2",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Re.omit)(t,["title","contentAlign","align"]),[Object(je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(we.__)("Write title")})]]}}],Ln=n("FEKF"),Vn=n.n(Ln),An=n("fHnH"),Hn=n("abaT");Object(An.b)([Hn.a]);const{__Visualizer:Fn}=ke.__experimentalBoxControl;function Dn(){return Dn.fastAverageColor||(Dn.fastAverageColor=new Vn.a),Dn.fastAverageColor}function Gn({onChange:e,onUnitChange:t,unit:n="px",value:o=""}){const[r,a]=Object(ye.useState)(null),l="block-cover-height-input-"+Object(nt.useInstanceId)(Ee.__experimentalUnitControl),c="px"===n,i=Object(ke.__experimentalUseCustomUnits)({availableUnits:Object(Ee.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:"430",em:"20",rem:"20",vw:"20",vh:"50"}}),s=null!==r?r:o,u=c?50:0;return Object(ye.createElement)(ke.BaseControl,{label:Object(we.__)("Minimum height of cover"),id:l},Object(ye.createElement)(Ee.__experimentalUnitControl,{id:l,isResetValueOnUnitChange:!0,min:u,onBlur:()=>{null!==r&&a(null)},onChange:n=>{const o=""!==n?parseFloat(n):void 0;isNaN(o)&&void 0!==o?a(n):(a(null),e(o),void 0===o&&t())},onUnitChange:t,style:{maxWidth:80},unit:n,units:i,value:s}))}const qn={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Un({className:e,onResizeStart:t,onResize:n,onResizeStop:o,...r}){const[a,l]=Object(ye.useState)(!1);return Object(ye.createElement)(ke.ResizableBox,Object(mt.a)({className:tt()(e,{"is-resizing":a}),enable:qn,onResizeStart:(e,o,r)=>{t(r.clientHeight),n(r.clientHeight)},onResize:(e,t,o)=>{n(o.clientHeight),a||l(!0)},onResizeStop:(e,t,n)=>{o(n.clientHeight),l(!1)}},r))}function Wn({x:e,y:t}){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function $n({disableMediaButtons:e=!1,children:t,noticeUI:n,noticeOperations:o,onSelectMedia:r,style:a}){const{removeAllNotices:l,createErrorNotice:c}=o;return Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:Cn}),labels:{title:Object(we.__)("Cover"),instructions:Object(we.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:r,accept:"image/*,video/*",allowedTypes:Bn,notices:n,disableMediaButtons:e,onError:e=>{l(),c(e)},style:a},t)}var Zn=Object(nt.compose)([Object(Ie.withDispatch)(e=>{const{toggleSelection:t}=e(Ee.store);return{toggleSelection:t}}),Object(Ee.withColors)({overlayColor:"background-color"}),ke.withNotices,nt.withInstanceId])((function({attributes:e,clientId:t,isSelected:n,noticeUI:o,noticeOperations:r,overlayColor:a,setAttributes:l,setOverlayColor:c,toggleSelection:i}){var s,u,m;const{contentPosition:d,id:b,backgroundType:p,dimRatio:g,focalPoint:h,hasParallax:v,isDark:O,isRepeated:j,minHeight:y,minHeightUnit:f,style:_,url:k,alt:w,allowedBlocks:E,templateLock:C}=e,{gradientClass:x,gradientValue:S,setGradient:B}=Object(Ee.__experimentalUseGradient)(),T=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let o;if(Object(ze.isBlobURL)(n.url)&&(n.type=Object(ze.getBlobTypeByURL)(n.url)),n.media_type)o="image"===n.media_type?"image":"video";else{if("image"!==n.type&&"video"!==n.type)return;o=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:null==n?void 0:n.alt,backgroundType:o,..."video"===o?{focalPoint:void 0,hasParallax:void 0}:{}})}}(l,g),N=((e,t)=>!e&&Object(ze.isBlobURL)(t))(b,k),[P,z]=Object(ye.useState)(y),[I,M]=Object(ye.useState)(f),R="vh"===f&&100===y,L=Object(ye.useRef)(),V=function(e,t=50,n,o){const[r,a]=Object(ye.useState)(!1);return Object(ye.useEffect)(()=>{e&&t<=50&&o.current&&Dn().getColorAsync(o.current,e=>{a(e.isDark)})},[e,e&&t<=50&&o.current,a]),Object(ye.useEffect)(()=>{if(t>50||!e){if(!n)return void a(!0);a(Object(An.a)(n).isDark())}},[n,t>50||!e,a]),Object(ye.useEffect)(()=>{e||n||a(!1)},[!e&&!n,a]),r}(k,g,a.color,L);Object(ye.useEffect)(()=>{l({isDark:V})},[V]);const A="image"===p,H="video"===p,[F,D]=Object(ye.useState)(null),G=f?`${y}${f}`:y,q=!(v||j),U={...A&&!q?Sn(k):void 0,minHeight:F||G||void 0},W={backgroundColor:a.color},$={objectPosition:h&&q?Wn(h):void 0},Z=!!(k||a.color||S),K=H||A&&(!v||j),J=e=>{const[t,n]=L.current?[L.current.style,"objectPosition"]:[X.current.style,"backgroundPosition"];t[n]=Wn(e)},Q=Object(Ie.useSelect)(e=>e(Ee.store).getBlock(t).innerBlocks.length>0,[t]),Y=Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.__experimentalBlockAlignmentMatrixControl,{label:Object(we.__)("Change content position"),value:d,onChange:e=>l({contentPosition:e}),isDisabled:!Q}),Object(ye.createElement)(Ee.__experimentalBlockFullHeightAligmentControl,{isActive:R,onToggle:()=>R?l("vh"===I&&100===P?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:P,minHeightUnit:I}):(z(y),M(f),l({minHeight:100,minHeightUnit:"vh"})),isDisabled:!Q})),Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:b,mediaURL:k,allowedTypes:Bn,accept:"image/*,video/*",onSelect:T,name:k?Object(we.__)("Replace"):Object(we.__)("Add Media")})),Object(ye.createElement)(Ee.InspectorControls,null,!!k&&Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Media settings")},A&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Fixed background"),checked:v,onChange:()=>{l({hasParallax:!v,...v?{}:{focalPoint:void 0}})}}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Repeated background"),checked:j,onChange:()=>{l({isRepeated:!j})}})),K&&Object(ye.createElement)(ke.FocalPointPicker,{label:Object(we.__)("Focal point picker"),url:k,value:h,onDragStart:J,onDrag:J,onChange:e=>l({focalPoint:e})}),k&&A&&q&&Object(ye.createElement)(ke.TextareaControl,{label:Object(we.__)("Alt text (alternative text)"),value:w,onChange:e=>l({alt:e}),help:Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(we.__)("Describe the purpose of the image")),Object(we.__)("Leave empty if the image is purely decorative."))}),Object(ye.createElement)(ke.PanelRow,null,Object(ye.createElement)(ke.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>l({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})},Object(we.__)("Clear Media")))),Object(ye.createElement)(Ee.__experimentalPanelColorGradientSettings,{__experimentalHasMultipleOrigins:!0,title:Object(we.__)("Overlay"),initialOpen:!0,settings:[{colorValue:a.color,gradientValue:S,onColorChange:c,onGradientChange:B,label:Object(we.__)("Color")}]},Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Opacity"),value:g,onChange:e=>l({dimRatio:e}),min:0,max:100,step:10,required:!0}))),Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"dimensions"},Object(ye.createElement)(ke.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:Object(we.__)("Minimum height"),onDeselect:()=>l({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:t},Object(ye.createElement)(Gn,{value:F||y,unit:f,onChange:e=>l({minHeight:e}),onUnitChange:e=>l({minHeightUnit:e})})))),X=Object(ye.useRef)(),ee=Object(Ee.useBlockProps)({ref:X}),te=function(e){return[["core/paragraph",{align:"center",placeholder:Object(we.__)("Write title"),...e}]]}({fontSize:!(null===(s=Object(Ee.useSetting)("typography.fontSizes"))||void 0===s||!s.length)?"large":void 0}),ne=Object(Ee.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:te,templateInsertUpdatesSelection:!0,allowedBlocks:E,templateLock:C});if(!Q&&!Z)return Object(ye.createElement)(ye.Fragment,null,Y,Object(ye.createElement)("div",Object(mt.a)({},ee,{className:tt()("is-placeholder",ee.className)}),Object(ye.createElement)($n,{noticeUI:o,onSelectMedia:T,noticeOperations:r,style:{minHeight:F||G||void 0}},Object(ye.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(ye.createElement)(Ee.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:c,clearable:!1}))),Object(ye.createElement)(Un,{className:"block-library-cover__resize-container",onResizeStart:()=>{l({minHeightUnit:"px"}),i(!1)},onResize:D,onResizeStop:e=>{i(!0),l({minHeight:e}),D(null)},showHandle:n})));const oe=tt()({"is-dark-theme":O,"is-light":!O,"is-transient":N,"has-parallax":v,"is-repeated":j,"has-custom-content-position":!Nn(d)},Pn(d));return Object(ye.createElement)(ye.Fragment,null,Y,Object(ye.createElement)("div",Object(mt.a)({},ee,{className:tt()(oe,ee.className),style:{...U,...ee.style},"data-url":k}),Object(ye.createElement)(Fn,{values:null==_||null===(u=_.spacing)||void 0===u?void 0:u.padding,showValues:null==_||null===(m=_.visualizers)||void 0===m?void 0:m.padding}),Object(ye.createElement)(Un,{className:"block-library-cover__resize-container",onResizeStart:()=>{l({minHeightUnit:"px"}),i(!1)},onResize:D,onResizeStop:e=>{i(!0),l({minHeight:e}),D(null)},showHandle:n}),Object(ye.createElement)("span",{"aria-hidden":"true",className:tt()(Tn(g),{[a.class]:a.class},"wp-block-cover__gradient-background",x,{"has-background-dim":void 0!==g,"has-background-gradient":S,[x]:!k&&x}),style:{backgroundImage:S,...W}}),k&&A&&q&&Object(ye.createElement)("img",{ref:L,className:"wp-block-cover__image-background",alt:w,src:k,style:$}),k&&H&&Object(ye.createElement)("video",{ref:L,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:k,style:$}),N&&Object(ye.createElement)(ke.Spinner,null),Object(ye.createElement)($n,{disableMediaButtons:!0,noticeUI:o,onSelectMedia:T,noticeOperations:r}),Object(ye.createElement)("div",ne)))}));var Kn={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:n,align:o,id:r,anchor:a,style:l})=>{var c;return Object(je.createBlock)("core/cover",{url:t,alt:n,align:o,id:r,anchor:a,style:{color:{duotone:null==l||null===(c=l.color)||void 0===c?void 0:c.duotone}}},[Object(je.createBlock)("core/paragraph",{content:e,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:o,anchor:r})=>Object(je.createBlock)("core/cover",{url:t,align:n,id:o,backgroundType:"video",anchor:r},[Object(je.createBlock)("core/paragraph",{content:e,fontSize:"large"})])},{type:"block",blocks:["core/group"],isMatch:({backgroundColor:e,gradient:t,style:n})=>{var o,r;return e||(null==n||null===(o=n.color)||void 0===o?void 0:o.background)||(null==n||null===(r=n.color)||void 0===r?void 0:r.gradient)||t},transform:({align:e,anchor:t,backgroundColor:n,gradient:o,style:r},a)=>{var l,c;return Object(je.createBlock)("core/cover",{align:e,anchor:t,overlayColor:n,customOverlayColor:null==r||null===(l=r.color)||void 0===l?void 0:l.background,gradient:o,customGradient:null==r||null===(c=r.color)||void 0===c?void 0:c.gradient},a)}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:r,customGradient:a})=>t?"image"===e:!(n||o||r||a),transform:({title:e,url:t,alt:n,align:o,id:r,anchor:a,style:l})=>{var c;return Object(je.createBlock)("core/image",{caption:e,url:t,alt:n,align:o,id:r,anchor:a,style:{color:{duotone:null==l||null===(c=l.color)||void 0===c?void 0:c.duotone}}})}},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:r,customGradient:a})=>t?"video"===e:!(n||o||r||a),transform:({title:e,url:t,align:n,id:o,anchor:r})=>Object(je.createBlock)("core/video",{caption:e,src:t,id:o,align:n,anchor:r})}]};const Jn={apiVersion:2,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay great for headers.",textdomain:"default",attributes:{url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:"string",enum:["all","insert",!1]}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Qn}=Jn,Yn={icon:Cn,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(we.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Kn,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:r,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,isDark:s,isRepeated:u,overlayColor:m,url:d,alt:b,id:p,minHeight:g,minHeightUnit:h}=e,v=Object(Ee.getColorClassName)("background-color",m),O=Object(Ee.__experimentalGetGradientClass)(n),j=h?`${g}${h}`:g,y="image"===t,f="video"===t,_=!(i||u),k={...y&&!_?Sn(d):{},minHeight:j||void 0},w={backgroundColor:v?void 0:a,background:r||void 0},E=c&&_?`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`:void 0,C=tt()({"is-light":!s,"has-parallax":i,"is-repeated":u,"has-custom-content-position":!Nn(o)},Pn(o));return Object(ye.createElement)("div",Ee.useBlockProps.save({className:C,style:k}),Object(ye.createElement)("span",{"aria-hidden":"true",className:tt()(v,Tn(l),"wp-block-cover__gradient-background",O,{"has-background-dim":void 0!==l,"has-background-gradient":n||r,[O]:!d&&O}),style:w}),y&&_&&d&&Object(ye.createElement)("img",{className:tt()("wp-block-cover__image-background",p?"wp-image-"+p:null),alt:b,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),f&&d&&Object(ye.createElement)("video",{className:tt()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),Object(ye.createElement)("div",Ee.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})))},edit:Zn,deprecated:Rn};var Xn=n("B9Az");function eo(e){return e?Object(we.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(we.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var to=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:o,toggleResponsive:r,switchBackToURLInput:a})=>Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,t&&Object(ye.createElement)(ke.ToolbarButton,{className:"components-toolbar__control",label:Object(we.__)("Edit URL"),icon:Xn.a,onClick:a}))),n&&e&&Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Media settings"),className:"blocks-responsive"},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Resize for smaller devices"),checked:o,help:eo,onChange:r}))));const no=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),oo=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),ro=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),ao=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),lo={foreground:"#1da1f2",src:Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.G,null,Object(ye.createElement)(ke.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"})))},co={foreground:"#ff0000",src:Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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"}))},io={foreground:"#3b5998",src:Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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"}))},so=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.G,null,Object(ye.createElement)(ke.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"}))),uo={foreground:"#0073AA",src:Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.G,null,Object(ye.createElement)(ke.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"})))},mo={foreground:"#1db954",src:Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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"}))},bo=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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"})),po={foreground:"#1ab7ea",src:Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.G,null,Object(ye.createElement)(ke.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"})))},go=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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"})),ho={foreground:"#35465c",src:Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},vo=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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(ye.createElement)(ke.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(ye.createElement)(ke.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"})),Oo=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(ye.createElement)(ke.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(ye.createElement)(ke.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(ye.createElement)(ke.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(ye.createElement)(ke.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(ye.createElement)(ke.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),jo=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),yo=Object(ye.createElement)(ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(ke.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"})),fo=Object(ye.createElement)(ke.SVG,{viewBox:"0 0 44 44"},Object(ye.createElement)(ke.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"}));var _o=()=>Object(ye.createElement)("div",{className:"wp-block-embed is-loading"},Object(ye.createElement)(ke.Spinner,null),Object(ye.createElement)("p",null,Object(we.__)("Embedding")));var ko=({icon:e,label:t,value:n,onSubmit:o,onChange:r,cannotEmbed:a,fallback:l,tryAgain:c})=>Object(ye.createElement)(ke.Placeholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:Object(we.__)("Paste a link to the content you want to display on your site.")},Object(ye.createElement)("form",{onSubmit:o},Object(ye.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:Object(we.__)("Enter URL to embed here"),onChange:r}),Object(ye.createElement)(ke.Button,{variant:"primary",type:"submit"},Object(we._x)("Embed","button label"))),Object(ye.createElement)("div",{className:"components-placeholder__learn-more"},Object(ye.createElement)(ke.ExternalLink,{href:Object(we.__)("https://wordpress.org/support/article/embeds/")},Object(we.__)("Learn more about embeds"))),a&&Object(ye.createElement)("div",{className:"components-placeholder__error"},Object(ye.createElement)("div",{className:"components-placeholder__instructions"},Object(we.__)("Sorry, this content could not be embedded.")),Object(ye.createElement)(ke.Button,{variant:"secondary",onClick:c},Object(we._x)("Try again","button label"))," ",Object(ye.createElement)(ke.Button,{variant:"secondary",onClick:l},Object(we._x)("Convert to link","button label"))));const wo={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function Eo({html:e}){const t=Object(ye.useRef)(),n=Object(ye.useMemo)(()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),n={};return t?(Array.from(t.attributes).forEach(({name:e,value:t})=>{"style"!==e&&(n[wo[e]||e]=t)}),n):n},[e]);return Object(ye.useEffect)(()=>{const{ownerDocument:e}=t.current,{defaultView:o}=e;function r({data:{secret:e,message:o,value:r}={}}){"height"===o&&e===n["data-secret"]&&(t.current.height=r)}return o.addEventListener("message",r),()=>{o.removeEventListener("message",r)}},[]),Object(ye.createElement)("div",{className:"wp-block-embed__wrapper"},Object(ye.createElement)("iframe",Object(mt.a)({ref:Object(nt.useMergeRefs)([t,Object(nt.useFocusableIframe)()]),title:n.title},n)))}class Co extends ye.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:o,caption:r,onCaptionChange:a,isSelected:l,className:c,icon:i,label:s,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:d}=this.state,b="photo"===o?(e=>{const t=e.thumbnail_url||e.url,n=Object(ye.createElement)("p",null,Object(ye.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(ye.renderToString)(n)})(e):e.html,p=new URL(n).host.split("."),g=p.splice(p.length-2,p.length-1).join("."),h=Object(we.sprintf)(Object(we.__)("Embedded content from %s"),g),v=Ve()(o,c,"wp-block-embed__wrapper"),O="wp-embed"===o?Object(ye.createElement)(Eo,{html:b}):Object(ye.createElement)("div",{className:"wp-block-embed__wrapper"},Object(ye.createElement)(ke.SandBox,{html:b,scripts:m,title:h,type:v,onFocus:this.hideOverlay}),!d&&Object(ye.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(ye.createElement)("figure",{className:Ve()(c,"wp-block-embed",{"is-type-video":"video"===o})},t?O:Object(ye.createElement)(ke.Placeholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:i,showColors:!0}),label:s},Object(ye.createElement)("p",{className:"components-placeholder__error"},Object(ye.createElement)("a",{href:n},n)),Object(ye.createElement)("p",{className:"components-placeholder__error"},Object(we.sprintf)(Object(we.__)("Embedded content from %s can't be previewed in the editor."),g))),(!Ee.RichText.isEmpty(r)||l)&&Object(ye.createElement)(Ee.RichText,{tagName:"figcaption",placeholder:Object(we.__)("Add caption"),value:r,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u(Object(je.createBlock)("core/paragraph"))}))}}var xo=Co;var So=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:o,url:r},attributes:a,isSelected:l,onReplace:c,setAttributes:i,insertBlocksAfter:s,onFocus:u}=e,m={title:Object(we._x)("Embed","block title"),icon:no},{icon:d,title:b}=(p=t,(null===(g=Object(je.getBlockVariations)(Fe))||void 0===g?void 0:g.find(({name:e})=>e===p))||m);var p,g;const[h,v]=Object(ye.useState)(r),[O,j]=Object(ye.useState)(!1),{invalidateResolution:y}=Object(Ie.useDispatch)(It.store),{preview:f,fetching:_,themeSupportsResponsive:k,cannotEmbed:w}=Object(Ie.useSelect)(e=>{var t;const{getEmbedPreview:n,isPreviewEmbedFallback:o,isRequestingEmbedPreview:a,getThemeSupports:l}=e(It.store);if(!r)return{fetching:!1,cannotEmbed:!1};const c=n(r),i=o(r),s=!1===(null==c?void 0:c.html)&&void 0===(null==c?void 0:c.type),u=404===(null==c||null===(t=c.data)||void 0===t?void 0:t.status),m=!!c&&!s&&!u;return{preview:m?c:void 0,fetching:a(r),themeSupportsResponsive:l()["responsive-embeds"],cannotEmbed:!m||i}},[r]),E=()=>{const{allowResponsive:e,className:t}=a;return{...a,...We(f,b,t,o,e)}};Object(ye.useEffect)(()=>{if(null==f||!f.html||!w||_)return;const e=r.replace(/\/$/,"");v(e),j(!1),i({url:e})},[null==f?void 0:f.html,r]),Object(ye.useEffect)(()=>{if(f&&!O&&(i(E()),c)){const t=Ge(e,E());t&&c(t)}},[f,O]);const C=Object(Ee.useBlockProps)();if(_)return Object(ye.createElement)(fe.View,C,Object(ye.createElement)(_o,null));const x=Object(we.sprintf)(Object(we.__)("%s URL"),b);if(!f||w||O)return Object(ye.createElement)(fe.View,C,Object(ye.createElement)(ko,{icon:d,label:x,onFocus:u,onSubmit:e=>{e&&e.preventDefault(),j(!1),i({url:h})},value:h,cannotEmbed:w,onChange:e=>v(e.target.value),fallback:()=>function(e,t){const n=Object(ye.createElement)("a",{href:e},e);t(Object(je.createBlock)("core/paragraph",{content:Object(ye.renderToString)(n)}))}(h,c),tryAgain:()=>{y("getEmbedPreview",[h])}}));const{caption:S,type:B,allowResponsive:T,className:N}=E(),P=tt()(N,e.className);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(to,{showEditButton:f&&!w,themeSupportsResponsive:k,blockSupportsResponsive:o,allowResponsive:T,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:n}=f,r=!e;i({allowResponsive:r,className:Ue(n,t,o&&r)})},switchBackToURLInput:()=>j(!0)}),Object(ye.createElement)(fe.View,C,Object(ye.createElement)(xo,{preview:f,previewable:n,className:P,url:h,type:B,caption:S,onCaptionChange:e=>i({caption:e}),isSelected:l,icon:d,label:x,insertBlocksAfter:s})))};const{name:Bo}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var To={from:[{type:"raw",isMatch:e=>{var t,n;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(n=t.match(/https/gi))||void 0===n?void 0:n.length)},transform:e=>Object(je.createBlock)(Bo,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let n=`<a href="${e}">${e}</a>`;return null!=t&&t.trim()&&(n+="<br />"+t),Object(je.createBlock)("core/paragraph",{content:n})}}]};const No=[{name:"twitter",title:"Twitter",icon:lo,keywords:["tweet",Object(we.__)("social")],description:Object(we.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:co,keywords:[Object(we.__)("music"),Object(we.__)("video")],description:Object(we.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:io,keywords:[Object(we.__)("social")],description:Object(we.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:so,keywords:[Object(we.__)("image"),Object(we.__)("social")],description:Object(we.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:uo,keywords:[Object(we.__)("post"),Object(we.__)("blog")],description:Object(we.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:oo,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:mo,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:bo,keywords:[Object(we.__)("image")],description:Object(we.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:po,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Oo,description:Object(we.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:no,description:Object(we.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:ao,description:Object(we.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:no,keywords:["polldaddy",Object(we.__)("survey")],description:Object(we.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:jo,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:ro,description:Object(we.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:no,description:Object(we.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:no,description:Object(we.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:oo,keywords:[Object(we.__)("music"),Object(we.__)("audio")],description:Object(we.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:go,description:Object(we.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:oo,description:Object(we.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:ao,description:Object(we.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:no,description:Object(we.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:no,description:Object(we.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:ro,description:Object(we.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:no,description:Object(we.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:ao,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:ao,description:Object(we.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:ho,keywords:[Object(we.__)("social")],description:Object(we.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:ao,keywords:[Object(we.__)("video")],description:Object(we.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:ao,description:Object(we.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:vo,keywords:[Object(we.__)("ebook")],description:Object(we.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:yo,keywords:[Object(we.__)("social"),Object(we.__)("bookmark")],description:Object(we.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram Cloud",icon:fo,description:Object(we.__)("Embed Wolfram Cloud notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];No.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)});var Po=No;const{attributes:zo}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Io=[{attributes:zo,save({attributes:{url:e,caption:t,type:n,providerNameSlug:o}}){if(!e)return null;const r=tt()("wp-block-embed",{["is-type-"+n]:n,["is-provider-"+o]:o});return Object(ye.createElement)("figure",{className:r},`\n${e}\n`,!Ee.RichText.isEmpty(t)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:t}))}}];const Mo={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Ro}=Mo,Lo={icon:no,edit:So,save:function({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:r}=e;if(!t)return null;const a=Ve()("wp-block-embed",{["is-type-"+o]:o,["is-provider-"+r]:r,["wp-block-embed-"+r]:r});return Object(ye.createElement)("figure",Ee.useBlockProps.save({className:a}),Object(ye.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:n}))},transforms:To,variations:Po,deprecated:Io};var Vo=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Ao=[{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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:n,textLinkHref:o,textLinkTarget:r,showDownloadButton:a,downloadButtonText:l,displayPreview:c,previewHeight:i}=e,s=Ee.RichText.isEmpty(n)?Object(we.__)("PDF embed"):Object(we.sprintf)(Object(we.__)("Embed of %s."),n);return t&&Object(ye.createElement)("div",Ee.useBlockProps.save(),c&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:i+"px"},"aria-label":s})),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)("a",{href:o,target:r,rel:r?"noreferrer noopener":void 0},Object(ye.createElement)(Ee.RichText.Content,{value:n})),a&&Object(ye.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},Object(ye.createElement)(Ee.RichText.Content,{value:l})))}}],Ho=n("onLe");function Fo({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:o,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:l,changeDisplayPreview:c,previewHeight:i,changePreviewHeight:s}){const{href:u,textLinkHref:m,attachmentPage:d}=e;let b=[{value:u,label:Object(we.__)("URL")}];return d&&(b=[{value:u,label:Object(we.__)("Media file")},{value:d,label:Object(we.__)("Attachment page")}]),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,u.endsWith(".pdf")&&Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("PDF settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show inline embed"),help:l?Object(we.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:c}),l&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Height in pixels"),min:qo,max:Math.max(Uo,i),value:i,onChange:s})),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Text link settings")},Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Link to"),value:m,options:b,onChange:o}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Open in new tab"),checked:t,onChange:r})),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Download button settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show download button"),checked:n,onChange:a}))))}const Do=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!Go("AcroPDF.PDF")&&!Go("PDF.PdfCtrl")))),Go=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},qo=200,Uo=2e3;function Wo({text:e,disabled:t}){const{createNotice:n}=Object(Ie.useDispatch)(Ho.store),o=Object(nt.useCopyToClipboard)(e,()=>{n("info",Object(we.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return Object(ye.createElement)(ke.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t},Object(we.__)("Copy URL"))}var $o=Object(ke.withNotices)((function({attributes:e,isSelected:t,setAttributes:n,noticeUI:o,noticeOperations:r,clientId:a}){const{id:l,fileName:c,href:i,textLinkHref:s,textLinkTarget:u,showDownloadButton:m,downloadButtonText:d,displayPreview:b,previewHeight:p}=e,[g,h]=Object(ye.useState)(!1),{media:v,mediaUpload:O}=Object(Ie.useSelect)(e=>({media:void 0===l?void 0:e(It.store).getMedia(l),mediaUpload:e(Ee.store).getSettings().mediaUpload}),[l]),{toggleSelection:j}=Object(Ie.useDispatch)(Ee.store);function y(e){if(e&&e.url){h(!1);const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function f(e){h(!0),r.removeAllNotices(),r.createErrorNotice(e)}function _(e){n({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}Object(ye.useEffect)(()=>{if(Object(ze.isBlobURL)(i)){const e=Object(ze.getBlobByURL)(i);O({filesList:[e],onFileChange:([e])=>y(e),onError:e=>{h(!0),r.createErrorNotice(e)}}),Object(ze.revokeBlobURL)(i)}void 0===d&&_(Object(we._x)("Download","button label"))},[]),Object(ye.useEffect)(()=>{n({fileId:"wp-block-file--media-"+a})},[a]);const k=v&&v.link,w=Object(Ee.useBlockProps)({className:tt()(Object(ze.isBlobURL)(i)&&Object(ke.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(ze.isBlobURL)(i)})}),E=Do()&&b;return!i||g?Object(ye.createElement)("div",w,Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:Vo}),labels:{title:Object(we.__)("File"),instructions:Object(we.__)("Upload a file or pick one from your media library.")},onSelect:y,notices:o,onError:f,accept:"*"})):Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Fo,{hrefs:{href:i,textLinkHref:s,attachmentPage:k},openInNewWindow:!!u,showDownloadButton:m,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:b,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),qo);n({previewHeight:t})}}),Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:l,mediaURL:i,accept:"*",onSelect:y,onError:f}),Object(ye.createElement)(Wo,{text:i,disabled:Object(ze.isBlobURL)(i)})),Object(ye.createElement)("div",w,E&&Object(ye.createElement)(ke.ResizableBox,{size:{height:p},minHeight:qo,maxHeight:Uo,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>j(!1),onResizeStop:function(e,t,o,r){j(!0);const a=parseInt(p+r.height,10);n({previewHeight:a})},showHandle:t},Object(ye.createElement)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":Object(we.__)("Embed of the selected PDF file.")}),!t&&Object(ye.createElement)("div",{className:"wp-block-file__preview-overlay"})),Object(ye.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(ye.createElement)(Ee.RichText,{tagName:"a",value:c,placeholder:Object(we.__)("Write file name"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:e}),href:s}),m&&Object(ye.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(ye.createElement)(Ee.RichText,{tagName:"div","aria-label":Object(we.__)("Download button text"),className:"wp-block-file__button",value:d,withoutInteractiveFormatting:!0,placeholder:Object(we.__)("Add text"),onChange:e=>_(e)})))))}));var Zo=n("Mmq9");var Ko={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach(e=>{const n=Object(ze.createBlobURL)(e);t.push(Object(je.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>Object(je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>Object(je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>Object(je.createBlock)("core/file",{href:e.url,fileName:e.caption||Object(Zo.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(Ie.select)(It.store),n=t(e);return!!n&&Object(Re.includes)(n.mime_type,"audio")},transform:e=>Object(je.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(Ie.select)(It.store),n=t(e);return!!n&&Object(Re.includes)(n.mime_type,"video")},transform:e=>Object(je.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(Ie.select)(It.store),n=t(e);return!!n&&Object(Re.includes)(n.mime_type,"image")},transform:e=>Object(je.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};const Jo={apiVersion:2,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Qo}=Jo,Yo={icon:Vo,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:Object(we._x)("Armstrong_Small_Step","Name of the file")}},transforms:Ko,deprecated:Ao,edit:$o,save:function({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:r,textLinkTarget:a,showDownloadButton:l,downloadButtonText:c,displayPreview:i,previewHeight:s}=e,u=Ee.RichText.isEmpty(o)?Object(we.__)("PDF embed"):Object(we.sprintf)(Object(we.__)("Embed of %s."),o);return t&&Object(ye.createElement)("div",Ee.useBlockProps.save(),i&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:s+"px"},"aria-label":u})),!Ee.RichText.isEmpty(o)&&Object(ye.createElement)("a",{id:n,href:r,target:a,rel:a?"noreferrer noopener":void 0},Object(ye.createElement)(Ee.RichText.Content,{value:o})),l&&Object(ye.createElement)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":n},Object(ye.createElement)(Ee.RichText.Content,{value:c})))}};var Xo=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function er(e){return Math.min(3,e.images.length)}var tr=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",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"}},supports:{align:!0},isEligible:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=er(e),imageCrop:o,caption:r,linkTo:a}=e;return Object(ye.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},Object(ye.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(ye.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-"+e.id:null});return Object(ye.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ye.createElement)("figure",null,t?Object(ye.createElement)("a",{href:t},n):n,!Ee.RichText.isEmpty(e.caption)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!Ee.RichText.isEmpty(r)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{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:({ids:e})=>e&&e.some(e=>"string"==typeof e),migrate:e=>({...e,ids:Object(Re.map)(e.ids,e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null})}),save({attributes:e}){const{images:t,columns:n=er(e),imageCrop:o,caption:r,linkTo:a}=e;return Object(ye.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},Object(ye.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(ye.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-"+e.id:null});return Object(ye.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ye.createElement)("figure",null,t?Object(ye.createElement)("a",{href:t},n):n,!Ee.RichText.isEmpty(e.caption)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!Ee.RichText.isEmpty(r)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{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({attributes:e}){const{images:t,columns:n=er(e),imageCrop:o,linkTo:r}=e;return Object(ye.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(ye.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-"+e.id:null});return Object(ye.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ye.createElement)("figure",null,t?Object(ye.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(ye.createElement)(Ee.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:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||Object(Re.some)(e,(e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n])),migrate:e=>({...e,ids:Object(Re.map)(e.images,({id:e})=>e?parseInt(e,10):null)}),supports:{align:!0},save({attributes:e}){const{images:t,columns:n=er(e),imageCrop:o,linkTo:r}=e;return Object(ye.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(ye.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(ye.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ye.createElement)("figure",null,t?Object(ye.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(ye.createElement)(Ee.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({attributes:e}){const{images:t,columns:n=er(e),align:o,imageCrop:r,linkTo:a}=e,l=tt()("columns-"+n,{alignnone:"none"===o,"is-cropped":r});return Object(ye.createElement)("div",{className:l},t.map(e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(ye.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(ye.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(ye.createElement)("a",{href:t},n):n)}))}}],nr=n("KEfo");const or=Object(ye.createElement)(Ee.BlockIcon,{icon:Xo});const rr=(e,t="large")=>{const n=Object(Re.pick)(e,["alt","id","link","caption"]);n.url=Object(Re.get)(e,["sizes",t,"url"])||Object(Re.get)(e,["media_details","sizes",t,"source_url"])||e.url;const o=Object(Re.get)(e,["sizes","full","url"])||Object(Re.get)(e,["media_details","sizes","full","source_url"]);return o&&(n.fullUrl=o),n},ar=["noreferrer","noopener"],lr=["image"];function cr(e,t){switch(t){case"media":return{href:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),linkDestination:"media"};case"attachment":return{href:null==e?void 0:e.link,linkDestination:"attachment"};case"none":return{href:void 0,linkDestination:"none"}}return{}}function ir(e,{rel:t}){const n=e?"_blank":void 0;let o;return o=n||t?function(e){let t=e;return void 0===e||Object(Re.isEmpty)(t)||Object(Re.isEmpty)(t)||(Object(Re.each)(ar,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(Re.isEmpty)(t)&&(t=void 0)),t}(t):void 0,{linkTarget:n,rel:o}}const sr=["core/image"];function ur({isHidden:e,captionFocused:t,onFocusCaption:n,className:o,value:r,placeholder:a,tagName:l,captionRef:c,...i}){return e?Object(ye.createElement)(ke.VisuallyHidden,Object(mt.a)({as:Ee.RichText},i)):Object(ye.createElement)(Ee.RichText,Object(mt.a)({ref:c,value:r,placeholder:a,className:o,tagName:l,isSelected:t,onClick:n},i))}var mr=e=>{const{attributes:t,isSelected:n,setAttributes:o,mediaPlaceholder:r,insertBlocksAfter:a,blockProps:l}=e,{align:c,columns:i,caption:s,imageCrop:u}=t,{children:m,...d}=Object(Ee.useInnerBlocksProps)(l,{allowedBlocks:sr,orientation:"horizontal",renderAppender:!1,__experimentalLayout:{type:"default",alignments:[]}}),[b,p]=Object(ye.useState)(!1);return Object(ye.useEffect)(()=>{n||p(!1)},[n]),Object(ye.createElement)("figure",Object(mt.a)({},d,{className:tt()(l.className,"blocks-gallery-grid",{["align"+c]:c,["columns-"+i]:void 0!==i,"columns-default":void 0===i,"is-cropped":u})}),m,Object(ye.createElement)(fe.View,{className:"blocks-gallery-media-placeholder-wrapper",onClick:function(){b&&p(!1)}},r),Object(ye.createElement)(ur,{isHidden:!n&&Ee.RichText.isEmpty(s),captionFocused:b,onFocusCaption:function(){b||p(!0)},tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(we.__)("Gallery caption text"),placeholder:Object(we.__)("Write gallery caption"),value:s,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a(Object(je.createBlock)("core/paragraph"))}))};function dr(e,t,n){return Object(ye.useMemo)(()=>function(){if(!e||0===e.length)return;const{imageSizes:o}=n();let r={};t&&(r=e.reduce((e,t)=>{if(!t.id)return e;const n=o.reduce((e,n)=>{const o=Object(Re.get)(t,["sizes",n.slug,"url"]),r=Object(Re.get)(t,["media_details","sizes",n.slug,"source_url"]);return{...e,[n.slug]:o||r}},{});return{...e,[parseInt(t.id,10)]:n}},{}));return o.filter(({slug:e})=>Object(Re.some)(r,t=>t[e])).map(({name:e,slug:t})=>({value:t,label:e}))}(),[e,t])}function br(e,t){const[n,o]=Object(ye.useState)([]);return Object(ye.useMemo)(()=>function(){let r=!1;const a=n.filter(t=>e.find(e=>t.clientId===e.clientId));a.length<n.length&&(r=!0);e.forEach(e=>{e.fromSavedContent&&!a.find(t=>t.id===e.id)&&(r=!0,a.push(e))});const l=e.filter(e=>!a.find(t=>e.clientId&&t.clientId===e.clientId)&&(null==t?void 0:t.find(t=>t.id===e.id))&&!e.fromSavedConent);(r||(null==l?void 0:l.length)>0)&&o([...a,...l]);return l.length>0?l:null}(),[e,t])}var pr=n("U60i");const gr=[{value:"attachment",label:Object(we.__)("Attachment Page")},{value:"media",label:Object(we.__)("Media File")},{value:"none",label:Object(we._x)("None","Media item link option")}],hr=["image"],vr=ye.Platform.isNative?Object(we.__)("ADD MEDIA"):Object(we.__)("Drag images, upload new ones or select files from your library."),Or=ye.Platform.isNative?{type:"stepper"}:{};var jr=Object(nt.compose)([ke.withNotices,Object(nr.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:o,clientId:r,noticeOperations:a,isSelected:l,noticeUI:c,insertBlocksAfter:i}=e,{columns:s,imageCrop:u,linkTarget:m,linkTo:d,shortCodeTransforms:b,sizeSlug:p}=n;!function(){const{createWarningNotice:e}=Object(Ie.useDispatch)(Ho.store),{toggleFeature:t}=Object(Ie.useDispatch)(pr.i);Object(Ie.useSelect)(e=>{const{isFeatureActive:t}=e(pr.i);return t("core/edit-post","mobileGalleryWarning")},[])&&(e(Object(we.__)("Editing this Gallery in the WordPress mobile app requires version 18.2 or higher."),{type:"snackbar",explicitDismiss:!0}),t("core/edit-post","mobileGalleryWarning"))}();const{__unstableMarkNextChangeAsNotPersistent:g,replaceInnerBlocks:h,updateBlockAttributes:v}=Object(Ie.useDispatch)(Ee.store),{createSuccessNotice:O}=Object(Ie.useDispatch)(Ho.store),{getBlock:j,getSettings:y,preferredStyle:f}=Object(Ie.useSelect)(e=>{var t;const n=e(Ee.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(Ee.store).getBlock,getSettings:e(Ee.store).getSettings,preferredStyle:null==n||null===(t=n.value)||void 0===t?void 0:t["core/image"]}},[]),_=Object(Ie.useSelect)(e=>{var t;return null===(t=e(Ee.store).getBlock(r))||void 0===t?void 0:t.innerBlocks},[r]),k=Object(ye.useMemo)(()=>null==_?void 0:_.map(e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})),[_]),w=function(e){const[t,n]=Object(ye.useState)([]),o=Object(Ie.useSelect)(n=>{if(null==e||!e.length)return t;const o=e.map(e=>e.attributes.id).filter(e=>void 0!==e);return 0===o.length?t:n(It.store).getMediaItems({include:o.join(","),per_page:-1})},[e]);return(null==o?void 0:o.length)!==(null==t?void 0:t.length)||null!=o&&o.some(e=>!t.find(t=>t.id===e.id))?(n(o),o):t}(_),E=br(k,w);Object(ye.useEffect)(()=>{null==E||E.forEach(e=>{v(e.clientId,{...S(!1,e.attributes),id:e.id,align:void 0})})},[E]);const C=function(e){const t=Object(Ie.useSelect)(t=>{if(!e||0===e.length)return;const n=t(It.store).getMedia;return e.map(e=>{const t=n(e.id);if(t)return{id:t.id,type:"image",url:t.source_url,mime:t.mime_type,alt:t.alt_text,link:t.link}})},[e]);if(t)return Object(Re.every)(t,e=>e&&e.url)?t:void 0}(b);Object(ye.useEffect)(()=>{b&&C&&(T(C),t({shortCodeTransforms:void 0}))},[b,C]);const x=dr(w,l,y);function S(e,t){if(e)return e.attributes;let o;return o=t.className&&""!==t.className?t.className:f?"is-style-"+f:void 0,{...rr(t,p),...cr(t,d),...ir(m,n),className:o,sizeSlug:p}}function B(e){var t;return hr.some(t=>{var n;return 0===(null===(n=e.type)||void 0===n?void 0:n.indexOf(t))})||0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}function T(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map(e=>e.url?e:rr({url:Object(ze.createBlobURL)(e)})):e;n.every(B)||(a.removeAllNotices(),a.createErrorNotice(Object(we.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file"}));const o=n.filter(e=>e.url||B(e)).map(e=>e.url?e:rr({url:Object(ze.createBlobURL)(e)})),l=o.reduce((e,t,n)=>(e[t.id]=n,e),{}),c=t?_:_.filter(e=>o.find(t=>t.id===e.attributes.id)),i=o.filter(e=>!c.find(t=>e.id===t.attributes.id)).map(e=>Object(je.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt}));h(r,Object(Re.concat)(c,i).sort((e,t)=>l[e.attributes.id]-l[t.attributes.id]))}Object(ye.useEffect)(()=>{var e,n,o,r,a,l;d||(g(),t({linkTo:(null===(e=window)||void 0===e||null===(n=e.wp)||void 0===n||null===(o=n.media)||void 0===o||null===(r=o.view)||void 0===r||null===(a=r.settings)||void 0===a||null===(l=a.defaultProps)||void 0===l?void 0:l.link)||"none"}))},[d]);const N=!!k.length,P=N&&k.some(e=>!!e.id),z=k.some(e=>{var t;return!e.id&&0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}),I=Object(ye.createElement)(Ee.MediaPlaceholder,{addToGallery:P,handleUpload:!1,isAppender:N,disableMediaButtons:N&&!l||z,icon:!N&&or,labels:{title:!N&&Object(we.__)("Gallery"),instructions:!N&&vr},onSelect:T,accept:"image/*",allowedTypes:hr,multiple:!0,value:P?k:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:N?void 0:c}),M=Object(Ee.useBlockProps)({className:tt()(o,"has-nested-images")});if(!N)return Object(ye.createElement)(fe.View,M,I);const R=d&&"none"!==d;return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Gallery settings")},k.length>1&&Object(ye.createElement)(ke.RangeControl,Object(mt.a)({label:Object(we.__)("Columns"),value:s||(L=k.length,L?Math.min(3,L):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,k.length)},Or,{required:!0})),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Crop images"),checked:!!u,onChange:function(){t({imageCrop:!u})},help:function(e){return e?Object(we.__)("Thumbnails are cropped to align."):Object(we.__)("Thumbnails are not cropped.")}}),Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Link to"),value:d,onChange:function(e){t({linkTo:e});const n={},o=[];j(r).innerBlocks.forEach(t=>{o.push(t.clientId);const r=t.attributes.id?Object(Re.find)(w,{id:t.attributes.id}):null;n[t.clientId]=cr(r,e)}),v(o,n,!0);const a=[...gr].find(t=>t.value===e);O(Object(we.sprintf)(Object(we.__)("All gallery image links updated to: %s"),a.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:gr,hideCancelButton:!0}),R&&Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Open in new tab"),checked:"_blank"===m,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const o={},a=[];j(r).innerBlocks.forEach(e=>{a.push(e.clientId),o[e.clientId]=ir(n,e.attributes)}),v(a,o,!0);const l=e?Object(we.__)("All gallery images updated to open in new tab"):Object(we.__)("All gallery images updated to not open in new tab");O(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),(null==x?void 0:x.length)>0&&Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Image size"),value:p,options:x,onChange:function(e){t({sizeSlug:e});const n={},o=[];j(r).innerBlocks.forEach(t=>{o.push(t.clientId);const r=t.attributes.id?Object(Re.find)(w,{id:t.attributes.id}):null;n[t.clientId]=function(e,t){const n=Object(Re.get)(e,["media_details","sizes",t,"source_url"]);return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(r,e)}),v(o,n,!0);const a=x.find(t=>t.value===e);O(Object(we.sprintf)(Object(we.__)("All gallery image sizes updated to: %s"),a.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0}),ye.Platform.isWeb&&!x&&Object(ye.createElement)(ke.BaseControl,{className:"gallery-image-sizes"},Object(ye.createElement)(ke.BaseControl.VisualLabel,null,Object(we.__)("Image size")),Object(ye.createElement)(fe.View,{className:"gallery-image-sizes__loading"},Object(ye.createElement)(ke.Spinner,null),Object(we.__)("Loading options"))))),c,Object(ye.createElement)(mr,Object(mt.a)({},e,{images:k,mediaPlaceholder:I,blockProps:M,insertBlocksAfter:i})));var L}));const yr=(e,t="large")=>{const n=Object(Re.pick)(e,["alt","id","link","caption"]);n.url=Object(Re.get)(e,["sizes",t,"url"])||Object(Re.get)(e,["media_details","sizes",t,"source_url"])||e.url;const o=Object(Re.get)(e,["sizes","full","url"])||Object(Re.get)(e,["media_details","sizes","full","source_url"]);return o&&(n.fullUrl=o),n};var fr=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),_r=n("2gm7"),kr=n("1iEr"),wr=n("bWcr");class Er extends ye.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[dt.BACKSPACE,dt.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:o,alt:r,caption:a,sizeSlug:l}=this.props;if(!e||!e.url)return;let c=yr(e,l);((e,t)=>!e&&Object(ze.isBlobURL)(t))(n,o)&&r&&(c=Object(Re.omit)(c,["alt"])),a&&!Object(Re.get)(c,["caption"])&&(c=Object(Re.omit)(c,["caption"])),t(c),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:o,link:r,isFirstItem:a,isLastItem:l,isSelected:c,caption:i,onRemove:s,onMoveForward:u,onMoveBackward:m,setAttributes:d,"aria-label":b}=this.props,{isEditing:p}=this.state;let g;switch(o){case"file":g=e;break;case"post":g=r}const h=Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":b,ref:this.bindContainer}),Object(ze.isBlobURL)(e)&&Object(ye.createElement)(ke.Spinner,null)),v=tt()({"is-selected":c,"is-transient":Object(ze.isBlobURL)(e)});return Object(ye.createElement)("figure",{className:v,onClick:this.onSelectImage,onFocus:this.onSelectImage},!p&&(g?Object(ye.createElement)("a",{href:g},h):h),p&&Object(ye.createElement)(Ee.MediaPlaceholder,{labels:{title:Object(we.__)("Edit gallery image")},icon:fr,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),Object(ye.createElement)(ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(ye.createElement)(ke.Button,{icon:_r.a,onClick:a?void 0:m,label:Object(we.__)("Move image backward"),"aria-disabled":a,disabled:!c}),Object(ye.createElement)(ke.Button,{icon:kr.a,onClick:l?void 0:u,label:Object(we.__)("Move image forward"),"aria-disabled":l,disabled:!c})),Object(ye.createElement)(ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(ye.createElement)(ke.Button,{icon:Xn.a,onClick:this.onEdit,label:Object(we.__)("Replace image"),disabled:!c}),Object(ye.createElement)(ke.Button,{icon:wr.a,onClick:s,label:Object(we.__)("Remove image"),disabled:!c})),!p&&(c||i)&&Object(ye.createElement)(Ee.RichText,{tagName:"figcaption","aria-label":Object(we.__)("Image caption text"),placeholder:c?Object(we.__)("Add caption"):null,value:i,onChange:e=>d({caption:e}),inlineToolbar:!0}))}}var Cr=Object(nt.compose)([Object(Ie.withSelect)((e,t)=>{const{getMedia:n}=e(It.store),{id:o}=t;return{image:o?n(parseInt(o,10)):null}}),Object(Ie.withDispatch)(e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(Ee.store);return{__unstableMarkNextChangeAsNotPersistent:t}})])(Er);function xr({isHidden:e,...t}){return e?Object(ye.createElement)(ke.VisuallyHidden,Object(mt.a)({as:Ee.RichText},t)):Object(ye.createElement)(Ee.RichText,t)}var Sr=e=>{const{attributes:t,isSelected:n,setAttributes:o,selectedImage:r,mediaPlaceholder:a,onMoveBackward:l,onMoveForward:c,onRemoveImage:i,onSelectImage:s,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:d,blockProps:b}=e,{align:p,columns:g=er(t),caption:h,imageCrop:v,images:O}=t;return Object(ye.createElement)("figure",Object(mt.a)({},b,{className:tt()(b.className,{["align"+p]:p,["columns-"+g]:g,"is-cropped":v})}),Object(ye.createElement)("ul",{className:"blocks-gallery-grid"},O.map((e,o)=>{const a=Object(we.sprintf)(Object(we.__)("image %1$d of %2$d in gallery"),o+1,O.length);return Object(ye.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${o}`:e.url},Object(ye.createElement)(Cr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===o,isLastItem:o+1===O.length,isSelected:n&&r===o,onMoveBackward:l(o),onMoveForward:c(o),onRemove:i(o),onSelect:s(o),onDeselect:u(o),setAttributes:e=>m(o,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))})),a,Object(ye.createElement)(xr,{isHidden:!n&&Ee.RichText.isEmpty(h),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(we.__)("Gallery caption text"),placeholder:Object(we.__)("Write gallery caption"),value:h,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>d(Object(je.createBlock)("core/paragraph"))}))};const Br=({clientId:e,getBlock:t,replaceBlocks:n})=>()=>{let o;const{attributes:{sizeSlug:r,linkTo:a,images:l,caption:c}}=t(e);switch(a){case"post":o="post";break;case"file":o="file";break;default:o="none"}const i=l.map(e=>Object(je.createBlock)("core/image",{id:parseInt(e.id,10),url:e.url,alt:e.alt,caption:e.caption,linkDestination:o}));n(e,Object(je.createBlock)("core/gallery",{sizeSlug:r,linkTo:o,caption:c},i))};function Tr({onClose:e,clientId:t}){const{getBlock:n}=Object(Ie.useSelect)(Ee.store),{replaceBlocks:o}=Object(Ie.useDispatch)(Ee.store);return Object(ye.createElement)(ke.Modal,{closeLabel:Object(we.__)("Close"),onRequestClose:e,title:Object(we.__)("Update gallery"),className:"wp-block-update-gallery-modal",aria:{describedby:"wp-block-update-gallery-modal__description"}},Object(ye.createElement)("p",{id:"wp-block-update-gallery-modal__description"},Object(we.__)("Updating to the new format adds the ability to use custom links or styles on individual images in the gallery, and makes it easier to add or move them around.")),Object(ye.createElement)("div",{className:"wp-block-update-gallery-modal-buttons"},Object(ye.createElement)(ke.Button,{isTertiary:!0,onClick:e},Object(we.__)("Cancel")),Object(ye.createElement)(ke.Button,{isPrimary:!0,onClick:Br({replaceBlocks:o,getBlock:n,clientId:t,createBlock:je.createBlock})},Object(we.__)("Update"))))}const Nr=[{value:"post",label:Object(we.__)("Attachment Page")},{value:"file",label:Object(we.__)("Media File")},{value:"none",label:Object(we.__)("None")}],Pr=["image"],zr=ye.Platform.select({web:Object(we.__)("Drag images, upload new ones or select files from your library."),native:Object(we.__)("ADD MEDIA")}),Ir=ye.Platform.select({web:{},native:{type:"stepper"}});var Mr=Object(nt.compose)([ke.withNotices,Object(nr.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:o,noticeUI:r,noticeOperations:a,onFocus:l}=e,{columns:c=er(t),imageCrop:i,images:s,linkTo:u,sizeSlug:m}=t,[d,b]=Object(ye.useState)(),[p,g]=Object(ye.useState)(),{__unstableMarkNextChangeAsNotPersistent:h}=Object(Ie.useDispatch)(Ee.store),{imageSizes:v,mediaUpload:O,getMedia:j,wasBlockJustInserted:y,__unstableGalleryWithImageBlocks:f}=Object(Ie.useSelect)(e=>{const t=e(Ee.store).getSettings();return{__unstableGalleryWithImageBlocks:t.__unstableGalleryWithImageBlocks,imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(It.store).getMedia,wasBlockJustInserted:e(Ee.store).wasBlockJustInserted(n,"inserter_menu")}}),_=Object(ye.useMemo)(()=>o?Object(Re.reduce)(t.ids,(e,t)=>{if(!t)return e;const n=j(t),o=Object(Re.reduce)(v,(e,t)=>{const o=Object(Re.get)(n,["sizes",t.slug,"url"]),r=Object(Re.get)(n,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:o||r}},{});return{...e,[parseInt(t,10)]:o}},{}):{},[o,t.ids,v]);function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:Object(Re.map)(t.images,({id:e})=>parseInt(e,10))}),e.setAttributes(t)}function w(e,t){const n=[...s];n.splice(t,1,s[e]),n.splice(e,1,s[t]),b(t),k({images:n})}function E(e){const t=Object(Re.toString)(e.id),n=Object(Re.find)(s,{id:t}),o=n?n.caption:e.caption;if(!p)return o;const r=Object(Re.find)(p,{id:t});return r&&r.caption!==e.caption?e.caption:o}function C(e){g(e.map(e=>({id:Object(Re.toString)(e.id),caption:e.caption}))),k({images:e.map(e=>({...yr(e,m),caption:E(e),id:Object(Re.toString)(e.id)})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(ye.useEffect)(()=>{if("web"===ye.Platform.OS&&s&&s.length>0&&Object(Re.every)(s,({url:e})=>Object(ze.isBlobURL)(e))){const e=Object(Re.map)(s,({url:e})=>Object(ze.getBlobByURL)(e));Object(Re.forEach)(s,({url:e})=>Object(ze.revokeBlobURL)(e)),O({filesList:e,onFileChange:C,allowedTypes:["image"]})}},[]),Object(ye.useEffect)(()=>{o||b()},[o]),Object(ye.useEffect)(()=>{var e,t,n,o,r,a;u||(h(),k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(o=n.view)||void 0===o||null===(r=o.settings)||void 0===r||null===(a=r.defaultProps)||void 0===a?void 0:a.link)||"none"}))},[u]);const x=!!s.length,S=x&&s.some(e=>!!e.id),B=Object(ye.createElement)(Ee.MediaPlaceholder,{addToGallery:S,isAppender:x,disableMediaButtons:x&&!o,icon:!x&&or,labels:{title:!x&&Object(we.__)("Gallery"),instructions:!x&&zr},onSelect:C,accept:"image/*",allowedTypes:Pr,multiple:!0,value:S?s:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:x?void 0:r,onFocus:l,autoOpenMediaUpload:!x&&o&&y}),[T,N]=Object(ye.useState)(!1),P=Object(Ee.useBlockProps)();if(!x)return Object(ye.createElement)(fe.View,P,B);const z=Object(Re.map)(Object(Re.filter)(v,({slug:e})=>Object(Re.some)(_,t=>t[e])),({name:e,slug:t})=>({value:t,label:e})),I=x&&!Object(Re.isEmpty)(z);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Gallery settings")},s.length>1&&Object(ye.createElement)(ke.RangeControl,Object(mt.a)({label:Object(we.__)("Columns"),value:c,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,s.length)},Ir,{required:!0})),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Crop images"),checked:!!i,onChange:function(){k({imageCrop:!i})},help:function(e){return e?Object(we.__)("Thumbnails are cropped to align."):Object(we.__)("Thumbnails are not cropped.")}}),Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Link to"),value:u,onChange:function(e){k({linkTo:e})},options:Nr,hideCancelButton:!0}),I&&Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Image size"),value:m,options:z,onChange:function(e){k({images:Object(Re.map)(s,t=>{if(!t.id)return t;const n=Object(Re.get)(_,[parseInt(t.id,10),e]);return{...t,...n&&{url:n}}}),sizeSlug:e})},hideCancelButton:!0}))),ye.Platform.isWeb&&f&&Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(ke.ToolbarButton,{onClick:()=>N(!0),title:Object(we.__)("Update"),label:Object(we.__)("Update to the new gallery format")},Object(we.__)("Update"))),ye.Platform.isWeb&&T&&Object(ye.createElement)(Tr,{onClose:()=>N(!1),clientId:n}),r,Object(ye.createElement)(Sr,Object(mt.a)({},e,{selectedImage:d,mediaPlaceholder:B,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==s.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=Object(Re.filter)(s,(t,n)=>e!==n);b(),k({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{b(e)}},onDeselectImage:function(){return()=>{b()}},onSetImageAttributes:function(e,t){s[e]&&k({images:[...s.slice(0,e),{...s[e],...t},...s.slice(e+1)]})},blockProps:P,onFocusGalleryCaption:function(){b()}})))}));var Rr=n("g56x");const Lr=e=>e?e.split(",").map(e=>parseInt(e,10)):[];Object(Rr.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){var t;if(Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks&&"core/gallery"===e.name&&(null===(t=e.attributes)||void 0===t?void 0:t.images.length)>0){const t=e.attributes.images.map(({url:t,id:n,alt:o})=>Object(je.createBlock)("core/image",{url:t,id:n?parseInt(n,10):null,alt:o,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),Object(Rr.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find(t=>{var n;return"core/gallery"===t.name&&t.innerBlocks.length>0&&!(null!==(n=t.attributes.images)&&void 0!==n&&n.length)>0&&!e.name.includes("core/")});if(n){const e=n.innerBlocks.map(({attributes:{url:e,id:t,alt:n}})=>({url:e,id:t?parseInt(t,10):null,alt:n})),t=e.map(({id:e})=>e);n.attributes.images=e,n.attributes.ids=t}return e}));var Vr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=Object(Re.every)(e,["align",t])?t:void 0,n=Object(Re.every)(e,["sizeSlug",n])?n:void 0;const o=Object(Re.filter)(e,({url:e})=>e);if(Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks){const e=o.map(e=>Object(je.createBlock)("core/image",e));return Object(je.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return Object(je.createBlock)("core/gallery",{images:o.map(({id:e,url:t,alt:n,caption:o})=>({id:Object(Re.toString)(e),url:t,alt:n,caption:o})),ids:o.map(({id:e})=>parseInt(e,10)),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>{if(!Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks)return Lr(e).map(e=>({id:Object(Re.toString)(e)}))}},ids:{type:"array",shortcode:({named:{ids:e}})=>{if(!Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks)return Lr(e)}},shortCodeTransforms:{type:"array",shortcode:({named:{ids:e}})=>{if(Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks)return Lr(e).map(e=>({id:parseInt(e)}))}},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e}})=>{if(!Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks)switch(e){case"post":return"post";case"file":return"file";default:return"post"}switch(e){case"post":return"attachment";case"file":return"media";default:return"none"}}}},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&Object(Re.every)(e,e=>0===e.type.indexOf("image/")),transform(e){if(Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks){const t=e.map(e=>Object(je.createBlock)("core/image",{url:Object(ze.createBlobURL)(e)}));return Object(je.createBlock)("core/gallery",{},t)}return Object(je.createBlock)("core/gallery",{images:e.map(e=>rr({url:Object(ze.createBlobURL)(e)}))})}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:n,sizeSlug:o},r)=>Object(Ie.select)(Ee.store).getSettings().__unstableGalleryWithImageBlocks?r.length>0?r.map(({attributes:{id:t,url:n,alt:o,caption:r,imageSizeSlug:a}})=>Object(je.createBlock)("core/image",{id:t,url:n,alt:o,caption:r,sizeSlug:a,align:e})):Object(je.createBlock)("core/image",{align:e}):t.length>0?t.map(({url:t,alt:r,caption:a},l)=>Object(je.createBlock)("core/image",{id:n[l],url:t,alt:r,caption:a,align:e,sizeSlug:o})):Object(je.createBlock)("core/image",{align:e})}]};const Ar={apiVersion:2,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Hr}=Ar,Fr={icon:Xo,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Vr,edit:function(e){var t,n;const{attributes:o,clientId:r}=e,a=Object(Ie.useSelect)(e=>{var t;return null===(t=e(Ee.store).getBlock(r))||void 0===t?void 0:t.innerBlocks},[r]),l=Object(Ie.useSelect)(e=>e(Ee.store).getSettings().__unstableGalleryWithImageBlocks,[]),c=!(null==a||!a.length);return 0<(null==o||null===(t=o.ids)||void 0===t?void 0:t.length)||0<(null==o||null===(n=o.images)||void 0===n?void 0:n.length)||!c&&!l?Object(ye.createElement)(Mr,e):Object(ye.createElement)(jr,e)},save:function({attributes:e}){var t,n;if((null==e||null===(t=e.ids)||void 0===t?void 0:t.length)>0||(null==e||null===(n=e.images)||void 0===n?void 0:n.length)>0)return function({attributes:e}){const{images:t,columns:n=er(e),imageCrop:o,caption:r,linkTo:a}=e,l=`columns-${n} ${o?"is-cropped":""}`;return Object(ye.createElement)("figure",Ee.useBlockProps.save({className:l}),Object(ye.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}const n=Object(ye.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-"+e.id:null});return Object(ye.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ye.createElement)("figure",null,t?Object(ye.createElement)("a",{href:t},n):n,!Ee.RichText.isEmpty(e.caption)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!Ee.RichText.isEmpty(r)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}({attributes:e});const{caption:o,columns:r,imageCrop:a}=e,l=tt()("has-nested-images",{["columns-"+r]:void 0!==r,"columns-default":void 0===r,"is-cropped":a}),c=Ee.useBlockProps.save({className:l}),i=Ee.useInnerBlocksProps.save(c);return Object(ye.createElement)("figure",i,i.children,!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))},deprecated:tr};var Dr=n("u6za");const Gr=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(Re.omit)(e,["customTextColor","customBackgroundColor"]),style:t}};var qr=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return Object(ye.createElement)(t,Ee.useBlockProps.save(),Object(ye.createElement)("div",{className:"wp-block-group__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Gr,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:r}=e,a=Object(Ee.getColorClassName)("background-color",t),l=Object(Ee.getColorClassName)("color",o),c=tt()(a,l,{"has-text-color":o||r,"has-background":t||n}),i={backgroundColor:a?void 0:n,color:l?void 0:r};return Object(ye.createElement)("div",{className:c,style:i},Object(ye.createElement)("div",{className:"wp-block-group__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Gr,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:r}=e,a=Object(Ee.getColorClassName)("background-color",t),l=Object(Ee.getColorClassName)("color",o),c=tt()(a,{"has-text-color":o||r,"has-background":t||n}),i={backgroundColor:a?void 0:n,color:l?void 0:r};return Object(ye.createElement)("div",{className:c,style:i},Object(ye.createElement)("div",{className:"wp-block-group__inner-container"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Gr,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,o=Object(Ee.getColorClassName)("background-color",t),r=tt()(o,{"has-background":t||n}),a={backgroundColor:o?void 0:n};return Object(ye.createElement)("div",{className:r,style:a},Object(ye.createElement)(Ee.InnerBlocks.Content,null))}}];const Ur={header:Object(we.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:Object(we.__)("The <main> element should be used for the primary content of your document only. "),section:Object(we.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:Object(we.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:Object(we.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:Object(we.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var Wr=function({attributes:e,setAttributes:t,clientId:n}){const{hasInnerBlocks:o,themeSupportsLayout:r}=Object(Ie.useSelect)(e=>{var t;const{getBlock:o,getSettings:r}=e(Ee.store),a=o(n);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=r())||void 0===t?void 0:t.supportsLayout}},[n]),a=Object(Ee.useSetting)("layout")||{},{tagName:l="div",templateLock:c,layout:i={}}=e,s=i&&i.inherit?a:i,{type:u="default"}=s,m=r||"default"!==u,d=Object(Ee.useBlockProps)(),b=Object(Ee.useInnerBlocksProps)(m?d:{className:"wp-block-group__inner-container"},{templateLock:c,renderAppender:o?void 0:Ee.InnerBlocks.ButtonBlockAppender,__experimentalLayout:m?s:void 0});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("HTML element"),options:[{label:Object(we.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:l,onChange:e=>t({tagName:e}),help:Ur[l]})),m&&Object(ye.createElement)(l,b),!m&&Object(ye.createElement)(l,d,Object(ye.createElement)("div",b)))};var $r=[{name:"group-row",title:Object(we.__)("Row"),description:Object(we.__)("Blocks shown in a row."),attributes:{layout:{type:"flex",allowOrientation:!1}},scope:["inserter"],isActive:e=>{var t;return"flex"===(null===(t=e.layout)||void 0===t?void 0:t.type)}}];const Zr={apiVersion:2,name:"core/group",title:"Group",category:"design",description:"Combine blocks into a group.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string",enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:Kr}=Zr,Jr={icon:Dr.a,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(we.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(we.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(we.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(we.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(we.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(we.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){if(1===e.length&&"core/group"===e[0].name)return;const t=["wide","full"],n=e.reduce((e,n)=>{const{align:o}=n.attributes;return t.indexOf(o)>t.indexOf(e)?o:e},void 0),o=e.map(e=>Object(je.createBlock)(e.name,e.attributes,e.innerBlocks));return Object(je.createBlock)("core/group",{align:n},o)}}]},edit:Wr,save:function({attributes:{tagName:e}}){return Object(ye.createElement)(e,Ee.useInnerBlocksProps.save(Ee.useBlockProps.save()))},deprecated:qr,variations:$r};var Qr=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));const Yr={className:!1,anchor:!0},Xr={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},ea=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...Object(Re.omit)(e,["customTextColor"]),style:t}},ta=["left","right","center"],na=e=>{const{align:t,...n}=e;return ta.includes(t)?{...n,textAlign:t}:e};var oa=[{supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:Xr,isEligible:({align:e})=>ta.includes(e),migrate:na,save({attributes:e}){const{align:t,content:n,level:o}=e,r="h"+o,a=tt()({["has-text-align-"+t]:t});return Object(ye.createElement)(r,Ee.useBlockProps.save({className:a}),Object(ye.createElement)(Ee.RichText.Content,{value:n}))}},{supports:Yr,attributes:{...Xr,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ea(na(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:r,textColor:a}=e,l="h"+r,c=Object(Ee.getColorClassName)("color",a),i=tt()({[c]:c,"has-text-color":a||o,["has-text-align-"+t]:t});return Object(ye.createElement)(Ee.RichText.Content,{className:i||void 0,tagName:l,style:{color:c?void 0:o},value:n})}},{attributes:{...Xr,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ea(na(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:r,textColor:a}=e,l="h"+r,c=Object(Ee.getColorClassName)("color",a),i=tt()({[c]:c,["has-text-align-"+t]:t});return Object(ye.createElement)(Ee.RichText.Content,{className:i||void 0,tagName:l,style:{color:c?void 0:o},value:n})},supports:Yr},{supports:Yr,attributes:{...Xr,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ea(na(e)),save({attributes:e}){const{align:t,level:n,content:o,textColor:r,customTextColor:a}=e,l="h"+n,c=Object(Ee.getColorClassName)("color",r),i=tt()({[c]:c});return Object(ye.createElement)(Ee.RichText.Content,{className:i||void 0,tagName:l,style:{textAlign:t,color:c?void 0:a},value:o})}}];function ra({level:e,isPressed:t=!1}){const n={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 n.hasOwnProperty(e)?Object(ye.createElement)(ke.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},Object(ye.createElement)(ke.Path,{d:n[e]})):null}const aa=[1,2,3,4,5,6],la={className:"block-library-heading-level-dropdown"};function ca({selectedLevel:e,onChange:t}){return Object(ye.createElement)(ke.ToolbarDropdownMenu,{popoverProps:la,icon:Object(ye.createElement)(ra,{level:e}),label:Object(we.__)("Change heading level"),controls:aa.map(n=>{{const o=n===e;return{icon:Object(ye.createElement)(ra,{level:n,isPressed:o}),label:Object(we.sprintf)(Object(we.__)("Heading %d"),n),isActive:o,onClick(){t(n)}}}})})}const ia={},sa=e=>Object(Re.trim)(Object(Re.deburr)((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase(),"-"),ua=(e,t)=>{const n=sa(t);if(""===n)return null;delete ia[e];let o=n,r=0;for(;Object.values(ia).includes(o);)r+=1,o=n+"-"+r;return o},ma=(e,t)=>{ia[e]=t};var da=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o,style:r,clientId:a}){const{textAlign:l,content:c,level:i,placeholder:s,anchor:u}=e,m="h"+i,d=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+l]:l}),style:r}),{__unstableMarkNextChangeAsNotPersistent:b}=Object(Ie.useDispatch)(Ee.store);return Object(ye.useEffect)(()=>(!u&&c&&(b(),t({anchor:ua(a,c)})),ma(a,u),()=>ma(a,null)),[c,u]),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(ca,{selectedLevel:i,onChange:e=>t({level:e})}),Object(ye.createElement)(Ee.AlignmentControl,{value:l,onChange:e=>{t({textAlign:e})}})),Object(ye.createElement)(Ee.RichText,Object(mt.a)({identifier:"content",tagName:m,value:c,onChange:e=>{const n={content:e};u&&e&&ua(a,c)!==u||(n.anchor=ua(a,e)),t(n)},onMerge:n,onSplit:(t,n)=>{let o;var r;n||t?o=Object(je.createBlock)("core/heading",{...e,content:t}):o=Object(je.createBlock)(null!==(r=Object(je.getDefaultBlockName)())&&void 0!==r?r:"core/heading");return n&&(o.clientId=a),o},onReplace:o,onRemove:()=>o([]),"aria-label":Object(we.__)("Heading text"),placeholder:s||Object(we.__)("Heading"),textAlign:l},d)))};const{name:ba}={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var pa={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(je.createBlock)(ba,{content:e,anchor:t}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=Object(je.getBlockAttributes)(ba,e.outerHTML),{textAlign:n}=e.style||{};var o;return t.level=(o=e.nodeName,Number(o.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(je.createBlock)(ba,t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>Object(je.createBlock)(ba,{level:e,content:t})})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>Object(je.createBlock)(ba,{level:e,content:t})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(je.createBlock)("core/paragraph",{content:e,anchor:t}))}]};const ga={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:ha}=ga,va={icon:Qr,example:{attributes:{content:Object(we.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t,level:n}=e;return Object(Re.isEmpty)(t)?Object(we.sprintf)(Object(we.__)("Level %s. Empty."),n):Object(we.sprintf)(Object(we.__)("Level %1$s. %2$s"),n,t)}},transforms:pa,deprecated:oa,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:da,save:function({attributes:e}){const{textAlign:t,content:n,level:o}=e,r="h"+o,a=tt()({["has-text-align-"+t]:t});return Object(ye.createElement)(r,Ee.useBlockProps.save({className:a}),Object(ye.createElement)(Ee.RichText.Content,{value:n}))}};var Oa=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var ja={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>Object(je.createBlock)("core/html",{content:e})}]};const ya={apiVersion:2,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:fa}=ya,_a={icon:Oa,example:{attributes:{content:"<marquee>"+Object(we.__)("Welcome to the wonderful world of blocks")+"</marquee>"}},edit:function({attributes:e,setAttributes:t,isSelected:n}){const[o,r]=Object(ye.useState)(),a=Object(Ie.useSelect)(e=>["\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",...Object(Ee.transformStyles)(e(Ee.store).getSettings().styles)],[]);return Object(ye.createElement)("div",Object(Ee.useBlockProps)({className:"block-library-html__edit"}),Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){r(!1)}},Object(ye.createElement)("span",null,"HTML")),Object(ye.createElement)(ke.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){r(!0)}},Object(ye.createElement)("span",null,Object(we.__)("Preview"))))),Object(ye.createElement)(ke.Disabled.Consumer,null,r=>o||r?Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.SandBox,{html:e.content,styles:a}),!n&&Object(ye.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(ye.createElement)(Ee.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:Object(we.__)("Write HTML"),"aria-label":Object(we.__)("HTML")})))},save:function({attributes:e}){return Object(ye.createElement)(ye.RawHTML,null,e.content)},transforms:ja},ka={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"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}};var wa=[{attributes:ka,save({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,width:l,height:c,id:i}=e,s=tt()({["align"+r]:r,"is-resized":l||c}),u=Object(ye.createElement)("img",{src:t,alt:n,className:i?"wp-image-"+i:null,width:l,height:c});return Object(ye.createElement)("figure",{className:s},a?Object(ye.createElement)("a",{href:a},u):u,!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ka,save({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,width:l,height:c,id:i}=e,s=Object(ye.createElement)("img",{src:t,alt:n,className:i?"wp-image-"+i:null,width:l,height:c});return Object(ye.createElement)("figure",{className:r?"align"+r:null},a?Object(ye.createElement)("a",{href:a},s):s,!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ka,save({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,width:l,height:c}=e,i=l||c?{width:l,height:c}:{},s=Object(ye.createElement)("img",Object(mt.a)({src:t,alt:n},i));let u={};return l?u={width:l}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),Object(ye.createElement)("figure",{className:r?"align"+r:null,style:u},a?Object(ye.createElement)("a",{href:a},s):s,!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:o}))}}];var Ea=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"})),Ca=n("NTP4");var xa=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));function Sa(e,t){const[n,o]=Object(ye.useState)();function r(){o(e.current.clientWidth)}return Object(ye.useEffect)(r,t),Object(ye.useEffect)(()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",r),()=>{t.removeEventListener("resize",r)}},[]),n}function Ba({temporaryURL:e,attributes:{url:t="",alt:n,caption:o,align:r,id:a,href:l,rel:c,linkClass:i,linkDestination:s,title:u,width:m,height:d,linkTarget:b,sizeSlug:p},setAttributes:g,isSelected:h,insertBlocksAfter:v,onReplace:O,onSelectImage:j,onSelectURL:y,onUploadError:f,containerRef:_,context:k,clientId:w}){const E=Object(ye.useRef)(),C=Object(nt.usePrevious)(t),{allowResize:x=!0}=k,{getBlock:S}=Object(Ie.useSelect)(Ee.store),{image:B,multiImageSelection:T}=Object(Ie.useSelect)(e=>{const{getMedia:t}=e(It.store),{getMultiSelectedBlockClientIds:n,getBlockName:o}=e(Ee.store),r=n();return{image:a&&h?t(a):null,multiImageSelection:r.length&&r.every(e=>"core/image"===o(e))}},[a,h]),{canInsertCover:N,imageEditing:P,imageSizes:z,maxWidth:I,mediaUpload:M}=Object(Ie.useSelect)(e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:o}=e(Ee.store),r=t(w);return{...Object(Re.pick)(n(),["imageEditing","imageSizes","maxWidth","mediaUpload"]),canInsertCover:o("core/cover",r)}},[w]),{replaceBlocks:R,toggleSelection:L}=Object(Ie.useDispatch)(Ee.store),{createErrorNotice:V,createSuccessNotice:A}=Object(Ie.useDispatch)(Ho.store),H=Object(nt.useViewportMatch)("medium"),F=Object(Re.includes)(["wide","full"],r),[{naturalWidth:D,naturalHeight:G},q]=Object(ye.useState)({}),[U,W]=Object(ye.useState)(!1),[$,Z]=Object(ye.useState)(),K=Sa(_,[r]),J=x&&!(F&&H),Q=Object(Re.map)(Object(Re.filter)(z,({slug:e})=>Object(Re.get)(B,["media_details","sizes",e,"source_url"])),({name:e,slug:t})=>({value:t,label:e}));Object(ye.useEffect)(()=>{Ta(a,t)&&h&&!$&&window.fetch(t).then(e=>e.blob()).then(e=>Z(e)).catch(()=>{})},[a,t,h,$]),Object(ye.useEffect)(()=>{t&&!C&&h&&E.current.focus()},[t,C]),Object(ye.useEffect)(()=>{h||W(!1)},[h]);const Y=a&&D&&G&&P,X=!T&&Y&&!U;const ee=Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.BlockAlignmentControl,{value:r,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};g({...t,align:e})}}),!T&&!U&&Object(ye.createElement)(Ee.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){g(e)},linkDestination:s,mediaUrl:B&&B.source_url||t,mediaLink:B&&B.link,linkTarget:b,linkClass:i,rel:c}),X&&Object(ye.createElement)(ke.ToolbarButton,{onClick:()=>W(!0),icon:Ea,label:Object(we.__)("Crop")}),$&&Object(ye.createElement)(ke.ToolbarButton,{onClick:function(){M({filesList:[$],onFileChange([e]){j(e),Object(ze.isBlobURL)(e.url)||(Z(),A(Object(we.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:lr,onError(e){V(e,{type:"snackbar"})}})},icon:Ca.a,label:Object(we.__)("Upload external image")}),!T&&N&&Object(ye.createElement)(ke.ToolbarButton,{icon:xa,label:Object(we.__)("Add text over image"),onClick:function(){R(w,Object(je.switchToBlockType)(S(w),"core/cover"))}})),!T&&!U&&Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:a,mediaURL:t,allowedTypes:lr,accept:"image/*",onSelect:j,onSelectURL:y,onError:f})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Image settings")},!T&&Object(ye.createElement)(ke.TextareaControl,{label:Object(we.__)("Alt text (alternative text)"),value:n,onChange:function(e){g({alt:e})},help:Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(we.__)("Describe the purpose of the image")),Object(we.__)("Leave empty if the image is purely decorative."))}),Object(ye.createElement)(Ee.__experimentalImageSizeControl,{onChangeImage:function(e){const t=Object(Re.get)(B,["media_details","sizes",e,"source_url"]);if(!t)return null;g({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>g(e),slug:p,width:m,height:d,imageSizeOptions:Q,isResizable:J,imageWidth:D,imageHeight:G}))),Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Title attribute"),value:u||"",onChange:function(e){g({title:e})},help:Object(ye.createElement)(ye.Fragment,null,Object(we.__)("Describe the role of this image on the page."),Object(ye.createElement)(ke.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(we.__)("(Note: many devices and browsers do not display this text.)")))}))),te=Object(Zo.getFilename)(t);let ne;ne=n||(te?Object(we.sprintf)(Object(we.__)("This image has an empty alt attribute; its file name is %s"),te):Object(we.__)("This image has an empty alt attribute"));let oe,re,ae=Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("img",{src:e||t,alt:ne,onError:()=>function(){const e=Ge({attributes:{url:t}});void 0!==e&&O(e)}(),onLoad:e=>{q(Object(Re.pick)(e.target,["naturalWidth","naturalHeight"]))}}),e&&Object(ye.createElement)(ke.Spinner,null));if(K&&D&&G){const e=D>K,t=G/D;oe=e?K:D,re=e?K*t:G}if(Y&&U)ae=Object(ye.createElement)(Ee.__experimentalImageEditor,{url:t,width:m,height:d,clientWidth:K,naturalHeight:G,naturalWidth:D});else if(J&&oe){const e=m||oe,t=d||re,n=D/G,o=D<G?20:20*n,a=G<D?20:20/n,l=2.5*I;let c=!1,i=!1;"center"===r?(c=!0,i=!0):Object(we.isRTL)()?"left"===r?c=!0:i=!0:"right"===r?i=!0:c=!0,ae=Object(ye.createElement)(ke.ResizableBox,{size:{width:null!=m?m:"auto",height:null!=d?d:"auto"},showHandle:h,minWidth:o,maxWidth:l,minHeight:a,maxHeight:l/n,lockAspectRatio:!0,enable:{top:!1,right:c,bottom:!0,left:i},onResizeStart:function(){L(!1)},onResizeStop:(n,o,r,a)=>{L(!0),g({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},ae)}else ae=Object(ye.createElement)("div",{style:{width:m,height:d}},ae);return Object(ye.createElement)(Ee.__experimentalImageEditingProvider,{id:a,url:t,naturalWidth:D,naturalHeight:G,clientWidth:K,onSaveImage:e=>g(e),isEditing:U,onFinishEditing:()=>W(!1)},!e&&ee,ae,(!Ee.RichText.isEmpty(o)||h)&&Object(ye.createElement)(Ee.RichText,{ref:E,tagName:"figcaption","aria-label":Object(we.__)("Image caption text"),placeholder:Object(we.__)("Add caption"),value:o,onChange:e=>g({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>v(Object(je.createBlock)("core/paragraph"))}))}const Ta=(e,t)=>t&&!e&&!Object(ze.isBlobURL)(t);var Na=Object(ke.withNotices)((function({attributes:e,setAttributes:t,isSelected:n,className:o,noticeUI:r,insertBlocksAfter:a,noticeOperations:l,onReplace:c,context:i,clientId:s}){const{url:u="",alt:m,caption:d,align:b,id:p,width:g,height:h,sizeSlug:v}=e,[O,j]=Object(ye.useState)(),y=Object(ye.useRef)();Object(ye.useEffect)(()=>{y.current=m},[m]);const f=Object(ye.useRef)();Object(ye.useEffect)(()=>{f.current=d},[d]);const _=Object(ye.useRef)(),{imageDefaultSize:k,mediaUpload:w}=Object(Ie.useSelect)(e=>{const{getSettings:t}=e(Ee.store);return Object(Re.pick)(t(),["imageDefaultSize","mediaUpload"])},[]);function E(e){l.removeAllNotices(),l.createErrorNotice(e)}function C(n){var o,r,a,l,c;if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(ze.isBlobURL)(n.url))return void j(n.url);j();let i,s=((e,t)=>{const n=Object(Re.pick)(e,["alt","id","link","caption"]);return n.url=Object(Re.get)(e,["sizes",t,"url"])||Object(Re.get)(e,["media_details","sizes",t,"source_url"])||e.url,n})(n,k);var m,d;f.current&&!Object(Re.get)(s,["caption"])&&(s=Object(Re.omit)(s,["caption"])),i=n.id&&n.id===p?{url:u}:{width:void 0,height:void 0,sizeSlug:(m=n,d=k,Object(Re.has)(m,["sizes",d,"url"])||Object(Re.has)(m,["media_details","sizes",d,"source_url"])?k:"full")};let b,g=e.linkDestination;if(!g)switch((null===(o=wp)||void 0===o||null===(r=o.media)||void 0===r||null===(a=r.view)||void 0===a||null===(l=a.settings)||void 0===l||null===(c=l.defaultProps)||void 0===c?void 0:c.link)||"none"){case"file":case"media":g="media";break;case"post":case"attachment":g="attachment";break;case"custom":g="custom";break;case"none":g="none"}switch(g){case"media":b=n.url;break;case"attachment":b=n.link}s.href=b,t({...s,...i,linkDestination:g})}function x(e){e!==u&&t({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:k})}let S=((e,t)=>!e&&Object(ze.isBlobURL)(t))(p,u);Object(ye.useEffect)(()=>{if(!S)return;const e=Object(ze.getBlobByURL)(u);e&&w({filesList:[e],onFileChange:([e])=>{C(e)},allowedTypes:lr,onError:e=>{S=!1,l.createErrorNotice(e),t({src:void 0,id:void 0,url:void 0})}})},[]),Object(ye.useEffect)(()=>{S?j(u):Object(ze.revokeBlobURL)(O)},[S,u]);const B=Ta(p,u)?u:void 0,T=!!u&&Object(ye.createElement)("img",{alt:Object(we.__)("Edit image"),title:Object(we.__)("Edit image"),className:"edit-image-preview",src:u}),N=tt()(o,{"is-transient":O,"is-resized":!!g||!!h,["size-"+v]:v}),P=Object(Ee.useBlockProps)({ref:_,className:N});return Object(ye.createElement)("figure",P,(O||u)&&Object(ye.createElement)(Ba,{temporaryURL:O,attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a,onReplace:c,onSelectImage:C,onSelectURL:x,onUploadError:E,containerRef:_,context:i,clientId:s}),!u&&Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.BlockAlignmentControl,{value:b,onChange:function(e){const n=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...n,align:e})}})),Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:fr}),onSelect:C,onSelectURL:x,notices:r,onError:E,accept:"image/*",allowedTypes:lr,value:{id:p,src:B},mediaPreview:T,disableMediaButtons:O||u}))}));function Pa(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:o}=n;if(o&&"A"===o.nodeName)return o.getAttribute(t)||void 0}const za={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};var Ia={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...za,a:{attributes:["href","rel","target"],children:za},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),o=""===e.id?void 0:e.id,r=n?n[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=a?Number(a[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,s=c&&c.href?c.href:void 0,u=c&&c.rel?c.rel:void 0,m=c&&c.className?c.className:void 0,d=Object(je.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:l,linkDestination:i,href:s,rel:u,linkClass:m,anchor:o});return Object(je.createBlock)("core/image",d)}},{type:"files",isMatch(e){if(e.some(e=>0===e.type.indexOf("image/"))&&e.some(e=>0!==e.type.indexOf("image/"))){const{createErrorNotice:e}=Object(Ie.dispatch)(Ho.store);e(Object(we.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file"})}return Object(Re.every)(e,e=>0===e.type.indexOf("image/"))},transform:e=>e.map(e=>Object(je.createBlock)("core/image",{url:Object(ze.createBlobURL)(e)}))},{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,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let o=n.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==n;)o=o.parentNode;return o&&o.parentNode.removeChild(o),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>Pa(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>Pa(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>Pa(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};const Ma={apiVersion:2,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",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"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Ra}=Ma,La={icon:fr,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(we.__)("Mont Blanc appearsstill, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:n,url:o}=e;return o?n?n+(t?". "+t:""):t||"":Object(we.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:Ia,edit:Na,save:function({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,rel:l,linkClass:c,width:i,height:s,id:u,linkTarget:m,sizeSlug:d,title:b}=e,p=Object(Re.isEmpty)(l)?void 0:l,g=tt()({["align"+r]:r,["size-"+d]:d,"is-resized":i||s}),h=Object(ye.createElement)("img",{src:t,alt:n,className:u?"wp-image-"+u:null,width:i,height:s,title:b}),v=Object(ye.createElement)(ye.Fragment,null,a?Object(ye.createElement)("a",{className:c,href:a,target:m,rel:p},h):h,!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:o}));return"left"===r||"right"===r||"center"===r?Object(ye.createElement)("div",Ee.useBlockProps.save(),Object(ye.createElement)("figure",{className:g},v)):Object(ye.createElement)("figure",Ee.useBlockProps.save({className:g}),v)},deprecated:wa};var Va=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const Aa={apiVersion:2,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:Ha}=Aa,Fa={icon:Va,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:o,displayDate:r,displayExcerpt:a}=e;return Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Latest comments settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display avatar"),checked:o,onChange:()=>t({displayAvatar:!o})}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})}),Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),Object(ye.createElement)(ke.Disabled,null,Object(ye.createElement)(xe.a,{block:"core/latest-comments",attributes:e,urlQueryArgs:{_locale:"site"}})))}};var Da=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:Ga}={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var qa=[{attributes:{...Ga,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Ua=n("FqII");var Wa=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),$a=n("b2RC");const Za={per_page:-1,context:"view"},Ka={per_page:-1,has_published_posts:["post"],context:"view"};const Ja={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Qa}=Ja,Ya={icon:Da,example:{},edit:function({attributes:e,setAttributes:t}){var n;const{postsToShow:o,order:r,orderBy:a,categories:l,selectedAuthor:c,displayFeaturedImage:i,displayPostContentRadio:s,displayPostContent:u,displayPostDate:m,displayAuthor:d,postLayout:b,columns:p,excerptLength:g,featuredImageAlign:h,featuredImageSizeSlug:v,featuredImageSizeWidth:O,featuredImageSizeHeight:j,addLinkToFeaturedImage:y}=e,{imageSizeOptions:f,latestPosts:_,defaultImageWidth:k,defaultImageHeight:w,categoriesList:E,authorList:C}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t,getMedia:n,getUsers:i}=e(It.store),{getSettings:s}=e(Ee.store),{imageSizes:u,imageDimensions:m}=s(),d=l&&l.length>0?l.map(e=>e.id):[],b=t("postType","post",Object(Re.pickBy)({categories:d,author:c,order:r,orderby:a,per_page:o},e=>!Object(Re.isUndefined)(e)));return{defaultImageWidth:Object(Re.get)(m,[v,"width"],0),defaultImageHeight:Object(Re.get)(m,[v,"height"],0),imageSizeOptions:u.filter(({slug:e})=>"full"!==e).map(({name:e,slug:t})=>({value:t,label:e})),latestPosts:Array.isArray(b)?b.map(e=>{if(!e.featured_media)return e;const t=n(e.featured_media);let o=Object(Re.get)(t,["media_details","sizes",v,"source_url"],null);o||(o=Object(Re.get)(t,"source_url",null));const r={url:o,alt:null==t?void 0:t.alt_text};return{...e,featuredImageInfo:r}}):b,categoriesList:t("taxonomy","category",Za),authorList:i(Ka)}},[v,o,r,a,l,c]),x=null!==(n=null==E?void 0:E.reduce((e,t)=>({...e,[t.name]:t}),{}))&&void 0!==n?n:{},S=!(null==_||!_.length),B=Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Post content settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Post content"),checked:u,onChange:e=>t({displayPostContent:e})}),u&&Object(ye.createElement)(ke.RadioControl,{label:Object(we.__)("Show:"),selected:s,options:[{label:Object(we.__)("Excerpt"),value:"excerpt"},{label:Object(we.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})}),u&&"excerpt"===s&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Max number of words in excerpt"),value:g,onChange:e=>t({excerptLength:e}),min:10,max:100})),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Post meta settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display author name"),checked:d,onChange:e=>t({displayAuthor:e})}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display post date"),checked:m,onChange:e=>t({displayPostDate:e})})),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Featured image settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display featured image"),checked:i,onChange:e=>t({displayFeaturedImage:e})}),i&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.__experimentalImageSizeControl,{onChange:e=>{const n={};e.hasOwnProperty("width")&&(n.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(n.featuredImageSizeHeight=e.height),t(n)},slug:v,width:O,height:j,imageWidth:k,imageHeight:w,imageSizeOptions:f,onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),Object(ye.createElement)(ke.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(ye.createElement)(ke.BaseControl.VisualLabel,null,Object(we.__)("Image alignment")),Object(ye.createElement)(Ee.BlockAlignmentToolbar,{value:h,onChange:e=>t({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Add link to featured image"),checked:y,onChange:e=>t({addLinkToFeaturedImage:e})}))),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Sorting and filtering")},Object(ye.createElement)(ke.QueryControls,{order:r,orderBy:a,numberOfItems:o,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:x,onCategoryChange:e=>{if(e.some(e=>"string"==typeof e&&!x[e]))return;const n=e.map(e=>"string"==typeof e?x[e]:e);if(Object(Re.includes)(n,null))return!1;t({categories:n})},selectedCategories:l,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=C?C:[],selectedAuthorId:c}),"grid"===b&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Columns"),value:p,onChange:e=>t({columns:e}),min:2,max:S?Math.min(6,_.length):6,required:!0}))),T=Object(Ee.useBlockProps)({className:tt()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===b,"has-dates":m,"has-author":d,["columns-"+p]:"grid"===b})});if(!S)return Object(ye.createElement)("div",T,B,Object(ye.createElement)(ke.Placeholder,{icon:Ht,label:Object(we.__)("Latest Posts")},Array.isArray(_)?Object(we.__)("No posts found."):Object(ye.createElement)(ke.Spinner,null)));const N=_.length>o?_.slice(0,o):_,P=[{icon:Wa,title:Object(we.__)("List view"),onClick:()=>t({postLayout:"list"}),isActive:"list"===b},{icon:$a.a,title:Object(we.__)("Grid view"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===b}],z=Object(Ua.__experimentalGetSettings)().formats.date;return Object(ye.createElement)("div",null,B,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,{controls:P})),Object(ye.createElement)("ul",T,N.map((e,t)=>{const n=Object(Re.invoke)(e,["title","rendered","trim"]);let o=e.excerpt.rendered;const r=null==C?void 0:C.find(t=>t.id===e.author),a=document.createElement("div");a.innerHTML=o,o=a.textContent||a.innerText||"";const{featuredImageInfo:{url:l,alt:c}={}}=e,b=tt()({"wp-block-latest-posts__featured-image":!0,["align"+h]:!!h}),p=i&&l,v=p&&Object(ye.createElement)("img",{src:l,alt:c,style:{maxWidth:O,maxHeight:j}}),f=g<o.trim().split(" ").length&&""===e.excerpt.raw?Object(ye.createElement)(ye.Fragment,null,o.trim().split(" ",g).join(" "),Object(we.__)(" "),Object(ye.createElement)("a",{href:e.link,rel:"noopener noreferrer"},Object(we.__)("Read more"))):o;return Object(ye.createElement)("li",{key:t},p&&Object(ye.createElement)("div",{className:b},y?Object(ye.createElement)("a",{href:e.link,rel:"noreferrer noopener"},v):v),Object(ye.createElement)("a",{href:e.link,rel:"noreferrer noopener"},n?Object(ye.createElement)(ye.RawHTML,null,n):Object(we.__)("(no title)")),d&&r&&Object(ye.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(we.sprintf)(Object(we.__)("by %s"),r.name)),m&&e.date_gmt&&Object(ye.createElement)("time",{dateTime:Object(Ua.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Ua.dateI18n)(z,e.date_gmt)),u&&"excerpt"===s&&Object(ye.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},f),u&&"full_post"===s&&Object(ye.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(ye.createElement)(ye.RawHTML,{key:"html"},e.content.raw.trim())))})))},deprecated:qa};var Xa=[{attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:r,start:a}=e,l=t?"ol":"ul";return Object(ye.createElement)(l,Ee.useBlockProps.save({type:o,reversed:r,start:a}),Object(ye.createElement)(Ee.RichText.Content,{value:n,multiline:"li"}))},migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}}];var el=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var tl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var nl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var ol=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"}));var rl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var al=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var ll=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var cl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));var il=({setAttributes:e,reversed:t,start:n})=>Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Ordered list settings")},Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));function sl({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(e=>{t[e].children={li:{children:t}}}),t}var ul={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>Object(je.createBlock)("core/list",{values:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(({content:t})=>{const n=Object(kt.create)({html:t});return e.length>1?n:Object(kt.replace)(n,/\n/g,kt.__UNSTABLE_LINE_SEPARATOR)}),kt.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:({value:e,anchor:t})=>Object(je.createBlock)("core/list",{values:Object(kt.toHTMLString)({value:Object(kt.create)({html:e,multilineTag:"p"}),multilineTag:"li"}),anchor:t})},{type:"raw",selector:"ol,ul",schema:e=>({ol:sl(e).ol,ul:sl(e).ul}),transform(e){const t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){const n=e.getAttribute("type");n&&(t.type=n),null!==e.getAttribute("reversed")&&(t.reversed=!0);const o=parseInt(e.getAttribute("start"),10);isNaN(o)||1===o&&!t.reversed||(t.start=o)}return Object(je.createBlock)("core/list",{...Object(je.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(je.createBlock)("core/list",{values:`<li>${e}</li>`})})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(je.createBlock)("core/list",{ordered:!0,values:`<li>${e}</li>`})}))],to:[{type:"block",blocks:["core/paragraph"],transform:({values:e})=>Object(kt.split)(Object(kt.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kt.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(je.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))},{type:"block",blocks:["core/heading"],transform:({values:e})=>Object(kt.split)(Object(kt.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kt.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(je.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:e})}))},{type:"block",blocks:["core/quote"],transform:({values:e,anchor:t})=>Object(je.createBlock)("core/quote",{value:Object(kt.toHTMLString)({value:Object(kt.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({values:e,anchor:t})=>Object(je.createBlock)("core/pullquote",{value:Object(kt.toHTMLString)({value:Object(kt.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})}]};const ml={apiVersion:2,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:dl}=ml,bl={icon:Wa,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:ul,merge(e,t){const{values:n}=t;return n&&"<li></li>"!==n?{...e,values:e.values+n}:e},edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o,style:r}){const{ordered:a,values:l,type:c,reversed:i,start:s,placeholder:u}=e,m=a?"ol":"ul",d=Object(Ee.useBlockProps)({style:r});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.RichText,Object(mt.a)({identifier:"values",multiline:"li",tagName:m,onChange:e=>t({values:e}),value:l,"aria-label":Object(we.__)("List text"),placeholder:u||Object(we.__)("List"),onMerge:n,onSplit:t=>Object(je.createBlock)(dl,{...e,values:t}),__unstableOnSplitMiddle:()=>Object(je.createBlock)("core/paragraph"),onReplace:o,onRemove:()=>o([]),start:s,reversed:i,type:c},d),({value:e,onChange:n,onFocus:o})=>Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{n(Object(kt.__unstableOutdentListItems)(e))}}),Object(ye.createElement)(Ee.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{n(Object(kt.__unstableIndentListItems)(e,{type:m}))}}),Object(ye.createElement)(Ee.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{n(Object(kt.__unstableIndentListItems)(e,{type:m}))}}),Object(ye.createElement)(Ee.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{n(Object(kt.__unstableOutdentListItems)(e))}}),Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(ke.ToolbarButton,{icon:Object(we.isRTL)()?el:tl,title:Object(we.__)("Unordered"),describedBy:Object(we.__)("Convert to unordered list"),isActive:Object(kt.__unstableIsActiveListType)(e,"ul",m),onClick:()=>{n(Object(kt.__unstableChangeListType)(e,{type:"ul"})),o(),Object(kt.__unstableIsListRootSelected)(e)&&t({ordered:!1})}}),Object(ye.createElement)(ke.ToolbarButton,{icon:Object(we.isRTL)()?nl:ol,title:Object(we.__)("Ordered"),describedBy:Object(we.__)("Convert to ordered list"),isActive:Object(kt.__unstableIsActiveListType)(e,"ol",m),onClick:()=>{n(Object(kt.__unstableChangeListType)(e,{type:"ol"})),o(),Object(kt.__unstableIsListRootSelected)(e)&&t({ordered:!0})}}),Object(ye.createElement)(ke.ToolbarButton,{icon:Object(we.isRTL)()?rl:al,title:Object(we.__)("Outdent"),describedBy:Object(we.__)("Outdent list item"),shortcut:Object(we._x)("Backspace","keyboard key"),isDisabled:!Object(kt.__unstableCanOutdentListItems)(e),onClick:()=>{n(Object(kt.__unstableOutdentListItems)(e)),o()}}),Object(ye.createElement)(ke.ToolbarButton,{icon:Object(we.isRTL)()?ll:cl,title:Object(we.__)("Indent"),describedBy:Object(we.__)("Indent list item"),shortcut:Object(we._x)("Space","keyboard key"),isDisabled:!Object(kt.__unstableCanIndentListItems)(e),onClick:()=>{n(Object(kt.__unstableIndentListItems)(e,{type:m})),o()}})))),a&&Object(ye.createElement)(il,{setAttributes:t,ordered:a,reversed:i,start:s,placeholder:u}))},save:function({attributes:e}){const{ordered:t,values:n,type:o,reversed:r,start:a}=e,l=t?"ol":"ul";return Object(ye.createElement)(l,Ee.useBlockProps.save({type:o,reversed:r,start:a}),Object(ye.createElement)(Ee.RichText.Content,{value:n,multiline:"li"}))},deprecated:Xa};var pl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const gl={apiVersion:2,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!1}}},{name:hl}=gl,vl={icon:pl,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:o}=e;return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Login/out settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})}))),Object(ye.createElement)("div",Object(Ee.useBlockProps)({className:"logged-in"}),Object(ye.createElement)("a",{href:"#login-pseudo-link"},Object(we.__)("Log out"))))}};var Ol=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),jl=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.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(ye.createElement)(ke.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(ye.createElement)(ke.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const yl=["image","video"];function fl(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const _l=Object(ye.forwardRef)(({isSelected:e,isStackedOnMobile:t,...n},o)=>{const r=Object(nt.useViewportMatch)("small","<");return Object(ye.createElement)(ke.ResizableBox,Object(mt.a)({ref:o,showHandle:e&&(!r||!t)},n))});function kl({mediaId:e,mediaUrl:t,onSelectMedia:n}){return Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:yl,accept:"image/*,video/*",onSelect:n}))}function wl({className:e,noticeOperations:t,noticeUI:n,mediaUrl:o,onSelectMedia:r}){return Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:jl}),labels:{title:Object(we.__)("Media area")},className:e,onSelect:r,accept:"image/*,video/*",allowedTypes:yl,notices:n,onError:e=>{t.removeAllNotices(),t.createErrorNotice(e)},disableMediaButtons:o})}var El=Object(ke.withNotices)(Object(ye.forwardRef)((function(e,t){const{className:n,commitWidthChange:o,focalPoint:r,imageFill:a,isSelected:l,isStackedOnMobile:c,mediaAlt:i,mediaId:s,mediaPosition:u,mediaType:m,mediaUrl:d,mediaWidth:b,onSelectMedia:p,onWidthChange:g}=e,h=!s&&Object(ze.isBlobURL)(d),{toggleSelection:v}=Object(Ie.useDispatch)(Ee.store);if(d){const O=()=>{v(!1)},j=(e,t,n)=>{g(parseInt(n.style.width))},y=(e,t,n)=>{v(!0),o(parseInt(n.style.width))},f={right:"left"===u,left:"right"===u},_="image"===m&&a?fl(d,r):{},k={image:()=>Object(ye.createElement)("img",{src:d,alt:i}),video:()=>Object(ye.createElement)("video",{controls:!0,src:d})};return Object(ye.createElement)(_l,{as:"figure",className:tt()(n,"editor-media-container__resizer",{"is-transient":h}),style:_,size:{width:b+"%"},minWidth:"10%",maxWidth:"100%",enable:f,onResizeStart:O,onResize:j,onResizeStop:y,axis:"x",isSelected:l,isStackedOnMobile:c,ref:t},Object(ye.createElement)(kl,{onSelectMedia:p,mediaUrl:d,mediaId:s}),(k[m]||Re.noop)(),h&&Object(ye.createElement)(ke.Spinner,null),Object(ye.createElement)(wl,e))}return Object(ye.createElement)(wl,e)})));const Cl=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...Object(Re.omit)(e,["customBackgroundColor"]),style:t}},xl={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}};var Sl=[{attributes:{...xl,customBackgroundColor:{type:"string"},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"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:Cl,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:r,mediaPosition:a,mediaType:l,mediaUrl:c,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:m,focalPoint:d,linkClass:b,href:p,linkTarget:g,rel:h}=e,v=Object(Re.isEmpty)(h)?void 0:h;let O=Object(ye.createElement)("img",{src:c,alt:r,className:s&&"image"===l?"wp-image-"+s:null});p&&(O=Object(ye.createElement)("a",{className:b,href:p,target:g,rel:v},O));const j={image:()=>O,video:()=>Object(ye.createElement)("video",{controls:!0,src:c})},y=Object(Ee.getColorClassName)("background-color",t),f=tt()({"has-media-on-the-right":"right"===a,"has-background":y||n,[y]:y,"is-stacked-on-mobile":o,["is-vertically-aligned-"+u]:u,"is-image-fill":m}),_=m?fl(c,d):{};let k;50!==i&&(k="right"===a?`auto ${i}%`:i+"% auto");const w={backgroundColor:y?void 0:n,gridTemplateColumns:k};return Object(ye.createElement)("div",{className:f,style:w},Object(ye.createElement)("figure",{className:"wp-block-media-text__media",style:_},(j[l]||Re.noop)()),Object(ye.createElement)("div",{className:"wp-block-media-text__content"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))}},{attributes:{...xl,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:Cl,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:r,mediaPosition:a,mediaType:l,mediaUrl:c,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:m,focalPoint:d}=e,b={image:()=>Object(ye.createElement)("img",{src:c,alt:r,className:s&&"image"===l?"wp-image-"+s:null}),video:()=>Object(ye.createElement)("video",{controls:!0,src:c})},p=Object(Ee.getColorClassName)("background-color",t),g=tt()({"has-media-on-the-right":"right"===a,[p]:p,"is-stacked-on-mobile":o,["is-vertically-aligned-"+u]:u,"is-image-fill":m}),h=m?fl(c,d):{};let v;50!==i&&(v="right"===a?`auto ${i}%`:i+"% auto");const O={backgroundColor:p?void 0:n,gridTemplateColumns:v};return Object(ye.createElement)("div",{className:g,style:O},Object(ye.createElement)("figure",{className:"wp-block-media-text__media",style:h},(b[l]||Re.noop)()),Object(ye.createElement)("div",{className:"wp-block-media-text__content"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))}},{attributes:{...xl,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:r,mediaPosition:a,mediaType:l,mediaUrl:c,mediaWidth:i}=e,s={image:()=>Object(ye.createElement)("img",{src:c,alt:r}),video:()=>Object(ye.createElement)("video",{controls:!0,src:c})},u=Object(Ee.getColorClassName)("background-color",t),m=tt()({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":o});let d;50!==i&&(d="right"===a?`auto ${i}%`:i+"% auto");const b={backgroundColor:u?void 0:n,gridTemplateColumns:d};return Object(ye.createElement)("div",{className:m,style:b},Object(ye.createElement)("figure",{className:"wp-block-media-text__media"},(s[l]||Re.noop)()),Object(ye.createElement)("div",{className:"wp-block-media-text__content"},Object(ye.createElement)(Ee.InnerBlocks.Content,null)))}}];var Bl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var Tl=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));const Nl=[["core/paragraph",{fontSize:"large",placeholder:Object(we._x)("Content","content placeholder")}]],Pl=e=>Math.max(15,Math.min(e,85));function zl(e,t){var n,o,r;return null==e||null===(n=e.media_details)||void 0===n||null===(o=n.sizes)||void 0===o||null===(r=o[t])||void 0===r?void 0:r.source_url}var Il=function({attributes:e,isSelected:t,setAttributes:n}){const{focalPoint:o,href:r,imageFill:a,isStackedOnMobile:l,linkClass:c,linkDestination:i,linkTarget:s,mediaAlt:u,mediaId:m,mediaPosition:d,mediaType:b,mediaUrl:p,mediaWidth:g,rel:h,verticalAlignment:v}=e,O=e.mediaSizeSlug||"full",j=Object(Ie.useSelect)(e=>m&&t?e(It.store).getMedia(m):null,[t,m]),y=Object(ye.useRef)(),f=e=>{const{style:t}=y.current.resizable,{x:n,y:o}=e;t.backgroundPosition=`${100*n}% ${100*o}%`},[_,k]=Object(ye.useState)(null),w=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return o=>{let r,a;var l,c,i,s,u;(r=o.media_type?"image"===o.media_type?"image":"video":o.type,"image"===r)&&(a=(null===(l=o.sizes)||void 0===l||null===(c=l.large)||void 0===c?void 0:c.url)||(null===(i=o.media_details)||void 0===i||null===(s=i.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));let m=t;"media"===e&&(m=o.url),"attachment"===e&&(m=o.link),n({mediaAlt:o.alt,mediaId:o.id,mediaType:r,mediaUrl:a||o.url,mediaLink:o.link||void 0,href:m,focalPoint:void 0})}}({attributes:e,setAttributes:n}),E=e=>{n({mediaWidth:Pl(e)}),k(Pl(e))},C=tt()({"has-media-on-the-right":"right"===d,"is-selected":t,"is-stacked-on-mobile":l,["is-vertically-aligned-"+v]:v,"is-image-fill":a}),x=(_||g)+"%",S="right"===d?"1fr "+x:x+" 1fr",B={gridTemplateColumns:S,msGridColumns:S},T=Object(Ie.useSelect)(e=>{const t=e(Ee.store).getSettings();return null==t?void 0:t.imageSizes},[]),N=Object(Re.map)(Object(Re.filter)(T,({slug:e})=>zl(j,e)),({name:e,slug:t})=>({value:t,label:e})),P=Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Media & Text settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}),"image"===b&&Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Crop image to fill entire column"),checked:a,onChange:()=>n({imageFill:!a})}),a&&p&&"image"===b&&Object(ye.createElement)(ke.FocalPointPicker,{label:Object(we.__)("Focal point picker"),url:p,value:o,onChange:e=>n({focalPoint:e}),onDragStart:f,onDrag:f}),"image"===b&&Object(ye.createElement)(ke.TextareaControl,{label:Object(we.__)("Alt text (alternative text)"),value:u,onChange:e=>{n({mediaAlt:e})},help:Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(we.__)("Describe the purpose of the image")),Object(we.__)("Leave empty if the image is purely decorative."))}),"image"===b&&Object(ye.createElement)(Ee.__experimentalImageSizeControl,{onChangeImage:e=>{const t=zl(j,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:O,imageSizeOptions:N,isResizable:!1}),p&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Media width"),value:_||g,onChange:E,min:15,max:85})),z=Object(Ee.useBlockProps)({className:C,style:B}),I=Object(Ee.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Nl});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,P),Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:v}),Object(ye.createElement)(ke.ToolbarButton,{icon:Bl,title:Object(we.__)("Show media on left"),isActive:"left"===d,onClick:()=>n({mediaPosition:"left"})}),Object(ye.createElement)(ke.ToolbarButton,{icon:Tl,title:Object(we.__)("Show media on right"),isActive:"right"===d,onClick:()=>n({mediaPosition:"right"})}),"image"===b&&Object(ye.createElement)(Ee.__experimentalImageURLInputUI,{url:r||"",onChangeUrl:e=>{n(e)},linkDestination:i,mediaType:b,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:s,linkClass:c,rel:h})),Object(ye.createElement)("div",z,Object(ye.createElement)(El,{className:"wp-block-media-text__media",onSelectMedia:w,onWidthChange:e=>{k(Pl(e))},commitWidthChange:E,ref:y,focalPoint:o,imageFill:a,isSelected:t,isStackedOnMobile:l,mediaAlt:u,mediaId:m,mediaPosition:d,mediaType:b,mediaUrl:p,mediaWidth:g}),Object(ye.createElement)("div",I)))};var Ml={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:o})=>Object(je.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>Object(je.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:o})=>Object(je.createBlock)("core/image",{alt:e,id:t,url:n,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>Object(je.createBlock)("core/video",{id:e,src:t,anchor:n})}]};const Rl={apiVersion:2,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"wide"},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},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:Ll}=Rl,Vl={icon:Ol,example:{viewportWidth:601,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(we.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(we.__)(" Kobayashi Issa ()")}}]},transforms:Ml,edit:Il,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:r,mediaUrl:a,mediaWidth:l,mediaId:c,verticalAlignment:i,imageFill:s,focalPoint:u,linkClass:m,href:d,linkTarget:b,rel:p}=e,g=e.mediaSizeSlug||"full",h=Object(Re.isEmpty)(p)?void 0:p,v=tt()({["wp-image-"+c]:c&&"image"===r,["size-"+g]:c&&"image"===r});let O=Object(ye.createElement)("img",{src:a,alt:n,className:v||null});d&&(O=Object(ye.createElement)("a",{className:m,href:d,target:b,rel:h},O));const j={image:()=>O,video:()=>Object(ye.createElement)("video",{controls:!0,src:a})},y=tt()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,["is-vertically-aligned-"+i]:i,"is-image-fill":s}),f=s?fl(a,u):{};let _;50!==l&&(_="right"===o?`auto ${l}%`:l+"% auto");const k={gridTemplateColumns:_};return Object(ye.createElement)("div",Ee.useBlockProps.save({className:y,style:k}),Object(ye.createElement)("figure",{className:"wp-block-media-text__media",style:f},(j[r]||Re.noop)()),Object(ye.createElement)("div",Ee.useInnerBlocksProps.save({className:"wp-block-media-text__content"})))},deprecated:Sl};var Al=n("1CF3");var Hl=Object(Ie.withDispatch)((e,{clientId:t,attributes:n})=>{const{replaceBlock:o}=e(Ee.store);return{convertToHTML(){o(t,Object(je.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}})((function({attributes:e,convertToHTML:t}){const{originalName:n,originalUndelimitedContent:o}=e,r=!!o,a=Object(je.getBlockType)("core/html"),l=[];let c;return r&&a?(c=Object(we.sprintf)(Object(we.__)('Your site doesnt include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),n),l.push(Object(ye.createElement)(ke.Button,{key:"convert",onClick:t,variant:"primary"},Object(we.__)("Keep as HTML")))):c=Object(we.sprintf)(Object(we.__)('Your site doesnt include support for the "%s" block. You can leave this block intact or remove it entirely.'),n),Object(ye.createElement)("div",Object(Ee.useBlockProps)({className:"has-warning"}),Object(ye.createElement)(Ee.Warning,{actions:l},c),Object(ye.createElement)(ye.RawHTML,null,Object(Al.safeHTML)(o)))}));const Fl={apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesnt include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:Dl}=Fl,Gl={name:Dl,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?Object(je.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:Hl,save:function({attributes:e}){return Object(ye.createElement)(ye.RawHTML,null,e.originalContent)}};var ql=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const Ul=Object(we.__)("Read more");var Wl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,o={};return t&&(o.customText=t),""===n&&(o.noTeaser=!0),Object(je.createBlock)("core/more",o)}}]};const $l={apiVersion:2,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Zl}=$l,Kl={icon:ql,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:Wl,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:o}){const r={width:(e||Ul).length+1.2+"em"};return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,null,Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:e=>e?Object(we.__)("The excerpt is hidden."):Object(we.__)("The excerpt is visible.")}))),Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)("div",{className:"wp-block-more"},Object(ye.createElement)("input",{"aria-label":Object(we.__)("Read more link text"),type:"text",value:e,placeholder:Ul,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===dt.ENTER&&n([Object(je.createBlock)(Object(je.getDefaultBlockName)())])},style:r}))))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",o=t?"\x3c!--noteaser--\x3e":"";return Object(ye.createElement)(ye.RawHTML,null,Object(Re.compact)([n,o]).join("\n"))}};var Jl=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Ql=n("OzlF");function Yl({clientId:e,__experimentalFeatures:t}){const n=Object(Ie.useSelect)(t=>t(Ee.store).__unstableGetClientIdsTree(e),[e]),o=Object(ye.useRef)(),[r,a]=Object(ye.useState)(300);return Object(ye.useEffect)(()=>{var e,t;a(null!==(e=null==o||null===(t=o.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:300)},[]),Object(ye.createElement)("div",{style:{minHeight:r}},Object(ye.createElement)(Ee.__experimentalListView,{ref:o,blocks:n,showBlockMovers:!0,showNestedBlocks:!0,__experimentalFeatures:t}))}function Xl(e){return Object(Ie.useSelect)(t=>{const{getEditedEntityRecord:n,getEntityRecords:o,hasFinishedResolution:r}=t(It.store),a=["postType","wp_navigation",e],l=e?n(...a):null,c=!!e&&r("getEditedEntityRecord",a),i=["postType","wp_navigation",{per_page:-1}],s=o(...i),u=e?(null==s?void 0:s.length)>1:(null==s?void 0:s.length)>0;return{isNavigationMenuResolved:c,isNavigationMenuMissing:!e||c&&!l,canSwitchNavigationMenu:u,hasResolvedNavigationMenus:r("getEntityRecords",i),navigationMenu:l,navigationMenus:s}},[e])}var ec=n("NWDH"),tc=n("iClF");function nc(){const{menus:e,isResolvingMenus:t,hasResolvedMenus:n}=Object(Ie.useSelect)(e=>{const{getMenus:t,isResolving:n,hasFinishedResolution:o}=e(It.store),r=[{per_page:-1}];return{menus:t(...r),isResolvingMenus:n("getMenus",r),hasResolvedMenus:o("getMenus",r)}},[]);return{menus:e,isResolvingMenus:t,hasResolvedMenus:n,hasMenus:!(!n||null==e||!e.length)}}function oc(e){const{menuItems:t,hasResolvedMenuItems:n}=Object(Ie.useSelect)(t=>{const{getMenuItems:n,hasFinishedResolution:o}=t(It.store),r=void 0!==e,a=r?[{menus:e,per_page:-1}]:void 0;return{menuItems:r?n(...a):void 0,hasResolvedMenuItems:!!r&&o("getMenuItems",a)}},[e]);return{menuItems:t,hasResolvedMenuItems:n}}function rc(){const{pages:e,isResolvingPages:t,hasResolvedPages:n}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t,isResolving:n,hasFinishedResolution:o}=e(It.store),r=["postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1}];return{pages:t(...r)||null,isResolvingPages:n("getEntityRecords",r),hasResolvedPages:o("getEntityRecords",r)}},[]);return{pages:e,isResolvingPages:t,hasResolvedPages:n,hasPages:!(!n||null==e||!e.length)}}var ac=n("cGtP");var lc=({isLoading:e})=>Object(ye.createElement)("ul",{className:tt()("wp-block-navigation-placeholder__preview","wp-block-navigation__container",{"is-loading":e})},Object(ye.createElement)("li",{className:"wp-block-navigation-item"},""),Object(ye.createElement)("li",{className:"wp-block-navigation-item"},""),Object(ye.createElement)("li",{className:"wp-block-navigation-item"},""),Object(ye.createElement)("li",{className:"wp-block-navigation-placeholder__preview-search-icon"},Object(ye.createElement)(tc.a,{icon:ac.a})));function cc(e){if(!e)return null;return function e(t){let n={};const o=Object(Re.sortBy)(t,"menu_order");return{innerBlocks:o.map(t=>{var o,r;if("block"===t.type){const[e]=Object(je.parse)(t.content.raw);return e||Object(je.createBlock)("core/freeform",{content:t.content})}const a=function({title:e,xfn:t,classes:n,attr_title:o,object:r,object_id:a,description:l,url:c,type:i,target:s}){var u;r&&"post_tag"===r&&(r="tag");return{label:(null==e?void 0:e.rendered)||"",...(null===(u=r)||void 0===u?void 0:u.length)&&{type:r},kind:(null==i?void 0:i.replace("_","-"))||"custom",url:c||"",...(null==t?void 0:t.length)&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...(null==n?void 0:n.length)&&n.join(" ").trim()&&{className:n.join(" ").trim()},...(null==o?void 0:o.length)&&{title:o},...a&&"custom"!==r&&{id:a},...(null==l?void 0:l.length)&&{description:l},..."_blank"===s&&{opensInNewTab:!0}}}(t),{innerBlocks:l=[],mapping:c={}}=null!==(o=t.children)&&void 0!==o&&o.length?e(t.children):{};n={...n,...c};const i=null!==(r=t.children)&&void 0!==r&&r.length?"core/navigation-submenu":"core/navigation-link",s=Object(je.createBlock)(i,a,l);return n[t.id]=s.clientId,s}),mapping:n}}(function(e,t="id",n="parent"){const o=Object.create(null),r=[];for(const a of e)o[a[t]]={...a,children:[]},a[n]?(o[a[n]]=o[a[n]]||{},o[a[n]].children=o[a[n]].children||[],o[a[n]].children.push(o[a[t]])):r.push(o[a[t]]);return r}(e))}function ic({title:e,finishButtonText:t=Object(we.__)("Create"),onFinish:n,onRequestClose:o,value:r=""}){const[a,l]=Object(ye.useState)(r);return Object(ye.createElement)(ke.Modal,{title:e,closeLabel:Object(we.__)("Cancel"),onRequestClose:o,overlayClassName:"wp-block-template-part__placeholder-create-new__title-form"},Object(ye.createElement)("form",{onSubmit:e=>{e.preventDefault(),n(a)}},Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Name"),value:a,onChange:l}),Object(ye.createElement)(ke.Flex,{className:"wp-block-template-part__placeholder-create-new__title-form-actions",justify:"flex-end"},Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.Button,{variant:"secondary",onClick:()=>{o()}},Object(we.__)("Cancel"))),Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.Button,{variant:"primary",type:"submit",disabled:!a.length,"aria-disabled":!a.length},t)))))}const sc=({canSwitchNavigationMenu:e,navigationMenus:t,setSelectedMenu:n,onFinish:o,menus:r,onCreateFromMenu:a})=>Object(ye.createElement)(ke.DropdownMenu,{text:Object(we.__)("Select existing menu"),icon:ec.a,toggleProps:{variant:"primary",className:"wp-block-navigation-placeholder__actions__dropdown"},popoverProps:{isAlternate:!0}},({onClose:l})=>Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.MenuGroup,{label:"Menus"},e&&t.map(e=>Object(ye.createElement)(ke.MenuItem,{onClick:()=>{n(e.id),o(e)},onClose:l,key:e.id},e.title.rendered))),Object(ye.createElement)(ke.MenuGroup,{label:"Classic Menus"},r.map(e=>Object(ye.createElement)(ke.MenuItem,{onClick:()=>{n(e.id),a(e.name)},onClose:l,key:e.id},e.name)))));function uc({onFinish:e,canSwitchNavigationMenu:t,hasResolvedNavigationMenus:n}){const[o,r]=Object(ye.useState)(),[a,l]=Object(ye.useState)(!1),[c,i]=Object(ye.useState)(""),[s,u]=Object(ye.useState)(!1),[m,d]=Object(ye.useState)(!1),{saveEntityRecord:b}=Object(Ie.useDispatch)(It.store),p=Object(ye.useCallback)(async(e=Object(we.__)("Untitled Navigation Menu"),t=[])=>{const n={title:e,content:Object(je.serialize)(t),status:"publish"};return await b("postType","wp_navigation",n)},[je.serialize,b]),g=async(t,n)=>{const o=await p(t,n);e(o)},{isResolvingPages:h,menus:v,isResolvingMenus:O,menuItems:j,hasResolvedMenuItems:y,hasPages:f,hasMenus:_}=(k=o,{...rc(),...nc(),...oc(k)});var k;const w=h||O,E=Object(ye.useCallback)(e=>{const{innerBlocks:t}=cc(j);g(e,t)},[j,cc,e]);Object(ye.useEffect)(()=>{a&&y&&(E(c),l(!1))},[a,y,c]);const{navigationMenus:C}=Xl();return Object(ye.createElement)(ye.Fragment,null,(!n||w)&&Object(ye.createElement)(lc,{isLoading:!0}),n&&!w&&Object(ye.createElement)(ke.Placeholder,{className:"wp-block-navigation-placeholder"},Object(ye.createElement)(lc,null),Object(ye.createElement)("div",{className:"wp-block-navigation-placeholder__controls"},Object(ye.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},Object(ye.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},Object(ye.createElement)(tc.a,{icon:Jl})," ",Object(we.__)("Navigation")),_||C.length?Object(ye.createElement)(sc,{canSwitchNavigationMenu:t,navigationMenus:C,setSelectedMenu:r,onFinish:e,menus:v,onCreateFromMenu:e=>{y?E(e):(l(!0),i(e))}}):void 0,f?Object(ye.createElement)(ke.Button,{variant:_||t?"tertiary":"primary",onClick:()=>{u(!0),d(!1)}},Object(we.__)("Add all pages")):void 0,Object(ye.createElement)(ke.Button,{variant:"tertiary",onClick:()=>{u(!0),d(!0)}},Object(we.__)("Start empty"))))),s&&Object(ye.createElement)(ic,{title:Object(we.__)("Create your new navigation menu"),onRequestClose:()=>{u(!1)},onFinish:m?e=>{g(e,[])}:e=>{const t=[Object(je.createBlock)("core/page-list")];g(e,t),u(!0)}}))}var mc=n("w95h");function dc({children:e,id:t,isOpen:n,isResponsive:o,onToggle:r,isHiddenByDefault:a}){if(!o)return e;const l=tt()("wp-block-navigation__responsive-container",{"is-menu-open":n,"hidden-by-default":a}),c=tt()("wp-block-navigation__responsive-container-open",{"always-shown":a}),i=t+"-modal";return Object(ye.createElement)(ye.Fragment,null,!n&&Object(ye.createElement)(ke.Button,{"aria-haspopup":"true","aria-expanded":n,"aria-label":Object(we.__)("Open menu"),className:c,onClick:()=>r(!0)},Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(ye.createElement)(fe.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),Object(ye.createElement)(fe.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))),Object(ye.createElement)("div",{className:l,id:i,"aria-hidden":!n},Object(ye.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},Object(ye.createElement)("div",{className:"wp-block-navigation__responsive-dialog",role:"dialog","aria-modal":"true","aria-labelledby":i+"-title"},Object(ye.createElement)(ke.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":Object(we.__)("Close menu"),onClick:()=>r(!1)},Object(ye.createElement)(tc.a,{icon:mc.a})),Object(ye.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:i+"-content"},e)))))}const bc=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu"],pc=["core/navigation-link"],gc={type:"default",alignments:[]};function hc({isVisible:e,clientId:t,appender:n,hasCustomPlaceholder:o,orientation:r}){const{isImmediateParentOfSelectedBlock:a,selectedBlockHasDescendants:l,isSelected:c}=Object(Ie.useSelect)(e=>{var n;const{getClientIdsOfDescendants:o,hasSelectedInnerBlock:r,getSelectedBlockClientId:a}=e(Ee.store),l=a();return{isImmediateParentOfSelectedBlock:r(t,!1),selectedBlockHasDescendants:!(null===(n=o([l]))||void 0===n||!n.length),isSelected:l===t}},[t]),[i,s,u]=Object(It.useEntityBlockEditor)("postType","wp_navigation"),m=Object(ye.useMemo)(()=>i.every(({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e),[i]),d=!(!e||!(c||a&&!l))&&void 0,b=Object(ye.useMemo)(()=>Object(ye.createElement)(lc,null),[]),p=Object(Ee.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:u,allowedBlocks:bc,__experimentalDefaultBlock:pc,__experimentalDirectInsert:m,orientation:r,renderAppender:n||d,__experimentalCaptureToolbars:"vertical"!==r,templateLock:!1,__experimentalLayout:gc,placeholder:!e||o?void 0:b});return Object(ye.createElement)(Ee.__experimentalBlockContentOverlay,{clientId:t,tagName:"div",wrapperProps:p})}function vc({onSelect:e,onCreateNew:t}){const{navigationMenus:n}=Xl(),o=Object(It.useEntityId)("postType","wp_navigation");return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.MenuGroup,null,Object(ye.createElement)(ke.MenuItemsChoice,{value:o,onSelect:t=>e(n.find(e=>e.id===t)),choices:n.map(({id:e,title:t})=>({value:e,label:t.rendered}))})),Object(ye.createElement)(ke.MenuGroup,null,Object(ye.createElement)(ke.MenuItem,{onClick:t},Object(we.__)("Create new menu"))))}function Oc(){const[e,t]=Object(It.useEntityProp)("postType","wp_navigation","title");return Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Menu name"),value:e,onChange:t})}function jc(){const[e,t]=Object(ye.useState)(!1),n=Object(It.useEntityId)("postType","wp_navigation"),[o]=Object(It.useEntityProp)("postType","wp_navigation","title"),{editEntityRecord:r,saveEditedEntityRecord:a}=Object(Ie.useDispatch)(It.store);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ToolbarButton,{onClick:()=>t(!0)},Object(we.__)("Save as")),e&&Object(ye.createElement)(ic,{title:Object(we.__)("Save your new navigation menu"),value:o,onRequestClose:()=>t(!1),finishButtonText:Object(we.__)("Save"),onFinish:e=>{r("postType","wp_navigation",n,{title:e,status:"publish"}),a("postType","wp_navigation",n)}}))}function yc(e,t){return e&&t?e+"//"+t:null}const fc=()=>{},_c={},kc=["postType","wp_navigation",{status:"draft",per_page:-1}];function wc({blockProps:e,blocks:t,clientId:n,hasSavedUnsavedInnerBlocks:o,onSave:r,hasSelection:a}){const l=Object(ye.useContext)(ke.Disabled.Context),c=Object(ye.useRef)(!1),i=Object(Ee.useInnerBlocksProps)(e,{renderAppender:!!a&&void 0,value:t,onChange:fc,onInput:fc}),{saveEntityRecord:s}=Object(Ie.useDispatch)(It.store),{isSaving:u,draftNavigationMenus:m,hasResolvedDraftNavigationMenus:d}=Object(Ie.useSelect)(e=>{if(l)return _c;const{getEntityRecords:t,hasFinishedResolution:n,isSavingEntityRecord:o}=e(It.store);return{isSaving:o("postType","wp_navigation"),draftNavigationMenus:t(...kc),hasResolvedDraftNavigationMenus:n("getEntityRecords",kc)}},[l]),{hasResolvedNavigationMenus:b,navigationMenus:p}=Xl(),g=Object(ye.useCallback)(async e=>{const n={title:e,content:Object(je.serialize)(t),status:"draft"};return await s("postType","wp_navigation",n)},[t,je.serialize,s]),h=function(e){return Object(Ie.useSelect)(t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:o}=t(Ee.store),r=o(e,"core/template-part",!0);if(null==r||!r.length)return;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(It.store);for(const e of r){const t=n(e),{theme:o,slug:r}=t.attributes,i=l("postType","wp_template_part",yc(o,r));var c;if(null!=i&&i.area)return null===(c=a.find(e=>"uncategorized"!==e.area&&e.area===i.area))||void 0===c?void 0:c.label}},[e])}(l?void 0:n);return Object(ye.useEffect)(async()=>{if(l||o||u||c.current||!d||!b||!a)return;c.current=!0;const e=h?Object(we.sprintf)(Object(we.__)("%s navigation"),h):Object(we.__)("Navigation"),t=[...m,...p].reduce((t,n)=>{var o,r;return null!=n&&null!==(o=n.title)&&void 0!==o&&null!==(r=o.raw)&&void 0!==r&&r.startsWith(e)?t+1:t},0),n=t>0?`${e} ${t+1}`:e,i=await g(n);r(i),c.current=!1},[l,u,d,b,m,p,a,g,h]),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("nav",e,Object(ye.createElement)("div",{className:"wp-block-navigation__unsaved-changes"},Object(ye.createElement)(ke.Disabled,{className:tt()("wp-block-navigation__unsaved-changes-overlay",{"is-saving":a})},Object(ye.createElement)("div",i)),a&&Object(ye.createElement)(ke.Spinner,null))))}function Ec({onDelete:e}){const[t,n]=Object(ye.useState)(!1),o=Object(It.useEntityId)("postType","wp_navigation"),[r]=Object(It.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:a}=Object(Ie.useDispatch)(It.store);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{n(!0)}},Object(we.__)("Delete menu")),t&&Object(ye.createElement)(ke.Modal,{title:Object(we.sprintf)(Object(we.__)("Delete %s"),r),closeLabel:Object(we.__)("Cancel"),onRequestClose:()=>n(!1)},Object(ye.createElement)("p",null,Object(we.__)("Are you sure you want to delete this navigation menu?")),Object(ye.createElement)(ke.Flex,{justify:"flex-end"},Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.Button,{variant:"secondary",onClick:()=>{n(!1)}},Object(we.__)("Cancel"))),Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.Button,{variant:"primary",onClick:()=>{a("postType","wp_navigation",o,{force:!0}),e()}},Object(we.__)("Confirm"))))))}function Cc(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function xc(e,t,n){if(!e)return;t(Cc(e).color);let o=e,r=Cc(o).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,r=Cc(o).backgroundColor;n(r)}var Sc=Object(Ee.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:n,isSelected:o,className:r,backgroundColor:a,setBackgroundColor:l,textColor:c,setTextColor:i,overlayBackgroundColor:s,setOverlayBackgroundColor:u,overlayTextColor:m,setOverlayTextColor:d,context:{navigationArea:b},hasSubmenuIndicatorSetting:p=!0,hasColorSettings:g=!0,customPlaceholder:h=null,customAppender:v=null}){const{itemsJustification:O,openSubmenusOnClick:j,orientation:y,overlayMenu:f,showSubmenuIcon:_}=e,[k,w]=Object(It.useEntityProp)("root","navigationArea","navigation",b),E=b?0===k?void 0:k:e.navigationMenuId,C=Object(ye.useCallback)(e=>{t({navigationMenuId:e}),b&&w(e)},[b]),[x,S]=Object(Ee.__experimentalUseNoRecursiveRenders)("navigationMenu/"+E),{innerBlocks:B,isInnerBlockSelected:T}=Object(Ie.useSelect)(e=>{const{getBlocks:t,hasSelectedInnerBlock:o}=e(Ee.store);return{innerBlocks:t(n),isInnerBlockSelected:o(n,!0)}},[n]),N=!!B.length,{replaceInnerBlocks:P,selectBlock:z}=Object(Ie.useDispatch)(Ee.store),[I,M]=Object(ye.useState)(!1),R=b&&!E,[L,V]=Object(ye.useState)(!N||R),[A,H]=Object(ye.useState)(!1),{isNavigationMenuResolved:F,isNavigationMenuMissing:D,canSwitchNavigationMenu:G,hasResolvedNavigationMenus:q,navigationMenus:U,navigationMenu:W}=Xl(E),$=Object(ye.useRef)(),Z="draft"===(null==W?void 0:W.status),{listViewToolbarButton:K,listViewModal:J}=function(e,t){const[n,o]=Object(ye.useState)(!1);return{listViewToolbarButton:Object(ye.createElement)(ke.ToolbarButton,{className:"components-toolbar__control",label:Object(we.__)("Open list view"),onClick:()=>o(!0),icon:Ql.a}),listViewModal:n&&Object(ye.createElement)(ke.Modal,{title:Object(we.__)("List View"),closeLabel:Object(we.__)("Close"),onRequestClose:()=>{o(!1)},shouldCloseOnClickOutside:!1},Object(ye.createElement)(Yl,{clientId:e,__experimentalFeatures:t}))}}(n),Q=!D&&F,Y=Object(Ee.useBlockProps)({ref:$,className:tt()(r,{["items-justified-"+e.itemsJustification]:O,"is-vertical":"vertical"===y,"is-responsive":"never"!==f,"has-text-color":!!c.color||!(null==c||!c.class),[Object(Ee.getColorClassName)("color",null==c?void 0:c.slug)]:!(null==c||!c.slug),"has-background":!!a.color||a.class,[Object(Ee.getColorClassName)("background-color",null==a?void 0:a.slug)]:!(null==a||!a.slug)}),style:{color:!(null!=c&&c.slug)&&(null==c?void 0:c.color),backgroundColor:!(null!=a&&a.slug)&&(null==a?void 0:a.color)}}),X="web"===ye.Platform.OS,[ee,te]=Object(ye.useState)(),[ne,oe]=Object(ye.useState)(),[re,ae]=Object(ye.useState)(),[le,ce]=Object(ye.useState)();if(Object(ye.useEffect)(()=>{if(!X)return;xc($.current,oe,te);const e=$.current.querySelector('[data-type="core/navigation-link"] [data-type="core/navigation-link"]');e&&xc(e,ce,ae)}),Object(ye.useEffect)(()=>{V(!Q)},[Q]),N&&!Q&&!R)return Object(ye.createElement)(wc,{blockProps:Y,blocks:B,clientId:n,navigationMenus:U,hasSelection:o||T,hasSavedUnsavedInnerBlocks:I,onSave:e=>{M(!0),C(e.id)}});if(E&&D)return Object(ye.createElement)("div",Y,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Navigation menu has been deleted or is unavailable")));if(Q&&x)return Object(ye.createElement)("div",Y,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Block cannot be rendered inside itself.")));const ie=h||uc;return Object(ye.createElement)(It.EntityProvider,{kind:"postType",type:"wp_navigation",id:E},Object(ye.createElement)(S,null,Object(ye.createElement)(Ee.BlockControls,null,!Z&&Q&&Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.ToolbarDropdownMenu,{label:Object(we.__)("Select Menu"),text:Object(we.__)("Select Menu"),icon:null},({onClose:e})=>Object(ye.createElement)(vc,{onSelect:({id:t})=>{C(t),e()},onCreateNew:()=>{b&&w(0),t({navigationMenuId:void 0}),V(!0)}}))),Object(ye.createElement)(ke.ToolbarGroup,null,K),Z&&Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(jc,null))),J,Object(ye.createElement)(Ee.InspectorControls,null,p&&Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Display")},Object(ye.createElement)("h3",null,Object(we.__)("Overlay Menu")),Object(ye.createElement)(ke.__experimentalToggleGroupControl,{label:Object(we.__)("Configure overlay menu"),value:f,help:Object(we.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"never",label:Object(we.__)("Off")}),Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"mobile",label:Object(we.__)("Mobile")}),Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"always",label:Object(we.__)("Always")})),Object(ye.createElement)("h3",null,Object(we.__)("Submenus")),Object(ye.createElement)(ke.ToggleControl,{checked:j,onChange:e=>{t({openSubmenusOnClick:e})},label:Object(we.__)("Open on click")}),!e.openSubmenusOnClick&&Object(ye.createElement)(ke.ToggleControl,{checked:_,onChange:e=>{t({showSubmenuIcon:e})},label:Object(we.__)("Show icons")})),g&&Object(ye.createElement)(Ee.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(we.__)("Color"),initialOpen:!1,colorSettings:[{value:c.color,onChange:i,label:Object(we.__)("Text")},{value:a.color,onChange:l,label:Object(we.__)("Background")},{value:m.color,onChange:d,label:Object(we.__)("Submenu & overlay text")},{value:s.color,onChange:u,label:Object(we.__)("Submenu & overlay background")}]},X&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.ContrastChecker,{backgroundColor:ee,textColor:ne}),Object(ye.createElement)(Ee.ContrastChecker,{backgroundColor:re,textColor:le})))),Q&&Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},Object(ye.createElement)(Oc,null),Object(ye.createElement)(Ec,{onDelete:()=>{P(n,[]),b&&w(0),t({navigationMenuId:void 0}),V(!0)}})),Object(ye.createElement)("nav",Y,!Q&&L&&Object(ye.createElement)(ie,{onFinish:e=>{V(!1),C(e.id),z(n)},canSwitchNavigationMenu:G,hasResolvedNavigationMenus:q}),!Q&&!L&&Object(ye.createElement)(lc,{isLoading:!0}),!L&&Object(ye.createElement)(dc,{id:n,onToggle:H,isOpen:A,isResponsive:"never"!==f,isHiddenByDefault:"always"===f},Q&&Object(ye.createElement)(hc,{isVisible:!L,clientId:n,appender:v,hasCustomPlaceholder:!!h,orientation:y})))))}));const Bc={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Tc=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n}=e,o={...e};return(t||n)&&(Object.assign(o,{layout:{type:"flex",justifyContent:t||"left",orientation:n||"horizontal"}}),delete o.itemsJustification,delete o.orientation),o};var Nc=[{attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:Tc},{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null),migrate:Object(nt.compose)(Tc,at),isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:Object(nt.compose)(Tc,at,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null)},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Bc){const n=e.style.typography[t];if(n&&n.startsWith(Bc[t]))return!0}return!1},migrate:Object(nt.compose)(Tc,at,(function(e){return{...e,style:{...e.style,typography:Object(Re.mapValues)(e.style.typography,(e,t)=>{const n=Bc[t];if(n&&e.startsWith(n)){const o=e.slice(n.length);return"textDecoration"===t&&"strikethrough"===o?"line-through":o}return e})}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:e=>({...Object(Re.omit)(e,["rgbTextColor","rgbBackgroundColor"]),customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}),save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null)}];const Pc={apiVersion:2,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},usesContext:["navigationArea"],providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",orientation:"orientation"},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:zc}=Pc,Ic={icon:Jl,example:{innerBlocks:[{name:"core/navigation-link",attributes:{label:Object(we.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:Object(we.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:Object(we.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Sc,save:function({attributes:e}){if(!e.navigationMenuId)return Object(ye.createElement)(Ee.InnerBlocks.Content,null)},deprecated:Nc};var Mc=n("OE6V");const Rc=["core/navigation"];function Lc({navigationMenuId:e}){const t=Object(ye.useMemo)(()=>[["core/navigation",{navigationMenuId:e}]],[e]),n=Object(Ee.useBlockProps)(),o=Object(Ee.useInnerBlocksProps)(n,{orientation:"horizontal",renderAppender:!1,template:t,templateLock:"all",allowedBlocks:Rc});return Object(ye.createElement)("div",o)}var Vc=function({attributes:e,setAttributes:t}){const{area:n}=e,{navigationAreas:o,hasResolvedNavigationAreas:r}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store);return{navigationAreas:t("root","navigationArea"),hasResolvedNavigationAreas:n("getEntityRecords",["root","navigationArea"])}}),a=null!=o&&o.length?o[n]:void 0,l=Object(ye.useMemo)(()=>null==o?void 0:o.map(({name:e,description:t})=>({label:t,value:e})),[o]);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.ToolbarDropdownMenu,{label:Object(we.__)("Select Area"),text:Object(we.__)("Select Area"),icon:null},({onClose:e})=>Object(ye.createElement)(ke.MenuGroup,null,Object(ye.createElement)(ke.MenuItemsChoice,{value:n,onSelect:n=>{t({area:n}),e()},choices:l}))))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Options")},Object(ye.createElement)(ke.SelectControl,{label:Object(we._x)("Area"),value:n,onChange:e=>t({area:e}),options:l}))),!r&&Object(ye.createElement)(lc,{isLoading:!0}),r&&Object(ye.createElement)(Lc,{navigationMenuId:a}))};const Ac={apiVersion:2,name:"core/navigation-area",title:"Navigation Area",category:"theme",description:"Define a navigation area for your theme. The navigation block associated with this area will be automatically displayed.",keywords:["menu","navigation","links","location"],textdomain:"default",attributes:{area:{type:"string",default:"primary"}},providesContext:{navigationArea:"area"},supports:{html:!1,inserter:!0}},{name:Hc}=Ac,Fc={icon:Mc.a,example:{attributes:{area:"primary"}},edit:Vc,save:function(){return Object(ye.createElement)(Ee.InnerBlocks.Content,null)}};var Dc=Object(ye.createElement)(fe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));var Gc=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}));const{name:qc}={apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};function Uc(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function Wc(e){const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function $c({block:e,transforms:t,replace:n}){return Object(ye.createElement)("div",{className:"link-control-transform"},Object(ye.createElement)("h3",{className:"link-control-transform__subheading"},Object(we.__)("Transform")),Object(ye.createElement)("div",{className:"link-control-transform__items"},t.map((t,o)=>Object(ye.createElement)(ke.Button,{key:"transform-"+o,onClick:()=>n(e.clientId,Object(je.switchToBlockType)(e,t.name)),className:"link-control-transform__item"},Object(ye.createElement)(Ee.BlockIcon,{icon:t.icon}),t.title))))}var Zc=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M4 14.5h16V16H4zM4 18.5h9V20H4zM4 4h3c2 0 3 .86 3 2.583 0 .891-.253 1.554-.76 1.988-.505.435-1.24.652-2.204.652H5.542V12H4V4zm2.855 4c.53 0 .924-.114 1.18-.343.266-.228.398-.579.398-1.051 0-.473-.132-.82-.397-1.04-.265-.229-.67-.343-1.217-.343H5.542V8h1.313z"}));var Kc=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var Jc=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var Qc=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));const Yc=[{name:"link",isDefault:!0,title:Object(we.__)("Custom Link"),description:Object(we.__)("A link to a custom URL."),attributes:{}},{name:"post",icon:Zc,title:Object(we.__)("Post Link"),description:Object(we.__)("A link to a post."),attributes:{type:"post",kind:"post-type"}},{name:"page",icon:Kc,title:Object(we.__)("Page Link"),description:Object(we.__)("A link to a page."),attributes:{type:"page",kind:"post-type"}},{name:"category",icon:At,title:Object(we.__)("Category Link"),description:Object(we.__)("A link to a category."),attributes:{type:"category",kind:"taxonomy"}},{name:"tag",icon:Jc,title:Object(we.__)("Tag Link"),description:Object(we.__)("A link to a tag."),attributes:{type:"tag",kind:"taxonomy"}}];Yc.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Xc=Yc;function ei(e){switch(e){case"post":return Zc;case"page":return Kc;case"tag":return Jc;case"category":return At;default:return Qc}}var ti={from:[{type:"block",blocks:["core/site-logo"],transform:()=>Object(je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>Object(je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>Object(je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>Object(je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>Object(je.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>Object(je.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>Object(je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>Object(je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>Object(je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>Object(je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>Object(je.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})}]};const ni={apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:oi}=ni,ri={icon:Dc,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function({attributes:e,isSelected:t,setAttributes:n,insertBlocksAfter:o,mergeBlocks:r,onReplace:a,context:l,clientId:c}){const{label:i,type:s,opensInNewTab:u,url:m,description:d,rel:b,title:p,kind:g}=e,h={url:m,opensInNewTab:u,title:i&&Wc(i)},{saveEntityRecord:v}=Object(Ie.useDispatch)(It.store),{replaceBlock:O,__unstableMarkNextChangeAsNotPersistent:j}=Object(Ie.useDispatch)(Ee.store),[y,f]=Object(ye.useState)(!1),_=Object(ye.useRef)(null),k=(e=>{const[t,n]=Object(ye.useState)(!1);return Object(ye.useEffect)(()=>{const{ownerDocument:t}=e.current;function o(e){a(e)}function r(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}},[]),t})(_),w=Object(we.__)("Add link"),E=Object(ye.useRef)(),{innerBlocks:C,isAtMaxNesting:x,isTopLevelLink:S,isParentOfSelectedBlock:B,hasDescendants:T,userCanCreatePages:N,userCanCreatePosts:P,thisBlock:z,blockTransforms:I}=Object(Ie.useSelect)(e=>{var t;const{getBlock:n,getBlocks:o,getBlockName:r,getBlockRootClientId:a,getClientIdsOfDescendants:l,hasSelectedInnerBlock:i,getSelectedBlockClientId:s,getBlockParentsByBlockName:u,getBlockTransformItems:m}=e(Ee.store),d=s(),b=l([c]).length;return{innerBlocks:o(c),isAtMaxNesting:u(c,[qc,"core/navigation-submenu"]).length>=5,isTopLevelLink:"core/navigation"===r(a(c)),isParentOfSelectedBlock:i(c,!0),isImmediateParentOfSelectedBlock:i(c,!1),hasDescendants:!!b,selectedBlockHasDescendants:!(null===(t=l([d]))||void 0===t||!t.length),userCanCreatePages:e(It.store).canUser("create","pages"),userCanCreatePosts:e(It.store).canUser("create","posts"),thisBlock:n(c),blockTransforms:m([n(c)],a(c))}},[c]);function M(){const t=Object(je.createBlock)("core/navigation-submenu",e,C);O(c,t)}Object(ye.useEffect)(()=>{j(),n({isTopLevelLink:S})},[S]);const R=["core/site-logo","core/social-links","core/search"],L=I.filter(e=>R.includes(e.name));Object(ye.useEffect)(()=>{m||f(!0),T&&M()},[]),Object(ye.useEffect)(()=>{t||f(!1)},[t]),Object(ye.useEffect)(()=>{y&&m&&(Object(Zo.isURL)(Object(Zo.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){E.current.focus();const{ownerDocument:e}=E.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(E.current),n.removeAllRanges(),n.addRange(o)}():Object(Al.placeCaretAtHorizontalEdge)(E.current,!0))},[m]);let V=!1;s&&"page"!==s?"post"===s&&(V=P):V=N;const{textColor:A,customTextColor:H,backgroundColor:F,customBackgroundColor:D}=function(e,t){var n,o;const{textColor:r,customTextColor:a,backgroundColor:l,customBackgroundColor:c,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,b={};return t&&s?b.customTextColor=s:t&&i?b.textColor=i:a?b.customTextColor=a:r?b.textColor=r:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(b.customTextColor=d.color.text),t&&m?b.customBackgroundColor=m:t&&u?b.backgroundColor=u:c?b.customBackgroundColor=c:l?b.backgroundColor=l:null!=d&&null!==(o=d.color)&&void 0!==o&&o.background&&(b.customTextColor=d.color.background),b}(l,!S),G=Object(Ee.useBlockProps)({ref:_,className:tt()("wp-block-navigation-item",{"is-editing":t||B,"is-dragging-within":k,"has-link":!!m,"has-child":T,"has-text-color":!!A||!!H,[Object(Ee.getColorClassName)("color",A)]:!!A,"has-background":!!F||D,[Object(Ee.getColorClassName)("background-color",F)]:!!F}),style:{color:!A&&H,backgroundColor:!F&&D},onKeyDown:function(e){(dt.isKeyboardEvent.primary(e,"k")||!m&&e.keyCode===dt.ENTER)&&f(!0)}});m||(G.onClick=()=>f(!0));const q=tt()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!m});let U="";switch(s){case"post":U=Object(we.__)("Select post");break;case"page":U=Object(we.__)("Select page");break;case"category":U=Object(we.__)("Select category");break;case"tag":U=Object(we.__)("Select tag");break;default:U=Object(we.__)("Add link")}return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.ToolbarButton,{name:"link",icon:bt.a,title:Object(we.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:()=>f(!0)}),!x&&Object(ye.createElement)(ke.ToolbarButton,{name:"submenu",icon:Gc,title:Object(we.__)("Add submenu"),onClick:M}))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.TextareaControl,{value:d||"",onChange:e=>{n({description:e})},label:Object(we.__)("Description"),help:Object(we.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(ye.createElement)(ke.TextControl,{value:p||"",onChange:e=>{n({title:e})},label:Object(we.__)("Link title"),autoComplete:"off"}),Object(ye.createElement)(ke.TextControl,{value:b||"",onChange:e=>{n({rel:e})},label:Object(we.__)("Link rel"),autoComplete:"off"}))),Object(ye.createElement)("div",G,Object(ye.createElement)("a",{className:q},m?Object(ye.createElement)(Ee.RichText,{ref:E,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>n({label:e}),onMerge:r,onReplace:a,__unstableOnSplitAtEnd:()=>o(Object(je.createBlock)("core/navigation-link")),"aria-label":Object(we.__)("Navigation link text"),placeholder:w,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{m||f(!0)}}):Object(ye.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},Object(ye.createElement)(ke.Tooltip,{position:"top center",text:Object(we.__)("This item is missing a link")},Object(ye.createElement)("span",null,U))),y&&Object(ye.createElement)(ke.Popover,{position:"bottom center",onClose:()=>f(!1),anchorRef:_.current},Object(ye.createElement)(Ee.__experimentalLinkControl,{hasTextControl:!0,className:"wp-block-navigation-link__inline-link-input",value:h,showInitialSuggestions:!0,withCreateSuggestion:V,createSuggestion:async function(e){const t=s||"page",n=await v("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===s?Object(we.__)("Create draft post: <mark>%s</mark>"):Object(we.__)("Create draft page: <mark>%s</mark>"),Object(ye.createInterpolateElement)(Object(we.sprintf)(t,e),{mark:Object(ye.createElement)("mark",null)})},noDirectEntry:!!s,noURLSuggestion:!!s,suggestionsQuery:Uc(s,g),onChange:t=>((e={},t,n={})=>{const{label:o="",kind:r="",type:a=""}=n,{title:l="",url:c="",opensInNewTab:i,id:s,kind:u=r,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),b=c.replace(/http(s?):\/\//gi,""),p=""!==l&&d!==b&&o!==l?Object(Re.escape)(l):o||Object(Re.escape)(b),g="post_tag"===m?"tag":m.replace("-","_"),h=["post","page","tag","category"].indexOf(g)>-1,v=!u&&!h||"custom"===u?"custom":u;t({...c&&{url:encodeURI(Object(Zo.safeDecodeURI)(c))},...p&&{label:p},...void 0!==i&&{opensInNewTab:i},...s&&Number.isInteger(s)&&{id:s},...v&&{kind:v},...g&&"URL"!==g&&{type:g}})})(t,n,e),onRemove:function(){n({url:"",label:"",id:"",kind:"",type:""}),f(!1)},renderControlBottom:m?null:()=>Object(ye.createElement)($c,{block:z,transforms:L,replace:O})})))))},save:function(){return Object(ye.createElement)(Ee.InnerBlocks.Content,null)},example:{attributes:{label:Object(we._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>e.nofollow,attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate:({nofollow:e,...t})=>({rel:e?"nofollow":"",...t}),save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null)}],transforms:ti};Object(Rr.addFilter)("blocks.registerBlockType","core/navigation-link",(function(e,t){if("core/navigation-link"!==t)return e;if(!e.variations)return{...e,variations:Xc};if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map(e=>({...e,...!e.icon&&{icon:ei(e.name)},...!e.isActive&&{isActive:t}}));return{...e,variations:n}}return e}));var ai=n("gdqT");const li=()=>Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},Object(ye.createElement)(ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:ci}={apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},ii=["core/navigation-link","core/navigation-submenu"],si=["core/navigation-link"];function ui(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function mi(e,t){var n,o;const{textColor:r,customTextColor:a,backgroundColor:l,customBackgroundColor:c,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,b={};return t&&s?b.customTextColor=s:t&&i?b.textColor=i:a?b.customTextColor=a:r?b.textColor=r:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(b.customTextColor=d.color.text),t&&m?b.customBackgroundColor=m:t&&u?b.backgroundColor=u:c?b.customBackgroundColor=c:l?b.backgroundColor=l:null!=d&&null!==(o=d.color)&&void 0!==o&&o.background&&(b.customTextColor=d.color.background),b}var di={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:e=>Object(je.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(je.createBlock)("core/search")}]};const bi={apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:pi}=bi,gi={icon:Gc,__experimentalLabel:({label:e})=>e,edit:function({attributes:e,isSelected:t,setAttributes:n,mergeBlocks:o,onReplace:r,context:a,clientId:l}){const{label:c,type:i,opensInNewTab:s,url:u,description:m,rel:d,title:b,kind:p}=e,g={url:u,opensInNewTab:s},{showSubmenuIcon:h,openSubmenusOnClick:v}=a,{saveEntityRecord:O}=Object(Ie.useDispatch)(It.store),{__unstableMarkNextChangeAsNotPersistent:j}=Object(Ie.useDispatch)(Ee.store),[y,f]=Object(ye.useState)(!1),_=Object(ye.useRef)(null),k=(e=>{const[t,n]=Object(ye.useState)(!1);return Object(ye.useEffect)(()=>{const{ownerDocument:t}=e.current;function o(e){a(e)}function r(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}},[]),t})(_),w=Object(we.__)("Add text"),E=Object(ye.useRef)(),{isAtMaxNesting:C,isTopLevelItem:x,isParentOfSelectedBlock:S,isImmediateParentOfSelectedBlock:B,hasDescendants:T,selectedBlockHasDescendants:N,userCanCreatePages:P,userCanCreatePosts:z}=Object(Ie.useSelect)(e=>{var t;const{getClientIdsOfDescendants:n,hasSelectedInnerBlock:o,getSelectedBlockClientId:r,getBlockParentsByBlockName:a}=e(Ee.store),c=r(),i=n([l]).length;return{isAtMaxNesting:a(l,ci).length>=5,isTopLevelItem:0===a(l,ci).length,isParentOfSelectedBlock:o(l,!0),isImmediateParentOfSelectedBlock:o(l,!1),hasDescendants:!!i,selectedBlockHasDescendants:!(null===(t=n([c]))||void 0===t||!t.length),userCanCreatePages:e(It.store).canUser("create","pages"),userCanCreatePosts:e(It.store).canUser("create","posts")}},[l]);Object(ye.useEffect)(()=>{v||u||f(!0)},[]),Object(ye.useEffect)(()=>{j(),n({isTopLevelItem:x})},[x]),Object(ye.useEffect)(()=>{t||f(!1)},[t]),Object(ye.useEffect)(()=>{y&&u&&(Object(Zo.isURL)(Object(Zo.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)?function(){E.current.focus();const{ownerDocument:e}=E.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(E.current),n.removeAllRanges(),n.addRange(o)}():Object(Al.placeCaretAtHorizontalEdge)(E.current,!0))},[u]);let I=!1;i&&"page"!==i?"post"===i&&(I=z):I=P;const{textColor:M,customTextColor:R,backgroundColor:L,customBackgroundColor:V}=mi(a,!x),A=Object(Ee.useBlockProps)({ref:_,className:tt()("wp-block-navigation-item",{"is-editing":t||S,"is-dragging-within":k,"has-link":!!u,"has-child":T,"has-text-color":!!M||!!R,[Object(Ee.getColorClassName)("color",M)]:!!M,"has-background":!!L||V,[Object(Ee.getColorClassName)("background-color",L)]:!!L,"open-on-click":v}),style:{color:!M&&R,backgroundColor:!L&&V},onKeyDown:function(e){dt.isKeyboardEvent.primary(e,"k")&&f(!0)}}),H=mi(a,!0);C&&Object(Re.pull)(ii,"core/navigation-submenu");const F=Object(Ee.useInnerBlocksProps)({className:tt()("wp-block-navigation__submenu-container",{"is-parent-of-selected-block":S,"has-text-color":!(!H.textColor&&!H.customTextColor),[`has-${H.textColor}-color`]:!!H.textColor,"has-background":!(!H.backgroundColor&&!H.customBackgroundColor),[`has-${H.backgroundColor}-background-color`]:!!H.backgroundColor}),style:{color:H.customTextColor,backgroundColor:H.customBackgroundColor}},{allowedBlocks:ii,__experimentalDefaultBlock:si,__experimentalDirectInsert:!0,renderAppender:!!(t||B&&!N||T)&&Ee.InnerBlocks.DefaultAppender}),D=v?"button":"a";return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,!v&&Object(ye.createElement)(ke.ToolbarButton,{name:"link",icon:bt.a,title:Object(we.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:()=>f(!0)}))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.TextareaControl,{value:m||"",onChange:e=>{n({description:e})},label:Object(we.__)("Description"),help:Object(we.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(ye.createElement)(ke.TextControl,{value:b||"",onChange:e=>{n({title:e})},label:Object(we.__)("Link title"),autoComplete:"off"}),Object(ye.createElement)(ke.TextControl,{value:d||"",onChange:e=>{n({rel:e})},label:Object(we.__)("Link rel"),autoComplete:"off"}))),Object(ye.createElement)("div",A,Object(ye.createElement)(D,{className:"wp-block-navigation-item__content"},Object(ye.createElement)(Ee.RichText,{ref:E,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>n({label:e}),onMerge:o,onReplace:r,"aria-label":Object(we.__)("Navigation link text"),placeholder:w,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{v||u||f(!0)}}),!v&&y&&Object(ye.createElement)(ke.Popover,{position:"bottom center",onClose:()=>f(!1),anchorRef:_.current},Object(ye.createElement)(Ee.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:g,showInitialSuggestions:!0,withCreateSuggestion:I,createSuggestion:async function(e){const t=i||"page",n=await O("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===i?Object(we.__)("Create draft post: <mark>%s</mark>"):Object(we.__)("Create draft page: <mark>%s</mark>"),Object(ye.createInterpolateElement)(Object(we.sprintf)(t,e),{mark:Object(ye.createElement)("mark",null)})},noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:ui(i,p),onChange:t=>((e={},t,n={})=>{const{label:o="",kind:r="",type:a=""}=n,{title:l="",url:c="",opensInNewTab:i,id:s,kind:u=r,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),b=c.replace(/http(s?):\/\//gi,""),p=""!==l&&d!==b&&o!==l?Object(Re.escape)(l):o||Object(Re.escape)(b),g="post_tag"===m?"tag":m.replace("-","_"),h=["post","page","tag","category"].indexOf(g)>-1,v=!u&&!h||"custom"===u?"custom":u;t({...c&&{url:encodeURI(Object(Zo.safeDecodeURI)(c))},...p&&{label:p},...void 0!==i&&{opensInNewTab:i},...s&&Number.isInteger(s)&&{id:s},...v&&{kind:v},...g&&"URL"!==g&&{type:g}})})(t,n,e),onRemove:()=>{n({url:""}),Object(ai.speak)(Object(we.__)("Link removed."),"assertive")}})),(h||v)&&Object(ye.createElement)("span",{className:"wp-block-navigation__submenu-icon"},Object(ye.createElement)(li,null))),Object(ye.createElement)("div",F)))},save:function(){return Object(ye.createElement)(Ee.InnerBlocks.Content,null)},transforms:di};var hi=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var vi={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>Object(je.createBlock)("core/nextpage",{})}]};const Oi={apiVersion:2,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:ji}=Oi,yi={icon:hi,example:{},transforms:vi,edit:function(){return Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)("div",{className:"wp-block-nextpage"},Object(ye.createElement)("span",null,Object(we.__)("Page break"))))},save:function(){return Object(ye.createElement)(ye.RawHTML,null,"\x3c!--nextpage--\x3e")}};var fi=({attributes:e,clientId:t})=>{const n=Object(Ie.useSelect)(t=>t(Ee.store).__experimentalGetParsedPattern(e.slug),[e.slug]),{replaceBlocks:o,__unstableMarkNextChangeAsNotPersistent:r}=Object(Ie.useDispatch)(Ee.store);Object(ye.useEffect)(()=>{null!=n&&n.blocks&&(r(),o(t,n.blocks))},[null==n?void 0:n.blocks]);const a=Object(Ee.useBlockProps)();return Object(ye.createElement)("div",a)};const _i={apiVersion:2,name:"core/pattern",title:"Pattern",category:"design",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:ki}=_i,wi={edit:fi};var Ei=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"})),Ci=n("ywyh"),xi=n.n(Ci);const Si=["id","title","link","type","parent"],Bi=({pages:e,clientId:t,replaceBlock:n,createBlock:o})=>()=>{if(!e)return;const r={},a=[];e.forEach(({id:e,title:t,link:n,type:l,parent:c})=>{var i,s;const u=null!==(i=null===(s=r[e])||void 0===s?void 0:s.innerBlocks)&&void 0!==i?i:[];if(r[e]=o("core/navigation-link",{id:e,label:t.rendered,url:n,type:l,kind:"post-type"},u),c){r[c]||(r[c]={innerBlocks:[]});r[c].innerBlocks.push(r[e])}else a.push(r[e])});const l=e=>{e.forEach((e,t,n)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){l(a);const e=o("core/navigation-submenu",r,a);n[t]=e}})};l(a),n(t,a)};function Ti({onClose:e,clientId:t}){const{pages:n,pagesFinished:o}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store),o=["postType","page",{per_page:100,_fields:Si,orderby:"menu_order",order:"asc"}];return{pages:t(...o),pagesFinished:n("getEntityRecords",o)}},[t]),{replaceBlock:r}=Object(Ie.useDispatch)(Ee.store);return Object(ye.createElement)(ke.Modal,{closeLabel:Object(we.__)("Close"),onRequestClose:e,title:Object(we.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},Object(ye.createElement)("p",{id:"wp-block-page-list-modal__description"},Object(we.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),Object(ye.createElement)("p",null,Object(we.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),Object(ye.createElement)("div",{className:"wp-block-page-list-modal-buttons"},Object(ye.createElement)(ke.Button,{variant:"tertiary",onClick:e},Object(we.__)("Cancel")),Object(ye.createElement)(ke.Button,{variant:"primary",disabled:!o,onClick:Bi({pages:n,replaceBlock:r,clientId:t,createBlock:je.createBlock})},Object(we.__)("Convert"))))}const Ni=()=>Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},Object(ye.createElement)(ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const Pi=Object(ye.memo)((function e({context:t,pagesByParentId:n,parentId:o=0,depth:r=0}){const a=n.get(o);return null!=a&&a.length?a.map(o=>{var a,l;const c=n.has(o.id),i="showSubmenuIcon"in t;return Object(ye.createElement)("li",{key:o.id,className:tt()("wp-block-pages-list__item",{"has-child":c,"wp-block-navigation-item":i,"open-on-click":t.openSubmenusOnClick,"open-on-hover-click":!t.openSubmenusOnClick&&t.showSubmenuIcon})},c&&t.openSubmenusOnClick?Object(ye.createElement)(zi,{title:null===(a=o.title)||void 0===a?void 0:a.rendered}):Object(ye.createElement)("a",{className:tt()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:o.link},null===(l=o.title)||void 0===l?void 0:l.rendered),c&&Object(ye.createElement)(ye.Fragment,null,!t.openSubmenusOnClick&&t.showSubmenuIcon&&Object(ye.createElement)(zi,null),Object(ye.createElement)("ul",{className:tt()("submenu-container",{"wp-block-navigation__submenu-container":i})},Object(ye.createElement)(e,{context:t,pagesByParentId:n,parentId:o.id,depth:r+1}))))}):[]}));function zi({title:e}){return Object(ye.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},e,Object(ye.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},Object(ye.createElement)(Ni,null)))}const Ii={apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Mi}=Ii,Ri={icon:Ei,example:{},edit:function({context:e,clientId:t}){var n;const{pagesByParentId:o,totalPages:r}=function(){const[e,t]=Object(ye.useState)(null),[n,o]=Object(ye.useState)(null);return Object(ye.useEffect)(()=>{!async function(){t(null),o(null);let e=await xi()({path:Object(Zo.addQueryArgs)("/wp/v2/pages",{orderby:"menu_order",order:"asc",_fields:["id","link","parent","title","menu_order"],per_page:-1})});e=Object(Re.sortBy)(e,["menu_order","title.rendered"]),t(e.reduce((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)),o(e.length)}()},[]),{pagesByParentId:e,totalPages:n}}(),a="showSubmenuIcon"in e&&r<=100,[l,c]=Object(ye.useState)(!1),i=Object(Ee.useBlockProps)({className:tt()("wp-block-page-list",{"has-text-color":!!e.textColor,[Object(Ee.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[Object(Ee.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...null===(n=e.style)||void 0===n?void 0:n.color}});return Object(ye.createElement)(ye.Fragment,null,a&&Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(ke.ToolbarButton,{title:Object(we.__)("Edit"),onClick:()=>c(!0)},Object(we.__)("Edit"))),a&&l&&Object(ye.createElement)(Ti,{onClose:()=>c(!1),clientId:t}),null===r&&Object(ye.createElement)("div",i,Object(ye.createElement)(ke.Placeholder,null,Object(ye.createElement)(ke.Spinner,null))),0===r&&Object(ye.createElement)("div",i,Object(ye.createElement)("span",null,Object(we.__)("Page List: No pages to show."))),r>0&&Object(ye.createElement)("ul",i,Object(ye.createElement)(Pi,{context:e,pagesByParentId:o})))}};var Li=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));const Vi={className:!1},Ai={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},Hi=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};return(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize}),{...Object(Re.omit)(e,["customTextColor","customBackgroundColor","customFontSize"]),style:t}};var Fi=[{supports:Vi,attributes:{...Object(Re.omit)(Ai,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Hi,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:r,textColor:a,customBackgroundColor:l,customTextColor:c,fontSize:i,customFontSize:s,direction:u}=e,m=Object(Ee.getColorClassName)("color",a),d=Object(Ee.getColorClassName)("background-color",r),b=Object(Ee.getFontSizeClass)(i),p=tt()({"has-text-color":a||c,"has-background":r||l,"has-drop-cap":o,["has-text-align-"+t]:t,[b]:b,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:c,fontSize:b?void 0:s};return Object(ye.createElement)(Ee.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:n,dir:u})}},{supports:Vi,attributes:{...Object(Re.omit)(Ai,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Hi,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:r,textColor:a,customBackgroundColor:l,customTextColor:c,fontSize:i,customFontSize:s,direction:u}=e,m=Object(Ee.getColorClassName)("color",a),d=Object(Ee.getColorClassName)("background-color",r),b=Object(Ee.getFontSizeClass)(i),p=tt()({"has-text-color":a||c,"has-background":r||l,"has-drop-cap":o,[b]:b,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:c,fontSize:b?void 0:s,textAlign:t};return Object(ye.createElement)(Ee.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:n,dir:u})}},{supports:Vi,attributes:{...Object(Re.omit)(Ai,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:Hi,save({attributes:e}){const{width:t,align:n,content:o,dropCap:r,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i,fontSize:s,customFontSize:u}=e,m=Object(Ee.getColorClassName)("color",l),d=Object(Ee.getColorClassName)("background-color",a),b=s&&`is-${s}-text`,p=tt()({["align"+t]:t,"has-background":a||c,"has-drop-cap":r,[b]:b,[m]:m,[d]:d}),g={backgroundColor:d?void 0:c,color:m?void 0:i,fontSize:b?void 0:u,textAlign:n};return Object(ye.createElement)(Ee.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:o})}},{supports:Vi,attributes:Object(Re.omit)({...Ai,fontSize:{type:"number"}},["style"]),save({attributes:e}){const{width:t,align:n,content:o,dropCap:r,backgroundColor:a,textColor:l,fontSize:c}=e,i=tt()({["align"+t]:t,"has-background":a,"has-drop-cap":r}),s={backgroundColor:a,color:l,fontSize:c,textAlign:n};return Object(ye.createElement)("p",{style:s,className:i||void 0},o)},migrate:e=>Hi(Object(Re.omit)({...e,customFontSize:Object(Re.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}))},{supports:Vi,attributes:{...Ai,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>Object(ye.createElement)(ye.RawHTML,null,e.content),migrate:e=>e}];var Di=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Gi({direction:e,setDirection:t}){return Object(we.isRTL)()&&Object(ye.createElement)(ke.ToolbarDropdownMenu,{controls:[{icon:Di,title:Object(we._x)("Left to right","editor button"),isActive:"ltr"===e,onClick(){t("ltr"===e?void 0:"ltr")}}]})}var qi=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:o,setAttributes:r,clientId:a}){const{align:l,content:c,direction:i,dropCap:s,placeholder:u}=e,m=Object(Ee.useSetting)("typography.dropCap"),d=Object(Ee.useBlockProps)({className:tt()({"has-drop-cap":s,["has-text-align-"+l]:l}),style:{direction:i}});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:l,onChange:e=>r({align:e})}),Object(ye.createElement)(Gi,{direction:i,setDirection:e=>r({direction:e})})),m&&Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Text settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:s?Object(we.__)("Showing large initial letter."):Object(we.__)("Toggle to show a large initial letter.")}))),Object(ye.createElement)(Ee.RichText,Object(mt.a)({identifier:"content",tagName:"p"},d,{value:c,onChange:e=>r({content:e}),onSplit:(t,n)=>{let o;(n||t)&&(o={...e,content:t});const r=Object(je.createBlock)("core/paragraph",o);return n&&(r.clientId=a),r},onMerge:t,onReplace:n,onRemove:o,"aria-label":c?Object(we.__)("Paragraph block"):Object(we.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!c,placeholder:u||Object(we.__)("Type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};const{name:Ui}={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var Wi={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=Object(je.getBlockAttributes)(Ui,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(je.createBlock)(Ui,t)}}]};const $i={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:Zi}=$i,Ki={icon:Li,example:{attributes:{content:Object(we.__)("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."),style:{typography:{fontSize:28}},dropCap:!0}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t}=e;return Object(Re.isEmpty)(t)?Object(we.__)("Empty"):t}},transforms:Wi,deprecated:Fi,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:qi,save:function({attributes:e}){const{align:t,content:n,dropCap:o,direction:r}=e,a=tt()({"has-drop-cap":o,["has-text-align-"+t]:t});return Object(ye.createElement)("p",Ee.useBlockProps.save({className:a,dir:r}),Object(ye.createElement)(Ee.RichText.Content,{value:n}))}};var Ji=function({isSelected:e,context:{postType:t,postId:n,queryId:o},attributes:r,setAttributes:a}){const l=!!o,{authorId:c,authorDetails:i,authors:s}=Object(Ie.useSelect)(e=>{var o;const{getEditedEntityRecord:r,getUser:a,getUsers:l}=e(It.store),c=null===(o=r("postType",t,n))||void 0===o?void 0:o.author;return{authorId:c,authorDetails:c?a(c):null,authors:l({who:"authors"})}},[t,n]),{editEntityRecord:u}=Object(Ie.useDispatch)(It.store),{textAlign:m,showAvatar:d,showBio:b,byline:p}=r,g=[];i&&Object(Re.forEach)(i.avatar_urls,(e,t)=>{g.push({value:t,label:`${t} x ${t}`})});const h=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+m]:m})});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Author Settings")},!l&&!(null==s||!s.length)&&Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Author"),value:c,options:s.map(({id:e,name:t})=>({value:e,label:t})),onChange:e=>{u("postType",t,n,{author:e})}}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show avatar"),checked:d,onChange:()=>a({showAvatar:!d})}),d&&Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Avatar size"),value:r.avatarSize,options:g,onChange:e=>{a({avatarSize:Number(e)})}}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show bio"),checked:b,onChange:()=>a({showBio:!b})}))),Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:m,onChange:e=>{a({textAlign:e})}})),Object(ye.createElement)("div",h,d&&i&&Object(ye.createElement)("div",{className:"wp-block-post-author__avatar"},Object(ye.createElement)("img",{width:r.avatarSize,src:i.avatar_urls[r.avatarSize],alt:i.name})),Object(ye.createElement)("div",{className:"wp-block-post-author__content"},(!Ee.RichText.isEmpty(p)||e)&&Object(ye.createElement)(Ee.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":Object(we.__)("Post author byline text"),placeholder:Object(we.__)("Write byline"),value:p,onChange:e=>a({byline:e})}),Object(ye.createElement)("p",{className:"wp-block-post-author__name"},(null==i?void 0:i.name)||Object(we.__)("Post Author")),b&&Object(ye.createElement)("p",{className:"wp-block-post-author__bio"},null==i?void 0:i.description))))};var Qi=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const Yi={apiVersion:2,name:"core/post-author",title:"Post Author",category:"theme",description:"Add the author of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"},{name:Xi}=Yi,es={icon:Qi,edit:Ji};var ts=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));function ns({postId:e}){return Object(Ie.useSelect)(t=>{const n=t(It.store).getEntityRecords("root","comment",{post:e});return n&&n.length?n.map(e=>Object(ye.createElement)(ye.RawHTML,{className:"wp-block-post-comments__comment",key:e.id},e.content.rendered)):Object(we.__)("No comments.")},[e])}const os={apiVersion:2,name:"core/post-comments",title:"Post Comments",category:"theme",description:"Display a post's comments.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,align:["wide","full"],typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0}},style:"wp-block-post-comments"},{name:rs}=os,as={icon:ts,edit:function({attributes:e,setAttributes:t,context:n}){const{postType:o,postId:r}=n,{textAlign:a}=e,l=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+a]:a})});return o&&r?Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),Object(ye.createElement)("div",l,Object(ye.createElement)(ns,{postId:r}))):Object(ye.createElement)("div",l,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Post comments block: no post found.")))}};var ls=Object(ye.createElement)(fe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"}));function cs(e,t,n){return Object(Ie.useSelect)(o=>o(It.store).canUserEditEntityRecord(e,t,n),[e,t,n])}function is({userCanEdit:e,postType:t,postId:n}){const[,,o]=Object(It.useEntityProp)("postType",t,"content",n),r=Object(Ee.useBlockProps)();return null!=o&&o.protected&&!e?Object(ye.createElement)("div",r,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("This content is password protected."))):Object(ye.createElement)("div",r,Object(ye.createElement)(ye.RawHTML,{key:"html"},null==o?void 0:o.rendered))}function ss({layout:e,context:t={}}){const{postType:n,postId:o}=t,r=Object(Ie.useSelect)(e=>{var t;const{getSettings:n}=e(Ee.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout},[]),a=Object(Ee.useSetting)("layout")||{},l=e&&e.inherit?a:e,[c,i,s]=Object(It.useEntityBlockEditor)("postType",n,{id:o}),u=Object(Ee.useInnerBlocksProps)(Object(Ee.useBlockProps)({className:"entry-content"}),{value:c,onInput:i,onChange:s,__experimentalLayout:r?l:void 0});return Object(ye.createElement)("div",u)}function us(e){const{context:{queryId:t,postType:n,postId:o}={}}=e,r=!!t,a=cs("postType",n,o);return a&&!r?Object(ye.createElement)(ss,e):Object(ye.createElement)(is,{userCanEdit:a,postType:n,postId:o})}function ms(){const e=Object(Ee.useBlockProps)();return Object(ye.createElement)("div",e,Object(ye.createElement)("p",null,Object(we.__)("Post Content")))}function ds(){const e=Object(Ee.useBlockProps)();return Object(ye.createElement)("div",e,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Block cannot be rendered inside itself.")))}const bs={apiVersion:2,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,__experimentalLayout:!0},editorStyle:"wp-block-post-content-editor"},{name:ps}=bs,gs={icon:ls,edit:function({context:e,attributes:t}){const{postId:n,postType:o}=e,{layout:r={}}=t,[a,l]=Object(Ee.__experimentalUseNoRecursiveRenders)(n);return n&&o&&a?Object(ye.createElement)(ds,null):Object(ye.createElement)(l,null,n&&o?Object(ye.createElement)(us,{context:e,layout:r}):Object(ye.createElement)(ms,null))}};var hs=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),Object(ye.createElement)(fe.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"}));var vs=[{attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}}];const Os={apiVersion:2,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:js}=Os,ys={icon:hs,edit:function({attributes:{textAlign:e,format:t,isLink:n},context:{postId:o,postType:r,queryId:a},setAttributes:l}){const c=!!a,[i]=Object(It.useEntityProp)("root","site","date_format"),[s,u]=Object(It.useEntityProp)("postType",r,"date",o),m=Object(Ua.__experimentalGetSettings)(),d=/a(?!\\)/i.test(m.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),b=Object.values(m.formats).map(e=>({key:e,name:Object(Ua.dateI18n)(e,s)})),p=t||i||m.formats.date,g=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+e]:e})}),h=Object(ye.useRef)();let v=s?Object(ye.createElement)("time",{dateTime:Object(Ua.dateI18n)("c",s),ref:h},Object(Ua.dateI18n)(p,s)):Object(we.__)("Post Date");return n&&s&&(v=Object(ye.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},v)),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:e,onChange:e=>{l({textAlign:e})}}),s&&!c&&Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.Dropdown,{popoverProps:{anchorRef:h.current},renderContent:()=>Object(ye.createElement)(ke.DateTimePicker,{currentDate:s,onChange:u,is12Hour:d}),renderToggle:({isOpen:e,onToggle:t})=>Object(ye.createElement)(ke.ToolbarButton,{"aria-expanded":e,icon:Xn.a,title:Object(we.__)("Change Date"),onClick:t,onKeyDown:n=>{e||n.keyCode!==dt.DOWN||(n.preventDefault(),t())}})}))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Format settings")},Object(ye.createElement)(ke.CustomSelectControl,{hideLabelFromVision:!0,label:Object(we.__)("Date Format"),options:b,onChange:({selectedItem:e})=>l({format:e.key}),value:b.find(e=>e.key===p)})),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.sprintf)(Object(we.__)("Link to %s"),r),onChange:()=>l({isLink:!n}),checked:n}))),Object(ye.createElement)("div",g,v))},deprecated:vs};var fs=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));const _s={apiVersion:2,name:"core/post-excerpt",title:"Post Excerpt",category:"theme",description:"Display a post's excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:ks}=_s,ws={icon:fs,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:n},setAttributes:o,isSelected:r,context:{postId:a,postType:l,queryId:c}}){const i=!!c,s=cs("postType",l,a),u=s&&!i,[m,d,{rendered:b,protected:p}={}]=Object(It.useEntityProp)("postType",l,"excerpt",a),g=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+e]:e})}),h=Object(ye.useMemo)(()=>{if(!b)return"";const e=(new window.DOMParser).parseFromString(b,"text/html");return e.body.textContent||e.body.innerText||""},[b]);if(!l||!a)return Object(ye.createElement)("div",g,Object(we.__)("Post Excerpt"));if(p&&!s)return Object(ye.createElement)("div",g,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("There is no excerpt because this is a protected post.")));const v=Object(ye.createElement)(Ee.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":Object(we.__)('"Read more" link text'),placeholder:Object(we.__)('Add "read more" link text'),value:t,onChange:e=>o({moreText:e}),withoutInteractiveFormatting:!0}),O=u?Object(ye.createElement)(Ee.RichText,{className:!n&&"wp-block-post-excerpt__excerpt is-inline","aria-label":Object(we.__)("Post excerpt text"),value:m||h||(r?"":Object(we.__)("No post excerpt found")),onChange:d}):b&&Object(ye.createElement)(ke.Disabled,null,Object(ye.createElement)(ye.RawHTML,{key:"html"},b))||Object(we.__)("No post excerpt found");return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.AlignmentToolbar,{value:e,onChange:e=>o({textAlign:e})})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Post Excerpt Settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show link on new line"),checked:n,onChange:e=>o({showMoreOnNewLine:e})}))),Object(ye.createElement)("div",g,O,!n&&" ",n?Object(ye.createElement)("p",{className:"wp-block-post-excerpt__more-text"},v):v))}};var Es=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const Cs=Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"cover",label:Object(we._x)("Cover","Scale option for Image dimension control")}),Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"contain",label:Object(we._x)("Contain","Scale option for Image dimension control")}),Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"fill",label:Object(we._x)("Fill","Scale option for Image dimension control")})),xs={cover:Object(we.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:Object(we.__)("Image is scaled to fill the space without clipping nor distorting."),fill:Object(we.__)("Image will be stretched and distorted to completely fill the space.")};var Ss=({attributes:{width:e,height:t,scale:n},setAttributes:o})=>{const r=Object(ke.__experimentalUseCustomUnits)({availableUnits:Object(Ee.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),a=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||o({[e]:n<0?"0":t})},l=Object(we._x)("Scale","Image scaling options");return Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Dimensions")},Object(ye.createElement)(ke.Flex,{justify:"space-between",className:tt()("block-library-post-featured-image-dimension-controls",{"scale-control-is-visible":!!t})},Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.__experimentalUnitControl,{label:Object(we.__)("Height"),labelPosition:"top",value:t||"",onChange:e=>{a("height",e)},units:r})),Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.__experimentalUnitControl,{label:Object(we.__)("Width"),labelPosition:"top",value:e||"",onChange:e=>{a("width",e)},units:r}))),!!t&&Object(ye.createElement)(ke.__experimentalToggleGroupControl,{label:l,value:n,help:xs[n],onChange:e=>{o({scale:e})},isBlock:!0},Cs))};const Bs=["image"],Ts=Object(ye.createElement)("div",{className:"post-featured-image_placeholder"},Object(ye.createElement)(ke.Icon,{icon:Es}),Object(ye.createElement)("p",null," ",Object(we.__)("Featured Image")));const Ns=Object(ke.withNotices)((function({attributes:e,setAttributes:t,context:{postId:n,postType:o,queryId:r},noticeUI:a,noticeOperations:l}){const c=!!r,{isLink:i,height:s,width:u,scale:m}=e,[d,b]=Object(It.useEntityProp)("postType",o,"featured_media",n),p=Object(Ie.useSelect)(e=>d&&e(It.store).getMedia(d,{context:"view"}),[d]),g=Object(Ee.useBlockProps)({style:{width:u}}),h=e=>{null!=e&&e.id&&b(e.id)};function v(e){l.removeAllNotices(),l.createErrorNotice(e)}let O;return!d&&c?Object(ye.createElement)("div",g,Ts):(O=d?p?Object(ye.createElement)("img",{src:p.source_url,alt:p.alt_text||Object(we.__)("Featured image"),style:{height:s,objectFit:s&&m}}):Ts:Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:Es}),onSelect:h,notices:a,onError:v,accept:"image/*",allowedTypes:Bs,labels:{title:Object(we.__)("Featured image"),instructions:Object(we.__)("Upload a media file or pick one from your media library.")}}),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(Ss,{attributes:e,setAttributes:t}),Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.sprintf)(Object(we.__)("Link to %s"),o),onChange:()=>t({isLink:!i}),checked:i}))),!!p&&!c&&Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:d,mediaURL:p.source_url,allowedTypes:Bs,accept:"image/*",onSelect:h,onError:v})),Object(ye.createElement)("figure",g,O)))}));const Ps={apiVersion:2,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img",text:!1,background:!1},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:zs}=Ps,Is={icon:Es,edit:function(e){var t;const n=Object(Ee.useBlockProps)();return null!==(t=e.context)&&void 0!==t&&t.postId?Object(ye.createElement)(Ns,e):Object(ye.createElement)("div",n,Ts)}};var Ms=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var Rs=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const Ls=[{isDefault:!0,name:"post-next",title:Object(we.__)("Next post"),description:Object(we.__)("Displays the post link that follows the current post."),icon:Ms,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:Object(we.__)("Previous post"),description:Object(we.__)("Displays the post link that precedes the current post."),icon:Rs,attributes:{type:"previous"},scope:["inserter","transform"]}];Ls.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Vs=Ls;const As={apiVersion:2,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1}},supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Hs}=As,Fs={edit:function({attributes:{type:e,label:t,showTitle:n,textAlign:o,linkLabel:r},setAttributes:a}){const l="next"===e;let c=l?Object(we.__)("Next"):Object(we.__)("Previous");n&&(c=l?Object(we.__)("Next: "):Object(we.__)("Previous: "));const i=l?Object(we.__)("Next post"):Object(we.__)("Previous post"),s=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+o]:o})});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,null,Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display the title as a link"),help:Object(we.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>a({showTitle:!n})}),n&&Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Include the label as part of the link"),checked:!!r,onChange:()=>a({linkLabel:!r})}))),Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.AlignmentToolbar,{value:o,onChange:e=>{a({textAlign:e})}})),Object(ye.createElement)("div",s,Object(ye.createElement)(Ee.RichText,{tagName:"a","aria-label":i,placeholder:c,value:t,allowedFormats:["core/bold","core/italic"],onChange:e=>a({label:e})}),n&&Object(ye.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},Object(we.__)("An example title"))))},variations:Vs};var Ds=n("Civd");const Gs=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function qs(){const e=Object(Ee.useInnerBlocksProps)({},{template:Gs});return Object(ye.createElement)("li",e)}const Us={apiVersion:2,name:"core/post-template",title:"Post Template",category:"design",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug"],supports:{reusable:!1,html:!1,align:!0,__experimentalLayout:{allowEditing:!1}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Ws}=Us,$s={icon:Ds.a,edit:function({clientId:e,context:{query:{perPage:t,offset:n,categoryIds:o=[],postType:r,tagIds:a=[],order:l,orderBy:c,author:i,search:s,exclude:u,sticky:m,inherit:d}={},queryContext:b=[{page:1}],templateSlug:p,displayLayout:{type:g="flex",columns:h=1}={}}}){const[{page:v}]=b,[O,j]=Object(ye.useState)(),{posts:y,blocks:f}=Object(Ie.useSelect)(b=>{const{getEntityRecords:g}=b(It.store),{getBlocks:h}=b(Ee.store),O={offset:t?t*(v-1)+n:0,categories:o,tags:a,order:l,orderby:c};return t&&(O.per_page=t),i&&(O.author=i),s&&(O.search=s),null!=u&&u.length&&(O.exclude=u),m&&(O.sticky="only"===m),d&&null!=p&&p.startsWith("archive-")&&(O.postType=p.replace("archive-",""),r=O.postType),{posts:g("postType",r,O),blocks:h(e)}},[t,v,n,o,a,l,c,e,i,s,r,u,m,d,p]),_=Object(ye.useMemo)(()=>null==y?void 0:y.map(e=>({postType:e.type,postId:e.id})),[y]),k="flex"===g&&h>1,w=Object(Ee.useBlockProps)({className:tt()({"is-flex-container":k,["columns-"+h]:k})});return y?y.length?Object(ye.createElement)("ul",w,_&&_.map(e=>Object(ye.createElement)(Ee.BlockContextProvider,{key:e.postId,value:e},e===(O||_[0])?Object(ye.createElement)(qs,null):Object(ye.createElement)("li",null,Object(ye.createElement)(Ee.BlockPreview,{blocks:f,__experimentalLive:!0,__experimentalOnClick:()=>j(e)}))))):Object(ye.createElement)("p",w," ",Object(we.__)("No results found.")):Object(ye.createElement)("p",w,Object(ye.createElement)(ke.Spinner,null))},save:function(){return Object(ye.createElement)(Ee.InnerBlocks.Content,null)}};var Zs=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));var Ks=[{name:"category",title:Object(we.__)("Post Categories"),description:Object(we.__)("Display a post's categories."),icon:Zs,isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term},{name:"post_tag",title:Object(we.__)("Post Tags"),description:Object(we.__)("Display a post's tags."),icon:Zs,attributes:{term:"post_tag"},isActive:e=>"post_tag"===e.term}];const Js={apiVersion:2,name:"core/post-terms",title:"Post Terms",category:"design",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{lineHeight:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:Qs}=Js,Ys={variations:Ks,edit:function({attributes:e,context:t,setAttributes:n}){var o;const{term:r,textAlign:a,separator:l}=e,{postId:c,postType:i}=t,s=Object(Ie.useSelect)(e=>{var t;if(!r)return{};const{getTaxonomy:n}=e(It.store),o=n(r);return null!=o&&null!==(t=o.visibility)&&void 0!==t&&t.publicly_queryable?o:{}},[r]),{postTerms:u,hasPostTerms:m,isLoading:d}=function({postId:e,postType:t,term:n}){var o;const{rest_base:r,slug:a}=n,[l]=Object(It.useEntityProp)("postType",t,r,e);return Object(Ie.useSelect)(e=>{var o;if(!(null==n||null===(o=n.visibility)||void 0===o?void 0:o.publicly_queryable))return{postTerms:[],_isLoading:!1,hasPostTerms:!1};var r;if(!l)return{isLoading:null==n||null===(r=n.postTerms)||void 0===r?void 0:r.includes(t)};if(!l.length)return{isLoading:!1};const{getEntityRecords:c,isResolving:i}=e(It.store),s=["taxonomy",a,{include:l,context:"view"}],u=c(...s);return{postTerms:u,isLoading:i("getEntityRecords",s),hasPostTerms:!(null==u||!u.length)}},[l,null==n||null===(o=n.visibility)||void 0===o?void 0:o.publicly_queryable])}({postId:c,postType:i,term:s}),b=c&&i,p=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+a]:a,["taxonomy-"+r]:r})});return b&&r?Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.AlignmentToolbar,{value:a,onChange:e=>{n({textAlign:e})}})),Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},Object(ye.createElement)(ke.TextControl,{autoComplete:"off",label:Object(we.__)("Separator"),value:l||"",onChange:e=>{n({separator:e})},help:Object(we.__)("Enter character(s) used to separate terms.")})),Object(ye.createElement)("div",p,d&&Object(ye.createElement)(ke.Spinner,null),!d&&m&&u.map(e=>Object(ye.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},e.name)).reduce((e,t)=>Object(ye.createElement)(ye.Fragment,null,e,Object(ye.createElement)("span",{className:"wp-block-post-terms__separator"},l||" "),t)),!d&&!m&&((null==s||null===(o=s.labels)||void 0===o?void 0:o.no_terms)||Object(we.__)("Term items not found.")))):Object(ye.createElement)("div",p,Object(we.__)("Post Terms"))}};var Xs=[{attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}}];const eu={apiVersion:2,name:"core/post-title",title:"Post Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:tu}=eu,nu={icon:Zc,edit:function({attributes:{level:e,textAlign:t,isLink:n,rel:o,linkTarget:r},setAttributes:a,context:{postType:l,postId:c,queryId:i}}){const s=0===e?"p":"h"+e,u=!!i,m=cs("postType",l,c),[d="",b,p]=Object(It.useEntityProp)("postType",l,"title",c),[g]=Object(It.useEntityProp)("postType",l,"link",c),h=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+t]:t})});let v=Object(ye.createElement)(s,h,Object(we.__)("Post Title"));return l&&c&&(v=m&&!u?Object(ye.createElement)(Ee.PlainText,Object(mt.a)({tagName:s,placeholder:Object(we.__)("No Title"),value:d,onChange:b,__experimentalVersion:2},h)):Object(ye.createElement)(s,h,Object(ye.createElement)(ye.RawHTML,{key:"html"},p.rendered))),n&&l&&c&&(v=m&&!u?Object(ye.createElement)(s,h,Object(ye.createElement)(Ee.PlainText,{tagName:"a",href:g,target:r,rel:o,placeholder:d.length?null:Object(we.__)("No Title"),value:d,onChange:b,__experimentalVersion:2})):Object(ye.createElement)(s,h,Object(ye.createElement)("a",{href:g,target:r,rel:o,onClick:e=>e.preventDefault()},Object(ye.createElement)(ye.RawHTML,{key:"html"},p.rendered)))),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(ca,{selectedLevel:e,onChange:e=>a({level:e})}),Object(ye.createElement)(Ee.AlignmentControl,{value:t,onChange:e=>{a({textAlign:e})}})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Make title a link"),onChange:()=>a({isLink:!n}),checked:n}),n&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r}),Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Link rel"),value:o,onChange:e=>a({rel:e})})))),v)},deprecated:Xs};var ou=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var ru={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>Object(je.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(je.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>Object(je.createBlock)("core/code",e)}]};const au={apiVersion:2,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:lu}=au,cu={icon:ou,example:{attributes:{content:Object(we.__)("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:ru,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:o,style:r}){const{content:a}=e,l=Object(Ee.useBlockProps)({style:r});return Object(ye.createElement)(Ee.RichText,Object(mt.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:a,onChange:e=>{n({content:e})},onRemove:o,"aria-label":Object(we.__)("Preformatted text"),placeholder:Object(we.__)("Write preformatted text"),onMerge:t},l,{__unstablePastePlainText:!0}))},save:function({attributes:e}){const{content:t}=e;return Object(ye.createElement)("pre",Ee.useBlockProps.save(),Object(ye.createElement)(Ee.RichText.Content,{value:t}))},merge:(e,t)=>({content:e.content+t.content})};var iu=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const su={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 uu(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}var mu=[{attributes:{...su},save({attributes:e}){const{mainColor:t,customMainColor:n,customTextColor:o,textColor:r,value:a,citation:l,className:c}=e;let i,s;if(Object(Re.includes)(c,"is-style-solid-color")){const e=Object(Ee.getColorClassName)("background-color",t);i=tt()({"has-background":e||n,[e]:e}),s={backgroundColor:e?void 0:n}}else n&&(s={borderColor:n});const u=Object(Ee.getColorClassName)("color",r),m=tt()({"has-text-color":r||o,[u]:u}),d=u?void 0:{color:o};return Object(ye.createElement)("figure",Ee.useBlockProps.save({className:i,style:s}),Object(ye.createElement)("blockquote",{className:m,style:d},Object(ye.createElement)(Ee.RichText.Content,{value:a,multiline:!0}),!Ee.RichText.isEmpty(l)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:l})))},migrate({className:e,mainColor:t,customMainColor:n,customTextColor:o,...r}){const a=Object(Re.includes)(e,"is-style-solid-color");let l;return n&&(l=a?{color:{background:n}}:{border:{color:n}}),o&&l&&(l.color={...l.color,text:o}),{className:e,backgroundColor:a?t:void 0,borderColor:a?void 0:t,textAlign:a?"left":void 0,style:l,...r}}},{attributes:{...su,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:r,value:a,citation:l,className:c,figureStyle:i}=e;let s,u;if(Object(Re.includes)(c,"is-style-solid-color")){const e=Object(Ee.getColorClassName)("background-color",t);s=tt()({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else if(n)u={borderColor:n};else if(t){u={borderColor:uu(i)}}const m=Object(Ee.getColorClassName)("color",o),d=(o||r)&&tt()("has-text-color",{[m]:m}),b=m?void 0:{color:r};return Object(ye.createElement)("figure",{className:s,style:u},Object(ye.createElement)("blockquote",{className:d,style:b},Object(ye.createElement)(Ee.RichText.Content,{value:a,multiline:!0}),!Ee.RichText.isEmpty(l)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:l})))},migrate({className:e,figureStyle:t,mainColor:n,customMainColor:o,customTextColor:r,...a}){const l=Object(Re.includes)(e,"is-style-solid-color");let c;if(o&&(c=l?{color:{background:o}}:{border:{color:o}}),r&&c&&(c.color={...c.color,text:r}),!l&&n&&t){const n=uu(t);if(n)return{...a,className:e,style:{border:{color:n}}}}return{className:e,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:c,...a}}},{attributes:su,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:r,value:a,citation:l,className:c}=e;let i,s;if(Object(Re.includes)(c,"is-style-solid-color"))i=Object(Ee.getColorClassName)("background-color",t),i||(s={backgroundColor:n});else if(n)s={borderColor:n};else if(t){const e=Object(Re.get)(Object(Ie.select)(Ee.store).getSettings(),["colors"],[]);s={borderColor:Object(Ee.getColorObjectByAttributeValues)(e,t).color}}const u=Object(Ee.getColorClassName)("color",o),m=o||r?tt()("has-text-color",{[u]:u}):void 0,d=u?void 0:{color:r};return Object(ye.createElement)("figure",{className:i,style:s},Object(ye.createElement)("blockquote",{className:m,style:d},Object(ye.createElement)(Ee.RichText.Content,{value:a,multiline:!0}),!Ee.RichText.isEmpty(l)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:l})))},migrate({className:e,mainColor:t,customMainColor:n,customTextColor:o,...r}){const a=Object(Re.includes)(e,"is-style-solid-color");let l={};return n&&(l=a?{color:{background:n}}:{border:{color:n}}),o&&l&&(l.color={...l.color,text:o}),{className:e,backgroundColor:a?t:void 0,borderColor:a?void 0:t,textAlign:a?"left":void 0,style:l,...r}}},{attributes:{...su},save({attributes:e}){const{value:t,citation:n}=e;return Object(ye.createElement)("blockquote",null,Object(ye.createElement)(Ee.RichText.Content,{value:t,multiline:!0}),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:n}))}},{attributes:{...su,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:o}=e;return Object(ye.createElement)("blockquote",{className:"align"+o},Object(ye.createElement)(Ee.RichText.Content,{value:t,multiline:!0}),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"footer",value:n}))}}];var du=function({attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o}){const{textAlign:r,citation:a,value:l}=e,c=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+r]:r})}),i=!Ee.RichText.isEmpty(a)||n;return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})),Object(ye.createElement)("figure",c,Object(ye.createElement)("blockquote",null,Object(ye.createElement)(Ee.RichText,{identifier:"value",multiline:!0,value:l,onChange:e=>t({value:e}),"aria-label":Object(we.__)("Pullquote text"),placeholder:Object(we.__)("Add quote"),textAlign:"center"}),i&&Object(ye.createElement)(Ee.RichText,{identifier:"citation",value:a,"aria-label":Object(we.__)("Pullquote citation text"),placeholder:Object(we.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o(Object(je.createBlock)("core/paragraph"))}))))};var bu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(je.createBlock)("core/pullquote",{value:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(({content:e})=>Object(kt.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(je.createBlock)("core/pullquote",{value:`<p>${e}</p>`,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&"<p></p>"!==e&&n.push(...Object(kt.split)(Object(kt.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(je.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))),t&&"<p></p>"!==t&&n.push(Object(je.createBlock)("core/paragraph",{content:t})),0===n.length?Object(je.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...n})=>{if("<p></p>"===e)return Object(je.createBlock)("core/heading",{content:t});const o=Object(kt.split)(Object(kt.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(je.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:o[0]})});if(!t&&1===o.length)return r;const a=o.slice(1);return[r,Object(je.createBlock)("core/pullquote",{...n,citation:t,value:Object(kt.toHTMLString)({value:a.length?Object(kt.join)(o.slice(1),"\u2028"):Object(kt.create)(),multilineTag:"p"})})]}}]};const pu={apiVersion:2,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:gu}=pu,hu={icon:iu,example:{attributes:{value:"<p>"+Object(we.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(we.__)("Matt Mullenweg")}},transforms:bu,edit:du,save:function({attributes:e}){const{textAlign:t,citation:n,value:o}=e,r=!Ee.RichText.isEmpty(n);return Object(ye.createElement)("figure",Ee.useBlockProps.save({className:tt()({["has-text-align-"+t]:t})}),Object(ye.createElement)("blockquote",null,Object(ye.createElement)(Ee.RichText.Content,{value:o,multiline:!0}),r&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:n})))},deprecated:mu};var vu=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),Ou=n("mi6C");function ju({attributes:{query:e,displayLayout:t},setQuery:n,setDisplayLayout:o}){const r=Object(nt.useInstanceId)(ju,"blocks-query-pagination-max-page-input"),a=[{icon:Wa,title:Object(we.__)("List view"),onClick:()=>o({type:"list"}),isActive:"list"===(null==t?void 0:t.type)},{icon:$a.a,title:Object(we.__)("Grid view"),onClick:()=>o({type:"flex",columns:(null==t?void 0:t.columns)||3}),isActive:"flex"===(null==t?void 0:t.type)}];return Object(ye.createElement)(ye.Fragment,null,!e.inherit&&Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>Object(ye.createElement)(ke.ToolbarButton,{icon:Ou.a,label:Object(we.__)("Display settings"),onClick:e}),renderContent:()=>Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.BaseControl,null,Object(ye.createElement)(ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(we.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||n({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})),Object(ye.createElement)(ke.BaseControl,null,Object(ye.createElement)(ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(we.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||n({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})),Object(ye.createElement)(ke.BaseControl,{id:r,help:Object(we.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},Object(ye.createElement)(ke.__experimentalNumberControl,{id:r,__unstableInputWidth:"60px",label:Object(we.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||n({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})))})),Object(ye.createElement)(ke.ToolbarGroup,{controls:a}))}const yu=e=>{const t=null==e?void 0:e.reduce((e,t)=>{const{mapById:n,mapByName:o,names:r}=e;return n[t.id]=t,o[t.name]=t,r.push(t.name),e},{mapById:{},mapByName:{},names:[]});return{terms:e,...t}};const fu=[{label:Object(we.__)("Include"),value:""},{label:Object(we.__)("Exclude"),value:"exclude"},{label:Object(we.__)("Only"),value:"only"}];function _u({attributes:{query:e,displayLayout:t},setQuery:n,setDisplayLayout:o}){var r,a;const{order:l,orderBy:c,author:i,postType:s,sticky:u,inherit:m}=e,[d,b]=Object(ye.useState)(!0),[p,g]=Object(ye.useState)(!0),[h,v]=Object(ye.useState)("post"===s),{postTypesTaxonomiesMap:O,postTypesSelectOptions:j}=(()=>{const{postTypes:e}=Object(Ie.useSelect)(e=>{var t;const{getPostTypes:n}=e(It.store),o=["attachment"];return{postTypes:null===(t=n({per_page:-1}))||void 0===t?void 0:t.filter(({viewable:e,slug:t})=>e&&!o.includes(t))}},[]);return{postTypesTaxonomiesMap:Object(ye.useMemo)(()=>{if(null!=e&&e.length)return e.reduce((e,t)=>(e[t.slug]=t.taxonomies,e),{})},[e]),postTypesSelectOptions:Object(ye.useMemo)(()=>(e||[]).map(({labels:e,slug:t})=>({label:e.singular_name,value:t})),[e])}})(),{authorList:y,categories:f,tags:_}=Object(Ie.useSelect)(e=>{const{getEntityRecords:t}=e(It.store),n={per_page:100},o=t("taxonomy","category",n),r=t("taxonomy","post_tag",n);return{categories:yu(o),tags:yu(r),authorList:t("root","user",{per_page:-1})}},[]);Object(ye.useEffect)(()=>{if(!O)return;const e=O[s];b(e.includes("category")),g(e.includes("post_tag"))},[s,O]),Object(ye.useEffect)(()=>{v("post"===s)},[s]);const k=(e,t)=>o=>{const r=Array.from(o.reduce((t,n)=>{const o=((e,t)=>{var n;const o=(null==t?void 0:t.id)||(null===(n=e[t])||void 0===n?void 0:n.id);if(o)return o;const r=t.toLocaleLowerCase();for(const t in e)if(t.toLocaleLowerCase()===r)return e[t].id})(e.mapByName,n);return o&&t.add(o),t},new Set));n({[t]:r})},w=k(f,"categoryIds"),E=k(_,"tagIds"),[C,x]=Object(ye.useState)(e.search),S=Object(ye.useCallback)(Object(Re.debounce)(()=>{e.search!==C&&n({search:C})},250),[C,e.search]);Object(ye.useEffect)(()=>(S(),S.cancel),[C,S]);const B=t=>{const n={category:{queryProp:"categoryIds",terms:f},post_tag:{queryProp:"tagIds",terms:_}}[t];return(e[n.queryProp]||[]).reduce((e,t)=>{const o=n.terms.mapById[t];return o&&e.push({id:t,value:o.name}),e},[])};return Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Inherit query from template"),help:Object(we.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!m,onChange:e=>n({inherit:!!e})}),!m&&Object(ye.createElement)(ke.SelectControl,{options:j,value:s,label:Object(we.__)("Post Type"),onChange:e=>{const t={postType:e};O[e].includes("category")||(t.categoryIds=[]),O[e].includes("post_tag")||(t.tagIds=[]),"post"!==e&&(t.sticky=""),n(t)},help:Object(we.__)('WordPress contains different types of content and they are divided into collections called "Post Types". By default there are a few different ones such as blog posts and pages, but plugins could add more.')}),"flex"===(null==t?void 0:t.type)&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Columns"),value:t.columns,onChange:e=>o({columns:e}),min:2,max:Math.max(6,t.columns)}),t.columns>6&&Object(ye.createElement)(ke.Notice,{status:"warning",isDismissible:!1},Object(we.__)("This column count exceeds the recommended amount and may cause visual breakage."))),!m&&Object(ye.createElement)(ke.QueryControls,{order:l,orderBy:c,onOrderChange:e=>n({order:e}),onOrderByChange:e=>n({orderBy:e})}),h&&Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Sticky posts"),options:fu,value:u,onChange:e=>n({sticky:e}),help:Object(we.__)('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')})),!m&&Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Filters")},d&&(null==f||null===(r=f.terms)||void 0===r?void 0:r.length)>0&&Object(ye.createElement)(ke.FormTokenField,{label:Object(we.__)("Categories"),value:B("category"),suggestions:f.names,onChange:w}),p&&(null==_||null===(a=_.terms)||void 0===a?void 0:a.length)>0&&Object(ye.createElement)(ke.FormTokenField,{label:Object(we.__)("Tags"),value:B("post_tag"),suggestions:_.names,onChange:E}),Object(ye.createElement)(ke.QueryControls,{selectedAuthorId:i,authorList:y,onAuthorChange:e=>n({author:""!==e?+e:void 0})}),Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Keyword"),value:C,onChange:x})))}var ku=({clientId:e,name:t,attributes:n,setAttributes:o})=>{var r;const{blockType:a,defaultVariation:l,scopeVariations:c,allVariations:i}=Object(Ie.useSelect)(e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:r}=e(je.store);return{blockType:o(t),defaultVariation:r(t,"block"),scopeVariations:n(t,"block"),allVariations:n(t)}},[t]),{replaceInnerBlocks:s}=Object(Ie.useDispatch)(Ee.store),u=Object(Ee.useBlockProps)(),m=Object(Ee.__experimentalGetMatchingVariation)(n,i),d=(null==m?void 0:m.icon)||(null==a||null===(r=a.icon)||void 0===r?void 0:r.src),b=(null==m?void 0:m.title)||(null==a?void 0:a.title);return Object(ye.createElement)("div",u,Object(ye.createElement)(Ee.__experimentalBlockVariationPicker,{icon:d,label:b,variations:c,onSelect:(t=l)=>{t.attributes&&o(t.attributes),t.innerBlocks&&s(e,Object(je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!1)}}))};const wu=[["core/post-template"]];function Eu({attributes:e,setAttributes:t}){const{queryId:n,query:o,displayLayout:r,tagName:a="div",layout:l={}}=e,{__unstableMarkNextChangeAsNotPersistent:c}=Object(Ie.useDispatch)(Ee.store),i=Object(nt.useInstanceId)(Eu),{themeSupportsLayout:s}=Object(Ie.useSelect)(e=>{var t;const{getSettings:n}=e(Ee.store);return{themeSupportsLayout:null===(t=n())||void 0===t?void 0:t.supportsLayout}},[]),u=Object(Ee.useSetting)("layout")||{},m=l&&l.inherit?u:l,d=Object(Ee.useBlockProps)(),b=Object(Ee.useInnerBlocksProps)(d,{template:wu,__experimentalLayout:s?m:void 0}),{postsPerPage:p}=Object(Ie.useSelect)(e=>{const{getSettings:t}=e(Ee.store);return{postsPerPage:+t().postsPerPage||3}},[]);Object(ye.useEffect)(()=>{const e={};!o.perPage&&p&&(e.perPage=p),Object.keys(e).length&&(c(),g(e))},[o.perPage]),Object(ye.useEffect)(()=>{n||(c(),t({queryId:i}))},[n,i]);const g=e=>t({query:{...o,...e}}),h=e=>t({displayLayout:{...r,...e}});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(_u,{attributes:e,setQuery:g,setDisplayLayout:h}),Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ju,{attributes:e,setQuery:g,setDisplayLayout:h})),Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("HTML element"),options:[{label:Object(we.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:a,onChange:e=>t({tagName:e})})),Object(ye.createElement)(a,b))}function Cu(e){const{clientId:t,name:n}=e,o=Object(Ee.useBlockProps)(),{replaceBlock:r,selectBlock:a}=Object(Ie.useDispatch)(Ee.store);return Object(ye.createElement)("div",o,Object(ye.createElement)(Ee.__experimentalBlockPatternSetup,{blockName:n,clientId:t,startBlankComponent:Object(ye.createElement)(ku,e),onBlockPatternSelect:e=>{const n=e.map(e=>Object(je.cloneBlock)(e)),o=(e=>{const t=[...e];for(;t.length>0;){var n;const e=t.shift();if("core/query"===e.name)return e.clientId;null===(n=e.innerBlocks)||void 0===n||n.forEach(e=>{t.push(e)})}})(n);r(t,n),o&&a(o)}}))}var xu=e=>{const{clientId:t}=e,n=Object(Ie.useSelect)(e=>!!e(Ee.store).getBlocks(t).length,[t])?Eu:Cu;return Object(ye.createElement)(n,e)};const Su=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(ye.createElement)(ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Bu=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(ye.createElement)(ke.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Tu=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(ye.createElement)(ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Nu=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(ye.createElement)(ke.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Pu={query:{perPage:3,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var zu=[{name:"posts-list",title:Object(we.__)("Posts List"),description:Object(we.__)("Display a list of your most recent posts, excluding sticky posts."),icon:Da,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:Object(we.__)("Title & Date"),icon:Su,attributes:{...Pu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"]],scope:["block"]},{name:"title-excerpt",title:Object(we.__)("Title & Excerpt"),icon:Bu,attributes:{...Pu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"]],scope:["block"]},{name:"title-date-excerpt",title:Object(we.__)("Title, Date, & Excerpt"),icon:Tu,attributes:{...Pu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"]],scope:["block"]},{name:"image-date-title",title:Object(we.__)("Image, Date, & Title"),icon:Nu,attributes:{...Pu},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"]],scope:["block"]}];var Iu=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate:e=>({...Object(Re.omit)(e,["layout"]),displayLayout:e.layout}),save:()=>Object(ye.createElement)(Ee.InnerBlocks.Content,null)}];const Mu=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=Object(Zo.addQueryArgs)("post-new.php",{post_type:e});return Object(ye.createElement)("div",{className:"wp-block-query__create-new-link"},Object(ye.createInterpolateElement)(Object(we.__)("<a>Create a new post</a> for this feed."),{a:Object(ye.createElement)("a",{href:t})}))};var Ru=Object(nt.createHigherOrderComponent)(e=>t=>{const{name:n,isSelected:o}=t;return"core/query"===n&&o?Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(Mu,t)),Object(ye.createElement)(e,Object(mt.a)({key:"edit"},t))):Object(ye.createElement)(e,Object(mt.a)({key:"edit"},t))},"withInspectorControls");const Lu={apiVersion:2,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},__experimentalLayout:!0},editorStyle:"wp-block-query-editor"},{name:Vu}=Lu,Au={icon:vu,edit:xu,save:function({attributes:{tagName:e="div"}}){const t=Ee.useBlockProps.save(),n=Ee.useInnerBlocksProps.save(t);return Object(ye.createElement)(e,n)},variations:zu,deprecated:Iu};Object(Rr.addFilter)("editor.BlockEdit","core/query",Ru);var Hu=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(ye.createElement)(fe.Rect,{x:"12",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(ye.createElement)(fe.Rect,{x:"17",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}));function Fu({value:e,onChange:t}){return Object(ye.createElement)(ke.__experimentalToggleGroupControl,{label:Object(we.__)("Arrow"),value:e,onChange:t,help:Object(we.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"none",label:Object(we._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"arrow",label:Object(we._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),Object(ye.createElement)(ke.__experimentalToggleGroupControlOption,{value:"chevron",label:Object(we._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}const Du=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var Gu=[{save:()=>Object(ye.createElement)("div",Ee.useBlockProps.save(),Object(ye.createElement)(Ee.InnerBlocks.Content,null))}];const qu={apiVersion:2,name:"core/query-pagination",title:"Query Pagination",category:"design",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:Uu}=qu,Wu={icon:Hu,edit:function({attributes:{paginationArrow:e,layout:t},setAttributes:n,clientId:o,name:r}){const a=t||(e=>{const t=Object(je.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(r),l=Object(Ie.useSelect)(e=>{const{getBlocks:t}=e(Ee.store),n=t(o);return null==n?void 0:n.find(e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name))},[]),c=Object(Ee.useBlockProps)(),i=Object(Ee.useInnerBlocksProps)(c,{template:Du,allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],__experimentalLayout:a});return Object(ye.createElement)(ye.Fragment,null,l&&Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Settings")},Object(ye.createElement)(Fu,{value:e,onChange:e=>{n({paginationArrow:e})}}))),Object(ye.createElement)("div",i))},save:function(){return Object(ye.createElement)(Ee.InnerBlocks.Content,null)},deprecated:Gu};var $u=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Rect,{x:"6",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(ye.createElement)(fe.Rect,{x:"11",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(ye.createElement)(fe.Path,{d:"M16.5 9.5L19 12l-2.5 2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));const Zu={none:"",arrow:"",chevron:"»"};const Ku={apiVersion:2,name:"core/query-pagination-next",title:"Query Pagination Next",category:"design",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Ju}=Ku,Qu={icon:$u,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n}}){const o=Zu[n];return Object(ye.createElement)("a",Object(mt.a)({href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault()},Object(Ee.useBlockProps)()),Object(ye.createElement)(Ee.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":Object(we.__)("Next page link"),placeholder:Object(we.__)("Next Page"),value:e,onChange:e=>t({label:e})}),o&&Object(ye.createElement)("span",{className:"wp-block-query-pagination-next-arrow is-arrow-"+n},o))}};var Yu=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(ye.createElement)(fe.Path,{d:"M13.5 14v-4l-1.5.5",stroke:"#1E1E1E"}),Object(ye.createElement)(fe.Path,{d:"M19.266 9.805c-.473-.611-1.22-.51-1.702-.367a3.854 3.854 0 00-.718.307l.13 1.082c.192-.17.47-.422.782-.515.34-.1.578.025.668.141.21.27-.034.835-.16 1.055-.49.85-.93 1.594-1.45 2.492H19.5v-1h-.914c.277-.574.814-1.443.914-2.106.052-.343.02-.762-.234-1.09z",fill:"#1E1E1E"}));const Xu=(e,t="a",n="")=>Object(ye.createElement)(t,{className:"page-numbers "+n},e);const em={apiVersion:2,name:"core/query-pagination-numbers",title:"Query Pagination Numbers",category:"design",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1},editorStyle:"query-pagination-numbers-editor"},{name:tm}=em,nm={icon:Yu,edit:function(){const e=Object(ye.createElement)(ye.Fragment,null,Xu(1),Xu(2),Xu(3,"span","current"),Xu(4),Xu(5),Xu("...","span","dots"),Xu(8));return Object(ye.createElement)("div",Object(Ee.useBlockProps)(),e)}};var om=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Rect,{x:"18",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 18 13.5)",fill:"#000"}),Object(ye.createElement)(fe.Rect,{x:"13",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 13 13.5)",fill:"#000"}),Object(ye.createElement)(fe.Path,{d:"M7.5 14.5L5 12l2.5-2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));const rm={none:"",arrow:"",chevron:"«"};const am={apiVersion:2,name:"core/query-pagination-previous",title:"Query Pagination Previous",category:"design",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:lm}=am,cm={icon:om,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n}}){const o=rm[n];return Object(ye.createElement)("a",Object(mt.a)({href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault()},Object(Ee.useBlockProps)()),o&&Object(ye.createElement)("span",{className:"wp-block-query-pagination-previous-arrow is-arrow-"+n},o),Object(ye.createElement)(Ee.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":Object(we.__)("Previous page link"),placeholder:Object(we.__)("Previous Page"),value:e,onChange:e=>t({label:e})}))}},im=["archive"];var sm=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M4 19.25h9M4 15.25h16"}),Object(ye.createElement)(fe.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));const um=[{isDefault:!0,name:"archive-title",title:Object(we.__)("Archive Title"),description:Object(we.__)("Display the archive title based on the queried object."),icon:sm,attributes:{type:"archive"},scope:["inserter"]}];um.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var mm=um;var dm=[{attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}}];const bm={apiVersion:2,name:"core/query-title",title:"Query Title",category:"design",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},editorStyle:"wp-block-query-title-editor"},{name:pm}=bm,gm={edit:function({attributes:{type:e,level:t,textAlign:n},setAttributes:o}){const r="h"+t,a=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+n]:n,"wp-block-query-title__placeholder":"archive"===e})});if(!im.includes(e))return Object(ye.createElement)("div",a,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Provided type is not supported.")));let l;return"archive"===e&&(l=Object(ye.createElement)(r,a,Object(we.__)("Archive title"))),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(ca,{selectedLevel:t,onChange:e=>o({level:e})}),Object(ye.createElement)(Ee.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})),l)},variations:mm,deprecated:dm};var hm=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const vm={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}};var Om=[{attributes:vm,save({attributes:e}){const{align:t,value:n,citation:o}=e;return Object(ye.createElement)("blockquote",{style:{textAlign:t||null}},Object(ye.createElement)(Ee.RichText.Content,{multiline:!0,value:n}),!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...vm,style:{type:"number",default:1}},migrate:e=>2===e.style?{...Object(Re.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save({attributes:e}){const{align:t,value:n,citation:o,style:r}=e;return Object(ye.createElement)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null}},Object(ye.createElement)(Ee.RichText.Content,{multiline:!0,value:n}),!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...vm,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},migrate:e=>isNaN(parseInt(e.style))?e:{...Object(Re.omit)(e,["style"])},save({attributes:e}){const{align:t,value:n,citation:o,style:r}=e;return Object(ye.createElement)("blockquote",{className:"blocks-quote-style-"+r,style:{textAlign:t||null}},Object(ye.createElement)(Ee.RichText.Content,{multiline:!0,value:n}),!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"footer",value:o}))}}];const jm="web"===ye.Platform.OS;var ym={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(je.createBlock)("core/quote",{value:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(({content:e})=>Object(kt.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(je.createBlock)("core/quote",{value:`<p>${e}</p>`,anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n})=>Object(je.createBlock)("core/quote",{value:e,citation:t,anchor:n})},{type:"prefix",prefix:">",transform:e=>Object(je.createBlock)("core/quote",{value:`<p>${e}</p>`})},{type:"raw",isMatch:e=>{const t=(()=>{let e=!1;return t=>"P"===t.nodeName||(e||"CITE"!==t.nodeName?void 0:(e=!0,!0))})();return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(t)},schema:({phrasingContentSchema:e})=>({blockquote:{children:{p:{children:e},cite:{children:e}}}})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&"<p></p>"!==e&&n.push(...Object(kt.split)(Object(kt.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(je.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))),t&&"<p></p>"!==t&&n.push(Object(je.createBlock)("core/paragraph",{content:t})),0===n.length?Object(je.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...n})=>{if("<p></p>"===e)return Object(je.createBlock)("core/heading",{content:t});const o=Object(kt.split)(Object(kt.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(je.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:o[0]})});if(!t&&1===o.length)return r;const a=o.slice(1);return[r,Object(je.createBlock)("core/quote",{...n,citation:t,value:Object(kt.toHTMLString)({value:a.length?Object(kt.join)(o.slice(1),"\u2028"):Object(kt.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n})=>Object(je.createBlock)("core/pullquote",{value:e,citation:t,anchor:n})}]};const fm={apiVersion:2,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"},{name:"large",label:"Large"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:_m}=fm,km={icon:hm,example:{attributes:{value:"<p>"+Object(we.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},transforms:ym,edit:function({attributes:e,setAttributes:t,isSelected:n,mergeBlocks:o,onReplace:r,className:a,insertBlocksAfter:l,style:c}){const{align:i,value:s,citation:u}=e,m=Object(Ee.useBlockProps)({className:tt()(a,{["has-text-align-"+i]:i}),style:c});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:i,onChange:e=>{t({align:e})}})),Object(ye.createElement)(ke.BlockQuotation,m,Object(ye.createElement)(Ee.RichText,{identifier:"value",multiline:!0,value:s,onChange:e=>t({value:e}),onMerge:o,onRemove:e=>{const t=!u||0===u.length;!e&&t&&r([])},"aria-label":Object(we.__)("Quote text"),placeholder:Object(we.__)("Add quote"),onReplace:r,onSplit:t=>Object(je.createBlock)("core/quote",{...e,value:t}),__unstableOnSplitMiddle:()=>Object(je.createBlock)("core/paragraph"),textAlign:i}),(!Ee.RichText.isEmpty(u)||n)&&Object(ye.createElement)(Ee.RichText,{identifier:"citation",tagName:jm?"cite":void 0,style:{display:"block"},value:u,onChange:e=>t({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":Object(we.__)("Quote citation text"),placeholder:Object(we.__)("Add citation"),className:"wp-block-quote__citation",textAlign:i,__unstableOnSplitAtEnd:()=>l(Object(je.createBlock)("core/paragraph"))})))},save:function({attributes:e}){const{align:t,value:n,citation:o}=e,r=tt()({["has-text-align-"+t]:t});return Object(ye.createElement)("blockquote",Ee.useBlockProps.save({className:r}),Object(ye.createElement)(Ee.RichText.Content,{multiline:!0,value:n}),!Ee.RichText.isEmpty(o)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"cite",value:o}))},merge:(e,{value:t,citation:n})=>(n||(n=e.citation),t&&"<p></p>"!==t?{...e,value:e.value+t,citation:n}:{...e,citation:n}),deprecated:Om};var wm=n("+WrK"),Em=n("diJD");var Cm=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const xm={apiVersion:2,name:"core/block",title:"Reusable block",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere its used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:Sm}=xm,Bm={edit:function({attributes:{ref:e},clientId:t}){const[n,o]=Object(Ee.__experimentalUseNoRecursiveRenders)(e),{isMissing:r,hasResolved:a}=Object(Ie.useSelect)(t=>{const n=t(It.store).getEntityRecord("postType","wp_block",e),o=t(It.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",e]);return{hasResolved:o,isMissing:o&&!n}},[e,t]),{__experimentalConvertBlockToStatic:l}=Object(Ie.useDispatch)(Em.store),[c,i,s]=Object(It.useEntityBlockEditor)("postType","wp_block",{id:e}),[u,m]=Object(It.useEntityProp)("postType","wp_block","title",e),d=Object(Ee.useBlockProps)(),b=Object(Ee.useInnerBlocksProps)({},{value:c,onInput:i,onChange:s,renderAppender:null!=c&&c.length?void 0:Ee.InnerBlocks.ButtonBlockAppender});return n?Object(ye.createElement)("div",d,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Block cannot be rendered inside itself."))):r?Object(ye.createElement)("div",d,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Block has been deleted or is unavailable."))):a?Object(ye.createElement)(o,null,Object(ye.createElement)("div",d,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.ToolbarButton,{onClick:()=>l(t),label:Object(we.__)("Convert to regular blocks"),icon:Cm,showTooltip:!0}))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,null,Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Name"),value:u,onChange:m}))),Object(ye.createElement)(Ee.__experimentalBlockContentOverlay,{clientId:t,wrapperProps:b,className:"block-library-block__reusable-block-container"}))):Object(ye.createElement)("div",d,Object(ye.createElement)(ke.Placeholder,null,Object(ye.createElement)(ke.Spinner,null)))},icon:wm.a};var Tm=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const Nm={apiVersion:2,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Pm}=Nm,zm={icon:Tm,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,o]=Object(ye.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:l,displayDate:c,displayExcerpt:i,excerptLength:s,feedURL:u,itemsToShow:m}=e;function d(n){return()=>{const o=e[n];t({[n]:!o})}}const b=Object(Ee.useBlockProps)();if(n)return Object(ye.createElement)("div",b,Object(ye.createElement)(ke.Placeholder,{icon:Tm,label:"RSS"},Object(ye.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&o(!1)},className:"wp-block-rss__placeholder-form"},Object(ye.createElement)(ke.TextControl,{placeholder:Object(we.__)("Enter URL here"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),Object(ye.createElement)(ke.Button,{variant:"primary",type:"submit"},Object(we.__)("Use URL")))));const p=[{icon:Xn.a,title:Object(we.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:Wa,title:Object(we.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:$a.a,title:Object(we.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}];return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,{controls:p})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("RSS settings")},Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Number of items"),value:m,onChange:e=>t({itemsToShow:e}),min:1,max:10,required:!0}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display author"),checked:l,onChange:d("displayAuthor")}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display date"),checked:c,onChange:d("displayDate")}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Display excerpt"),checked:i,onChange:d("displayExcerpt")}),i&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Max number of words in excerpt"),value:s,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===r&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),Object(ye.createElement)("div",b,Object(ye.createElement)(ke.Disabled,null,Object(ye.createElement)(xe.a,{block:"core/rss",attributes:e}))))}},Im=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Mm=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(ye.createElement)(ke.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Rm=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(ye.createElement)(ke.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Lm=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Vm=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(ye.createElement)(ke.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Am=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(ke.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(ye.createElement)(ke.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));var Hm=[{name:"default",isDefault:!0,attributes:{buttonText:Object(we.__)("Search"),label:Object(we.__)("Search")}}];const Fm={apiVersion:2,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0},__experimentalBorder:{color:!0,radius:!0,__experimentalSkipSerialization:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Dm}=Fm,Gm={icon:ac.a,example:{},variations:Hm,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:o,isSelected:r,clientId:a}){var l,c;const{label:i,showLabel:s,placeholder:u,width:m,widthUnit:d,align:b,buttonText:p,buttonPosition:g,buttonUseIcon:h,style:v}=t,O=Object(Ie.useSelect)(e=>{var t;const{getBlockParentsByBlockName:n,wasBlockJustInserted:o}=e(Ee.store);return!(null===(t=n(a,"core/navigation"))||void 0===t||!t.length)&&o(a)},[a]),{__unstableMarkNextChangeAsNotPersistent:j}=Object(Ie.useDispatch)(Ee.store);Object(ye.useEffect)(()=>{O&&(j(),n({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[O]);const y=null==v||null===(l=v.border)||void 0===l?void 0:l.radius,f=null==v||null===(c=v.border)||void 0===c?void 0:c.color,_=Object(Ee.__experimentalUseBorderProps)(t);"number"==typeof y&&(_.style.borderRadius=y+"px");const k=Object(Ee.__experimentalUseColorProps)(t),w="wp-block-search__width-"+Object(nt.useInstanceId)(Ee.__experimentalUnitControl),E="button-inside"===g,C="button-outside"===g,x="no-button"===g,S="button-only"===g,B=Object(ke.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}}),T=[{role:"menuitemradio",title:Object(we.__)("Button outside"),isActive:"button-outside"===g,icon:Mm,onClick:()=>{n({buttonPosition:"button-outside"})}},{role:"menuitemradio",title:Object(we.__)("Button inside"),isActive:"button-inside"===g,icon:Rm,onClick:()=>{n({buttonPosition:"button-inside"})}},{role:"menuitemradio",title:Object(we.__)("No button"),isActive:"no-button"===g,icon:Lm,onClick:()=>{n({buttonPosition:"no-button"})}}],N=()=>{const e=tt()("wp-block-search__input",E?void 0:_.className),t=E?{borderRadius:y}:_.style;return Object(ye.createElement)("input",{className:e,style:t,"aria-label":Object(we.__)("Optional placeholder text"),placeholder:u?void 0:Object(we.__)("Optional placeholder"),value:u,onChange:e=>n({placeholder:e.target.value})})},P=()=>{const e=tt()("wp-block-search__button",k.className,E?void 0:_.className,h?"has-icon":void 0),t={...k.style,...E?{borderRadius:y}:_.style};return Object(ye.createElement)(ye.Fragment,null,h&&Object(ye.createElement)("button",{type:"button",className:e,style:t},Object(ye.createElement)(tc.a,{icon:ac.a})),!h&&Object(ye.createElement)(Ee.RichText,{className:e,style:t,"aria-label":Object(we.__)("Button text"),placeholder:Object(we.__)("Add button text"),withoutInteractiveFormatting:!0,value:p,onChange:e=>n({buttonText:e})}))},z=Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,null,Object(ye.createElement)(ke.ToolbarButton,{title:Object(we.__)("Toggle search label"),icon:Am,onClick:()=>{n({showLabel:!s})},className:s?"is-pressed":void 0}),Object(ye.createElement)(ke.ToolbarDropdownMenu,{icon:(()=>{switch(g){case"button-inside":return Rm;case"button-outside":return Mm;case"no-button":return Lm;case"button-only":return Im}})(),label:Object(we.__)("Change button position"),controls:T}),!x&&Object(ye.createElement)(ke.ToolbarButton,{title:Object(we.__)("Use button with icon"),icon:Vm,onClick:()=>{n({buttonUseIcon:!h})},className:h?"is-pressed":void 0}))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Display Settings")},Object(ye.createElement)(ke.BaseControl,{label:Object(we.__)("Width"),id:w},Object(ye.createElement)(Ee.__experimentalUnitControl,{id:w,min:"220px",onChange:e=>{const t="%"===d&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${m}${d}`,unit:d,units:B}),Object(ye.createElement)(ke.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(we.__)("Percentage Width")},[25,50,75,100].map(e=>Object(ye.createElement)(ke.Button,{key:e,isSmall:!0,variant:e+"%"==`${m}${d}`?"primary":void 0,onClick:()=>n({width:e,widthUnit:"%"})},e,"%"))))))),I=e=>e?`calc(${e} + 4px)`:void 0,M=Object(Ee.useBlockProps)({className:tt()(e,E?void 0:_.className,E?"wp-block-search__button-inside":void 0,C?"wp-block-search__button-outside":void 0,x?"wp-block-search__no-button":void 0,S?"wp-block-search__button-only":void 0,h||x?void 0:"wp-block-search__text-button",h&&!x?"wp-block-search__icon-button":void 0)});return Object(ye.createElement)("div",M,z,s&&Object(ye.createElement)(Ee.RichText,{className:"wp-block-search__label","aria-label":Object(we.__)("Label text"),placeholder:Object(we.__)("Add label"),withoutInteractiveFormatting:!0,value:i,onChange:e=>n({label:e})}),Object(ye.createElement)(ke.ResizableBox,{size:{width:`${m}${d}`},className:tt()("wp-block-search__inside-wrapper",E?_.className:void 0),style:(()=>{const e={borderColor:f},t=0!==parseInt(y,10);if(E&&t){if("object"==typeof y){const{topLeft:t,topRight:n,bottomLeft:o,bottomRight:r}=y;return{borderTopLeftRadius:I(t),borderTopRightRadius:I(n),borderBottomLeftRadius:I(o),borderBottomRightRadius:I(r),...e}}const t=Number.isInteger(y)?y+"px":y;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:S?{}:{right:"right"!==b,left:"right"===b},onResizeStart:(e,t,r)=>{n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(e,t,r,a)=>{n({width:parseInt(m+a.width,10)}),o(!0)},showHandle:r},(E||C)&&Object(ye.createElement)(ye.Fragment,null,N(),P()),S&&P(),x&&N()))}};var qm=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"}));var Um=({color:e,setColor:t})=>Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(Ee.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(we.__)("Color"),colorSettings:[{value:e.color,onChange:t,label:Object(we.__)("Color")}]}));var Wm=Object(Ee.withColors)("color",{textColor:"color"})((function({color:e,setColor:t,className:n}){return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.HorizontalRule,Object(Ee.useBlockProps)({className:tt()(n,{"has-background":e.color,[e.class]:e.class}),style:{backgroundColor:e.color,color:e.color}})),Object(ye.createElement)(Um,{color:e,setColor:t}))}));var $m={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>Object(je.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const Zm={apiVersion:2,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Km}=Zm,Jm={icon:qm,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:$m,edit:Wm,save:function({attributes:e}){const{color:t,customColor:n}=e,o=Object(Ee.getColorClassName)("background-color",t),r=Object(Ee.getColorClassName)("color",t),a=tt()({"has-text-color has-background":t||n,[o]:o,[r]:r}),l={backgroundColor:o?void 0:n,color:r?void 0:n};return Object(ye.createElement)("hr",Ee.useBlockProps.save({className:a,style:l}))}};var Qm=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));var Ym=n("UuzZ");var Xm={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>Object(Ym.removep)(Object(Ym.autop)(t))}},priority:20}]};const ed={apiVersion:2,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:td}=ed,nd={icon:Qm,transforms:Xm,edit:function e({attributes:t,setAttributes:n}){const o="blocks-shortcode-input-"+Object(nt.useInstanceId)(e);return Object(ye.createElement)("div",Object(Ee.useBlockProps)({className:"components-placeholder"}),Object(ye.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(ye.createElement)(tc.a,{icon:Qm}),Object(we.__)("Shortcode")),Object(ye.createElement)(Ee.PlainText,{className:"blocks-shortcode__textarea",id:o,value:t.text,"aria-label":Object(we.__)("Shortcode text"),placeholder:Object(we.__)("Write shortcode here"),onChange:e=>n({text:e})}))},save:function({attributes:e}){return Object(ye.createElement)(ye.RawHTML,null,e.text)}};var od=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const rd=["image"],ad=({alt:e,attributes:{align:t,width:n,height:o,isLink:r,linkTarget:a},containerRef:l,isSelected:c,setAttributes:i,setLogo:s,logoUrl:u,siteUrl:m,logoId:d})=>{const b=Sa(l,[t]),p=Object(nt.useViewportMatch)("medium"),g=!Object(Re.includes)(["wide","full"],t)&&p,[{naturalWidth:h,naturalHeight:v},O]=Object(ye.useState)({}),[j,y]=Object(ye.useState)(!1),{toggleSelection:f}=Object(Ie.useDispatch)(Ee.store),_=tt()("custom-logo-link",{"is-transient":Object(ze.isBlobURL)(u)}),{imageEditing:k,maxWidth:w,title:E}=Object(Ie.useSelect)(e=>{const{getSettings:t}=e(Ee.store);return{title:e(It.store).getEditedEntityRecord("root","site").title,...Object(Re.pick)(t(),["imageEditing","maxWidth"])}},[]);Object(ye.useEffect)(()=>{c||y(!1)},[c]);const C=Object(ye.createElement)("img",{className:"custom-logo",src:u,alt:e,onLoad:e=>{O(Object(Re.pick)(e.target,["naturalWidth","naturalHeight"]))}});let x,S=C;if(r&&(S=Object(ye.createElement)("a",{href:m,className:_,rel:"home",title:E,onClick:e=>e.preventDefault()},C)),b&&h&&v){x=h>b?b:h}if(!g||!x)return Object(ye.createElement)("div",{style:{width:n,height:o}},S);const B=n||x,T=h/v,N=B/T,P=h<v?20:20*T,z=v<h?20:20/T,I=2.5*w;let M=!1,R=!1;"center"===t?(M=!0,R=!0):Object(we.isRTL)()?"left"===t?M=!0:R=!0:"right"===t?R=!0:M=!0;const L=d&&h&&v&&k,V=L&&j?Object(ye.createElement)(Ee.__experimentalImageEditingProvider,{id:d,url:u,naturalWidth:h,naturalHeight:v,clientWidth:b,onSaveImage:e=>{s(e.id)},isEditing:j,onFinishEditing:()=>y(!1)},Object(ye.createElement)(Ee.__experimentalImageEditor,{url:u,width:B,height:N,clientWidth:b,naturalHeight:v,naturalWidth:h})):Object(ye.createElement)(ke.ResizableBox,{size:{width:B,height:N},showHandle:c,minWidth:P,maxWidth:I,minHeight:z,maxHeight:I/T,lockAspectRatio:!0,enable:{top:!1,right:M,bottom:!0,left:R},onResizeStart:function(){f(!1)},onResizeStop:(e,t,n,o)=>{f(!0),i({width:parseInt(B+o.width,10),height:parseInt(N+o.height,10)})}},S);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Settings")},Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Image width"),onChange:e=>i({width:e}),min:P,max:I,initialPosition:Math.min(120,I),value:n||"",disabled:!g}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Link image to home"),onChange:()=>i({isLink:!r}),checked:r}),r&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Open in new tab"),onChange:e=>i({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})))),Object(ye.createElement)(Ee.BlockControls,{group:"block"},L&&!j&&Object(ye.createElement)(ke.ToolbarButton,{onClick:()=>y(!0),icon:Ea,label:Object(we.__)("Crop")})),V)};const ld={apiVersion:2,name:"core/site-logo",title:"Site Logo",category:"layout",description:"Display a graphic to represent this site. Update the block, and the changes apply everywhere its used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",textdomain:"default",attributes:{align:{type:"string"},width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500,attributes:{width:350}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img",text:!1,background:!1}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:cd}=ld,id={icon:od,edit:function({attributes:e,className:t,setAttributes:n,isSelected:o}){const{width:r}=e,[a,l]=Object(ye.useState)(),c=Object(ye.useRef)(),{siteLogoId:i,canUserEdit:s,url:u,mediaItemData:m,isRequestingMediaItem:d}=Object(Ie.useSelect)(e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(It.store),r=o("root","site"),a=n("root","__unstableBase"),l=null==r?void 0:r.site_logo,c=null==a?void 0:a.site_logo,i=t("update","settings"),s=i?l:c,u=s&&e(It.store).getMedia(s,{context:"view"}),m=s&&!e(It.store).hasFinishedResolution("getMedia",[s,{context:"view"}]);return{siteLogoId:s,canUserEdit:i,url:null==a?void 0:a.url,mediaItemData:u&&{id:u.id,url:u.source_url,alt:u.alt_text},isRequestingMediaItem:m}},[]),{editEntityRecord:b}=Object(Ie.useDispatch)(It.store),p=e=>b("root","site",void 0,{site_logo:e});let g=null;m&&(g=m.alt,a!==m.url&&l(m.url));const h=e=>{if(e)return!e.id&&e.url?(p(void 0),void l(e.url)):void p(e.id)},{createErrorNotice:v}=Object(Ie.useDispatch)(Ho.store),O=e=>{v(e[2],{type:"snackbar"})},j=s&&a&&Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaURL:a,allowedTypes:rd,accept:"image/*",onSelect:h,onError:O},Object(ye.createElement)(ke.MenuItem,{onClick:()=>{p(null),l(void 0)}},Object(we.__)("Reset"))));let y;const f=void 0===i||d;f&&(y=Object(ye.createElement)(ke.Spinner,null)),a&&(y=Object(ye.createElement)(ad,{alt:g,attributes:e,className:t,containerRef:c,isSelected:o,setAttributes:n,logoUrl:a,setLogo:p,logoId:(null==m?void 0:m.id)||i,siteUrl:u}));const _=tt()(t,{"is-default-size":!r}),k=Object(Ee.useBlockProps)({ref:c,className:_}),w=Object(we.__)("Add a site logo");return Object(ye.createElement)("div",k,j,!!a&&y,!a&&!s&&Object(ye.createElement)(ke.Placeholder,{className:"site-logo_placeholder"},f&&Object(ye.createElement)("span",{className:"components-placeholder__preview"},Object(ye.createElement)(ke.Spinner,null))),!a&&s&&Object(ye.createElement)(Ee.MediaPlaceholder,{onSelect:h,accept:"image/*",allowedTypes:rd,onError:O,placeholder:e=>{const n=tt()("block-editor-media-placeholder",t);return Object(ye.createElement)(ke.Placeholder,{className:n,preview:y},Object(ye.createElement)(fe.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},Object(ye.createElement)(fe.Path,{vectorEffect:"non-scaling-stroke",d:"m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5"})),e)},mediaLibraryButton:({open:e})=>Object(ye.createElement)(ke.Button,{icon:Ca.a,variant:"primary",label:w,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}))}};var sd=Object(ye.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(ye.createElement)(ke.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(ye.createElement)(ke.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"}));var ud=[{attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}}];const md={apiVersion:2,name:"core/site-tagline",title:"Site Tagline",category:"design",description:"Describe in a few words what the website is about. The tagline can be used in search results or when sharing on social networks even if it's not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:dd}=md,bd={icon:sd,edit:function({attributes:e,setAttributes:t}){const{textAlign:n}=e,[o,r]=Object(It.useEntityProp)("root","site","description"),{canUserEdit:a,readOnlySiteTagLine:l}=Object(Ie.useSelect)(e=>{const{canUser:t,getEntityRecord:n}=e(It.store),o=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlySiteTagLine:null==o?void 0:o.description}},[]),c=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+n]:n,"wp-block-site-tagline__placeholder":!a&&!l})}),i=a?Object(ye.createElement)(Ee.RichText,Object(mt.a)({allowedFormats:[],onChange:r,"aria-label":Object(we.__)("Site tagline text"),placeholder:Object(we.__)("Write site tagline"),tagName:"p",value:o},c)):Object(ye.createElement)("p",c,l||Object(we.__)("Site Tagline placeholder"));return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{onChange:e=>t({textAlign:e}),value:n})),i)},deprecated:ud};var pd=Object(ye.createElement)(fe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),gd=n("rmEH");function hd({level:e,isPressed:t=!1}){if(0===e)return Li;return Object(ye.createElement)(ke.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},Object(ye.createElement)(ke.Path,{d:{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"}[e]}))}function vd({level:e,onChange:t}){const n=[1,2,3,4,5,6,0].map(n=>{const o=n===e;return{icon:Object(ye.createElement)(hd,{level:n,isPressed:o}),title:0===n?Object(we.__)("Paragraph"):Object(we.sprintf)(Object(we.__)("Heading %d"),n),isActive:o,onClick:()=>t(n)}});return Object(ye.createElement)(ke.ToolbarDropdownMenu,{label:Object(we.__)("Change heading level"),icon:Object(ye.createElement)(hd,{level:e}),controls:n})}var Od=[{attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}}];const jd={apiVersion:2,name:"core/site-title",title:"Site Title",category:"design",description:"Displays the name of this site. Update the block, and the changes apply everywhere its used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor"},{name:yd}=jd,fd={icon:pd,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{level:o,textAlign:r,isLink:a,linkTarget:l}=e,[c,i]=Object(It.useEntityProp)("root","site","title"),{canUserEdit:s,readOnlyTitle:u}=Object(Ie.useSelect)(e=>{const{canUser:t,getEntityRecord:n}=e(It.store),o=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlyTitle:Object(gd.decodeEntities)(null==o?void 0:o.name)}},[]),m=0===o?"p":"h"+o,d=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+r]:r,"wp-block-site-title__placeholder":!s&&!u})}),b=s?Object(ye.createElement)(m,d,Object(ye.createElement)(Ee.RichText,{tagName:a?"a":"span",href:a?"#site-title-pseudo-link":void 0,"aria-label":Object(we.__)("Site title text"),placeholder:Object(we.__)("Write site title"),value:c,onChange:i,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n(Object(je.createBlock)(Object(je.getDefaultBlockName)()))})):Object(ye.createElement)(m,d,a?Object(ye.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},u||Object(we.__)("Site Title placeholder")):Object(ye.createElement)("span",null,c||u));return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(vd,{level:o,onChange:e=>t({level:e})}),Object(ye.createElement)(Ee.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Make title link to home"),onChange:()=>t({isLink:!a}),checked:a}),a&&Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l}))),b)},deprecated:Od};var _d=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),kd=n("btIw");const wd=()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"})),Ed=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.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"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:wd},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},Object(ye.createElement)(fe.Circle,{cx:"363",cy:"205",r:"205"}),Object(ye.createElement)(fe.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},Object(ye.createElement)(fe.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},Object(ye.createElement)(fe.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>Object(ye.createElement)(fe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(ye.createElement)(fe.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"}))}];Ed.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)});var Cd=Ed;const xd=({url:e,setAttributes:t,setPopover:n,anchorRef:o})=>Object(ye.createElement)(Ee.URLPopover,{anchorRef:null==o?void 0:o.current,onClose:()=>n(!1)},Object(ye.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),n(!1)}},Object(ye.createElement)("div",{className:"block-editor-url-input"},Object(ye.createElement)(Ee.URLInput,{value:e,onChange:e=>t({url:e}),placeholder:Object(we.__)("Enter address"),disableSuggestions:!0})),Object(ye.createElement)(ke.Button,{icon:kd.a,label:Object(we.__)("Apply"),type:"submit"})));var Sd=({attributes:e,context:t,isSelected:n,setAttributes:o})=>{const{url:r,service:a,label:l}=e,{iconColorValue:c,iconBackgroundColorValue:i}=t,[s,u]=Object(ye.useState)(!1),m=tt()("wp-social-link","wp-social-link-"+a,{"wp-social-link__is-incomplete":!r}),d=Object(ye.useRef)(),b=(e=>{const t=Object(Re.find)(Cd,{name:e});return t?t.icon:wd})(a),p=(e=>{const t=Object(Re.find)(Cd,{name:e});return t?t.title:Object(we.__)("Social Icon")})(a),g=Object(Ee.useBlockProps)({className:m,style:{color:c,backgroundColor:i}});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.sprintf)(Object(we.__)("%s label"),p),initialOpen:!1},Object(ye.createElement)(ke.PanelRow,null,Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Link label"),help:Object(we.__)("Briefly describe the link to help screen reader users."),value:l,onChange:e=>o({label:e})})))),Object(ye.createElement)("li",g,Object(ye.createElement)(ke.Button,{ref:d,onClick:()=>u(!0)},Object(ye.createElement)(b,null),n&&s&&Object(ye.createElement)(xd,{url:r,setAttributes:o,setPopover:u,anchorRef:d}))))};const Bd={apiVersion:2,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or website.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab","iconColorValue","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:Td}=Bd,Nd={icon:_d,edit:Sd,variations:Cd},Pd=e=>{var t,n;if(e.layout)return e;const{className:o}=e,r=new RegExp("\\bitems-justified-[^ ]*[ ]?\\b","g"),a={...e,className:null==o?void 0:o.replace(r,"").trim()},l=null==o||null===(t=o.match(r))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.trim();return l&&Object.assign(a,{layout:{type:"flex",justifyContent:l.slice("items-justified-".length)}}),a};var zd=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0},isEligible:({layout:e})=>!e,migrate:Pd,save(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:o,size:r}}=e,a=tt()(r,{"has-icon-color":n,"has-icon-background-color":t,["items-justified-"+o]:o});return Object(ye.createElement)("ul",Ee.useBlockProps.save({className:a}),Object(ye.createElement)(Ee.InnerBlocks.Content,null))}},{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:Pd,save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:o,size:r}}=e,a=tt()(r,{"has-icon-color":n,"has-icon-background-color":t,["items-justified-"+o]:o}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return Object(ye.createElement)("ul",Ee.useBlockProps.save({className:a,style:l}),Object(ye.createElement)(Ee.InnerBlocks.Content,null))}}],Id=n("RMJe");const Md=["core/social-link"],Rd=[{name:Object(we.__)("Small"),value:"has-small-icon-size"},{name:Object(we.__)("Normal"),value:"has-normal-icon-size"},{name:Object(we.__)("Large"),value:"has-large-icon-size"},{name:Object(we.__)("Huge"),value:"has-huge-icon-size"}];var Ld=Object(Ee.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{name:n,attributes:o,iconBackgroundColor:r,iconColor:a,isSelected:l,setAttributes:c,setIconBackgroundColor:i,setIconColor:s}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:d,size:b,layout:p}=o,g=p||(e=>{const t=Object(je.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(n),h=(null===(t=o.className)||void 0===t?void 0:t.indexOf("is-style-logos-only"))>=0;Object(ye.useEffect)(()=>{h&&c({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})},[h,c]);const v=Object(ye.createElement)("li",{className:"wp-block-social-links__social-placeholder"},Object(ye.createElement)("div",{className:"wp-social-link"}),Object(ye.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},Object(ye.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),Object(ye.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),Object(ye.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),O=Object(ye.createElement)("li",{className:"wp-block-social-links__social-prompt"},Object(we.__)("Click plus to add")),j=tt()(b,{"has-icon-color":a.color||m,"has-icon-background-color":r.color||u}),y=Object(Ee.useBlockProps)({className:j}),f=Object(Ee.useInnerBlocksProps)(y,{allowedBlocks:Md,placeholder:l?O:v,templateLock:!1,__experimentalAppenderTagName:"li",__experimentalLayout:g});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(ke.ToolbarDropdownMenu,{label:Object(we.__)("Size"),text:Object(we.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},({onClose:e})=>Object(ye.createElement)(ke.MenuGroup,null,Rd.map(t=>Object(ye.createElement)(ke.MenuItem,{icon:(b===t.value||!b&&"has-normal-icon-size"===t.value)&&Id.a,isSelected:b===t.value,key:t.value,onClick:()=>{c({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Link settings")},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Open links in new tab"),checked:d,onChange:()=>c({openInNewTab:!d})})),Object(ye.createElement)(Ee.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(we.__)("Color"),colorSettings:[{value:a.color||m,onChange:e=>{s(e),c({iconColorValue:e})},label:Object(we.__)("Icon color")},!h&&{value:r.color||u,onChange:e=>{i(e),c({iconBackgroundColorValue:e})},label:Object(we.__)("Icon background color")}]}),!h&&Object(ye.createElement)(Ee.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})),Object(ye.createElement)("ul",f))}));const Vd={apiVersion:2,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or websites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",iconColorValue:"iconColorValue",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},spacing:{blockGap:!0,margin:["top","bottom"],units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Ad}=Vd,Hd={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:_d,edit:Ld,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,size:o}}=e,r=tt()(o,{"has-icon-color":n,"has-icon-background-color":t}),a=Ee.useBlockProps.save({className:r}),l=Ee.useInnerBlocksProps.save(a);return Object(ye.createElement)("ul",l)},deprecated:zd};var Fd=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"}));var Dd=Object(nt.compose)([Object(Ie.withDispatch)(e=>{const{toggleSelection:t}=e(Ee.store);return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}),nt.withInstanceId])(({attributes:e,isSelected:t,setAttributes:n,onResizeStart:o,onResizeStop:r,context:a})=>{const{orientation:l}=a,[c,i]=Object(ye.useState)(!1),{height:s,width:u}=e,m=e=>{n({height:e})},d=e=>{n({width:e})},b=(...e)=>{o(...e),i(!0)},p=(e,t,n,o)=>{r();const a=Math.min(parseInt(s+o.height,10),500);m(a),i(!1)},g=(e,t,n,o)=>{r();const a=Math.min(parseInt(u+o.width,10),500);d(a),i(!1)};return Object(ye.useEffect)(()=>{"horizontal"!==l||u||(d(72),m(0))},[]),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(fe.View,Object(Ee.useBlockProps)(),"horizontal"===l?Object(ye.createElement)(ke.ResizableBox,{className:tt()("block-library-spacer__resize-container","resize-horizontal",{"is-selected":t}),size:{width:u,height:24},minWidth:1,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:b,onResizeStop:g,showHandle:t,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"x",position:"corner",isVisible:c}}):Object(ye.createElement)(ke.ResizableBox,{className:tt()("block-library-spacer__resize-container",{"is-selected":t}),size:{height:s},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:b,onResizeStop:p,showHandle:t,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:c}})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Spacer settings")},"horizontal"===l&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Width in pixels"),min:1,max:Math.max(500,u),value:u,onChange:d}),"horizontal"!==l&&Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Height in pixels"),min:1,max:Math.max(500,s),value:s,onChange:m}))))});const Gd={apiVersion:2,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"number",default:100},width:{type:"number"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:qd}=Gd,Ud={icon:Fd,edit:Dd,save:function({attributes:e}){return Object(ye.createElement)("div",Ee.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0}))}};var Wd=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));const $d={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"};var Zd=[{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"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:n,body:o,foot:r,backgroundColor:a,caption:l}=e;if(!n.length&&!o.length&&!r.length)return null;const c=Object(Ee.getColorClassName)("background-color",a),i=tt()(c,{"has-fixed-layout":t,"has-background":!!c}),s=!Ee.RichText.isEmpty(l),u=({type:e,rows:t})=>{if(!t.length)return null;const n="t"+e;return Object(ye.createElement)(n,null,t.map(({cells:e},t)=>Object(ye.createElement)("tr",{key:t},e.map(({content:e,tag:t,scope:n,align:o},r)=>{const a=tt()({["has-text-align-"+o]:o});return Object(ye.createElement)(Ee.RichText.Content,{className:a||void 0,"data-align":o,tagName:t,value:e,key:r,scope:"th"===t?n:void 0})}))))};return Object(ye.createElement)("figure",Ee.useBlockProps.save(),Object(ye.createElement)("table",{className:""===i?void 0:i},Object(ye.createElement)(u,{type:"head",rows:n}),Object(ye.createElement)(u,{type:"body",rows:o}),Object(ye.createElement)(u,{type:"foot",rows:r})),s&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:l}))},isEligible:e=>e.backgroundColor&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:$d[e.backgroundColor]}}})},{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({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:r,backgroundColor:a}=e;if(!n.length&&!o.length&&!r.length)return null;const l=Object(Ee.getColorClassName)("background-color",a),c=tt()(l,{"has-fixed-layout":t,"has-background":!!l}),i=({type:e,rows:t})=>{if(!t.length)return null;const n="t"+e;return Object(ye.createElement)(n,null,t.map(({cells:e},t)=>Object(ye.createElement)("tr",{key:t},e.map(({content:e,tag:t,scope:n},o)=>Object(ye.createElement)(Ee.RichText.Content,{tagName:t,value:e,key:o,scope:"th"===t?n:void 0})))))};return Object(ye.createElement)("table",{className:c},Object(ye.createElement)(i,{type:"head",rows:n}),Object(ye.createElement)(i,{type:"body",rows:o}),Object(ye.createElement)(i,{type:"foot",rows:r}))}}],Kd=n("fPbg"),Jd=n("plpT"),Qd=n("ziDm");var Yd=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));var Xd=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));var eb=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));var tb=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));var nb=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));var ob=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ye.createElement)(fe.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));var rb=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const ab=["align"];function lb(e,t,n){if(!t)return e;const o=Object(Re.pick)(e,["head","body","foot"]),{sectionName:r,rowIndex:a}=t;return Object(Re.mapValues)(o,(e,o)=>r&&r!==o?e:e.map((e,r)=>a&&a!==r?e:{cells:e.cells.map((e,a)=>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:o,columnIndex:a,rowIndex:r},t)?n(e):e)}))}function cb(e,{sectionName:t,rowIndex:n,columnCount:o}){const r=function(e){return sb(e.head)?sb(e.body)?sb(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Re.get)(r,["cells","length"]):o;return a?{[t]:[...e[t].slice(0,n),{cells:Object(Re.times)(a,e=>{const n=Object(Re.get)(r,["cells",e],{});return{...Object(Re.pick)(n,ab),content:"",tag:"head"===t?"th":"td"}})},...e[t].slice(n)]}:e}function ib(e,t){if(!sb(e[t]))return{[t]:[]};return cb(e,{sectionName:t,rowIndex:0,columnCount:Object(Re.get)(e,["body",0,"cells","length"],1)})}function sb(e){return!e||!e.length||Object(Re.every)(e,ub)}function ub(e){return!(e.cells&&e.cells.length)}const mb=[{icon:Kd.a,title:Object(we.__)("Align column left"),align:"left"},{icon:Jd.a,title:Object(we.__)("Align column center"),align:"center"},{icon:Qd.a,title:Object(we.__)("Align column right"),align:"right"}],db={head:Object(we.__)("Header cell text"),body:Object(we.__)("Body cell text"),foot:Object(we.__)("Footer cell text")},bb={head:Object(we.__)("Header label"),foot:Object(we.__)("Footer label")};function pb({name:e,...t}){const n="t"+e;return Object(ye.createElement)(n,t)}var gb=function({attributes:e,setAttributes:t,insertBlocksAfter:n,isSelected:o}){const{hasFixedLayout:r,caption:a,head:l,foot:c}=e,[i,s]=Object(ye.useState)(2),[u,m]=Object(ye.useState)(2),[d,b]=Object(ye.useState)(),p=Object(Ee.__experimentalUseColorProps)(e),g=Object(Ee.__experimentalUseBorderProps)(e);function h(n){d&&t(lb(e,d,e=>({...e,content:n})))}function v(n){if(!d)return;const{sectionName:o,rowIndex:r}=d,a=r+n;t(cb(e,{sectionName:o,rowIndex:a})),b({sectionName:o,rowIndex:a,columnIndex:0,type:"cell"})}function O(n=0){if(!d)return;const{columnIndex:o}=d,r=o+n;t(function(e,{columnIndex:t}){const n=Object(Re.pick)(e,["head","body","foot"]);return Object(Re.mapValues)(n,(e,n)=>sb(e)?e:e.map(e=>ub(e)||e.cells.length<t?e:{cells:[...e.cells.slice(0,t),{content:"",tag:"head"===n?"th":"td"},...e.cells.slice(t)]}))}(e,{columnIndex:r})),b({rowIndex:0,columnIndex:r,type:"cell"})}Object(ye.useEffect)(()=>{o||b()},[o]);const j=["head","body","foot"].filter(t=>!sb(e[t])),y=[{icon:Yd,title:Object(we.__)("Insert row before"),isDisabled:!d,onClick:function(){v(0)}},{icon:Xd,title:Object(we.__)("Insert row after"),isDisabled:!d,onClick:function(){v(1)}},{icon:eb,title:Object(we.__)("Delete row"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:n,rowIndex:o}=d;b(),t(function(e,{sectionName:t,rowIndex:n}){return{[t]:e[t].filter((e,t)=>t!==n)}}(e,{sectionName:n,rowIndex:o}))}},{icon:tb,title:Object(we.__)("Insert column before"),isDisabled:!d,onClick:function(){O(0)}},{icon:nb,title:Object(we.__)("Insert column after"),isDisabled:!d,onClick:function(){O(1)}},{icon:ob,title:Object(we.__)("Delete column"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:n,columnIndex:o}=d;b(),t(function(e,{columnIndex:t}){const n=Object(Re.pick)(e,["head","body","foot"]);return Object(Re.mapValues)(n,e=>sb(e)?e:e.map(e=>({cells:e.cells.length>=t?e.cells.filter((e,n)=>n!==t):e.cells})).filter(e=>e.cells.length))}(e,{sectionName:n,columnIndex:o}))}}],f=["head","body","foot"].map(t=>Object(ye.createElement)(pb,{name:t,key:t},e[t].map(({cells:e},n)=>Object(ye.createElement)("tr",{key:n},e.map(({content:e,tag:o,scope:r,align:a},l)=>Object(ye.createElement)(Ee.RichText,{tagName:o,key:l,className:tt()({["has-text-align-"+a]:a},"wp-block-table__cell-content"),scope:"th"===o?r:void 0,value:e,onChange:h,unstableOnFocus:()=>{b({sectionName:t,rowIndex:n,columnIndex:l,type:"cell"})},"aria-label":db[t],placeholder:bb[t]})))))),_=!j.length;return Object(ye.createElement)("figure",Object(Ee.useBlockProps)(),!_&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{label:Object(we.__)("Change column alignment"),alignmentControls:mb,value:function(){if(d)return function(e,t,n){const{sectionName:o,rowIndex:r,columnIndex:a}=t;return Object(Re.get)(e,[o,r,"cells",a,n])}(e,d,"align")}(),onChange:n=>function(n){if(!d)return;const o={type:"column",columnIndex:d.columnIndex},r=lb(e,o,e=>({...e,align:n}));t(r)}(n)})),Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(ke.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:rb,label:Object(we.__)("Edit table"),controls:y}))),!_&&Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Table settings"),className:"blocks-table-settings"},Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Fixed width table cells"),checked:!!r,onChange:function(){t({hasFixedLayout:!r})}}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Header section"),checked:!(!l||!l.length),onChange:function(){t(ib(e,"head"))}}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Footer section"),checked:!(!c||!c.length),onChange:function(){t(ib(e,"foot"))}}))),!_&&Object(ye.createElement)("table",{className:tt()(p.className,g.className,{"has-fixed-layout":r}),style:{...p.style,...g.style}},f),!_&&Object(ye.createElement)(Ee.RichText,{tagName:"figcaption","aria-label":Object(we.__)("Table caption text"),placeholder:Object(we.__)("Add caption"),value:a,onChange:e=>t({caption:e}),unstableOnFocus:()=>b(),__unstableOnSplitAtEnd:()=>n(Object(je.createBlock)("core/paragraph"))}),_&&Object(ye.createElement)(ke.Placeholder,{label:Object(we.__)("Table"),icon:Object(ye.createElement)(Ee.BlockIcon,{icon:Wd,showColors:!0}),instructions:Object(we.__)("Insert a table for sharing data.")},Object(ye.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Object(Re.times)(e,()=>({cells:Object(Re.times)(t,()=>({content:"",tag:"td"}))}))}}({rowCount:parseInt(i,10)||2,columnCount:parseInt(u,10)||2}))}},Object(ye.createElement)(ke.TextControl,{type:"number",label:Object(we.__)("Column count"),value:u,onChange:function(e){m(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(ye.createElement)(ke.TextControl,{type:"number",label:Object(we.__)("Row count"),value:i,onChange:function(e){s(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(ye.createElement)(ke.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},Object(we.__)("Create Table")))))};const hb=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope"]},td:{allowEmpty:!0,children:e}}}});var vb={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:hb(e)},tfoot:{allowEmpty:!0,children:hb(e)},tbody:{allowEmpty:!0,children:hb(e)}}}})}]};const Ob={apiVersion:2,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},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"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:jb}=Ob,yb={icon:Wd,example:{attributes:{head:[{cells:[{content:Object(we.__)("Version"),tag:"th"},{content:Object(we.__)("Jazz Musician"),tag:"th"},{content:Object(we.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(we.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(we.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(we.__)("December 6, 2018"),tag:"td"}]}]}},transforms:vb,edit:gb,save:function({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:r,caption:a}=e;if(!n.length&&!o.length&&!r.length)return null;const l=Object(Ee.__experimentalGetColorClassesAndStyles)(e),c=Object(Ee.__experimentalGetBorderClassesAndStyles)(e),i=tt()(l.className,c.className,{"has-fixed-layout":t}),s=!Ee.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const n="t"+e;return Object(ye.createElement)(n,null,t.map(({cells:e},t)=>Object(ye.createElement)("tr",{key:t},e.map(({content:e,tag:t,scope:n,align:o},r)=>{const a=tt()({["has-text-align-"+o]:o});return Object(ye.createElement)(Ee.RichText.Content,{className:a||void 0,"data-align":o,tagName:t,value:e,key:r,scope:"th"===t?n:void 0})}))))};return Object(ye.createElement)("figure",Ee.useBlockProps.save(),Object(ye.createElement)("table",{className:""===i?void 0:i,style:{...l.style,...c.style}},Object(ye.createElement)(u,{type:"head",rows:n}),Object(ye.createElement)(u,{type:"body",rows:o}),Object(ye.createElement)(u,{type:"foot",rows:r})),s&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:a}))},deprecated:Zd};var fb=Object(Ie.withSelect)(e=>({taxonomies:e(It.store).getTaxonomies({per_page:-1})}))((function({attributes:e,setAttributes:t,taxonomies:n}){const{taxonomy:o,showTagCounts:r,numberOfTags:a}=e,l=Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Tag Cloud settings")},Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Taxonomy"),options:[{label:Object(we.__)("- Select -"),value:"",disabled:!0},...Object(Re.map)(Object(Re.filter)(n,"show_cloud"),e=>({value:e.slug,label:e.name}))],value:o,onChange:e=>t({taxonomy:e})}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Show post counts"),checked:r,onChange:()=>t({showTagCounts:!r})}),Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Number of tags"),value:a,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0})));return Object(ye.createElement)(ye.Fragment,null,l,Object(ye.createElement)("div",Object(Ee.useBlockProps)(),Object(ye.createElement)(xe.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e})))}));const _b={apiVersion:2,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0},editorStyle:"wp-block-tag-cloud-editor"},{name:kb}=_b,wb={icon:Jc,example:{},edit:fb};function Eb(e){return Object(we.sprintf)(Object(we.__)("Area: %s"),e)}function Cb(){return Object(ye.createElement)("div",{className:"wp-block-template-part__selection-preview-item is-placeholder",tabIndex:0})}function xb({templatePart:e,setAttributes:t,onClose:n,composite:o}){const{slug:r,theme:a,title:{rendered:l}}=e,c=e.content.raw||"",i=Object(ye.useMemo)(()=>Object(je.parse)(c),[c]),{createSuccessNotice:s}=Object(Ie.useDispatch)(Ho.store),u=Object(ye.useCallback)(()=>{t({slug:r,theme:a,area:void 0}),s(Object(we.sprintf)(Object(we.__)('Template Part "%s" inserted.'),l||r),{type:"snackbar"}),n()},[r,a]);return Object(ye.createElement)(ke.__unstableCompositeItem,Object(mt.a)({as:"div",className:"wp-block-template-part__selection-preview-item",role:"option",onClick:u,onKeyDown:e=>{dt.ENTER!==e.keyCode&&dt.SPACE!==e.keyCode||u()},tabIndex:0,"aria-label":l||r},o),Object(ye.createElement)(Ee.BlockPreview,{blocks:i}),Object(ye.createElement)("div",{className:"wp-block-template-part__selection-preview-item-title"},l||r))}function Sb({title:e,icon:t,children:n}){return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)("div",{className:"wp-block-template-part__selection-panel-group-header"},Object(ye.createElement)("span",{className:"wp-block-template-part__selection-panel-group-title"},e),Object(ye.createElement)(ke.Icon,{icon:t})),Object(ye.createElement)("div",{className:"wp-block-template-part__selection-panel-group-content"},n))}function Bb({templateParts:e,setAttributes:t,onClose:n,composite:o,area:r="uncategorized",labelsByArea:a}){const{templatePartsByArea:l,templatePartsToShow:c}=Object(ye.useMemo)(()=>{const t=e.filter(e=>"uncategorized"===r||e.area===r)||[];return{templatePartsByArea:Object.values(Object(Re.groupBy)(t,"area")),templatePartsToShow:Object(Re.flatten)(t)}},[e,r]),i=Object(nt.useAsyncList)(c);return c.length?l.map(e=>Object(ye.createElement)(Sb,{key:e[0].area,title:Eb(a[e[0].area]||a.uncategorized)},e.map(e=>i.includes(e)?Object(ye.createElement)(xb,{key:e.id,templatePart:e,setAttributes:t,onClose:n,composite:o}):Object(ye.createElement)(Cb,{key:e.id})))):Object(ye.createElement)(Sb,{title:Eb(a[r]||a.uncategorized)},Object(we.sprintf)(Object(we.__)("There is no other %s available. If you are looking for another type of template part, try searching for it using the input above."),r&&"uncategorized"!==r?a[r]||r:Object(we.__)("Template Part")))}function Tb({templateParts:e,setAttributes:t,filterValue:n,onClose:o,composite:r,labelsByArea:a}){const{filteredTPs:l,groupedResults:c}=Object(ye.useMemo)(()=>{const t=Object(Re.deburr)(n).toLowerCase(),o=e.filter(({title:{rendered:e},area:n})=>Object(Re.deburr)(e).toLowerCase().includes(t)||Object(Re.deburr)(a[n]).toLowerCase().includes(t));o.sort((e,n)=>{const o=Object(Re.deburr)(e.title.rendered).toLowerCase().indexOf(t),r=Object(Re.deburr)(n.title.rendered).toLowerCase().indexOf(t);return-1!==o&&-1!==r?o-r:-1!==o?-1:-1!==r?1:Object(Re.deburr)(a[e.area]).toLowerCase().indexOf(t)-Object(Re.deburr)(a[n.area]).toLowerCase().indexOf(t)});const r=[];for(let e=0;e<o.length;e++)0!==e&&o[e].area===o[e-1].area?r[r.length-1].push(o[e]):r.push([o[e]]);return{filteredTPs:o,groupedResults:r}},[n,e]),i=Object(nt.useAsyncList)(l);return c.map(e=>Object(ye.createElement)(Sb,{key:e[0].id,title:Eb(a[e[0].area]||a.uncategorized)},e.map(e=>i.includes(e)?Object(ye.createElement)(xb,{key:e.id,templatePart:e,setAttributes:t,onClose:o,composite:r}):Object(ye.createElement)(Cb,{key:e.id}))))}function Nb({setAttributes:e,filterValue:t,onClose:n,area:o,templatePartId:r}){const a=Object(ke.__unstableUseCompositeState)(),{templateParts:l,labelsByArea:c}=Object(Ie.useSelect)(e=>{const t=(e(It.store).getEntityRecords("postType","wp_template_part",{per_page:-1})||[]).filter(e=>yc(e.theme,e.slug)!==r),n=e("core/editor").__experimentalGetDefaultTemplatePartAreas(),o={};return n.forEach(e=>{o[e.area]=e.label}),{templateParts:t,labelsByArea:o}},[]);return l&&l.length?t?Object(ye.createElement)(ke.__unstableComposite,Object(mt.a)({},a,{role:"listbox","aria-label":Object(we.__)("List of template parts")}),Object(ye.createElement)(Tb,{templateParts:l,setAttributes:e,filterValue:t,onClose:n,composite:a,labelsByArea:c})):Object(ye.createElement)(ke.__unstableComposite,Object(mt.a)({},a,{role:"listbox","aria-label":Object(we.__)("List of template parts")}),Object(ye.createElement)(Bb,{templateParts:l,setAttributes:e,onClose:n,composite:a,area:o,labelsByArea:c})):Object(ye.createElement)(Sb,null,Object(we.__)("There are no existing template parts to select."))}function Pb({setAttributes:e,onClose:t,area:n,templatePartId:o=null}){const[r,a]=Object(ye.useState)("");return Object(ye.createElement)("div",null,Object(ye.createElement)(ke.SearchControl,{value:r,onChange:a,className:"wp-block-template-part__selection-preview-search-form"}),Object(ye.createElement)("div",{className:"wp-block-template-part__selection-preview-container"},Object(ye.createElement)(Nb,{setAttributes:e,filterValue:r,onClose:t,area:n,templatePartId:o})))}function zb({area:e,areaLabel:t,areaIcon:n,clientId:o,onCreate:r,resetPlaceholder:a}){const l=e?"core/template-part/"+e:"core/template-part",[c,i]=Object(ye.useState)(Object(we.__)("Untitled Template Part")),[s,u]=Object(ye.useState)([]),[m,d]=Object(ye.useState)(!1);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.__experimentalBlockPatternSetup,{clientId:o,startBlankComponent:Object(ye.createElement)(Ib,{setTitleStep:d,areaLabel:t,areaIcon:n}),onBlockPatternSelect:e=>{u(e),d(!0)},filterPatternsFn:e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>e===l)}}),m&&Object(ye.createElement)(ke.Modal,{title:Object(we.sprintf)(Object(we.__)("Name and create your new %s"),t.toLowerCase()),closeLabel:Object(we.__)("Cancel"),onRequestClose:a,overlayClassName:"wp-block-template-part__placeholder-create-new__title-form"},Object(ye.createElement)("form",{onSubmit:e=>{e.preventDefault(),r(s,c)}},Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Name"),value:c,onChange:i}),Object(ye.createElement)(ke.Flex,{className:"wp-block-template-part__placeholder-create-new__title-form-actions",justify:"flex-end"},Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.Button,{variant:"secondary",onClick:a},Object(we.__)("Cancel"))),Object(ye.createElement)(ke.FlexItem,null,Object(ye.createElement)(ke.Button,{variant:"primary",type:"submit",disabled:!c.length,"aria-disabled":!c.length},Object(we.__)("Create")))))))}function Ib({setTitleStep:e,areaLabel:t,areaIcon:n}){return Object(ye.useEffect)(()=>{e(!0)},[]),Object(ye.createElement)(ke.Placeholder,{label:t,icon:n,instructions:Object(we.sprintf)(Object(we.__)("Creating your new %s"),t.toLowerCase())})}const Mb=1,Rb=2;function Lb({area:e,clientId:t,setAttributes:n,enableSelection:o,hasResolvedReplacements:r}){const{saveEntityRecord:a}=Object(Ie.useDispatch)(It.store),[l,c]=Object(ye.useState)(Mb),{areaIcon:i,areaLabel:s}=Object(Ie.useSelect)(t=>{const n=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),o=Object(Re.find)(n,{area:e}),r=Object(Re.find)(n,{area:"uncategorized"});return{areaIcon:(null==o?void 0:o.icon)||(null==r?void 0:r.icon),areaLabel:(null==o?void 0:o.label)||Object(we.__)("Template Part")}},[e]),u=Object(ye.useCallback)(async(t=[],o=Object(we.__)("Untitled Template Part"))=>{const r={title:o,slug:"template-part",content:Object(je.serialize)(t),area:e},l=await a("postType","wp_template_part",r);n({slug:l.slug,theme:l.theme,area:void 0})},[n,e]);return Object(ye.createElement)(ye.Fragment,null,l===Mb&&Object(ye.createElement)(ke.Placeholder,{icon:i,label:s,instructions:o?Object(we.sprintf)(Object(we.__)("Choose an existing %s or create a new one."),s.toLowerCase()):Object(we.sprintf)(Object(we.__)("Create a new %s."),s.toLowerCase())},r?Object(ye.createElement)(ke.Dropdown,{contentClassName:"wp-block-template-part__placeholder-preview-dropdown-content",position:"bottom right left",renderToggle:({isOpen:e,onToggle:t})=>Object(ye.createElement)(ye.Fragment,null,o&&Object(ye.createElement)(ke.Button,{variant:"primary",onClick:t,"aria-expanded":e},Object(we.__)("Choose existing")),Object(ye.createElement)(ke.Button,{variant:o?"tertiary":"primary",onClick:()=>c(Rb)},Object(we.sprintf)(Object(we.__)("New %s"),s.toLowerCase()))),renderContent:({onClose:t})=>Object(ye.createElement)(Pb,{setAttributes:n,onClose:t,area:e})}):Object(ye.createElement)(ke.Spinner,null)),l===Rb&&Object(ye.createElement)(zb,{area:e,areaLabel:s,areaIcon:i,onCreate:u,clientId:t,resetPlaceholder:()=>c(Mb)}))}function Vb({tagName:e,setAttributes:t,isEntityAvailable:n,templatePartId:o,defaultWrapper:r}){const[a,l]=Object(It.useEntityProp)("postType","wp_template_part","area",o),[c,i]=Object(It.useEntityProp)("postType","wp_template_part","title",o),{areaOptions:s}=Object(Ie.useSelect)(e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map(({label:e,area:t})=>({label:e,value:t}))}),[]);return Object(ye.createElement)(Ee.InspectorControls,{__experimentalGroup:"advanced"},n&&Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.TextControl,{label:Object(we.__)("Title"),value:c,onChange:e=>{i(e)},onFocus:e=>e.target.select()}),Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Area"),labelPosition:"top",options:s,value:a,onChange:l})),Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("HTML element"),options:[{label:Object(we.sprintf)(Object(we.__)("Default based on area (%s)"),`<${r}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e})}))}function Ab({postId:e,hasInnerBlocks:t,layout:n,tagName:o,blockProps:r,clientId:a}){const l=Object(Ie.useSelect)(e=>{var t;const{getSettings:n}=e(Ee.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout},[]),c=Object(Ee.useSetting)("layout")||{},i=n&&n.inherit?c:n,[s,u,m]=Object(It.useEntityBlockEditor)("postType","wp_template_part",{id:e}),d=Object(Ee.useInnerBlocksProps)(r,{value:s,onInput:u,onChange:m,renderAppender:t?void 0:Ee.InnerBlocks.ButtonBlockAppender,__experimentalLayout:l?i:void 0});return Object(ye.createElement)(Ee.__experimentalBlockContentOverlay,{clientId:a,tagName:o,wrapperProps:d})}var Hb=n("G8mJ"),Fb=n("//kF"),Db=n("rvQu");const Gb=[{name:"header",icon:Hb.a,title:Object(we.__)("Header"),description:Object(we.__)("The Header template defines a page area that typically contains a title, logo, and main navigation."),attributes:{area:"header"},scope:["inserter"]},{name:"footer",icon:Fb.a,title:Object(we.__)("Footer"),description:Object(we.__)("The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks."),attributes:{area:"footer"},scope:["inserter"]}];Gb.forEach(e=>{e.isActive||(e.isActive=(e,t)=>{const{area:n,theme:o,slug:r}=e;if(n)return n===t.area;if(!r)return!1;const a=Object(Ie.select)(It.store).getEntityRecord("postType","wp_template_part",`${o}//${r}`);return(null==a?void 0:a.area)===t.area})});var qb=Gb;const Ub={apiVersion:2,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalLayout:!0},editorStyle:"wp-block-template-part-editor"},{name:Wb}=Ub,$b={icon:Mc.a,__experimentalLabel:({slug:e,theme:t})=>{var n;if(!e)return;const o=Object(Ie.select)(It.store).getEntityRecord("postType","wp_template_part",t+"//"+e);return o?Object(Re.startCase)((null===(n=o.title)||void 0===n?void 0:n.rendered)||o.slug):void 0},edit:function({attributes:e,setAttributes:t,clientId:n}){const{slug:o,theme:r,tagName:a,layout:l={}}=e,c=yc(r,o),[i,s]=Object(Ee.__experimentalUseNoRecursiveRenders)(c),{isResolved:u,innerBlocks:m,isMissing:d,defaultWrapper:b,area:p,enableSelection:g,hasResolvedReplacements:h}=Object(Ie.useSelect)(t=>{var o;const{getEditedEntityRecord:r,getEntityRecords:a,hasFinishedResolution:l}=t(It.store),{getBlocks:i}=t(Ee.store),s=["postType","wp_template_part",c],u=c?r(...s):null,m=(null==u?void 0:u.area)||e.area,d=["postType","wp_template_part",m&&"uncategorized"!==m&&{area:m}],b=a(...d),p=c?(null==b?void 0:b.length)>1:(null==b?void 0:b.length)>0,g=!!c&&l("getEditedEntityRecord",s),h=null===(o=t("core/editor").__experimentalGetDefaultTemplatePartAreas().find(({area:e})=>e===m))||void 0===o?void 0:o.area_tag;return{innerBlocks:i(n),isResolved:g,isMissing:g&&!u,defaultWrapper:h||"div",area:m,enableSelection:p,hasResolvedReplacements:l("getEntityRecords",d)}},[c,n]),v=Object(Ee.useBlockProps)(),O=!o,j=!O&&!d&&u,y=a||b;return 0===m.length&&(o&&!r||o&&d)?Object(ye.createElement)(y,v,Object(ye.createElement)(Ee.Warning,null,Object(we.sprintf)(Object(we.__)("Template part has been deleted or is unavailable: %s"),o))):j&&i?Object(ye.createElement)(y,v,Object(ye.createElement)(Ee.Warning,null,Object(we.__)("Block cannot be rendered inside itself."))):Object(ye.createElement)(s,null,Object(ye.createElement)(Vb,{tagName:a,setAttributes:t,isEntityAvailable:j,templatePartId:c,defaultWrapper:b}),O&&Object(ye.createElement)(y,v,Object(ye.createElement)(Lb,{area:e.area,clientId:n,setAttributes:t,enableSelection:g,hasResolvedReplacements:h})),j&&g&&Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(ke.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},Object(ye.createElement)(ke.Dropdown,{className:"wp-block-template-part__preview-dropdown-button",contentClassName:"wp-block-template-part__preview-dropdown-content",position:"bottom right left",renderToggle:({isOpen:e,onToggle:t})=>Object(ye.createElement)(ke.ToolbarButton,{"aria-expanded":e,onClick:t},Object(we.__)("Replace")),renderContent:({onClose:e})=>Object(ye.createElement)(Pb,{setAttributes:t,onClose:e,area:p,templatePartId:c})}))),j&&Object(ye.createElement)(Ab,{clientId:n,tagName:y,blockProps:v,postId:c,hasInnerBlocks:m.length>0,layout:l}),!O&&!u&&Object(ye.createElement)(y,v,Object(ye.createElement)(ke.Spinner,null)))}};Object(Rr.addFilter)("blocks.registerBlockType","core/template-part",(function(e,t){if("core/template-part"!==t)return e;if(!e.variations||!e.variations.length)return{...e,variations:qb};if(e.variations){const t=(e,t)=>{const{area:n,theme:o,slug:r}=e;if(n)return n===t.area;if(!r)return!1;const a=Object(Ie.select)(It.store).getEntityRecord("postType","wp_template_part",`${o}//${r}`);return(null==a?void 0:a.area)===t.area},n=e.variations.map(e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?Hb.a:"footer"===n?Fb.a:"sidebar"===n?Db.a:Mc.a)}};var n});return{...e,variations:n}}return e}));var Zb=Object(ye.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ye.createElement)(fe.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M9 19.25h6M4 19.25h4M12 15.25h8M4 15.25h7"}),Object(ye.createElement)(fe.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));const Kb={apiVersion:2,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-term-description-editor"},{name:Jb}=Kb,Qb={icon:Zb,edit:function({attributes:e,setAttributes:t,mergedStyle:n}){const{textAlign:o}=e,r=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+o]:o}),style:n});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(Ee.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),Object(ye.createElement)("div",r,Object(ye.createElement)("div",{className:"wp-block-term-description__placeholder"},Object(ye.createElement)("span",null,Object(we.__)("Term Description")))))}};var Yb=n("NMb1"),Xb=n.n(Yb);var ep={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:n,width:o})=>Object(je.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:e,columns:t},n.map(({children:e})=>Object(je.createBlock)("core/column",{},[Object(je.createBlock)("core/paragraph",{content:e})])))}]};const tp={apiVersion:2,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:np}=tp,op={transforms:ep,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:n,content:o,columns:r}=e;return Xb()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.BlockAlignmentToolbar,{value:n,onChange:e=>t({width:e}),controls:["center","wide","full"]})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,null,Object(ye.createElement)(ke.RangeControl,{label:Object(we.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),Object(ye.createElement)("div",Object(Ee.useBlockProps)({className:`align${n} columns-${r}`}),Object(Re.times)(r,e=>Object(ye.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(ye.createElement)(Ee.RichText,{tagName:"p",value:Object(Re.get)(o,[e,"children"]),onChange:n=>{t({content:[...o.slice(0,e),{children:n},...o.slice(e+1)]})},"aria-label":Object(we.sprintf)(Object(we.__)("Column %d text"),e+1),placeholder:Object(we.__)("New Column")})))))},save:function({attributes:e}){const{width:t,content:n,columns:o}=e;return Object(ye.createElement)("div",Ee.useBlockProps.save({className:`align${t} columns-${o}`}),Object(Re.times)(o,e=>Object(ye.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(ye.createElement)(Ee.RichText.Content,{tagName:"p",value:Object(Re.get)(n,[e,"children"])}))))}};var rp=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));var ap=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:n}=e,o=tt()({["has-text-align-"+t]:t});return Object(ye.createElement)("pre",Ee.useBlockProps.save({className:o}),Object(ye.createElement)(Ee.RichText.Content,{value:n}))},migrate:at,isEligible({style:e}){var t;return null==e||null===(t=e.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n}=e;return Object(ye.createElement)(Ee.RichText.Content,{tagName:"pre",style:{textAlign:t},value:n})}}];var lp={from:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(je.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(je.createBlock)("core/paragraph",e)}]};const cp={apiVersion:2,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:ip}=cp,sp={icon:rp,example:{attributes:{content:Object(we.__)("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.")}},transforms:lp,deprecated:ap,merge:(e,t)=>({content:e.content+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onRemove:o,style:r}){const{textAlign:a,content:l}=e,c=Object(Ee.useBlockProps)({className:tt()({["has-text-align-"+a]:a}),style:r});return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,null,Object(ye.createElement)(Ee.AlignmentToolbar,{value:a,onChange:e=>{t({textAlign:e})}})),Object(ye.createElement)(Ee.RichText,Object(mt.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{t({content:e})},"aria-label":Object(we.__)("Verse text"),placeholder:Object(we.__)("Write verse"),onRemove:o,onMerge:n,textAlign:a},c,{__unstablePastePlainText:!0})))},save:function({attributes:e}){const{textAlign:t,content:n}=e,o=tt()({["has-text-align-"+t]:t});return Object(ye.createElement)("pre",Ee.useBlockProps.save({className:o}),Object(ye.createElement)(Ee.RichText.Content,{value:n}))}};var up=Object(ye.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ye.createElement)(fe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));const mp=[{value:"auto",label:Object(we.__)("Auto")},{value:"metadata",label:Object(we.__)("Metadata")},{value:"none",label:Object(we._x)("None","Preload value")}];var dp=({setAttributes:e,attributes:t})=>{const{autoplay:n,controls:o,loop:r,muted:a,playsInline:l,preload:c}=t,i=Object(we.__)("Autoplay may cause usability issues for some users."),s=ye.Platform.select({web:Object(ye.useCallback)(e=>e?i:null,[]),native:i}),u=Object(ye.useMemo)(()=>{const t=t=>n=>{e({[t]:n})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}},[]),m=Object(ye.useCallback)(t=>{e({preload:t})},[]);return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Autoplay"),onChange:u.autoplay,checked:n,help:s}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Loop"),onChange:u.loop,checked:r}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Muted"),onChange:u.muted,checked:a}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Playback controls"),onChange:u.controls,checked:o}),Object(ye.createElement)(ke.ToggleControl,{label:Object(we.__)("Play inline"),onChange:u.playsInline,checked:l}),Object(ye.createElement)(ke.SelectControl,{label:Object(we.__)("Preload"),value:c,onChange:m,options:mp,hideCancelButton:!0}))},bp=n("rH4q");const pp=["text/vtt"],gp="subtitles",hp=[{label:Object(we.__)("Subtitles"),value:"subtitles"},{label:Object(we.__)("Captions"),value:"captions"},{label:Object(we.__)("Descriptions"),value:"descriptions"},{label:Object(we.__)("Chapters"),value:"chapters"},{label:Object(we.__)("Metadata"),value:"metadata"}],vp=Object(ye.createElement)(ke.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(ye.createElement)(ke.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(ye.createElement)(ke.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(ye.createElement)(ke.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function Op({tracks:e,onEditPress:t}){let n;return n=0===e.length?Object(ye.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(we.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map((e,n)=>Object(ye.createElement)("div",{key:n,className:"block-library-video-tracks-editor__track-list-track"},Object(ye.createElement)("span",null,e.label," "),Object(ye.createElement)(ke.Button,{variant:"tertiary",onClick:()=>t(n),"aria-label":Object(we.sprintf)(Object(we.__)("Edit %s"),e.label)},Object(we.__)("Edit")))),Object(ye.createElement)(ke.MenuGroup,{label:Object(we.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},n)}function jp({track:e,onChange:t,onClose:n,onRemove:o}){const{src:r="",label:a="",srcLang:l="",kind:c=gp}=e,i=r.startsWith("blob:")?"":Object(Zo.getFilename)(r)||"";return Object(ye.createElement)(ke.NavigableMenu,null,Object(ye.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(ye.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(we.__)("Edit track")),Object(ye.createElement)("span",null,Object(we.__)("File"),": ",Object(ye.createElement)("b",null,i)),Object(ye.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(ye.createElement)(ke.TextControl,{autoFocus:!0,onChange:n=>t({...e,label:n}),label:Object(we.__)("Label"),value:a,help:Object(we.__)("Title of track")}),Object(ye.createElement)(ke.TextControl,{onChange:n=>t({...e,srcLang:n}),label:Object(we.__)("Source language"),value:l,help:Object(we.__)("Language tag (en, fr, etc.)")})),Object(ye.createElement)(ke.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:hp,value:c,label:Object(we.__)("Kind"),onChange:n=>{t({...e,kind:n})}}),Object(ye.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(ye.createElement)(ke.Button,{variant:"secondary",onClick:()=>{const o={};let r=!1;""===a&&(o.label=Object(we.__)("English"),r=!0),""===l&&(o.srcLang="en",r=!0),void 0===e.kind&&(o.kind=gp,r=!0),r&&t({...e,...o}),n()}},Object(we.__)("Close")),Object(ye.createElement)(ke.Button,{isDestructive:!0,variant:"link",onClick:o},Object(we.__)("Remove track")))))}function yp({tracks:e=[],onChange:t}){const n=Object(Ie.useSelect)(e=>e(Ee.store).getSettings().mediaUpload,[]),[o,r]=Object(ye.useState)(null);return n?Object(ye.createElement)(ke.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>Object(ye.createElement)(ke.ToolbarButton,{label:Object(we.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,icon:vp}),renderContent:({})=>null!==o?Object(ye.createElement)(jp,{track:e[o],onChange:n=>{const r=[...e];r[o]=n,t(r)},onClose:()=>r(null),onRemove:()=>{t(e.filter((e,t)=>t!==o)),r(null)}}):Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(ke.NavigableMenu,null,Object(ye.createElement)(Op,{tracks:e,onEditPress:r}),Object(ye.createElement)(ke.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(we.__)("Add tracks")},Object(ye.createElement)(Ee.MediaUpload,{onSelect:({url:n})=>{const o=e.length;t([...e,{src:n}]),r(o)},allowedTypes:pp,render:({open:e})=>Object(ye.createElement)(ke.MenuItem,{icon:bp.a,onClick:e},Object(we.__)("Open Media Library"))}),Object(ye.createElement)(Ee.MediaUploadCheck,null,Object(ye.createElement)(ke.FormFileUpload,{onChange:o=>{const a=o.target.files,l=e.length;n({allowedTypes:pp,filesList:a,onFileChange:([{url:n}])=>{const o=[...e];o[l]||(o[l]={}),o[l]={...e[l],src:n},t(o),r(l)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>Object(ye.createElement)(ke.MenuItem,{icon:Ca.a,onClick:()=>{e()}},Object(we.__)("Upload"))})))))}):null}function fp({tracks:e=[]}){return e.map(e=>Object(ye.createElement)("track",Object(mt.a)({key:e.src},e)))}const _p=["video"],kp=["image"];var Ep=Object(ke.withNotices)((function e({isSelected:t,noticeUI:n,attributes:o,className:r,setAttributes:a,insertBlocksAfter:l,onReplace:c,noticeOperations:i}){const s=Object(nt.useInstanceId)(e),u=Object(ye.useRef)(),m=Object(ye.useRef)(),{id:d,caption:b,controls:p,poster:g,src:h,tracks:v}=o,O=!d&&Object(ze.isBlobURL)(h),j=Object(Ie.useSelect)(e=>e(Ee.store).getSettings().mediaUpload);function y(e){var t,n;e&&e.url?a({src:e.url,id:e.id,poster:(null===(t=e.image)||void 0===t?void 0:t.src)!==e.icon?null===(n=e.image)||void 0===n?void 0:n.src:void 0}):a({src:void 0,id:void 0,poster:void 0})}function f(e){if(e!==h){const t=Ge({attributes:{url:e}});if(void 0!==t)return void c(t);a({src:e,id:void 0,poster:void 0})}}function _(e){i.removeAllNotices(),i.createErrorNotice(e)}Object(ye.useEffect)(()=>{if(!d&&Object(ze.isBlobURL)(h)){const e=Object(ze.getBlobByURL)(h);e&&j({filesList:[e],onFileChange:([{url:e}])=>{a({src:e})},onError:e=>{i.createErrorNotice(e)},allowedTypes:_p})}},[]),Object(ye.useEffect)(()=>{u.current&&u.current.load()},[g]);const k=tt()(r,{"is-transient":O}),w=Object(Ee.useBlockProps)({className:k});if(!h)return Object(ye.createElement)("div",w,Object(ye.createElement)(Ee.MediaPlaceholder,{icon:Object(ye.createElement)(Ee.BlockIcon,{icon:up}),onSelect:y,onSelectURL:f,accept:"video/*",allowedTypes:_p,value:o,notices:n,onError:_}));const E="video-block__poster-image-description-"+s;return Object(ye.createElement)(ye.Fragment,null,Object(ye.createElement)(Ee.BlockControls,{group:"block"},Object(ye.createElement)(yp,{tracks:v,onChange:e=>{a({tracks:e})}})),Object(ye.createElement)(Ee.BlockControls,{group:"other"},Object(ye.createElement)(Ee.MediaReplaceFlow,{mediaId:d,mediaURL:h,allowedTypes:_p,accept:"video/*",onSelect:y,onSelectURL:f,onError:_})),Object(ye.createElement)(Ee.InspectorControls,null,Object(ye.createElement)(ke.PanelBody,{title:Object(we.__)("Video settings")},Object(ye.createElement)(dp,{setAttributes:a,attributes:o}),Object(ye.createElement)(Ee.MediaUploadCheck,null,Object(ye.createElement)(ke.BaseControl,{className:"editor-video-poster-control"},Object(ye.createElement)(ke.BaseControl.VisualLabel,null,Object(we.__)("Poster image")),Object(ye.createElement)(Ee.MediaUpload,{title:Object(we.__)("Select poster image"),onSelect:function(e){a({poster:e.url})},allowedTypes:kp,render:({open:e})=>Object(ye.createElement)(ke.Button,{variant:"primary",onClick:e,ref:m,"aria-describedby":E},g?Object(we.__)("Replace"):Object(we.__)("Select"))}),Object(ye.createElement)("p",{id:E,hidden:!0},g?Object(we.sprintf)(Object(we.__)("The current poster image url is %s"),g):Object(we.__)("There is no poster image currently selected")),!!g&&Object(ye.createElement)(ke.Button,{onClick:function(){a({poster:void 0}),m.current.focus()},variant:"tertiary"},Object(we.__)("Remove")))))),Object(ye.createElement)("figure",w,Object(ye.createElement)(ke.Disabled,{isDisabled:!t},Object(ye.createElement)("video",{controls:p,poster:g,src:h,ref:u},Object(ye.createElement)(fp,{tracks:v}))),O&&Object(ye.createElement)(ke.Spinner,null),(!Ee.RichText.isEmpty(b)||t)&&Object(ye.createElement)(Ee.RichText,{tagName:"figcaption","aria-label":Object(we.__)("Video caption text"),placeholder:Object(we.__)("Add caption"),value:b,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>l(Object(je.createBlock)("core/paragraph"))})))}));var Cp={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return Object(je.createBlock)("core/video",{src:Object(ze.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:n,webm:o,ogv:r,flv:a}})=>e||t||n||o||r||a},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const xp={apiVersion:2,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",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"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:Sp}=xp,Bp={icon:up,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:Object(we.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Cp,edit:Ep,save:function({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:r,muted:a,poster:l,preload:c,src:i,playsInline:s,tracks:u}=e;return Object(ye.createElement)("figure",Ee.useBlockProps.save(),i&&Object(ye.createElement)("video",{autoPlay:t,controls:o,loop:r,muted:a,poster:l,preload:"metadata"!==c?c:void 0,src:i,playsInline:s},Object(ye.createElement)(fp,{tracks:u})),!Ee.RichText.isEmpty(n)&&Object(ye.createElement)(Ee.RichText.Content,{tagName:"figcaption",value:n}))}},Tp=e=>{if(!e)return;const{metadata:t,settings:n,name:o}=e;Object(je.registerBlockType)({name:o,...t},n)},Np=()=>[M,y,O,h,k,ee,o,r,a,l,c,i,window.wp&&window.wp.oldEditor?s:null,u,m,d,b,p,g,v,j,f,_,w,E,C,x,S,B,T,N,P,I,z,R,L,V,A,H,F,D,G,q,U,W,$,Z,K,J,Q,Y,X,te,ne,oe,re,ae,le,ce,ie,se,ue,me,de,be,pe,ge,he,ve,Oe],Pp=(e=Np())=>{e.forEach(Tp),Object(je.setDefaultBlockName)(Zi),window.wp&&window.wp.oldEditor&&Object(je.setFreeformContentHandlerName)(Zt),Object(je.setUnregisteredTypeHandlerName)(Dl),Object(je.setGroupingBlockName)(Kr)},zp=void 0},K9lf:function(e,t){e.exports=window.wp.compose},KEfo:function(e,t){e.exports=window.wp.viewport},Mmq9:function(e,t){e.exports=window.wp.url},Mp0b:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},NMb1:function(e,t){e.exports=window.wp.deprecated},NTP4:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},NWDH:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},OE6V:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=a},OzlF:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=a},RMJe:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,n){var o;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var l=r.apply(null,o);l&&e.push(l)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var c in o)n.call(o,c)&&o[c]&&e.push(c);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,n){"use strict";n.d(t,"b",(function(){return $})),n.d(t,"c",(function(){return D})),n.d(t,"d",(function(){return Z})),n.d(t,"e",(function(){return J})),n.d(t,"h",(function(){return q})),n.d(t,"f",(function(){return Y})),n.d(t,"g",(function(){return ee})),n.d(t,"a",(function(){return H})),n.d(t,"i",(function(){return I}));var o={};n.r(o),n.d(o,"enableComplementaryArea",(function(){return k})),n.d(o,"disableComplementaryArea",(function(){return w})),n.d(o,"pinItem",(function(){return C})),n.d(o,"unpinItem",(function(){return x})),n.d(o,"toggleFeature",(function(){return S})),n.d(o,"setFeatureValue",(function(){return B})),n.d(o,"setFeatureDefaults",(function(){return T}));var r={};n.r(r),n.d(r,"getActiveComplementaryArea",(function(){return N})),n.d(r,"isItemPinned",(function(){return P})),n.d(r,"isFeatureActive",(function(){return z}));var a=n("wx14"),l=n("GRId"),c=n("TSYQ"),i=n.n(c),s=n("tI+e"),u=n("1ZqX"),m=n("l3Sj"),d=n("RMJe"),b=n("URob"),p=n("Xxwi"),g=n("KEfo"),h=n("bWcr"),v=n("YLtl");const O=Object(u.combineReducers)({features(e={},t){if("SET_FEATURE_DEFAULTS"===t.type){const{scope:n,defaults:o}=t;return{...e,[n]:{...e[n],...o}}}return e}}),j=Object(u.combineReducers)({features(e={},t){if("SET_FEATURE_VALUE"===t.type){const{scope:n,featureName:o,value:r}=t;return{...e,[n]:{...e[n],[o]:r}}}return e}}),y=Object(u.combineReducers)({singleEnableItems:function(e={},{type:t,itemType:n,scope:o,item:r}){return"SET_SINGLE_ENABLE_ITEM"===t&&n&&o?{...e,[n]:{...e[n],[o]:r||null}}:e},multipleEnableItems:function(e={},{type:t,itemType:n,scope:o,item:r,isEnable:a}){if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!o||!r||Object(v.get)(e,[n,o,r])===a)return e;const l=e[n]||{},c=l[o]||{};return{...e,[n]:{...l,[o]:{...c,[r]:a||!1}}}}});var f=Object(u.combineReducers)({enableItems:y,preferenceDefaults:O,preferences:j});function _(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function k(e,t){return _("complementaryArea",e,t)}function w(e){return _("complementaryArea",e,void 0)}function E(e,t,n,o){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:o}}function C(e,t){return E("pinnedItems",e,t,!0)}function x(e,t){return E("pinnedItems",e,t,!1)}function S(e,t){return function({select:n,dispatch:o}){const r=n.isFeatureActive(e,t);o.setFeatureValue(e,t,!r)}}function B(e,t,n){return{type:"SET_FEATURE_VALUE",scope:e,featureName:t,value:!!n}}function T(e,t){return{type:"SET_FEATURE_DEFAULTS",scope:e,defaults:t}}function N(e,t){return function(e,t,n){return Object(v.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function P(e,t,n){return!1!==function(e,t,n,o){return Object(v.get)(e.enableItems.multipleEnableItems,[t,n,o])}(e,"pinnedItems",t,n)}function z(e,t,n){var o,r;const a=null===(o=e.preferences.features[t])||void 0===o?void 0:o[n];return!!(void 0!==a?a:null===(r=e.preferenceDefaults.features[t])||void 0===r?void 0:r[n])}const I=Object(u.createReduxStore)("core/interface",{reducer:f,actions:o,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});Object(u.registerStore)("core/interface",{reducer:f,actions:o,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});var M=n("TvNi"),R=Object(M.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var L=R((function({as:e=s.Button,scope:t,identifier:n,icon:o,selectedIcon:r,...c}){const i=e,m=Object(u.useSelect)(e=>e(I).getActiveComplementaryArea(t)===n,[n]),{enableComplementaryArea:d,disableComplementaryArea:b}=Object(u.useDispatch)(I);return Object(l.createElement)(i,Object(a.a)({icon:r&&m?r:o,onClick:()=>{m?b(t):d(t,n)}},Object(v.omit)(c,["name"])))}));var V=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const r=Object(l.createElement)(L,Object(a.a)({icon:h.a},o));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&Object(l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),Object(l.createElement)("div",{className:i()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,r))};function A({name:e,as:t=s.Button,onClick:n,...o}){return Object(l.createElement)(s.Fill,{name:e},({onClick:e})=>Object(l.createElement)(t,Object(a.a)({onClick:n||e?(...t)=>{(n||v.noop)(...t),(e||v.noop)(...t)}:void 0},o)))}A.Slot=function({name:e,as:t=s.ButtonGroup,fillProps:n={},bubblesVirtually:o,...r}){return Object(l.createElement)(s.Slot,{name:e,bubblesVirtually:o,fillProps:n},e=>{if(Object(v.isEmpty)(l.Children.toArray(e)))return null;const n=[];l.Children.forEach(e,({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)});const o=l.Children.map(e,e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e);return Object(l.createElement)(t,r,o)})};var H=A;const F=e=>Object(l.createElement)(s.MenuItem,Object(v.omit)(e,["__unstableExplicitMenuItem","__unstableTarget"]));function D({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return Object(l.createElement)(L,Object(a.a)({as:o=>Object(l.createElement)(H,Object(a.a)({__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:F,name:e+"/plugin-more-menu"},o)),role:"menuitemcheckbox",selectedIcon:d.a,name:t,scope:e},o))}function G({scope:e,...t}){return Object(l.createElement)(s.Fill,Object(a.a)({name:"PinnedItems/"+e},t))}G.Slot=function({scope:e,className:t,...n}){return Object(l.createElement)(s.Slot,Object(a.a)({name:"PinnedItems/"+e},n),e=>!Object(v.isEmpty)(e)&&Object(l.createElement)("div",{className:i()(t,"interface-pinned-items")},e))};var q=G;function U({scope:e,children:t,className:n}){return Object(l.createElement)(s.Fill,{name:"ComplementaryArea/"+e},Object(l.createElement)("div",{className:n},t))}const W=R((function({children:e,className:t,closeLabel:n=Object(m.__)("Close plugin"),identifier:o,header:r,headerClassName:a,icon:c,isPinnable:h=!0,panelClassName:v,scope:O,name:j,smallScreenTitle:y,title:f,toggleShortcut:_,isActiveByDefault:k,showIconLabels:w=!1}){const{isActive:E,isPinned:C,activeArea:x,isSmall:S,isLarge:B}=Object(u.useSelect)(e=>{const{getActiveComplementaryArea:t,isItemPinned:n}=e(I),r=t(O);return{isActive:r===o,isPinned:n(O,o),activeArea:r,isSmall:e(g.store).isViewportMatch("< medium"),isLarge:e(g.store).isViewportMatch("large")}},[o,O]);!function(e,t,n,o,r){const a=Object(l.useRef)(!1),c=Object(l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:s}=Object(u.useDispatch)(I);Object(l.useEffect)(()=>{o&&r&&!a.current?(s(e),c.current=!0):c.current&&!r&&a.current?(c.current=!1,i(e,t)):c.current&&n&&n!==t&&(c.current=!1),r!==a.current&&(a.current=r)},[o,r,e,t,n])}(O,o,x,E,S);const{enableComplementaryArea:T,disableComplementaryArea:N,pinItem:P,unpinItem:z}=Object(u.useDispatch)(I);return Object(l.useEffect)(()=>{k&&void 0===x&&!S&&T(O,o)},[x,k,O,o,S]),Object(l.createElement)(l.Fragment,null,h&&Object(l.createElement)(q,{scope:O},C&&Object(l.createElement)(L,{scope:O,identifier:o,isPressed:E&&(!w||B),"aria-expanded":E,label:f,icon:w?d.a:c,showTooltip:!w,variant:w?"tertiary":void 0})),j&&h&&Object(l.createElement)(D,{target:j,scope:O,icon:c},f),E&&Object(l.createElement)(U,{className:i()("interface-complementary-area",t),scope:O},Object(l.createElement)(V,{className:a,closeLabel:n,onClose:()=>N(O),smallScreenTitle:y,toggleButtonProps:{label:n,shortcut:_,scope:O,identifier:o}},r||Object(l.createElement)(l.Fragment,null,Object(l.createElement)("strong",null,f),h&&Object(l.createElement)(s.Button,{className:"interface-complementary-area__pin-unpin-item",icon:C?b.a:p.a,label:C?Object(m.__)("Unpin from toolbar"):Object(m.__)("Pin to toolbar"),onClick:()=>(C?z:P)(O,o),isPressed:C,"aria-expanded":C}))),Object(l.createElement)(s.Panel,{className:v},e)))}));W.Slot=function({scope:e,...t}){return Object(l.createElement)(s.Slot,Object(a.a)({name:"ComplementaryArea/"+e},t))};var $=W;var Z=({isActive:e})=>(Object(l.useEffect)(()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}},[]),Object(l.useEffect)(()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")}),[e]),null),K=n("K9lf");var J=Object(l.forwardRef)((function({footer:e,header:t,sidebar:n,secondarySidebar:o,notices:r,content:c,drawer:u,actions:d,labels:b,className:p,shortcuts:g},h){const v=Object(s.__unstableUseNavigateRegions)(g);!function(e){Object(l.useEffect)(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}("interface-interface-skeleton__html-container");const O={...{drawer:Object(m.__)("Drawer"),header:Object(m.__)("Header"),body:Object(m.__)("Content"),secondarySidebar:Object(m.__)("Block Library"),sidebar:Object(m.__)("Settings"),actions:Object(m.__)("Publish"),footer:Object(m.__)("Footer")},...b};return Object(l.createElement)("div",Object(a.a)({},v,{ref:Object(K.useMergeRefs)([h,v.ref]),className:i()(p,"interface-interface-skeleton",v.className,!!e&&"has-footer")}),!!u&&Object(l.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":O.drawer},u),Object(l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!t&&Object(l.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":O.header,tabIndex:"-1"},t),Object(l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&Object(l.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":O.secondarySidebar,tabIndex:"-1"},o),!!r&&Object(l.createElement)("div",{className:"interface-interface-skeleton__notices"},r),Object(l.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":O.body,tabIndex:"-1"},c),!!n&&Object(l.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":O.sidebar,tabIndex:"-1"},n),!!d&&Object(l.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":O.actions,tabIndex:"-1"},d))),!!e&&Object(l.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":O.footer,tabIndex:"-1"},e))})),Q=n("VKE3");function Y({as:e=s.DropdownMenu,className:t,label:n=Object(m.__)("Options"),popoverProps:o,toggleProps:r,children:a}){return Object(l.createElement)(e,{className:i()("interface-more-menu-dropdown",t),icon:Q.a,label:n,popoverProps:{position:"bottom left",...o,className:i()("interface-more-menu-dropdown__content",null==o?void 0:o.className)},toggleProps:{tooltipPosition:"bottom",...r}},e=>a(e))}var X=n("gdqT");function ee({scope:e,label:t,info:n,messageActivated:o,messageDeactivated:r,shortcut:a,feature:c}){const i=Object(u.useSelect)(t=>t(I).isFeatureActive(e,c),[c]),{toggleFeature:b}=Object(u.useDispatch)(I);return Object(l.createElement)(s.MenuItem,{icon:i&&d.a,isSelected:i,onClick:()=>{b(e,c),i?Object(X.speak)(r||Object(m.__)("Feature deactivated")):Object(X.speak)(o||Object(m.__)("Feature activated"))},role:"menuitemcheckbox",info:n,shortcut:a},t)}},URob:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=a},UuzZ:function(e,t){e.exports=window.wp.autop},VKE3:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=a},Xxwi:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=a},YLtl:function(e,t){e.exports=window.lodash},abaT:function(e,t,n){"use strict";t.a=function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,l,c=o[this.toHex()];if(c)return c;if(null==t?void 0:t.closest){var i=this.toRgb(),s=1/0,u="black";if(!a.length)for(var m in n)a[m]=new e(n[m]).toRgb();for(var d in n){var b=(r=i,l=a[d],Math.pow(r.r-l.r,2)+Math.pow(r.g-l.g,2)+Math.pow(r.b-l.b,2));b<s&&(s=b,u=d)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}},axFQ:function(e,t){e.exports=window.wp.blockEditor},b2RC:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=a},bWcr:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=a},btIw:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=a},cGtP:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},diJD:function(e,t){e.exports=window.wp.reusableBlocks},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return N}));var o={grad:.9,turn:360,rad:360/(2*Math.PI)},r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},c=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},s=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,m=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,a=Math.max(t,n,o),l=a-Math.min(t,n,o),c=l?a===t?(n-o)/l:a===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(c<0?c+6:c),s:a?l/a*100:0,v:a/255*100,a:r}},b=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var a=Math.floor(t),l=o*(1-n),c=o*(1-(t-a)*n),i=o*(1-(1-t+a)*n),s=a%6;return{r:255*[o,c,l,l,i,o][s],g:255*[i,o,o,c,l,l][s],b:255*[l,l,i,o,o,c][s],a:r}},p=function(e){return{h:c(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},g=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},h=function(e){return b((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},v=function(e){return{h:(t=d(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=y.exec(e)||f.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=O.exec(e)||j.exec(e);if(!t)return null;var n,r,a=p({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(o[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return h(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,a=e.a,l=void 0===a?1:a;return r(t)&&r(n)&&r(o)?i({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,a=e.a,l=void 0===a?1:a;if(!r(t)||!r(n)||!r(o))return null;var c=p({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return h(c)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,a=e.a,i=void 0===a?1:a;if(!r(t)||!r(n)||!r(o))return null;var s=function(e){return{h:c(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(i)});return b(s)},"hsv"]]},k=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},w=function(e){return"string"==typeof e?k(e.trim(),_.string):"object"==typeof e&&null!==e?k(e,_.object):[null,void 0]},E=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},C=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},x=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},S=function(){function e(e){this.parsed=w(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(C(this.rgba),2)},e.prototype.isDark=function(){return C(this.rgba)<.5},e.prototype.isLight=function(){return C(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?m(a(255*r)):"","#"+m(t)+m(n)+m(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return s(this.rgba)},e.prototype.toRgbString=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return g(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=g(v(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return B({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),B(E(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),B(E(this.rgba,-e))},e.prototype.grayscale=function(){return B(E(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),B(x(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),B(x(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?B({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?B({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===B(e).toHex()},e}(),B=function(e){return e instanceof S?e:new S(e)},T=[],N=function(e){e.forEach((function(e){T.indexOf(e)<0&&(e(S,_),T.push(e))}))}},fPbg:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=a},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},iClF:function(e,t,n){"use strict";var o=n("GRId");t.a=function({icon:e,size:t=24,...n}){return Object(o.cloneElement)(e,{width:t,height:t,...n})}},jZUy:function(e,t){e.exports=window.wp.coreData},l3Sj:function(e,t){e.exports=window.wp.i18n},mi6C:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));t.a=a},oMoS:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"}));t.a=a},onLe:function(e,t){e.exports=window.wp.notices},plpT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=a},qRz9:function(e,t){e.exports=window.wp.richText},rH4q:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=a},rmEH:function(e,t){e.exports=window.wp.htmlEntities},rvQu:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},"tI+e":function(e,t){e.exports=window.wp.components},u6za:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));t.a=a},w95h:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=a},wx14:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},wy2R:function(e,t){e.exports=window.moment},xTGt:function(e,t){e.exports=window.wp.blob},ywyh:function(e,t){e.exports=window.wp.apiFetch},ziDm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=a}});