!function(j){"use strict";varo=function(){},H=function(n,r){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn(r.apply(null,e))}},q=function(e){returnfunction(){returne}},$=function(e){returne};functiond(r){for(varo=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];varn=o.concat(e);returnr.apply(null,n)}}vare,t,n,r,i,a,u,s,c,l,f,m,g,p,h,v,y,b=function(n){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}},C=q(!1),x=q(!0),w=C,N=x,E=function(){returnS},S=(r={fold:function(e,t){returne()},is:w,isSome:w,isNone:N,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:n,orThunk:t,map:E,ap:E,each:function(){},bind:E,flatten:E,exists:w,forall:N,filter:E,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:q("none()")},Object.freeze&&Object.freeze(r),r),T=function(n){vare=function(){returnn},t=function(){returno},r=function(e){returne(n)},o={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:N,isNone:w,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){returnT(e(n))},ap:function(e){returne.fold(E,function(e){returnT(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(n)?o:S},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(w,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},_={some:T,none:E,from:function(e){returnnull===e||e===undefined?S:T(e)}},k=function(t){returnfunction(e){returnfunction(e){if(null===e)return"null";vart=typeofe;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===t}},A=k("string"),R=k("object"),D=k("array"),B=k("null"),O=k("boolean"),P=k("function"),I=k("number"),L=Array.prototype.slice,F=(i=Array.prototype.indexOf)===undefined?function(e,t){returnJ(e,t)}:function(e,t){returni.call(e,t)},M=function(e,t){return-1<F(e,t)},z=function(e,t){returnG(e,t).isSome()},W=function(e,t){for(varn=e.length,r=newArray(n),o=0;o<n;o++){vari=e[o];r[o]=t(i,o,e)}returnr},U=function(e,t){for(varn=0,r=e.length;n<r;n++)t(e[n],n,e)},K=function(e,t){for(varn=[],r=[],o=0,i=e.length;o<i;o++){vara=e[o];(t(a,o,e)?n:r).push(a)}return{pass:n,fail:r}},V=function(e,t){for(varn=[],r=0,o=e.length;r<o;r++){vari=e[r];t(i,r,e)&&n.push(i)}returnn},X=function(e,t,n){returnU(e,function(e){n=t(n,e)}),n},Y=function(e,t){for(varn=0,r=e.length;n<r;n++){varo=e[n];if(t(o,n,e))return_.some(o)}return_.none()},G=function(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n,e))return_.some(n);return_.none()},J=function(e,t){for(varn=0,r=e.length;n<r;++n)if(e[n]===t)returnn;return-1},Q=Array.prototype.push,Z=function(e,t){returnfunction(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!D(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);Q.apply(t,e[n])}returnt}(W(e,t))},ee=function(e,t){for(varn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n,e))return!1;return!0},te=function(e,t){returnV(e,function(e){return!M(t,e)})},ne=function(e){return0===e.length?_.none():_.some(e[0])},re=function(e){return0===e.length?_.none():_.some(e[e.length-1])},oe=P(Array.from)?Array.from:function(e){returnL.call(e)},ie="undefined"!=typeofj.window?j.window:Function("return this;")(),ae=function(e,t){returnfunction(e,t){for(varn=t!==undefined&&null!==t?t:ie,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];returnn}(e.split("."),t)},ue={getOrDie:function(e,t){varn=ae(e,t);if(n===undefined||null===n)thrownewError(e+" not available on this browser");returnn}},se=function(){returnue.getOrDie("URL")},ce={createObjectU
!function(){"use strict";vart=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),e=function(t,e){vari,n=t.dom,o=t.selection.getSelectedBlocks();o.length&&(i=n.getAttrib(o[0],"dir"),c.each(o,function(t){n.getParent(t.parentNode,'*[dir="'+e+'"]',n.getRoot())||n.setAttrib(t,"dir",i!==e?e:null)}),t.nodeChanged())},i=function(t){t.addCommand("mceDirectionLTR",function(){e(t,"ltr")}),t.addCommand("mceDirectionRTL",function(){e(t,"rtl")})},n=function(e){vari=[];returnc.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(t){i.push(t+"[dir="+e+"]")}),i.join(",")},o=function(t){t.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),t.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})};t.add("directionality",function(t){i(t),o(t)})}();
!function(l){"use strict";vari,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=function(e){return!1!==e.settings.image_dimensions},u=function(e){return!0===e.settings.image_advtab},m=function(e){returne.getParam("image_prepend_url","")},n=function(e){returne.getParam("image_class_list")},r=function(e){return!1!==e.settings.image_description},a=function(e){return!0===e.settings.image_title},o=function(e){return!0===e.settings.image_caption},c=function(e){returne.getParam("image_list",!1)},s=function(e){returne.getParam("images_upload_url",!1)},g=function(e){returne.getParam("images_upload_handler",!1)},f=function(e){returne.getParam("images_upload_url")},p=function(e){returne.getParam("images_upload_handler")},h=function(e){returne.getParam("images_upload_base_path")},v=function(e){returne.getParam("images_upload_credentials")},b="undefined"!=typeofl.window?l.window:Function("return this;")(),y=function(e,t){returnfunction(e,t){for(varn=t!==undefined&&null!==t?t:b,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];returnn}(e.split("."),t)},x={getOrDie:function(e,t){varn=y(e,t);if(n===undefined||null===n)thrownewError(e+" not available on this browser");returnn}},w=tinymce.util.Tools.resolve("tinymce.util.Promise"),C=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=tinymce.util.Tools.resolve("tinymce.util.XHR"),N=function(e,t){returnMath.max(parseInt(e,10),parseInt(t,10))},_=function(e,n){varr=l.document.createElement("img");functiont(e,t){r.parentNode&&r.parentNode.removeChild(r),n({width:e,height:t})}r.onload=function(){t(N(r.width,r.clientWidth),N(r.height,r.clientHeight))},r.onerror=function(){t(0,0)};vara=r.style;a.visibility="hidden",a.position="fixed",a.bottom=a.left="0px",a.width=a.height="auto",l.document.body.appendChild(r),r.src=e},T=function(e,a,t){returnfunctionn(e,r){returnr=r||[],C.each(e,function(e){vart={text:e.text||e.title};e.menu?t.menu=n(e.menu):(t.value=e.value,a(t)),r.push(t)}),r}(e,t||[])},A=function(e){returne&&(e=e.replace(/px$/,"")),e},R=function(e){return0<e.length&&/^[0-9]+$/.test(e)&&(e+="px"),e},I=function(e){if(e.margin){vart=e.margin.split(" ");switch(t.length){case1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}deletee.margin}returne},t=function(e,t){varn=c(e);"string"==typeofn?S.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"==typeofn?n(t):t(n)},O=function(e,t,n){functionr(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())}n.onload=function(){t.width||t.height||!d(e)||e.dom.setAttribs(n,{width:n.clientWidth,height:n.clientHeight}),r()},n.onerror=r},L=function(r){returnneww(function(e,t){varn=new(x.getOrDie("FileReader"));n.onload=function(){e(n.result)},n.onerror=function(){t(n.error.message)},n.readAsDataURL(r)})},P=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=Object.prototype.hasOwnProperty,E=(i=function(e,t){returnt},function(){for(vare=newArray(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)thrownewError("Can't merge zero objects");for(varn={},r=0;r<e.length;r++){vara=e[r];for(varoina)U.call(a,o)&&(n[o]=i(n[o],a[o]))}returnn}),k=P.DOM,M=function(e){returne.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?A(e.style.marginLeft):""},D=function(e){returne.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?A(e.style.marginTop):""},z=function(e){returne.st
!function(u){"use strict";vare,n,t,r,o,i,a,s,c,f=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),l=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),m=tinymce.util.Tools.resolve("tinymce.util.VK"),p=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),h=function(e){returne&&"BR"===e.nodeName},y=function(e){returne&&3===e.nodeType},N=function(e){returne&&/^(OL|UL|DL)$/.test(e.nodeName)},S=function(e){returne&&/^(OL|UL)$/.test(e.nodeName)},C=function(e){returne&&/^(DT|DD)$/.test(e.nodeName)},O=function(e){returne&&/^(LI|DT|DD)$/.test(e.nodeName)},b=function(e){returne&&/^(TH|TD)$/.test(e.nodeName)},T=h,E=function(e,n){returnn&&!!e.schema.getTextBlockElements()[n.nodeName]},L=function(e,n){returne&&e.nodeNameinn},D=function(e,n){return!!h(n)&&!(!e.isBlock(n.nextSibling)||h(n.previousSibling))},w=function(e,n,t){varr=e.isEmpty(n);return!(t&&0<e.select("span[data-mce-type=bookmark]",n).length)&&r},k=function(e,n){returne.isChildOf(n,e.getRoot())},A=function(e,n){if(y(e))return{container:e,offset:n};vart=d.getNode(e,n);returny(t)?{container:t,offset:n>=e.childNodes.length?t.data.length:0}:t.previousSibling&&y(t.previousSibling)?{container:t.previousSibling,offset:t.previousSibling.data.length}:t.nextSibling&&y(t.nextSibling)?{container:t.nextSibling,offset:0}:{container:e,offset:n}},x=function(e){varn=e.cloneRange(),t=A(e.startContainer,e.startOffset);n.setStart(t.container,t.offset);varr=A(e.endContainer,e.endOffset);returnn.setEnd(r.container,r.offset),n},R=g.DOM,I=function(o){vari={},e=function(e){varn,t,r;t=o[e?"startContainer":"endContainer"],r=o[e?"startOffset":"endOffset"],1===t.nodeType&&(n=R.create("span",{"data-mce-type":"bookmark"}),t.hasChildNodes()?(r=Math.min(r,t.childNodes.length-1),e?t.insertBefore(n,t.childNodes[r]):R.insertAfter(n,t.childNodes[r])):t.appendChild(n),t=n,r=0),i[e?"startContainer":"endContainer"]=t,i[e?"startOffset":"endOffset"]=r};returne(!0),o.collapsed||e(),i},_=function(o){functione(e){varn,t,r;n=r=o[e?"startContainer":"endContainer"],t=o[e?"startOffset":"endOffset"],n&&(1===n.nodeType&&(t=function(e){for(varn=e.parentNode.firstChild,t=0;n;){if(n===e)returnt;1===n.nodeType&&"bookmark"===n.getAttribute("data-mce-type")||t++,n=n.nextSibling}return-1}(n),n=n.parentNode,R.remove(r),!n.hasChildNodes()&&R.isBlock(n)&&n.appendChild(R.create("br"))),o[e?"startContainer":"endContainer"]=n,o[e?"startOffset":"endOffset"]=t)}e(!0),e();varn=R.createRng();returnn.setStart(o.startContainer,o.startOffset),o.endContainer&&n.setEnd(o.endContainer,o.endOffset),x(n)},B=function(e){returnfunction(){returne}},P=function(t){returnfunction(){for(vare=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},M=B(!1),U=B(!0),F=M,j=U,H=function(){return$},$=(r={fold:function(e,n){returne()},is:F,isSome:F,isNone:j,getOr:t=function(e){returne},getOrThunk:n=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:t,orThunk:n,map:H,ap:H,each:function(){},bind:H,flatten:H,exists:F,forall:j,filter:H,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:B("none()")},Object.freeze&&Object.freeze(r),r),q=function(t){vare=function(){returnt},n=function(){returno},r=function(e){returne(t)},o={fold:function(e,n){returnn(t)},is:function(e){returnt===e},isSome:j,isNone:F,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){returnq(e(t))},ap:function(e){returne.fold(H,function(e){returnq(e(t))})},each:function(e){e(t)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(t)?o:$},equals:function(e){returne.is(t)},equals_:function(e,n){returne.fold(F,function(e){returnn(t,e)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};returno},W={some:q,none:H,from:function(e){returnnul
!function(h){"use strict";varp=function(t){vare=t,n=function(){returne};return{get:n,set:function(t){e=t},clone:function(){returnp(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(t){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(t.settings.plugins)||!e.get("powerpaste")||("undefined"!=typeofh.window.console&&h.window.console.log&&h.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),0))},u=function(t,e){return{clipboard:t,quirks:e}},f=function(t,e,n,r){returnt.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},d=function(t,e,n,r){returnt.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},s=function(t,e){returnt.fire("PastePlainTextToggle",{state:e})},n=function(t,e){returnt.fire("paste",{ieFake:e})},m={shouldPlainTextInform:function(t){returnt.getParam("paste_plaintext_inform",!0)},shouldBlockDrop:function(t){returnt.getParam("paste_block_drop",!1)},shouldPasteDataImages:function(t){returnt.getParam("paste_data_images",!1)},shouldFilterDrop:function(t){returnt.getParam("paste_filter_drop",!0)},getPreProcess:function(t){returnt.getParam("paste_preprocess")},getPostProcess:function(t){returnt.getParam("paste_postprocess")},getWebkitStyles:function(t){returnt.getParam("paste_webkit_styles")},shouldRemoveWebKitStyles:function(t){returnt.getParam("paste_remove_styles_if_webkit",!0)},shouldMergeFormats:function(t){returnt.getParam("paste_merge_formats",!0)},isSmartPasteEnabled:function(t){returnt.getParam("smart_paste",!0)},isPasteAsTextEnabled:function(t){returnt.getParam("paste_as_text",!1)},getRetainStyleProps:function(t){returnt.getParam("paste_retain_style_properties")},getWordValidElements:function(t){returnt.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")},shouldConvertWordFakeLists:function(t){returnt.getParam("paste_convert_word_fake_lists",!0)},shouldUseDefaultFilters:function(t){returnt.getParam("paste_enable_default_filters",!0)}},r=function(t,e,n){varr,o,i;"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),s(t,!1)):(e.pasteFormat.set("text"),s(t,!0),i=t,!1===n.get()&&m.shouldPlainTextInform(i)&&(o="Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.",(r=t).notificationManager.open({text:r.translate(o),type:"info"}),n.set(!0))),t.focus()},c=function(t,n,e){t.addCommand("mceTogglePlainTextPaste",function(){r(t,n,e)}),t.addCommand("mceInsertClipboardContent",function(t,e){e.content&&n.pasteHtml(e.content,e.internal),e.text&&n.pasteText(e.text)})},g=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.util.Delay"),y=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=tinymce.util.Tools.resolve("tinymce.util.VK"),t="x-tinymce/html",i="\x3c!-- "+t+" --\x3e",l=function(t){returni+t},b=function(t){returnt.replace(i,"")},w=function(t){return-1!==t.indexOf(i)},x=function(){returnt},_=tinymce.util.Tools.resolve("tinymce.html.Entities"),P=function(t){returnt.replace(/\r?\n/g,"<br>")},T=function(t,e,n){varr=t.split(/\n\n/),o=function(t,e){varn,r=[],o="<"+t;if("object"==typeofe){for(nine)e.hasOwnProperty(n)&&r.push(n+'="'+_.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}returno+">"}(e,n),i="</"+e+">",a=y.map(r,function(t){returnt.split(/\n/).join("<br />")});return1===a.length?a[0]:y.map(a,function(t){returno+t+i}).join("")},D=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},C=function(t,e,n){returne?T(t,e,n):P(t)},k=tinymce.util.Tools.resolve("tinymce.html.DomParser"),F=tinymce.util.Tools.resolve("tinymce.html.Node"),E=tinymce.util.Tools.resolve("tinymce.html.Schema"),I=tinymce.util.Tools.resolve("tinymce.html.Serializer");functionR(e,t){returny.each(t,function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])}),e}va
tinymce.WPWindowManager=tinymce.InlineWindowManager=function(a){returnthis.wp?this:(this.wp={},this.parent=a.windowManager,this.editor=a,tinymce.extend(this,this.parent),this.open=function(b,c){vard,e=this,f=this.wp;if(!b.wpDialog)returnthis.parent.open.apply(this,arguments);if(b.id){if("undefined"==typeofjQuery||!jQuery.wp||!jQuery.wp.wpdialog)returnvoid(window.console&&window.console.error&&window.console.error('wpdialog.js is not loaded. Please set "wpdialogs" as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the "wp-jquery-ui-dialog" stylesheet.'));f.$element=d=jQuery("#"+b.id),d.length&&(window.console&&window.console.log&&window.console.log("tinymce.WPWindowManager is deprecated. Use the default editor.windowManager to open dialogs with inline HTML."),f.features=b,f.params=c,a.nodeChanged(),d.data("wpdialog")||d.wpdialog({title:b.title,width:b.width,height:b.height,modal:!0,dialogClass:"wp-dialog",zIndex:3e5}),d.wpdialog("open"),d.on("wpdialogclose",function(){e.wp.$element&&(e.wp={})}))}},void(this.close=function(){returnthis.wp.features&&this.wp.features.wpDialog?voidthis.wp.$element.wpdialog("close"):this.parent.close.apply(this,arguments)}))},tinymce.PluginManager.add("wpdialogs",function(a){a.on("init",function(){a.windowManager=newtinymce.WPWindowManager(a)})});
!function(a){a.PluginManager.add("wpemoji",function(b){functionc(a){a.className="emoji",a.setAttribute("data-mce-resize","false"),a.setAttribute("data-mce-placeholder","1"),a.setAttribute("data-wp-emoji","1")}functiond(a){varb={"data-mce-resize":"false","data-mce-placeholder":"1","data-wp-emoji":"1"};g.emoji.parse(a,{imgAttr:b})}functione(a){varc,e;a&&window.twemoji&&window.twemoji.test(a.textContent||a.innerText)&&(i.webkit&&(c=b.selection,e=c.getBookmark()),d(a),i.webkit&&c.moveToBookmark(e))}varf,g=window.wp,h=window._wpemojiSettings,i=a.Env,j=window.navigator.userAgent,k=j.indexOf("Windows")>-1,l=function(){vara=j.match(/Windows NT 6\.(\d)/);return!!(a&&a[1]>1)}();g&&g.emoji&&!h.supports.everything&&(l?b.on("keyup",function(a){231===a.keyCode&&e(b.selection.getNode())}):k||(b.on("keydown keyup",function(a){f="keydown"===a.type}),b.on("input",function(){f||e(b.selection.getNode())})),b.on("setcontent",function(a){varc=b.selection,e=c.getNode();window.twemoji&&window.twemoji.test(e.textContent||e.innerText)&&(d(e),i.ie&&i.ie<9&&a.load&&e&&"BODY"===e.nodeName&&c.collapse(!0))}),b.on("PastePostProcess",function(d){window.twemoji&&a.each(b.dom.$("img.emoji",d.node),function(a){a.alt&&window.twemoji.test(a.alt)&&c(a)})}),b.on("postprocess",function(a){a.content&&(a.content=a.content.replace(/<img[^>]+data-wp-emoji="[^>]+>/g,function(a){varb=a.match(/alt="([^"]+)"/);returnb&&b[1]?b[1]:a}))}),b.on("resolvename",function(a){"IMG"===a.target.nodeName&&b.dom.getAttrib(a.target,"data-wp-emoji")&&a.preventDefault()}))})}(window.tinymce);
!function(a){a.ui.Factory.add("WPLinkPreview",a.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(b){varc,d;this.url!==b&&(this.url=b,b=window.decodeURIComponent(b),b=b.replace(/^(?:https?:)?\/\/(?:www\.)?/,""),(c=b.indexOf("?"))!==-1&&(b=b.slice(0,c)),(c=b.indexOf("#"))!==-1&&(b=b.slice(0,c)),b=b.replace(/(?:index)?\.html$/,""),"/"===b.charAt(b.length-1)&&(b=b.slice(0,-1)),""===b&&(b=this.url),b.length>40&&(c=b.indexOf("/"))!==-1&&(d=b.lastIndexOf("/"))!==-1&&d!==c&&(c+b.length-d<40&&(d=-(40-(c+1))),b=b.slice(0,c+1)+"\u2026"+b.slice(d)),a.$(this.getEl().firstChild).attr("href",this.url).text(b))}})),a.ui.Factory.add("WPLinkInput",a.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><input type="text" value="" placeholder="'+a.translate("Paste URL or type to search")+'" /><input type="text" style="display:none" value="" /></div>'},setURL:function(a){this.getEl().firstChild.value=a},getURL:function(){returna.trim(this.getEl().firstChild.value)},getLinkText:function(){varb=this.getEl().firstChild.nextSibling.value;returna.trim(b)?b.replace(/[\r\n\t ]+/g," "):""},reset:function(){vara=this.getEl().firstChild;a.value="",a.nextSibling.value=""}})),a.PluginManager.add("wplink",function(b){functionc(){vara,c,d=b.selection.getStart(),e=b.dom.getParent(d,"a[href]");returne||(c=b.selection.getContent({format:"raw"}),c&&c.indexOf("</a>")!==-1&&(a=c.match(/href="([^">]+)"/),a&&a[1]&&(e=b.$('a[href="'+a[1]+'"]',d)[0]),e&&b.selection.select(e))),e}functiond(){b.$("a").each(function(a,c){vard=b.$(c);"_wp_link_placeholder"===d.attr("href")?b.dom.remove(c,!0):d.attr("data-wplink-edit")&&d.attr("data-wplink-edit",null)})}functione(a,b){returna.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(a,c,d){returnc.indexOf(' href="_wp_link_placeholder"')>-1?d:(b&&(c=c.replace(/ data-wplink-edit="true"/g,"")),c=c.replace(/ data-wplink-url-error="true"/g,""),c+d+"</a>")})}functionf(a){varc=b.$(a),d=c.attr("href");d&&"undefined"!=typeofn&&(s=!1,!/^http/i.test(d)||p.test(d)&&q.test(d)?c.removeAttr("data-wplink-url-error"):(s=!0,c.attr("data-wplink-url-error","true"),r(b.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}varg,h,i,j,k,l,m,n=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,p=/^https?:\/\/([^\s\/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,q=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,r="undefined"!=typeofwindow.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},s=!1;returnb.on("preinit",function(){if(b.wp&&b.wp._createToolbar){g=b.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0);vara=["wp_link_input","wp_link_apply"];"undefined"!=typeofwindow.wpLink&&a.push("wp_link_advanced"),h=b.wp._createToolbar(a,!0),h.on("show",function(){"undefined"!=typeofwindow.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){vara=h.$el.find("input.ui-autocomplete-input")[0],b=k&&(k.textContent||k.innerText);a&&(!a.value&&b&&"undefined"!=typeofwindow.wpLink&&(a.value=window.wpLink.getUrlFromSelection(b)),l||(a.focus(),a.select()))})}),h.on("hide",function(){h.scrolling||b.execCommand("wp_link_cancel")})}}),b.addCommand("WP_Link",function(){returna.Env.ie&&a.Env.ie<10&&"undefined"!=typeofwindow.wpLink?voidwindow.wpLink.open(b.id):(k=c(),h.tempHide=!1,k||(d(),b.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),k=b.$('a[href="_wp_link_placeholder"]')[0],b.nodeChanged()),voidb.dom.setAttribs(k,{"data-wplink-edit":!0}))}),b.addCommand("wp_link_apply",function(){if(!h.scrolling){varc,d;if(k){c=j.getURL(),d=j.getLinkText(),b.focus();vare=document.createElement("a");if(e.href=c,"javascript:"!==e.protocol&&"data:"!==e.protocol||(c=""),!c)returnvoidb.dom.remove(k,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(c)||o.test(c)||(c="http://"+c),b.dom.setAttribs(k,{href:c,"data-wplink-edit":null}),a.trim(k.innerHTML)||b.$(k)