WordPress/wp-includes/js/dist/editor.min.js
desrosj 5a4b00a618 Grouped merges for 5.2.12.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.
- Use hashed/deterministic moduleIDs in webpack config.

Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad, gziolo.
Merges [50940-50941,50984-50985,51426] to the 5.2 branch.
Built from https://develop.svn.wordpress.org/branches/5.2@51756


git-svn-id: http://core.svn.wordpress.org/branches/5.2@51363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:22:54 +00:00

11 lines
188 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

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

this.wp=this.wp||{},this.wp.editor=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="PLxR")}({"16Al":function(t,e,n){"use strict";var r=n("WbBG");function o(){}t.exports=function(){function t(t,e,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=o,n.PropTypes=n,n}},"17x9":function(t,e,n){t.exports=n("16Al")()},"1OyB":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},"1ZqX":function(t,e){!function(){t.exports=this.wp.data}()},"25BE":function(t,e,n){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},"4JlD":function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?i(s(t),(function(s){var a=encodeURIComponent(r(s))+n;return o(t[s])?i(t[s],(function(t){return a+encodeURIComponent(r(t))})).join(e):a+encodeURIComponent(r(t[s]))})).join(e):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},"4eJC":function(t,e,n){t.exports=function(t,e){var n,r,o,i=0;function s(){var e,s,a=r,c=arguments.length;t:for(;a;){if(a.args.length===arguments.length){for(s=0;s<c;s++)if(a.args[s]!==arguments[s]){a=a.next;continue t}return a!==r&&(a===o&&(o=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(e=new Array(c),s=0;s<c;s++)e[s]=arguments[s];return a={args:e,val:t.apply(null,e)},r?(r.prev=a,a.next=r):o=a,i===n?(o=o.prev).next=null:i++,r=a,a.val}return e&&e.maxSize&&(n=e.maxSize),s.clear=function(){r=null,o=null,i=0},s}},"7fqt":function(t,e){!function(){t.exports=this.wp.wordcount}()},CNgt:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n};e.__esModule=!0;var a=n("cDcd"),c=n("17x9"),u=n("GemG"),l=n("Rk8H"),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={lineHeight:null},e.dispatchEvent=function(t){var n=document.createEvent("Event");n.initEvent(t,!0,!1),e.textarea.dispatchEvent(n)},e.updateLineHeight=function(){e.setState({lineHeight:l(e.textarea)})},e.onChange=function(t){var n=e.props.onChange;e.currentValue=t.currentTarget.value,n&&n(t)},e.saveDOMNodeRef=function(t){var n=e.props.innerRef;n&&n(t),e.textarea=t},e.getLocals=function(){var t=e,n=t.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,s(n,["onResize","maxRows","onChange","style","innerRef"])),c=t.state.lineHeight,u=t.saveDOMNodeRef,l=r&&c?c*r:null;return i({},a,{saveDOMNodeRef:u,style:l?i({},o,{maxHeight:l}):o,onChange:e.onChange})},e}return o(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props,n=e.onResize;"number"==typeof e.maxRows&&this.updateLineHeight(),setTimeout((function(){return u(t.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},e.prototype.componentWillUnmount=function(){var t=this.props.onResize;t&&this.textarea.removeEventListener("autosize:resized",t),this.dispatchEvent("autosize:destroy")},e.prototype.render=function(){var t=this.getLocals(),e=t.children,n=t.saveDOMNodeRef,r=s(t,["children","saveDOMNodeRef"]);return a.createElement("textarea",i({},r,{ref:n}),e)},e.prototype.componentDidUpdate=function(t){this.props.value===this.currentValue&&this.props.rows===t.rows||this.dispatchEvent("autosize:update")},e.defaultProps={rows:1},e.propTypes={rows:c.number,maxRows:c.number,onResize:c.func,innerRef:c.func},e}(a.Component);e.default=d},CxY0:function(t,e,n){"use strict";var r=n("GYWy"),o=n("Nehr");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=g,e.resolve=function(t,e){return g(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},e.format=function(t){o.isString(t)&&(t=g(t));return t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),d=["%","/","?",";","#"].concat(l),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n("s4NR");function g(t,e,n){if(t&&o.isObject(t)&&t instanceof i)return t;var r=new i;return r.parse(t,e,n),r}i.prototype.parse=function(t,e,n){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",u=t.split(a);u[0]=u[0].replace(/\\/g,"/");var g=t=u.join(a);if(g=g.trim(),!n&&1===t.split("#").length){var y=c.exec(g);if(y)return this.path=g,this.href=g,this.pathname=y[1],y[2]?(this.search=y[2],this.query=e?O.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var j=s.exec(g);if(j){var _=(j=j[0]).toLowerCase();this.protocol=_,g=g.substr(j.length)}if(n||j||g.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===g.substr(0,2);!E||j&&m[j]||(g=g.substr(2),this.slashes=!0)}if(!m[j]&&(E||j&&!v[j])){for(var k,S,P=-1,w=0;w<p.length;w++){-1!==(T=g.indexOf(p[w]))&&(-1===P||T<P)&&(P=T)}-1!==(S=-1===P?g.lastIndexOf("@"):g.lastIndexOf("@",P))&&(k=g.slice(0,S),g=g.slice(S+1),this.auth=decodeURIComponent(k)),P=-1;for(w=0;w<d.length;w++){var T;-1!==(T=g.indexOf(d[w]))&&(-1===P||T<P)&&(P=T)}-1===P&&(P=g.length),this.host=g.slice(0,P),g=g.slice(P),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var x=this.hostname.split(/\./),B=(w=0,x.length);w<B;w++){var A=x[w];if(A&&!A.match(f)){for(var I="",L=0,R=A.length;L<R;L++)A.charCodeAt(L)>127?I+="x":I+=A[L];if(!I.match(f)){var U=x.slice(0,w),N=x.slice(w+1),D=A.match(h);D&&(U.push(D[1]),N.unshift(D[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!b[_])for(w=0,B=l.length;w<B;w++){var V=l[w];if(-1!==g.indexOf(V)){var K=encodeURIComponent(V);K===V&&(K=escape(V)),g=g.split(V).join(K)}}var z=g.indexOf("#");-1!==z&&(this.hash=g.substr(z),g=g.slice(0,z));var q=g.indexOf("?");if(-1!==q?(this.search=g.substr(q),this.query=g.substr(q+1),e&&(this.query=O.parse(this.query)),g=g.slice(0,q)):e&&(this.search="",this.query={}),g&&(this.pathname=g),v[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,s="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=O.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(t){return this.resolveObject(g(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var n=new i,r=Object.keys(this),s=0;s<r.length;s++){var a=r[s];n[a]=this[a]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(n[l]=t[l])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!v[t.protocol]){for(var d=Object.keys(t),p=0;p<d.length;p++){var f=d[p];n[f]=t[f]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||m[t.protocol])n.pathname=t.pathname;else{for(var h=(t.pathname||"").split("/");h.length&&!(t.host=h.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var b=n.pathname||"",O=n.search||"";n.path=b+O}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),y=t.host||t.pathname&&"/"===t.pathname.charAt(0),j=y||g||n.host&&t.pathname,_=j,E=n.pathname&&n.pathname.split("/")||[],k=(h=t.pathname&&t.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===h[0]?h[0]=t.host:h.unshift(t.host)),t.host=null),j=j&&(""===h[0]||""===E[0])),y)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),n.search=t.search,n.query=t.query;else if(!o.isNullOrUndefined(t.search)){if(k)n.hostname=n.host=E.shift(),(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=t.search,n.query=t.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(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=E.slice(-1)[0],P=(n.host||t.host||E.length>1)&&("."===S||".."===S)||""===S,w=0,T=E.length;T>=0;T--)"."===(S=E[T])?E.splice(T,1):".."===S?(E.splice(T,1),w++):w&&(E.splice(T,1),w--);if(!j&&!_)for(;w--;w)E.unshift("..");!j||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),P&&"/"!==E.join("/").substr(-1)&&E.push("");var C,x=""===E[0]||E[0]&&"/"===E[0].charAt(0);k&&(n.hostname=n.host=x?"":E.length?E.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(j=j||n.host&&E.length)&&!x&&E.unshift(""),E.length?n.pathname=E.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=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},DSFK:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},Ff2n:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return r}))},FqII:function(t,e){!function(){t.exports=this.wp.date}()},GRId:function(t,e){!function(){t.exports=this.wp.element}()},GYWy:function(t,e,n){(function(t,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof r&&r;s.global!==s&&s.window!==s&&s.self;var a,c=2147483647,u=/^xn--/,l=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function b(t){throw new RangeError(p[t])}function m(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function v(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+m((t=t.replace(d,".")).split("."),e).join(".")}function O(t){for(var e,n,r=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function g(t){return m(t,(function(t){var e="";return t>65535&&(e+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=h(t)})).join("")}function y(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function j(t,e,n){var r=0;for(t=n?f(t/700):t>>1,t+=f(t/e);t>455;r+=36)t=f(t/35);return f(r+36*t/(t+38))}function _(t){var e,n,r,o,i,s,a,u,l,d,p,h=[],m=t.length,v=0,O=128,y=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&b("not-basic"),h.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(i=v,s=1,a=36;o>=m&&b("invalid-input"),((u=(p=t.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>f((c-v)/s))&&b("overflow"),v+=u*s,!(u<(l=a<=y?1:a>=y+26?26:a-y));a+=36)s>f(c/(d=36-l))&&b("overflow"),s*=d;y=j(v-i,e=h.length+1,0==i),f(v/e)>c-O&&b("overflow"),O+=f(v/e),v%=e,h.splice(v++,0,O)}return g(h)}function E(t){var e,n,r,o,i,s,a,u,l,d,p,m,v,g,_,E=[];for(m=(t=O(t)).length,e=128,n=0,i=72,s=0;s<m;++s)(p=t[s])<128&&E.push(h(p));for(r=o=E.length,o&&E.push("-");r<m;){for(a=c,s=0;s<m;++s)(p=t[s])>=e&&p<a&&(a=p);for(a-e>f((c-n)/(v=r+1))&&b("overflow"),n+=(a-e)*v,e=a,s=0;s<m;++s)if((p=t[s])<e&&++n>c&&b("overflow"),p==e){for(u=n,l=36;!(u<(d=l<=i?1:l>=i+26?26:l-i));l+=36)_=u-d,g=36-d,E.push(h(y(d+_%g,0))),u=f(_/g);E.push(h(y(u,0))),i=j(n,v,r==o),n=0,++r}++n,++e}return E.join("")}a={version:"1.4.1",ucs2:{decode:O,encode:g},decode:_,encode:E,toASCII:function(t){return v(t,(function(t){return l.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return v(t,(function(t){return u.test(t)?_(t.slice(4).toLowerCase()):t}))}},void 0===(o=function(){return a}.call(e,n,e,t))||(t.exports=o)}()}).call(this,n("YuTi")(t),n("yLpj"))},GemG:function(t,e,n){var r,o,i;
/*!
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
*/o=[t,e],void 0===(i="function"==typeof(r=function(t,e){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(t){return n.indexOf(t)>-1},get:function(t){return r[n.indexOf(t)]},set:function(t,e){-1===n.indexOf(t)&&(n.push(t),r.push(e))},delete:function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),r.splice(e,1))}}),i=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){i=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function s(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!o.has(t)){var e,n=null,r=null,s=null,a=function(){t.clientWidth!==r&&d()},c=function(e){window.removeEventListener("resize",a,!1),t.removeEventListener("input",d,!1),t.removeEventListener("keyup",d,!1),t.removeEventListener("autosize:destroy",c,!1),t.removeEventListener("autosize:update",d,!1),Object.keys(e).forEach((function(n){t.style[n]=e[n]})),o.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",c,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),t.addEventListener("input",d,!1),t.addEventListener("autosize:update",d,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",o.set(t,{destroy:c,update:d}),"vertical"===(e=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),n="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(e){var n=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=n,t.style.overflowY=e}function l(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),o=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+n+"px",r=t.clientWidth,e.forEach((function(t){t.node.scrollTop=t.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(r<e?"hidden"===n.overflowY&&(u("scroll"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),s!==r){s=r;var o=i("autosize:resized");try{t.dispatchEvent(o)}catch(t){}}}}function a(t){var e=o.get(t);e&&e.destroy()}function c(t){var e=o.get(t);e&&e.update()}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((u=function(t){return t}).destroy=function(t){return t},u.update=function(t){return t}):((u=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return s(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],a),t},u.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],c),t}),e.default=u,t.exports=e.default})?r.apply(e,o):r)||(t.exports=i)},HSyU:function(t,e){!function(){t.exports=this.wp.blocks}()},"HaE+":function(t,e,n){"use strict";function r(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var s=t.apply(e,n);function a(t){r(s,o,i,a,c,"next",t)}function c(t){r(s,o,i,a,c,"throw",t)}a(void 0)}))}}n.d(e,"a",(function(){return o}))},JX7q:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},Ji7U:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return o}))},K9lf:function(t,e){!function(){t.exports=this.wp.compose}()},KEfo:function(t,e){!function(){t.exports=this.wp.viewport}()},KQm4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("25BE");function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||Object(r.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}},Mmq9:function(t,e){!function(){t.exports=this.wp.url}()},NMb1:function(t,e){!function(){t.exports=this.wp.deprecated}()},Nehr:function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},O6Fj:function(t,e,n){"use strict";e.__esModule=!0;var r=n("CNgt");e.default=r.default},ODXe:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("DSFK");var o=n("PYwp");function i(t,e){return Object(r.a)(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||Object(o.a)()}},P7XM:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},PLxR:function(t,e,n){"use strict";n.r(e),n.d(e,"blockAutocompleter",(function(){return Br})),n.d(e,"userAutocompleter",(function(){return Ar})),n.d(e,"ServerSideRender",(function(){return Ur})),n.d(e,"AutosaveMonitor",(function(){return qr})),n.d(e,"DocumentOutline",(function(){return $r})),n.d(e,"DocumentOutlineCheck",(function(){return to})),n.d(e,"VisualEditorGlobalKeyboardShortcuts",(function(){return co})),n.d(e,"EditorGlobalKeyboardShortcuts",(function(){return uo})),n.d(e,"TextEditorGlobalKeyboardShortcuts",(function(){return lo})),n.d(e,"EditorHistoryRedo",(function(){return po})),n.d(e,"EditorHistoryUndo",(function(){return fo})),n.d(e,"EditorNotices",(function(){return bo})),n.d(e,"ErrorBoundary",(function(){return mo})),n.d(e,"PageAttributesCheck",(function(){return vo})),n.d(e,"PageAttributesOrder",(function(){return yo})),n.d(e,"PageAttributesParent",(function(){return ko})),n.d(e,"PageTemplate",(function(){return So})),n.d(e,"PostAuthor",(function(){return To})),n.d(e,"PostAuthorCheck",(function(){return Po})),n.d(e,"PostComments",(function(){return Co})),n.d(e,"PostExcerpt",(function(){return xo})),n.d(e,"PostExcerptCheck",(function(){return Bo})),n.d(e,"PostFeaturedImage",(function(){return Mo})),n.d(e,"PostFeaturedImageCheck",(function(){return Io})),n.d(e,"PostFormat",(function(){return zo})),n.d(e,"PostFormatCheck",(function(){return Vo})),n.d(e,"PostLastRevision",(function(){return Go})),n.d(e,"PostLastRevisionCheck",(function(){return qo})),n.d(e,"PostLockedModal",(function(){return Zo})),n.d(e,"PostPendingStatus",(function(){return $o})),n.d(e,"PostPendingStatusCheck",(function(){return Jo})),n.d(e,"PostPingbacks",(function(){return ti})),n.d(e,"PostPreviewButton",(function(){return Yo})),n.d(e,"PostPublishButton",(function(){return ri})),n.d(e,"PostPublishButtonLabel",(function(){return ei})),n.d(e,"PostPublishPanel",(function(){return Pi})),n.d(e,"PostSavedState",(function(){return Ci})),n.d(e,"PostSchedule",(function(){return ci})),n.d(e,"PostScheduleCheck",(function(){return xi})),n.d(e,"PostScheduleLabel",(function(){return ui})),n.d(e,"PostSticky",(function(){return Ai})),n.d(e,"PostStickyCheck",(function(){return Bi})),n.d(e,"PostSwitchToDraftButton",(function(){return wi})),n.d(e,"PostTaxonomies",(function(){return Ui})),n.d(e,"PostTaxonomiesCheck",(function(){return Ni})),n.d(e,"PostTextEditor",(function(){return Vi})),n.d(e,"PostTitle",(function(){return Zi})),n.d(e,"PostTrash",(function(){return Ji})),n.d(e,"PostTrashCheck",(function(){return $i})),n.d(e,"PostTypeSupportCheck",(function(){return Oo})),n.d(e,"PostVisibility",(function(){return si})),n.d(e,"PostVisibilityLabel",(function(){return ai})),n.d(e,"PostVisibilityCheck",(function(){return ts})),n.d(e,"TableOfContents",(function(){return os})),n.d(e,"UnsavedChangesWarning",(function(){return ss})),n.d(e,"WordCount",(function(){return ns})),n.d(e,"EditorProvider",(function(){return Us})),n.d(e,"Autocomplete",(function(){return i.Autocomplete})),n.d(e,"AlignmentToolbar",(function(){return i.AlignmentToolbar})),n.d(e,"BlockAlignmentToolbar",(function(){return i.BlockAlignmentToolbar})),n.d(e,"BlockControls",(function(){return i.BlockControls})),n.d(e,"BlockEdit",(function(){return i.BlockEdit})),n.d(e,"BlockEditorKeyboardShortcuts",(function(){return i.BlockEditorKeyboardShortcuts})),n.d(e,"BlockFormatControls",(function(){return i.BlockFormatControls})),n.d(e,"BlockIcon",(function(){return i.BlockIcon})),n.d(e,"BlockInspector",(function(){return i.BlockInspector})),n.d(e,"BlockList",(function(){return i.BlockList})),n.d(e,"BlockMover",(function(){return i.BlockMover})),n.d(e,"BlockNavigationDropdown",(function(){return i.BlockNavigationDropdown})),n.d(e,"BlockSelectionClearer",(function(){return i.BlockSelectionClearer})),n.d(e,"BlockSettingsMenu",(function(){return i.BlockSettingsMenu})),n.d(e,"BlockTitle",(function(){return i.BlockTitle})),n.d(e,"BlockToolbar",(function(){return i.BlockToolbar})),n.d(e,"ColorPalette",(function(){return i.ColorPalette})),n.d(e,"ContrastChecker",(function(){return i.ContrastChecker})),n.d(e,"CopyHandler",(function(){return i.CopyHandler})),n.d(e,"createCustomColorsHOC",(function(){return i.createCustomColorsHOC})),n.d(e,"DefaultBlockAppender",(function(){return i.DefaultBlockAppender})),n.d(e,"FontSizePicker",(function(){return i.FontSizePicker})),n.d(e,"getColorClassName",(function(){return i.getColorClassName})),n.d(e,"getColorObjectByAttributeValues",(function(){return i.getColorObjectByAttributeValues})),n.d(e,"getColorObjectByColorValue",(function(){return i.getColorObjectByColorValue})),n.d(e,"getFontSize",(function(){return i.getFontSize})),n.d(e,"getFontSizeClass",(function(){return i.getFontSizeClass})),n.d(e,"Inserter",(function(){return i.Inserter})),n.d(e,"InnerBlocks",(function(){return i.InnerBlocks})),n.d(e,"InspectorAdvancedControls",(function(){return i.InspectorAdvancedControls})),n.d(e,"InspectorControls",(function(){return i.InspectorControls})),n.d(e,"PanelColorSettings",(function(){return i.PanelColorSettings})),n.d(e,"PlainText",(function(){return i.PlainText})),n.d(e,"RichText",(function(){return i.RichText})),n.d(e,"RichTextShortcut",(function(){return i.RichTextShortcut})),n.d(e,"RichTextToolbarButton",(function(){return i.RichTextToolbarButton})),n.d(e,"RichTextInserterItem",(function(){return i.RichTextInserterItem})),n.d(e,"UnstableRichTextInputEvent",(function(){return i.UnstableRichTextInputEvent})),n.d(e,"MediaPlaceholder",(function(){return i.MediaPlaceholder})),n.d(e,"MediaUpload",(function(){return i.MediaUpload})),n.d(e,"MediaUploadCheck",(function(){return i.MediaUploadCheck})),n.d(e,"MultiBlocksSwitcher",(function(){return i.MultiBlocksSwitcher})),n.d(e,"MultiSelectScrollIntoView",(function(){return i.MultiSelectScrollIntoView})),n.d(e,"NavigableToolbar",(function(){return i.NavigableToolbar})),n.d(e,"ObserveTyping",(function(){return i.ObserveTyping})),n.d(e,"PreserveScrollInReorder",(function(){return i.PreserveScrollInReorder})),n.d(e,"SkipToSelectedBlock",(function(){return i.SkipToSelectedBlock})),n.d(e,"URLInput",(function(){return i.URLInput})),n.d(e,"URLInputButton",(function(){return i.URLInputButton})),n.d(e,"URLPopover",(function(){return i.URLPopover})),n.d(e,"Warning",(function(){return i.Warning})),n.d(e,"WritingFlow",(function(){return i.WritingFlow})),n.d(e,"withColorContext",(function(){return i.withColorContext})),n.d(e,"withColors",(function(){return i.withColors})),n.d(e,"withFontSizes",(function(){return i.withFontSizes})),n.d(e,"mediaUpload",(function(){return Ls})),n.d(e,"cleanForSlug",(function(){return Ho})),n.d(e,"transformStyles",(function(){return Cs}));var r={};n.r(r),n.d(r,"setupEditor",(function(){return et})),n.d(r,"resetPost",(function(){return nt})),n.d(r,"resetAutosave",(function(){return rt})),n.d(r,"__experimentalRequestPostUpdateStart",(function(){return ot})),n.d(r,"__experimentalRequestPostUpdateSuccess",(function(){return it})),n.d(r,"__experimentalRequestPostUpdateFailure",(function(){return st})),n.d(r,"updatePost",(function(){return at})),n.d(r,"setupEditorState",(function(){return ct})),n.d(r,"editPost",(function(){return ut})),n.d(r,"__experimentalOptimisticUpdatePost",(function(){return lt})),n.d(r,"savePost",(function(){return dt})),n.d(r,"refreshPost",(function(){return pt})),n.d(r,"trashPost",(function(){return ft})),n.d(r,"autosave",(function(){return ht})),n.d(r,"redo",(function(){return bt})),n.d(r,"undo",(function(){return mt})),n.d(r,"createUndoLevel",(function(){return vt})),n.d(r,"updatePostLock",(function(){return Ot})),n.d(r,"__experimentalFetchReusableBlocks",(function(){return gt})),n.d(r,"__experimentalReceiveReusableBlocks",(function(){return yt})),n.d(r,"__experimentalSaveReusableBlock",(function(){return jt})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return _t})),n.d(r,"__experimentalUpdateReusableBlockTitle",(function(){return Et})),n.d(r,"__experimentalConvertBlockToStatic",(function(){return kt})),n.d(r,"__experimentalConvertBlockToReusable",(function(){return St})),n.d(r,"enablePublishSidebar",(function(){return Pt})),n.d(r,"disablePublishSidebar",(function(){return wt})),n.d(r,"lockPostSaving",(function(){return Tt})),n.d(r,"unlockPostSaving",(function(){return Ct})),n.d(r,"resetEditorBlocks",(function(){return xt})),n.d(r,"updateEditorSettings",(function(){return Bt})),n.d(r,"resetBlocks",(function(){return It})),n.d(r,"receiveBlocks",(function(){return Lt})),n.d(r,"updateBlock",(function(){return Rt})),n.d(r,"updateBlockAttributes",(function(){return Ut})),n.d(r,"selectBlock",(function(){return Nt})),n.d(r,"startMultiSelect",(function(){return Dt})),n.d(r,"stopMultiSelect",(function(){return Ft})),n.d(r,"multiSelect",(function(){return Mt})),n.d(r,"clearSelectedBlock",(function(){return Vt})),n.d(r,"toggleSelection",(function(){return Kt})),n.d(r,"replaceBlocks",(function(){return zt})),n.d(r,"replaceBlock",(function(){return qt})),n.d(r,"moveBlocksDown",(function(){return Wt})),n.d(r,"moveBlocksUp",(function(){return Ht})),n.d(r,"moveBlockToPosition",(function(){return Gt})),n.d(r,"insertBlock",(function(){return Qt})),n.d(r,"insertBlocks",(function(){return Yt})),n.d(r,"showInsertionPoint",(function(){return Xt})),n.d(r,"hideInsertionPoint",(function(){return Zt})),n.d(r,"setTemplateValidity",(function(){return Jt})),n.d(r,"synchronizeTemplate",(function(){return $t})),n.d(r,"mergeBlocks",(function(){return te})),n.d(r,"removeBlocks",(function(){return ee})),n.d(r,"removeBlock",(function(){return ne})),n.d(r,"toggleBlockMode",(function(){return re})),n.d(r,"startTyping",(function(){return oe})),n.d(r,"stopTyping",(function(){return ie})),n.d(r,"enterFormattedText",(function(){return se})),n.d(r,"exitFormattedText",(function(){return ae})),n.d(r,"insertDefaultBlock",(function(){return ce})),n.d(r,"updateBlockListSettings",(function(){return ue}));var o={};n.r(o),n.d(o,"hasEditorUndo",(function(){return be})),n.d(o,"hasEditorRedo",(function(){return me})),n.d(o,"isEditedPostNew",(function(){return ve})),n.d(o,"hasChangedContent",(function(){return Oe})),n.d(o,"isEditedPostDirty",(function(){return ge})),n.d(o,"isCleanNewPost",(function(){return ye})),n.d(o,"getCurrentPost",(function(){return je})),n.d(o,"getCurrentPostType",(function(){return _e})),n.d(o,"getCurrentPostId",(function(){return Ee})),n.d(o,"getCurrentPostRevisionsCount",(function(){return ke})),n.d(o,"getCurrentPostLastRevisionId",(function(){return Se})),n.d(o,"getPostEdits",(function(){return Pe})),n.d(o,"getReferenceByDistinctEdits",(function(){return we})),n.d(o,"getCurrentPostAttribute",(function(){return Te})),n.d(o,"getEditedPostAttribute",(function(){return xe})),n.d(o,"getAutosaveAttribute",(function(){return Be})),n.d(o,"getEditedPostVisibility",(function(){return Ae})),n.d(o,"isCurrentPostPending",(function(){return Ie})),n.d(o,"isCurrentPostPublished",(function(){return Le})),n.d(o,"isCurrentPostScheduled",(function(){return Re})),n.d(o,"isEditedPostPublishable",(function(){return Ue})),n.d(o,"isEditedPostSaveable",(function(){return Ne})),n.d(o,"isEditedPostEmpty",(function(){return De})),n.d(o,"isEditedPostAutosaveable",(function(){return Fe})),n.d(o,"getAutosave",(function(){return Me})),n.d(o,"hasAutosave",(function(){return Ve})),n.d(o,"isEditedPostBeingScheduled",(function(){return Ke})),n.d(o,"isEditedPostDateFloating",(function(){return ze})),n.d(o,"isSavingPost",(function(){return qe})),n.d(o,"didPostSaveRequestSucceed",(function(){return We})),n.d(o,"didPostSaveRequestFail",(function(){return He})),n.d(o,"isAutosavingPost",(function(){return Ge})),n.d(o,"isPreviewingPost",(function(){return Qe})),n.d(o,"getEditedPostPreviewLink",(function(){return Ye})),n.d(o,"getSuggestedPostFormat",(function(){return Xe})),n.d(o,"getBlocksForSerialization",(function(){return Ze})),n.d(o,"getEditedPostContent",(function(){return Je})),n.d(o,"__experimentalGetReusableBlock",(function(){return $e})),n.d(o,"__experimentalIsSavingReusableBlock",(function(){return tn})),n.d(o,"__experimentalIsFetchingReusableBlock",(function(){return en})),n.d(o,"__experimentalGetReusableBlocks",(function(){return nn})),n.d(o,"getStateBeforeOptimisticTransaction",(function(){return rn})),n.d(o,"isPublishingPost",(function(){return on})),n.d(o,"isPermalinkEditable",(function(){return sn})),n.d(o,"getPermalink",(function(){return an})),n.d(o,"getPermalinkParts",(function(){return cn})),n.d(o,"inSomeHistory",(function(){return un})),n.d(o,"isPostLocked",(function(){return ln})),n.d(o,"isPostSavingLocked",(function(){return dn})),n.d(o,"isPostLockTakeover",(function(){return pn})),n.d(o,"getPostLockUser",(function(){return fn})),n.d(o,"getActivePostLock",(function(){return hn})),n.d(o,"canUserUseUnfilteredHTML",(function(){return bn})),n.d(o,"isPublishSidebarEnabled",(function(){return mn})),n.d(o,"getEditorBlocks",(function(){return vn})),n.d(o,"__unstableIsEditorReady",(function(){return On})),n.d(o,"getEditorSettings",(function(){return gn})),n.d(o,"getBlockDependantsCacheBust",(function(){return jn})),n.d(o,"getBlockName",(function(){return _n})),n.d(o,"isBlockValid",(function(){return En})),n.d(o,"getBlockAttributes",(function(){return kn})),n.d(o,"getBlock",(function(){return Sn})),n.d(o,"getBlocks",(function(){return Pn})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return wn})),n.d(o,"getClientIdsOfDescendants",(function(){return Tn})),n.d(o,"getClientIdsWithDescendants",(function(){return Cn})),n.d(o,"getGlobalBlockCount",(function(){return xn})),n.d(o,"getBlocksByClientId",(function(){return Bn})),n.d(o,"getBlockCount",(function(){return An})),n.d(o,"getBlockSelectionStart",(function(){return In})),n.d(o,"getBlockSelectionEnd",(function(){return Ln})),n.d(o,"getSelectedBlockCount",(function(){return Rn})),n.d(o,"hasSelectedBlock",(function(){return Un})),n.d(o,"getSelectedBlockClientId",(function(){return Nn})),n.d(o,"getSelectedBlock",(function(){return Dn})),n.d(o,"getBlockRootClientId",(function(){return Fn})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Mn})),n.d(o,"getAdjacentBlockClientId",(function(){return Vn})),n.d(o,"getPreviousBlockClientId",(function(){return Kn})),n.d(o,"getNextBlockClientId",(function(){return zn})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return qn})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return Wn})),n.d(o,"getMultiSelectedBlocks",(function(){return Hn})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Gn})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return Qn})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Yn})),n.d(o,"isBlockMultiSelected",(function(){return Xn})),n.d(o,"isAncestorMultiSelected",(function(){return Zn})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return Jn})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return $n})),n.d(o,"getBlockOrder",(function(){return tr})),n.d(o,"getBlockIndex",(function(){return er})),n.d(o,"isBlockSelected",(function(){return nr})),n.d(o,"hasSelectedInnerBlock",(function(){return rr})),n.d(o,"isBlockWithinSelection",(function(){return or})),n.d(o,"hasMultiSelection",(function(){return ir})),n.d(o,"isMultiSelecting",(function(){return sr})),n.d(o,"isSelectionEnabled",(function(){return ar})),n.d(o,"getBlockMode",(function(){return cr})),n.d(o,"isTyping",(function(){return ur})),n.d(o,"isCaretWithinFormattedText",(function(){return lr})),n.d(o,"getBlockInsertionPoint",(function(){return dr})),n.d(o,"isBlockInsertionPointVisible",(function(){return pr})),n.d(o,"isValidTemplate",(function(){return fr})),n.d(o,"getTemplate",(function(){return hr})),n.d(o,"getTemplateLock",(function(){return br})),n.d(o,"canInsertBlockType",(function(){return mr})),n.d(o,"getInserterItems",(function(){return vr})),n.d(o,"hasInserterItems",(function(){return Or})),n.d(o,"getBlockListSettings",(function(){return gr}));var i=n("axFQ"),s=n("HSyU"),a=(n("jZUy"),n("onLe"),n("ZU7w")),c=n("qRz9"),u=n("KEfo"),l=n("1ZqX"),d=n("ODXe"),p=n("rePB"),f=n("vpQ4"),h=n("U8pU"),b=n("hx/w"),m=n.n(b),v=n("YLtl"),O=n("Mmq9"),g={isPublishSidebarEnabled:!0},y={},j=Object(f.a)({},i.SETTINGS_DEFAULTS,{richEditingEnabled:!0,enableCustomFields:!1}),_=new Set(["meta"]),E="core/editor",k=/%(?:postname|pagename)%/,S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){return function(n,r){var o=e(n,r),i=void 0===n||Object(v.includes)(t.resetTypes,r.type),s=n!==o;if(!s&&!i)return n;s&&void 0!==n||(o=Object(f.a)({},o));var a=Object(v.includes)(t.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&s,o}}},P=n("KQm4"),w={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){(t=Object(f.a)({},w,t)).shouldOverwriteState=Object(v.overSome)([t.shouldOverwriteState,function(e){return Object(v.includes)(t.ignoreTypes,e.type)}]);var n={past:[],present:e(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},r=t,o=r.resetTypes,i=void 0===o?[]:o,s=r.shouldOverwriteState,a=void 0===s?function(){return!1}:s;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=t.past,s=t.present,c=t.future,u=t.lastAction,l=t.shouldCreateUndoLevel,d=u;switch(r.type){case"UNDO":return o.length?{past:Object(v.dropRight)(o),present:Object(v.last)(o),future:[s].concat(Object(P.a)(c)),lastAction:null,shouldCreateUndoLevel:!1}:t;case"REDO":return c.length?{past:[].concat(Object(P.a)(o),[s]),present:Object(v.first)(c),future:Object(v.drop)(c),lastAction:null,shouldCreateUndoLevel:!1}:t;case"CREATE_UNDO_LEVEL":return Object(f.a)({},t,{lastAction:null,shouldCreateUndoLevel:!0})}var p=e(s,r);if(Object(v.includes)(i,r.type))return{past:[],present:p,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(s===p)return t;var h=o,b=d;return!l&&o.length&&a(r,d)||(h=[].concat(Object(P.a)(o),[s]),b=r),{past:h,present:p,future:[],shouldCreateUndoLevel:!1,lastAction:b}}}};function C(t){return t&&"object"===Object(h.a)(t)&&"raw"in t?t.raw:t}function x(t,e){return t===e?Object(f.a)({},t):e}function B(t,e){return"EDIT_POST"===t.type&&(n=t.edits,r=e.edits,Object(v.isEqual)(Object(v.keys)(n),Object(v.keys)(r)));var n,r}var A=Object(v.flow)([l.combineReducers,T({resetTypes:["SETUP_EDITOR_STATE"],ignoreTypes:["RESET_POST","UPDATE_POST"],shouldOverwriteState:function(t,e){return"RESET_EDITOR_BLOCKS"===t.type?!t.shouldCreateUndoLevel:!(!e||t.type!==e.type)&&B(t,e)}})])({blocks:S({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"]})((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{value:[]},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_EDITOR_BLOCKS":return e.blocks===t.value?t:{value:e.blocks}}return t})),edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_POST":return Object(v.reduce)(e.edits,(function(e,n,r){return n!==t[r]&&(e=x(t,e),_.has(r)?e[r]=Object(f.a)({},e[r],n):e[r]=n),e}),t);case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===e.type?function(t){return e.edits[t]}:function(t){return C(e.post[t])};return Object(v.reduce)(t,(function(e,r,o){return Object(v.isEqual)(r,n(o))?(delete(e=x(t,e))[o],e):e}),t);case"RESET_EDITOR_BLOCKS":return"content"in t?Object(v.omit)(t,"content"):t}return t}});var I=Object(l.combineReducers)({data:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(v.reduce)(e.results,(function(e,n){var r=n.reusableBlock,o=r.id,i=r.title,s={clientId:n.parsedBlock.clientId,title:i};return Object(v.isEqual)(e[o],s)||((e=x(t,e))[o]=s),e}),t);case"UPDATE_REUSABLE_BLOCK_TITLE":var n=e.id,r=e.title;return t[n]&&t[n].title!==r?Object(f.a)({},t,Object(p.a)({},n,Object(f.a)({},t[n],{title:r}))):t;case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=e.id,i=e.updatedId;if(o===i)return t;var s=t[o];return Object(f.a)({},Object(v.omit)(t,o),Object(p.a)({},i,s));case"REMOVE_REUSABLE_BLOCK":var a=e.id;return Object(v.omit)(t,a)}return t},isFetching:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"FETCH_REUSABLE_BLOCKS":var n=e.id;return n?Object(f.a)({},t,Object(p.a)({},n,!0)):t;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=e.id;return Object(v.omit)(t,r)}return t},isSaving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_REUSABLE_BLOCK":return Object(f.a)({},t,Object(p.a)({},e.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=e.id;return Object(v.omit)(t,n)}return t}});var L=m()(Object(l.combineReducers)({editor:A,initialEdits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SETUP_EDITOR":if(!e.edits)break;return e.edits;case"SETUP_EDITOR_STATE":return"content"in t?Object(v.omit)(t,"content"):t;case"UPDATE_POST":return Object(v.reduce)(e.edits,(function(e,n,r){return e.hasOwnProperty(r)?(delete(e=x(t,e))[r],e):e}),t);case"RESET_POST":return y}return t},currentPost:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n;if(e.post)n=e.post;else{if(!e.edits)return t;n=Object(f.a)({},t,e.edits)}return Object(v.mapValues)(n,C)}return t},preferences:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ENABLE_PUBLISH_SIDEBAR":return Object(f.a)({},t,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(f.a)({},t,{isPublishSidebarEnabled:!1})}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,options:e.options||{}};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null,options:e.options||{}};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:e.error,options:e.options||{}}}return t},postLock:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"UPDATE_POST_LOCK":return e.lock}return t},reusableBlocks:I,template:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_TEMPLATE_VALIDITY":return Object(f.a)({},t,{isValid:e.isValid})}return t},autosave:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_AUTOSAVE":var n=e.post,r=["title","excerpt","content"].map((function(t){return C(n[t])})),o=Object(d.a)(r,3),i=o[0],s=o[1],a=o[2];return{title:i,excerpt:s,content:a}}return t},previewLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REQUEST_POST_UPDATE_SUCCESS":return e.post.preview_link?e.post.preview_link:e.post.link?Object(O.addQueryArgs)(e.post.link,{preview:!0}):t;case"REQUEST_POST_UPDATE_START":if(t&&e.options.isPreview)return null}return t},postSavingLock:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"LOCK_POST_SAVING":return Object(f.a)({},t,Object(p.a)({},e.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(t,e.lockName)}return t},isReady:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SETUP_EDITOR_STATE":return!0}return t},editorSettings:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"UPDATE_EDITOR_SETTINGS":return Object(f.a)({},t,e.settings)}return t}})),R=n("gQxa"),U=n.n(R),N=n("d2gM"),D=n.n(N),F=n("o0o1"),M=n.n(F),V=n("ywyh"),K=n.n(V);function z(t){return{type:"API_FETCH",request:t}}function q(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"SELECT",storeKey:t,selectorName:e,args:r}}function W(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"RESOLVE_SELECT",storeKey:t,selectorName:e,args:r}}function H(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"DISPATCH",storeKey:t,actionName:e,args:r}}var G={API_FETCH:function(t){var e=t.request;return K()(e)},SELECT:Object(l.createRegistryControl)((function(t){return function(e){var n,r=e.storeKey,o=e.selectorName,i=e.args;return(n=t.select(r))[o].apply(n,Object(P.a)(i))}})),DISPATCH:Object(l.createRegistryControl)((function(t){return function(e){var n,r=e.storeKey,o=e.actionName,i=e.args;return(n=t.dispatch(r))[o].apply(n,Object(P.a)(i))}})),RESOLVE_SELECT:Object(l.createRegistryControl)((function(t){return function(e){var n=e.storeKey,r=e.selectorName,o=e.args;return new Promise((function(e){var i=function(){return t.select("core/data").hasFinishedResolution(n,r,o)},s=function(){return t.select(n)[r].apply(null,o)},a=s();if(i())return e(a);var c=t.subscribe((function(){i()&&(c(),e(s()))}))}))}}))},Q=n("l3Sj");function Y(t){var e=t.previousPost,n=t.post,r=t.postType;if(Object(v.get)(t.options,["isAutosave"]))return[];var o,i=["publish","private","future"],s=Object(v.includes)(i,e.status),a=Object(v.includes)(i,n.status),c=Object(v.get)(r,["viewable"],!1);if(s||a?s&&!a?(o=r.labels.item_reverted_to_draft,c=!1):o=!s&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return c&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:"SAVE_POST_NOTICE_ID",actions:u}]}return[]}function X(t){var e=t.post,n=t.edits,r=t.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(e.status),s={publish:Object(Q.__)("Publishing failed"),private:Object(Q.__)("Publishing failed"),future:Object(Q.__)("Scheduling failed")};return[i||-1===o.indexOf(n.status)?Object(Q.__)("Updating failed"):s[n.status],{id:"SAVE_POST_NOTICE_ID"}]}var Z=M.a.mark(dt),J=M.a.mark(pt),$=M.a.mark(ft),tt=M.a.mark(ht);function et(t,e,n){return{type:"SETUP_EDITOR",post:t,edits:e,template:n}}function nt(t){return{type:"RESET_POST",post:t}}function rt(t){return{type:"RESET_AUTOSAVE",post:t}}function ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",optimist:{type:b.BEGIN,id:"post-update"},options:t}}function it(t){var e=t.previousPost,n=t.post,r=t.isRevision,o=t.options,i=t.postType;return{type:"REQUEST_POST_UPDATE_SUCCESS",previousPost:e,post:n,optimist:{type:r?b.REVERT:b.COMMIT,id:"post-update"},options:o,postType:i}}function st(t){var e=t.post,n=t.edits,r=t.error,o=t.options;return{type:"REQUEST_POST_UPDATE_FAILURE",optimist:{type:b.REVERT,id:"post-update"},post:e,edits:n,error:r,options:o}}function at(t){return{type:"UPDATE_POST",edits:t}}function ct(t){return{type:"SETUP_EDITOR_STATE",post:t}}function ut(t){return{type:"EDIT_POST",edits:t}}function lt(t){return Object(f.a)({},at(t),{optimist:{id:"post-update"}})}function dt(){var t,e,n,r,o,i,s,a,c,u,l,d,p,h,b,m=arguments;return M.a.wrap((function(O){for(;;)switch(O.prev=O.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},O.next=3,q(E,"isEditedPostSaveable");case 3:if(O.sent){O.next=6;break}return O.abrupt("return");case 6:return O.next=8,q(E,"getPostEdits");case 8:return e=O.sent,(n=!!t.isAutosave)&&(e=Object(v.pick)(e,["title","content","excerpt"])),O.next=13,q(E,"isEditedPostNew");case 13:return O.sent&&(e=Object(f.a)({status:"draft"},e)),O.next=17,q(E,"getCurrentPost");case 17:return r=O.sent,O.next=20,q(E,"getEditedPostContent");case 20:return o=O.sent,i=Object(f.a)({},e,{content:o,id:r.id}),O.next=24,q(E,"getCurrentPostType");case 24:return s=O.sent,O.next=27,W("core","getPostType",s);case 27:return a=O.sent,O.next=30,H(E,"__experimentalRequestPostUpdateStart",t);case 30:return O.next=32,H(E,"__experimentalOptimisticUpdatePost",i);case 32:if(c="/wp/v2/".concat(a.rest_base,"/").concat(r.id),u="PUT",!n){O.next=43;break}return O.next=37,q(E,"getAutosave");case 37:l=O.sent,i=Object(f.a)({},Object(v.pick)(r,["title","content","excerpt"]),l,i),c+="/autosaves",u="POST",O.next=47;break;case 43:return O.next=45,H("core/notices","removeNotice","SAVE_POST_NOTICE_ID");case 45:return O.next=47,H("core/notices","removeNotice","autosave-exists");case 47:return O.prev=47,O.next=50,z({path:c,method:u,data:i});case 50:return d=O.sent,p=n?"resetAutosave":"resetPost",O.next=54,H(E,p,d);case 54:return O.next=56,H(E,"__experimentalRequestPostUpdateSuccess",{previousPost:r,post:d,options:t,postType:a,isRevision:d.id!==r.id});case 56:if(!((h=Y({previousPost:r,post:d,postType:a,options:t})).length>0)){O.next=60;break}return O.next=60,H.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(P.a)(h)));case 60:O.next=70;break;case 62:return O.prev=62,O.t0=O.catch(47),O.next=66,H(E,"__experimentalRequestPostUpdateFailure",{post:r,edits:e,error:O.t0,options:t});case 66:if(!((b=X({post:r,edits:e,error:O.t0})).length>0)){O.next=70;break}return O.next=70,H.apply(void 0,["core/notices","createErrorNotice"].concat(Object(P.a)(b)));case 70:case"end":return O.stop()}}),Z,this,[[47,62]])}function pt(){var t,e,n,r;return M.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,q(E,"getCurrentPost");case 2:return t=o.sent,o.next=5,q(E,"getCurrentPostType");case 5:return e=o.sent,o.next=8,W("core","getPostType",e);case 8:return n=o.sent,o.next=11,z({path:"/wp/v2/".concat(n.rest_base,"/").concat(t.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,H(E,"resetPost",r);case 14:case"end":return o.stop()}}),J,this)}function ft(){var t,e,n;return M.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,q(E,"getCurrentPostType");case 2:return t=r.sent,r.next=5,W("core","getPostType",t);case 5:return e=r.sent,r.next=8,H("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,q(E,"getCurrentPost");case 11:return n=r.sent,r.next=14,z({path:"/wp/v2/".concat(e.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,H(E,"resetPost",Object(f.a)({},n,{status:"trash"}));case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,H.apply(void 0,["core/notices","createErrorNotice"].concat(Object(P.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Q.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),$,this,[[8,18]])}function ht(t){return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H(E,"savePost",Object(f.a)({isAutosave:!0},t));case 2:case"end":return e.stop()}}),tt,this)}function bt(){return{type:"REDO"}}function mt(){return{type:"UNDO"}}function vt(){return{type:"CREATE_UNDO_LEVEL"}}function Ot(t){return{type:"UPDATE_POST_LOCK",lock:t}}function gt(t){return{type:"FETCH_REUSABLE_BLOCKS",id:t}}function yt(t){return{type:"RECEIVE_REUSABLE_BLOCKS",results:t}}function jt(t){return{type:"SAVE_REUSABLE_BLOCK",id:t}}function _t(t){return{type:"DELETE_REUSABLE_BLOCK",id:t}}function Et(t,e){return{type:"UPDATE_REUSABLE_BLOCK_TITLE",id:t,title:e}}function kt(t){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:t}}function St(t){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(v.castArray)(t)}}function Pt(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function wt(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Tt(t){return{type:"LOCK_POST_SAVING",lockName:t}}function Ct(t){return{type:"UNLOCK_POST_SAVING",lockName:t}}function xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"RESET_EDITOR_BLOCKS",blocks:t,shouldCreateUndoLevel:!1!==e.__unstableShouldCreateUndoLevel}}function Bt(t){return{type:"UPDATE_EDITOR_SETTINGS",settings:t}}var At=function(t){return M.a.mark((function e(){var n,r,o,i=arguments;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=i.length,r=new Array(n),o=0;o<n;o++)r[o]=i[o];return e.next=3,H.apply(void 0,["core/block-editor",t].concat(r));case 3:case"end":return e.stop()}}),e,this)}))},It=At("resetBlocks"),Lt=At("receiveBlocks"),Rt=At("updateBlock"),Ut=At("updateBlockAttributes"),Nt=At("selectBlock"),Dt=At("startMultiSelect"),Ft=At("stopMultiSelect"),Mt=At("multiSelect"),Vt=At("clearSelectedBlock"),Kt=At("toggleSelection"),zt=At("replaceBlocks"),qt=At("replaceBlock"),Wt=At("moveBlocksDown"),Ht=At("moveBlocksUp"),Gt=At("moveBlockToPosition"),Qt=At("insertBlock"),Yt=At("insertBlocks"),Xt=At("showInsertionPoint"),Zt=At("hideInsertionPoint"),Jt=At("setTemplateValidity"),$t=At("synchronizeTemplate"),te=At("mergeBlocks"),ee=At("removeBlocks"),ne=At("removeBlock"),re=At("toggleBlockMode"),oe=At("startTyping"),ie=At("stopTyping"),se=At("enterFormattedText"),ae=At("exitFormattedText"),ce=At("insertDefaultBlock"),ue=At("updateBlockListSettings"),le=n("HaE+"),de=n("pPDe"),pe=n("FqII"),fe=n("UuzZ"),he={};function be(t){return t.editor.past.length>0}function me(t){return t.editor.future.length>0}function ve(t){return"auto-draft"===je(t).status}function Oe(t){return t.editor.present.blocks.isDirty||"content"in t.editor.present.edits}function ge(t){return!!Oe(t)||(Object.keys(t.editor.present.edits).length>0||un(t,ge))}function ye(t){return!ge(t)&&ve(t)}function je(t){return t.currentPost}function _e(t){return t.currentPost.type}function Ee(t){return je(t).id||null}function ke(t){return Object(v.get)(je(t),["_links","version-history",0,"count"],0)}function Se(t){return Object(v.get)(je(t),["_links","predecessor-version",0,"id"],null)}var Pe=Object(de.a)((function(t){return Object(f.a)({},t.initialEdits,t.editor.present.edits)}),(function(t){return[t.editor.present.edits,t.initialEdits]})),we=Object(de.a)((function(){return[]}),(function(t){return[t.editor]}));function Te(t,e){var n=je(t);if(n.hasOwnProperty(e))return n[e]}var Ce=Object(de.a)((function(t,e){var n=Pe(t);return n.hasOwnProperty(e)?Object(f.a)({},Te(t,e),n[e]):Te(t,e)}),(function(t,e){return[Object(v.get)(t.editor.present.edits,[e],he),Object(v.get)(t.currentPost,[e],he)]}));function xe(t,e){switch(e){case"content":return Je(t)}var n=Pe(t);return n.hasOwnProperty(e)?_.has(e)?Ce(t,e):n[e]:Te(t,e)}function Be(t,e){if(!Ve(t))return null;var n=Me(t);return n.hasOwnProperty(e)?n[e]:void 0}function Ae(t){return"private"===xe(t,"status")?"private":xe(t,"password")?"password":"public"}function Ie(t){return"pending"===je(t).status}function Le(t){var e=je(t);return-1!==["publish","private"].indexOf(e.status)||"future"===e.status&&!Object(pe.isInTheFuture)(new Date(Number(Object(pe.getDate)(e.date))-6e4))}function Re(t){return"future"===je(t).status&&!Le(t)}function Ue(t){var e=je(t);return ge(t)||-1===["publish","private","future"].indexOf(e.status)}function Ne(t){return!qe(t)&&(!!xe(t,"title")||!!xe(t,"excerpt")||!De(t))}function De(t){var e=t.editor.present.blocks.value;if(e.length&&!("content"in Pe(t))){if(e.length>1)return!1;var n=e[0].name;if(n!==Object(s.getDefaultBlockName)()&&n!==Object(s.getFreeformContentHandlerName)())return!1}return!Je(t)}function Fe(t){if(!Ne(t))return!1;if(!Ve(t))return!0;if(Oe(t))return!0;var e=Me(t);return["title","excerpt"].some((function(n){return e[n]!==xe(t,n)}))}function Me(t){return t.autosave}function Ve(t){return!!Me(t)}function Ke(t){var e=xe(t,"date"),n=new Date(Number(Object(pe.getDate)(e))-6e4);return Object(pe.isInTheFuture)(n)}function ze(t){var e=xe(t,"date"),n=xe(t,"modified"),r=xe(t,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&e===n}function qe(t){return t.saving.requesting}function We(t){return t.saving.successful}function He(t){return!!t.saving.error}function Ge(t){return qe(t)&&!!t.saving.options.isAutosave}function Qe(t){return qe(t)&&!!t.saving.options.isPreview}function Ye(t){var e=xe(t,"featured_media"),n=t.previewLink;return n&&e?Object(O.addQueryArgs)(n,{_thumbnail_id:e}):n}function Xe(t){var e,n=t.editor.present.blocks.value;switch(1===n.length&&(e=n[0].name),2===n.length&&"core/paragraph"===n[1].name&&(e=n[0].name),e){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}function Ze(t){var e=t.editor.present.blocks.value;return 1===e.length&&Object(s.isUnmodifiedDefaultBlock)(e[0])?[]:e}var Je=Object(de.a)((function(t){var e=Pe(t);if("content"in e)return e.content;var n=Ze(t),r=Object(s.serialize)(n);return 1===n.length&&n[0].name===Object(s.getFreeformContentHandlerName)()?Object(fe.removep)(r):r}),(function(t){return[t.editor.present.blocks.value,t.editor.present.edits.content,t.initialEdits.content]})),$e=Object(de.a)((function(t,e){var n=t.reusableBlocks.data[e];if(!n)return null;var r=isNaN(parseInt(e));return Object(f.a)({},n,{id:r?e:+e,isTemporary:r})}),(function(t,e){return[t.reusableBlocks.data[e]]}));function tn(t,e){return t.reusableBlocks.isSaving[e]||!1}function en(t,e){return!!t.reusableBlocks.isFetching[e]}var nn=Object(de.a)((function(t){return Object(v.map)(t.reusableBlocks.data,(function(e,n){return $e(t,n)}))}),(function(t){return[t.reusableBlocks.data]}));function rn(t,e){var n=Object(v.find)(t.optimist,(function(t){return t.beforeState&&Object(v.get)(t.action,["optimist","id"])===e}));return n?n.beforeState:null}function on(t){if(!qe(t))return!1;if(!Le(t))return!1;var e=rn(t,"post-update");return!!e&&!Le(e)}function sn(t){var e=xe(t,"permalink_template");return k.test(e)}function an(t){var e=cn(t);if(!e)return null;var n=e.prefix,r=e.postName,o=e.suffix;return sn(t)?n+r+o:n}function cn(t){var e=xe(t,"permalink_template");if(!e)return null;var n=xe(t,"slug")||xe(t,"generated_slug"),r=e.split(k),o=Object(d.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function un(t,e){var n=t.optimist;return!!n&&n.some((function(t){var n=t.beforeState;return n&&e(n)}))}function ln(t){return t.postLock.isLocked}function dn(t){return Object.keys(t.postSavingLock).length>0}function pn(t){return t.postLock.isTakeover}function fn(t){return t.postLock.user}function hn(t){return t.postLock.activePostLock}function bn(t){return Object(v.has)(je(t),["_links","wp:action-unfiltered-html"])}function mn(t){return t.preferences.hasOwnProperty("isPublishSidebarEnabled")?t.preferences.isPublishSidebarEnabled:g.isPublishSidebarEnabled}function vn(t){return t.editor.present.blocks.value}function On(t){return t.isReady}function gn(t){return t.editorSettings}function yn(t){return Object(l.createRegistrySelector)((function(e){return function(n){for(var r,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return(r=e("core/block-editor"))[t].apply(r,i)}}))}var jn=yn("getBlockDependantsCacheBust"),_n=yn("getBlockName"),En=yn("isBlockValid"),kn=yn("getBlockAttributes"),Sn=yn("getBlock"),Pn=yn("getBlocks"),wn=yn("__unstableGetBlockWithoutInnerBlocks"),Tn=yn("getClientIdsOfDescendants"),Cn=yn("getClientIdsWithDescendants"),xn=yn("getGlobalBlockCount"),Bn=yn("getBlocksByClientId"),An=yn("getBlockCount"),In=yn("getBlockSelectionStart"),Ln=yn("getBlockSelectionEnd"),Rn=yn("getSelectedBlockCount"),Un=yn("hasSelectedBlock"),Nn=yn("getSelectedBlockClientId"),Dn=yn("getSelectedBlock"),Fn=yn("getBlockRootClientId"),Mn=yn("getBlockHierarchyRootClientId"),Vn=yn("getAdjacentBlockClientId"),Kn=yn("getPreviousBlockClientId"),zn=yn("getNextBlockClientId"),qn=yn("getSelectedBlocksInitialCaretPosition"),Wn=yn("getMultiSelectedBlockClientIds"),Hn=yn("getMultiSelectedBlocks"),Gn=yn("getFirstMultiSelectedBlockClientId"),Qn=yn("getLastMultiSelectedBlockClientId"),Yn=yn("isFirstMultiSelectedBlock"),Xn=yn("isBlockMultiSelected"),Zn=yn("isAncestorMultiSelected"),Jn=yn("getMultiSelectedBlocksStartClientId"),$n=yn("getMultiSelectedBlocksEndClientId"),tr=yn("getBlockOrder"),er=yn("getBlockIndex"),nr=yn("isBlockSelected"),rr=yn("hasSelectedInnerBlock"),or=yn("isBlockWithinSelection"),ir=yn("hasMultiSelection"),sr=yn("isMultiSelecting"),ar=yn("isSelectionEnabled"),cr=yn("getBlockMode"),ur=yn("isTyping"),lr=yn("isCaretWithinFormattedText"),dr=yn("getBlockInsertionPoint"),pr=yn("isBlockInsertionPointVisible"),fr=yn("isValidTemplate"),hr=yn("getTemplate"),br=yn("getTemplateLock"),mr=yn("canInsertBlockType"),vr=yn("getInserterItems"),Or=yn("hasInserterItems"),gr=yn("getBlockListSettings"),yr=function(){var t=Object(le.a)(M.a.mark((function t(e,n){var r,o,i,a,c;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.id,o=n.dispatch,t.next=4,K()({path:"/wp/v2/types/wp_block"});case 4:if(i=t.sent){t.next=7;break}return t.abrupt("return");case 7:if(t.prev=7,!r){t.next=15;break}return t.next=11,K()({path:"/wp/v2/".concat(i.rest_base,"/").concat(r)});case 11:t.t0=t.sent,a=[t.t0],t.next=18;break;case 15:return t.next=17,K()({path:"/wp/v2/".concat(i.rest_base,"?per_page=-1")});case 17:a=t.sent;case 18:(c=Object(v.compact)(Object(v.map)(a,(function(t){if("publish"!==t.status||t.content.protected)return null;var e=Object(s.parse)(t.content.raw);return{reusableBlock:{id:t.id,title:C(t.title)},parsedBlock:1===e.length?e[0]:Object(s.createBlock)("core/template",{},e)}})))).length&&o(yt(c)),o({type:"FETCH_REUSABLE_BLOCKS_SUCCESS",id:r}),t.next=26;break;case 23:t.prev=23,t.t1=t.catch(7),o({type:"FETCH_REUSABLE_BLOCKS_FAILURE",id:r,error:t.t1});case 26:case"end":return t.stop()}}),t,this,[[7,23]])})));return function(e,n){return t.apply(this,arguments)}}(),jr=function(){var t=Object(le.a)(M.a.mark((function t(e,n){var r,o,i,a,c,u,d,p,f,h,b,m,v,O,g;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K()({path:"/wp/v2/types/wp_block"});case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return");case 5:return o=e.id,i=n.dispatch,a=n.getState(),c=$e(a,o),u=c.clientId,d=c.title,p=c.isTemporary,f=Object(l.select)("core/block-editor").getBlock(u),h=Object(s.serialize)("core/template"===f.name?f.innerBlocks:f),b=p?{title:d,content:h,status:"publish"}:{id:o,title:d,content:h,status:"publish"},m=p?"/wp/v2/".concat(r.rest_base):"/wp/v2/".concat(r.rest_base,"/").concat(o),v=p?"POST":"PUT",t.prev=14,t.next=17,K()({path:m,data:b,method:v});case 17:O=t.sent,i({type:"SAVE_REUSABLE_BLOCK_SUCCESS",updatedId:O.id,id:o}),g=p?Object(Q.__)("Block created."):Object(Q.__)("Block updated."),Object(l.dispatch)("core/notices").createSuccessNotice(g,{id:"REUSABLE_BLOCK_NOTICE_ID"}),Object(l.dispatch)("core/block-editor").__unstableSaveReusableBlock(o,O.id),t.next=28;break;case 24:t.prev=24,t.t0=t.catch(14),i({type:"SAVE_REUSABLE_BLOCK_FAILURE",id:o}),Object(l.dispatch)("core/notices").createErrorNotice(t.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 28:case"end":return t.stop()}}),t,this,[[14,24]])})));return function(e,n){return t.apply(this,arguments)}}(),_r=function(){var t=Object(le.a)(M.a.mark((function t(e,n){var r,o,i,a,c,u,d,p,f,h;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K()({path:"/wp/v2/types/wp_block"});case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return");case 5:if(o=e.id,i=n.getState,a=n.dispatch,(c=$e(i(),o))&&!c.isTemporary){t.next=10;break}return t.abrupt("return");case 10:return u=Object(l.select)("core/block-editor").getBlocks(),d=u.filter((function(t){return Object(s.isReusableBlock)(t)&&t.attributes.ref===o})),p=d.map((function(t){return t.clientId})),f=Object(v.uniqueId)(),a({type:"REMOVE_REUSABLE_BLOCK",id:o,optimist:{type:b.BEGIN,id:f}}),Object(l.dispatch)("core/block-editor").removeBlocks([].concat(Object(P.a)(p),[c.clientId])),t.prev=16,t.next=19,K()({path:"/wp/v2/".concat(r.rest_base,"/").concat(o),method:"DELETE"});case 19:a({type:"DELETE_REUSABLE_BLOCK_SUCCESS",id:o,optimist:{type:b.COMMIT,id:f}}),h=Object(Q.__)("Block deleted."),Object(l.dispatch)("core/notices").createSuccessNotice(h,{id:"REUSABLE_BLOCK_NOTICE_ID"}),t.next=28;break;case 24:t.prev=24,t.t0=t.catch(16),a({type:"DELETE_REUSABLE_BLOCK_FAILURE",id:o,optimist:{type:b.REVERT,id:f}}),Object(l.dispatch)("core/notices").createErrorNotice(t.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 28:case"end":return t.stop()}}),t,this,[[16,24]])})));return function(e,n){return t.apply(this,arguments)}}(),Er={SETUP_EDITOR:function(t){var e,n=t.post,r=t.edits,o=t.template;e=Object(v.has)(r,["content"])?r.content:n.content.raw;var i=Object(s.parse)(e);return"auto-draft"===n.status&&o&&(i=Object(s.synchronizeBlocksWithTemplate)(i,o)),[xt(i),ct(n)]},FETCH_REUSABLE_BLOCKS:function(t,e){yr(t,e)},SAVE_REUSABLE_BLOCK:function(t,e){jr(t,e)},DELETE_REUSABLE_BLOCK:function(t,e){_r(t,e)},RECEIVE_REUSABLE_BLOCKS:function(t){Object(l.dispatch)("core/block-editor").receiveBlocks(Object(v.map)(t.results,"parsedBlock"))},CONVERT_BLOCK_TO_STATIC:function(t,e){var n,r=e.getState(),o=Object(l.select)("core/block-editor").getBlock(t.clientId),i=$e(r,o.attributes.ref),a=Object(l.select)("core/block-editor").getBlock(i.clientId);n="core/template"===a.name?a.innerBlocks.map((function(t){return Object(s.cloneBlock)(t)})):[Object(s.cloneBlock)(a)],Object(l.dispatch)("core/block-editor").replaceBlocks(o.clientId,n)},CONVERT_BLOCK_TO_REUSABLE:function(t,e){var n,r=e.dispatch;1===t.clientIds.length?n=Object(l.select)("core/block-editor").getBlock(t.clientIds[0]):(n=Object(s.createBlock)("core/template",{},Object(l.select)("core/block-editor").getBlocksByClientId(t.clientIds)),Object(l.dispatch)("core/block-editor").receiveBlocks([n]));var o={id:Object(v.uniqueId)("reusable"),clientId:n.clientId,title:Object(Q.__)("Untitled Reusable Block")};r(yt([{reusableBlock:o,parsedBlock:n}])),r(jt(o.id)),Object(l.dispatch)("core/block-editor").replaceBlocks(t.clientIds,Object(s.createBlock)("core/block",{ref:o.id})),Object(l.dispatch)("core/block-editor").receiveBlocks([n])}};var kr=function(t){var e,n=[U()(Er),D.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:t.getState,dispatch:function(){return r.apply(void 0,arguments)}};return e=n.map((function(t){return t(o)})),r=v.flowRight.apply(void 0,Object(P.a)(e))(t.dispatch),t.dispatch=r,t},Sr=Object(l.registerStore)(E,{reducer:L,selectors:o,actions:r,controls:G,persist:["preferences"]});kr(Sr);var Pr=n("g56x"),wr=n("GRId");function Tr(){return Object(l.select)("core/block-editor").getBlockInsertionPoint().rootClientId}function Cr(t){return Object(l.select)("core/block-editor").getInserterItems(t)}function xr(){var t=Object(l.select)("core/block-editor"),e=t.getSelectedBlockClientId,n=t.getBlockName,r=e();return r?n(r):null}var Br=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getBlockInsertionParentClientId,n=void 0===e?Tr:e,r=t.getInserterItems,o=void 0===r?Cr:r,a=t.getSelectedBlockName,c=void 0===a?xr:a;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var t=c();return o(n()).filter((function(e){return t!==e.name}))},getOptionKeywords:function(t){var e=t.title,n=t.keywords,r=void 0===n?[]:n;return[t.category].concat(Object(P.a)(r),[e])},getOptionLabel:function(t){var e=t.icon,n=t.title;return[Object(wr.createElement)(i.BlockIcon,{key:"icon",icon:e,showColors:!0}),n]},allowContext:function(t,e){return!(/\S/.test(t)||/\S/.test(e))},getOptionCompletion:function(t){var e=t.name,n=t.initialAttributes;return{action:"replace",value:Object(s.createBlock)(e,n)}},isOptionDisabled:function(t){return t.isDisabled}}}(),Ar={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(t){var e="";return t&&(e="?search="+encodeURIComponent(t)),K()({path:"/wp/v2/users"+e})},isDebounced:!0,getOptionKeywords:function(t){return[t.slug,t.name]},getOptionLabel:function(t){return[Object(wr.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:t.avatar_urls[24]}),Object(wr.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},t.name),Object(wr.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},t.slug)]},getOptionCompletion:function(t){return"@".concat(t.slug)}},Ir=n("wx14"),Lr=n("Ff2n"),Rr=n("tI+e"),Ur=function(t){var e=t.urlQueryArgs,n=void 0===e?{}:e,r=Object(Lr.a)(t,["urlQueryArgs"]),o=Object(l.select)("core/editor").getCurrentPostId;return n=Object(f.a)({post_id:o()},n),Object(wr.createElement)(Rr.ServerSideRender,Object(Ir.a)({urlQueryArgs:n},r))},Nr=n("1OyB"),Dr=n("vuIU"),Fr=n("md7G"),Mr=n("foSv"),Vr=n("Ji7U"),Kr=n("K9lf"),zr=function(t){function e(){return Object(Nr.a)(this,e),Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isDirty,r=e.editsReference,o=e.isAutosaveable,i=e.isAutosaving;r!==t.editsReference&&(this.didAutosaveForEditsReference=!1),!i&&t.isAutosaving&&(this.didAutosaveForEditsReference=!0),t.isDirty===n&&t.isAutosaveable===o&&t.editsReference===r||this.toggleTimer(n&&o&&!this.didAutosaveForEditsReference)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(t){var e=this;clearTimeout(this.pendingSave);var n=this.props.autosaveInterval;t&&(this.pendingSave=setTimeout((function(){return e.props.autosave()}),1e3*n))}},{key:"render",value:function(){return null}}]),e}(wr.Component),qr=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isEditedPostDirty,r=e.isEditedPostAutosaveable,o=e.getReferenceByDistinctEdits,i=e.isAutosavingPost,s=t("core/editor").getEditorSettings().autosaveInterval;return{isDirty:n(),isAutosaveable:r(),editsReference:o(),isAutosaving:i(),autosaveInterval:s}})),Object(l.withDispatch)((function(t){return{autosave:t("core/editor").autosave}}))])(zr),Wr=n("TSYQ"),Hr=n.n(Wr),Gr=function(t){var e=t.children,n=t.isValid,r=t.level,o=t.path,s=void 0===o?[]:o,a=t.href,c=t.onSelect;return Object(wr.createElement)("li",{className:Hr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(wr.createElement)("a",{href:a,className:"document-outline__button",onClick:c},Object(wr.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),s.map((function(t,e){var n=t.clientId;return Object(wr.createElement)("strong",{key:e,className:"document-outline__level"},Object(wr.createElement)(i.BlockTitle,{clientId:n}))})),Object(wr.createElement)("strong",{className:"document-outline__level"},r),Object(wr.createElement)("span",{className:"document-outline__item-content"},e)))},Qr=Object(wr.createElement)("em",null,Object(Q.__)("(Empty heading)")),Yr=[Object(wr.createElement)("br",{key:"incorrect-break"}),Object(wr.createElement)("em",{key:"incorrect-message"},Object(Q.__)("(Incorrect heading level)"))],Xr=[Object(wr.createElement)("br",{key:"incorrect-break-h1"}),Object(wr.createElement)("em",{key:"incorrect-message-h1"},Object(Q.__)("(Your theme may already use a H1 for the post title)"))],Zr=[Object(wr.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(wr.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(Q.__)("(Multiple H1 headings are not recommended)"))],Jr=function(t){return!t.attributes.content||0===t.attributes.content.length},$r=Object(Kr.compose)(Object(l.withSelect)((function(t){var e=t("core/block-editor").getBlocks,n=t("core/editor").getEditedPostAttribute,r=(0,t("core").getPostType)(n("type"));return{title:n("title"),blocks:e(),isTitleSupported:Object(v.get)(r,["supports","title"],!1)}})))((function(t){var e=t.blocks,n=void 0===e?[]:e,r=t.title,o=t.onSelect,i=t.isTitleSupported,s=t.hasOutlineItemsDisabled,a=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(v.flatMap)(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===e.name?Object(f.a)({},e,{path:n,level:e.attributes.level,isEmpty:Jr(e)}):t(e.innerBlocks,[].concat(Object(P.a)(n),[e]))}))}(n);if(a.length<1)return null;var u=1,l=document.querySelector(".editor-post-title__input"),d=i&&r&&l,p=Object(v.countBy)(a,"level")[1]>1;return Object(wr.createElement)("div",{className:"document-outline"},Object(wr.createElement)("ul",null,d&&Object(wr.createElement)(Gr,{level:Object(Q.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(l.id),isDisabled:s},r),a.map((function(t,e){var n=t.level>u+1,r=!(t.isEmpty||n||!t.level||1===t.level&&(p||d));return u=t.level,Object(wr.createElement)(Gr,{key:e,level:"H".concat(t.level),isValid:r,path:t.path,isDisabled:s,href:"#block-".concat(t.clientId),onSelect:o},t.isEmpty?Qr:Object(c.getTextContent)(Object(c.create)({html:t.attributes.content})),n&&Yr,1===t.level&&p&&Zr,d&&1===t.level&&!p&&Xr)}))))}));var to=Object(l.withSelect)((function(t){return{blocks:t("core/block-editor").getBlocks()}}))((function(t){var e=t.blocks,n=t.children;return Object(v.filter)(e,(function(t){return"core/heading"===t.name})).length<1?null:n})),eo=n("JX7q"),no=n("RxS6"),ro=n("NMb1"),oo=n.n(ro);var io=Object(Kr.compose)([Object(l.withSelect)((function(t){return{isDirty:(0,t("core/editor").isEditedPostDirty)()}})),Object(l.withDispatch)((function(t,e,n){var r=n.select,o=t("core/editor").savePost;return{onSave:function(){(0,r("core/editor").isEditedPostDirty)()&&o()}}}))])((function(t){var e=t.onSave;return Object(wr.createElement)(Rr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.a)({},no.rawShortcut.primary("s"),(function(t){t.preventDefault(),e()}))})})),so=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).undoOrRedo=t.undoOrRedo.bind(Object(eo.a)(Object(eo.a)(t))),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"undoOrRedo",value:function(t){var e=this.props,n=e.onRedo,r=e.onUndo;t.shiftKey?n():r(),t.preventDefault()}},{key:"render",value:function(){var t;return Object(wr.createElement)(wr.Fragment,null,Object(wr.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(wr.createElement)(Rr.KeyboardShortcuts,{shortcuts:(t={},Object(p.a)(t,no.rawShortcut.primary("z"),this.undoOrRedo),Object(p.a)(t,no.rawShortcut.primaryShift("z"),this.undoOrRedo),t)}),Object(wr.createElement)(io,null))}}]),e}(wr.Component),ao=Object(l.withDispatch)((function(t){var e=t("core/editor");return{onRedo:e.redo,onUndo:e.undo}}))(so),co=ao;function uo(){return oo()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(wr.createElement)(ao,null)}function lo(){return Object(wr.createElement)(io,null)}var po=Object(Kr.compose)([Object(l.withSelect)((function(t){return{hasRedo:t("core/editor").hasEditorRedo()}})),Object(l.withDispatch)((function(t){return{redo:t("core/editor").redo}}))])((function(t){var e=t.hasRedo,n=t.redo;return Object(wr.createElement)(Rr.IconButton,{icon:"redo",label:Object(Q.__)("Redo"),shortcut:no.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?n:void 0,className:"editor-history__redo"})}));var fo=Object(Kr.compose)([Object(l.withSelect)((function(t){return{hasUndo:t("core/editor").hasEditorUndo()}})),Object(l.withDispatch)((function(t){return{undo:t("core/editor").undo}}))])((function(t){var e=t.hasUndo,n=t.undo;return Object(wr.createElement)(Rr.IconButton,{icon:"undo",label:Object(Q.__)("Undo"),shortcut:no.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?n:void 0,className:"editor-history__undo"})}));var ho=Object(Kr.compose)([Object(l.withSelect)((function(t){return{isValid:t("core/block-editor").isValidTemplate()}})),Object(l.withDispatch)((function(t){var e=t("core/block-editor"),n=e.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:e.synchronizeTemplate}}))])((function(t){var e=t.isValid,n=Object(Lr.a)(t,["isValid"]);return e?null:Object(wr.createElement)(Rr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(wr.createElement)("p",null,Object(Q.__)("The content of your post doesnt match the template assigned to your post type.")),Object(wr.createElement)("div",null,Object(wr.createElement)(Rr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(Q.__)("Keep it as is")),Object(wr.createElement)(Rr.Button,{onClick:function(){window.confirm(Object(Q.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(Q.__)("Reset the template"))))}));var bo=Object(Kr.compose)([Object(l.withSelect)((function(t){return{notices:t("core/notices").getNotices()}})),Object(l.withDispatch)((function(t){return{onRemove:t("core/notices").removeNotice}}))])((function(t){var e=t.dismissible,n=t.notices,r=Object(Lr.a)(t,["dismissible","notices"]);return void 0!==e&&(n=Object(v.filter)(n,{isDismissible:e})),Object(wr.createElement)(Rr.NoticeList,Object(Ir.a)({notices:n},r),!1!==e&&Object(wr.createElement)(ho,null))})),mo=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).reboot=t.reboot.bind(Object(eo.a)(Object(eo.a)(t))),t.getContent=t.getContent.bind(Object(eo.a)(Object(eo.a)(t))),t.state={error:null},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidCatch",value:function(t){this.setState({error:t})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(l.select)("core/editor").getEditedPostContent()}catch(t){}}},{key:"render",value:function(){var t=this.state.error;return t?Object(wr.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(wr.createElement)(Rr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(Q.__)("Attempt Recovery")),Object(wr.createElement)(Rr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(Q.__)("Copy Post Text")),Object(wr.createElement)(Rr.ClipboardButton,{key:"copy-error",text:t.stack,isLarge:!0},Object(Q.__)("Copy Error"))]},Object(Q.__)("The editor has encountered an unexpected error.")):this.props.children}}]),e}(wr.Component);var vo=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getEditorSettings,o=t("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(t){var e=t.availableTemplates,n=t.postType,r=t.children;return!Object(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(e)?null:r}));var Oo=Object(l.withSelect)((function(t){var e=t("core/editor").getEditedPostAttribute;return{postType:(0,t("core").getPostType)(e("type"))}}))((function(t){var e=t.postType,n=t.children,r=t.supportKeys,o=!0;return e&&(o=Object(v.some)(Object(v.castArray)(r),(function(t){return!!e.supports[t]}))),o?n:null})),go=Object(Kr.withState)({orderInput:null})((function(t){var e=t.onUpdateOrder,n=t.order,r=void 0===n?0:n,o=t.orderInput,i=t.setState,s=null===o?r:o;return Object(wr.createElement)(Rr.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Q.__)("Order"),value:s,onChange:function(t){i({orderInput:t});var n=Number(t);Number.isInteger(n)&&""!==Object(v.invoke)(t,["trim"])&&e(Number(t))},size:6,onBlur:function(){i({orderInput:null})}})}));var yo=Object(Kr.compose)([Object(l.withSelect)((function(t){return{order:t("core/editor").getEditedPostAttribute("menu_order")}})),Object(l.withDispatch)((function(t){return{onUpdateOrder:function(e){t("core/editor").editPost({menu_order:e})}}}))])((function(t){return Object(wr.createElement)(Oo,{supportKeys:"page-attributes"},Object(wr.createElement)(go,t))}));function jo(t){var e=t.map((function(t){return Object(f.a)({children:[],parent:null},t)})),n=Object(v.groupBy)(e,"parent");if(n.null&&n.null.length)return e;return function t(e){return e.map((function(e){var r=n[e.id];return Object(f.a)({},e,{children:r&&r.length?t(r):[]})}))}(n[0]||[])}var _o=Object(l.withSelect)((function(t){var e=t("core"),n=e.getPostType,r=e.getEntityRecords,o=t("core/editor"),i=o.getCurrentPostId,s=o.getEditedPostAttribute,a=s("type"),c=n(a),u=i(),l=Object(v.get)(c,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:s("parent"),items:l?r("postType",a,d):[],postType:c}})),Eo=Object(l.withDispatch)((function(t){var e=t("core/editor").editPost;return{onUpdateParent:function(t){e({parent:t||0})}}})),ko=Object(Kr.compose)([_o,Eo])((function(t){var e=t.parent,n=t.postType,r=t.items,o=t.onUpdateParent,i=Object(v.get)(n,["hierarchical"],!1),s=Object(v.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!s||!a.length)return null;var c=jo(a.map((function(t){return{id:t.id,parent:t.parent,name:t.title.raw?t.title.raw:"#".concat(t.id," (").concat(Object(Q.__)("no title"),")")}})));return Object(wr.createElement)(Rr.TreeSelect,{className:"editor-page-attributes__parent",label:s,noOptionLabel:"(".concat(Object(Q.__)("no parent"),")"),tree:c,selectedId:e,onChange:o})}));var So=Object(Kr.compose)(Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=(0,e.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(l.withDispatch)((function(t){return{onUpdate:function(e){t("core/editor").editPost({template:e||""})}}})))((function(t){var e=t.availableTemplates,n=t.selectedTemplate,r=t.onUpdate;return Object(v.isEmpty)(e)?null:Object(wr.createElement)(Rr.SelectControl,{label:Object(Q.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(e,(function(t,e){return{value:e,label:t}}))})}));var Po=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(e,["_links","wp:action-assign-author"],!1),postType:t("core/editor").getCurrentPostType(),authors:t("core").getAuthors()}})),Kr.withInstanceId])((function(t){var e=t.hasAssignAuthorAction,n=t.authors,r=t.children;return!e||n.length<2?null:Object(wr.createElement)(Oo,{supportKeys:"author"},r)})),wo=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).setAuthorId=t.setAuthorId.bind(Object(eo.a)(Object(eo.a)(t))),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"setAuthorId",value:function(t){var e=this.props.onUpdateAuthor,n=t.target.value;e(Number(n))}},{key:"render",value:function(){var t=this.props,e=t.postAuthor,n=t.instanceId,r=t.authors,o="post-author-selector-"+n;return Object(wr.createElement)(Po,null,Object(wr.createElement)("label",{htmlFor:o},Object(Q.__)("Author")),Object(wr.createElement)("select",{id:o,value:e,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(t){return Object(wr.createElement)("option",{key:t.id,value:t.id},t.name)}))))}}]),e}(wr.Component),To=Object(Kr.compose)([Object(l.withSelect)((function(t){return{postAuthor:t("core/editor").getEditedPostAttribute("author"),authors:t("core").getAuthors()}})),Object(l.withDispatch)((function(t){return{onUpdateAuthor:function(e){t("core/editor").editPost({author:e})}}})),Kr.withInstanceId])(wo);var Co=Object(Kr.compose)([Object(l.withSelect)((function(t){return{commentStatus:t("core/editor").getEditedPostAttribute("comment_status")}})),Object(l.withDispatch)((function(t){return{editPost:t("core/editor").editPost}}))])((function(t){var e=t.commentStatus,n=void 0===e?"open":e,r=Object(Lr.a)(t,["commentStatus"]);return Object(wr.createElement)(Rr.CheckboxControl,{label:Object(Q.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var xo=Object(Kr.compose)([Object(l.withSelect)((function(t){return{excerpt:t("core/editor").getEditedPostAttribute("excerpt")}})),Object(l.withDispatch)((function(t){return{onUpdateExcerpt:function(e){t("core/editor").editPost({excerpt:e})}}}))])((function(t){var e=t.excerpt,n=t.onUpdateExcerpt;return Object(wr.createElement)("div",{className:"editor-post-excerpt"},Object(wr.createElement)(Rr.TextareaControl,{label:Object(Q.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(t){return n(t)},value:e}),Object(wr.createElement)(Rr.ExternalLink,{href:Object(Q.__)("https://codex.wordpress.org/Excerpt")},Object(Q.__)("Learn more about manual excerpts")))}));var Bo=function(t){return Object(wr.createElement)(Oo,Object(Ir.a)({},t,{supportKeys:"excerpt"}))};var Ao=Object(l.withSelect)((function(t){var e=t("core").getThemeSupports;return{postType:(0,t("core/editor").getEditedPostAttribute)("type"),themeSupports:e()}}))((function(t){var e=t.themeSupports,n=t.children,r=t.postType,o=t.supportKeys;return Object(v.some)(Object(v.castArray)(o),(function(t){var n=Object(v.get)(e,[t],!1);return"post-thumbnails"===t&&Object(v.isArray)(n)?Object(v.includes)(n,r):n}))?n:null}));var Io=function(t){return Object(wr.createElement)(Ao,{supportKeys:"post-thumbnails"},Object(wr.createElement)(Oo,Object(Ir.a)({},t,{supportKeys:"thumbnail"})))},Lo=["image"],Ro=Object(Q.__)("Featured Image"),Uo=Object(Q.__)("Set featured image"),No=Object(Q.__)("Remove image");var Do=Object(l.withSelect)((function(t){var e=t("core"),n=e.getMedia,r=e.getPostType,o=t("core/editor"),i=o.getCurrentPostId,s=o.getEditedPostAttribute,a=s("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(s("type")),featuredImageId:a}})),Fo=Object(l.withDispatch)((function(t){var e=t("core/editor").editPost;return{onUpdateImage:function(t){e({featured_media:t.id})},onRemoveImage:function(){e({featured_media:0})}}})),Mo=Object(Kr.compose)(Do,Fo,Object(Rr.withFilters)("editor.PostFeaturedImage"))((function(t){var e,n,r,o=t.currentPostId,s=t.featuredImageId,a=t.onUpdateImage,c=t.onRemoveImage,u=t.media,l=t.postType,d=Object(v.get)(l,["labels"],{}),p=Object(wr.createElement)("p",null,Object(Q.__)("To edit the featured image, you need permission to upload media."));if(u){var f=Object(Pr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",u.id,o);Object(v.has)(u,["media_details","sizes",f])?(e=u.media_details.sizes[f].width,n=u.media_details.sizes[f].height,r=u.media_details.sizes[f].source_url):(e=u.media_details.width,n=u.media_details.height,r=u.source_url)}return Object(wr.createElement)(Io,null,Object(wr.createElement)("div",{className:"editor-post-featured-image"},Object(wr.createElement)(i.MediaUploadCheck,{fallback:p},Object(wr.createElement)(i.MediaUpload,{title:d.featured_image||Ro,onSelect:a,allowedTypes:Lo,modalClass:"editor-post-featured-image__media-modal",render:function(t){var o=t.open;return Object(wr.createElement)(Rr.Button,{className:s?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":s?Object(Q.__)("Edit or update the image"):null},!!s&&u&&Object(wr.createElement)(Rr.ResponsiveWrapper,{naturalWidth:e,naturalHeight:n},Object(wr.createElement)("img",{src:r,alt:""})),!!s&&!u&&Object(wr.createElement)(Rr.Spinner,null),!s&&(d.set_featured_image||Uo))},value:s})),!!s&&u&&!u.isLoading&&Object(wr.createElement)(i.MediaUploadCheck,null,Object(wr.createElement)(i.MediaUpload,{title:d.featured_image||Ro,onSelect:a,allowedTypes:Lo,modalClass:"editor-post-featured-image__media-modal",render:function(t){var e=t.open;return Object(wr.createElement)(Rr.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(Q.__)("Replace image"))}})),!!s&&Object(wr.createElement)(i.MediaUploadCheck,null,Object(wr.createElement)(Rr.Button,{onClick:c,isLink:!0,isDestructive:!0},d.remove_featured_image||No))))}));var Vo=Object(l.withSelect)((function(t){return{disablePostFormats:t("core/editor").getEditorSettings().disablePostFormats}}))((function(t){var e=t.disablePostFormats,n=Object(Lr.a)(t,["disablePostFormats"]);return!e&&Object(wr.createElement)(Oo,Object(Ir.a)({},n,{supportKeys:"post-formats"}))})),Ko=[{id:"aside",caption:Object(Q.__)("Aside")},{id:"gallery",caption:Object(Q.__)("Gallery")},{id:"link",caption:Object(Q.__)("Link")},{id:"image",caption:Object(Q.__)("Image")},{id:"quote",caption:Object(Q.__)("Quote")},{id:"standard",caption:Object(Q.__)("Standard")},{id:"status",caption:Object(Q.__)("Status")},{id:"video",caption:Object(Q.__)("Video")},{id:"audio",caption:Object(Q.__)("Audio")},{id:"chat",caption:Object(Q.__)("Chat")}];var zo=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getSuggestedPostFormat,o=n("format"),i=t("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(v.union)([o],Object(v.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(l.withDispatch)((function(t){return{onUpdatePostFormat:function(e){t("core/editor").editPost({format:e})}}})),Kr.withInstanceId])((function(t){var e=t.onUpdatePostFormat,n=t.postFormat,r=void 0===n?"standard":n,o=t.supportedFormats,i=t.suggestedFormat,s="post-format-selector-"+t.instanceId,a=Ko.filter((function(t){return Object(v.includes)(o,t.id)})),c=Object(v.find)(a,(function(t){return t.id===i}));return Object(wr.createElement)(Vo,null,Object(wr.createElement)("div",{className:"editor-post-format"},Object(wr.createElement)("div",{className:"editor-post-format__content"},Object(wr.createElement)("label",{htmlFor:s},Object(Q.__)("Post Format")),Object(wr.createElement)(Rr.SelectControl,{value:r,onChange:function(t){return e(t)},id:s,options:a.map((function(t){return{label:t.caption,value:t.id}}))})),c&&c.id!==r&&Object(wr.createElement)("div",{className:"editor-post-format__suggestion"},Object(Q.__)("Suggestion:")," ",Object(wr.createElement)(Rr.Button,{isLink:!0,onClick:function(){return e(c.id)}},c.caption))))}));var qo=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getCurrentPostLastRevisionId,r=e.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(t){var e=t.lastRevisionId,n=t.revisionsCount,r=t.children;return!e||n<2?null:Object(wr.createElement)(Oo,{supportKeys:"revisions"},r)}));function Wo(t,e){return Object(O.addQueryArgs)(t,e)}function Ho(t){return Object(v.toLower)(Object(v.deburr)(Object(v.trim)(t.replace(/[\s\./_]+/g,"-"),"-")))}var Go=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getCurrentPostLastRevisionId,r=e.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(t){var e=t.lastRevisionId,n=t.revisionsCount;return Object(wr.createElement)(qo,null,Object(wr.createElement)(Rr.IconButton,{href:Wo("revision.php",{revision:e,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(Q.sprintf)(Object(Q._n)("%d Revision","%d Revisions",n),n)))}));var Qo=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).openPreviewWindow=t.openPreviewWindow.bind(Object(eo.a)(Object(eo.a)(t))),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidUpdate",value:function(t){var e=this.props.previewLink;e&&!t.previewLink&&this.setPreviewWindowLink(e)}},{key:"setPreviewWindowLink",value:function(t){var e=this.previewWindow;e&&!e.closed&&(e.location=t)}},{key:"getWindowTarget",value:function(){var t=this.props.postId;return"wp-preview-".concat(t)}},{key:"openPreviewWindow",value:function(t){var e,n;(t.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),e=this.previewWindow.document,n=Object(wr.renderToString)(Object(wr.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(wr.createElement)(Rr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(wr.createElement)(Rr.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(wr.createElement)(Rr.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(wr.createElement)("p",null,Object(Q.__)("Generating preview…")))),n+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',n=Object(Pr.applyFilters)("editor.PostPreview.interstitialMarkup",n),e.write(n),e.title=Object(Q.__)("Generating preview…"),e.close()):this.setPreviewWindowLink(t.target.href)}},{key:"render",value:function(){var t=this.props,e=t.previewLink,n=t.currentPostLink,r=t.isSaveable,o=e||n;return Object(wr.createElement)(Rr.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(Q._x)("Preview","imperative verb"),Object(wr.createElement)("span",{className:"screen-reader-text"},Object(Q.__)("(opens in a new tab)")),Object(wr.createElement)(a.DotTip,{tipId:"core/editor.preview"},Object(Q.__)("Click “Preview” to load a preview of this page, so you can make sure youre happy with your blocks.")))}}]),e}(wr.Component),Yo=Object(Kr.compose)([Object(l.withSelect)((function(t,e){var n=e.forcePreviewLink,r=e.forceIsAutosaveable,o=t("core/editor"),i=o.getCurrentPostId,s=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,c=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=t("core").getPostType,p=l(),f=d(a("type"));return{postId:i(),currentPostLink:s("link"),previewLink:void 0!==n?n:p,isSaveable:c(),isAutosaveable:r||u(),isViewable:Object(v.get)(f,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(l.withDispatch)((function(t){return{autosave:t("core/editor").autosave,savePost:t("core/editor").savePost}})),Object(Kr.ifCondition)((function(t){return t.isViewable}))])(Qo),Xo=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).sendPostLock=t.sendPostLock.bind(Object(eo.a)(Object(eo.a)(t))),t.receivePostLock=t.receivePostLock.bind(Object(eo.a)(Object(eo.a)(t))),t.releasePostLock=t.releasePostLock.bind(Object(eo.a)(Object(eo.a)(t))),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidMount",value:function(){var t=this.getHookName();Object(Pr.addAction)("heartbeat.send",t,this.sendPostLock),Object(Pr.addAction)("heartbeat.tick",t,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var t=this.getHookName();Object(Pr.removeAction)("heartbeat.send",t),Object(Pr.removeAction)("heartbeat.tick",t)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(t){var e=this.props,n=e.isLocked,r=e.activePostLock,o=e.postId;n||(t["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(t){if(t["wp-refresh-post-lock"]){var e=this.props,n=e.autosave,r=e.updatePostLock,o=t["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var t=this.props,e=t.isLocked,n=t.activePostLock,r=t.postLockUtils,o=t.postId;if(!e&&n){var i=new window.FormData;i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n);var s=new window.XMLHttpRequest;s.open("POST",r.ajaxUrl,!1),s.send(i)}}},{key:"render",value:function(){var t=this.props,e=t.user,n=t.postId,r=t.isLocked,o=t.isTakeover,i=t.postLockUtils,s=t.postType;if(!r)return null;var a=e.name,c=e.avatar,u=Object(O.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=Wo("edit.php",{post_type:Object(v.get)(s,["slug"])}),d=Object(Q.__)("Exit the Editor");return Object(wr.createElement)(Rr.Modal,{title:o?Object(Q.__)("Someone else has taken over this post."):Object(Q.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!c&&Object(wr.createElement)("img",{src:c,alt:Object(Q.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(wr.createElement)("div",null,Object(wr.createElement)("div",null,a?Object(Q.sprintf)(Object(Q.__)("%s now has editing control of this post. Dont worry, your changes up to this moment have been saved."),a):Object(Q.__)("Another user now has editing control of this post. Dont worry, your changes up to this moment have been saved.")),Object(wr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(wr.createElement)(Rr.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(wr.createElement)("div",null,Object(wr.createElement)("div",null,a?Object(Q.sprintf)(Object(Q.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(Q.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(wr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(wr.createElement)(Rr.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(wr.createElement)(Yo,null),Object(wr.createElement)(Rr.Button,{isPrimary:!0,isLarge:!0,href:u},Object(Q.__)("Take Over")))))}}]),e}(wr.Component),Zo=Object(Kr.compose)(Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isPostLocked,r=e.isPostLockTakeover,o=e.getPostLockUser,i=e.getCurrentPostId,s=e.getActivePostLock,a=e.getEditedPostAttribute,c=e.getEditorSettings,u=t("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:c().postLockUtils,activePostLock:s(),postType:u(a("type"))}})),Object(l.withDispatch)((function(t){var e=t("core/editor");return{autosave:e.autosave,updatePostLock:e.updatePostLock}})),Kr.withInstanceId,Object(Kr.withGlobalEvents)({beforeunload:"releasePostLock"}))(Xo);var Jo=Object(Kr.compose)(Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isCurrentPostPublished,r=e.getCurrentPostType,o=e.getCurrentPost;return{hasPublishAction:Object(v.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(t){var e=t.hasPublishAction,n=t.isPublished,r=t.children;return n||!e?null:r}));var $o=Object(Kr.compose)(Object(l.withSelect)((function(t){return{status:t("core/editor").getEditedPostAttribute("status")}})),Object(l.withDispatch)((function(t){return{onUpdateStatus:function(e){t("core/editor").editPost({status:e})}}})))((function(t){var e=t.status,n=t.onUpdateStatus;return Object(wr.createElement)(Jo,null,Object(wr.createElement)(Rr.CheckboxControl,{label:Object(Q.__)("Pending Review"),checked:"pending"===e,onChange:function(){n("pending"===e?"draft":"pending")}}))}));var ti=Object(Kr.compose)([Object(l.withSelect)((function(t){return{pingStatus:t("core/editor").getEditedPostAttribute("ping_status")}})),Object(l.withDispatch)((function(t){return{editPost:t("core/editor").editPost}}))])((function(t){var e=t.pingStatus,n=void 0===e?"open":e,r=Object(Lr.a)(t,["pingStatus"]);return Object(wr.createElement)(Rr.CheckboxControl,{label:Object(Q.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var ei=Object(Kr.compose)([Object(l.withSelect)((function(t,e){var n=e.forceIsSaving,r=t("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,s=r.isSavingPost,a=r.isPublishingPost,c=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||s(),isPublishing:a(),hasPublishAction:Object(v.get)(c(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(t){var e=t.isPublished,n=t.isBeingScheduled,r=t.isSaving,o=t.isPublishing,i=t.hasPublishAction,s=t.isAutosaving;return o?Object(Q.__)("Publishing…"):e&&r&&!s?Object(Q.__)("Updating…"):n&&r&&!s?Object(Q.__)("Scheduling…"):i?e?Object(Q.__)("Update"):n?Object(Q.__)("Schedule"):Object(Q.__)("Publish"):Object(Q.__)("Submit for Review")})),ni=function(t){function e(t){var n;return Object(Nr.a)(this,e),(n=Object(Fr.a)(this,Object(Mr.a)(e).call(this,t))).buttonNode=Object(wr.createRef)(),n}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var t,e=this.props,n=e.forceIsDirty,r=e.forceIsSaving,o=e.hasPublishAction,i=e.isBeingScheduled,s=e.isOpen,c=e.isPostSavingLocked,u=e.isPublishable,l=e.isPublished,d=e.isSaveable,p=e.isSaving,f=e.isToggle,h=e.onSave,b=e.onStatusChange,m=e.onSubmit,O=void 0===m?v.noop:m,g=e.onToggle,y=e.visibility,j=p||r||!d||c||!u&&!n,_=l||p||r||!d||!u&&!n;t=o?i?"future":"private"===y?"private":"publish":"pending";var E={"aria-disabled":j,className:"editor-post-publish-button",isBusy:p&&l,isLarge:!0,isPrimary:!0,onClick:function(){j||(O(),b(t),h())}},k={"aria-disabled":_,"aria-expanded":s,className:"editor-post-publish-panel__toggle",isBusy:p&&l,isPrimary:!0,onClick:function(){_||g()}},S=i?Object(Q.__)("Schedule…"):Object(Q.__)("Publish…"),P=Object(wr.createElement)(ei,{forceIsSaving:r}),w=f?k:E,T=f?S:P;return Object(wr.createElement)(Rr.Button,Object(Ir.a)({ref:this.buttonNode},w),T,Object(wr.createElement)(a.DotTip,{tipId:"core/editor.publish"},Object(Q.__)("Finished writing? Thats great, lets get this published right now. Just click “Publish” and youre good to go.")))}}]),e}(wr.Component),ri=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isEditedPostBeingScheduled,o=e.getEditedPostVisibility,i=e.isCurrentPostPublished,s=e.isEditedPostSaveable,a=e.isEditedPostPublishable,c=e.isPostSavingLocked,u=e.getCurrentPost,l=e.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:s(),isPostSavingLocked:c(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(v.get)(u(),["_links","wp:action-publish"],!1),postType:l()}})),Object(l.withDispatch)((function(t){var e=t("core/editor"),n=e.editPost;return{onStatusChange:function(t){return n({status:t})},onSave:e.savePost}}))])(ni),oi=[{value:"public",label:Object(Q.__)("Public"),info:Object(Q.__)("Visible to everyone.")},{value:"private",label:Object(Q.__)("Private"),info:Object(Q.__)("Only visible to site admins and editors.")},{value:"password",label:Object(Q.__)("Password Protected"),info:Object(Q.__)("Protected with a password you choose. Only those with the password can view this post.")}],ii=function(t){function e(t){var n;return Object(Nr.a)(this,e),(n=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).setPublic=n.setPublic.bind(Object(eo.a)(Object(eo.a)(n))),n.setPrivate=n.setPrivate.bind(Object(eo.a)(Object(eo.a)(n))),n.setPasswordProtected=n.setPasswordProtected.bind(Object(eo.a)(Object(eo.a)(n))),n.updatePassword=n.updatePassword.bind(Object(eo.a)(Object(eo.a)(n))),n.state={hasPassword:!!t.password},n}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"setPublic",value:function(){var t=this.props,e=t.visibility,n=t.onUpdateVisibility,r=t.status;n("private"===e?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(Q.__)("Would you like to privately publish this post now?"))){var t=this.props,e=t.onUpdateVisibility,n=t.onSave;e("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var t=this.props,e=t.visibility,n=t.onUpdateVisibility,r=t.status;n("private"===e?"draft":r,t.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(t){var e=this.props,n=e.status;(0,e.onUpdateVisibility)(n,t.target.value)}},{key:"render",value:function(){var t=this.props,e=t.visibility,n=t.password,r=t.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===e&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===e},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(wr.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(wr.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(Q.__)("Post Visibility")),oi.map((function(t){var e=t.value,n=t.label,i=t.info;return Object(wr.createElement)("div",{key:e,className:"editor-post-visibility__choice"},Object(wr.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:e,onChange:o[e].onSelect,checked:o[e].checked,id:"editor-post-".concat(e,"-").concat(r),"aria-describedby":"editor-post-".concat(e,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(wr.createElement)("label",{htmlFor:"editor-post-".concat(e,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(wr.createElement)("p",{id:"editor-post-".concat(e,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(wr.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(wr.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(Q.__)("Create password")),Object(wr.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(Q.__)("Use a secure password")}))]}}]),e}(wr.Component),si=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(l.withDispatch)((function(t){var e=t("core/editor"),n=e.savePost,r=e.editPost;return{onSave:n,onUpdateVisibility:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r({status:t,password:e})}}})),Kr.withInstanceId])(ii);var ai=Object(l.withSelect)((function(t){return{visibility:t("core/editor").getEditedPostVisibility()}}))((function(t){var e=t.visibility;return Object(v.find)(oi,{value:e}).label}));var ci=Object(Kr.compose)([Object(l.withSelect)((function(t){return{date:t("core/editor").getEditedPostAttribute("date")}})),Object(l.withDispatch)((function(t){return{onUpdateDate:function(e){t("core/editor").editPost({date:e})}}}))])((function(t){var e=t.date,n=t.onUpdateDate,r=Object(pe.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(wr.createElement)(Rr.DateTimePicker,{key:"date-time-picker",currentDate:e,onChange:n,is12Hour:o})}));var ui=Object(l.withSelect)((function(t){return{date:t("core/editor").getEditedPostAttribute("date"),isFloating:t("core/editor").isEditedPostDateFloating()}}))((function(t){var e=t.date,n=t.isFloating,r=Object(pe.__experimentalGetSettings)();return e&&!n?Object(pe.dateI18n)(r.formats.datetimeAbbreviated,e):Object(Q.__)("Immediately")})),li={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},di=function(t,e){return t.toLowerCase()===e.toLowerCase()},pi=function(t){return Object(f.a)({},t,{name:Object(v.unescape)(t.name)})},fi=function(t){return Object(v.map)(t,pi)},hi=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(eo.a)(Object(eo.a)(t))),t.searchTerms=Object(v.throttle)(t.searchTerms.bind(Object(eo.a)(Object(eo.a)(t))),500),t.findOrCreateTerm=t.findOrCreateTerm.bind(Object(eo.a)(Object(eo.a)(t))),t.state={loading:!Object(v.isEmpty)(t.props.terms),availableTerms:[],selectedTerms:[]},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidMount",value:function(){var t=this;Object(v.isEmpty)(this.props.terms)||(this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then((function(){t.setState({loading:!1})}),(function(e){"abort"!==e.statusText&&t.setState({loading:!1})})))}},{key:"componentWillUnmount",value:function(){Object(v.invoke)(this.initRequest,["abort"]),Object(v.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(t){t.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(f.a)({},li,e),o=K()({path:Object(O.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(fi).then((function(e){t.setState((function(t){return{availableTerms:t.availableTerms.concat(e.filter((function(e){return!Object(v.find)(t.availableTerms,(function(t){return t.id===e.id}))})))}})),t.updateSelectedTerms(t.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.reduce((function(e,n){var r=Object(v.find)(t.state.availableTerms,(function(t){return t.id===n}));return r&&e.push(r.name),e}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(t){var e=this,n=this.props.taxonomy,r=Object(v.escape)(t);return K()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(e.addRequest=K()({path:Object(O.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(f.a)({},li,{search:r}))}).then(fi),e.addRequest.then((function(e){return Object(v.find)(e,(function(e){return di(e.name,t)}))}))):Promise.reject(o)})).then(pi)}},{key:"onChange",value:function(t){var e=this,n=Object(v.uniqBy)(t,(function(t){return t.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(t){return!Object(v.find)(e.state.availableTerms,(function(e){return di(e.name,t)}))})),o=function(t,e){return t.map((function(t){return Object(v.find)(e,(function(e){return di(e.name,t)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(t){var r=e.state.availableTerms.concat(t);return e.setState({availableTerms:r}),e.props.onUpdateTerms(o(n,r),e.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(v.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:t})}},{key:"render",value:function(){var t=this.props,e=t.slug,n=t.taxonomy;if(!t.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,s=r.selectedTerms,a=i.map((function(t){return t.name})),c=Object(v.get)(n,["labels","add_new_item"],"post_tag"===e?Object(Q.__)("Add New Tag"):Object(Q.__)("Add New Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===e?Object(Q.__)("Tag"):Object(Q.__)("Term")),l=Object(Q.sprintf)(Object(Q._x)("%s added","term"),u),d=Object(Q.sprintf)(Object(Q._x)("%s removed","term"),u),p=Object(Q.sprintf)(Object(Q._x)("Remove %s","term"),u);return Object(wr.createElement)(Rr.FormTokenField,{value:s,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:c,messages:{added:l,removed:d,remove:p}})}}]),e}(wr.Component),bi=Object(Kr.compose)(Object(l.withSelect)((function(t,e){var n=e.slug,r=t("core/editor").getCurrentPost,o=(0,t("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?t("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(l.withDispatch)((function(t){return{onUpdateTerms:function(e,n){t("core/editor").editPost(Object(p.a)({},n,e))}}})),Object(Rr.withFilters)("editor.PostTaxonomyType"))(hi),mi=function(){var t=[Object(Q.__)("Suggestion:"),Object(wr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Q.__)("Add tags"))];return Object(wr.createElement)(Rr.PanelBody,{initialOpen:!1,title:t},Object(wr.createElement)("p",null,Object(Q.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(wr.createElement)(bi,{slug:"post_tag"}))},vi=function(t){function e(t){var n;return Object(Nr.a)(this,e),(n=Object(Fr.a)(this,Object(Mr.a)(e).call(this,t))).state={hadTagsWhenOpeningThePanel:t.hasTags},n}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(wr.createElement)(mi,null)}}]),e}(wr.Component),Oi=Object(Kr.compose)(Object(l.withSelect)((function(t){var e=t("core/editor").getCurrentPostType(),n=t("core").getTaxonomy("post_tag"),r=n&&t("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(v.some)(n.types,(function(t){return t===e})),hasTags:r&&r.length}})),Object(Kr.ifCondition)((function(t){var e=t.areTagsFetched;return t.isPostTypeSupported&&e})))(vi),gi=function(t){var e=t.suggestedPostFormat,n=t.suggestionText,r=t.onUpdatePostFormat;return Object(wr.createElement)(Rr.Button,{isLink:!0,onClick:function(){return r(e)}},n)},yi=function(t,e){var n=Ko.filter((function(e){return Object(v.includes)(t,e.id)}));return Object(v.find)(n,(function(t){return t.id===e}))},ji=Object(Kr.compose)(Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getSuggestedPostFormat,o=Object(v.get)(t("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:yi(o,r())}})),Object(l.withDispatch)((function(t){return{onUpdatePostFormat:function(e){t("core/editor").editPost({format:e})}}})),Object(Kr.ifCondition)((function(t){var e=t.suggestion,n=t.currentPostFormat;return e&&e.id!==n})))((function(t){var e=t.suggestion,n=t.onUpdatePostFormat,r=[Object(Q.__)("Suggestion:"),Object(wr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Q.__)("Use a post format"))];return Object(wr.createElement)(Rr.PanelBody,{initialOpen:!1,title:r},Object(wr.createElement)("p",null,Object(Q.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(wr.createElement)("p",null,Object(wr.createElement)(gi,{onUpdatePostFormat:n,suggestedPostFormat:e.id,suggestionText:Object(Q.sprintf)(Object(Q.__)('Apply the "%1$s" format.'),e.caption)})))}));var _i=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getCurrentPost,r=e.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(t){var e,n,r=t.hasPublishAction,o=t.isBeingScheduled,i=t.children;return r?o?(e=Object(Q.__)("Are you ready to schedule?"),n=Object(Q.__)("Your work will be published at the specified date and time.")):(e=Object(Q.__)("Are you ready to publish?"),n=Object(Q.__)("Double-check your settings before publishing.")):(e=Object(Q.__)("Are you ready to submit for review?"),n=Object(Q.__)("When youre ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(wr.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(wr.createElement)("div",null,Object(wr.createElement)("strong",null,e)),Object(wr.createElement)("p",null,n),r&&Object(wr.createElement)(wr.Fragment,null,Object(wr.createElement)(Rr.PanelBody,{initialOpen:!1,title:[Object(Q.__)("Visibility:"),Object(wr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(wr.createElement)(ai,null))]},Object(wr.createElement)(si,null)),Object(wr.createElement)(Rr.PanelBody,{initialOpen:!1,title:[Object(Q.__)("Publish:"),Object(wr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(wr.createElement)(ui,null))]},Object(wr.createElement)(ci,null)),Object(wr.createElement)(ji,null),Object(wr.createElement)(Oi,null),i))})),Ei=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).state={showCopyConfirmation:!1},t.onCopy=t.onCopy.bind(Object(eo.a)(Object(eo.a)(t))),t.onSelectInput=t.onSelectInput.bind(Object(eo.a)(Object(eo.a)(t))),t.postLink=Object(wr.createRef)(),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var t=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){t.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(t){t.target.select()}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.isScheduled,r=t.post,o=t.postType,i=Object(v.get)(o,["labels","singular_name"]),s=Object(v.get)(o,["labels","view_item"]),a=n?Object(wr.createElement)(wr.Fragment,null,Object(Q.__)("is now scheduled. It will go live on")," ",Object(wr.createElement)(ui,null),"."):Object(Q.__)("is now live.");return Object(wr.createElement)("div",{className:"post-publish-panel__postpublish"},Object(wr.createElement)(Rr.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(wr.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(Q.__)("(no title)"))," ",a),Object(wr.createElement)(Rr.PanelBody,null,Object(wr.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(wr.createElement)("strong",null,Object(Q.__)("Whats next?"))),Object(wr.createElement)(Rr.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Q.sprintf)(Object(Q.__)("%s address"),i),value:Object(O.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(wr.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(wr.createElement)(Rr.Button,{isDefault:!0,href:r.link},s),Object(wr.createElement)(Rr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Q.__)("Copied!"):Object(Q.__)("Copy Link")))),e)}}]),e}(wr.Component),ki=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getCurrentPost,o=e.isCurrentPostScheduled,i=t("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Ei),Si=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).onSubmit=t.onSubmit.bind(Object(eo.a)(Object(eo.a)(t))),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidUpdate",value:function(t){t.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var t=this.props,e=t.onClose,n=t.hasPublishAction,r=t.isPostTypeViewable;n&&r||e()}},{key:"render",value:function(){var t=this.props,e=t.forceIsDirty,n=t.forceIsSaving,r=t.isBeingScheduled,o=t.isPublished,i=t.isPublishSidebarEnabled,s=t.isScheduled,a=t.isSaving,c=t.onClose,u=t.onTogglePublishSidebar,l=t.PostPublishExtension,d=t.PrePublishExtension,p=Object(Lr.a)(t,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),f=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),h=o||s&&r,b=!h&&!a,m=h&&!a;return Object(wr.createElement)("div",Object(Ir.a)({className:"editor-post-publish-panel"},f),Object(wr.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(wr.createElement)("div",{className:"editor-post-publish-panel__header-published"},s?Object(Q.__)("Scheduled"):Object(Q.__)("Published")):Object(wr.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(wr.createElement)(ri,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:e,forceIsSaving:n}),Object(wr.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(wr.createElement)(Rr.IconButton,{"aria-expanded":!0,onClick:c,icon:"no-alt",label:Object(Q.__)("Close panel")})),Object(wr.createElement)("div",{className:"editor-post-publish-panel__content"},b&&Object(wr.createElement)(_i,null,d&&Object(wr.createElement)(d,null)),m&&Object(wr.createElement)(ki,{focusOnMount:!0},l&&Object(wr.createElement)(l,null)),a&&Object(wr.createElement)(Rr.Spinner,null)),Object(wr.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(wr.createElement)(Rr.CheckboxControl,{label:Object(Q.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),e}(wr.Component),Pi=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core").getPostType,n=t("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,s=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,c=n.isEditedPostDirty,u=n.isSavingPost,l=t("core/editor").isPublishSidebarEnabled,d=e(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:c(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:s()}})),Object(l.withDispatch)((function(t,e){var n=e.isPublishSidebarEnabled,r=t("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Rr.withFocusReturn,Rr.withConstrainedTabbing])(Si);var wi=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isCurrentPostPublished,o=e.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(l.withDispatch)((function(t){var e=t("core/editor"),n=e.editPost,r=e.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(t){var e=t.isSaving,n=t.isPublished,r=t.isScheduled,o=t.onClick;return n||r?Object(wr.createElement)(Rr.Button,{className:"editor-post-switch-to-draft",onClick:function(){var t;n?t=Object(Q.__)("Are you sure you want to unpublish this post?"):r&&(t=Object(Q.__)("Are you sure you want to unschedule this post?")),window.confirm(t)&&o()},disabled:e,isTertiary:!0},Object(Q.__)("Switch to Draft")):null})),Ti=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).state={forceSavedMessage:!1},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidUpdate",value:function(t){var e=this;t.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout((function(){e.setState({forceSavedMessage:!1})}),1e3))}},{key:"render",value:function(){var t=this.props,e=t.post,n=t.isNew,r=t.isScheduled,o=t.isPublished,i=t.isDirty,s=t.isSaving,a=t.isSaveable,c=t.onSave,u=t.isAutosaving,l=t.isPending,d=t.isLargeViewport,p=this.state.forceSavedMessage;if(s){var f=Hr()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(wr.createElement)("span",{className:f},Object(wr.createElement)(Rr.Dashicon,{icon:"cloud"}),u?Object(Q.__)("Autosaving"):Object(Q.__)("Saving"))}if(o||r)return Object(wr.createElement)(wi,null);if(!a)return null;if(p||!n&&!i)return Object(wr.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(wr.createElement)(Rr.Dashicon,{icon:"saved"}),Object(Q.__)("Saved"));if(!Object(v.get)(e,["_links","wp:action-publish"],!1)&&l)return null;var h=l?Object(Q.__)("Save as Pending"):Object(Q.__)("Save Draft");return d?Object(wr.createElement)(Rr.Button,{className:"editor-post-save-draft",onClick:c,shortcut:no.displayShortcut.primary("s"),isTertiary:!0},h):Object(wr.createElement)(Rr.IconButton,{className:"editor-post-save-draft",label:h,onClick:c,shortcut:no.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),e}(wr.Component),Ci=Object(Kr.compose)([Object(l.withSelect)((function(t,e){var n=e.forceIsDirty,r=e.forceIsSaving,o=t("core/editor"),i=o.isEditedPostNew,s=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,c=o.isEditedPostDirty,u=o.isSavingPost,l=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,f=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:s(),isScheduled:a(),isDirty:n||c(),isSaving:r||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===f("status")}})),Object(l.withDispatch)((function(t){return{onSave:t("core/editor").savePost}})),Kr.withSafeTimeout,Object(u.withViewportMatch)({isLargeViewport:"medium"})])(Ti);var xi=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getCurrentPost,r=e.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(t){var e=t.hasPublishAction,n=t.children;return e?n:null}));var Bi=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor").getCurrentPost();return{hasStickyAction:Object(v.get)(e,["_links","wp:action-sticky"],!1),postType:t("core/editor").getCurrentPostType()}}))])((function(t){var e=t.hasStickyAction,n=t.postType,r=t.children;return"post"===n&&e?r:null}));var Ai=Object(Kr.compose)([Object(l.withSelect)((function(t){return{postSticky:t("core/editor").getEditedPostAttribute("sticky")}})),Object(l.withDispatch)((function(t){return{onUpdateSticky:function(e){t("core/editor").editPost({sticky:e})}}}))])((function(t){var e=t.onUpdateSticky,n=t.postSticky,r=void 0!==n&&n;return Object(wr.createElement)(Bi,null,Object(wr.createElement)(Rr.CheckboxControl,{label:Object(Q.__)("Stick to the top of the blog"),checked:r,onChange:function(){return e(!r)}}))})),Ii={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Li=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).findTerm=t.findTerm.bind(Object(eo.a)(Object(eo.a)(t))),t.onChange=t.onChange.bind(Object(eo.a)(Object(eo.a)(t))),t.onChangeFormName=t.onChangeFormName.bind(Object(eo.a)(Object(eo.a)(t))),t.onChangeFormParent=t.onChangeFormParent.bind(Object(eo.a)(Object(eo.a)(t))),t.onAddTerm=t.onAddTerm.bind(Object(eo.a)(Object(eo.a)(t))),t.onToggleForm=t.onToggleForm.bind(Object(eo.a)(Object(eo.a)(t))),t.setFilterValue=t.setFilterValue.bind(Object(eo.a)(Object(eo.a)(t))),t.sortBySelected=t.sortBySelected.bind(Object(eo.a)(Object(eo.a)(t))),t.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"onChange",value:function(t){var e=this.props,n=e.onUpdateTerms,r=e.terms,o=void 0===r?[]:r,i=e.taxonomy,s=parseInt(t.target.value,10);n(-1!==o.indexOf(s)?Object(v.without)(o,s):[].concat(Object(P.a)(o),[s]),i.rest_base)}},{key:"onChangeFormName",value:function(t){var e=""===t.target.value.trim()?"":t.target.value;this.setState({formName:e})}},{key:"onChangeFormParent",value:function(t){this.setState({formParent:t})}},{key:"onToggleForm",value:function(){this.setState((function(t){return{showForm:!t.showForm}}))}},{key:"findTerm",value:function(t,e,n){return Object(v.find)(t,(function(t){return(!t.parent&&!e||parseInt(t.parent)===parseInt(e))&&t.name.toLowerCase()===n.toLowerCase()}))}},{key:"onAddTerm",value:function(t){var e=this;t.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,s=n.slug,a=this.state,c=a.formName,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==c&&!l){var p=this.findTerm(d,u,c);if(p)return Object(v.some)(i,(function(t){return t===p.id}))||r([].concat(Object(P.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=K()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:c,parent:u||void 0}}),this.addRequest.catch((function(t){return"term_exists"===t.code?(e.addRequest=K()({path:Object(O.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(f.a)({},Ii,{parent:u||0,search:c}))}),e.addRequest.then((function(t){return e.findTerm(t,u,c)}))):Promise.reject(t)})).then((function(t){var n=!!Object(v.find)(e.state.availableTerms,(function(e){return e.id===t.id}))?e.state.availableTerms:[t].concat(Object(P.a)(e.state.availableTerms)),a=Object(Q.sprintf)(Object(Q._x)("%s added","term"),Object(v.get)(e.props.taxonomy,["labels","singular_name"],"category"===s?Object(Q.__)("Category"):Object(Q.__)("Term")));e.props.speak(a,"assertive"),e.addRequest=null,e.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:e.sortBySelected(jo(n))}),r([].concat(Object(P.a)(i),[t.id]),o.rest_base)}),(function(t){"abort"!==t.statusText&&(e.addRequest=null,e.setState({adding:!1}))}))}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(v.invoke)(this.fetchRequest,["abort"]),Object(v.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(t){this.props.taxonomy!==t.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var t=this,e=this.props.taxonomy;e&&(this.fetchRequest=K()({path:Object(O.addQueryArgs)("/wp/v2/".concat(e.rest_base),Ii)}),this.fetchRequest.then((function(e){var n=t.sortBySelected(jo(e));t.fetchRequest=null,t.setState({loading:!1,availableTermsTree:n,availableTerms:e})}),(function(e){"abort"!==e.statusText&&(t.fetchRequest=null,t.setState({loading:!1}))})))}},{key:"sortBySelected",value:function(t){var e=this.props.terms,n=function t(n){return-1!==e.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(t).filter((function(t){return t})).length>0)};return t.sort((function(t,e){var r=n(t),o=n(e);return r===o?0:r&&!o?-1:!r&&o?1:0})),t}},{key:"setFilterValue",value:function(t){var e=this.state.availableTermsTree,n=t.target.value,r=e.map(this.getFilterMatcher(n)).filter((function(t){return t}));this.setState({filterValue:n,filteredTermsTree:r});var o=function t(e){for(var n=0,r=0;r<e.length;r++)n++,void 0!==e[r].children&&(n+=t(e[r].children));return n}(r),i=Object(Q.sprintf)(Object(Q._n)("%d result found.","%d results found.",o),o);this.props.debouncedSpeak(i,"assertive")}},{key:"getFilterMatcher",value:function(t){return function e(n){if(""===t)return n;var r=Object(f.a)({},n);return r.children.length>0&&(r.children=r.children.map(e).filter((function(t){return t}))),(-1!==r.name.toLowerCase().indexOf(t)||r.children.length>0)&&r}}},{key:"renderTerms",value:function(t){var e=this,n=this.props.terms,r=void 0===n?[]:n;return t.map((function(t){var n="editor-post-taxonomies-hierarchical-term-".concat(t.id);return Object(wr.createElement)("div",{key:t.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(wr.createElement)("input",{id:n,className:"editor-post-taxonomies__hierarchical-terms-input",type:"checkbox",checked:-1!==r.indexOf(t.id),value:t.id,onChange:e.onChange}),Object(wr.createElement)("label",{htmlFor:n},Object(v.unescape)(t.name)),!!t.children.length&&Object(wr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},e.renderTerms(t.children)))}))}},{key:"render",value:function(){var t=this.props,e=t.slug,n=t.taxonomy,r=t.instanceId,o=t.hasCreateAction;if(!t.hasAssignAction)return null;var i=this.state,s=i.availableTermsTree,a=i.availableTerms,c=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,f=i.filterValue,h=function(t,r,o){return Object(v.get)(n,["labels",t],"category"===e?r:o)},b=h("add_new_item",Object(Q.__)("Add new category"),Object(Q.__)("Add new term")),m=h("new_item_name",Object(Q.__)("Add new category"),Object(Q.__)("Add new term")),O=h("parent_item",Object(Q.__)("Parent Category"),Object(Q.__)("Parent Term")),g="— ".concat(O," —"),y=b,j="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),E=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Q.__)("Search Terms")),k=Object(v.get)(this.props.taxonomy,["name"],Object(Q.__)("Terms")),S=a.length>=8;return[S&&Object(wr.createElement)("label",{key:"filter-label",htmlFor:_},E),S&&Object(wr.createElement)("input",{type:"search",id:_,value:f,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(wr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":k},this.renderTerms(""!==f?c:s)),!d&&o&&Object(wr.createElement)(Rr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},b),p&&Object(wr.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(wr.createElement)("label",{htmlFor:j,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(wr.createElement)("input",{type:"text",id:j,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(wr.createElement)(Rr.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:s}),Object(wr.createElement)(Rr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},y))]}}]),e}(wr.Component),Ri=Object(Kr.compose)([Object(l.withSelect)((function(t,e){var n=e.slug,r=t("core/editor").getCurrentPost,o=(0,t("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?t("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(l.withDispatch)((function(t){return{onUpdateTerms:function(e,n){t("core/editor").editPost(Object(p.a)({},n,e))}}})),Rr.withSpokenMessages,Kr.withInstanceId,Object(Rr.withFilters)("editor.PostTaxonomyType")])(Li);var Ui=Object(Kr.compose)([Object(l.withSelect)((function(t){return{postType:t("core/editor").getCurrentPostType(),taxonomies:t("core").getTaxonomies({per_page:-1})}}))])((function(t){var e=t.postType,n=t.taxonomies,r=t.taxonomyWrapper,o=void 0===r?v.identity:r,i=Object(v.filter)(n,(function(t){return Object(v.includes)(t.types,e)}));return Object(v.filter)(i,(function(t){return t.visibility.show_ui})).map((function(t){var e=t.hierarchical?Ri:bi;return Object(wr.createElement)(wr.Fragment,{key:"taxonomy-".concat(t.slug)},o(Object(wr.createElement)(e,{slug:t.slug}),t))}))}));var Ni=Object(Kr.compose)([Object(l.withSelect)((function(t){return{postType:t("core/editor").getCurrentPostType(),taxonomies:t("core").getTaxonomies({per_page:-1})}}))])((function(t){var e=t.postType,n=t.taxonomies,r=t.children;return Object(v.some)(n,(function(t){return Object(v.includes)(t.types,e)}))?r:null})),Di=n("O6Fj"),Fi=n.n(Di),Mi=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).edit=t.edit.bind(Object(eo.a)(Object(eo.a)(t))),t.stopEditing=t.stopEditing.bind(Object(eo.a)(Object(eo.a)(t))),t.state={},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"edit",value:function(t){var e=t.target.value;this.props.onChange(e),this.setState({value:e,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var t=this.state.value,e=this.props.instanceId;return Object(wr.createElement)(wr.Fragment,null,Object(wr.createElement)("label",{htmlFor:"post-content-".concat(e),className:"screen-reader-text"},Object(Q.__)("Type text or HTML")),Object(wr.createElement)(Fi.a,{autoComplete:"off",dir:"auto",value:t,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(e),placeholder:Object(Q.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return e.isDirty?null:{value:t.value,isDirty:!1}}}]),e}(wr.Component),Vi=Object(Kr.compose)([Object(l.withSelect)((function(t){return{value:(0,t("core/editor").getEditedPostContent)()}})),Object(l.withDispatch)((function(t){var e=t("core/editor"),n=e.editPost,r=e.resetEditorBlocks;return{onChange:function(t){n({content:t})},onPersist:function(t){var e=Object(s.parse)(t);r(e)}}})),Kr.withInstanceId])(Mi),Ki=n("rmEH"),zi=function(t){function e(t){var n,r=t.permalinkParts,o=t.slug;return Object(Nr.a)(this,e),(n=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(eo.a)(Object(eo.a)(n))),n}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"onSavePermalink",value:function(t){var e=Ho(this.state.editedPostName);t.preventDefault(),this.props.onSave(),e!==this.props.postName&&(this.props.editPost({slug:e}),this.setState({editedPostName:e}))}},{key:"render",value:function(){var t=this,e=this.props.permalinkParts,n=e.prefix,r=e.suffix,o=this.state.editedPostName;return Object(wr.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(wr.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(wr.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(wr.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(Q.__)("Edit post permalink"),value:o,onChange:function(e){return t.setState({editedPostName:e.target.value})},type:"text",autoFocus:!0}),Object(wr.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),""),Object(wr.createElement)(Rr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(Q.__)("Save")))}}]),e}(wr.Component),qi=Object(Kr.compose)([Object(l.withSelect)((function(t){return{permalinkParts:(0,t("core/editor").getPermalinkParts)()}})),Object(l.withDispatch)((function(t){return{editPost:t("core/editor").editPost}}))])(zi),Wi=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).addVisibilityCheck=t.addVisibilityCheck.bind(Object(eo.a)(Object(eo.a)(t))),t.onVisibilityChange=t.onVisibilityChange.bind(Object(eo.a)(Object(eo.a)(t))),t.state={isCopied:!1,isEditingPermalink:!1},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var t=this.props,e=t.isEditable,n=t.refreshPost;e||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(t,e){e.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var t=this,e=this.props,n=e.isEditable,r=e.isNew,o=e.isPublished,i=e.isViewable,s=e.permalinkParts,a=e.postLink,c=e.postSlug,u=e.postID,l=e.postTitle;if(r||!i||!s||!a)return null;var d=this.state,p=d.isCopied,f=d.isEditingPermalink,h=p?Object(Q.__)("Permalink copied"):Object(Q.__)("Copy the permalink"),b=s.prefix,m=s.suffix,v=Object(O.safeDecodeURIComponent)(c)||Ho(l)||u,g=n?b+v+m:b;return Object(wr.createElement)("div",{className:"editor-post-permalink"},Object(wr.createElement)(Rr.ClipboardButton,{className:Hr()("editor-post-permalink__copy",{"is-copied":p}),text:g,label:h,onCopy:function(){return t.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(wr.createElement)("span",{className:"editor-post-permalink__label"},Object(Q.__)("Permalink:")),!f&&Object(wr.createElement)(Rr.ExternalLink,{className:"editor-post-permalink__link",href:o?g:a,target:"_blank",ref:function(e){return t.linkElement=e}},Object(O.safeDecodeURI)(g),""),f&&Object(wr.createElement)(qi,{slug:v,onSave:function(){return t.setState({isEditingPermalink:!1})}}),n&&!f&&Object(wr.createElement)(Rr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return t.setState({isEditingPermalink:!0})}},Object(Q.__)("Edit")),!n&&Object(wr.createElement)(Rr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:Wo("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(Q.__)("Change Permalinks")))}}]),e}(wr.Component),Hi=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isEditedPostNew,r=e.isPermalinkEditable,o=e.getCurrentPost,i=e.getPermalinkParts,s=e.getEditedPostAttribute,a=e.isCurrentPostPublished,c=t("core").getPostType,u=o(),l=u.id,d=u.link,p=c(s("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:s("slug"),isEditable:r(),isPublished:a(),postTitle:s("title"),postID:l,isViewable:Object(v.get)(p,["viewable"],!1)}})),Object(l.withDispatch)((function(t){return{refreshPost:t("core/editor").refreshPost}}))])(Wi),Gi=/[\r\n]+/g,Qi=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(eo.a)(Object(eo.a)(t))),t.onSelect=t.onSelect.bind(Object(eo.a)(Object(eo.a)(t))),t.onUnselect=t.onUnselect.bind(Object(eo.a)(Object(eo.a)(t))),t.onKeyDown=t.onKeyDown.bind(Object(eo.a)(Object(eo.a)(t))),t.redirectHistory=t.redirectHistory.bind(Object(eo.a)(Object(eo.a)(t))),t.state={isSelected:!1},t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(t){var e=t.target.value.replace(Gi," ");this.props.onUpdate(e)}},{key:"onKeyDown",value:function(t){t.keyCode===no.ENTER&&(t.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(t){t.shiftKey?this.props.onRedo():this.props.onUndo(),t.preventDefault()}},{key:"render",value:function(){var t=this.props,e=t.hasFixedToolbar,n=t.isCleanNewPost,r=t.isFocusMode,o=t.isPostTypeViewable,i=t.instanceId,s=t.placeholder,a=t.title,c=this.state.isSelected,u=Hr()("wp-block editor-post-title__block",{"is-selected":c,"is-focus-mode":r,"has-fixed-toolbar":e}),l=Object(Ki.decodeEntities)(s);return Object(wr.createElement)(Oo,{supportKeys:"title"},Object(wr.createElement)("div",{className:"editor-post-title"},Object(wr.createElement)("div",{className:u},Object(wr.createElement)(Rr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(wr.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(Q.__)("Add title")),Object(wr.createElement)(Fi.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(Q.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:n})),c&&o&&Object(wr.createElement)(Hi,null))))}}]),e}(wr.Component),Yi=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.isCleanNewPost,o=t("core/block-editor").getSettings,i=(0,t("core").getPostType)(n("type")),s=o(),a=s.titlePlaceholder,c=s.focusMode,u=s.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(v.get)(i,["viewable"],!1),placeholder:a,isFocusMode:c,hasFixedToolbar:u}})),Xi=Object(l.withDispatch)((function(t){var e=t("core/block-editor"),n=e.insertDefaultBlock,r=e.clearSelectedBlock,o=t("core/editor"),i=o.editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(t){i({title:t})},onUndo:o.undo,onRedo:o.redo,clearSelectedBlock:r}})),Zi=Object(Kr.compose)(Yi,Xi,Kr.withInstanceId,Rr.withFocusOutside)(Qi);var Ji=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isEditedPostNew,r=e.getCurrentPostId,o=e.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(l.withDispatch)((function(t){return{trashPost:t("core/editor").trashPost}}))])((function(t){var e=t.isNew,n=t.postId,r=t.postType,o=Object(Lr.a)(t,["isNew","postId","postType"]);return e||!n?null:Object(wr.createElement)(Rr.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(Q.__)("Move to trash"))}));var $i=Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.isEditedPostNew,r=e.getCurrentPostId;return{isNew:n(),postId:r()}}))((function(t){var e=t.isNew,n=t.postId,r=t.children;return e||!n?null:r}));var ts=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.getCurrentPost,r=e.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(t){var e=t.hasPublishAction;return(0,t.render)({canEdit:e})})),es=n("7fqt");var ns=Object(l.withSelect)((function(t){return{content:t("core/editor").getEditedPostAttribute("content")}}))((function(t){var e=t.content,n=Object(Q._x)("words","Word count type. Do not translate!");return Object(wr.createElement)("span",{className:"word-count"},Object(es.count)(e,n))}));var rs=Object(l.withSelect)((function(t){var e=t("core/block-editor").getGlobalBlockCount;return{headingCount:e("core/heading"),paragraphCount:e("core/paragraph"),numberOfBlocks:e()}}))((function(t){var e=t.headingCount,n=t.paragraphCount,r=t.numberOfBlocks,o=t.hasOutlineItemsDisabled,i=t.onRequestClose;return Object(wr.createElement)(wr.Fragment,null,Object(wr.createElement)("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(Q.__)("Document Statistics"),tabIndex:"0"},Object(wr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Words"),Object(wr.createElement)(ns,null)),Object(wr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Headings"),Object(wr.createElement)("span",{className:"table-of-contents__number"},e)),Object(wr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Paragraphs"),Object(wr.createElement)("span",{className:"table-of-contents__number"},n)),Object(wr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Blocks"),Object(wr.createElement)("span",{className:"table-of-contents__number"},r))),e>0&&Object(wr.createElement)(wr.Fragment,null,Object(wr.createElement)("hr",null),Object(wr.createElement)("span",{className:"table-of-contents__title"},Object(Q.__)("Document Outline")),Object(wr.createElement)($r,{onSelect:i,hasOutlineItemsDisabled:o})))}));var os=Object(l.withSelect)((function(t){return{hasBlocks:!!t("core/block-editor").getBlockCount()}}))((function(t){var e=t.hasBlocks,n=t.hasOutlineItemsDisabled;return Object(wr.createElement)(Rr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(wr.createElement)(Rr.IconButton,{onClick:e?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(Q.__)("Content structure"),labelPosition:"bottom","aria-disabled":!e})},renderContent:function(t){var e=t.onClose;return Object(wr.createElement)(rs,{onRequestClose:e,hasOutlineItemsDisabled:n})}})})),is=function(t){function e(){var t;return Object(Nr.a)(this,e),(t=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).warnIfUnsavedChanges=t.warnIfUnsavedChanges.bind(Object(eo.a)(Object(eo.a)(t))),t}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(t){if(this.props.isDirty)return t.returnValue=Object(Q.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue}},{key:"render",value:function(){return null}}]),e}(wr.Component),ss=Object(l.withSelect)((function(t){return{isDirty:t("core/editor").isEditedPostDirty()}}))(is),as=n("4eJC"),cs=n.n(as),us=n("eGrx"),ls=n.n(us),ds=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ps=function(t,e){e=e||{};var n=1,r=1;function o(t){var e=t.match(/\n/g);e&&(n+=e.length);var o=t.lastIndexOf("\n");r=~o?t.length-o:r+t.length}function i(){var t={line:n,column:r};return function(e){return e.position=new s(t),f(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;var a=[];function c(o){var i=new Error(e.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=e.source,i.line=n,i.column=r,i.source=t,!e.silent)throw i;a.push(i)}function u(){return p(/^{\s*/)}function l(){return p(/^}/)}function d(){var e,n=[];for(f(),b(n);t.length&&"}"!==t.charAt(0)&&(e=P()||w());)!1!==e&&(n.push(e),b(n));return n}function p(e){var n=e.exec(t);if(n){var r=n[0];return o(r),t=t.slice(r.length),n}}function f(){p(/^\s*/)}function b(t){var e;for(t=t||[];e=m();)!1!==e&&t.push(e);return t}function m(){var e=i();if("/"===t.charAt(0)&&"*"===t.charAt(1)){for(var n=2;""!==t.charAt(n)&&("*"!==t.charAt(n)||"/"!==t.charAt(n+1));)++n;if(n+=2,""===t.charAt(n-1))return c("End of comment missing");var s=t.slice(2,n-2);return r+=2,o(s),t=t.slice(n),r+=2,e({type:"comment",comment:s})}}function v(){var t=p(/^([^{]+)/);if(t)return fs(t[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(t){return t.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(t){return t.replace(/\u200C/g,",")}))}function O(){var t=i(),e=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(e){if(e=fs(e[0]),!p(/^:\s*/))return c("property missing ':'");var n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=t({type:"declaration",property:e.replace(ds,""),value:n?fs(n[0]).replace(ds,""):""});return p(/^[;\s]*/),r}}function g(){var t,e=[];if(!u())return c("missing '{'");for(b(e);t=O();)!1!==t&&(e.push(t),b(e));return l()?e:c("missing '}'")}function y(){for(var t,e=[],n=i();t=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),p(/^,\s*/);if(e.length)return n({type:"keyframe",values:e,declarations:g()})}var j,_=S("import"),E=S("charset"),k=S("namespace");function S(t){var e=new RegExp("^@"+t+"\\s*([^;]+);");return function(){var n=i(),r=p(e);if(r){var o={type:t};return o[t]=r[1].trim(),n(o)}}}function P(){if("@"===t[0])return function(){var t=i(),e=p(/^@([-\w]+)?keyframes\s*/);if(e){var n=e[1];if(!(e=p(/^([-\w]+)\s*/)))return c("@keyframes missing name");var r,o=e[1];if(!u())return c("@keyframes missing '{'");for(var s=b();r=y();)s.push(r),s=s.concat(b());return l()?t({type:"keyframes",name:o,vendor:n,keyframes:s}):c("@keyframes missing '}'")}}()||function(){var t=i(),e=p(/^@media *([^{]+)/);if(e){var n=fs(e[1]);if(!u())return c("@media missing '{'");var r=b().concat(d());return l()?t({type:"media",media:n,rules:r}):c("@media missing '}'")}}()||function(){var t=i(),e=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return t({type:"custom-media",name:fs(e[1]),media:fs(e[2])})}()||function(){var t=i(),e=p(/^@supports *([^{]+)/);if(e){var n=fs(e[1]);if(!u())return c("@supports missing '{'");var r=b().concat(d());return l()?t({type:"supports",supports:n,rules:r}):c("@supports missing '}'")}}()||_()||E()||k()||function(){var t=i(),e=p(/^@([-\w]+)?document *([^{]+)/);if(e){var n=fs(e[1]),r=fs(e[2]);if(!u())return c("@document missing '{'");var o=b().concat(d());return l()?t({type:"document",document:r,vendor:n,rules:o}):c("@document missing '}'")}}()||function(){var t=i();if(p(/^@page */)){var e=v()||[];if(!u())return c("@page missing '{'");for(var n,r=b();n=O();)r.push(n),r=r.concat(b());return l()?t({type:"page",selectors:e,declarations:r}):c("@page missing '}'")}}()||function(){var t=i();if(p(/^@host\s*/)){if(!u())return c("@host missing '{'");var e=b().concat(d());return l()?t({type:"host",rules:e}):c("@host missing '}'")}}()||function(){var t=i();if(p(/^@font-face\s*/)){if(!u())return c("@font-face missing '{'");for(var e,n=b();e=O();)n.push(e),n=n.concat(b());return l()?t({type:"font-face",declarations:n}):c("@font-face missing '}'")}}()}function w(){var t=i(),e=v();return e?(b(),t({type:"rule",selectors:e,declarations:g()})):c("selector missing")}return function t(e,n){var r=e&&"string"==typeof e.type,o=r?e:n;for(var i in e){var s=e[i];Array.isArray(s)?s.forEach((function(e){t(e,o)})):s&&"object"===Object(h.a)(s)&&t(s,o)}r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return e}((j=d(),{type:"stylesheet",stylesheet:{source:e.source,rules:j,parsingErrors:a}}))};function fs(t){return t?t.replace(/^\s+|\s+$/g,""):""}var hs=n("P7XM"),bs=n.n(hs),ms=vs;function vs(t){this.options=t||{}}vs.prototype.emit=function(t){return t},vs.prototype.visit=function(t){return this[t.type](t)},vs.prototype.mapVisit=function(t,e){var n="";e=e||"";for(var r=0,o=t.length;r<o;r++)n+=this.visit(t[r]),e&&r<o-1&&(n+=this.emit(e));return n};var Os=gs;function gs(t){ms.call(this,t)}bs()(gs,ms),gs.prototype.compile=function(t){return t.stylesheet.rules.map(this.visit,this).join("")},gs.prototype.comment=function(t){return this.emit("",t.position)},gs.prototype.import=function(t){return this.emit("@import "+t.import+";",t.position)},gs.prototype.media=function(t){return this.emit("@media "+t.media,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}")},gs.prototype.document=function(t){var e="@"+(t.vendor||"")+"document "+t.document;return this.emit(e,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}")},gs.prototype.charset=function(t){return this.emit("@charset "+t.charset+";",t.position)},gs.prototype.namespace=function(t){return this.emit("@namespace "+t.namespace+";",t.position)},gs.prototype.supports=function(t){return this.emit("@supports "+t.supports,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}")},gs.prototype.keyframes=function(t){return this.emit("@"+(t.vendor||"")+"keyframes "+t.name,t.position)+this.emit("{")+this.mapVisit(t.keyframes)+this.emit("}")},gs.prototype.keyframe=function(t){var e=t.declarations;return this.emit(t.values.join(","),t.position)+this.emit("{")+this.mapVisit(e)+this.emit("}")},gs.prototype.page=function(t){var e=t.selectors.length?t.selectors.join(", "):"";return this.emit("@page "+e,t.position)+this.emit("{")+this.mapVisit(t.declarations)+this.emit("}")},gs.prototype["font-face"]=function(t){return this.emit("@font-face",t.position)+this.emit("{")+this.mapVisit(t.declarations)+this.emit("}")},gs.prototype.host=function(t){return this.emit("@host",t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}")},gs.prototype["custom-media"]=function(t){return this.emit("@custom-media "+t.name+" "+t.media+";",t.position)},gs.prototype.rule=function(t){var e=t.declarations;return e.length?this.emit(t.selectors.join(","),t.position)+this.emit("{")+this.mapVisit(e)+this.emit("}"):""},gs.prototype.declaration=function(t){return this.emit(t.property+":"+t.value,t.position)+this.emit(";")};var ys=js;function js(t){t=t||{},ms.call(this,t),this.indentation=t.indent}bs()(js,ms),js.prototype.compile=function(t){return this.stylesheet(t)},js.prototype.stylesheet=function(t){return this.mapVisit(t.stylesheet.rules,"\n\n")},js.prototype.comment=function(t){return this.emit(this.indent()+"/*"+t.comment+"*/",t.position)},js.prototype.import=function(t){return this.emit("@import "+t.import+";",t.position)},js.prototype.media=function(t){return this.emit("@media "+t.media,t.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},js.prototype.document=function(t){var e="@"+(t.vendor||"")+"document "+t.document;return this.emit(e,t.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},js.prototype.charset=function(t){return this.emit("@charset "+t.charset+";",t.position)},js.prototype.namespace=function(t){return this.emit("@namespace "+t.namespace+";",t.position)},js.prototype.supports=function(t){return this.emit("@supports "+t.supports,t.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},js.prototype.keyframes=function(t){return this.emit("@"+(t.vendor||"")+"keyframes "+t.name,t.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t.keyframes,"\n")+this.emit(this.indent(-1)+"}")},js.prototype.keyframe=function(t){var e=t.declarations;return this.emit(this.indent())+this.emit(t.values.join(", "),t.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},js.prototype.page=function(t){var e=t.selectors.length?t.selectors.join(", ")+" ":"";return this.emit("@page "+e,t.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(t.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},js.prototype["font-face"]=function(t){return this.emit("@font-face ",t.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(t.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},js.prototype.host=function(t){return this.emit("@host",t.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},js.prototype["custom-media"]=function(t){return this.emit("@custom-media "+t.name+" "+t.media+";",t.position)},js.prototype.rule=function(t){var e=this.indent(),n=t.declarations;return n.length?this.emit(t.selectors.map((function(t){return e+t})).join(",\n"),t.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},js.prototype.declaration=function(t){return this.emit(this.indent())+this.emit(t.property+": "+t.value,t.position)+this.emit(";")},js.prototype.indent=function(t){return this.level=this.level||1,null!==t?(this.level+=t,""):Array(this.level).join(this.indentation||" ")};var _s=function(t,e){try{var n=ps(t),r=ls.a.map(n,(function(t){if(!t)return t;var n=e(t);return this.update(n)}));return o=r,((i=i||{}).compress?new Os(i):new ys(i)).compile(o)}catch(t){return console.warn("Error while traversing the CSS: "+t),null}var o,i},Es=n("CxY0");function ks(t){return 0!==t.value.indexOf("data:")&&0!==t.value.indexOf("#")&&(e=t.value,!/^\/(?!\/)/.test(e)&&!function(t){return/^(?:https?:)?\/\//.test(t)}(t.value));var e}function Ss(t){return function(e){var n=function(t,e){var n=Object(Es.parse)(t).pathname;return Object(Es.resolve)(e,n)}(e.value,t);return Object(f.a)({},e,{newUrl:"url("+e.before+e.quote+n+e.quote+e.after+")"})}}var Ps=function(t){return function(e){if("declaration"===e.type){var n=function(t){for(var e,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(e=n.exec(t));){var o={source:e[0],before:e[1],quote:e[2],value:e[3],after:e[4]};ks(o)&&r.push(o)}return r}(e.value).map(Ss(t));return Object(f.a)({},e,{value:(r=e.value,o=n,o.forEach((function(t){r=r.replace(t.source,t.newUrl)})),r)})}var r,o;return e}},ws=/^(body|html|:root).*$/,Ts=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(f.a)({},n,{selectors:n.selectors.map((function(n){return Object(v.includes)(e,n.trim())?n:n.match(ws)?n.replace(/^(body|html|:root)/,t):t+" "+n}))}):n}},Cs=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(v.map)(t,(function(t){var n=t.css,r=t.baseURL,o=[];return e&&o.push(Ts(e)),r&&o.push(Ps(r)),o.length?_s(n,Object(Kr.compose)(o)):n}))},xs=n("xTGt");function Bs(t){return t?Object(v.flatMap)(t,(function(t,e){var n=t.split("/"),r=Object(d.a)(n,1)[0],o=e.split("|");return[t].concat(Object(P.a)(Object(v.map)(o,(function(t){return"".concat(r,"/").concat(t)}))))})):t}function As(){return(As=Object(le.a)(M.a.mark((function t(e){var n,r,o,i,s,a,c,u,l,d,p,h,b,m,O,g,y,j,_,E,k,S,w,T,C,x,B,A,I;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.allowedTypes,r=e.additionalData,o=void 0===r?{}:r,i=e.filesList,s=e.maxUploadFileSize,a=e.onError,c=void 0===a?v.noop:a,u=e.onFileChange,l=e.wpAllowedMimeTypes,d=void 0===l?null:l,p=Object(P.a)(i),h=[],b=function(t,e){Object(xs.revokeBlobURL)(Object(v.get)(h,[t,"url"])),h[t]=e,u(Object(v.compact)(h))},m=function(t){return!n||Object(v.some)(n,(function(e){return Object(v.includes)(e,"/")?e===t:Object(v.startsWith)(t,"".concat(e,"/"))}))},O=Bs(d),g=function(t){return Object(v.includes)(O,t)},y=function(t){t.message=[Object(wr.createElement)("strong",{key:"filename"},t.file.name),": ",t.message],c(t)},j=[],_=!0,E=!1,k=void 0,t.prev=12,S=p[Symbol.iterator]();case 14:if(_=(w=S.next()).done){t.next=34;break}if(T=w.value,!O||g(T.type)){t.next=19;break}return y({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(Q.__)("Sorry, this file type is not permitted for security reasons."),file:T}),t.abrupt("continue",31);case 19:if(m(T.type)){t.next=22;break}return y({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(Q.__)("Sorry, this file type is not supported here."),file:T}),t.abrupt("continue",31);case 22:if(!(s&&T.size>s)){t.next=25;break}return y({code:"SIZE_ABOVE_LIMIT",message:Object(Q.__)("This file exceeds the maximum upload size for this site."),file:T}),t.abrupt("continue",31);case 25:if(!(T.size<=0)){t.next=28;break}return y({code:"EMPTY_FILE",message:Object(Q.__)("This file is empty."),file:T}),t.abrupt("continue",31);case 28:j.push(T),h.push({url:Object(xs.createBlobURL)(T)}),u(h);case 31:_=!0,t.next=14;break;case 34:t.next=40;break;case 36:t.prev=36,t.t0=t.catch(12),E=!0,k=t.t0;case 40:t.prev=40,t.prev=41,_||null==S.return||S.return();case 43:if(t.prev=43,!E){t.next=46;break}throw k;case 46:return t.finish(43);case 47:return t.finish(40);case 48:C=0;case 49:if(!(C<j.length)){t.next=68;break}return x=j[C],t.prev=51,t.next=54,Is(x,o);case 54:B=t.sent,A=Object(f.a)({},Object(v.omit)(B,["alt_text","source_url"]),{alt:B.alt_text,caption:Object(v.get)(B,["caption","raw"],""),title:B.title.raw,url:B.source_url}),b(C,A),t.next=65;break;case 59:t.prev=59,t.t1=t.catch(51),b(C,null),I=void 0,I=Object(v.has)(t.t1,["message"])?Object(v.get)(t.t1,["message"]):Object(Q.sprintf)(Object(Q.__)("Error while uploading file %s to the media library."),x.name),c({code:"GENERAL",message:I,file:x});case 65:++C,t.next=49;break;case 68:case"end":return t.stop()}}),t,this,[[12,36,40,48],[41,,43,47],[51,59]])})))).apply(this,arguments)}function Is(t,e){var n=new window.FormData;return n.append("file",t,t.name||t.type.replace("/",".")),Object(v.forEach)(e,(function(t,e){return n.append(e,t)})),K()({path:"/wp/v2/media",body:n,method:"POST"})}var Ls=function(t){var e=t.additionalData,n=void 0===e?{}:e,r=t.allowedTypes,o=t.filesList,i=t.maxUploadFileSize,s=t.onError,a=void 0===s?v.noop:s,c=t.onFileChange,u=Object(l.select)("core/editor"),d=u.getCurrentPostId,p=u.getEditorSettings,h=p().allowedMimeTypes;i=i||p().maxUploadFileSize,function(t){As.apply(this,arguments)}({allowedTypes:r,filesList:o,onFileChange:c,additionalData:Object(f.a)({post:d()},n),maxUploadFileSize:i,onError:function(t){var e=t.message;return a(e)},wpAllowedMimeTypes:h})},Rs=function(t){function e(t){var n;return Object(Nr.a)(this,e),(n=Object(Fr.a)(this,Object(Mr.a)(e).apply(this,arguments))).getBlockEditorSettings=cs()(n.getBlockEditorSettings,{maxSize:1}),t.recovery?Object(Fr.a)(n):(t.updatePostLock(t.settings.postLock),t.setupEditor(t.post,t.initialEdits,t.settings.template),t.settings.autosave&&t.createWarningNotice(Object(Q.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Q.__)("View the autosave"),url:t.settings.autosave.editLink}]}),n)}return Object(Vr.a)(e,t),Object(Dr.a)(e,[{key:"getBlockEditorSettings",value:function(t,e,n,r){return Object(f.a)({},Object(v.pick)(t,["alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder"]),{__experimentalMetaSource:{value:e,onChange:n},__experimentalReusableBlocks:r,__experimentalMediaUpload:Ls})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var t=Cs(this.props.settings.styles,".editor-styles-wrapper");Object(v.map)(t,(function(t){if(t){var e=document.createElement("style");e.innerHTML=t,document.body.appendChild(e)}}))}}},{key:"componentDidUpdate",value:function(t){this.props.settings!==t.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.blocks,r=t.resetEditorBlocks,o=t.isReady,s=t.settings,a=t.meta,c=t.onMetaChange,u=t.reusableBlocks,l=t.resetEditorBlocksWithoutUndoLevel;if(!o)return null;var d=this.getBlockEditorSettings(s,a,c,u);return Object(wr.createElement)(i.BlockEditorProvider,{value:n,onInput:l,onChange:r,settings:d},e)}}]),e}(wr.Component),Us=Object(Kr.compose)([Object(l.withSelect)((function(t){var e=t("core/editor"),n=e.__unstableIsEditorReady,r=e.getEditorBlocks,o=e.getEditedPostAttribute,i=e.__experimentalGetReusableBlocks;return{isReady:n(),blocks:r(),meta:o("meta"),reusableBlocks:i()}})),Object(l.withDispatch)((function(t){var e=t("core/editor"),n=e.setupEditor,r=e.updatePostLock,o=e.resetEditorBlocks,i=e.editPost,s=e.updateEditorSettings;return{setupEditor:n,updatePostLock:r,createWarningNotice:t("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:s,resetEditorBlocksWithoutUndoLevel:function(t){o(t,{__unstableShouldCreateUndoLevel:!1})},onMetaChange:function(t){i({meta:t})}}}))])(Rs),Ns=[Ar],Ds=Object(v.once)((function(){return Object(l.dispatch)("core/editor").__experimentalFetchReusableBlocks()}));Object(Pr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(t,e){return t||(t=Ns.map(v.clone),e===Object(s.getDefaultBlockName)()&&(t.push(Object(v.clone)(Br)),Ds())),t}))},PYwp:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"a",(function(){return r}))},Rk8H:function(t,e,n){var r=n("jTPX");t.exports=function(t){var e=r(t,"line-height"),n=parseFloat(e,10);if(e===n+""){var o=t.style.lineHeight;t.style.lineHeight=e+"em",e=r(t,"line-height"),n=parseFloat(e,10),o?t.style.lineHeight=o:delete t.style.lineHeight}if(-1!==e.indexOf("pt")?(n*=4,n/=3):-1!==e.indexOf("mm")?(n*=96,n/=25.4):-1!==e.indexOf("cm")?(n*=96,n/=2.54):-1!==e.indexOf("in")?n*=96:-1!==e.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===e){var i=t.nodeName,s=document.createElement(i);s.innerHTML="&nbsp;","TEXTAREA"===i.toUpperCase()&&s.setAttribute("rows","1");var a=r(t,"font-size");s.style.fontSize=a,s.style.padding="0px",s.style.border="0px";var c=document.body;c.appendChild(s),n=s.offsetHeight,c.removeChild(s)}return n}},RxS6:function(t,e){!function(){t.exports=this.wp.keycodes}()},TSYQ:function(t,e,n){var r;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&t.push(s)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&t.push(a);else t.push(r.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},U8pU:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",(function(){return o}))},UuzZ:function(t,e){!function(){t.exports=this.wp.autop}()},WbBG:function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},WsEz:function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};var o=[];function i(t,e){return t.optimist&&t.optimist.id===e}function s(t,e){if(!t||"object"!=typeof t||Array.isArray(t))throw new TypeError('Error while handling "'+e.type+'": Optimist requires that state is always a plain object.')}function a(t){if(t){var e=t.optimist;return{optimist:void 0===e?o:e,innerState:function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["optimist"])}}return{optimist:o,innerState:t}}t.exports=function(t){function e(e,n,o){return e.length&&(e=e.concat([{action:o}])),s(n=t(n,o),o),r({optimist:e},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(e,n){var o=a(e),i=o.optimist,c=o.innerState;return i=i.concat([{beforeState:c,action:n}]),s(c=t(c,n),n),r({optimist:i},c)}(n,o);case"COMMIT":return function(t,n){var r=a(t),o=r.optimist,s=r.innerState,c=[],u=!1,l=!1;return o.forEach((function(t){u?t.beforeState&&i(t.action,n.optimist.id)?(l=!0,c.push({action:t.action})):c.push(t):t.beforeState&&!i(t.action,n.optimist.id)?(u=!0,c.push(t)):t.beforeState&&i(t.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),e(o=c,s,n)}(n,o);case"REVERT":return function(n,r){var o=a(n),c=o.optimist,u=o.innerState,l=[],d=!1,p=!1,f=u;return c.forEach((function(e){e.beforeState&&i(e.action,r.optimist.id)&&(f=e.beforeState,p=!0),i(e.action,r.optimist.id)||(e.beforeState&&(d=!0),d&&(p&&e.beforeState?l.push({beforeState:f,action:e.action}):l.push(e)),p&&(f=t(f,e.action),s(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),e(c=l,f,r)}(n,o)}var c=a(n),u=c.optimist,l=c.innerState;if(n&&!u.length){var d=t(l,o);return d===l?n:(s(d,o),r({optimist:u},d))}return e(u,l,o)}},t.exports.BEGIN="BEGIN",t.exports.COMMIT="COMMIT",t.exports.REVERT="REVERT"},YLtl:function(t,e){!function(){t.exports=this.lodash}()},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},ZU7w:function(t,e){!function(){t.exports=this.wp.nux}()},axFQ:function(t,e){!function(){t.exports=this.wp.blockEditor}()},cDcd:function(t,e){!function(){t.exports=this.React}()},d2gM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.dispatch;return function(t){return function(n){return Array.isArray(n)?n.filter(Boolean).map(e):t(n)}}}},eGrx:function(t,e){var n=t.exports=function(t){return new r(t)};function r(t){this.value=t}function o(t,e,n){var r=[],o=[],a=!0;return function t(d){var p=n?i(d):d,f={},h=!0,b={node:p,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){b.isRoot||(b.parent.node[b.key]=t),b.node=t,e&&(h=!1)},delete:function(t){delete b.parent.node[b.key],t&&(h=!1)},remove:function(t){c(b.parent.node)?b.parent.node.splice(b.key,1):delete b.parent.node[b.key],t&&(h=!1)},keys:null,before:function(t){f.before=t},after:function(t){f.after=t},pre:function(t){f.pre=t},post:function(t){f.post=t},stop:function(){a=!1},block:function(){h=!1}};if(!a)return b;function m(){if("object"==typeof b.node&&null!==b.node){b.keys&&b.node_===b.node||(b.keys=s(b.node)),b.isLeaf=0==b.keys.length;for(var t=0;t<o.length;t++)if(o[t].node_===d){b.circular=o[t];break}}else b.isLeaf=!0,b.keys=null;b.notLeaf=!b.isLeaf,b.notRoot=!b.isRoot}m();var v=e.call(b,b.node);return void 0!==v&&b.update&&b.update(v),f.before&&f.before.call(b,b.node),h?("object"!=typeof b.node||null===b.node||b.circular||(o.push(b),m(),u(b.keys,(function(e,o){r.push(e),f.pre&&f.pre.call(b,b.node[e],e);var i=t(b.node[e]);n&&l.call(b.node,e)&&(b.node[e]=i.node),i.isLast=o==b.keys.length-1,i.isFirst=0==o,f.post&&f.post.call(b,i),r.pop()})),o.pop()),f.after&&f.after.call(b,b.node),b):b}(t).node}function i(t){if("object"==typeof t&&null!==t){var e;if(c(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===a(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var n=t.constructor&&t.constructor.prototype||t.__proto__||{},r=function(){};r.prototype=n,e=new r}return u(s(t),(function(n){e[n]=t[n]})),e}return t}r.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!l.call(e,r)){e=void 0;break}e=e[r]}return e},r.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!l.call(e,r))return!1;e=e[r]}return!0},r.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var o=t[r];l.call(n,o)||(n[o]={}),n=n[o]}return n[t[r]]=e,e},r.prototype.map=function(t){return o(this.value,t,!0)},r.prototype.forEach=function(t){return this.value=o(this.value,t,!1),this.value},r.prototype.reduce=function(t,e){var n=1===arguments.length,r=n?this.value:e;return this.forEach((function(e){this.isRoot&&n||(r=t.call(this,r,e))})),r},r.prototype.paths=function(){var t=[];return this.forEach((function(e){t.push(this.path)})),t},r.prototype.nodes=function(){var t=[];return this.forEach((function(e){t.push(this.node)})),t},r.prototype.clone=function(){var t=[],e=[];return function n(r){for(var o=0;o<t.length;o++)if(t[o]===r)return e[o];if("object"==typeof r&&null!==r){var a=i(r);return t.push(r),e.push(a),u(s(r),(function(t){a[t]=n(r[t])})),t.pop(),e.pop(),a}return r}(this.value)};var s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function a(t){return Object.prototype.toString.call(t)}var c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},u=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)};u(s(r.prototype),(function(t){n[t]=function(e){var n=[].slice.call(arguments,1),o=new r(e);return o[t].apply(o,n)}}));var l=Object.hasOwnProperty||function(t,e){return e in t}},foSv:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},g56x:function(t,e){!function(){t.exports=this.wp.hooks}()},gQxa:function(t,e,n){"use strict";t.exports=function(t){var e,n={};return function t(e,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)t(e,n[r]);else for(r in n)e[r]=(e[r]||[]).concat(n[r])}(n,t),(e=function(t){return function(e){return function(r){var o,i,s=n[r.type],a=e(r);if(s)for(o=0;o<s.length;o++)(i=s[o](r,t))&&t.dispatch(i);return a}}}).effects=n,e}},"hx/w":function(t,e,n){t.exports=n("WsEz")},jTPX:function(t,e){t.exports=function(t,e,n){return((n=window.getComputedStyle)?n(t):t.currentStyle)[e.replace(/-(\w)/gi,(function(t,e){return e.toUpperCase()}))]}},jZUy:function(t,e){!function(){t.exports=this.wp.coreData}()},kd2E:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var d,p,f,h,b=t[l].replace(a,"%20"),m=b.indexOf(n);m>=0?(d=b.substr(0,m),p=b.substr(m+1)):(d=b,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),r(s,f)?o(s[f])?s[f].push(h):s[f]=[s[f],h]:s[f]=h}return s};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},l3Sj:function(t,e){!function(){t.exports=this.wp.i18n}()},ls82:function(t,e){!function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag",c="object"==typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{(u=e.regeneratorRuntime=c?t.exports:{}).wrap=b;var l={},d={};d[i]=function(){return this};var p=Object.getPrototypeOf,f=p&&p(p(P([])));f&&f!==n&&r.call(f,i)&&(d=f);var h=g.prototype=v.prototype=Object.create(d);O.prototype=h.constructor=g,g.constructor=O,g[a]=O.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(h),t},u.awrap=function(t){return{__await:t}},y(j.prototype),j.prototype[s]=function(){return this},u.AsyncIterator=j,u.async=function(t,e,n,r){var o=new j(b(t,e,n,r));return u.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(h),h[a]="Generator",h[i]=function(){return this},h.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}}}function b(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return w()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===l)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=m(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,s),i}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function v(){}function O(){}function g(){}function y(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function j(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,s){var a=m(t[n],t,o);if("throw"!==a.type){var c=a.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=m(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},md7G:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("U8pU"),o=n("JX7q");function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},o0o1:function(t,e,n){t.exports=n("u938")},onLe:function(t,e){!function(){t.exports=this.wp.notices}()},pPDe:function(t,e,n){"use strict";var r,o;function i(t){return[t]}function s(){var t={clear:function(){t.head=null}};return t}function a(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function u(){n=o?new WeakMap:s()}function l(){var n,r,o,i,s,u=arguments.length;for(i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];for(s=e.apply(null,i),(n=c(s)).isUniqueByDependants||(n.lastDependants&&!a(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),r=n.head;r;){if(a(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=i),c=o?function(t){var e,o,i,a,c,u=n,l=!0;for(e=0;e<t.length;e++){if(o=t[e],!(c=o)||"object"!=typeof c){l=!1;break}u.has(o)?u=u.get(o):(i=new WeakMap,u.set(o,i),u=i)}return u.has(r)||((a=s()).isUniqueByDependants=l,u.set(r,a)),u.get(r)}:function(){return n},l.getDependants=e,l.clear=u,u(),l}},qRz9:function(t,e){!function(){t.exports=this.wp.richText}()},rePB:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},rmEH:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},s4NR:function(t,e,n){"use strict";e.decode=e.parse=n("kd2E"),e.encode=e.stringify=n("4JlD")},"tI+e":function(t,e){!function(){t.exports=this.wp.components}()},u938:function(t,e,n){var r=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("ls82"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},vpQ4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("rePB");function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},vuIU:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return o}))},wx14:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},xTGt:function(t,e){!function(){t.exports=this.wp.blob}()},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ywyh:function(t,e){!function(){t.exports=this.wp.apiFetch}()}});