this.wp=this.wp||{},this.wp.richText=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=293)}({15: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})},19:function(t,e,n){"use strict";var r=n(33);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f,s=n.slice(0);if(c===l){for(var d=Object(r.find)(s[c],{type:e.type});Object(r.find)(s[c],d);)u(s,c,e),c--;for(l++;Object(r.find)(s[l],d);)u(s,l,e),l++}else for(var m=c;m0&&void 0!==arguments[0]?arguments[0]:{},e=t.element,n=t.text,r=t.html,o=t.range,i=t.multilineTag,a=t.removeNode,u=t.unwrapNode,f=t.filterString,c=t.removeAttribute;return"string"==typeof n&&n.length>0?{formats:Array(n.length),text:n}:("string"==typeof r&&r.length>0&&(e=function(t,e){var n=t.implementation.createHTMLDocument("").body;return n.innerHTML=e,n}(document,r)),"object"!==Object(l.a)(e)?{formats:[],text:""}:i?function(t){var e=t.element,n=t.range,r=t.multilineTag,o=t.removeNode,i=t.unwrapNode,a=t.filterString,u=t.removeAttribute,f={formats:[],text:""};if(!e||!e.hasChildNodes())return f;for(var c=e.children.length,l=0;l1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof e&&(e=h({text:e})),i(t.reduce(function(t,n){var r=n.formats,o=n.text;return{text:t.text+e.text+o,formats:t.formats.concat(e.formats,r)}}))}function T(t,e){var n=t.formats,o=t.text,a=t.start,u=t.end,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,l=n.slice(0);if(f===c){for(var s=Object(r.find)(l[f],{type:e});Object(r.find)(l[f],s);)w(l,f,e),f--;for(c++;Object(r.find)(l[c],s);)w(l,c,e),c++}else for(var d=f;d2&&void 0!==arguments[2]?arguments[2]:o,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;"string"==typeof e&&(e=h({text:e}));var c=u+e.text.length;return i({formats:n.slice(0,u).concat(e.formats,n.slice(f)),text:r.slice(0,u)+e.text+r.slice(f),start:c,end:c})}function C(t,e,n){return E(t,h(),e,n)}function A(t,e,n){var r=t.formats,o=t.text,a=t.start,u=t.end;return o=o.replace(e,function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return void 0===i||void 0===a?{formats:e,text:n}:{formats:e.slice(i,a),text:n.slice(i,a)}}function P(t,e){var n=t.formats,r=t.text,o=t.start,i=t.end;if("string"!=typeof e)return function(t){var e=t.formats,n=t.text,r=t.start,o=t.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:e.slice(0,i),text:n.slice(0,i)},f={formats:e.slice(a),text:n.slice(a),start:0,end:0};return[A(u,/\u2028+$/,""),A(f,/^\u2028+/,"")]}.apply(void 0,arguments);var a=0;return r.split(e).map(function(t){var r=a,u={formats:n.slice(r,r+t.length),text:t};return a+=e.length+t.length,void 0!==o&&void 0!==i&&(o>=r&&or&&(u.start=0),i>=r&&ia&&(u.end=t.length)),u})}var L=n(8);function M(t,e,n){if(e){var r=n.createEmpty,o=n.append,i=r();return P(t,"\u2028").forEach(function(t,r){o(i,M(t,null,Object(L.a)({},n,{tag:e,multilineIndex:r})))}),i}var a=n.tag,u=n.multilineIndex,f=n.createEmpty,c=n.append,l=n.getLastChild,s=n.getParent,d=n.isText,m=n.getText,p=n.remove,v=n.appendText,h=n.onStartIndex,g=n.onEndIndex,b=n.onEmpty,y=t.formats,x=t.text,O=t.start,j=t.end,N=y.length+1,S=f(a);c(S,"");for(var T=function(t){var e=x.charAt(t),n=y[t],r=y[t-1],o=l(S);n&&n.forEach(function(t,e){if(o&&r&&t===r[e])o=l(o);else{var n=t.type,i=t.attributes,a=t.object,u=s(o),f=c(u,{type:n,attributes:i,object:a});d(o)&&0===m(o).length&&p(o),o=c(a?u:f,"")}}),h&&0===O&&0===t&&h(S,o,u),g&&0===j&&0===t&&g(S,o,u),""!==e&&("\n"===e?(o=c(s(o),{type:"br",object:!0}),o=c(s(o),"")):d(o)?v(o,e):o=c(s(o),e)),h&&O===t+1&&h(S,o,u),g&&j===t+1&&g(S,o,u)},w=0;w1;)t=t.childNodes[e.shift()];return{node:t,offset:e[0]}}function k(t){var e=document.implementation.createHTMLDocument("").body;return t?e.appendChild(e.ownerDocument.createElement(t)):e}function F(t,e){"string"==typeof e&&(e=t.ownerDocument.createTextNode(e));var n=e,r=n.type,o=n.attributes;if(r)for(var i in e=t.ownerDocument.createElement(r),o)e.setAttribute(i,o[i]);return t.appendChild(e)}function B(t,e){t.appendData(e)}function X(t){return t.lastChild}function $(t){return t.parentNode}function q(t){return t.nodeType===_}function z(t){return t.nodeValue}function G(t){return t.parentNode.removeChild(t)}function J(t,e){var n=[],r=[];return{body:M(t,e,{createEmpty:k,append:F,getLastChild:X,getParent:$,isText:q,getText:z,remove:G,appendText:B,onStartIndex:function(t,e,r){n=H(e,t,[e.nodeValue.length]),void 0!==r&&(n=[r].concat(Object(c.a)(n)))},onEndIndex:function(t,e,n){r=H(e,t,[e.nodeValue.length]),void 0!==n&&(r=[n].concat(Object(c.a)(r)))},onEmpty:function(t){var e=t.ownerDocument.createElement("br");e.setAttribute("data-mce-bogus","1"),t.appendChild(e)}}),selection:{startPath:n,endPath:r}}}function K(t,e,n){var r=J(t,n),o=r.body,i=r.selection;!function(t,e){var n=0;for(;t.firstChild;){var r=e.childNodes[n],o=t.firstChild.nodeType;r?o!==r.nodeType||o!==_||t.firstChild.nodeValue!==r.nodeValue?e.replaceChild(t.firstChild,r):t.removeChild(t.firstChild):e.appendChild(t.firstChild),n++}for(;e.childNodes[n];)e.removeChild(e.childNodes[n])}(o,e),void 0!==t.start&&function(t,e){var n=R(e,t.startPath),r=n.node,o=n.offset,i=R(e,t.endPath),a=i.node,u=i.offset,f=window.getSelection(),c=e.ownerDocument.createRange(),l=r===a&&o===u;l&&0===o&&r.previousSibling&&r.previousSibling.nodeType===I&&"BR"!==r.previousSibling.nodeName?(r.insertData(0,"\ufeff"),c.setStart(r,1),c.setEnd(a,1)):l&&0===o&&r===_&&0===r.nodeValue.length?(r.insertData(0,"\ufeff"),c.setStart(r,1),c.setEnd(a,1)):(c.setStart(r,o),c.setEnd(a,u));f.removeAllRanges(),f.addRange(c)}(i,e)}var Q=n(60);function U(t,e){return it(M(t,e,{createEmpty:W,append:Z,getLastChild:Y,getParent:et,isText:nt,getText:rt,remove:ot,appendText:tt}).children)}function W(t){return{type:t}}function Y(t){var e=t.children;return e&&e[e.length-1]}function Z(t,e){return"string"==typeof e&&(e={text:e}),e.parent=t,t.children=t.children||[],t.children.push(e),e}function tt(t,e){t.text+=e}function et(t){return t.parent}function nt(t){return"string"==typeof t.text}function rt(t){return t.text}function ot(t){var e=t.parent.children.indexOf(t);return-1!==e&&t.parent.children.splice(e,1),t}function it(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return void 0===t.text?function(t){var e=t.type,n=t.attributes,r=t.object,o=t.children,i="";for(var a in n)Object(Q.isValidAttributeName)(a)&&(i+=" ".concat(a,'="').concat(Object(Q.escapeAttribute)(n[a]),'"'));return r?"<".concat(e).concat(i,">"):"<".concat(e).concat(i,">").concat(it(o),"")}(t):Object(Q.escapeHTML)(t.text)}).join("")}n.d(e,"applyFormat",function(){return a}),n.d(e,"concat",function(){return f}),n.d(e,"create",function(){return h}),n.d(e,"getActiveFormat",function(){return O}),n.d(e,"getTextContent",function(){return j}),n.d(e,"isCollapsed",function(){return N}),n.d(e,"isEmpty",function(){return s}),n.d(e,"isEmptyLine",function(){return d}),n.d(e,"join",function(){return S}),n.d(e,"removeFormat",function(){return T}),n.d(e,"remove",function(){return C}),n.d(e,"replace",function(){return A}),n.d(e,"insert",function(){return E}),n.d(e,"slice",function(){return D}),n.d(e,"split",function(){return P}),n.d(e,"apply",function(){return K}),n.d(e,"unstableToDom",function(){return J}),n.d(e,"toHTMLString",function(){return U})},33: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})},60:function(t,e){!function(){t.exports=this.wp.escapeHtml}()},8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(15);function o(t){for(var e=1;e