diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-includes/js/dist/block-library.min.js
--- a/wp/wp-includes/js/dist/block-library.min.js Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/js/dist/block-library.min.js Tue Dec 15 13:49:49 2020 +0100
@@ -1,25 +1,29 @@
-this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=256)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(15);function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.editor}()},,,function(e,t){!function(){e.exports=this.wp.url}()},,,function(e,t,n){"use strict";var r=n(37);var o=n(38);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",function(){return a})},function(e,t){!function(){e.exports=this.moment}()},,,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"g",function(){return i}),n.d(t,"l",function(){return l}),n.d(t,"k",function(){return s}),n.d(t,"o",function(){return u}),n.d(t,"d",function(){return b}),n.d(t,"f",function(){return d}),n.d(t,"n",function(){return m}),n.d(t,"i",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"m",function(){return g}),n.d(t,"h",function(){return f}),n.d(t,"j",function(){return O}),n.d(t,"a",function(){return v});var r=n(0),o=n(4),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(r.createElement)(o.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),l=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),s={foreground:"#1da1f2",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"})))},u={foreground:"#ff0000",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"}))},b={foreground:"#3b5998",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"}))},d=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"}))),m={foreground:"#0073AA",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"})))},h={foreground:"#1db954",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"}))},p=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"})),g={foreground:"#1ab7ea",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.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"})))},f=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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"})),O={foreground:"#35465c",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},v=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.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(r.createElement)(o.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(r.createElement)(o.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"}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},,function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=B(e,360),t=B(t,100),n=B(n,100),0===t)r=o=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),o=c(l,i,e),a=c(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var m,h,p;return n=N(n),{ok:b,format:e.format||d,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function m(e,t,n){e=B(e,255),t=B(t,255),n=B(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=(a+c)/2;if(a==c)r=o=0;else{var l=a-c;switch(o=i>.5?l/(2-a-c):l/(a+c),a){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(d(r));return a}function T(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(d({h:r,s:o,v:a})),a=(a+i)%1;return c}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(z(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*B(this._r,255))+"%",g:l(100*B(this._g,255))+"%",b:l(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*B(this._r,255))+"%, "+l(100*B(this._g,255))+"%, "+l(100*B(this._b,255))+"%)":"rgba("+l(100*B(this._r,255))+"%, "+l(100*B(this._g,255))+"%, "+l(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:b(),g:b(),b:b()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),a=n/100;return d({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,a=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},d.mostReadable=function(e,t,n){var r,o,a,c,i=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,c=n.size;for(var s=0;sl&&(l=r,i=d(t[s]));return d.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var R=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(R);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return s(1,u(0,e))}function P(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function z(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return P(e)/255}var D,F,U,V=(F="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",U="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},,,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t){!function(){e.exports=this.wp.date}()},,,function(e,t,n){"use strict";n.d(t,"e",function(){return h}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return O});var r=n(15),o=n(7),a=n(17),c=n(0),i=n(85),l=n(58),s=n(2),u=n(68),b=n.n(u),d=n(14),m=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some(function(t){return e.match(t)})},h=function(e){return Object(s.includes)(e,'class="wp-embedded-content"')},p=function(e){var t=e.thumbnail_url?e.thumbnail_url:e.url,n=Object(c.createElement)("p",null,Object(c.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(c.renderToString)(n)},g=function(e,t){var n=e.preview,r=e.name,c=e.attributes.url;if(c){var s=function(e){for(var t=[].concat(Object(a.a)(i.a),Object(a.a)(i.b)),n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var o={"wp-has-aspect-ratio":!1},a=0;a=m.ratio)return b()(t,(d={},Object(r.a)(d,m.className,n),Object(r.a)(d,"wp-has-aspect-ratio",n),d))}return t}function O(e,t){var n=Object(c.createElement)("a",{href:e},e);t(Object(d.createBlock)("core/paragraph",{content:Object(c.renderToString)(n)}))}},,,,,function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c});var r=["facebook.com","smugmug.com"],o=[{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"}],a="core/embed",c="core-embed/wordpress"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,function(e,t){!function(){e.exports=this.wp.autop}()},,function(e,t,n){var r;
-/*!
- Copyright (c) 2017 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/*!
- Copyright (c) 2017 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),d=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(120);function v(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?B+="x":B+=N[I];if(!B.match(m)){var L=R.slice(0,x),M=R.slice(x+1),z=N.match(h);z&&(L.push(z[1]),M.unshift(z[2])),M.length&&(v="/"+M.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!p[_])for(x=0,A=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=w.slice(-1)[0],E=(n.host||e.host||w.length>1)&&("."===C||".."===C)||""===C,x=0,S=w.length;S>=0;S--)"."===(C=w[S])?w.splice(S,1):".."===C?(w.splice(S,1),x++):x&&(w.splice(S,1),x--);if(!y&&!_)for(;x--;x)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),E&&"/"!==w.join("/").substr(-1)&&w.push("");var T,R=""===w[0]||w[0]&&"/"===w[0].charAt(0);k&&(n.hostname=n.host=R?"":w.length?w.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&w.length)&&!R&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return i});var r=n(36),o=n(1),a=n(14),c=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:r.k,keywords:["tweet"],description:Object(o.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:r.o,keywords:[Object(o.__)("music"),Object(o.__)("video")],description:Object(o.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:r.d,description:Object(o.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:r.f,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:r.n,keywords:[Object(o.__)("post"),Object(o.__)("blog")],responsive:!1,description:Object(o.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:r.i,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:r.e,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:r.m,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],i=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:r.l,description:Object(o.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:r.c,description:Object(o.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:r.l,description:Object(o.__)("Embed CollegeHumor content.")},patterns:[/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:r.c,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(a.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(o.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:r.l,description:Object(o.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:r.l,description:Object(o.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:r.g,description:Object(o.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:r.c,description:Object(o.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:r.c,description:Object(o.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:r.c,description:Object(o.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:r.c,description:Object(o.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:r.h,description:Object(o.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:r.b,description:Object(o.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:r.l,description:Object(o.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:r.c,description:Object(o.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:r.c,description:Object(o.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:r.g,description:Object(o.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:r.b,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:r.c,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(a.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(o.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:r.l,description:Object(o.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:r.j,description:Object(o.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:r.l,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:r.l,description:Object(o.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:r.a,keywords:[Object(o.__)("ebook")],responsive:!1,description:Object(o.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}]},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(85),a=n(36),c=n(15),i=n(0),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(53),p=n(1),g=n(4),f=n(8),O=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,l=e.switchBackToURLInput;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(f.BlockControls,null,Object(i.createElement)(g.Toolbar,null,n&&Object(i.createElement)(g.IconButton,{className:"components-toolbar__control",label:Object(p.__)("Edit URL"),icon:"edit",onClick:l}))),r&&t&&Object(i.createElement)(f.InspectorControls,null,Object(i.createElement)(g.PanelBody,{title:Object(p.__)("Media Settings"),className:"blocks-responsive"},Object(i.createElement)(g.ToggleControl,{label:Object(p.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},v=function(){return Object(i.createElement)("div",{className:"wp-block-embed is-loading"},Object(i.createElement)(g.Spinner,null),Object(i.createElement)("p",null,Object(p.__)("Embedding…")))},j=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,l=e.fallback,s=e.tryAgain;return Object(i.createElement)(g.Placeholder,{icon:Object(i.createElement)(f.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},Object(i.createElement)("form",{onSubmit:o},Object(i.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(p.__)("Enter URL to embed here…"),onChange:a}),Object(i.createElement)(g.Button,{isLarge:!0,type:"submit"},Object(p._x)("Embed","button label")),c&&Object(i.createElement)("p",{className:"components-placeholder__error"},Object(p.__)("Sorry, this content could not be embedded."),Object(i.createElement)("br",null),Object(i.createElement)(g.Button,{isLarge:!0,onClick:s},Object(p._x)("Try again","button label"))," ",Object(i.createElement)(g.Button,{isLarge:!0,onClick:l},Object(p._x)("Convert to link","button label")))))},y=n(58),_=n(84),w=n(2),k=n(68),C=n.n(k),E=n(6),x=window.FocusEvent,S=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(m.a)(Object(m.a)(e))),e.node=Object(i.createRef)(),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new x("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(i.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(i.Component),T=Object(E.withGlobalEvents)({blur:"checkFocus"})(S),R=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(m.a)(Object(m.a)(e))),e.state={interactive:!1},e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e=this.props,t=e.preview,n=e.url,r=e.type,o=e.caption,a=e.onCaptionChange,c=e.isSelected,l=e.className,s=e.icon,u=e.label,b=t.scripts,d=this.state.interactive,m="photo"===r?Object(h.d)(t):t.html,O=Object(_.parse)(n).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(w.includes)(y.c,v),k=Object(p.sprintf)(Object(p.__)("Embedded content from %s"),v),E=C()(r,l,"wp-block-embed__wrapper"),x="wp-embed"===r?Object(i.createElement)(T,{html:m}):Object(i.createElement)("div",{className:"wp-block-embed__wrapper"},Object(i.createElement)(g.SandBox,{html:m,scripts:b,title:k,type:E,onFocus:this.hideOverlay}),!d&&Object(i.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(i.createElement)("figure",{className:C()(l,"wp-block-embed",{"is-type-video":"video"===r})},j?Object(i.createElement)(g.Placeholder,{icon:Object(i.createElement)(f.BlockIcon,{icon:s,showColors:!0}),label:u},Object(i.createElement)("p",{className:"components-placeholder__error"},Object(i.createElement)("a",{href:n},n)),Object(i.createElement)("p",{className:"components-placeholder__error"},Object(p.sprintf)(Object(p.__)("Embedded content from %s can't be previewed in the editor."),v))):x,(!f.RichText.isEmpty(o)||c)&&Object(i.createElement)(f.RichText,{tagName:"figcaption",placeholder:Object(p.__)("Write caption…"),value:o,onChange:a,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(i.Component);var A=n(5),N={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function B(e){var t=e.title,n=e.description,o=e.icon,a=e.category,g=void 0===a?"embed":a,y=e.transforms,_=e.keywords,k=void 0===_?[]:_,x=e.supports,S=void 0===x?{}:x,T=e.responsive,B=void 0===T||T,I=n||Object(p.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),P=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){function o(){var e;return Object(l.a)(this,o),(e=Object(u.a)(this,Object(b.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(m.a)(Object(m.a)(e))),e.setUrl=e.setUrl.bind(Object(m.a)(Object(m.a)(e))),e.getAttributesFromPreview=e.getAttributesFromPreview.bind(Object(m.a)(Object(m.a)(e))),e.setAttributesFromPreview=e.setAttributesFromPreview.bind(Object(m.a)(Object(m.a)(e))),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(m.a)(Object(m.a)(e))),e.toggleResponsive=e.toggleResponsive.bind(Object(m.a)(Object(m.a)(e))),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(m.a)(Object(m.a)(e))),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(d.a)(o,r),Object(s.a)(o,[{key:"handleIncomingPreview",value:function(){var e=this.props.attributes.allowResponsive;this.setAttributesFromPreview();var t=Object(h.a)(this.props,this.getAttributesFromPreview(this.props.preview,e));t&&this.props.onReplace(t)}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState(function(e){return{url:e.url.replace(/\/$/,"")}},this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getAttributesFromPreview",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=t.type,c=void 0===a?"rich":a,i=t.html,l=t.provider_name,s=Object(w.kebabCase)(Object(w.toLower)(""!==l?l:e));return Object(h.e)(i)&&(c="wp-embed"),(i||"photo"===c)&&(o.type=c,o.providerNameSlug=s),o.className=Object(h.c)(i,this.props.attributes.className,n&&r),o}},{key:"setAttributesFromPreview",value:function(){var e=this.props,t=e.setAttributes,n=e.preview,r=this.props.attributes.allowResponsive;t(this.getAttributesFromPreview(n,r))}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(p.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(p.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:Object(h.c)(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,l=this.props.attributes,s=l.caption,u=l.type,b=l.allowResponsive,d=this.props,m=d.fetching,g=d.setAttributes,f=d.isSelected,y=d.className,_=d.preview,w=d.cannotEmbed,k=d.themeSupportsResponsive,C=d.tryAgain;if(m)return Object(i.createElement)(v,null);var E=Object(p.sprintf)(Object(p.__)("%s URL"),e);return!_||w||c?Object(i.createElement)(j,{icon:t,label:E,onSubmit:this.setUrl,value:a,cannotEmbed:w,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Object(h.b)(a,r.props.onReplace)},tryAgain:C}):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,{showEditButton:_&&!w,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:b,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(i.createElement)(R,{preview:_,className:y,url:a,type:u,caption:s,onCaptionChange:function(e){return g({caption:e})},isSelected:f,icon:t,label:E}))}}]),o}(i.Component)}(t,o,B);return{title:t,description:I,icon:o,category:g,keywords:k,attributes:N,supports:Object(r.a)({align:!0},S),transforms:y,edit:Object(E.compose)(Object(A.withSelect)(function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),d=!!l&&void 0===l.type&&!1===l.html,m=!!l&&l.data&&404===l.data.status,h=!!l&&!d&&!m,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}}),Object(A.withDispatch)(function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}}))(P),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=C()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},Object(i.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:N,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=C()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},"\n".concat(r,"\n"),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var I=n(14);n.d(t,"name",function(){return P}),n.d(t,"settings",function(){return L}),n.d(t,"common",function(){return M}),n.d(t,"others",function(){return z});var P="core/embed",L=B({title:Object(p._x)("Embed","block title"),description:Object(p.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:a.c,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(I.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),M=o.a.map(function(e){return Object(r.a)({},e,{settings:B(e.settings)})}),z=o.b.map(function(e){return Object(r.a)({},e,{settings:B(e.settings)})})},,,,,,,function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=36,u=1,b=26,d=38,m=700,h=72,p=128,g="-",f=/^xn--/,O=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,w=String.fromCharCode;function k(e){throw new RangeError(j[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(v,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,n){var r=0;for(e=n?_(e/m):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+d))}function A(e){var t,n,r,o,a,c,i,d,m,f,O,v=[],j=e.length,y=0,w=p,C=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&k("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=j&&k("invalid-input"),((d=(O=e.charCodeAt(o++))-48<10?O-22:O-65<26?O-65:O-97<26?O-97:s)>=s||d>_((l-y)/c))&&k("overflow"),y+=d*c,!(d<(m=i<=C?u:i>=C+b?b:i-C));i+=s)c>_(l/(f=s-m))&&k("overflow"),c*=f;C=R(y-a,t=v.length+1,0==a),_(y/t)>l-w&&k("overflow"),w+=_(y/t),y%=t,v.splice(y++,0,w)}return S(v)}function N(e){var t,n,r,o,a,c,i,d,m,f,O,v,j,y,C,E=[];for(v=(e=x(e)).length,t=p,n=0,a=h,c=0;c=t&&O_((l-n)/(j=r+1))&&k("overflow"),n+=(i-t)*j,t=i,c=0;cl&&k("overflow"),O==t){for(d=n,m=s;!(d<(f=m<=a?u:m>=a+b?b:m-a));m+=s)C=d-f,y=s-f,E.push(w(T(f+C%y,0))),d=_(C/y);E.push(w(T(d,0))),a=R(n,j,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.4.1",ucs2:{decode:x,encode:S},decode:A,encode:N,toASCII:function(e){return E(e,function(e){return O.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return E(e,function(e){return f.test(e)?A(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(118)(e),n(59))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(121),t.encode=t.stringify=n(122)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=p.substr(0,g),d=p.substr(g+1)):(b=p,d=""),m=decodeURIComponent(b),h=decodeURIComponent(d),r(c,m)?o(c[m])?c[m].push(h):c[m]=[c[m],h]:c[m]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[c]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r2?i-2:0),s=2;s1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===m.F10&&t.stopPropagation()}),e.addButton("kitchensink",{tooltip:Object(o._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(i,"has-advanced-toolbar",t)}}),e.on("init",function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(i,"has-advanced-toolbar")}),e.addButton("wp_add_media",{tooltip:Object(o.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())})}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(r.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(o.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(r.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(r.Component);n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var g="core/freeform",f={title:Object(o._x)("Classic","block title"),description:Object(o.__)("Use the classic WordPress editor."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(r.createElement)(a.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(r.createElement)(a.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"17",y:"8",width:"2",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},edit:p,save:function(e){var t=e.attributes.content;return Object(r.createElement)(r.RawHTML,null,t)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var r,o=n(7),a=n(21),c=n(17),i=n(15),l=n(0),s=n(2),u=n(1),b=n(14),d=n(8),m=n(20),h=n(4),p=(r={},Object(i.a)(r,"value",{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""}),Object(i.a)(r,"citation",{type:"string",source:"html",selector:"cite",default:""}),Object(i.a)(r,"align",{type:"string"}),r),g="core/quote",f={title:Object(u.__)("Quote"),description:Object(u.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:Object(l.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"})),category:"common",keywords:[Object(u.__)("blockquote")],attributes:p,styles:[{name:"default",label:Object(u._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(u._x)("Large","block style")}],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(b.createBlock)("core/quote",{value:Object(m.toHTMLString)({value:Object(m.join)(e.map(function(e){var t=e.content;return Object(m.create)({html:t})}),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(b.createBlock)("core/quote",{value:"".concat(t,"
")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(b.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(b.createBlock)("core/quote",{value:"".concat(e,"
")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(b.getPhrasingContentSchema)()},cite:{children:Object(b.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&""!==t&&r.push.apply(r,Object(c.a)(Object(m.split)(Object(m.create)({html:t,multilineTag:"p"}),"\u2028").map(function(e){return Object(b.createBlock)("core/paragraph",{content:Object(m.toHTMLString)({value:e})})}))),n&&""!==n&&r.push(Object(b.createBlock)("core/paragraph",{content:n})),0===r.length?Object(b.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(a.a)(e,["value","citation"]);if(""===t)return Object(b.createBlock)("core/heading",{content:n});var c=Object(m.split)(Object(m.create)({html:t,multilineTag:"p"}),"\u2028"),i=Object(b.createBlock)("core/heading",{content:Object(m.toHTMLString)({value:c[0]})});if(!n&&1===c.length)return i;var l=c.slice(1);return[i,Object(b.createBlock)("core/quote",Object(o.a)({},r,{citation:n,value:Object(m.toHTMLString)({value:l.length?Object(m.join)(c.slice(1),"\u2028"):Object(m.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(b.createBlock)("core/pullquote",{value:t,citation:n})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,s=t.value,b=t.citation;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(d.BlockControls,null,Object(l.createElement)(d.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(l.createElement)("blockquote",{className:c,style:{textAlign:i}},Object(l.createElement)(d.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!b||0===b.length;!e&&t&&a([])},placeholder:Object(u.__)("Write quote…")}),(!d.RichText.isEmpty(b)||r)&&Object(l.createElement)(d.RichText,{identifier:"citation",value:b,onChange:function(e){return n({citation:e})},placeholder:Object(u.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(l.createElement)("blockquote",{style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return n&&""!==n?Object(o.a)({},e,{value:e.value+n,citation:e.citation+r}):Object(o.a)({},e,{citation:e.citation+r})},deprecated:[{attributes:Object(o.a)({},p,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(o.a)({},Object(s.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(l.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(o.a)({},p,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(l.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"footer",value:o}))}}]}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var r=n(0),o=n(2),a=n(16),c=n.n(a),i=n(41),l=n.n(i),s=n(1),u=n(4),b=n(14),d=n(8),m=["core/column"],h=l()(function(e){return Object(o.times)(e,function(){return["core/column"]})});function p(e){var t,n=p.doc;n||(n=document.implementation.createHTMLDocument(""),p.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var g="core/columns",f={title:Object(s.__)("Columns"),icon:Object(r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(u.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(u.G,null,Object(r.createElement)(u.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}))),category:"layout",attributes:{columns:{type:"number",default:2}},description:Object(s.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},deprecated:[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some(function(e){return/layout-column-\d+/.test(e.originalContent)})&&t.some(function(e){return void 0!==p(e.originalContent)})},migrate:function(e,t){return[e,t.reduce(function(e,t){var n=p(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e},[]).map(function(e){return Object(b.createBlock)("core/column",{},e)})]},save:function(e){var t=e.attributes.columns;return Object(r.createElement)("div",{className:"has-".concat(t,"-columns")},Object(r.createElement)(d.InnerBlocks.Content,null))}}],edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.columns,i=c()(o,"has-".concat(a,"-columns"));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(d.InspectorControls,null,Object(r.createElement)(u.PanelBody,null,Object(r.createElement)(u.RangeControl,{label:Object(s.__)("Columns"),value:a,onChange:function(e){n({columns:e})},min:2,max:6,required:!0}))),Object(r.createElement)("div",{className:i},Object(r.createElement)(d.InnerBlocks,{template:h(a),templateLock:"all",allowedBlocks:m})))},save:function(e){var t=e.attributes.columns;return Object(r.createElement)("div",{className:"has-".concat(t,"-columns")},Object(r.createElement)(d.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var r=n(0),o=n(4),a=n(1),c=n(8),i="core/column",l={title:Object(a.__)("Column"),parent:["core/columns"],icon:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"})),description:Object(a.__)("A single column within a columns block."),category:"common",supports:{inserter:!1,reusable:!1,html:!1},edit:function(){return Object(r.createElement)(c.InnerBlocks,{templateLock:!1})},save:function(){return Object(r.createElement)("div",null,Object(r.createElement)(c.InnerBlocks.Content,null))}}},function(e,t,n){
+*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},155:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=c},16:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},177:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=c},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);var o=r(35),c=r(29);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},180:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},19:function(e,t,r){"use strict";function n(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rc?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=0,i=0,l=0;lr?-1:n===r?0:1}),d=t(b[0],5),m=d[0],h=d[1],p=d[2],g=d[3],f=d[4];return g?[Math.round(m/g),Math.round(h/g),Math.round(p/g),Math.round(g/f)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){var t=(299*e[0]+587*e[1]+114*e[2])/1e3;return t<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n;var r,o,a}()}()},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var r=n(21),o=n(17),a=n(7),c=n(0),i=n(2),l=n(1),s=n(14),u=n(8),b=n(20),d=n(4),m=Object(a.a)({},Object(s.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach(function(e){m[e].children={li:{children:m}}});var h={className:!1},p={ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},g="core/list",f={title:Object(l.__)("List"),description:Object(l.__)("Create a bulleted or numbered list."),icon:Object(c.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(d.G,null,Object(c.createElement)(d.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"}))),category:"common",keywords:[Object(l.__)("bullet list"),Object(l.__)("ordered list"),Object(l.__)("numbered list")],attributes:p,supports:h,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(s.createBlock)("core/list",{values:Object(b.toHTMLString)({value:Object(b.join)(e.map(function(t){var n=t.content,r=Object(b.create)({html:n});return e.length>1?r:Object(b.replace)(r,/\n/g,b.LINE_SEPARATOR)}),b.LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(s.createBlock)("core/list",{values:Object(b.toHTMLString)({value:Object(b.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:m.ol,ul:m.ul},transform:function(e){return Object(s.createBlock)("core/list",Object(a.a)({},Object(s.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(o.a)(["*","-"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(s.createBlock)("core/list",{values:"".concat(e,"")})}}})),Object(o.a)(["1.","1)"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(s.createBlock)("core/list",{ordered:!0,values:"".concat(e,"")})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(b.split)(Object(b.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),b.LINE_SEPARATOR).map(function(e){return Object(s.createBlock)("core/paragraph",{content:Object(b.toHTMLString)({value:e})})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(s.createBlock)("core/quote",{value:Object(b.toHTMLString)({value:Object(b.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},deprecated:[{supports:h,attributes:Object(a.a)({},Object(i.omit)(p,["ordered"]),{nodeName:{type:"string",source:"property",selector:"ol,ul",property:"nodeName",default:"UL"}}),migrate:function(e){var t=e.nodeName,n=Object(r.a)(e,["nodeName"]);return Object(a.a)({},n,{ordered:"OL"===t})},save:function(e){var t=e.attributes,n=t.nodeName,r=t.values;return Object(c.createElement)(u.RichText.Content,{tagName:n.toLowerCase(),value:r})}}],merge:function(e,t){var n=t.values;return n&&""!==n?Object(a.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.insertBlocksAfter,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,i=e.className,b=t.ordered,d=t.values;return Object(c.createElement)(u.RichText,{identifier:"values",multiline:"li",tagName:b?"ol":"ul",onChange:function(e){return r({values:e})},value:d,wrapperClassName:"block-library-list",className:i,placeholder:Object(l.__)("Write list…"),onMerge:o,unstableOnSplit:n?function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c"!==t&&a.push(Object(s.createBlock)("core/list",{ordered:b,values:t})),r({values:e}),n(a)}:void 0,onRemove:function(){return a([])},onTagNameChange:function(e){return r({ordered:"ol"===e})}})},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object(c.createElement)(u.RichText.Content,{tagName:o,value:r,multiline:"li"})}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return l}),n.d(t,"settings",function(){return s});var r=n(0),o=n(1),a=n(14),c=n(8),i=n(4),l="core/preformatted",s={title:Object(o.__)("Preformatted"),description:Object(o.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(i.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(r.createElement)(i.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(r.createElement)(i.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(r.createElement)(i.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(r.createElement)(i.Rect,{x:"10",y:"10",width:"8",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}},transforms:{from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(a.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(a.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.mergeBlocks,a=e.setAttributes,i=e.className,l=t.content;return Object(r.createElement)(c.RichText,{tagName:"pre",value:l.replace(/\n/g,"
"),onChange:function(e){a({content:e.replace(/
/g,"\n")})},placeholder:Object(o.__)("Write preformatted text…"),wrapperClassName:i,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(r.createElement)(c.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var r=n(0),o=n(1),a=n(14),c=n(4),i="core/separator",l={title:Object(o.__)("Separator"),description:Object(o.__)("Create a break between ideas or sections with a horizontal separator."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(c.Path,{d:"M19 13H5v-2h14v2z"})),category:"layout",keywords:[Object(o.__)("horizontal-line"),"hr",Object(o.__)("divider")],styles:[{name:"default",label:Object(o.__)("Default"),isDefault:!0},{name:"wide",label:Object(o.__)("Wide Line")},{name:"dots",label:Object(o.__)("Dots")}],transforms:{from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(a.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},edit:function(e){var t=e.className;return Object(r.createElement)("hr",{className:t})},save:function(){return Object(r.createElement)("hr",null)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return s}),n.d(t,"settings",function(){return u});var r=n(0),o=n(66),a=n(1),c=n(4),i=n(8),l=n(6),s="core/shortcode",u={title:Object(a.__)("Shortcode"),description:Object(a.__)("Insert additional custom elements with a WordPress shortcode."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),category:"widgets",attributes:{text:{type:"string",source:"html"}},transforms:{from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(o.removep)(Object(o.autop)(n))}}},priority:20}]},supports:{customClassName:!1,className:!1,html:!1},edit:Object(l.withInstanceId)(function(e){var t=e.attributes,n=e.setAttributes,o=e.instanceId,l="blocks-shortcode-input-".concat(o);return Object(r.createElement)("div",{className:"wp-block-shortcode"},Object(r.createElement)("label",{htmlFor:l},Object(r.createElement)(c.Dashicon,{icon:"shortcode"}),Object(a.__)("Shortcode")),Object(r.createElement)(i.PlainText,{className:"input-control",id:l,value:t.text,placeholder:Object(a.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))}),save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.text)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return b}),n.d(t,"settings",function(){return d});var r=n(28),o=n(0),a=n(16),c=n.n(a),i=n(1),l=n(8),s=n(4),u=n(6),b="core/spacer",d={title:Object(i.__)("Spacer"),description:Object(i.__)("Add white space between blocks and customize its height."),icon:Object(o.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(s.G,null,Object(o.createElement)(s.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),category:"layout",attributes:{height:{type:"number",default:100}},edit:Object(u.withInstanceId)(function(e){var t=e.attributes,n=e.isSelected,a=e.setAttributes,u=e.toggleSelection,b=e.instanceId,d=t.height,m="block-spacer-height-input-".concat(b),h=Object(o.useState)(d),p=Object(r.a)(h,2),g=p[0],f=p[1];return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.ResizableBox,{className:c()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:d},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,n,r){var o=parseInt(d+r.height,10);a({height:o}),f(o),u(!0)},onResizeStart:function(){u(!1)}}),Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(s.PanelBody,{title:Object(i.__)("Spacer Settings")},Object(o.createElement)(s.BaseControl,{label:Object(i.__)("Height in pixels"),id:m},Object(o.createElement)("input",{type:"number",id:m,onChange:function(e){var t=parseInt(e.target.value,10);f(t),isNaN(t)?(f(""),t=100):t<20&&(t=20),a({height:t})},value:g,min:"20",step:"10"})))))}),save:function(e){var t=e.attributes;return Object(o.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return u}),n.d(t,"settings",function(){return b});var r=n(0),o=n(49),a=n.n(o),c=n(1),i=n(14),l=n(8),s=n(4),u="core/subhead",b={title:Object(c.__)("Subheading (deprecated)"),description:Object(c.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),category:"common",supports:{inserter:!1,multiple:!1},attributes:{content:{type:"string",source:"html",selector:"p"},align:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(i.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,i=t.align,s=t.content,u=t.placeholder;return a()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.BlockControls,null,Object(r.createElement)(l.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(r.createElement)(l.RichText,{tagName:"p",value:s,onChange:function(e){n({content:e})},style:{textAlign:i},className:o,placeholder:u||Object(c.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,o=t.content;return Object(r.createElement)(l.RichText.Content,{tagName:"p",style:{textAlign:n},value:o})}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var r=n(0),o=n(1),a=n(8),c=n(4),i="core/template",l={title:Object(o.__)("Reusable Template"),category:"reusable",description:Object(o.__)("Template block used as a container."),icon:Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(r.createElement)(c.G,null,Object(r.createElement)(c.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),supports:{customClassName:!1,html:!1,inserter:!1},edit:function(){return Object(r.createElement)(a.InnerBlocks,null)},save:function(){return Object(r.createElement)(a.InnerBlocks.Content,null)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return d}),n.d(t,"settings",function(){return m});var r=n(17),o=n(0),a=n(2),c=n(14),i=n(1),l=n(4),s=n(8),u=n(49),b=n.n(u),d="core/text-columns",m={supports:{inserter:!1},title:Object(i.__)("Text Columns (deprecated)"),description:Object(i.__)("This block is deprecated. Please use the Columns block instead."),icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(c.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map(function(e){var t=e.children;return Object(c.createBlock)("core/column",{},[Object(c.createBlock)("core/paragraph",{content:t})])}))}}]},getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,c=e.className,u=t.width,d=t.content,m=t.columns;return b()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(s.BlockAlignmentToolbar,{value:u,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(o.createElement)(s.InspectorControls,null,Object(o.createElement)(l.PanelBody,null,Object(o.createElement)(l.RangeControl,{label:Object(i.__)("Columns"),value:m,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(o.createElement)("div",{className:"".concat(c," align").concat(u," columns-").concat(m)},Object(a.times)(m,function(e){return Object(o.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(o.createElement)(s.RichText,{tagName:"p",value:Object(a.get)(d,[e,"children"]),onChange:function(t){n({content:[].concat(Object(r.a)(d.slice(0,e)),[{children:t}],Object(r.a)(d.slice(e+1)))})},placeholder:Object(i.__)("New Column")}))})))},save:function(e){var t=e.attributes,n=t.width,r=t.content,c=t.columns;return Object(o.createElement)("div",{className:"align".concat(n," columns-").concat(c)},Object(a.times)(c,function(e){return Object(o.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(o.createElement)(s.RichText.Content,{tagName:"p",value:Object(a.get)(r,[e,"children"])}))}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return l}),n.d(t,"settings",function(){return s});var r=n(0),o=n(1),a=n(14),c=n(8),i=n(4),l="core/verse",s={title:Object(o.__)("Verse"),description:Object(o.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(i.Path,{d:"M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"})),category:"formatting",keywords:[Object(o.__)("poetry")],attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className,i=e.mergeBlocks,l=t.textAlign,s=t.content;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(c.AlignmentToolbar,{value:l,onChange:function(e){n({textAlign:e})}})),Object(r.createElement)(c.RichText,{tagName:"pre",value:s,onChange:function(e){n({content:e})},style:{textAlign:l},placeholder:Object(o.__)("Write…"),wrapperClassName:a,onMerge:i}))},save:function(e){var t=e.attributes,n=t.textAlign,o=t.content;return Object(r.createElement)(c.RichText.Content,{tagName:"pre",style:{textAlign:n},value:o})},merge:function(e,t){return{content:e.content+t.content}}}},,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(0),a=n(16),c=n.n(a),i=n(2),l=n(14),s=n(8),u=n(1),b=n(19),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=n(3),O=n(4),v=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(O.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(o.createElement)(O.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(o.createElement)(O.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),j=["image","video"],y=function(e){function t(){return Object(d.a)(this,t),Object(h.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(g.a)(t,e),Object(m.a)(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(O.Toolbar,null,Object(o.createElement)(s.MediaUpload,{onSelect:n,allowedTypes:j,value:t,render:function(e){var t=e.open;return Object(o.createElement)(O.IconButton,{className:"components-toolbar__control",label:Object(u.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className;return Object(o.createElement)(o.Fragment,null,this.renderToolbarEditButton(),Object(o.createElement)("figure",{className:r},Object(o.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(o.createElement)(o.Fragment,null,this.renderToolbarEditButton(),Object(o.createElement)("figure",{className:n},Object(o.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return Object(o.createElement)(s.MediaPlaceholder,{icon:Object(o.createElement)(s.BlockIcon,{icon:v}),labels:{title:Object(u.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:j})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,a=e.mediaWidth,c=e.commitWidthChange,i=e.onWidthChange;if(r&&n){var l={right:"left"===t,left:"right"===t},s=null;switch(r){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object(o.createElement)(O.ResizableBox,{className:"editor-media-container__resizer",size:{width:a+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResize:function(e,t,n){i(parseInt(n.style.width))},onResizeStop:function(e,t,n){c(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(o.Component),_=["core/button","core/paragraph","core/heading","core/list"],w=[["core/paragraph",{fontSize:"large",placeholder:Object(u._x)("Content…","content placeholder")}]],k=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(f.a)(Object(f.a)(e))),e.onWidthChange=e.onWidthChange.bind(Object(f.a)(Object(f.a)(e))),e.commitWidthChange=e.commitWidthChange.bind(Object(f.a)(Object(f.a)(e))),e.state={mediaWidth:null},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(i.get)(e,["sizes","large","url"])||Object(i.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:e})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:e}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,a=e.mediaType,c=e.mediaUrl,i=e.mediaWidth;return Object(o.createElement)(y,Object(b.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:a,mediaUrl:c,mediaPosition:r,mediaWidth:i}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=t.className,i=t.backgroundColor,l=t.isSelected,b=t.setAttributes,d=t.setBackgroundColor,m=n.isStackedOnMobile,h=n.mediaAlt,p=n.mediaPosition,g=n.mediaType,f=n.mediaWidth,v=this.state.mediaWidth,j=c()(a,(e={"has-media-on-the-right":"right"===p,"is-selected":l},Object(r.a)(e,i.class,i.class),Object(r.a)(e,"is-stacked-on-mobile",m),e)),y="".concat(v||f,"%"),k={gridTemplateColumns:"right"===p?"auto ".concat(y):"".concat(y," auto"),backgroundColor:i.color},C=[{value:i.color,onChange:d,label:Object(u.__)("Background Color")}],E=[{icon:"align-pull-left",title:Object(u.__)("Show media on left"),isActive:"left"===p,onClick:function(){return b({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(u.__)("Show media on right"),isActive:"right"===p,onClick:function(){return b({mediaPosition:"right"})}}],x=Object(o.createElement)(O.PanelBody,{title:Object(u.__)("Media & Text Settings")},Object(o.createElement)(O.ToggleControl,{label:Object(u.__)("Stack on mobile"),checked:m,onChange:function(){return b({isStackedOnMobile:!m})}}),"image"===g&&Object(o.createElement)(O.TextareaControl,{label:Object(u.__)("Alt Text (Alternative Text)"),value:h,onChange:function(e){b({mediaAlt:e})},help:Object(u.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}));return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.InspectorControls,null,x,Object(o.createElement)(s.PanelColorSettings,{title:Object(u.__)("Color Settings"),initialOpen:!1,colorSettings:C})),Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(O.Toolbar,{controls:E})),Object(o.createElement)("div",{className:j,style:k},this.renderMediaArea(),Object(o.createElement)(s.InnerBlocks,{allowedBlocks:_,template:w,templateInsertUpdatesSelection:!1})))}}]),t}(o.Component),C=Object(s.withColors)("backgroundColor")(k),E=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(O.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"}));n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return T});var x="core/media-text",S={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},T={title:Object(u.__)("Media & Text"),description:Object(u.__)("Set media and words side-by-side for a richer layout."),icon:E,category:"layout",keywords:[Object(u.__)("image"),Object(u.__)("video")],attributes:S,supports:{align:["wide","full"],html:!1},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(l.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(l.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(l.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(l.createBlock)("core/video",{id:t,src:n})}}]},edit:C,save:function(e){var t,n,a=e.attributes,l=a.backgroundColor,u=a.customBackgroundColor,b=a.isStackedOnMobile,d=a.mediaAlt,m=a.mediaPosition,h=a.mediaType,p=a.mediaUrl,g=a.mediaWidth,f=a.mediaId,O={image:function(){return Object(o.createElement)("img",{src:p,alt:d,className:f&&"image"===h?"wp-image-".concat(f):null})},video:function(){return Object(o.createElement)("video",{controls:!0,src:p})}},v=Object(s.getColorClassName)("background-color",l),j=c()((t={"has-media-on-the-right":"right"===m},Object(r.a)(t,v,v),Object(r.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===m?"auto ".concat(g,"%"):"".concat(g,"% auto"));var y={backgroundColor:v?void 0:u,gridTemplateColumns:n};return Object(o.createElement)("div",{className:j,style:y},Object(o.createElement)("figure",{className:"wp-block-media-text__media"},(O[h]||i.noop)()),Object(o.createElement)("div",{className:"wp-block-media-text__content"},Object(o.createElement)(s.InnerBlocks.Content,null)))},deprecated:[{attributes:S,save:function(e){var t,n,a=e.attributes,l=a.backgroundColor,u=a.customBackgroundColor,b=a.isStackedOnMobile,d=a.mediaAlt,m=a.mediaPosition,h=a.mediaType,p=a.mediaUrl,g=a.mediaWidth,f={image:function(){return Object(o.createElement)("img",{src:p,alt:d})},video:function(){return Object(o.createElement)("video",{controls:!0,src:p})}},O=Object(s.getColorClassName)("background-color",l),v=c()((t={"has-media-on-the-right":"right"===m},Object(r.a)(t,O,O),Object(r.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===m?"auto ".concat(g,"%"):"".concat(g,"% auto"));var j={backgroundColor:O?void 0:u,gridTemplateColumns:n};return Object(o.createElement)("div",{className:v,style:j},Object(o.createElement)("figure",{className:"wp-block-media-text__media"},(f[h]||i.noop)()),Object(o.createElement)("div",{className:"wp-block-media-text__content"},Object(o.createElement)(s.InnerBlocks.Content,null)))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(19),o=n(15),a=n(7),c=n(0),i=n(16),l=n.n(i),s=n(35),u=n(14),b=n(8),d=n(1),m=n(28),h=n(10),p=n(9),g=n(11),f=n(12),O=n(13),v=n(3),j=n(2),y=n(4),_=n(6),w=n(5),k=n(22),C=n(25),E=n(40),x=n(53),S=Object(c.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(y.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(c.createElement)(y.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(c.createElement)(y.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var T=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(v.a)(Object(v.a)(e))),e.calculateSize=e.calculateSize.bind(Object(v.a)(Object(v.a)(e))),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=j.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),c=a.width,i=a.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(c.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(c.Component),R=Object(_.withGlobalEvents)({resize:"calculateSize"})(T),A=["image"],N=function(e){var t=Object(j.pick)(e,["alt","id","link","caption"]);return t.url=Object(j.get)(e,["sizes","large","url"])||Object(j.get)(e,["media_details","sizes","large","source_url"])||e.url,t},B=function(e,t){return!e&&Object(s.isBlobURL)(t)},I=function(e){function t(e){var n,r=e.attributes;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(v.a)(Object(v.a)(n))),n.updateAlignment=n.updateAlignment.bind(Object(v.a)(Object(v.a)(n))),n.onFocusCaption=n.onFocusCaption.bind(Object(v.a)(Object(v.a)(n))),n.onImageClick=n.onImageClick.bind(Object(v.a)(Object(v.a)(n))),n.onSelectImage=n.onSelectImage.bind(Object(v.a)(Object(v.a)(n))),n.onSelectURL=n.onSelectURL.bind(Object(v.a)(Object(v.a)(n))),n.updateImageURL=n.updateImageURL.bind(Object(v.a)(Object(v.a)(n))),n.updateWidth=n.updateWidth.bind(Object(v.a)(Object(v.a)(n))),n.updateHeight=n.updateHeight.bind(Object(v.a)(Object(v.a)(n))),n.updateDimensions=n.updateDimensions.bind(Object(v.a)(Object(v.a)(n))),n.onSetCustomHref=n.onSetCustomHref.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkClass=n.onSetLinkClass.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkRel=n.onSetLinkRel.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkDestination=n.onSetLinkDestination.bind(Object(v.a)(Object(v.a)(n))),n.onSetNewTab=n.onSetNewTab.bind(Object(v.a)(Object(v.a)(n))),n.getFilename=n.getFilename.bind(Object(v.a)(Object(v.a)(n))),n.toggleIsEditing=n.toggleIsEditing.bind(Object(v.a)(Object(v.a)(n))),n.onUploadError=n.onUploadError.bind(Object(v.a)(Object(v.a)(n))),n.onImageError=n.onImageError.bind(Object(v.a)(Object(v.a)(n))),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(O.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(B(a,i)){var l=Object(s.getBlobByURL)(i);l&&Object(k.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(m.a)(e,1)[0];r(N(t))},allowedTypes:A,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;B(n,o)&&!B(c,l)&&Object(s.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){this.props.noticeOperations.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){e&&e.url?(this.setState({isEditing:!1}),this.props.setAttributes(Object(a.a)({},N(e),{width:void 0,height:void 0}))):this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSetLinkDestination",value:function(e){var t;t="none"===e?void 0:"media"===e?this.props.image&&this.props.image.source_url||this.props.attributes.url:"attachment"===e?this.props.image&&this.props.image.link:this.props.attributes.href,this.props.setAttributes({linkDestination:e,href:t})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=Object(x.a)({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetCustomHref",value:function(e){this.props.setAttributes({href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(a.a)({},t,{align:e}))}},{key:"updateImageURL",value:function(e){this.props.setAttributes({url:e,width:void 0,height:void 0})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(C.getPath)(e);if(t)return Object(j.last)(t.split("/"))}},{key:"getLinkDestinationOptions",value:function(){return[{value:"none",label:Object(d.__)("None")},{value:"media",label:Object(d.__)("Media File")},{value:"attachment",label:Object(d.__)("Attachment Page")},{value:"custom",label:Object(d.__)("Custom URL")}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing})}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(j.compact)(Object(j.map)(t,function(e){var t=e.name,r=e.slug,o=Object(j.get)(n,["media_details","sizes",r,"source_url"]);return o?{value:o,label:t}:null}))}},{key:"render",value:function(){var e,t=this,n=this.state.isEditing,r=this.props,o=r.attributes,a=r.setAttributes,i=r.isLargeViewport,u=r.isSelected,m=r.className,h=r.maxWidth,p=r.noticeUI,g=r.toggleSelection,f=r.isRTL,O=o.url,v=o.alt,_=o.caption,w=o.align,k=o.id,C=o.href,E=o.rel,x=o.linkClass,T=o.linkDestination,N=o.width,B=o.height,I=o.linkTarget,P=function(e,t){return t&&!e&&!Object(s.isBlobURL)(t)}(k,O);O&&(e=P?Object(c.createElement)(y.Toolbar,null,Object(c.createElement)(y.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(d.__)("Edit image"),onClick:this.toggleIsEditing,icon:"edit"})):Object(c.createElement)(b.MediaUploadCheck,null,Object(c.createElement)(y.Toolbar,null,Object(c.createElement)(b.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:A,value:k,render:function(e){var t=e.open;return Object(c.createElement)(y.IconButton,{className:"components-toolbar__control",label:Object(d.__)("Edit image"),icon:"edit",onClick:t})}}))));var L=Object(c.createElement)(b.BlockControls,null,Object(c.createElement)(b.BlockAlignmentToolbar,{value:w,onChange:this.updateAlignment}),e);if(n||!O){var M=P?O:void 0;return Object(c.createElement)(c.Fragment,null,L,Object(c.createElement)(b.MediaPlaceholder,{icon:Object(c.createElement)(b.BlockIcon,{icon:S}),className:m,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:p,onError:this.onUploadError,accept:"image/*",allowedTypes:A,value:{id:k,src:M}}))}var z=l()(m,{"is-transient":Object(s.isBlobURL)(O),"is-resized":!!N||!!B,"is-focused":u}),H=-1===["wide","full"].indexOf(w)&&i,D="custom"!==T,F=this.getImageSizeOptions(),U=function(e,n){return Object(c.createElement)(b.InspectorControls,null,Object(c.createElement)(y.PanelBody,{title:Object(d.__)("Image Settings")},Object(c.createElement)(y.TextareaControl,{label:Object(d.__)("Alt Text (Alternative Text)"),value:v,onChange:t.updateAlt,help:Object(d.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}),!Object(j.isEmpty)(F)&&Object(c.createElement)(y.SelectControl,{label:Object(d.__)("Image Size"),value:O,options:F,onChange:t.updateImageURL}),H&&Object(c.createElement)("div",{className:"block-library-image__dimensions"},Object(c.createElement)("p",{className:"block-library-image__dimensions__row"},Object(d.__)("Image Dimensions")),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(y.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(d.__)("Width"),value:void 0!==N?N:e,min:1,onChange:t.updateWidth}),Object(c.createElement)(y.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(d.__)("Height"),value:void 0!==B?B:n,min:1,onChange:t.updateHeight})),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(y.ButtonGroup,{"aria-label":Object(d.__)("Image Size")},[25,50,75,100].map(function(r){var o=Math.round(e*(r/100)),a=Math.round(n*(r/100)),i=N===o&&B===a;return Object(c.createElement)(y.Button,{key:r,isSmall:!0,isPrimary:i,"aria-pressed":i,onClick:t.updateDimensions(o,a)},r,"%")})),Object(c.createElement)(y.Button,{isSmall:!0,onClick:t.updateDimensions()},Object(d.__)("Reset"))))),Object(c.createElement)(y.PanelBody,{title:Object(d.__)("Link Settings")},Object(c.createElement)(y.SelectControl,{label:Object(d.__)("Link To"),value:T,options:t.getLinkDestinationOptions(),onChange:t.onSetLinkDestination}),"none"!==T&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(y.TextControl,{label:Object(d.__)("Link URL"),value:C||"",onChange:t.onSetCustomHref,placeholder:D?void 0:"https://",readOnly:D}),Object(c.createElement)(y.ToggleControl,{label:Object(d.__)("Open in New Tab"),onChange:t.onSetNewTab,checked:"_blank"===I}),Object(c.createElement)(y.TextControl,{label:Object(d.__)("Link CSS Class"),value:x||"",onChange:t.onSetLinkClass}),Object(c.createElement)(y.TextControl,{label:Object(d.__)("Link Rel"),value:E||"",onChange:t.onSetLinkRel}))))};return Object(c.createElement)(c.Fragment,null,L,Object(c.createElement)("figure",{className:z},Object(c.createElement)(R,{src:O,dirtynessTrigger:w},function(e){var n,r=e.imageWidthWithinContainer,o=e.imageHeightWithinContainer,i=e.imageWidth,l=e.imageHeight,u=t.getFilename(O);n=v||(u?Object(d.sprintf)(Object(d.__)("This image has an empty alt attribute; its file name is %s"),u):Object(d.__)("This image has an empty alt attribute"));var b=Object(c.createElement)(c.Fragment,null,Object(c.createElement)("img",{src:O,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(O)}}),Object(s.isBlobURL)(O)&&Object(c.createElement)(y.Spinner,null));if(!H||!r)return Object(c.createElement)(c.Fragment,null,U(i,l),Object(c.createElement)("div",{style:{width:N,height:B}},b));var m=N||r,p=B||o,j=i/l,_=i 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"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},z={img:{attributes:["src","alt"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},H={figure:{require:["img"],children:Object(a.a)({},z,{a:{attributes:["href","rel","target"],children:z},figcaption:{children:Object(u.getPhrasingContentSchema)()}})}};function D(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}function F(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;r.innerHTML=n.content;for(var o=r.querySelector("img");o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}var U={title:Object(d.__)("Image"),description:Object(d.__)("Insert an image to make a visual statement."),icon:S,category:"common",keywords:["img",Object(d.__)("photo")],attributes:M,transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:H,transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,l=c&&c.href?c.href:void 0,s=c&&c.rel?c.rel:void 0,b=c&&c.className?c.className:void 0,d=Object(u.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:i,href:l,rel:s,linkClass:b});return Object(u.createBlock)("core/image",d)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(u.createBlock)("core/image",{url:Object(s.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:F},href:{shortcode:function(e,t){return D(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return D(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return D(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:P,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,i=n.caption,s=n.align,u=n.href,d=n.rel,m=n.linkClass,h=n.width,p=n.height,g=n.id,f=n.linkTarget,O=l()((t={},Object(o.a)(t,"align".concat(s),s),Object(o.a)(t,"is-resized",h||p),t)),v=Object(c.createElement)("img",{src:r,alt:a,className:g?"wp-image-".concat(g):null,width:h,height:p}),j=Object(c.createElement)(c.Fragment,null,u?Object(c.createElement)("a",{className:m,href:u,target:f,rel:d},v):v,!b.RichText.isEmpty(i)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:i}));return"left"===s||"right"===s||"center"===s?Object(c.createElement)("div",null,Object(c.createElement)("figure",{className:O},j)):Object(c.createElement)("figure",{className:O},j)},deprecated:[{attributes:M,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,i=n.caption,s=n.align,u=n.href,d=n.width,m=n.height,h=n.id,p=l()((t={},Object(o.a)(t,"align".concat(s),s),Object(o.a)(t,"is-resized",d||m),t)),g=Object(c.createElement)("img",{src:r,alt:a,className:h?"wp-image-".concat(h):null,width:d,height:m});return Object(c.createElement)("figure",{className:p},u?Object(c.createElement)("a",{href:u},g):g,!b.RichText.isEmpty(i)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:i}))}},{attributes:M,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,i=t.href,l=t.width,s=t.height,u=t.id,d=Object(c.createElement)("img",{src:n,alt:r,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(c.createElement)("figure",{className:a?"align".concat(a):null},i?Object(c.createElement)("a",{href:i},d):d,!b.RichText.isEmpty(o)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:M,save:function(e){var t=e.attributes,n=t.url,o=t.alt,a=t.caption,i=t.align,l=t.href,s=t.width,u=t.height,d=s||u?{width:s,height:u}:{},m=Object(c.createElement)("img",Object(r.a)({src:n,alt:o},d)),h={};return s?h={width:s}:"left"!==i&&"right"!==i||(h={maxWidth:"50%"}),Object(c.createElement)("figure",{className:i?"align".concat(i):null,style:h},l?Object(c.createElement)("a",{href:l},m):m,!b.RichText.isEmpty(a)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:a}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(10),i=n(9),l=n(11),s=n(12),u=n(13),b=n(3),d=n(2),m=n(5),h=n(22),p=n(33),g=n.n(p),f=n(6),O=n(42),v=n.n(O),j=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).containerRef=Object(r.createRef)(),e.formRef=Object(r.createRef)(),e.widgetContentRef=Object(r.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){e.form!==this.props.form&&this.widgetContentRef.current&&(this.widgetContentRef.current.innerHTML=e.form,this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current));return!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,o=t.idBase,a=t.widgetNumber,c=t.form;return Object(r.createElement)("div",{className:"widget open",ref:this.containerRef},Object(r.createElement)("div",{className:"widget-inside"},Object(r.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&e.props.onInstanceChange(e.retrieveUpdatedInstance())}},Object(r.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:c}}),Object(r.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(r.createElement)("input",{type:"hidden",name:"id_base",className:"id_base",value:o}),Object(r.createElement)("input",{type:"hidden",name:"widget_number",className:"widget_number",value:a}),Object(r.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(r.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""}))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0;r1?a[p]=g:a[p]=g[0]}}}catch(e){s=!0,u=e}finally{try{l||null==m.return||m.return()}finally{if(s)throw u}}return a}}}]),t}(r.Component),y=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={form:null,idBase:null},e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(b.a)(Object(b.a)(e))),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.requestWidgetUpdater()}},{key:"componentDidUpdate",value:function(e){e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,a=t.identifier,c=this.state,i=c.id,l=c.idBase,s=c.form;return a?s?Object(r.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(r.createElement)(j,{ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,widgetNumber:-1*n,id:i,idBase:l,form:s})):null:Object(o.__)("Not a valid widget.")}},{key:"onInstanceChange",value:function(e){var t=this;this.requestWidgetUpdater(e,function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance)})}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.identifier,a=r.instanceId,c=r.instance;o&&g()({path:"/wp/v2/widgets/".concat(o,"/"),data:{identifier:o,instance:c,id_to_use:-1*a,instance_changes:e},method:"POST"}).then(function(e){n.isStillMounted&&(n.setState({form:e.form,idBase:e.id_base,id:e.id}),t&&t(e))})}}]),t}(r.Component),_=Object(f.withInstanceId)(y),w=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(b.a)(Object(b.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(b.a)(Object(b.a)(e))),e.changeWidget=e.changeWidget.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e,t=this,n=this.props,c=n.attributes,i=n.availableLegacyWidgets,l=n.hasPermissionsToManageWidgets,s=n.setAttributes,u=this.state.isPreview,b=c.identifier,m=c.isCallbackWidget,p=b&&i[b];if(!p)return e=l?0===i.length?Object(o.__)("There are no widgets available."):Object(r.createElement)(a.SelectControl,{label:Object(o.__)("Select a legacy widget to display:"),value:b||"none",onChange:function(e){return s({instance:{},identifier:e,isCallbackWidget:i[e].isCallbackWidget})},options:[{value:"none",label:"Select widget"}].concat(Object(d.map)(i,function(e,t){return{value:t,label:e.name}}))}):Object(o.__)("You don't have permissions to use widgets on this site."),Object(r.createElement)(a.Placeholder,{icon:Object(r.createElement)(h.BlockIcon,{icon:"admin-customizer"}),label:Object(o.__)("Legacy Widget")},e);var g=Object(r.createElement)(h.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:p.name},p.description));return l?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.BlockControls,null,Object(r.createElement)(a.Toolbar,null,Object(r.createElement)(a.IconButton,{onClick:this.changeWidget,label:Object(o.__)("Change widget"),icon:"update"}),!m&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.Button,{className:"components-tab-button ".concat(u?"":"is-active"),onClick:this.switchToEdit},Object(r.createElement)("span",null,Object(o.__)("Edit"))),Object(r.createElement)(a.Button,{className:"components-tab-button ".concat(u?"is-active":""),onClick:this.switchToPreview},Object(r.createElement)("span",null,Object(o.__)("Preview")))))),g,!m&&Object(r.createElement)(_,{isVisible:!u,identifier:c.identifier,instance:c.instance,onInstanceChange:function(e){t.props.setAttributes({instance:e})}}),(u||m)&&this.renderWidgetPreview()):Object(r.createElement)(r.Fragment,null,g,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},identifier:void 0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(r.createElement)(h.ServerSideRender,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(r.Component),k=Object(m.withSelect)(function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}})(w);n.d(t,"name",function(){return C}),n.d(t,"settings",function(){return E});var C="core/legacy-widget",E={title:Object(o.__)("Legacy Widget (Experimental)"),description:Object(o.__)("Display a legacy widget."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(a.G,null,Object(r.createElement)(a.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},edit:k,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),a=n(1),c=n(35),i=n(14),l=n(5),s=n(8),u=n(19),b=n(28),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=n(3),O=n(16),v=n.n(O),j=n(4),y=n(6),_=n(22),w=Object(r.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(j.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(j.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function k(e){var t=e.hrefs,n=e.openInNewWindow,o=e.showDownloadButton,c=e.changeLinkDestinationOption,i=e.changeOpenInNewWindow,l=e.changeShowDownloadButton,u=t.href,b=t.textLinkHref,d=t.attachmentPage,m=[{value:u,label:Object(a.__)("URL")}];return d&&(m=[{value:u,label:Object(a.__)("Media File")},{value:d,label:Object(a.__)("Attachment Page")}]),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(a.__)("Text Link Settings")},Object(r.createElement)(j.SelectControl,{label:Object(a.__)("Link To"),value:b,options:m,onChange:c}),Object(r.createElement)(j.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:n,onChange:i})),Object(r.createElement)(j.PanelBody,{title:Object(a.__)("Download Button Settings")},Object(r.createElement)(j.ToggleControl,{label:Object(a.__)("Show Download Button"),checked:o,onChange:l}))))}var C=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(f.a)(Object(f.a)(e))),e.confirmCopyURL=e.confirmCopyURL.bind(Object(f.a)(Object(f.a)(e))),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(f.a)(Object(f.a)(e))),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(f.a)(Object(f.a)(e))),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(f.a)(Object(f.a)(e))),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(f.a)(Object(f.a)(e))),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=n.href;if(Object(c.isBlobURL)(o)){var a=Object(c.getBlobByURL)(o);Object(_.mediaUpload)({filesList:[a],onFileChange:function(t){var n=Object(b.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),r.createErrorNotice(t)}}),Object(c.revokeBlobURL)(o)}}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,o=e.attributes,i=e.setAttributes,l=e.noticeUI,b=e.noticeOperations,d=e.media,m=o.fileName,h=o.href,p=o.textLinkHref,g=o.textLinkTarget,f=o.showDownloadButton,O=o.downloadButtonText,y=o.id,_=this.state,C=_.hasError,E=_.showCopyConfirmation,x=d&&d.link;if(!h||C)return Object(r.createElement)(s.MediaPlaceholder,{icon:Object(r.createElement)(s.BlockIcon,{icon:w}),labels:{title:Object(a.__)("File"),instructions:Object(a.__)("Drag a file, upload a new one or select a file from your library.")},onSelect:this.onSelectFile,notices:l,onError:b.createErrorNotice,accept:"*"});var S=v()(t,{"is-transient":Object(c.isBlobURL)(h)});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(k,Object(u.a)({hrefs:{href:h,textLinkHref:p,attachmentPage:x}},{openInNewWindow:!!g,showDownloadButton:f,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(s.MediaUploadCheck,null,Object(r.createElement)(j.Toolbar,null,Object(r.createElement)(s.MediaUpload,{onSelect:this.onSelectFile,value:y,render:function(e){var t=e.open;return Object(r.createElement)(j.IconButton,{className:"components-toolbar__control",label:Object(a.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(r.createElement)("div",{className:S},Object(r.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(r.createElement)(s.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:m,placeholder:Object(a.__)("Write file name…"),keepPlaceholderOnFocus:!0,formattingControls:[],onChange:function(e){return i({fileName:e})}}),f&&Object(r.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(r.createElement)(s.RichText,{tagName:"div",className:"wp-block-file__button",value:O,formattingControls:[],placeholder:Object(a.__)("Add text…"),keepPlaceholderOnFocus:!0,onChange:function(e){return i({downloadButtonText:e})}}))),n&&Object(r.createElement)(j.ClipboardButton,{isDefault:!0,text:h,className:"wp-block-file__copy-url-button",onCopy:this.confirmCopyURL,onFinishCopy:this.resetCopyConfirmation,disabled:Object(c.isBlobURL)(h)},E?Object(a.__)("Copied!"):Object(a.__)("Copy URL"))))}}]),t}(r.Component),E=Object(y.compose)([Object(l.withSelect)(function(e,t){var n=e("core").getMedia,r=t.attributes.id;return{media:void 0===r?void 0:n(r)}}),j.withNotices])(C);n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var x="core/file",S={title:Object(a.__)("File"),description:Object(a.__)("Add a link to a downloadable file."),icon:w,category:"common",keywords:[Object(a.__)("document"),Object(a.__)("pdf")],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]",default:Object(a._x)("Download","button label")}},supports:{align:!0},transforms:{from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach(function(e){var n=Object(c.createBlobURL)(e);t.push(Object(i.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(i.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(i.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(i.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"audio")},transform:function(e){return Object(i.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"video")},transform:function(e){return Object(i.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"image")},transform:function(e){return Object(i.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},edit:E,save:function(e){var t=e.attributes,n=t.href,o=t.fileName,a=t.textLinkHref,c=t.textLinkTarget,i=t.showDownloadButton,l=t.downloadButtonText;return n&&Object(r.createElement)("div",null,!s.RichText.isEmpty(o)&&Object(r.createElement)("a",{href:a,target:c,rel:!!c&&"noreferrer noopener"},Object(r.createElement)(s.RichText.Content,{value:o})),i&&Object(r.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(r.createElement)(s.RichText.Content,{value:l})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(19),a=n(7),c=n(10),i=n(9),l=n(11),s=n(12),u=n(13),b=n(3),d=n(0),m=n(2),h=n(4),p=n(5),g=n(8),f=n(6),O=n(18),v=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).titleField=Object(d.createRef)(),e.editButton=Object(d.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(b.a)(Object(b.a)(e))),e.handleTitleChange=e.handleTitleChange.bind(Object(b.a)(Object(b.a)(e))),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===O.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,o=e.isSaving,a=e.isEditDisabled,c=e.onEdit,i=e.instanceId;return Object(d.createElement)(d.Fragment,null,!t&&!o&&Object(d.createElement)("div",{className:"reusable-block-edit-panel"},Object(d.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(d.createElement)(h.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:a,onClick:c},Object(r.__)("Edit"))),(t||o)&&Object(d.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(d.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(i),className:"reusable-block-edit-panel__label"},Object(r.__)("Name:")),Object(d.createElement)("input",{ref:this.titleField,type:"text",disabled:o,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(i)}),Object(d.createElement)(h.Button,{type:"submit",isLarge:!0,isBusy:o,disabled:!n||o,className:"reusable-block-edit-panel__button"},Object(r.__)("Save"))))}}]),t}(d.Component),j=Object(f.withInstanceId)(v);var y=function(e){var t=e.title,n=Object(r.sprintf)(Object(r.__)("Reusable Block: %s"),t);return Object(d.createElement)(h.Tooltip,{text:n},Object(d.createElement)("span",{className:"reusable-block-indicator"},Object(d.createElement)(h.Dashicon,{icon:"controls-repeat"})))},_=function(e){function t(e){var n,r=e.reusableBlock;return Object(c.a)(this,t),(n=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(b.a)(Object(b.a)(n))),n.stopEditing=n.stopEditing.bind(Object(b.a)(Object(b.a)(n))),n.setAttributes=n.setAttributes.bind(Object(b.a)(Object(b.a)(n))),n.setTitle=n.setTitle.bind(Object(b.a)(Object(b.a)(n))),n.save=n.save.bind(Object(b.a)(Object(b.a)(n))),r&&r.isTemporary?n.state={isEditing:!0,title:r.title,changedAttributes:{}}:n.state={isEditing:!1,title:null,changedAttributes:null},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,changedAttributes:{}})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,changedAttributes:null})}},{key:"setAttributes",value:function(e){this.setState(function(t){if(null!==t.changedAttributes)return{changedAttributes:Object(a.a)({},t.changedAttributes,e)}})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.reusableBlock,n=e.onUpdateTitle,r=e.updateAttributes,o=e.block,a=e.onSave,c=this.state,i=c.title,l=c.changedAttributes;i!==t.title&&n(i),r(o.clientId,l),a(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,c=e.block,i=e.isFetching,l=e.isSaving,s=e.canUpdateBlock,u=this.state,b=u.isEditing,p=u.title,f=u.changedAttributes;if(!n&&i)return Object(d.createElement)(h.Placeholder,null,Object(d.createElement)(h.Spinner,null));if(!n||!c)return Object(d.createElement)(h.Placeholder,null,Object(r.__)("Block has been deleted or is unavailable."));var O=Object(d.createElement)(g.BlockEdit,Object(o.a)({},this.props,{isSelected:b&&t,clientId:c.clientId,name:c.name,attributes:Object(a.a)({},c.attributes,f),setAttributes:b?this.setAttributes:m.noop}));return b||(O=Object(d.createElement)(h.Disabled,null,O)),Object(d.createElement)(d.Fragment,null,(t||b)&&Object(d.createElement)(j,{isEditing:b,title:null!==p?p:n.title,isSaving:l&&!n.isTemporary,isEditDisabled:!s,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!b&&Object(d.createElement)(y,{title:n.title}),O)}}]),t}(d.Component),w=Object(f.compose)([Object(p.withSelect)(function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor").getBlock,l=t.attributes.ref,s=r(l);return{reusableBlock:s,isFetching:o(l),isSaving:a(l),block:s?i(s.clientId):null,canUpdateBlock:!!s&&!s.isTemporary&&!!c("update","blocks",l)}}),Object(p.withDispatch)(function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlockTitle,a=n.__experimentalSaveReusableBlock,c=e("core/block-editor").updateBlockAttributes,i=t.attributes.ref;return{fetchReusableBlock:Object(m.partial)(r,i),updateAttributes:c,onUpdateTitle:Object(m.partial)(o,i),onSave:Object(m.partial)(a,i)}})])(_);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var k="core/block",C={title:Object(r.__)("Reusable Block"),category:"reusable",description:Object(r.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},edit:w,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(0),a=n(2),c=n(1),i=n(14),l=n(8),s=n(22),u=n(35),b=n(15),d=n(17),m=n(10),h=n(9),p=n(11),g=n(12),f=n(13),O=n(3),v=n(16),j=n.n(v),y=n(4),_=n(18),w=n(5),k=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(Object(O.a)(e))),e.onSelectCaption=e.onSelectCaption.bind(Object(O.a)(Object(O.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(Object(O.a)(e))),e.bindContainer=e.bindContainer.bind(Object(O.a)(Object(O.a)(e))),e.state={captionSelected:!1},e}return Object(f.a)(t,e),Object(h.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[_.BACKSPACE,_.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,a=t.id,i=t.linkTo,s=t.link,b=t.isSelected,d=t.caption,m=t.onRemove,h=t.setAttributes,p=t["aria-label"];switch(i){case"media":e=n;break;case"attachment":e=s}var g=Object(o.createElement)(o.Fragment,null,Object(o.createElement)("img",{src:n,alt:r,"data-id":a,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),Object(u.isBlobURL)(n)&&Object(o.createElement)(y.Spinner,null)),f=j()({"is-selected":b,"is-transient":Object(u.isBlobURL)(n)});return Object(o.createElement)("figure",{className:f},b&&Object(o.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(o.createElement)(y.IconButton,{icon:"no-alt",onClick:m,className:"blocks-gallery-item__remove",label:Object(c.__)("Remove Image")})),e?Object(o.createElement)("a",{href:e},g):g,!l.RichText.isEmpty(d)||b?Object(o.createElement)(l.RichText,{tagName:"figcaption",placeholder:Object(c.__)("Write caption…"),value:d,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}):null)}}]),t}(o.Component),C=Object(w.withSelect)(function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})(k),E=Object(o.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(y.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(y.G,null,Object(o.createElement)(y.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),x=[{value:"attachment",label:Object(c.__)("Attachment Page")},{value:"media",label:Object(c.__)("Media File")},{value:"none",label:Object(c.__)("None")}],S=["image"];function T(e){return Math.min(3,e.images.length)}var R=function(e){var t=Object(a.pick)(e,["alt","id","link","caption"]);return t.url=Object(a.get)(e,["sizes","large","url"])||Object(a.get)(e,["media_details","sizes","large","source_url"])||e.url,t},A=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(Object(O.a)(e))),e.onSelectImages=e.onSelectImages.bind(Object(O.a)(Object(O.a)(e))),e.setLinkTo=e.setLinkTo.bind(Object(O.a)(Object(O.a)(e))),e.setColumnsNumber=e.setColumnsNumber.bind(Object(O.a)(Object(O.a)(e))),e.toggleImageCrop=e.toggleImageCrop.bind(Object(O.a)(Object(O.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(Object(O.a)(e))),e.setImageAttributes=e.setImageAttributes.bind(Object(O.a)(Object(O.a)(e))),e.addFiles=e.addFiles.bind(Object(O.a)(Object(O.a)(e))),e.uploadFromFiles=e.uploadFromFiles.bind(Object(O.a)(Object(O.a)(e))),e.setAttributes=e.setAttributes.bind(Object(O.a)(Object(O.a)(e))),e.state={selectedImage:null},e}return Object(f.a)(t,e),Object(h.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(r.a)({},e,{ids:Object(a.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(a.filter)(t.props.attributes.images,function(t,n){return e!==n}),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"onSelectImages",value:function(e){var t=this.props.attributes.columns;this.setAttributes({images:e.map(function(e){return R(e)}),columns:t?Math.min(e.length,t):t})}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(c.__)("Thumbnails are cropped to align."):Object(c.__)("Thumbnails are not cropped.")}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,o=this.setAttributes;n[e]&&o({images:[].concat(Object(d.a)(n.slice(0,e)),[Object(r.a)({},n[e],t)],Object(d.a)(n.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.props.noticeOperations,r=this.setAttributes;Object(s.mediaUpload)({allowedTypes:S,filesList:e,onFileChange:function(e){var n=e.map(function(e){return R(e)});r({images:t.concat(n)})},onError:n.createErrorNotice})}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.isSelected,i=n.className,s=n.noticeOperations,u=n.noticeUI,d=r.images,m=r.columns,h=void 0===m?T(r):m,p=r.align,g=r.imageCrop,f=r.linkTo,O=Object(o.createElement)(y.DropZone,{onFilesDrop:this.addFiles}),v=Object(o.createElement)(l.BlockControls,null,!!d.length&&Object(o.createElement)(y.Toolbar,null,Object(o.createElement)(l.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:S,multiple:!0,gallery:!0,value:d.map(function(e){return e.id}),render:function(e){var t=e.open;return Object(o.createElement)(y.IconButton,{className:"components-toolbar__control",label:Object(c.__)("Edit gallery"),icon:"edit",onClick:t})}})));return 0===d.length?Object(o.createElement)(o.Fragment,null,v,Object(o.createElement)(l.MediaPlaceholder,{icon:Object(o.createElement)(l.BlockIcon,{icon:E}),className:i,labels:{title:Object(c.__)("Gallery"),instructions:Object(c.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:S,multiple:!0,notices:u,onError:s.createErrorNotice})):Object(o.createElement)(o.Fragment,null,v,Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(y.PanelBody,{title:Object(c.__)("Gallery Settings")},d.length>1&&Object(o.createElement)(y.RangeControl,{label:Object(c.__)("Columns"),value:h,onChange:this.setColumnsNumber,min:1,max:Math.min(8,d.length),required:!0}),Object(o.createElement)(y.ToggleControl,{label:Object(c.__)("Crop Images"),checked:!!g,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(o.createElement)(y.SelectControl,{label:Object(c.__)("Link To"),value:f,onChange:this.setLinkTo,options:x}))),u,Object(o.createElement)("ul",{className:j()(i,(e={},Object(b.a)(e,"align".concat(p),p),Object(b.a)(e,"columns-".concat(h),h),Object(b.a)(e,"is-cropped",g),e))},O,d.map(function(e,n){var r=Object(c.sprintf)(Object(c.__)("image %1$d of %2$d in gallery"),n+1,d.length);return Object(o.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(o.createElement)(C,{url:e.url,alt:e.alt,id:e.id,isSelected:a&&t.state.selectedImage===n,onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))}),a&&Object(o.createElement)("li",{className:"blocks-gallery-item has-add-item-button"},Object(o.createElement)(y.FormFileUpload,{multiple:!0,isLarge:!0,className:"block-library-gallery-add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(c.__)("Upload an image")))))}}]),t}(o.Component),N=Object(y.withNotices)(A);n.d(t,"name",function(){return I}),n.d(t,"settings",function(){return L});var B={images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},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:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},I="core/gallery",P=function(e){return e?e.split(",").map(function(e){return parseInt(e,10)}):[]},L={title:Object(c.__)("Gallery"),description:Object(c.__)("Display multiple images in a rich gallery."),icon:E,category:"common",keywords:[Object(c.__)("images"),Object(c.__)("photos")],attributes:B,supports:{align:!0},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(a.every)(e,["align",t])?t:void 0;var n=Object(a.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return Object(i.createBlock)("core/gallery",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return P(t).map(function(e){return{id:e}})}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return P(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(a.every)(e,function(e){return 0===e.type.indexOf("image/")})},transform:function(e,t){var n=Object(i.createBlock)("core/gallery",{images:e.map(function(e){return R({url:Object(u.createBlobURL)(e)})})});return Object(s.mediaUpload)({filesList:e,onFileChange:function(e){var r=e.map(R);t(n.clientId,{ids:Object(a.map)(r,"id"),images:r})},allowedTypes:["image"]}),n}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(i.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})}):Object(i.createBlock)("core/image",{align:n})}}]},edit:N,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.imageCrop,i=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))}))},deprecated:[{attributes:B,isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(a.some)(t,function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]}))},migrate:function(e){return Object(r.a)({},e,{ids:Object(a.map)(e.images,function(e){var t=e.id;return t?parseInt(t,10):null})})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.imageCrop,i=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:B,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.imageCrop,i=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:Object(r.a)({},B,{images:Object(r.a)({},B.images,{selector:"div.wp-block-gallery figure.blocks-gallery-image img"}),align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.align,i=t.imageCrop,l=t.linkTo;return Object(o.createElement)("div",{className:"align".concat(c," columns-").concat(a," ").concat(i?"is-cropped":"")},n.map(function(e){var t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(o.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(o.createElement)("a",{href:t},n):n)}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(21),o=n(7),a=n(17),c=n(0),i=n(2),l=n(1),s=n(14),u=n(8),b=n(4),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=function(e){function t(){return Object(d.a)(this,t),Object(h.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(g.a)(t,e),Object(m.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:Object(l.sprintf)(Object(l.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,r=t.maxLevel,o=t.selectedLevel,a=t.onChange;return Object(c.createElement)(b.Toolbar,{controls:Object(i.range)(n,r).map(function(t){return e.createLevelControl(t,o,a)})})}}]),t}(c.Component);function O(e){return Number(e.substr(1))}n.d(t,"getLevelFromHeadingNodeName",function(){return O}),n.d(t,"name",function(){return y}),n.d(t,"settings",function(){return _});var v={className:!1,anchor:!0},j={content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},align:{type:"string"},placeholder:{type:"string"}},y="core/heading",_={title:Object(l.__)("Heading"),description:Object(l.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Object(c.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(b.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(c.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:"common",keywords:[Object(l.__)("title"),Object(l.__)("subtitle")],supports:v,attributes:j,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(s.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(s.getPhrasingContentSchema)()},h2:{children:Object(s.getPhrasingContentSchema)()},h3:{children:Object(s.getPhrasingContentSchema)()},h4:{children:Object(s.getPhrasingContentSchema)()},h5:{children:Object(s.getPhrasingContentSchema)()},h6:{children:Object(s.getPhrasingContentSchema)()}},transform:function(e){return Object(s.createBlock)("core/heading",Object(o.a)({},Object(s.getBlockAttributes)("core/heading",e.outerHTML),{level:O(e.nodeName)}))}}].concat(Object(a.a)([2,3,4,5,6].map(function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(s.createBlock)("core/heading",{level:e,content:t})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(s.createBlock)("core/paragraph",{content:t})}}]},deprecated:[{supports:v,attributes:Object(o.a)({},Object(i.omit)(j,["level"]),{nodeName:{type:"string",source:"property",selector:"h1,h2,h3,h4,h5,h6",property:"nodeName",default:"H2"}}),migrate:function(e){var t=e.nodeName,n=Object(r.a)(e,["nodeName"]);return Object(o.a)({},n,{level:O(t)})},save:function(e){var t=e.attributes,n=t.align,r=t.nodeName,o=t.content;return Object(c.createElement)(u.RichText.Content,{tagName:r.toLowerCase(),style:{textAlign:n},value:o})}}],merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.insertBlocksAfter,a=e.onReplace,i=e.className,d=t.align,m=t.content,h=t.level,p=t.placeholder,g="h"+h;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.BlockControls,null,Object(c.createElement)(f,{minLevel:2,maxLevel:5,selectedLevel:h,onChange:function(e){return n({level:e})}})),Object(c.createElement)(u.InspectorControls,null,Object(c.createElement)(b.PanelBody,{title:Object(l.__)("Heading Settings")},Object(c.createElement)("p",null,Object(l.__)("Level")),Object(c.createElement)(f,{minLevel:1,maxLevel:7,selectedLevel:h,onChange:function(e){return n({level:e})}}),Object(c.createElement)("p",null,Object(l.__)("Text Alignment")),Object(c.createElement)(u.AlignmentToolbar,{value:d,onChange:function(e){n({align:e})}}))),Object(c.createElement)(u.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:g,value:m,onChange:function(e){return n({content:e})},onMerge:r,unstableOnSplit:o?function(e,t){n({content:e});for(var r=arguments.length,a=new Array(r>2?r-2:0),c=2;c50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(w()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case"image":i=this.imageRef.current;break;case"video":i=this.videoRef.current}i&&T().getColorAsync(i,function(e){t.changeIsDarkIfRequired(e.isDark)})}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}(a.Component),B=Object(k.compose)([Object(C.withColors)({overlayColor:"background-color"}),d.withNotices])(N);n.d(t,"name",function(){return P}),n.d(t,"settings",function(){return L});var I={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"}},P="core/cover",L={title:Object(b.__)("Cover"),description:Object(b.__)("Add an image or video with a text overlay — great for headers."),icon:m,category:"common",attributes:I,supports:{align:!0},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(s.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||"image"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||"video"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,c=t.focalPoint,i=t.hasParallax,s=t.overlayColor,b=t.url,d=Object(u.getColorClassName)("background-color",s),m="image"===n?R(b):{};d||(m.backgroundColor=r),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var h=l()(A(o),d,{"has-background-dim":0!==o,"has-parallax":i});return Object(a.createElement)("div",{className:h,style:m},"video"===n&&b&&Object(a.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:b}),Object(a.createElement)("div",{className:"wp-block-cover__inner-container"},Object(a.createElement)(u.InnerBlocks.Content,null)))},edit:B,deprecated:[{attributes:Object(o.a)({},I,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,o=t.contentAlign,c=t.customOverlayColor,i=t.dimRatio,s=t.focalPoint,b=t.hasParallax,d=t.overlayColor,m=t.title,h=t.url,p=Object(u.getColorClassName)("background-color",d),g="image"===n?R(h):{};p||(g.backgroundColor=c),s&&!b&&(g.backgroundPosition="".concat(100*s.x,"% ").concat(100*s.y,"%"));var f=l()(A(i),p,Object(r.a)({"has-background-dim":0!==i,"has-parallax":b},"has-".concat(o,"-content"),"center"!==o));return Object(a.createElement)("div",{className:f,style:g},"video"===n&&h&&Object(a.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:h}),!u.RichText.isEmpty(m)&&Object(a.createElement)(u.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:m}))},migrate:function(e){return[Object(c.omit)(e,["title","contentAlign"]),[Object(s.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(b.__)("Write title…")})]]}},{attributes:Object(o.a)({},I,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,o=t.title,c=t.hasParallax,i=t.dimRatio,s=t.align,b=t.contentAlign,d=t.overlayColor,m=t.customOverlayColor,h=Object(u.getColorClassName)("background-color",d),p=R(n);h||(p.backgroundColor=m);var g=l()("wp-block-cover-image",A(i),h,Object(r.a)({"has-background-dim":0!==i,"has-parallax":c},"has-".concat(b,"-content"),"center"!==b),s?"align".concat(s):null);return Object(a.createElement)("div",{className:g,style:p},!u.RichText.isEmpty(o)&&Object(a.createElement)(u.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o}))}},{attributes:Object(o.a)({},I,{align:{type:"string"},title:{type:"string",source:"html",selector:"h2"},contentAlign:{type:"string",default:"center"}}),save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,i=t.align,s=R(n),b=l()(A(c),{"has-background-dim":0!==c,"has-parallax":o},i?"align".concat(i):null);return Object(a.createElement)("section",{className:b,style:s},Object(a.createElement)(u.RichText.Content,{tagName:"h2",value:r}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(35),a=n(14),c=n(8),i=n(1),l=n(15),s=n(28),u=n(10),b=n(9),d=n(11),m=n(12),h=n(13),p=n(3),g=n(4),f=n(22),O=n(53),v=Object(r.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(g.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),j=["video"],y=["image"],_=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(r.createRef)(),e.posterImageButton=Object(r.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(p.a)(Object(p.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(p.a)(Object(p.a)(e))),e.onSelectPoster=e.onSelectPoster.bind(Object(p.a)(Object(p.a)(e))),e.onRemovePoster=e.onRemovePoster.bind(Object(p.a)(Object(p.a)(e))),e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(o.isBlobURL)(l)){var u=Object(o.getBlobByURL)(l);u&&Object(f.mediaUpload)({filesList:[u],onFileChange:function(e){var t=Object(s.a)(e,1)[0].url;a({src:t})},onError:function(t){e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:j})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(l.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(O.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.controls,l=t.loop,s=t.muted,u=t.poster,b=t.preload,d=t.src,m=this.props,h=m.setAttributes,p=m.isSelected,f=m.className,O=m.noticeOperations,_=m.noticeUI,w=this.state.editing,k=function(){e.setState({editing:!0})};return w?Object(r.createElement)(c.MediaPlaceholder,{icon:Object(r.createElement)(c.BlockIcon,{icon:v}),className:f,onSelect:function(t){if(!t||!t.url)return h({src:void 0,id:void 0}),void k();h({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:j,value:this.props.attributes,notices:_,onError:O.createErrorNotice}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(g.Toolbar,null,Object(r.createElement)(g.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(i.__)("Edit video"),onClick:k,icon:"edit"}))),Object(r.createElement)(c.InspectorControls,null,Object(r.createElement)(g.PanelBody,{title:Object(i.__)("Video Settings")},Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:l}),Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:s}),Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:a}),Object(r.createElement)(g.SelectControl,{label:Object(i.__)("Preload"),value:b,onChange:function(e){return h({preload:e})},options:[{value:"auto",label:Object(i.__)("Auto")},{value:"metadata",label:Object(i.__)("Metadata")},{value:"none",label:Object(i.__)("None")}]}),Object(r.createElement)(c.MediaUploadCheck,null,Object(r.createElement)(g.BaseControl,{className:"editor-video-poster-control",label:Object(i.__)("Poster Image")},Object(r.createElement)(c.MediaUpload,{title:Object(i.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:y,render:function(t){var n=t.open;return Object(r.createElement)(g.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton},e.props.attributes.poster?Object(i.__)("Replace image"):Object(i.__)("Select Poster Image"))}}),!!this.props.attributes.poster&&Object(r.createElement)(g.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(i.__)("Remove Poster Image")))))),Object(r.createElement)("figure",{className:f},Object(r.createElement)(g.Disabled,null,Object(r.createElement)("video",{controls:a,poster:u,src:d,ref:this.videoPlayer})),(!c.RichText.isEmpty(o)||p)&&Object(r.createElement)(c.RichText,{tagName:"figcaption",placeholder:Object(i.__)("Write caption…"),value:o,onChange:function(e){return h({caption:e})},inlineToolbar:!0})))}}]),t}(r.Component),w=Object(g.withNotices)(_);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var k="core/video",C={title:Object(i.__)("Video"),description:Object(i.__)("Embed a video from your media library or upload a new one."),icon:v,keywords:[Object(i.__)("movie")],category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(a.createBlock)("core/video",{src:Object(o.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},supports:{align:!0},edit:w,save:function(e){var t=e.attributes,n=t.autoplay,o=t.caption,a=t.controls,i=t.loop,l=t.muted,s=t.poster,u=t.preload,b=t.src;return Object(r.createElement)("figure",null,b&&Object(r.createElement)("video",{autoPlay:n,controls:a,loop:i,muted:l,poster:s,preload:"metadata"!==u?u:void 0,src:b}),!c.RichText.isEmpty(o)&&Object(r.createElement)(c.RichText.Content,{tagName:"figcaption",value:o}))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(16),a=n.n(o),c=n(1),i=n(14),l=n(4),s=n(8),u=n(10),b=n(9),d=n(11),m=n(12),h=n(13),p=n(3),g=n(17),f=n(15),O=n(7),v=n(2);var j=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],y=Object(s.createCustomColorsHOC)(j),_=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(p.a)(Object(p.a)(e))),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(p.a)(Object(p.a)(e))),e.onChange=e.onChange.bind(Object(p.a)(Object(p.a)(e))),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(p.a)(Object(p.a)(e))),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(p.a)(Object(p.a)(e))),e.renderSection=e.renderSection.bind(Object(p.a)(Object(p.a)(e))),e.getTableControls=e.getTableControls.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRow=e.onInsertRow.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(p.a)(Object(p.a)(e))),e.onDeleteRow=e.onDeleteRow.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumn=e.onInsertColumn.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(p.a)(Object(p.a)(e))),e.onDeleteColumn=e.onDeleteColumn.bind(Object(p.a)(Object(p.a)(e))),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(v.times)(n,function(){return{cells:Object(v.times)(r,function(){return{content:"",tag:"td"}})}})}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(function(e,t){var n=t.section,r=t.rowIndex,o=t.columnIndex,a=t.content;return Object(f.a)({},n,e[n].map(function(e,t){return t!==r?e:{cells:e.cells.map(function(e,t){return t!==o?e:Object(O.a)({},e,{content:a})})}}))}(r,{section:t.section,rowIndex:t.rowIndex,columnIndex:t.columnIndex,content:e}))}}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.rowIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.rowIndex,o=e[n][0].cells.length;return Object(f.a)({},n,[].concat(Object(g.a)(e[n].slice(0,r)),[{cells:Object(v.times)(o,function(){return{content:"",tag:"td"}})}],Object(g.a)(e[n].slice(r))))}(r,{section:a,rowIndex:c+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.rowIndex;return Object(f.a)({},n,e[n].filter(function(e,t){return t!==r}))}(n,{section:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.columnIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.columnIndex;return Object(f.a)({},n,e[n].map(function(e){return{cells:[].concat(Object(g.a)(e.cells.slice(0,r)),[{content:"",tag:"td"}],Object(g.a)(e.cells.slice(r)))}}))}(r,{section:a,columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.columnIndex;return Object(f.a)({},n,e[n].map(function(e){return{cells:e.cells.filter(function(e,t){return t!==r})}}).filter(function(e){return e.cells.length}))}(n,{section:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:e})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(c.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(c.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(c.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(c.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(c.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(c.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.type,o=e.rows;if(!o.length)return null;var c="t".concat(n),i=this.state.selectedCell;return Object(r.createElement)(c,null,o.map(function(e,o){var c=e.cells;return Object(r.createElement)("tr",{key:o},c.map(function(e,c){var l=e.content,u=e.tag,b=i&&n===i.section&&o===i.rowIndex&&c===i.columnIndex,d={section:n,rowIndex:o,columnIndex:c},m=a()({"is-selected":b});return Object(r.createElement)(u,{key:c,className:m},Object(r.createElement)(s.RichText,{className:"wp-block-table__cell-content",value:l,onChange:t.onChange,unstableOnFocus:t.createOnFocus(d)}))}))}))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,o=e.backgroundColor,i=e.setBackgroundColor,u=this.state,b=u.initialRowCount,d=u.initialColumnCount,m=t.hasFixedLayout,h=t.head,p=t.body,g=t.foot,f=!h.length&&!p.length&&!g.length,O=this.renderSection;if(f)return Object(r.createElement)("form",{onSubmit:this.onCreateTable},Object(r.createElement)(l.TextControl,{type:"number",label:Object(c.__)("Column Count"),value:d,onChange:this.onChangeInitialColumnCount,min:"1"}),Object(r.createElement)(l.TextControl,{type:"number",label:Object(c.__)("Row Count"),value:b,onChange:this.onChangeInitialRowCount,min:"1"}),Object(r.createElement)(l.Button,{isPrimary:!0,type:"submit"},Object(c.__)("Create")));var v=a()(n,o.class,{"has-fixed-layout":m,"has-background":!!o.color});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(l.Toolbar,null,Object(r.createElement)(l.DropdownMenu,{icon:"editor-table",label:Object(c.__)("Edit table"),controls:this.getTableControls()}))),Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(l.PanelBody,{title:Object(c.__)("Table Settings"),className:"blocks-table-settings"},Object(r.createElement)(l.ToggleControl,{label:Object(c.__)("Fixed width table cells"),checked:!!m,onChange:this.onChangeFixedLayout})),Object(r.createElement)(s.PanelColorSettings,{title:Object(c.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:i,label:Object(c.__)("Background Color"),disableCustomColors:!0,colors:j}]})),Object(r.createElement)("table",{className:v},Object(r.createElement)(O,{type:"head",rows:h}),Object(r.createElement)(O,{type:"body",rows:p}),Object(r.createElement)(O,{type:"foot",rows:g})))}}]),t}(r.Component),w=y("backgroundColor")(_);n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var k={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(i.getPhrasingContentSchema)()},td:{allowEmpty:!0,children:Object(i.getPhrasingContentSchema)()}}}},C={table:{children:{thead:{allowEmpty:!0,children:k},tfoot:{allowEmpty:!0,children:k},tbody:{allowEmpty:!0,children:k}}}};function E(e){return{type:"array",default:[],source:"query",selector:"t".concat(e," tr"),query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"}}}}}}var x="core/table",S={title:Object(c.__)("Table"),description:Object(c.__)("Insert a table — perfect for sharing charts and data."),icon:Object(r.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(l.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(l.G,null,Object(r.createElement)(l.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:E("head"),body:E("body"),foot:E("foot")},styles:[{name:"regular",label:Object(c._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(c.__)("Stripes")}],supports:{align:!0},transforms:{from:[{type:"raw",selector:"table",schema:C}]},edit:w,save:function(e){var t=e.attributes,n=t.hasFixedLayout,o=t.head,c=t.body,i=t.foot,l=t.backgroundColor;if(!o.length&&!c.length&&!i.length)return null;var u=Object(s.getColorClassName)("background-color",l),b=a()(u,{"has-fixed-layout":n,"has-background":!!u}),d=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var o="t".concat(t);return Object(r.createElement)(o,null,n.map(function(e,t){var n=e.cells;return Object(r.createElement)("tr",{key:t},n.map(function(e,t){var n=e.content,o=e.tag;return Object(r.createElement)(s.RichText.Content,{tagName:o,value:n,key:t})}))}))};return Object(r.createElement)("table",{className:b},Object(r.createElement)(d,{type:"head",rows:o}),Object(r.createElement)(d,{type:"body",rows:c}),Object(r.createElement)(d,{type:"foot",rows:i}))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(14),c=n(4),i=n(8);n.d(t,"name",function(){return l}),n.d(t,"settings",function(){return s});var l="core/code",s={title:Object(o.__)("Code"),description:Object(o.__)("Display code snippets that respect your spacing and tabs."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(c.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(a.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className;return Object(r.createElement)("div",{className:a},Object(r.createElement)(i.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(o.__)("Write code…"),"aria-label":Object(o.__)("Code")}))},save:function(e){var t=e.attributes;return Object(r.createElement)("pre",null,Object(r.createElement)("code",null,t.content))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(14),i=n(17),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(8),p=n(22),g=n(5),f=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(m.a)(Object(m.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(m.a)(Object(m.a)(e))),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(i.a)(Object(p.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,c=this.state,i=c.isPreview,l=c.styles;return Object(r.createElement)("div",{className:"wp-block-html"},Object(r.createElement)(h.BlockControls,null,Object(r.createElement)("div",{className:"components-toolbar"},Object(r.createElement)("button",{className:"components-tab-button ".concat(i?"":"is-active"),onClick:this.switchToHTML},Object(r.createElement)("span",null,"HTML")),Object(r.createElement)("button",{className:"components-tab-button ".concat(i?"is-active":""),onClick:this.switchToPreview},Object(r.createElement)("span",null,Object(o.__)("Preview"))))),Object(r.createElement)(a.Disabled.Consumer,null,function(e){return i||e?Object(r.createElement)(a.SandBox,{html:t.content,styles:l}):Object(r.createElement)(h.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(o.__)("Write HTML…"),"aria-label":Object(o.__)("HTML")})}))}}]),t}(r.Component),O=Object(g.withSelect)(function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}})(f);n.d(t,"name",function(){return v}),n.d(t,"settings",function(){return j});var v="core/html",j={title:Object(o.__)("Custom HTML"),description:Object(o.__)("Add custom HTML code and preview it as you edit."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),category:"formatting",keywords:[Object(o.__)("embed")],supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html"}},transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(c.getPhrasingContentSchema)()}}}}}]},edit:O,save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.content)}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(8),i=n(22);n.d(t,"name",function(){return l}),n.d(t,"settings",function(){return s});var l="core/archives",s={title:Object(o.__)("Archives"),description:Object(o.__)("Display a monthly archive of your posts."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(a.G,null,Object(r.createElement)(a.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,l=t.align,s=t.showPostCounts,u=t.displayAsDropdown;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Archives Settings")},Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display as Dropdown"),checked:u,onChange:function(){return n({displayAsDropdown:!u})}}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Post Counts"),checked:s,onChange:function(){return n({showPostCounts:!s})}}))),Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(c.BlockAlignmentToolbar,{value:l,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(r.createElement)(a.Disabled,null,Object(r.createElement)(i.ServerSideRender,{block:"core/archives",attributes:t})))},save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(7),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(4),u=n(1),b=n(8),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=n(3),O=n(6),v=window.getComputedStyle,j=Object(s.withFallbackStyles)(function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:v(e).backgroundColor,fallbackTextColor:a||!c?void 0:v(c).color}}),y=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(f.a)(Object(f.a)(e))),e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,o=t.backgroundColor,c=t.textColor,l=t.setBackgroundColor,d=t.setTextColor,m=t.fallbackBackgroundColor,h=t.fallbackTextColor,p=t.setAttributes,g=t.isSelected,f=t.className,O=n.text,v=n.url,j=n.title;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:f,title:j,ref:this.bindRef},Object(a.createElement)(b.RichText,{placeholder:Object(u.__)("Add text…"),value:O,onChange:function(e){return p({text:e})},formattingControls:["bold","italic","strikethrough"],className:i()("wp-block-button__link",(e={"has-background":o.color},Object(r.a)(e,o.class,o.class),Object(r.a)(e,"has-text-color",c.color),Object(r.a)(e,c.class,c.class),e)),style:{backgroundColor:o.color,color:c.color},keepPlaceholderOnFocus:!0}),Object(a.createElement)(b.InspectorControls,null,Object(a.createElement)(b.PanelColorSettings,{title:Object(u.__)("Color Settings"),colorSettings:[{value:o.color,onChange:l,label:Object(u.__)("Background Color")},{value:c.color,onChange:d,label:Object(u.__)("Text Color")}]},Object(a.createElement)(b.ContrastChecker,{isLargeText:!1,textColor:c.color,backgroundColor:o.color,fallbackBackgroundColor:m,fallbackTextColor:h})))),g&&Object(a.createElement)("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(a.createElement)(s.Dashicon,{icon:"admin-links"}),Object(a.createElement)(b.URLInput,{value:v,onChange:function(e){return p({url:e})}}),Object(a.createElement)(s.IconButton,{icon:"editor-break",label:Object(u.__)("Apply"),type:"submit"})))}}]),t}(a.Component),_=Object(O.compose)([Object(b.withColors)("backgroundColor",{textColor:"color"}),j])(y);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return E});var w={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},k="core/button",C=function(e){return Object(l.omit)(Object(o.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},E={title:Object(u.__)("Button"),description:Object(u.__)("Prompt visitors to take action with a button-style link."),icon:Object(a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(s.G,null,Object(a.createElement)(s.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}))),category:"layout",keywords:[Object(u.__)("link")],attributes:w,supports:{align:!0,alignWide:!1},styles:[{name:"default",label:Object(u._x)("Default","block style"),isDefault:!0},{name:"outline",label:Object(u.__)("Outline")},{name:"squared",label:Object(u._x)("Squared","block style")}],edit:_,save:function(e){var t,n=e.attributes,o=n.url,c=n.text,l=n.title,s=n.backgroundColor,u=n.textColor,d=n.customBackgroundColor,m=n.customTextColor,h=Object(b.getColorClassName)("color",u),p=Object(b.getColorClassName)("background-color",s),g=i()("wp-block-button__link",(t={"has-text-color":u||m},Object(r.a)(t,h,h),Object(r.a)(t,"has-background",s||d),Object(r.a)(t,p,p),t)),f={backgroundColor:p?void 0:d,color:h?void 0:m};return Object(a.createElement)("div",null,Object(a.createElement)(b.RichText.Content,{tagName:"a",className:g,href:o,title:l,style:f,value:c}))},deprecated:[{attributes:Object(o.a)({},Object(l.pick)(w,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,i={backgroundColor:t.color,color:t.textColor};return Object(a.createElement)("div",{className:"align".concat(c)},Object(a.createElement)(b.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:i,value:r}))},migrate:C},{attributes:Object(o.a)({},Object(l.pick)(w,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,i=t.color,l=t.textColor;return Object(a.createElement)("div",{className:"align".concat(c),style:{backgroundColor:i}},Object(a.createElement)(b.RichText.Content,{tagName:"a",href:n,title:o,style:{color:l},value:r}))},migrate:C}]}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(4),a=n(1),c=n(15),i=n(10),l=n(9),s=n(11),u=n(12),b=n(13),d=n(3),m=n(8),h=n(22),p=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(d.a)(Object(d.a)(e))),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(b.a)(t,e),Object(l.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(c.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,c=e.displayDate,i=e.displayExcerpt;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(a.__)("Latest Comments Settings")},Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Date"),checked:c,onChange:this.toggleDisplayDate}),Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Excerpt"),checked:i,onChange:this.toggleDisplayExcerpt}),Object(r.createElement)(o.RangeControl,{label:Object(a.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(r.createElement)(o.Disabled,null,Object(r.createElement)(h.ServerSideRender,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(r.Component);n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var g="core/latest-comments",f={title:Object(a.__)("Latest Comments"),description:Object(a.__)("Display a list of your most recent comments."),icon:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}))),category:"widgets",keywords:[Object(a.__)("recent comments")],supports:{align:!0,html:!1},edit:p,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(15),i=n(19),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(2),p=n(16),g=n.n(p),f=n(33),O=n.n(f),v=n(25),j=n(50),y=n(8),_=n(5),w={per_page:-1},k=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).state={categoriesList:[]},e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(Object(m.a)(Object(m.a)(e))),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=O()({path:Object(v.addQueryArgs)("/wp/v2/categories",w)}).then(function(t){e.isStillMounted&&e.setState({categoriesList:t})}).catch(function(){e.isStillMounted&&e.setState({categoriesList:[]})})}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,l=e.latestPosts,s=this.state.categoriesList,u=t.displayPostDate,b=t.align,d=t.postLayout,m=t.columns,h=t.order,p=t.orderBy,f=t.categories,O=t.postsToShow,v=Object(r.createElement)(y.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Latest Posts Settings")},Object(r.createElement)(a.QueryControls,Object(i.a)({order:h,orderBy:p},{numberOfItems:O,categoriesList:s,selectedCategoryId:f,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display post date"),checked:u,onChange:this.toggleDisplayPostDate}),"grid"===d&&Object(r.createElement)(a.RangeControl,{label:Object(o.__)("Columns"),value:m,onChange:function(e){return n({columns:e})},min:2,max:_?Math.min(6,l.length):6,required:!0}))),_=Array.isArray(l)&&l.length;if(!_)return Object(r.createElement)(r.Fragment,null,v,Object(r.createElement)(a.Placeholder,{icon:"admin-post",label:Object(o.__)("Latest Posts")},Array.isArray(l)?Object(o.__)("No posts found."):Object(r.createElement)(a.Spinner,null)));var w=l.length>O?l.slice(0,O):l,k=[{icon:"list-view",title:Object(o.__)("List View"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===d},{icon:"grid-view",title:Object(o.__)("Grid View"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===d}],C=Object(j.__experimentalGetSettings)().formats.date;return Object(r.createElement)(r.Fragment,null,v,Object(r.createElement)(y.BlockControls,null,Object(r.createElement)(y.BlockAlignmentToolbar,{value:b,onChange:function(e){n({align:e})}}),Object(r.createElement)(a.Toolbar,{controls:k})),Object(r.createElement)("ul",{className:g()(this.props.className,Object(c.a)({"is-grid":"grid"===d,"has-dates":u},"columns-".concat(m),"grid"===d))},w.map(function(e,t){var n=e.title.rendered.trim();return Object(r.createElement)("li",{key:t},Object(r.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(r.createElement)(r.RawHTML,null,n):Object(o.__)("(Untitled)")),u&&e.date_gmt&&Object(r.createElement)("time",{dateTime:Object(j.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(j.dateI18n)(C,e.date_gmt)))})))}}]),t}(r.Component),C=Object(_.withSelect)(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(h.pickBy)({categories:c,order:o,orderby:a,per_page:r},function(e){return!Object(h.isUndefined)(e)}))}})(k);n.d(t,"name",function(){return E}),n.d(t,"settings",function(){return x});var E="core/latest-posts",x={title:Object(o.__)("Latest Posts"),description:Object(o.__)("Display a list of your most recent posts."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(r.createElement)(a.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),category:"widgets",keywords:[Object(o.__)("recent posts")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:C,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(10),c=n(9),i=n(11),l=n(12),s=n(13),u=n(3),b=n(0),d=n(29),m=n.n(d),h=n(41),p=n.n(h),g=n(4),f=n(5),O=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).getYearMonth=p()(e.getYearMonth.bind(Object(u.a)(Object(u.a)(e))),{maxSize:1}),e.getServerSideAttributes=p()(e.getServerSideAttributes.bind(Object(u.a)(Object(u.a)(e))),{maxSize:1}),e}return Object(s.a)(t,e),Object(c.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=m()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(o.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object(b.createElement)(g.Disabled,null,Object(b.createElement)(g.ServerSideRender,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(b.Component),v=Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute;return{date:"post"===t("type")?t("date"):void 0}})(O);n.d(t,"name",function(){return j}),n.d(t,"settings",function(){return y});var j="core/calendar",y={title:Object(r.__)("Calendar"),description:Object(r.__)("A calendar of your site’s posts."),icon:"calendar",category:"widgets",keywords:[Object(r.__)("posts"),Object(r.__)("archive")],supports:{align:!0},edit:v,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(10),i=n(9),l=n(11),s=n(12),u=n(13),b=n(3),d=n(2),m=n(6),h=n(5),p=n(8),g=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(b.a)(Object(b.a)(e))),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(b.a)(Object(b.a)(e))),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter(function(t){return t.parent===e}):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(d.unescape)(e.name).trim():Object(o.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(r.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map(function(t){return e.renderCategoryListItem(t,0)}))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,o=this.props.attributes,a=o.showHierarchy,c=o.showPostCounts,i=this.getCategories(e.id);return Object(r.createElement)("li",{key:e.id},Object(r.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(r.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),a&&!!i.length&&Object(r.createElement)("ul",{className:this.getCategoryListClassName(t+1)},i.map(function(e){return n.renderCategoryListItem(e,t+1)})))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,a=this.getCategories(n),c="blocks-category-select-".concat(t);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("label",{htmlFor:c,className:"screen-reader-text"},Object(o.__)("Categories")),Object(r.createElement)("select",{id:c,className:"wp-block-categories__dropdown"},a.map(function(t){return e.renderCategoryDropdownItem(t,0)})))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,o=this.props.attributes,a=o.showHierarchy,c=o.showPostCounts,i=this.getCategories(e.id);return[Object(r.createElement)("option",{key:e.id},Object(d.times)(3*t,function(){return" "}),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),a&&!!i.length&&i.map(function(e){return n.renderCategoryDropdownItem(e,t+1)})]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,c=t.displayAsDropdown,i=t.showHierarchy,l=t.showPostCounts,s=Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Categories Settings")},Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display as Dropdown"),checked:c,onChange:this.toggleDisplayAsDropdown}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Hierarchy"),checked:i,onChange:this.toggleShowHierarchy}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Post Counts"),checked:l,onChange:this.toggleShowPostCounts})));return n?Object(r.createElement)(r.Fragment,null,s,Object(r.createElement)(a.Placeholder,{icon:"admin-post",label:Object(o.__)("Categories")},Object(r.createElement)(a.Spinner,null))):Object(r.createElement)(r.Fragment,null,s,Object(r.createElement)("div",{className:this.props.className},c?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(r.Component),f=Object(m.compose)(Object(h.withSelect)(function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}}),m.withInstanceId)(g);n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return v});var O="core/categories",v={title:Object(o.__)("Categories"),description:Object(o.__)("Display a list of all categories."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(r.createElement)(a.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(r.createElement)(a.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,alignWide:!1,html:!1},edit:f,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),a=n(1),c=n(14),i=n(4),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(8),p=n(18),g=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(m.a)(Object(m.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(m.a)(Object(m.a)(e))),e.state={defaultText:Object(a.__)("Read more")},e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===p.ENTER&&n([Object(c.createBlock)(Object(c.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(a.__)("The excerpt is hidden."):Object(a.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,o=this.props.setAttributes,c=this.state.defaultText,l=void 0!==t?t:c,s=l.length+1;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.InspectorControls,null,Object(r.createElement)(i.PanelBody,null,Object(r.createElement)(i.ToggleControl,{label:Object(a.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(r.createElement)("div",{className:"wp-block-more"},Object(r.createElement)("input",{type:"text",value:l,size:s,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(r.Component);n.d(t,"name",function(){return f}),n.d(t,"settings",function(){return O});var f="core/more",O={title:Object(a._x)("More","block name"),description:Object(a.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(i.G,null,Object(r.createElement)(i.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(c.createBlock)("core/more",o)}}]},edit:g,save:function(e){var t=e.attributes,n=t.customText,a=t.noTeaser,c=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",i=a?"\x3c!--noteaser--\x3e":"";return Object(r.createElement)(r.RawHTML,null,Object(o.compact)([c,i]).join("\n"))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(14),c=n(4);n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var i="core/nextpage",l={title:Object(o.__)("Page Break"),description:Object(o.__)("Separate your content into a multi-page experience."),icon:Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.G,null,Object(r.createElement)(c.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:"layout",keywords:[Object(o.__)("next page"),Object(o.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(a.createBlock)("core/nextpage",{})}}]},edit:function(){return Object(r.createElement)("div",{className:"wp-block-nextpage"},Object(r.createElement)("span",null,Object(o.__)("Page break")))},save:function(){return Object(r.createElement)(r.RawHTML,null,"\x3c!--nextpage--\x3e")}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(15),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(1),u=n(8),b=n(5),d=n(4),m=n(19),h=n(10),p=n(9),g=n(11),f=n(12),O=n(13),v=n(3),j="is-style-".concat("solid-color"),y=function(e){function t(e){var n;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(f.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(v.a)(Object(v.a)(n))),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(v.a)(Object(v.a)(n))),n}return Object(O.a)(t,e),Object(p.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setTextColor,a=t.setMainColor,c=t.className,i=Object(l.includes)(c,j),s=!r.color||this.wasTextColorAutomaticallyComputed,u=i&&s&&e;a(e),u&&(this.wasTextColorAutomaticallyComputed=!0,o(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,c=e.setAttributes,b=e.isSelected,d=e.className,h=t.value,p=t.citation,g=Object(l.includes)(d,j),f=g?{backgroundColor:n.color}:{borderColor:n.color},O={color:r.color},v=r.color?i()("has-text-color",Object(o.a)({},r.class,r.class)):void 0;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("figure",{style:f,className:i()(d,Object(o.a)({},n.class,g&&n.class))},Object(a.createElement)("blockquote",{style:O,className:v},Object(a.createElement)(u.RichText,{multiline:!0,value:h,onChange:function(e){return c({value:e})},placeholder:Object(s.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!u.RichText.isEmpty(p)||b)&&Object(a.createElement)(u.RichText,{value:p,placeholder:Object(s.__)("Write citation…"),onChange:function(e){return c({citation:e})},className:"wp-block-pullquote__citation"}))),Object(a.createElement)(u.InspectorControls,null,Object(a.createElement)(u.PanelColorSettings,{title:Object(s.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(s.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(s.__)("Text Color")}]},g&&Object(a.createElement)(u.ContrastChecker,Object(m.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(a.Component),_=Object(u.withColors)({mainColor:"background-color",textColor:"color"})(y);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var w={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"}},k="core/pullquote",C={title:Object(s.__)("Pullquote"),description:Object(s.__)("Give special visual emphasis to a quote from your text."),icon:Object(a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(a.createElement)(d.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(a.createElement)(d.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(a.createElement)(d.Polygon,{points:"21 4 2 4 2 6 21 6"})),category:"formatting",attributes:w,styles:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(s.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:_,save:function(e){var t,n,r=e.attributes,c=r.mainColor,s=r.customMainColor,d=r.textColor,m=r.customTextColor,h=r.value,p=r.citation,g=r.className;if(Object(l.includes)(g,j))(t=Object(u.getColorClassName)("background-color",c))||(n={backgroundColor:s});else if(s)n={borderColor:s};else if(c){var f=Object(l.get)(Object(b.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(u.getColorObjectByAttributeValues)(f,c).color}}var O=Object(u.getColorClassName)("color",d),v=d||m?i()("has-text-color",Object(o.a)({},O,O)):void 0,y=O?void 0:{color:m};return Object(a.createElement)("figure",{className:t,style:n},Object(a.createElement)("blockquote",{className:v,style:y},Object(a.createElement)(u.RichText.Content,{value:h,multiline:!0}),!u.RichText.isEmpty(p)&&Object(a.createElement)(u.RichText.Content,{tagName:"cite",value:p})))},deprecated:[{attributes:Object(r.a)({},w),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(a.createElement)("blockquote",null,Object(a.createElement)(u.RichText.Content,{value:n,multiline:!0}),!u.RichText.isEmpty(r)&&Object(a.createElement)(u.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(r.a)({},w,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(a.createElement)("blockquote",{className:"align".concat(o)},Object(a.createElement)(u.RichText.Content,{value:n,multiline:!0}),!u.RichText.isEmpty(r)&&Object(a.createElement)(u.RichText.Content,{tagName:"footer",value:r}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(8);n.d(t,"name",function(){return c}),n.d(t,"settings",function(){return i});var c="core/search",i={title:Object(r.__)("Search"),description:Object(r.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(r.__)("find")],edit:function(e){var t=e.className,n=e.attributes,c=e.setAttributes,i=n.label,l=n.placeholder,s=n.buttonText;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(r.__)("Label text"),placeholder:Object(r.__)("Add label…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:i,onChange:function(e){return c({label:e})}}),Object(o.createElement)("input",{className:"wp-block-search__input","aria-label":Object(r.__)("Optional placeholder text"),placeholder:l?void 0:Object(r.__)("Optional placeholder…"),value:l,onChange:function(e){return c({placeholder:e.target.value})}}),Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(r.__)("Button text"),placeholder:Object(r.__)("Add button text…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:s,onChange:function(e){return c({buttonText:e})}}))},save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(15),a=n(10),c=n(9),i=n(11),l=n(12),s=n(13),u=n(3),b=n(0),d=n(4),m=n(8),h=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(Object(u.a)(e))),e.onSubmitURL=e.onSubmitURL.bind(Object(u.a)(Object(u.a)(e))),e}return Object(s.a)(t,e),Object(c.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,o=t.columns,a=t.displayAuthor,c=t.displayExcerpt,i=t.displayDate,l=t.excerptLength,s=t.feedURL,u=t.itemsToShow,h=this.props.setAttributes;if(this.state.editing)return Object(b.createElement)(d.Placeholder,{icon:"rss",label:"RSS"},Object(b.createElement)("form",{onSubmit:this.onSubmitURL},Object(b.createElement)(d.TextControl,{placeholder:Object(r.__)("Enter URL here…"),value:s,onChange:function(e){return h({feedURL:e})},className:"components-placeholder__input"}),Object(b.createElement)(d.Button,{isLarge:!0,type:"submit"},Object(r.__)("Use URL"))));var p=[{icon:"edit",title:Object(r.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(r.__)("List View"),onClick:function(){return h({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(r.__)("Grid View"),onClick:function(){return h({blockLayout:"grid"})},isActive:"grid"===n}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(m.BlockControls,null,Object(b.createElement)(d.Toolbar,{controls:p})),Object(b.createElement)(m.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("RSS Settings")},Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Number of items"),value:u,onChange:function(e){return h({itemsToShow:e})},min:1,max:10,required:!0}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display author"),checked:a,onChange:this.toggleAttribute("displayAuthor")}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display date"),checked:i,onChange:this.toggleAttribute("displayDate")}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:l,onChange:function(e){return h({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Columns"),value:o,onChange:function(e){return h({columns:e})},min:2,max:6,required:!0}))),Object(b.createElement)(d.Disabled,null,Object(b.createElement)(d.ServerSideRender,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(b.Component);n.d(t,"name",function(){return p}),n.d(t,"settings",function(){return g});var p="core/rss",g={title:Object(r.__)("RSS"),description:Object(r.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(r.__)("atom"),Object(r.__)("feed")],supports:{html:!1},edit:h,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(10),c=n(9),i=n(11),l=n(12),s=n(13),u=n(3),b=n(0),d=n(2),m=n(4),h=n(5),p=n(8),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(u.a)(Object(u.a)(e))),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(u.a)(Object(u.a)(e))),e}return Object(s.a)(t,e),Object(c.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(d.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(r.__)("- Select -"),value:""},n=Object(d.map)(e,function(e){return{value:e.slug,label:e.name}});return[t].concat(Object(o.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,o=this.getTaxonomyOptions(),a=Object(b.createElement)(p.InspectorControls,null,Object(b.createElement)(m.PanelBody,{title:Object(r.__)("Tag Cloud Settings")},Object(b.createElement)(m.SelectControl,{label:Object(r.__)("Taxonomy"),options:o,value:t,onChange:this.setTaxonomy}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(b.createElement)(b.Fragment,null,a,Object(b.createElement)(m.ServerSideRender,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(b.Component),f=Object(h.withSelect)(function(e){return{taxonomies:e("core").getTaxonomies()}})(g);n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return v});var O="core/tag-cloud",v={title:Object(r.__)("Tag Cloud"),description:Object(r.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:f,save:function(){return null}}},,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"registerCoreBlocks",function(){return G});var r=n(17),o=(n(72),n(8),n(22),n(14)),a=n(138),c=n(230),i=n(235),l=n(208),s=n(234),u=n(242),b=n(236),d=n(243),m=n(246),h=n(247),p=n(240),g=n(209),f=n(210),O=n(237),v=n(110),j=n(232),y=n(241),_=n(229),w=n(244),k=n(245),C=n(231),E=n(212),x=n(136),S=n(248),T=n(249),R=n(213),A=n(250),N=n(233),B=n(252),I=n(251),P=n(214),L=n(215),M=n(216),z=n(217),H=n(239),D=n(218),F=n(219),U=n(220),V=n(238),W=n(253),q=n(139),G=function(){[a,c,i,s,E,l,L,u,b,d,m,h,p,g,f,O,v].concat(Object(r.a)(v.common),Object(r.a)(v.others),[j,window.wp&&window.wp.oldEditor?q:null,y,_,w,k,2===e.env.GUTENBERG_PHASE?C:null,x,S,T,R,A,B,I,P,N,M,z,H,W,D,F,U,V]).forEach(function(e){if(e){var t=e.name,n=e.settings;Object(o.registerBlockType)(t,n)}}),Object(o.setDefaultBlockName)(a.name),window.wp&&window.wp.oldEditor&&Object(o.setFreeformContentHandlerName)(q.name),Object(o.setUnregisteredTypeHandlerName)(x.name)}}.call(this,n(257))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var l,s=[],u=!1,b=-1;function d(){u&&l&&(u=!1,l.length?s=l.concat(s):b=-1,s.length&&m())}function m(){if(!u){var e=i(d);u=!0;for(var t=s.length;t;){for(l=s,s=[];++b1)for(var n=1;na?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,o),c&&e(n,c),r}()}()},287:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},288:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},289:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(26);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},291:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},292:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},293:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},299:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},3:function(e,t){!function(){e.exports=this.wp.components}()},300:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},301:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.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=c},302:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z"}));t.a=c},31:function(e,t){!function(){e.exports=this.wp.url}()},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},41:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},43:function(e,t){!function(){e.exports=this.moment}()},436:function(e,t,r){"use strict";r.r(t),r.d(t,"registerCoreBlocks",(function(){return Uu})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Wu}));var n={};r.r(n),r.d(n,"metadata",(function(){return Oe})),r.d(n,"name",(function(){return je})),r.d(n,"settings",(function(){return ye}));var o={};r.r(o),r.d(o,"metadata",(function(){return Kt})),r.d(o,"name",(function(){return $t})),r.d(o,"settings",(function(){return Yt}));var c={};r.r(c),r.d(c,"metadata",(function(){return mr})),r.d(c,"name",(function(){return dr})),r.d(c,"settings",(function(){return pr}));var a={};r.r(a),r.d(a,"metadata",(function(){return xr})),r.d(a,"name",(function(){return Sr})),r.d(a,"settings",(function(){return Pr}));var i={};r.r(i),r.d(i,"metadata",(function(){return bn})),r.d(i,"name",(function(){return mn})),r.d(i,"settings",(function(){return dn}));var l={};r.r(l),r.d(l,"metadata",(function(){return fn})),r.d(l,"name",(function(){return vn})),r.d(l,"settings",(function(){return On}));var s={};r.r(s),r.d(s,"metadata",(function(){return Cn})),r.d(s,"name",(function(){return En})),r.d(s,"settings",(function(){return xn}));var u={};r.r(u),r.d(u,"metadata",(function(){return Jn})),r.d(u,"name",(function(){return Xn})),r.d(u,"settings",(function(){return eo}));var b={};r.r(b),r.d(b,"metadata",(function(){return co})),r.d(b,"name",(function(){return ao})),r.d(b,"settings",(function(){return io}));var m={};r.r(m),r.d(m,"metadata",(function(){return go})),r.d(m,"name",(function(){return fo})),r.d(m,"settings",(function(){return vo}));var d={};r.r(d),r.d(d,"metadata",(function(){return ko})),r.d(d,"name",(function(){return Co})),r.d(d,"settings",(function(){return Eo}));var p={};r.r(p),r.d(p,"metadata",(function(){return zo})),r.d(p,"name",(function(){return Mo})),r.d(p,"settings",(function(){return Ro}));var h={};r.r(h),r.d(h,"metadata",(function(){return Jo})),r.d(h,"name",(function(){return Xo})),r.d(h,"settings",(function(){return ec}));var g={};r.r(g),r.d(g,"metadata",(function(){return nc})),r.d(g,"name",(function(){return oc})),r.d(g,"settings",(function(){return cc}));var f={};r.r(f),r.d(f,"metadata",(function(){return Rc})),r.d(f,"name",(function(){return Nc})),r.d(f,"settings",(function(){return Ac}));var v={};r.r(v),r.d(v,"name",(function(){return oa})),r.d(v,"settings",(function(){return ca})),r.d(v,"common",(function(){return aa})),r.d(v,"others",(function(){return ia}));var O={};r.r(O),r.d(O,"metadata",(function(){return pa})),r.d(O,"name",(function(){return ha})),r.d(O,"settings",(function(){return ga}));var j={};r.r(j),r.d(j,"metadata",(function(){return wa})),r.d(j,"name",(function(){return _a})),r.d(j,"settings",(function(){return ka}));var y={};r.r(y),r.d(y,"metadata",(function(){return Ua})),r.d(y,"name",(function(){return Wa})),r.d(y,"settings",(function(){return qa}));var w={};r.r(w),r.d(w,"metadata",(function(){return Ya})),r.d(w,"name",(function(){return Qa})),r.d(w,"settings",(function(){return Ja}));var _={};r.r(_),r.d(_,"metadata",(function(){return di})),r.d(_,"name",(function(){return pi})),r.d(_,"settings",(function(){return hi}));var k={};r.r(k),r.d(k,"metadata",(function(){return Bi})),r.d(k,"name",(function(){return zi})),r.d(k,"settings",(function(){return Mi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Ni})),r.d(C,"name",(function(){return Ai})),r.d(C,"settings",(function(){return Hi}));var E={};r.r(E),r.d(E,"metadata",(function(){return Fi})),r.d(E,"name",(function(){return Gi})),r.d(E,"settings",(function(){return Ui}));var x={};r.r(x),r.d(x,"metadata",(function(){return Zi})),r.d(x,"name",(function(){return Ki})),r.d(x,"settings",(function(){return $i}));var S={};r.r(S),r.d(S,"metadata",(function(){return Ji})),r.d(S,"name",(function(){return Xi})),r.d(S,"settings",(function(){return el}));var P={};r.r(P),r.d(P,"metadata",(function(){return dl})),r.d(P,"name",(function(){return pl})),r.d(P,"settings",(function(){return hl}));var T={};r.r(T),r.d(T,"metadata",(function(){return wl})),r.d(T,"name",(function(){return _l})),r.d(T,"settings",(function(){return kl}));var B={};r.r(B),r.d(B,"metadata",(function(){return El})),r.d(B,"name",(function(){return xl})),r.d(B,"settings",(function(){return Sl}));var z={};r.r(z),r.d(z,"metadata",(function(){return Tl})),r.d(z,"name",(function(){return Bl})),r.d(z,"settings",(function(){return zl}));var M={};r.r(M),r.d(M,"metadata",(function(){return Il})),r.d(M,"name",(function(){return Dl})),r.d(M,"settings",(function(){return Vl}));var R={};r.r(R),r.d(R,"metadata",(function(){return ql})),r.d(R,"name",(function(){return Zl})),r.d(R,"settings",(function(){return Kl}));var N={};r.r(N),r.d(N,"metadata",(function(){return Xl})),r.d(N,"name",(function(){return es})),r.d(N,"settings",(function(){return ts}));var A={};r.r(A),r.d(A,"metadata",(function(){return os})),r.d(A,"name",(function(){return cs})),r.d(A,"settings",(function(){return as}));var H={};r.r(H),r.d(H,"metadata",(function(){return us})),r.d(H,"name",(function(){return bs})),r.d(H,"settings",(function(){return ms}));var L={};r.r(L),r.d(L,"metadata",(function(){return Gs})),r.d(L,"name",(function(){return Us})),r.d(L,"settings",(function(){return Ws}));var I={};r.r(I),r.d(I,"metadata",(function(){return Zs})),r.d(I,"name",(function(){return Ks})),r.d(I,"settings",(function(){return $s}));var D={};r.r(D),r.d(D,"metadata",(function(){return Xs})),r.d(D,"name",(function(){return eu})),r.d(D,"settings",(function(){return tu}));var V={};r.r(V),r.d(V,"metadata",(function(){return uu})),r.d(V,"name",(function(){return bu})),r.d(V,"settings",(function(){return mu}));var F={};r.r(F),r.d(F,"metadata",(function(){return fu})),r.d(F,"name",(function(){return vu})),r.d(F,"settings",(function(){return Ou}));var G={};r.r(G),r.d(G,"metadata",(function(){return Eu})),r.d(G,"name",(function(){return xu})),r.d(G,"settings",(function(){return Su}));var U={};r.r(U),r.d(U,"metadata",(function(){return Mu})),r.d(U,"name",(function(){return Ru})),r.d(U,"settings",(function(){return Nu}));var W={};r.r(W),r.d(W,"metadata",(function(){return Du})),r.d(W,"name",(function(){return Vu})),r.d(W,"settings",(function(){return Fu}));var q=r(18),Z=r(5),K=(r(98),r(100),r(7)),$=r(10),Y=r(2),Q=r(1),J=r(0),X=r(6),ee=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),te=r(11),re=r.n(te);function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ce=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(J.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(J.createElement)("figure",{className:b},i?Object(J.createElement)("a",{href:i},m):m,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(J.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(J.createElement)("figure",{className:c?"align".concat(c):null},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(J.createElement)("img",Object(_e.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(J.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}}],Ee=r(44),xe=r(9),Se=r(31),Pe=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Te=r(204),Be=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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"})),ze=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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"})),Me=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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"})),Re=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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"})),Ne={foreground:"#1da1f2",src:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Ae={foreground:"#ff0000",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},He={foreground:"#3b5998",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Le=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Ie={foreground:"#0073AA",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},De={foreground:"#1db954",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Ve=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),Fe={foreground:"#1ab7ea",src:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Ge=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Ue={foreground:"#35465c",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.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"}))},We=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(J.createElement)(ue.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(J.createElement)(ue.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),qe=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(J.createElement)(ue.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(J.createElement)(ue.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(J.createElement)(ue.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(J.createElement)(ue.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Ze=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.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"})),Ke=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Ne,keywords:["tweet",Object(Q.__)("social")],description:Object(Q.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Ae,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:He,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Facebook post."),previewable:!1},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Le,keywords:[Object(Q.__)("image"),Object(Q.__)("social")],description:Object(Q.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Ie,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],responsive:!1,description:Object(Q.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:ze,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:De,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:Ve,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Fe,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],$e=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:qe,description:Object(Q.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Be,description:Object(Q.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Re,description:Object(Q.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Be,keywords:["polldaddy",Object(Q.__)("survey")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object($.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Ze,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Me,description:Object(Q.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Be,description:Object(Q.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Be,description:Object(Q.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Be,description:Object(Q.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:ze,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Be,description:Object(Q.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:Ge,description:Object(Q.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:ze,description:Object(Q.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Re,description:Object(Q.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Be,description:Object(Q.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Be,description:Object(Q.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Me,description:Object(Q.__)("Embed SmugMug content."),previewable:!1},patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:ze,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Be,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object($.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Q.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:"TikTok",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a TikTok video.")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Re,description:Object(Q.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Ue,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Re,description:Object(Q.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:We,keywords:[Object(Q.__)("ebook")],responsive:!1,description:Object(Q.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Ye=[{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"}],Qe=r(105),Je=r.n(Qe),Xe=r(60),et=r.n(Xe);function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},nt=function(e){return Object(Y.includes)(e,'class="wp-embedded-content"')},ot=function(e,t){var r=e.preview,n=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,r=[].concat(Object(q.a)(Ke),Object(q.a)($e));t1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r){for(var n={"wp-has-aspect-ratio":!1},o=0;o=b.ratio)return Je()(t,(u={},Object(Z.a)(u,b.className,r),Object(Z.a)(u,"wp-has-aspect-ratio",r),u))}return t}function at(e,t){var r=Object(J.createElement)("a",{href:e},e);t(Object($.createBlock)("core/paragraph",{content:Object(J.renderToString)(r)}))}var it=et()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(Y.kebabCase)(Object(Y.toLower)(""!==s?s:t));return nt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=ct(l,r,n&&o),c}));
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+var lt=function(e,t){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var st=function(){return(st=Object.assign||function(e){for(var t,r=1,n=arguments.length;ru*o?{width:u*o,height:u}:{width:s,height:s/o}}function dt(e,t,r,n,o){void 0===o&&(o=0);var c=_t(t.width,t.height,o),a=c.width,i=c.height;return{x:pt(e.x,a,r.width,n),y:pt(e.y,i,r.height,n)}}function pt(e,t,r,n){var o=t*n/2-r/2;return Math.min(o,Math.max(e,-o))}function ht(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function gt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function ft(e,t,r,n,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?vt:Ot,l={x:i(100,((t.width-r.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-r.height/o)/2-e.y/o)/t.height*100),width:i(100,r.width/t.width*100/o),height:i(100,r.height/t.height*100/o)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:st(st({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function vt(e,t){return Math.min(e,Math.max(0,t))}function Ot(e,t){return t}function jt(e,t,r){var n=t.width/t.naturalWidth,o=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),c=n*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function yt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function wt(e,t,r,n,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-r)*c(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*c(i)+n]}function _t(e,t,r){var n=e/2,o=t/2,c=[wt(0,0,n,o,r),wt(e,0,n,o,r),wt(e,t,n,o,r),wt(0,t,n,o,r)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-l}}function kt(){for(var e=[],t=0;t0})).join(" ").trim()}var Ct=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var o=jt(t,r.mediaSize,n),c=o.crop,a=o.zoom;r.props.onCropChange(c),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,o,c=r.imageRef||r.videoRef;if(c&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:c.offsetWidth,height:c.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(o=r.videoRef)||void 0===o?void 0:o.videoHeight)||0};var a=r.props.cropSize?r.props.cropSize:mt(c.offsetWidth,c.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);r.setState({cropSize:a},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,o=e.x,c=e.y;r.dragStartPosition={x:o,y:c},r.dragStartCrop=st({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,o=n-r.dragStartPosition.y,c={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},a=r.props.restrictPosition?dt(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),o=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(o,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,o=r.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(n+c.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),o=r.getPointOnMedia(n),c=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:o.x*c-n.x,y:o.y*c-n.y},i=r.props.restrictPosition?dt(a,r.mediaSize,r.state.cropSize,c,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(c)}},r.emitCropData=function(){if(r.state.cropSize){var e=ft(r.props.restrictPosition?dt(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?dt(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,o;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)===(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)&&(null===(n=e.cropSize)||void 0===n?void 0:n.width)===(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)||this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=ht(r,n),this.lastPinchRotation=gt(r,n),this.onDragStart(yt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=yt(n,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=ht(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,c),r.lastPinchDistance=e;var a=gt(n,o),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,o=t.mediaProps,c=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,h=d.cropAreaStyle,g=d.mediaStyle,f=t.classes,v=f.containerClassName,O=f.cropAreaClassName,j=f.mediaClassName;return bt.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:kt("reactEasyCrop_Container",v)},r?bt.a.createElement("img",st({alt:"",className:kt("reactEasyCrop_Image",j)},o,{src:r,ref:function(t){return e.imageRef=t},style:st(st({},g),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&bt.a.createElement("video",st({autoPlay:!0,loop:!0,muted:!0,className:kt("reactEasyCrop_Video",j)},o,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:st(st({},g),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&bt.a.createElement("div",{style:st(st({},h),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:kt("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",O)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(bt.a.Component),Et=r(155),xt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),St=r(291),Pt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),Tt=r(45),Bt=r.n(Tt),zt={position:"bottom right",isAlternate:!0};function Mt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,o=e.onClick,c=e.value;return Object(J.createElement)(ue.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(J.createElement)(ue.MenuItem,{key:n,isDisabled:r,onClick:function(){o(n)},role:"menuitemradio",isSelected:n===c,icon:n===c?Et.a:void 0},t)})))}function Rt(e){var t=e.isDisabled,r=e.onClick,n=e.value,o=e.defaultValue;return Object(J.createElement)(ue.DropdownMenu,{icon:xt,label:Object(Q.__)("Aspect Ratio"),popoverProps:zt,className:"wp-block-image__aspect-ratio"},(function(e){var c=e.onClose;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(Mt,{isDisabled:t,onClick:function(e){r(e),c()},value:n,aspectRatios:[{title:Object(Q.__)("Original"),aspect:o},{title:Object(Q.__)("Square"),aspect:1}]}),Object(J.createElement)(Mt,{label:Object(Q.__)("Landscape"),isDisabled:t,onClick:function(e){r(e),c()},value:n,aspectRatios:[{title:Object(Q.__)("16:10"),aspect:1.6},{title:Object(Q.__)("16:9"),aspect:16/9},{title:Object(Q.__)("4:3"),aspect:4/3},{title:Object(Q.__)("3:2"),aspect:1.5}]}),Object(J.createElement)(Mt,{label:Object(Q.__)("Portrait"),isDisabled:t,onClick:function(e){r(e),c()},value:n,aspectRatios:[{title:Object(Q.__)("10:16"),aspect:.625},{title:Object(Q.__)("9:16"),aspect:9/16},{title:Object(Q.__)("3:4"),aspect:3/4},{title:Object(Q.__)("2:3"),aspect:2/3}]}))}))}function Nt(e){var t=e.id,r=e.url,n=e.setAttributes,o=e.naturalWidth,c=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(be.useDispatch)("core/notices").createErrorNotice,b=Object(J.useState)(!1),m=Object(se.a)(b,2),d=m[0],p=m[1],h=Object(J.useState)(null),g=Object(se.a)(h,2),f=g[0],v=g[1],O=Object(J.useState)({x:0,y:0}),j=Object(se.a)(O,2),y=j[0],w=j[1],_=Object(J.useState)(100),k=Object(se.a)(_,2),C=k[0],E=k[1],x=Object(J.useState)(o/c),S=Object(se.a)(x,2),P=S[0],T=S[1],B=Object(J.useState)(0),z=Object(se.a)(B,2),M=z[0],R=z[1],N=Object(J.useState)(),A=Object(se.a)(N,2),H=A[0],L=A[1],I=a,D=i||l*c/o,V=o/c;return M%180==90&&(D=l*o/c,V=c/o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)("div",{className:re()("wp-block-image__crop-area",{"is-applying":d}),style:{width:I,height:D}},Object(J.createElement)(Ct,{image:H||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:C/100,aspect:P,onCropChange:w,onCropComplete:function(e){v(e)},onZoomChange:function(e){E(100*e)}}),d&&Object(J.createElement)(ue.Spinner,null)),Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:zt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(J.createElement)(ue.ToolbarButton,{icon:St.a,label:Object(Q.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(J.createElement)(ue.RangeControl,{min:100,max:300,value:Math.round(C),onChange:E})}}),Object(J.createElement)(ue.__experimentalToolbarItem,null,(function(e){return Object(J.createElement)(Rt,{toggleProps:e,isDisabled:d,onClick:T,value:P,defaultValue:o/c})}))),Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{icon:Pt,label:Object(Q.__)("Rotate"),onClick:function(){var e=(M+90)%360;if(0===e)return L(),R(e),T(1/P),void w({x:-y.y*V,y:y.x*V});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,o=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(o=r.height);var c=r.getContext("2d");c.translate(n,o),c.rotate(e*Math.PI/180),c.drawImage(t.target,0,0),r.toBlob((function(t){L(URL.createObjectURL(t)),R(e),T(1/P),w({x:-y.y*V,y:y.x*V})}))}},disabled:d})),Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),M>0&&(e.rotation=M),e.src=r,Bt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(Q.sprintf)(Object(Q.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Q.__)("Apply")),Object(J.createElement)(ue.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var At=["image"];function Ht(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,o=t.alt,c=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,h=t.linkTarget,g=t.sizeSlug,f=e.setAttributes,v=e.isSelected,O=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,w=e.onSelectURL,_=e.onUploadError,k=e.containerRef,C=Object(be.useSelect)((function(e){var t=e("core").getMedia;return i&&v?t(i):null}),[i,v]),E=Object(be.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(Y.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),x=E.imageEditing,S=E.imageSizes,P=E.isRTL,T=E.maxWidth,B=E.mediaUpload,z=Object(be.useDispatch)("core/block-editor").toggleSelection,M=Object(be.useDispatch)("core/notices"),R=M.createErrorNotice,N=M.createSuccessNotice,A=Object(xe.useViewportMatch)("medium"),H=Object(J.useState)(!1),L=Object(se.a)(H,2),I=L[0],D=L[1],V=Object(Y.includes)(["wide","full"],a),F=Object(J.useState)({}),G=Object(se.a)(F,2),U=G[0],W=U.naturalWidth,q=U.naturalHeight,Z=G[1],X=Object(J.useState)(!1),ee=Object(se.a)(X,2),te=ee[0],re=ee[1],ne=Object(J.useState)(),oe=Object(se.a)(ne,2),ce=oe[0],ae=oe[1],ie=function(e,t){var r=Object(J.useState)(),n=Object(se.a)(r,2),o=n[0],c=n[1];function a(){c(e.current.clientWidth)}return Object(J.useEffect)(a,t),Object(J.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),o}(k,[a]),le=!V&&A,me=Object(Y.map)(Object(Y.filter)(S,(function(e){var t=e.slug;return Object(Y.get)(C,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(J.useEffect)((function(){v||D(!1)}),[v]),Object(J.useEffect)((function(){Vt(i,n)&&v&&!ce&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return ae(e)}))}),[i,n,v,ce]),Object(J.useEffect)((function(){v||re(!1)}),[v]);var de,pe=i&&W&&q&&x,he=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,!te&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:C&&C.source_url,mediaLink:C&&C.link,linkTarget:h,linkClass:u,rel:s})),pe&&!te&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){return re(!0)},icon:Pe,label:Object(Q.__)("Crop")})),ce&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){B({filesList:[ce],onFileChange:function(e){var t=Object(se.a)(e,1)[0];y(t),Object(Ee.isBlobURL)(t.url)||(ae(),N(Object(Q.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:At,onError:function(e){R(e,{type:"snackbar"})}})},icon:Te.a,label:Object(Q.__)("Upload external image")})),!te&&Object(J.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:At,accept:"image/*",onSelect:y,onSelectURL:w,onError:_})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Image settings")},Object(J.createElement)(ue.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:o,onChange:function(e){f({alt:e})},help:Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),Object(J.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(Y.get)(C,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:g,width:d,height:p,imageSizeOptions:me,isResizable:le,imageWidth:W,imageHeight:q}))),Object(J.createElement)(K.InspectorAdvancedControls,null,Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(J.createElement)(J.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(J.createElement)(ue.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))}))),ge=function(e){var t=Object(Se.getPath)(e);if(t)return Object(Y.last)(t.split("/"))}(n);de=o||(ge?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),ge):Object(Q.__)("This image has an empty alt attribute"));var fe,ve,Oe=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:n,alt:de,onClick:function(){I&&D(!1)},onError:function(){var e;void 0!==(e=ot({attributes:{url:n}}))&&j(e)},onLoad:function(e){Z(Object(Y.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ee.isBlobURL)(n)&&Object(J.createElement)(ue.Spinner,null));if(ie&&W&&q){var je=W>ie;fe=je?ie:W,ve=je?ie*(q/W):q}if(pe&&te)Oe=Object(J.createElement)(Nt,{id:i,url:n,setAttributes:f,naturalWidth:W,naturalHeight:q,width:d,height:p,clientWidth:ie,setIsEditingImage:re});else if(le&&fe){var ye=d||fe,we=p||ve,_e=W/q,ke=W a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,lightBlockWrapper:!0}},$t=Kt.name,Yt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Zt,edit:Ft,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,h=r.title,g=Object(Y.isEmpty)(l)?void 0:l,f=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),v=Object(J.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),O=Object(J.createElement)(J.Fragment,null,i?Object(J.createElement)("a",{className:s,href:i,target:d,rel:g},v):v,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(J.createElement)("div",null,Object(J.createElement)("figure",{className:f},O)):Object(J.createElement)("figure",{className:f},O)},deprecated:Ce},Qt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t".concat(t,"
"),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object($.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object($.createBlock)("core/quote",{value:"".concat(e,"
")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&""!==t&&n.push.apply(n,Object(q.a)(Object(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(wr.toHTMLString)({value:e})})})))),r&&""!==r&&n.push(Object($.createBlock)("core/paragraph",{content:r})),0===n.length?Object($.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(yr.a)(e,["value","citation"]);if(""===t)return Object($.createBlock)("core/heading",{content:r});var o=Object(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object($.createBlock)("core/heading",{content:Object(wr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object($.createBlock)("core/quote",function(e){for(var t=1;t"+Object(Q.__)("In quoting others, we cite ourselves.")+"",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:kr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(J.createElement)(ue.BlockQuotation,{className:re()(a,Object(Z.a)({},"has-text-align-".concat(l),l))},Object(J.createElement)(K.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:o,onRemove:function(e){var t=!u||0===u.length;!e&&t&&c([])},placeholder:Object(Q.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object($.createBlock)("core/quote",function(e){for(var t=1;t"!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:Or},Tr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 Br(e){return Math.min(3,e.images.length)}var zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(Y.pick)(e,["alt","id","link","caption"]);r.url=Object(Y.get)(e,["sizes",t,"url"])||Object(Y.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(Y.get)(e,["sizes","full","url"])||Object(Y.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t0&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(Y.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return Rr({},e,{ids:Object(Y.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Br(t):n,c=t.imageCrop,a=t.linkTo;return Object(J.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Br(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(J.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(J.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(J.createElement)("a",{href:t},r):r)})))}}],Ar=r(20),Hr=r(19),Lr=r(12),Ir=r(23),Dr=r(16),Vr=r(22),Fr=r(81),Gr=Object(J.createElement)(K.BlockIcon,{icon:Tr}),Ur=r(293),Wr=r(292),qr=r(300),Zr=r(177);function Kr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var $r=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Kr()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Lr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Lr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Lr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Lr.a)(e)),e.onEdit=e.onEdit.bind(Object(Lr.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Lr.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Lr.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(Hr.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[or.BACKSPACE,or.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=zr(e,i);(function(e,t){return!e&&Object(Ee.isBlobURL)(t)})(n,o)&&c&&(l=Object(Y.omit)(l,["alt"])),a&&!Object(Y.get)(l,["caption"])&&(l=Object(Y.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,h=t["aria-label"],g=this.state.isEditing;switch(c){case"media":e=r;break;case"attachment":e=a}var f=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":h,ref:this.bindContainer}),Object(Ee.isBlobURL)(r)&&Object(J.createElement)(ue.Spinner,null)),v=re()({"is-selected":s,"is-transient":Object(Ee.isBlobURL)(r)});return Object(J.createElement)("figure",{className:v},!g&&(e?Object(J.createElement)("a",{href:e},f):f),g&&Object(J.createElement)(K.MediaPlaceholder,{labels:{title:Object(Q.__)("Edit gallery image")},icon:we,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:r}}),Object(J.createElement)(ue.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(J.createElement)(ue.Button,{icon:Ur.a,onClick:i?void 0:d,label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(J.createElement)(ue.Button,{icon:Wr.a,onClick:l?void 0:m,label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(J.createElement)(ue.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(J.createElement)(ue.Button,{icon:qr.a,onClick:this.onEdit,label:Object(Q.__)("Replace image"),disabled:!s}),Object(J.createElement)(ue.Button,{icon:Zr.a,onClick:b,label:Object(Q.__)("Remove image"),disabled:!s})),!g&&(s||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),n}(J.Component),Yr=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(be.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])($r);function Qr(e){var t=e.isHidden,r=Object(yr.a)(e,["isHidden"]);return t?Object(J.createElement)(ue.VisuallyHidden,Object(_e.a)({as:K.RichText},r)):Object(J.createElement)(K.RichText,r)}var Jr=function(e){var t,r=e.attributes,n=e.className,o=e.isSelected,c=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,h=e.insertBlocksAfter,g=r.align,f=r.columns,v=void 0===f?Br(r):f,O=r.caption,j=r.imageCrop,y=r.images;return Object(J.createElement)("figure",{className:re()(n,(t={},Object(Z.a)(t,"align".concat(g),g),Object(Z.a)(t,"columns-".concat(v),v),Object(Z.a)(t,"is-cropped",j),t))},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(J.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(J.createElement)(Yr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:o&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(J.createElement)(Qr,{isHidden:!o&&K.RichText.isEmpty(O),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return h(Object($.createBlock)("core/paragraph"))}}))};function Xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function en(e){for(var t=1;t0&&Object(Y.every)(n,(function(e){var t=e.url;return Object(Ee.isBlobURL)(t)}))){var o=Object(Y.map)(n,(function(e){var t=e.url;return Object(Ee.getBlobByURL)(t)}));Object(Y.forEach)(n,(function(e){var t=e.url;return Object(Ee.revokeBlobURL)(t)})),r({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.className,n=e.isSelected,o=e.noticeUI,c=e.insertBlocksAfter,a=t.columns,i=void 0===a?Br(t):a,l=t.imageCrop,s=t.images,u=t.linkTo,b=t.sizeSlug,m=!!s.length,d=Object(J.createElement)(K.MediaPlaceholder,{addToGallery:m,isAppender:m,className:r,disableMediaButtons:m&&!n,icon:!m&&Gr,labels:{title:!m&&Object(Q.__)("Gallery"),instructions:!m&&on},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:nn,multiple:!0,value:s,onError:this.onUploadError,notices:m?void 0:o,onFocus:this.props.onFocus});if(!m)return d;var p=this.getImagesSizeOptions(),h=m&&!Object(Y.isEmpty)(p);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Gallery settings")},s.length>1&&Object(J.createElement)(ue.RangeControl,Object(_e.a)({label:Object(Q.__)("Columns"),value:i,onChange:this.setColumnsNumber,min:1,max:Math.min(8,s.length)},cn,{required:!0})),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!l,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Link to"),value:u,onChange:this.setLinkTo,options:rn}),h&&Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Image size"),value:b,options:p,onChange:this.updateImagesSize}))),o,Object(J.createElement)(Jr,Object(_e.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onDeselectImage:this.onDeselectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption,insertBlocksAfter:c})))}}]),n}(J.Component),ln=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return n&&(l=Object(Y.reduce)(r,(function(e,t){if(!t)return e;var r=o(t),n=Object(Y.reduce)(a,(function(e,t){var n=Object(Y.get)(r,["sizes",t.slug,"url"]),o=Object(Y.get)(r,["media_details","sizes",t.slug,"source_url"]);return en({},e,Object(Z.a)({},t.slug,n||o))}),{});return en({},e,Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),ue.withNotices,Object(Fr.withViewportMatch)({isNarrow:"< small"})])(an);var sn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},un={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(Y.every)(e,["align",r])?r:void 0,n=Object(Y.every)(e,["sizeSlug",n])?n:void 0;var o=Object(Y.filter)(e,(function(e){return e.url}));return Object($.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,r=e.url,n=e.alt,o=e.caption;return{id:Object(Y.toString)(t),url:r,alt:n,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return sn(t).map((function(e){return{id:Object(Y.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return sn(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,r=void 0===t?"attachment":t;return"file"===r?"media":r}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Y.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object($.createBlock)("core/gallery",{images:e.map((function(e){return zr({url:Object(Ee.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object($.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:r,sizeSlug:n})})):Object($.createBlock)("core/image",{align:r})}}]},bn={name:"core/gallery",category:"media",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:{anchor:!0,align:!0}},mn=bn.name,dn={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:Tr,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:un,edit:ln,save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Br(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(J.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:Nr},pn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),hn=r(83),gn=r.n(hn);var fn={name:"core/archives",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},vn=fn.name,On={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:pn,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Archives settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(gn.a,{block:"core/archives",attributes:t})))}},jn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),yn=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],wn=["audio"];var _n=Object(ue.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(be.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function g(e){if(e!==d){var t=ot({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function f(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(J.useEffect)((function(){if(!l&&Object(Ee.isBlobURL)(d)){var e=Object(Ee.getBlobByURL)(d);e&&p({filesList:[e],onFileChange:function(e){var t=Object(se.a)(e,1)[0],r=t.id,o=t.url;n({id:r,src:o})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:wn})}}),[]),d?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:wn,accept:"audio/*",onSelect:v,onSelectURL:g,onError:f})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Audio settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Q.__)("Browser default")},{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(J.createElement)(K.__experimentalBlock.figure,null,Object(J.createElement)(ue.Disabled,null,Object(J.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||c)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object($.createBlock)("core/paragraph"))}}))):Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:jn}),onSelect:v,onSelectURL:g,accept:"audio/*",allowedTypes:wn,value:t,notices:a,onError:f}))}));var kn={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/audio",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Cn={name:"core/audio",category:"media",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,lightBlockWrapper:!0}},En=Cn.name,xn={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:jn,transforms:kn,deprecated:yn,edit:_n,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},Sn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 13h8v-1.5H8V13z"})),Pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object($.createBlock)("core/buttons",{},e.map((function(e){return Object($.createBlock)("core/button",e)})))}}]};function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,h=e.textColor,g=e.gradient,f=e.style,v=Object(K.getColorClassName)("background-color",p),O=Object(K.__experimentalGetGradientClass)(g),j=Object(K.getColorClassName)("color",h),y=re()(j,O,(a={},Object(Z.a)(a,v,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!v),Object(Z.a)(a,"has-text-color",h||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(o=f.color)||void 0===o?void 0:o.background)||g||(null==f||null===(c=f.color)||void 0===c?void 0:c.gradient)),a)),w=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var _=Object(K.getColorObjectByAttributeValues)(t,p);w.backgroundColor=_.color}if(h){var k=Object(K.getColorObjectByAttributeValues)(t,h);w.color=k.color}}return{className:y||void 0,style:w}}function Wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Y.unescape)(e.name).trim():Object(Q.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,r=this.getCategories(t);return Object(J.createElement)("ul",{className:this.getCategoryListClassName(0)},r.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return Object(J.createElement)("li",{key:e.id},Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(J.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(J.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return r.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,r=this.props.attributes.showHierarchy?0:null,n=this.getCategories(r),o="blocks-category-select-".concat(t);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.VisuallyHidden,{as:"label",htmlFor:o},Object(Q.__)("Categories")),Object(J.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},n.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return[Object(J.createElement)("option",{key:e.id},Object(Y.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return r.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.isRequesting,n=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Categories settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:n,onChange:this.toggleDisplayAsDropdown}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return r?Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)(ue.Placeholder,{icon:jo,label:Object(Q.__)("Categories")},Object(J.createElement)(ue.Spinner,null))):Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)("div",{className:this.props.className},n?this.renderCategoryDropdown():this.renderCategoryList()))}}]),n}(J.Component),_o=Object(xe.compose)(Object(be.withSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}})),xe.withInstanceId)(wo),ko={name:"core/categories",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},Co=ko.name,Eo={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:Oo,example:{},edit:_o},xo=r(301);var So=r(89);function Po(e){return e.replace(/\[/g,"[")}function To(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Bo={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object($.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object($.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},zo={name:"core/code",category:"text",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{anchor:!0,html:!1,lightBlockWrapper:!0}},Mo=zo.name,Ro={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:xo.a,example:{attributes:{content:Object(Q.__)('// 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:Bo,edit:function(e){var t=e.attributes,r=e.setAttributes;return Object(J.createElement)(K.__experimentalBlock.pre,null,Object(J.createElement)(K.PlainText,{__experimentalVersion:2,tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(J.createElement)("pre",null,Object(J.createElement)("code",null,(t=r.content,Object(Y.flow)(So.escapeEditableHTML,Po,To)(t||""))))}},No=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ho(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Lo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lo(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw o}}}}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Y.sumBy)(e,(function(e){return Fo(e,t)}))}function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Fo(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Wo(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Go(e,r),o=t-n,c=o/e.length;return Object(Y.mapValues)(Uo(e,r),(function(e){return Vo(e+c)}))}function qo(e,t){return e.map((function(e){return Object(Y.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Zo=["core/column"];var Ko=Object(be.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>n;if(s&&l){var u=Vo(100/o),b=Wo(i,100-u);i=[].concat(Object(q.a)(qo(i,b)),Object(q.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column")}))));else{if(i=Object(Y.dropRight)(i,n-o),l)i=qo(i,Wo(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=re()(Object(Z.a)({},"are-vertically-aligned-".concat(c),c));return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,null,Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:2,max:Math.max(6,a)}),a>6&&Object(J.createElement)(ue.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(J.createElement)(K.InnerBlocks,{allowedBlocks:Zo,orientation:"horizontal",__experimentalTagName:K.__experimentalBlock.div,__experimentalPassedProps:{className:i},renderAppender:!1}))})),$o=function e(t){return Object(Y.map)(t,(function(t){var r=Object(se.a)(t,3),n=r[0],o=r[1],c=r[2],a=void 0===c?[]:c;return Object($.createBlock)(n,o,e(a))}))},Yo=function(e){var t=e.clientId,r=e.name,n=Object(be.useSelect)((function(e){var n=e("core/blocks"),o=n.getBlockVariations,c=n.getBlockType,a=n.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:a(r,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(r,"block")}}),[t,r]),o=n.blockType,c=n.defaultVariation,a=n.hasInnerBlocks,i=n.variations,l=Object(be.useDispatch)("core/block-editor").replaceInnerBlocks;return a?Object(J.createElement)(Ko,e):Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(Y.get)(o,["icon","src"]),label:Object(Y.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,$o(t.innerBlocks))},allowSkip:!0}))};var Qo=[{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("30 / 70"),description:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:33.33}],["core/column",{width:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("70 / 30"),description:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:66.66}],["core/column",{width:33.33}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("33 / 33 / 33"),description:Object(Q.__)("Three columns; equal split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("25 / 50 / 25"),description:Object(Q.__)("Three columns; wide center column"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]],scope:["block"]}],Jo={name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,lightBlockWrapper:!0,__experimentalColor:{gradients:!0,linkColor:!0}}},Xo=Jo.name,ec={title:Object(Q.__)("Columns"),icon:No,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Qo,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("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(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("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(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Do,edit:Yo,save:function(e){var t=e.attributes.verticalAlignment,r=re()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(J.createElement)("div",{className:r||void 0},Object(J.createElement)(K.InnerBlocks.Content,null))}},tc=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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 rc=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=e.setAttributes,c=e.clientId,a=re()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),i=Object(be.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(c).length>0,rootClientId:n(c)}}),[c]),l=i.hasChildBlocks,s=i.rootClientId,u=Object(be.useDispatch)("core/block-editor").updateBlockAttributes,b=Number.isFinite(n);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){o({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:r})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Column settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Percentage width"),value:n||"",onChange:function(e){o({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===n?Object(Q.__)("Auto"):void 0}))),Object(J.createElement)(K.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:function(){return Object(J.createElement)(K.InnerBlocks.ButtonBlockAppender,null)},__experimentalTagName:K.__experimentalBlock.div,__experimentalPassedProps:{className:a,style:b?{flexBasis:n+"%"}:void 0}}))};var nc={name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},supports:{anchor:!0,reusable:!1,html:!1,lightBlockWrapper:!0}},oc=nc.name,cc={title:Object(Q.__)("Column"),icon:tc,description:Object(Q.__)("A single column within a columns block."),edit:rc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=re()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(J.createElement)("div",{className:c,style:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},ac=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"}));function ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var lc={"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 sc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var uc=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function bc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function mc(e){return function(t){if(t&&t.url){var r;if(t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(J.useState)(!1),c=Object(se.a)(o,2),a=c[0],i=c[1];return Object(J.useEffect)((function(){e&&t<=50&&n.current&&Sc().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(J.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(wc()(r).isDark())}}),[r,t>50||!e,i]),Object(J.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(y,h,l.color,x),P=Object(J.useState)(null),T=Object(se.a)(P,2),B=T[0],z=T[1],M=b.removeAllNotices,R=b.createErrorNotice,N=O?"".concat(v).concat(O):v,A=kc({},"image"===p?sc(y):{},{backgroundColor:l.color,minHeight:B||N||void 0});k&&!y&&(A.background=k),g&&(A.backgroundPosition="".concat(100*g.x,"% ").concat(100*g.y,"%"));var H=!!(y||l.color||k),L=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,H&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:m,onChange:function(e){return c({contentPosition:e})}}),Object(J.createElement)(K.MediaReplaceFlow,{mediaId:d,mediaURL:y,allowedTypes:Cc,accept:"image/*,video/*",onSelect:E}))),Object(J.createElement)(K.InspectorControls,null,!!y&&Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Media settings")},"image"===p&&Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:f,onChange:function(){c(kc({hasParallax:!f},f?{}:{focalPoint:void 0}))}}),"image"===p&&!f&&Object(J.createElement)(ue.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:y,value:g,onChange:function(e){return c({focalPoint:e})}}),"video"===p&&Object(J.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:y}),Object(J.createElement)(ue.PanelRow,null,Object(J.createElement)(ue.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(Q.__)("Clear Media")))),H&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Dimensions")},Object(J.createElement)(Pc,{value:B||v,unit:O,onChange:function(e){return c({minHeight:e})},onUnitChange:function(e){c({minHeightUnit:e})}})),Object(J.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:l.color,gradientValue:k,onColorChange:s,onGradientChange:C,label:Object(Q.__)("Color")}]},!!y&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return c({dimRatio:e})},min:0,max:100,required:!0})))));if(!H){var I=Object(J.createElement)(K.BlockIcon,{icon:ac}),D=Object(Q.__)("Cover");return Object(J.createElement)(J.Fragment,null,L,Object(J.createElement)(K.__experimentalBlock.div,{className:"is-placeholder"},Object(J.createElement)(K.MediaPlaceholder,{icon:I,labels:{title:D,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:E,accept:"image/*,video/*",allowedTypes:Cc,notices:i,onError:function(e){M(),R(e)}},Object(J.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(J.createElement)(K.ColorPalette,{disableCustomColors:!0,value:l.color,onChange:s,clearable:!1})))))}var V=re()(bc(h),(t={"is-dark-theme":S,"has-background-dim":0!==h,"has-parallax":f},Object(Z.a)(t,l.class,l.class),Object(Z.a)(t,"has-background-gradient",k),Object(Z.a)(t,_,!y&&_),Object(Z.a)(t,"has-custom-content-position",!pc(m)),t),dc(m));return Object(J.createElement)(J.Fragment,null,L,Object(J.createElement)(K.__experimentalBlock.div,{className:V,"data-url":y,style:A},Object(J.createElement)(xc,{values:null==j||null===(r=j.spacing)||void 0===r?void 0:r.padding,showValues:null==j||null===(n=j.visualizers)||void 0===n?void 0:n.padding}),Object(J.createElement)(Bc,{className:"block-library-cover__resize-container",onResizeStart:function(){c({minHeightUnit:"px"}),u(!1)},onResize:z,onResizeStop:function(e){u(!0),c({minHeight:e}),z(null)},showHandle:a}),"image"===p&&Object(J.createElement)("img",{ref:x,"aria-hidden":!0,alt:"",style:{display:"none"},src:y}),y&&k&&0!==h&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",_),style:{background:k}}),"video"===p&&Object(J.createElement)("video",{ref:x,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:y}),Object(J.createElement)(K.InnerBlocks,{__experimentalTagName:"div",__experimentalPassedProps:{className:"wp-block-cover__inner-container"},template:Ec})))}));var Mc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o,backgroundType:"video",anchor:c})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/image",{caption:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/video",{caption:t,src:r,id:o,align:n,anchor:c})}}]},Rc={name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,lightBlockWrapper:!0,__experimentalPadding:!0}},Nc=Rc.name,Ac={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:ac,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(Q.__)("Snow Patrol"),align:"center"}}]},transforms:Mc,save:function(e){var t,r=e.attributes,n=r.backgroundType,o=r.gradient,c=r.contentPosition,a=r.customGradient,i=r.customOverlayColor,l=r.dimRatio,s=r.focalPoint,u=r.hasParallax,b=r.overlayColor,m=r.url,d=r.minHeight,p=r.minHeightUnit,h=Object(K.getColorClassName)("background-color",b),g=Object(K.__experimentalGetGradientClass)(o),f=p?"".concat(d).concat(p):d,v="image"===n?sc(m):{};h||(v.backgroundColor=i),s&&!u&&(v.backgroundPosition="".concat(Math.round(100*s.x),"% ").concat(Math.round(100*s.y),"%")),a&&!m&&(v.background=a),v.minHeight=f||void 0;var O=re()(bc(l),h,(t={"has-background-dim":0!==l,"has-parallax":u,"has-background-gradient":o||a},Object(Z.a)(t,g,!m&&g),Object(Z.a)(t,"has-custom-content-position",!pc(c)),t),dc(c));return Object(J.createElement)("div",{className:O,style:v},m&&(o||a)&&0!==l&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",g),style:a?{background:a}:void 0}),"video"===n&&m&&Object(J.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},edit:zc,deprecated:vc},Hc=r(299),Lc=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,r&&Object(J.createElement)(ue.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Hc.a,onClick:i}))),n&&t&&Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},Ic=function(){return Object(J.createElement)("div",{className:"wp-block-embed is-loading"},Object(J.createElement)(ue.Spinner,null),Object(J.createElement)("p",null,Object(Q.__)("Embedding…")))},Dc=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(J.createElement)(ue.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(J.createElement)("form",{onSubmit:o},Object(J.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:c}),Object(J.createElement)(ue.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(J.createElement)("div",{className:"components-placeholder__learn-more"},Object(J.createElement)(ue.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(J.createElement)("div",{className:"components-placeholder__error"},Object(J.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(J.createElement)(ue.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(J.createElement)(ue.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function Vc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fc=window.FocusEvent,Gc=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Vc()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Lr.a)(e)),e.node=Object(J.createRef)(),e}return Object(Hr.a)(n,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Fc("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(J.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),n}(J.Component),Uc=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Gc);function Wc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var qc=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Wc()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Lr.a)(e)),e.state={interactive:!1},e}return Object(Hr.a)(n,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,h=o.scripts,g=this.state.interactive,f="photo"===i?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,r=Object(J.createElement)("p",null,Object(J.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(J.renderToString)(r)):o.html,v=new URL(a).host.split("."),O=v.splice(v.length-2,v.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),O),y=Je()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(J.createElement)(Uc,{html:f}):Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},Object(J.createElement)(ue.SandBox,{html:f,scripts:h,title:j,type:y,onFocus:this.hideOverlay}),!g&&Object(J.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(J.createElement)("figure",{className:Je()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?w:Object(J.createElement)(ue.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(J.createElement)("p",{className:"components-placeholder__error"},Object(J.createElement)("a",{href:a},a)),Object(J.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),O))),(!K.RichText.isEmpty(l)||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object($.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),n}(J.Component);function Zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kc(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(o){var c=o.attributes,a=o.cannotEmbed,i=o.fetching,l=o.isSelected,s=o.onReplace,u=o.preview,b=o.setAttributes,m=o.themeSupportsResponsive,d=o.tryAgain,p=o.insertBlocksAfter,h=Object(J.useState)(c.url),g=Object(se.a)(h,2),f=g[0],v=g[1],O=Object(J.useState)(!1),j=Object(se.a)(O,2),y=j[0],w=j[1],_=function(){var t=c.className,n=c.allowResponsive;return Kc({},c,{},it(u,e,t,r,n))};if(Object(J.useEffect)((function(){if((null==u?void 0:u.html)&&a&&!i){var e=c.url.replace(/\/$/,"");v(e),w(!1),b({url:e})}}),[null==u?void 0:u.html,c.url]),Object(J.useEffect)((function(){u&&!y&&function(){if(b(_()),s){var e=ot(o,_());e&&s(e)}}()}),[u,y]),i)return Object(J.createElement)(Ic,null);var k=Object(Q.sprintf)(Object(Q.__)("%s URL"),e);if(!u||a||y)return Object(J.createElement)(Dc,{icon:t,label:k,onSubmit:function(e){e&&e.preventDefault(),w(!1),b({url:f})},value:f,cannotEmbed:a,onChange:function(e){return v(e.target.value)},fallback:function(){return at(f,s)},tryAgain:d});var C=_(),E=C.caption,x=C.type,S=C.allowResponsive,P=re()(C.className,o.className);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(Lc,{showEditButton:u&&!a,themeSupportsResponsive:m,blockSupportsResponsive:r,allowResponsive:S,getResponsiveHelp:$c,toggleResponsive:function(){var e=c.allowResponsive,t=c.className,n=u.html,o=!e;b({allowResponsive:o,className:ct(n,t,r&&o)})},switchBackToURLInput:function(){return w(!0)}}),Object(J.createElement)(qc,{preview:u,previewable:n,className:P,url:f,type:x,caption:E,onCaptionChange:function(e){return b({caption:e})},isSelected:l,icon:t,label:k,insertBlocksAfter:p}))}}function Qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jc(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ee.createBlobURL)(e);t.push(Object($.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object($.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object($.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object($.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"audio")},transform:function(e){return Object($.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"video")},transform:function(e){return Object($.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"image")},transform:function(e){return Object($.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},pa={name:"core/file",category:"media",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]"}},supports:{anchor:!0,align:!0}},ha=pa.name,ga={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:la,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:da,edit:ma,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(J.createElement)("div",null,!K.RichText.isEmpty(n)&&Object(J.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(J.createElement)(K.RichText.Content,{value:n})),a&&Object(J.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(J.createElement)(K.RichText.Content,{value:i})))}},fa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function va(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Oa=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(va()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(Lr.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(q.a)(Object(K.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.setAttributes,o=this.state,c=o.isPreview,a=o.styles;return Object(J.createElement)("div",{className:"wp-block-html"},Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{className:"components-tab-button",isPressed:!c,onClick:this.switchToHTML},Object(J.createElement)("span",null,"HTML")),Object(J.createElement)(ue.ToolbarButton,{className:"components-tab-button",isPressed:c,onClick:this.switchToPreview},Object(J.createElement)("span",null,Object(Q.__)("Preview"))))),Object(J.createElement)(ue.Disabled.Consumer,null,(function(t){return c||t?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.SandBox,{html:r.content,styles:a}),!e.props.isSelected&&Object(J.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(J.createElement)(K.PlainText,{value:r.content,onChange:function(e){return n({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))}}]),n}(J.Component),ja=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(Oa);var ya={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object($.createBlock)("core/html",{content:t})}}]},wa={name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},_a=wa.name,ka={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:fa,keywords:[Object(Q.__)("embed")],example:{attributes:{content:""}},edit:ja,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.content)},transforms:ya},Ca=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),Ea=Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(J.createElement)(ue.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(J.createElement)(ue.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),xa=["image","video"];function Sa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Pa(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(yr.a)(e,["isSelected","isStackedOnMobile"]),o=Object(xe.useViewportMatch)("small","<");return Object(J.createElement)(ue.ResizableBox,Object(_e.a)({showHandle:t&&(!o||!r)},n))}function Ta(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:xa,accept:"image/*,video/*",onSelect:n}))}function Ba(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,o=e.onSelectMedia;return Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:Ea}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:xa,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var za=Object(ue.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,o=e.imageFill,c=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,h=Object(be.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var g={right:"left"===s,left:"right"===s},f="image"===u&&o?Sa(b,n):{},v={image:function(){return Object(J.createElement)("img",{src:b,alt:i})},video:function(){return Object(J.createElement)("video",{controls:!0,src:b})}};return Object(J.createElement)(Pa,{as:"figure",className:re()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:g,onResizeStart:function(){h(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){h(!0),r(parseInt(n.style.width))},axis:"x",isSelected:c,isStackedOnMobile:a},Object(J.createElement)(Ta,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(v[u]||Y.noop)())}return Object(J.createElement)(Ba,e)}));function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ra(e){for(var t=1;tEarns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ga,edit:Fa,save:function(e){var t,r=e.attributes,n=r.isStackedOnMobile,o=r.mediaAlt,c=r.mediaPosition,a=r.mediaType,i=r.mediaUrl,l=r.mediaWidth,s=r.mediaId,u=r.verticalAlignment,b=r.imageFill,m=r.focalPoint,d=r.linkClass,p=r.href,h=r.linkTarget,g=r.rel,f=Object(Y.isEmpty)(g)?void 0:g,v=Object(J.createElement)("img",{src:i,alt:o,className:s&&"image"===a?"wp-image-".concat(s):null});p&&(v=Object(J.createElement)("a",{className:d,href:p,target:h,rel:f},v));var O,j={image:function(){return v},video:function(){return Object(J.createElement)("video",{controls:!0,src:i})}},y=re()((t={"has-media-on-the-right":"right"===c,"is-stacked-on-mobile":n},Object(Z.a)(t,"is-vertically-aligned-".concat(u),u),Object(Z.a)(t,"is-image-fill",b),t)),w=b?Sa(i,m):{};50!==l&&(O="right"===c?"auto ".concat(l,"%"):"".concat(l,"% auto"));var _={gridTemplateColumns:O};return Object(J.createElement)("div",{className:y,style:_},Object(J.createElement)("figure",{className:"wp-block-media-text__media",style:w},(j[a]||Y.noop)()),Object(J.createElement)("div",{className:"wp-block-media-text__content"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ha},Za=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function Ka(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var $a=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Ka()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).setCommentsToShow=e.setCommentsToShow.bind(Object(Lr.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Hr.a)(n,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,r=e.displayAvatar,n=e.displayDate,o=e.displayExcerpt;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display date"),checked:n,onChange:this.toggleDisplayDate}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(gn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),n}(J.Component),Ya={name:"core/latest-comments",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},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}},Qa=Ya.name,Ja={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:Za,keywords:[Object(Q.__)("recent comments")],example:{},edit:$a},Xa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ti(e){for(var t=1;ty?o.slice(0,y):o,B=[{icon:oi,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===h},{icon:ci.a,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===h}],z=Object(ni.__experimentalGetSettings)().formats.date;return Object(J.createElement)(J.Fragment,null,S,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,{controls:B})),Object(J.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":p},"columns-".concat(g),"grid"===h))},T.map((function(e,t){var r=Object(Y.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=s.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=n,n=c.textContent||c.innerText||"";var a=e.featuredImageSourceUrl,i=re()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(_),!!_)),l=w0?i.map((function(e){return e.id})):[],g=u("postType","post",Object(Y.pickBy)({categories:h,author:l,order:c,orderby:a,per_page:o},(function(e){return!Object(Y.isUndefined)(e)}))),f=d.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:Object(Y.get)(p,[n,"width"],0),defaultImageHeight:Object(Y.get)(p,[n,"height"],0),imageSizeOptions:f,latestPosts:Array.isArray(g)?g.map((function(e){if(e.featured_media){var t=b(e.featured_media),r=Object(Y.get)(t,["media_details","sizes",n,"source_url"],null);return r||(r=Object(Y.get)(t,"source_url",null)),ii({},e,{featuredImageSourceUrl:r})}return e})):g}}))(bi),di={name:"core/latest-posts",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},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}},supports:{align:!0,html:!1}},pi=di.name,hi={title:Object(Q.__)("Latest Posts"),description:Object(Q.__)("Display a list of your most recent posts."),icon:Xa,keywords:[Object(Q.__)("recent posts")],example:{},edit:mi,deprecated:ri},gi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),fi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),vi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),Oi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),ji=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),yi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),wi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),_i=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),ki=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Ordered list settings")},Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Ci(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xi(e){for(var t=1;t1?n:Object(wr.replace)(n,/\n/g,wr.__UNSTABLE_LINE_SEPARATOR)})),wr.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object($.createBlock)("core/list",{values:Object(wr.toHTMLString)({value:Object(wr.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Si(e).ol,ul:Si(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object($.createBlock)("core/list",xi({},Object($.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{values:"".concat(e,"")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{ordered:!0,values:"".concat(e,"")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(wr.split)(Object(wr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),wr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(wr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object($.createBlock)("core/quote",{value:Object(wr.toHTMLString)({value:Object(wr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object($.createBlock)("core/pullquote",{value:Object(wr.toHTMLString)({value:Object(wr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Bi={name:"core/list",category:"text",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}},supports:{anchor:!0,className:!1,__unstablePasteTextInline:!0,lightBlockWrapper:!0}},zi=Bi.name,Mi={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:oi,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],example:{attributes:{values:"Alice.The White Rabbit.The Cheshire Cat.The Mad Hatter.The Queen of Hearts."}},transforms:Pi,merge:function(e,t){var r=t.values;return r&&""!==r?function(e){for(var t=1;t".concat(t,""),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&""!==t&&n.push.apply(n,Object(q.a)(Object(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(wr.toHTMLString)({value:e})})})))),r&&""!==r&&n.push(Object($.createBlock)("core/paragraph",{content:r})),0===n.length?Object($.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(yr.a)(e,["value","citation"]);if(""===t)return Object($.createBlock)("core/heading",{content:r});var o=Object(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object($.createBlock)("core/heading",{content:Object(wr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object($.createBlock)("core/pullquote",function(e){for(var t=1;t"+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid color")}],transforms:ml,edit:ul,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(Y.includes)(u,rl)){var b=Object(K.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(J.createElement)("figure",{className:t,style:r},Object(J.createElement)("blockquote",{className:d,style:p},Object(J.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(J.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:il};function gl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var fl=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(gl()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).titleField=Object(J.createRef)(),e.editButton=Object(J.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(Lr.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(Lr.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===or.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,r=e.title,n=e.isSaving,o=e.isEditDisabled,c=e.onEdit,a=e.instanceId;return Object(J.createElement)(J.Fragment,null,!t&&!n&&Object(J.createElement)("div",{className:"reusable-block-edit-panel"},Object(J.createElement)("b",{className:"reusable-block-edit-panel__info"},r),Object(J.createElement)(ue.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:c},Object(Q.__)("Edit"))),(t||n)&&Object(J.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(J.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(J.createElement)("input",{ref:this.titleField,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:r,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(J.createElement)(ue.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!r||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}}]),n}(J.Component),vl=Object(xe.withInstanceId)(fl);function Ol(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var jl=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Ol()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(e){var t,o=e.reusableBlock;return Object(Ar.a)(this,n),(t=r.apply(this,arguments)).startEditing=t.startEditing.bind(Object(Lr.a)(t)),t.stopEditing=t.stopEditing.bind(Object(Lr.a)(t)),t.setBlocks=t.setBlocks.bind(Object(Lr.a)(t)),t.setTitle=t.setTitle.bind(Object(Lr.a)(t)),t.save=t.save.bind(Object(Lr.a)(t)),t.state=o?{isEditing:o.isTemporary,title:o.title,blocks:Object($.parse)(o.content)}:{isEditing:!1,title:null,blocks:[]},t}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object($.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object($.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,r=e.onSave,n=this.state,o=n.blocks;t({title:n.title,content:Object($.serialize)(o)}),r(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,r=e.reusableBlock,n=e.isFetching,o=e.isSaving,c=e.canUpdateBlock,a=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!r&&n)return Object(J.createElement)(ue.Placeholder,null,Object(J.createElement)(ue.Spinner,null));if(!r)return Object(J.createElement)(ue.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable."));var b=Object(J.createElement)(K.BlockEditorProvider,{settings:a,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(J.createElement)(K.WritingFlow,null,Object(J.createElement)(K.BlockList,null)));return l||(b=Object(J.createElement)(ue.Disabled,null,b)),Object(J.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(J.createElement)(vl,{isEditing:l,title:null!==s?s:r.title,isSaving:o&&!r.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),n}(J.Component),yl=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=e("core/editor"),n=r.__experimentalGetReusableBlock,o=r.__experimentalIsFetchingReusableBlock,c=r.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=n(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var r=e("core/editor"),n=r.__experimentalFetchReusableBlocks,o=r.__experimentalUpdateReusableBlock,c=r.__experimentalSaveReusableBlock,a=t.attributes.ref;return{fetchReusableBlock:Object(Y.partial)(n,a),onChange:Object(Y.partial)(o,a),onSave:Object(Y.partial)(c,a)}}))])(jl),wl={name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},_l=wl.name,kl={title:Object(Q.__)("Reusable Block"),description:Object(Q.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:yl},Cl=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"}));var El={name:"core/rss",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},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}},xl=El.name,Sl={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:Cl,keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(J.useState)(!t.feedURL),o=Object(se.a)(n,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function h(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}if(c)return Object(J.createElement)(ue.Placeholder,{icon:Cl,label:"RSS"},Object(J.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(J.createElement)(ue.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(J.createElement)(ue.Button,{isPrimary:!0,type:"submit"},Object(Q.__)("Use URL"))));var g=[{icon:Hc.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:oi,title:Object(Q.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:ci.a,title:Object(Q.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,{controls:g})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("RSS settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display author"),checked:s,onChange:h("displayAuthor")}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display date"),checked:u,onChange:h("displayDate")}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:b,onChange:h("displayExcerpt")}),b&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(gn.a,{block:"core/rss",attributes:t})))}};var Pl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Q.__)("Search"),label:Object(Q.__)("Search")}}],Tl={name:"core/search",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},label:{type:"string"},placeholder:{type:"string",default:""},buttonText:{type:"string"}},supports:{align:!0,html:!1}},Bl=Tl.name,zl={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:St.a,keywords:[Object(Q.__)("find")],example:{},variations:Pl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=r.label,c=r.placeholder,a=r.buttonText;return Object(J.createElement)("div",{className:t},Object(J.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return n({label:e})}}),Object(J.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:c?void 0:Object(Q.__)("Optional placeholder…"),value:c,onChange:function(e){return n({placeholder:e.target.value})}}),Object(J.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({buttonText:e})}}))}},Ml=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nl(e){for(var t=1;tt.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object($.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object($.createBlock)("core/group",{align:r},n)}}}]},edit:Ll,save:function(e){var t=e.attributes.tagName;return Object(J.createElement)(t,null,Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Hl},Fl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),Gl=function(e){var t=e.color,r=e.setColor;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var Ul=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.HorizontalRule,{className:re()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(J.createElement)(Gl,{color:t,setColor:r}))}));var Wl={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object($.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},ql={name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0}},Zl=ql.name,Kl={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Fl,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:Wl,edit:Ul,save:function(e){var t,r=e.attributes,n=r.color,o=r.customColor,c=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=re()((t={"has-text-color has-background":n||o},Object(Z.a)(t,c,c),Object(Z.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(J.createElement)("hr",{className:i,style:l})}},$l=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Yl=r(137);var Ql=r(103),Jl={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(Ql.removep)(Object(Ql.autop)(r))}}},priority:20}]},Xl={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},es=Xl.name,ts={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:$l,transforms:Jl,edit:function e(t){var r=t.attributes,n=t.setAttributes,o=Object(xe.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(J.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(J.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(J.createElement)(Yl.a,{icon:$l}),Object(Q.__)("Shortcode")),Object(J.createElement)(K.PlainText,{className:"blocks-shortcode__textarea",id:c,value:r.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.text)}},rs=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),ns=Object(xe.compose)([Object(be.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,o=e.onResizeStart,c=e.onResizeStop,a=Object(J.useState)(!1),i=Object(se.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ResizableBox,{className:re()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:20,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){o.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){c();var o=Math.min(parseInt(u+n.height,10),500);b(o),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}}),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Height in pixels"),min:20,max:Math.max(500,u),value:u,onChange:b}))))}));var os={name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},cs=os.name,as={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:rs,edit:ns,save:function(e){var t=e.attributes;return Object(J.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},is=r(37),ls=r.n(is);var ss={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},us={name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},bs=us.name,ms={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:ss,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.align,c=t.content,a=t.placeholder;return ls()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:o,onChange:function(e){r({align:e})}})),Object(J.createElement)(K.RichText,{tagName:"p",value:c,onChange:function(e){r({content:e})},style:{textAlign:o},className:n,placeholder:a||Object(Q.__)("Write subheading…")}))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"p",style:{textAlign:r},value:n})}},ds=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),ps=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!n.length&&!o.length&&!c.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=re()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope;return Object(J.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("table",{className:l},Object(J.createElement)(s,{type:"head",rows:n}),Object(J.createElement)(s,{type:"body",rows:o}),Object(J.createElement)(s,{type:"foot",rows:c}))}}],hs=r(287),gs=r(288),fs=r(289),vs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Os=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),js=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),ys=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),ws=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),_s=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),ks=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Es=["align"];function xs(e,t,r){if(!t)return e;var n=Object(Y.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(Y.mapValues)(n,(function(e,n){return o&&o!==n?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:n,columnIndex:c,rowIndex:o},t)?r(e):e}))}}))}))}function Ss(e,t){var r=t.sectionName,n=t.rowIndex,o=t.columnCount,c=function(e){return Bs(e.head)?Bs(e.body)?Bs(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Y.get)(c,["cells","length"]):o;return a?Object(Z.a)({},r,[].concat(Object(q.a)(e[r].slice(0,n)),[{cells:Object(Y.times)(a,(function(e){var t=Object(Y.get)(c,["cells",e],{});return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var r=this.props,n=r.attributes,o=r.setAttributes,c=t.columnIndex,a=c+e;o(Ps(n,{columnIndex:a})),this.setState({selectedCell:{rowIndex:0,columnIndex:a,type:"cell"}})}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,r=t.attributes,n=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),n(function(e,t){var r=t.columnIndex,n=Object(Y.pick)(e,["head","body","foot"]);return Object(Y.mapValues)(n,(function(e){return Bs(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(r,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Rs({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:vs,title:Object(Q.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:Os,title:Object(Q.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:js,title:Object(Q.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:ys,title:Object(Q.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:ws,title:Object(Q.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:_s,title:Object(Q.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,r=e.name,n=e.rows;if(Bs(n))return null;var o="t".concat(r);return Object(J.createElement)(o,null,n.map((function(e,n){var o=e.cells;return Object(J.createElement)("tr",{key:n},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:r,rowIndex:n,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===r?b=Object(Q.__)("Header label"):"foot"===r&&(b=Object(Q.__)("Footer label")),Object(J.createElement)(K.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=t.insertBlocksAfter,l=this.state,s=l.initialRowCount,u=l.initialColumnCount,b=r.hasFixedLayout,m=r.caption,d=r.head,p=r.body,h=r.foot,g=Bs(d)&&Bs(p)&&Bs(h),f=this.renderSection;if(g)return Object(J.createElement)(ue.Placeholder,{label:Object(Q.__)("Table"),icon:Object(J.createElement)(K.BlockIcon,{icon:ds,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(J.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:this.onCreateTable},Object(J.createElement)(ue.TextControl,{type:"number",label:Object(Q.__)("Column Count"),value:u,onChange:this.onChangeInitialColumnCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(ue.TextControl,{type:"number",label:Object(Q.__)("Row Count"),value:s,onChange:this.onChangeInitialRowCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(ue.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Q.__)("Create Table"))));var v=re()(o.class,{"has-fixed-layout":b,"has-background":!!o.color});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.__experimentalToolbarItem,null,(function(t){return Object(J.createElement)(ue.DropdownMenu,{hasArrowIndicator:!0,icon:ks,toggleProps:t,label:Object(Q.__)("Edit table"),controls:e.getTableControls()})}))),Object(J.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Hs,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!b,onChange:this.onChangeFixedLayout}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!d||!d.length),onChange:this.onToggleHeaderSection}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!h||!h.length),onChange:this.onToggleFooterSection})),Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:As}]})),Object(J.createElement)("figure",{className:n},Object(J.createElement)("table",{className:v},Object(J.createElement)(f,{name:"head",rows:d}),Object(J.createElement)(f,{name:"body",rows:p}),Object(J.createElement)(f,{name:"foot",rows:h})),Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:m,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})},__unstableOnSplitAtEnd:function(){return i(Object($.createBlock)("core/paragraph"))}})))}}]),n}(J.Component),Ds=Ls("backgroundColor")(Is);var Vs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},Fs={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Vs(e)},tfoot:{allowEmpty:!0,children:Vs(e)},tbody:{allowEmpty:!0,children:Vs(e)}}}}}}]},Gs={name:"core/table",category:"text",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}},Us=Gs.name,Ws={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:ds,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],transforms:Fs,edit:Ds,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!o.length&&!c.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=re()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!K.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope,c=e.align,a=re()(Object(Z.a)({},"has-text-align-".concat(c),c));return Object(J.createElement)(K.RichText.Content,{className:a||void 0,"data-align":c,tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("figure",null,Object(J.createElement)("table",{className:""===s?void 0:s},Object(J.createElement)(b,{type:"head",rows:n}),Object(J.createElement)(b,{type:"body",rows:o}),Object(J.createElement)(b,{type:"foot",rows:c})),u&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:ps};var qs={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,o=e.width;return Object($.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object($.createBlock)("core/column",{},[Object($.createBlock)("core/paragraph",{content:t})])})))}}]},Zs={name:"core/text-columns",icon:"columns",category:"design",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}},Ks=Zs.name,$s={title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:qs,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.width,c=t.content,a=t.columns;return ls()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockAlignmentToolbar,{value:o,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,null,Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(J.createElement)("div",{className:"".concat(n," align").concat(o," columns-").concat(a)},Object(Y.times)(a,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText,{tagName:"p",value:Object(Y.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(q.a)(c.slice(0,e)),[{children:t}],Object(q.a)(c.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,o=t.columns;return Object(J.createElement)("div",{className:"align".concat(r," columns-").concat(o)},Object(Y.times)(o,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText.Content,{tagName:"p",value:Object(Y.get)(n,[e,"children"])}))})))}},Ys=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Qs=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var Js={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},Xs={name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0,lightBlockWrapper:!0}},eu=Xs.name,tu={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Ys,example:{attributes:{content:Object(Q.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Q.__)("poetry"),Object(Q.__)("poem")],transforms:Js,deprecated:Qs,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=e.mergeBlocks,c=t.textAlign,a=t.content;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(J.createElement)(K.RichText,{tagName:K.__experimentalBlock.pre,identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),className:re()(n,Object(Z.a)({},"has-text-align-".concat(c),c)),onMerge:o,textAlign:c}))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(J.createElement)(K.RichText.Content,{tagName:"pre",className:o,value:n})}},ru=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),nu=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,o=r.controls,c=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:c}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))};function ou(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var cu=["video"],au=["image"],iu=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(ou()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).videoPlayer=Object(J.createRef)(),e.posterImageButton=Object(J.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(Lr.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(Lr.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(Lr.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,r=e.mediaUpload,n=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ee.isBlobURL)(i)){var l=Object(Ee.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(e){var t=Object(se.a)(e,1)[0].url;o({src:t})},onError:function(e){n.createErrorNotice(e)},allowedTypes:cu})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"onSelectURL",value:function(e){var t=this.props,r=t.attributes,n=t.setAttributes;if(e!==r.src){var o=ot({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);n({src:e,id:void 0})}}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this,t=this.props.attributes,r=t.id,n=t.caption,o=t.controls,c=t.poster,a=t.src,i=this.props,l=i.instanceId,s=i.isSelected,u=i.noticeUI,b=i.attributes,m=i.setAttributes,d=i.insertBlocksAfter,p=function(e){e&&e.url?m({src:e.url,id:e.id}):m({src:void 0,id:void 0})};if(!a)return Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:ru}),onSelect:p,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:cu,value:this.props.attributes,notices:u,onError:this.onUploadError}));var h="video-block__poster-image-description-".concat(l);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:r,mediaURL:a,allowedTypes:cu,accept:"video/*",onSelect:p,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Video settings")},Object(J.createElement)(nu,{setAttributes:m,attributes:b}),Object(J.createElement)(K.MediaUploadCheck,null,Object(J.createElement)(ue.BaseControl,{className:"editor-video-poster-control"},Object(J.createElement)(ue.BaseControl.VisualLabel,null,Object(Q.__)("Poster image")),Object(J.createElement)(K.MediaUpload,{title:Object(Q.__)("Select poster image"),onSelect:this.onSelectPoster,allowedTypes:au,render:function(t){var r=t.open;return Object(J.createElement)(ue.Button,{isPrimary:!0,onClick:r,ref:e.posterImageButton,"aria-describedby":h},e.props.attributes.poster?Object(Q.__)("Replace"):Object(Q.__)("Select"))}}),Object(J.createElement)("p",{id:h,hidden:!0},this.props.attributes.poster?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Q.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(J.createElement)(ue.Button,{onClick:this.onRemovePoster,isTertiary:!0},Object(Q.__)("Remove")))))),Object(J.createElement)(K.__experimentalBlock.figure,null,Object(J.createElement)(ue.Disabled,null,Object(J.createElement)("video",{controls:o,poster:c,src:a,ref:this.videoPlayer})),(!K.RichText.isEmpty(n)||s)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:n,onChange:function(e){return m({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return d(Object($.createBlock)("core/paragraph"))}})))}}]),n}(J.Component),lu=Object(xe.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ue.withNotices,xe.withInstanceId])(iu);var su={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/video",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return r||n||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},uu={name:"core/video",category:"media",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"}},supports:{anchor:!0,align:!0,lightBlockWrapper:!0}},bu=uu.name,mu={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:ru,keywords:[Object(Q.__)("movie")],transforms:su,edit:lu,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(J.createElement)("figure",null,s&&Object(J.createElement)("video",{autoPlay:r,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},du=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"}));function pu(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var hu=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(pu()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(Lr.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"getTaxonomyOptions",value:function(){var e=Object(Y.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},r=Object(Y.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(q.a)(r))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,r=e.showTagCounts,n=this.getTaxonomyOptions(),o=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Tag Cloud settings")},Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Taxonomy"),options:n,value:t,onChange:this.setTaxonomy}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:r,onChange:this.toggleShowTagCounts})));return Object(J.createElement)(J.Fragment,null,o,Object(J.createElement)(gn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),n}(J.Component),gu=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(hu),fu={name:"core/tag-cloud",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},vu=fu.name,Ou={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:du,example:{},edit:gu},ju=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(r.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===or.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Q._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(a,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(a,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Q.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=r.editor.getBody();document.activeElement===e&&(e.blur(),r.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(J.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Q.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(J.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),n}(J.Component);var Eu={name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},xu=Eu.name,Su={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:ju,edit:Cu,save:function(e){var t=e.attributes.content;return Object(J.createElement)(J.RawHTML,null,t)}},Pu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Tu=["core/social-link"],Bu=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]];var zu=function(){return Object(J.createElement)(K.InnerBlocks,{allowedBlocks:Tu,templateLock:!1,template:Bu,orientation:"horizontal",__experimentalTagName:K.__experimentalBlock.ul,__experimentalAppenderTagName:"li"})};var Mu={name:"core/social-links",category:"widgets",supports:{align:["left","center","right"],lightBlockWrapper:!0,anchor:!0}},Ru=Mu.name,Nu={title:Object(Q.__)("Social Icons"),description:Object(Q.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Q._x)("links","block keywords")],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"}}]},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Q.__)("Logos Only")},{name:"pill-shape",label:Object(Q.__)("Pill Shape")}],icon:Pu,edit:zu,save:function(e){var t=e.className;return Object(J.createElement)("ul",{className:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},Au=r(203),Hu=function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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"}))},Lu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:Hu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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"}))}}],Iu=function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(J.useState)(!1),u=Object(se.a)(s,2),b=u[0],m=u[1],d=re()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(Y.find)(Lu,{name:t}))?r.icon:Hu),h=function(e){var t=Object(Y.find)(Lu,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),h),initialOpen:!1},Object(J.createElement)(ue.PanelRow,null,Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(J.createElement)(K.__experimentalBlock.li,{className:d},Object(J.createElement)(ue.Button,{onClick:function(){return m(!0)}},Object(J.createElement)(p,null),c&&b&&Object(J.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(J.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(J.createElement)("div",{className:"block-editor-url-input"},Object(J.createElement)(K.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(J.createElement)(ue.Button,{icon:Au.a,label:Object(Q.__)("Apply"),type:"submit"}))))))},Du={name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},supports:{reusable:!1,html:!1,lightBlockWrapper:!0}},Vu=Du.name,Fu={title:Object(Q.__)("Social Icon"),icon:Pu,edit:Iu,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:Lu},Gu=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object($.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object($.registerBlockType)(n,r)}},Uu=function(){[n,o,c,i,k,a,N,l,s,u,b,m,d,p,h,g,f,v].concat(Object(q.a)(aa),Object(q.a)(ia),[O,M,window.wp&&window.wp.oldEditor?G:null,j,y,w,_,C,E,x,S,P,B,z,R,T,U,W,A,H,L,F,I,D,V]).forEach(Gu),Object($.setDefaultBlockName)(je),window.wp&&window.wp.oldEditor&&Object($.setFreeformContentHandlerName)(xu),Object($.setUnregisteredTypeHandlerName)(Ai),Object($.setGroupingBlockName)(Dl)},Wu=void 0},44:function(e,t){!function(){e.exports=this.wp.blob}()},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},6:function(e,t){!function(){e.exports=this.wp.primitives}()},60:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function c(){var c,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=M(e,360),t=M(t,100),r=M(r,100),0===t)n=o=c=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*n,g:255*o,b:255*c}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,h;return r=z(r),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=i++}function d(e,t,r){e=M(e,255),t=M(t,255),r=M(r,255);var n,o,c=u(e,t,r),a=s(e,t,r),i=(c+a)/2;if(c==a)n=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,c.push(m(n));return c}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,o=r.s,c=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:o,v:c})),c=(c+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(r).toString(16)),A(L(n))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*M(this._r,255))+"%",g:l(100*M(this._g,255))+"%",b:l(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%)":"rgba("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);r="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),o=m(t).toRgb(),c=r/100;return m({r:(o.r-n.r)*c+n.r,g:(o.g-n.g)*c+n.g,b:(o.b-n.b)*c+n.b,a:(o.a-n.a)*c+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,o,c=m.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,r){var n,o,c,a,i=null,l=0;o=(r=r||{}).includeFallbackColors,c=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var T=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function I(e){return N(e)/255}var D,V,F,G=(V="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",F="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},7:function(e,t){!function(){e.exports=this.wp.blockEditor}()},79:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t