amis2/gh-pages/pkg/rich-text_9f5420a.js
2020-01-20 19:36:43 +08:00

80 lines
614 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.

;/*!node_modules/jquery/dist/jquery.js*/
define("node_modules/jquery/dist/jquery",function(e,t,n){!function(e,t){"use strict";"object"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){n=n||ut;var r,i,o=n.createElement("script");if(o.text=e,t)for(r in Tt)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function r(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ht[gt.call(e)]||"object":typeof e}function i(e){var t=!!e&&"length"in e&&e.length,n=r(e);return bt(e)||wt(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t,n){return bt(t)?Et.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?Et.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Et.grep(e,function(e){return dt.call(t,e)>-1!==n}):Et.filter(t,e,n)}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return Et.each(e.match(Rt)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function c(e){throw e}function f(e,t,n,r){var i;try{e&&bt(i=e.promise)?i.call(e).done(t).fail(n):e&&bt(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function p(){ut.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),Et.ready()}function d(e,t){return t.toUpperCase()}function h(e){return e.replace($t,"ms-").replace(Ft,d)}function g(){this.expando=Et.expando+g.uid++}function m(e){return"true"===e?!0:"false"===e?!1:"null"===e?null:e===+e+""?+e:Ut.test(e)?JSON.parse(e):e}function v(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Xt,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=m(n)}catch(i){}zt.set(e,t,n)}else n=void 0;return n}function y(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Et.css(e,t,"")},u=s(),l=n&&n[3]||(Et.cssNumber[t]?"":"px"),c=e.nodeType&&(Et.cssNumber[t]||"px"!==l&&+u)&&Gt.exec(Et.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)Et.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c=2*c,Et.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function x(e){var t,n=e.ownerDocument,r=e.nodeName,i=tn[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=Et.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),tn[r]=i,i)}function b(e,t){for(var n,r,i=[],o=0,a=e.length;a>o;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=_t.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Zt(r)&&(i[o]=x(r))):"none"!==n&&(i[o]="none",_t.set(r,"display",n)));for(o=0;a>o;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function w(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&o(e,t)?Et.merge([e],n):n}function T(e,t){for(var n=0,r=e.length;r>n;n++)_t.set(e[n],"globalEval",!t||_t.get(t[n],"globalEval"))}function C(e,t,n,i,o){for(var a,s,u,l,c,f,p=t.createDocumentFragment(),d=[],h=0,g=e.length;g>h;h++)if(a=e[h],a||0===a)if("object"===r(a))Et.merge(d,a.nodeType?[a]:a);else if(sn.test(a)){for(s=s||p.appendChild(t.createElement("div")),u=(rn.exec(a)||["",""])[1].toLowerCase(),l=an[u]||an._default,s.innerHTML=l[1]+Et.htmlPrefilter(a)+l[2],f=l[0];f--;)s=s.lastChild;Et.merge(d,s.childNodes),s=p.firstChild,s.textContent=""}else d.push(t.createTextNode(a));for(p.textContent="",h=0;a=d[h++];)if(i&&Et.inArray(a,i)>-1)o&&o.push(a);else if(c=Jt(a),s=w(p.appendChild(a),"script"),c&&T(s),n)for(f=0;a=s[f++];)on.test(a.type||"")&&n.push(a);return p}function E(){return!0}function k(){return!1}function S(e,t){return e===N()==("focus"===t)}function N(){try{return ut.activeElement}catch(e){}}function A(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)A(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=k;else if(!i)return e;return 1===o&&(a=i,i=function(e){return Et().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=Et.guid++)),e.each(function(){Et.event.add(this,t,i,r,n)})}function D(e,t,n){return n?(_t.set(e,t,!1),void Et.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=_t.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(Et.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=ct.call(arguments),_t.set(this,t,o),r=n(this,t),this[t](),i=_t.get(this,t),o!==i||r?_t.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(_t.set(this,t,{value:Et.event.trigger(Et.extend(o[0],Et.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void(void 0===_t.get(e,t)&&Et.event.add(e,t,E))}function j(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")?Et(e).children("tbody")[0]||e:e}function q(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function L(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function H(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(_t.hasData(e)&&(o=_t.access(e),a=_t.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Et.event.add(t,i,l[i][n])}zt.hasData(e)&&(s=zt.access(e),u=Et.extend({},s),zt.set(t,u))}}function O(e,t){var n=t.nodeName.toLowerCase();"input"===n&&nn.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function P(e,t,r,i){t=ft.apply([],t);var o,a,s,u,l,c,f=0,p=e.length,d=p-1,h=t[0],g=bt(h);if(g||p>1&&"string"==typeof h&&!xt.checkClone&&dn.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),P(o,t,r,i)});if(p&&(o=C(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=Et.map(w(o,"script"),q),u=s.length;p>f;f++)l=o,f!==d&&(l=Et.clone(l,!0,!0),u&&Et.merge(s,w(l,"script"))),r.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,Et.map(s,L),f=0;u>f;f++)l=s[f],on.test(l.type||"")&&!_t.access(l,"globalEval")&&Et.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Et._evalUrl&&!l.noModule&&Et._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):n(l.textContent.replace(hn,""),l,c))}return e}function R(e,t,n){for(var r,i=t?Et.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||Et.cleanData(w(r)),r.parentNode&&(n&&Jt(r)&&T(w(r,"script")),r.parentNode.removeChild(r));return e}function M(e,t,n){var r,i,o,a,s=e.style;return n=n||mn(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||Jt(e)||(a=Et.style(e,t)),!xt.pixelBoxStyles()&&gn.test(a)&&vn.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function I(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function W(e){for(var t=e[0].toUpperCase()+e.slice(1),n=yn.length;n--;)if(e=yn[n]+t,e in xn)return e}function $(e){var t=Et.cssProps[e]||bn[e];return t?t:e in xn?e:bn[e]=W(e)||e}function F(e,t,n){var r=Gt.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function B(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;4>a;a+=2)"margin"===n&&(u+=Et.css(e,n+Yt[a],!0,i)),r?("content"===n&&(u-=Et.css(e,"padding"+Yt[a],!0,i)),"margin"!==n&&(u-=Et.css(e,"border"+Yt[a]+"Width",!0,i))):(u+=Et.css(e,"padding"+Yt[a],!0,i),"padding"!==n?u+=Et.css(e,"border"+Yt[a]+"Width",!0,i):s+=Et.css(e,"border"+Yt[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function _(e,t,n){var r=mn(e),i=!xt.boxSizingReliable()||n,o=i&&"border-box"===Et.css(e,"boxSizing",!1,r),a=o,s=M(e,t,r),u="offset"+t[0].toUpperCase()+t.slice(1);if(gn.test(s)){if(!n)return s;s="auto"}return(!xt.boxSizingReliable()&&o||"auto"===s||!parseFloat(s)&&"inline"===Et.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===Et.css(e,"boxSizing",!1,r),a=u in e,a&&(s=e[u])),s=parseFloat(s)||0,s+B(e,t,n||(o?"border":"content"),a,r,s)+"px"}function z(e,t,n,r,i){return new z.prototype.init(e,t,n,r,i)}function U(){Sn&&(ut.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(U):e.setTimeout(U,Et.fx.interval),Et.fx.tick())}function X(){return e.setTimeout(function(){kn=void 0}),kn=Date.now()}function V(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=Yt[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function G(e,t,n){for(var r,i=(J.tweeners[t]||[]).concat(J.tweeners["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function Y(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&Zt(e),m=_t.get(e,"fxshow");n.queue||(a=Et._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,Et.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(i=t[r],Nn.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||Et.style(e,r)}if(u=!Et.isEmptyObject(t),u||!Et.isEmptyObject(d)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],l=m&&m.display,null==l&&(l=_t.get(e,"display")),c=Et.css(e,"display"),"none"===c&&(l?c=l:(b([e],!0),l=e.style.display||l,c=Et.css(e,"display"),b([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Et.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in d)u||(m?"hidden"in m&&(g=m.hidden):m=_t.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&b([e],!0),p.done(function(){g||b([e]),_t.remove(e,"fxshow");for(r in d)Et.style(e,r,d[r])})),u=G(g?m[r]:0,r,p),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}function Q(e,t){var n,r,i,o,a;for(n in e)if(r=h(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=Et.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function J(e,t,n){var r,i,o=0,a=J.prefilters.length,s=Et.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=kn||X(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(u||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Et.extend({},t),opts:Et.extend(!0,{specialEasing:{},easing:Et.easing._default},n),originalProperties:t,originalOptions:n,startTime:kn||X(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Et.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(Q(c,l.opts.specialEasing);a>o;o++)if(r=J.prefilters[o].call(l,e,c,l.opts))return bt(r.stop)&&(Et._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return Et.map(c,G,l),bt(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Et.fx.timer(Et.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function K(e){var t=e.match(Rt)||[];return t.join(" ")}function Z(e){return e.getAttribute&&e.getAttribute("class")||""}function et(e){return Array.isArray(e)?e:"string"==typeof e?e.match(Rt)||[]:[]}function tt(e,t,n,i){var o;if(Array.isArray(t))Et.each(t,function(t,r){n||Wn.test(e)?i(e,r):tt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==r(t))i(e,t);else for(o in t)tt(e+"["+o+"]",t[o],n,i)}function nt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Rt)||[];if(bt(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function rt(e,t,n,r){function i(s){var u;return o[s]=!0,Et.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Jn;return i(t.dataTypes[0])||!o["*"]&&i("*")}function it(e,t){var n,r,i=Et.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Et.extend(!0,e,r),e}function ot(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function at(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var st=[],ut=e.document,lt=Object.getPrototypeOf,ct=st.slice,ft=st.concat,pt=st.push,dt=st.indexOf,ht={},gt=ht.toString,mt=ht.hasOwnProperty,vt=mt.toString,yt=vt.call(Object),xt={},bt=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},wt=function(e){return null!=e&&e===e.window},Tt={type:!0,src:!0,nonce:!0,noModule:!0},Ct="3.4.1",Et=function(e,t){return new Et.fn.init(e,t)},kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Et.fn=Et.prototype={jquery:Ct,constructor:Et,length:0,toArray:function(){return ct.call(this)},get:function(e){return null==e?ct.call(this):0>e?this[e+this.length]:this[e]},pushStack:function(e){var t=Et.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Et.each(this,e)},map:function(e){return this.pushStack(Et.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ct.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:pt,sort:st.sort,splice:st.splice},Et.extend=Et.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||bt(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(Et.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||Et.isPlainObject(n)?n:{},i=!1,a[t]=Et.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},Et.extend({expando:"jQuery"+(Ct+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return e&&"[object Object]"===gt.call(e)?(t=lt(e))?(n=mt.call(t,"constructor")&&t.constructor,"function"==typeof n&&vt.call(n)===yt):!0:!1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){n(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(i(e))for(n=e.length;n>r&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(kt,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?Et.merge(n,"string"==typeof e?[e]:e):pt.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:dt.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;a>o;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,o,a=0,s=[];if(i(e))for(r=e.length;r>a;a++)o=t(e[a],a,n),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,n),null!=o&&s.push(o);return ft.apply([],s)},guid:1,support:xt}),"function"==typeof Symbol&&(Et.fn[Symbol.iterator]=st[Symbol.iterator]),Et.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ht["[object "+t+"]"]=t.toLowerCase()});var St=function(e){function t(e,t,n,r){var i,o,a,s,u,l,c,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:F)!==H&&L(t),t=t||H,P)){if(11!==h&&(u=xt.exec(e)))if(i=u[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&W(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&T.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(!(!T.qsa||V[e+" "]||R&&R.test(e)||1===h&&"object"===t.nodeName.toLowerCase())){if(c=e,p=t,1===h&&ft.test(e)){for((s=t.getAttribute("id"))?s=s.replace(Ct,Et):t.setAttribute("id",s=$),l=S(e),o=l.length;o--;)l[o]="#"+s+" "+d(l[o]);c=l.join(","),p=bt.test(e)&&f(t.parentNode)||t}try{return Z.apply(n,p.querySelectorAll(c)),n}catch(g){V(e,!0)}finally{s===$&&t.removeAttribute("id")}}}return A(e.replace(ut,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[$]=!0,e}function i(e){var t=H.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&St(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function d(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function h(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=_++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[B,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(f=t[$]||(t[$]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===B&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;o>i;i++)t(e,n[i],r);return r}function v(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function y(e,t,n,i,o,a){return i&&!i[$]&&(i=y(i)),o&&!o[$]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:v(g,p,e,s,u),x=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,x,s,u),i)for(l=v(x,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(x[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(y[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?tt(r,f):p[c])>-1&&(r[l]=!(a[l]=f))}}else x=v(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Z.apply(a,x)})}function x(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,u=h(function(e){return e===t},a,!0),l=h(function(e){return tt(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==D)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];i>s;s++)if(n=C.relative[e[s].type])c=[h(g(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[$]){for(r=++s;i>r&&!C.relative[e[r].type];r++);return y(s>1&&g(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&x(e.slice(s,r)),i>r&&x(e=e.slice(r)),i>r&&d(e))}c.push(n)}return g(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,p,d=0,h="0",g=r&&[],m=[],y=D,x=r||o&&C.find.TAG("*",l),b=B+=null==y?1:Math.random()||.1,w=x.length;for(l&&(D=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!P);p=e[f++];)if(p(c,a||H,s)){u.push(c);break}l&&(B=b)}i&&((c=!p&&c)&&d--,r&&g.push(c))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];)p(g,m,a,s);if(r){if(d>0)for(;h--;)g[h]||m[h]||(m[h]=J.call(u));m=v(m)}Z.apply(u,m),l&&!r&&m.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(B=b,D=y),g};return i?r(a):a}var w,T,C,E,k,S,N,A,D,j,q,L,H,O,P,R,M,I,W,$="sizzle"+1*new Date,F=e.document,B=0,_=0,z=n(),U=n(),X=n(),V=n(),G=function(e,t){return e===t&&(q=!0),0},Y={}.hasOwnProperty,Q=[],J=Q.pop,K=Q.push,Z=Q.push,et=Q.slice,tt=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",rt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\x00-\\xa0])+",ot="\\["+rt+"*("+it+")(?:"+rt+"*([*^$|!~]?=)"+rt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+rt+"*\\]",at=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",st=new RegExp(rt+"+","g"),ut=new RegExp("^"+rt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+rt+"+$","g"),lt=new RegExp("^"+rt+"*,"+rt+"*"),ct=new RegExp("^"+rt+"*([>+~]|"+rt+")"+rt+"*"),ft=new RegExp(rt+"|>"),pt=new RegExp(at),dt=new RegExp("^"+it+"$"),ht={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+rt+"*(even|odd|(([+-]|)(\\d*)n|)"+rt+"*(?:([+-]|)"+rt+"*(\\d+)|))"+rt+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+rt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+rt+"*((?:-\\d)?\\d*)"+rt+"*\\)|)(?=[^-]|$)","i")},gt=/HTML$/i,mt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,yt=/^[^{]+\{\s*\[native \w/,xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=new RegExp("\\\\([\\da-f]{1,6}"+rt+"?|("+rt+")|.)","ig"),Tt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ct=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Et=function(e,t){return t?"\x00"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},kt=function(){L()},St=h(function(e){return e.disabled===!0&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Z.apply(Q=et.call(F.childNodes),F.childNodes),Q[F.childNodes.length].nodeType}catch(Nt){Z={apply:Q.length?function(e,t){K.apply(e,et.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}T=t.support={},k=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!gt.test(t||n&&n.nodeName||"HTML")},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,O=H.documentElement,P=!k(H),F!==H&&(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",kt,!1):n.attachEvent&&n.attachEvent("onunload",kt)),T.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),T.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),T.getElementsByClassName=yt.test(H.getElementsByClassName),T.getById=i(function(e){return O.appendChild(e).id=$,!H.getElementsByName||!H.getElementsByName($).length}),T.getById?(C.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),C.find.TAG=T.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):T.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=T.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&P?t.getElementsByClassName(e):void 0},M=[],R=[],(T.qsa=yt.test(H.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+$+"'></a><select id='"+$+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+rt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+rt+"*(?:value|"+nt+")"),e.querySelectorAll("[id~="+$+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||R.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+rt+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(T.matchesSelector=yt.test(I=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){T.disconnectedMatch=I.call(e,"*"),I.call(e,"[s!='']:x"),M.push("!=",at)}),R=R.length&&new RegExp(R.join("|")),M=M.length&&new RegExp(M.join("|")),t=yt.test(O.compareDocumentPosition),W=t||yt.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return q=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!T.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===F&&W(F,e)?-1:t===H||t.ownerDocument===F&&W(F,t)?1:j?tt(j,e)-tt(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return q=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:j?tt(j,e)-tt(j,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===F?-1:u[r]===F?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),!(!T.matchesSelector||!P||V[n+" "]||M&&M.test(n)||R&&R.test(n)))try{var r=I.call(e,n);if(r||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){V(n,!0)}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),W(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=C.attrHandle[t.toLowerCase()],r=n&&Y.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:T.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Ct,Et)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(q=!T.detectDuplicates,j=!T.sortStable&&e.slice(0),e.sort(G),q){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},E=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=E(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(wt,Tt),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,Tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pt.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(wt,Tt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+rt+")"+e+"("+rt+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(st," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,x=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=m,f=p[$]||(p[$]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d&&l[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[B,d,x];break}}else if(y&&(p=t,f=p[$]||(p[$]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d),x===!1)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&(f=p[$]||(p[$]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),c[e]=[B,x]),p!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[$]?o(n):o.length>1?(i=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=tt(e,i[a]),e[r]=!(t[r]=i[a])
}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=N(e.replace(ut,"$1"));return i[$]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(wt,Tt),function(t){return(t.textContent||E(t)).indexOf(e)>-1}}),lang:r(function(e){return dt.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(wt,Tt).toLowerCase(),function(t){var n;do if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return vt.test(e.nodeName)},input:function(e){return mt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=u(w);return p.prototype=C.filters=C.pseudos,C.setFilters=new p,S=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=U[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=C.preFilter;s;){(!r||(i=lt.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),s=s.slice(r.length));for(a in C.filter)!(i=ht[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):U(e,u).slice(0)},N=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=S(e)),n=t.length;n--;)o=x(t[n]),o[$]?r.push(o):i.push(o);o=X(e,b(i,r)),o.selector=e}return o},A=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&S(e=l.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&P&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ht.needsContext.test(e)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);)if((u=C.find[s])&&(r=u(a.matches[0].replace(wt,Tt),bt.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Z.apply(n,r),n;break}}return(l||N(e,c))(r,t,!P,n,!t||bt.test(e)&&f(t.parentNode)||t),n},T.sortStable=$.split("").sort(G).join("")===$,T.detectDuplicates=!!q,L(),T.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),T.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(nt,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Et.find=St,Et.expr=St.selectors,Et.expr[":"]=Et.expr.pseudos,Et.uniqueSort=Et.unique=St.uniqueSort,Et.text=St.getText,Et.isXMLDoc=St.isXML,Et.contains=St.contains,Et.escapeSelector=St.escape;var Nt=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Et(e).is(n))break;r.push(e)}return r},At=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Dt=Et.expr.match.needsContext,jt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Et.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Et.find.matchesSelector(r,e)?[r]:[]:Et.find.matches(e,Et.grep(t,function(e){return 1===e.nodeType}))},Et.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(Et(e).filter(function(){for(t=0;r>t;t++)if(Et.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;r>t;t++)Et.find(e,i[t],n);return r>1?Et.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&Dt.test(e)?Et(e):e||[],!1).length}});var qt,Lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ht=Et.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||qt,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Lt.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Et?t[0]:t,Et.merge(this,Et.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ut,!0)),jt.test(r[1])&&Et.isPlainObject(t))for(r in t)bt(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ut.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):bt(e)?void 0!==n.ready?n.ready(e):e(Et):Et.makeArray(e,this)};Ht.prototype=Et.fn,qt=Et(ut);var Ot=/^(?:parents|prev(?:Until|All))/,Pt={children:!0,contents:!0,next:!0,prev:!0};Et.fn.extend({has:function(e){var t=Et(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Et.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&Et(e);if(!Dt.test(e))for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Et.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Et.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?dt.call(Et(e),this[0]):dt.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Et.uniqueSort(Et.merge(this.get(),Et(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Et.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Nt(e,"parentNode")},parentsUntil:function(e,t,n){return Nt(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return Nt(e,"nextSibling")},prevAll:function(e){return Nt(e,"previousSibling")},nextUntil:function(e,t,n){return Nt(e,"nextSibling",n)},prevUntil:function(e,t,n){return Nt(e,"previousSibling",n)},siblings:function(e){return At((e.parentNode||{}).firstChild,e)},children:function(e){return At(e.firstChild)},contents:function(e){return"undefined"!=typeof e.contentDocument?e.contentDocument:(o(e,"template")&&(e=e.content||e),Et.merge([],e.childNodes))}},function(e,t){Et.fn[e]=function(n,r){var i=Et.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Et.filter(r,i)),this.length>1&&(Pt[e]||Et.uniqueSort(i),Ot.test(e)&&i.reverse()),this.pushStack(i)}});var Rt=/[^\x20\t\r\n\f]+/g;Et.Callbacks=function(e){e="string"==typeof e?u(e):Et.extend({},e);var t,n,i,o,a=[],s=[],l=-1,c=function(){for(o=o||e.once,i=t=!0;s.length;l=-1)for(n=s.shift();++l<a.length;)a[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},f={add:function(){return a&&(n&&!t&&(l=a.length-1,s.push(n)),function i(t){Et.each(t,function(t,n){bt(n)?e.unique&&f.has(n)||a.push(n):n&&n.length&&"string"!==r(n)&&i(n)})}(arguments),n&&!t&&c()),this},remove:function(){return Et.each(arguments,function(e,t){for(var n;(n=Et.inArray(t,a,n))>-1;)a.splice(n,1),l>=n&&l--}),this},has:function(e){return e?Et.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},Et.extend({Deferred:function(t){var n=[["notify","progress",Et.Callbacks("memory"),Et.Callbacks("memory"),2],["resolve","done",Et.Callbacks("once memory"),Et.Callbacks("once memory"),0,"resolved"],["reject","fail",Et.Callbacks("once memory"),Et.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return Et.Deferred(function(t){Et.each(n,function(n,r){var i=bt(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&bt(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,u=arguments,f=function(){var e,f;if(!(a>t)){if(e=r.apply(s,u),e===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,bt(f)?i?f.call(e,o(a,n,l,i),o(a,n,c,i)):(a++,f.call(e,o(a,n,l,i),o(a,n,c,i),o(a,n,l,n.notifyWith))):(r!==l&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},p=i?f:function(){try{f()}catch(e){Et.Deferred.exceptionHook&&Et.Deferred.exceptionHook(e,p.stackTrace),t+1>=a&&(r!==c&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?p():(Et.Deferred.getStackHook&&(p.stackTrace=Et.Deferred.getStackHook()),e.setTimeout(p))}}var a=0;return Et.Deferred(function(e){n[0][3].add(o(0,e,bt(i)?i:l,e.notifyWith)),n[1][3].add(o(0,e,bt(t)?t:l)),n[2][3].add(o(0,e,bt(r)?r:c))}).promise()},promise:function(e){return null!=e?Et.extend(e,i):i}},o={};return Et.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ct.call(arguments),o=Et.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ct.call(arguments):n,--t||o.resolveWith(r,i)}};if(1>=t&&(f(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||bt(i[n]&&i[n].then)))return o.then();for(;n--;)f(i[n],a(n),o.reject);return o.promise()}});var Mt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Et.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Mt.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Et.readyException=function(t){e.setTimeout(function(){throw t})};var It=Et.Deferred();Et.fn.ready=function(e){return It.then(e).catch(function(e){Et.readyException(e)}),this},Et.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--Et.readyWait:Et.isReady)||(Et.isReady=!0,e!==!0&&--Et.readyWait>0||It.resolveWith(ut,[Et]))}}),Et.ready.then=It.then,"complete"===ut.readyState||"loading"!==ut.readyState&&!ut.documentElement.doScroll?e.setTimeout(Et.ready):(ut.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var Wt=function(e,t,n,i,o,a,s){var u=0,l=e.length,c=null==n;if("object"===r(n)){o=!0;for(u in n)Wt(e,t,u,n[u],!0,a,s)}else if(void 0!==i&&(o=!0,bt(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(Et(e),n)})),t))for(;l>u;u++)t(e[u],n,s?i:i.call(e[u],u,t(e[u],n)));return o?e:c?t.call(e):l?t(e[0],n):a},$t=/^-ms-/,Ft=/-([a-z])/g,Bt=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};g.uid=1,g.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Bt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[h(t)]=n;else for(r in t)i[h(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][h(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(h):(t=h(t),t=t in r?[t]:t.match(Rt)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||Et.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!Et.isEmptyObject(t)}};var _t=new g,zt=new g,Ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Xt=/[A-Z]/g;Et.extend({hasData:function(e){return zt.hasData(e)||_t.hasData(e)},data:function(e,t,n){return zt.access(e,t,n)},removeData:function(e,t){zt.remove(e,t)},_data:function(e,t,n){return _t.access(e,t,n)},_removeData:function(e,t){_t.remove(e,t)}}),Et.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=zt.get(o),1===o.nodeType&&!_t.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=h(r.slice(5)),v(o,r,i[r])));_t.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){zt.set(this,e)}):Wt(this,function(t){var n;if(o&&void 0===t){if(n=zt.get(o,e),void 0!==n)return n;if(n=v(o,e),void 0!==n)return n}else this.each(function(){zt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){zt.remove(this,e)})}}),Et.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=_t.get(e,t),n&&(!r||Array.isArray(n)?r=_t.access(e,t,Et.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Et.queue(e,t),r=n.length,i=n.shift(),o=Et._queueHooks(e,t),a=function(){Et.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _t.get(e,n)||_t.access(e,n,{empty:Et.Callbacks("once memory").add(function(){_t.remove(e,[t+"queue",n])})})}}),Et.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Et.queue(this[0],e):void 0===t?this:this.each(function(){var n=Et.queue(this,e,t);Et._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Et.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Et.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Et.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=_t.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Vt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Gt=new RegExp("^(?:([+-])=|)("+Vt+")([a-z%]*)$","i"),Yt=["Top","Right","Bottom","Left"],Qt=ut.documentElement,Jt=function(e){return Et.contains(e.ownerDocument,e)},Kt={composed:!0};Qt.getRootNode&&(Jt=function(e){return Et.contains(e.ownerDocument,e)||e.getRootNode(Kt)===e.ownerDocument});var Zt=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&Jt(e)&&"none"===Et.css(e,"display")},en=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},tn={};Et.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Zt(this)?Et(this).show():Et(this).hide()})}});var nn=/^(?:checkbox|radio)$/i,rn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,on=/^$|^module$|\/(?:java|ecma)script/i,an={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};an.optgroup=an.option,an.tbody=an.tfoot=an.colgroup=an.caption=an.thead,an.th=an.td;var sn=/<|&#?\w+;/;!function(){var e=ut.createDocumentFragment(),t=e.appendChild(ut.createElement("div")),n=ut.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),xt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",xt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var un=/^key/,ln=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cn=/^([^.]*)(?:\.(.+)|)/;Et.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=_t.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&Et.find.matchesSelector(Qt,i),n.guid||(n.guid=Et.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return"undefined"!=typeof Et&&Et.event.triggered!==t.type?Et.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Rt)||[""],l=t.length;l--;)s=cn.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d&&(f=Et.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=Et.event.special[d]||{},c=Et.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Et.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),Et.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=_t.hasData(e)&&_t.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Rt)||[""],l=t.length;l--;)if(s=cn.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){for(f=Et.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||Et.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)Et.event.remove(e,d+t[l],n,r,!0);Et.isEmptyObject(u)&&_t.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=Et.event.fix(e),u=new Array(arguments.length),l=(_t.get(this,"events")||{})[s.type]||[],c=Et.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,s)!==!1){for(a=Et.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)(!s.rnamespace||o.namespace===!1||s.rnamespace.test(o.namespace))&&(s.handleObj=o,s.data=o.data,r=((Et.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(s.result=r)===!1&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||l.disabled!==!0)){for(o=[],a={},n=0;u>n;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?Et(i,this).index(l)>-1:Et.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(Et.Event.prototype,e,{enumerable:!0,configurable:!0,get:bt(t)?function(){return this.originalEvent?t(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[e]:void 0},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Et.expando]?e:new Et.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return nn.test(t.type)&&t.click&&o(t,"input")&&D(t,"click",E),!1},trigger:function(e){var t=this||e;return nn.test(t.type)&&t.click&&o(t,"input")&&D(t,"click"),!0},_default:function(e){var t=e.target;return nn.test(t.type)&&t.click&&o(t,"input")&&_t.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Et.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Et.Event=function(e,t){return this instanceof Et.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?E:k,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Et.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),void(this[Et.expando]=!0)):new Et.Event(e,t)},Et.Event.prototype={constructor:Et.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=E,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=E,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=E,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Et.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&un.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ln.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},Et.event.addProp),Et.each({focus:"focusin",blur:"focusout"},function(e,t){Et.event.special[e]={setup:function(){return D(this,e,S),!1},trigger:function(){return D(this,e),!0},delegateType:t}}),Et.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Et.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!Et.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Et.fn.extend({on:function(e,t,n,r){return A(this,e,t,n,r)},one:function(e,t,n,r){return A(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Et(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=k),this.each(function(){Et.event.remove(this,e,n,t)})}});var fn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,pn=/<script|<style|<link/i,dn=/checked\s*(?:[^=]|=\s*.checked.)/i,hn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;Et.extend({htmlPrefilter:function(e){return e.replace(fn,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=Jt(e);if(!(xt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Et.isXMLDoc(e)))for(a=w(s),o=w(e),r=0,i=o.length;i>r;r++)O(o[r],a[r]);if(t)if(n)for(o=o||w(e),a=a||w(s),r=0,i=o.length;i>r;r++)H(o[r],a[r]);else H(e,s);return a=w(s,"script"),a.length>0&&T(a,!u&&w(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Et.event.special,o=0;void 0!==(n=e[o]);o++)if(Bt(n)){if(t=n[_t.expando]){if(t.events)for(r in t.events)i[r]?Et.event.remove(n,r):Et.removeEvent(n,r,t.handle);n[_t.expando]=void 0}n[zt.expando]&&(n[zt.expando]=void 0)}}}),Et.fn.extend({detach:function(e){return R(this,e,!0)},remove:function(e){return R(this,e)},text:function(e){return Wt(this,function(e){return void 0===e?Et.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=j(this,e);t.appendChild(e)}})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=j(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Et.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Et.clone(this,e,t)})},html:function(e){return Wt(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!pn.test(e)&&!an[(rn.exec(e)||["",""])[1].toLowerCase()]){e=Et.htmlPrefilter(e);try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(Et.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return P(this,arguments,function(t){var n=this.parentNode;Et.inArray(this,e)<0&&(Et.cleanData(w(this)),n&&n.replaceChild(t,this))},e)}}),Et.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Et.fn[e]=function(e){for(var n,r=[],i=Et(e),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),Et(i[a])[t](n),pt.apply(r,n.get());return this.pushStack(r)}});var gn=new RegExp("^("+Vt+")(?!px)[a-z%]+$","i"),mn=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},vn=new RegExp(Yt.join("|"),"i");!function(){function t(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Qt.appendChild(u).appendChild(l);var t=e.getComputedStyle(l);r="1%"!==t.top,s=12===n(t.marginLeft),l.style.right="60%",a=36===n(t.right),i=36===n(t.width),l.style.position="absolute",o=12===n(l.offsetWidth/3),Qt.removeChild(u),l=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u=ut.createElement("div"),l=ut.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",xt.clearCloneStyle="content-box"===l.style.backgroundClip,Et.extend(xt,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),o}}))}();var yn=["Webkit","Moz","ms"],xn=ut.createElement("div").style,bn={},wn=/^(none|table(?!-c[ea]).+)/,Tn=/^--/,Cn={position:"absolute",visibility:"hidden",display:"block"},En={letterSpacing:"0",fontWeight:"400"};Et.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=M(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h(t),u=Tn.test(t),l=e.style;return u||(t=$(s)),a=Et.cssHooks[t]||Et.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t]:(o=typeof n,"string"===o&&(i=Gt.exec(n))&&i[1]&&(n=y(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(Et.cssNumber[s]?"":"px")),xt.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=h(t),u=Tn.test(t);return u||(t=$(s)),a=Et.cssHooks[t]||Et.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=M(e,t,r)),"normal"===i&&t in En&&(i=En[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),Et.each(["height","width"],function(e,t){Et.cssHooks[t]={get:function(e,n,r){return n?!wn.test(Et.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?_(e,t,r):en(e,Cn,function(){return _(e,t,r)}):void 0},set:function(e,n,r){var i,o=mn(e),a=!xt.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===Et.css(e,"boxSizing",!1,o),l=r?B(e,t,r,u,o):0;return u&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-B(e,t,"border",!1,o)-.5)),l&&(i=Gt.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=Et.css(e,t)),F(e,n,l)}}}),Et.cssHooks.marginLeft=I(xt.reliableMarginLeft,function(e,t){return t?(parseFloat(M(e,"marginLeft"))||e.getBoundingClientRect().left-en(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),Et.each({margin:"",padding:"",border:"Width"},function(e,t){Et.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Yt[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(Et.cssHooks[e+t].set=F)}),Et.fn.extend({css:function(e,t){return Wt(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=mn(e),i=t.length;i>a;a++)o[t[a]]=Et.css(e,t[a],!1,r);return o}return void 0!==n?Et.style(e,t,n):Et.css(e,t)},e,t,arguments.length>1)}}),Et.Tween=z,z.prototype={constructor:z,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||Et.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Et.cssNumber[n]?"":"px")},cur:function(){var e=z.propHooks[this.prop];return e&&e.get?e.get(this):z.propHooks._default.get(this)},run:function(e){var t,n=z.propHooks[this.prop];return this.pos=t=this.options.duration?Et.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Et.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){Et.fx.step[e.prop]?Et.fx.step[e.prop](e):1!==e.elem.nodeType||!Et.cssHooks[e.prop]&&null==e.elem.style[$(e.prop)]?e.elem[e.prop]=e.now:Et.style(e.elem,e.prop,e.now+e.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Et.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Et.fx=z.prototype.init,Et.fx.step={};var kn,Sn,Nn=/^(?:toggle|show|hide)$/,An=/queueHooks$/;Et.Animation=Et.extend(J,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,Gt.exec(t),n),n}]},tweener:function(e,t){bt(e)?(t=e,e=["*"]):e=e.match(Rt);
for(var n,r=0,i=e.length;i>r;r++)n=e[r],J.tweeners[n]=J.tweeners[n]||[],J.tweeners[n].unshift(t)},prefilters:[Y],prefilter:function(e,t){t?J.prefilters.unshift(e):J.prefilters.push(e)}}),Et.speed=function(e,t,n){var r=e&&"object"==typeof e?Et.extend({},e):{complete:n||!n&&t||bt(e)&&e,duration:e,easing:n&&t||t&&!bt(t)&&t};return Et.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in Et.fx.speeds?Et.fx.speeds[r.duration]:Et.fx.speeds._default),(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){bt(r.old)&&r.old.call(this),r.queue&&Et.dequeue(this,r.queue)},r},Et.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Zt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Et.isEmptyObject(e),o=Et.speed(t,n,r),a=function(){var t=J(this,Et.extend({},e),o);(i||_t.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=Et.timers,a=_t.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&An.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&Et.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=_t.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=Et.timers,a=r?r.length:0;for(n.finish=!0,Et.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),Et.each(["toggle","show","hide"],function(e,t){var n=Et.fn[t];Et.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(V(t,!0),e,r,i)}}),Et.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Et.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Et.timers=[],Et.fx.tick=function(){var e,t=0,n=Et.timers;for(kn=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Et.fx.stop(),kn=void 0},Et.fx.timer=function(e){Et.timers.push(e),Et.fx.start()},Et.fx.interval=13,Et.fx.start=function(){Sn||(Sn=!0,U())},Et.fx.stop=function(){Sn=null},Et.fx.speeds={slow:600,fast:200,_default:400},Et.fn.delay=function(t,n){return t=Et.fx?Et.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ut.createElement("input"),t=ut.createElement("select"),n=t.appendChild(ut.createElement("option"));e.type="checkbox",xt.checkOn=""!==e.value,xt.optSelected=n.selected,e=ut.createElement("input"),e.value="t",e.type="radio",xt.radioValue="t"===e.value}();var Dn,jn=Et.expr.attrHandle;Et.fn.extend({attr:function(e,t){return Wt(this,Et.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Et.removeAttr(this,e)})}}),Et.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?Et.prop(e,t,n):(1===o&&Et.isXMLDoc(e)||(i=Et.attrHooks[t.toLowerCase()]||(Et.expr.match.bool.test(t)?Dn:void 0)),void 0!==n?null===n?void Et.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=Et.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!xt.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Rt);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Dn={set:function(e,t,n){return t===!1?Et.removeAttr(e,n):e.setAttribute(n,n),n}},Et.each(Et.expr.match.bool.source.match(/\w+/g),function(e,t){var n=jn[t]||Et.find.attr;jn[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=jn[a],jn[a]=i,i=null!=n(e,t,r)?a:null,jn[a]=o),i}});var qn=/^(?:input|select|textarea|button)$/i,Ln=/^(?:a|area)$/i;Et.fn.extend({prop:function(e,t){return Wt(this,Et.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Et.propFix[e]||e]})}}),Et.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Et.isXMLDoc(e)||(t=Et.propFix[t]||t,i=Et.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Et.find.attr(e,"tabindex");return t?parseInt(t,10):qn.test(e.nodeName)||Ln.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),xt.optSelected||(Et.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Et.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Et.propFix[this.toLowerCase()]=this}),Et.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(bt(e))return this.each(function(t){Et(this).addClass(e.call(this,t,Z(this)))});if(t=et(e),t.length)for(;n=this[u++];)if(i=Z(n),r=1===n.nodeType&&" "+K(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=K(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(bt(e))return this.each(function(t){Et(this).removeClass(e.call(this,t,Z(this)))});if(!arguments.length)return this.attr("class","");if(t=et(e),t.length)for(;n=this[u++];)if(i=Z(n),r=1===n.nodeType&&" "+K(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=K(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):this.each(bt(e)?function(n){Et(this).toggleClass(e.call(this,n,Z(this),t),t)}:function(){var t,i,o,a;if(r)for(i=0,o=Et(this),a=et(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(void 0===e||"boolean"===n)&&(t=Z(this),t&&_t.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":_t.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+K(Z(n))+" ").indexOf(t)>-1)return!0;return!1}});var Hn=/\r/g;Et.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=bt(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,Et(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Et.map(i,function(e){return null==e?"":e+""})),t=Et.valHooks[this.type]||Et.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=Et.valHooks[i.type]||Et.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Hn,""):null==n?"":n)}}}),Et.extend({valHooks:{option:{get:function(e){var t=Et.find.attr(e,"value");return null!=t?t:K(Et.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?a+1:i.length;for(r=0>a?l:s?a:0;l>r;r++)if(n=i[r],!(!n.selected&&r!==a||n.disabled||n.parentNode.disabled&&o(n.parentNode,"optgroup"))){if(t=Et(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=Et.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=Et.inArray(Et.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Et.each(["radio","checkbox"],function(){Et.valHooks[this]={set:function(e,t){return Array.isArray(t)?e.checked=Et.inArray(Et(e).val(),t)>-1:void 0}},xt.checkOn||(Et.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),xt.focusin="onfocusin"in e;var On=/^(?:focusinfocus|focusoutblur)$/,Pn=function(e){e.stopPropagation()};Et.extend(Et.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,p,d=[r||ut],h=mt.call(t,"type")?t.type:t,g=mt.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=r=r||ut,3!==r.nodeType&&8!==r.nodeType&&!On.test(h+Et.event.triggered)&&(h.indexOf(".")>-1&&(g=h.split("."),h=g.shift(),g.sort()),l=h.indexOf(":")<0&&"on"+h,t=t[Et.expando]?t:new Et.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Et.makeArray(n,[t]),f=Et.event.special[h]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!wt(r)){for(u=f.delegateType||h,On.test(u+h)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(r.ownerDocument||ut)&&d.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?u:f.bindType||h,c=(_t.get(a,"events")||{})[t.type]&&_t.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Bt(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||f._default&&f._default.apply(d.pop(),n)!==!1||!Bt(r)||l&&bt(r[h])&&!wt(r)&&(s=r[l],s&&(r[l]=null),Et.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,Pn),r[h](),t.isPropagationStopped()&&p.removeEventListener(h,Pn),Et.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=Et.extend(new Et.Event,n,{type:e,isSimulated:!0});Et.event.trigger(r,null,t)}}),Et.fn.extend({trigger:function(e,t){return this.each(function(){Et.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Et.event.trigger(e,t,n,!0):void 0}}),xt.focusin||Et.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Et.event.simulate(t,e.target,Et.event.fix(e))};Et.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=_t.access(r,t);i||r.addEventListener(e,n,!0),_t.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=_t.access(r,t)-1;i?_t.access(r,t,i):(r.removeEventListener(e,n,!0),_t.remove(r,t))}}});var Rn=e.location,Mn=Date.now(),In=/\?/;Et.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&Et.error("Invalid XML: "+t),n};var Wn=/\[\]$/,$n=/\r?\n/g,Fn=/^(?:submit|button|image|reset|file)$/i,Bn=/^(?:input|select|textarea|keygen)/i;Et.param=function(e,t){var n,r=[],i=function(e,t){var n=bt(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Et.isPlainObject(e))Et.each(e,function(){i(this.name,this.value)});else for(n in e)tt(n,e[n],t,i);return r.join("&")},Et.fn.extend({serialize:function(){return Et.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Et.prop(this,"elements");return e?Et.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Et(this).is(":disabled")&&Bn.test(this.nodeName)&&!Fn.test(e)&&(this.checked||!nn.test(e))}).map(function(e,t){var n=Et(this).val();return null==n?null:Array.isArray(n)?Et.map(n,function(e){return{name:t.name,value:e.replace($n,"\r\n")}}):{name:t.name,value:n.replace($n,"\r\n")}}).get()}});var _n=/%20/g,zn=/#.*$/,Un=/([?&])_=[^&]*/,Xn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gn=/^(?:GET|HEAD)$/,Yn=/^\/\//,Qn={},Jn={},Kn="*/".concat("*"),Zn=ut.createElement("a");Zn.href=Rn.href,Et.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rn.href,type:"GET",isLocal:Vn.test(Rn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Et.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?it(it(e,Et.ajaxSettings),t):it(Et.ajaxSettings,e)},ajaxPrefilter:nt(Qn),ajaxTransport:nt(Jn),ajax:function(t,n){function r(t,n,r,s){var l,p,d,b,w,T=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",C.readyState=t>0?4:0,l=t>=200&&300>t||304===t,r&&(b=ot(h,C,r)),b=at(h,b,C,l),l?(h.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(Et.lastModified[o]=w),w=C.getResponseHeader("etag"),w&&(Et.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,p=b.data,d=b.error,l=!d)):(d=T,(t||!T)&&(T="error",0>t&&(t=0))),C.status=t,C.statusText=(n||T)+"",l?v.resolveWith(g,[p,T,C]):v.rejectWith(g,[C,T,d]),C.statusCode(x),x=void 0,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?p:d]),y.fireWith(g,[C,T]),f&&(m.trigger("ajaxComplete",[C,h]),--Et.active||Et.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=Et.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?Et(g):Et.event,v=Et.Deferred(),y=Et.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Xn.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(v.promise(C),h.url=((t||h.url||Rn.href)+"").replace(Yn,Rn.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Rt)||[""],null==h.crossDomain){l=ut.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Zn.protocol+"//"+Zn.host!=l.protocol+"//"+l.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Et.param(h.data,h.traditional)),rt(Qn,h,n,C),c)return C;f=Et.event&&h.global,f&&0===Et.active++&&Et.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Gn.test(h.type),o=h.url.replace(zn,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(_n,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(In.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(Un,"$1"),d=(In.test(o)?"&":"?")+"_="+Mn++ +d),h.url=o+d),h.ifModified&&(Et.lastModified[o]&&C.setRequestHeader("If-Modified-Since",Et.lastModified[o]),Et.etag[o]&&C.setRequestHeader("If-None-Match",Et.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Kn+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(g,C,h)===!1||c))return C.abort();if(T="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),i=rt(Jn,h,n,C)){if(C.readyState=1,f&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(u=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,i.send(b,r)}catch(E){if(c)throw E;r(-1,E)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return Et.get(e,t,n,"json")},getScript:function(e,t){return Et.get(e,void 0,t,"script")}}),Et.each(["get","post"],function(e,t){Et[t]=function(e,n,r,i){return bt(n)&&(i=i||r,r=n,n=void 0),Et.ajax(Et.extend({url:e,type:t,dataType:i,data:n,success:r},Et.isPlainObject(e)&&e))}}),Et._evalUrl=function(e,t){return Et.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Et.globalEval(e,t)}})},Et.fn.extend({wrapAll:function(e){var t;return this[0]&&(bt(e)&&(e=e.call(this[0])),t=Et(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return this.each(bt(e)?function(t){Et(this).wrapInner(e.call(this,t))}:function(){var t=Et(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=bt(e);return this.each(function(n){Et(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Et(this).replaceWith(this.childNodes)}),this}}),Et.expr.pseudos.hidden=function(e){return!Et.expr.pseudos.visible(e)},Et.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Et.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var er={0:200,1223:204},tr=Et.ajaxSettings.xhr();xt.cors=!!tr&&"withCredentials"in tr,xt.ajax=tr=!!tr,Et.ajaxTransport(function(t){var n,r;return xt.cors||tr&&!t.crossDomain?{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(er[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}:void 0}),Et.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Et.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Et.globalEval(e),e}}}),Et.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Et.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=Et("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ut.head.appendChild(t[0])},abort:function(){n&&n()}}}});var nr=[],rr=/(=)\?(?=&|$)|\?\?/;Et.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nr.pop()||Et.expando+"_"+Mn++;return this[e]=!0,e}}),Et.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(rr.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&rr.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=bt(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(rr,"$1"+i):t.jsonp!==!1&&(t.url+=(In.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Et.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?Et(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,nr.push(i)),a&&bt(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),xt.createHTMLDocument=function(){var e=ut.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),Et.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(xt.createHTMLDocument?(t=ut.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ut.location.href,t.head.appendChild(r)):t=ut),i=jt.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=C([e],t,o),o&&o.length&&Et(o).remove(),Et.merge([],i.childNodes))},Et.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=K(e.slice(s)),e=e.slice(0,s)),bt(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&Et.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?Et("<div>").append(Et.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},Et.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Et.fn[t]=function(e){return this.on(t,e)}}),Et.expr.pseudos.animated=function(e){return Et.grep(Et.timers,function(t){return e===t.elem}).length},Et.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=Et.css(e,"position"),f=Et(e),p={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=Et.css(e,"top"),u=Et.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),bt(t)&&(t=t.call(e,n,Et.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):f.css(p)}},Et.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Et.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===Et.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Et.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&(i=Et(e).offset(),i.top+=Et.css(e,"borderTopWidth",!0),i.left+=Et.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-Et.css(r,"marginTop",!0),left:t.left-i.left-Et.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Et.css(e,"position");)e=e.offsetParent;return e||Qt})}}),Et.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Et.fn[e]=function(r){return Wt(this,function(e,r,i){var o;return wt(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),Et.each(["top","left"],function(e,t){Et.cssHooks[t]=I(xt.pixelPosition,function(e,n){return n?(n=M(e,t),gn.test(n)?Et(e).position()[t]+"px":n):void 0})}),Et.each({Height:"height",Width:"width"},function(e,t){Et.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Et.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return Wt(this,function(t,n,i){var o;return wt(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?Et.css(t,n,s):Et.style(t,n,i,s)},t,a?i:void 0,a)}})}),Et.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){Et.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Et.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Et.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),Et.proxy=function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),bt(e)?(r=ct.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ct.call(arguments)))},i.guid=e.guid=e.guid||Et.guid++,i):void 0},Et.holdReady=function(e){e?Et.readyWait++:Et.ready(!0)},Et.isArray=Array.isArray,Et.parseJSON=JSON.parse,Et.nodeName=o,Et.isFunction=bt,Et.isWindow=wt,Et.camelCase=h,Et.type=r,Et.now=Date.now,Et.isNumeric=function(e){var t=Et.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Et});var ir=e.jQuery,or=e.$;return Et.noConflict=function(t){return e.$===Et&&(e.$=or),t&&e.jQuery===Et&&(e.jQuery=ir),Et},t||(e.jQuery=e.$=Et),Et})});
;/*!node_modules/froala-editor/js/froala_editor.min.js*/
define("node_modules/froala-editor/js/froala_editor.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(r)}:t(window.jQuery)}(function(e){var t=function(n,r){this.id=++e.FE.ID;var o={};r&&r.documentReady&&(o.toolbarButtons=["fullscreen","undo","redo","getPDF","print","|","bold","italic","underline","color","clearFormatting","|","alignLeft","alignCenter","alignRight","alignJustify","|","formatOL","formatUL","indent","outdent","-","paragraphFormat","|","fontFamily","|","fontSize","|","insertLink","insertImage","quote"],o.paragraphFormatSelection=!0,o.fontFamilySelection=!0,o.fontSizeSelection=!0,o.placeholderText="",o.quickInsertEnabled=!1,o.charCounterCount=!1),this.opts=e.extend(!0,{},e.extend({},t.DEFAULTS,o,"object"==typeof r&&r));var i=JSON.stringify(this.opts);e.FE.OPTS_MAPPING[i]=e.FE.OPTS_MAPPING[i]||this.id,this.sid=e.FE.OPTS_MAPPING[i],e.FE.SHARED[this.sid]=e.FE.SHARED[this.sid]||{},this.shared=e.FE.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=e(n),this.$oel.data("froala.editor",this),this.o_doc=n.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;var a=e(this.o_win).scrollTop();this.$oel.on("froala.doInit",e.proxy(function(){this.$oel.off("froala.doInit"),this.doc=this.$el.get(0).ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.$doc=e(this.doc),this.$win=e(this.win),this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(e.FE.PLUGINS)),this.opts.initOnClick?(this.load(e.FE.MODULES),this.$el.on("touchstart.init",function(){e(this).data("touched",!0)}),this.$el.on("touchmove.init",function(){e(this).removeData("touched")}),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",e.proxy(function(t){if("touchend"==t.type&&!this.$el.data("touched"))return!0;if(1===t.which||!t.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init"),this.load(e.FE.MODULES),this.load(e.FE.PLUGINS);var n=t.originalEvent&&t.originalEvent.originalTarget;n&&"IMG"==n.tagName&&e(n).trigger("mousedown"),"undefined"==typeof this.ul&&this.destroy(),"touchend"==t.type&&this.image&&t.originalEvent&&t.originalEvent.target&&e(t.originalEvent.target).is("img")&&setTimeout(e.proxy(function(){this.image.edit(e(t.originalEvent.target))},this),100),this.ready=!0,this.events.trigger("initialized")}},this)),this.events.trigger("initializationDelayed")):(this.load(e.FE.MODULES),this.load(e.FE.PLUGINS),e(this.o_win).scrollTop(a),"undefined"==typeof this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))},this)),this._init()};t.DEFAULTS={initOnClick:!1,pluginsEnabled:null},t.MODULES={},t.PLUGINS={},t.VERSION="2.9.6",t.INSTANCES=[],t.OPTS_MAPPING={},t.SHARED={},t.ID=0,t.prototype._init=function(){var t=this.$oel.prop("tagName");this.$oel.closest("label").length;var n=e.proxy(function(){"TEXTAREA"!=t&&(this._original_html=this._original_html||this.$oel.html()),this.$box=this.$box||this.$oel,this.opts.fullPage&&(this.opts.iframe=!0),this.opts.iframe?(this.$iframe=e('<iframe src="about:blank" frameBorder="0">'),this.$wp=e("<div></div>"),this.$box.html(this.$wp),this.$wp.append(this.$iframe),this.$iframe.get(0).contentWindow.document.open(),this.$iframe.get(0).contentWindow.document.write("<!DOCTYPE html>"),this.$iframe.get(0).contentWindow.document.write("<html><head></head><body></body></html>"),this.$iframe.get(0).contentWindow.document.close(),this.$el=this.$iframe.contents().find("body"),this.el=this.$el.get(0),this.$head=this.$iframe.contents().find("head"),this.$html=this.$iframe.contents().find("html"),this.iframe_document=this.$iframe.get(0).contentWindow.document):(this.$el=e("<div></div>"),this.el=this.$el.get(0),this.$wp=e("<div></div>").append(this.$el),this.$box.html(this.$wp)),this.$oel.trigger("froala.doInit")},this),r=e.proxy(function(){this.$box=e("<div>"),this.$oel.before(this.$box).hide(),this._original_html=this.$oel.val(),this.$oel.parents("form").on("submit."+this.id,e.proxy(function(){this.events.trigger("form.submit")},this)),this.$oel.parents("form").on("reset."+this.id,e.proxy(function(){this.events.trigger("form.reset")},this)),n()},this),o=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.$el.attr("contenteditable",!0).css("outline","none").css("display","inline-block"),this.opts.multiLine=!1,this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),i=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),a=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.on("click.popup",function(e){e.preventDefault()}),this.$oel.trigger("froala.doInit")},this);this.opts.editInPopup?a():"TEXTAREA"==t?r():"A"==t?o():"IMG"==t?i():"BUTTON"==t||"INPUT"==t?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,a()):n()},t.prototype.load=function(t){for(var n in t)if(t.hasOwnProperty(n)){if(this[n])continue;if(e.FE.PLUGINS[n]&&this.opts.pluginsEnabled.indexOf(n)<0)continue;if(this[n]=new t[n](this),this[n]._init&&(this[n]._init(),this.opts.initOnClick&&"core"==n))return!1}},t.prototype.destroy=function(){this.destroying=!0,this.shared.count--,this.events.$off();var t=this.html.get();if(this.opts.iframe&&(this.events.disableBlur(),this.win.focus(),this.events.enableBlur()),this.events.trigger("destroy",[],!0),this.events.trigger("shared.destroy",void 0,!0),0===this.shared.count){for(var n in this.shared)this.shared.hasOwnProperty(n)&&(this.shared[n],e.FE.SHARED[this.sid][n]=null);delete e.FE.SHARED[this.sid]}this.$oel.parents("form").off("."+this.id),this.$oel.off("click.popup"),this.$oel.removeData("froala.editor"),this.$oel.off("froalaEditor"),this.core.destroy(t),e.FE.INSTANCES.splice(e.FE.INSTANCES.indexOf(this),1)},e.fn.froalaEditor=function(n){for(var r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);if("string"==typeof n){var i=[];return this.each(function(){var t=e(this).data("froala.editor");if(t){var o,a;if(0<n.indexOf(".")&&t[n.split(".")[0]]?(t[n.split(".")[0]]&&(o=t[n.split(".")[0]]),a=n.split(".")[1]):(o=t,a=n.split(".")[0]),!o[a])return e.error("Method "+n+" does not exist in Froala Editor.");var s=o[a].apply(t,r.slice(1));void 0===s?i.push(this):0===i.length&&i.push(s)}}),1==i.length?i[0]:i}return"object"!=typeof n&&n?void 0:this.each(function(){e(this).data("froala.editor")||new t(this,n)})},e.fn.froalaEditor.Constructor=t,e.FroalaEditor=t,e.FE=t,e.FE.XS=0,e.FE.SM=1,e.FE.MD=2,e.FE.LG=3,e.FE.LinkRegExCommon="[a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_.]{1,}",e.FE.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&amp;/~+#-\\'*-_{}]*)|())",e.FE.LinkRegExTLD="(("+e.FE.LinkRegExCommon+")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))",e.FE.LinkRegExHTTP="((ftp|http|https):\\/\\/"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExWWW="(www\\."+e.FE.LinkRegExCommon+"\\.[a-z0-9-]{2,24})",e.FE.LinkRegEx="("+e.FE.LinkRegExTLD+"|"+e.FE.LinkRegExHTTP+"|"+e.FE.LinkRegExWWW+"|"+e.FE.LinkRegExAuth+")"+e.FE.LinkRegExEnd,e.FE.LinkProtocols=["mailto","tel","sms","notes","data"],e.FE.MAIL_REGEX=/.+@.+\..+/i,e.FE.MODULES.helpers=function(t){function n(){var e,t,n={},r=(t=-1,"Microsoft Internet Explorer"==navigator.appName?(e=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(e=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t);if(r>0)n.msie=!0;else{var o=navigator.userAgent.toLowerCase(),i=/(edge)[ \/]([\w.]+)/.exec(o)||/(chrome)[ \/]([\w.]+)/.exec(o)||/(webkit)[ \/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(o)||/(msie) ([\w.]+)/.exec(o)||o.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(o)||[],a=i[1]||"";i[2],i[1]&&(n[a]=!0),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0)}return n.msie&&(n.version=r),n}function r(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!a()}function o(){return/(Android)/g.test(navigator.userAgent)&&!a()}function i(){return/(Blackberry)/g.test(navigator.userAgent)}function a(){return/(Windows Phone)/gi.test(navigator.userAgent)}function s(e){return parseInt(e,10)||0}var l,d=null;return{_init:function(){t.browser=n(),function(){function e(e,t){var r=e[t];e[t]=function(e){var t,i=!1,a=!1;if(e&&e.match(o)){e=e.replace(o,""),this.parentNode||(n.appendChild(this),a=!0);var s=this.parentNode;return this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),i=!0),t=r.call(s,"#"+this.id+" "+e),i&&(this.id=""),a&&n.removeChild(this),t}return r.call(this,e)}}var n=t.o_doc.createElement("div");try{n.querySelectorAll(":scope *")}catch(r){var o=/^\s*:scope/gi;e(Element.prototype,"querySelector"),e(Element.prototype,"querySelectorAll"),e(HTMLElement.prototype,"querySelector"),e(HTMLElement.prototype,"querySelectorAll")}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!t)return null;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},isIOS:r,isMac:function(){return null==d&&(d=0<=navigator.platform.toUpperCase().indexOf("MAC")),d},isAndroid:o,isBlackberry:i,isWindowsPhone:a,isMobile:function(){return o()||r()||i()},isEmail:function(t){return!/^(https?:|ftps?:|)\/\//i.test(t)&&e.FE.MAIL_REGEX.test(t)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}},getPX:s,screenSize:function(){var t=e('<div class="fr-visibility-helper"></div>').appendTo("body:first");try{var n=s(t.css("margin-left"));return t.remove(),n}catch(r){return e.FE.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},sanitizeURL:function(t){return/^(https?:|ftps?:|)\/\//i.test(t)?t:/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(t)?t:new RegExp("^("+e.FE.LinkProtocols.join("|")+"):\\/\\/","i").test(t)?t:t=encodeURIComponent(t).replace(/%23/g,"#").replace(/%2F/g,"/").replace(/%25/g,"%").replace(/mailto%3A/gi,"mailto:").replace(/file%3A/gi,"file:").replace(/sms%3A/gi,"sms:").replace(/tel%3A/gi,"tel:").replace(/notes%3A/gi,"notes:").replace(/data%3Aimage/gi,"data:image").replace(/blob%3A/gi,"blob:").replace(/%3A(\d)/gi,":$1").replace(/webkit-fake-url%3A/gi,"webkit-fake-url:").replace(/%3F/g,"?").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/&amp;/g,"&").replace(/%2C/g,",").replace(/%3B/g,";").replace(/%2B/g,"+").replace(/%40/g,"@").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%7B/g,"{").replace(/%7D/g,"}")},isArray:function(e){return e&&!e.propertyIsEnumerable("length")&&"object"==typeof e&&"number"==typeof e.length},RGBToHex:function(e){function t(e){return("0"+parseInt(e,10).toString(16)).slice(-2)}try{return e&&"transparent"!==e?/^#[0-9A-F]{6}$/i.test(e)?e:("#"+t((e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+t(e[2])+t(e[3])).toUpperCase():""}catch(n){return null}},HEXtoRGB:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb("+parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16)+")":""},isURL:function(t){return!!/^(https?:|ftps?:|)\/\//i.test(t)&&(t=String(t).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^"+e.FE.LinkRegExHTTP+e.FE.LinkRegExEnd+"$","gi").test(t))},getAlignment:function(n){var r=(n.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(r)<0){if(!l){var o=e('<div dir="'+("rtl"==t.opts.direction?"rtl":"auto")+'" style="text-align: '+t.$el.css("text-align")+'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>');e("body:first").append(o);var i=o.find("#s1").get(0).getBoundingClientRect().left,a=o.find("#s2").get(0).getBoundingClientRect().left;o.remove(),l=a>i?"left":"right"}r=l}return r},scrollTop:function(){return t.o_win.pageYOffset?t.o_win.pageYOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollTop?t.o_doc.documentElement.scrollTop:t.o_doc.body.scrollTop?t.o_doc.body.scrollTop:0},scrollLeft:function(){return t.o_win.pageXOffset?t.o_win.pageXOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollLeft?t.o_doc.documentElement.scrollLeft:t.o_doc.body.scrollLeft?t.o_doc.body.scrollLeft:0},isInViewPort:function(e){var t=e.getBoundingClientRect();return 0<=(t={top:Math.round(t.top),bottom:Math.round(t.bottom)}).top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)||t.top<=0&&t.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}},e.FE.MODULES.events=function(t){function n(e,t,n){l(e,t,n)}function r(n){if(void 0===n&&(n=!0),!t.$wp)return!1;if(t.helpers.isIOS()){t.$win.get(0).focus();var r=0===t.$win.scrollTop()?1:t.$win.scrollTop();window.scrollTo(0,r)}if(t.core.hasFocus())return!1;if(!t.core.hasFocus()&&n){var a=t.$win.scrollTop();if(t.browser.msie&&t.$box&&t.$box.css("position","fixed"),t.browser.msie&&t.$wp&&t.$wp.css("overflow","visible"),t.browser.msie&&t.$sc&&t.$sc.css("position","fixed"),i(),t.$el.focus(),t.events.trigger("focus"),o(),t.browser.msie&&t.$sc&&t.$sc.css("position",""),t.browser.msie&&t.$box&&t.$box.css("position",""),t.browser.msie&&t.$wp&&t.$wp.css("overflow","auto"),a!=t.$win.scrollTop()&&t.$win.scrollTop(a),!t.selection.info(t.el).atStart)return!1}if(!t.core.hasFocus()||0<t.$el.find(".fr-marker").length)return!1;if(t.selection.info(t.el).atStart&&t.selection.isCollapsed()&&null!=t.html.defaultTag()){var s=t.markers.insert();if(s&&!t.node.blockParent(s)){e(s).remove();var l=t.$el.find(t.html.blockTagsQuery()).get(0);l&&(e(l).prepend(e.FE.MARKERS),t.selection.restore())}else s&&e(s).remove()}}function o(){u=!0}function i(){u=!1}function a(){return u}function s(e,n,r){var o,i=e.split(" ");if(1<i.length){for(var a=0;a<i.length;a++)s(i[a],n,r);return!0}void 0===r&&(r=!1),o=0!==e.indexOf("shared.")?g[e]=g[e]||[]:t.shared._events[e]=t.shared._events[e]||[],r?o.unshift(n):o.push(n)}function l(e,n,r,o,i){"function"==typeof r&&(i=o,o=r,r=!1);var a,s=i?t.shared.$_events:m,l=i?t.sid:t.id;a=o,o=function(){return t.destroying?void 0:a.apply(this,arguments)},r?e.on(n.split(" ").join(".ed"+l+" ")+".ed"+l,r,o):e.on(n.split(" ").join(".ed"+l+" ")+".ed"+l,o),s.push([e,n.split(" ").join(".ed"+l+" ")+".ed"+l])}function d(e){for(var t=0;t<e.length;t++)e[t][0].off(e[t][1])}function c(n,r,o){if(!t.edit.isDisabled()||o){var i,a;if(0!==n.indexOf("shared."))i=g[n];else{if(0<t.shared.count)return!1;i=t.shared._events[n]}if(i)for(var s=0;s<i.length;s++)if(!1===(a=i[s].apply(t,r)))return!1;return!1!==(a=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],r||[])))&&a}}function p(){for(var e in g)g.hasOwnProperty(e)&&delete g[e]}function f(){for(var e in t.shared._events)t.shared._events.hasOwnProperty(e)&&delete t.shared._events[e]}var u,g={},h=!1,m=[];return{_init:function(){t.shared.$_events=t.shared.$_events||[],t.shared._events={},t.helpers.isMobile()?(t._mousedown="touchstart",t._mouseup="touchend",t._move="touchmove",t._mousemove="touchmove"):(t._mousedown="mousedown",t._mouseup="mouseup",t._move="",t._mousemove="mousemove"),n(t.$el,"click mouseup mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",function(e){c(e.type,[e])}),s("mousedown",function(){for(var n=0;n<e.FE.INSTANCES.length;n++)e.FE.INSTANCES[n]!=t&&e.FE.INSTANCES[n].popups&&e.FE.INSTANCES[n].popups.areVisible()&&e.FE.INSTANCES[n].$el.find(".fr-marker").remove()}),n(t.$win,t._mousedown,function(e){c("window.mousedown",[e]),o()}),n(t.$win,t._mouseup,function(e){c("window.mouseup",[e])}),n(t.$win,"cut copy keydown keyup touchmove touchend",function(e){c("window."+e.type,[e])}),n(t.$doc,"dragend drop",function(e){c("document."+e.type,[e])}),n(t.$el,"keydown keypress keyup input",function(e){c(e.type,[e])}),n(t.$el,"focus",function(e){a()&&(r(!1),!1===h&&c(e.type,[e]))}),n(t.$el,"blur",function(e){a()&&!0===h&&(c(e.type,[e]),o())}),l(t.$el,"mousedown",'[contenteditable="true"]',function(){i(),t.$el.blur()}),s("focus",function(){h=!0}),s("blur",function(){h=!1}),o(),n(t.$el,"cut copy paste beforepaste",function(e){c(e.type,[e])}),s("destroy",p),s("shared.destroy",f)},on:s,trigger:c,bindClick:function(n,r,i){l(n,t._mousedown,r,function(n){var r,o;t.edit.isDisabled()||(o=e((r=n).currentTarget),t.edit.isDisabled()||t.node.hasClass(o.get(0),"fr-disabled")?r.preventDefault():"mousedown"===r.type&&1!==r.which||(t.helpers.isMobile()||r.preventDefault(),(t.helpers.isAndroid()||t.helpers.isWindowsPhone())&&0===o.parents(".fr-dropdown-menu").length&&(r.preventDefault(),r.stopPropagation()),o.addClass("fr-selected"),t.events.trigger("commands.mousedown",[o])))},!0),l(n,t._mouseup+" "+t._move,r,function(n){t.edit.isDisabled()||function(n,r){var o=e(n.currentTarget);if(t.edit.isDisabled()||t.node.hasClass(o.get(0),"fr-disabled"))return n.preventDefault();if(("mouseup"!==n.type||1===n.which)&&t.node.hasClass(o.get(0),"fr-selected"))if("touchmove"!=n.type){if(n.stopPropagation(),n.stopImmediatePropagation(),n.preventDefault(),!t.node.hasClass(o.get(0),"fr-selected"))return t.button.getButtons(".fr-selected",!0).removeClass("fr-selected");if(t.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),o.data("dragging")||o.attr("disabled"))return o.removeData("dragging");var i=o.data("timeout");i&&(clearTimeout(i),o.removeData("timeout")),r.apply(t,[n])}else o.data("timeout")||o.data("timeout",setTimeout(function(){o.data("dragging",!0)},100))}(n,i)},!0),l(n,"mousedown click mouseup",r,function(e){t.edit.isDisabled()||e.stopPropagation()},!0),s("window.mouseup",function(){t.edit.isDisabled()||(n.find(r).removeClass("fr-selected"),o())}),l(n,"mouseenter",r,function(){e(this).hasClass("fr-options")&&e(this).prev(".fr-btn").addClass("fr-btn-hover"),e(this).next(".fr-btn").hasClass("fr-options")&&e(this).next(".fr-btn").addClass("fr-btn-hover")}),l(n,"mouseleave",r,function(){e(this).hasClass("fr-options")&&e(this).prev(".fr-btn").removeClass("fr-btn-hover"),e(this).next(".fr-btn").hasClass("fr-options")&&e(this).next(".fr-btn").removeClass("fr-btn-hover")})},disableBlur:i,enableBlur:o,blurActive:a,focus:r,chainTrigger:function(n,r,o){if(!t.edit.isDisabled()||o){var i,a;if(0!==n.indexOf("shared."))i=g[n];else{if(0<t.shared.count)return!1;i=t.shared._events[n]}if(i)for(var s=0;s<i.length;s++)void 0!==(a=i[s].apply(t,[r]))&&(r=a);return void 0!==(a=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],[r])))&&(r=a),r}},$on:l,$off:function(){d(m),m=[],0===t.shared.count&&(d(t.shared.$_events),t.shared.$_events=[])}}},e.FE.MODULES.node=function(t){function n(e){return e&&"IFRAME"!=e.tagName?Array.prototype.slice.call(e.childNodes||[]):[]}function r(t){return!!t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.BLOCK_TAGS.indexOf(t.tagName.toLowerCase())}function o(e){var t={},n=e.attributes;if(n)for(var r=0;r<n.length;r++){var o=n[r];t[o.nodeName]=o.value}return t}function i(e){for(var t="",n=o(e),r=Object.keys(n).sort(),i=0;i<r.length;i++){var a=r[i],s=n[a];t+=s.indexOf("'")<0&&0<=s.indexOf('"')?" "+a+"='"+s+"'":0<=s.indexOf('"')&&0<=s.indexOf("'")?" "+a+'="'+(s=s.replace(/"/g,"&quot;"))+'"':" "+a+'="'+s+'"'}return t}function a(e){return e===t.el}return{isBlock:r,isEmpty:function(o,i){if(!o)return!0;if(o.querySelector("table"))return!1;var a=n(o);1==a.length&&r(a[0])&&(a=n(a[0]));for(var s=!1,l=0;l<a.length;l++){var d=a[l];if(!(i&&t.node.hasClass(d,"fr-marker")||d.nodeType==Node.TEXT_NODE&&0===d.textContent.length)){if("BR"!=d.tagName&&0<(d.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length)return!1;if(s)return!1;"BR"==d.tagName&&(s=!0)}}return!(o.querySelectorAll(e.FE.VOID_ELEMENTS.join(",")).length-o.querySelectorAll("br").length||o.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||1<o.querySelectorAll(e.FE.BLOCK_TAGS.join(",")).length||o.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)"))},blockParent:function(e){for(;e&&e.parentNode!==t.el&&(!e.parentNode||!t.node.hasClass(e.parentNode,"fr-inner"));)if(r(e=e.parentNode))return e;return null},deepestParent:function(n,o,i){if(void 0===o&&(o=[]),void 0===i&&(i=!0),o.push(t.el),0<=o.indexOf(n.parentNode)||n.parentNode&&t.node.hasClass(n.parentNode,"fr-inner")||n.parentNode&&0<=e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)&&i)return null;for(;o.indexOf(n.parentNode)<0&&n.parentNode&&!t.node.hasClass(n.parentNode,"fr-inner")&&(e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)<0||!i)&&(!r(n)||!r(n.parentNode)||!i);)n=n.parentNode;return n},rawAttributes:o,attributes:i,clearAttributes:function(e){for(var t=e.attributes,n=t.length-1;n>=0;n--){var r=t[n];e.removeAttribute(r.nodeName)}},openTagString:function(e){return"<"+e.tagName.toLowerCase()+i(e)+">"},closeTagString:function(e){return"</"+e.tagName.toLowerCase()+">"},isFirstSibling:function s(e,n){void 0===n&&(n=!0);for(var r=e.previousSibling;r&&n&&t.node.hasClass(r,"fr-marker");)r=r.previousSibling;return!r||r.nodeType==Node.TEXT_NODE&&""===r.textContent&&s(r)},isLastSibling:function l(e,n){void 0===n&&(n=!0);for(var r=e.nextSibling;r&&n&&t.node.hasClass(r,"fr-marker");)r=r.nextSibling;return!r||r.nodeType==Node.TEXT_NODE&&""===r.textContent&&l(r)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType==Node.ELEMENT_NODE&&"a"==e.tagName.toLowerCase()},isElement:a,contents:n,isVoid:function(t){return t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.VOID_ELEMENTS.indexOf((t.tagName||"").toLowerCase())},hasFocus:function(e){return e===t.doc.activeElement&&(!t.doc.hasFocus||t.doc.hasFocus())&&!!(a(e)||e.type||e.href||~e.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!=e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(t,n){return t instanceof e&&(t=t.get(0)),t&&t.classList&&t.classList.contains(n)},filter:function(e){return t.browser.msie?e:{acceptNode:e}}}},e.FE.INVISIBLE_SPACE="&#8203;",e.FE.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.MARKERS=e.FE.START_MARKER+e.FE.END_MARKER,e.FE.MODULES.markers=function(t){function n(){if(!t.$wp)return null;try{var n=t.selection.ranges(0),r=n.commonAncestorContainer;if(t.core.isEmpty()&&r.textContent!==e("<span>").html(e.FE.INVISIBLE_SPACE).text())return t.selection.setAtStart(t.el),t.$el.find(".fr-marker:first").replaceWith('<span class="fr-single-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>"),t.$el.find(".fr-marker").remove(),t.$el.find(".fr-single-marker").removeClass("fr-single-marker").addClass("fr-marker").get(0);if(r!=t.el&&0===t.$el.find(r).length)return null;var o=n.cloneRange(),i=n.cloneRange();o.collapse(!0);var a=e('<span class="fr-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0];if(o.insertNode(a),a=t.$el.find("span.fr-marker").get(0)){for(var s=a.nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=t.$el.find("span.fr-marker").get(0).nextSibling;return t.selection.clear(),t.selection.get().addRange(i),a}return null}catch(l){}}function r(){t.$el.find(".fr-marker").remove()}return{place:function(n,r,o){var i,a,s;try{var l=n.cloneRange();if(l.collapse(r),l.insertNode(e('<span class="fr-marker" data-id="'+o+'" data-type="'+r+'" style="display: '+(t.browser.safari?"none":"inline-block")+'; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0]),!0===r)for(s=(i=t.$el.find('span.fr-marker[data-type="true"][data-id="'+o+'"]').get(0)).nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=i.nextSibling;if(!0===r&&!n.collapsed){for(;!t.node.isElement(i.parentNode)&&!s;)e(i.parentNode).after(i),s=i.nextSibling;if(s&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[0],(a=t.node.contents(s))[0]&&t.node.isBlock(a[0]););e(s).prepend(e(i))}}if(!1===r&&!n.collapsed){if((s=(i=t.$el.find('span.fr-marker[data-type="false"][data-id="'+o+'"]').get(0)).previousSibling)&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[a.length-1],(a=t.node.contents(s))[a.length-1]&&t.node.isBlock(a[a.length-1]););e(s).append(e(i))}(i.parentNode&&0<=["TD","TH"].indexOf(i.parentNode.tagName)||!i.previousSibling&&t.node.isBlock(i.parentElement))&&i.parentNode.previousSibling&&!i.previousSibling&&e(i.parentNode.previousSibling).append(i)}var d=t.$el.find('span.fr-marker[data-type="'+r+'"][data-id="'+o+'"]').get(0);return d&&(d.style.display="none"),d}catch(c){return null}},insert:n,split:function(){t.selection.isCollapsed()||t.selection.remove();var r=t.$el.find(".fr-marker").get(0);if(null==r&&(r=n()),null==r)return null;var o=t.node.deepestParent(r);if(o||(o=t.node.blockParent(r))&&"LI"!=o.tagName&&(o=null),o)if(t.node.isBlock(o)&&t.node.isEmpty(o))"LI"!=o.tagName||o.parentNode.firstElementChild!=o||t.node.isEmpty(o.parentNode)?e(o).replaceWith('<span class="fr-marker"></span>'):e(o).append('<span class="fr-marker"></span>');else if(t.cursor.isAtStart(r,o))e(o).before('<span class="fr-marker"></span>'),e(r).remove();else if(t.cursor.isAtEnd(r,o))e(o).after('<span class="fr-marker"></span>'),e(r).remove();else{for(var i=r,a="",s="";i=i.parentNode,a+=t.node.closeTagString(i),s=t.node.openTagString(i)+s,i!=o;);e(r).replaceWith('<span id="fr-break"></span>');var l=t.node.openTagString(o)+e(o).html()+t.node.closeTagString(o);l=l.replace(/<span id="fr-break"><\/span>/g,a+'<span class="fr-marker"></span>'+s),e(o).replaceWith(l)}return t.$el.find(".fr-marker").get(0)},insertAtPoint:function(e){var o,i=e.clientX,a=e.clientY;r();var s=null;if("undefined"!=typeof t.doc.caretPositionFromPoint?(o=t.doc.caretPositionFromPoint(i,a),(s=t.doc.createRange()).setStart(o.offsetNode,o.offset),s.setEnd(o.offsetNode,o.offset)):"undefined"!=typeof t.doc.caretRangeFromPoint&&(o=t.doc.caretRangeFromPoint(i,a),(s=t.doc.createRange()).setStart(o.startContainer,o.startOffset),s.setEnd(o.startContainer,o.startOffset)),null!==s&&"undefined"!=typeof t.win.getSelection){var l=t.win.getSelection();l.removeAllRanges(),l.addRange(s)}else if("undefined"!=typeof t.doc.body.createTextRange)try{(s=t.doc.body.createTextRange()).moveToPoint(i,a);var d=s.duplicate();d.moveToPoint(i,a),s.setEndPoint("EndToEnd",d),s.select()}catch(c){return!1}n()},remove:r}},e.FE.MODULES.selection=function(t){function n(){var e="";return t.win.getSelection?e=t.win.getSelection():t.doc.getSelection?e=t.doc.getSelection():t.doc.selection&&(e=t.doc.selection.createRange().text),e.toString()}function r(){return t.win.getSelection?t.win.getSelection():t.doc.getSelection?t.doc.getSelection():t.doc.selection.createRange()}function o(e){var n=r(),o=[];if(n&&n.getRangeAt&&n.rangeCount){o=[];for(var i=0;i<n.rangeCount;i++)o.push(n.getRangeAt(i))}else o=t.doc.createRange?[t.doc.createRange()]:[];return void 0!==e?o[e]:o}function i(){var e=r();try{e.removeAllRanges?e.removeAllRanges():e.empty?e.empty():e.clear&&e.clear()}catch(t){}}function a(e,t){var n=e;return n.nodeType==Node.ELEMENT_NODE&&0<n.childNodes.length&&n.childNodes[t]&&(n=n.childNodes[t]),n.nodeType==Node.TEXT_NODE&&(n=n.parentNode),n}function s(){if(t.$wp){t.markers.remove();var n,r,i=o(),a=[];for(r=0;r<i.length;r++)if(i[r].startContainer!==t.doc||t.browser.msie){var s=(n=i[r]).collapsed,l=t.markers.place(n,!0,r),d=t.markers.place(n,!1,r);if(void 0!==l&&l||!s||(e(".fr-marker").remove(),t.selection.setAtEnd(t.el)),t.el.normalize(),t.browser.safari&&!s)try{(n=t.doc.createRange()).setStartAfter(l),n.setEndBefore(d),a.push(n)}catch(c){}}if(t.browser.safari&&a.length)for(t.selection.clear(),r=0;r<a.length;r++)t.selection.get().addRange(a[r])}}function l(){var n,o=t.el.querySelectorAll('.fr-marker[data-type="true"]');if(!t.$wp)return t.markers.remove(),!1;if(0===o.length)return!1;if(t.browser.msie||t.browser.edge)for(n=0;n<o.length;n++)o[n].style.display="inline-block";t.core.hasFocus()||t.browser.msie||t.browser.webkit||t.$el.focus(),i();var a=r();for(n=0;n<o.length;n++){var s=e(o[n]).data("id"),l=o[n],c=t.doc.createRange(),p=t.$el.find('.fr-marker[data-type="false"][data-id="'+s+'"]');(t.browser.msie||t.browser.edge)&&p.css("display","inline-block");var f=null;if(0<p.length){p=p[0];try{for(var u,g=!1,h=l.nextSibling;h&&h.nodeType==Node.TEXT_NODE&&0===h.textContent.length;)h=(u=h).nextSibling,e(u).remove();for(var m,E,v=p.nextSibling;v&&v.nodeType==Node.TEXT_NODE&&0===v.textContent.length;)v=(u=v).nextSibling,e(u).remove();if(l.nextSibling==p||p.nextSibling==l){for(var b=l.nextSibling==p?l:p,S=b==l?p:l,T=b.previousSibling;T&&T.nodeType==Node.TEXT_NODE&&0===T.length;)T=(u=T).previousSibling,e(u).remove();if(T&&T.nodeType==Node.TEXT_NODE)for(;T&&T.previousSibling&&T.previousSibling.nodeType==Node.TEXT_NODE;)T.previousSibling.textContent=T.previousSibling.textContent+T.textContent,T=T.previousSibling,e(T.nextSibling).remove();for(var y=S.nextSibling;y&&y.nodeType==Node.TEXT_NODE&&0===y.length;)y=(u=y).nextSibling,e(u).remove();if(y&&y.nodeType==Node.TEXT_NODE)for(;y&&y.nextSibling&&y.nextSibling.nodeType==Node.TEXT_NODE;)y.nextSibling.textContent=y.textContent+y.nextSibling.textContent,y=y.nextSibling,e(y.previousSibling).remove();if(T&&(t.node.isVoid(T)||t.node.isBlock(T))&&(T=null),y&&(t.node.isVoid(y)||t.node.isBlock(y))&&(y=null),T&&y&&T.nodeType==Node.TEXT_NODE&&y.nodeType==Node.TEXT_NODE){e(l).remove(),e(p).remove();var N=T.textContent.length;T.textContent=T.textContent+y.textContent,e(y).remove(),t.opts.htmlUntouched||t.spaces.normalize(T),c.setStart(T,N),c.setEnd(T,N),g=!0}else!T&&y&&y.nodeType==Node.TEXT_NODE?(e(l).remove(),e(p).remove(),t.opts.htmlUntouched||t.spaces.normalize(y),f=e(t.doc.createTextNode("")),e(y).before(f),c.setStart(y,0),c.setEnd(y,0),g=!0):!y&&T&&T.nodeType==Node.TEXT_NODE&&(e(l).remove(),e(p).remove(),t.opts.htmlUntouched||t.spaces.normalize(T),f=e(t.doc.createTextNode("")),e(T).after(f),c.setStart(T,T.textContent.length),c.setEnd(T,T.textContent.length),g=!0)}g||((t.browser.chrome||t.browser.edge)&&l.nextSibling==p?(m=d(p,c,!0)||c.setStartAfter(p),E=d(l,c,!1)||c.setEndBefore(l)):(l.previousSibling==p&&(p=(l=p).nextSibling),p.nextSibling&&"BR"===p.nextSibling.tagName||!p.nextSibling&&t.node.isBlock(l.previousSibling)||l.previousSibling&&"BR"==l.previousSibling.tagName||(l.style.display="inline",p.style.display="inline",f=e(t.doc.createTextNode(""))),m=d(l,c,!0)||e(l).before(f)&&c.setStartBefore(l),E=d(p,c,!1)||e(p).after(f)&&c.setEndAfter(p)),"function"==typeof m&&m(),"function"==typeof E&&E())}catch(C){}}f&&f.remove();try{a.addRange(c)}catch(C){}}t.markers.remove()}function d(n,r,o){var i,a=n.previousSibling,s=n.nextSibling;return a&&s&&a.nodeType==Node.TEXT_NODE&&s.nodeType==Node.TEXT_NODE?(i=a.textContent.length,o?(s.textContent=a.textContent+s.textContent,e(a).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,i)}):(a.textContent=a.textContent+s.textContent,e(s).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,i)
})):a&&!s&&a.nodeType==Node.TEXT_NODE?(i=a.textContent.length,o?(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setStart(a,i)}):(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,i)})):!(!s||a||s.nodeType!=Node.TEXT_NODE)&&(o?(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,0)}):(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setEnd(s,0)}))}function c(){for(var e=o(),t=0;t<e.length;t++)if(!e[t].collapsed)return!1;return!0}function p(e){var n,r,o=!1,i=!1;if(t.win.getSelection){var a=t.win.getSelection();a.rangeCount&&((r=(n=a.getRangeAt(0)).cloneRange()).selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset),o=""===r.toString(),r.selectNodeContents(e),r.setStart(n.endContainer,n.endOffset),i=""===r.toString())}else t.doc.selection&&"Control"!=t.doc.selection.type&&((r=(n=t.doc.selection.createRange()).duplicate()).moveToElementText(e),r.setEndPoint("EndToStart",n),o=""===r.text,r.moveToElementText(e),r.setEndPoint("StartToEnd",n),i=""===r.text);return{atStart:o,atEnd:i}}function f(n,r){void 0===r&&(r=!0);var o=e(n).html();o&&o.replace(/\u200b/g,"").length!=o.length&&e(n).html(o.replace(/\u200b/g,""));for(var i=t.node.contents(n),a=0;a<i.length;a++)i[a].nodeType!=Node.ELEMENT_NODE?e(i[a]).remove():(f(i[a],0===a),0===a&&(r=!1));n.nodeType==Node.TEXT_NODE?e(n).replaceWith('<span data-first="true" data-text="true"></span>'):r&&e(n).attr("data-first",!0)}function u(){return 0===e(this).find("fr-inner").length}function g(){try{if(!t.$wp)return!1;for(var e=o(0).commonAncestorContainer;e&&!t.node.isElement(e);)e=e.parentNode;return!!t.node.isElement(e)}catch(n){return!1}}function h(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var o=n.firstChild;o&&(t.node.isBlock(o)||r&&!t.node.isVoid(o)&&o.nodeType==Node.ELEMENT_NODE);)o=(n=o).firstChild;n.innerHTML=e.FE.MARKERS+n.innerHTML}function m(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var o=n.lastChild;o&&(t.node.isBlock(o)||r&&!t.node.isVoid(o)&&o.nodeType==Node.ELEMENT_NODE);)o=(n=o).lastChild;var i=t.doc.createElement("SPAN");for(i.setAttribute("id","fr-sel-markers"),i.innerHTML=e.FE.MARKERS;n.parentNode&&t.opts.htmlAllowedEmptyTags&&0<=t.opts.htmlAllowedEmptyTags.indexOf(n.tagName.toLowerCase());)n=n.parentNode;n.appendChild(i);var a=n.querySelector("#fr-sel-markers");a.outerHTML=a.innerHTML}return{text:n,get:r,ranges:o,clear:i,element:function(){var i=r();try{if(i.rangeCount){var a,s=o(0),l=s.startContainer;if(t.node.isElement(l)&&0===s.startOffset&&l.childNodes.length)for(;l.childNodes.length&&l.childNodes[0].nodeType===Node.ELEMENT_NODE;)l=l.childNodes[0];if(l.nodeType==Node.TEXT_NODE&&s.startOffset==(l.textContent||"").length&&l.nextSibling&&(l=l.nextSibling),l.nodeType==Node.ELEMENT_NODE){var d=!1;if(0<l.childNodes.length&&l.childNodes[s.startOffset]){for(a=l.childNodes[s.startOffset];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;if(a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,d=!0),!d&&1<l.childNodes.length&&0<s.startOffset&&l.childNodes[s.startOffset-1]){for(a=l.childNodes[s.startOffset-1];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,d=!0)}}else!s.collapsed&&l.nextSibling&&l.nextSibling.nodeType==Node.ELEMENT_NODE&&(a=l.nextSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,d=!0);!d&&0<l.childNodes.length&&e(l.childNodes[0]).text().replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&["BR","IMG","HR"].indexOf(l.childNodes[0].tagName)<0&&(l=l.childNodes[0])}for(;l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var c=l;c&&"HTML"!=c.tagName;){if(c==t.el)return l;c=e(c).parent()[0]}}}catch(p){}return t.el},endElement:function(){var i=r();try{if(i.rangeCount){var a,s=o(0),l=s.endContainer;if(l.nodeType==Node.ELEMENT_NODE){var d=!1;0<l.childNodes.length&&l.childNodes[s.endOffset]&&e(l.childNodes[s.endOffset]).text()===n()?(l=l.childNodes[s.endOffset],d=!0):!s.collapsed&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE?(a=l.previousSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,d=!0):!s.collapsed&&0<l.childNodes.length&&l.childNodes[s.endOffset]&&(a=l.childNodes[s.endOffset].previousSibling).nodeType==Node.ELEMENT_NODE&&a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,d=!0),!d&&0<l.childNodes.length&&e(l.childNodes[l.childNodes.length-1]).text()===n()&&["BR","IMG","HR"].indexOf(l.childNodes[l.childNodes.length-1].tagName)<0&&(l=l.childNodes[l.childNodes.length-1])}for(l.nodeType==Node.TEXT_NODE&&0===s.endOffset&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE&&(l=l.previousSibling);l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var c=l;c&&"HTML"!=c.tagName;){if(c==t.el)return l;c=e(c).parent()[0]}}}catch(p){}return t.el},save:s,restore:l,isCollapsed:c,isFull:function(){if(c())return!1;t.selection.save();var n,r=t.el.querySelectorAll("td, th, img, br");for(n=0;n<r.length;n++)r[n].nextSibling&&(r[n].innerHTML='<span class="fr-mk">'+e.FE.INVISIBLE_SPACE+"</span>"+r[n].innerHTML);var o=!1,i=p(t.el);for(i.atStart&&i.atEnd&&(o=!0),r=t.el.querySelectorAll(".fr-mk"),n=0;n<r.length;n++)r[n].parentNode.removeChild(r[n]);return t.selection.restore(),o},inEditor:g,remove:function(){if(c())return!0;var n;s();var r=function(t){for(var n=t.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.previousSibling,e(r).remove()}return n},o=function(t){for(var n=t.nextSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.nextSibling,e(r).remove()}return n},i=t.$el.find('.fr-marker[data-type="true"]');for(n=0;n<i.length;n++)for(var a=i[n];!(r(a)||t.node.isBlock(a.parentNode)||t.$el.is(a.parentNode)||t.node.hasClass(a.parentNode,"fr-inner"));)e(a.parentNode).before(a);var d=t.$el.find('.fr-marker[data-type="false"]');for(n=0;n<d.length;n++){for(var p=d[n];!(o(p)||t.node.isBlock(p.parentNode)||t.$el.is(p.parentNode)||t.node.hasClass(p.parentNode,"fr-inner"));)e(p.parentNode).after(p);p.parentNode&&t.node.isBlock(p.parentNode)&&t.node.isEmpty(p.parentNode)&&!t.$el.is(p.parentNode)&&!t.node.hasClass(p.parentNode,"fr-inner")&&t.opts.keepFormatOnDelete&&e(p.parentNode).after(p)}if(function(){for(var n=t.$el.find(".fr-marker"),r=0;r<n.length;r++)if(e(n[r]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}()){!function x(n,r){var o=t.node.contents(n.get(0));0<=["TD","TH"].indexOf(n.get(0).tagName)&&1==n.find(".fr-marker").length&&(t.node.hasClass(o[0],"fr-marker")||"BR"==o[0].tagName&&t.node.hasClass(o[0].nextElementSibling,"fr-marker"))&&n.attr("data-del-cell",!0);for(var i=0;i<o.length;i++){var a=o[i];t.node.hasClass(a,"fr-marker")?r=(r+1)%2:r?0<e(a).find(".fr-marker").length?r=x(e(a),r):["TD","TH"].indexOf(a.tagName)<0&&!t.node.hasClass(a,"fr-inner")?!t.opts.keepFormatOnDelete||0<t.$el.find("[data-first]").length||t.node.isVoid(a)?e(a).remove():f(a):t.node.hasClass(a,"fr-inner")?0===e(a).find(".fr-inner").length?e(a).html("<br>"):e(a).find(".fr-inner").filter(u).html("<br>"):(e(a).empty(),e(a).attr("data-del-cell",!0)):0<e(a).find(".fr-marker").length&&(r=x(e(a),r))}return r}(t.$el,0);var g=t.$el.find('[data-first="true"]');if(g.length)t.$el.find(".fr-marker").remove(),g.append(e.FE.INVISIBLE_SPACE+e.FE.MARKERS).removeAttr("data-first"),g.attr("data-text")&&g.replaceWith(g.html());else for(t.$el.find("table").filter(function(){return 0<e(this).find("[data-del-cell]").length&&e(this).find("[data-del-cell]").length==e(this).find("td, th").length}).remove(),t.$el.find("[data-del-cell]").removeAttr("data-del-cell"),i=t.$el.find('.fr-marker[data-type="true"]'),n=0;n<i.length;n++){var h=i[n],m=h.nextSibling,E=t.$el.find('.fr-marker[data-type="false"][data-id="'+e(h).data("id")+'"]').get(0);if(E){if(h&&(!m||m!=E)){var v=t.node.blockParent(h),b=t.node.blockParent(E),S=!1,T=!1;if(v&&0<=["UL","OL"].indexOf(v.tagName)&&(S=!(v=null)),b&&0<=["UL","OL"].indexOf(b.tagName)&&(T=!(b=null)),e(h).after(E),v!=b)if(null!=v||S)if(null!=b||T||0!==e(v).parentsUntil(t.$el,"table").length)v&&b&&0===e(v).parentsUntil(t.$el,"table").length&&0===e(b).parentsUntil(t.$el,"table").length&&0===e(v).find(b).length&&0===e(b).find(v).length&&(e(v).append(e(b).html()),e(b).remove());else{for(m=v;!m.nextSibling&&m.parentNode!=t.el;)m=m.parentNode;for(m=m.nextSibling;m&&"BR"!=m.tagName;){var y=m.nextSibling;e(v).append(m),m=y}m&&"BR"==m.tagName&&e(m).remove()}else{var N=t.node.deepestParent(h);N?(e(N).after(e(b).html()),e(b).remove()):0===e(b).parentsUntil(t.$el,"table").length&&(e(h).next().after(e(b).html()),e(b).remove())}}}else E=e(h).clone().attr("data-type",!1),e(h).after(E)}}t.$el.find("li:empty").remove(),t.opts.keepFormatOnDelete||t.html.fillEmptyBlocks(),t.html.cleanEmptyTags(!0),t.opts.htmlUntouched||(t.clean.lists(),t.$el.find("li:empty").append("<br>"),t.spaces.normalize());var C=t.$el.find(".fr-marker:last").get(0),A=t.$el.find(".fr-marker:first").get(0);void 0!==C&&void 0!==A&&!C.nextSibling&&A.previousSibling&&"BR"==A.previousSibling.tagName&&t.node.isElement(C.parentNode)&&t.node.isElement(A.parentNode)&&t.$el.append("<br>"),l()},blocks:function(){var n,i=[],s=r();if(g()&&s.rangeCount){var l=o();for(n=0;n<l.length;n++){var d,c=l[n],p=a(c.startContainer,c.startOffset),f=a(c.endContainer,c.endOffset);(t.node.isBlock(p)||t.node.hasClass(p,"fr-inner"))&&i.indexOf(p)<0&&i.push(p),(d=t.node.blockParent(p))&&i.indexOf(d)<0&&i.push(d);for(var u=[],h=p;h!==f&&h!==t.el;)u.indexOf(h)<0&&h.children&&h.children.length?(u.push(h),h=h.children[0]):h.nextSibling?h=h.nextSibling:h.parentNode&&(h=h.parentNode,u.push(h)),t.node.isBlock(h)&&u.indexOf(h)<0&&i.indexOf(h)<0&&(h!==f||0<c.endOffset)&&i.push(h);t.node.isBlock(f)&&i.indexOf(f)<0&&0<c.endOffset&&i.push(f),(d=t.node.blockParent(f))&&i.indexOf(d)<0&&i.push(d)}}for(n=i.length-1;n>0;n--)e(i[n]).find(i).length&&i.splice(n,1);return i},info:p,setAtEnd:m,setAtStart:h,setBefore:function(n,r){void 0===r&&(r=!0);for(var o=n.previousSibling;o&&o.nodeType==Node.TEXT_NODE&&0===o.textContent.length;)o=o.previousSibling;return o?(t.node.isBlock(o)?m(o):"BR"==o.tagName?e(o).before(e.FE.MARKERS):e(o).after(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?h(n):e(n).before(e.FE.MARKERS),!0)},setAfter:function(n,r){void 0===r&&(r=!0);for(var o=n.nextSibling;o&&o.nodeType==Node.TEXT_NODE&&0===o.textContent.length;)o=o.nextSibling;return o?(t.node.isBlock(o)?h(o):e(o).before(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?m(n):e(n).after(e.FE.MARKERS),!0)},rangeElement:a}},e.extend(e.FE.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","aria-.*","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),e.FE.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},e.FE.MODULES.clean=function(t){function n(e){if(e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=e.getAttribute("class").indexOf("fr-marker"))return!1;var r,o=t.node.contents(e),i=[];for(r=0;r<o.length;r++)o[r].nodeType!=Node.ELEMENT_NODE||t.node.isVoid(o[r])?o[r].nodeType==Node.TEXT_NODE&&(o[r].textContent=o[r].textContent.replace(/\u200b/g,"")):o[r].textContent.replace(/\u200b/g,"").length!=o[r].textContent.length&&n(o[r]);if(e.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(e)&&(e.normalize(),o=t.node.contents(e),i=e.querySelectorAll(".fr-marker"),o.length-i.length==0)){for(r=0;r<o.length;r++)if(o[r].nodeType==Node.ELEMENT_NODE&&(o[r].getAttribute("class")||"").indexOf("fr-marker")<0)return!1;for(r=0;r<i.length;r++)e.parentNode.insertBefore(i[r].cloneNode(!0),e);return e.parentNode.removeChild(e),!1}}function r(e,n){if(e.nodeType==Node.COMMENT_NODE)return"<!--"+e.nodeValue+"-->";if(e.nodeType==Node.TEXT_NODE)return n?e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\u0009/g,"");if(e.nodeType!=Node.ELEMENT_NODE)return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(e.tagName))return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&"svg"==e.tagName){var o=document.createElement("div"),i=e.cloneNode(!0);return o.appendChild(i),o.innerHTML}if("IFRAME"==e.tagName)return e.outerHTML.replace(/\&lt;/g,"<").replace(/\&gt;/g,">");var a=e.childNodes;if(0===a.length)return e.outerHTML;for(var s="",l=0;l<a.length;l++)"PRE"==e.tagName&&(n=!0),s+=r(a[l],n);return t.node.openTagString(e)+s+t.node.closeTagString(e)}function o(e){var t=e.replace(/;;/gi,";");return";"!=(t=t.replace(/^;/gi,"")).charAt(t.length)&&(t+=";"),t}function i(e){var n;for(n in e)if(e.hasOwnProperty(n)){var r=n.match(f),i=null;"style"==n&&t.opts.htmlAllowedStyleProps.length&&(i=e[n].match(u)),r&&i?e[n]=o(i.join(";")):r&&("style"!=n||i)||delete e[n]}for(var a="",s=Object.keys(e).sort(),l=0;l<s.length;l++)a+=e[n=s[l]].indexOf('"')<0?" "+n+'="'+e[n]+'"':" "+n+"='"+e[n]+"'";return a}function a(n,o){var i,a=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");e(a).append(n);var s="";if(a){var l=t.node.contents(a);for(i=0;i<l.length;i++)o(l[i]);for(l=t.node.contents(a),i=0;i<l.length;i++)s+=r(l[i])}return s}function s(e,n,r){g=[];var o=e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,function(e){return g.push(e),"[FROALA.EDITOR.SCRIPT "+(g.length-1)+"]"}).replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,function(e){return g.push(e),"[FROALA.EDITOR.NOSCRIPT "+(g.length-1)+"]"}).replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="').replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="'),s=null;t.opts.fullPage&&(o=t.html.extractNode(e,"body")||(0<=e.indexOf("<body")?"":e),r&&(s=t.html.extractNode(e,"head")||"")),o=a(o,n),s&&(s=a(s,n));var l=function(e,n,r){if(t.opts.fullPage){var o=t.html.extractDoctype(r),a=i(t.html.extractNodeAttrs(r,"html"));return n=null==n?t.html.extractNode(r,"head")||"<title></title>":n,o+"<html"+a+"><head"+i(t.html.extractNodeAttrs(r,"head"))+">"+n+"</head><body"+i(t.html.extractNodeAttrs(r,"body"))+">"+e+"</body></html>"}return e}(o,s,e);return l.replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("script")?"":g[parseInt(n,10)]}).replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("noscript")?"":g[parseInt(n,10)].replace(/\&lt;/g,"<").replace(/\&gt;/g,">")}).replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}function l(e){var n=t.doc.createElement("DIV");return n.innerText=e,n.textContent}function d(n){for(var r=t.node.contents(n),i=0;i<r.length;i++)r[i].nodeType!=Node.TEXT_NODE&&d(r[i]);!function(n){if(!("SPAN"==n.tagName&&0<=(n.getAttribute("class")||"").indexOf("fr-marker"))){var r,i;if("PRE"==n.tagName&&0<=(i=(r=n).innerHTML).indexOf("\n")&&(r.innerHTML=i.replace(/\n/g,"<br>")),n.nodeType==Node.ELEMENT_NODE&&(n.getAttribute("data-fr-src")&&0!==n.getAttribute("data-fr-src").indexOf("blob:")&&n.setAttribute("data-fr-src",t.helpers.sanitizeURL(l(n.getAttribute("data-fr-src")))),n.getAttribute("href")&&n.setAttribute("href",t.helpers.sanitizeURL(l(n.getAttribute("href")))),n.getAttribute("src")&&n.setAttribute("src",t.helpers.sanitizeURL(l(n.getAttribute("src")))),n.getAttribute("data")&&n.setAttribute("data",t.helpers.sanitizeURL(l(n.getAttribute("data")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(n.tagName)&&(n.innerHTML=n.innerHTML.trim())),!t.opts.pasteAllowLocalImages&&n.nodeType==Node.ELEMENT_NODE&&"IMG"==n.tagName&&n.getAttribute("data-fr-src")&&0===n.getAttribute("data-fr-src").indexOf("file://"))return n.parentNode.removeChild(n);if(n.nodeType==Node.ELEMENT_NODE&&e.FE.HTML5Map[n.tagName]&&""===t.node.attributes(n)){var a=e.FE.HTML5Map[n.tagName],s="<"+a+">"+n.innerHTML+"</"+a+">";n.insertAdjacentHTML("beforebegin",s),(n=n.previousSibling).parentNode.removeChild(n.nextSibling)}if(t.opts.htmlAllowComments||n.nodeType!=Node.COMMENT_NODE)if(n.tagName&&n.tagName.match(p))n.parentNode.removeChild(n);else if(n.tagName&&!n.tagName.match(c)){if("svg"===n.tagName)n.parentNode.removeChild(n);else if(!t.browser.safari||"path"!=n.tagName||!n.parentNode||"svg"!=n.parentNode.tagName)try{n.outerHTML=n.innerHTML}catch(d){}}else{var g=n.attributes;if(g)for(var h=g.length-1;h>=0;h--){var m=g[h],E=m.nodeName.match(f),v=null;"style"==m.nodeName&&t.opts.htmlAllowedStyleProps.length&&(v=m.value.match(u)),E&&v?m.value=o(v.join(";")):E&&("style"!=m.nodeName||v)||n.removeAttribute(m.nodeName)}}else 0!==n.data.indexOf("[FROALA.EDITOR")&&n.parentNode.removeChild(n)}}(n)}var c,p,f,u,g=[];return{_init:function(){t.opts.fullPage&&e.merge(t.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(n,r,o,i){void 0===r&&(r=[]),void 0===o&&(o=[]),void 0===i&&(i=!1);var a,l=e.merge([],t.opts.htmlAllowedTags);for(a=0;a<r.length;a++)0<=l.indexOf(r[a])&&l.splice(l.indexOf(r[a]),1);var g=e.merge([],t.opts.htmlAllowedAttrs);for(a=0;a<o.length;a++)0<=g.indexOf(o[a])&&g.splice(g.indexOf(o[a]),1);return g.push("data-fr-.*"),g.push("fr-.*"),c=new RegExp("^"+l.join("$|^")+"$","gi"),f=new RegExp("^"+g.join("$|^")+"$","gi"),p=new RegExp("^"+t.opts.htmlRemoveTags.join("$|^")+"$","gi"),u=t.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)"+t.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)")+":.+?(?=(;)|$))","gi"):null,n=s(n,d,!0)},toHTML5:function(){var n=t.el.querySelectorAll(Object.keys(e.FE.HTML5Map).join(","));if(n.length){var r=!1;t.el.querySelector(".fr-marker")||(t.selection.save(),r=!0);for(var o=0;o<n.length;o++)""===t.node.attributes(n[o])&&e(n[o]).replaceWith("<"+e.FE.HTML5Map[n[o].tagName]+">"+n[o].innerHTML+"</"+e.FE.HTML5Map[n[o].tagName]+">");r&&t.selection.restore()}},tables:function(){!function(){for(var e=t.el.querySelectorAll("tr"),n=0;n<e.length;n++){for(var r=e[n].children,o=!0,i=0;i<r.length;i++)if("TH"!=r[i].tagName){o=!1;break}if(!1!==o&&0!==r.length){for(var a=e[n];a&&"TABLE"!=a.tagName&&"THEAD"!=a.tagName;)a=a.parentNode;var s=a;"THEAD"!=s.tagName&&(s=t.doc.createElement("THEAD"),a.insertBefore(s,a.firstChild)),s.appendChild(e[n])}}}()},lists:function(){!function(){var e,n=[];do{if(n.length){var r=n[0],o=t.doc.createElement("ul");r.parentNode.insertBefore(o,r);do{var i=r;r=r.nextSibling,o.appendChild(i)}while(r&&"LI"==r.tagName)}n=[];for(var a=t.el.querySelectorAll("li"),s=0;s<a.length;s++)e=a[s],t.node.isList(e.parentNode)||n.push(a[s])}while(0<n.length)}(),function(){for(var e=t.el.querySelectorAll("ol + ol, ul + ul"),n=0;n<e.length;n++){var r=e[n];if(t.node.isList(r.previousSibling)&&t.node.openTagString(r)==t.node.openTagString(r.previousSibling)){for(var o=t.node.contents(r),i=0;i<o.length;i++)r.previousSibling.appendChild(o[i]);r.parentNode.removeChild(r)}}}(),function(){for(var n=t.el.querySelectorAll("ul, ol"),r=0;r<n.length;r++)for(var o=t.node.contents(n[r]),i=null,a=o.length-1;a>=0;a--)"LI"!=o[a].tagName&&"UL"!=o[a].tagName&&"OL"!=o[a].tagName?(i||(i=e("<li>")).insertBefore(o[a]),i.prepend(o[a])):i=null}(),function(){var e,n,r;do{n=!1;var o=t.el.querySelectorAll("li:empty");for(e=0;e<o.length;e++)o[e].parentNode.removeChild(o[e]);var i=t.el.querySelectorAll("ul, ol");for(e=0;e<i.length;e++)(r=i[e]).querySelector("LI")||(n=!0,r.parentNode.removeChild(r))}while(!0===n)}(),function(){for(var n=t.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul"),r=0;r<n.length;r++){var o=n[r],i=o.previousSibling;i&&("LI"==i.tagName?i.appendChild(o):e(o).wrap("<li></li>"))}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var o=n[r];if(o.nextSibling){var i=o.nextSibling,a=e("<li>");e(o.parentNode).after(a);do{var s=i;i=i.nextSibling,a.append(s)}while(i)}}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var o=n[r];if(t.node.isFirstSibling(o))e(o).before("<br/>");else if(o.previousSibling&&"BR"==o.previousSibling.tagName){for(var i=o.previousSibling.previousSibling;i&&t.node.hasClass(i,"fr-marker");)i=i.previousSibling;i&&"BR"!=i.tagName&&e(o.previousSibling).remove()}}}(),function(){for(var n=t.el.querySelectorAll("li:empty"),r=0;r<n.length;r++)e(n[r]).remove()}()},invisibleSpaces:function(e){return e.replace(/\u200b/g,"").length==e.length?e:t.clean.exec(e,n)},exec:s}},e.FE.MODULES.spaces=function(t){function n(n,r){var o=n.previousSibling,i=n.nextSibling,a=n.textContent,s=n.parentNode;if(!t.html.isPreformatted(s)){r&&(a=a.replace(/[\f\n\r\t\v ]{2,}/g," "),i&&"BR"!==i.tagName&&!t.node.isBlock(i)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.nextSibling||t.node.isElement(s))||(a=a.replace(/[\f\n\r\t\v ]{1,}$/g,"")),o&&"BR"!==o.tagName&&!t.node.isBlock(o)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.previousSibling||t.node.isElement(s))||(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),(t.node.isBlock(i)||t.node.isBlock(o))&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,""))," "===a&&(o&&t.node.isVoid(o)||i&&t.node.isVoid(i))&&!(o&&i&&t.node.isVoid(o)||i&&o&&t.node.isVoid(i))&&(a="")),(!o&&t.node.isBlock(i)||!i&&t.node.isBlock(o))&&t.node.isBlock(s)&&s!==t.el&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),r||(a=a.replace(new RegExp(e.FE.UNICODE_NBSP,"g")," "));for(var l="",d=0;d<a.length;d++)l+=32!=a.charCodeAt(d)||0!==d&&32!=l.charCodeAt(d-1)||o&&i&&t.node.isVoid(o)||o&&i&&t.node.isVoid(i)?a[d]:e.FE.UNICODE_NBSP;(!i||i&&t.node.isBlock(i)||i&&i.nodeType==Node.ELEMENT_NODE&&t.win.getComputedStyle(i)&&"block"==t.win.getComputedStyle(i).display)&&(t.node.isVoid(o)||(l=l.replace(/ $/,e.FE.UNICODE_NBSP))),!o||t.node.isVoid(o)||t.node.isBlock(o)||1!==(l=l.replace(/^\u00A0([^ $])/," $1")).length||160!==l.charCodeAt(0)||!i||t.node.isVoid(i)||t.node.isBlock(i)||t.node.hasClass(o,"fr-marker")&&t.node.hasClass(i,"fr-marker")||(l=" "),r||(l=l.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2")),n.textContent!=l&&(n.textContent=l)}}function r(e,r){if(void 0!==e&&e||(e=t.el),void 0===r&&(r=!1),!e.getAttribute||"false"!=e.getAttribute("contenteditable"))if(e.nodeType==Node.TEXT_NODE)n(e,r);else if(e.nodeType==Node.ELEMENT_NODE)for(var o=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){for(var n=e.parentNode;n&&n!==t.el;){if("STYLE"==n.tagName||"IFRAME"==n.tagName)return!1;if("PRE"===n.tagName)return!1;n=n.parentNode}return null!=e.textContent.match(/([ \u00A0\f\n\r\t\v]{2,})|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!t.node.hasClass(e.parentNode,"fr-marker")}),!1);o.nextNode();)n(o.currentNode,r)}return{normalize:r,normalizeAroundCursor:function(){for(var e=[],n=t.el.querySelectorAll(".fr-marker"),o=0;o<n.length;o++){for(var i=null,a=t.node.blockParent(n[o]),s=(i=a||n[o]).nextSibling,l=i.previousSibling;s&&"BR"==s.tagName;)s=s.nextSibling;for(;l&&"BR"==l.tagName;)l=l.previousSibling;i&&e.indexOf(i)<0&&e.push(i),l&&e.indexOf(l)<0&&e.push(l),s&&e.indexOf(s)<0&&e.push(s)}for(var d=0;d<e.length;d++)r(e[d])}}},e.FE.UNICODE_NBSP=String.fromCharCode(160),e.FE.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],e.FE.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],e.extend(e.FE.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),e.FE.MODULES.html=function(t){function n(){return t.opts.enter==e.FE.ENTER_P?"p":t.opts.enter==e.FE.ENTER_DIV?"div":t.opts.enter==e.FE.ENTER_BR?null:void 0}function r(e,n){return!(!e||e===t.el)&&(n?-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName)||r(e.parentNode,n):-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName))}function o(n){var r,o=[],a=[];if(n){var s=t.el.querySelectorAll(".fr-marker");for(r=0;r<s.length;r++){var l=t.node.blockParent(s[r])||s[r];if(l){var d=l.nextSibling,c=l.previousSibling;l&&a.indexOf(l)<0&&t.node.isBlock(l)&&a.push(l),c&&t.node.isBlock(c)&&a.indexOf(c)<0&&a.push(c),d&&t.node.isBlock(d)&&a.indexOf(d)<0&&a.push(d)}}}else a=t.el.querySelectorAll(i());var p=i();for(p+=","+e.FE.VOID_ELEMENTS.join(","),p+=", .fr-inner",p+=","+t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)",r=a.length-1;r>=0;r--)if(!(a[r].textContent&&0<a[r].textContent.replace(/\u200B|\n/g,"").length||0<a[r].querySelectorAll(p).length)){for(var f=t.node.contents(a[r]),u=!1,g=0;g<f.length;g++)if(f[g].nodeType!=Node.COMMENT_NODE&&f[g].textContent&&0<f[g].textContent.replace(/\u200B|\n/g,"").length){u=!0;break}u||o.push(a[r])}return o}function i(){return e.FE.BLOCK_TAGS.join(", ")}function a(n){var r,o,i=e.merge([],e.FE.VOID_ELEMENTS);i=e.merge(i,t.opts.htmlAllowedEmptyTags),i=void 0===n?e.merge(i,e.FE.BLOCK_TAGS):e.merge(i,e.FE.NO_DELETE_TAGS),r=t.el.querySelectorAll("*:empty:not("+i.join("):not(")+"):not(.fr-marker)");do{o=!1;for(var a=0;a<r.length;a++)0!==r[a].attributes.length&&void 0===r[a].getAttribute("href")||(r[a].parentNode.removeChild(r[a]),o=!0);r=t.el.querySelectorAll("*:empty:not("+i.join("):not(")+"):not(.fr-marker)")}while(r.length&&o)}function s(e,r){var o=n();if(r&&(o="div"),o){for(var i=t.doc.createDocumentFragment(),a=null,s=!1,l=e.firstChild,d=!1;l;){var c=l.nextSibling;if(l.nodeType==Node.ELEMENT_NODE&&(t.node.isBlock(l)||0<=t.opts.htmlDoNotWrapTags.indexOf(l.tagName.toLowerCase())&&!t.node.hasClass(l,"fr-marker")))a=null,i.appendChild(l.cloneNode(!0));else if(l.nodeType!=Node.ELEMENT_NODE&&l.nodeType!=Node.TEXT_NODE)a=null,i.appendChild(l.cloneNode(!0));else if("BR"==l.tagName)null==a?(a=t.doc.createElement(o),d=!0,r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0)),a.appendChild(l.cloneNode(!0)),i.appendChild(a)):!1===s&&(a.appendChild(t.doc.createElement("br")),r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0))),a=null;else{var p=l.textContent;l.nodeType!==Node.TEXT_NODE||0<p.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||p.replace(/(^ *)|( *$)/g,"").length&&p.indexOf("\n")<0?(null==a&&(a=t.doc.createElement(o),d=!0,r&&a.setAttribute("class","fr-temp-div"),i.appendChild(a),s=!1),a.appendChild(l.cloneNode(!0)),s||t.node.hasClass(l,"fr-marker")||l.nodeType==Node.TEXT_NODE&&0===p.replace(/ /g,"").length||(s=!0)):d=!0}l=c}d&&(e.innerHTML="",e.appendChild(i))}}function l(e,t){for(var n=e.length-1;n>=0;n--)s(e[n],t)}function d(e,n,r,o,i){if(!t.$wp)return!1;void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!1);var a=t.$wp.scrollTop();s(t.el,e),o&&l(t.el.querySelectorAll(".fr-inner"),e),n&&l(t.el.querySelectorAll("td, th"),e),r&&l(t.el.querySelectorAll("blockquote"),e),i&&l(t.el.querySelectorAll("li"),e),a!=t.$wp.scrollTop()&&t.$wp.scrollTop(a)}function c(e){if(void 0===e&&(e=t.el),e&&0<=["SCRIPT","STYLE","PRE"].indexOf(e.tagName))return!1;for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return null!=e.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)}),!1);n.nextNode();){var o=n.currentNode;if(!r(o.parentNode,!0)){var i=t.node.isBlock(o.parentNode)||t.node.isElement(o.parentNode),a=o.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(i){var s=o.previousSibling,l=o.nextSibling;s&&l&&" "==a?a=t.node.isBlock(s)&&t.node.isBlock(l)?"":" ":(s||(a=a.replace(/^ */,"")),l||(a=a.replace(/ *$/,"")))}o.textContent=a}}}function p(e,t,n){var r=new RegExp(t,"gi").exec(e);return r?r[n]:null}function f(e){var t=e.doctype,n="<!DOCTYPE html>";return t&&(n="<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"),n}function u(n){var r=n.parentNode;if(r&&(t.node.isBlock(r)||t.node.isElement(r))&&["TD","TH"].indexOf(r.tagName)<0){for(var o=n.previousSibling,i=n.nextSibling;o&&(o.nodeType==Node.TEXT_NODE&&0===o.textContent.replace(/\n|\r/g,"").length||t.node.hasClass(o,"fr-tmp"));)o=o.previousSibling;if(i)return!1;o&&r&&"BR"!=o.tagName&&!t.node.isBlock(o)&&!i&&0<r.textContent.replace(/\u200B/g,"").length&&0<o.textContent.length&&!t.node.hasClass(o,"fr-marker")&&(t.el==r&&!i&&t.opts.enter==e.FE.ENTER_BR&&t.browser.msie||n.parentNode.removeChild(n))}else!r||t.node.isBlock(r)||t.node.isElement(r)||n.previousSibling||n.nextSibling||!t.node.isDeletable(n.parentNode)||u(n.parentNode)}function g(){t.opts.htmlUntouched||(a(),d(),c(),t.spaces.normalize(null,!0),t.html.fillEmptyBlocks(),t.clean.lists(),t.clean.tables(),t.clean.toHTML5(),t.html.cleanBRs()),t.selection.restore(),h(),t.placeholder.refresh()}function h(){t.node.isEmpty(t.el)&&(null!=n()?t.el.querySelector(i())||t.el.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)")||(t.core.hasFocus()?(t.$el.html("<"+n()+">"+e.FE.MARKERS+"<br/></"+n()+">"),t.selection.restore()):t.$el.html("<"+n()+"><br/></"+n()+">")):t.el.querySelector("*:not(.fr-marker):not(br)")||(t.core.hasFocus()?(t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()):t.$el.html("<br/>")))}function m(e,t){return p(e,"<"+t+"[^>]*?>([\\w\\W]*)</"+t+">",1)}function E(n,r){var o=e("<div "+(p(n,"<"+r+"([^>]*?)>",1)||"")+">");return t.node.rawAttributes(o.get(0))}function v(e){return(p(e,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function b(e,n){t.opts.htmlExecuteScripts?e.html(n):e.get(0).innerHTML=n}function S(e){var t;(t=/:not\(([^\)]*)\)/g).test(e)&&(e=e.replace(t," $1 "));var n=100*(e.match(/(#[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(\[[^\]]+\])/g)||[]).length+10*(e.match(/(\.[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^\)]*\))/gi)||[]).length+10*(e.match(/(:[^\s\+>~\.\[:]+)/g)||[]).length+(e.match(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;
return n+=((e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).match(/([^\s\+>~\.\[:]+)/g)||[]).length}function T(e){if(t.events.trigger("html.processGet",[e]),e&&e.getAttribute&&""===e.getAttribute("class")&&e.removeAttribute("class"),e&&e.getAttribute&&""===e.getAttribute("style")&&e.removeAttribute("style"),e&&e.nodeType==Node.ELEMENT_NODE){var n,r=e.querySelectorAll('[class=""],[style=""]');for(n=0;n<r.length;n++){var o=r[n];""===o.getAttribute("class")&&o.removeAttribute("class"),""===o.getAttribute("style")&&o.removeAttribute("style")}if("BR"===e.tagName)u(e);else{var i=e.querySelectorAll("br");for(n=0;n<i.length;n++)u(i[n])}}}function y(e,t){return e[3]-t[3]}function N(e){var n=t.doc.createElement("div");return n.innerHTML=e,null!==n.querySelector(i())}function C(n){var r=null;if(void 0===n&&(r=t.selection.element()),t.opts.keepFormatOnDelete)return!1;var o,i,a=r?(r.textContent.match(/\u200B/g)||[]).length-r.querySelectorAll(".fr-marker").length:0;if((t.el.textContent.match(/\u200B/g)||[]).length-t.el.querySelectorAll(".fr-marker").length==a)return!1;do{i=!1,o=t.el.querySelectorAll("*:not(.fr-marker)");for(var s=0;s<o.length;s++){var l=o[s];if(r!=l){var d=l.textContent;0===l.children.length&&1===d.length&&8203==d.charCodeAt(0)&&"TD"!==l.tagName&&(e(l).remove(),i=!0)}}}while(i)}return{defaultTag:n,isPreformatted:r,emptyBlocks:o,emptyBlockTagsQuery:function(){return e.FE.BLOCK_TAGS.join(":empty, ")+":empty"},blockTagsQuery:i,fillEmptyBlocks:function(n){var r=o(n);t.node.isEmpty(t.el)&&t.opts.enter===e.FE.ENTER_BR&&r.push(t.el);for(var i=0;i<r.length;i++){var a=r[i];"false"===a.getAttribute("contenteditable")||a.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||t.node.isVoid(a)||"TABLE"!=a.tagName&&"TBODY"!=a.tagName&&"TR"!=a.tagName&&"UL"!=a.tagName&&"OL"!=a.tagName&&a.appendChild(t.doc.createElement("br"))}if(t.browser.msie&&t.opts.enter==e.FE.ENTER_BR){var s=t.node.contents(t.el);s.length&&s[s.length-1].nodeType==Node.TEXT_NODE&&t.$el.append("<br>")}},cleanEmptyTags:a,cleanWhiteTags:C,cleanBlankSpaces:c,blocks:function(){return t.$el.get(0).querySelectorAll(i())},getDoctype:f,set:function(n){var r,o,i,a=t.clean.html((n||"").trim(),[],[],t.opts.fullPage);if(t.opts.fullPage){var s=m(a,"body")||(0<=a.indexOf("<body")?"":a),l=E(a,"body"),d=m(a,"head")||"<title></title>",c=E(a,"head"),p=e("<div>").append(d).contents().each(function(){(this.nodeType==Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}).end().html().trim();d=e("<div>").append(d).contents().map(function(){return this.nodeType==Node.COMMENT_NODE?"<!--"+this.nodeValue+"-->":0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var f=v(a),u=E(a,"html");b(t.$el,p+"\n"+s),t.node.clearAttributes(t.el),t.$el.attr(l),t.$el.addClass("fr-view"),t.$el.attr("spellcheck",t.opts.spellcheck),t.$el.attr("dir",t.opts.direction),b(t.$head,d),t.node.clearAttributes(t.$head.get(0)),t.$head.attr(c),t.node.clearAttributes(t.$html.get(0)),t.$html.attr(u),t.iframe_document.doctype.parentNode.replaceChild((r=f,o=t.iframe_document,(i=r.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i))?o.implementation.createDocumentType(i[1],i[3],i[4]):o.implementation.createDocumentType("html")),t.iframe_document.doctype)}else b(t.$el,a);var h=t.edit.isDisabled();t.edit.on(),t.core.injectStyle(t.opts.iframeDefaultStyle+t.opts.iframeStyle),g(),t.opts.useClasses||(t.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),t.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),h&&t.edit.off(),t.events.trigger("html.set")},get:function(e,n){if(!t.$wp)return t.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var r="";t.events.trigger("html.beforeGet");var o,i,a=[],s={},l=[],d=t.el.querySelectorAll("input, textarea");for(o=0;o<d.length;o++)d[o].setAttribute("value",d[o].value);if(!t.opts.useClasses&&!n){var c=new RegExp("^"+t.opts.htmlIgnoreCSSProperties.join("$|^")+"$","gi");for(o=0;o<t.doc.styleSheets.length;o++){var p,u=0;try{p=t.doc.styleSheets[o].cssRules,t.doc.styleSheets[o].ownerNode&&"STYLE"==t.doc.styleSheets[o].ownerNode.nodeType&&(u=1)}catch(g){}if(p)for(var h=0,m=p.length;m>h;h++)if(p[h].selectorText&&0<p[h].style.cssText.length){var E,v=p[h].selectorText.replace(/body |\.fr-view /g,"").replace(/::/g,":");try{E=t.el.querySelectorAll(v)}catch(g){E=[]}for(i=0;i<E.length;i++){!E[i].getAttribute("fr-original-style")&&E[i].getAttribute("style")?(E[i].setAttribute("fr-original-style",E[i].getAttribute("style")),a.push(E[i])):E[i].getAttribute("fr-original-style")||(E[i].setAttribute("fr-original-style",""),a.push(E[i])),s[E[i]]||(s[E[i]]={});for(var b=1e3*u+S(p[h].selectorText),N=p[h].style.cssText.split(";"),C=0;C<N.length;C++){var A=N[C].trim().split(":")[0];if(A&&!A.match(c)&&(s[E[i]][A]||(s[E[i]][A]=0)<=(E[i].getAttribute("fr-original-style")||"").indexOf(A+":")&&(s[E[i]][A]=1e4),b>=s[E[i]][A]&&(s[E[i]][A]=b,N[C].trim().length))){var x=N[C].trim().split(":");x.splice(0,1),l.push([E[i],A.trim(),x.join(":").trim(),b])}}}}}for(l.sort(y),o=0;o<l.length;o++){var $=l[o];$[0].style[$[1]]=$[2]}for(o=0;o<a.length;o++)if(a[o].getAttribute("class")&&(a[o].setAttribute("fr-original-class",a[o].getAttribute("class")),a[o].removeAttribute("class")),0<(a[o].getAttribute("fr-original-style")||"").trim().length){var O=a[o].getAttribute("fr-original-style").split(";");for(i=0;i<O.length;i++)if(0<O[i].indexOf(":")){var w=O[i].split(":"),F=w[0];w.splice(0,1),a[o].style[F.trim()]=w.join(":").trim()}}}if(t.node.isEmpty(t.el))t.opts.fullPage&&(r=f(t.iframe_document),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.find("head").get(0).outerHTML+"<body></body></html>");else if(void 0===e&&(e=!1),t.opts.fullPage){r=f(t.iframe_document),t.$el.removeClass("fr-view");var k=t.opts.heightMin,D=t.opts.height,M=t.opts.heightMax;t.opts.heightMin=null,t.opts.height=null,t.opts.heightMax=null,t.size.refresh(),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.html()+"</html>",t.opts.heightMin=k,t.opts.height=D,t.opts.heightMax=M,t.size.refresh(),t.$el.addClass("fr-view")}else r=t.$el.html();if(!t.opts.useClasses&&!n)for(o=0;o<a.length;o++)a[o].getAttribute("fr-original-class")&&(a[o].setAttribute("class",a[o].getAttribute("fr-original-class")),a[o].removeAttribute("fr-original-class")),null!=a[o].getAttribute("fr-original-style")&&void 0!==a[o].getAttribute("fr-original-style")?(0!==a[o].getAttribute("fr-original-style").length?a[o].setAttribute("style",a[o].getAttribute("fr-original-style")):a[o].removeAttribute("style"),a[o].removeAttribute("fr-original-style")):a[o].removeAttribute("style");t.opts.fullPage&&(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,"")).replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,"")).replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,"")).replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")).replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?))class="([\w\W]*?)(fr-rtl|fr-ltr)([\w\W]*?)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,'<body$1class="$2$4"$5>$6</body>')).replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")),t.opts.htmlSimpleAmpersand&&(r=r.replace(/\&amp;/gi,"&")),t.events.trigger("html.afterGet"),e||(r=r.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),r=t.clean.invisibleSpaces(r),r=t.clean.exec(r,T);var _=t.events.chainTrigger("html.get",r);return"string"==typeof _&&(r=_),r=(r=r.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(e){return e.replace(/<br>/g,"\n")})).replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="')},getSelected:function(){var n,r,o=function(n,r){for(;!(!r||r.nodeType!=Node.TEXT_NODE&&t.node.isBlock(r)||t.node.isElement(r)||t.node.hasClass(r,"fr-inner"));)r&&r.nodeType!=Node.TEXT_NODE&&e(n).wrapInner(t.node.openTagString(r)+t.node.closeTagString(r)),r=r.parentNode;r&&n.innerHTML==r.innerHTML?n.innerHTML=r.outerHTML:-1!=r.innerText.indexOf(n.innerHTML)&&(n.innerHTML=t.node.openTagString(r)+n.innerHTML+t.node.closeTagString(r))},i="";if("undefined"!=typeof t.win.getSelection){t.browser.mozilla&&(t.selection.save(),1<t.$el.find('.fr-marker[data-type="false"]').length&&(t.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),t.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),t.$el.find(".fr-marker").not('[data-id="0"]').remove()),t.selection.restore());for(var a=t.selection.ranges(),s=0;s<a.length;s++){var l=document.createElement("div");l.appendChild(a[s].cloneContents()),o(l,(r=n=void 0,r=null,t.win.getSelection?(n=t.win.getSelection())&&n.rangeCount&&(r=n.getRangeAt(0).commonAncestorContainer).nodeType!=Node.ELEMENT_NODE&&(r=r.parentNode):(n=t.doc.selection)&&"Control"!=n.type&&(r=n.createRange().parentElement()),null!=r&&(0<=e.inArray(t.el,e(r).parents())||r==t.el)?r:null)),0<e(l).find(".fr-element").length&&(l=t.el),i+=l.innerHTML}}else"undefined"!=typeof t.doc.selection&&"Text"==t.doc.selection.type&&(i=t.doc.selection.createRange().htmlText);return i},insert:function(n,r,o){var i,a,s;if(t.selection.isCollapsed()||t.selection.remove(),i=r?n:t.clean.html(n),n.indexOf('class="fr-marker"')<0&&(a=i,(s=t.doc.createElement("div")).innerHTML=a,t.selection.setAtEnd(s,!0),i=s.innerHTML),t.node.isEmpty(t.el)&&!t.opts.keepFormatOnDelete&&N(i))t.el.innerHTML=i;else{var l=t.markers.insert();if(l){t.node.isLastSibling(l)&&e(l).parent().hasClass("fr-deletable")&&e(l).insertAfter(e(l).parent());var d=t.node.blockParent(l);if((N(i)||o)&&(t.node.deepestParent(l)||d&&"LI"==d.tagName)){if(d&&"LI"==d.tagName&&(i=function(n){if(!t.html.defaultTag())return n;var r=t.doc.createElement("div");r.innerHTML=n;for(var o=r.querySelectorAll(":scope > "+t.html.defaultTag()),i=o.length-1;i>=0;i--){var a=o[i];t.node.isBlock(a.previousSibling)||(a.previousSibling&&!t.node.isEmpty(a)&&e("<br>").insertAfter(a.previousSibling),a.outerHTML=a.innerHTML)}return r.innerHTML}(i)),!(l=t.markers.split()))return!1;l.outerHTML=i}else l.outerHTML=i}else t.el.innerHTML=t.el.innerHTML+i}g(),t.keys.positionCaret(),t.events.trigger("html.inserted")},wrap:d,unwrap:function(){t.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&e(this).before("<br>"),e(this).replaceWith(e(this).attr("data-empty")||!this.nextSibling||t.node.isBlock(this.nextSibling)&&!e(this.nextSibling).hasClass("fr-temp-div")?e(this).html():e(this).html()+"<br>")}),t.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return""===e(this).attr("class")}).removeAttr("class")},escapeEntities:function(e){return e.replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,"&quot;").replace(/'/gi,"&#39;")},checkIfEmpty:h,extractNode:m,extractNodeAttrs:E,extractDoctype:v,cleanBRs:function(){for(var e=t.el.getElementsByTagName("br"),n=0;n<e.length;n++)u(e[n])},_init:function(){if(t.$wp){var e=function(){C(),t.placeholder&&setTimeout(t.placeholder.refresh,0)};t.events.on("mouseup",e),t.events.on("keydown",e),t.events.on("contentChanged",h)}}}},e.extend(e.FE.DEFAULTS,{height:null,heightMax:null,heightMin:null,width:null}),e.FE.MODULES.size=function(e){function t(){n(),e.opts.height&&e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom"))),e.$iframe.height(e.$el.outerHeight(!0))}function n(){e.opts.heightMin?e.$el.css("minHeight",e.opts.heightMin):e.$el.css("minHeight",""),e.opts.heightMax?(e.$wp.css("maxHeight",e.opts.heightMax),e.$wp.css("overflow","auto")):(e.$wp.css("maxHeight",""),e.$wp.css("overflow","")),e.opts.height?(e.$wp.height(e.opts.height),e.$wp.css("overflow","auto"),e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom")))):(e.$wp.css("height",""),e.opts.heightMin||e.$el.css("minHeight",""),e.opts.heightMax||e.$wp.css("overflow","")),e.opts.width&&e.$box.width(e.opts.width)}return{_init:function(){return e.$wp?(n(),void(e.$iframe&&(e.events.on("keyup keydown",function(){setTimeout(t,0)},!0),e.events.on("commands.after html.set init initialized paste.after",t)))):!1},syncIframe:t,refresh:n}},e.extend(e.FE.DEFAULTS,{language:null}),e.FE.LANGUAGE={},e.FE.MODULES.language=function(t){var n;return{_init:function(){e.FE.LANGUAGE&&(n=e.FE.LANGUAGE[t.opts.language]),n&&n.direction&&(t.opts.direction=n.direction)},translate:function(e){return n&&n.translation[e]&&n.translation[e].length?n.translation[e]:e}}},e.extend(e.FE.DEFAULTS,{placeholderText:"Type something"}),e.FE.MODULES.placeholder=function(t){function n(){t.$placeholder||(t.$placeholder=e('<span class="fr-placeholder"></span>'),t.$wp.append(t.$placeholder));var n=t.opts.iframe?t.$iframe.prev().outerHeight(!0):t.$el.prev().outerHeight(!0),r=0,o=0,i=0,a=0,s=0,l=0,d=t.node.contents(t.el),c=e(t.selection.element()).css("text-align");if(d.length&&d[0].nodeType==Node.ELEMENT_NODE){var p=e(d[0]);(!t.opts.toolbarInline||0<t.$el.prev().length)&&t.ready&&(r=t.helpers.getPX(p.css("margin-top")),a=t.helpers.getPX(p.css("padding-top")),o=t.helpers.getPX(p.css("margin-left")),i=t.helpers.getPX(p.css("margin-right")),s=t.helpers.getPX(p.css("padding-left")),l=t.helpers.getPX(p.css("padding-right"))),t.$placeholder.css("font-size",p.css("font-size")),t.$placeholder.css("line-height",p.css("line-height"))}else t.$placeholder.css("font-size",t.$el.css("font-size")),t.$placeholder.css("line-height",t.$el.css("line-height"));if(t.$wp.addClass("show-placeholder"),t.$placeholder.css({marginTop:Math.max(t.helpers.getPX(t.$el.css("margin-top")),r)+(n||0),paddingTop:Math.max(t.helpers.getPX(t.$el.css("padding-top")),a),paddingLeft:Math.max(t.helpers.getPX(t.$el.css("padding-left")),s),marginLeft:Math.max(t.helpers.getPX(t.$el.css("margin-left")),o),paddingRight:Math.max(t.helpers.getPX(t.$el.css("padding-right")),l),marginRight:Math.max(t.helpers.getPX(t.$el.css("margin-right")),i),textAlign:c}).text(t.language.translate(t.opts.placeholderText||t.$oel.attr("placeholder")||"")),t.$placeholder.html(t.$placeholder.text().replace(/\n/g,"<br>")),t.size.refresh(),t.$placeholder.outerHeight()>t.$el.height()){var f=t.opts.heightMin;t.opts.heightMin=t.$placeholder.outerHeight()+(t.$tb?t.$tb.height():0),t.size.refresh(),t.opts.heightMin=f}}function r(){t.$wp.removeClass("show-placeholder"),t.size.refresh()}function o(){return t.$wp?void(t.core.isEmpty()?n():r()):!1}return{_init:function(){return t.$wp?void t.events.on("init input keydown keyup contentChanged initialized",o):!1},show:n,hide:r,refresh:o,isVisible:function(){return!!t.$wp&&t.node.hasClass(t.$wp.get(0),"show-placeholder")}}},e.FE.MODULES.edit=function(e){function t(){if(e.browser.mozilla)try{e.doc.execCommand("enableObjectResizing",!1,"false"),e.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(t){}if(e.browser.msie)try{e.doc.body.addEventListener("mscontrolselect",function(e){return e.preventDefault(),!1})}catch(t){}}function n(){return r}var r=!1;return{_init:function(){e.events.on("focus",function(){n()?e.edit.off():e.edit.on()})},on:function(){e.$wp?(e.$el.attr("contenteditable",!0),e.$el.removeClass("fr-disabled").attr("aria-disabled",!1),e.$tb&&e.$tb.removeClass("fr-disabled").removeAttr("aria-disabled"),t()):e.$el.is("a")&&e.$el.attr("contenteditable",!0),r=!1},off:function(){e.events.disableBlur(),e.$wp?(e.$el.attr("contenteditable",!1),e.$el.addClass("fr-disabled").attr("aria-disabled",!0),e.$tb&&e.$tb.addClass("fr-disabled").attr("aria-disabled",!0)):e.$el.is("a")&&e.$el.attr("contenteditable",!1),e.events.enableBlur(),r=!0},disableDesign:t,isDisabled:n}},e.extend(e.FE.DEFAULTS,{documentReady:!1,editorClass:null,typingTimer:500,iframe:!1,requestWithCORS:!0,requestWithCredentials:!1,requestHeaders:{},useClasses:!0,spellcheck:!0,iframeDefaultStyle:'html{margin:0px;height:auto;}body{height:auto;padding:10px;background:transparent;color:#000000;position:relative;z-index: 2;-webkit-user-select:auto;margin:0px;overflow:hidden;min-height:20px;}body:after{content:"";display:block;clear:both;}body::-moz-selection{background:#b5d6fd;color:#000;}body::selection{background:#b5d6fd;color:#000;}',iframeStyle:"",iframeStyleFiles:[],direction:"auto",zIndex:1,tabIndex:null,disableRightClick:!1,scrollableContainer:"body",keepFormatOnDelete:!1,theme:null}),e.FE.MODULES.core=function(t){function n(){if(t.$box.addClass("fr-box"+(t.opts.editorClass?" "+t.opts.editorClass:"")),t.$box.attr("role","application"),t.$wp.addClass("fr-wrapper"),t.opts.documentReady&&t.$box.addClass("fr-document"),t.opts.iframe||t.$el.addClass("fr-element fr-view"),t.opts.iframe){r=[],t.$iframe.addClass("fr-iframe"),t.$el.addClass("fr-view");for(var e=0;e<t.o_doc.styleSheets.length;e++){var n;try{n=t.o_doc.styleSheets[e].cssRules}catch(o){}if(n)for(var i=0,a=n.length;a>i;i++)!n[i].selectorText||0!==n[i].selectorText.indexOf(".fr-view")&&0!==n[i].selectorText.indexOf(".fr-element")||0<n[i].style.cssText.length&&r.push(0===n[i].selectorText.indexOf(".fr-view")?{selector:n[i].selectorText.replace(/\.fr-view/g,"body"),style:n[i].style}:{selector:n[i].selectorText.replace(/\.fr-element/g,"body"),style:n[i].style})}}"auto"!=t.opts.direction&&t.$box.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.$el.attr("dir",t.opts.direction),t.$wp.attr("dir",t.opts.direction),1<t.opts.zIndex&&t.$box.css("z-index",t.opts.zIndex),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"),t.opts.tabIndex=t.opts.tabIndex||t.$oel.attr("tabIndex"),t.opts.tabIndex&&t.$el.attr("tabIndex",t.opts.tabIndex)}var r;return{_init:function(){if(e.FE.INSTANCES.push(t),t.drag_support={filereader:"undefined"!=typeof FileReader,formdata:!!t.win.FormData,progress:"upload"in new XMLHttpRequest},t.$wp){n(),t.html.set(t._original_html),t.$el.attr("spellcheck",t.opts.spellcheck),t.helpers.isMobile()&&(t.$el.attr("autocomplete",t.opts.spellcheck?"on":"off"),t.$el.attr("autocorrect",t.opts.spellcheck?"on":"off"),t.$el.attr("autocapitalize",t.opts.spellcheck?"on":"off")),t.opts.disableRightClick&&t.events.$on(t.$el,"contextmenu",function(e){return 2==e.button?!1:void 0});try{t.doc.execCommand("styleWithCSS",!1,!1)}catch(r){}}"TEXTAREA"==t.$oel.get(0).tagName&&(t.events.on("contentChanged",function(){t.$oel.val(t.html.get())}),t.events.on("form.submit",function(){t.$oel.val(t.html.get())}),t.events.on("form.reset",function(){t.html.set(t._original_html)}),t.$oel.val(t.html.get())),t.helpers.isIOS()&&t.events.$on(t.$doc,"selectionchange",function(){t.$doc.get(0).hasFocus()||t.$win.get(0).focus()}),t.events.trigger("init"),t.opts.autofocus&&!t.opts.initOnClick&&t.$wp&&t.events.on("initialized",function(){t.events.focus(!0)})},destroy:function(e){"TEXTAREA"==t.$oel.get(0).tagName&&t.$oel.val(e),t.$box&&t.$box.removeAttr("role"),t.$wp&&("TEXTAREA"==t.$oel.get(0).tagName?(t.$el.html(""),t.$wp.html(""),t.$box.replaceWith(t.$oel),t.$oel.show()):(t.$wp.replaceWith(e),t.$el.html(""),t.$box.removeClass("fr-view fr-ltr fr-box "+(t.opts.editorClass||"")),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"))),this.$wp=null,this.$el=null,this.el=null,this.$box=null},isEmpty:function(){return t.node.isEmpty(t.el)},getXHR:function(e,n){var r=new XMLHttpRequest;for(var o in r.open(n,e,!0),t.opts.requestWithCredentials&&(r.withCredentials=!0),t.opts.requestHeaders)t.opts.requestHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,t.opts.requestHeaders[o]);return r},injectStyle:function(n){if(t.opts.iframe){t.$head.find("style[data-fr-style], link[data-fr-style]").remove();for(var o=e('<style data-fr-style="true">'+n+"</style>").appendTo(t.$head)[0].sheet,i=0;i<r.length;i++)for(var a=o.insertRule(r[i].selector+"{}",o.cssRules.length),s=0;s<r[i].style.length;s++){var l=r[i].style[s],d=r[i].style[l];t.browser.safari&&"content"===l&&(d='"'+d+'"'),o.cssRules[a].style[l]=d}for(var c=0;c<t.opts.iframeStyleFiles.length;c++){var p=e('<link data-fr-style="true" rel="stylesheet" href="'+t.opts.iframeStyleFiles[c]+'">');p.get(0).addEventListener("load",t.size.syncIframe),t.$head.append(p)}}},hasFocus:function(){return t.browser.mozilla&&t.helpers.isMobile()?t.selection.inEditor():t.node.hasFocus(t.el)||0<t.$el.find("*:focus").length},sameInstance:function(e){if(!e)return!1;var n=e.data("instance");return!!n&&n.id==t.id}}},e.FE.MODULES.cursorLists=function(t){function n(e){for(var t=e;"LI"!=t.tagName;)t=t.parentNode;return t}function r(e){for(var n=e;!t.node.isList(n);)n=n.parentNode;return n}return{_startEnter:function(o){var i,a=n(o),s=a.nextSibling,l=a.previousSibling,d=t.html.defaultTag();if(t.node.isEmpty(a,!0)&&s){for(var c="",p="",f=o.parentNode;!t.node.isList(f)&&f.parentNode&&("LI"!==f.parentNode.tagName||f.parentNode===a);)c=t.node.openTagString(f)+c,p+=t.node.closeTagString(f),f=f.parentNode;c=t.node.openTagString(f)+c,p+=t.node.closeTagString(f);var u="";for(u=f.parentNode&&"LI"==f.parentNode.tagName?p+"<li>"+e.FE.MARKERS+"<br>"+c:d?p+"<"+d+">"+e.FE.MARKERS+"<br></"+d+">"+c:p+e.FE.MARKERS+"<br>"+c;["UL","OL"].indexOf(f.tagName)<0||f.parentNode&&"LI"===f.parentNode.tagName;)f=f.parentNode;e(a).replaceWith('<span id="fr-break"></span>');var g=t.node.openTagString(f)+e(f).html()+t.node.closeTagString(f);g=g.replace(/<span id="fr-break"><\/span>/g,u),e(f).replaceWith(g),t.$el.find("li:empty").remove()}else if(l&&s||!t.node.isEmpty(a,!0)){for(var h="<br>",m=o.parentNode;m&&"LI"!=m.tagName;)h=t.node.openTagString(m)+h+t.node.closeTagString(m),m=m.parentNode;e(a).before("<li>"+h+"</li>"),e(o).remove()}else if(l){i=r(a);for(var E=e.FE.MARKERS+"<br>",v=o.parentNode;v&&"LI"!=v.tagName;)E=t.node.openTagString(v)+E+t.node.closeTagString(v),v=v.parentNode;i.parentNode&&"LI"==i.parentNode.tagName?e(i.parentNode).after("<li>"+E+"</li>"):e(i).after(d?"<"+d+">"+E+"</"+d+">":E),e(a).remove()}else(i=r(a)).parentNode&&"LI"==i.parentNode.tagName?s?e(i.parentNode).before(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):e(i.parentNode).after(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):e(i).before(d?"<"+d+">"+e.FE.MARKERS+"<br></"+d+">":e.FE.MARKERS+"<br>"),e(a).remove()},_middleEnter:function(r){for(var o=n(r),i="",a=r,s="",l="",d=!1;a!=o;){var c="A"==(a=a.parentNode).tagName&&t.cursor.isAtEnd(r,a)?"fr-to-remove":"";d||a==o||t.node.isBlock(a)||(d=!0,s+=e.FE.INVISIBLE_SPACE),s=t.node.openTagString(e(a).clone().addClass(c).get(0))+s,l=t.node.closeTagString(a)+l}i=l+i+s+e.FE.MARKERS+(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:""),e(r).replaceWith('<span id="fr-break"></span>');var p=t.node.openTagString(o)+e(o).html()+t.node.closeTagString(o);p=p.replace(/<span id="fr-break"><\/span>/g,i),e(o).replaceWith(p)},_endEnter:function(r){for(var o=n(r),i=e.FE.MARKERS,a="",s=r,l=!1;s!=o;){var d="A"==(s=s.parentNode).tagName&&t.cursor.isAtEnd(r,s)?"fr-to-remove":"";l||s==o||t.node.isBlock(s)||(l=!0,a+=e.FE.INVISIBLE_SPACE),a=t.node.openTagString(e(s).clone().addClass(d).get(0))+a,i+=t.node.closeTagString(s)}var c=a+i;e(r).remove(),e(o).after(c)},_backspace:function(o){var i=n(o),a=i.previousSibling;if(a){a=e(a).find(t.html.blockTagsQuery()).get(-1)||a,e(o).replaceWith(e.FE.MARKERS);var s=t.node.contents(a);s.length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(i).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==i&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var l,d=t.node.contents(i)[0];d&&!t.node.isList(d);)l=d.nextSibling,e(a).append(d),d=l;for(a=i.previousSibling;d;)l=d.nextSibling,e(a).append(d),d=l;1<(s=t.node.contents(a)).length&&"BR"===s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(i).remove()}else{var c=r(i);if(e(o).replaceWith(e.FE.MARKERS),c.parentNode&&"LI"==c.parentNode.tagName){var p=c.previousSibling;t.node.isBlock(p)?(e(i).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==i&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(p).append(e(i).html())):e(c).before(e(i).html())}else{var f=t.html.defaultTag();e(c).before(f&&0===e(i).find(t.html.blockTagsQuery()).length?"<"+f+">"+e(i).html()+"</"+f+">":e(i).html())}e(i).remove(),t.html.wrap(),0===e(c).find("li").length&&e(c).remove()}},_del:function(r){var o,i=n(r),a=i.nextSibling;if(a){(o=t.node.contents(a)).length&&"BR"==o[0].tagName&&e(o[0]).remove(),e(a).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==a&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var s,l=r,d=t.node.contents(a)[0];d&&!t.node.isList(d);)s=d.nextSibling,e(l).after(d),l=d,d=s;for(;d;)s=d.nextSibling,e(i).append(d),d=s;e(r).replaceWith(e.FE.MARKERS),e(a).remove()}else{for(var c=i;!c.nextSibling&&c!=t.el;)c=c.parentNode;if(c==t.el)return!1;if(c=c.nextSibling,t.node.isBlock(c))e.FE.NO_DELETE_TAGS.indexOf(c.tagName)<0&&(e(r).replaceWith(e.FE.MARKERS),(o=t.node.contents(i)).length&&"BR"==o[o.length-1].tagName&&e(o[o.length-1]).remove(),e(i).append(e(c).html()),e(c).remove());else for((o=t.node.contents(i)).length&&"BR"==o[o.length-1].tagName&&e(o[o.length-1]).remove(),e(r).replaceWith(e.FE.MARKERS);c&&!t.node.isBlock(c)&&"BR"!=c.tagName;)e(i).append(e(c)),c=c.nextSibling}}}},e.FE.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],e.FE.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],e.FE.MODULES.cursor=function(t){function n(e){return!(!e||!t.node.isBlock(e)&&(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?!n(e.nextSibling):e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling)||!n(e.parentNode)))}function r(e){return!(!e||!t.node.isBlock(e)&&(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?!r(e.previousSibling):e.previousSibling||(e.previousSibling||!t.node.hasClass(e.parentNode,"fr-inner"))&&!r(e.parentNode)))}function o(e,n){return!!e&&e!=t.$wp.get(0)&&(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?o(e.previousSibling,n):!e.previousSibling&&(e.parentNode==n||o(e.parentNode,n)))}function i(e,n){return!!e&&e!=t.$wp.get(0)&&(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?i(e.nextSibling,n):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling)||e.parentNode!=n&&!i(e.parentNode,n)))}function a(n){return 0<e(n).parentsUntil(t.$el,"LI").length&&0===e(n).parentsUntil("LI","TABLE").length}function s(e,t){var n=new RegExp((t?"^":"")+"(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})"+(t?"":"$"),"i"),r=e.match(n);return r?r[0].length:1}function l(n){for(var r,o=n;!o.previousSibling;)if(o=o.parentNode,t.node.isElement(o))return!1;if(o=o.previousSibling,!t.node.isBlock(o)&&t.node.isEditable(o)){for(r=t.node.contents(o);o.nodeType!=Node.TEXT_NODE&&!t.node.isDeletable(o)&&r.length&&t.node.isEditable(o);)o=r[r.length-1],r=t.node.contents(o);if(o.nodeType==Node.TEXT_NODE){var i=o.textContent,a=i.length;if(i.length&&"\n"===i[i.length-1])return o.textContent=i.substring(0,a-2),0===o.textContent.length&&o.parentNode.removeChild(o),l(n);t.opts.tabSpaces&&i.length>=t.opts.tabSpaces&&0===i.substr(i.length-t.opts.tabSpaces,i.length-1).replace(/ /g,"").replace(new RegExp(e.FE.UNICODE_NBSP,"g"),"").length&&(a=i.length-t.opts.tabSpaces+1),o.textContent=i.substring(0,a-s(i)),t.opts.htmlUntouched&&!n.nextSibling&&o.textContent.length&&" "===o.textContent[o.textContent.length-1]&&(o.textContent=o.textContent.substring(0,o.textContent.length-1)+e.FE.UNICODE_NBSP);var d=i.length!=o.textContent.length;if(0===o.textContent.length)if(d&&t.opts.keepFormatOnDelete)e(o).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS);else if(0!==i.length&&t.node.isBlock(o.parentNode))e(o).after(e.FE.MARKERS);else if((2!=o.parentNode.childNodes.length||o.parentNode!=n.parentNode)&&1!=o.parentNode.childNodes.length||t.node.isBlock(o.parentNode)||t.node.isElement(o.parentNode)||!t.node.isDeletable(o.parentNode)){for(;!t.node.isElement(o.parentNode)&&t.node.isEmpty(o.parentNode)&&e.FE.NO_DELETE_TAGS.indexOf(o.parentNode.tagName)<0;){var c=o;o=o.parentNode,c.parentNode.removeChild(c)}e(o).after(e.FE.MARKERS),t.node.isElement(o.parentNode)&&!n.nextSibling&&o.previousSibling&&"BR"==o.previousSibling.tagName&&e(n).after("<br>"),o.parentNode.removeChild(o)}else e(o.parentNode).after(e.FE.MARKERS),e(o.parentNode).remove();else e(o).after(e.FE.MARKERS)}else t.node.isDeletable(o)?(e(o).after(e.FE.MARKERS),e(o).remove()):n.nextSibling&&"BR"==n.nextSibling.tagName&&t.node.isVoid(o)&&"BR"!=o.tagName?(e(n.nextSibling).remove(),e(n).replaceWith(e.FE.MARKERS)):!1!==t.events.trigger("node.remove",[e(o)])&&(e(o).after(e.FE.MARKERS),e(o).remove())}else if(e.FE.NO_DELETE_TAGS.indexOf(o.tagName)<0&&(t.node.isEditable(o)||t.node.isDeletable(o)))if(t.node.isDeletable(o))e(n).replaceWith(e.FE.MARKERS),e(o).remove();else if(t.node.isEmpty(o)&&!t.node.isList(o))e(o).remove(),e(n).replaceWith(e.FE.MARKERS);else{for(t.node.isList(o)&&(o=e(o).find("li:last").get(0)),(r=t.node.contents(o))&&"BR"==r[r.length-1].tagName&&e(r[r.length-1]).remove(),r=t.node.contents(o);r&&t.node.isBlock(r[r.length-1]);)o=r[r.length-1],r=t.node.contents(o);e(o).append(e.FE.MARKERS);for(var p=n;!p.previousSibling;)p=p.parentNode;for(;p&&"BR"!==p.tagName&&!t.node.isBlock(p);){var f=p;p=p.nextSibling,e(o).append(f)}p&&"BR"==p.tagName&&e(p).remove(),e(n).remove()}else n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove();return!0}function d(n){var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,o=t.node.deepestParent(n,[],!r);if(o&&"BLOCKQUOTE"==o.tagName){var i=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);i&&i.nextSibling&&(o=i)}if(null!==o){var a,s=o.nextSibling;if(t.node.isBlock(o)&&(t.node.isEditable(o)||t.node.isDeletable(o))&&s&&e.FE.NO_DELETE_TAGS.indexOf(s.tagName)<0)if(t.node.isDeletable(s))e(s).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isBlock(s)&&t.node.isEditable(s))if(t.node.isList(s))if(t.node.isEmpty(o,!0))e(o).remove(),e(s).find("li:first").prepend(e.FE.MARKERS);else{var l=e(s).find("li:first");"BLOCKQUOTE"==o.tagName&&(a=t.node.contents(o)).length&&t.node.isBlock(a[a.length-1])&&(o=a[a.length-1]),0===l.find("ul, ol").length&&(e(n).replaceWith(e.FE.MARKERS),l.find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==l.get(0)&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(o).append(t.node.contents(l.get(0))),l.remove(),0===e(s).find("li").length&&e(s).remove())}else{if((a=t.node.contents(s)).length&&"BR"==a[0].tagName&&e(a[0]).remove(),"BLOCKQUOTE"!=s.tagName&&"BLOCKQUOTE"==o.tagName)for(a=t.node.contents(o);a.length&&t.node.isBlock(a[a.length-1]);)o=a[a.length-1],a=t.node.contents(o);else if("BLOCKQUOTE"==s.tagName&&"BLOCKQUOTE"!=o.tagName)for(a=t.node.contents(s);a.length&&t.node.isBlock(a[0]);)s=a[0],a=t.node.contents(s);e(n).replaceWith(e.FE.MARKERS),e(o).append(s.innerHTML),e(s).remove()}else{for(e(n).replaceWith(e.FE.MARKERS);s&&"BR"!==s.tagName&&!t.node.isBlock(s)&&t.node.isEditable(s);){var d=s;s=s.nextSibling,e(o).append(d)}s&&"BR"==s.tagName&&t.node.isEditable(s)&&e(s).remove()}}}function c(r){for(var o,i=r;!i.nextSibling;)if(i=i.parentNode,t.node.isElement(i))return!1;
if("BR"==(i=i.nextSibling).tagName&&t.node.isEditable(i))if(i.nextSibling){if(t.node.isBlock(i.nextSibling)&&t.node.isEditable(i.nextSibling)){if(!(e.FE.NO_DELETE_TAGS.indexOf(i.nextSibling.tagName)<0))return void e(i).remove();i=i.nextSibling,e(i.previousSibling).remove()}}else if(n(i))return void(a(r)?t.cursorLists._del(r):t.node.deepestParent(i)&&((!t.node.isEmpty(t.node.blockParent(i))||(t.node.blockParent(i).nextSibling&&e.FE.NO_DELETE_TAGS.indexOf(t.node.blockParent(i).nextSibling.tagName))<0)&&e(i).remove(),d(r)));if(!t.node.isBlock(i)&&t.node.isEditable(i)){for(o=t.node.contents(i);i.nodeType!=Node.TEXT_NODE&&o.length&&!t.node.isDeletable(i)&&t.node.isEditable(i);)i=o[0],o=t.node.contents(i);i.nodeType==Node.TEXT_NODE?(e(i).before(e.FE.MARKERS),i.textContent.length&&(i.textContent=i.textContent.substring(s(i.textContent,!0),i.textContent.length))):t.node.isDeletable(i)?(e(i).before(e.FE.MARKERS),e(i).remove()):!1!==t.events.trigger("node.remove",[e(i)])&&(e(i).before(e.FE.MARKERS),e(i).remove()),e(r).remove()}else if(e.FE.NO_DELETE_TAGS.indexOf(i.tagName)<0&&(t.node.isEditable(i)||t.node.isDeletable(i)))if(t.node.isDeletable(i))e(r).replaceWith(e.FE.MARKERS),e(i).remove();else if(t.node.isList(i))r.previousSibling?(e(i).find("li:first").prepend(r),t.cursorLists._backspace(r)):(e(i).find("li:first").prepend(e.FE.MARKERS),e(r).remove());else if((o=t.node.contents(i))&&o.length&&"BR"==o[0].tagName&&e(o[0]).remove(),o&&"BLOCKQUOTE"==i.tagName){var l=o[0];for(e(r).before(e.FE.MARKERS);l&&"BR"!=l.tagName;){var c=l;l=l.nextSibling,e(r).before(c)}l&&"BR"==l.tagName&&e(l).remove()}else e(r).after(e(i).html()).after(e.FE.MARKERS),e(i).remove()}function p(){for(var e=t.el.querySelectorAll("blockquote:empty"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n])}function f(n,r,o){var a,s=t.node.deepestParent(n,[],!o);if(s&&"BLOCKQUOTE"==s.tagName)return i(n,s)?(a=t.html.defaultTag(),r?e(n).replaceWith("<br>"+e.FE.MARKERS):e(s).after(a?"<"+a+">"+e.FE.MARKERS+"<br></"+a+">":e.FE.MARKERS+"<br>"),e(n).remove()):u(n,r,o),!1;if(null==s)e(n).replaceWith((a=t.html.defaultTag())&&t.node.isElement(n.parentNode)?"<"+a+">"+e.FE.MARKERS+"<br></"+a+">":!n.previousSibling||e(n.previousSibling).is("br")||n.nextSibling?"<br>"+e.FE.MARKERS:"<br>"+e.FE.MARKERS+"<br>");else{var l=n,d="";"PRE"!=s.tagName||n.nextSibling||(r=!0),t.node.isBlock(s)&&!r||(d="<br/>");var c,p="",f="",g="",h="";(a=t.html.defaultTag())&&t.node.isBlock(s)&&(g="<"+a+">",h="</"+a+">",s.tagName==a.toUpperCase()&&(g=t.node.openTagString(e(s).clone().removeAttr("id").get(0))));do if(l=l.parentNode,!r||l!=s||r&&!t.node.isBlock(s))if(p+=t.node.closeTagString(l),l==s&&t.node.isBlock(s))f=g+f;else{var m=("A"==l.tagName||e(l).hasClass("fa"))&&i(n,l)?"fr-to-remove":"";f=t.node.openTagString(e(l).clone().addClass(m).get(0))+f}while(l!=s);d=p+d+f+(n.parentNode==s&&t.node.isBlock(s)?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS,t.node.isBlock(s)&&!e(s).find("*:last").is("br")&&e(s).append("<br/>"),e(n).after('<span id="fr-break"></span>'),e(n).remove(),s.nextSibling&&!t.node.isBlock(s.nextSibling)||t.node.isBlock(s)||e(s).after("<br>"),c=(c=!r&&t.node.isBlock(s)?t.node.openTagString(s)+e(s).html()+h:t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s)).replace(/<span id="fr-break"><\/span>/g,d),e(s).replaceWith(c)}}function u(n,r,a){var s=t.node.deepestParent(n,[],!a);if(null==s)t.html.defaultTag()&&n.parentNode===t.el?e(n).replaceWith("<"+t.html.defaultTag()+">"+e.FE.MARKERS+"<br></"+t.html.defaultTag()+">"):(n.nextSibling&&!t.node.isBlock(n.nextSibling)||e(n).after("<br>"),e(n).replaceWith("<br>"+e.FE.MARKERS));else if(n.previousSibling&&"IMG"==n.previousSibling.tagName||n.nextSibling&&"IMG"==n.nextSibling.tagName)e(n).replaceWith("<"+t.html.defaultTag()+">"+e.FE.MARKERS+"<br></"+t.html.defaultTag()+">");else{var l=n,d="";"PRE"==s.tagName&&(r=!0),t.node.isBlock(s)&&!r||(d="<br>");var c="",p="";do{var f=l;if(l=l.parentNode,"BLOCKQUOTE"==s.tagName&&t.node.isEmpty(f)&&!t.node.hasClass(f,"fr-marker")&&0<e(f).find(n).length&&e(f).after(n),"BLOCKQUOTE"!=s.tagName||!i(n,l)&&!o(n,l))if(!r||l!=s||r&&!t.node.isBlock(s)){c+=t.node.closeTagString(l);var u="A"==l.tagName&&i(n,l)||e(l).hasClass("fa")?"fr-to-remove":"";p=t.node.openTagString(e(l).clone().addClass(u).removeAttr("id").get(0))+p}else"BLOCKQUOTE"==s.tagName&&r&&(p=c="")}while(l!=s);var g=s==n.parentNode&&t.node.isBlock(s)||n.nextSibling;if("BLOCKQUOTE"==s.tagName)if(n.previousSibling&&t.node.isBlock(n.previousSibling)&&n.nextSibling&&"BR"==n.nextSibling.tagName&&(e(n.nextSibling).after(n),n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove()),r)d=c+d+e.FE.MARKERS+p;else{var h=t.html.defaultTag();d=c+d+(h?"<"+h+">":"")+e.FE.MARKERS+"<br>"+(h?"</"+h+">":"")+p}else d=c+d+p+(g?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS;e(n).replaceWith('<span id="fr-break"></span>');var m=t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s);m=m.replace(/<span id="fr-break"><\/span>/g,d),e(s).replaceWith(m)}}return{enter:function(s){var l=t.markers.insert();if(!l)return!0;for(var d=l.parentNode;d&&!t.node.isElement(d);){if("false"===d.getAttribute("contenteditable"))return e(l).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===d.getAttribute("contenteditable"))break;d=d.parentNode}t.el.normalize();var c=!1;0<e(l).parentsUntil(t.$el,"BLOCKQUOTE").length&&(c=!0),e(l).parentsUntil(t.$el,"TD, TH").length&&(c=!1),n(l)?!a(l)||s||c?f(l,s,c):t.cursorLists._endEnter(l):r(l)?!a(l)||s||c?function p(n,r,a){var s,l=t.node.deepestParent(n,[],!a);if(l&&"TABLE"==l.tagName)return e(l).find("td:first, th:first").prepend(n),p(n,r,a);if(l&&"BLOCKQUOTE"==l.tagName)if(o(n,l)){if(!r)return e(l).before((s=t.html.defaultTag())?"<"+s+">"+e.FE.MARKERS+"<br></"+s+">":e.FE.MARKERS+"<br>"),e(n).remove(),!1}else i(n,l)?f(n,r,!0):u(n,r,!0);if(null==l)e(n).replaceWith((s=t.html.defaultTag())&&t.node.isElement(n.parentNode)?"<"+s+">"+e.FE.MARKERS+"<br></"+s+">":"<br>"+e.FE.MARKERS);else{if(t.node.isBlock(l))if("PRE"==l.tagName&&(r=!0),r)e(n).remove(),e(l).prepend("<br>"+e.FE.MARKERS);else{if(t.node.isEmpty(l,!0))return f(n,r,a);if(n.nextSibling&&"IMG"==n.nextSibling.tagName||n.nextSibling&&n.nextSibling.nextElementSibling&&"IMG"==n.nextSibling.nextElementSibling)e(n).replaceWith("<"+t.html.defaultTag()+">"+e.FE.MARKERS+"<br></"+t.html.defaultTag()+">");else if(t.opts.keepFormatOnDelete){for(var d=n,c=e.FE.INVISIBLE_SPACE;d!=l&&!t.node.isElement(d);)d=d.parentNode,c=t.node.openTagString(d)+c+t.node.closeTagString(d);e(l).before(c)}else e(l).before(t.node.openTagString(e(l).clone().removeAttr("id").get(0))+"<br>"+t.node.closeTagString(l))}else e(l).before("<br>");e(n).remove()}}(l,s,c):t.cursorLists._startEnter(l):!a(l)||s||c?u(l,s,c):t.cursorLists._middleEnter(l),t.$el.find(".fr-to-remove").each(function(){for(var n=t.node.contents(this),r=0;r<n.length;r++)n[r].nodeType==Node.TEXT_NODE&&(n[r].textContent=n[r].textContent.replace(/\u200B/g,""));e(this).replaceWith(this.innerHTML)}),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore()},backspace:function(){var i=!1,d=t.markers.insert();if(!d)return!0;for(var c=d.parentNode;c&&!t.node.isElement(c);){if("false"===c.getAttribute("contenteditable"))return e(d).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===c.getAttribute("contenteditable"))break;c=c.parentNode}t.el.normalize();var f=d.previousSibling;if(f){var u=f.textContent;u&&u.length&&8203==u.charCodeAt(u.length-1)&&(1==u.length?e(f).remove():f.textContent=f.textContent.substr(0,u.length-s(u)))}return n(d)?a(d)&&o(d,e(d).parents("li:first").get(0))?t.cursorLists._backspace(d):i=l(d):r(d)?a(d)&&o(d,e(d).parents("li:first").get(0))?t.cursorLists._backspace(d):function(n){for(var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,o=t.node.deepestParent(n,[],!r),i=o;o&&!o.previousSibling&&"BLOCKQUOTE"!=o.tagName&&o.parentElement!=t.el&&!t.node.hasClass(o.parentElement,"fr-inner")&&e.FE.SIMPLE_ENTER_TAGS.indexOf(o.parentElement.tagName)<0;)o=o.parentElement;if(o&&"BLOCKQUOTE"==o.tagName){var a=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);a&&a.previousSibling&&(i=o=a)}if(null!==o){var s,l=o.previousSibling;if(t.node.isBlock(o)&&t.node.isEditable(o))if(l&&e.FE.NO_DELETE_TAGS.indexOf(l.tagName)<0){if(t.node.isDeletable(l))e(l).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isEditable(l))if(t.node.isBlock(l))if(t.node.isEmpty(l)&&!t.node.isList(l))e(l).remove(),e(n).after(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:"");else{if(t.node.isList(l)&&(l=e(l).find("li:last").get(0)),(s=t.node.contents(l)).length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),"BLOCKQUOTE"==l.tagName&&"BLOCKQUOTE"!=o.tagName)for(s=t.node.contents(l);s.length&&t.node.isBlock(s[s.length-1]);)l=s[s.length-1],s=t.node.contents(l);else if("BLOCKQUOTE"!=l.tagName&&"BLOCKQUOTE"==i.tagName)for(s=t.node.contents(i);s.length&&t.node.isBlock(s[0]);)i=s[0],s=t.node.contents(i);if(t.node.isEmpty(o))e(n).remove(),t.selection.setAtEnd(l,!0);else{e(n).replaceWith(e.FE.MARKERS);var d=l.childNodes;t.node.isBlock(d[d.length-1])?e(d[d.length-1]).append(i.innerHTML):e(l).append(i.innerHTML)}e(i).remove(),t.node.isEmpty(o)&&e(o).remove()}else e(n).replaceWith(e.FE.MARKERS),"BLOCKQUOTE"==o.tagName&&l.nodeType==Node.ELEMENT_NODE?e(l).remove():(e(l).after(t.node.isEmpty(o)?"":e(o).html()),e(o).remove(),"BR"==l.tagName&&e(l).remove())}else l||(o&&"BLOCKQUOTE"===o.tagName&&0===e(o).text().replace(/\u200B/g,"").length?e(o).remove():t.node.isEmpty(o)&&o.parentNode&&t.node.isEditable(o.parentNode)&&o.parentNode!=t.el&&e(o.parentNode).remove())}}(d):i=l(d),e(d).remove(),p(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore(),i},del:function(){var o=t.markers.insert();if(!o)return!1;if(t.el.normalize(),n(o))if(a(o))if(0===e(o).parents("li:first").find("ul, ol").length)t.cursorLists._del(o);else{var i=e(o).parents("li:first").find("ul:first, ol:first").find("li:first");(i=i.find(t.html.blockTagsQuery()).get(-1)||i).prepend(o),t.cursorLists._backspace(o)}else d(o);else r(o),c(o);e(o).remove(),p(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists()),t.spaces.normalizeAroundCursor(),t.selection.restore()},isAtEnd:i,isAtStart:o}},e.FE.ENTER_P=0,e.FE.ENTER_DIV=1,e.FE.ENTER_BR=2,e.FE.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},e.extend(e.FE.DEFAULTS,{enter:e.FE.ENTER_P,multiLine:!0,tabSpaces:0}),e.FE.MODULES.keys=function(t){function n(){if(t.browser.mozilla&&t.selection.isCollapsed()&&!y){var e=t.selection.ranges(0),n=e.startContainer,r=e.startOffset;n&&n.nodeType==Node.TEXT_NODE&&r<=n.textContent.length&&r>0&&32==n.textContent.charCodeAt(r-1)&&(t.selection.save(),t.spaces.normalize(),t.selection.restore())}}function r(){t.selection.isFull()&&setTimeout(function(){var n=t.html.defaultTag();t.$el.html(n?"<"+n+">"+e.FE.MARKERS+"<br/></"+n+">":e.FE.MARKERS+"<br/>"),t.selection.restore(),t.placeholder.refresh(),t.button.bulkRefresh(),t.undo.saveStep()},0)}function o(){y=!1}function i(){y=!1}function a(){var n=t.html.defaultTag();t.$el.html(n?"<"+n+">"+e.FE.MARKERS+"<br/></"+n+">":e.FE.MARKERS+"<br/>"),t.selection.restore()}function s(n){var r=t.selection.element();if(r&&0<=["INPUT","TEXTAREA"].indexOf(r.tagName))return!0;if(n&&f(n.which))return d(),!0;t.events.disableBlur(),null;var o=n.which;if(16===o)return!0;if((b=o)===e.FE.KEYCODE.IME)return y=!0;y=!1;var i,s,l,c=u(o)&&!p(n)&&!n.altKey,g=o==e.FE.KEYCODE.BACKSPACE||o==e.FE.KEYCODE.DELETE;return(p(n)||n.shiftKey&&(33===o||34===o||35===o||36===o)||!t.selection.isFull()||t.opts.keepFormatOnDelete||t.placeholder.isVisible())&&!(g&&t.placeholder.isVisible()&&t.opts.keepFormatOnDelete)||!c&&!g||(a(),u(o))?(o==e.FE.KEYCODE.ENTER?n.shiftKey?((l=n).preventDefault(),l.stopPropagation(),t.opts.multiLine&&(t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter(!0))):(s=n,t.opts.multiLine?(t.helpers.isIOS()||(s.preventDefault(),s.stopPropagation()),t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter()):(s.preventDefault(),s.stopPropagation())):o===e.FE.KEYCODE.BACKSPACE&&(n.metaKey||n.ctrlKey)?setTimeout(function(){t.events.disableBlur(),t.events.focus()},0):o!=e.FE.KEYCODE.BACKSPACE||p(n)||n.altKey?o!=e.FE.KEYCODE.DELETE||p(n)||n.altKey||n.shiftKey?o==e.FE.KEYCODE.SPACE?function(n){var r=t.selection.element();if(!t.helpers.isMobile()&&r&&"A"==r.tagName){n.preventDefault(),n.stopPropagation(),t.selection.isCollapsed()||t.selection.remove();var o=t.markers.insert();if(o){var i=o.previousSibling;!o.nextSibling&&o.parentNode&&"A"==o.parentNode.tagName?(o.parentNode.insertAdjacentHTML("afterend","&nbsp;"+e.FE.MARKERS),o.parentNode.removeChild(o)):(i&&i.nodeType==Node.TEXT_NODE&&1==i.textContent.length&&160==i.textContent.charCodeAt(0)?i.textContent=i.textContent+" ":o.insertAdjacentHTML("beforebegin","&nbsp;"),o.outerHTML=e.FE.MARKERS),t.selection.restore()}}}(n):o==e.FE.KEYCODE.TAB?function(e){if(0<t.opts.tabSpaces)if(t.selection.isCollapsed()){t.undo.saveStep(),e.preventDefault(),e.stopPropagation();for(var n="",r=0;r<t.opts.tabSpaces;r++)n+="&nbsp;";t.html.insert(n),t.placeholder.refresh(),t.undo.saveStep()}else e.preventDefault(),e.stopPropagation(),e.shiftKey?t.commands.outdent():t.commands.indent()}(n):p(n)||!u(n.which)||t.selection.isCollapsed()||n.ctrlKey||n.altKey||t.selection.remove():t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||a(),n.preventDefault(),n.stopPropagation()):((i=n).preventDefault(),i.stopPropagation(),""===t.selection.text()&&"IMG"!=t.selection.element().tagName?t.cursor.del():t.selection.remove(),t.placeholder.refresh()):t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||a(),n.preventDefault(),n.stopPropagation()):function(e){if(t.selection.isCollapsed())if(t.cursor.backspace(),t.helpers.isIOS()){var n=t.selection.ranges(0);n.deleteContents(),n.insertNode(document.createTextNode("")),t.selection.get().modify("move","forward","character")}else e.preventDefault(),e.stopPropagation();else e.preventDefault(),e.stopPropagation(),t.selection.remove();t.placeholder.refresh()}(n),void t.events.enableBlur()):(n.preventDefault(),!0)}function l(){if(!t.$wp)return!0;var n;t.opts.height||t.opts.heightMax?(n=t.position.getBoundingRect().top,t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n>t.$wp.offset().top-t.helpers.scrollTop()+t.$wp.height()-20&&t.$wp.scrollTop(n+t.$wp.scrollTop()-(t.$wp.height()+t.$wp.offset().top)+t.helpers.scrollTop()+20)):(n=t.position.getBoundingRect().top,t.opts.toolbarBottom&&(n+=t.opts.toolbarStickyOffset),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),(n+=t.opts.toolbarStickyOffset)>t.o_win.innerHeight-20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.o_win.innerHeight+20),n=t.position.getBoundingRect().top,t.opts.toolbarBottom||(n-=t.opts.toolbarStickyOffset),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n<t.$tb.height()+20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.$tb.height()-20))}function d(){var e,n=t.selection.element();!function(e){if(!e)return!1;var t=e.innerHTML;return!!((t=t.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(t)&&0<t.replace(/\u200B/gi,"").length)}(n)||t.node.hasClass(n,"fr-marker")||"IFRAME"==n.tagName||(e=n,t.helpers.isIOS()&&0!==((e.textContent||"").match(/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi)||[]).length)||(t.selection.save(),function(e){for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return/\u200B/gi.test(e.textContent)}),!1);n.nextNode();){var r=n.currentNode;r.textContent=r.textContent.replace(/\u200B/gi,"")}}(n),t.selection.restore())}function c(n){var r=t.selection.element();if(r&&0<=["INPUT","TEXTAREA"].indexOf(r.tagName))return!0;if(n&&0===n.which&&b&&(n.which=b),t.helpers.isAndroid()&&t.browser.mozilla)return!0;if(y)return!1;if(n&&t.helpers.isIOS()&&n.which==e.FE.KEYCODE.ENTER&&t.doc.execCommand("undo"),!t.selection.isCollapsed())return!0;if(n&&(n.which===e.FE.KEYCODE.META||n.which==e.FE.KEYCODE.CTRL))return!0;if(n&&f(n.which))return!0;if(n&&!t.helpers.isIOS()&&(n.which==e.FE.KEYCODE.ENTER||n.which==e.FE.KEYCODE.BACKSPACE||37<=n.which&&n.which<=40&&!t.browser.msie))try{l()}catch(o){}d()}function p(e){if(-1!=navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}function f(t){return t>=e.FE.KEYCODE.ARROW_LEFT&&t<=e.FE.KEYCODE.ARROW_DOWN?!0:void 0}function u(n){if(n>=e.FE.KEYCODE.ZERO&&n<=e.FE.KEYCODE.NINE)return!0;if(n>=e.FE.KEYCODE.NUM_ZERO&&n<=e.FE.KEYCODE.NUM_MULTIPLY)return!0;if(n>=e.FE.KEYCODE.A&&n<=e.FE.KEYCODE.Z)return!0;if(t.browser.webkit&&0===n)return!0;switch(n){case e.FE.KEYCODE.SPACE:case e.FE.KEYCODE.QUESTION_MARK:case e.FE.KEYCODE.NUM_PLUS:case e.FE.KEYCODE.NUM_MINUS:case e.FE.KEYCODE.NUM_PERIOD:case e.FE.KEYCODE.NUM_DIVISION:case e.FE.KEYCODE.SEMICOLON:case e.FE.KEYCODE.FF_SEMICOLON:case e.FE.KEYCODE.DASH:case e.FE.KEYCODE.EQUALS:case e.FE.KEYCODE.FF_EQUALS:case e.FE.KEYCODE.COMMA:case e.FE.KEYCODE.PERIOD:case e.FE.KEYCODE.SLASH:case e.FE.KEYCODE.APOSTROPHE:case e.FE.KEYCODE.SINGLE_QUOTE:case e.FE.KEYCODE.OPEN_SQUARE_BRACKET:case e.FE.KEYCODE.BACKSLASH:case e.FE.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function g(n){var r=n.which;return p(n)||r>=37&&40>=r||!u(r)&&r!=e.FE.KEYCODE.DELETE&&r!=e.FE.KEYCODE.BACKSPACE&&r!=e.FE.KEYCODE.ENTER&&r!=e.FE.KEYCODE.IME?!0:(S||(T=t.snapshot.get(),t.undo.canDo()||t.undo.saveStep()),clearTimeout(S),S=setTimeout(function(){S=null,t.undo.saveStep()},Math.max(250,t.opts.typingTimer)),void 0)}function h(e){var n=e.which;return p(e)||n>=37&&40>=n?!0:void(T&&S?(t.undo.saveStep(T),T=null):void 0!==n&&0!==n||T||S||t.undo.saveStep())}function m(e){if(e&&"BR"==e.tagName)return!1;try{return 0===(e.textContent||"").length&&e.querySelector&&!e.querySelector(":scope > br")||e.childNodes&&1==e.childNodes.length&&e.childNodes[0].getAttribute&&("false"==e.childNodes[0].getAttribute("contenteditable")||t.node.hasClass(e.childNodes[0],"fr-img-caption"))}catch(n){return!1}}function E(n){var r=t.el.childNodes,o=t.html.defaultTag(),i=t.node.blockParent(t.selection.blocks()[0]);return!t.node.isEditable(n.target)||i&&"false"==e(i).attr("contenteditable")?t.toolbar.disable():t.toolbar.enable(),!(!n.target||n.target===t.el)||0===r.length||void(r[0].offsetHeight+r[0].offsetTop<=n.offsetY?m(r[r.length-1])&&(t.$el.append(o?"<"+o+">"+e.FE.MARKERS+"<br></"+o+">":e.FE.MARKERS+"<br>"),t.selection.restore(),l()):n.offsetY<=10&&m(r[0])&&(t.$el.prepend(o?"<"+o+">"+e.FE.MARKERS+"<br></"+o+">":e.FE.MARKERS+"<br>"),t.selection.restore(),l()))}function v(){S&&clearTimeout(S)}var b,S,T,y=!1;return{_init:function(){t.events.on("keydown",g),t.events.on("input",n),t.events.on("mousedown",i),t.events.on("keyup input",h),t.events.on("keypress",o),t.events.on("keydown",s),t.events.on("keyup",c),t.events.on("destroy",v),t.events.on("html.inserted",c),t.events.on("cut",r),t.opts.multiLine&&t.events.on("click",E)},ctrlKey:p,isCharacter:u,isArrow:f,forceUndo:function(){S&&(clearTimeout(S),t.undo.saveStep(),T=null)},isIME:function(){return y},isBrowserAction:function(t){var n=t.which;return p(t)||n==e.FE.KEYCODE.F5},positionCaret:l}},e.FE.MODULES.accessibility=function(t){function n(e){e&&e.length&&!t.$el.find('[contenteditable="true"]').is(":focus")&&(e.data("blur-event-set")||e.parents(".fr-popup").length||(t.events.$on(e,"blur",function(){var n=e.parents(".fr-toolbar, .fr-popup").data("instance")||t;n.events.blurActive()&&!t.core.hasFocus()&&n.events.trigger("blur"),setTimeout(function(){n.events.enableBlur()},100)},!0),e.data("blur-event-set",!0)),(e.parents(".fr-toolbar, .fr-popup").data("instance")||t).events.disableBlur(),e.focus(),t.shared.$f_el=e)}function r(e,t){var r=t?"last":"first",o=e.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible")[r]();return o.length?(n(o),!0):void 0}function o(e){return e.is("input, textarea, select")&&a(),t.events.disableBlur(),e.focus(),!0}function i(e,n){var r=e.find("input, textarea, button, select").filter(":visible").not(":disabled").filter(n?":last":":first");if(r.length)return o(r);if(t.shared.with_kb){var i=e.find(".fr-active-item:visible:first");if(i.length)return o(i);var a=e.find("[tabIndex]:visible:first");if(a.length)return o(a)}}function a(){0===t.$el.find(".fr-marker").length&&t.core.hasFocus()&&t.selection.save()}function s(){var e=t.popups.areVisible();if(e){var n=e.find(".fr-buttons");return n.find("button:focus, .fr-group span:focus").length?!r(e.data("instance").$tb):!r(n)}return!r(t.$tb)}function l(){var e=null;return t.shared.$f_el.is(".fr-dropdown.fr-active")?e=t.shared.$f_el:t.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(e=t.shared.$f_el.closest(".fr-dropdown-menu").prev()),e}function d(o,a,s){if(t.shared.$f_el){var d=l();d&&(t.button.click(d),t.shared.$f_el=d);var c=o.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible"),p=c.index(t.shared.$f_el);if(0===p&&!s||p==c.length-1&&s){var f;a&&(o.parent().is(".fr-popup")&&(f=!i(o.parent().children().not(".fr-buttons"),!s)),!1===f&&(t.shared.$f_el=null)),a&&!1===f||r(o,!s)}else n(e(c.get(p+(s?1:-1))));return!1}}function c(e,t){return d(e,t,!0)}function p(e,t){return d(e,t)}function f(e){if(t.shared.$f_el){var r;if(t.shared.$f_el.is(".fr-dropdown.fr-active"))return n(r=e?t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last()),!1;if(t.shared.$f_el.is("a.fr-command"))return(r=e?t.shared.$f_el.closest("li").nextAll(":visible:first").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest("li").prevAll(":visible:first").find(".fr-command:not(.fr-disabled)").first()).length||(r=e?t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),n(r),!1}}function u(){if(t.shared.$f_el){if(t.shared.$f_el.hasClass("fr-dropdown"))t.button.click(t.shared.$f_el);else if(t.shared.$f_el.is("button.fr-back")){t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus());var e=t.popups.areVisible(t);e&&(t.shared.with_kb=!1),t.button.click(t.shared.$f_el),m(e)}else{if(t.events.disableBlur(),t.button.click(t.shared.$f_el),t.shared.$f_el.attr("data-popup")){var n=t.popups.areVisible(t);n&&n.data("popup-button",t.shared.$f_el)}else if(t.shared.$f_el.attr("data-modal")){var r=t.modals.areVisible(t);r&&r.data("modal-button",t.shared.$f_el)}t.shared.$f_el=null}return!1}}function g(){t.shared.$f_el&&(t.events.disableBlur(),t.shared.$f_el.blur(),t.shared.$f_el=null),!1!==t.events.trigger("toolbar.focusEditor")&&(t.events.disableBlur(),t.browser.msie||t.$el.focus(),t.events.focus())}function h(n){n&&n.length&&(t.events.$on(n,"keydown",function(r){if(!e(r.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var o=n.parents(".fr-popup").data("instance")||n.data("instance")||t;t.shared.with_kb=!0;var i=o.accessibility.exec(r,n);return t.shared.with_kb=!1,i},!0),t.browser.msie||t.events.$on(n,"mouseenter","[tabIndex]",function(r){var o=n.parents(".fr-popup").data("instance")||n.data("instance")||t;if(!b)return r.stopPropagation(),void r.preventDefault();var i=e(r.currentTarget);o.shared.$f_el&&o.shared.$f_el.not(i)&&o.accessibility.focusEditor()},!0))}function m(e){var t=e.data("popup-button");t&&setTimeout(function(){n(t),e.data("popup-button",null)},0)}function E(e){var n=t.popups.areVisible(e);n&&n.data("popup-button",null)}function v(n){var r=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if(n.which==e.FE.KEYCODE.F10&&!r&&!n.shiftKey&&n.altKey){t.shared.with_kb=!0;var o=t.popups.areVisible(t),a=!1;return o&&(a=i(o.children().not(".fr-buttons"))),a||s(),t.shared.with_kb=!1,n.preventDefault(),n.stopPropagation(),!1}return!0}var b=!0;return{_init:function(){t.$wp?t.events.on("keydown",v,!0):t.events.$on(t.$win,"keydown",v,!0),t.events.on("mousedown",function(e){E(t),t.shared.$f_el&&(t.accessibility.restoreSelection(),e.stopPropagation(),t.events.disableBlur(),t.shared.$f_el=null)},!0),t.events.on("blur",function(){t.shared.$f_el=null,E(t)},!0)},registerPopup:function(n){var o,a,s=t.popups.get(n),l=(o=n,a=t.popups.get(o),{_tiKeydown:function(n){var s=a.data("instance")||t;if(!1===s.events.trigger("popup.tab",[n]))return!1;var l=n.which,d=a.find(":focus:first");if(e.FE.KEYCODE.TAB==l){n.preventDefault();var c=a.children().not(".fr-buttons"),p=c.find("input, textarea, button, select").filter(":visible").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray(),f=p.indexOf(this)+(n.shiftKey?-1:1);if(f>=0&&f<p.length)return s.events.disableBlur(),e(p[f]).focus(),n.stopPropagation(),!1;var u=a.find(".fr-buttons");if(u.length&&r(u,!!n.shiftKey))return n.stopPropagation(),!1;if(i(c))return n.stopPropagation(),!1}else{if(e.FE.KEYCODE.ENTER!=l||!n.target||"TEXTAREA"===n.target.tagName)return e.FE.KEYCODE.ESC==l?(n.preventDefault(),n.stopPropagation(),s.accessibility.restoreSelection(),s.popups.isVisible(o)&&a.find(".fr-back:visible").length?(s.opts.toolbarInline&&(s.events.disableBlur(),s.events.focus()),s.button.exec(a.find(".fr-back:visible:first")),m(a)):s.popups.isVisible(o)&&a.find(".fr-dismiss:visible").length?s.button.exec(a.find(".fr-dismiss:visible:first")):(s.popups.hide(o),s.opts.toolbarInline&&s.toolbar.showInline(null,!0),m(a)),!1):e.FE.KEYCODE.SPACE==l&&(d.is(".fr-submit")||d.is(".fr-dismiss"))?(n.preventDefault(),n.stopPropagation(),s.events.disableBlur(),s.button.exec(d),!0):s.keys.isBrowserAction(n)?void n.stopPropagation():d.is("input[type=text], textarea")?void n.stopPropagation():e.FE.KEYCODE.SPACE==l&&(d.is(".fr-link-attr")||d.is("input[type=file]"))?void n.stopPropagation():(n.stopPropagation(),n.preventDefault(),!1);var g=null;0<a.find(".fr-submit:visible").length?g=a.find(".fr-submit:visible:first"):a.find(".fr-dismiss:visible").length&&(g=a.find(".fr-dismiss:visible:first")),g&&(n.preventDefault(),n.stopPropagation(),s.events.disableBlur(),s.button.exec(g))}},_tiMouseenter:function(){var e=a.data("instance")||t;E(e)}});h(s.find(".fr-buttons")),t.events.$on(s,"mouseenter","tabIndex",l._tiMouseenter,!0),t.events.$on(s.children().not(".fr-buttons"),"keydown","[tabIndex]",l._tiKeydown,!0),t.popups.onHide(n,function(){(s.data("instance")||t).accessibility.restoreSelection()}),t.popups.onShow(n,function(){b=!1,setTimeout(function(){b=!0},0)})},registerToolbar:h,focusToolbarElement:n,focusToolbar:r,focusContent:i,focusPopup:function(e){var n=e.children().not(".fr-buttons");n.data("mouseenter-event-set")||t.browser.msie||(t.events.$on(n,"mouseenter","[tabIndex]",function(r){var o=e.data("instance")||t;if(!b)return r.stopPropagation(),void r.preventDefault();var i=n.find(":focus:first");i.length&&!i.is("input, button, textarea, select")&&(o.events.disableBlur(),i.blur(),o.events.disableBlur(),o.events.focus())}),n.data("mouseenter-event-set",!0)),!i(n)&&t.shared.with_kb&&r(e.find(".fr-buttons"))},focusModal:function(e){t.core.hasFocus()||(t.events.disableBlur(),t.events.focus()),t.accessibility.saveSelection(),t.events.disableBlur(),t.$el.blur(),t.selection.clear(),t.events.disableBlur(),t.shared.with_kb?e.find(".fr-command[tabIndex], [tabIndex]").first().focus():e.find("[tabIndex]:first").focus()},focusEditor:g,focusPopupButton:m,focusModalButton:function(e){var t=e.data("modal-button");t&&setTimeout(function(){n(t),e.data("modal-button",null)},0)},hasFocus:function(){return null!=t.shared.$f_el},exec:function(r,o){var i=-1!=navigator.userAgent.indexOf("Mac OS X")?r.metaKey:r.ctrlKey,a=r.which,d=!1;return a!=e.FE.KEYCODE.TAB||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.ARROW_RIGHT||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.TAB||i||!r.shiftKey||r.altKey?a!=e.FE.KEYCODE.ARROW_LEFT||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.ARROW_UP||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.ARROW_DOWN||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.ENTER&&a!=e.FE.KEYCODE.SPACE||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.ESC||i||r.shiftKey||r.altKey?a!=e.FE.KEYCODE.F10||i||r.shiftKey||!r.altKey||(d=s()):d=function(e){if(t.shared.$f_el){var r=l();return r?(t.button.click(r),n(r)):e.parent().find(".fr-back:visible").length?(t.shared.with_kb=!1,t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus()),t.button.exec(e.parent().find(".fr-back:visible:first")),m(e.parent())):t.shared.$f_el.is("button, .fr-group span")&&(e.parent().is(".fr-popup")?(t.accessibility.restoreSelection(),t.shared.$f_el=null,!1!==t.events.trigger("toolbar.esc")&&(t.popups.hide(e.parent()),t.opts.toolbarInline&&t.toolbar.showInline(null,!0),m(e.parent()))):g()),!1}}(o):d=u():d=t.shared.$f_el&&t.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?u():f(!0):d=f():d=p(o):d=p(o,!0):d=c(o):d=c(o,!0),t.shared.$f_el||void 0!==d||(d=!0),!d&&t.keys.isBrowserAction(r)&&(d=!0),!!d||(r.preventDefault(),r.stopPropagation(),!1)},saveSelection:a,restoreSelection:function(){t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur())}}},e.FE.MODULES.format=function(t){function n(e,t){var n="<"+e;for(var r in t)t.hasOwnProperty(r)&&(n+=" "+r+'="'+t[r]+'"');return n+=">"}function r(e,t){var n=e;for(var r in t)t.hasOwnProperty(r)&&(n+="id"==r?"#"+t[r]:"class"==r?"."+t[r]:"["+r+'="'+t[r]+'"]');return n}function o(e,t){return!(!e||e.nodeType!=Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function i(r,o,a){if(r){for(;r.nodeType===Node.COMMENT_NODE;)r=r.nextSibling;if(r){if(t.node.isBlock(r)&&"HR"!==r.tagName)return t.node.hasClass(r.firstChild,"fr-marker")?i(r.firstChild.nextSibling,o,a):i(r.firstChild,o,a),!1;for(var s=e(n(o,a)).insertBefore(r),l=r;l&&!e(l).is(".fr-marker")&&0===e(l).find(".fr-marker").length&&"UL"!=l.tagName&&"OL"!=l.tagName;){var d=l;if(t.node.isBlock(l)&&"HR"!==r.tagName)return i(l.firstChild,o,a),!1;l=l.nextSibling,s.append(d)}if(l)e(l).find(".fr-marker").length||"UL"==l.tagName||"OL"==l.tagName?i(l.firstChild,o,a):t.browser.mozilla&&t.node.hasClass(l,"fr-marker")&&l.parentNode.nextSibling&&i(l.parentNode.nextSibling.nextSibling,o,a);else{for(var c=s.get(0).parentNode;c&&!c.nextSibling&&!t.node.isElement(c);)c=c.parentNode;if(c){var p=c.nextSibling;p&&(t.node.isBlock(p)?"HR"===p.tagName?i(p.nextSibling,o,a):i(p.firstChild,o,a):i(p,o,a))}}s.is(":empty")&&s.remove()}}}function a(a,s){var l;if(void 0===s&&(s={}),s.style&&delete s.style,t.selection.isCollapsed())t.markers.insert(),t.$el.find(".fr-marker").replaceWith(n(a,s)+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+("</"+a+">")),t.selection.restore();else{var d;t.selection.save(),i(t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,a,s);do for(d=t.$el.find(r(a,s)+" > "+r(a,s)),l=0;l<d.length;l++)d[l].outerHTML=d[l].innerHTML;while(d.length);t.el.normalize();var c=t.el.querySelectorAll(".fr-marker");
for(l=0;l<c.length;l++){var p=e(c[l]);!0===p.data("type")?o(p.get(0).nextSibling,r(a,s))&&p.next().prepend(p):o(p.get(0).previousSibling,r(a,s))&&p.prev().append(p)}t.selection.restore()}}function s(e,n,i,a){if(!a){var s=!1;if(!0===e.data("type"))for(;t.node.isFirstSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().before(e),s=!0;else if(!1===e.data("type"))for(;t.node.isLastSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().after(e),s=!0;if(s)return!0}if(e.parents(n).length||void 0===n){var l="",d="",c=e.parent();if(c.is(t.$el)||t.node.isBlock(c.get(0)))return!1;for(;!t.node.isBlock(c.parent().get(0))&&(void 0===n||void 0!==n&&!o(c.get(0),r(n,i)));)l+=t.node.closeTagString(c.get(0)),d=t.node.openTagString(c.get(0))+d,c=c.parent();var p=e.get(0).outerHTML;e.replaceWith('<span id="mark"></span>');var f=c.html().replace(/<span id="mark"><\/span>/,l+t.node.closeTagString(c.get(0))+d+p+l+t.node.openTagString(c.get(0))+d);return c.replaceWith(t.node.openTagString(c.get(0))+f+t.node.closeTagString(c.get(0))),!0}return!1}function l(n,i){void 0===i&&(i={}),i.style&&delete i.style;var a=t.selection.isCollapsed();t.selection.save();for(var l=!0;l;){l=!1;for(var d=t.$el.find(".fr-marker"),c=0;c<d.length;c++){var p=e(d[c]),f=null;if(p.attr("data-cloned")||a||(f=p.clone().removeClass("fr-marker").addClass("fr-clone"),!0===p.data("type")?p.attr("data-cloned",!0).after(f):p.attr("data-cloned",!0).before(f)),s(p,n,i,a)){l=!0;break}}}!function u(n,i,a,s){for(var l=t.node.contents(n.get(0)),d=0;d<l.length;d++){var c=l[d];if(t.node.hasClass(c,"fr-marker"))i=(i+1)%2;else if(i)if(0<e(c).find(".fr-marker").length)i=u(e(c),i,a,s);else{for(var p=e(c).find(a||"*:not(br)"),f=p.length-1;f>=0;f--){var g=p[f];t.node.isBlock(g)||t.node.isVoid(g)||void 0!==a&&!o(g,r(a,s))?t.node.isBlock(g)&&void 0===a&&"TABLE"!=c.tagName&&t.node.clearAttributes(g):t.node.hasClass(g,"fr-clone")||(g.outerHTML=g.innerHTML)}void 0===a&&c.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(c)||o(c,r(a,s))?t.node.isBlock(c)?void 0===a&&c.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(c)&&"TABLE"!=c.tagName&&t.node.clearAttributes(c):t.node.hasClass(c,"fr-clone")||(c.outerHTML=c.innerHTML):void 0===a&&c.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(c)&&"TABLE"!=c.tagName&&t.node.clearAttributes(c)}else 0<e(c).find(".fr-marker").length&&(i=u(e(c),i,a,s))}return i}(t.$el,0,n,i),a||(t.$el.find(".fr-marker").remove(),t.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker")),a&&t.$el.find(".fr-marker").before(e.FE.INVISIBLE_SPACE).after(e.FE.INVISIBLE_SPACE),t.html.cleanEmptyTags(),t.el.normalize(),t.selection.restore()}function d(n,r){var o,a,l,d,p,f=null;if(t.selection.isCollapsed()){t.markers.insert();var u=(a=t.$el.find(".fr-marker")).parent();if(t.node.openTagString(u.get(0))=='<span style="'+n+": "+u.css(n)+';">'){if(t.node.isEmpty(u.get(0)))f=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),u.replaceWith(f);else{var g={};g["style*"]=n+":",s(a,"span",g,!0),a=t.$el.find(".fr-marker"),r?(f=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(f)):a.replaceWith(e.FE.INVISIBLE_SPACE+e.FE.MARKERS)}t.html.cleanEmptyTags()}else t.node.isEmpty(u.get(0))&&u.is("span")?(a.replaceWith(e.FE.MARKERS),u.css(n,r)):(f=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(f));f&&c(f,n,r)}else{if(t.selection.save(),null==r||"color"==n&&0<t.$el.find(".fr-marker").parents("u, a").length){var h=t.$el.find(".fr-marker");for(o=0;o<h.length;o++)if(!0===(a=e(h[o])).data("type"))for(;t.node.isFirstSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().before(a);else for(;t.node.isLastSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().after(a)}var m=t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,E={"class":"fr-unprocessed"};for(r&&(E.style=n+": "+r+";"),i(m,"span",E),t.$el.find(".fr-marker + .fr-unprocessed").each(function(){e(this).prepend(e(this).prev())}),t.$el.find(".fr-unprocessed + .fr-marker").each(function(){e(this).prev().append(this)}),(r||"").match(/\dem$/)&&t.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<t.$el.find("span.fr-unprocessed").length;){if((f=t.$el.find("span.fr-unprocessed:first").removeClass("fr-unprocessed")).parent().get(0).normalize(),f.parent().is("span")&&1==f.parent().get(0).childNodes.length){f.parent().css(n,r);var v=f;f=f.parent(),v.replaceWith(v.html())}var b=f.find("span");for(o=b.length-1;o>=0;o--)l=b[o],d=n,p=void 0,(p=e(l)).css(d,""),""===p.attr("style")&&p.replaceWith(p.html());c(f,n,r)}}!function(){for(var n;0<t.$el.find(".fr-split:empty").length;)t.$el.find(".fr-split:empty").remove();t.$el.find(".fr-split").removeClass("fr-split"),t.$el.find('[style=""]').removeAttr("style"),t.$el.find('[class=""]').removeAttr("class"),t.html.cleanEmptyTags(),e(t.$el.find("span").get().reverse()).each(function(){this.attributes&&0!==this.attributes.length||e(this).replaceWith(this.innerHTML)}),t.el.normalize();var r=t.$el.find("span[style] + span[style]");for(n=0;n<r.length;n++){var o=e(r[n]),i=e(r[n]).prev();o.get(0).previousSibling==i.get(0)&&t.node.openTagString(o.get(0))==t.node.openTagString(i.get(0))&&(o.prepend(i.html()),i.remove())}t.$el.find("span[style] span[style]").each(function(){if(0<=e(this).attr("style").indexOf("font-size")){var t=e(this).parents("span[style]");0<=t.attr("style").indexOf("background-color")&&(e(this).attr("style",e(this).attr("style")+";"+t.attr("style")),s(e(this),"span[style]",{},!1))}}),t.el.normalize(),t.selection.restore()}()}function c(n,r,o){var i,a,s,l=n.parentsUntil(t.$el,"span[style]"),d=[];for(i=l.length-1;i>=0;i--)a=l[i],s=r,0===e(a).attr("style").indexOf(s+":")||0<=e(a).attr("style").indexOf(";"+s+":")||0<=e(a).attr("style").indexOf("; "+s+":")||d.push(l[i]);if((l=l.not(d)).length){for(var c="",p="",f="",u="",g=n.get(0);g=g.parentNode,e(g).addClass("fr-split"),c+=t.node.closeTagString(g),p=t.node.openTagString(e(g).clone().addClass("fr-split").get(0))+p,l.get(0)!=g&&(f+=t.node.closeTagString(g),u=t.node.openTagString(e(g).clone().addClass("fr-split").get(0))+u),l.get(0)!=g;);var h=c+t.node.openTagString(e(l.get(0)).clone().css(r,o||"").get(0))+u+n.css(r,"").get(0).outerHTML+f+"</span>"+p;n.replaceWith('<span id="fr-break"></span>');var m=l.get(0).outerHTML;e(l.get(0)).replaceWith(m.replace(/<span id="fr-break"><\/span>/g,function(){return h}))}}function p(e,n){void 0===n&&(n={}),n.style&&delete n.style;var i=t.selection.ranges(0),a=i.startContainer;if(a.nodeType==Node.ELEMENT_NODE&&0<a.childNodes.length&&a.childNodes[i.startOffset]&&(a=a.childNodes[i.startOffset]),!i.collapsed&&a.nodeType==Node.TEXT_NODE&&i.startOffset==(a.textContent||"").length){for(;!t.node.isBlock(a.parentNode)&&!a.nextSibling;)a=a.parentNode;a.nextSibling&&(a=a.nextSibling)}for(var s=a;s&&s.nodeType==Node.ELEMENT_NODE&&!o(s,r(e,n));)s=s.firstChild;if(s&&s.nodeType==Node.ELEMENT_NODE&&o(s,r(e,n)))return!0;var l=a;for(l&&l.nodeType!=Node.ELEMENT_NODE&&(l=l.parentNode);l&&l.nodeType==Node.ELEMENT_NODE&&l!=t.el&&!o(l,r(e,n));)l=l.parentNode;return!(!l||l.nodeType!=Node.ELEMENT_NODE||l==t.el||!o(l,r(e,n)))}return{is:p,toggle:function(e,t){p(e,t)?l(e,t):a(e,t)},apply:a,remove:l,applyStyle:d,removeStyle:function(e){d(e,null)}}},e.extend(e.FE.DEFAULTS,{indentMargin:20}),e.FE.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(e){var t=this.format.is("strong");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},italic:{title:"Italic",toggle:!0,refresh:function(e){var t=this.format.is("em");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},underline:{title:"Underline",toggle:!0,refresh:function(e){var t=this.format.is("u");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(e){var t=this.format.is("s");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},subscript:{title:"Subscript",toggle:!0,refresh:function(e){var t=this.format.is("sub");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},superscript:{title:"Superscript",toggle:!0,refresh:function(e){var t=this.format.is("sup");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},outdent:{title:"Decrease Indent"},indent:{title:"Increase Indent"},undo:{title:"Undo",undo:!1,forcedRefresh:!0,disabled:!0},redo:{title:"Redo",undo:!1,forcedRefresh:!0,disabled:!0},insertHR:{title:"Insert Horizontal Line"},clearFormatting:{title:"Clear Formatting"},selectAll:{title:"Select All",undo:!1}},e.FE.RegisterCommand=function(t,n){e.FE.COMMANDS[t]=n},e.FE.MODULES.commands=function(t){function n(e){return t.html.defaultTag()&&(e="<"+t.html.defaultTag()+">"+e+"</"+t.html.defaultTag()+">"),e}function r(n,r){if(!1!==t.events.trigger("commands.before",e.merge([n],r||[]))){var o=e.FE.COMMANDS[n]&&e.FE.COMMANDS[n].callback||s[n],i=!0,a=!1;e.FE.COMMANDS[n]&&("undefined"!=typeof e.FE.COMMANDS[n].focus&&(i=e.FE.COMMANDS[n].focus),"undefined"!=typeof e.FE.COMMANDS[n].accessibilityFocus&&(a=e.FE.COMMANDS[n].accessibilityFocus)),(!t.core.hasFocus()&&i&&!t.popups.areVisible()||!t.core.hasFocus()&&a&&t.accessibility.hasFocus())&&t.events.focus(!0),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&(t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore()),t.undo.saveStep()),o&&o.apply(t,e.merge([n],r||[])),t.events.trigger("commands.after",e.merge([n],r||[])),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&t.undo.saveStep()}}function o(e,n){t.format.toggle(n)}function i(n){t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore();for(var r=t.selection.blocks(),o=0;o<r.length;o++)if("LI"!=r[o].tagName||"LI"!=r[o].parentNode.tagName){var i=e(r[o]);"LI"!=r[o].tagName&&"LI"==r[o].parentNode.tagName&&(i=e(r[o].parentNode));var a="rtl"==t.opts.direction||"rtl"==i.css("direction")?"margin-right":"margin-left",s=t.helpers.getPX(i.css(a));if(i.width()<2*t.opts.indentMargin&&n>0)continue;i.css(a,Math.max(s+n*t.opts.indentMargin,0)||""),i.removeClass("fr-temp-div")}t.selection.save(),t.html.unwrap(),t.selection.restore()}function a(e){return function(){r(e)}}var s={bold:function(){o("bold","strong")},subscript:function(){t.format.is("sup")&&t.format.remove("sup"),o("subscript","sub")},superscript:function(){t.format.is("sub")&&t.format.remove("sub"),o("superscript","sup")},italic:function(){o("italic","em")},strikeThrough:function(){o("strikeThrough","s")},underline:function(){o("underline","u")},undo:function(){t.undo.run()},redo:function(){t.undo.redo()},indent:function(){i(1)},outdent:function(){i(-1)},show:function(){t.opts.toolbarInline&&t.toolbar.showInline(null,!0)},insertHR:function(){t.selection.remove();var r="";t.core.isEmpty()&&(r=n(r="<br>")),t.html.insert('<hr id="fr-just">'+r);var o,i=t.$el.find("hr#fr-just");if(i.removeAttr("id"),0===i.next().length){var a=t.html.defaultTag();i.after(a?e("<"+a+">").append("<br>"):"<br>")}i.prev().is("hr")?o=t.selection.setAfter(i.get(0),!1):i.next().is("hr")?o=t.selection.setBefore(i.get(0),!1):t.selection.setAfter(i.get(0),!1)||t.selection.setBefore(i.get(0),!1),o||void 0===o||(r=n(r=e.FE.MARKERS+"<br>"),i.after(r)),t.selection.restore()},clearFormatting:function(){t.format.remove()},selectAll:function(){t.doc.execCommand("selectAll",!1,!1)}},l={};for(var d in s)s.hasOwnProperty(d)&&(l[d]=a(d));return e.extend(l,{exec:r,_init:function(){t.events.on("keydown",function(e){var n=t.selection.element();return n&&"HR"==n.tagName&&!t.keys.isArrow(e.which)?(e.preventDefault(),!1):void 0}),t.events.on("keyup",function(n){var r=t.selection.element();if(r&&"HR"==r.tagName)if(n.which==e.FE.KEYCODE.ARROW_LEFT||n.which==e.FE.KEYCODE.ARROW_UP){if(r.previousSibling)return t.node.isBlock(r.previousSibling)?t.selection.setAtEnd(r.previousSibling):e(r).before(e.FE.MARKERS),t.selection.restore(),!1}else if((n.which==e.FE.KEYCODE.ARROW_RIGHT||n.which==e.FE.KEYCODE.ARROW_DOWN)&&r.nextSibling)return t.node.isBlock(r.nextSibling)?t.selection.setAtStart(r.nextSibling):e(r).after(e.FE.MARKERS),t.selection.restore(),!1}),t.events.on("mousedown",function(e){return e.target&&"HR"==e.target.tagName?(e.preventDefault(),e.stopPropagation(),!1):void 0}),t.events.on("mouseup",function(){var n=t.selection.element();n==t.selection.endElement()&&n&&"HR"==n.tagName&&(n.nextSibling&&(t.node.isBlock(n.nextSibling)?t.selection.setAtStart(n.nextSibling):e(n).after(e.FE.MARKERS)),t.selection.restore())})}})},e.FE.MODULES.data=function(t){function n(e){return e}function r(e){for(var t=e.toString(),n=0,r=0;r<t.length;r++)n+=parseInt(t.charAt(r),10);return n>10?n%9+1:n}function o(e,t,n){for(var r=Math.abs(n);0<r--;)e-=t;return 0>n&&(e+=123),e}function i(e){return e&&"block"!==e.css("display")?(e.remove(),!0):e&&0===t.helpers.getPX(e.css("height"))?(e.remove(),!0):!(!e||"absolute"!==e.css("position")&&"fixed"!==e.css("position")||(e.remove(),0))}function a(e){return e&&0===t.$box.find(e).length}function s(){return g>10&&(t[n(u("0ppecjvc=="))](),setTimeout(function(){e.FE=null},10)),t.$box?(t.$wp.prepend(u(n(u(p)))),d=t.$wp.find("> div:first"),c=d.find("> a"),"rtl"==t.opts.direction&&d.css("left","auto").css("right",0).attr("direction","rtl"),g++,void 0):!1}function l(e){for(var t=[u("9qqG-7amjlwq=="),u("KA3B3C2A6D1D5H5H1A3=="),u("3B9B3B5F3C4G3E3=="),u("QzbzvxyB2yA-9m=="),u("ji1kacwmgG5bc=="),u("nmA-13aogi1A3c1jd=="),u("BA9ggq=="),u("emznbjbH3fij=="),u("tkC-22d1qC-13sD1wzF-7==")],n=0;n<t.length;n++)if(String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}var d,c,p="NCKB1zwtPA9tqzajXC2c2A7B-16VD3spzJ1C9C3D5oOF2OB1NB1LD7VA5QF4TE3gytXB2A4C-8VA2AC4E1D3GB2EB2KC3KD1MF1juuSB1A8C6yfbmd1B2a1A5qdsdB2tivbC3CB1KC1CH1eLA2sTF1B4I4H-7B-21UB6b1F5bzzzyAB4JC3MG2hjdKC1JE6C1E1cj1pD-16pUE5B4prra2B5ZB3D3C3pxj1EA6A3rnJA2C-7I-7JD9D1E1wYH1F3sTB5TA2G4H4ZA22qZA5BB3mjcvcCC3JB1xillavC-21VE6PC5SI4YC5C8mb1A3WC3BD2B5aoDA2qqAE3A5D-17fOD1D5RD4WC10tE6OAZC3nF-7b1C4A4D3qCF2fgmapcromlHA2QA6a1E1D3e1A6C2bie2F4iddnIA7B2mvnwcIB5OA1DB2OLQA3PB10WC7WC5d1E3uI-7b1D5D6b1E4D2arlAA4EA1F-11srxI-7MB1D7PF1E5B4adB-21YD5vrZH3D3xAC4E1A2GF2CF2J-7yNC2JE1MI2hH-7QB1C6B5B-9bA-7XB13a1B5VievwpKB4LA3NF-10H-9I-8hhaC-16nqPG4wsleTD5zqYF3h1G2B7B4yvGE2Pi1H-7C-21OE6B1uLD1kI4WC1E7C5g1D-8fue1C8C6c1D4D3Hpi1CC4kvGC2E1legallyXB4axVA11rsA4A-9nkdtlmzBA2GD3A13A6CB1dabE1lezrUE6RD5TB4A-7f1C8c1B5d1D4D3tyfCD5C2D2==",f=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd"+(new Date).getTime();e<n.length-1&&-1==document.cookie.indexOf(r+"="+r);)t=n.slice(-1-++e).join("."),document.cookie=r+"="+r+";domain="+t+";";return document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",(t||"").replace(/(^\.*)|(\.*$)/g,"")}(),u=n(function(e){if(!e)return e;for(var t="",i=n("charCodeAt"),a=n("fromCharCode"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(e[0]),l=1;l<e.length-2;l++){for(var d=r(++s),c=e[i](l),p="";/[0-9-]/.test(e[l+1]);)p+=e[++l];c=o(c,d,p=parseInt(p,10)||0),c^=s-1&31,t+=String[a](c)}return t}),g=0;return{_init:function(){var r=t.o_win.FEK;try{r=r||localStorage&&localStorage.FEK}catch(o){}r=t.opts.key||r||[""];var g=u(n("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9=="));"string"==typeof r&&(r=[r]);for(var h,m,E,v=!(t.ul=!0),b=0,S=0;S<r.length;S++){var T=(m=r[S],3===(E=(u(m)||"").split("|")).length?E:[null,null,u(m)||""]),y=T[2];if(y===u(n(u("mcVRDoB1BGILD7YFe1BTXBA7B6==")))||0<=y.indexOf(f,y.length-f.length)||l(f)){if(!((null===(h=T[1])||new Date(h)<new Date(u("fA4B3E3C1I3H2C6C6C3E4==")))&&0<(f||"").length)||l(f)){t.ul=!1;break}v=!0,p="RCZB17botVG4A-8yzia1C4A5DG3CD2cFB4qflmCE4I2FB1SC7F6PE4WE3RD6e2A4c1D3d1E2E3ehxdGE3CE2IB2LC1HG2LE1QA3QC7B-13cC-9epmkjc1B4e1C4pgjgvkOC5E1eNE1HB2LD2B-13WD5tvabUA5a1A4f1A2G3C2A-21cihKE3FE2DB2cccJE1iC-7G-7tD-17tVD6A-9qC-7QC7a1E4B4je1E3E2G2ecmsAA1xH-8HB11C1D1lgzQA3dTB8od1D4XE3ohb1B4E4D3mbLA10NA7C-21d1genodKC11PD9PE5tA-8UI3ZC5XB5B-11qXF2F-7wtwjAG3NA1IB1OD1HC1RD4QJ4evUF2D5XG2G4XA8pqocH1F3G2J2hcpHC4D1MD4C1MB8PD5klcQD1A8A6e2A3ed1E2A24A7HC5C3qA-9tiA-61dcC3MD1LE1D4SA3A9ZZXSE4g1C3Pa2C5ufbcGI3I2B4skLF2CA1vxB-22wgUC4kdH-8cVB5iwe1A2D3H3G-7DD5JC2ED2OH2JB10D3C2xHE1KA29PB11wdC-11C4cixb2C7a1C4YYE3B2A15uB-21wpCA1MF1NuC-21dyzD6pPG4I-7pmjc1A4yte1F3B-22yvCC3VbC-7qC-22qNE2hC1vH-8zad1RF6WF3DpI-7C8A-16hpf1F3D2ylalB-13BB2lpA-63IB3uOF6D5G4gabC-21UD2A3PH4ZA20B11b2C6ED4A2H3I1A15DB4KD2laC-8LA5B8B7==",b=T[0]||-1}}var N=new Image;!0===t.ul&&(s(),N.src=v?n(u(g))+"e="+b:n(u(g))+"u"),!0===t.ul&&(t.events.on("contentChanged",function(){(i(d)||i(c)||a(d)||a(c))&&s()}),t.events.on("html.get",function(e){return e+'<p data-f-id="pbf" style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.froala.com/wysiwyg-editor?pb=1" title="Froala Editor">Froala Editor</a></p>'})),t.events.on("html.set",function(){var n=t.el.querySelector('[data-f-id="pbf"]');n&&e(n).remove()}),t.events.on("destroy",function(){d&&d.length&&d.remove()},!0)}}},e.extend(e.FE.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id","style"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),e.FE.MODULES.paste=function(t){function n(e,n){try{t.win.localStorage.setItem("fr-copied-html",e),t.win.localStorage.setItem("fr-copied-text",n)}catch(r){}}function r(r){var o=t.html.getSelected();n(o,e("<div>").html(o).text()),"cut"==r.type&&(t.undo.saveStep(),setTimeout(function(){t.selection.save(),t.html.wrap(),t.selection.restore(),t.events.focus(),t.undo.saveStep()},0))}function o(n){if(t.edit.isDisabled())return!1;if(E)return!1;if(n.originalEvent&&(n=n.originalEvent),!1===t.events.trigger("paste.before",[n]))return n.preventDefault(),!1;if(t.$win.scrollTop(),n&&n.clipboardData&&n.clipboardData.getData){var r="",o=n.clipboardData.types;if(t.helpers.isArray(o))for(var i=0;i<o.length;i++)r+=o[i]+";";else r=o;if(u="",/text\/rtf/.test(r)&&(g=n.clipboardData.getData("text/rtf")),/text\/html/.test(r)&&!t.browser.safari?u=n.clipboardData.getData("text/html"):/text\/rtf/.test(r)&&t.browser.safari?u=g:/public.rtf/.test(r)&&t.browser.safari&&(u=n.clipboardData.getData("text/rtf")),""!==u)return a(),n.preventDefault&&(n.stopPropagation(),n.preventDefault()),!1;u=null}return function(){t.selection.save(),t.events.disableBlur(),u=null,h?(h.html(""),t.browser.edge&&t.opts.iframe&&t.$el.append(h)):(h=e('<div contenteditable="true" style="position: fixed; top: 0; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>'),t.browser.webkit||t.browser.mozilla?(h.css("top",t.$sc.scrollTop()),t.$el.after(h)):t.browser.edge&&t.opts.iframe?t.$el.append(h):t.$box.after(h),t.events.on("destroy",function(){h.remove()}));var n;t.helpers.isIOS()&&t.$sc&&(n=t.$sc.scrollTop()),t.opts.iframe&&t.$el.attr("contenteditable","false"),h.focus(),t.helpers.isIOS()&&t.$sc&&t.$sc.scrollTop(n),t.win.setTimeout(a,1)}(),!1}function i(n){if(n.originalEvent&&(n=n.originalEvent),n&&n.dataTransfer&&n.dataTransfer.getData){var r="",o=n.dataTransfer.types;if(t.helpers.isArray(o))for(var i=0;i<o.length;i++)r+=o[i]+";";else r=o;if(u="",/text\/rtf/.test(r)&&(g=n.dataTransfer.getData("text/rtf")),/text\/html/.test(r)?u=n.dataTransfer.getData("text/html"):/text\/rtf/.test(r)&&t.browser.safari?u=g:/text\/plain/.test(r)&&!this.browser.mozilla&&(u=t.html.escapeEntities(n.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>")),""!==u){t.keys.forceUndo(),m=t.snapshot.get(),t.selection.save(),t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var s=t.markers.insertAtPoint(n);if(t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),t.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),t.selection.restore(),t.selection.remove(),t.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==s){var l=t.el.querySelector(".fr-marker");return e(l).replaceWith(e.FE.MARKERS),t.selection.restore(),a(),n.preventDefault&&(n.stopPropagation(),n.preventDefault()),!1}}else u=null}}function a(){t.opts.iframe&&t.$el.attr("contenteditable","true"),t.browser.edge&&t.opts.iframe&&t.$box.after(h),m||(t.keys.forceUndo(),m=t.snapshot.get()),u||(u=h.get(0).innerHTML,t.selection.restore(),t.events.enableBlur());var e=u.match(/(class=\"?Mso|class=\'?Mso|class="?Xl|class='?Xl|class=Xl|style=\"[^\"]*\bmso\-|style=\'[^\']*\bmso\-|w:WordDocument)/gi),n=t.events.chainTrigger("paste.beforeCleanup",u);n&&"string"==typeof n&&(u=n),(!e||e&&!1!==t.events.trigger("paste.wordPaste",[u]))&&l(u,e)}function s(e){for(var t="",n=0;n++<e;)t+="&nbsp;";return t}function l(n,r,o){var i,a=null,l=null;if(0<=n.toLowerCase().indexOf("<body")){var d="";0<=n.indexOf("<style")&&(d=n.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),n=d+n.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1");var p=0,f="";n.replace(/<pre.*?>([\s\S]*?)<\/pre>/gi,function(e,t,r){r>p&&(f+=n.substring(p,r).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")),f+=e,p=r+e.length}),n.length>p+1&&(f+=n.substring(p,n.length).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")),n=f}var g=!1;0<=n.indexOf('id="docs-internal-guid')&&(n=n.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),g=!0),0<=n.indexOf('content="Sheets"')&&(n=n.replace(/width:0px;/g,""));var h=!1,E=!1;if(!r)if(h=function(n){var r=null;try{r=t.win.localStorage.getItem("fr-copied-text")}catch(o){}return!(!r||e("<div>").html(n).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=r.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(n),E=function(){var n=null;try{n=t.win.localStorage.getItem("fr-dragged-content-text")}catch(r){}return!(!n||e("<div>").html(u).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=n.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(),h&&(n=t.win.localStorage.getItem("fr-copied-html")),E&&(h=!0,n=t.win.localStorage.getItem("fr-dragged-content-html")),h)n=t.clean.html(n,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs);else{var v=t.opts.htmlAllowedStyleProps;t.opts.htmlAllowedStyleProps=t.opts.pasteAllowedStyleProps,t.opts.htmlAllowComments=!1,n=(n=(n=n.replace(/<span class="Apple-tab-span">\s*<\/span>/g,s(t.opts.tabSpaces||4))).replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,function(e,n){return s(n.length*(t.opts.tabSpaces||4))})).replace(/\t/g,s(t.opts.tabSpaces||4)),n=t.clean.html(n,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs),t.opts.htmlAllowedStyleProps=v,t.opts.htmlAllowComments=!0,n=(n=(n=c(n)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!r||t.wordPaste&&o||(0===(n=n.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("<colgroup>")&&(n="<table>"+n+"</table>"),n=c(n=function(e){var n;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>")).replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>")).replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>")).replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span")).replace(/<!--\[if \!supportLists\]-->([\s\S]*?)<!--\[endif\]-->/gi,"")).replace(/<!\[if \!supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(/<!--[\s\S]*?-->/gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var r,o=["style","script","applet","embed","noframes","noscript"];for(n=0;n<o.length;n++){var i=new RegExp("<"+o[n]+".*?"+o[n]+"(.*?)>","gi");e=e.replace(i,"")}for(e=(e=(e=e.replace(/&nbsp;/gi," ")).replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>")).replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");(e=(r=e).replace(/<[^\/>][^>]*><\/[^>]+>/gi,""))!=r;);e=(e=e.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>')).replace(/<lilevel1([^>]*)>/gi,"<li$1>"),e=(e=(e=t.clean.html(e,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs)).replace(/<a>(.[^<]+)<\/a>/gi,"$1")).replace(/<br> */g,"<br>");var a=t.o_doc.createElement("div");a.innerHTML=e;var s=a.querySelectorAll("li[data-indent]");for(n=0;n<s.length;n++){var l=s[n],d=l.previousElementSibling;if(d&&"LI"==d.tagName){var c=d.querySelector(":scope > ul, :scope > ol");c||(c=document.createElement("ul"),d.appendChild(c)),c.appendChild(l)}else l.removeAttribute("data-indent")}return t.html.cleanBlankSpaces(a),e=a.innerHTML}(n))),t.opts.pastePlain&&!E&&(n=function(e){var n,r=null,o=t.doc.createElement("div");o.innerHTML=e;var i=o.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(n=0;n<i.length;n++)(r=i[n]).outerHTML="<"+(t.html.defaultTag()||"DIV")+">"+r.innerHTML+"</"+(t.html.defaultTag()||"DIV")+">";for(n=(i=o.querySelectorAll("*:not("+"p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not(")+")")).length-1;n>=0;n--)(r=i[n]).outerHTML=r.innerHTML;var a=function(e){for(var n=t.node.contents(e),r=0;r<n.length;r++)n[r].nodeType!=Node.TEXT_NODE&&n[r].nodeType!=Node.ELEMENT_NODE?n[r].parentNode.removeChild(n[r]):a(n[r])};return a(o),o.innerHTML}(n));var b=t.events.chainTrigger("paste.afterCleanup",n);if("string"==typeof b&&(n=b),""!==n){var S=t.o_doc.createElement("div");0<=(S.innerHTML=n).indexOf("<body>")?(t.html.cleanBlankSpaces(S),t.spaces.normalize(S,!0)):t.spaces.normalize(S);var T=S.getElementsByTagName("span");for(i=T.length-1;i>=0;i--){var y=T[i];0===y.attributes.length&&(y.outerHTML=y.innerHTML)}if(!0===t.opts.linkAlwaysBlank){var N=S.getElementsByTagName("a");for(i=N.length-1;i>=0;i--){var C=N[i];C.getAttribute("target")||C.setAttribute("target","_blank")}}var A=t.selection.element(),x=!1;if(A&&e(A).parentsUntil(t.el,"ul, ol").length&&(x=!0),x){var $=S.children;1==$.length&&0<=["OL","UL"].indexOf($[0].tagName)&&($[0].outerHTML=$[0].innerHTML)}if(!g){var O=S.getElementsByTagName("br");for(i=O.length-1;i>=0;i--){var w=O[i];t.node.isBlock(w.previousSibling)&&w.parentNode.removeChild(w)}}if(t.opts.enter==e.FE.ENTER_BR)for(i=(a=S.querySelectorAll("p, div")).length-1;i>=0;i--)0===(l=a[i]).attributes.length&&(l.outerHTML=l.innerHTML+(l.nextSibling&&!t.node.isEmpty(l)?"<br>":""));else if(t.opts.enter==e.FE.ENTER_DIV)for(i=(a=S.getElementsByTagName("p")).length-1;i>=0;i--)0===(l=a[i]).attributes.length&&(l.outerHTML="<div>"+l.innerHTML+"</div>");else t.opts.enter==e.FE.ENTER_P&&1==S.childNodes.length&&"P"==S.childNodes[0].tagName&&0===S.childNodes[0].attributes.length&&(S.childNodes[0].outerHTML=S.childNodes[0].innerHTML);n=S.innerHTML,h&&(n=function(n){var r,o=t.o_doc.createElement("div");o.innerHTML=n;for(var i=o.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")");i.length;){for(r=0;r<i.length;r++)i[r].parentNode.removeChild(i[r]);i=o.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")")}return o.innerHTML}(n)),t.html.insert(n,!0)}t.events.trigger("paste.after"),t.undo.saveStep(m),m=null,t.undo.saveStep()}function d(e){for(var t=e.length-1;t>=0;t--)e[t].attributes&&e[t].attributes.length&&e.splice(t,1);return e}function c(e){var n,r=t.o_doc.createElement("div");r.innerHTML=e;for(var o=d(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));o.length;){var i=o[o.length-1];if(t.html.defaultTag()&&"div"!=t.html.defaultTag())i.outerHTML=i.querySelector(t.html.blockTagsQuery())?i.innerHTML:"<"+t.html.defaultTag()+">"+i.innerHTML+"</"+t.html.defaultTag()+">";else{var a=i.querySelectorAll("*");i.outerHTML=!a.length||"BR"!==a[a.length-1].tagName&&0===i.innerText.length?i.innerHTML+(i.nextSibling?"<br>":""):!a.length||"BR"!==a[a.length-1].tagName||a[a.length-1].nextSibling?i.innerHTML+(i.nextSibling?"<br>":""):i.innerHTML}o=d(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(o=d(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")));o.length;){for(n=0;n<o.length;n++){var s=o[n],l=s.innerHTML.replace(/\u0009/gi,"").trim();try{s.outerHTML=l}catch(c){}}o=d(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")))}return r.innerHTML}function p(e){if(e.originalEvent&&e.originalEvent.target&&e.originalEvent.target.nodeType==Node.TEXT_NODE)try{t.win.localStorage.setItem("fr-dragged-content-html",e.originalEvent.dataTransfer.getData("text/html")),t.win.localStorage.setItem("fr-dragged-content-text",e.originalEvent.dataTransfer.getData("text/plain"))}catch(n){}}function f(){t.el.removeEventListener("copy",r),t.el.removeEventListener("cut",r),t.el.removeEventListener("paste",o)}var u,g,h,m,E=!1;return{_init:function(){t.el.addEventListener("copy",r),t.el.addEventListener("cut",r),t.el.addEventListener("paste",o,{capture:!0}),t.events.on("drop",i),t.browser.msie&&t.browser.version<11&&(t.events.on("mouseup",function(e){2==e.button&&(setTimeout(function(){E=!1},50),E=!0)},!0),t.events.on("beforepaste",o)),t.events.on("dragstart",p,!0),t.events.on("destroy",f)},cleanEmptyTagsAndDivs:c,getRtfClipboard:function(){return g},saveCopiedText:n,clean:l}},e.extend(e.FE.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0}),e.FE.SHORTCUTS_MAP={},e.FE.RegisterShortcut=function(t,n,r,o,i,a){e.FE.SHORTCUTS_MAP[(i?"^":"")+(a?"@":"")+t]={cmd:n,val:r,letter:o,shift:i,option:a},e.FE.DEFAULTS.shortcutsEnabled.push(n)},e.FE.RegisterShortcut(e.FE.KEYCODE.E,"show",null,"E",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.B,"bold",null,"B",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.I,"italic",null,"I",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.U,"underline",null,"U",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.S,"strikeThrough",null,"S",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.OPEN_SQUARE_BRACKET,"outdent",null,"[",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"undo",null,"Z",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"redo",null,"Z",!0,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Y,"redo",null,"Y",!1,!1),e.FE.MODULES.shortcuts=function(t){function n(n){if(!t.core.hasFocus())return!0;var r=n.which,i=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if("keyup"==n.type&&o&&r!=e.FE.KEYCODE.META)return o=!1;"keydown"==n.type&&(o=!1);var a=(n.shiftKey?"^":"")+(n.altKey?"@":"")+r,s=t.node.blockParent(t.selection.blocks()[0]);if(i&&e.FE.SHORTCUTS_MAP[a]&&(!s||"false"!=e(s).attr("contenteditable"))){var l=e.FE.SHORTCUTS_MAP[a].cmd;if(l&&0<=t.opts.shortcutsEnabled.indexOf(l)){var d,c=e.FE.SHORTCUTS_MAP[a].val;
if(l&&!c?d=t.$tb.find('.fr-command[data-cmd="'+l+'"]'):l&&c&&(d=t.$tb.find('.fr-command[data-cmd="'+l+'"][data-param1="'+c+'"]')),d.length)return n.preventDefault(),n.stopPropagation(),d.parents(".fr-toolbar").data("instance",t),"keydown"==n.type&&(t.button.exec(d),o=!0),!1;if(l&&(t.commands[l]||e.FE.COMMANDS[l]&&e.FE.COMMANDS[l].callback))return n.preventDefault(),n.stopPropagation(),"keydown"==n.type&&((t.commands[l]||e.FE.COMMANDS[l].callback)(),o=!0),!1}}}var r=null,o=!1;return{_init:function(){t.events.on("keydown",n,!0),t.events.on("keyup",n,!0)},get:function(n){if(!t.opts.shortcutsHint)return null;if(!r)for(var o in r={},e.FE.SHORTCUTS_MAP)e.FE.SHORTCUTS_MAP.hasOwnProperty(o)&&0<=t.opts.shortcutsEnabled.indexOf(e.FE.SHORTCUTS_MAP[o].cmd)&&(r[e.FE.SHORTCUTS_MAP[o].cmd+"."+(e.FE.SHORTCUTS_MAP[o].val||"")]={shift:e.FE.SHORTCUTS_MAP[o].shift,option:e.FE.SHORTCUTS_MAP[o].option,letter:e.FE.SHORTCUTS_MAP[o].letter});var i=r[n];return i?(t.helpers.isMac()?String.fromCharCode(8984):t.language.translate("Ctrl")+"+")+(i.shift?t.helpers.isMac()?String.fromCharCode(8679):t.language.translate("Shift")+"+":"")+(i.option?t.helpers.isMac()?String.fromCharCode(8997):t.language.translate("Alt")+"+":"")+i.letter:null}}},e.FE.MODULES.snapshot=function(e){function t(e){for(var t=e.parentNode.childNodes,n=0,r=null,o=0;o<t.length;o++){if(r){var i=t[o].nodeType===Node.TEXT_NODE&&""===t[o].textContent,a=r.nodeType===Node.TEXT_NODE&&t[o].nodeType===Node.TEXT_NODE,s=r.nodeType===Node.TEXT_NODE&&""===r.textContent;i||a||s||n++}if(t[o]==e)return n;r=t[o]}}function n(n){var r=[];if(!n.parentNode)return[];for(;!e.node.isElement(n);)r.push(t(n)),n=n.parentNode;return r.reverse()}function r(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;){var n=e.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&(t+=n.textContent.length),e=n}return t}function o(t){for(var n=e.el,r=0;r<t.length;r++)n=n.childNodes[t[r]];return n}function i(t,n){try{var r=o(n.scLoc),i=n.scOffset,a=o(n.ecLoc),s=n.ecOffset,l=e.doc.createRange();l.setStart(r,i),l.setEnd(a,s),t.addRange(l)}catch(d){}}return{get:function(){var t,o={};if(e.events.trigger("snapshot.before"),o.html=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),o.ranges=[],e.$wp&&e.selection.inEditor()&&e.core.hasFocus())for(var i=e.selection.ranges(),a=0;a<i.length;a++)o.ranges.push({scLoc:n((t=i[a]).startContainer),scOffset:r(t.startContainer,t.startOffset),ecLoc:n(t.endContainer),ecOffset:r(t.endContainer,t.endOffset)});return e.events.trigger("snapshot.after",[o]),o},restore:function(t){e.$el.html()!=t.html&&(e.opts.htmlExecuteScripts?e.$el.html(t.html):e.el.innerHTML=t.html);var n=e.selection.get();e.selection.clear(),e.events.focus(!0);for(var r=0;r<t.ranges.length;r++)i(n,t.ranges[r])},equal:function(t,n){return t.html==n.html&&(!e.core.hasFocus()||JSON.stringify(t.ranges)==JSON.stringify(n.ranges))}}},e.FE.MODULES.undo=function(e){function t(t){var n=t.which;e.keys.ctrlKey(t)&&(90==n&&t.shiftKey&&t.preventDefault(),90==n&&t.preventDefault())}function n(){if(!e.undo_stack||e.undoing)return!1;for(;e.undo_stack.length>e.undo_index;)e.undo_stack.pop()}function r(){i=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),e.undo_index=0,e.undo_stack=[]}function o(){e.undo_stack=[]}var i=null;return{_init:function(){r(),e.events.on("initialized",function(){i=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),e.events.on("blur",function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()}),e.events.on("keydown",t),e.events.on("destroy",o)},run:function(){if(1<e.undo_index){e.undoing=!0;var t=e.undo_stack[--e.undo_index-1];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),i=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.undo"),e.undoing=!1}},redo:function(){if(e.undo_index<e.undo_stack.length){e.undoing=!0;var t=e.undo_stack[e.undo_index++];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),i=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.redo"),e.undoing=!1}},canDo:function(){return!(0===e.undo_stack.length||e.undo_index<=1)},canRedo:function(){return e.undo_index!=e.undo_stack.length},dropRedo:n,reset:r,saveStep:function(t){return!e.undo_stack||e.undoing||e.el.querySelector(".fr-marker")?!1:void(void 0===t?(t=e.snapshot.get(),e.undo_stack[e.undo_index-1]&&e.snapshot.equal(e.undo_stack[e.undo_index-1],t)||(n(),e.undo_stack.push(t),e.undo_index++,t.html!=i&&(e.events.trigger("contentChanged"),i=t.html))):(n(),0<e.undo_index?e.undo_stack[e.undo_index-1]=t:(e.undo_stack.push(t),e.undo_index++)))}}},e.FE.ICON_TEMPLATES={font_awesome:'<i class="fa fa-[NAME]" aria-hidden="true"></i>',font_awesome_5:'<i class="fas fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5r:'<i class="far fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5l:'<i class="fal fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5b:'<i class="fab fa-[FA5NAME]" aria-hidden="true"></i>',text:'<span style="text-align: center;">[NAME]</span>',image:"<img src=[SRC] alt=[ALT] />",svg:'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">[PATH]</svg>',empty:" "},e.FE.ICONS={bold:{NAME:"bold"},italic:{NAME:"italic"},underline:{NAME:"underline"},strikeThrough:{NAME:"strikethrough"},subscript:{NAME:"subscript"},superscript:{NAME:"superscript"},color:{NAME:"tint"},outdent:{NAME:"outdent"},indent:{NAME:"indent"},undo:{NAME:"rotate-left",FA5NAME:"undo"},redo:{NAME:"rotate-right",FA5NAME:"redo"},insertHR:{NAME:"minus"},clearFormatting:{NAME:"eraser"},selectAll:{NAME:"mouse-pointer"}},e.FE.DefineIconTemplate=function(t,n){e.FE.ICON_TEMPLATES[t]=n},e.FE.DefineIcon=function(t,n){e.FE.ICONS[t]=n},e.extend(e.FE.DEFAULTS,{iconsTemplate:"font_awesome"}),e.FE.MODULES.icon=function(t){return{create:function(n){var r=null,o=e.FE.ICONS[n];if(void 0!==o){var i=o.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate;i&&i.apply&&(i=i.apply(t)),o.FA5NAME||(o.FA5NAME=o.NAME),i&&(i=e.FE.ICON_TEMPLATES[i])&&(r=i.replace(/\[([a-zA-Z0-9]*)\]/g,function(e,t){return"NAME"==t?o[t]||n:o[t]}))}return r||n},getTemplate:function(n){var r=e.FE.ICONS[n],o=t.opts.iconsTemplate;return void 0!==r?o=r.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate:o}}},e.extend(e.FE.DEFAULTS,{tooltips:!0}),e.FE.MODULES.tooltip=function(t){function n(){return t.helpers.isMobile()?!1:void(t.$tooltip&&t.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed"))}function r(n,r){if(t.helpers.isMobile())return!1;if(n.data("title")||n.data("title",n.attr("title")),!n.data("title"))return!1;t.$tooltip||t.opts.tooltips&&!t.helpers.isMobile()&&(t.shared.$tooltip?t.$tooltip=t.shared.$tooltip:(t.shared.$tooltip=e('<div class="fr-tooltip"></div>'),t.$tooltip=t.shared.$tooltip,t.opts.theme&&t.$tooltip.addClass(t.opts.theme+"-theme"),e(t.o_doc).find("body:first").append(t.$tooltip)),t.events.on("shared.destroy",function(){t.$tooltip.html("").removeData().remove(),t.$tooltip=null},!0)),n.removeAttr("title"),t.$tooltip.text(t.language.translate(n.data("title"))),t.$tooltip.addClass("fr-visible");var o=n.offset().left+(n.outerWidth()-t.$tooltip.outerWidth())/2;0>o&&(o=0),o+t.$tooltip.outerWidth()>e(t.o_win).width()&&(o=e(t.o_win).width()-t.$tooltip.outerWidth()),void 0===r&&(r=t.opts.toolbarBottom),n.offset().top-e(window).scrollTop()+n.outerHeight()+10>=e(window).height()&&(r=!0);var i=r?n.offset().top-t.$tooltip.height():n.offset().top+n.outerHeight();t.$tooltip.css("position",""),t.$tooltip.css("left",o),t.$tooltip.css("top",Math.ceil(i)),"static"!=e(t.o_doc).find("body:first").css("position")?(t.$tooltip.css("margin-left",-e(t.o_doc).find("body:first").offset().left),t.$tooltip.css("margin-top",-e(t.o_doc).find("body:first").offset().top)):(t.$tooltip.css("margin-left",""),t.$tooltip.css("margin-top",""))}return{hide:n,to:r,bind:function(o,i,a){t.opts.tooltips&&!t.helpers.isMobile()&&(t.events.$on(o,"mouseenter",i,function(n){t.node.hasClass(n.currentTarget,"fr-disabled")||t.edit.isDisabled()||r(e(n.currentTarget),a)},!0),t.events.$on(o,"mouseleave "+t._mousedown+" "+t._mouseup,i,function(){n()},!0))}}},e.FE.MODULES.button=function(t){function n(t,n,r){for(var o=e(),i=0;i<t.length;i++){var a=e(t[i]);if(a.is(n)&&(o=o.add(a)),r&&a.is(".fr-dropdown")){var s=a.next().find(n);o=o.add(s)}}return o}function r(r,o){var i,a=e();if(!r)return a;for(i in a=(a=a.add(n(h,r,o))).add(n(m,r,o)),t.shared.popups)if(t.shared.popups.hasOwnProperty(i)){var s=t.shared.popups[i].children().find(r);a=a.add(s)}for(i in t.shared.modals)if(t.shared.modals.hasOwnProperty(i)){var l=t.shared.modals[i].$modal.find(r);a=a.add(l)}return a}function o(e){e.addClass("fr-blink"),setTimeout(function(){e.removeClass("fr-blink")},500);for(var t=e.data("cmd"),n=[];void 0!==e.data("param"+(n.length+1));)n.push(e.data("param"+(n.length+1)));var o=r(".fr-dropdown.fr-active");o.length&&(o.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),o.prev(".fr-expanded").removeClass("fr-expanded"),o.parent(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function i(n){var i=n.parents(".fr-popup, .fr-toolbar").data("instance");if(0!==n.parents(".fr-popup").length||n.data("popup")||i.popups.hideAll(),i.popups.areVisible()&&!i.popups.areVisible(i)){for(var a=0;a<e.FE.INSTANCES.length;a++)e.FE.INSTANCES[a]!=i&&e.FE.INSTANCES[a].popups&&e.FE.INSTANCES[a].popups.areVisible()&&e.FE.INSTANCES[a].$el.find(".fr-marker").remove();i.popups.hideAll()}t.node.hasClass(n.get(0),"fr-dropdown")?function(n){var o=n.next(),i=t.node.hasClass(n.get(0),"fr-active"),a=r(".fr-dropdown.fr-active").not(n),s=n.parents(".fr-toolbar, .fr-popup").data("instance")||t;if(s.helpers.isIOS()&&!s.el.querySelector(".fr-marker")&&(s.selection.save(),s.selection.clear(),s.selection.restore()),!i){var l=n.data("cmd");o.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),e.FE.COMMANDS[l]&&e.FE.COMMANDS[l].refreshOnShow&&e.FE.COMMANDS[l].refreshOnShow.apply(s,[n,o]),o.css("left",n.offset().left-n.parent().offset().left-("rtl"==t.opts.direction?o.width()-n.outerWidth():0)),o.addClass("test-height");var d=o.outerHeight();o.removeClass("test-height"),o.css("top","").css("bottom",""),!t.opts.toolbarBottom&&o.offset().top+n.outerHeight()+d<e(t.o_doc).height()?o.css("top",n.position().top+n.outerHeight()):o.css("bottom",n.parents(".fr-popup, .fr-toolbar").first().height()-n.position().top)}n.addClass("fr-blink").toggleClass("fr-active"),n.hasClass("fr-options")&&n.prev().toggleClass("fr-expanded"),n.hasClass("fr-active")?(o.attr("aria-hidden",!1),n.attr("aria-expanded",!0)):(o.attr("aria-hidden",!0),n.attr("aria-expanded",!1)),setTimeout(function(){n.removeClass("fr-blink")},300),o.css("margin-left",""),o.offset().left+o.outerWidth()>t.$sc.offset().left+t.$sc.width()&&o.css("margin-left",-(o.offset().left+o.outerWidth()-t.$sc.offset().left-t.$sc.width())),o.offset().left<t.$sc.offset().left&&"rtl"==t.opts.direction&&o.css("margin-left",t.$sc.offset().left),a.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),a.prev(".fr-expanded").removeClass("fr-expanded"),a.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==n.parents(".fr-popup").length||t.opts.toolbarInline||(t.node.hasClass(n.get(0),"fr-active")?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):t.$tb.css("zIndex",""));var c=o.find("a.fr-command.fr-active:first");t.helpers.isMobile()||t.accessibility.focusToolbarElement(c.length?c:n)}(n):(o(n),e.FE.COMMANDS[n.data("cmd")]&&!1!==e.FE.COMMANDS[n.data("cmd")].refreshAfterCallback&&i.button.bulkRefresh())}function a(t){i(e(t.currentTarget))}function s(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),t.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),t.prev().removeClass("fr-expanded"))}function l(e){e.preventDefault(),e.stopPropagation()}function d(e){return e.stopPropagation(),t.helpers.isMobile()?void 0:!1}function c(n,r,o){if(r=e.extend(!0,{},r),t.helpers.isMobile()&&!1===r.showOnMobile)return"";var i=r.displaySelection;"function"==typeof i&&(i=i(t));var a="";if("options"!==r.type)if(i){var s="function"==typeof r.defaultSelection?r.defaultSelection(t):r.defaultSelection;a='<span style="width:'+(r.displaySelectionWidth||100)+'px">'+t.language.translate(s||r.title)+"</span>"}else a=t.icon.create(r.icon||n),a+='<span class="fr-sr-only">'+(t.language.translate(r.title)||"")+"</span>";var l=r.popup?' data-popup="true"':"",d=r.modal?' data-modal="true"':"",p=t.shortcuts.get(n+".");p=p?" ("+p+")":"";var f=n+"-"+t.id,u="dropdown-menu-"+f,g='<button id="'+f+'"type="button" tabIndex="-1" role="button"'+(r.toggle?' aria-pressed="false"':"")+("dropdown"==r.type||"options"==r.type?' aria-controls="'+u+'" aria-expanded="false" aria-haspopup="true"':"")+(r.disabled?' aria-disabled="true"':"")+' title="'+(t.language.translate(r.title)||"")+p+'" class="fr-command fr-btn'+("dropdown"==r.type||"options"==r.type?" fr-dropdown":"")+("options"==r.type?" fr-options":"")+" fr-btn-"+t.icon.getTemplate(r.icon)+(r.displaySelection?" fr-selection":"")+(r.back?" fr-back":"")+(r.disabled?" fr-disabled":"")+(o?"":" fr-hidden")+'" data-cmd="'+n+'"'+l+d+">"+a+"</button>";if("dropdown"==r.type||"options"==r.type){var h='<div id="'+u+'" class="fr-dropdown-menu" role="listbox" aria-labelledby="'+f+'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">';h+=function(e,n){var r="";if(n.html)r+="function"==typeof n.html?n.html.call(t):n.html;else{var o=n.options;for(var i in"function"==typeof o&&(o=o()),r+='<ul class="fr-dropdown-list" role="presentation">',o)if(o.hasOwnProperty(i)){var a=t.shortcuts.get(e+"."+i);a=a?'<span class="fr-shortcut">'+a+"</span>":"",r+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'+("options"===n.type?e.replace(/Options/g,""):e)+'" data-param1="'+i+'" title="'+o[i]+'">'+t.language.translate(o[i])+"</a></li>"}r+="</ul>"}return r}(n,r),g+=h+="</div></div></div>"}return r.hasOptions&&r.hasOptions.apply(t)&&(r.type="options",r.hasOptions=!1,g='<div class="fr-btn-wrap">'+g+c(n+"Options",r,o)+"</div>"),g}function p(n){var r=t.$tb&&t.$tb.data("instance")||t;return!1===t.events.trigger("buttons.refresh")?!0:void setTimeout(function(){for(var o=r.selection.inEditor()&&r.core.hasFocus(),i=0;i<n.length;i++){var a=e(n[i]),s=a.data("cmd");0===a.parents(".fr-popup").length?o||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].forcedRefresh?r.button.refresh(a):t.node.hasClass(a.get(0),"fr-dropdown")||(a.removeClass("fr-active"),a.attr("aria-pressed")&&a.attr("aria-pressed",!1)):a.parents(".fr-popup").is(":visible")&&r.button.refresh(a)}},0)}function f(){p(h),p(m)}function u(){h=[],m=[]}function g(){clearTimeout(E),E=setTimeout(f,50)}var h=[];(t.opts.toolbarInline||t.opts.toolbarContainer)&&(t.shared.buttons||(t.shared.buttons=[]),h=t.shared.buttons);var m=[];t.shared.popup_buttons||(t.shared.popup_buttons=[]),m=t.shared.popup_buttons;var E=null;return{_init:function(){t.opts.toolbarInline?t.events.on("toolbar.show",f):(t.events.on("mouseup",g),t.events.on("keyup",g),t.events.on("blur",g),t.events.on("focus",g),t.events.on("contentChanged",g),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",f)),t.events.on("shared.destroy",u)},buildList:function(n,r){for(var o="",i=0;i<n.length;i++){var a=n[i],s=e.FE.COMMANDS[a];s&&"undefined"!=typeof s.plugin&&t.opts.pluginsEnabled.indexOf(s.plugin)<0||(s?o+=c(a,s,void 0===r||0<=r.indexOf(a)):"|"==a?o+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==a&&(o+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'))}return o},bindCommands:function(n,r){t.events.bindClick(n,".fr-command:not(.fr-disabled)",a),t.events.$on(n,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu",l,!0),t.events.$on(n,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu .fr-dropdown-wrapper",d,!0);var o=n.get(0).ownerDocument,i="defaultView"in o?o.defaultView:o.parentWindow,c=function(r){(!r||r.type==t._mouseup&&r.target!=e("html").get(0)||"keydown"==r.type&&(t.keys.isCharacter(r.which)&&!t.keys.ctrlKey(r)||r.which==e.FE.KEYCODE.ESC))&&s(n)};t.events.$on(e(i),t._mouseup+" resize keydown",c,!0),t.opts.iframe&&t.events.$on(t.$win,t._mouseup,c,!0),t.node.hasClass(n.get(0),"fr-popup")?e.merge(m,n.find(".fr-btn").toArray()):e.merge(h,n.find(".fr-btn").toArray()),t.tooltip.bind(n,".fr-btn, .fr-title",r)},refresh:function(n){var r,o=n.parents(".fr-popup, .fr-toolbar").data("instance")||t,i=n.data("cmd");t.node.hasClass(n.get(0),"fr-dropdown")?r=n.next():(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)),e.FE.COMMANDS[i]&&e.FE.COMMANDS[i].refresh?e.FE.COMMANDS[i].refresh.apply(o,[n,r]):t.refresh[i]&&o.refresh[i](n,r)},bulkRefresh:f,exec:o,click:i,hideActiveDropdowns:s,getButtons:r}},e.FE.MODULES.modals=function(t){function n(){for(var e in a){var t=a[e];t&&t.$modal&&t.$modal.removeData().remove()}i&&i.removeData().remove(),a={}}function r(n,r){if(a[n]){var o=a[n].$modal,s=o.data("instance")||t;s.events.enableBlur(),o.hide(),i.hide(),e(s.o_doc).find("body:first").removeClass("prevent-scroll fr-mobile"),o.removeClass("fr-active"),r||(s.accessibility.restoreSelection(),s.events.trigger("modals.hide"))}}function o(e){var n;if("string"==typeof e){if(!a[e])return;n=a[e].$modal}else n=e;return n&&t.node.hasClass(n,"fr-active")&&t.core.sameInstance(n)||!1}t.shared.modals||(t.shared.modals={});var i,a=t.shared.modals;return{_init:function(){t.events.on("shared.destroy",n,!0)},get:function(e){return a[e]},create:function(n,o,s){if(t.shared.$overlay||(t.shared.$overlay=e('<div class="fr-overlay">').appendTo("body:first")),i=t.shared.$overlay,t.opts.theme&&i.addClass(t.opts.theme+"-theme"),!a[n]){var l=(d=o,c=s,p='<div tabIndex="-1" class="fr-modal'+(t.opts.theme?" "+t.opts.theme+"-theme":"")+'"><div class="fr-modal-wrapper">',p+='<div class="fr-modal-head">'+d+'<span title="'+t.language.translate("Cancel")+'" class="fr-modal-close">&times;</span></div>',p+='<div tabIndex="-1" class="fr-modal-body">'+c+"</div>",e(p+="</div></div>"));a[n]={$modal:l,$head:l.find(".fr-modal-head"),$body:l.find(".fr-modal-body")},t.helpers.isMobile()||l.addClass("fr-desktop"),l.appendTo("body:first"),t.events.$on(l,"click",".fr-modal-close",function(){r(n)},!0),a[n].$body.css("margin-top",a[n].$head.outerHeight()),t.events.$on(l,"keydown",function(o){var i=o.which;return i==e.FE.KEYCODE.ESC?(r(n),t.accessibility.focusModalButton(l),!1):!(!e(o.target).is("input[type=text], textarea")&&i!=e.FE.KEYCODE.ARROW_UP&&i!=e.FE.KEYCODE.ARROW_DOWN&&!t.keys.isBrowserAction(o)&&(o.preventDefault(),o.stopPropagation(),1))},!0),r(n,!0)}var d,c,p;return a[n]},show:function(n){if(a[n]){var r=a[n].$modal;r.data("instance",t),r.show(),i.show(),e(t.o_doc).find("body:first").addClass("prevent-scroll"),t.helpers.isMobile()&&e(t.o_doc).find("body:first").addClass("fr-mobile"),r.addClass("fr-active"),t.accessibility.focusModal(r)}},hide:r,resize:function(n){if(a[n]){var r=a[n],o=r.$modal,i=r.$body,s=e(t.o_win).height(),l=o.find(".fr-modal-wrapper"),d=s-l.outerHeight(!0)+(l.height()-(i.outerHeight(!0)-i.height())),c="auto";d<i.get(0).scrollHeight&&(c=d),i.height(c)}},isVisible:o,areVisible:function(e){for(var t in a)if(a.hasOwnProperty(t)&&o(t)&&(void 0===e||a[t].$modal.data("instance")==e))return a[t].$modal;return!1}}},e.FE.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"},e.FE.RegisterTemplate=function(t,n){e.FE.POPUP_TEMPLATES[t]=n},e.FE.MODULES.popups=function(t){function n(e,n){n.is(":visible")||(n=t.$sc),n.is(g[e].data("container"))||(g[e].data("container",n),n.append(g[e]))}function r(e){return g[e]&&t.node.hasClass(g[e],"fr-active")&&t.core.sameInstance(g[e])||!1}function o(e){for(var t in g)if(g.hasOwnProperty(t)&&r(t)&&(void 0===e||g[t].data("instance")==e))return g[t];return!1}function i(e){var n=null;(n="string"!=typeof e?e:g[e])&&t.node.hasClass(n,"fr-active")&&(n.removeClass("fr-active fr-above"),t.events.trigger("popups.hide."+e),t.$tb&&(1<t.opts.zIndex?t.$tb.css("zIndex",t.opts.zIndex+1):t.$tb.css("zIndex","")),t.events.disableBlur(),n.find("input, textarea, button").filter(":focus").blur(),n.find("input, textarea").attr("disabled","disabled"))}function a(e){for(var t in void 0===e&&(e=[]),g)g.hasOwnProperty(t)&&e.indexOf(t)<0&&i(t)}function s(){t.shared.exit_flag=!0}function l(){t.shared.exit_flag=!1}function d(){return t.shared.exit_flag}function c(n,r){var o,i,a=function(n,r){var o=e.FE.POPUP_TEMPLATES[n];if(!o)return null;for(var i in"function"==typeof o&&(o=o.apply(t)),r)r.hasOwnProperty(i)&&(o=o.replace("[_"+i.toUpperCase()+"_]",r[i]));return o}(n,r);return a?(o=e('<div class="fr-popup'+(t.helpers.isMobile()?" fr-mobile":" fr-desktop")+(t.opts.toolbarInline?" fr-inline":"")+'"><span class="fr-arrow"></span>'+a+"</div>"),t.opts.theme&&o.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&(t.opts.editInPopup?o.css("z-index",t.opts.zIndex+2):t.$tb.css("z-index",t.opts.zIndex+2)),"auto"!=t.opts.direction&&o.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),o.find("input, textarea").attr("dir",t.opts.direction).attr("disabled","disabled"),(i=e("body:first")).append(o),o.data("container",i),g[n]=o,t.button.bindCommands(o,!1),o):(o=e('<div class="fr-popup fr-empty"></div>'),(i=e("body:first")).append(o),o.data("container",i),g[n]=o)}function p(n){var o=g[n];return{_windowResize:function(){var e=o.data("instance")||t;!e.helpers.isMobile()&&o.is(":visible")&&(e.events.disableBlur(),e.popups.hide(n),e.events.enableBlur())},_inputFocus:function(n){var r=o.data("instance")||t,i=e(n.currentTarget);if(i.is("input:file")&&i.closest(".fr-layer").addClass("fr-input-focus"),n.preventDefault(),n.stopPropagation(),setTimeout(function(){r.events.enableBlur()},t.browser.msie?100:0),r.helpers.isMobile()){var a=e(r.o_win).scrollTop();setTimeout(function(){e(r.o_win).scrollTop(a)},0)}},_inputBlur:function(n){var r=o.data("instance")||t,i=e(n.currentTarget);i.is("input:file")&&i.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!=this&&e(this).is(":visible")&&(r.events.blurActive()&&r.events.trigger("blur"),r.events.enableBlur())},_editorKeydown:function(i){var a=o.data("instance")||t;a.keys.ctrlKey(i)||i.which==e.FE.KEYCODE.ALT||i.which==e.FE.KEYCODE.ESC||(r(n)&&o.find(".fr-back:visible").length?a.button.exec(o.find(".fr-back:visible:first")):i.which!=e.FE.KEYCODE.ALT&&a.popups.hide(n))},_preventFocus:function(n){var r=o.data("instance")||t,i=n.originalEvent?n.originalEvent.target||n.originalEvent.originalTarget:null;"mouseup"==n.type||e(i).is(":focus")||r.events.disableBlur(),"mouseup"!=n.type||e(i).hasClass("fr-command")||0<e(i).parents(".fr-command").length||e(i).hasClass("fr-dropdown-content")||t.button.hideActiveDropdowns(o),(t.browser.safari||t.browser.mozilla)&&"mousedown"==n.type&&e(i).is("input[type=file]")&&r.events.disableBlur();var a="input, textarea, button, select, label, .fr-command";return i&&!e(i).is(a)&&0===e(i).parents(a).length?(n.stopPropagation(),!1):(i&&e(i).is(a)&&n.stopPropagation(),void l())},_editorMouseup:function(){o.is(":visible")&&d()&&0<o.find("input:focus, textarea:focus, button:focus, select:focus").filter(":visible").length&&t.events.disableBlur()},_windowMouseup:function(e){if(!t.core.sameInstance(o))return!0;var r=o.data("instance")||t;o.is(":visible")&&d()&&(e.stopPropagation(),r.markers.remove(),r.popups.hide(n),l())},_windowKeydown:function(r){if(!t.core.sameInstance(o))return!0;var i=o.data("instance")||t,a=r.which;if(e.FE.KEYCODE.ESC==a){if(i.popups.isVisible(n)&&i.opts.toolbarInline)return r.stopPropagation(),i.popups.isVisible(n)&&(o.find(".fr-back:visible").length?(i.button.exec(o.find(".fr-back:visible:first")),i.accessibility.focusPopupButton(o)):o.find(".fr-dismiss:visible").length?i.button.exec(o.find(".fr-dismiss:visible:first")):(i.popups.hide(n),i.toolbar.showInline(null,!0),i.accessibility.focusPopupButton(o))),!1;if(i.popups.isVisible(n))return o.find(".fr-back:visible").length?(i.button.exec(o.find(".fr-back:visible:first")),i.accessibility.focusPopupButton(o)):o.find(".fr-dismiss:visible").length?i.button.exec(o.find(".fr-dismiss:visible:first")):(i.popups.hide(n),i.accessibility.focusPopupButton(o)),!1}},_doPlaceholder:function(){0===e(this).next().length&&e(this).attr("placeholder")&&e(this).after('<label for="'+e(this).attr("id")+'">'+e(this).attr("placeholder")+"</label>"),e(this).toggleClass("fr-not-empty",""!==e(this).val())},_repositionPopup:function(){if(!t.opts.height&&!t.opts.heightMax||t.opts.toolbarInline)return!0;if(t.$wp&&r(n)&&o.parent().get(0)==t.$sc.get(0)){var e=o.offset().top-t.$wp.offset().top,i=t.$wp.outerHeight();t.node.hasClass(o.get(0),"fr-above")&&(e+=o.outerHeight()),e>i||0>e?o.addClass("fr-hidden"):o.removeClass("fr-hidden")}}}}function f(e,n){t.events.on("mouseup",e._editorMouseup,!0),t.$wp&&t.events.on("keydown",e._editorKeydown),t.events.on("blur",function(){o()&&t.markers.remove(),g[n].find("iframe").length||a()}),t.$wp&&!t.helpers.isMobile()&&t.events.$on(t.$wp,"scroll.popup"+n,e._repositionPopup),t.events.on("window.mouseup",e._windowMouseup,!0),t.events.on("window.keydown",e._windowKeydown,!0),g[n].data("inst"+t.id,!0),t.events.on("destroy",function(){t.core.sameInstance(g[n])&&g[n].removeClass("fr-active").appendTo("body:first")},!0)}function u(){for(var e in g)if(g.hasOwnProperty(e)){var t=g[e];t&&(t.html("").removeData().remove(),g[e]=null)}g=[]}t.shared.popups||(t.shared.popups={});var g=t.shared.popups;return t.shared.exit_flag=!1,{_init:function(){t.events.on("shared.destroy",u,!0),t.events.on("window.mousedown",s),t.events.on("window.touchmove",l),t.events.$on(e(t.o_win),"scroll",l),t.events.on("mousedown",function(e){o()&&(e.stopPropagation(),t.$el.find(".fr-marker").remove(),s(),t.events.disableBlur())})},create:function(n,r){var o=c(n,r),i=p(n);return f(i,n),t.events.$on(o,"mousedown mouseup touchstart touchend touch","*",i._preventFocus,!0),t.events.$on(o,"focus","input, textarea, button, select",i._inputFocus,!0),t.events.$on(o,"blur","input, textarea, button, select",i._inputBlur,!0),t.accessibility.registerPopup(n),t.events.$on(o,"keydown keyup change input","input, textarea",i._doPlaceholder,!0),t.helpers.isIOS()&&t.events.$on(o,"touchend","label",function(){e("#"+e(this).attr("for")).prop("checked",function(e,t){return!t})},!0),t.events.$on(e(t.o_win),"resize",i._windowResize,!0),o},get:function(e){var n=g[e];return n&&!n.data("inst"+t.id)&&f(p(e),e),n},show:function(e,i,s,d){if(r(e)||(o()&&0<t.$el.find(".fr-marker").length?(t.events.disableBlur(),t.selection.restore()):o()||(t.events.disableBlur(),t.events.focus(),t.events.enableBlur())),a([e]),!g[e])return!1;var c=t.button.getButtons(".fr-dropdown.fr-active");c.removeClass("fr-active").attr("aria-expanded",!1).parent(".fr-toolbar").css("zIndex",""),c.next().attr("aria-hidden",!0),g[e].data("instance",t),t.$tb&&t.$tb.data("instance",t);var f=g[e].outerWidth(),u=r(e);g[e].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var h,m,E=g[e].data("container");h=e,(m=E).is(":visible")||(m=t.$sc),0===m.find([g[h]]).length&&m.append(g[h]),t.opts.toolbarInline&&E&&t.$tb&&E.get(0)==t.$tb.get(0)&&(n(e,t.$sc),s=t.$tb.offset().top-t.helpers.getPX(t.$tb.css("margin-top")),i=t.$tb.offset().left+t.$tb.outerWidth()/2+(parseFloat(t.$tb.find(".fr-arrow").css("margin-left"))||0)+t.$tb.find(".fr-arrow").outerWidth()/2,t.node.hasClass(t.$tb.get(0),"fr-above")&&s&&(s+=t.$tb.outerHeight()),d=0),E=g[e].data("container"),!t.opts.iframe||d||u||(i&&(i-=t.$iframe.offset().left),s&&(s-=t.$iframe.offset().top)),E.is(t.$tb)?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):g[e].css("zIndex",(t.opts.zIndex||1)+4),i&&(i-=f/2),t.opts.toolbarBottom&&E&&t.$tb&&E.get(0)==t.$tb.get(0)&&(g[e].addClass("fr-above"),s&&(s-=g[e].outerHeight())),g[e].removeClass("fr-active"),t.position.at(i,s,g[e],d||0),g[e].addClass("fr-active"),u||t.accessibility.focusPopup(g[e]),t.opts.toolbarInline&&t.toolbar.hide(),t.events.trigger("popups.show."+e),p(e)._repositionPopup(),l()},hide:i,onHide:function(e,n){t.events.on("popups.hide."+e,n)},hideAll:a,setContainer:n,refresh:function(n){g[n].data("instance",t),t.events.trigger("popups.refresh."+n);for(var r=g[n].find(".fr-command"),o=0;o<r.length;o++){var i=e(r[o]);0===i.parents(".fr-dropdown-menu").length&&t.button.refresh(i)}},onRefresh:function(e,n){t.events.on("popups.refresh."+e,n)},onShow:function(e,n){t.events.on("popups.show."+e,n)},isVisible:r,areVisible:o}},e.FE.MODULES.position=function(t){function n(){var e=t.selection.ranges(0).getBoundingClientRect();if(0===e.top&&0===e.left&&0===e.width||0===e.height){var n=!1;0===t.$el.find(".fr-marker").length&&(t.selection.save(),n=!0);var r=t.$el.find(".fr-marker:first");r.css("display","inline"),r.css("line-height","");var o=r.offset(),i=r.outerHeight();r.css("display","none"),r.css("line-height",0),(e={}).left=o&&o.left,e.width=0,e.height=i,e.top=o&&o.top-(t.opts.iframe?0:t.helpers.scrollTop()),e.right=1,e.bottom=1,e.ok=!0,n&&t.selection.restore()}return e}function r(e,n,r,o){var i=r.data("container");!i||"BODY"===i.get(0).tagName&&"static"==i.css("position")||(e&&(e-=i.offset().left),n&&(n-=i.offset().top),"BODY"!=i.get(0).tagName?(e&&(e+=i.get(0).scrollLeft),n&&(n+=i.get(0).scrollTop)):"absolute"==i.css("position")&&(e&&(e+=i.position().left),n&&(n+=i.position().top))),t.opts.iframe&&i&&t.$tb&&i.get(0)!=t.$tb.get(0)&&(e&&(e+=t.$iframe.offset().left),n&&(n+=t.$iframe.offset().top));var a,s,l,d,c=(s=e,l=(a=r).outerWidth(!0),d=a.parent().offset().left,a.parent().get(0)==t.$sc.get(0)&&(d-=a.parent().position().left),d+s+l>t.$sc.get(0).clientWidth-10&&(s=t.$sc.get(0).clientWidth-l-d-10),0>s&&(s=10),s);if(e){r.css("left",c);var p=r.data("fr-arrow");p||(p=r.find(".fr-arrow"),r.data("fr-arrow",p)),p.data("margin-left")||p.data("margin-left",t.helpers.getPX(p.css("margin-left"))),p.css("margin-left",e-c+p.data("margin-left"))}n&&r.css("top",function(e,n,r){var o=e.outerHeight(!0);if(!t.helpers.isMobile()&&t.$tb&&e.parent().get(0)!=t.$tb.get(0)){var i=e.parent().offset().top,a=n-o-(r||0);e.parent().get(0)==t.$sc.get(0)&&(i-=e.parent().position().top);var s=t.$sc.get(0).clientHeight;i+n+o>t.$sc.offset().top+s&&0<e.parent().offset().top+a&&a>0?a>t.$wp.scrollTop()&&(n=a,e.addClass("fr-above")):e.removeClass("fr-above")}return n}(r,n,o))}function o(n){var r=e(n),o=r.is(".fr-sticky-on"),i=r.data("sticky-top"),a=r.data("sticky-scheduled");if(void 0===i){r.data("sticky-top",0);var s=e('<div class="fr-sticky-dummy" style="height: '+r.outerHeight()+'px;"></div>');t.$box.prepend(s)}else t.$box.find(".fr-sticky-dummy").css("height",r.outerHeight());if(t.core.hasFocus()||0<t.$tb.find("input:visible:focus").length){var l=t.helpers.scrollTop(),d=Math.min(Math.max(l-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());d!=i&&d!=a&&(clearTimeout(r.data("sticky-timeout")),r.data("sticky-scheduled",d),r.outerHeight()<l-t.$tb.parent().offset().top&&r.addClass("fr-opacity-0"),r.data("sticky-timeout",setTimeout(function(){var e=t.helpers.scrollTop(),n=Math.min(Math.max(e-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());n>0&&"BODY"==t.$tb.parent().get(0).tagName&&(n+=t.$tb.parent().position().top),n!=i&&(r.css("top",Math.max(n,0)),r.data("sticky-top",n),r.data("sticky-scheduled",n)),r.removeClass("fr-opacity-0")},100))),o||(r.css("top","0"),r.width(t.$tb.parent().width()),r.addClass("fr-sticky-on"),t.$box.addClass("fr-sticky-box"))}else clearTimeout(e(n).css("sticky-timeout")),r.css("top","0"),r.css("position",""),r.width(""),r.data("sticky-top",0),r.removeClass("fr-sticky-on"),t.$box.removeClass("fr-sticky-box")}function i(n){if(n.offsetWidth){var r,o,i=e(n),a=i.outerHeight(),s=i.data("sticky-top"),l=i.data("sticky-position"),d=e("body"==t.opts.scrollableContainer?t.o_win:t.opts.scrollableContainer).outerHeight(),c=0,p=0;
"body"!==t.opts.scrollableContainer&&(c=t.$sc.offset().top,p=e(t.o_win).outerHeight()-c-d);var f="body"==t.opts.scrollableContainer?t.helpers.scrollTop():c,u=i.is(".fr-sticky-on");i.data("sticky-parent")||i.data("sticky-parent",i.parent());var g=i.data("sticky-parent"),h=g.offset().top,m=g.outerHeight();if(i.data("sticky-offset")||void 0!==s?t.$box.find(".fr-sticky-dummy").css("height",a+"px"):(i.data("sticky-offset",!0),i.after('<div class="fr-sticky-dummy" style="height: '+a+'px;"></div>')),!l){var E="auto"!==i.css("top")||"auto"!==i.css("bottom");E||i.css("position","fixed"),l={top:t.node.hasClass(i.get(0),"fr-top"),bottom:t.node.hasClass(i.get(0),"fr-bottom")},E||i.css("position",""),i.data("sticky-position",l),i.data("top",t.node.hasClass(i.get(0),"fr-top")?i.css("top"):"auto"),i.data("bottom",t.node.hasClass(i.get(0),"fr-bottom")?i.css("bottom"):"auto")}r=t.helpers.getPX(i.data("top")),o=t.helpers.getPX(i.data("bottom"));var v=l.top&&f+r>h&&h+m-a>=f+r&&(t.helpers.isInViewPort(t.$sc.get(0))||"body"==t.opts.scrollableContainer),b=l.bottom&&f+d-o>h+a&&h+m>f+d-o;v||b?(i.css("width",g.get(0).getBoundingClientRect().width+"px"),u||(i.addClass("fr-sticky-on"),i.removeClass("fr-sticky-off"),i.css("top")&&("auto"!=i.data("top")?i.css("top",t.helpers.getPX(i.data("top"))+c):i.data("top","auto")),i.css("bottom")&&("auto"!=i.data("bottom")?i.css("bottom",t.helpers.getPX(i.data("bottom"))+p):i.css("bottom","auto")))):t.node.hasClass(i.get(0),"fr-sticky-off")||(i.width(""),i.removeClass("fr-sticky-on"),i.addClass("fr-sticky-off"),i.css("top")&&"auto"!=i.data("top")&&l.top&&i.css("top",0),i.css("bottom")&&"auto"!=i.data("bottom")&&l.bottom&&i.css("bottom",0))}}function a(){if(t._stickyElements)for(var e=0;e<t._stickyElements.length;e++)i(t._stickyElements[e])}return{_init:function(){!function(){if(t._stickyElements=[],t.helpers.isIOS()){var n=function(){if(t.helpers.requestAnimationFrame()(n),!1!==t.events.trigger("position.refresh"))for(var e=0;e<t._stickyElements.length;e++)o(t._stickyElements[e])};n(),t.events.$on(e(t.o_win),"scroll",function(){if(t.core.hasFocus())for(var n=0;n<t._stickyElements.length;n++){var r=e(t._stickyElements[n]),o=r.parent(),i=t.helpers.scrollTop();r.outerHeight()<i-o.offset().top&&(r.addClass("fr-opacity-0"),r.data("sticky-top",-1),r.data("sticky-scheduled",-1))}},!0)}else"body"!==t.opts.scrollableContainer&&t.events.$on(e(t.opts.scrollableContainer),"scroll",a,!0),t.events.$on(e(t.o_win),"scroll",a,!0),t.events.$on(e(t.o_win),"resize",a,!0),t.events.on("initialized",a),t.events.on("focus",a),t.events.$on(e(t.o_win),"resize","textarea",a,!0);t.events.on("destroy",function(){t._stickyElements=[]})}()},forSelection:function(e){var o=n();e.css({top:0,left:0});var i=o.top+o.height,a=o.left+o.width/2-e.get(0).offsetWidth/2+t.helpers.scrollLeft();t.opts.iframe||(i+=t.helpers.scrollTop()),r(a,i,e,o.height)},addSticky:function(e){e.addClass("fr-sticky"),t.helpers.isIOS()&&e.addClass("fr-sticky-ios"),e.removeClass("fr-sticky"),t._stickyElements.push(e.get(0))},refresh:a,at:r,getBoundingRect:n}},e.FE.MODULES.refresh=function(t){function n(e,t){e.toggleClass("fr-disabled",t).attr("aria-disabled",t)}return{undo:function(e){n(e,!t.undo.canDo())},redo:function(e){n(e,!t.undo.canRedo())},outdent:function(r){if(t.node.hasClass(r.get(0),"fr-no-refresh"))return!1;for(var o=t.selection.blocks(),i=0;i<o.length;i++){var a="rtl"==t.opts.direction||"rtl"==e(o[i]).css("direction")?"margin-right":"margin-left";if("LI"==o[i].tagName||"LI"==o[i].parentNode.tagName)return n(r,!1),!0;if(0<t.helpers.getPX(e(o[i]).css(a)))return n(r,!1),!0}n(r,!0)},indent:function(e){if(t.node.hasClass(e.get(0),"fr-no-refresh"))return!1;for(var r=t.selection.blocks(),o=0;o<r.length;o++){for(var i=r[o].previousSibling;i&&i.nodeType==Node.TEXT_NODE&&0===i.textContent.length;)i=i.previousSibling;if("LI"!=r[o].tagName||i)return n(e,!1),!0;n(e,!0)}}}},e.extend(e.FE.DEFAULTS,{editInPopup:!1}),e.FE.MODULES.textEdit=function(e){function t(){e.events.$on(e.$el,e._mouseup,function(){setTimeout(function(){var t,n;n=e.popups.get("text.edit"),t="INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder"):e.$el.text(),n.find("input").val(t).trigger("change"),e.popups.setContainer("text.edit",e.$sc),e.popups.show("text.edit",e.$el.offset().left+e.$el.outerWidth()/2,e.$el.offset().top+e.$el.outerHeight(),e.$el.outerHeight())},10)})}return{_init:function(){var n;e.opts.editInPopup&&(n={edit:'<div id="fr-text-edit-'+e.id+'" class="fr-layer fr-text-edit-layer"><div class="fr-input-line"><input type="text" placeholder="'+e.language.translate("Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="updateText" tabIndex="2">'+e.language.translate("Update")+"</button></div></div>"},e.popups.create("text.edit",n),t())},update:function(){var t=e.popups.get("text.edit").find("input").val();0===t.length&&(t=e.opts.placeholderText),"INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder",t):e.$el.text(t),e.events.trigger("contentChanged"),e.popups.hide("text.edit")}}},e.FE.RegisterCommand("updateText",{focus:!1,undo:!1,callback:function(){this.textEdit.update()}}),e.extend(e.FE.DEFAULTS,{toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1}),e.FE.TOOLBAR_BUTTONS=["fullscreen","bold","italic","underline","strikeThrough","subscript","superscript","|","fontFamily","fontSize","color","inlineClass","inlineStyle","paragraphStyle","lineHeight","|","paragraphFormat","align","formatOL","formatUL","outdent","indent","quote","-","insertLink","insertImage","insertVideo","embedly","insertFile","insertTable","|","emoticons","fontAwesome","specialCharacters","insertHR","selectAll","clearFormatting","|","print","getPDF","spellChecker","help","html","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_MD=null,e.FE.TOOLBAR_BUTTONS_SM=["bold","italic","underline","|","fontFamily","fontSize","insertLink","insertImage","table","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_XS=["bold","italic","fontFamily","fontSize","|","undo","redo"],e.FE.MODULES.toolbar=function(t){function n(e,t){for(var n=0;n<t.length;n++)"-"!=t[n]&&"|"!=t[n]&&e.indexOf(t[n])<0&&e.push(t[n])}function r(){var e=t.helpers.screenSize();return f[e]}function o(){var e=r();t.$tb.find(".fr-separator").remove(),t.$tb.find("> .fr-command, > div.fr-btn-wrap").addClass("fr-hidden");for(var n=0;n<e.length;n++)if("|"==e[n]||"-"==e[n])t.$tb.append(t.button.buildList([e[n]]));else{var o=t.$tb.find('> .fr-command[data-cmd="'+e[n]+'"], > div.fr-btn-wrap > .fr-command[data-cmd="'+e[n]+'"]'),i=null;t.node.hasClass(o.next().get(0),"fr-dropdown-menu")&&(i=o.next()),t.node.hasClass(o.next().get(0),"fr-options")&&(o=o.parent()),o.removeClass("fr-hidden").appendTo(t.$tb),i&&i.appendTo(t.$tb)}}function i(n,r){setTimeout(function(){if((!n||n.which!=e.FE.KEYCODE.ESC)&&t.selection.inEditor()&&t.core.hasFocus()&&!t.popups.areVisible()&&t.selection.blocks().length&&"false"!=e(t.selection.blocks()[0]).closest("table").attr("contenteditable")&&(t.opts.toolbarVisibleWithoutSelection||!t.selection.isCollapsed()&&!t.keys.isIME()||r)){if(t.$tb.data("instance",t),!1===t.events.trigger("toolbar.show",[n]))return!1;t.$tb.show(),t.opts.toolbarContainer||t.position.forSelection(t.$tb),1<t.opts.zIndex?t.$tb.css("z-index",t.opts.zIndex+1):t.$tb.css("z-index",null)}},0)}function a(e){return!(e&&"blur"===e.type&&document.activeElement===t.el||(!e||"keydown"!==e.type||!t.keys.ctrlKey(e))&&!t.button.getButtons(".fr-dropdown.fr-active").next().find(t.o_doc.activeElement).length&&!void(!1!==t.events.trigger("toolbar.hide")&&t.$tb.hide()))}function s(n){clearTimeout(u),n&&n.which==e.FE.KEYCODE.ESC||(u=setTimeout(i,t.opts.typingTimer))}function l(){t.events.on("window.mousedown",a),t.events.on("keydown",a),t.events.on("blur",a),t.helpers.isMobile()||t.events.on("window.mouseup",i),t.helpers.isMobile()?t.helpers.isIOS()||(t.events.on("window.touchend",i),t.browser.mozilla&&setInterval(i,200)):t.events.on("window.keyup",s),t.events.on("keydown",function(t){t&&t.which==e.FE.KEYCODE.ESC&&a()}),t.events.on("keydown",function(t){return t.which==e.FE.KEYCODE.ALT?(t.stopPropagation(),!1):void 0},!0),t.events.$on(t.$wp,"scroll.toolbar",i),t.events.$on(t.$sc,"scroll.toolbar",i),t.events.on("commands.after",i),t.helpers.isMobile()&&(t.events.$on(t.$doc,"selectionchange",s),t.events.$on(t.$doc,"orientationchange",i))}function d(){t.$tb.html("").removeData().remove(),t.$tb=null}function c(){t.$box.removeClass("fr-top fr-bottom fr-inline fr-basic"),t.$box.find(".fr-sticky-dummy").remove()}function p(){t.opts.theme&&t.$tb.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&t.$tb.css("z-index",t.opts.zIndex+1),"auto"!=t.opts.direction&&t.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.$tb.addClass(t.helpers.isMobile()?"fr-mobile":"fr-desktop"),t.opts.toolbarContainer?(t.opts.toolbarInline&&(l(),a()),t.$tb.addClass(t.opts.toolbarBottom?"fr-bottom":"fr-top")):t.opts.toolbarInline?(t.$sc.append(t.$tb),t.$tb.data("container",t.$sc),t.$tb.addClass("fr-inline"),t.$tb.prepend('<span class="fr-arrow"></span>'),l(),t.opts.toolbarBottom=!1):(t.opts.toolbarBottom&&!t.helpers.isIOS()?(t.$box.append(t.$tb),t.$tb.addClass("fr-bottom"),t.$box.addClass("fr-bottom")):(t.opts.toolbarBottom=!1,t.$box.prepend(t.$tb),t.$tb.addClass("fr-top"),t.$box.addClass("fr-top")),t.$tb.addClass("fr-basic"),t.opts.toolbarSticky&&(t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset)),t.position.addSticky(t.$tb))),function(){var o=e.merge([],r());n(o,f[e.FE.XS]),n(o,f[e.FE.SM]),n(o,f[e.FE.MD]),n(o,f[e.FE.LG]);for(var i=o.length-1;i>=0;i--)"-"!=o[i]&&"|"!=o[i]&&o.indexOf(o[i])<i&&o.splice(i,1);var a=t.button.buildList(o,r());t.$tb.append(a),t.button.bindCommands(t.$tb)}(),t.events.$on(e(t.o_win),"resize",o),t.events.$on(e(t.o_win),"orientationchange",o),t.accessibility.registerToolbar(t.$tb),t.events.$on(t.$tb,t._mousedown+" "+t._mouseup,function(e){var n=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;return n&&"INPUT"!=n.tagName&&!t.edit.isDisabled()?(e.stopPropagation(),e.preventDefault(),!1):void 0},!0)}var f=[];f[e.FE.XS]=t.opts.toolbarButtonsXS||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_XS||e.FE.TOOLBAR_BUTTONS||[],f[e.FE.SM]=t.opts.toolbarButtonsSM||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_SM||e.FE.TOOLBAR_BUTTONS||[],f[e.FE.MD]=t.opts.toolbarButtonsMD||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_MD||e.FE.TOOLBAR_BUTTONS||[],f[e.FE.LG]=t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS||[];var u=null,g=!1;return{_init:function(){return t.$sc=e(t.opts.scrollableContainer).first(),t.$wp?(t.opts.toolbarContainer?(t.shared.$tb?(t.$tb=t.shared.$tb,t.opts.toolbarInline&&l()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,e(t.opts.toolbarContainer).append(t.$tb),p(),t.$tb.data("instance",t)),t.$box.addClass(t.opts.toolbarInline?"fr-inline":"fr-basic"),t.events.on("focus",function(){t.$tb.data("instance",t)},!0),t.opts.toolbarInline=!1):t.opts.toolbarInline?(t.$box.addClass("fr-inline"),t.shared.$tb?(t.$tb=t.shared.$tb,l()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,p())):(t.$box.addClass("fr-basic"),t.$tb=e('<div class="fr-toolbar"></div>'),p(),t.$tb.data("instance",t)),t.events.on("destroy",c,!0),t.events.on(t.opts.toolbarInline||t.opts.toolbarContainer?"shared.destroy":"destroy",d,!0),void 0):!1},hide:a,show:function(){return!1===t.events.trigger("toolbar.show")?!1:void t.$tb.show()},showInline:i,disable:function(){!g&&t.$tb&&(t.$tb.find("> .fr-command, .fr-btn-wrap > .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),g=!0)},enable:function(){g&&t.$tb&&(t.$tb.find("> .fr-command, .fr-btn-wrap > .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),g=!1),t.button.bulkRefresh()}}}})});
;/*!node_modules/froala-editor/js/plugins/align.min.js*/
define("node_modules/froala-editor/js/plugins/align.min",function(e,n,t){!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof t&&t.exports?t.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),n(i)}:n(window.jQuery)}(function(e){e.FE.PLUGINS.align=function(n){return{apply:function(t){var i=n.selection.element();if(e(i).parents(".fr-img-caption").length)e(i).css("text-align",t);else{n.selection.save(),n.html.wrap(!0,!0,!0,!0),n.selection.restore();for(var a=n.selection.blocks(),l=0;l<a.length;l++)e(a[l]).css("text-align",t).removeClass("fr-temp-div"),""===e(a[l]).attr("class")&&e(a[l]).removeAttr("class"),""===e(a[l]).attr("style")&&e(a[l]).removeAttr("style");n.selection.save(),n.html.unwrap(),n.selection.restore()}},refresh:function(t){var i=n.selection.blocks();if(i.length){var a=n.helpers.getAlignment(e(i[0]));t.find("> *:first").replaceWith(n.icon.create("align-"+a))}},refreshOnShow:function(t,i){var a=n.selection.blocks();if(a.length){var l=n.helpers.getAlignment(e(a[0]));i.find('a.fr-command[data-param1="'+l+'"]').addClass("fr-active").attr("aria-selected",!0)}},refreshForToolbar:function(t){var i=n.selection.blocks();if(i.length){var a=n.helpers.getAlignment(e(i[0]));"align"+(a=a.charAt(0).toUpperCase()+a.slice(1))==t.attr("data-cmd")&&t.addClass("fr-active")}}}},e.FE.DefineIcon("align",{NAME:"align-left"}),e.FE.DefineIcon("align-left",{NAME:"align-left"}),e.FE.DefineIcon("align-right",{NAME:"align-right"}),e.FE.DefineIcon("align-center",{NAME:"align-center"}),e.FE.DefineIcon("align-justify",{NAME:"align-justify"}),e.FE.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var n='<ul class="fr-dropdown-list" role="presentation">',t=e.FE.COMMANDS.align.options;for(var i in t)t.hasOwnProperty(i)&&(n+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align" data-param1="'+i+'" title="'+this.language.translate(t[i])+'">'+this.icon.create("align-"+i)+'<span class="fr-sr-only">'+this.language.translate(t[i])+"</span></a></li>");return n+="</ul>"},callback:function(e,n){this.align.apply(n)},refresh:function(e){this.align.refresh(e)},refreshOnShow:function(e,n){this.align.refreshOnShow(e,n)},plugin:"align"}),e.FE.RegisterCommand("alignLeft",{type:"button",icon:"align-left",callback:function(){this.align.apply("left")},refresh:function(e){this.align.refreshForToolbar(e)}}),e.FE.RegisterCommand("alignRight",{type:"button",icon:"align-right",callback:function(){this.align.apply("right")},refresh:function(e){this.align.refreshForToolbar(e)}}),e.FE.RegisterCommand("alignCenter",{type:"button",icon:"align-center",callback:function(){this.align.apply("center")},refresh:function(e){this.align.refreshForToolbar(e)}}),e.FE.RegisterCommand("alignJustify",{type:"button",icon:"align-justify",callback:function(){this.align.apply("justify")},refresh:function(e){this.align.refreshForToolbar(e)}})})});
;/*!node_modules/froala-editor/js/plugins/char_counter.min.js*/
define("node_modules/froala-editor/js/plugins/char_counter.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(r)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),e.FE.PLUGINS.charCounter=function(t){function n(){return(t.el.textContent||"").replace(/\u200B/g,"").length}function r(r){if(t.opts.charCounterMax<0)return!0;if(n()<t.opts.charCounterMax)return!0;var o=r.which;return!(!t.keys.ctrlKey(r)&&t.keys.isCharacter(o)||o===e.FE.KEYCODE.IME)||(r.preventDefault(),r.stopPropagation(),t.events.trigger("charCounter.exceeded"),!1)}function o(r){return t.opts.charCounterMax<0?r:e("<div>").html(r).text().length+n()<=t.opts.charCounterMax?r:(t.events.trigger("charCounter.exceeded"),"")}function u(){if(t.opts.charCounterCount){var e=n()+(0<t.opts.charCounterMax?"/"+t.opts.charCounterMax:"");a.text(e),t.opts.toolbarBottom&&a.css("margin-bottom",t.$tb.outerHeight(!0));var r=t.$wp.get(0).offsetWidth-t.$wp.get(0).clientWidth;r>=0&&("rtl"==t.opts.direction?a.css("margin-left",r):a.css("margin-right",r))}}var a;return{_init:function(){return!!t.$wp&&!!t.opts.charCounterCount&&((a=e('<span class="fr-counter"></span>')).css("bottom",t.$wp.css("border-bottom-width")),t.$box.append(a),t.events.on("keydown",r,!0),t.events.on("paste.afterCleanup",o),t.events.on("keyup contentChanged input",function(){t.events.trigger("charCounter.update")}),t.events.on("charCounter.update",u),t.events.trigger("charCounter.update"),void t.events.on("destroy",function(){e(t.o_win).off("resize.char"+t.id),a.removeData().remove(),a=null}))},count:n}}})});
;/*!node_modules/froala-editor/js/plugins/code_beautifier.min.js*/
define("node_modules/froala-editor/js/plugins/code_beautifier.min",function(t,e,n){!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof n&&n.exports?n.exports=function(n,i){return void 0===i&&(i="undefined"!=typeof window?t("node_modules/jquery/dist/jquery"):t("node_modules/jquery/dist/jquery")(n)),e(i)}:e(window.jQuery)}(function(t){t.FE.PLUGINS.codeBeautifier=function(){function t(t,e){function n(){return(g=t.charAt(++K))||""}function i(e){var i,r=K;return e&&s(),i=t.charAt(K+1)||"",K=r-1,n(),i}function r(e){for(var i=K;n();)if("\\"===g)n();else{if(-1!==e.indexOf(g))break;if("\n"===g)break}return t.substring(i,K+1)}function s(){for(var t="";v.test(i());)n(),t+=g;return t}function _(){var t="";for(g&&v.test(g)&&(t=g);v.test(n());)t+=g;return t}function a(e){var r=K;for(e="/"===i(),n();n();){if(!e&&"*"===g&&"/"===i()){n();break}if(e&&"\n"===g)return t.substring(r,K)}return t.substring(r,K)+g}function o(e){return t.substring(K-e.length,K).toLowerCase()===e}function l(){for(var e=0,n=K+1;n<t.length;n++){var i=t.charAt(n);if("{"===i)return!0;if("("===i)e+=1;else if(")"===i){if(0==e)return!1;e-=1}else if(";"===i||"}"===i)return!1}return!1}var h={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},c={"@media":!0,"@supports":!0,"@document":!0};e=e||{},t=(t=t||"").replace(/\r\n|[\r\u2028\u2029]/g,"\n");var p=e.indent_size||4,u=e.indent_char||" ",d=void 0===e.selector_separator_newline||e.selector_separator_newline,f=void 0!==e.end_with_newline&&e.end_with_newline,T=void 0===e.newline_between_rules||e.newline_between_rules,E=e.eol?e.eol:"\n";"string"==typeof p&&(p=parseInt(p,10)),e.indent_with_tabs&&(u=" ",p=1),E=E.replace(/\\r/,"\r").replace(/\\n/,"\n");for(var g,w,x,v=/^\s+$/,K=-1,m=0,R=t.match(/^[\t ]*/)[0],b=new Array(p+1).join(u),S=0,y=0,A={"{":function(t){A.singleSpace(),k.push(t),A.newLine()},"}":function(t){A.newLine(),k.push(t),A.newLine()},_lastCharWhitespace:function(){return v.test(k[k.length-1])},newLine:function(t){k.length&&(t||"\n"===k[k.length-1]||A.trim(),k.push("\n"),R&&k.push(R))},singleSpace:function(){k.length&&!A._lastCharWhitespace()&&k.push(" ")},preserveSingleSpace:function(){V&&A.singleSpace()},trim:function(){for(;A._lastCharWhitespace();)k.pop()}},k=[],O=!1,N=!1,D=!1,C="",L="";;){var I=_(),V=""!==I,j=-1!==I.indexOf("\n");if(L=C,!(C=g))break;if("/"===g&&"*"===i()){var P=0===S;(j||P)&&A.newLine(),k.push(a()),A.newLine(),P&&A.newLine(!0)}else if("/"===g&&"/"===i())j||"{"===L||A.trim(),A.singleSpace(),k.push(a()),A.newLine();else if("@"===g){A.preserveSingleSpace(),k.push(g);var B=(w=K,x=r(": ,;{}()[]/='\""),K=w-1,n(),x);B.match(/[ :]$/)&&(n(),B=r(": ").replace(/\s$/,""),k.push(B),A.singleSpace()),(B=B.replace(/\s$/,""))in h&&(y+=1,B in c&&(D=!0))}else"#"===g&&"{"===i()?(A.preserveSingleSpace(),k.push(r("}"))):"{"===g?"}"===i(!0)?(s(),n(),A.singleSpace(),k.push("{}"),A.newLine(),T&&0===S&&A.newLine(!0)):(S++,R+=b,A["{"](g),D?(D=!1,O=S>y):O=S>=y):"}"===g?(S--,R=R.slice(0,-p),A["}"](g),N=O=!1,y&&y--,T&&0===S&&A.newLine(!0)):":"===g?(s(),!O&&!D||o("&")||l()?":"===i()?(n(),k.push("::")):k.push(":"):(N=!0,k.push(":"),A.singleSpace())):'"'===g||"'"===g?(A.preserveSingleSpace(),k.push(r(g))):";"===g?(N=!1,k.push(g),A.newLine()):"("===g?o("url")?(k.push(g),s(),n()&&(")"!==g&&'"'!==g&&"'"!==g?k.push(r(")")):K--)):(m++,A.preserveSingleSpace(),k.push(g),s()):")"===g?(k.push(g),m--):","===g?(k.push(g),s(),d&&!N&&1>m?A.newLine():A.singleSpace()):("]"===g||("["===g?A.preserveSingleSpace():"="===g?(s(),g="="):A.preserveSingleSpace()),k.push(g))}var M="";return R&&(M+=R),M+=k.join("").replace(/[\r\n\t ]+$/,""),f&&(M+="\n"),"\n"!=E&&(M=M.replace(/[\n]/g,E)),M}function e(t,e){for(var n=0;n<e.length;n+=1)if(e[n]===t)return!0;return!1}function n(t){return t.replace(/^\s+|\s+$/g,"")}function i(t,e){return new r(t,e).beautify()}function r(t,i){function r(t,e){var n=0;return t&&(n=t.indentation_level,!R.just_added_newline()&&t.line_indent_level>n&&(n=t.line_indent_level)),{mode:e,parent:t,last_text:t?t.last_text:"",last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,line_indent_level:t?t.line_indent_level:n,start_line_index:R.get_line_number(),ternary_depth:0}}function s(t){var e=t.newlines;if(V.keep_array_indentation&&T(N.mode))for(n=0;e>n;n+=1)l(n>0);else if(V.max_preserve_newlines&&e>V.max_preserve_newlines&&(e=V.max_preserve_newlines),V.preserve_newlines&&1<t.newlines){l();for(var n=1;e>n;n+=1)l(!0)}I[(y=t).type]()}function o(t){t=void 0!==t&&t,R.just_added_newline()||(V.preserve_newlines&&y.wanted_newline||t?l(!1,!0):V.wrap_line_length&&R.current_line.get_character_count()+y.text.length+(R.space_before_token?1:0)>=V.wrap_line_length&&l(!1,!0))}function l(t,e){if(!e&&";"!==N.last_text&&","!==N.last_text&&"="!==N.last_text&&"TK_OPERATOR"!==A)for(;N.mode===u.Statement&&!N.if_block&&!N.do_block;)g();R.add_new_line(t)&&(N.multiline_frame=!0)}function h(){R.just_added_newline()&&(V.keep_array_indentation&&T(N.mode)&&y.wanted_newline?(R.current_line.push(y.whitespace_before),R.space_before_token=!1):R.set_indent(N.indentation_level)&&(N.line_indent_level=N.indentation_level))}function c(t){R.raw?R.add_raw_token(y):(V.comma_first&&"TK_COMMA"===A&&R.just_added_newline()&&","===R.previous_line.last()&&(R.previous_line.pop(),h(),R.add_token(","),R.space_before_token=!0),t=t||y.text,h(),R.add_token(t))}function d(){N.indentation_level+=1}function f(t){N?(C.push(N),D=N):D=r(null,t),N=r(D,t)}function T(t){return t===u.ArrayLiteral}function E(t){return e(t,[u.Expression,u.ForInitializer,u.Conditional])}function g(){0<C.length&&(D=N,N=C.pop(),D.mode===u.Statement&&R.remove_redundant_indentation(D))}function w(){return N.parent.mode===u.ObjectLiteral&&N.mode===u.Statement&&(":"===N.last_text&&0===N.ternary_depth||"TK_RESERVED"===A&&e(N.last_text,["get","set"]))}function x(){return!!("TK_RESERVED"===A&&e(N.last_text,["var","let","const"])&&"TK_WORD"===y.type||"TK_RESERVED"===A&&"do"===N.last_text||"TK_RESERVED"===A&&"return"===N.last_text&&!y.wanted_newline||"TK_RESERVED"===A&&"else"===N.last_text&&("TK_RESERVED"!==y.type||"if"!==y.text)||"TK_END_EXPR"===A&&(D.mode===u.ForInitializer||D.mode===u.Conditional)||"TK_WORD"===A&&N.mode===u.BlockStatement&&!N.in_case&&"--"!==y.text&&"++"!==y.text&&"function"!==k&&"TK_WORD"!==y.type&&"TK_RESERVED"!==y.type||N.mode===u.ObjectLiteral&&(":"===N.last_text&&0===N.ternary_depth||"TK_RESERVED"===A&&e(N.last_text,["get","set"])))&&(f(u.Statement),d(),"TK_RESERVED"===A&&e(N.last_text,["var","let","const"])&&"TK_WORD"===y.type&&(N.declaration_statement=!0),w()||o("TK_RESERVED"===y.type&&e(y.text,["do","for","if","while"])),!0)}function v(t){return e(t,["case","return","do","if","throw","else"])}function K(t){var e=b+(t||0);return 0>e||e>=j.length?null:j[e]}function m(){if("TK_RESERVED"===y.type&&N.mode!==u.ObjectLiteral&&e(y.text,["set","get"])&&(y.type="TK_WORD"),"TK_RESERVED"===y.type&&N.mode===u.ObjectLiteral&&":"==K(1).text&&(y.type="TK_WORD"),x()||!y.wanted_newline||E(N.mode)||"TK_OPERATOR"===A&&"--"!==N.last_text&&"++"!==N.last_text||"TK_EQUALS"===A||!V.preserve_newlines&&"TK_RESERVED"===A&&e(N.last_text,["var","let","const","set","get"])||l(),N.do_block&&!N.do_while){if("TK_RESERVED"===y.type&&"while"===y.text)return R.space_before_token=!0,c(),R.space_before_token=!0,void(N.do_while=!0);l(),N.do_block=!1}if(N.if_block)if(N.else_block||"TK_RESERVED"!==y.type||"else"!==y.text){for(;N.mode===u.Statement;)g();N.if_block=!1,N.else_block=!1}else N.else_block=!0;return"TK_RESERVED"===y.type&&("case"===y.text||"default"===y.text&&N.in_case_statement)?(l(),(N.case_body||V.jslint_happy)&&(0<N.indentation_level&&(!N.parent||N.indentation_level>N.parent.indentation_level)&&(N.indentation_level-=1),N.case_body=!1),c(),N.in_case=!0,void(N.in_case_statement=!0)):("TK_RESERVED"===y.type&&"function"===y.text&&((e(N.last_text,["}",";"])||R.just_added_newline()&&!e(N.last_text,["[","{",":","=",","]))&&(R.just_added_blankline()||y.comments_before.length||(l(),l(!0))),"TK_RESERVED"===A||"TK_WORD"===A?"TK_RESERVED"===A&&e(N.last_text,["get","set","new","return","export","async"])?R.space_before_token=!0:"TK_RESERVED"===A&&"default"===N.last_text&&"export"===k?R.space_before_token=!0:l():"TK_OPERATOR"===A||"="===N.last_text?R.space_before_token=!0:(N.multiline_frame||!E(N.mode)&&!T(N.mode))&&l()),"TK_COMMA"!==A&&"TK_START_EXPR"!==A&&"TK_EQUALS"!==A&&"TK_OPERATOR"!==A||w()||o(),"TK_RESERVED"===y.type&&e(y.text,["function","get","set"])?(c(),void(N.last_word=y.text)):(L="NONE","TK_END_BLOCK"===A?"TK_RESERVED"===y.type&&e(y.text,["else","catch","finally"])?"expand"===V.brace_style||"end-expand"===V.brace_style||"none"===V.brace_style&&y.wanted_newline?L="NEWLINE":(L="SPACE",R.space_before_token=!0):L="NEWLINE":"TK_SEMICOLON"===A&&N.mode===u.BlockStatement?L="NEWLINE":"TK_SEMICOLON"===A&&E(N.mode)?L="SPACE":"TK_STRING"===A?L="NEWLINE":"TK_RESERVED"===A||"TK_WORD"===A||"*"===N.last_text&&"function"===k?L="SPACE":"TK_START_BLOCK"===A?L="NEWLINE":"TK_END_EXPR"===A&&(R.space_before_token=!0,L="NEWLINE"),"TK_RESERVED"===y.type&&e(y.text,S.line_starters)&&")"!==N.last_text&&(L="else"===N.last_text||"export"===N.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===y.type&&e(y.text,["else","catch","finally"])?"TK_END_BLOCK"!==A||"expand"===V.brace_style||"end-expand"===V.brace_style||"none"===V.brace_style&&y.wanted_newline?l():(R.trim(!0),"}"!==R.current_line.last()&&l(),R.space_before_token=!0):"NEWLINE"===L?"TK_RESERVED"===A&&v(N.last_text)?R.space_before_token=!0:"TK_END_EXPR"!==A?"TK_START_EXPR"===A&&"TK_RESERVED"===y.type&&e(y.text,["var","let","const"])||":"===N.last_text||("TK_RESERVED"===y.type&&"if"===y.text&&"else"===N.last_text?R.space_before_token=!0:l()):"TK_RESERVED"===y.type&&e(y.text,S.line_starters)&&")"!==N.last_text&&l():N.multiline_frame&&T(N.mode)&&","===N.last_text&&"}"===k?l():"SPACE"===L&&(R.space_before_token=!0),c(),N.last_word=y.text,"TK_RESERVED"===y.type&&"do"===y.text&&(N.do_block=!0),"TK_RESERVED"===y.type&&"if"===y.text&&(N.if_block=!0),void 0))}var R,b,S,y,A,k,O,N,D,C,L,I,V,j=[],P="";for(I={TK_START_EXPR:function(){x();var t=u.Expression;if("["===y.text){if("TK_WORD"===A||")"===N.last_text)return"TK_RESERVED"===A&&e(N.last_text,S.line_starters)&&(R.space_before_token=!0),f(t),c(),d(),void(V.space_in_paren&&(R.space_before_token=!0));t=u.ArrayLiteral,T(N.mode)&&("["!==N.last_text&&(","!==N.last_text||"]"!==k&&"}"!==k)||V.keep_array_indentation||l())}else"TK_RESERVED"===A&&"for"===N.last_text?t=u.ForInitializer:"TK_RESERVED"===A&&e(N.last_text,["if","while"])&&(t=u.Conditional);";"===N.last_text||"TK_START_BLOCK"===A?l():"TK_END_EXPR"===A||"TK_START_EXPR"===A||"TK_END_BLOCK"===A||"."===N.last_text?o(y.wanted_newline):"TK_RESERVED"===A&&"("===y.text||"TK_WORD"===A||"TK_OPERATOR"===A?"TK_RESERVED"===A&&("function"===N.last_word||"typeof"===N.last_word)||"*"===N.last_text&&"function"===k?V.space_after_anon_function&&(R.space_before_token=!0):"TK_RESERVED"!==A||!e(N.last_text,S.line_starters)&&"catch"!==N.last_text||V.space_before_conditional&&(R.space_before_token=!0):R.space_before_token=!0,"("===y.text&&"TK_RESERVED"===A&&"await"===N.last_word&&(R.space_before_token=!0),"("===y.text&&("TK_EQUALS"!==A&&"TK_OPERATOR"!==A||w()||o()),f(t),c(),V.space_in_paren&&(R.space_before_token=!0),d()},TK_END_EXPR:function(){for(;N.mode===u.Statement;)g();N.multiline_frame&&o("]"===y.text&&T(N.mode)&&!V.keep_array_indentation),V.space_in_paren&&("TK_START_EXPR"!==A||V.space_in_empty_paren?R.space_before_token=!0:(R.trim(),R.space_before_token=!1)),"]"===y.text&&V.keep_array_indentation?(c(),g()):(g(),c()),R.remove_redundant_indentation(D),N.do_while&&D.mode===u.Conditional&&(D.mode=u.Expression,N.do_block=!1,N.do_while=!1)},TK_START_BLOCK:function(){var t=K(1),n=K(2);f(n&&(":"===n.text&&e(t.type,["TK_STRING","TK_WORD","TK_RESERVED"])||e(t.text,["get","set"])&&e(n.type,["TK_WORD","TK_RESERVED"]))?e(k,["class","interface"])?u.BlockStatement:u.ObjectLiteral:u.BlockStatement);var i=!t.comments_before.length&&"}"===t.text&&"function"===N.last_word&&"TK_END_EXPR"===A;"expand"===V.brace_style||"none"===V.brace_style&&y.wanted_newline?"TK_OPERATOR"!==A&&(i||"TK_EQUALS"===A||"TK_RESERVED"===A&&v(N.last_text)&&"else"!==N.last_text)?R.space_before_token=!0:l(!1,!0):"TK_OPERATOR"!==A&&"TK_START_EXPR"!==A?"TK_START_BLOCK"===A?l():R.space_before_token=!0:T(D.mode)&&","===N.last_text&&("}"===k?R.space_before_token=!0:l()),c(),d()},TK_END_BLOCK:function(){for(;N.mode===u.Statement;)g();var t="TK_START_BLOCK"===A;"expand"===V.brace_style?t||l():t||(T(N.mode)&&V.keep_array_indentation?(V.keep_array_indentation=!1,l(),V.keep_array_indentation=!0):l()),g(),c()},TK_WORD:m,TK_RESERVED:m,TK_SEMICOLON:function(){for(x()&&(R.space_before_token=!1);N.mode===u.Statement&&!N.if_block&&!N.do_block;)g();c()},TK_STRING:function(){x()?R.space_before_token=!0:"TK_RESERVED"===A||"TK_WORD"===A?R.space_before_token=!0:"TK_COMMA"===A||"TK_START_EXPR"===A||"TK_EQUALS"===A||"TK_OPERATOR"===A?w()||o():l(),c()},TK_EQUALS:function(){x(),N.declaration_statement&&(N.declaration_assignment=!0),R.space_before_token=!0,c(),R.space_before_token=!0},TK_OPERATOR:function(){if(x(),"TK_RESERVED"===A&&v(N.last_text))return R.space_before_token=!0,void c();if("*"===y.text&&"TK_DOT"===A)return void c();if(":"===y.text&&N.in_case)return N.case_body=!0,d(),c(),l(),void(N.in_case=!1);if("::"===y.text)return void c();"TK_OPERATOR"===A&&o();var t=!0,n=!0;e(y.text,["--","++","!","~"])||e(y.text,["-","+"])&&(e(A,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||e(N.last_text,S.line_starters)||","===N.last_text)?(n=t=!1,!y.wanted_newline||"--"!==y.text&&"++"!==y.text||l(!1,!0),";"===N.last_text&&E(N.mode)&&(t=!0),"TK_RESERVED"===A?t=!0:"TK_END_EXPR"===A?t=!("]"===N.last_text&&("--"===y.text||"++"===y.text)):"TK_OPERATOR"===A&&(t=e(y.text,["--","-","++","+"])&&e(N.last_text,["--","-","++","+"]),e(y.text,["+","-"])&&e(N.last_text,["--","++"])&&(n=!0)),N.mode!==u.BlockStatement&&N.mode!==u.Statement||"{"!==N.last_text&&";"!==N.last_text||l()):":"===y.text?0===N.ternary_depth?t=!1:N.ternary_depth-=1:"?"===y.text?N.ternary_depth+=1:"*"===y.text&&"TK_RESERVED"===A&&"function"===N.last_text&&(n=t=!1),R.space_before_token=R.space_before_token||t,c(),R.space_before_token=n},TK_COMMA:function(){return N.declaration_statement?(E(N.parent.mode)&&(N.declaration_assignment=!1),c(),void(N.declaration_assignment?l(N.declaration_assignment=!1,!0):(R.space_before_token=!0,V.comma_first&&o()))):(c(),void(N.mode===u.ObjectLiteral||N.mode===u.Statement&&N.parent.mode===u.ObjectLiteral?(N.mode===u.Statement&&g(),l()):(R.space_before_token=!0,V.comma_first&&o())))},TK_BLOCK_COMMENT:function(){if(R.raw)return R.add_raw_token(y),void(y.directives&&"end"===y.directives.preserve&&(V.test_output_raw||(R.raw=!1)));if(y.directives)return l(!1,!0),c(),"start"===y.directives.preserve&&(R.raw=!0),void l(!1,!0);if(!p.newline.test(y.text)&&!y.wanted_newline)return R.space_before_token=!0,c(),void(R.space_before_token=!0);var t,e=function(t){t=t.replace(/\x0d/g,"");for(var e=[],n=t.indexOf("\n");-1!==n;)e.push(t.substring(0,n)),t=t.substring(n+1),n=t.indexOf("\n");return t.length&&e.push(t),e}(y.text),i=!1,r=!1,s=y.whitespace_before,_=s.length;for(l(!1,!0),1<e.length&&(function(t,e){for(var i=0;i<t.length;i++){var r=n(t[i]);if(r.charAt(0)!==e)return!1}return!0}(e.slice(1),"*")?i=!0:function(t,e){for(var n,i=0,r=t.length;r>i;i++)if((n=t[i])&&0!==n.indexOf(e))return!1;return!0}(e.slice(1),s)&&(r=!0)),c(e[0]),t=1;t<e.length;t++)l(!1,!0),i?c(" "+e[t].replace(/^\s+/g,"")):r&&e[t].length>_?c(e[t].substring(_)):R.add_token(e[t]);l(!1,!0)},TK_COMMENT:function(){y.wanted_newline?l(!1,!0):R.trim(!0),R.space_before_token=!0,c(),l(!1,!0)},TK_DOT:function(){x(),"TK_RESERVED"===A&&v(N.last_text)?R.space_before_token=!0:o(")"===N.last_text&&V.break_chained_methods),c()},TK_UNKNOWN:function(){c(),"\n"===y.text[y.text.length-1]&&l()},TK_EOF:function(){for(;N.mode===u.Statement;)g()}},V={},void 0!==(i=i||{}).braces_on_own_line&&(V.brace_style=i.braces_on_own_line?"expand":"collapse"),V.brace_style=i.brace_style?i.brace_style:V.brace_style?V.brace_style:"collapse","expand-strict"===V.brace_style&&(V.brace_style="expand"),V.indent_size=i.indent_size?parseInt(i.indent_size,10):4,V.indent_char=i.indent_char?i.indent_char:" ",V.eol=i.eol?i.eol:"\n",V.preserve_newlines=void 0===i.preserve_newlines||i.preserve_newlines,V.break_chained_methods=void 0!==i.break_chained_methods&&i.break_chained_methods,V.max_preserve_newlines=void 0===i.max_preserve_newlines?0:parseInt(i.max_preserve_newlines,10),V.space_in_paren=void 0!==i.space_in_paren&&i.space_in_paren,V.space_in_empty_paren=void 0!==i.space_in_empty_paren&&i.space_in_empty_paren,V.jslint_happy=void 0!==i.jslint_happy&&i.jslint_happy,V.space_after_anon_function=void 0!==i.space_after_anon_function&&i.space_after_anon_function,V.keep_array_indentation=void 0!==i.keep_array_indentation&&i.keep_array_indentation,V.space_before_conditional=void 0===i.space_before_conditional||i.space_before_conditional,V.unescape_strings=void 0!==i.unescape_strings&&i.unescape_strings,V.wrap_line_length=void 0===i.wrap_line_length?0:parseInt(i.wrap_line_length,10),V.e4x=void 0!==i.e4x&&i.e4x,V.end_with_newline=void 0!==i.end_with_newline&&i.end_with_newline,V.comma_first=void 0!==i.comma_first&&i.comma_first,V.test_output_raw=void 0!==i.test_output_raw&&i.test_output_raw,V.jslint_happy&&(V.space_after_anon_function=!0),i.indent_with_tabs&&(V.indent_char=" ",V.indent_size=1),V.eol=V.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),O="";0<V.indent_size;)O+=V.indent_char,V.indent_size-=1;var B=0;if(t&&t.length){for(;" "===t.charAt(B)||" "===t.charAt(B);)P+=t.charAt(B),B+=1;t=t.substring(B)}A="TK_START_BLOCK",k="",(R=new _(O,P)).raw=V.test_output_raw,C=[],f(u.BlockStatement),this.beautify=function(){var e,n;for(S=new a(t,V,O),j=S.tokenize(),b=0;e=K();){for(var i=0;i<e.comments_before.length;i++)s(e.comments_before[i]);s(e),k=N.last_text,A=e.type,N.last_text=e.text,b+=1}return n=R.get_code(),V.end_with_newline&&(n+="\n"),"\n"!=V.eol&&(n=n.replace(/[\n]/g,V.eol)),n}}function s(t){var e=0,n=-1,i=[],r=!0;this.set_indent=function(i){e=t.baseIndentLength+i*t.indent_length,n=i},this.get_character_count=function(){return e},this.is_empty=function(){return r},this.last=function(){return this._empty?null:i[i.length-1]},this.push=function(t){i.push(t),e+=t.length,r=!1},this.pop=function(){var t=null;return r||(t=i.pop(),e-=t.length,r=0===i.length),t},this.remove_indent=function(){n>0&&(n-=1,e-=t.indent_length)},this.trim=function(){for(;" "===this.last();)i.pop(),e-=1;r=0===i.length},this.toString=function(){var e="";return this._empty||(n>=0&&(e=t.indent_cache[n]),e+=i.join("")),e}}function _(t,e){e=e||"",this.indent_cache=[e],this.baseIndentLength=e.length,this.indent_length=t.length,this.raw=!1;var n=[];this.baseIndentString=e,this.indent_string=t,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new s(this),n.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return n.length},this.add_new_line=function(t){return!(1===this.get_line_number()&&this.just_added_newline()||!t&&this.just_added_newline()||(this.raw||this.add_outputline(),0))},this.get_code=function(){return n.join("\n").replace(/[\r\n\t ]+$/,"")},this.set_indent=function(t){if(1<n.length){for(;t>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(t),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.add_outputline();this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1},this.add_token=function(t){this.add_space_before_token(),this.current_line.push(t)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(t){if(!t.multiline_frame&&t.mode!==u.ForInitializer&&t.mode!==u.Conditional)for(var e=t.start_line_index,i=n.length;i>e;)n[e].remove_indent(),e++},this.trim=function(i){for(i=void 0!==i&&i,this.current_line.trim(t,e);i&&1<n.length&&this.current_line.is_empty();)n.pop(),this.current_line=n[n.length-1],this.current_line.trim();this.previous_line=1<n.length?n[n.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){return!!this.just_added_newline()&&(1===n.length||n[n.length-2].is_empty())}}function a(t,i){function r(){var r,b,S=[];if(h=0,c="",T>=E)return["","TK_EOF"];b=f.length?f[f.length-1]:new d("TK_START_BLOCK","{");var y=t.charAt(T);for(T+=1;e(y,s);){if(p.newline.test(y)?"\n"===y&&"\r"===t.charAt(T-2)||(h+=1,S=[]):S.push(y),T>=E)return["","TK_EOF"];y=t.charAt(T),T+=1}if(S.length&&(c=S.join("")),_.test(y)){var A=!0,k=!0,O=_;for("0"===y&&E>T&&/[Xxo]/.test(t.charAt(T))?(k=A=!1,y+=t.charAt(T),T+=1,O=/[o]/.test(t.charAt(T))?a:o):(y="",T-=1);E>T&&O.test(t.charAt(T));)y+=t.charAt(T),T+=1,A&&E>T&&"."===t.charAt(T)&&(y+=t.charAt(T),T+=1,A=!1),k&&E>T&&/[Ee]/.test(t.charAt(T))&&(y+=t.charAt(T),(T+=1)<E&&/[+-]/.test(t.charAt(T))&&(y+=t.charAt(T),T+=1),A=k=!1);return[y,"TK_WORD"]}if(p.isIdentifierStart(t.charCodeAt(T-1))){if(E>T)for(;p.isIdentifierChar(t.charCodeAt(T))&&(y+=t.charAt(T),(T+=1)!==E););return"TK_DOT"===b.type||"TK_RESERVED"===b.type&&e(b.text,["set","get"])||!e(y,g)?[y,"TK_WORD"]:"in"===y?[y,"TK_OPERATOR"]:[y,"TK_RESERVED"]}if("("===y||"["===y)return[y,"TK_START_EXPR"];if(")"===y||"]"===y)return[y,"TK_END_EXPR"];if("{"===y)return[y,"TK_START_BLOCK"];if("}"===y)return[y,"TK_END_BLOCK"];if(";"===y)return[y,"TK_SEMICOLON"];if("/"===y){var N="";if("*"===t.charAt(T)){var D;T+=1,w.lastIndex=T,N="/*"+(D=w.exec(t))[0],T+=D[0].length;var C=function(t){if(!t.match(v))return null;var e={};K.lastIndex=0;for(var n=K.exec(t);n;)e[n[1]]=n[2],n=K.exec(t);return e}(N);return C&&"start"===C.ignore&&(m.lastIndex=T,N+=(D=m.exec(t))[0],T+=D[0].length),[N=N.replace(p.lineBreak,"\n"),"TK_BLOCK_COMMENT",C]}if("/"===t.charAt(T))return T+=1,x.lastIndex=T,N="//"+(D=x.exec(t))[0],T+=D[0].length,[N,"TK_COMMENT"]}if("`"===y||"'"===y||'"'===y||("/"===y||i.e4x&&"<"===y&&t.slice(T-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&("TK_RESERVED"===b.type&&e(b.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===b.type&&")"===b.text&&b.parent&&"TK_RESERVED"===b.parent.type&&e(b.parent.text,["if","while","for"])||e(b.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var L=y,I=!1,V=!1;if(r=y,"/"===L)for(var j=!1;E>T&&(I||j||t.charAt(T)!==L)&&!p.newline.test(t.charAt(T));)r+=t.charAt(T),I?I=!1:(I="\\"===t.charAt(T),"["===t.charAt(T)?j=!0:"]"===t.charAt(T)&&(j=!1)),T+=1;else if(i.e4x&&"<"===L){var P=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,B=t.slice(T-1),M=P.exec(B);if(M&&0===M.index){for(var U=M[2],W=0;M;){var z=!!M[1],G=M[2],X=!!M[M.length-1]||"![CDATA["===G.slice(0,8);if(G!==U||X||(z?--W:++W),0>=W)break;M=P.exec(B)}var F=M?M.index+M[0].length:B.length;return B=B.slice(0,F),T+=F-1,[B=B.replace(p.lineBreak,"\n"),"TK_STRING"]}}else for(;E>T&&(I||t.charAt(T)!==L&&("`"===L||!p.newline.test(t.charAt(T))));)(I||"`"===L)&&p.newline.test(t.charAt(T))?("\r"===t.charAt(T)&&"\n"===t.charAt(T+1)&&(T+=1),r+="\n"):r+=t.charAt(T),I?("x"!==t.charAt(T)&&"u"!==t.charAt(T)||(V=!0),I=!1):I="\\"===t.charAt(T),T+=1;if(V&&i.unescape_strings&&(r=function(t){for(var e,n=!1,i="",r=0,s="",_=0;n||r<t.length;)if(e=t.charAt(r),r++,n){if(n=!1,"x"===e)s=t.substr(r,2),r+=2;else{if("u"!==e){i+="\\"+e;continue}s=t.substr(r,4),r+=4}if(!s.match(/^[0123456789abcdefABCDEF]+$/))return t;if(0<=(_=parseInt(s,16))&&32>_){i+="x"===e?"\\x"+s:"\\u"+s;continue}if(34===_||39===_||92===_)i+="\\"+String.fromCharCode(_);else{if("x"===e&&_>126&&255>=_)return t;i+=String.fromCharCode(_)}}else"\\"===e?n=!0:i+=e;return i}(r)),E>T&&t.charAt(T)===L&&(r+=L,T+=1,"/"===L))for(;E>T&&p.isIdentifierStart(t.charCodeAt(T));)r+=t.charAt(T),T+=1;return[r,"TK_STRING"]}if("#"===y){if(0===f.length&&"!"===t.charAt(T)){for(r=y;E>T&&"\n"!==y;)r+=y=t.charAt(T),T+=1;return[n(r)+"\n","TK_UNKNOWN"]}var $="#";if(E>T&&_.test(t.charAt(T))){for(;$+=y=t.charAt(T),(T+=1)<E&&"#"!==y&&"="!==y;);return"#"===y||("["===t.charAt(T)&&"]"===t.charAt(T+1)?($+="[]",T+=2):"{"===t.charAt(T)&&"}"===t.charAt(T+1)&&($+="{}",T+=2)),[$,"TK_WORD"]}}if("<"===y&&("?"===t.charAt(T)||"%"===t.charAt(T))){R.lastIndex=T-1;var Q=R.exec(t);if(Q)return y=Q[0],T+=y.length-1,[y=y.replace(p.lineBreak,"\n"),"TK_STRING"]}if("<"===y&&"<!--"===t.substring(T-1,T+3)){for(T+=3,y="<!--";!p.newline.test(t.charAt(T))&&E>T;)y+=t.charAt(T),T++;return u=!0,[y,"TK_COMMENT"]}if("-"===y&&u&&"-->"===t.substring(T-1,T+2))return u=!1,T+=2,["-->","TK_COMMENT"];if("."===y)return[y,"TK_DOT"];if(e(y,l)){for(;E>T&&e(y+t.charAt(T),l)&&(y+=t.charAt(T),!(E<=(T+=1))););return","===y?[y,"TK_COMMA"]:"="===y?[y,"TK_EQUALS"]:[y,"TK_OPERATOR"]}return[y,"TK_UNKNOWN"]}var s="\n\r ".split(""),_=/[0-9]/,a=/[01234567]/,o=/[0123456789abcdefABCDEF]/,l="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" ");this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var h,c,u,f,T,E,g=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),w=/([\s\S]*?)((?:\*\/)|$)/g,x=/([^\n\r\u2028\u2029]*)/g,v=/\/\* beautify( \w+[:]\w+)+ \*\//g,K=/ (\w+)[:](\w+)/g,m=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,R=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){var e,n,i;E=t.length,T=0,u=!1,f=[];for(var s=null,_=[],a=[];!n||"TK_EOF"!==n.type;){for(i=r(),e=new d(i[1],i[0],h,c);"TK_COMMENT"===e.type||"TK_BLOCK_COMMENT"===e.type||"TK_UNKNOWN"===e.type;)"TK_BLOCK_COMMENT"===e.type&&(e.directives=i[2]),a.push(e),i=r(),e=new d(i[1],i[0],h,c);a.length&&(e.comments_before=a,a=[]),"TK_START_BLOCK"===e.type||"TK_START_EXPR"===e.type?(e.parent=n,_.push(s),s=e):("TK_END_BLOCK"===e.type||"TK_END_EXPR"===e.type)&&s&&("]"===e.text&&"["===s.text||")"===e.text&&"("===s.text||"}"===e.text&&"{"===s.text)&&(e.parent=s.parent,s=_.pop()),f.push(e),n=e}return f}}var o,l,h,c,p={};o=p,l="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",h=new RegExp("["+l+"]"),c=new RegExp("["+l+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍--_]"),o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp("\r\n|"+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g"),o.isIdentifierStart=function(t){return 65>t?36===t||64===t:91>t||(97>t?95===t:123>t||t>=170&&h.test(String.fromCharCode(t)))},o.isIdentifierChar=function(t){return 48>t?36===t:58>t||!(65>t)&&(91>t||(97>t?95===t:123>t||t>=170&&c.test(String.fromCharCode(t))))};var u={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"},d=function(t,e,n,i){this.type=t,this.text=e,this.comments_before=[],this.newlines=n||0,this.wanted_newline=n>0,this.whitespace_before=i||"",this.parent=null,this.directives=null};return{run:function(e,n){function r(t){return t.replace(/\s+$/g,"")}var s,_,a,o,l,h,c,p,u,d,f,T,E,g;for(void 0!==(n=n||{}).wrap_line_length&&0!==parseInt(n.wrap_line_length,10)||void 0===n.max_char||0===parseInt(n.max_char,10)||(n.wrap_line_length=n.max_char),_=void 0!==n.indent_inner_html&&n.indent_inner_html,a=void 0===n.indent_size?4:parseInt(n.indent_size,10),o=void 0===n.indent_char?" ":n.indent_char,h=void 0===n.brace_style?"collapse":n.brace_style,l=0===parseInt(n.wrap_line_length,10)?32786:parseInt(n.wrap_line_length||250,10),c=n.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","address","pre"],p=void 0===n.preserve_newlines||n.preserve_newlines,u=p?isNaN(parseInt(n.max_preserve_newlines,10))?32786:parseInt(n.max_preserve_newlines,10):0,d=void 0!==n.indent_handlebars&&n.indent_handlebars,f=void 0===n.wrap_attributes?"auto":n.wrap_attributes,T=void 0===n.wrap_attributes_indent_size?a:parseInt(n.wrap_attributes_indent_size,10)||a,E=void 0!==n.end_with_newline&&n.end_with_newline,g=Array.isArray(n.extra_liners)?n.extra_liners.concat():"string"==typeof n.extra_liners?n.extra_liners.split(","):"head,body,/html".split(","),n.indent_with_tabs&&(o=" ",a=1),(s=new function(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=_,this.Utils={whitespace:"\n\r ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:g,in_array:function(t,e){for(var n=0;n<e.length;n++)if(t==e[n])return!0;return!1}},this.is_whitespace=function(t){for(;0<t.length;t++)if(!this.Utils.in_array(t.charAt(0),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var t="";if(t=this.input.charAt(this.pos),this.Utils.in_array(t,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(t,this.Utils.whitespace);)p&&"\n"==t&&this.newlines<=u&&(this.newlines+=1),this.pos++,t=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(t){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,t),this.print_indentation(t)):(this.line_char_count++,t.push(" "))},this.get_content=function(){for(var t="",e=[];"<"!=this.input.charAt(this.pos);){if(this.pos>=this.input.length)return e.length?e.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(e);else{if(d){var n=this.input.substr(this.pos,3);if("{{#"==n||"{{/"==n)break;if("{{!"==n)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"==this.input.substr(this.pos,2)&&"{{else}}"==this.get_tag(!0))break}t=this.input.charAt(this.pos),this.pos++,this.line_char_count++,e.push(t)}}return e.length?e.join(""):""},this.get_contents_to=function(t){if(this.pos==this.input.length)return["","TK_EOF"];
var e="",n=new RegExp("</"+t+"\\s*>","igm");n.lastIndex=this.pos;var i=n.exec(this.input),r=i?i.index:this.input.length;return this.pos<r&&(e=this.input.substring(this.pos,r),this.pos=r),e},this.record_tag=function(t){this.tags[t+"count"]?this.tags[t+"count"]++:this.tags[t+"count"]=1,this.tags[t+this.tags[t+"count"]]=this.indent_level,this.tags[t+this.tags[t+"count"]+"parent"]=this.tags.parent,this.tags.parent=t+this.tags[t+"count"]},this.retrieve_tag=function(t){if(this.tags[t+"count"]){for(var e=this.tags.parent;e&&t+this.tags[t+"count"]!=e;)e=this.tags[e+"parent"];e&&(this.indent_level=this.tags[t+this.tags[t+"count"]],this.tags.parent=this.tags[e+"parent"]),delete this.tags[t+this.tags[t+"count"]+"parent"],delete this.tags[t+this.tags[t+"count"]],1==this.tags[t+"count"]?delete this.tags[t+"count"]:this.tags[t+"count"]--}},this.indent_to_tag=function(t){if(this.tags[t+"count"]){for(var e=this.tags.parent;e&&t+this.tags[t+"count"]!=e;)e=this.tags[e+"parent"];e&&(this.indent_level=this.tags[t+this.tags[t+"count"]])}},this.get_tag=function(t){var e,n,i="",r=[],s="",_=!1,a=!0,l=this.pos,h=this.line_char_count;t=void 0!==t&&t;do{if(this.pos>=this.input.length)return t&&(this.pos=l,this.line_char_count=h),r.length?r.join(""):["","TK_EOF"];if(i=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(i,this.Utils.whitespace))_=!0;else{if("'"!=i&&'"'!=i||(i+=this.get_unformatted(i),_=!0),"="==i&&(_=!1),r.length&&"="!=r[r.length-1]&&">"!=i&&_){if(this.space_or_wrap(r),_=!1,!a&&"force"==f&&"/"!=i){this.print_newline(!0,r),this.print_indentation(r);for(var p=0;T>p;p++)r.push(o)}for(var u=0;u<r.length;u++)if(" "==r[u]){a=!1;break}}if(d&&"<"==n&&i+this.input.charAt(this.pos)=="{{"&&(i+=this.get_unformatted("}}"),r.length&&" "!=r[r.length-1]&&"<"!=r[r.length-1]&&(i=" "+i),_=!0),"<"!=i||n||(e=this.pos-1,n="<"),d&&!n&&2<=r.length&&"{"==r[r.length-1]&&"{"==r[r.length-2]&&(e="#"==i||"/"==i||"!"==i?this.pos-3:this.pos-2,n="{"),this.line_char_count++,r.push(i),r[1]&&("!"==r[1]||"?"==r[1]||"%"==r[1])){r=[this.get_comment(e)];break}if(d&&r[1]&&"{"==r[1]&&r[2]&&"!"==r[2]){r=[this.get_comment(e)];break}if(d&&"{"==n&&2<r.length&&"}"==r[r.length-2]&&"}"==r[r.length-1])break}}while(">"!=i);var E,g,w=r.join("");E=w.indexOf(-1!=w.indexOf(" ")?" ":"{"==w[0]?"}":">"),g="<"!=w[0]&&d?"#"==w[2]?3:2:1;var x=w.substring(g,E).toLowerCase();return"/"==w.charAt(w.length-2)||this.Utils.in_array(x,this.Utils.single_token)?t||(this.tag_type="SINGLE"):d&&"{"==w[0]&&"else"==x?t||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(x,c)?(s=this.get_unformatted("</"+x+">",w),r.push(s),this.pos,this.tag_type="SINGLE"):"script"==x&&(-1==w.search("type")||-1<w.search("type")&&-1<w.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/))?t||(this.record_tag(x),this.tag_type="SCRIPT"):"style"==x&&(-1==w.search("type")||-1<w.search("type")&&-1<w.search("text/css"))?t||(this.record_tag(x),this.tag_type="STYLE"):"!"==x.charAt(0)?t||(this.tag_type="SINGLE",this.traverse_whitespace()):t||("/"==x.charAt(0)?(this.retrieve_tag(x.substring(1)),this.tag_type="END"):(this.record_tag(x),"html"!=x.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(r),this.Utils.in_array(x,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!=this.output[this.output.length-2]&&this.print_newline(!0,this.output))),t&&(this.pos=l,this.line_char_count=h),r.join("")},this.get_comment=function(t){var e="",n=">",i=!1;this.pos=t;var r=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&((e+=r)[e.length-1]!=n[n.length-1]||-1==e.indexOf(n));)!i&&e.length<10&&(0===e.indexOf("<![if")?(n="<![endif]>",i=!0):0===e.indexOf("<![cdata[")?(n="]]>",i=!0):0===e.indexOf("<![")?(n="]>",i=!0):0===e.indexOf("<!--")?(n="-->",i=!0):0===e.indexOf("{{!")?(n="}}",i=!0):0===e.indexOf("<?")?(n="?>",i=!0):0===e.indexOf("<%")&&(n="%>",i=!0)),r=this.input.charAt(this.pos),this.pos++;return e},this.get_unformatted=function(t,e){if(e&&-1!=e.toLowerCase().indexOf(t))return"";var n="",i="",r=0,s=!0;do{if(this.pos>=this.input.length)return i;if(n=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(n,this.Utils.whitespace)){if(!s){this.line_char_count--;continue}if("\n"==n||"\r"==n){i+="\n",this.line_char_count=0;continue}}i+=n,this.line_char_count++,s=!0,d&&"{"==n&&i.length&&"{"==i[i.length-2]&&(r=(i+=this.get_unformatted("}}")).length)}while(-1==i.toLowerCase().indexOf(t,r));return i},this.get_token=function(){var t;if("TK_TAG_SCRIPT"==this.last_token||"TK_TAG_STYLE"==this.last_token){var e=this.last_token.substr(7);return"string"!=typeof(t=this.get_contents_to(e))?t:[t,"TK_"+e]}return"CONTENT"==this.current_mode?"string"!=typeof(t=this.get_content())?t:[t,"TK_CONTENT"]:"TAG"==this.current_mode?"string"!=typeof(t=this.get_tag())?t:[t,"TK_TAG_"+this.tag_type]:void 0},this.get_full_indent=function(t){return(t=this.indent_level+t||0)<1?"":new Array(t+1).join(this.indent_string)},this.is_unformatted=function(t,e){if(!this.Utils.in_array(t,e))return!1;if("a"!=t.toLowerCase()||!this.Utils.in_array("a",e))return!0;var n=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!(n&&!this.Utils.in_array(n,e))},this.printer=function(t,e,n,i,s){this.input=t||"",this.output=[],this.indent_character=e,this.indent_string="",this.indent_size=n,this.brace_style=s,this.indent_level=0,this.wrap_line_length=i;for(var _=this.line_char_count=0;_<this.indent_size;_++)this.indent_string+=this.indent_character;this.print_newline=function(t,e){this.line_char_count=0,e&&e.length&&(t||"\n"!=e[e.length-1])&&("\n"!=e[e.length-1]&&(e[e.length-1]=r(e[e.length-1])),e.push("\n"))},this.print_indentation=function(t){for(var e=0;e<this.indent_level;e++)t.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(t){this.is_whitespace(t)&&!this.output.length||((t||""!==t)&&this.output.length&&"\n"==this.output[this.output.length-1]&&(this.print_indentation(this.output),t=t.replace(/^\s+/g,"")),this.print_token_raw(t))},this.print_token_raw=function(t){0<this.newlines&&(t=r(t)),t&&""!==t&&(1<t.length&&"\n"==t[t.length-1]?(this.output.push(t.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(t));for(var e=0;e<this.newlines;e++)this.print_newline(e>0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){0<this.indent_level&&this.indent_level--}},this}).printer(e,o,a,l,h);;){var w=s.get_token();if(s.token_text=w[0],s.token_type=w[1],"TK_EOF"==s.token_type)break;switch(s.token_type){case"TK_TAG_START":s.print_newline(!1,s.output),s.print_token(s.token_text),s.indent_content&&(s.indent(),s.indent_content=!1),s.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":s.print_newline(!1,s.output),s.print_token(s.token_text),s.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"==s.last_token&&""===s.last_text){var x=s.token_text.match(/\w+/)[0],v=null;s.output.length&&(v=s.output[s.output.length-1].match(/(?:<|{{#)\/?\s*(\w+)/)),(null==v||v[1]!=x&&!s.Utils.in_array(v[1],c))&&s.print_newline(!1,s.output)}s.print_token(s.token_text),s.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var K=s.token_text.match(/^\s*<([a-z-]+)/i);K&&s.Utils.in_array(K[1],c)||s.print_newline(!1,s.output),s.print_token(s.token_text),s.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":s.print_token(s.token_text),s.indent_content&&(s.indent(),s.indent_content=!1),s.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":case"TK_CONTENT":s.print_token(s.token_text),s.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==s.token_text){s.print_newline(!1,s.output);var m,R=s.token_text,b=1;"TK_SCRIPT"==s.token_type?m=i:"TK_STYLE"==s.token_type&&(m=t),"keep"==n.indent_scripts?b=0:"separate"==n.indent_scripts&&(b=-s.indent_level);var S=s.get_full_indent(b);if(m)R=m(R.replace(/^\s*/,S),n);else{var y=R.match(/^\s*/)[0].match(/[^\n\r]*$/)[0].split(s.indent_string).length-1,A=s.get_full_indent(b-y);R=R.replace(/^\s*/,S).replace(/\r\n|\r|\n/g,"\n"+A).replace(/\s+$/,"")}R&&(s.print_token_raw(R),s.print_newline(!0,s.output))}s.current_mode="TAG";break;default:""!==s.token_text&&s.print_token(s.token_text)}s.last_token=s.token_type,s.last_text=s.token_text}var k=s.output.join("").replace(/[\r\n\t ]+$/,"");return E&&(k+="\n"),k}}}})});
;/*!node_modules/froala-editor/js/plugins/code_view.min.js*/
define("node_modules/froala-editor/js/plugins/code_view.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,o){return void 0===o&&(o="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(o)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:" ",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),e.FE.PLUGINS.codeView=function(t){function n(){return t.$box.hasClass("fr-code-view")}function o(){return f?f.getValue():c.val()}function r(){n()&&(f&&f.setSize(null,t.opts.height?t.opts.height:"auto"),t.opts.heightMin||t.opts.height?(t.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",t.opts.heightMin||t.opts.height),c.css("height",t.opts.height)):t.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}function s(){n()&&t.events.trigger("blur")}function i(){n()&&u&&t.events.trigger("focus")}function a(a){c||(!function(){c=e('<textarea class="fr-code" tabIndex="-1">'),t.$wp.append(c),c.attr("dir",t.opts.direction),t.$box.hasClass("fr-basic")||(h=e('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'+(t.helpers.isMobile()?"":" fr-desktop")+'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>'),t.$box.append(h),t.events.bindClick(t.$box,"a.html-switch",function(){t.events.trigger("commands.before",["html"]),l(!1),t.events.trigger("commands.after",["html"])}));var s=function(){return!n()};t.events.on("buttons.refresh",s),t.events.on("copy",s,!0),t.events.on("cut",s,!0),t.events.on("paste",s,!0),t.events.on("destroy",d,!0),t.events.on("html.set",function(){n()&&l(!0)}),t.events.on("codeView.update",r),t.events.on("form.submit",function(){n()&&(t.html.set(o()),t.events.trigger("contentChanged",[],!0))},!0)}(),!f&&t.opts.codeMirror?((f=t.opts.codeMirror.fromTextArea(c.get(0),t.opts.codeMirrorOptions)).on("blur",s),f.on("focus",i)):(t.events.$on(c,"keydown keyup change input",function(){t.opts.height?this.removeAttribute("rows"):(this.rows=1,this.style.height=0===this.value.length?"auto":this.scrollHeight+"px")}),t.events.$on(c,"blur",s),t.events.$on(c,"focus",i))),t.undo.saveStep(),t.html.cleanEmptyTags(),t.html.cleanWhiteTags(!0),t.core.hasFocus()&&(t.core.isEmpty()||(t.selection.save(),t.$el.find('.fr-marker[data-type="true"]:first').replaceWith('<span class="fr-tmp fr-sm">F</span>'),t.$el.find('.fr-marker[data-type="false"]:last').replaceWith('<span class="fr-tmp fr-em">F</span>')));var p=t.html.get(!1,!0);t.$el.find("span.fr-tmp").remove(),t.$box.toggleClass("fr-code-view",!0);var g,m,b=!1;if(t.core.hasFocus()&&(b=!0,t.events.disableBlur(),t.$el.blur()),p=(p=p.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM")).replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),t.codeBeautifier&&(p=t.codeBeautifier.run(p,t.opts.codeBeautifierOptions)),f){g=p.indexOf("FROALA-SM"),(m=p.indexOf("FROALA-EM"))<g?g=m:m-=9;var v=(p=p.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).substring(0,g).length-p.substring(0,g).replace(/\n/g,"").length,w=p.substring(0,m).length-p.substring(0,m).replace(/\n/g,"").length;g=p.substring(0,g).length-p.substring(0,p.substring(0,g).lastIndexOf("\n")+1).length,m=p.substring(0,m).length-p.substring(0,p.substring(0,m).lastIndexOf("\n")+1).length,f.setSize(null,t.opts.height?t.opts.height:"auto"),t.opts.heightMin&&t.$box.find(".CodeMirror-scroll").css("min-height",t.opts.heightMin),f.setValue(p),u=!b,f.focus(),u=!0,f.setSelection({line:v,ch:g},{line:w,ch:m}),f.refresh(),f.clearHistory()}else{g=p.indexOf("FROALA-SM"),m=p.indexOf("FROALA-EM")-9,t.opts.heightMin&&c.css("min-height",t.opts.heightMin),t.opts.height&&c.css("height",t.opts.height),c.val(p.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change");var A=e(t.o_doc).scrollTop();u=!b,c.focus(),u=!0,c.get(0).setSelectionRange(g,m),e(t.o_doc).scrollTop(A)}t.$tb.find(" > .fr-command, > .fr-btn-wrap > .fr-command").not(a).filter(function(){return t.opts.codeViewKeepActiveButtons.indexOf(e(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),a.addClass("fr-active").attr("aria-pressed",!0),!t.helpers.isMobile()&&t.opts.toolbarInline&&t.toolbar.hide()}function l(e){void 0===e&&(e=!n());var r,s,i=t.$tb.find('.fr-command[data-cmd="html"]');e?(t.popups.hideAll(),a(i)):(t.$box.toggleClass("fr-code-view",!1),r=i,s=o(),t.html.set(s),t.$el.blur(),t.$tb.find(" > .fr-command, > .fr-btn-wrap > .fr-command").not(r).removeClass("fr-disabled").attr("aria-disabled",!1),r.removeClass("fr-active").attr("aria-pressed",!1),t.selection.setAtStart(t.el),t.selection.restore(),t.placeholder.refresh(),t.undo.saveStep())}function d(){n()&&l(!1),f&&f.toTextArea(),c.val("").removeData().remove(),c=null,h&&(h.remove(),h=null)}var c,f,h,u=!1;return{_init:function(){return t.events.on("focus",function(){var o;t.opts.toolbarContainer&&(o=t.$tb.find('.fr-command[data-cmd="html"]'),n()?(t.$tb.find(" > .fr-command").not(o).filter(function(){return t.opts.codeViewKeepActiveButtons.indexOf(e(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!1),o.addClass("fr-active").attr("aria-pressed",!1)):(t.$tb.find(" > .fr-command").not(o).removeClass("fr-disabled").attr("aria-disabled",!1),o.removeClass("fr-active").attr("aria-pressed",!1)))}),t.$wp?void 0:!1},toggle:l,isActive:n,get:o}},e.FE.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),e.FE.DefineIcon("html",{NAME:"code"})})});
;/*!node_modules/froala-editor/js/plugins/colors.min.js*/
define("node_modules/froala-editor/js/plugins/colors.min",function(o,t,e){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof e&&e.exports?e.exports=function(e,r){return void 0===r&&(r="undefined"!=typeof window?o("node_modules/jquery/dist/jquery"):o("node_modules/jquery/dist/jquery")(e)),t(r)}:t(window.jQuery)}(function(o){o.extend(o.FE.POPUP_TEMPLATES,{"colors.picker":"[_BUTTONS_][_TEXT_COLORS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),o.extend(o.FE.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsDefaultTab:"text",colorsButtons:["colorsBack","|","-"]});var t=["text","background"];o.FE.PLUGINS.colors=function(e){function r(){e.popups.hide("colors.picker")}function a(o){for(var t="text"==o?e.opts.colorsText:e.opts.colorsBackground,r='<div class="fr-color-set fr-'+o+"-color"+(e.opts.colorsDefaultTab==o||"text"!=e.opts.colorsDefaultTab&&"background"!=e.opts.colorsDefaultTab&&"text"==o?" fr-selected-set":"")+'">',a=0;a<t.length;a++)0!==a&&a%e.opts.colorsStep==0&&(r+="<br>"),r+="REMOVE"!=t[a]?'<span class="fr-command fr-select-color" style="background: '+t[a]+';" tabIndex="-1" aria-selected="false" role="button" data-cmd="'+o+'Color" data-param1="'+t[a]+'"><span class="fr-sr-only">'+e.language.translate("Color")+" "+t[a]+"&nbsp;&nbsp;&nbsp;</span></span>":'<span class="fr-command fr-select-color" data-cmd="'+o+'Color" tabIndex="-1" role="button" data-param1="REMOVE" title="'+e.language.translate("Clear Formatting")+'">'+e.icon.create("remove")+'<span class="fr-sr-only">'+e.language.translate("Clear Formatting")+"</span></span>";return r+"</div>"}function s(o){var t=e.popups.get("colors.picker"),r=t.find(".fr-"+o+"-color .fr-active-item").attr("data-param1"),a=t.find(".fr-color-hex-layer input"),s=t.find('.fr-colors-tab[data-param1="'+o+'"]');a.length&&s.hasClass("fr-selected-tab")&&a.val(r).trigger("change")}function l(o){"REMOVE"!=o?e.format.applyStyle("background-color",e.helpers.HEXtoRGB(o)):e.format.removeStyle("background-color"),r()}function c(o){"REMOVE"!=o?e.format.applyStyle("color",e.helpers.HEXtoRGB(o)):e.format.removeStyle("color"),r()}return{showColorsPopup:function(){var r=e.$tb.find('.fr-command[data-cmd="color"]'),l=e.popups.get("colors.picker");if(l||(l=function(){var t,r='<div class="fr-buttons fr-colors-buttons">';e.opts.toolbarInline&&0<e.opts.colorsButtons.length&&(r+=e.button.buildList(e.opts.colorsButtons)),t='<div class="fr-colors-tabs fr-group">',t+='<span class="fr-colors-tab '+("background"==e.opts.colorsDefaultTab?"":"fr-selected-tab ")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"!=e.opts.colorsDefaultTab)+'" data-param1="text" data-cmd="colorChangeSet" title="'+e.language.translate("Text")+'">'+e.language.translate("Text")+"</span>",r+=(t+='<span class="fr-colors-tab '+("background"==e.opts.colorsDefaultTab?"fr-selected-tab ":"")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==e.opts.colorsDefaultTab)+'" data-param1="background" data-cmd="colorChangeSet" title="'+e.language.translate("Background")+'">'+e.language.translate("Background")+"</span>")+"</div></div>";var s="";e.opts.colorsHEXInput&&(s='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer-'+e.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-color-hex-layer-text-'+e.id+'" type="text" placeholder="'+e.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="customColor" tabIndex="2" role="button">'+e.language.translate("OK")+"</button></div></div>");var l,c={buttons:r,text_colors:a("text"),background_colors:a("background"),custom_color:s},n=e.popups.create("colors.picker",c);return l=n,e.events.on("popup.tab",function(t){var r=o(t.currentTarget);if(!e.popups.isVisible("colors.picker")||!r.is("span"))return!0;var a=t.which,s=!0;if(o.FE.KEYCODE.TAB==a){var c=l.find(".fr-buttons");s=!e.accessibility.focusToolbar(c,!!t.shiftKey)}else if(o.FE.KEYCODE.ARROW_UP==a||o.FE.KEYCODE.ARROW_DOWN==a||o.FE.KEYCODE.ARROW_LEFT==a||o.FE.KEYCODE.ARROW_RIGHT==a){if(r.is("span.fr-select-color")){var n=r.parent().find("span.fr-select-color"),i=n.index(r),p=e.opts.colorsStep,d=Math.floor(n.length/p),u=i%p,f=Math.floor(i/p),b=f*p+u,E=d*p;o.FE.KEYCODE.ARROW_UP==a?b=((b-p)%E+E)%E:o.FE.KEYCODE.ARROW_DOWN==a?b=(b+p)%E:o.FE.KEYCODE.ARROW_LEFT==a?b=((b-1)%E+E)%E:o.FE.KEYCODE.ARROW_RIGHT==a&&(b=(b+1)%E);var C=o(n.get(b));e.events.disableBlur(),C.focus(),s=!1}}else o.FE.KEYCODE.ENTER==a&&(e.button.exec(r),s=!1);return!1===s&&(t.preventDefault(),t.stopPropagation()),s},!0),n}()),!l.hasClass("fr-active"))if(e.popups.setContainer("colors.picker",e.$tb),t.map(function(t){!function(t){var r,a=e.popups.get("colors.picker"),l=o(e.selection.element());r="background"==t?"background-color":"color";var c=a.find(".fr-"+t+"-color .fr-select-color");for(c.find(".fr-selected-color").remove(),c.removeClass("fr-active-item"),c.not('[data-param1="REMOVE"]').attr("aria-selected",!1);l.get(0)!=e.el;){if("transparent"!=l.css(r)&&"rgba(0, 0, 0, 0)"!=l.css(r)){var n=a.find(".fr-"+t+'-color .fr-select-color[data-param1="'+e.helpers.RGBToHex(l.css(r))+'"]');n.append('<span class="fr-selected-color" aria-hidden="true"></span>'),n.addClass("fr-active-item").attr("aria-selected",!0);break}l=l.parent()}s(t)}(t)}),r.is(":visible")){var c=r.offset().left+r.outerWidth()/2,n=r.offset().top+(e.opts.toolbarBottom?10:r.outerHeight()-10);e.popups.show("colors.picker",c,n,r.outerHeight())}else e.position.forSelection(l),e.popups.show("colors.picker")},hideColorsPopup:r,changeSet:function(o,t){o.hasClass("fr-selected-tab")||(o.siblings().removeClass("fr-selected-tab").attr("aria-pressed",!1),o.addClass("fr-selected-tab").attr("aria-pressed",!0),o.parents(".fr-popup").find(".fr-color-set").removeClass("fr-selected-set"),o.parents(".fr-popup").find(".fr-color-set.fr-"+t+"-color").addClass("fr-selected-set"),s(t)),e.accessibility.focusPopup(o.parents(".fr-popup"))},background:l,customColor:function(){var o=e.popups.get("colors.picker"),t=o.find(".fr-color-hex-layer input");if(t.length){var r=t.val();"background"==o.find(".fr-selected-tab").attr("data-param1")?l(r):c(r)}},text:c,back:function(){e.popups.hide("colors.picker"),e.toolbar.showInline()}}},o.FE.DefineIcon("colors",{NAME:"tint"}),o.FE.RegisterCommand("color",{title:"Colors",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("colors.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("colors.picker")):this.colors.showColorsPopup()},plugin:"colors"}),o.FE.RegisterCommand("textColor",{undo:!0,callback:function(o,t){this.colors.text(t)}}),o.FE.RegisterCommand("backgroundColor",{undo:!0,callback:function(o,t){this.colors.background(t)}}),o.FE.RegisterCommand("colorChangeSet",{undo:!1,focus:!1,callback:function(o,t){var e=this.popups.get("colors.picker").find('.fr-command[data-cmd="'+o+'"][data-param1="'+t+'"]');this.colors.changeSet(e,t)}}),o.FE.DefineIcon("colorsBack",{NAME:"arrow-left"}),o.FE.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),o.FE.RegisterCommand("customColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor()}}),o.FE.DefineIcon("remove",{NAME:"eraser"})})});
;/*!node_modules/froala-editor/js/plugins/draggable.min.js*/
define("node_modules/froala-editor/js/plugins/draggable.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(r)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{dragInline:!0}),e.FE.PLUGINS.draggable=function(t){function n(n){return!(!n.originalEvent||!n.originalEvent.target||n.originalEvent.target.nodeType!=Node.TEXT_NODE)||(n.target&&"A"==n.target.tagName&&1==n.target.childNodes.length&&"IMG"==n.target.childNodes[0].tagName&&(n.target=n.target.childNodes[0]),e(n.target).hasClass("fr-draggable")?(t.undo.canDo()||t.undo.saveStep(),t.opts.dragInline?t.$el.attr("contenteditable",!0):t.$el.attr("contenteditable",!1),t.opts.toolbarInline&&t.toolbar.hide(),e(n.target).addClass("fr-dragging"),t.browser.msie||t.browser.edge||t.selection.clear(),void n.originalEvent.dataTransfer.setData("text","Froala")):(t.browser.msie||n.preventDefault(),!1))}function r(e){return!(e&&("HTML"==e.tagName||"BODY"==e.tagName||t.node.isElement(e)))}function a(e,n,r){t.opts.iframe&&(e+=t.$iframe.offset().top,n+=t.$iframe.offset().left),g.offset().top!=e&&g.css("top",e),g.offset().left!=n&&g.css("left",n),g.width()!=r&&g.css("width",r)}function o(n){n.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline?(!function(){for(var t=null,n=0;n<e.FE.INSTANCES.length;n++)if((t=e.FE.INSTANCES[n].$el.find(".fr-dragging")).length)return t.get(0)}()||t.browser.msie||t.browser.edge)&&n.preventDefault():(n.preventDefault(),function(n){var o=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset);if(!r(o)){for(var i=0,l=o;!r(l)&&l==o&&0<n.originalEvent.pageY-t.win.pageYOffset-i;)i++,l=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset-i);(!r(l)||g&&0===t.$el.find(l).length&&l!=g.get(0))&&(l=null);for(var s=0,f=o;!r(f)&&f==o&&n.originalEvent.pageY-t.win.pageYOffset+s<e(t.doc).height();)s++,f=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset+s);(!r(f)||g&&0===t.$el.find(f).length&&f!=g.get(0))&&(f=null),o=null==f&&l?l:f&&null==l?f:f&&l?s>i?l:f:null}if(!e(o).hasClass("fr-drag-helper"))if(o&&!t.node.isBlock(o)&&(o=t.node.blockParent(o)),o&&0<=["TD","TH","TR","THEAD","TBODY"].indexOf(o.tagName)&&(o=e(o).parents("table").get(0)),o&&0<=["LI"].indexOf(o.tagName)&&(o=e(o).parents("UL, OL").get(0)),o&&!e(o).hasClass("fr-drag-helper")){var d;g||(e.FE.$draggable_helper||(e.FE.$draggable_helper=e('<div class="fr-drag-helper"></div>')),g=e.FE.$draggable_helper,t.events.on("shared.destroy",function(){g.html("").removeData().remove(),g=null},!0)),d=n.originalEvent.pageY<e(o).offset().top+e(o).outerHeight()/2;var p=e(o),v=0;d||0!==p.next().length?(d||(p=p.next()),"before"==g.data("fr-position")&&p.is(g.data("fr-tag"))||(0<p.prev().length&&(v=parseFloat(p.prev().css("margin-bottom"))||0),v=Math.max(v,parseFloat(p.css("margin-top"))||0),a(p.offset().top-v/2-t.$box.offset().top,p.offset().left-t.win.pageXOffset-t.$box.offset().left,p.width()),g.data("fr-position","before"))):"after"==g.data("fr-position")&&p.is(g.data("fr-tag"))||(v=parseFloat(p.css("margin-bottom"))||0,a(p.offset().top+e(o).height()+v/2-t.$box.offset().top,p.offset().left-t.win.pageXOffset-t.$box.offset().left,p.width()),g.data("fr-position","after")),g.data("fr-tag",p),g.addClass("fr-visible"),g.appendTo(t.$box)}else g&&0<t.$box.find(g).length&&g.removeClass("fr-visible")}(n))}function i(e){e.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline||e.preventDefault()}function l(e){t.$el.attr("contenteditable",!0);var n=t.$el.find(".fr-dragging");g&&g.hasClass("fr-visible")&&t.$box.find(g).length?s(e):n.length&&(e.preventDefault(),e.stopPropagation()),g&&t.$box.find(g).length&&g.removeClass("fr-visible"),n.removeClass("fr-dragging")}function s(n){var r,a;"true"!==t.$el.attr("contenteditable")&&t.$el.attr("contenteditable",!0);for(var o=0;o<e.FE.INSTANCES.length;o++)if((r=e.FE.INSTANCES[o].$el.find(".fr-dragging")).length){a=e.FE.INSTANCES[o];break}if(r.length){if(n.preventDefault(),n.stopPropagation(),g&&g.hasClass("fr-visible")&&t.$box.find(g).length)g.data("fr-tag")[g.data("fr-position")]('<span class="fr-marker"></span>'),g.removeClass("fr-visible");else if(!1===t.markers.insertAtPoint(n.originalEvent))return!1;if(r.removeClass("fr-dragging"),!1===(r=t.events.chainTrigger("element.beforeDrop",r)))return!1;var i=r;if(r.parent().is("A")&&1==r.parent().get(0).childNodes.length&&(i=r.parent()),t.core.isEmpty()?t.events.focus():(t.$el.find(".fr-marker").replaceWith(e.FE.MARKERS),t.selection.restore()),a==t||t.undo.canDo()||t.undo.saveStep(),t.core.isEmpty())t.$el.html(i);else{var l=t.markers.insert();0===i.find(l).length?e(l).replaceWith(i):0===r.find(l).length&&e(l).replaceWith(r),r.after(e.FE.MARKERS),t.selection.restore()}return t.popups.hideAll(),t.selection.save(),t.$el.find(t.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(t.opts.htmlAllowedEmptyTags.join(",")).remove(),t.html.wrap(),t.html.fillEmptyBlocks(),t.selection.restore(),t.undo.saveStep(),t.opts.iframe&&t.size.syncIframe(),a!=t&&(a.popups.hideAll(),a.$el.find(a.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),a.html.wrap(),a.html.fillEmptyBlocks(),a.undo.saveStep(),a.events.trigger("element.dropped"),a.opts.iframe&&a.size.syncIframe()),t.events.trigger("element.dropped",[i]),!1}g&&g.removeClass("fr-visible"),t.undo.canDo()||t.undo.saveStep(),setTimeout(function(){t.undo.saveStep()},0)}function f(e){if(e&&"DIV"==e.tagName&&t.node.hasClass(e,"fr-drag-helper"))e.parentNode.removeChild(e);else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var n=e.querySelectorAll("div.fr-drag-helper"),r=0;r<n.length;r++)n[r].parentNode.removeChild(n[r])}var g;return{_init:function(){t.opts.enter==e.FE.ENTER_BR&&(t.opts.dragInline=!0),t.events.on("dragstart",n,!0),t.events.on("dragover",o,!0),t.events.on("dragenter",i,!0),t.events.on("document.dragend",l,!0),t.events.on("document.drop",l,!0),t.events.on("drop",s,!0),t.events.on("html.processGet",f)}}}})});
;/*!node_modules/froala-editor/js/plugins/emoticons.min.js*/
define("node_modules/froala-editor/js/plugins/emoticons.min",function(e,o,t){!function(o){"function"==typeof define&&define.amd?define(["jquery"],o):"object"==typeof t&&t.exports?t.exports=function(t,s){return void 0===s&&(s="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),o(s)}:o(window.jQuery)}(function(e){e.extend(e.FE.POPUP_TEMPLATES,{emoticons:"[_BUTTONS_][_EMOTICONS_]"}),e.extend(e.FE.DEFAULTS,{emoticonsStep:8,emoticonsSet:[{code:"1f600",desc:"Grinning face"},{code:"1f601",desc:"Grinning face with smiling eyes"},{code:"1f602",desc:"Face with tears of joy"},{code:"1f603",desc:"Smiling face with open mouth"},{code:"1f604",desc:"Smiling face with open mouth and smiling eyes"},{code:"1f605",desc:"Smiling face with open mouth and cold sweat"},{code:"1f606",desc:"Smiling face with open mouth and tightly-closed eyes"},{code:"1f607",desc:"Smiling face with halo"},{code:"1f608",desc:"Smiling face with horns"},{code:"1f609",desc:"Winking face"},{code:"1f60a",desc:"Smiling face with smiling eyes"},{code:"1f60b",desc:"Face savoring delicious food"},{code:"1f60c",desc:"Relieved face"},{code:"1f60d",desc:"Smiling face with heart-shaped eyes"},{code:"1f60e",desc:"Smiling face with sunglasses"},{code:"1f60f",desc:"Smirking face"},{code:"1f610",desc:"Neutral face"},{code:"1f611",desc:"Expressionless face"},{code:"1f612",desc:"Unamused face"},{code:"1f613",desc:"Face with cold sweat"},{code:"1f614",desc:"Pensive face"},{code:"1f615",desc:"Confused face"},{code:"1f616",desc:"Confounded face"},{code:"1f617",desc:"Kissing face"},{code:"1f618",desc:"Face throwing a kiss"},{code:"1f619",desc:"Kissing face with smiling eyes"},{code:"1f61a",desc:"Kissing face with closed eyes"},{code:"1f61b",desc:"Face with stuck out tongue"},{code:"1f61c",desc:"Face with stuck out tongue and winking eye"},{code:"1f61d",desc:"Face with stuck out tongue and tightly-closed eyes"},{code:"1f61e",desc:"Disappointed face"},{code:"1f61f",desc:"Worried face"},{code:"1f620",desc:"Angry face"},{code:"1f621",desc:"Pouting face"},{code:"1f622",desc:"Crying face"},{code:"1f623",desc:"Persevering face"},{code:"1f624",desc:"Face with look of triumph"},{code:"1f625",desc:"Disappointed but relieved face"},{code:"1f626",desc:"Frowning face with open mouth"},{code:"1f627",desc:"Anguished face"},{code:"1f628",desc:"Fearful face"},{code:"1f629",desc:"Weary face"},{code:"1f62a",desc:"Sleepy face"},{code:"1f62b",desc:"Tired face"},{code:"1f62c",desc:"Grimacing face"},{code:"1f62d",desc:"Loudly crying face"},{code:"1f62e",desc:"Face with open mouth"},{code:"1f62f",desc:"Hushed face"},{code:"1f630",desc:"Face with open mouth and cold sweat"},{code:"1f631",desc:"Face screaming in fear"},{code:"1f632",desc:"Astonished face"},{code:"1f633",desc:"Flushed face"},{code:"1f634",desc:"Sleeping face"},{code:"1f635",desc:"Dizzy face"},{code:"1f636",desc:"Face without mouth"},{code:"1f637",desc:"Face with medical mask"}],emoticonsButtons:["emoticonsBack","|"],emoticonsUseImage:!0}),e.FE.PLUGINS.emoticons=function(o){function t(){if(!o.selection.isCollapsed())return!1;var e=o.selection.element(),t=o.selection.endElement();if(e&&o.node.hasClass(e,"fr-emoticon"))return e;if(t&&o.node.hasClass(t,"fr-emoticon"))return t;var s=o.selection.ranges(0),n=s.startContainer;if(n.nodeType==Node.ELEMENT_NODE&&0<n.childNodes.length&&0<s.startOffset){var c=n.childNodes[s.startOffset-1];if(o.node.hasClass(c,"fr-emoticon"))return c}return!1}return{_init:function(){var s=function(){for(var e=o.el.querySelectorAll(".fr-emoticon:not(.fr-deletable)"),t=0;t<e.length;t++)e[t].className+=" fr-deletable"};s(),o.events.on("html.set",s),o.events.on("keydown",function(s){if(o.keys.isCharacter(s.which)&&o.selection.inEditor()){var n=o.selection.ranges(0),c=t();o.node.hasClass(c,"fr-emoticon-img")&&c&&(0===n.startOffset&&o.selection.element()===c?e(c).before(e.FE.MARKERS+e.FE.INVISIBLE_SPACE):e(c).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS),o.selection.restore())}}),o.events.on("keyup",function(s){for(var n=o.el.querySelectorAll(".fr-emoticon"),c=0;c<n.length;c++)"undefined"!=typeof n[c].textContent&&0===n[c].textContent.replace(/\u200B/gi,"").length&&e(n[c]).remove();if(!(s.which>=e.FE.KEYCODE.ARROW_LEFT&&s.which<=e.FE.KEYCODE.ARROW_DOWN)){var i=t();o.node.hasClass(i,"fr-emoticon-img")&&(e(i).append(e.FE.MARKERS),o.selection.restore())}})},insert:function(s,n){var c=t(),i=o.selection.ranges(0);c?(0===i.startOffset&&o.selection.element()===c?e(c).before(e.FE.MARKERS+e.FE.INVISIBLE_SPACE):0<i.startOffset&&o.selection.element()===c&&i.commonAncestorContainer.parentNode.classList.contains("fr-emoticon")&&e(c).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS),o.selection.restore(),o.html.insert('<span class="fr-emoticon fr-deletable'+(n?" fr-emoticon-img":"")+'"'+(n?' style="background: url('+n+');"':"")+">"+(n?"&nbsp;":s)+"</span>&nbsp;"+e.FE.MARKERS,!0)):o.html.insert('<span class="fr-emoticon fr-deletable'+(n?" fr-emoticon-img":"")+'"'+(n?' style="background: url('+n+');"':"")+">"+(n?"&nbsp;":s)+"</span>&nbsp;",!0)},showEmoticonsPopup:function(){var t=o.$tb.find('.fr-command[data-cmd="emoticons"]'),s=o.popups.get("emoticons");if(s||(s=function(){var t="";o.opts.toolbarInline&&0<o.opts.emoticonsButtons.length&&(t='<div class="fr-buttons fr-emoticons-buttons">'+o.button.buildList(o.opts.emoticonsButtons)+"</div>");var s,n={buttons:t,emoticons:function(){for(var e='<div style="text-align: center">',t=0;t<o.opts.emoticonsSet.length;t++)0!==t&&t%o.opts.emoticonsStep==0&&(e+="<br>"),e+='<span class="fr-command fr-emoticon" tabIndex="-1" data-cmd="insertEmoticon" title="'+o.language.translate(o.opts.emoticonsSet[t].desc)+'" role="button" data-param1="'+o.opts.emoticonsSet[t].code+'">'+(o.opts.emoticonsUseImage?'<img src="https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/'+o.opts.emoticonsSet[t].code+'.svg"/>':"&#x"+o.opts.emoticonsSet[t].code+";")+'<span class="fr-sr-only">'+o.language.translate(o.opts.emoticonsSet[t].desc)+"&nbsp;&nbsp;&nbsp;</span></span>";return o.opts.emoticonsUseImage&&(e+='<p style="font-size: 12px; text-align: center; padding: 0 5px;">Emoji free by <a class="fr-link" tabIndex="-1" href="http://emojione.com/" target="_blank" rel="nofollow noopener noreferrer" role="link" aria-label="Open Emoji One website.">Emoji One</a></p>'),e+="</div>"}()},c=o.popups.create("emoticons",n);return o.tooltip.bind(c,".fr-emoticon"),s=c,o.events.on("popup.tab",function(t){var n=e(t.currentTarget);if(!o.popups.isVisible("emoticons")||!n.is("span, a"))return!0;var c,i,a,f=t.which;if(e.FE.KEYCODE.TAB==f){if(n.is("span.fr-emoticon")&&t.shiftKey||n.is("a")&&!t.shiftKey){var d=s.find(".fr-buttons");c=!o.accessibility.focusToolbar(d,!!t.shiftKey)}if(!1!==c){var r=s.find("span.fr-emoticon:focus:first, span.fr-emoticon:visible:first, a");n.is("span.fr-emoticon")&&(r=r.not("span.fr-emoticon:not(:focus)")),i=r.index(n),i=t.shiftKey?((i-1)%r.length+r.length)%r.length:(i+1)%r.length,a=r.get(i),o.events.disableBlur(),a.focus(),c=!1}}else if(e.FE.KEYCODE.ARROW_UP==f||e.FE.KEYCODE.ARROW_DOWN==f||e.FE.KEYCODE.ARROW_LEFT==f||e.FE.KEYCODE.ARROW_RIGHT==f){if(n.is("span.fr-emoticon")){var l=n.parent().find("span.fr-emoticon");i=l.index(n);var m=o.opts.emoticonsStep,u=Math.floor(l.length/m),p=i%m,h=Math.floor(i/m),E=h*m+p,g=u*m;e.FE.KEYCODE.ARROW_UP==f?E=((E-m)%g+g)%g:e.FE.KEYCODE.ARROW_DOWN==f?E=(E+m)%g:e.FE.KEYCODE.ARROW_LEFT==f?E=((E-1)%g+g)%g:e.FE.KEYCODE.ARROW_RIGHT==f&&(E=(E+1)%g),a=e(l.get(E)),o.events.disableBlur(),a.focus(),c=!1}}else e.FE.KEYCODE.ENTER==f&&(n.is("a")?n[0].click():o.button.exec(n),c=!1);return!1===c&&(t.preventDefault(),t.stopPropagation()),c},!0),c}()),!s.hasClass("fr-active")){o.popups.refresh("emoticons"),o.popups.setContainer("emoticons",o.$tb);var n=t.offset().left+t.outerWidth()/2,c=t.offset().top+(o.opts.toolbarBottom?10:t.outerHeight()-10);o.popups.show("emoticons",n,c,t.outerHeight())}},hideEmoticonsPopup:function(){o.popups.hide("emoticons")},back:function(){o.popups.hide("emoticons"),o.toolbar.showInline()}}},e.FE.DefineIcon("emoticons",{NAME:"smile-o",FA5NAME:"smile"}),e.FE.RegisterCommand("emoticons",{title:"Emoticons",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("emoticons")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("emoticons")):this.emoticons.showEmoticonsPopup()},plugin:"emoticons"}),e.FE.RegisterCommand("insertEmoticon",{callback:function(e,o){this.emoticons.insert("&#x"+o+";",this.opts.emoticonsUseImage?"https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/"+o+".svg":null),this.emoticons.hideEmoticonsPopup()}}),e.FE.DefineIcon("emoticonsBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("emoticonsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.emoticons.back()}})})});
;/*!node_modules/froala-editor/js/plugins/entities.min.js*/
define("node_modules/froala-editor/js/plugins/entities.min",function(e,i,a){!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof a&&a.exports?a.exports=function(a,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(a)),i(r)}:i(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{entities:"&quot;&#39;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&shy;&reg;&macr;&deg;&plusmn;&sup2;&sup3;&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;&OElig;&oelig;&Scaron;&scaron;&Yuml;&fnof;&circ;&tilde;&Alpha;&Beta;&Gamma;&Delta;&Epsilon;&Zeta;&Eta;&Theta;&Iota;&Kappa;&Lambda;&Mu;&Nu;&Xi;&Omicron;&Pi;&Rho;&Sigma;&Tau;&Upsilon;&Phi;&Chi;&Psi;&Omega;&alpha;&beta;&gamma;&delta;&epsilon;&zeta;&eta;&theta;&iota;&kappa;&lambda;&mu;&nu;&xi;&omicron;&pi;&rho;&sigmaf;&sigma;&tau;&upsilon;&phi;&chi;&psi;&omega;&thetasym;&upsih;&piv;&ensp;&emsp;&thinsp;&zwnj;&zwj;&lrm;&rlm;&ndash;&mdash;&lsquo;&rsquo;&sbquo;&ldquo;&rdquo;&bdquo;&dagger;&Dagger;&bull;&hellip;&permil;&prime;&Prime;&lsaquo;&rsaquo;&oline;&frasl;&euro;&image;&weierp;&real;&trade;&alefsym;&larr;&uarr;&rarr;&darr;&harr;&crarr;&lArr;&uArr;&rArr;&dArr;&hArr;&forall;&part;&exist;&empty;&nabla;&isin;&notin;&ni;&prod;&sum;&minus;&lowast;&radic;&prop;&infin;&ang;&and;&or;&cap;&cup;&int;&there4;&sim;&cong;&asymp;&ne;&equiv;&le;&ge;&sub;&sup;&nsub;&sube;&supe;&oplus;&otimes;&perp;&sdot;&lceil;&rceil;&lfloor;&rfloor;&lang;&rang;&loz;&spades;&clubs;&hearts;&diams;"}),e.FE.PLUGINS.entities=function(i){function a(e){var i=e.textContent;if(i.match(n)){for(var a="",r=0;r<i.length;r++)a+=o[i[r]]?o[i[r]]:i[r];e.textContent=a}}function r(e){if(e&&0<=["STYLE","SCRIPT","svg","IFRAME"].indexOf(e.tagName))return!0;for(var t=i.node.contents(e),n=0;n<t.length;n++)t[n].nodeType==Node.TEXT_NODE?a(t[n]):r(t[n]);e.nodeType==Node.TEXT_NODE&&a(e)}function t(e){return 0===e.length?"":i.clean.exec(e,r).replace(/\&amp;/g,"&")}var n,o;return{_init:function(){i.opts.htmlSimpleAmpersand||(i.opts.entities=i.opts.entities+"&amp;");var a=e("<div>").html(i.opts.entities).text(),r=i.opts.entities.split(";");o={},n="";for(var u=0;u<a.length;u++){var l=a.charAt(u);o[l]=r[u]+";",n+="\\"+l+(u<a.length-1?"|":"")}n=new RegExp("("+n+")","g"),i.events.on("html.get",t,!0)}}}})});
;/*!node_modules/froala-editor/js/plugins/font_family.min.js*/
define("node_modules/froala-editor/js/plugins/font_family.min",function(e,n,t){!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof t&&t.exports?t.exports=function(t,a){return void 0===a&&(a="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),n(a)}:n(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif,-webkit-standard":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},fontFamilySelection:!1,fontFamilyDefaultSelection:"Font Family"}),e.FE.PLUGINS.fontFamily=function(n){function t(n){var t=n.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(",");return e.grep(t,function(e){return 0<e.length})}function a(e,n){for(var t=0;t<e.length;t++)for(var a=0;a<n.length;a++)if(e[t].toLowerCase()==n[a].toLowerCase())return[t,a];return null}function o(){var o=t(e(n.selection.element()).css("font-family")),i=[];for(var r in n.opts.fontFamily)if(n.opts.fontFamily.hasOwnProperty(r)){var f=a(o,t(r));f&&i.push([r,f])}return 0===i.length?null:(i.sort(function(e,n){var t=e[1][0]-n[1][0];return 0===t?e[1][1]-n[1][1]:t}),i[0][0])}return{apply:function(e){n.format.applyStyle("font-family",e)},refreshOnShow:function(e,n){n.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),n.find('.fr-command[data-param1="'+o()+'"]').addClass("fr-active").attr("aria-selected",!0);var t=n.find(".fr-dropdown-list"),a=n.find(".fr-active").parent();t.parent().scrollTop(a.length?a.offset().top-t.offset().top-(t.parent().outerHeight()/2-a.outerHeight()/2):0)},refresh:function(t){if(n.opts.fontFamilySelection){var a=e(n.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'|/g,"").split(",");t.find("> span").text(n.opts.fontFamily[o()]||a[0]||n.language.translate(n.opts.fontFamilyDefaultSelection))}}}},e.FE.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(e){return e.opts.fontFamilySelection},defaultSelection:function(e){return e.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',n=this.opts.fontFamily;for(var t in n)n.hasOwnProperty(t)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'+t+'" style="font-family: '+t+'" title="'+n[t]+'">'+n[t]+"</a></li>");return e+="</ul>"},title:"Font Family",callback:function(e,n){this.fontFamily.apply(n)},refresh:function(e){this.fontFamily.refresh(e)},refreshOnShow:function(e,n){this.fontFamily.refreshOnShow(e,n)},plugin:"fontFamily"}),e.FE.DefineIcon("fontFamily",{NAME:"font"})})});
;/*!node_modules/froala-editor/js/plugins/font_size.min.js*/
define("node_modules/froala-editor/js/plugins/font_size.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,o){return void 0===o&&(o="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(o)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),e.FE.PLUGINS.fontSize=function(t){return{apply:function(e){t.format.applyStyle("font-size",e)},refreshOnShow:function(n,o){var i=e(t.selection.element()).css("font-size");"pt"===t.opts.fontSizeUnit&&(i=Math.round(72*parseFloat(i,10)/96)+"pt"),o.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),o.find('.fr-command[data-param1="'+i+'"]').addClass("fr-active").attr("aria-selected",!0);var f=o.find(".fr-dropdown-list"),r=o.find(".fr-active").parent();f.parent().scrollTop(r.length?r.offset().top-f.offset().top-(f.parent().outerHeight()/2-r.outerHeight()/2):0)},refresh:function(n){if(t.opts.fontSizeSelection){var o=t.helpers.getPX(e(t.selection.element()).css("font-size"));"pt"===t.opts.fontSizeUnit&&(o=Math.round(72*parseFloat(o,10)/96)+"pt"),n.find("> span").text(o)}}}},e.FE.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontSize,n=0;n<t.length;n++){var o=t[n];e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'+o+this.opts.fontSizeUnit+'" title="'+o+'">'+o+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),e.FE.DefineIcon("fontSize",{NAME:"text-height"})})});
;/*!node_modules/froala-editor/js/plugins/forms.min.js*/
define("node_modules/froala-editor/js/plugins/forms.min",function(t,e,o){!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof o&&o.exports?o.exports=function(o,n){return void 0===n&&(n="undefined"!=typeof window?t("node_modules/jquery/dist/jquery"):t("node_modules/jquery/dist/jquery")(o)),e(n)}:e(window.jQuery)}(function(t){t.extend(t.FE.POPUP_TEMPLATES,{"forms.edit":"[_BUTTONS_]","forms.update":"[_BUTTONS_][_TEXT_LAYER_]"}),t.extend(t.FE.DEFAULTS,{formEditButtons:["inputStyle","inputEdit"],formStyles:{"fr-rounded":"Rounded","fr-large":"Large"},formMultipleStyles:!0,formUpdateButtons:["inputBack","|"]}),t.FE.PLUGINS.forms=function(e){function o(o){o.preventDefault(),e.selection.clear(),t(this).data("mousedown",!0)}function n(e){t(this).data("mousedown")&&(e.stopPropagation(),t(this).removeData("mousedown"),r(d=this)),e.preventDefault()}function s(){e.$el.find("input, textarea, button").removeData("mousedown")}function u(){t(this).removeData("mousedown")}function i(){return d||null}function r(o){var n=e.popups.get("forms.edit");n||(n=function(){var t="";0<e.opts.formEditButtons.length&&(t='<div class="fr-buttons">'+e.button.buildList(e.opts.formEditButtons)+"</div>");var o={buttons:t},n=e.popups.create("forms.edit",o);return e.$wp&&e.events.$on(e.$wp,"scroll.link-edit",function(){i()&&e.popups.isVisible("forms.edit")&&r(i())}),n}());var s=t(d=o);e.popups.refresh("forms.edit"),e.popups.setContainer("forms.edit",e.$sc);var u=s.offset().left+s.outerWidth()/2,a=s.offset().top+s.outerHeight();e.popups.show("forms.edit",u,a,s.outerHeight())}function a(){var o=e.popups.get("forms.update"),n=i();if(n){var s=t(n);o.find('input[type="text"][name="text"]').val(s.is("button")?s.text():s.attr("placeholder"))}o.find('input[type="text"][name="text"]').trigger("change")}function p(){d=null}function f(t){if(t)return e.popups.onRefresh("forms.update",a),e.popups.onHide("forms.update",p),!0;var o="";1<=e.opts.formUpdateButtons.length&&(o='<div class="fr-buttons">'+e.button.buildList(e.opts.formUpdateButtons)+"</div>");var n="",s=0;n='<div class="fr-forms-text-layer fr-layer fr-active">',n+='<div class="fr-input-line"><input name="text" type="text" placeholder="Text" tabIndex="'+ ++s+'"></div>';var u={buttons:o,text_layer:n+='<div class="fr-action-buttons"><button class="fr-command fr-submit" data-cmd="updateInput" href="#" tabIndex="'+ ++s+'" type="button">'+e.language.translate("Update")+"</button></div></div>"};return e.popups.create("forms.update",u)}var d;return{_init:function(){e.events.$on(e.$el,e._mousedown,"input, textarea, button",o),e.events.$on(e.$el,e._mouseup,"input, textarea, button",n),e.events.$on(e.$el,"touchmove","input, textarea, button",u),e.events.$on(e.$el,e._mouseup,s),e.events.$on(e.$win,e._mouseup,s),f(!0),e.events.$on(e.$el,"submit","form",function(t){return t.preventDefault(),!1})},updateInput:function(){var o=e.popups.get("forms.update"),n=i();if(n){var s=t(n),u=o.find('input[type="text"][name="text"]').val()||"";u.length&&(s.is("button")?s.text(u):s.attr("placeholder",u)),e.popups.hide("forms.update"),r(n)}},getInput:i,applyStyle:function(o,n,s){void 0===n&&(n=e.opts.formStyles),void 0===s&&(s=e.opts.formMultipleStyles);var u=i();if(!u)return!1;if(!s){var r=Object.keys(n);r.splice(r.indexOf(o),1),t(u).removeClass(r.join(" "))}t(u).toggleClass(o)},showUpdatePopup:function(){var o=i();if(o){var n=t(o),s=e.popups.get("forms.update");s||(s=f()),e.popups.isVisible("forms.update")||e.popups.refresh("forms.update"),e.popups.setContainer("forms.update",e.$sc);var u=n.offset().left+n.outerWidth()/2,r=n.offset().top+n.outerHeight();e.popups.show("forms.update",u,r,n.outerHeight())}},showEditPopup:r,back:function(){e.events.disableBlur(),e.selection.restore(),e.events.enableBlur();var t=i();t&&e.$wp&&("BUTTON"==t.tagName&&e.selection.restore(),r(t))}}},t.FE.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),t.FE.DefineIcon("inputStyle",{NAME:"magic"}),t.FE.RegisterCommand("inputStyle",{title:"Style",type:"dropdown",html:function(){var t='<ul class="fr-dropdown-list">',e=this.opts.formStyles;for(var o in e)e.hasOwnProperty(o)&&(t+='<li><a class="fr-command" tabIndex="-1" data-cmd="inputStyle" data-param1="'+o+'">'+this.language.translate(e[o])+"</a></li>");return t+="</ul>"},callback:function(t,e){var o=this.forms.getInput();o&&(this.forms.applyStyle(e),this.forms.showEditPopup(o))},refreshOnShow:function(e,o){var n=this.forms.getInput();if(n){var s=t(n);o.find(".fr-command").each(function(){var e=t(this).data("param1");t(this).toggleClass("fr-active",s.hasClass(e))})}}}),t.FE.DefineIcon("inputEdit",{NAME:"edit"}),t.FE.RegisterCommand("inputEdit",{title:"Edit Button",undo:!1,refreshAfterCallback:!1,callback:function(){this.forms.showUpdatePopup()}}),t.FE.DefineIcon("inputBack",{NAME:"arrow-left"}),t.FE.RegisterCommand("inputBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.forms.back()}}),t.FE.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}})})});
;/*!node_modules/froala-editor/js/plugins/fullscreen.min.js*/
define("node_modules/froala-editor/js/plugins/fullscreen.min",function(e,t,o){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof o&&o.exports?o.exports=function(o,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(o)),t(r)}:t(window.jQuery)}(function(e){e.FE.PLUGINS.fullscreen=function(t){function o(){return t.$box.hasClass("fr-fullscreen")}function r(){if(t.helpers.isIOS()&&t.core.hasFocus())return t.$el.blur(),setTimeout(n,250),!1;l=t.helpers.scrollTop(),t.$box.toggleClass("fr-fullscreen"),e("body:first").toggleClass("fr-fullscreen"),t.helpers.isMobile()&&(t.$tb.data("parent",t.$tb.parent()),t.$tb.prependTo(t.$box),t.$tb.data("sticky-dummy")&&t.$tb.after(t.$tb.data("sticky-dummy"))),a=t.opts.height,f=t.opts.heightMax,c=t.opts.zIndex,t.position.refresh(),t.opts.height=t.o_win.innerHeight-(t.opts.toolbarInline?0:t.$tb.outerHeight()),t.opts.zIndex=2147483641,t.opts.heightMax=null,t.size.refresh(),t.opts.toolbarInline&&t.toolbar.showInline();for(var o=t.$box.parent();!o.is("body:first");)o.addClass("fr-fullscreen-wrapper"),o=o.parent();t.opts.toolbarContainer&&t.$box.prepend(t.$tb),t.events.trigger("charCounter.update"),t.events.trigger("codeView.update"),t.$win.trigger("scroll")}function s(){if(t.helpers.isIOS()&&t.core.hasFocus())return t.$el.blur(),setTimeout(n,250),!1;t.$box.toggleClass("fr-fullscreen"),e("body:first").toggleClass("fr-fullscreen"),t.$tb.prependTo(t.$tb.data("parent")),t.$tb.data("sticky-dummy")&&t.$tb.after(t.$tb.data("sticky-dummy")),t.opts.height=a,t.opts.heightMax=f,t.opts.zIndex=c,t.size.refresh(),e(t.o_win).scrollTop(l),t.opts.toolbarInline&&t.toolbar.showInline(),t.events.trigger("charCounter.update"),t.opts.toolbarSticky&&t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset).data("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset).data("top",t.opts.toolbarStickyOffset));for(var o=t.$box.parent();!o.is("body:first");)o.removeClass("fr-fullscreen-wrapper"),o=o.parent();t.opts.toolbarContainer&&e(t.opts.toolbarContainer).append(t.$tb),e(t.o_win).trigger("scroll"),t.events.trigger("codeView.update")}function n(){o()?s():r(),i(t.$tb.find('.fr-command[data-cmd="fullscreen"]'))}function i(e){var r=o();e.toggleClass("fr-active",r).attr("aria-pressed",r),e.find("> *:not(.fr-sr-only)").replaceWith(t.icon.create(r?"fullscreenCompress":"fullscreen"))}var l,a,f,c;return{_init:function(){return t.$wp?(t.events.$on(e(t.o_win),"resize",function(){o()&&(s(),r())}),t.events.on("toolbar.hide",function(){return o()&&t.helpers.isMobile()?!1:void 0}),t.events.on("position.refresh",function(){return t.helpers.isIOS()?!o():void 0}),t.events.on("destroy",function(){o()&&s()},!0),void 0):!1},toggle:n,refresh:i,isActive:o}},e.FE.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(e){this.fullscreen.refresh(e)},plugin:"fullscreen"}),e.FE.DefineIcon("fullscreen",{NAME:"expand"}),e.FE.DefineIcon("fullscreenCompress",{NAME:"compress"})})});
;/*!node_modules/froala-editor/js/plugins/help.min.js*/
define("node_modules/froala-editor/js/plugins/help.min",function(e,t,l){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof l&&l.exports?l.exports=function(l,o){return void 0===o&&(o="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(l)),t(o)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]}]}),e.FE.PLUGINS.help=function(t){var l,o="help";return{_init:function(){},show:function(){if(!l){var a="<h4>"+t.language.translate("Shortcuts")+"</h4>",n=function(){for(var e='<div class="fr-help-modal">',l=0;l<t.opts.helpSets.length;l++){var o=t.opts.helpSets[l],a="<table>";a+="<thead><tr><th>"+t.language.translate(o.title)+"</th></tr></thead>",a+="<tbody>";for(var n=0;n<o.commands.length;n++){var s=o.commands[n];a+="<tr>",a+="<td>"+t.language.translate(s.desc)+"</td>",a+="<td>"+s.val.replace("OSkey",t.helpers.isMac()?"&#8984;":"Ctrl+")+"</td>",a+="</tr>"}e+=a+="</tbody></table>"}return e+="</div>"}(),s=t.modals.create(o,a,n);l=s.$modal,s.$head,s.$body,t.events.$on(e(t.o_win),"resize",function(){t.modals.resize(o)})}t.modals.show(o),t.modals.resize(o)},hide:function(){t.modals.hide(o)}}},e.FroalaEditor.DefineIcon("help",{NAME:"question"}),e.FE.RegisterShortcut(e.FE.KEYCODE.SLASH,"help",null,"/"),e.FE.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1})})});
;/*!node_modules/froala-editor/js/plugins/image.min.js*/
define("node_modules/froala-editor/js/plugins/image.min",function(e,t,a){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof a&&a.exports?a.exports=function(a,i){return void 0===i&&(i="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(a)),t(i)}:t(window.jQuery)}(function(e){e.extend(e.FE.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),e.extend(e.FE.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif","webp"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5,imageAddNewLine:!1}),e.FE.PLUGINS.image=function(t){function a(){var e=t.popups.get("image.insert").find(".fr-image-by-url-layer input");e.val(""),rt&&e.val(rt.attr("src")),e.trigger("change")}function i(){var e=t.popups.get("image.edit");if(e||(e=c()),e){var a=at();it()&&(a=a.find(".fr-img-wrap")),t.popups.setContainer("image.edit",t.$sc),t.popups.refresh("image.edit");var i=a.offset().left+a.outerWidth()/2,r=a.offset().top+a.outerHeight();rt.hasClass("fr-uploading")?m():t.popups.show("image.edit",i,r,a.outerHeight())}}function r(){h()}function n(){for(var a,i,r="IMG"==t.el.tagName?[t.el]:t.el.querySelectorAll("img"),n=0;n<r.length;n++){var s=e(r[n]);!t.opts.htmlUntouched&&t.opts.useClasses?((t.opts.imageDefaultAlign||t.opts.imageDefaultDisplay)&&(0<(i=s).parents(".fr-img-caption").length&&(i=i.parents(".fr-img-caption:first")),i.hasClass("fr-dii")||i.hasClass("fr-dib")||(i.addClass("fr-fi"+Q(i)[0]),i.addClass("fr-di"+J(i)[0]),i.css("margin",""),i.css("float",""),i.css("display",""),i.css("z-index",""),i.css("position",""),i.css("overflow",""),i.css("vertical-align",""))),t.opts.imageTextNear||(0<s.parents(".fr-img-caption").length?s.parents(".fr-img-caption:first").removeClass("fr-dii").addClass("fr-dib"):s.removeClass("fr-dii").addClass("fr-dib"))):t.opts.htmlUntouched||t.opts.useClasses||(t.opts.imageDefaultAlign||t.opts.imageDefaultDisplay)&&(0<(a=s).parents(".fr-img-caption").length&&(a=a.parents(".fr-img-caption:first")),q(a,a.hasClass("fr-dib")?"block":a.hasClass("fr-dii")?"inline":null,a.hasClass("fr-fil")?"left":a.hasClass("fr-fir")?"right":Q(a)),a.removeClass("fr-dib fr-dii fr-fir fr-fil")),t.opts.iframe&&s.on("load",t.size.syncIframe)}}function s(a){void 0===a&&(a=!0);var i,r=Array.prototype.slice.call(t.el.querySelectorAll("img")),n=[];for(i=0;i<r.length;i++)if(n.push(r[i].getAttribute("src")),e(r[i]).toggleClass("fr-draggable",t.opts.imageMove),""===r[i].getAttribute("class")&&r[i].removeAttribute("class"),""===r[i].getAttribute("style")&&r[i].removeAttribute("style"),r[i].parentNode&&r[i].parentNode.parentNode&&t.node.hasClass(r[i].parentNode.parentNode,"fr-img-caption")){var s=r[i].parentNode.parentNode;t.browser.mozilla||s.setAttribute("contenteditable",!1),s.setAttribute("draggable",!1),s.classList.add("fr-draggable");var o=r[i].nextSibling;o&&!t.browser.mozilla&&o.setAttribute("contenteditable",!0)}if(lt)for(i=0;i<lt.length;i++)n.indexOf(lt[i].getAttribute("src"))<0&&t.events.trigger("image.removed",[e(lt[i])]);if(lt&&a){var l=[];for(i=0;i<lt.length;i++)l.push(lt[i].getAttribute("src"));for(i=0;i<r.length;i++)l.indexOf(r[i].getAttribute("src"))<0&&t.events.trigger("image.loaded",[e(r[i])])}lt=r}function o(){if(nt||function(){var a;if(t.shared.$image_resizer?(nt=t.shared.$image_resizer,ot=t.shared.$img_overlay,t.events.on("destroy",function(){nt.removeClass("fr-active").appendTo(e("body:first"))},!0)):(t.shared.$image_resizer=e('<div class="fr-image-resizer"></div>'),nt=t.shared.$image_resizer,t.events.$on(nt,"mousedown",function(e){e.stopPropagation()},!0),t.opts.imageResize&&(nt.append(l("nw")+l("ne")+l("sw")+l("se")),t.shared.$img_overlay=e('<div class="fr-image-overlay"></div>'),ot=t.shared.$img_overlay,a=nt.get(0).ownerDocument,e(a).find("body:first").append(ot))),t.events.on("shared.destroy",function(){nt.html("").removeData().remove(),nt=null,t.opts.imageResize&&(ot.remove(),ot=null)},!0),t.helpers.isMobile()||t.events.$on(e(t.o_win),"resize",function(){rt&&!rt.hasClass("fr-uploading")?j(!0):rt&&(o(),Z(),m(!1))}),t.opts.imageResize){a=nt.get(0).ownerDocument,t.events.$on(nt,t._mousedown,".fr-handler",p),t.events.$on(e(a),t._mousemove,g),t.events.$on(e(a.defaultView||a.parentWindow),t._mouseup,d),t.events.$on(ot,"mouseleave",d);var i=1,r=null,n=0;t.events.on("keydown",function(a){if(rt){var s=-1!=navigator.userAgent.indexOf("Mac OS X")?a.metaKey:a.ctrlKey,o=a.which;(o!==r||200<a.timeStamp-n)&&(i=1),(o==e.FE.KEYCODE.EQUALS||t.browser.mozilla&&o==e.FE.KEYCODE.FF_EQUALS)&&s&&!a.altKey?i=T.call(this,a,1,1,i):(o==e.FE.KEYCODE.HYPHEN||t.browser.mozilla&&o==e.FE.KEYCODE.FF_HYPHEN)&&s&&!a.altKey?i=T.call(this,a,2,-1,i):t.keys.ctrlKey(a)||o!=e.FE.KEYCODE.ENTER||(rt.before("<br>"),y(rt)),r=o,n=a.timeStamp}},!0),t.events.on("keyup",function(){i=1})}}(),!rt)return!1;var a=t.$wp||t.$sc;a.append(nt),nt.data("instance",t);var i=a.scrollTop()-("static"!=a.css("position")?a.offset().top:0),r=a.scrollLeft()-("static"!=a.css("position")?a.offset().left:0);r-=t.helpers.getPX(a.css("border-left-width")),i-=t.helpers.getPX(a.css("border-top-width")),t.$el.is("img")&&t.$sc.is("body")&&(r=i=0);var n=at();it()&&(n=n.find(".fr-img-wrap")),nt.css("top",(t.opts.iframe?n.offset().top:n.offset().top+i)-1).css("left",(t.opts.iframe?n.offset().left:n.offset().left+r)-1).css("width",n.get(0).getBoundingClientRect().width).css("height",n.get(0).getBoundingClientRect().height).addClass("fr-active")}function l(e){return'<div class="fr-handler fr-h'+e+'"></div>'}function f(e){it()?rt.parents(".fr-img-caption").css("width",e):rt.css("width",e)}function p(a){if(!t.core.sameInstance(nt))return!0;if(a.preventDefault(),a.stopPropagation(),t.$el.find("img.fr-error").left)return!1;t.undo.canDo()||t.undo.saveStep();var i=a.pageX||a.originalEvent.touches[0].pageX;if("mousedown"==a.type){var r=t.$oel.get(0).ownerDocument,n=r.defaultView||r.parentWindow,s=!1;try{s=n.location!=n.parent.location&&!(n.$&&n.$.FE)}catch(o){}s&&n.frameElement&&(i+=t.helpers.getPX(e(n.frameElement).offset().left)+n.frameElement.clientLeft)}(st=e(this)).data("start-x",i),st.data("start-width",rt.width()),st.data("start-height",rt.height());var l=rt.width();if(t.opts.imageResizeWithPercent){var p=rt.parentsUntil(t.$el,t.html.blockTagsQuery()).get(0)||t.el;l=(l/e(p).outerWidth()*100).toFixed(2)+"%"}f(l),ot.show(),t.popups.hideAll(),V()}function g(a){if(!t.core.sameInstance(nt))return!0;var i;if(st&&rt){if(a.preventDefault(),t.$el.find("img.fr-error").left)return!1;var r=a.pageX||(a.originalEvent.touches?a.originalEvent.touches[0].pageX:null);if(!r)return!1;var n=r-st.data("start-x"),s=st.data("start-width");if((st.hasClass("fr-hnw")||st.hasClass("fr-hsw"))&&(n=0-n),t.opts.imageResizeWithPercent){var l=rt.parentsUntil(t.$el,t.html.blockTagsQuery()).get(0)||t.el;s=((s+n)/e(l).outerWidth()*100).toFixed(2),t.opts.imageRoundPercent&&(s=Math.round(s)),f(s+"%"),(i=it()?(t.helpers.getPX(rt.parents(".fr-img-caption").css("width"))/e(l).outerWidth()*100).toFixed(2):(t.helpers.getPX(rt.css("width"))/e(l).outerWidth()*100).toFixed(2))===s||t.opts.imageRoundPercent||f(i+"%"),rt.css("height","").removeAttr("height")}else s+n>=t.opts.imageMinWidth&&(f(s+n),i=t.helpers.getPX(it()?rt.parents(".fr-img-caption").css("width"):rt.css("width"))),i!==s+n&&f(i),((rt.attr("style")||"").match(/(^height:)|(; *height:)/)||rt.attr("height"))&&(rt.css("height",st.data("start-height")*rt.width()/st.data("start-width")),rt.removeAttr("height"));o(),t.events.trigger("image.resize",[tt()])}}function d(e){if(!t.core.sameInstance(nt))return!0;if(st&&rt){if(e&&e.stopPropagation(),t.$el.find("img.fr-error").left)return!1;st=null,ot.hide(),o(),i(),t.undo.saveStep(),t.events.trigger("image.resizeEnd",[tt()])}}function u(e,a,i){t.edit.on(),rt&&rt.addClass("fr-error"),b(bt[e]?bt[e]:t.language.translate("Something went wrong. Please try again.")),!rt&&i&&L(i),t.events.trigger("image.error",[{code:e,message:bt[e]},a,i])}function c(e){if(e)return t.$wp&&t.events.$on(t.$wp,"scroll.image-edit",function(){rt&&t.popups.isVisible("image.edit")&&(t.events.disableBlur(),i())}),!0;var a="";if(0<t.opts.imageEditButtons.length){a+='<div class="fr-buttons">',a+=t.button.buildList(t.opts.imageEditButtons);var r={buttons:a+="</div>"};return t.popups.create("image.edit",r)}return!1}function m(e){var a=t.popups.get("image.insert");if(a||(a=I()),a.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),a.find(".fr-image-progress-bar-layer").addClass("fr-active"),a.find(".fr-buttons").hide(),rt){var i=at();t.popups.setContainer("image.insert",t.$sc);var r=i.offset().left+i.width()/2,n=i.offset().top+i.height();t.popups.show("image.insert",r,n,i.outerHeight())}void 0===e&&v(t.language.translate("Uploading"),0)}function h(e){var a=t.popups.get("image.insert");if(a&&(a.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),a.find(".fr-image-progress-bar-layer").removeClass("fr-active"),a.find(".fr-buttons").show(),e||t.$el.find("img.fr-error").length)){if(t.events.focus(),t.$el.find("img.fr-error").length&&(t.$el.find("img.fr-error").remove(),t.undo.saveStep(),t.undo.run(),t.undo.dropRedo()),!t.$wp&&rt){var i=rt;j(!0),t.selection.setAfter(i.get(0)),t.selection.restore()}t.popups.hide("image.insert")}}function v(e,a){var i=t.popups.get("image.insert");if(i){var r=i.find(".fr-image-progress-bar-layer");r.find("h3").text(e+(a?" "+a+"%":"")),r.removeClass("fr-error"),a?(r.find("div").removeClass("fr-indeterminate"),r.find("div > span").css("width",a+"%")):r.find("div").addClass("fr-indeterminate")}}function b(e){m();var a=t.popups.get("image.insert").find(".fr-image-progress-bar-layer");a.addClass("fr-error");var i=a.find("h3");i.text(e),t.events.disableBlur(),i.focus()}function y(e){X.call(e.get(0))}function w(){var a=e(this);t.popups.hide("image.insert"),a.removeClass("fr-uploading"),a.next().is("br")&&a.next().remove(),y(a),t.events.trigger("image.loaded",[a])}function E(e,a,i,r,n){t.edit.off(),v(t.language.translate("Loading image")),a&&(e=t.helpers.sanitizeURL(e));var o=new Image;o.onload=function(){var a,o;if(r){t.undo.canDo()||r.hasClass("fr-uploading")||t.undo.saveStep();var l=r.data("fr-old-src");r.data("fr-image-pasted")&&(l=null),t.$wp?((a=r.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted")).off("load"),l&&r.attr("src",l),r.replaceWith(a)):a=r;for(var f=a.get(0).attributes,p=0;p<f.length;p++){var g=f[p];0===g.nodeName.indexOf("data-")&&a.removeAttr(g.nodeName)}if(void 0!==i)for(o in i)i.hasOwnProperty(o)&&"link"!=o&&a.attr("data-"+o,i[o]);a.on("load",w),a.attr("src",e),t.edit.on(),s(!1),t.undo.saveStep(),t.events.disableBlur(),t.$el.blur(),t.events.trigger(l?"image.replaced":"image.inserted",[a,n])}else a=S(e,i,w),s(!1),t.undo.saveStep(),t.events.disableBlur(),t.$el.blur(),t.events.trigger("image.inserted",[a,n])},o.onerror=function(){u(dt)},m(t.language.translate("Loading image")),o.src=e}function C(a){v(t.language.translate("Loading image"));var i=this.status,r=this.response,n=this.responseXML,s=this.responseText;try{if(t.opts.imageUploadToS3)if(201==i){var o=function(a){try{var i=e(a).find("Location").text(),r=e(a).find("Key").text();return!1===t.events.trigger("image.uploadedToS3",[i,r,a],!0)?(t.edit.on(),!1):i}catch(n){return u(mt,a),!1}}(n);o&&E(o,!1,[],a,r||n)}else u(mt,r||n,a);else if(i>=200&&300>i){var l=function(e){try{if(!1===t.events.trigger("image.uploaded",[e],!0))return t.edit.on(),!1;var a=JSON.parse(e);return a.link?a:(u(ut,e),!1)}catch(i){return u(mt,e),!1}}(s);l&&E(l.link,!1,l,a,r||s)}else u(ct,r||s,a)}catch(f){u(mt,r||s,a)}}function A(){u(mt,this.response||this.responseText||this.responseXML)}function R(e){if(e.lengthComputable){var a=e.loaded/e.total*100|0;v(t.language.translate("Uploading"),a)}}function S(a,i,r){var n,s="";if(i&&void 0!==i)for(n in i)i.hasOwnProperty(n)&&"link"!=n&&(s+=" data-"+n+'="'+i[n]+'"');var o=t.opts.imageDefaultWidth;o&&"auto"!=o&&(o=t.opts.imageResizeWithPercent?"100%":o+"px");var l=e('<img src="'+a+'"'+s+(o?' style="width: '+o+';"':"")+">");q(l,t.opts.imageDefaultDisplay,t.opts.imageDefaultAlign),l.on("load",r),l.on("error",r),t.edit.on(),t.events.focus(!0),t.selection.restore(),t.undo.saveStep(),t.opts.imageSplitHTML?t.markers.split():t.markers.insert(),t.html.wrap();var f=t.$el.find(".fr-marker");return f.length?(f.parent().is("hr")&&f.parent().after(f),t.node.isLastSibling(f)&&f.parent().hasClass("fr-deletable")&&f.insertAfter(f.parent()),f.replaceWith(l)):t.$el.append(l),t.selection.clear(),l}function x(){t.edit.on(),h(!0)}function D(a,i){if(void 0!==a&&0<a.length){if(!1===t.events.trigger("image.beforeUpload",[a,i]))return!1;var r,n=a[0];if((null===t.opts.imageUploadURL||t.opts.imageUploadURL==pt)&&!t.opts.imageUploadToS3)return f=n,p=i||rt,(g=new FileReader).onload=function(){var e=g.result;if(g.result.indexOf("svg+xml")<0){for(var a=atob(g.result.split(",")[1]),i=[],r=0;r<a.length;r++)i.push(a.charCodeAt(r));e=window.URL.createObjectURL(new Blob([new Uint8Array(i)],{type:f.type})),t.image.insert(e,!1,null,p)}},m(),g.readAsDataURL(f),!1;if(n.name||(n.name=(new Date).getTime()+"."+(n.type||"image/jpeg").replace(/image\//g,"")),n.size>t.opts.imageMaxSize)return u(ht),!1;if(t.opts.imageAllowedTypes.indexOf(n.type.replace(/image\//g,""))<0)return u(vt),!1;if(t.drag_support.formdata&&(r=t.drag_support.formdata?new FormData:null),r){var s;if(!1!==t.opts.imageUploadToS3)for(s in r.append("key",t.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(n.name||"untitled")),r.append("success_action_status","201"),r.append("X-Requested-With","xhr"),r.append("Content-Type",n.type),t.opts.imageUploadToS3.params)t.opts.imageUploadToS3.params.hasOwnProperty(s)&&r.append(s,t.opts.imageUploadToS3.params[s]);for(s in t.opts.imageUploadParams)t.opts.imageUploadParams.hasOwnProperty(s)&&r.append(s,t.opts.imageUploadParams[s]);r.append(t.opts.imageUploadParam,n,n.name);var l=t.opts.imageUploadURL;t.opts.imageUploadToS3&&(l=t.opts.imageUploadToS3.uploadURL?t.opts.imageUploadToS3.uploadURL:"https://"+t.opts.imageUploadToS3.region+".amazonaws.com/"+t.opts.imageUploadToS3.bucket),function(a,i,r,n){function s(){var r=e(this);r.off("load"),r.addClass("fr-uploading"),r.next().is("br")&&r.next().remove(),t.placeholder.refresh(),y(r),o(),m(),t.edit.off(),a.onload=function(){C.call(a,r)},a.onerror=A,a.upload.onprogress=R,a.onabort=x,r.off("abortUpload").on("abortUpload",function(){4!=a.readyState&&(a.abort(),n?(n.attr("src",n.data("fr-old-src")),n.removeClass("fr-uploading")):r.remove(),j(!0))}),a.send(i)}var l=new FileReader;l.onload=function(){var e=l.result;if(l.result.indexOf("svg+xml")<0){for(var a=atob(l.result.split(",")[1]),i=[],r=0;r<a.length;r++)i.push(a.charCodeAt(r));e=window.URL.createObjectURL(new Blob([new Uint8Array(i)],{type:"image/jpeg"}))}n?(n.on("load",s),n.one("error",s),t.edit.on(),t.undo.saveStep(),n.data("fr-old-src",n.attr("src")),n.attr("src",e)):S(e,null,s)},l.readAsDataURL(r)}(t.core.getXHR(l,t.opts.imageUploadMethod),r,n,i||rt)}}var f,p,g}function U(e){return e.is("img")&&0<e.parents(".fr-img-caption").length?e.parents(".fr-img-caption"):void 0}function $(a){var i=a.originalEvent.dataTransfer;if(i&&i.files&&i.files.length){var r=i.files[0];if(r&&r.type&&-1!==r.type.indexOf("image")&&0<=t.opts.imageAllowedTypes.indexOf(r.type.replace(/image\//g,""))){if(!t.opts.imageUpload)return a.preventDefault(),a.stopPropagation(),!1;t.markers.remove(),t.markers.insertAtPoint(a.originalEvent),t.$el.find(".fr-marker").replaceWith(e.FE.MARKERS),0===t.$el.find(".fr-marker").length&&t.selection.setAtEnd(t.el),t.popups.hideAll();var n=t.popups.get("image.insert");n||(n=I()),t.popups.setContainer("image.insert",t.$sc);var s=a.originalEvent.pageX,o=a.originalEvent.pageY;return t.opts.iframe&&(o+=t.$iframe.offset().top,s+=t.$iframe.offset().left),t.popups.show("image.insert",s,o),m(),0<=t.opts.imageAllowedTypes.indexOf(r.type.replace(/image\//g,""))?(j(!0),D(i.files)):u(vt),a.preventDefault(),a.stopPropagation(),!1}}}function I(i){if(i)return t.popups.onRefresh("image.insert",a),t.popups.onHide("image.insert",r),!0;var n,s,o="";t.opts.imageUpload||-1===t.opts.imageInsertButtons.indexOf("imageUpload")||t.opts.imageInsertButtons.splice(t.opts.imageInsertButtons.indexOf("imageUpload"),1);var l=t.button.buildList(t.opts.imageInsertButtons);""!==l&&(o='<div class="fr-buttons">'+l+"</div>");var f=t.opts.imageInsertButtons.indexOf("imageUpload"),p=t.opts.imageInsertButtons.indexOf("imageByURL"),g="";f>=0&&(n=" fr-active",p>=0&&f>p&&(n=""),g='<div class="fr-image-upload-layer'+n+' fr-layer" id="fr-image-upload-layer-'+t.id+'"><strong>'+t.language.translate("Drop image")+"</strong><br>("+t.language.translate("or click")+')<div class="fr-form"><input type="file" accept="image/'+t.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-'+t.id+'" role="button"></div></div>');var d="";p>=0&&(n=" fr-active",f>=0&&p>f&&(n=""),d='<div class="fr-image-by-url-layer'+n+' fr-layer" id="fr-image-by-url-layer-'+t.id+'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-'+t.id+'" type="text" placeholder="http://" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageInsertByURL" tabIndex="2" role="button">'+t.language.translate("Insert")+"</button></div></div>");var u,c={buttons:o,upload_layer:g,by_url_layer:d,progress_bar:'<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>'};return 1<=t.opts.imageInsertButtons.length&&(s=t.popups.create("image.insert",c)),t.$wp&&t.events.$on(t.$wp,"scroll",function(){rt&&t.popups.isVisible("image.insert")&&Z()}),u=s,t.events.$on(u,"dragover dragenter",".fr-image-upload-layer",function(){return e(this).addClass("fr-drop"),!1},!0),t.events.$on(u,"dragleave dragend",".fr-image-upload-layer",function(){return e(this).removeClass("fr-drop"),!1},!0),t.events.$on(u,"drop",".fr-image-upload-layer",function(a){a.preventDefault(),a.stopPropagation(),e(this).removeClass("fr-drop");var i=a.originalEvent.dataTransfer;if(i&&i.files){var r=u.data("instance")||t;r.events.disableBlur(),r.image.upload(i.files),r.events.enableBlur()}},!0),t.helpers.isIOS()&&t.events.$on(u,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){e(this).trigger("click")},!0),t.events.$on(u,"change",'.fr-image-upload-layer input[type="file"]',function(){if(this.files){var a=u.data("instance")||t;a.events.disableBlur(),u.find("input:focus").blur(),a.events.enableBlur(),a.image.upload(this.files,rt)}e(this).val("")},!0),s}function F(){rt&&t.popups.get("image.alt").find("input").val(rt.attr("alt")||"").trigger("change")}function B(){var e=t.popups.get("image.alt");e||(e=N()),h(),t.popups.refresh("image.alt"),t.popups.setContainer("image.alt",t.$sc);var a=at();it()&&(a=a.find(".fr-img-wrap"));var i=a.offset().left+a.outerWidth()/2,r=a.offset().top+a.outerHeight();t.popups.show("image.alt",i,r,a.outerHeight())}function N(e){if(e)return t.popups.onRefresh("image.alt",F),!0;var a={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.imageAltButtons)+"</div>",alt_layer:'<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'+t.id+'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("Alternative Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetAlt" tabIndex="2" role="button">'+t.language.translate("Update")+"</button></div></div>"},i=t.popups.create("image.alt",a);return t.$wp&&t.events.$on(t.$wp,"scroll.image-alt",function(){rt&&t.popups.isVisible("image.alt")&&B()}),i}function k(){var e=t.popups.get("image.size");if(rt)if(it()){var a=rt.parent();a.get(0).style.width||(a=rt.parent().parent()),e.find('input[name="width"]').val(a.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(a.get(0).style.height).trigger("change")}else e.find('input[name="width"]').val(rt.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(rt.get(0).style.height).trigger("change")}function O(){var e=t.popups.get("image.size");e||(e=P()),h(),t.popups.refresh("image.size"),t.popups.setContainer("image.size",t.$sc);var a=at();it()&&(a=a.find(".fr-img-wrap"));var i=a.offset().left+a.outerWidth()/2,r=a.offset().top+a.outerHeight();t.popups.show("image.size",i,r,a.outerHeight())}function P(e){if(e)return t.popups.onRefresh("image.size",k),!0;var a={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.imageSizeButtons)+"</div>",size_layer:'<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'+t.id+'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-'+t.id+'" type="text" name="width" placeholder="'+t.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height'+t.id+'" type="text" name="height" placeholder="'+t.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetSize" tabIndex="2" role="button">'+t.language.translate("Update")+"</button></div></div>"},i=t.popups.create("image.size",a);return t.$wp&&t.events.$on(t.$wp,"scroll.image-size",function(){rt&&t.popups.isVisible("image.size")&&O()}),i}function T(e,t,a,i){return e.pageX=t,p.call(this,e),e.pageX=e.pageX+a*Math.floor(Math.pow(1.1,i)),g.call(this,e),d.call(this,e),++i}function L(a){(a=a||at())&&!1!==t.events.trigger("image.beforeRemove",[a])&&(t.popups.hideAll(),et(),j(!0),t.undo.canDo()||t.undo.saveStep(),a.get(0)==t.el?a.removeAttr("src"):(a.get(0).parentNode&&"A"==a.get(0).parentNode.tagName?(t.selection.setBefore(a.get(0).parentNode)||t.selection.setAfter(a.get(0).parentNode)||a.parent().after(e.FE.MARKERS),e(a.get(0).parentNode).remove()):(t.selection.setBefore(a.get(0))||t.selection.setAfter(a.get(0))||a.after(e.FE.MARKERS),a.remove()),t.html.fillEmptyBlocks(),t.selection.restore()),t.undo.saveStep())}function M(a){var i=a.which;if(rt&&(i==e.FE.KEYCODE.BACKSPACE||i==e.FE.KEYCODE.DELETE))return a.preventDefault(),a.stopPropagation(),L(),!1;if(rt&&i==e.FE.KEYCODE.ESC){var r=rt;return j(!0),t.selection.setAfter(r.get(0)),t.selection.restore(),a.preventDefault(),!1}if(rt&&(i==e.FE.KEYCODE.ARROW_LEFT||i==e.FE.KEYCODE.ARROW_RIGHT)){var n=rt.get(0);return j(!0),i==e.FE.KEYCODE.ARROW_LEFT?t.selection.setBefore(n):t.selection.setAfter(n),t.selection.restore(),a.preventDefault(),!1}return rt&&i===e.FE.KEYCODE.TAB?(a.preventDefault(),a.stopPropagation(),j(!0),!1):rt&&i!=e.FE.KEYCODE.F10&&!t.keys.isBrowserAction(a)?(a.preventDefault(),a.stopPropagation(),!1):void 0}function z(e){if(e&&"IMG"==e.tagName){if(t.node.hasClass(e,"fr-uploading")||t.node.hasClass(e,"fr-error")?e.parentNode.removeChild(e):t.node.hasClass(e,"fr-draggable")&&e.classList.remove("fr-draggable"),e.parentNode&&e.parentNode.parentNode&&t.node.hasClass(e.parentNode.parentNode,"fr-img-caption")){var a=e.parentNode.parentNode;a.removeAttribute("contenteditable"),a.removeAttribute("draggable"),a.classList.remove("fr-draggable");var i=e.nextSibling;i&&i.removeAttribute("contenteditable")}}else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var r=e.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),n=0;n<r.length;n++)z(r[n])}function _(a){if(!1===t.events.trigger("image.beforePasteUpload",[a]))return!1;rt=e(a),o(),i(),Z(),m(),rt.one("load",function(){o(),e(t.popups.get("image.insert").get(0)).find("div.fr-active.fr-error").length<1&&m()});for(var r=e(a).attr("src").split(","),n=atob(r[1]),s=[],l=0;l<n.length;l++)s.push(n.charCodeAt(l));D([new Blob([new Uint8Array(s)],{type:r[0].replace(/data\:/g,"").replace(/;base64/g,"")})],rt)}function W(){t.opts.imagePaste?t.$el.find("img[data-fr-image-pasted]").each(function(a,i){if(t.opts.imagePasteProcess){var r=t.opts.imageDefaultWidth;r&&"auto"!=r&&(r+=t.opts.imageResizeWithPercent?"%":"px"),e(i).css("width",r).removeClass("fr-dii fr-dib fr-fir fr-fil"),q(e(i),t.opts.imageDefaultDisplay,t.opts.imageDefaultAlign)}if(0===i.src.indexOf("data:"))_(i);else if(0===i.src.indexOf("blob:")||0===i.src.indexOf("http")&&t.opts.imageUploadRemoteUrls&&t.opts.imageCORSProxy){var n=new Image;n.crossOrigin="Anonymous",n.onload=function(){var e,a=t.o_doc.createElement("CANVAS"),r=a.getContext("2d");a.height=this.naturalHeight,a.width=this.naturalWidth,r.drawImage(this,0,0),setTimeout(function(){_(i)},0),e=2e3<this.naturalWidth||1500<this.naturalHeight?"jpeg":"png",i.src=a.toDataURL("image/"+e)},n.src=(0===i.src.indexOf("blob:")?"":t.opts.imageCORSProxy+"/")+i.src}else 0!==i.src.indexOf("http")||0===i.src.indexOf("https://mail.google.com/mail")?(t.selection.save(),e(i).remove(),t.selection.restore()):e(i).removeAttr("data-fr-image-pasted")}):t.$el.find("img[data-fr-image-pasted]").remove()}function K(e){var a=e.target.result,i=t.opts.imageDefaultWidth;i&&"auto"!=i&&(i+=t.opts.imageResizeWithPercent?"%":"px"),t.undo.saveStep(),t.html.insert('<img data-fr-image-pasted="true" src="'+a+'"'+(i?' style="width: '+i+';"':"")+">");var r=t.$el.find('img[data-fr-image-pasted="true"]');r&&q(r,t.opts.imageDefaultDisplay,t.opts.imageDefaultAlign),t.events.trigger("paste.after")}function H(e){if(e&&e.clipboardData&&e.clipboardData.items){var t=null,a=e.clipboardData;if(a.types&&-1!=[].indexOf.call(a.types,"text/rtf")||a.getData("text/rtf"))t=a.items[0].getAsFile();else for(var i=0;i<a.items.length&&!(t=a.items[i].getAsFile());i++);if(t)return r=t,(n=new FileReader).onload=K,n.readAsDataURL(r),!1}var r,n}function Y(e){return e=e.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function X(a){if("false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(a&&"touchend"==a.type&&ft)return!0;if(a&&t.edit.isDisabled())return a.stopPropagation(),a.preventDefault(),!1;for(var r=0;r<e.FE.INSTANCES.length;r++)e.FE.INSTANCES[r]!=t&&e.FE.INSTANCES[r].events.trigger("image.hideResizer");t.toolbar.disable(),a&&(a.stopPropagation(),a.preventDefault()),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur()),t.opts.iframe&&t.size.syncIframe(),rt=e(this),et(),o(),i(),t.browser.msie?(t.popups.areVisible()&&t.events.disableBlur(),t.win.getSelection&&(t.win.getSelection().removeAllRanges(),t.win.getSelection().addRange(t.doc.createRange()))):t.selection.clear(),t.helpers.isIOS()&&(t.events.disableBlur(),t.$el.blur()),t.button.bulkRefresh(),t.events.trigger("video.hideResizer")}function j(e){rt&&(yt||!0===e)&&(t.toolbar.enable(),nt.removeClass("fr-active"),t.popups.hide("image.edit"),rt=null,V(),st=null,ot&&ot.hide())}function G(){yt=!0}function V(){yt=!1}function q(e,a,i){!t.opts.htmlUntouched&&t.opts.useClasses?(e.removeClass("fr-fil fr-fir fr-dib fr-dii"),i&&e.addClass("fr-fi"+i[0]),a&&e.addClass("fr-di"+a[0])):"inline"==a?(e.css({display:"inline-block",verticalAlign:"bottom",margin:t.opts.imageDefaultMargin}),e.css("center"==i?{"float":"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - "+2*t.opts.imageDefaultMargin+"px)",textAlign:"center"}:"left"==i?{"float":"left",marginLeft:0,maxWidth:"calc(100% - "+t.opts.imageDefaultMargin+"px)",textAlign:"left"}:{"float":"right",marginRight:0,maxWidth:"calc(100% - "+t.opts.imageDefaultMargin+"px)",textAlign:"right"})):"block"==a&&(e.css({display:"block","float":"none",verticalAlign:"top",margin:t.opts.imageDefaultMargin+"px auto",textAlign:"center"}),"left"==i?e.css({marginLeft:0,textAlign:"left"}):"right"==i&&e.css({marginRight:0,textAlign:"right"}))}function Q(e){if(void 0===e&&(e=at()),e){if(e.hasClass("fr-fil"))return"left";if(e.hasClass("fr-fir"))return"right";if(e.hasClass("fr-dib")||e.hasClass("fr-dii"))return"center";var t=e.css("float");if(e.css("float","none"),"block"==e.css("display")){if(e.css("float",""),e.css("float")!=t&&e.css("float",t),0===parseInt(e.css("margin-left"),10))return"left";if(0===parseInt(e.css("margin-right"),10))return"right"}else{if(e.css("float",""),e.css("float")!=t&&e.css("float",t),"left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function J(e){void 0===e&&(e=at());var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function Z(){var e=t.popups.get("image.insert");e||(e=I()),t.popups.isVisible("image.insert")||(h(),t.popups.refresh("image.insert"),t.popups.setContainer("image.insert",t.$sc));var a=at();it()&&(a=a.find(".fr-img-wrap"));var i=a.offset().left+a.outerWidth()/2,r=a.offset().top+a.outerHeight();t.popups.show("image.insert",i,r,a.outerHeight(!0))}function et(){if(rt){t.events.disableBlur(),t.selection.clear();var e=t.doc.createRange();e.selectNode(rt.get(0)),t.browser.msie&&e.collapse(!0),t.selection.get().addRange(e),t.events.enableBlur()}}function tt(){return rt}function at(){return it()?rt.parents(".fr-img-caption:first"):rt}function it(){return!!rt&&0<rt.parents(".fr-img-caption").length}var rt,nt,st,ot,lt,ft,pt="https://i.froala.com/upload",gt=!1,dt=1,ut=2,ct=3,mt=4,ht=5,vt=6,bt={};bt[dt]="Image cannot be loaded from the passed link.",bt[ut]="No link in upload response.",bt[ct]="Error during file upload.",bt[mt]="Parsing response failed.",bt[ht]="File is too large.",bt[vt]="Image file type is invalid.",bt[7]="Files can be uploaded only to same domain in IE 8 and IE 9.";var yt=!(bt[8]="Image file is corrupted.");return{_init:function(){var a;t.events.$on(t.$el,t._mousedown,"IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',function(a){return"false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:(t.helpers.isMobile()||t.selection.clear(),gt=!0,t.popups.areVisible()&&t.events.disableBlur(),t.browser.msie&&(t.events.disableBlur(),t.$el.attr("contenteditable",!1)),t.draggable||"touchstart"==a.type||a.preventDefault(),a.stopPropagation(),void 0)}),t.events.$on(t.$el,t._mousedown,".fr-img-caption .fr-inner",function(e){t.core.hasFocus()||t.events.focus(),e.stopPropagation()}),t.events.$on(t.$el,"paste",".fr-img-caption .fr-inner",function(e){t.toolbar.hide(),e.stopPropagation()}),t.events.$on(t.$el,t._mouseup,"IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',function(a){return"false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:void(gt&&(gt=!1,a.stopPropagation(),t.browser.msie&&(t.$el.attr("contenteditable",!0),t.events.enableBlur())))}),t.events.on("keyup",function(a){if(a.shiftKey&&""===t.selection.text().replace(/\n/g,"")&&t.keys.isArrow(a.which)){var i=t.selection.element(),r=t.selection.endElement();
i&&"IMG"==i.tagName?y(e(i)):r&&"IMG"==r.tagName&&y(e(r))}},!0),t.events.on("drop",$),t.events.on("element.beforeDrop",U),t.events.on("mousedown window.mousedown",G),t.events.on("window.touchmove",V),t.events.on("mouseup window.mouseup",function(){return rt?(j(),!1):void V()}),t.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&j()}),t.events.on("image.resizeEnd",function(){t.opts.iframe&&t.size.syncIframe()}),t.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",function(){j(!(gt=!1))}),t.events.on("modals.hide",function(){rt&&(et(),t.selection.clear())}),t.events.on("image.resizeEnd",function(){t.win.getSelection&&y(rt)}),t.opts.imageAddNewLine&&t.events.on("image.inserted",function(a){var i=a.get(0);for(i.nextSibling&&"BR"===i.nextSibling.tagName&&(i=i.nextSibling);i&&!t.node.isElement(i);)i=t.node.isLastSibling(i)?i.parentNode:null;t.node.isElement(i)&&(t.opts.enter===e.FE.ENTER_BR?a.after("<br>"):e(t.node.blockParent(a.get(0))).after("<"+t.html.defaultTag()+"><br></"+t.html.defaultTag()+">"))}),"IMG"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.$on(t.$el,t.helpers.isMobile()&&!t.helpers.isWindowsPhone()?"touchend":"click","IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',X),t.helpers.isMobile()&&(t.events.$on(t.$el,"touchstart","IMG"==t.el.tagName?null:'img:not([contenteditable="false"])',function(){ft=!1}),t.events.$on(t.$el,"touchmove",function(){ft=!0})),t.$wp?(t.events.on("window.keydown keydown",M,!0),t.events.on("keyup",function(t){return rt&&t.which==e.FE.KEYCODE.ENTER?!1:void 0},!0),t.events.$on(t.$el,"keydown",function(){var a=t.selection.element();(a.nodeType===Node.TEXT_NODE||"BR"==a.tagName&&t.node.isLastSibling(a))&&(a=a.parentNode),t.node.hasClass(a,"fr-inner")||(t.node.hasClass(a,"fr-img-caption")||(a=e(a).parents(".fr-img-caption").get(0)),t.node.hasClass(a,"fr-img-caption")&&(e(a).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS),t.selection.restore()))})):t.events.$on(t.$win,"keydown",M),t.events.on("toolbar.esc",function(){if(rt){if(t.$wp)t.events.disableBlur(),t.events.focus();else{var e=rt;j(!0),t.selection.setAfter(e.get(0)),t.selection.restore()}return!1}},!0),t.events.on("toolbar.focusEditor",function(){return rt?!1:void 0},!0),t.events.on("window.cut window.copy",function(a){if(rt&&t.popups.isVisible("image.edit")&&!t.popups.get("image.edit").find(":focus").length){var i=at();it()?(i.before(e.FE.START_MARKER),i.after(e.FE.END_MARKER),t.selection.restore(),t.paste.saveCopiedText(i.get(0).outerHTML,i.text())):(et(),t.paste.saveCopiedText(rt.get(0).outerHTML,rt.attr("alt"))),"copy"==a.type?setTimeout(function(){y(rt)}):(j(!0),t.undo.saveStep(),setTimeout(function(){t.undo.saveStep()},0))}},!0),t.browser.msie&&t.events.on("keydown",function(a){if(!t.selection.isCollapsed()||!rt)return!0;var i=a.which;i==e.FE.KEYCODE.C&&t.keys.ctrlKey(a)?t.events.trigger("window.copy"):i==e.FE.KEYCODE.X&&t.keys.ctrlKey(a)&&t.events.trigger("window.cut")}),t.events.$on(e(t.o_win),"keydown",function(t){var a=t.which;return rt&&a==e.FE.KEYCODE.BACKSPACE?(t.preventDefault(),!1):void 0}),t.events.$on(t.$win,"keydown",function(t){var a=t.which;rt&&rt.hasClass("fr-uploading")&&a==e.FE.KEYCODE.ESC&&rt.trigger("abortUpload")}),t.events.on("destroy",function(){rt&&rt.hasClass("fr-uploading")&&rt.trigger("abortUpload")}),t.events.on("paste.before",H),t.events.on("paste.beforeCleanup",Y),t.events.on("paste.after",W),t.events.on("html.set",n),t.events.on("html.inserted",n),n(),t.events.on("destroy",function(){lt=[]}),t.events.on("html.processGet",z),t.opts.imageOutputSize&&t.events.on("html.beforeGet",function(){a=t.el.querySelectorAll("img");for(var i=0;i<a.length;i++){var r=a[i].style.width||e(a[i]).width(),n=a[i].style.height||e(a[i]).height();r&&a[i].setAttribute("width",(""+r).replace(/px/,"")),n&&a[i].setAttribute("height",(""+n).replace(/px/,""))}}),t.opts.iframe&&t.events.on("image.loaded",t.size.syncIframe),t.$wp&&(s(),t.events.on("contentChanged",s)),t.events.$on(e(t.o_win),"orientationchange.image",function(){setTimeout(function(){rt&&y(rt)},100)}),c(!0),I(!0),P(!0),N(!0),t.events.on("node.remove",function(e){return"IMG"==e.get(0).tagName?(L(e),!1):void 0})},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertImage"]'),a=t.popups.get("image.insert");if(a||(a=I()),h(),!a.hasClass("fr-active"))if(t.popups.refresh("image.insert"),t.popups.setContainer("image.insert",t.$tb),e.is(":visible")){var i=e.offset().left+e.outerWidth()/2,r=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("image.insert",i,r,e.outerHeight())}else t.position.forSelection(a),t.popups.show("image.insert")},showLayer:function(e){var a,i,r=t.popups.get("image.insert");if(rt||t.opts.toolbarInline){if(rt){var n=at();it()&&(n=n.find(".fr-img-wrap")),i=n.offset().top+n.outerHeight(),a=n.offset().left+n.outerWidth()/2}}else{var s=t.$tb.find('.fr-command[data-cmd="insertImage"]');a=s.offset().left+s.outerWidth()/2,i=s.offset().top+(t.opts.toolbarBottom?10:s.outerHeight()-10)}!rt&&t.opts.toolbarInline&&(i=r.offset().top-t.helpers.getPX(r.css("margin-top")),r.hasClass("fr-above")&&(i+=r.outerHeight())),r.find(".fr-layer").removeClass("fr-active"),r.find(".fr-"+e+"-layer").addClass("fr-active"),t.popups.show("image.insert",a,i,rt?rt.outerHeight():0),t.accessibility.focusPopup(r)},refreshUploadButton:function(e){t.popups.get("image.insert").find(".fr-image-upload-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshByURLButton:function(e){t.popups.get("image.insert").find(".fr-image-by-url-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},upload:D,insertByURL:function(){var e=t.popups.get("image.insert").find(".fr-image-by-url-layer input");if(0<e.val().length){m(),v(t.language.translate("Loading image"));var a=e.val().trim();if(t.opts.imageUploadRemoteUrls&&t.opts.imageCORSProxy&&t.opts.imageUpload){var i=new XMLHttpRequest;i.onload=function(){200==this.status?D([new Blob([this.response],{type:this.response.type||"image/png"})],rt):u(dt)},i.onerror=function(){E(a,!0,[],rt)},i.open("GET",t.opts.imageCORSProxy+"/"+a,!0),i.responseType="blob",i.send()}else E(a,!0,[],rt);e.val(""),e.blur()}},align:function(e){var a=at();a.removeClass("fr-fir fr-fil"),!t.opts.htmlUntouched&&t.opts.useClasses?"left"==e?a.addClass("fr-fil"):"right"==e&&a.addClass("fr-fir"):q(a,J(),e),et(),o(),i(),t.selection.clear()},refreshAlign:function(e){rt&&e.find("> *:first").replaceWith(t.icon.create("image-align-"+Q()))},refreshAlignOnShow:function(e,t){rt&&t.find('.fr-command[data-param1="'+Q()+'"]').addClass("fr-active").attr("aria-selected",!0)},display:function(e){var a=at();a.removeClass("fr-dii fr-dib"),!t.opts.htmlUntouched&&t.opts.useClasses?"inline"==e?a.addClass("fr-dii"):"block"==e&&a.addClass("fr-dib"):q(a,e,Q()),et(),o(),i(),t.selection.clear()},refreshDisplayOnShow:function(e,t){rt&&t.find('.fr-command[data-param1="'+J()+'"]').addClass("fr-active").attr("aria-selected",!0)},replace:Z,back:function(){rt?(t.events.disableBlur(),e(".fr-popup input:focus").blur(),y(rt)):(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),t.popups.hide("image.insert"),t.toolbar.showInline())},get:tt,getEl:at,insert:E,showProgressBar:m,remove:L,hideProgressBar:h,applyStyle:function(e,a,i){if(void 0===a&&(a=t.opts.imageStyles),void 0===i&&(i=t.opts.imageMultipleStyles),!rt)return!1;var r=at();if(!i){var n=Object.keys(a);n.splice(n.indexOf(e),1),r.removeClass(n.join(" "))}"object"==typeof a[e]?(r.removeAttr("style"),r.css(a[e].style)):r.toggleClass(e),y(rt)},showAltPopup:B,showSizePopup:O,setAlt:function(e){if(rt){var a=t.popups.get("image.alt");rt.attr("alt",e||a.find("input").val()||""),a.find("input:focus").blur(),y(rt)}},setSize:function(e,a){if(rt){var i=t.popups.get("image.size");e=e||i.find('input[name="width"]').val()||"",a=a||i.find('input[name="height"]').val()||"";var r=/^[\d]+((px)|%)*$/g;rt.removeAttr("width").removeAttr("height"),e.match(r)?rt.css("width",e):rt.css("width",""),a.match(r)?rt.css("height",a):rt.css("height",""),it()&&(rt.parents(".fr-img-caption").removeAttr("width").removeAttr("height"),e.match(r)?rt.parents(".fr-img-caption").css("width",e):rt.parents(".fr-img-caption").css("width",""),a.match(r)?rt.parents(".fr-img-caption").css("height",a):rt.parents(".fr-img-caption").css("height","")),i&&i.find("input:focus").blur(),y(rt)}},toggleCaption:function(){var a;if(rt&&!it()){var i,r;(a=rt).parent().is("a")&&(a=rt.parent()),a.attr("style")&&(r=-1<(i=a.attr("style").split(":")).indexOf("width")?i[i.indexOf("width")+1].replace(";",""):"");var n=t.opts.imageResizeWithPercent?(-1<r.indexOf("px")?null:r)||"100%":rt.width()+"px";a.wrap("<span "+(t.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+rt.attr("class")+'" style="'+(t.opts.useClasses?"":a.attr("style"))+'" draggable="false"></span>'),a.wrap('<span class="fr-img-wrap"></span>'),rt.after('<span class="fr-inner"'+(t.browser.mozilla?"":' contenteditable="true"')+">"+e.FE.START_MARKER+t.language.translate("Image Caption")+e.FE.END_MARKER+"</span>"),rt.removeAttr("class").removeAttr("style").removeAttr("width"),rt.parents(".fr-img-caption").css("width",n),j(!0),t.selection.restore()}else a=at(),rt.insertAfter(a),rt.attr("class",a.attr("class").replace("fr-img-caption","")).attr("style",a.attr("style")),a.remove(),y(rt)},hasCaption:it,exitEdit:j,edit:y}},e.FE.DefineIcon("insertImage",{NAME:"image"}),e.FE.RegisterShortcut(e.FE.KEYCODE.P,"insertImage",null,"P"),e.FE.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),e.FE.DefineIcon("imageUpload",{NAME:"upload"}),e.FE.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(e){this.image.refreshUploadButton(e)}}),e.FE.DefineIcon("imageByURL",{NAME:"link"}),e.FE.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(e){this.image.refreshByURLButton(e)}}),e.FE.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(e){e.text(this.image.get()?this.language.translate("Replace"):this.language.translate("Insert"))}}),e.FE.DefineIcon("imageDisplay",{NAME:"star"}),e.FE.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.image.display(t)},refresh:function(e){this.opts.imageTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.image.refreshDisplayOnShow(e,t)}}),e.FE.DefineIcon("image-align",{NAME:"align-left"}),e.FE.DefineIcon("image-align-left",{NAME:"align-left"}),e.FE.DefineIcon("image-align-right",{NAME:"align-right"}),e.FE.DefineIcon("image-align-center",{NAME:"align-justify"}),e.FE.DefineIcon("imageAlign",{NAME:"align-justify"}),e.FE.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',a=e.FE.COMMANDS.imageAlign.options;for(var i in a)a.hasOwnProperty(i)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'+i+'" title="'+this.language.translate(a[i])+'">'+this.icon.create("image-align-"+i)+'<span class="fr-sr-only">'+this.language.translate(a[i])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.image.align(t)},refresh:function(e){this.image.refreshAlign(e)},refreshOnShow:function(e,t){this.image.refreshAlignOnShow(e,t)}}),e.FE.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt"}),e.FE.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),e.FE.DefineIcon("imageRemove",{NAME:"trash"}),e.FE.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),e.FE.DefineIcon("imageBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(e){this.image.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.FE.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),e.FE.DefineIcon("imageStyle",{NAME:"magic"}),e.FE.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.imageStyles;for(var a in t)if(t.hasOwnProperty(a)){var i=t[a];"object"==typeof i&&(i=i.title),e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'+a+'">'+this.language.translate(i)+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.image.applyStyle(t)},refreshOnShow:function(t,a){var i=this.image.getEl();i&&a.find(".fr-command").each(function(){var t=e(this).data("param1"),a=i.hasClass(t);e(this).toggleClass("fr-active",a).attr("aria-selected",a)})}}),e.FE.DefineIcon("imageAlt",{NAME:"info"}),e.FE.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}}),e.FE.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),e.FE.DefineIcon("imageSize",{NAME:"arrows-alt"}),e.FE.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),e.FE.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),e.FE.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt"}),e.FE.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(e){this.image.get()&&e.toggleClass("fr-active",this.image.hasCaption())}})})});
;/*!node_modules/froala-editor/js/plugins/image_manager.min.js*/
define("node_modules/froala-editor/js/plugins/image_manager.min",function(e,a,t){!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof t&&t.exports?t.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),a(r)}:a(window.jQuery)}(function(e){if(e.extend(e.FE.DEFAULTS,{imageManagerLoadURL:"https://i.froala.com/load-files",imageManagerLoadMethod:"get",imageManagerLoadParams:{},imageManagerPreloader:null,imageManagerDeleteURL:"",imageManagerDeleteMethod:"post",imageManagerDeleteParams:{},imageManagerPageSize:12,imageManagerScrollOffset:20,imageManagerToggleTags:!0}),e.FE.PLUGINS.imageManager=function(a){function t(){var a=e(window).outerWidth();return 768>a?2:1200>a?3:4}function r(){L.empty();for(var e=0;E>e;e++)L.append('<div class="fr-list-column"></div>')}function i(){if(P<D.length&&(L.outerHeight()<=b.outerHeight()+a.opts.imageManagerScrollOffset||b.scrollTop()+a.opts.imageManagerScrollOffset>L.outerHeight()-b.outerHeight())){I++;for(var e=a.opts.imageManagerPageSize*(I-1);e<Math.min(D.length,a.opts.imageManagerPageSize*I);e++)n(D[e])}}function n(t){var r=new Image,n=e('<div class="fr-image-container fr-empty fr-image-'+x++ +'" data-loading="'+a.language.translate("Loading")+'.." data-deleting="'+a.language.translate("Deleting")+'..">');l(!1),r.onload=function(){n.height(Math.floor(n.width()/r.width*r.height));var o=e("<img/>");if(t.thumb)o.attr("src",t.thumb);else{if(u(j,t),!t.url)return u(F,t),!1;o.attr("src",t.url)}if(t.url&&o.attr("data-url",t.url),t.tag)if(w.find(".fr-modal-more.fr-not-available").removeClass("fr-not-available"),w.find(".fr-modal-tags").show(),0<=t.tag.indexOf(",")){for(var d=t.tag.split(","),m=0;m<d.length;m++)d[m]=d[m].trim(),0===y.find('a[title="'+d[m]+'"]').length&&y.append('<a role="button" title="'+d[m]+'">'+d[m]+"</a>");o.attr("data-tag",d.join())}else 0===y.find('a[title="'+t.tag.trim()+'"]').length&&y.append('<a role="button" title="'+t.tag.trim()+'">'+t.tag.trim()+"</a>"),o.attr("data-tag",t.tag.trim());for(var f in t.name&&o.attr("alt",t.name),t)t.hasOwnProperty(f)&&"thumb"!=f&&"url"!=f&&"tag"!=f&&o.attr("data-"+f,t[f]);n.append(o).append(e(a.icon.create("imageManagerDelete")).addClass("fr-delete-img").attr("title",a.language.translate("Delete"))).append(e(a.icon.create("imageManagerInsert")).addClass("fr-insert-img").attr("title",a.language.translate("Insert"))),y.find(".fr-selected-tag").each(function(e,a){v(o,a.text)||n.hide()}),o.on("load",function(){n.removeClass("fr-empty"),n.height("auto"),P++,g(s(parseInt(o.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1)),l(!1),P%a.opts.imageManagerPageSize==0&&i()}),a.events.trigger("imageManager.imageLoaded",[o])},r.onerror=function(){P++,n.remove(),g(s(parseInt(n.attr("class").match(/fr-image-(\d+)/)[1],10)+1)),u(q,t),P%a.opts.imageManagerPageSize==0&&i()},r.src=t.thumb||t.url,o().append(n)}function o(){var a,t;return L.find(".fr-list-column").each(function(r,i){var n=e(i);0===r?(t=n.outerHeight(),a=n):n.outerHeight()<t&&(t=n.outerHeight(),a=n)}),a}function s(a){void 0===a&&(a=0);for(var t=[],r=x-1;r>=a;r--){var i=L.find(".fr-image-"+r);i.length&&(t.push(i),e('<div id="fr-image-hidden-container">').append(i),L.find(".fr-image-"+r).remove())}return t}function g(e){for(var a=e.length-1;a>=0;a--)o().append(e[a])}function l(e){if(void 0===e&&(e=!0),!M.is(":visible"))return!0;var n=t();if(n!=E){E=n;var o=s();r(),g(o)}a.modals.resize(T),e&&i()}function d(e){var a={},t=e.data();for(var r in t)t.hasOwnProperty(r)&&"url"!=r&&"tag"!=r&&(a[r]=t[r]);return a}function m(t){var r=e(t.currentTarget).siblings("img"),i=M.data("instance")||a,n=M.data("current-image");if(a.modals.hide(T),i.image.showProgressBar(),n)n.data("fr-old-src",n.attr("src")),n.trigger("click");else{i.events.focus(!0),i.selection.restore();var o=i.position.getBoundingRect(),s=o.left+o.width/2+e(a.doc).scrollLeft(),g=o.top+o.height+e(a.doc).scrollTop();i.popups.setContainer("image.insert",a.$sc),i.popups.show("image.insert",s,g)}i.image.insert(r.data("url"),!1,d(r),n)}function f(t){var r=e(t.currentTarget).siblings("img"),i=a.language.translate("Are you sure? Image will be deleted.");confirm(i)&&(a.opts.imageManagerDeleteURL?!1!==a.events.trigger("imageManager.beforeDeleteImage",[r])&&(r.parent().addClass("fr-image-deleting"),e.ajax({method:a.opts.imageManagerDeleteMethod,url:a.opts.imageManagerDeleteURL,data:e.extend(e.extend({src:r.attr("src")},d(r)),a.opts.imageManagerDeleteParams),crossDomain:a.opts.requestWithCORS,xhrFields:{withCredentials:a.opts.requestWithCredentials},headers:a.opts.requestHeaders}).done(function(t){a.events.trigger("imageManager.imageDeleted",[t]);var i=s(parseInt(r.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1);r.parent().remove(),g(i),M.find("#fr-modal-tags > a").each(function(){0===M.find('#fr-image-list [data-tag*="'+e(this).text()+'"]').length&&e(this).removeClass("fr-selected-tag").hide()}),h(),l(!0)}).fail(function(e){u(H,e.response||e.responseText)})):u(_))}function u(t,r){t>=10&&20>t?C.hide():t>=20&&30>t&&e(".fr-image-deleting").removeClass("fr-image-deleting"),a.events.trigger("imageManager.error",[{code:t,message:k[t]},r])}function c(){var e=w.find(".fr-modal-head-line").outerHeight(),a=y.outerHeight();w.toggleClass("fr-show-tags"),w.hasClass("fr-show-tags")?(w.css("height",e+a),y.find("a").css("opacity",1)):(w.css("height",e),y.find("a").css("opacity",0))}function h(){var a=y.find(".fr-selected-tag");0<a.length?(L.find("img").parent().show(),a.each(function(a,t){L.find("img").each(function(a,r){var i=e(r);v(i,t.text)||i.parent().hide()})})):L.find("img").parent().show(),g(s()),i()}function p(t){t.preventDefault();var r=e(t.currentTarget);r.toggleClass("fr-selected-tag"),a.opts.imageManagerToggleTags&&r.siblings("a").removeClass("fr-selected-tag"),h()}function v(e,a){for(var t=(e.attr("data-tag")||"").split(","),r=0;r<t.length;r++)if(t[r]==a)return!0;return!1}var M,w,b,C,L,y,D,I,P,x,E,T="image_manager",q=10,S=11,R=12,U=13,j=14,F=15,H=21,_=22,k={};return k[q]="Image cannot be loaded from the passed link.",k[S]="Error during load images request.",k[R]="Missing imageManagerLoadURL option.",k[U]="Parsing load response failed.",k[j]="Missing image thumb.",k[F]="Missing image URL.",k[H]="Error during delete image request.",k[_]="Missing imageManagerDeleteURL option.",{require:["image"],_init:function(){return a.$wp||"IMG"==a.el.tagName?void 0:!1},show:function(){if(!M){var n,o='<div class="fr-modal-head-line"><i class="fa fa-bars fr-modal-more fr-not-available" id="fr-modal-more-'+a.sid+'" title="'+a.language.translate("Tags")+'"></i><h4 data-text="true">'+a.language.translate("Manage Images")+"</h4></div>";o+='<div class="fr-modal-tags" id="fr-modal-tags"></div>',n=a.opts.imageManagerPreloader?'<img class="fr-preloader" id="fr-preloader" alt="'+a.language.translate("Loading")+'.." src="'+a.opts.imageManagerPreloader+'" style="display: none;">':'<span class="fr-preloader" id="fr-preloader" style="display: none;">'+a.language.translate("Loading")+"</span>",n+='<div class="fr-image-list" id="fr-image-list"></div>';var s=a.modals.create(T,o,n);M=s.$modal,w=s.$head,b=s.$body}M.data("current-image",a.image.get()),a.modals.show(T),C||(C=M.find("#fr-preloader"),L=M.find("#fr-image-list"),y=M.find("#fr-modal-tags"),E=t(),r(),w.css("height",w.find(".fr-modal-head-line").outerHeight()),a.events.$on(e(a.o_win),"resize",function(){l(!!D)}),a.helpers.isMobile()&&(a.events.bindClick(L,"div.fr-image-container",function(a){M.find(".fr-mobile-selected").removeClass("fr-mobile-selected"),e(a.currentTarget).addClass("fr-mobile-selected")}),M.on(a._mousedown,function(){M.find(".fr-mobile-selected").removeClass("fr-mobile-selected")})),a.events.bindClick(L,".fr-insert-img",m),a.events.bindClick(L,".fr-delete-img",f),M.on(a._mousedown+" "+a._mouseup,function(e){e.stopPropagation()}),M.on(a._mousedown,"*",function(){a.events.disableBlur()}),b.on("scroll",i),a.events.bindClick(M,"#fr-modal-more-"+a.sid,c),a.events.bindClick(y,"a",p)),C.show(),L.find(".fr-list-column").empty(),a.opts.imageManagerLoadURL?e.ajax({url:a.opts.imageManagerLoadURL,method:a.opts.imageManagerLoadMethod,data:a.opts.imageManagerLoadParams,dataType:"json",crossDomain:a.opts.requestWithCORS,xhrFields:{withCredentials:a.opts.requestWithCredentials},headers:a.opts.requestHeaders}).done(function(e,t,r){a.events.trigger("imageManager.imagesLoaded",[e]),function(e,a){try{L.find(".fr-list-column").empty(),x=P=I=0,D=e,i()}catch(t){u(U,a)}}(e,r.response),C.hide()}).fail(function(){var e=this.xhr();u(S,e.response||e.responseText)}):u(R)},hide:function(){a.modals.hide(T)}}},!e.FE.PLUGINS.image)throw new Error("Image manager plugin requires image plugin.");e.FE.DEFAULTS.imageInsertButtons.push("imageManager"),e.FE.RegisterCommand("imageManager",{title:"Browse",undo:!1,focus:!1,modal:!0,callback:function(){this.imageManager.show()},plugin:"imageManager"}),e.FE.DefineIcon("imageManager",{NAME:"folder"}),e.FE.DefineIcon("imageManagerInsert",{NAME:"plus"}),e.FE.DefineIcon("imageManagerDelete",{NAME:"trash"})})});
;/*!node_modules/froala-editor/js/plugins/inline_class.min.js*/
define("node_modules/froala-editor/js/plugins/inline_class.min",function(n,e,i){!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof i&&i.exports?i.exports=function(i,s){return void 0===s&&(s="undefined"!=typeof window?n("node_modules/jquery/dist/jquery"):n("node_modules/jquery/dist/jquery")(i)),e(s)}:e(window.jQuery)}(function(n){n.extend(n.FE.DEFAULTS,{inlineClasses:{"fr-class-code":"Code","fr-class-highlighted":"Highlighted","fr-class-transparency":"Transparent"}}),n.FE.PLUGINS.inlineClass=function(e){return{apply:function(n){e.format.toggle("span",{"class":n})},refreshOnShow:function(i,s){s.find(".fr-command").each(function(){var i=n(this).data("param1"),s=e.format.is("span",{"class":i});n(this).toggleClass("fr-active",s).attr("aria-selected",s)})}}},n.FE.RegisterCommand("inlineClass",{type:"dropdown",title:"Inline Class",html:function(){var n='<ul class="fr-dropdown-list" role="presentation">',e=this.opts.inlineClasses;for(var i in e)e.hasOwnProperty(i)&&(n+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineClass" data-param1="'+i+'" title="'+e[i]+'">'+e[i]+"</a></li>");return n+="</ul>"},callback:function(n,e){this.inlineClass.apply(e)},refreshOnShow:function(n,e){this.inlineClass.refreshOnShow(n,e)},plugin:"inlineClass"}),n.FE.DefineIcon("inlineClass",{NAME:"tag"})})});
;/*!node_modules/froala-editor/js/plugins/inline_style.min.js*/
define("node_modules/froala-editor/js/plugins/inline_style.min",function(e,n,t){!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof t&&t.exports?t.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),n(i)}:n(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),e.FE.PLUGINS.inlineStyle=function(n){return{apply:function(t){if(""!==n.selection.text())for(var i=t.split(";"),l=0;l<i.length;l++){var o=i[l].split(":");i[l].length&&2==o.length&&n.format.applyStyle(o[0].trim(),o[1].trim())}else n.html.insert('<span style="'+t+'">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>")}}},e.FE.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',n=this.opts.inlineStyles;for(var t in n)n.hasOwnProperty(t)&&(e+='<li role="presentation"><span style="'+(n[t]+(-1===n[t].indexOf("display:block;")?" display:block;":""))+'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="'+n[t]+'" title="'+this.language.translate(t)+'">'+this.language.translate(t)+"</a></span></li>");return e+="</ul>"},title:"Inline Style",callback:function(e,n){this.inlineStyle.apply(n)},plugin:"inlineStyle"}),e.FE.DefineIcon("inlineStyle",{NAME:"paint-brush"})})});
;/*!node_modules/froala-editor/js/plugins/line_breaker.min.js*/
define("node_modules/froala-editor/js/plugins/line_breaker.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(r)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly","img"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),e.FE.PLUGINS.lineBreaker=function(t){function n(n,r){var a,o,i,s,f,l,p,u;if(null==n)f=(s=r.parent()).offset().top,a=(p=r.offset().top)-Math.min((p-f)/2,t.opts.lineBreakerOffset),i=s.outerWidth(),o=s.offset().left;else if(null==r)(l=(s=n.parent()).offset().top+s.outerHeight())<(u=n.offset().top+n.outerHeight())&&(l=(s=e(s).parent()).offset().top+s.outerHeight()),a=u+Math.min(Math.abs(l-u)/2,t.opts.lineBreakerOffset),i=s.outerWidth(),o=s.offset().left;else{s=n.parent();var d=n.offset().top+n.height(),v=r.offset().top;if(d>v)return!1;a=(d+v)/2,i=s.outerWidth(),o=s.offset().left}t.opts.iframe&&(o+=t.$iframe.offset().left-t.helpers.scrollLeft(),a+=t.$iframe.offset().top-t.helpers.scrollTop()),t.$box.append(g),g.css("top",a-t.win.pageYOffset),g.css("left",o-t.win.pageXOffset),g.css("width",i),g.data("tag1",n),g.data("tag2",r),g.addClass("fr-visible").data("instance",t)}function r(n){if(n){var r=e(n);if(0===t.$el.find(r).length)return null;if(n.nodeType!=Node.TEXT_NODE&&r.is(t.opts.lineBreakerTags.join(",")))return r;if(0<r.parents(t.opts.lineBreakerTags.join(",")).length)return n=r.parents(t.opts.lineBreakerTags.join(",")).get(0),0!==t.$el.find(n).length&&e(n).is(t.opts.lineBreakerTags.join(","))?e(n):null}return null}function a(n,r){var a=t.doc.elementFromPoint(n,r);return a&&!e(a).closest(".fr-line-breaker").length&&!t.node.isElement(a)&&a!=t.$wp.get(0)&&function(e){if("undefined"!=typeof e.inFroalaWrapper)return e.inFroalaWrapper;for(var n=e;e.parentNode&&e.parentNode!==t.$wp.get(0);)e=e.parentNode;return n.inFroalaWrapper=e.parentNode==t.$wp.get(0),n.inFroalaWrapper}(a)?a:null}function o(e,n,r){for(var o=r,i=null;o<=t.opts.lineBreakerOffset&&!i;)(i=a(e,n-o))||(i=a(e,n+o)),o+=r;return i}function i(e,n,r){for(var i=null,s=100;!i&&e>t.$box.offset().left&&e<t.$box.offset().left+t.$box.outerWidth()&&s>0;)(i=a(e,n))||(i=o(e,n,5)),"left"==r?e-=t.opts.lineBreakerHorizontalOffset:e+=t.opts.lineBreakerHorizontalOffset,s-=t.opts.lineBreakerHorizontalOffset;return i}function s(e){var a=c=null,s=null,f=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset);f&&("HTML"==f.tagName||"BODY"==f.tagName||t.node.isElement(f)||0<=(f.getAttribute("class")||"").indexOf("fr-line-breaker"))?((s=o(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset,1))||(s=i(e.pageX-t.win.pageXOffset-t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"left")),s||(s=i(e.pageX-t.win.pageXOffset+t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"right")),a=r(s)):a=r(f),a?function(e,a){var o,i,s=e.offset().top,f=e.offset().top+e.outerHeight();if(Math.abs(f-a)<=t.opts.lineBreakerOffset||Math.abs(a-s)<=t.opts.lineBreakerOffset)if(Math.abs(f-a)<Math.abs(a-s)){for(var l=(i=e.get(0)).nextSibling;l&&l.nodeType==Node.TEXT_NODE&&0===l.textContent.length;)l=l.nextSibling;if(!l)return n(e,null);if(o=r(l))return n(e,o)}else{if(!(i=e.get(0)).previousSibling)return n(null,e);if(o=r(i.previousSibling))return n(o,e)}g.removeClass("fr-visible").removeData("instance")}(a,e.pageY):t.core.sameInstance(g)&&g.removeClass("fr-visible").removeData("instance")}function f(e){return!(g.hasClass("fr-visible")&&!t.core.sameInstance(g))&&(t.popups.areVisible()||t.el.querySelector(".fr-selected-cell")?(g.removeClass("fr-visible"),!0):void(!1!==v||t.edit.isDisabled()||(c&&clearTimeout(c),c=setTimeout(s,30,e))))}function l(){c&&clearTimeout(c),g&&g.hasClass("fr-visible")&&g.removeClass("fr-visible").removeData("instance")}function p(){v=!0,l()}function u(){v=!1}function d(n){n.preventDefault();var r=g.data("instance")||t;g.removeClass("fr-visible").removeData("instance");var a=g.data("tag1"),o=g.data("tag2"),i=t.html.defaultTag();null==a?o.before(i&&"TD"!=o.parent().get(0).tagName&&0===o.parents(i).length?"<"+i+">"+e.FE.MARKERS+"<br></"+i+">":e.FE.MARKERS+"<br>"):a.after(i&&"TD"!=a.parent().get(0).tagName&&0===a.parents(i).length?"<"+i+">"+e.FE.MARKERS+"<br></"+i+">":e.FE.MARKERS+"<br>"),r.selection.restore()}var g,v,c;return{_init:function(){return t.$wp?(t.shared.$line_breaker||(t.shared.$line_breaker=e('<div class="fr-line-breaker"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Break")+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="21" y="11" width="2" height="8"/><rect x="14" y="17" width="7" height="2"/><path d="M14.000,14.000 L14.000,22.013 L9.000,18.031 L14.000,14.000 Z"/></svg></a></div>')),g=t.shared.$line_breaker,t.events.on("shared.destroy",function(){g.html("").removeData().remove(),g=null},!0),t.events.on("destroy",function(){g.removeData("instance").removeClass("fr-visible").appendTo("body:first"),clearTimeout(c)},!0),t.events.$on(g,"mousemove",function(e){e.stopPropagation()},!0),t.events.bindClick(g,"a",d),v=!1,t.events.$on(t.$win,"mousemove",f),t.events.$on(e(t.win),"scroll",l),t.events.on("popups.show.table.edit",l),t.events.on("commands.after",l),t.events.$on(e(t.win),"mousedown",p),t.events.$on(e(t.win),"mouseup",u),void 0):!1}}}})});
;/*!node_modules/froala-editor/js/plugins/line_height.min.js*/
define("node_modules/froala-editor/js/plugins/line_height.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,i){return void 0===i&&(i="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(i)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{lineHeights:{Default:"",Single:"1",1.15:"1.15",1.5:"1.5",Double:"2"}}),e.FE.PLUGINS.lineHeight=function(t){return{_init:function(){},apply:function(n){t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore();var i=t.selection.blocks();i.length&&e(i[0]).parent().is("td")&&t.format.applyStyle("line-height",n.toString()),t.selection.save();for(var o=0;o<i.length;o++)e(i[o]).css("line-height",n),""===e(i[o]).attr("style")&&e(i[o]).removeAttr("style");t.html.unwrap(),t.selection.restore()},refreshOnShow:function(n,i){var o=t.selection.blocks();if(o.length){var r=e(o[0]);i.find(".fr-command").each(function(){var t=e(this).data("param1"),n=0<=(r.attr("style")||"").indexOf("line-height: "+t+";");e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}}}},e.FE.RegisterCommand("lineHeight",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.lineHeights;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command '+n+'" tabIndex="-1" role="option" data-cmd="lineHeight" data-param1="'+t[n]+'" title="'+this.language.translate(n)+'">'+this.language.translate(n)+"</a></li>");return e+="</ul>"},title:"Line Height",callback:function(e,t){this.lineHeight.apply(t)},refreshOnShow:function(e,t){this.lineHeight.refreshOnShow(e,t)},plugin:"lineHeight"}),e.FE.DefineIcon("lineHeight",{NAME:"arrows-v",FA5NAME:"arrows-alt-v"})})});
;/*!node_modules/froala-editor/js/plugins/link.min.js*/
define("node_modules/froala-editor/js/plugins/link.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,i){return void 0===i&&(i="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(i)}:t(window.jQuery)}(function(e){e.extend(e.FE.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),e.extend(e.FE.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),e.FE.PLUGINS.link=function(t){function n(){var n=t.image?t.image.get():null;if(!n&&t.$wp){var i=t.selection.ranges(0).commonAncestorContainer;try{i&&(i.contains&&i.contains(t.el)||!t.el.contains(i)||t.el==i)&&(i=null)}catch(r){i=null}if(i&&"A"===i.tagName)return i;var l=t.selection.element(),a=t.selection.endElement();"A"==l.tagName||t.node.isElement(l)||(l=e(l).parentsUntil(t.$el,"a:first").get(0)),"A"==a.tagName||t.node.isElement(a)||(a=e(a).parentsUntil(t.$el,"a:first").get(0));try{a&&(a.contains&&a.contains(t.el)||!t.el.contains(a)||t.el==a)&&(a=null)}catch(r){a=null}try{l&&(l.contains&&l.contains(t.el)||!t.el.contains(l)||t.el==l)&&(l=null)}catch(r){l=null}return a&&a==l&&"A"==a.tagName?(t.browser.msie||t.helpers.isMobile())&&(t.selection.info(l).atEnd||t.selection.info(l).atStart)?null:l:null}return"A"==t.el.tagName?t.el:n&&n.get(0).parentNode&&"A"==n.get(0).parentNode.tagName?n.get(0).parentNode:void 0}function i(){var e,n,i,r,l=t.image?t.image.get():null,a=[];if(l)"A"==l.get(0).parentNode.tagName&&a.push(l.get(0).parentNode);else if(t.win.getSelection){var s=t.win.getSelection();if(s.getRangeAt&&s.rangeCount){r=t.doc.createRange();for(var o=0;o<s.rangeCount;++o)if((n=(e=s.getRangeAt(o)).commonAncestorContainer)&&1!=n.nodeType&&(n=n.parentNode),n&&"a"==n.nodeName.toLowerCase())a.push(n);else{i=n.getElementsByTagName("a");for(var p=0;p<i.length;++p)r.selectNodeContents(i[p]),r.compareBoundaryPoints(e.END_TO_START,e)<1&&-1<r.compareBoundaryPoints(e.START_TO_END,e)&&a.push(i[p])}}}else if(t.doc.selection&&"Control"!=t.doc.selection.type)if("a"==(n=(e=t.doc.selection.createRange()).parentElement()).nodeName.toLowerCase())a.push(n);else{i=n.getElementsByTagName("a"),r=t.doc.body.createTextRange();for(var f=0;f<i.length;++f)r.moveToElementText(i[f]),-1<r.compareEndPoints("StartToEnd",e)&&r.compareEndPoints("EndToStart",e)<1&&a.push(i[f])}return a}function r(i){if(t.core.hasFocus()){if(a(),i&&"keyup"===i.type&&(i.altKey||i.which==e.FE.KEYCODE.ALT))return!0;setTimeout(function(){if(!i||i&&(1==i.which||"mouseup"!=i.type)){var r=n(),a=t.image?t.image.get():null;if(r&&!a){if(t.image){var s=t.node.contents(r);if(1==s.length&&"IMG"==s[0].tagName){var o=t.selection.ranges(0);return 0===o.startOffset&&0===o.endOffset?e(r).before(e.FE.MARKERS):e(r).after(e.FE.MARKERS),t.selection.restore(),!1}}i&&i.stopPropagation(),l(r)}}},t.helpers.isIOS()?100:0)}}function l(i){var r=t.popups.get("link.edit");r||(r=function(){var e="";1<=t.opts.linkEditButtons.length&&("A"==t.el.tagName&&0<=t.opts.linkEditButtons.indexOf("linkRemove")&&t.opts.linkEditButtons.splice(t.opts.linkEditButtons.indexOf("linkRemove"),1),e='<div class="fr-buttons">'+t.button.buildList(t.opts.linkEditButtons)+"</div>");var i={buttons:e},r=t.popups.create("link.edit",i);return t.$wp&&t.events.$on(t.$wp,"scroll.link-edit",function(){n()&&t.popups.isVisible("link.edit")&&l(n())}),r}());var a=e(i);t.popups.isVisible("link.edit")||t.popups.refresh("link.edit"),t.popups.setContainer("link.edit",t.$sc);var s=a.offset().left+e(i).outerWidth()/2,o=a.offset().top+a.outerHeight();t.popups.show("link.edit",s,o,a.outerHeight())}function a(){t.popups.hide("link.edit")}function s(){}function o(){var i=t.popups.get("link.insert"),r=n();if(r){var l,a,s=e(r),o=i.find('input.fr-link-attr[type="text"]'),p=i.find('input.fr-link-attr[type="checkbox"]');for(l=0;l<o.length;l++)(a=e(o[l])).val(s.attr(a.attr("name")||""));for(p.prop("checked",!1),l=0;l<p.length;l++)a=e(p[l]),s.attr(a.attr("name"))==a.data("checked")&&a.prop("checked",!0);i.find('input.fr-link-attr[type="text"][name="text"]').val(s.text())}else i.find('input.fr-link-attr[type="text"]').val(""),i.find('input.fr-link-attr[type="checkbox"]').prop("checked",!1),i.find('input.fr-link-attr[type="text"][name="text"]').val(t.selection.text());i.find("input.fr-link-attr").trigger("change"),(t.image?t.image.get():null)?i.find('.fr-link-attr[name="text"]').parent().hide():i.find('.fr-link-attr[name="text"]').parent().show()}function p(e){if(e)return t.popups.onRefresh("link.insert",o),t.popups.onHide("link.insert",s),!0;var n="";1<=t.opts.linkInsertButtons.length&&(n='<div class="fr-buttons">'+t.button.buildList(t.opts.linkInsertButtons)+"</div>");var i="",r=0;for(var l in i='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'+t.id+'">',i+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'+t.id+'" name="href" type="text" class="fr-link-attr" placeholder="'+t.language.translate("URL")+'" tabIndex="'+ ++r+'"></div>',t.opts.linkText&&(i+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'+t.id+'" name="text" type="text" class="fr-link-attr" placeholder="'+t.language.translate("Text")+'" tabIndex="'+ ++r+'"></div>'),t.opts.linkAttributes)if(t.opts.linkAttributes.hasOwnProperty(l)){var a=t.opts.linkAttributes[l];i+='<div class="fr-input-line"><input name="'+l+'" type="text" class="fr-link-attr" placeholder="'+t.language.translate(a)+'" tabIndex="'+ ++r+'"></div>'}t.opts.linkAlwaysBlank||(i+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'+t.id+'" tabIndex="'+ ++r+'"><span><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg></span></span><label for="fr-link-target-'+t.id+'">'+t.language.translate("Open in new tab")+"</label></div>");var p={buttons:n,input_layer:i+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'+ ++r+'" type="button">'+t.language.translate("Insert")+"</button></div></div>"},f=t.popups.create("link.insert",p);return t.$wp&&t.events.$on(t.$wp,"scroll.link-insert",function(){(t.image?t.image.get():null)&&t.popups.isVisible("link.insert")&&c(),t.popups.isVisible("link.insert")&&d()}),f}function f(l,a,s){if(void 0===s&&(s={}),!1===t.events.trigger("link.beforeInsert",[l,a,s]))return!1;var o=t.image?t.image.get():null;o||"A"==t.el.tagName?"A"==t.el.tagName&&t.$el.focus():(t.selection.restore(),t.popups.hide("link.insert"));var p=l;if(t.opts.linkConvertEmailAddress&&t.helpers.isEmail(l)&&!/^mailto:.*/i.test(l)&&(l="mailto:"+l),""===t.opts.linkAutoPrefix||new RegExp("^("+e.FE.LinkProtocols.join("|")+"):.","i").test(l)||/^data:image.*/i.test(l)||/^(https?:|ftps?:|file:|)\/\//i.test(l)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(l)||["/","{","[","#","(","."].indexOf((l||"")[0])<0&&(l=t.opts.linkAutoPrefix+t.helpers.sanitizeURL(l)),l=t.helpers.sanitizeURL(l),t.opts.linkAlwaysBlank&&(s.target="_blank"),t.opts.linkAlwaysNoFollow&&(s.rel="nofollow"),t.helpers.isEmail(p)&&(s.target=null,s.rel=null),"_blank"==s.target?(t.opts.linkNoOpener&&(s.rel?s.rel+=" noopener":s.rel="noopener"),t.opts.linkNoReferrer&&(s.rel?s.rel+=" noreferrer":s.rel="noreferrer")):null==s.target&&(s.rel=s.rel?s.rel.replace(/noopener/,"").replace(/noreferrer/,""):null),a=a||"",l===t.opts.linkAutoPrefix)return t.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),t.events.trigger("link.bad",[p]),!1;var f,d=n();if(d){if((f=e(d)).attr("href",l),0<a.length&&f.text()!=a&&!o){for(var c=f.get(0);1===c.childNodes.length&&c.childNodes[0].nodeType==Node.ELEMENT_NODE;)c=c.childNodes[0];e(c).text(a)}o||f.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),f.attr(s),o||t.selection.restore()}else{o?(o.wrap('<a href="'+l+'"></a>'),t.image.hasCaption()&&o.parent().append(o.parents(".fr-img-caption").find(".fr-inner"))):(t.format.remove("a"),t.selection.isCollapsed()?(a=0===a.length?p:a,t.html.insert('<a href="'+l+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;").replace(/</,"&lt;",">","&gt;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):0<a.length&&a!=t.selection.text().replace(/\n/g,"")?(t.selection.remove(),t.html.insert('<a href="'+l+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):(!function(){if(!t.selection.isCollapsed()){t.selection.save();for(var n=t.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();n.length;){var i=e(n.pop());i.removeClass("fr-unprocessed");var r=t.node.deepestParent(i.get(0));if(r){for(var l=i.get(0),a="",s="";l=l.parentNode,t.node.isBlock(l)||(a+=t.node.closeTagString(l),s=t.node.openTagString(l)+s),l!=r;);var o=t.node.openTagString(i.get(0))+i.html()+t.node.closeTagString(i.get(0));i.replaceWith('<span id="fr-break"></span>');var p=r.outerHTML;p=(p=p.replace(/<span id="fr-break"><\/span>/g,a+o+s)).replace(s+a,""),r.outerHTML=p}n=t.$el.find(".fr-marker.fr-unprocessed").toArray()}t.html.cleanEmptyTags(),t.selection.restore()}}(),t.format.apply("a",{href:l})));for(var u=i(),k=0;k<u.length;k++)(f=e(u[k])).attr(s),f.removeAttr("_moz_dirty");1==u.length&&t.$wp&&!o&&(e(u[0]).prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),t.selection.restore())}if(o){var g=t.popups.get("link.insert");g&&g.find("input:focus").blur(),t.image.edit(o)}else r()}function d(){a();var i=n();if(i){var r=t.popups.get("link.insert");r||(r=p()),t.popups.isVisible("link.insert")||(t.popups.refresh("link.insert"),t.selection.save(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur())),t.popups.setContainer("link.insert",t.$sc);var l=(t.image?t.image.get():null)||e(i),s=l.offset().left+l.outerWidth()/2,o=l.offset().top+l.outerHeight();t.popups.show("link.insert",s,o,l.outerHeight())}}function c(){var e=t.image?t.image.getEl():null;if(e){var n=t.popups.get("link.insert");t.image.hasCaption()&&(e=e.find(".fr-img-wrap")),n||(n=p()),o(),t.popups.setContainer("link.insert",t.$sc);var i=e.offset().left+e.outerWidth()/2,r=e.offset().top+e.outerHeight();t.popups.show("link.insert",i,r,e.outerHeight())}}return{_init:function(){t.events.on("keyup",function(t){t.which!=e.FE.KEYCODE.ESC&&r(t)}),t.events.on("window.mouseup",r),t.events.$on(t.$el,"click","a",function(e){t.edit.isDisabled()&&e.preventDefault()}),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",r),p(!0),"A"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.on("toolbar.esc",function(){return t.popups.isVisible("link.edit")?(t.events.disableBlur(),t.events.focus(),!1):void 0},!0)},remove:function(){var i=n(),r=t.image?t.image.get():null;return!1===t.events.trigger("link.beforeRemove",[i])?!1:void(r&&i?(r.unwrap(),t.image.edit(r)):i&&(t.selection.save(),e(i).replaceWith(e(i).html()),t.selection.restore(),a()))},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertLink"]'),n=t.popups.get("link.insert");if(n||(n=p()),!n.hasClass("fr-active"))if(t.popups.refresh("link.insert"),t.popups.setContainer("link.insert",t.$tb||t.$sc),e.is(":visible")){var i=e.offset().left+e.outerWidth()/2,r=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("link.insert",i,r,e.outerHeight())}else t.position.forSelection(n),t.popups.show("link.insert")},usePredefined:function(n){var i,r,l=t.opts.linkList[n],a=t.popups.get("link.insert"),s=a.find('input.fr-link-attr[type="text"]'),o=a.find('input.fr-link-attr[type="checkbox"]');for(l.rel&&(a.rel=l.rel),r=0;r<s.length;r++)l[(i=e(s[r])).attr("name")]?i.val(l[i.attr("name")]):"text"!=i.attr("name")&&i.val("");for(r=0;r<o.length;r++)(i=e(o[r])).prop("checked",i.data("checked")==l[i.attr("name")]);t.accessibility.focusPopup(a)},insertCallback:function(){var n,i,r=t.popups.get("link.insert"),l=r.find('input.fr-link-attr[type="text"]'),a=r.find('input.fr-link-attr[type="checkbox"]'),s=(l.filter('[name="href"]').val()||"").trim(),o=l.filter('[name="text"]').val(),p={};for(i=0;i<l.length;i++)n=e(l[i]),["href","text"].indexOf(n.attr("name"))<0&&(p[n.attr("name")]=n.val());for(i=0;i<a.length;i++)p[n.attr("name")]=(n=e(a[i])).is(":checked")?n.data("checked"):n.data("unchecked")||null;r.rel&&(p.rel=r.rel);var d=t.helpers.scrollTop();f(s,o,p),e(t.o_win).scrollTop(d)},insert:f,update:d,get:n,allSelected:i,back:function(){t.image&&t.image.get()?t.image.back():(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),n()&&t.$wp?(t.selection.restore(),a(),r()):"A"==t.el.tagName?(t.$el.focus(),r()):(t.popups.hide("link.insert"),t.toolbar.showInline()))},imageLink:c,applyStyle:function(i,l,a){void 0===a&&(a=t.opts.linkMultipleStyles),void 0===l&&(l=t.opts.linkStyles);var s=n();if(!s)return!1;if(!a){var o=Object.keys(l);o.splice(o.indexOf(i),1),e(s).removeClass(o.join(" "))}e(s).toggleClass(i),r()}}},e.FE.DefineIcon("insertLink",{NAME:"link"}),e.FE.RegisterShortcut(e.FE.KEYCODE.K,"insertLink",null,"K"),e.FE.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),e.FE.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt"}),e.FE.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},callback:function(){var e=this.link.get();e&&(-1!==e.href.indexOf("mailto:")?this.o_win.open(e.href).close():this.o_win.open(e.href,"_blank","noopener"),this.popups.hide("link.edit"))},plugin:"link"}),e.FE.DefineIcon("linkEdit",{NAME:"edit"}),e.FE.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkRemove",{NAME:"unlink"}),e.FE.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(e){var t=this.link.get()&&this.doc.hasFocus();(this.image?this.image.get():null)||t||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkList",{NAME:"search"}),e.FE.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkList,n=0;n<t.length;n++)e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'+n+'">'+(t[n].displayText||t[n].text)+"</a></li>";return e+="</ul>"},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),e.FE.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){e.text(this.link.get()?this.language.translate("Update"):this.language.translate("Insert"))},plugin:"link"}),e.FE.DefineIcon("imageLink",{NAME:"link"}),e.FE.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkStyle",{NAME:"magic"}),e.FE.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'+n+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(t,n){var i=this.link.get();if(i){var r=e(i);n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=r.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"})})});
;/*!node_modules/froala-editor/js/plugins/lists.min.js*/
define("node_modules/froala-editor/js/plugins/lists.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,a){return void 0===a&&(a="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(a)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{listAdvancedTypes:!0}),e.FE.PLUGINS.lists=function(t){function n(e){return'<span class="fr-open-'+e.toLowerCase()+'"></span>'}function a(e){return'<span class="fr-close-'+e.toLowerCase()+'"></span>'}function r(n,a){!function(n,a){for(var r=[],i=0;i<n.length;i++){var o=n[i].parentNode;"LI"==n[i].tagName&&o.tagName!=a&&r.indexOf(o)<0&&r.push(o)}for(i=r.length-1;i>=0;i--){var s=e(r[i]);s.replaceWith("<"+a.toLowerCase()+" "+t.node.attributes(s.get(0))+">"+s.html()+"</"+a.toLowerCase()+">")}}(n,a);var r,i=t.html.defaultTag(),o=null;n.length&&(r="rtl"==t.opts.direction||"rtl"==e(n[0]).css("direction")?"margin-right":"margin-left");for(var s=0;s<n.length;s++)if("TD"!=n[s].tagName&&"TH"!=n[s].tagName&&"LI"!=n[s].tagName){var l=t.helpers.getPX(e(n[s]).css(r))||0;(n[s].style.marginLeft=null)===o&&(o=l);var p=o>0?"<"+a+' style="'+r+": "+o+'px;">':"<"+a+">",f="</"+a+">";for(l-=o;0<l/t.opts.indentMargin;)p+="<"+a+">",f+=f,l-=t.opts.indentMargin;i&&n[s].tagName.toLowerCase()==i?e(n[s]).replaceWith(p+"<li"+t.node.attributes(n[s])+">"+e(n[s]).html()+"</li>"+f):e(n[s]).wrap(p+"<li></li>"+f)}t.clean.lists()}function i(r){var i,o;for(i=r.length-1;i>=0;i--)for(o=i-1;o>=0;o--)if(e(r[o]).find(r[i]).length||r[o]==r[i]){r.splice(i,1);break}var s=[];for(i=0;i<r.length;i++){var l=e(r[i]),p=r[i].parentNode,f=l.attr("class");if(l.before(a(p.tagName)),"LI"==p.parentNode.tagName)l.before(a("LI")),l.after(n("LI"));else{var d="";f&&(d+=' class="'+f+'"');var g="rtl"==t.opts.direction||"rtl"==l.css("direction")?"margin-right":"margin-left";t.helpers.getPX(e(p).css(g))&&0<=(e(p).attr("style")||"").indexOf(g+":")&&(d+=' style="'+g+":"+t.helpers.getPX(e(p).css(g))+'px;"'),t.html.defaultTag()&&0===l.find(t.html.blockTagsQuery()).length&&l.wrapInner("<"+t.html.defaultTag()+d+"></"+t.html.defaultTag()+">"),t.node.isEmpty(l.get(0),!0)||0!==l.find(t.html.blockTagsQuery()).length||l.append("<br>"),l.append(n("LI")),l.prepend(a("LI"))}l.after(n(p.tagName)),"LI"==p.parentNode.tagName&&(p=p.parentNode.parentNode),s.indexOf(p)<0&&s.push(p)}for(i=0;i<s.length;i++){var c=e(s[i]),u=c.html();u=(u=u.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>")).replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),c.replaceWith(t.node.openTagString(c.get(0))+u+t.node.closeTagString(c.get(0)))}t.$el.find("li:empty").remove(),t.$el.find("ul:empty, ol:empty").remove(),t.clean.lists(),t.html.wrap()}function o(n){t.selection.save();for(var a=0;a<n.length;a++){var r=n[a].previousSibling;if(r){var i=e(n[a]).find("> ul, > ol").last().get(0);if(i){for(var o=e("<li>").prependTo(e(i)),s=t.node.contents(n[a])[0];s&&!t.node.isList(s);){var l=s.nextSibling;o.append(s),s=l}e(r).append(e(i)),e(n[a]).remove()}else{var p=e(r).find("> ul, > ol").last().get(0);if(p)e(p).append(e(n[a]));else{var f=e("<"+n[a].parentNode.tagName+">");e(r).append(f),f.append(e(n[a]))}}}}t.clean.lists(),t.selection.restore()}function s(e){t.selection.save(),i(e),t.selection.restore()}function l(e){if("indent"==e||"outdent"==e){var n=!1,a=t.selection.blocks(),r=[];if("outdent"==e){if(a[0].previousSibling&&"LI"==a[0].previousSibling.tagName)return;if("LI"==a[0].parentElement.tagName)return}else if("indent"==e&&(!a[0].previousSibling||"LI"!=a[0].previousSibling.tagName))return;for(var i=0;i<a.length;i++)"LI"==a[i].tagName?(n=!0,r.push(a[i])):"LI"==a[i].parentNode.tagName&&(n=!0,r.push(a[i].parentNode));n&&("indent"==e?o(r):s(r))}}return{_init:function(){t.events.on("commands.after",l),t.events.on("keydown",function(n){if(n.which==e.FE.KEYCODE.TAB){for(var a=t.selection.blocks(),r=[],i=0;i<a.length;i++)"LI"==a[i].tagName?r.push(a[i]):"LI"==a[i].parentNode.tagName&&r.push(a[i].parentNode);if(1<r.length||r.length&&(t.selection.info(r[0]).atStart||t.node.isEmpty(r[0])))return n.preventDefault(),n.stopPropagation(),n.shiftKey?s(r):o(r),!1}},!0)},format:function(n,a){var o,s;for(t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore(),s=t.selection.blocks(),o=0;o<s.length;o++)"LI"!=s[o].tagName&&"LI"==s[o].parentNode.tagName&&(s[o]=s[o].parentNode);if(t.selection.save(),function(e,t){for(var n=!0,a=0;a<e.length;a++){if("LI"!=e[a].tagName)return!1;e[a].parentNode.tagName!=t&&(n=!1)}return n}(s,n)?a||i(s):r(s,n),t.html.unwrap(),t.selection.restore(),a=a||"default"){for(s=t.selection.blocks(),o=0;o<s.length;o++)"LI"!=s[o].tagName&&"LI"==s[o].parentNode.tagName&&(s[o]=s[o].parentNode);for(o=0;o<s.length;o++)"LI"==s[o].tagName&&(e(s[o].parentNode).css("list-style-type","default"===a?"":a),0===(e(s[o].parentNode).attr("style")||"").length&&e(s[o].parentNode).removeAttr("style"))}},refresh:function(n,a){var r=e(t.selection.element());if(r.get(0)!=t.el){var i=r.get(0);(i="LI"!=i.tagName&&i.firstElementChild&&"LI"!=i.firstElementChild.tagName?r.parents("li").get(0):"LI"==i.tagName||i.firstElementChild?i.firstElementChild&&"LI"==i.firstElementChild.tagName?r.get(0).firstChild:r.get(0):r.parents("li").get(0))&&i.parentNode.tagName==a&&t.el.contains(i.parentNode)&&n.addClass("fr-active")}}}},e.FE.RegisterCommand("formatUL",{title:"Unordered List",type:"button",hasOptions:function(){return this.opts.listAdvancedTypes},options:{"default":"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(e){this.lists.refresh(e,"UL")},callback:function(e,t){this.lists.format("UL",t)},plugin:"lists"}),e.FE.RegisterCommand("formatOL",{title:"Ordered List",hasOptions:function(){return this.opts.listAdvancedTypes},options:{"default":"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},refresh:function(e){this.lists.refresh(e,"OL")},callback:function(e,t){this.lists.format("OL",t)},plugin:"lists"}),e.FE.DefineIcon("formatUL",{NAME:"list-ul"}),e.FE.DefineIcon("formatOL",{NAME:"list-ol"})})});
;/*!node_modules/froala-editor/js/plugins/paragraph_format.min.js*/
define("node_modules/froala-editor/js/plugins/paragraph_format.min",function(a,t,e){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof e&&e.exports?e.exports=function(e,r){return void 0===r&&(r="undefined"!=typeof window?a("node_modules/jquery/dist/jquery"):a("node_modules/jquery/dist/jquery")(e)),t(r)}:t(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),a.FE.PLUGINS.paragraphFormat=function(t){function e(e,r){var n=t.html.defaultTag();if(r&&r.toLowerCase()!=n)if(0<e.find("ul, ol").length){var o=a("<"+r+">");e.prepend(o);for(var i=t.node.contents(e.get(0))[0];i&&["UL","OL"].indexOf(i.tagName)<0;){var p=i.nextSibling;o.append(i),i=p}}else e.html("<"+r+">"+e.html()+"</"+r+">")}return{apply:function(r){"N"==r&&(r=t.html.defaultTag()),t.selection.save(),t.html.wrap(!0,!0,!t.opts.paragraphFormat.BLOCKQUOTE,!0,!0),t.selection.restore();var n,o,i,p,l,s,d,m,h=t.selection.blocks();t.selection.save(),t.$el.find("pre").attr("skip",!0);for(var f=0;f<h.length;f++)if(h[f].tagName!=r&&!t.node.isList(h[f])){var g=a(h[f]);"LI"==h[f].tagName?e(g,r):"LI"==h[f].parentNode.tagName&&h[f]?(s=g,d=r,m=t.html.defaultTag(),d&&d.toLowerCase()!=m||(d='div class="fr-temp-div"'),s.replaceWith(a("<"+d+">").html(s.html()))):0<=["TD","TH"].indexOf(h[f].parentNode.tagName)?(i=g,p=r,l=t.html.defaultTag(),p||(p='div class="fr-temp-div"'+(t.node.isEmpty(i.get(0),!0)?' data-empty="true"':"")),p.toLowerCase()==l?(t.node.isEmpty(i.get(0),!0)||i.append("<br/>"),i.replaceWith(i.html())):i.replaceWith(a("<"+p+">").html(i.html()))):(n=g,(o=r)||(o='div class="fr-temp-div"'+(t.node.isEmpty(n.get(0),!0)?' data-empty="true"':"")),n.replaceWith(a("<"+o+" "+t.node.attributes(n.get(0))+">").html(n.html()).removeAttr("data-empty")))}t.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){a(this).prev().append("<br>"+a(this).html()),a(this).remove()}),t.$el.find("pre").removeAttr("skip"),t.html.unwrap(),t.selection.restore()},refreshOnShow:function(a,e){var r=t.selection.blocks();if(r.length){var n=r[0],o="N",i=t.html.defaultTag();n.tagName.toLowerCase()!=i&&n!=t.el&&(o=n.tagName),e.find('.fr-command[data-param1="'+o+'"]').addClass("fr-active").attr("aria-selected",!0)}else e.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(a){if(t.opts.paragraphFormatSelection){var e=t.selection.blocks();if(e.length){var r=e[0],n="N",o=t.html.defaultTag();r.tagName.toLowerCase()!=o&&r!=t.el&&(n=r.tagName),0<=["LI","TD","TH"].indexOf(n)&&(n="N"),a.find("> span").text(t.language.translate(t.opts.paragraphFormat[n]))}else a.find("> span").text(t.language.translate(t.opts.paragraphFormat.N))}}}},a.FE.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(a){return a.opts.paragraphFormatSelection},defaultSelection:function(a){return a.language.translate(a.opts.paragraphDefaultSelection)},displaySelectionWidth:125,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.paragraphFormat;for(var e in t)if(t.hasOwnProperty(e)){var r=this.shortcuts.get("paragraphFormat."+e);r=r?'<span class="fr-shortcut">'+r+"</span>":"",a+='<li role="presentation"><'+("N"==e?this.html.defaultTag()||"DIV":e)+' style="padding: 0 !important; margin: 0 !important;" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+e+'" title="'+this.language.translate(t[e])+'">'+this.language.translate(t[e])+"</a></"+("N"==e?this.html.defaultTag()||"DIV":e)+"></li>"}return a+="</ul>"},title:"Paragraph Format",callback:function(a,t){this.paragraphFormat.apply(t)},refresh:function(a){this.paragraphFormat.refresh(a)},refreshOnShow:function(a,t){this.paragraphFormat.refreshOnShow(a,t)},plugin:"paragraphFormat"}),a.FE.DefineIcon("paragraphFormat",{NAME:"paragraph"})})});
;/*!node_modules/froala-editor/js/plugins/paragraph_style.min.js*/
define("node_modules/froala-editor/js/plugins/paragraph_style.min",function(e,a,t){!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof t&&t.exports?t.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),a(r)}:a(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{paragraphStyles:{"fr-text-gray":"Gray","fr-text-bordered":"Bordered","fr-text-spaced":"Spaced","fr-text-uppercase":"Uppercase"},paragraphMultipleStyles:!0}),e.FE.PLUGINS.paragraphStyle=function(a){return{_init:function(){},apply:function(t,r,n){void 0===r&&(r=a.opts.paragraphStyles),void 0===n&&(n=a.opts.paragraphMultipleStyles);var s="";n||((s=Object.keys(r)).splice(s.indexOf(t),1),s=s.join(" ")),a.selection.save(),a.html.wrap(!0,!0,!0,!0),a.selection.restore();var o=a.selection.blocks();a.selection.save();for(var l=e(o[0]).hasClass(t),i=0;i<o.length;i++)e(o[i]).removeClass(s).toggleClass(t,!l),e(o[i]).hasClass("fr-temp-div")&&e(o[i]).removeClass("fr-temp-div"),""===e(o[i]).attr("class")&&e(o[i]).removeAttr("class");a.html.unwrap(),a.selection.restore()},refreshOnShow:function(t,r){var n=a.selection.blocks();if(n.length){var s=e(n[0]);r.find(".fr-command").each(function(){var a=e(this).data("param1"),t=s.hasClass(a);e(this).toggleClass("fr-active",t).attr("aria-selected",t)})}}}},e.FE.RegisterCommand("paragraphStyle",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',a=this.opts.paragraphStyles;for(var t in a)a.hasOwnProperty(t)&&(e+='<li role="presentation"><a class="fr-command '+t+'" tabIndex="-1" role="option" data-cmd="paragraphStyle" data-param1="'+t+'" title="'+this.language.translate(a[t])+'">'+this.language.translate(a[t])+"</a></li>");return e+="</ul>"},title:"Paragraph Style",callback:function(e,a){this.paragraphStyle.apply(a)},refreshOnShow:function(e,a){this.paragraphStyle.refreshOnShow(e,a)},plugin:"paragraphStyle"}),e.FE.DefineIcon("paragraphStyle",{NAME:"magic"})})});
;/*!node_modules/froala-editor/js/plugins/print.min.js*/
define("node_modules/froala-editor/js/plugins/print.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,o){return void 0===o&&(o="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(o)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{html2pdf:window.html2pdf}),e.FE.PLUGINS.print=function(e){return{run:function(){!function(t){var n=e.$el.html(),o=null;e.shared.print_iframe?o=e.shared.print_iframe:((o=document.createElement("iframe")).name="fr-print",o.style.position="fixed",o.style.top="0",o.style.left="-9999px",o.style.height="100%",o.style.width="0",o.style.overflow="hidden",o.style["z-index"]="2147483647",o.style.tabIndex="-1",e.events.on("shared.destroy",function(){o.remove()}),e.shared.print_iframe=o);try{document.body.removeChild(o)}catch(i){}document.body.appendChild(o);var r=function(){t(),o.removeEventListener("load",r)};o.addEventListener("load",r);var d=o.contentWindow;d.document.open(),d.document.write("<!DOCTYPE html><html "+(e.opts.documentReady?'style="margin: 0; padding: 0;"':"")+"><head><title>"+document.title+"</title>"),Array.prototype.forEach.call(document.querySelectorAll("style"),function(e){e=e.cloneNode(!0),d.document.write(e.outerHTML)});var l=document.querySelectorAll("link[rel=stylesheet]");Array.prototype.forEach.call(l,function(e){var t=document.createElement("link");t.rel=e.rel,t.href=e.href,t.media="print",t.type="text/css",t.media="all",d.document.write(t.outerHTML)}),d.document.write('</head><body style="height:auto;text-align: '+("rtl"==e.opts.direction?"right":"left")+"; direction: "+e.opts.direction+"; "+(e.opts.documentReady?" padding: 2cm; width: 17cm; margin: 0;":"")+'"><div class="fr-view">'),d.document.write(n),d.document.write("</div></body></html>"),d.document.close()}(function(){setTimeout(function(){e.events.disableBlur(),window.frames["fr-print"].focus(),window.frames["fr-print"].print(),e.$win.get(0).focus(),e.events.disableBlur(),e.events.focus()},0)})},toPDF:function(){e.opts.html2pdf&&(e.$el.css("text-align","left"),e.opts.html2pdf().set({margin:[10,20],html2canvas:{useCORS:!0}}).from(e.el).save(),setTimeout(function(){e.$el.css("text-align","")},100))}}},e.FE.DefineIcon("print",{NAME:"print"}),e.FE.RegisterCommand("print",{title:"Print",undo:!1,focus:!1,plugin:"print",callback:function(){this.print.run()}}),e.FE.DefineIcon("getPDF",{NAME:"file-pdf-o",FA5NAME:"file-pdf"}),e.FE.RegisterCommand("getPDF",{title:"Download PDF",type:"button",focus:!1,undo:!1,callback:function(){this.print.toPDF()}})})});
;/*!node_modules/froala-editor/js/plugins/quick_insert.min.js*/
define("node_modules/froala-editor/js/plugins/quick_insert.min",function(e,t,i){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof i&&i.exports?i.exports=function(i,n){return void 0===n&&(n="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(i)),t(n)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),e.FE.QUICK_INSERT_BUTTONS={},e.FE.DefineIcon("quickInsert",{PATH:'<path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/>',template:"svg"}),e.FE.RegisterQuickInsertButton=function(t,i){e.FE.QUICK_INSERT_BUTTONS[t]=e.extend({undo:!0},i)},e.FE.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var t=this;t.shared.$qi_image_input||(t.shared.$qi_image_input=e('<input accept="image/'+t.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" name="quickInsertImage'+this.id+'" style="display: none;" type="file">'),e("body:first").append(t.shared.$qi_image_input),t.events.$on(t.shared.$qi_image_input,"change",function(){var t=e(this).data("inst");this.files&&(t.quickInsert.hide(),t.image.upload(this.files)),e(this).val("")},!0)),t.$qi_image_input=t.shared.$qi_image_input,t.helpers.isMobile()&&t.selection.save(),t.events.disableBlur(),t.$qi_image_input.data("inst",t).trigger("click")}}),e.FE.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),e.FE.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),e.FE.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),e.FE.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),e.FE.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),e.FE.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),e.FE.PLUGINS.quickInsert=function(t){function i(i){var n,s,o;n=i.offset().top-t.$box.offset().top,s=(t.$iframe&&t.$iframe.offset().left||0)+i.offset().left<l.outerWidth()?i.offset().left+l.outerWidth():0-l.outerWidth(),t.opts.enter!=e.FE.ENTER_BR?o=(l.outerHeight()-i.outerHeight())/2:(e("<span>"+e.FE.INVISIBLE_SPACE+"</span>").insertAfter(i),o=(l.outerHeight()-i.next().outerHeight())/2,i.next().remove()),t.opts.iframe&&(n+=t.$iframe.offset().top),l.hasClass("fr-on")&&n>=0&&u.css("top",n-o),n>=0&&n-Math.abs(o)<=t.$box.outerHeight()-i.outerHeight()?(l.hasClass("fr-hidden")&&(l.hasClass("fr-on")&&r(),l.removeClass("fr-hidden")),l.css("top",n-o)):l.hasClass("fr-visible")&&(l.addClass("fr-hidden"),a()),l.css("left",s)}function n(n){l||function(){t.shared.$quick_insert||(t.shared.$quick_insert=e('<div class="fr-quick-insert"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Quick Insert")+'">'+t.icon.create("quickInsert")+"</a></div>")),l=t.shared.$quick_insert,t.tooltip.bind(t.$box,".fr-quick-insert > a.fr-floating-btn"),t.events.on("destroy",function(){l.removeClass("fr-on").appendTo(e("body:first")).css("left",-9999).css("top",-9999),u&&(a(),u.appendTo(e("body:first")))},!0),t.events.on("shared.destroy",function(){l.html("").removeData().remove(),l=null,u&&(u.html("").removeData().remove(),u=null)},!0),t.events.on("commands.before",o),t.events.on("commands.after",function(){t.popups.areVisible()||s()}),t.events.bindClick(t.$box,".fr-quick-insert > a",r),t.events.bindClick(t.$box,".fr-qi-helper > a.fr-btn",function(i){var n=e(i.currentTarget).data("cmd");return!1===t.events.trigger("quickInsert.commands.before",[n])?!1:(e.FE.QUICK_INSERT_BUTTONS[n].callback.apply(t,[i.currentTarget]),e.FE.QUICK_INSERT_BUTTONS[n].undo&&t.undo.saveStep(),t.events.trigger("quickInsert.commands.after",[n]),t.quickInsert.hide(),void 0)}),t.events.$on(t.$wp,"scroll",function(){l.hasClass("fr-visible")&&i(l.data("tag"))})}(),l.hasClass("fr-on")&&a(),t.$box.append(l),i(n),l.data("tag",n),l.addClass("fr-visible")}function s(){if(t.core.hasFocus()){var i=t.selection.element();if(t.opts.enter==e.FE.ENTER_BR||t.node.isBlock(i)||(i=t.node.blockParent(i)),t.opts.enter==e.FE.ENTER_BR&&!t.node.isBlock(i)){var s=t.node.deepestParent(i);s&&(i=s)}i&&(t.opts.enter!=e.FE.ENTER_BR&&t.node.isEmpty(i)&&0<=t.opts.quickInsertTags.indexOf(i.tagName.toLowerCase())||t.opts.enter==e.FE.ENTER_BR&&("BR"==i.tagName&&(!i.previousSibling||"BR"==i.previousSibling.tagName||t.node.isBlock(i.previousSibling))||t.node.isEmpty(i)&&(!i.previousSibling||"BR"==i.previousSibling.tagName||t.node.isBlock(i.previousSibling))&&(!i.nextSibling||"BR"==i.nextSibling.tagName||t.node.isBlock(i.nextSibling))))?l&&l.data("tag").is(e(i))&&l.hasClass("fr-on")?a():t.selection.isCollapsed()&&n(e(i)):o()}}function o(){l&&(l.hasClass("fr-on")&&a(),l.removeClass("fr-visible fr-on"),l.css("left",-9999).css("top",-9999))}function r(i){if(i&&i.preventDefault(),l.hasClass("fr-on")&&!l.hasClass("fr-hidden"))a();else{if(!t.shared.$qi_helper){for(var n=t.opts.quickInsertButtons,s='<div class="fr-qi-helper">',o=0,r=0;r<n.length;r++){var d=e.FE.QUICK_INSERT_BUTTONS[n[r]];d&&(!d.requiredPlugin||e.FE.PLUGINS[d.requiredPlugin]&&0<=t.opts.pluginsEnabled.indexOf(d.requiredPlugin))&&(s+='<a class="fr-btn fr-floating-btn" role="button" title="'+t.language.translate(d.title)+'" tabIndex="-1" data-cmd="'+n[r]+'" style="transition-delay: '+.025*o++ +'s;">'+t.icon.create(d.icon)+"</a>")}s+="</div>",t.shared.$qi_helper=e(s),t.tooltip.bind(t.shared.$qi_helper,"> a.fr-btn"),t.events.$on(t.shared.$qi_helper,"mousedown",function(e){e.preventDefault()},!0)}(u=t.shared.$qi_helper).appendTo(t.$box),setTimeout(function(){u.css("top",parseFloat(l.css("top"))),u.css("left",parseFloat(l.css("left"))+l.outerWidth()),u.find("a").addClass("fr-size-1"),l.addClass("fr-on")},10)}}function a(){var e=t.$box.find(".fr-qi-helper");e.length&&(e.find("a").removeClass("fr-size-1"),e.css("left",-9999),l.hasClass("fr-hidden")||l.removeClass("fr-on"))}var l,u;return{_init:function(){return t.$wp&&t.opts.quickInsertEnabled?(t.popups.onShow("image.edit",o),t.events.on("mouseup",s),t.helpers.isMobile()&&t.events.$on(e(t.o_doc),"selectionchange",s),t.events.on("blur",o),t.events.on("keyup",s),t.events.on("keydown",function(){setTimeout(function(){s()},0)}),void 0):!1},hide:o}}})});
;/*!node_modules/froala-editor/js/plugins/quote.min.js*/
define("node_modules/froala-editor/js/plugins/quote.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,o){return void 0===o&&(o="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(o)}:t(window.jQuery)}(function(e){e.FE.PLUGINS.quote=function(t){function n(e){for(;e.parentNode&&e.parentNode!=t.el;)e=e.parentNode;return e}return{apply:function(o){t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore(),"increase"==o?function(){var o,r=t.selection.blocks();for(o=0;o<r.length;o++)r[o]=n(r[o]);t.selection.save();var a=e("<blockquote>");for(a.insertBefore(r[0]),o=0;o<r.length;o++)a.append(r[o]);t.html.unwrap(),t.selection.restore()}():"decrease"==o&&function(){var n,o=t.selection.blocks();for(n=0;n<o.length;n++)"BLOCKQUOTE"!=o[n].tagName&&(o[n]=e(o[n]).parentsUntil(t.$el,"BLOCKQUOTE").get(0));for(t.selection.save(),n=0;n<o.length;n++)o[n]&&e(o[n]).replaceWith(o[n].innerHTML);t.html.unwrap(),t.selection.restore()}()}}},e.FE.RegisterShortcut(e.FE.KEYCODE.SINGLE_QUOTE,"quote","increase","'"),e.FE.RegisterShortcut(e.FE.KEYCODE.SINGLE_QUOTE,"quote","decrease","'",!0),e.FE.RegisterCommand("quote",{title:"Quote",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t={increase:"Increase",decrease:"Decrease"};for(var n in t)if(t.hasOwnProperty(n)){var o=this.shortcuts.get("quote."+n);e+='<li role="presentation"><a class="fr-command fr-active '+n+'" tabIndex="-1" role="option" data-cmd="quote" data-param1="'+n+'" title="'+t[n]+'">'+this.language.translate(t[n])+(o?'<span class="fr-shortcut">'+o+"</span>":"")+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.quote.apply(t)},plugin:"quote"}),e.FE.DefineIcon("quote",{NAME:"quote-left"})})});
;/*!node_modules/froala-editor/js/plugins/save.min.js*/
define("node_modules/froala-editor/js/plugins/save.min",function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof n&&n.exports?n.exports=function(n,s){return void 0===s&&(s="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(n)),t(s)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),e.FE.PLUGINS.save=function(t){function n(e,n){t.events.trigger("save.error",[{code:e,message:f[e]},n])}function s(s){void 0===s&&(s=t.html.get());var o=s,a=t.events.trigger("save.before",[s]);if(!1===a)return!1;if("string"==typeof a&&(s=a),t.opts.saveURL){var i={};for(var f in t.opts.saveParams)if(t.opts.saveParams.hasOwnProperty(f)){var d=t.opts.saveParams[f];i[f]="function"==typeof d?d.call(this):d}var l={};l[t.opts.saveParam]=s,e.ajax({type:t.opts.saveMethod,url:t.opts.saveURL,data:e.extend(l,i),crossDomain:t.opts.requestWithCORS,xhrFields:{withCredentials:t.opts.requestWithCredentials},headers:t.opts.requestHeaders}).done(function(e){r=o,t.events.trigger("save.after",[e])}).fail(function(e){n(v,e.response||e.responseText)})}else n(u)}function o(){clearTimeout(a),a=setTimeout(function(){var e=t.html.get();(r!=e||i)&&(i=!1,s(r=e))},t.opts.saveInterval)}var a=null,r=null,i=!1,u=1,v=2,f={};return f[u]="Missing saveURL option.",f[v]="Something went wrong during save.",{_init:function(){t.opts.saveInterval&&(r=t.html.get(),t.events.on("contentChanged",o),t.events.on("keydown destroy",function(){clearTimeout(a)}))},save:s,reset:function(){o(),i=!1},force:function(){i=!0}}},e.FE.DefineIcon("save",{NAME:"floppy-o",FA5NAME:"save"}),e.FE.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})})});
;/*!node_modules/froala-editor/js/plugins/special_characters.min.js*/
define("node_modules/froala-editor/js/plugins/special_characters.min",function(E,c,T){!function(c){"function"==typeof define&&define.amd?define(["jquery"],c):"object"==typeof T&&T.exports?T.exports=function(T,R){return void 0===R&&(R="undefined"!=typeof window?E("node_modules/jquery/dist/jquery"):E("node_modules/jquery/dist/jquery")(T)),c(R)}:c(window.jQuery)}(function(E){E.extend(E.FE.DEFAULTS,{specialCharactersSets:[{title:"Latin",list:[{"char":"&iexcl;",desc:"INVERTED EXCLAMATION MARK"},{"char":"&cent;",desc:"CENT SIGN"},{"char":"&pound;",desc:"POUND SIGN"},{"char":"&curren;",desc:"CURRENCY SIGN"},{"char":"&yen;",desc:"YEN SIGN"},{"char":"&brvbar;",desc:"BROKEN BAR"},{"char":"&sect;",desc:"SECTION SIGN"},{"char":"&uml;",desc:"DIAERESIS"},{"char":"&copy;",desc:"COPYRIGHT SIGN"},{"char":"&trade;",desc:"TRADEMARK SIGN"},{"char":"&ordf;",desc:"FEMININE ORDINAL INDICATOR"},{"char":"&laquo;",desc:"LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"&not;",desc:"NOT SIGN"},{"char":"&reg;",desc:"REGISTERED SIGN"},{"char":"&macr;",desc:"MACRON"},{"char":"&deg;",desc:"DEGREE SIGN"},{"char":"&plusmn;",desc:"PLUS-MINUS SIGN"},{"char":"&sup2;",desc:"SUPERSCRIPT TWO"},{"char":"&sup3;",desc:"SUPERSCRIPT THREE"},{"char":"&acute;",desc:"ACUTE ACCENT"},{"char":"&micro;",desc:"MICRO SIGN"},{"char":"&para;",desc:"PILCROW SIGN"},{"char":"&middot;",desc:"MIDDLE DOT"},{"char":"&cedil;",desc:"CEDILLA"},{"char":"&sup1;",desc:"SUPERSCRIPT ONE"},{"char":"&ordm;",desc:"MASCULINE ORDINAL INDICATOR"},{"char":"&raquo;",desc:"RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"&frac14;",desc:"VULGAR FRACTION ONE QUARTER"},{"char":"&frac12;",desc:"VULGAR FRACTION ONE HALF"},{"char":"&frac34;",desc:"VULGAR FRACTION THREE QUARTERS"},{"char":"&iquest;",desc:"INVERTED QUESTION MARK"},{"char":"&Agrave;",desc:"LATIN CAPITAL LETTER A WITH GRAVE"},{"char":"&Aacute;",desc:"LATIN CAPITAL LETTER A WITH ACUTE"},{"char":"&Acirc;",desc:"LATIN CAPITAL LETTER A WITH CIRCUMFLEX"},{"char":"&Atilde;",desc:"LATIN CAPITAL LETTER A WITH TILDE"},{"char":"&Auml;",desc:"LATIN CAPITAL LETTER A WITH DIAERESIS "},{"char":"&Aring;",desc:"LATIN CAPITAL LETTER A WITH RING ABOVE"},{"char":"&AElig;",desc:"LATIN CAPITAL LETTER AE"},{"char":"&Ccedil;",desc:"LATIN CAPITAL LETTER C WITH CEDILLA"},{"char":"&Egrave;",desc:"LATIN CAPITAL LETTER E WITH GRAVE"},{"char":"&Eacute;",desc:"LATIN CAPITAL LETTER E WITH ACUTE"},{"char":"&Ecirc;",desc:"LATIN CAPITAL LETTER E WITH CIRCUMFLEX"},{"char":"&Euml;",desc:"LATIN CAPITAL LETTER E WITH DIAERESIS"},{"char":"&Igrave;",desc:"LATIN CAPITAL LETTER I WITH GRAVE"},{"char":"&Iacute;",desc:"LATIN CAPITAL LETTER I WITH ACUTE"},{"char":"&Icirc;",desc:"LATIN CAPITAL LETTER I WITH CIRCUMFLEX"},{"char":"&Iuml;",desc:"LATIN CAPITAL LETTER I WITH DIAERESIS"},{"char":"&ETH;",desc:"LATIN CAPITAL LETTER ETH"},{"char":"&Ntilde;",desc:"LATIN CAPITAL LETTER N WITH TILDE"},{"char":"&Ograve;",desc:"LATIN CAPITAL LETTER O WITH GRAVE"},{"char":"&Oacute;",desc:"LATIN CAPITAL LETTER O WITH ACUTE"},{"char":"&Ocirc;",desc:"LATIN CAPITAL LETTER O WITH CIRCUMFLEX"},{"char":"&Otilde;",desc:"LATIN CAPITAL LETTER O WITH TILDE"},{"char":"&Ouml;",desc:"LATIN CAPITAL LETTER O WITH DIAERESIS"},{"char":"&times;",desc:"MULTIPLICATION SIGN"},{"char":"&Oslash;",desc:"LATIN CAPITAL LETTER O WITH STROKE"},{"char":"&Ugrave;",desc:"LATIN CAPITAL LETTER U WITH GRAVE"},{"char":"&Uacute;",desc:"LATIN CAPITAL LETTER U WITH ACUTE"},{"char":"&Ucirc;",desc:"LATIN CAPITAL LETTER U WITH CIRCUMFLEX"},{"char":"&Uuml;",desc:"LATIN CAPITAL LETTER U WITH DIAERESIS"},{"char":"&Yacute;",desc:"LATIN CAPITAL LETTER Y WITH ACUTE"},{"char":"&THORN;",desc:"LATIN CAPITAL LETTER THORN"},{"char":"&szlig;",desc:"LATIN SMALL LETTER SHARP S"},{"char":"&agrave;",desc:"LATIN SMALL LETTER A WITH GRAVE"},{"char":"&aacute;",desc:"LATIN SMALL LETTER A WITH ACUTE "},{"char":"&acirc;",desc:"LATIN SMALL LETTER A WITH CIRCUMFLEX"},{"char":"&atilde;",desc:"LATIN SMALL LETTER A WITH TILDE"},{"char":"&auml;",desc:"LATIN SMALL LETTER A WITH DIAERESIS"},{"char":"&aring;",desc:"LATIN SMALL LETTER A WITH RING ABOVE"},{"char":"&aelig;",desc:"LATIN SMALL LETTER AE"},{"char":"&ccedil;",desc:"LATIN SMALL LETTER C WITH CEDILLA"},{"char":"&egrave;",desc:"LATIN SMALL LETTER E WITH GRAVE"},{"char":"&eacute;",desc:"LATIN SMALL LETTER E WITH ACUTE"},{"char":"&ecirc;",desc:"LATIN SMALL LETTER E WITH CIRCUMFLEX"},{"char":"&euml;",desc:"LATIN SMALL LETTER E WITH DIAERESIS"},{"char":"&igrave;",desc:"LATIN SMALL LETTER I WITH GRAVE"},{"char":"&iacute;",desc:"LATIN SMALL LETTER I WITH ACUTE"},{"char":"&icirc;",desc:"LATIN SMALL LETTER I WITH CIRCUMFLEX"},{"char":"&iuml;",desc:"LATIN SMALL LETTER I WITH DIAERESIS"},{"char":"&eth;",desc:"LATIN SMALL LETTER ETH"},{"char":"&ntilde;",desc:"LATIN SMALL LETTER N WITH TILDE"},{"char":"&ograve;",desc:"LATIN SMALL LETTER O WITH GRAVE"},{"char":"&oacute;",desc:"LATIN SMALL LETTER O WITH ACUTE"},{"char":"&ocirc;",desc:"LATIN SMALL LETTER O WITH CIRCUMFLEX"},{"char":"&otilde;",desc:"LATIN SMALL LETTER O WITH TILDE"},{"char":"&ouml;",desc:"LATIN SMALL LETTER O WITH DIAERESIS"},{"char":"&divide;",desc:"DIVISION SIGN"},{"char":"&oslash;",desc:"LATIN SMALL LETTER O WITH STROKE"},{"char":"&ugrave;",desc:"LATIN SMALL LETTER U WITH GRAVE"},{"char":"&uacute;",desc:"LATIN SMALL LETTER U WITH ACUTE"},{"char":"&ucirc;",desc:"LATIN SMALL LETTER U WITH CIRCUMFLEX"},{"char":"&uuml;",desc:"LATIN SMALL LETTER U WITH DIAERESIS"},{"char":"&yacute;",desc:"LATIN SMALL LETTER Y WITH ACUTE"},{"char":"&thorn;",desc:"LATIN SMALL LETTER THORN"},{"char":"&yuml;",desc:"LATIN SMALL LETTER Y WITH DIAERESIS"}]},{title:"Greek",list:[{"char":"&Alpha;",desc:"GREEK CAPITAL LETTER ALPHA"},{"char":"&Beta;",desc:"GREEK CAPITAL LETTER BETA"},{"char":"&Gamma;",desc:"GREEK CAPITAL LETTER GAMMA"},{"char":"&Delta;",desc:"GREEK CAPITAL LETTER DELTA"},{"char":"&Epsilon;",desc:"GREEK CAPITAL LETTER EPSILON"},{"char":"&Zeta;",desc:"GREEK CAPITAL LETTER ZETA"},{"char":"&Eta;",desc:"GREEK CAPITAL LETTER ETA"},{"char":"&Theta;",desc:"GREEK CAPITAL LETTER THETA"},{"char":"&Iota;",desc:"GREEK CAPITAL LETTER IOTA"},{"char":"&Kappa;",desc:"GREEK CAPITAL LETTER KAPPA"},{"char":"&Lambda;",desc:"GREEK CAPITAL LETTER LAMBDA"},{"char":"&Mu;",desc:"GREEK CAPITAL LETTER MU"},{"char":"&Nu;",desc:"GREEK CAPITAL LETTER NU"},{"char":"&Xi;",desc:"GREEK CAPITAL LETTER XI"},{"char":"&Omicron;",desc:"GREEK CAPITAL LETTER OMICRON"},{"char":"&Pi;",desc:"GREEK CAPITAL LETTER PI"},{"char":"&Rho;",desc:"GREEK CAPITAL LETTER RHO"},{"char":"&Sigma;",desc:"GREEK CAPITAL LETTER SIGMA"},{"char":"&Tau;",desc:"GREEK CAPITAL LETTER TAU"},{"char":"&Upsilon;",desc:"GREEK CAPITAL LETTER UPSILON"},{"char":"&Phi;",desc:"GREEK CAPITAL LETTER PHI"},{"char":"&Chi;",desc:"GREEK CAPITAL LETTER CHI"},{"char":"&Psi;",desc:"GREEK CAPITAL LETTER PSI"},{"char":"&Omega;",desc:"GREEK CAPITAL LETTER OMEGA"},{"char":"&alpha;",desc:"GREEK SMALL LETTER ALPHA"},{"char":"&beta;",desc:"GREEK SMALL LETTER BETA"},{"char":"&gamma;",desc:"GREEK SMALL LETTER GAMMA"},{"char":"&delta;",desc:"GREEK SMALL LETTER DELTA"},{"char":"&epsilon;",desc:"GREEK SMALL LETTER EPSILON"},{"char":"&zeta;",desc:"GREEK SMALL LETTER ZETA"},{"char":"&eta;",desc:"GREEK SMALL LETTER ETA"},{"char":"&theta;",desc:"GREEK SMALL LETTER THETA"},{"char":"&iota;",desc:"GREEK SMALL LETTER IOTA"},{"char":"&kappa;",desc:"GREEK SMALL LETTER KAPPA"},{"char":"&lambda;",desc:"GREEK SMALL LETTER LAMBDA"},{"char":"&mu;",desc:"GREEK SMALL LETTER MU"},{"char":"&nu;",desc:"GREEK SMALL LETTER NU"},{"char":"&xi;",desc:"GREEK SMALL LETTER XI"},{"char":"&omicron;",desc:"GREEK SMALL LETTER OMICRON"},{"char":"&pi;",desc:"GREEK SMALL LETTER PI"},{"char":"&rho;",desc:"GREEK SMALL LETTER RHO"},{"char":"&sigmaf;",desc:"GREEK SMALL LETTER FINAL SIGMA"},{"char":"&sigma;",desc:"GREEK SMALL LETTER SIGMA"},{"char":"&tau;",desc:"GREEK SMALL LETTER TAU"},{"char":"&upsilon;",desc:"GREEK SMALL LETTER UPSILON"},{"char":"&phi;",desc:"GREEK SMALL LETTER PHI"},{"char":"&chi;",desc:"GREEK SMALL LETTER CHI"},{"char":"&psi;",desc:"GREEK SMALL LETTER PSI"},{"char":"&omega;",desc:"GREEK SMALL LETTER OMEGA"},{"char":"&thetasym;",desc:"GREEK THETA SYMBOL"},{"char":"&upsih;",desc:"GREEK UPSILON WITH HOOK SYMBOL"},{"char":"&straightphi;",desc:"GREEK PHI SYMBOL"},{"char":"&piv;",desc:"GREEK PI SYMBOL"},{"char":"&Gammad;",desc:"GREEK LETTER DIGAMMA"},{"char":"&gammad;",desc:"GREEK SMALL LETTER DIGAMMA"},{"char":"&varkappa;",desc:"GREEK KAPPA SYMBOL"},{"char":"&varrho;",desc:"GREEK RHO SYMBOL"},{"char":"&straightepsilon;",desc:"GREEK LUNATE EPSILON SYMBOL"},{"char":"&backepsilon;",desc:"GREEK REVERSED LUNATE EPSILON SYMBOL"}]},{title:"Cyrillic",list:[{"char":"&#x400",desc:"CYRILLIC CAPITAL LETTER IE WITH GRAVE"},{"char":"&#x401",desc:"CYRILLIC CAPITAL LETTER IO"},{"char":"&#x402",desc:"CYRILLIC CAPITAL LETTER DJE"},{"char":"&#x403",desc:"CYRILLIC CAPITAL LETTER GJE"},{"char":"&#x404",desc:"CYRILLIC CAPITAL LETTER UKRAINIAN IE"},{"char":"&#x405",desc:"CYRILLIC CAPITAL LETTER DZE"},{"char":"&#x406",desc:"CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"&#x407",desc:"CYRILLIC CAPITAL LETTER YI"},{"char":"&#x408",desc:"CYRILLIC CAPITAL LETTER JE"},{"char":"&#x409",desc:"CYRILLIC CAPITAL LETTER LJE"},{"char":"&#x40A",desc:"CYRILLIC CAPITAL LETTER NJE"},{"char":"&#x40B",desc:"CYRILLIC CAPITAL LETTER TSHE"},{"char":"&#x40C",desc:"CYRILLIC CAPITAL LETTER KJE"},{"char":"&#x40D",desc:"CYRILLIC CAPITAL LETTER I WITH GRAVE"},{"char":"&#x40E",desc:"CYRILLIC CAPITAL LETTER SHORT U"},{"char":"&#x40F",desc:"CYRILLIC CAPITAL LETTER DZHE"},{"char":"&#x410",desc:"CYRILLIC CAPITAL LETTER A"},{"char":"&#x411",desc:"CYRILLIC CAPITAL LETTER BE"},{"char":"&#x412",desc:"CYRILLIC CAPITAL LETTER VE"},{"char":"&#x413",desc:"CYRILLIC CAPITAL LETTER GHE"},{"char":"&#x414",desc:"CYRILLIC CAPITAL LETTER DE"},{"char":"&#x415",desc:"CYRILLIC CAPITAL LETTER IE"},{"char":"&#x416",desc:"CYRILLIC CAPITAL LETTER ZHE"},{"char":"&#x417",desc:"CYRILLIC CAPITAL LETTER ZE"},{"char":"&#x418",desc:"CYRILLIC CAPITAL LETTER I"},{"char":"&#x419",desc:"CYRILLIC CAPITAL LETTER SHORT I"},{"char":"&#x41A",desc:"CYRILLIC CAPITAL LETTER KA"},{"char":"&#x41B",desc:"CYRILLIC CAPITAL LETTER EL"},{"char":"&#x41C",desc:"CYRILLIC CAPITAL LETTER EM"},{"char":"&#x41D",desc:"CYRILLIC CAPITAL LETTER EN"},{"char":"&#x41E",desc:"CYRILLIC CAPITAL LETTER O"},{"char":"&#x41F",desc:"CYRILLIC CAPITAL LETTER PE"},{"char":"&#x420",desc:"CYRILLIC CAPITAL LETTER ER"},{"char":"&#x421",desc:"CYRILLIC CAPITAL LETTER ES"},{"char":"&#x422",desc:"CYRILLIC CAPITAL LETTER TE"},{"char":"&#x423",desc:"CYRILLIC CAPITAL LETTER U"},{"char":"&#x424",desc:"CYRILLIC CAPITAL LETTER EF"},{"char":"&#x425",desc:"CYRILLIC CAPITAL LETTER HA"},{"char":"&#x426",desc:"CYRILLIC CAPITAL LETTER TSE"},{"char":"&#x427",desc:"CYRILLIC CAPITAL LETTER CHE"},{"char":"&#x428",desc:"CYRILLIC CAPITAL LETTER SHA"},{"char":"&#x429",desc:"CYRILLIC CAPITAL LETTER SHCHA"},{"char":"&#x42A",desc:"CYRILLIC CAPITAL LETTER HARD SIGN"},{"char":"&#x42B",desc:"CYRILLIC CAPITAL LETTER YERU"},{"char":"&#x42C",desc:"CYRILLIC CAPITAL LETTER SOFT SIGN"},{"char":"&#x42D",desc:"CYRILLIC CAPITAL LETTER E"},{"char":"&#x42E",desc:"CYRILLIC CAPITAL LETTER YU"},{"char":"&#x42F",desc:"CYRILLIC CAPITAL LETTER YA"},{"char":"&#x430",desc:"CYRILLIC SMALL LETTER A"},{"char":"&#x431",desc:"CYRILLIC SMALL LETTER BE"},{"char":"&#x432",desc:"CYRILLIC SMALL LETTER VE"},{"char":"&#x433",desc:"CYRILLIC SMALL LETTER GHE"},{"char":"&#x434",desc:"CYRILLIC SMALL LETTER DE"},{"char":"&#x435",desc:"CYRILLIC SMALL LETTER IE"},{"char":"&#x436",desc:"CYRILLIC SMALL LETTER ZHE"},{"char":"&#x437",desc:"CYRILLIC SMALL LETTER ZE"},{"char":"&#x438",desc:"CYRILLIC SMALL LETTER I"},{"char":"&#x439",desc:"CYRILLIC SMALL LETTER SHORT I"},{"char":"&#x43A",desc:"CYRILLIC SMALL LETTER KA"},{"char":"&#x43B",desc:"CYRILLIC SMALL LETTER EL"},{"char":"&#x43C",desc:"CYRILLIC SMALL LETTER EM"},{"char":"&#x43D",desc:"CYRILLIC SMALL LETTER EN"},{"char":"&#x43E",desc:"CYRILLIC SMALL LETTER O"},{"char":"&#x43F",desc:"CYRILLIC SMALL LETTER PE"},{"char":"&#x440",desc:"CYRILLIC SMALL LETTER ER"},{"char":"&#x441",desc:"CYRILLIC SMALL LETTER ES"},{"char":"&#x442",desc:"CYRILLIC SMALL LETTER TE"},{"char":"&#x443",desc:"CYRILLIC SMALL LETTER U"},{"char":"&#x444",desc:"CYRILLIC SMALL LETTER EF"},{"char":"&#x445",desc:"CYRILLIC SMALL LETTER HA"},{"char":"&#x446",desc:"CYRILLIC SMALL LETTER TSE"},{"char":"&#x447",desc:"CYRILLIC SMALL LETTER CHE"},{"char":"&#x448",desc:"CYRILLIC SMALL LETTER SHA"},{"char":"&#x449",desc:"CYRILLIC SMALL LETTER SHCHA"},{"char":"&#x44A",desc:"CYRILLIC SMALL LETTER HARD SIGN"},{"char":"&#x44B",desc:"CYRILLIC SMALL LETTER YERU"},{"char":"&#x44C",desc:"CYRILLIC SMALL LETTER SOFT SIGN"},{"char":"&#x44D",desc:"CYRILLIC SMALL LETTER E"},{"char":"&#x44E",desc:"CYRILLIC SMALL LETTER YU"},{"char":"&#x44F",desc:"CYRILLIC SMALL LETTER YA"},{"char":"&#x450",desc:"CYRILLIC SMALL LETTER IE WITH GRAVE"},{"char":"&#x451",desc:"CYRILLIC SMALL LETTER IO"},{"char":"&#x452",desc:"CYRILLIC SMALL LETTER DJE"},{"char":"&#x453",desc:"CYRILLIC SMALL LETTER GJE"},{"char":"&#x454",desc:"CYRILLIC SMALL LETTER UKRAINIAN IE"},{"char":"&#x455",desc:"CYRILLIC SMALL LETTER DZE"},{"char":"&#x456",desc:"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"&#x457",desc:"CYRILLIC SMALL LETTER YI"},{"char":"&#x458",desc:"CYRILLIC SMALL LETTER JE"},{"char":"&#x459",desc:"CYRILLIC SMALL LETTER LJE"},{"char":"&#x45A",desc:"CYRILLIC SMALL LETTER NJE"},{"char":"&#x45B",desc:"CYRILLIC SMALL LETTER TSHE"},{"char":"&#x45C",desc:"CYRILLIC SMALL LETTER KJE"},{"char":"&#x45D",desc:"CYRILLIC SMALL LETTER I WITH GRAVE"},{"char":"&#x45E",desc:"CYRILLIC SMALL LETTER SHORT U"},{"char":"&#x45F",desc:"CYRILLIC SMALL LETTER DZHE"}]},{title:"Punctuation",list:[{"char":"&ndash;",desc:"EN DASH"},{"char":"&mdash;",desc:"EM DASH"},{"char":"&lsquo;",desc:"LEFT SINGLE QUOTATION MARK"},{"char":"&rsquo;",desc:"RIGHT SINGLE QUOTATION MARK"},{"char":"&sbquo;",desc:"SINGLE LOW-9 QUOTATION MARK"},{"char":"&ldquo;",desc:"LEFT DOUBLE QUOTATION MARK"},{"char":"&rdquo;",desc:"RIGHT DOUBLE QUOTATION MARK"},{"char":"&bdquo;",desc:"DOUBLE LOW-9 QUOTATION MARK"},{"char":"&dagger;",desc:"DAGGER"},{"char":"&Dagger;",desc:"DOUBLE DAGGER"},{"char":"&bull;",desc:"BULLET"},{"char":"&hellip;",desc:"HORIZONTAL ELLIPSIS"},{"char":"&permil;",desc:"PER MILLE SIGN"},{"char":"&prime;",desc:"PRIME"},{"char":"&Prime;",desc:"DOUBLE PRIME"},{"char":"&lsaquo;",desc:"SINGLE LEFT-POINTING ANGLE QUOTATION MARK"},{"char":"&rsaquo;",desc:"SINGLE RIGHT-POINTING ANGLE QUOTATION MARK"},{"char":"&oline;",desc:"OVERLINE"},{"char":"&frasl;",desc:"FRACTION SLASH"}]},{title:"Currency",list:[{"char":"&#x20A0",desc:"EURO-CURRENCY SIGN"},{"char":"&#x20A1",desc:"COLON SIGN"},{"char":"&#x20A2",desc:"CRUZEIRO SIGN"},{"char":"&#x20A3",desc:"FRENCH FRANC SIGN"},{"char":"&#x20A4",desc:"LIRA SIGN"},{"char":"&#x20A5",desc:"MILL SIGN"},{"char":"&#x20A6",desc:"NAIRA SIGN"},{"char":"&#x20A7",desc:"PESETA SIGN"},{"char":"&#x20A8",desc:"RUPEE SIGN"},{"char":"&#x20A9",desc:"WON SIGN"},{"char":"&#x20AA",desc:"NEW SHEQEL SIGN"},{"char":"&#x20AB",desc:"DONG SIGN"},{"char":"&#x20AC",desc:"EURO SIGN"},{"char":"&#x20AD",desc:"KIP SIGN"},{"char":"&#x20AE",desc:"TUGRIK SIGN"},{"char":"&#x20AF",desc:"DRACHMA SIGN"},{"char":"&#x20B0",desc:"GERMAN PENNY SYMBOL"},{"char":"&#x20B1",desc:"PESO SIGN"},{"char":"&#x20B2",desc:"GUARANI SIGN"},{"char":"&#x20B3",desc:"AUSTRAL SIGN"},{"char":"&#x20B4",desc:"HRYVNIA SIGN"},{"char":"&#x20B5",desc:"CEDI SIGN"},{"char":"&#x20B6",desc:"LIVRE TOURNOIS SIGN"},{"char":"&#x20B7",desc:"SPESMILO SIGN"},{"char":"&#x20B8",desc:"TENGE SIGN"},{"char":"&#x20B9",desc:"INDIAN RUPEE SIGN"}]},{title:"Arrows",list:[{"char":"&#x2190",desc:"LEFTWARDS ARROW"},{"char":"&#x2191",desc:"UPWARDS ARROW"},{"char":"&#x2192",desc:"RIGHTWARDS ARROW"},{"char":"&#x2193",desc:"DOWNWARDS ARROW"},{"char":"&#x2194",desc:"LEFT RIGHT ARROW"},{"char":"&#x2195",desc:"UP DOWN ARROW"},{"char":"&#x2196",desc:"NORTH WEST ARROW"},{"char":"&#x2197",desc:"NORTH EAST ARROW"},{"char":"&#x2198",desc:"SOUTH EAST ARROW"},{"char":"&#x2199",desc:"SOUTH WEST ARROW"},{"char":"&#x219A",desc:"LEFTWARDS ARROW WITH STROKE"},{"char":"&#x219B",desc:"RIGHTWARDS ARROW WITH STROKE"},{"char":"&#x219C",desc:"LEFTWARDS WAVE ARROW"},{"char":"&#x219D",desc:"RIGHTWARDS WAVE ARROW"},{"char":"&#x219E",desc:"LEFTWARDS TWO HEADED ARROW"},{"char":"&#x219F",desc:"UPWARDS TWO HEADED ARROW"},{"char":"&#x21A0",desc:"RIGHTWARDS TWO HEADED ARROW"},{"char":"&#x21A1",desc:"DOWNWARDS TWO HEADED ARROW"},{"char":"&#x21A2",desc:"LEFTWARDS ARROW WITH TAIL"},{"char":"&#x21A3",desc:"RIGHTWARDS ARROW WITH TAIL"},{"char":"&#x21A4",desc:"LEFTWARDS ARROW FROM BAR"},{"char":"&#x21A5",desc:"UPWARDS ARROW FROM BAR"},{"char":"&#x21A6",desc:"RIGHTWARDS ARROW FROM BAR"},{"char":"&#x21A7",desc:"DOWNWARDS ARROW FROM BAR"},{"char":"&#x21A8",desc:"UP DOWN ARROW WITH BASE"},{"char":"&#x21A9",desc:"LEFTWARDS ARROW WITH HOOK"},{"char":"&#x21AA",desc:"RIGHTWARDS ARROW WITH HOOK"},{"char":"&#x21AB",desc:"LEFTWARDS ARROW WITH LOOP"},{"char":"&#x21AC",desc:"RIGHTWARDS ARROW WITH LOOP"},{"char":"&#x21AD",desc:"LEFT RIGHT WAVE ARROW"},{"char":"&#x21AE",desc:"LEFT RIGHT ARROW WITH STROKE"},{"char":"&#x21AF",desc:"DOWNWARDS ZIGZAG ARROW"},{"char":"&#x21B0",desc:"UPWARDS ARROW WITH TIP LEFTWARDS"},{"char":"&#x21B1",desc:"UPWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"&#x21B2",desc:"DOWNWARDS ARROW WITH TIP LEFTWARDS"},{"char":"&#x21B3",desc:"DOWNWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"&#x21B4",desc:"RIGHTWARDS ARROW WITH CORNER DOWNWARDS"},{"char":"&#x21B5",desc:"DOWNWARDS ARROW WITH CORNER LEFTWARDS"},{"char":"&#x21B6",desc:"ANTICLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"&#x21B7",desc:"CLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"&#x21B8",desc:"NORTH WEST ARROW TO LONG BAR"},{"char":"&#x21B9",desc:"LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR"},{"char":"&#x21BA",desc:"ANTICLOCKWISE OPEN CIRCLE ARROW"},{"char":"&#x21BB",desc:"CLOCKWISE OPEN CIRCLE ARROW"},{"char":"&#x21BC",desc:"LEFTWARDS HARPOON WITH BARB UPWARDS"},{"char":"&#x21BD",desc:"LEFTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"&#x21BE",desc:"UPWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"&#x21BF",desc:"UPWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"&#x21C0",desc:"RIGHTWARDS HARPOON WITH BARB UPWARDS"},{"char":"&#x21C1",desc:"RIGHTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"&#x21C2",desc:"DOWNWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"&#x21C3",desc:"DOWNWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"&#x21C4",desc:"RIGHTWARDS ARROW OVER LEFTWARDS ARROW"},{"char":"&#x21C5",desc:"UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW"},{"char":"&#x21C6",desc:"LEFTWARDS ARROW OVER RIGHTWARDS ARROW"},{"char":"&#x21C7",desc:"LEFTWARDS PAIRED ARROWS"},{"char":"&#x21C8",desc:"UPWARDS PAIRED ARROWS"},{"char":"&#x21C9",desc:"RIGHTWARDS PAIRED ARROWS"},{"char":"&#x21CA",desc:"DOWNWARDS PAIRED ARROWS"},{"char":"&#x21CB",desc:"LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON"},{"char":"&#x21CC",desc:"RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON"},{"char":"&#x21CD",desc:"LEFTWARDS DOUBLE ARROW WITH STROKE"},{"char":"&#x21CE",desc:"LEFT RIGHT DOUBLE ARROW WITH STROKE"},{"char":"&#x21CF",desc:"RIGHTWARDS DOUBLE ARROW WITH STROKE"},{"char":"&#x21D0",desc:"LEFTWARDS DOUBLE ARROW"},{"char":"&#x21D1",desc:"UPWARDS DOUBLE ARROW"},{"char":"&#x21D2",desc:"RIGHTWARDS DOUBLE ARROW"},{"char":"&#x21D3",desc:"DOWNWARDS DOUBLE ARROW"},{"char":"&#x21D4",desc:"LEFT RIGHT DOUBLE ARROW"},{"char":"&#x21D5",desc:"UP DOWN DOUBLE ARROW"},{"char":"&#x21D6",desc:"NORTH WEST DOUBLE ARROW"},{"char":"&#x21D7",desc:"NORTH EAST DOUBLE ARROW"},{"char":"&#x21D8",desc:"SOUTH EAST DOUBLE ARROW"},{"char":"&#x21D9",desc:"SOUTH WEST DOUBLE ARROW"},{"char":"&#x21DA",desc:"LEFTWARDS TRIPLE ARROW"},{"char":"&#x21DB",desc:"RIGHTWARDS TRIPLE ARROW"},{"char":"&#x21DC",desc:"LEFTWARDS SQUIGGLE ARROW"},{"char":"&#x21DD",desc:"RIGHTWARDS SQUIGGLE ARROW"},{"char":"&#x21DE",desc:"UPWARDS ARROW WITH DOUBLE STROKE"},{"char":"&#x21DF",desc:"DOWNWARDS ARROW WITH DOUBLE STROKE"},{"char":"&#x21E0",desc:"LEFTWARDS DASHED ARROW"},{"char":"&#x21E1",desc:"UPWARDS DASHED ARROW"},{"char":"&#x21E2",desc:"RIGHTWARDS DASHED ARROW"},{"char":"&#x21E3",desc:"DOWNWARDS DASHED ARROW"},{"char":"&#x21E4",desc:"LEFTWARDS ARROW TO BAR"},{"char":"&#x21E5",desc:"RIGHTWARDS ARROW TO BAR"},{"char":"&#x21E6",desc:"LEFTWARDS WHITE ARROW"},{"char":"&#x21E7",desc:"UPWARDS WHITE ARROW"},{"char":"&#x21E8",desc:"RIGHTWARDS WHITE ARROW"},{"char":"&#x21E9",desc:"DOWNWARDS WHITE ARROW"},{"char":"&#x21EA",desc:"UPWARDS WHITE ARROW FROM BAR"},{"char":"&#x21EB",desc:"UPWARDS WHITE ARROW ON PEDESTAL"},{"char":"&#x21EC",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR"},{"char":"&#x21ED",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR"},{"char":"&#x21EE",desc:"UPWARDS WHITE DOUBLE ARROW"},{"char":"&#x21EF",desc:"UPWARDS WHITE DOUBLE ARROW ON PEDESTAL"},{"char":"&#x21F0",desc:"RIGHTWARDS WHITE ARROW FROM WALL"},{"char":"&#x21F1",desc:"NORTH WEST ARROW TO CORNER"},{"char":"&#x21F2",desc:"SOUTH EAST ARROW TO CORNER"},{"char":"&#x21F3",desc:"UP DOWN WHITE ARROW"},{"char":"&#x21F4",desc:"RIGHT ARROW WITH SMALL CIRCLE"},{"char":"&#x21F5",desc:"DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW"},{"char":"&#x21F6",desc:"THREE RIGHTWARDS ARROWS"},{"char":"&#x21F7",desc:"LEFTWARDS ARROW WITH VERTICAL STROKE"},{"char":"&#x21F8",desc:"RIGHTWARDS ARROW WITH VERTICAL STROKE"},{"char":"&#x21F9",desc:"LEFT RIGHT ARROW WITH VERTICAL STROKE"},{"char":"&#x21FA",desc:"LEFTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"&#x21FB",desc:"RIGHTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"&#x21FC",desc:"LEFT RIGHT ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"&#x21FD",desc:"LEFTWARDS OPEN-HEADED ARROW"},{"char":"&#x21FE",desc:"RIGHTWARDS OPEN-HEADED ARROW"},{"char":"&#x21FF",desc:"LEFT RIGHT OPEN-HEADED ARROW"}]},{title:"Math",list:[{"char":"&forall;",desc:"FOR ALL"},{"char":"&part;",desc:"PARTIAL DIFFERENTIAL"},{"char":"&exist;",desc:"THERE EXISTS"},{"char":"&empty;",desc:"EMPTY SET"},{"char":"&nabla;",desc:"NABLA"},{"char":"&isin;",desc:"ELEMENT OF"},{"char":"&notin;",desc:"NOT AN ELEMENT OF"},{"char":"&ni;",desc:"CONTAINS AS MEMBER"},{"char":"&prod;",desc:"N-ARY PRODUCT"},{"char":"&sum;",desc:"N-ARY SUMMATION"},{"char":"&minus;",desc:"MINUS SIGN"},{"char":"&lowast;",desc:"ASTERISK OPERATOR"},{"char":"&radic;",desc:"SQUARE ROOT"},{"char":"&prop;",desc:"PROPORTIONAL TO"},{"char":"&infin;",desc:"INFINITY"},{"char":"&ang;",desc:"ANGLE"},{"char":"&and;",desc:"LOGICAL AND"},{"char":"&or;",desc:"LOGICAL OR"},{"char":"&cap;",desc:"INTERSECTION"},{"char":"&cup;",desc:"UNION"},{"char":"&int;",desc:"INTEGRAL"},{"char":"&there4;",desc:"THEREFORE"},{"char":"&sim;",desc:"TILDE OPERATOR"},{"char":"&cong;",desc:"APPROXIMATELY EQUAL TO"},{"char":"&asymp;",desc:"ALMOST EQUAL TO"},{"char":"&ne;",desc:"NOT EQUAL TO"},{"char":"&equiv;",desc:"IDENTICAL TO"},{"char":"&le;",desc:"LESS-THAN OR EQUAL TO"},{"char":"&ge;",desc:"GREATER-THAN OR EQUAL TO"},{"char":"&sub;",desc:"SUBSET OF"},{"char":"&sup;",desc:"SUPERSET OF"},{"char":"&nsub;",desc:"NOT A SUBSET OF"},{"char":"&sube;",desc:"SUBSET OF OR EQUAL TO"},{"char":"&supe;",desc:"SUPERSET OF OR EQUAL TO"},{"char":"&oplus;",desc:"CIRCLED PLUS"},{"char":"&otimes;",desc:"CIRCLED TIMES"},{"char":"&perp;",desc:"UP TACK"}]},{title:"Misc",list:[{"char":"&spades;",desc:"BLACK SPADE SUIT"},{"char":"&clubs;",desc:"BLACK CLUB SUIT"},{"char":"&hearts;",desc:"BLACK HEART SUIT"},{"char":"&diams;",desc:"BLACK DIAMOND SUIT"},{"char":"&#x2669",desc:"QUARTER NOTE"},{"char":"&#x266A",desc:"EIGHTH NOTE"},{"char":"&#x266B",desc:"BEAMED EIGHTH NOTES"},{"char":"&#x266C",desc:"BEAMED SIXTEENTH NOTES"},{"char":"&#x266D",desc:"MUSIC FLAT SIGN"},{"char":"&#x266E",desc:"MUSIC NATURAL SIGN"},{"char":"&#x2600",desc:"BLACK SUN WITH RAYS"},{"char":"&#x2601",desc:"CLOUD"},{"char":"&#x2602",desc:"UMBRELLA"},{"char":"&#x2603",desc:"SNOWMAN"},{"char":"&#x2615",desc:"HOT BEVERAGE"},{"char":"&#x2618",desc:"SHAMROCK"},{"char":"&#x262F",desc:"YIN YANG"},{"char":"&#x2714",desc:"HEAVY CHECK MARK"},{"char":"&#x2716",desc:"HEAVY MULTIPLICATION X"},{"char":"&#x2744",desc:"SNOWFLAKE"},{"char":"&#x275B",desc:"HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"&#x275C",desc:"HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT"},{"char":"&#x275D",desc:"HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"&#x275E",desc:"HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT"},{"char":"&#x2764",desc:"HEAVY BLACK HEART"}]}]}),E.FE.PLUGINS.specialCharacters=function(c){function T(E,T){c.events.disableBlur(),E.focus(),T.preventDefault(),T.stopPropagation()}var R,L,A="special_characters";return{_init:function(){},show:function(){if(!R){var I="<h4>"+c.language.translate("Special Characters")+"</h4>",a=function(){for(var E='<div class="fr-special-characters-modal">',T=0;T<c.opts.specialCharactersSets.length;T++){for(var R=c.opts.specialCharactersSets[T],L=R.list,A='<div class="fr-special-characters-list"><p class="fr-special-characters-title">'+c.language.translate(R.title)+"</p>",I=0;I<L.length;I++){var a=L[I];A+='<span class="fr-command fr-special-character" tabIndex="-1" role="button" value="'+a["char"]+'" title="'+a.desc+'">'+a["char"]+'<span class="fr-sr-only">'+c.language.translate(a.desc)+"&nbsp;&nbsp;&nbsp;</span></span>"}E+=A+"</div>"}return E+="</div>"}(),e=c.modals.create(A,I,a);R=e.$modal,e.$head,L=e.$body,c.events.$on(E(c.o_win),"resize",function(){(R.data("instance")||c).modals.resize(A)}),c.events.bindClick(L,".fr-special-character",function(T){var L=R.data("instance")||c,A=E(T.currentTarget);L.specialCharacters.insert(A)}),c.events.$on(L,"keydown",function(A){var I=A.which,a=L.find("span.fr-special-character:focus:first");if(!(a.length||I!=E.FE.KEYCODE.F10||c.keys.ctrlKey(A)||A.shiftKey)&&A.altKey)return T(L.find("span.fr-special-character:first"),A),!1;if(I==E.FE.KEYCODE.TAB||I==E.FE.KEYCODE.ARROW_LEFT||I==E.FE.KEYCODE.ARROW_RIGHT){var e=null,r=null,s=!1;return I==E.FE.KEYCODE.ARROW_LEFT||I==E.FE.KEYCODE.ARROW_RIGHT?(r=I==E.FE.KEYCODE.ARROW_RIGHT,s=!0):r=!A.shiftKey,a.length?(s&&(e=r?a.nextAll("span.fr-special-character:first"):a.prevAll("span.fr-special-character:first")),e&&e.length||(e=r?a.parent().next().find("span.fr-special-character:first"):a.parent().prev().find("span.fr-special-character:"+(s?"last":"first"))).length||(e=L.find("span.fr-special-character:"+(r?"first":"last")))):e=L.find("span.fr-special-character:"+(r?"first":"last")),T(e,A),!1}return I==E.FE.KEYCODE.ENTER&&a.length?void(R.data("instance")||c).specialCharacters.insert(a):!0},!0)}c.modals.show(A),c.modals.resize(A)},hide:function(){c.modals.hide(A)},insert:function(E){c.specialCharacters.hide(),c.undo.saveStep(),c.html.insert(E.attr("value"),!0),c.undo.saveStep()}}},E.FroalaEditor.DefineIcon("specialCharacters",{template:"text",NAME:"&#937;"}),E.FE.RegisterCommand("specialCharacters",{title:"Special Characters",icon:"specialCharacters",undo:!1,focus:!1,modal:!0,callback:function(){this.specialCharacters.show()},plugin:"specialCharacters",showOnMobile:!0})})});
;/*!node_modules/froala-editor/js/plugins/table.min.js*/
define("node_modules/froala-editor/js/plugins/table.min",function(e,t,l){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof l&&l.exports?l.exports=function(l,a){return void 0===a&&(a="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(l)),t(a)}:t(window.jQuery)}(function(e){e.extend(e.FE.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),e.extend(e.FE.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","|","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"100%",tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),e.FE.PLUGINS.table=function(t){function l(){var e=b();if(e){var l=t.popups.get("table.edit");if(l||(l=o()),l){t.popups.setContainer("table.edit",t.$sc);var a=R(e),s=(a.left+a.right)/2,n=a.bottom;t.popups.show("table.edit",s,n,a.bottom-a.top),t.edit.isDisabled()&&(1<P().length&&t.toolbar.disable(),t.$el.removeClass("fr-no-selection"),t.edit.on(),t.button.bulkRefresh(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell:last").get(0)),t.selection.restore())}}}function a(){var l,s,n,r,o=b();if(o){var i=t.popups.get("table.colors");i||(i=function(){var l="";0<t.opts.tableColorsButtons.length&&(l='<div class="fr-buttons fr-table-colors-buttons">'+t.button.buildList(t.opts.tableColorsButtons)+"</div>");var s="";t.opts.colorsHEXInput&&(s='<div class="fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'+t.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="tableCellBackgroundCustomColor" tabIndex="2" role="button">'+t.language.translate("OK")+"</button></div></div>");var n={buttons:l,colors:function(){for(var e='<div class="fr-table-colors">',l=0;l<t.opts.tableColors.length;l++)0!==l&&l%t.opts.tableColorsStep==0&&(e+="<br>"),e+="REMOVE"!=t.opts.tableColors[l]?'<span class="fr-command" style="background: '+t.opts.tableColors[l]+';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="'+t.opts.tableColors[l]+'"><span class="fr-sr-only">'+t.language.translate("Color")+" "+t.opts.tableColors[l]+"&nbsp;&nbsp;&nbsp;</span></span>":'<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'+t.language.translate("Clear Formatting")+'">'+t.icon.create("tableColorRemove")+'<span class="fr-sr-only">'+t.language.translate("Clear Formatting")+"</span></span>";return e+="</div>"}(),custom_color:s},r=t.popups.create("table.colors",n);return t.events.$on(t.$wp,"scroll.table-colors",function(){t.popups.isVisible("table.colors")&&a()}),o=r,t.events.on("popup.tab",function(l){var a=e(l.currentTarget);if(!t.popups.isVisible("table.colors")||!a.is("span"))return!0;var s=l.which,n=!0;if(e.FE.KEYCODE.TAB==s){var r=o.find(".fr-buttons");n=!t.accessibility.focusToolbar(r,!!l.shiftKey)}else if(e.FE.KEYCODE.ARROW_UP==s||e.FE.KEYCODE.ARROW_DOWN==s||e.FE.KEYCODE.ARROW_LEFT==s||e.FE.KEYCODE.ARROW_RIGHT==s){var i=a.parent().find("span.fr-command"),f=i.index(a),c=t.opts.colorsStep,d=Math.floor(i.length/c),p=f%c,h=Math.floor(f/c),u=h*c+p,b=d*c;e.FE.KEYCODE.ARROW_UP==s?u=((u-c)%b+b)%b:e.FE.KEYCODE.ARROW_DOWN==s?u=(u+c)%b:e.FE.KEYCODE.ARROW_LEFT==s?u=((u-1)%b+b)%b:e.FE.KEYCODE.ARROW_RIGHT==s&&(u=(u+1)%b);var g=e(i.get(u));t.events.disableBlur(),g.focus(),n=!1}else e.FE.KEYCODE.ENTER==s&&(t.button.exec(a),n=!1);return!1===n&&(l.preventDefault(),l.stopPropagation()),n},!0),r;var o}()),t.popups.setContainer("table.colors",t.$sc);var f=R(o),c=(f.left+f.right)/2,d=f.bottom;l=t.popups.get("table.colors"),s=t.$el.find(".fr-selected-cell:first"),n=t.helpers.RGBToHex(s.css("background-color")),r=l.find(".fr-table-colors-hex-layer input"),l.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),l.find('span[data-param1="'+n+'"]').addClass("fr-selected-color fr-active-item"),r.val(n).trigger("change"),t.popups.show("table.colors",c,d,f.bottom-f.top)}}function s(){0===P().length&&t.toolbar.enable()}function n(l){if(l)return t.popups.onHide("table.insert",function(){t.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseenter")}),!0;var a="";0<t.opts.tableInsertButtons.length&&(a='<div class="fr-buttons">'+t.button.buildList(t.opts.tableInsertButtons)+"</div>");var s,n={buttons:a,rows_columns:function(){for(var e='<div class="fr-table-size"><div class="fr-table-size-info">1 &times; 1</div><div class="fr-select-table-size">',l=1;l<=t.opts.tableInsertMaxSize;l++){for(var a=1;a<=t.opts.tableInsertMaxSize;a++){var s="inline-block";l>2&&!t.helpers.isMobile()&&(s="none");var n="fr-table-cell ";1==l&&1==a&&(n+=" hover"),e+='<span class="fr-command '+n+'" tabIndex="-1" data-cmd="tableInsert" data-row="'+l+'" data-col="'+a+'" data-param1="'+l+'" data-param2="'+a+'" style="display: '+s+';" role="button"><span></span><span class="fr-sr-only">'+l+" &times; "+a+"&nbsp;&nbsp;&nbsp;</span></span>"}e+='<div class="new-line"></div>'}return e+="</div></div>"}()},o=t.popups.create("table.insert",n);return t.events.$on(o,"mouseenter",".fr-table-size .fr-select-table-size .fr-table-cell",function(t){r(e(t.currentTarget))},!0),s=o,t.events.$on(s,"focus","[tabIndex]",function(t){var l=e(t.currentTarget);r(l)}),t.events.on("popup.tab",function(l){var a=e(l.currentTarget);if(!t.popups.isVisible("table.insert")||!a.is("span, a"))return!0;var s,n=l.which;if(e.FE.KEYCODE.ARROW_UP==n||e.FE.KEYCODE.ARROW_DOWN==n||e.FE.KEYCODE.ARROW_LEFT==n||e.FE.KEYCODE.ARROW_RIGHT==n){if(a.is("span.fr-table-cell")){var o=a.parent().find("span.fr-table-cell"),i=o.index(a),f=t.opts.tableInsertMaxSize,c=i%f,d=Math.floor(i/f);e.FE.KEYCODE.ARROW_UP==n?d=Math.max(0,d-1):e.FE.KEYCODE.ARROW_DOWN==n?d=Math.min(t.opts.tableInsertMaxSize-1,d+1):e.FE.KEYCODE.ARROW_LEFT==n?c=Math.max(0,c-1):e.FE.KEYCODE.ARROW_RIGHT==n&&(c=Math.min(t.opts.tableInsertMaxSize-1,c+1));var p=d*f+c,h=e(o.get(p));r(h),t.events.disableBlur(),h.focus(),s=!1}}else e.FE.KEYCODE.ENTER==n&&(t.button.exec(a),s=!1);return!1===s&&(l.preventDefault(),l.stopPropagation()),s},!0),o}function r(e){var l=e.data("row"),a=e.data("col"),s=e.parent();s.siblings(".fr-table-size-info").html(l+" &times; "+a),s.find("> span").removeClass("hover fr-active-item");for(var n=1;n<=t.opts.tableInsertMaxSize;n++)for(var r=0;r<=t.opts.tableInsertMaxSize;r++){var o=s.find('> span[data-row="'+n+'"][data-col="'+r+'"]');l>=n&&a>=r?o.addClass("hover"):l+1>=n||2>=n&&!t.helpers.isMobile()?o.css("display","inline-block"):n>2&&!t.helpers.isMobile()&&o.css("display","none")}e.addClass("fr-active-item")}function o(e){if(e)return t.popups.onHide("table.edit",s),!0;if(0<t.opts.tableEditButtons.length){var a={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.tableEditButtons)+"</div>"},n=t.popups.create("table.edit",a);return t.events.$on(t.$wp,"scroll.table-edit",function(){t.popups.isVisible("table.edit")&&l()}),n}return!1}function i(){if(0<P().length){var e=V();t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),t.selection.restore(),t.popups.hide("table.edit"),e.remove(),t.toolbar.enable()}}function f(a){var s=V();if(0<s.length){if(0<t.$el.find("th.fr-selected-cell").length&&"above"==a)return;var n,r,o,i=b(),f=C(i);r="above"==a?f.min_i:f.max_i;var c="<tr>";for(n=0;n<i[r].length;n++)if("below"==a&&r<i.length-1&&i[r][n]==i[r+1][n]||"above"==a&&r>0&&i[r][n]==i[r-1][n]){if(0===n||n>0&&i[r][n]!=i[r][n-1]){var d=e(i[r][n]);d.attr("rowspan",parseInt(d.attr("rowspan"),10)+1)}}else c+='<td style="'+e(i[r][n]).attr("style")+'" ><br></td>';c+="</tr>",o=e(0<t.$el.find("th.fr-selected-cell").length&&"below"==a?s.find("tbody").not(s.find("table tbody")):s.find("tr").not(s.find("table tr")).get(r)),"below"==a?"TBODY"==o.prop("tagName")?o.prepend(c):o.after(c):"above"==a&&(o.before(c),t.popups.isVisible("table.edit")&&l())}}function c(e,t,l){var a,s,n,r,o,i=0,f=b(l);if(e<(t=Math.min(t,f[0].length-1)))for(s=e;t>=s;s++)if(!(s>e&&f[0][s]==f[0][s-1])&&1<(r=Math.min(parseInt(f[0][s].getAttribute("colspan"),10)||1,t-e+1))&&f[0][s]==f[0][s+1])for(i=r-1,a=1;a<f.length;a++)if(f[a][s]!=f[a-1][s]){for(n=s;s+r>n;n++)if(1<(o=parseInt(f[a][n].getAttribute("colspan"),10)||1)&&f[a][n]==f[a][n+1])n+=i=Math.min(i,o-1);else if(!(i=Math.max(0,i-1)))break;if(!i)break}i&&p(f,i,"colspan",0,f.length-1,e,t)}function d(e,t,l){var a,s,n,r,o,i=0,f=b(l);if(e<(t=Math.min(t,f.length-1)))for(a=e;t>=a;a++)if(!(a>e&&f[a][0]==f[a-1][0])&&1<(r=Math.min(parseInt(f[a][0].getAttribute("rowspan"),10)||1,t-e+1))&&f[a][0]==f[a+1][0])for(i=r-1,s=1;s<f[0].length;s++)if(f[a][s]!=f[a][s-1]){for(n=a;a+r>n;n++)if(1<(o=parseInt(f[n][s].getAttribute("rowspan"),10)||1)&&f[n][s]==f[n+1][s])n+=i=Math.min(i,o-1);else if(!(i=Math.max(0,i-1)))break;if(!i)break}i&&p(f,i,"rowspan",e,t,0,f[0].length-1)}function p(e,t,l,a,s,n,r){var o,i,f;for(o=a;s>=o;o++)for(i=n;r>=i;i++)o>a&&e[o][i]==e[o-1][i]||i>n&&e[o][i]==e[o][i-1]||1<(f=parseInt(e[o][i].getAttribute(l),10)||1)&&(f-t>1?e[o][i].setAttribute(l,f-t):e[o][i].removeAttribute(l))}function h(e,t,l,a,s){d(e,t,s),c(l,a,s)}function u(e){var a=t.$el.find(".fr-selected-cell");"REMOVE"!=e?a.css("background-color",t.helpers.HEXtoRGB(e)):a.css("background-color",""),l()}function b(t){var l=[];return null==(t=t||null)&&0<P().length&&(t=V()),t&&t.find("tr:visible").not(t.find("table tr")).each(function(t,a){var s=e(a),n=0;s.find("> th, > td").each(function(a,s){for(var r=e(s),o=parseInt(r.attr("colspan"),10)||1,i=parseInt(r.attr("rowspan"),10)||1,f=t;t+i>f;f++)for(var c=n;n+o>c;c++)l[f]||(l[f]=[]),l[f][c]?n++:l[f][c]=s;n+=o})}),l}function g(e,t){for(var l=0;l<t.length;l++)for(var a=0;a<t[l].length;a++)if(t[l][a]==e)return{row:l,col:a}}function m(e,t,l){for(var a=e+1,s=t+1;a<l.length;){if(l[a][t]!=l[e][t]){a--;break}a++}for(a==l.length&&a--;s<l[e].length;){if(l[e][s]!=l[e][t]){s--;break}s++}return s==l[e].length&&s--,{row:a,col:s}}function v(){t.el.querySelector(".fr-cell-fixed")&&t.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")&&t.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function E(){var l=t.$el.find(".fr-selected-cell");0<l.length&&l.each(function(){var t=e(this);t.removeClass("fr-selected-cell"),""===t.attr("class")&&t.removeAttr("class")}),v()}function w(){t.events.disableBlur(),t.selection.clear(),t.$el.addClass("fr-no-selection"),t.$el.blur(),t.events.enableBlur()}function C(e){var l=t.$el.find(".fr-selected-cell");if(0<l.length){var a,s=e.length,n=0,r=e[0].length,o=0;for(a=0;a<l.length;a++){var i=g(l[a],e),f=m(i.row,i.col,e);s=Math.min(i.row,s),n=Math.max(f.row,n),r=Math.min(i.col,r),o=Math.max(f.col,o)}return{min_i:s,max_i:n,min_j:r,max_j:o}}return null}function R(t){var l=C(t),a=e(t[l.min_i][l.min_j]),s=e(t[l.min_i][l.max_j]),n=e(t[l.max_i][l.min_j]);return{left:a.length&&a.offset().left,right:s.length&&s.offset().left+s.outerWidth(),top:a.length&&a.offset().top,bottom:n.length&&n.offset().top+n.outerHeight()}}function O(l,a){if(e(l).is(a))E(),e(l).addClass("fr-selected-cell");else{w(),t.edit.off();var s=b(),n=g(l,s),r=g(a,s),o=function c(t,l,a,s,n){var r,o,i,f,d=t,p=l,h=a,u=s;for(r=d;p>=r;r++)(1<(parseInt(e(n[r][h]).attr("rowspan"),10)||1)||1<(parseInt(e(n[r][h]).attr("colspan"),10)||1))&&(f=m((i=g(n[r][h],n)).row,i.col,n),d=Math.min(i.row,d),p=Math.max(f.row,p),h=Math.min(i.col,h),u=Math.max(f.col,u)),(1<(parseInt(e(n[r][u]).attr("rowspan"),10)||1)||1<(parseInt(e(n[r][u]).attr("colspan"),10)||1))&&(f=m((i=g(n[r][u],n)).row,i.col,n),d=Math.min(i.row,d),p=Math.max(f.row,p),h=Math.min(i.col,h),u=Math.max(f.col,u));for(o=h;u>=o;o++)(1<(parseInt(e(n[d][o]).attr("rowspan"),10)||1)||1<(parseInt(e(n[d][o]).attr("colspan"),10)||1))&&(f=m((i=g(n[d][o],n)).row,i.col,n),d=Math.min(i.row,d),p=Math.max(f.row,p),h=Math.min(i.col,h),u=Math.max(f.col,u)),(1<(parseInt(e(n[p][o]).attr("rowspan"),10)||1)||1<(parseInt(e(n[p][o]).attr("colspan"),10)||1))&&(f=m((i=g(n[p][o],n)).row,i.col,n),d=Math.min(i.row,d),p=Math.max(f.row,p),h=Math.min(i.col,h),u=Math.max(f.col,u));return d==t&&p==l&&h==a&&u==s?{min_i:t,max_i:l,min_j:a,max_j:s}:c(d,p,h,u,n)}(Math.min(n.row,r.row),Math.max(n.row,r.row),Math.min(n.col,r.col),Math.max(n.col,r.col),s);E(),l.classList.add("fr-cell-fixed"),a.classList.add("fr-cell-handler");for(var i=o.min_i;i<=o.max_i;i++)for(var f=o.min_j;f<=o.max_j;f++)e(s[i][f]).addClass("fr-selected-cell")}}function A(l){var a=null,s=e(l.target);return"TD"==l.target.tagName||"TH"==l.target.tagName?a=l.target:0<s.closest("td",s.closest("tr")[0]).length?a=s.closest("td",s.closest("tr")[0]).get(0):0<s.closest("th",s.closest("thead")[0]).length&&(a=s.closest("th",s.closest("thead")[0]).get(0)),0===t.$el.find(a).length?null:a}function F(){E(),t.popups.hide("table.edit")}function x(l){var a=A(l);if("false"==e(a).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(0<P().length&&!a&&F(),!t.edit.isDisabled()||t.popups.isVisible("table.edit"))if(1!=l.which||1==l.which&&t.helpers.isMac()&&l.ctrlKey)(3==l.which||1==l.which&&t.helpers.isMac()&&l.ctrlKey)&&a&&F();else if(G=!0,a){0<P().length&&!l.shiftKey&&F(),l.stopPropagation(),t.events.trigger("image.hideResizer"),t.events.trigger("video.hideResizer"),q=!0;var s=a.tagName.toLowerCase();l.shiftKey&&0<t.$el.find(s+".fr-selected-cell").length?e(t.$el.find(s+".fr-selected-cell").closest("table")).is(e(a).closest("table"))?O(J,a):w():((t.keys.ctrlKey(l)||l.shiftKey)&&(1<P().length||0===e(a).find(t.selection.element()).length&&!e(a).is(t.selection.element()))&&w(),J=a,0<t.opts.tableEditButtons.length&&O(J,J))}}function y(a){if(t.popups.areVisible())return!0;if(q||t.$tb.is(a.target)||t.$tb.is(e(a.target).closest(t.$tb.get(0)))||(0<P().length&&t.toolbar.enable(),E()),!(1!=a.which||1==a.which&&t.helpers.isMac()&&a.ctrlKey)&&(G=!1,q&&(q=!1,A(a)||1!=P().length?0<P().length&&(t.selection.isCollapsed()?l():(E(),t.edit.on())):E()),Z)){Z=!1,X.removeClass("fr-moving"),t.$el.removeClass("fr-no-selection"),t.edit.on();var s=parseFloat(X.css("left"))+t.opts.tableResizerOffset+t.$wp.offset().left;t.opts.iframe&&(s-=t.$iframe.offset().left),X.data("release-position",s),X.removeData("max-left"),X.removeData("max-right"),function(){var l=X.data("origin"),a=X.data("release-position");if(l!==a){var s=X.data("first"),n=X.data("second"),r=X.data("table"),o=r.outerWidth();if(t.undo.canDo()||t.undo.saveStep(),null!==s&&null!==n){var i,f,c,d=b(r),p=[],h=[],u=[],g=[];for(i=0;i<d.length;i++)f=e(d[i][s]),c=e(d[i][n]),p[i]=f.outerWidth(),u[i]=c.outerWidth(),h[i]=p[i]/o*100,g[i]=u[i]/o*100;for(i=0;i<d.length;i++)if(f=e(d[i][s]),c=e(d[i][n]),d[i][s]!=d[i][n]){var m=(h[i]*(p[i]+a-l)/p[i]).toFixed(4);f.css("width",m+"%"),c.css("width",(h[i]+g[i]-m).toFixed(4)+"%")}}else{var v,E=r.parent(),w=o/E.width()*100,C=(parseInt(r.css("margin-left"),10)||0)/E.width()*100,R=(parseInt(r.css("margin-right"),10)||0)/E.width()*100;"rtl"==t.opts.direction&&0===n||"rtl"!=t.opts.direction&&0!==n?(v=(o+a-l)/o*w,r.css("margin-right","calc(100% - "+Math.round(v).toFixed(4)+"% - "+Math.round(C).toFixed(4)+"%)")):("rtl"==t.opts.direction&&0!==n||"rtl"!=t.opts.direction&&0===n)&&(v=(o-a+l)/o*w,r.css("margin-left","calc(100% - "+Math.round(v).toFixed(4)+"% - "+Math.round(R).toFixed(4)+"%)")),r.css("width",Math.round(v).toFixed(4)+"%")}t.selection.restore(),t.undo.saveStep(),t.events.trigger("table.resized",[r.get(0)])}X.removeData("origin"),X.removeData("release-position"),X.removeData("first"),X.removeData("second"),X.removeData("table")}(),I()}}function D(l){if(!0===q&&0<t.opts.tableEditButtons.length){if(e(l.currentTarget).closest("table").is(V())){if("TD"==l.currentTarget.tagName&&0===t.$el.find("th.fr-selected-cell").length)return void O(J,l.currentTarget);if("TH"==l.currentTarget.tagName&&0===t.$el.find("td.fr-selected-cell").length)return void O(J,l.currentTarget)}w()}}function $(l,a,s,n){for(var r,o=a;o!=t.el&&"TD"!=o.tagName&&"TH"!=o.tagName&&("up"==n?r=o.previousElementSibling:"down"==n&&(r=o.nextElementSibling),!r);)o=o.parentNode;"TD"==o.tagName||"TH"==o.tagName?function(l,a){for(var s=l;s&&"TABLE"!=s.tagName&&s.parentNode!=t.el;)s=s.parentNode;if(s&&"TABLE"==s.tagName){var n=b(e(s));"up"==a?_(g(l,n),s,n):"down"==a&&M(g(l,n),s,n)}}(o,n):r&&("up"==n&&t.selection.setAtEnd(r),"down"==n&&t.selection.setAtStart(r))}function _(e,l,a){0<e.row?t.selection.setAtEnd(a[e.row-1][e.col]):$(0,l,0,"up")}function M(e,l,a){var s=parseInt(a[e.row][e.col].getAttribute("rowspan"),10)||1;e.row<a.length-s?t.selection.setAtStart(a[e.row+s][e.col]):$(0,l,0,"down")}function I(){X&&(X.find("div").css("opacity",0),X.css("top",0),X.css("left",0),X.css("height",0),X.find("div").css("height",0),X.hide())}function S(){U&&U.removeClass("fr-visible").css("left","-9999px")}function T(l,a){var s=e(a),n=s.closest("table"),r=n.parent();if(a&&"TD"!=a.tagName&&"TH"!=a.tagName&&(0<s.closest("td").length?a=s.closest("td"):0<s.closest("th").length&&(a=s.closest("th"))),!a||"TD"!=a.tagName&&"TH"!=a.tagName)X&&s.get(0)!=X.get(0)&&s.parent().get(0)!=X.get(0)&&t.core.sameInstance(X)&&I();else{if(s=e(a),0===t.$el.find(s).length)return!1;var o=s.offset().left-1,i=o+s.outerWidth();if(Math.abs(l.pageX-o)<=t.opts.tableResizerOffset||Math.abs(i-l.pageX)<=t.opts.tableResizerOffset){var f,c,d,p,h,u=b(n),v=g(a,u),E=m(v.row,v.col,u),C=n.offset().top,R=n.outerHeight()-1;"rtl"!=t.opts.direction?l.pageX-o<=t.opts.tableResizerOffset?(d=o,0<v.col?(p=o-k(v.col-1,u)+t.opts.tableResizingLimit,h=o+k(v.col,u)-t.opts.tableResizingLimit,f=v.col-1,c=v.col):(f=null,c=0,p=n.offset().left-1-parseInt(n.css("margin-left"),10),h=n.offset().left-1+n.width()-u[0].length*t.opts.tableResizingLimit)):i-l.pageX<=t.opts.tableResizerOffset&&(d=i,E.col<u[E.row].length&&u[E.row][E.col+1]?(p=i-k(E.col,u)+t.opts.tableResizingLimit,h=i+k(E.col+1,u)-t.opts.tableResizingLimit,f=E.col,c=E.col+1):(f=E.col,c=null,p=n.offset().left-1+u[0].length*t.opts.tableResizingLimit,h=r.offset().left-1+r.width()+parseFloat(r.css("padding-left")))):i-l.pageX<=t.opts.tableResizerOffset?(d=i,0<v.col?(p=i-k(v.col,u)+t.opts.tableResizingLimit,h=i+k(v.col-1,u)-t.opts.tableResizingLimit,f=v.col,c=v.col-1):(f=null,c=0,p=n.offset().left+u[0].length*t.opts.tableResizingLimit,h=r.offset().left-1+r.width()+parseFloat(r.css("padding-left")))):l.pageX-o<=t.opts.tableResizerOffset&&(d=o,E.col<u[E.row].length&&u[E.row][E.col+1]?(p=o-k(E.col+1,u)+t.opts.tableResizingLimit,h=o+k(E.col,u)-t.opts.tableResizingLimit,f=E.col+1,c=E.col):(f=E.col,c=null,p=r.offset().left+parseFloat(r.css("padding-left")),h=n.offset().left-1+n.width()-u[0].length*t.opts.tableResizingLimit)),X||(t.shared.$table_resizer||(t.shared.$table_resizer=e('<div class="fr-table-resizer"><div></div></div>')),X=t.shared.$table_resizer,t.events.$on(X,"mousedown",function(e){return!t.core.sameInstance(X)||(0<P().length&&F(),1==e.which?(t.selection.save(),Z=!0,X.addClass("fr-moving"),w(),t.edit.off(),X.find("div").css("opacity",1),!1):void 0)}),t.events.$on(X,"mousemove",function(e){return t.core.sameInstance(X)?void(Z&&(t.opts.iframe&&(e.pageX-=t.$iframe.offset().left),L(e))):!0}),t.events.on("shared.destroy",function(){X.html("").removeData().remove(),X=null},!0),t.events.on("destroy",function(){t.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),X.hide().appendTo(e("body:first"))},!0)),X.data("table",n),X.data("first",f),X.data("second",c),X.data("instance",t),t.$wp.append(X);var O=d-t.win.pageXOffset-t.opts.tableResizerOffset-t.$wp.offset().left,A=C-t.$wp.offset().top+t.$wp.scrollTop();t.opts.iframe&&(O+=t.$iframe.offset().left,A+=t.$iframe.offset().top,p+=t.$iframe.offset().left,h+=t.$iframe.offset().left),X.data("max-left",p),X.data("max-right",h),X.data("origin",d-t.win.pageXOffset),X.css("top",A),X.css("left",O),X.css("height",R),X.find("div").css("height",R),X.css("padding-left",t.opts.tableResizerOffset),X.css("padding-right",t.opts.tableResizerOffset),X.show()}else t.core.sameInstance(X)&&I()}}function N(l,a){if(t.$box.find(".fr-line-breaker").is(":visible"))return!1;U||Y(),t.$box.append(U),U.data("instance",t);var s,n=e(a).find("tr:first"),r=l.pageX,o=0,i=0;t.opts.iframe&&(o+=t.$iframe.offset().left-t.helpers.scrollLeft(),i+=t.$iframe.offset().top-t.helpers.scrollTop()),n.find("th, td").each(function(){var l=e(this);return l.offset().left<=r&&r<l.offset().left+l.outerWidth()/2?(s=parseInt(U.find("a").css("width"),10),U.css("top",i+l.offset().top-t.$box.offset().top-s-5),U.css("left",o+l.offset().left-t.$box.offset().left-s/2),U.data("selected-cell",l),U.data("position","before"),U.addClass("fr-visible"),!1):l.offset().left+l.outerWidth()/2<=r&&r<l.offset().left+l.outerWidth()?(s=parseInt(U.find("a").css("width"),10),U.css("top",i+l.offset().top-t.$box.offset().top-s-5),U.css("left",o+l.offset().left-t.$box.offset().left+l.outerWidth()-s/2),U.data("selected-cell",l),U.data("position","after"),U.addClass("fr-visible"),!1):void 0})}function B(l,a){if(t.$box.find(".fr-line-breaker").is(":visible"))return!1;U||Y(),t.$box.append(U),U.data("instance",t);var s,n=e(a),r=l.pageY,o=0,i=0;t.opts.iframe&&(o+=t.$iframe.offset().left-t.helpers.scrollLeft(),i+=t.$iframe.offset().top-t.helpers.scrollTop()),n.find("tr").each(function(){var l=e(this);return l.offset().top<=r&&r<l.offset().top+l.outerHeight()/2?(s=parseInt(U.find("a").css("width"),10),U.css("top",i+l.offset().top-t.$box.offset().top-s/2),U.css("left",o+l.offset().left-t.$box.offset().left-s-5),U.data("selected-cell",l.find("td:first")),U.data("position","above"),U.addClass("fr-visible"),!1):l.offset().top+l.outerHeight()/2<=r&&r<l.offset().top+l.outerHeight()?(s=parseInt(U.find("a").css("width"),10),U.css("top",i+l.offset().top-t.$box.offset().top+l.outerHeight()-s/2),U.css("left",o+l.offset().left-t.$box.offset().left-s-5),U.data("selected-cell",l.find("td:first")),U.data("position","below"),U.addClass("fr-visible"),!1):void 0})}function z(l){Q=null;var a=t.doc.elementFromPoint(l.pageX-t.win.pageXOffset,l.pageY-t.win.pageYOffset);t.opts.tableResizer&&(!t.popups.areVisible()||t.popups.areVisible()&&t.popups.isVisible("table.edit"))&&T(l,a),!t.opts.tableInsertHelper||t.popups.areVisible()||t.$tb.hasClass("fr-inline")&&t.$tb.is(":visible")||function(l,a){if(0===P().length){var s,n,r;if(a&&("HTML"==a.tagName||"BODY"==a.tagName||t.node.isElement(a)))for(s=1;s<=t.opts.tableInsertHelperOffset;s++){if(n=t.doc.elementFromPoint(l.pageX-t.win.pageXOffset,l.pageY-t.win.pageYOffset+s),e(n).hasClass("fr-tooltip"))return;if(n&&("TH"==n.tagName||"TD"==n.tagName||"TABLE"==n.tagName)&&(e(n).parents(".fr-wrapper").length||t.opts.iframe)&&"false"!=e(n).closest("table").attr("contenteditable"))return N(l,e(n).closest("table"));if(r=t.doc.elementFromPoint(l.pageX-t.win.pageXOffset+s,l.pageY-t.win.pageYOffset),e(r).hasClass("fr-tooltip"))return;if(r&&("TH"==r.tagName||"TD"==r.tagName||"TABLE"==r.tagName)&&(e(r).parents(".fr-wrapper").length||t.opts.iframe)&&"false"!=e(r).closest("table").attr("contenteditable"))return B(l,e(r).closest("table"))}t.core.sameInstance(U)&&S()}}(l,a)}function W(){if(Z){var e=X.data("table").offset().top-t.win.pageYOffset;t.opts.iframe&&(e+=t.$iframe.offset().top-t.helpers.scrollTop()),X.css("top",e)}}function k(t,l){var a,s=e(l[0][t]).outerWidth();for(a=1;a<l.length;a++)s=Math.min(s,e(l[a][t]).outerWidth());return s}function K(e,t,l){var a,s=0;for(a=e;t>=a;a++)s+=k(a,l);return s}function L(e){if(1<P().length&&G&&w(),!1===G&&!1===q&&!1===Z)Q&&clearTimeout(Q),t.edit.isDisabled()&&!t.popups.isVisible("table.edit")||(Q=setTimeout(z,30,e));else if(Z){var l=e.pageX-t.win.pageXOffset;t.opts.iframe&&(l+=t.$iframe.offset().left);var a=X.data("max-left"),s=X.data("max-right");l>=a&&s>=l?X.css("left",l-t.opts.tableResizerOffset-t.$wp.offset().left):a>l&&parseFloat(X.css("left"),10)>a-t.opts.tableResizerOffset?X.css("left",a-t.opts.tableResizerOffset-t.$wp.offset().left):l>s&&parseFloat(X.css("left"),10)<s-t.opts.tableResizerOffset&&X.css("left",s-t.opts.tableResizerOffset-t.$wp.offset().left)}else G&&S()}function H(l){t.node.isEmpty(l.get(0))?l.prepend(e.FE.MARKERS):l.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER)}function Y(){t.shared.$ti_helper||(t.shared.$ti_helper=e('<div class="fr-insert-helper"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Insert")+'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a></div>'),t.events.bindClick(t.shared.$ti_helper,"a",function(){var e=U.data("selected-cell"),l=U.data("position"),a=U.data("instance")||t;"before"==l?(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertColumn(l),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"after"==l?(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertColumn(l),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"above"==l?(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertRow(l),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"below"==l&&(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertRow(l),e.removeClass("fr-selected-cell"),t.undo.saveStep()),S()}),t.events.on("shared.destroy",function(){t.shared.$ti_helper.html("").removeData().remove(),t.shared.$ti_helper=null},!0),t.events.$on(t.shared.$ti_helper,"mousemove",function(e){e.stopPropagation()},!0),t.events.$on(e(t.o_win),"scroll",function(){S()},!0),t.events.$on(t.$wp,"scroll",function(){S()},!0)),U=t.shared.$ti_helper,t.events.on("destroy",function(){U=null}),t.tooltip.bind(t.$box,".fr-insert-helper > a.fr-floating-btn")}function j(){J=null,clearTimeout(Q)}function P(){return t.el.querySelectorAll(".fr-selected-cell")}function V(){var l=P();if(l.length){for(var a=l[0];a&&"TABLE"!=a.tagName&&a.parentNode!=t.el;)a=a.parentNode;return e(a&&"TABLE"==a.tagName?a:[])}return e([])}var X,U,q,G,J,Q,Z;return{_init:function(){if(!t.$wp)return!1;if(!t.helpers.isMobile()){Z=q=G=!1,t.events.$on(t.$el,"mousedown",x),t.popups.onShow("image.edit",function(){E(),q=G=!1}),t.popups.onShow("link.edit",function(){E(),q=G=!1}),t.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&E()}),t.events.$on(t.$el,"mouseenter","th, td",D),t.events.$on(t.$win,"mouseup",y),t.opts.iframe&&t.events.$on(e(t.o_win),"mouseup",y),t.events.$on(t.$win,"mousemove",L),t.events.$on(e(t.o_win),"scroll",W),t.events.on("contentChanged",function(){0<P().length&&(l(),t.$el.find("img").on("load.selected-cells",function(){e(this).off("load.selected-cells"),0<P().length&&l()}))}),t.events.$on(e(t.o_win),"resize",function(){E()}),t.events.on("toolbar.esc",function(){return 0<P().length?(t.events.disableBlur(),t.events.focus(),!1):void 0},!0),t.events.$on(e(t.o_win),"keydown",function(){G&&q&&(q=G=!1,t.$el.removeClass("fr-no-selection"),t.edit.on(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell:last").get(0)),t.selection.restore(),E())}),t.events.$on(t.$el,"keydown",function(a){a.shiftKey?!1===function(l){var a=P();if(0<a.length){var s,n,r=b(),o=l.which;1==a.length?n=s=a[0]:(s=t.el.querySelector(".fr-cell-fixed"),n=t.el.querySelector(".fr-cell-handler"));var i=g(n,r);if(e.FE.KEYCODE.ARROW_RIGHT==o){if(i.col<r[0].length-1)return O(s,r[i.row][i.col+1]),!1}else if(e.FE.KEYCODE.ARROW_DOWN==o){if(i.row<r.length-1)return O(s,r[i.row+1][i.col]),!1}else if(e.FE.KEYCODE.ARROW_LEFT==o){if(0<i.col)return O(s,r[i.row][i.col-1]),!1}else if(e.FE.KEYCODE.ARROW_UP==o&&0<i.row)return O(s,r[i.row-1][i.col]),!1}}(a)&&setTimeout(function(){l()},0):function(l){var a=l.which,s=t.selection.blocks();if(s.length&&("TD"==(s=s[0]).tagName||"TH"==s.tagName)){for(var n=s;n&&"TABLE"!=n.tagName&&n.parentNode!=t.el;)n=n.parentNode;if(n&&"TABLE"==n.tagName&&(e.FE.KEYCODE.ARROW_LEFT==a||e.FE.KEYCODE.ARROW_UP==a||e.FE.KEYCODE.ARROW_RIGHT==a||e.FE.KEYCODE.ARROW_DOWN==a)&&(0<P().length&&F(),t.browser.webkit&&(e.FE.KEYCODE.ARROW_UP==a||e.FE.KEYCODE.ARROW_DOWN==a))){var r=t.selection.ranges(0).startContainer;if(r.nodeType==Node.TEXT_NODE&&(e.FE.KEYCODE.ARROW_UP==a&&(r.previousSibling&&"BR"!==r.previousSibling.tagName||r.previousSibling&&"BR"===r.previousSibling.tagName&&r.previousSibling.previousSibling)||e.FE.KEYCODE.ARROW_DOWN==a&&(r.nextSibling&&"BR"!==r.nextSibling.tagName||r.nextSibling&&"BR"===r.nextSibling.tagName&&r.nextSibling.nextSibling)))return;l.preventDefault(),l.stopPropagation();var o=b(e(n)),i=g(s,o);e.FE.KEYCODE.ARROW_UP==a?_(i,n,o):e.FE.KEYCODE.ARROW_DOWN==a&&M(i,n,o),t.selection.restore()}}}(a)}),t.events.on("keydown",function(a){if(!1===function(l){if(l.which==e.FE.KEYCODE.TAB){var a;if(0<P().length)a=t.$el.find(".fr-selected-cell:last");else{var s=t.selection.element();"TD"==s.tagName||"TH"==s.tagName?a=e(s):s!=t.el&&(0<e(s).parentsUntil(t.$el,"td").length?a=e(s).parents("td:first"):0<e(s).parentsUntil(t.$el,"th").length&&(a=e(s).parents("th:first")))}if(a)return l.preventDefault(),!!(0===t.selection.get().focusOffset&&0<e(t.selection.element()).parentsUntil(t.$el,"ol, ul").length&&(0<e(t.selection.element()).closest("li").prev().length||e(t.selection.element()).is("li")&&0<e(t.selection.element()).prev().length))||(F(),l.shiftKey?0<a.prev().length?H(a.prev()):0<a.closest("tr").length&&0<a.closest("tr").prev().length?H(a.closest("tr").prev().find("td:last")):0<a.closest("tbody").length&&0<a.closest("table").find("thead tr").length&&H(a.closest("table").find("thead tr th:last")):0<a.next().length?H(a.next()):0<a.closest("tr").length&&0<a.closest("tr").next().length?H(a.closest("tr").next().find("td:first")):0<a.closest("thead").length&&0<a.closest("table").find("tbody tr").length?H(a.closest("table").find("tbody tr td:first")):(a.addClass("fr-selected-cell"),f("below"),E(),H(a.closest("tr").next().find("td:first"))),t.selection.restore(),!1)}}(a))return!1;var s=P();if(0<s.length){if(0<s.length&&t.keys.ctrlKey(a)&&a.which==e.FE.KEYCODE.A)return E(),t.popups.isVisible("table.edit")&&t.popups.hide("table.edit"),s=[],!0;if(a.which==e.FE.KEYCODE.ESC&&t.popups.isVisible("table.edit"))return E(),t.popups.hide("table.edit"),a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation(),!(s=[]);if(1<s.length&&(a.which==e.FE.KEYCODE.BACKSPACE||a.which==e.FE.KEYCODE.DELETE)){t.undo.saveStep();for(var n=0;n<s.length;n++)e(s[n]).html("<br>"),n==s.length-1&&e(s[n]).prepend(e.FE.MARKERS);return t.selection.restore(),t.undo.saveStep(),!(s=[])}if(1<s.length&&a.which!=e.FE.KEYCODE.F10&&!t.keys.isBrowserAction(a))return a.preventDefault(),!(s=[])}else if(!(s=[])===function(a){if(a.altKey&&a.which==e.FE.KEYCODE.SPACE){var s,n=t.selection.element();if("TD"==n.tagName||"TH"==n.tagName?s=n:0<e(n).closest("td").length?s=e(n).closest("td").get(0):0<e(n).closest("th").length&&(s=e(n).closest("th").get(0)),s)return a.preventDefault(),O(s,s),l(),!1}}(a))return!1},!0);var a=[];t.events.on("html.beforeGet",function(){a=P();for(var e=0;e<a.length;e++)a[e].className=(a[e].className||"").replace(/fr-selected-cell/g,"")
}),t.events.on("html.afterGet",function(){for(var e=0;e<a.length;e++)a[e].className=(a[e].className?a[e].className.trim()+" ":"")+"fr-selected-cell";a=[]}),n(!0),o(!0)}t.events.on("destroy",j)},insert:function(l,a){var s,n,r="<table "+(t.opts.tableDefaultWidth?'style="width: '+t.opts.tableDefaultWidth+';" ':"")+'class="fr-inserted-table"><tbody>',o=100/a;for(s=0;l>s;s++){for(r+="<tr>",n=0;a>n;n++)r+="<td"+(t.opts.tableDefaultWidth?' style="width: '+o.toFixed(4)+'%;"':"")+">",0===s&&0===n&&(r+=e.FE.MARKERS),r+="<br></td>";r+="</tr>"}r+="</tbody></table>",t.html.insert(r),t.selection.restore();var i=t.$el.find(".fr-inserted-table");i.removeClass("fr-inserted-table"),t.events.trigger("table.inserted",[i.get(0)])},remove:i,insertRow:f,deleteRow:function(){var l=V();if(0<l.length){var a,s,n,r=b(),o=C(r);if(0===o.min_i&&o.max_i==r.length-1)i();else{for(a=o.max_i;a>=o.min_i;a--){for(n=e(l.find("tr").not(l.find("table tr")).get(a)),s=0;s<r[a].length;s++)if(0===s||r[a][s]!=r[a][s-1]){var f=e(r[a][s]);if(1<parseInt(f.attr("rowspan"),10)){var c=parseInt(f.attr("rowspan"),10)-1;1==c?f.removeAttr("rowspan"):f.attr("rowspan",c)}if(a<r.length-1&&r[a][s]==r[a+1][s]&&(0===a||r[a][s]!=r[a-1][s])){for(var d=r[a][s],p=s;p>0&&r[a][p]==r[a][p-1];)p--;0===p?e(l.find("tr").not(l.find("table tr")).get(a+1)).prepend(d):e(r[a+1][p-1]).after(d)}}var u=n.parent();n.remove(),0===u.find("tr").length&&u.remove(),r=b(l)}h(0,r.length-1,0,r[0].length-1,l),t.selection.setAtEnd(0<o.min_i?r[o.min_i-1][0]:r[0][0]),t.selection.restore(),t.popups.hide("table.edit")}}},insertColumn:function(a){var s=V();if(0<s.length){var n,r=b(),o=C(r);n="before"==a?o.min_j:o.max_j;var i,f=100/r[0].length,c=100/(r[0].length+1);s.find("th, td").each(function(){(i=e(this)).data("old-width",i.outerWidth()/s.outerWidth()*100)}),s.find("tr").not(s.find("table tr")).each(function(t){for(var l,s=e(this),o=0,i=0;n>o-1;){if(!(l=s.find("> th, > td").get(i))){l=null;break}l==r[t][o]?(o+=parseInt(e(l).attr("colspan"),10)||1,i++):(o+=parseInt(e(r[t][o]).attr("colspan"),10)||1,"after"==a&&(l=0===i?-1:s.find("> th, > td").get(i-1)))}var d,p=e(l);if("after"==a&&o-1>n||"before"==a&&n>0&&r[t][n]==r[t][n-1]){if(0===t||t>0&&r[t][n]!=r[t-1][n]){var h=parseInt(p.attr("colspan"),10)+1;p.attr("colspan",h),p.css("width",(p.data("old-width")*c/f+c).toFixed(4)+"%"),p.removeData("old-width")}}else d=0<s.find("th").length?'<th style="width: '+c.toFixed(4)+'%;"><br></th>':'<td style="width: '+c.toFixed(4)+'%;"><br></td>',-1==l?s.prepend(d):null==l?s.append(d):"before"==a?p.before(d):"after"==a&&p.after(d)}),s.find("th, td").each(function(){(i=e(this)).data("old-width")&&(i.css("width",(i.data("old-width")*c/f).toFixed(4)+"%"),i.removeData("old-width"))}),t.popups.isVisible("table.edit")&&l()}},deleteColumn:function(){var l=V();if(0<l.length){var a,s,n,r=b(),o=C(r);if(0===o.min_j&&o.max_j==r[0].length-1)i();else{var f=0;for(a=0;a<r.length;a++)for(s=0;s<r[0].length;s++)(n=e(r[a][s])).hasClass("fr-selected-cell")||(n.data("old-width",n.outerWidth()/l.outerWidth()*100),(s<o.min_j||s>o.max_j)&&(f+=n.outerWidth()/l.outerWidth()*100));for(f/=r.length,s=o.max_j;s>=o.min_j;s--)for(a=0;a<r.length;a++)if(0===a||r[a][s]!=r[a-1][s])if(n=e(r[a][s]),1<(parseInt(n.attr("colspan"),10)||1)){var c=parseInt(n.attr("colspan"),10)-1;1==c?n.removeAttr("colspan"):n.attr("colspan",c),n.css("width",(100*(n.data("old-width")-k(s,r))/f).toFixed(4)+"%"),n.removeData("old-width")}else{var d=e(n.parent().get(0));n.remove(),0===d.find("> th, > td").length&&(0===d.prev().length||0===d.next().length||d.prev().find("> th[rowspan], > td[rowspan]").length<d.prev().find("> th, > td").length)&&d.remove()}h(0,r.length-1,0,r[0].length-1,l),t.selection.setAtEnd(0<o.min_j?r[o.min_i][o.min_j-1]:r[o.min_i][0]),t.selection.restore(),t.popups.hide("table.edit"),l.find("th, td").each(function(){(n=e(this)).data("old-width")&&(n.css("width",(100*n.data("old-width")/f).toFixed(4)+"%"),n.removeData("old-width"))})}}},mergeCells:function(){if(1<P().length&&(0===t.$el.find("th.fr-selected-cell").length||0===t.$el.find("td.fr-selected-cell").length)){v();var a,s,n=C(b()),r=t.$el.find(".fr-selected-cell"),o=e(r[0]),i=o.parent().find(".fr-selected-cell"),f=o.closest("table"),p=o.html(),h=0;for(a=0;a<i.length;a++)h+=e(i[a]).outerWidth();for(o.css("width",Math.min(100,h/f.outerWidth()*100).toFixed(4)+"%"),n.min_j<n.max_j&&o.attr("colspan",n.max_j-n.min_j+1),n.min_i<n.max_i&&o.attr("rowspan",n.max_i-n.min_i+1),a=1;a<r.length;a++)"<br>"!=(s=e(r[a])).html()&&""!==s.html()&&(p+="<br>"+s.html()),s.remove();o.html(p),t.selection.setAtEnd(o.get(0)),t.selection.restore(),t.toolbar.enable(),d(n.min_i,n.max_i,f);var u=f.find("tr:empty");for(a=u.length-1;a>=0;a--)e(u[a]).remove();c(n.min_j,n.max_j,f),l()}},splitCellVertically:function(){if(1==P().length){var l=t.$el.find(".fr-selected-cell"),a=parseInt(l.attr("colspan"),10)||1,s=l.parent().outerWidth(),n=l.outerWidth(),r=l.clone().html("<br>"),o=b(),i=g(l.get(0),o);if(a>1){var f=Math.ceil(a/2);n=K(i.col,i.col+f-1,o)/s*100;var c=K(i.col+f,i.col+a-1,o)/s*100;f>1?l.attr("colspan",f):l.removeAttr("colspan"),a-f>1?r.attr("colspan",a-f):r.removeAttr("colspan"),l.css("width",n.toFixed(4)+"%"),r.css("width",c.toFixed(4)+"%")}else{var d;for(d=0;d<o.length;d++)if(0===d||o[d][i.col]!=o[d-1][i.col]){var p=e(o[d][i.col]);if(!p.is(l)){var h=(parseInt(p.attr("colspan"),10)||1)+1;p.attr("colspan",h)}}n=n/s*100/2,l.css("width",n.toFixed(4)+"%"),r.css("width",n.toFixed(4)+"%")}l.after(r),E(),t.popups.hide("table.edit")}},splitCellHorizontally:function(){if(1==P().length){var l=t.$el.find(".fr-selected-cell"),a=l.parent(),s=l.closest("table"),n=parseInt(l.attr("rowspan"),10),r=b(),o=g(l.get(0),r),i=l.clone().html("<br>");if(n>1){var f=Math.ceil(n/2);f>1?l.attr("rowspan",f):l.removeAttr("rowspan"),n-f>1?i.attr("rowspan",n-f):i.removeAttr("rowspan");for(var c=o.row+f,d=0===o.col?o.col:o.col-1;d>=0&&(r[c][d]==r[c][d-1]||c>0&&r[c][d]==r[c-1][d]);)d--;-1==d?e(s.find("tr").not(s.find("table tr")).get(c)).prepend(i):e(r[c][d]).after(i)}else{var p,h=e("<tr>").append(i);for(p=0;p<r[0].length;p++)if(0===p||r[o.row][p]!=r[o.row][p-1]){var u=e(r[o.row][p]);u.is(l)||u.attr("rowspan",(parseInt(u.attr("rowspan"),10)||1)+1)}a.after(h)}E(),t.popups.hide("table.edit")}},addHeader:function(){var t=V();if(0<t.length&&0===t.find("th").length){var a,s="<thead><tr>",n=0;for(t.find("tr:first > td").each(function(){var t=e(this);n+=parseInt(t.attr("colspan"),10)||1}),a=0;n>a;a++)s+="<th><br></th>";s+="</tr></thead>",t.prepend(s),l()}},removeHeader:function(){var e=V(),a=e.find("thead");if(0<a.length)if(0===e.find("tbody tr").length)i();else if(a.remove(),0<P().length)l();else{t.popups.hide("table.edit");var s=e.find("tbody tr:first td:first").get(0);s&&(t.selection.setAtEnd(s),t.selection.restore())}},setBackground:u,showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertTable"]'),l=t.popups.get("table.insert");if(l||(l=n()),!l.hasClass("fr-active")){t.popups.refresh("table.insert"),t.popups.setContainer("table.insert",t.$tb);var a=e.offset().left+e.outerWidth()/2,s=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("table.insert",a,s,e.outerHeight())}},showEditPopup:l,showColorsPopup:a,back:function(){0<P().length?l():(t.popups.hide("table.insert"),t.toolbar.showInline())},verticalAlign:function(e){t.$el.find(".fr-selected-cell").css("vertical-align",e)},horizontalAlign:function(e){t.$el.find(".fr-selected-cell").css("text-align",e)},applyStyle:function(e,t,l,a){if(0<t.length){if(!l){var s=Object.keys(a);s.splice(s.indexOf(e),1),t.removeClass(s.join(" "))}t.toggleClass(e)}},selectedTable:V,selectedCells:P,customColor:function(){var e=t.popups.get("table.colors").find(".fr-table-colors-hex-layer input");e.length&&u(e.val())},selectCells:O}},e.FE.DefineIcon("insertTable",{NAME:"table"}),e.FE.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):this.table.showInsertPopup()},plugin:"table"}),e.FE.RegisterCommand("tableInsert",{callback:function(e,t,l){this.table.insert(t,l),this.popups.hide("table.insert")}}),e.FE.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading"}),e.FE.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]').hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(e){var t=this.table.selectedTable();0<t.length&&(0===t.find("th").length?e.removeClass("fr-active").attr("aria-pressed",!1):e.addClass("fr-active").attr("aria-pressed",!0))}}),e.FE.DefineIcon("tableRows",{NAME:"bars"}),e.FE.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below","delete":"Delete row"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',l=e.FE.COMMANDS.tableRows.options;for(var a in l)l.hasOwnProperty(a)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+a+'" title="'+this.language.translate(l[a])+'">'+this.language.translate(l[a])+"</a></li>");return t+="</ul>"},callback:function(e,t){"above"==t||"below"==t?this.table.insertRow(t):this.table.deleteRow()}}),e.FE.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90"}),e.FE.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after","delete":"Delete column"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',l=e.FE.COMMANDS.tableColumns.options;for(var a in l)l.hasOwnProperty(a)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'+a+'" title="'+this.language.translate(l[a])+'">'+this.language.translate(l[a])+"</a></li>");return t+="</ul>"},callback:function(e,t){"before"==t||"after"==t?this.table.insertColumn(t):this.table.deleteColumn()}}),e.FE.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square"}),e.FE.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',l=e.FE.COMMANDS.tableCells.options;for(var a in l)l.hasOwnProperty(a)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'+a+'" title="'+this.language.translate(l[a])+'">'+this.language.translate(l[a])+"</a></li>");return t+="</ul>"},callback:function(e,t){"merge"==t?this.table.mergeCells():"vertical-split"==t?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(e,t){1<this.$el.find(".fr-selected-cell").length?(t.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(t.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),t.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}}),e.FE.DefineIcon("tableRemove",{NAME:"trash"}),e.FE.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),e.FE.DefineIcon("tableStyle",{NAME:"paint-brush"}),e.FE.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableStyles;for(var l in t)t.hasOwnProperty(l)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'+l+'" title="'+this.language.translate(t[l])+'">'+this.language.translate(t[l])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(t,l){var a=this.$el.find(".fr-selected-cell").closest("table");a&&l.find(".fr-command").each(function(){var t=e(this).data("param1"),l=a.hasClass(t);e(this).toggleClass("fr-active",l).attr("aria-selected",l)})}}),e.FE.DefineIcon("tableCellBackground",{NAME:"tint"}),e.FE.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),e.FE.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(e,t){this.table.setBackground(t)}}),e.FE.DefineIcon("tableBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(e){0!==this.table.selectedCells().length||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.FE.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v"}),e.FE.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',l=e.FE.COMMANDS.tableCellVerticalAlign.options;for(var a in l)l.hasOwnProperty(a)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'+a.toLowerCase()+'" title="'+this.language.translate(l[a])+'">'+this.language.translate(a)+"</a></li>");return t+="</ul>"},callback:function(e,t){this.table.verticalAlign(t)},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.FE.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left"}),e.FE.DefineIcon("align-left",{NAME:"align-left"}),e.FE.DefineIcon("align-right",{NAME:"align-right"}),e.FE.DefineIcon("align-center",{NAME:"align-center"}),e.FE.DefineIcon("align-justify",{NAME:"align-justify"}),e.FE.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',l=e.FE.COMMANDS.tableCellHorizontalAlign.options;for(var a in l)l.hasOwnProperty(a)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'+a+'" title="'+this.language.translate(l[a])+'">'+this.icon.create("align-"+a)+'<span class="fr-sr-only">'+this.language.translate(l[a])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.table.horizontalAlign(t)},refresh:function(t){var l=this.table.selectedCells();l.length&&t.find("> *:first").replaceWith(this.icon.create("align-"+this.helpers.getAlignment(e(l[0]))))},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell:first"))+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.FE.DefineIcon("tableCellStyle",{NAME:"magic"}),e.FE.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableCellStyles;for(var l in t)t.hasOwnProperty(l)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'+l+'" title="'+this.language.translate(t[l])+'">'+this.language.translate(t[l])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(t,l){var a=this.$el.find(".fr-selected-cell:first");a&&l.find(".fr-command").each(function(){var t=e(this).data("param1"),l=a.hasClass(t);e(this).toggleClass("fr-active",l).attr("aria-selected",l)})}}),e.FE.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),e.FE.DefineIcon("tableColorRemove",{NAME:"eraser"})})});
;/*!node_modules/froala-editor/js/plugins/url.min.js*/
define("node_modules/froala-editor/js/plugins/url.min",function(e,n,t){!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof t&&t.exports?t.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(t)),n(r)}:n(window.jQuery)}(function(e){e.FE.URLRegEx="(^| |\\u00A0)("+e.FE.LinkRegEx+"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$",e.FE.PLUGINS.url=function(n){function t(e,t,r){for(var o="";r.length&&"."==r[r.length-1];)o+=".",r=r.substring(0,r.length-1);var i=r;if(n.opts.linkConvertEmailAddress)n.helpers.isEmail(i)&&!/^mailto:.*/i.test(i)&&(i="mailto:"+i);else if(n.helpers.isEmail(i))return t+r;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(i)||(i="//"+i),(t||"")+"<a"+(n.opts.linkAlwaysBlank?' target="_blank"':"")+(a?' rel="'+a+'"':"")+' data-fr-linked="true" href="'+i+'">'+r.replace(/&amp;/g,"&").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</a>"+o}function r(){return new RegExp(e.FE.URLRegEx,"gi")}function o(e){return n.opts.linkAlwaysNoFollow&&(a="nofollow"),n.opts.linkAlwaysBlank&&(n.opts.linkNoOpener&&(a?a+=" noopener":a="noopener"),n.opts.linkNoReferrer&&(a?a+=" noreferrer":a="noreferrer")),e.replace(r(),t)}function i(e){var n=e.split(" ");return n[n.length-1]}function l(){var t=n.selection.ranges(0),l=t.startContainer;if(!l||l.nodeType!==Node.TEXT_NODE||t.startOffset!==(l.textContent||"").length)return!1;if(function p(e){return!!e&&("A"===e.tagName||!(!e.parentNode||e.parentNode==n.el)&&p(e.parentNode))}(l))return!1;if(r().test(i(l.textContent))){e(l).before(o(l.textContent));var a=e(l.parentNode).find("a[data-fr-linked]");a.removeAttr("data-fr-linked"),l.parentNode.removeChild(l),n.events.trigger("url.linked",[a.get(0)])}else if(l.textContent.split(" ").length<=2&&l.previousSibling&&"A"===l.previousSibling.tagName){var s=l.previousSibling.innerText+l.textContent;r().test(i(s))&&(e(l.previousSibling).replaceWith(o(s)),l.parentNode.removeChild(l))}}var a=null;return{_init:function(){n.events.on("keypress",function(e){!n.selection.isCollapsed()||"."!=e.key&&")"!=e.key&&"("!=e.key||l()},!0),n.events.on("keydown",function(t){var r=t.which;!n.selection.isCollapsed()||r!=e.FE.KEYCODE.ENTER&&r!=e.FE.KEYCODE.SPACE||l()},!0),n.events.on("paste.beforeCleanup",function(e){if(n.helpers.isURL(e)){var t=null;return n.opts.linkAlwaysBlank&&(n.opts.linkNoOpener&&(t?t+=" noopener":t="noopener"),n.opts.linkNoReferrer&&(t?t+=" noreferrer":t="noreferrer")),"<a"+(n.opts.linkAlwaysBlank?' target="_blank"':"")+(t?' rel="'+t+'"':"")+' href="'+e+'" >'+e+"</a>"}})}}}})});
;/*!node_modules/froala-editor/js/plugins/video.min.js*/
define("node_modules/froala-editor/js/plugins/video.min",function(e,t,i){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof i&&i.exports?i.exports=function(i,o){return void 0===o&&(o="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(i)),t(o)}:t(window.jQuery)}(function(e){e.extend(e.FE.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),e.extend(e.FE.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","|","videoDisplay","videoAlign","videoSize"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoResponsive:!1,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadURL:null}),e.FE.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1?$2",html:'<iframe width="640" height="360" src="{url}&wmode=opaque" frameborder="0" allowfullscreen></iframe>',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?(\/[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'<iframe width="640" height="360" src="{url}?format=embed" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&\/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&\/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vidyard"}],e.FE.VIDEO_EMBED_REGEX=/^\W*((<iframe(.|\n)*>(\s|\n)*<\/iframe>)|(<embed(.|\n)*>))\W*$/i,e.FE.PLUGINS.video=function(t){function i(){var e=t.popups.get("video.insert");e.find(".fr-video-by-url-layer input").val("").trigger("change");var i=e.find(".fr-video-embed-layer textarea");i.val("").trigger("change"),(i=e.find(".fr-video-upload-layer input")).val("").trigger("change")}function o(){var e=t.popups.get("video.edit");if(e||(e=function(){var e="";if(0<t.opts.videoEditButtons.length){t.opts.videoResponsive&&(-1<t.opts.videoEditButtons.indexOf("videoSize")&&t.opts.videoEditButtons.splice(t.opts.videoEditButtons.indexOf("videoSize"),1),-1<t.opts.videoEditButtons.indexOf("videoDisplay")&&t.opts.videoEditButtons.splice(t.opts.videoEditButtons.indexOf("videoDisplay"),1),-1<t.opts.videoEditButtons.indexOf("videoAlign")&&t.opts.videoEditButtons.splice(t.opts.videoEditButtons.indexOf("videoAlign"),1)),e+='<div class="fr-buttons">',e+=t.button.buildList(t.opts.videoEditButtons);var i={buttons:e+="</div>"},o=t.popups.create("video.edit",i);return t.events.$on(t.$wp,"scroll.video-edit",function(){Y&&t.popups.isVisible("video.edit")&&(t.events.disableBlur(),p(Y))}),o}return!1}()),e){t.popups.setContainer("video.edit",t.$sc),t.popups.refresh("video.edit");var i=Y.find("iframe, embed, video"),o=i.offset().left+i.outerWidth()/2,r=i.offset().top+i.outerHeight();t.popups.show("video.edit",o,r,i.outerHeight())}}function r(o){if(o)return t.popups.onRefresh("video.insert",i),t.popups.onHide("image.insert",L),!0;var r="";t.opts.videoUpload||-1===t.opts.videoInsertButtons.indexOf("videoUpload")||t.opts.videoInsertButtons.splice(t.opts.videoInsertButtons.indexOf("videoUpload"),1);var s=t.button.buildList(t.opts.videoInsertButtons);""!==s&&(r='<div class="fr-buttons">'+s+"</div>");var n,a="",d=t.opts.videoInsertButtons.indexOf("videoUpload"),l=t.opts.videoInsertButtons.indexOf("videoByURL"),f=t.opts.videoInsertButtons.indexOf("videoEmbed");l>=0&&(n=" fr-active",(l>d&&d>=0||l>f&&f>=0)&&(n=""),a='<div class="fr-video-by-url-layer fr-layer'+n+'" id="fr-video-by-url-layer-'+t.id+'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("Paste in a video URL")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">'+t.language.translate("Insert")+"</button></div></div>");var v="";f>=0&&(n=" fr-active",(f>d&&d>=0||f>l&&l>=0)&&(n=""),v='<div class="fr-video-embed-layer fr-layer'+n+'" id="fr-video-embed-layer-'+t.id+'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text'+t.id+'" type="text" placeholder="'+t.language.translate("Embedded Code")+'" tabIndex="1" aria-required="true" rows="5"></textarea></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertEmbed" tabIndex="2" role="button">'+t.language.translate("Insert")+"</button></div></div>");var p="";d>=0&&(n=" fr-active",(d>f&&f>=0||d>l&&l>=0)&&(n=""),p='<div class="fr-video-upload-layer fr-layer'+n+'" id="fr-video-upload-layer-'+t.id+'"><strong>'+t.language.translate("Drop video")+"</strong><br>("+t.language.translate("or click")+')<div class="fr-form"><input type="file" accept="video/'+t.opts.videoAllowedTypes.join(", video/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-'+t.id+'" role="button"></div></div>');var u={buttons:r,by_url_layer:a,embed_layer:v,upload_layer:p,progress_bar:'<div class="fr-video-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="videoDismissError" tabIndex="2" role="button">OK</button></div></div>'},c=t.popups.create("video.insert",u);return function(i){t.events.$on(i,"dragover dragenter",".fr-video-upload-layer",function(){return e(this).addClass("fr-drop"),!1},!0),t.events.$on(i,"dragleave dragend",".fr-video-upload-layer",function(){return e(this).removeClass("fr-drop"),!1},!0),t.events.$on(i,"drop",".fr-video-upload-layer",function(o){o.preventDefault(),o.stopPropagation(),e(this).removeClass("fr-drop");var r=o.originalEvent.dataTransfer;if(r&&r.files){var s=i.data("instance")||t;s.events.disableBlur(),s.video.upload(r.files),s.events.enableBlur()}},!0),t.helpers.isIOS()&&t.events.$on(i,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){e(this).trigger("click")},!0),t.events.$on(i,"change",'.fr-video-upload-layer input[type="file"]',function(){if(this.files){var o=i.data("instance")||t;o.events.disableBlur(),i.find("input:focus").blur(),o.events.enableBlur(),o.video.upload(this.files)}e(this).val("")},!0)}(c),c}function s(e){t.events.focus(!0),t.selection.restore();var i=!1;Y&&(O(),i=!0),t.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video fr-deletable">'+e+"</span>",!1,t.opts.videoSplitHTML),t.popups.hide("video.insert");var o=t.$el.find(".fr-jiv");o.removeClass("fr-jiv"),o.toggleClass("fr-rv",t.opts.videoResponsive),z(o,t.opts.videoDefaultDisplay,t.opts.videoDefaultAlign),o.toggleClass("fr-draggable",t.opts.videoMove),t.events.trigger(i?"video.replaced":"video.inserted",[o])}function n(){var i=e(this);t.popups.hide("video.insert"),i.removeClass("fr-uploading"),i.parent().next().is("br")&&i.parent().next().remove(),p(i.parent()),t.events.trigger("video.loaded",[i.parent()])}function a(i,o,r,s,a){t.edit.off(),f("Loading video"),o&&(i=t.helpers.sanitizeURL(i)),d("Loading video"),function(){var o,d;if(s){t.undo.canDo()||s.find("video").hasClass("fr-uploading")||t.undo.saveStep();var l=s.find("video").data("fr-old-src"),f=s.data("fr-replaced");s.data("fr-replaced",!1),t.$wp?((o=s.clone()).find("video").removeData("fr-old-src").removeClass("fr-uploading"),o.find("video").off("canplay"),l&&s.find("video").attr("src",l),s.replaceWith(o)):o=s;for(var v=o.find("video").get(0).attributes,p=0;p<v.length;p++){var u=v[p];0===u.nodeName.indexOf("data-")&&o.find("video").removeAttr(u.nodeName)}if(void 0!==r)for(d in r)r.hasOwnProperty(d)&&"link"!=d&&o.find("video").attr("data-"+d,r[d]);o.find("video").on("canplay",n),o.find("video").attr("src",i),t.edit.on(),C(),t.undo.saveStep(),t.$el.blur(),t.events.trigger(f?"video.replaced":"video.inserted",[o,a])}else o=function(i,o,r){var s,n="";if(o&&void 0!==o)for(s in o)o.hasOwnProperty(s)&&"link"!=s&&(n+=" data-"+s+'="'+o[s]+'"');var a=t.opts.videoDefaultWidth;a&&"auto"!=a&&(a+="px");var d=e('<span contenteditable="false" draggable="true" class="fr-video fr-dv'+t.opts.videoDefaultDisplay[0]+("center"!=t.opts.videoDefaultAlign?" fr-fv"+t.opts.videoDefaultAlign[0]:"")+'"><video src="'+i+'" '+n+(a?' style="width: '+a+';" ':"")+" controls>"+t.language.translate("Your browser does not support HTML5 video.")+"</video></span>");d.toggleClass("fr-draggable",t.opts.videoMove),t.edit.on(),t.events.focus(!0),t.selection.restore(),t.undo.saveStep(),t.opts.videoSplitHTML?t.markers.split():t.markers.insert(),t.html.wrap();var l=t.$el.find(".fr-marker");return t.node.isLastSibling(l)&&l.parent().hasClass("fr-deletable")&&l.insertAfter(l.parent()),l.replaceWith(d),t.selection.clear(),d.find("video").get(0).readyState>d.find("video").get(0).HAVE_FUTURE_DATA||t.helpers.isIOS()?r.call(d.find("video").get(0)):d.find("video").on("canplaythrough load",r),d}(i,r,n),C(),t.undo.saveStep(),t.events.trigger("video.inserted",[o,a])}()}function d(e){var i=t.popups.get("video.insert");if(i||(i=r()),i.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),i.find(".fr-video-progress-bar-layer").addClass("fr-active"),i.find(".fr-buttons").hide(),Y){var o=Y.find("video");t.popups.setContainer("video.insert",t.$sc);var s=o.offset().left+o.width()/2,n=o.offset().top+o.height();t.popups.show("video.insert",s,n,o.outerHeight())}void 0===e&&f(t.language.translate("Uploading"),0)}function l(e){var i=t.popups.get("video.insert");if(i&&(i.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),i.find(".fr-video-progress-bar-layer").removeClass("fr-active"),i.find(".fr-buttons").show(),e||t.$el.find("video.fr-error").length)){if(t.events.focus(),t.$el.find("video.fr-error").length&&(t.$el.find("video.fr-error").parent().remove(),t.undo.saveStep(),t.undo.run(),t.undo.dropRedo()),!t.$wp&&Y){var o=Y;x(!0),t.selection.setAfter(o.find("video").get(0)),t.selection.restore()}t.popups.hide("video.insert")}}function f(e,i){var o=t.popups.get("video.insert");if(o){var r=o.find(".fr-video-progress-bar-layer");r.find("h3").text(e+(i?" "+i+"%":"")),r.removeClass("fr-error"),i?(r.find("div").removeClass("fr-indeterminate"),r.find("div > span").css("width",i+"%")):r.find("div").addClass("fr-indeterminate")}}function v(e){d();var i=t.popups.get("video.insert").find(".fr-video-progress-bar-layer");i.addClass("fr-error");var o=i.find("h3");o.text(e),t.events.disableBlur(),o.focus()}function p(e){_.call(e.get(0))}function u(i){f("Loading video");var o=this.status,r=this.response,s=this.responseXML,n=this.responseText;try{if(t.opts.videoUploadToS3)if(201==o){var d=function(i){try{var o=e(i).find("Location").text(),r=e(i).find("Key").text();return!1===t.events.trigger("video.uploadedToS3",[o,r,i],!0)?(t.edit.on(),!1):o}catch(s){return B(q,i),!1}}(s);d&&a(d,!1,[],i,r||s)}else B(q,r||s);else if(o>=200&&300>o){var l=function(e){try{if(!1===t.events.trigger("video.uploaded",[e],!0))return t.edit.on(),!1;var i=JSON.parse(e);return i.link?i:(B(K,e),!1)}catch(o){return B(q,e),!1}}(n);l&&a(l.link,!1,l,i,r||n)}else B(W,r||n)}catch(v){B(q,r||n)}}function c(){B(q,this.response||this.responseText||this.responseXML)}function h(e){if(e.lengthComputable){var i=e.loaded/e.total*100|0;f(t.language.translate("Uploading"),i)}}function g(){t.edit.on(),l(!0)}function m(i){if(!t.core.sameInstance(V))return!0;i.preventDefault(),i.stopPropagation();var o=i.pageX||(i.originalEvent.touches?i.originalEvent.touches[0].pageX:null),r=i.pageY||(i.originalEvent.touches?i.originalEvent.touches[0].pageY:null);if(!o||!r)return!1;if("mousedown"==i.type){var s=t.$oel.get(0).ownerDocument,n=s.defaultView||s.parentWindow,a=!1;try{a=n.location!=n.parent.location&&!(n.$&&n.$.FE)}catch(d){}a&&n.frameElement&&(o+=t.helpers.getPX(e(n.frameElement).offset().left)+n.frameElement.clientLeft,r=i.clientY+t.helpers.getPX(e(n.frameElement).offset().top)+n.frameElement.clientTop)}t.undo.canDo()||t.undo.saveStep(),(N=e(this)).data("start-x",o),N.data("start-y",r),M.show(),t.popups.hideAll(),S()}function b(e){if(!t.core.sameInstance(V))return!0;if(N){e.preventDefault();var i=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),o=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!i||!o)return!1;var r=N.data("start-x"),s=N.data("start-y");N.data("start-x",i),N.data("start-y",o);var n=i-r,a=o-s,d=Y.find("iframe, embed, video"),l=d.width(),f=d.height();(N.hasClass("fr-hnw")||N.hasClass("fr-hsw"))&&(n=0-n),(N.hasClass("fr-hnw")||N.hasClass("fr-hne"))&&(a=0-a),d.css("width",l+n),d.css("height",f+a),d.removeAttr("width"),d.removeAttr("height"),A()}}function y(e){return t.core.sameInstance(V)?void(N&&Y&&(e&&e.stopPropagation(),N=null,M.hide(),A(),o(),t.undo.saveStep())):!0}function w(e){return'<div class="fr-handler fr-h'+e+'"></div>'}function E(e,t,i,o){return e.pageX=t,e.pageY=t,m.call(this,e),e.pageX=e.pageX+i*Math.floor(Math.pow(1.1,o)),e.pageY=e.pageY+i*Math.floor(Math.pow(1.1,o)),b.call(this,e),y.call(this,e),++o}function C(){var i,o=Array.prototype.slice.call(t.el.querySelectorAll("video, .fr-video > *")),r=[];for(i=0;i<o.length;i++)r.push(o[i].getAttribute("src")),e(o[i]).toggleClass("fr-draggable",t.opts.videoMove),""===o[i].getAttribute("class")&&o[i].removeAttribute("class"),""===o[i].getAttribute("style")&&o[i].removeAttribute("style");if(H)for(i=0;i<H.length;i++)r.indexOf(H[i].getAttribute("src"))<0&&t.events.trigger("video.removed",[e(H[i])]);H=o}function A(){V||function(){var i;if(t.shared.$video_resizer?(V=t.shared.$video_resizer,M=t.shared.$vid_overlay,t.events.on("destroy",function(){V.removeClass("fr-active").appendTo(e("body:first"))},!0)):(t.shared.$video_resizer=e('<div class="fr-video-resizer"></div>'),V=t.shared.$video_resizer,t.events.$on(V,"mousedown",function(e){e.stopPropagation()},!0),t.opts.videoResize&&(V.append(w("nw")+w("ne")+w("sw")+w("se")),t.shared.$vid_overlay=e('<div class="fr-video-overlay"></div>'),M=t.shared.$vid_overlay,i=V.get(0).ownerDocument,e(i).find("body:first").append(M))),t.events.on("shared.destroy",function(){V.html("").removeData().remove(),V=null,t.opts.videoResize&&(M.remove(),M=null)},!0),t.helpers.isMobile()||t.events.$on(e(t.o_win),"resize.video",function(){x(!0)}),t.opts.videoResize){i=V.get(0).ownerDocument,t.events.$on(V,t._mousedown,".fr-handler",m),t.events.$on(e(i),t._mousemove,b),t.events.$on(e(i.defaultView||i.parentWindow),t._mouseup,y),t.events.$on(M,"mouseleave",y);var o=1,r=null,s=0;t.events.on("keydown",function(i){if(Y){var n=-1!=navigator.userAgent.indexOf("Mac OS X")?i.metaKey:i.ctrlKey,a=i.which;(a!==r||200<i.timeStamp-s)&&(o=1),(a==e.FE.KEYCODE.EQUALS||t.browser.mozilla&&a==e.FE.KEYCODE.FF_EQUALS)&&n&&!i.altKey?o=E.call(this,i,1,1,o):(a==e.FE.KEYCODE.HYPHEN||t.browser.mozilla&&a==e.FE.KEYCODE.FF_HYPHEN)&&n&&!i.altKey&&(o=E.call(this,i,2,-1,o)),r=a,s=i.timeStamp}}),t.events.on("keyup",function(){o=1})}}(),(t.$wp||t.$sc).append(V),V.data("instance",t);var i=Y.find("iframe, embed, video");V.css("top",(t.opts.iframe?i.offset().top-1:i.offset().top-t.$wp.offset().top-1)+t.$wp.scrollTop()).css("left",(t.opts.iframe?i.offset().left-1:i.offset().left-t.$wp.offset().left-1)+t.$wp.scrollLeft()).css("width",i.get(0).getBoundingClientRect().width).css("height",i.get(0).getBoundingClientRect().height).addClass("fr-active")}function _(i){if(i&&"touchend"==i.type&&j)return!0;if(i&&t.edit.isDisabled())return i.stopPropagation(),i.preventDefault(),!1;if(t.edit.isDisabled())return!1;for(var r=0;r<e.FE.INSTANCES.length;r++)e.FE.INSTANCES[r]!=t&&e.FE.INSTANCES[r].events.trigger("video.hideResizer");t.toolbar.disable(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur()),t.$el.find(".fr-video.fr-active").removeClass("fr-active"),(Y=e(this)).addClass("fr-active"),t.opts.iframe&&t.size.syncIframe(),T(),A(),o(),t.selection.clear(),t.button.bulkRefresh(),t.events.trigger("image.hideResizer")}function x(e){Y&&(t.shared.vid_exit_flag||!0===e)&&(V.removeClass("fr-active"),t.toolbar.enable(),Y.removeClass("fr-active"),Y=null,S())}function R(){t.shared.vid_exit_flag=!0}function S(){t.shared.vid_exit_flag=!1}function D(i){var o=i.originalEvent.dataTransfer;if(o&&o.files&&o.files.length){var s=o.files[0];if(s&&s.type&&-1!==s.type.indexOf("video")){if(!t.opts.videoUpload)return i.preventDefault(),i.stopPropagation(),!1;t.markers.remove(),t.markers.insertAtPoint(i.originalEvent),t.$el.find(".fr-marker").replaceWith(e.FE.MARKERS),t.popups.hideAll();var n=t.popups.get("video.insert");return n||(n=r()),t.popups.setContainer("video.insert",t.$sc),t.popups.show("video.insert",i.originalEvent.pageX,i.originalEvent.pageY),d(),0<=t.opts.videoAllowedTypes.indexOf(s.type.replace(/video\//g,""))?U(o.files):B(Z),i.preventDefault(),i.stopPropagation(),!1}}}function U(e){if(void 0!==e&&0<e.length){if(!1===t.events.trigger("video.beforeUpload",[e]))return!1;var i,o=e[0];if((null===t.opts.videoUploadURL||t.opts.videoUploadURL==X)&&!t.opts.videoUploadToS3)return function(e){Y&&Y.find("iframe")&&Y.find("iframe").length&&O();var t=new FileReader;t.onload=function(){t.result;for(var i=atob(t.result.split(",")[1]),o=[],r=0;r<i.length;r++)o.push(i.charCodeAt(r));a(window.URL.createObjectURL(new Blob([new Uint8Array(o)],{type:e.type})),!1,null,Y)},d(),t.readAsDataURL(e)}(o),!1;if(o.size>t.opts.videoMaxSize)return B(G),!1;if(t.opts.videoAllowedTypes.indexOf(o.type.replace(/video\//g,""))<0)return B(Z),!1;if(t.drag_support.formdata&&(i=t.drag_support.formdata?new FormData:null),i){var r;if(!1!==t.opts.videoUploadToS3)for(r in i.append("key",t.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(o.name||"untitled")),i.append("success_action_status","201"),i.append("X-Requested-With","xhr"),i.append("Content-Type",o.type),t.opts.videoUploadToS3.params)t.opts.videoUploadToS3.params.hasOwnProperty(r)&&i.append(r,t.opts.videoUploadToS3.params[r]);for(r in t.opts.videoUploadParams)t.opts.videoUploadParams.hasOwnProperty(r)&&i.append(r,t.opts.videoUploadParams[r]);i.append(t.opts.videoUploadParam,o);var s=t.opts.videoUploadURL;t.opts.videoUploadToS3&&(s=t.opts.videoUploadToS3.uploadURL?t.opts.videoUploadToS3.uploadURL:"https://"+t.opts.videoUploadToS3.region+".amazonaws.com/"+t.opts.videoUploadToS3.bucket);var n=t.core.getXHR(s,t.opts.videoUploadMethod);n.onload=function(){u.call(n,Y)},n.onerror=c,n.upload.onprogress=h,n.onabort=g,d(),t.events.disableBlur(),t.edit.off(),t.events.enableBlur();var l=t.popups.get("video.insert");l&&l.off("abortUpload").on("abortUpload",function(){4!=n.readyState&&n.abort()}),n.send(i)}}}function B(e,i){t.edit.on(),Y&&Y.find("video").addClass("fr-error"),v(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.error",[{code:e,message:Q[e]},i])}function I(){if(Y){var e=t.popups.get("video.size"),i=Y.find("iframe, embed, video");e.find('input[name="width"]').val(i.get(0).style.width||i.attr("width")).trigger("change"),e.find('input[name="height"]').val(i.get(0).style.height||i.attr("height")).trigger("change")}}function $(e){if(e)return t.popups.onRefresh("video.size",I),!0;var i={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.videoSizeButtons)+"</div>",size_layer:'<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'+t.id+'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-'+t.id+'" type="text" name="width" placeholder="'+t.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-'+t.id+'" type="text" name="height" placeholder="'+t.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoSetSize" tabIndex="2" role="button">'+t.language.translate("Update")+"</button></div></div>"},o=t.popups.create("video.size",i);return t.events.$on(t.$wp,"scroll",function(){Y&&t.popups.isVisible("video.size")&&(t.events.disableBlur(),p(Y))}),o}function k(e){if(void 0===e&&(e=Y),e){if(e.hasClass("fr-fvl"))return"left";if(e.hasClass("fr-fvr"))return"right";if(e.hasClass("fr-dvb")||e.hasClass("fr-dvi"))return"center";if("block"==e.css("display")){if("left"==e.css("text-algin"))return"left";if("right"==e.css("text-align"))return"right"}else{if("left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function F(e){void 0===e&&(e=Y);var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function O(){if(Y&&!1!==t.events.trigger("video.beforeRemove",[Y])){var e=Y;t.popups.hideAll(),x(!0),t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),e.remove(),t.selection.restore(),t.html.fillEmptyBlocks()}}function L(){l()}function z(e,i,o){!t.opts.htmlUntouched&&t.opts.useClasses?(e.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),e.addClass("fr-fv"+o[0]+" fr-dv"+i[0])):"inline"==i?(e.css({display:"inline-block"}),e.css("center"==o?{"float":"none"}:"left"==o?{"float":"left"}:{"float":"right"})):(e.css({display:"block",clear:"both"}),e.css("left"==o?{textAlign:"left"}:"right"==o?{textAlign:"right"}:{textAlign:"center"}))}function P(){t.$el.find("video").filter(function(){return 0===e(this).parents("span.fr-video").length}).wrap('<span class="fr-video fr-deletable" contenteditable="false"></span>'),t.$el.find("embed, iframe").filter(function(){if(t.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),0<e(this).parents("span.fr-video").length)return!1;for(var i=e(this).attr("src"),o=0;o<e.FE.VIDEO_PROVIDERS.length;o++){var r=e.FE.VIDEO_PROVIDERS[o];if(r.test_regex.test(i)&&new RegExp(t.opts.videoAllowedProviders.join("|")).test(r.provider))return!0}return!1}).map(function(){return 0===e(this).parents("object").length?this:e(this).parents("object").get(0)}).wrap('<span class="fr-video" contenteditable="false"></span>');for(var i,o,r=t.$el.find("span.fr-video, video"),s=0;s<r.length;s++){var n=e(r[s]);!t.opts.htmlUntouched&&t.opts.useClasses?((o=n).hasClass("fr-dvi")||o.hasClass("fr-dvb")||(o.addClass("fr-fv"+k(o)[0]),o.addClass("fr-dv"+F(o)[0])),t.opts.videoTextNear||n.removeClass("fr-dvi").addClass("fr-dvb")):t.opts.htmlUntouched||t.opts.useClasses||(z(i=n,i.hasClass("fr-dvb")?"block":i.hasClass("fr-dvi")?"inline":null,i.hasClass("fr-fvl")?"left":i.hasClass("fr-fvr")?"right":k(i)),i.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl"))}r.toggleClass("fr-draggable",t.opts.videoMove)}function T(){if(Y){t.selection.clear();var e=t.doc.createRange();e.selectNode(Y.get(0)),t.selection.get().addRange(e)}}var M,N,V,Y,H,j,X="https://i.froala.com/upload",K=2,W=3,q=4,G=5,Z=6,Q={};return Q[1]="Video cannot be loaded from the passed link.",Q[K]="No link in upload response.",Q[W]="Error during file upload.",Q[q]="Parsing response failed.",Q[G]="File is too large.",Q[Z]="Video file type is invalid.",Q[7]="Files can be uploaded only to same domain in IE 8 and IE 9.",t.shared.vid_exit_flag=!1,{_init:function(){t.opts.videoResponsive&&(t.opts.videoResize=!1),t.events.on("drop",D,!0),t.events.on("mousedown window.mousedown",R),t.events.on("window.touchmove",S),t.events.on("mouseup window.mouseup",x),t.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&x()}),t.events.on("video.hideResizer commands.undo commands.redo element.dropped",function(){x(!0)}),t.helpers.isMobile()&&(t.events.$on(t.$el,"touchstart","span.fr-video",function(){j=!1}),t.events.$on(t.$el,"touchmove",function(){j=!0})),t.events.on("html.set",P),P(),t.events.$on(t.$el,"mousedown","span.fr-video",function(e){e.stopPropagation(),(t.browser.msie||t.browser.edge)&&(e.target.dragDrop(),_.call(this,e))}),t.events.$on(t.$el,"click touchend","span.fr-video",function(t){return"false"==e(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:void _.call(this,t)}),t.events.on("keydown",function(i){var o=i.which;return!Y||o!=e.FE.KEYCODE.BACKSPACE&&o!=e.FE.KEYCODE.DELETE?Y&&o==e.FE.KEYCODE.ESC?(x(!0),i.preventDefault(),!1):Y&&o!=e.FE.KEYCODE.F10&&!t.keys.isBrowserAction(i)?(i.preventDefault(),!1):void 0:(i.preventDefault(),O(),t.undo.saveStep(),!1)},!0),t.events.on("toolbar.esc",function(){return Y?(t.events.disableBlur(),t.events.focus(),!1):void 0},!0),t.events.on("toolbar.focusEditor",function(){return Y?!1:void 0},!0),t.events.on("keydown",function(){t.$el.find("span.fr-video:empty").remove()}),t.$wp&&(C(),t.events.on("contentChanged",C)),r(!0),$(!0)},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertVideo"]'),i=t.popups.get("video.insert");if(i||(i=r()),l(),!i.hasClass("fr-active"))if(t.popups.refresh("video.insert"),t.popups.setContainer("video.insert",t.$tb),e.is(":visible")){var o=e.offset().left+e.outerWidth()/2,s=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("video.insert",o,s,e.outerHeight())}else t.position.forSelection(i),t.popups.show("video.insert")},showLayer:function(e){var i,o,r=t.popups.get("video.insert");if(!Y&&!t.opts.toolbarInline){var s=t.$tb.find('.fr-command[data-cmd="insertVideo"]');i=s.offset().left+s.outerWidth()/2,o=s.offset().top+(t.opts.toolbarBottom?10:s.outerHeight()-10)}t.opts.toolbarInline&&(o=r.offset().top-t.helpers.getPX(r.css("margin-top")),r.hasClass("fr-above")&&(o+=r.outerHeight())),r.find(".fr-layer").removeClass("fr-active"),r.find(".fr-"+e+"-layer").addClass("fr-active"),t.popups.show("video.insert",i,o,0),t.accessibility.focusPopup(r)},refreshByURLButton:function(e){t.popups.get("video.insert").find(".fr-video-by-url-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshEmbedButton:function(e){t.popups.get("video.insert").find(".fr-video-embed-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshUploadButton:function(e){t.popups.get("video.insert").find(".fr-video-upload-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},upload:U,insertByURL:function(i){void 0===i&&(i=(t.popups.get("video.insert").find('.fr-video-by-url-layer input[type="text"]').val()||"").trim());var o=null;if(/^http/.test(i)||(i="https://"+i),t.helpers.isURL(i))for(var r=0;r<e.FE.VIDEO_PROVIDERS.length;r++){var n=e.FE.VIDEO_PROVIDERS[r];if(n.test_regex.test(i)&&new RegExp(t.opts.videoAllowedProviders.join("|")).test(n.provider)){o=i.replace(n.url_regex,n.url_text),o=n.html.replace(/\{url\}/,o);break}}o?s(o):(v(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.linkError",[i]))},insertEmbed:function(i){void 0===i&&(i=t.popups.get("video.insert").find(".fr-video-embed-layer textarea").val()||""),0!==i.length&&e.FE.VIDEO_EMBED_REGEX.test(i)?s(i):(v(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.codeError",[i]))},insert:s,align:function(e){Y.removeClass("fr-fvr fr-fvl"),!t.opts.htmlUntouched&&t.opts.useClasses?"left"==e?Y.addClass("fr-fvl"):"right"==e&&Y.addClass("fr-fvr"):z(Y,F(),e),T(),A(),o(),t.selection.clear()},refreshAlign:function(e){return Y?void e.find("> *:first").replaceWith(t.icon.create("video-align-"+k())):!1},refreshAlignOnShow:function(e,t){Y&&t.find('.fr-command[data-param1="'+k()+'"]').addClass("fr-active").attr("aria-selected",!0)},display:function(e){Y.removeClass("fr-dvi fr-dvb"),!t.opts.htmlUntouched&&t.opts.useClasses?"inline"==e?Y.addClass("fr-dvi"):"block"==e&&Y.addClass("fr-dvb"):z(Y,e,k()),T(),A(),o(),t.selection.clear()},refreshDisplayOnShow:function(e,t){Y&&t.find('.fr-command[data-param1="'+F()+'"]').addClass("fr-active").attr("aria-selected",!0)},remove:O,hideProgressBar:l,showSizePopup:function(){var e=t.popups.get("video.size");e||(e=$()),l(),t.popups.refresh("video.size"),t.popups.setContainer("video.size",t.$sc);var i=Y.find("iframe, embed, video"),o=i.offset().left+i.width()/2,r=i.offset().top+i.height();t.popups.show("video.size",o,r,i.height())},replace:function(){var e=t.popups.get("video.insert");e||(e=r()),t.popups.isVisible("video.insert")||(l(),t.popups.refresh("video.insert"),t.popups.setContainer("video.insert",t.$sc));var i=Y.offset().left+Y.width()/2,o=Y.offset().top+Y.height();t.popups.show("video.insert",i,o,Y.outerHeight())},back:function(){Y?(t.events.disableBlur(),Y.trigger("click")):(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),t.popups.hide("video.insert"),t.toolbar.showInline())},setSize:function(e,i){if(Y){var o=t.popups.get("video.size"),r=Y.find("iframe, embed, video");r.css("width",e||o.find('input[name="width"]').val()),r.css("height",i||o.find('input[name="height"]').val()),r.get(0).style.width&&r.removeAttr("width"),r.get(0).style.height&&r.removeAttr("height"),o.find("input:focus").blur(),setTimeout(function(){Y.trigger("click")},t.helpers.isAndroid()?50:0)}},get:function(){return Y},showProgressBar:d}},e.FE.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),e.FE.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera"}),e.FE.DefineIcon("videoByURL",{NAME:"link"}),e.FE.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(e){this.video.refreshByURLButton(e)}}),e.FE.DefineIcon("videoEmbed",{NAME:"code"}),e.FE.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(e){this.video.refreshEmbedButton(e)}}),e.FE.DefineIcon("videoUpload",{NAME:"upload"}),e.FE.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(e){this.video.refreshUploadButton(e)}}),e.FE.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()
}}),e.FE.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),e.FE.DefineIcon("videoDisplay",{NAME:"star"}),e.FE.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.video.display(t)},refresh:function(e){this.opts.videoTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.video.refreshDisplayOnShow(e,t)}}),e.FE.DefineIcon("video-align",{NAME:"align-left"}),e.FE.DefineIcon("video-align-left",{NAME:"align-left"}),e.FE.DefineIcon("video-align-right",{NAME:"align-right"}),e.FE.DefineIcon("video-align-center",{NAME:"align-justify"}),e.FE.DefineIcon("videoAlign",{NAME:"align-center"}),e.FE.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',i=e.FE.COMMANDS.videoAlign.options;for(var o in i)i.hasOwnProperty(o)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'+o+'" title="'+this.language.translate(i[o])+'">'+this.icon.create("video-align-"+o)+'<span class="fr-sr-only">'+this.language.translate(i[o])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.video.align(t)},refresh:function(e){this.video.refreshAlign(e)},refreshOnShow:function(e,t){this.video.refreshAlignOnShow(e,t)}}),e.FE.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt"}),e.FE.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),e.FE.DefineIcon("videoRemove",{NAME:"trash"}),e.FE.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),e.FE.DefineIcon("videoSize",{NAME:"arrows-alt"}),e.FE.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),e.FE.DefineIcon("videoBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(e){this.video.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.FE.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),e.FE.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})})});
;/*!node_modules/froala-editor/js/plugins/word_paste.min.js*/
define("node_modules/froala-editor/js/plugins/word_paste.min",function(e,t,r){!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof r&&r.exports?r.exports=function(r,i){return void 0===i&&(i="undefined"!=typeof window?e("node_modules/jquery/dist/jquery"):e("node_modules/jquery/dist/jquery")(r)),t(i)}:t(window.jQuery)}(function(e){e.extend(e.FE.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height","list-style-type"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),e.FE.PLUGINS.wordPaste=function(t){function r(r){var s=t.opts.wordAllowedStyleProps;r||(t.opts.wordAllowedStyleProps=[]),0===c.indexOf("<colgroup>")&&(c="<table>"+c+"</table>"),c=function(r,s){0<=r.indexOf("<html")&&(r=r.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1")),!function(e){for(var t=e.split("v:shape"),r=1;r<t.length;r++){var i=t[r],n=i.split(' id="')[1];if(n&&1<n.length){n=n.split('"')[0];var a=i.split(' o:spid="')[1];a&&1<a.length&&(a=a.split('"')[0],v[n]=a)}}}(r);var f=(new DOMParser).parseFromString(r,"text/html"),p=f.head,c=f.body,m=function(e){var t={},r=e.getElementsByTagName("style");if(r.length){var i=r[0],n=i.innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(n)for(var a=0;a<n.length;a++){var l=n[a],o=l.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),s=l.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1");o=o.replace(/^[\s]|[\s]$/gm,""),s=s.replace(/^[\s]|[\s]$/gm,""),o=o.replace(/\n|\r|\n\r/g,""),s=s.replace(/\n|\r|\n\r/g,"");for(var d=o.split(", "),f=0;f<d.length;f++)t[d[f]]=s}}return t}(p);n(c,function(t){if(t.nodeType==Node.TEXT_NODE&&/\n|\u00a0|\r/.test(t.data)){if(!/\S| /.test(t.data)&&!/[\u00a0]+/.test(t.data))return t.data==e.FE.UNICODE_NBSP?(t.data="",!0):1==t.data.length&&10==t.data.charCodeAt(0)?(t.data=" ",!0):(i(t),!1);t.data=t.data.replace(/\n|\r/gi," ")}return!0}),n(c,function(r){return r.nodeType!=Node.ELEMENT_NODE||"V:IMAGEDATA"!=r.tagName&&"IMG"!=r.tagName||function(r,i){if(i){var n;if("IMG"==r.tagName){var a=r.getAttribute("src");if(!a||-1==a.indexOf("file://"))return;if(0===a.indexOf("file://")&&t.helpers.isURL(r.getAttribute("alt")))return r.setAttribute("src",r.getAttribute("alt"));(n=v[r.getAttribute("v:shapes")])||(n=r.getAttribute("v:shapes"),r.parentNode&&r.parentNode.parentNode&&0<=r.parentNode.parentNode.innerHTML.indexOf("msEquation")&&(n=null))}else n=r.parentNode.getAttribute("o:spid");if(r.removeAttribute("height"),n){l=i,h={},u(l,"i","\\shppict"),u(l,"s","\\shp{");var l,o=h[n.substring(7)];if(o){var s=function(e){for(var t=e.match(/[0-9a-f]{2}/gi),r=[],i=0;i<t.length;i++)r.push(String.fromCharCode(parseInt(t[i],16)));var n=r.join("");return btoa(n)}(o.image_hex),d="data:"+o.image_type+";base64,"+s;"IMG"===r.tagName?(r.src=d,r.setAttribute("data-fr-image-pasted",!0)):e(r.parentNode).before('<img data-fr-image-pasted="true" src="'+d+'" style="'+r.parentNode.getAttribute("style")+'">').remove()}}}}(r,s),!0});for(var b=c.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),E=b.length-1;E>=0;E--)b[E].previousElementSibling&&"LI"===b[E].previousElementSibling.tagName&&b[E].previousElementSibling.appendChild(b[E]);n(c,function(e){if(e.nodeType==Node.TEXT_NODE)return e.data=e.data.replace(/<br>(\n|\r)/gi,"<br>"),!1;if(e.nodeType==Node.ELEMENT_NODE){if(a(e)){var t=e.parentNode,r=e.previousSibling,n=function f(e,t,r){var i,n,o,s,d,u,g,p=/[0-9a-zA-Z]./gi,c=!1,m=e.querySelector('span[style="mso-list:Ignore"]');if(m&&(c=c||p.test(m.textContent)),1==c){var h=m.textContent.trim().split(".")[0];"a"==h?g="lower-alpha;":"A"==h?g="upper-alpha;":"1"==h?g="decimal;":"i"==h?g="lower-roman;":"I"==h?g="upper-roman;":"o"==h&&(g="circle;"),g="list-style-type: "+g,u="ol"}else u="ul";for(var v=g?"<"+u+' style = "'+g+'">':"<"+u+">";e;){if(!a(e)){if(e.outerHTML&&0<e.outerHTML.indexOf("mso-bookmark")&&0===(e.textContent||"").length){e=e.nextElementSibling;continue}break}var b=e.getAttribute("style").replace(/\n/gi,"").replace(/.*level([0-9]+?).*/gi,"$1");if((r=r||b)<b)d=f(e,t,b),v+=d.el.outerHTML,e=d.currentNode;else{if(r>b)break;e.firstElementChild&&e.firstElementChild.firstElementChild&&e.firstElementChild.firstElementChild.firstChild&&(p.lastIndex=0,n=p.test(e.firstElementChild.firstElementChild.firstChild.data||e.firstElementChild.firstElementChild.firstChild.firstChild.data||"")),i&&i.firstElementChild&&i.firstElementChild.firstElementChild&&i.firstElementChild.firstElementChild.firstChild&&(p.lastIndex=0,o=p.test(i.firstElementChild.firstElementChild.firstChild.data||i.firstElementChild.firstElementChild.firstChild.firstChild.data||"")),void 0===o||o===n?(s=l(e,t),v+="<li>"+s+"</li>"):(d=f(e,t,b),v+=d.el.outerHTML,e=d.currentNode);var E=e&&e.nextElementSibling;E&&(i=E.previousElementSibling),e&&e.parentNode&&e.parentNode.removeChild(e),e=E}}v+="</"+u+">";var y=document.createElement("div");y.innerHTML=v;var N=y.firstElementChild;return{el:N,currentNode:e}}(e,m).el,s=null;return(s=r?r.nextSibling:t.firstChild)?t.insertBefore(n,s):t.appendChild(n),!1}return"FONT"===e.tagName&&m["."+e.getAttribute("class")]&&(e=o(e,"span")),g(e,m)}if(e.nodeType==Node.COMMENT_NODE){if(-1<e.data.indexOf("[if !supportLineBreakNewLine]"))for(var d=e.nextSibling;d;)(d=e.nextSibling)&&i(d),d.data&&-1<d.data.indexOf("[endif]")&&(d=null);return i(e),!1}return!0}),n(c,function(e){if(e.nodeType==Node.ELEMENT_NODE){var t=e.tagName;if(!e.innerHTML&&-1==["BR","IMG"].indexOf(t)){for(var r=e.parentNode;r&&(i(e),!(e=r).innerHTML);)r=e.parentNode;return!1}!function(e){var t=e.getAttribute("style");if(t){(t=d(t))&&";"!=t.slice(-1)&&(t+=";");var r=t.match(/(^|\S+?):.+?;{1,1}/gi);if(r){for(var i={},n=0;n<r.length;n++){var a=r[n],l=a.split(":");2==l.length&&("text-align"==l[0]&&"SPAN"==e.tagName||(i[l[0]]=l[1]))}var o="";for(var s in i)if(i.hasOwnProperty(s)){if("font-size"==s&&"pt;"==i[s].slice(-3)){var f=null;try{f=parseFloat(i[s].slice(0,-3),10)}catch(u){}f&&(f=Math.round(1.33*f),i[s]=f+"px;")}o+=s+":"+i[s]}o&&e.setAttribute("style",o)}}}(e)}return!0}),n(c,function(e){if(e&&"A"===e.nodeName&&""===e.href){for(var t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)}return!0});var y=c.outerHTML,N=t.opts.htmlAllowedStyleProps;return t.opts.htmlAllowedStyleProps=t.opts.wordAllowedStyleProps,y=t.clean.html(y,t.opts.wordDeniedTags,t.opts.wordDeniedAttrs,!1),t.opts.htmlAllowedStyleProps=N,y}(c=c.replace(/<span[\n\r ]*style='mso-spacerun:yes'>([\r\n\u00a0 ]*)<\/span>/g,function(e,t){for(var r="",i=0;i++<t.length;)r+="&nbsp;";return r}),t.paste.getRtfClipboard());var f=t.doc.createElement("DIV");f.innerHTML=c,t.html.cleanBlankSpaces(f),c=f.innerHTML,c=(c=t.paste.cleanEmptyTagsAndDivs(c)).replace(/\u200b/g,""),t.modals.hide(m),t.paste.clean(c,!0,!0),t.opts.wordAllowedStyleProps=s}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function n(e,t){if(t(e))for(var r=e.firstChild;r;){var i=r,a=r.previousSibling;r=r.nextSibling,n(i,t),i.previousSibling||i.nextSibling||i.parentNode||!r||a==r.previousSibling||!r.parentNode?i.previousSibling||i.nextSibling||i.parentNode||!r||r.previousSibling||r.nextSibling||r.parentNode||(a?r=a.nextSibling?a.nextSibling.nextSibling:null:e.firstChild&&(r=e.firstChild.nextSibling)):r=a?a.nextSibling:e.firstChild}}function a(e){if(!e.getAttribute("style")||!/mso-list:[\s]*l/gi.test(e.getAttribute("style").replace(/\n/gi,"")))return!1;try{if(!e.querySelector('[style="mso-list:Ignore"]'))return!!(e.outerHTML&&0<=e.outerHTML.indexOf("<!--[if !supportLists]-->"))}catch(t){return!1}return!0}function l(e,r){var i=e.cloneNode(!0);if(-1!=["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName)){var a=document.createElement(e.tagName.toLowerCase());a.setAttribute("style",e.getAttribute("style")),a.innerHTML=i.innerHTML,i.innerHTML=a.outerHTML}n(i,function(e){if(e.nodeType==Node.COMMENT_NODE&&(t.browser.msie||t.browser.safari||t.browser.edge))try{if("[if !supportLists]"===e.data){for(e=e.nextSibling;e&&e.nodeType!==Node.COMMENT_NODE;){var n=e.nextSibling;e.parentNode.removeChild(e),e=n}e&&e.nodeType==Node.COMMENT_NODE&&e.parentNode.removeChild(e)}}catch(a){}var l,o;return e.nodeType==Node.ELEMENT_NODE&&("mso-list:Ignore"==e.getAttribute("style")&&e.parentNode.removeChild(e),e.setAttribute("style",(l="",o=i.getAttribute("style"),["line-height","font-family","font-size"].forEach(function(e){var t=o.match(new RegExp(e+":.*;"));t&&(l+=t[0]+";")}),l)),g(e,r)),!0});var l=i.innerHTML;return l=l.replace(/<!--[\s\S]*?-->/gi,"")}function o(e,t){for(var r=document.createElement(t),i=0;i<e.attributes.length;i++){var n=e.attributes[i].name;r.setAttribute(n,e.getAttribute(n))}return r.innerHTML=e.innerHTML,e.parentNode.replaceChild(r,e),r}function s(e){var t=e.getAttribute("align");t&&(e.style["text-align"]=t,e.removeAttribute("align"))}function d(e){return e.replace(/\n|\r|\n\r|&quot;/g,"")}function f(e,t,r){if(t){var i=e.getAttribute("style");i&&";"!=i.slice(-1)&&(i+=";"),t&&";"!=t.slice(-1)&&(t+=";"),t=t.replace(/\n/gi,"");var n=null;n=r?(i||"")+t:t+(i||""),e.setAttribute("style",n)}}function u(e,t,r){for(var i=e.split(r),n=1;n<i.length;n++){var a=i[n];if(1<(a=a.split("shplid")).length){a=a[1];for(var l="",o=0;o<a.length&&"\\"!=a[o]&&"{"!=a[o]&&" "!=a[o]&&"\r"!=a[o]&&"\n"!=a[o];)l+=a[o],o++;var s=a.split("bliptag");if(s&&s.length<2)continue;var d=null;if(-1!=s[0].indexOf("pngblip")?d="image/png":-1!=s[0].indexOf("jpegblip")&&(d="image/jpeg"),!d)continue;var f,u=s[1].split("}");if(u&&u.length<2)continue;if(2<u.length&&-1!=u[0].indexOf("blipuid"))f=u[1].split(" ");else{if((f=u[0].split(" "))&&f.length<2)continue;f.shift()}var g=f.join("");h[t+l]={image_hex:g,image_type:d}}}}function g(r,n){var l=r.tagName,u=l.toLowerCase();if(r.firstElementChild&&("I"==r.firstElementChild.tagName?o(r.firstElementChild,"em"):"B"==r.firstElementChild.tagName&&o(r.firstElementChild,"strong")),-1!=["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"].indexOf(l))return i(r),!1;var g=-1,p=["META","LINK","XML","ST1:","O:","W:","FONT"];for(g=0;g<p.length;g++)if(-1!=l.indexOf(p[g]))return r.innerHTML&&(r.outerHTML=r.innerHTML),i(r),!1;if("TD"!=l){var c=r.getAttribute("class")||"MsoNormal";if(n&&c){var m=(c=d(c)).split(" ");for(g=0;g<m.length;g++){var h=[],v="."+m[g];h.push(v),v=u+v,h.push(v);for(var b=0;b<h.length;b++)n[h[b]]&&f(r,n[h[b]])}r.removeAttribute("class")}n&&n[u]&&f(r,n[u])}if(-1!=["P","H1","H2","H3","H4","H5","H6","PRE"].indexOf(l)){var E=r.getAttribute("class");if(E&&(n&&n[l.toLowerCase()+"."+E]&&f(r,n[l.toLowerCase()+"."+E]),-1!=E.toLowerCase().indexOf("mso"))){var y=d(E);(y=y.replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""))?r.setAttribute("class",y):r.removeAttribute("class")}var N=r.getAttribute("style");if(N){var C=N.match(/text-align:.+?[; "]{1,1}/gi);C&&C[C.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1")}s(r)}if("TR"==l&&function(r,n){t.node.clearAttributes(r);for(var l=r.firstElementChild,o=0,u=!1,g=null;l;){l.firstElementChild&&-1!=l.firstElementChild.tagName.indexOf("W:")&&(l.innerHTML=l.firstElementChild.innerHTML),(g=l.getAttribute("width"))||u||(u=!0),o+=parseInt(g,10),(!l.firstChild||l.firstChild&&l.firstChild.data==e.FE.UNICODE_NBSP)&&(l.firstChild&&i(l.firstChild),l.innerHTML="<br>");for(var p=l.firstElementChild,c=1==l.children.length;p;)"P"!=p.tagName||a(p)||c&&s(p),p=p.nextElementSibling;if(n){var m=l.getAttribute("class");if(m){var h=(m=d(m)).match(/xl[0-9]+/gi);if(h){var v="."+h[0];n[v]&&f(l,n[v])}}n.td&&f(l,n.td)}var b=l.getAttribute("style");b&&(b=d(b))&&";"!=b.slice(-1)&&(b+=";");var E=l.getAttribute("valign");if(!E&&b){var y=b.match(/vertical-align:.+?[; "]{1,1}/gi);y&&(E=y[y.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var N=null;if(b){var C=b.match(/text-align:.+?[; "]{1,1}/gi);C&&(N=C[C.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"==N&&(N=null)}var A=null;if(b){var x=b.match(/background:.+?[; "]{1,1}/gi);x&&(A=x[x.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var T=l.getAttribute("colspan"),w=l.getAttribute("rowspan");T&&l.setAttribute("colspan",T),w&&l.setAttribute("rowspan",w),E&&(l.style["vertical-align"]=E),N&&(l.style["text-align"]=N),A&&(l.style["background-color"]=A),g&&l.setAttribute("width",g),l=l.nextElementSibling}for(l=r.firstElementChild;l;)g=l.getAttribute("width"),u?l.removeAttribute("width"):l.setAttribute("width",100*parseInt(g,10)/o+"%"),l=l.nextElementSibling}(r,n),"A"!=l||r.attributes.getNamedItem("href")||r.attributes.getNamedItem("name")||!r.innerHTML||(r.outerHTML=r.innerHTML),"A"==l&&r.getAttribute("href")&&r.querySelector("img")){var A=r.querySelectorAll("span");for(g=0;g<A.length;g++)A[g].innerText||(A[g].outerHTML=A[g].innerHTML)}if("TD"!=l&&"TH"!=l||r.innerHTML||(r.innerHTML="<br>"),"TABLE"==l&&(r.style.width=r.style.width),r.getAttribute("lang")&&r.removeAttribute("lang"),r.getAttribute("style")&&-1!=r.getAttribute("style").toLowerCase().indexOf("mso")){var x=d(r.getAttribute("style"));(x=x.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""))?r.setAttribute("style",x):r.removeAttribute("style")}return!0}var p,c,m="word_paste",h=null,v={};return{_init:function(){t.events.on("paste.wordPaste",function(i){return c=i,t.opts.wordPasteModal?function(){if(!p){var r='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+t.language.translate("Word Paste Detected")+"</h4>",i=(l='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">',l+='<p style="text-align: left;">'+t.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>",l+='<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+t.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+t.language.translate("Keep")+"</button></div>",l+="</div>"),n=t.modals.create(m,r,i),a=n.$body;p=n.$modal,n.$modal.addClass("fr-middle"),t.events.bindClick(a,"button.fr-remove-word",function(){var e=p.data("instance")||t;e.wordPaste.clean()}),t.events.bindClick(a,"button.fr-keep-word",function(){var e=p.data("instance")||t;e.wordPaste.clean(!0)}),t.events.$on(e(t.o_win),"resize",function(){t.modals.resize(m)})}var l;t.modals.show(m),t.modals.resize(m)}():r(t.opts.wordPasteKeepFormatting),!1})},clean:r}}})});