chunk-585e5a2b.53d84c77.js 1.4 MB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-585e5a2b"],{"030f":function(e,t,n){(function(e){(function(){"use strict";var t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},i=n("string"),a=n("object"),c=n("array"),u=o(null),s=r("boolean"),l=o(void 0),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},m=r("function"),g=r("number"),p=function(e,t){if(c(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},h=function(){},v=function(e){return function(){return e()}},y=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},b=function(e,t){return function(n){return e(t(n))}},w=function(e){return function(){return e}},k=function(e){return e},_=function(e,t){return e===t};function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var C=function(e){return function(t){return!e(t)}},z=function(e){return function(){throw new Error(e)}},S=w(!1),T=w(!0),O=tinymce.util.Tools.resolve("tinymce.ThemeManager"),E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)};function A(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function D(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var M=function(){return N},N=function(){var e=function(e){return e()},t=k,n={fold:function(e,t){return e()},isSome:S,isNone:T,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:w(null),getOrUndefined:w(void 0),or:t,orThunk:e,map:M,each:h,bind:M,exists:S,forall:T,filter:function(){return M()},toArray:function(){return[]},toString:w("none()")};return n}(),R=function(e){var t=w(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:T,isNone:S,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return R(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:N},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},B=function(e){return null===e||void 0===e?N:R(e)},P={some:R,none:M,from:B},L=Array.prototype.slice,I=Array.prototype.indexOf,H=Array.prototype.push,F=function(e,t){return I.call(e,t)},j=function(e,t){var n=F(e,t);return-1===n?P.none():P.some(n)},V=function(e,t){return F(e,t)>-1},U=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},q=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},W=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var o=L.call(e,r,r+t);n.push(o)}return n},$=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},G=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},K=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},X=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],c=t(a,o)?n:r;c.push(a)}return{pass:n,fail:r}},Y=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},J=function(e,t,n){return K(e,(function(e,r){n=t(n,e,r)})),n},Q=function(e,t,n){return G(e,(function(e,r){n=t(n,e,r)})),n},Z=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return P.some(i);if(n(i,r))break}return P.none()},ee=function(e,t){return Z(e,t,S)},te=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return P.some(n)}return P.none()},ne=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);H.apply(t,e[n])}return t},re=function(e,t){return ne($(e,t))},oe=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},ie=function(e){var t=L.call(e,0);return t.reverse(),t},ae=function(e,t){return Y(e,(function(e){return!V(t,e)}))},ce=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},ue=function(e){return[e]},se=function(e,t){var n=L.call(e,0);return n.sort(t),n},le=function(e,t){return t>=0&&t<e.length?P.some(e[t]):P.none()},fe=function(e){return le(e,0)},de=function(e){return le(e,e.length-1)},me=m(Array.from)?Array.from:function(e){return L.call(e)},ge=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return P.none()},pe=Object.keys,he=Object.hasOwnProperty,ve=function(e,t){for(var n=pe(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},ye=function(e,t){return be(e,(function(e,n){return{k:n,v:t(e,n)}}))},be=function(e,t){var n={};return ve(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},we=function(e){return function(t,n){e[n]=t}},ke=function(e,t,n,r){var o={};return ve(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},_e=function(e,t){var n={};return ke(e,t,we(n),h),n},xe=function(e,t){var n=[];return ve(e,(function(e,r){n.push(t(e,r))})),n},Ce=function(e,t){for(var n=pe(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];if(t(a,i,e))return P.some(a)}return P.none()},ze=function(e){return xe(e,k)},Se=function(e,t){return Te(e,t)?P.from(e[t]):P.none()},Te=function(e,t){return he.call(e,t)},Oe=function(e,t){return Te(e,t)&&void 0!==e[t]&&null!==e[t]},Ee=function(e,t,n){return void 0===n&&(n=_),e.exists((function(e){return n(e,t)}))},Ae=function(e,t,n){return void 0===n&&(n=_),Ne(e,t,n).getOr(e.isNone()&&t.isNone())},De=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Me=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return P.none();t.push(r.getOrDie())}return P.some(t)},Ne=function(e,t,n){return e.isSome()&&t.isSome()?P.some(n(e.getOrDie(),t.getOrDie())):P.none()},Re=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?P.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):P.none()},Be=function(e,t){return void 0!==e&&null!==e?P.some(t(e)):P.none()},Pe=function(e,t){return e?P.some(t):P.none()},Le=function(e,t){return e+t},Ie=function(e,t){return e.substring(t)},He=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},Fe=function(e,t){return Ue(e,t)?Ie(e,t.length):e},je=function(e,t){return qe(e,t)?e:Le(e,t)},Ve=function(e,t){return-1!==e.indexOf(t)},Ue=function(e,t){return He(e,t,0)},qe=function(e,t){return He(e,t,e.length-t.length)},We=function(e){return function(t){return t.replace(e,"")}},$e=We(/^\s+|\s+$/g),Ge=function(e){return e.length>0},Ke=function(e){return!Ge(e)},Xe=function(e){return void 0!==e.style&&m(e.style.getPropertyValue)},Ye=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ze(r.childNodes[0])},Je=function(e,t){var n=t||document,r=n.createElement(e);return Ze(r)},Qe=function(e,t){var n=t||document,r=n.createTextNode(e);return Ze(r)},Ze=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},et=function(e,t,n){return P.from(e.dom.elementFromPoint(t,n)).map(Ze)},tt={fromHtml:Ye,fromTag:Je,fromText:Qe,fromDom:Ze,fromPoint:et};"undefined"!==typeof window?window:Function("return this;")();var nt,rt=9,ot=11,it=1,at=3,ct=function(e){var t=e.dom.nodeName;return t.toLowerCase()},ut=function(e){return e.dom.nodeType},st=function(e){return function(t){return ut(t)===e}},lt=st(it),ft=st(at),dt=st(rt),mt=st(ot),gt=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},pt=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:w(o),isiPhone:w(i),isTablet:w(u),isPhone:w(s),isTouch:w(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:w(l),isDesktop:w(f)}},ht=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},vt=function(e,t){var n=ht(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return wt(r(1),r(2))},yt=function(e,t){var n=String(t).toLowerCase();return 0===e.length?bt():vt(e,n)},bt=function(){return wt(0,0)},wt=function(e,t){return{major:e,minor:t}},kt={nu:wt,detect:yt,unknown:bt},_t=function(e,t){return ge(t.brands,(function(t){var n=t.brand.toLowerCase();return ee(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:kt.nu(parseInt(t.version,10),0)}}))}))},xt=function(e,t){var n=String(t).toLowerCase();return ee(e,(function(e){return e.search(n)}))},Ct=function(e,t){return xt(e,t).map((function(e){var n=kt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},zt=function(e,t){return xt(e,t).map((function(e){var n=kt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},St=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Tt=function(e){return function(t){return Ve(t,e)}},Ot=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ve(e,"edge/")&&Ve(e,"chrome")&&Ve(e,"safari")&&Ve(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,St],search:function(e){return Ve(e,"chrome")&&!Ve(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ve(e,"msie")||Ve(e,"trident")}},{name:"Opera",versionRegexes:[St,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Tt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Tt("firefox")},{name:"Safari",versionRegexes:[St,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ve(e,"safari")||Ve(e,"mobile/"))&&Ve(e,"applewebkit")}}],Et=[{name:"Windows",search:Tt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ve(e,"iphone")||Ve(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Tt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Tt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Tt("linux"),versionRegexes:[]},{name:"Solaris",search:Tt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Tt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Tt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],At={browsers:w(Ot),oses:w(Et)},Dt="Edge",Mt="Chrome",Nt="IE",Rt="Opera",Bt="Firefox",Pt="Safari",Lt=function(){return It({current:void 0,version:kt.unknown()})},It=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Dt),isChrome:r(Mt),isIE:r(Nt),isOpera:r(Rt),isFirefox:r(Bt),isSafari:r(Pt)}},Ht={unknown:Lt,nu:It,edge:w(Dt),chrome:w(Mt),ie:w(Nt),opera:w(Rt),firefox:w(Bt),safari:w(Pt)},Ft="Windows",jt="iOS",Vt="Android",Ut="Linux",qt="OSX",Wt="Solaris",$t="FreeBSD",Gt="ChromeOS",Kt=function(){return Xt({current:void 0,version:kt.unknown()})},Xt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ft),isiOS:r(jt),isAndroid:r(Vt),isOSX:r(qt),isLinux:r(Ut),isSolaris:r(Wt),isFreeBSD:r($t),isChromeOS:r(Gt)}},Yt={unknown:Kt,nu:Xt,windows:w(Ft),ios:w(jt),android:w(Vt),linux:w(Ut),osx:w(qt),solaris:w(Wt),freebsd:w($t),chromeos:w(Gt)},Jt=function(e,t,n){var r=At.browsers(),o=At.oses(),i=t.bind((function(e){return _t(r,e)})).orThunk((function(){return Ct(r,e)})).fold(Ht.unknown,Ht.nu),a=zt(o,e).fold(Yt.unknown,Yt.nu),c=pt(a,i,e,n);return{browser:i,os:a,deviceType:c}},Qt={detect:Jt},Zt=function(e){return window.matchMedia(e).matches},en=gt((function(){return Qt.detect(navigator.userAgent,P.from(navigator.userAgentData),Zt)})),tn=function(){return en()},nn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},rn=function(e,t){return nn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},on=function(e,t){var n=e.dom;if(n.nodeType!==it)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},an=function(e){return e.nodeType!==it&&e.nodeType!==rt&&e.nodeType!==ot||0===e.childElementCount},cn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?[]:$(n.querySelectorAll(e),tt.fromDom)},un=function(e,t){var n=void 0===t?document:t.dom;return an(n)?P.none():P.from(n.querySelector(e)).map(tt.fromDom)},sn=function(e,t){return e.dom===t.dom},ln=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},fn=function(e,t){return rn(e.dom,t.dom)},dn=function(e,t){return tn().browser.isIE()?fn(e,t):ln(e,t)},mn=function(e){return tt.fromDom(e.dom.ownerDocument)},gn=function(e){return dt(e)?e:mn(e)},pn=function(e){return tt.fromDom(gn(e).dom.documentElement)},hn=function(e){return tt.fromDom(gn(e).dom.defaultView)},vn=function(e){return P.from(e.dom.parentNode).map(tt.fromDom)},yn=function(e){return vn(e)},bn=function(e){return P.from(e.dom.offsetParent).map(tt.fromDom)},wn=function(e){return P.from(e.dom.nextSibling).map(tt.fromDom)},kn=function(e){return $(e.dom.childNodes,tt.fromDom)},_n=function(e,t){var n=e.dom.childNodes;return P.from(n[t]).map(tt.fromDom)},xn=function(e){return _n(e,0)},Cn=function(e,t){return{element:e,offset:t}},zn=function(e,t){var n=kn(e);return n.length>0&&t<n.length?Cn(n[t],0):Cn(e,t)},Sn=function(e){return mt(e)&&d(e.dom.host)},Tn=m(Element.prototype.attachShadow)&&m(Node.prototype.getRootNode),On=w(Tn),En=Tn?function(e){return tt.fromDom(e.dom.getRootNode())}:gn,An=function(e){return Sn(e)?e:tt.fromDom(gn(e).dom.body)},Dn=function(e){return Mn(e).isSome()},Mn=function(e){var t=En(e);return Sn(t)?P.some(t):P.none()},Nn=function(e){return tt.fromDom(e.dom.host)},Rn=function(e){if(On()&&d(e.target)){var t=tt.fromDom(e.target);if(lt(t)&&Bn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return fe(n)}}return P.from(e.target)},Bn=function(e){return d(e.dom.shadowRoot)},Pn=function(e){var t=ft(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Mn(tt.fromDom(t)).fold((function(){return n.body.contains(t)}),b(Pn,Nn))},Ln=function(){return In(tt.fromDom(document))},In=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return tt.fromDom(t)},Hn=function(e,t,n){if(!(i(n)||s(n)||g(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Fn=function(e,t,n){Hn(e.dom,t,n)},jn=function(e,t){var n=e.dom;ve(t,(function(e,t){Hn(n,t,e)}))},Vn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Un=function(e,t){return P.from(Vn(e,t))},qn=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Wn=function(e,t){e.dom.removeAttribute(t)},$n=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Xe(e)&&e.style.setProperty(t,n)},Gn=function(e,t){Xe(e)&&e.style.removeProperty(t)},Kn=function(e,t,n){var r=e.dom;$n(r,t,n)},Xn=function(e,t){var n=e.dom;ve(t,(function(e,t){$n(n,t,e)}))},Yn=function(e,t){var n=e.dom;ve(t,(function(e,t){e.fold((function(){Gn(n,t)}),(function(e){$n(n,t,e)}))}))},Jn=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Pn(e)?o:Qn(n,t)},Qn=function(e,t){return Xe(e)?e.style.getPropertyValue(t):""},Zn=function(e,t){var n=e.dom,r=Qn(n,t);return P.from(r).filter((function(e){return e.length>0}))},er=function(e){var t={},n=e.dom;if(Xe(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},tr=function(e,t,n){var r=tt.fromTag(e);Kn(r,t,n);var o=Zn(r,t);return o.isSome()},nr=function(e,t){var n=e.dom;Gn(n,t),Ee(Un(e,"style").map($e),"")&&Wn(e,"style")},rr=function(e){return e.dom.offsetWidth},or=function(e,t){var n=function(t,n){if(!g(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Xe(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=Jn(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return Q(t,(function(t,n){var r=Jn(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},ir=or("height",(function(e){var t=e.dom;return Pn(e)?t.getBoundingClientRect().height:t.offsetHeight})),ar=function(e){return ir.get(e)},cr=function(e){return ir.getOuter(e)},ur=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=ir.max(e,t,n);Kn(e,"max-height",r+"px")},sr=function(e,t){var n=function(n,r){return sr(e+n,t+r)};return{left:e,top:t,translate:n}},lr=sr,fr=function(e){var t=e.getBoundingClientRect();return lr(t.left,t.top)},dr=function(e,t){return void 0!==e?e:void 0!==t?t:0},mr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return lr(n.offsetLeft,n.offsetTop);var i=dr(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=dr(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),c=dr(o.clientTop,n.clientTop),u=dr(o.clientLeft,n.clientLeft);return gr(e).translate(a-u,i-c)},gr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?lr(r.offsetLeft,r.offsetTop):Pn(e)?fr(t):lr(0,0)},pr=or("width",(function(e){return e.dom.offsetWidth})),hr=function(e,t){return pr.set(e,t)},vr=function(e){return pr.get(e)},yr=function(e){return pr.getOuter(e)},br=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=pr.max(e,t,n);Kn(e,"max-width",r+"px")},wr=function(e,t,n,r,o,i,a){return{target:e,x:t,y:n,stop:r,prevent:o,kill:i,raw:a}},kr=function(e){var t=tt.fromDom(Rn(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=y(r,n);return wr(t,e.clientX,e.clientY,n,r,o,e)},_r=function(e,t){return function(n){e(n)&&t(kr(n))}},xr=function(e,t,n,r,o){var i=_r(n,r);return e.dom.addEventListener(t,i,o),{unbind:x(Sr,e,t,i,o)}},Cr=function(e,t,n,r){return xr(e,t,n,r,!1)},zr=function(e,t,n,r){return xr(e,t,n,r,!0)},Sr=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Tr=function(e,t){var n=vn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Or=function(e,t){var n=wn(e);n.fold((function(){var n=vn(e);n.each((function(e){Ar(e,t)}))}),(function(e){Tr(e,t)}))},Er=function(e,t){var n=xn(e);n.fold((function(){Ar(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Ar=function(e,t){e.dom.appendChild(t.dom)},Dr=function(e,t,n){_n(e,n).fold((function(){Ar(e,t)}),(function(e){Tr(e,t)}))},Mr=function(e,t){G(t,(function(t){Tr(e,t)}))},Nr=function(e,t){G(t,(function(t){Ar(e,t)}))},Rr=function(e){e.dom.textContent="",G(kn(e),(function(e){Br(e)}))},Br=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Pr=function(e){var t=kn(e);t.length>0&&Mr(e,t),Br(e)},Lr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return lr(n,r)},Ir=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(e,t)},Hr=function(e){var t=void 0===e?window:e;return tn().browser.isFirefox()?P.none():P.from(t["visualViewport"])},Fr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},jr=function(e){var t=void 0===e?window:e,n=t.document,r=Lr(tt.fromDom(n));return Hr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Fr(r.left,r.top,n,o)}),(function(e){return Fr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Vr=function(e,t){var n=e.view(t);return n.fold(w([]),(function(t){var n=e.owner(t),r=Vr(e,n);return[t].concat(r)}))},Ur=function(e,t){var n=t.owner(e),r=Vr(t,n);return P.some(r)},qr=function(e){var t,n=e.dom===document?P.none():P.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(tt.fromDom)},Wr=function(e){return mn(e)},$r=Object.freeze({__proto__:null,view:qr,owner:Wr}),Gr=function(e){var t=tt.fromDom(document),n=Lr(t),r=Ur(e,$r);return r.fold(x(mr,e),(function(t){var r=gr(e),o=J(t,(function(e,t){var n=gr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return lr(o.left+r.left+n.left,o.top+r.top+n.top)}))},Kr=function(e,t,n){return{point:e,width:t,height:n}},Xr=function(e,t,n,r){return{x:e,y:t,width:n,height:r}},Yr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Jr=function(e){var t=mr(e),n=yr(e),r=cr(e);return Yr(t.left,t.top,n,r)},Qr=function(e){var t=Gr(e),n=yr(e),r=cr(e);return Yr(t.left,t.top,n,r)},Zr=function(){return jr(window)},eo=function(e){var t=function(t){return eo(e)},n=function(t){return eo(e)},r=function(t){return eo(t(e))},o=function(t){return eo(e)},i=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},u=function(t){return t(e)},s=function(t){return t(e)},l=function(){return P.some(e)};return{isValue:T,isError:S,getOr:w(e),getOrThunk:w(e),getOrDie:w(e),or:t,orThunk:n,fold:c,map:r,mapError:o,each:i,bind:a,exists:u,forall:s,toOptional:l}},to=function(e){var t=function(e){return e()},n=function(){return z(String(e))()},r=k,o=function(e){return e()},i=function(t){return to(e)},a=function(t){return to(t(e))},c=function(t){return to(e)},u=function(t,n){return t(e)};return{isValue:S,isError:T,getOr:k,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:u,map:i,mapError:a,each:h,bind:c,exists:S,forall:T,toOptional:P.none}},no=function(e,t){return e.fold((function(){return to(t)}),eo)},ro={value:eo,error:to,fromOption:no};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(nt||(nt={}));var oo=function(e,t,n){return e.stype===nt.Error?t(e.serror):n(e.svalue)},io=function(e){var t=[],n=[];return G(e,(function(e){oo(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},ao=function(e,t){return e.stype===nt.Error?{stype:nt.Error,serror:t(e.serror)}:e},co=function(e,t){return e.stype===nt.Value?{stype:nt.Value,svalue:t(e.svalue)}:e},uo=function(e,t){return e.stype===nt.Value?t(e.svalue):e},so=function(e,t){return e.stype===nt.Error?t(e.serror):e},lo=function(e){return{stype:nt.Value,svalue:e}},fo=function(e){return{stype:nt.Error,serror:e}},mo=function(e){return oo(e,ro.error,ro.value)},go=function(e){return e.fold(fo,lo)},po={fromResult:go,toResult:mo,svalue:lo,partition:io,serror:fo,bind:uo,bindError:so,map:co,mapError:ao,fold:oo},ho=function(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}},vo=function(e,t){return{tag:"custom",newKey:e,instantiator:t}},yo=function(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},bo=function(e,t){return t},wo=function(e,t){var n=a(e)&&a(t);return n?_o(e,t):t},ko=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)Te(i,a)&&(r[a]=e(r[a],i[a]))}return r}},_o=ko(wo),xo=ko(bo),Co=function(){return{tag:"required",process:{}}},zo=function(e){return{tag:"defaultedThunk",process:e}},So=function(e){return zo(w(e))},To=function(){return{tag:"option",process:{}}},Oo=function(e){return{tag:"mergeWithThunk",process:e}},Eo=function(e){return Oo(w(e))},Ao=function(e,t){return e.length>0?po.svalue(_o(t,xo.apply(void 0,e))):po.svalue(t)},Do=function(e){return y(po.serror,ne)(e)},Mo=function(e,t){var n=po.partition(e);return n.errors.length>0?Do(n.errors):Ao(n.values,t)},No=function(e){var t=po.partition(e);return t.errors.length>0?Do(t.errors):po.svalue(t.values)},Ro={consolidateObj:Mo,consolidateArr:No},Bo=function(e){return a(e)&&pe(e).length>100?" removed due to size":JSON.stringify(e,null,2)},Po=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:w("... (only showing first ten failures)")}]):e;return $(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},Lo=function(e,t){return po.serror([{path:e,getErrorInfo:t}])},Io=function(e,t,n){return Lo(e,(function(){return'Could not find valid *required* value for "'+t+'" in '+Bo(n)}))},Ho=function(e,t){return Lo(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},Fo=function(e,t,n){return Lo(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Bo(t)}))},jo=function(e,t){return Lo(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},Vo=function(e,t){return Lo(e,w(t))},Uo=function(e){var t=function(t,n){return po.bindError(e(n),(function(e){return Vo(t,e)}))},n=w("val");return{extract:t,toString:n}},qo=Uo(po.svalue),Wo=function(e,t,n,r){return Se(t,n).fold((function(){return Io(e,n,t)}),r)},$o=function(e,t,n,r){var o=Se(e,t).getOrThunk((function(){return n(e)}));return r(o)},Go=function(e,t,n){return n(Se(e,t))},Ko=function(e,t,n,r){var o=Se(e,t).map((function(t){return!0===t?n(e):t}));return r(o)},Xo=function(e,t,n,r,o){var i=function(e){return o.extract(t.concat([r]),e)},a=function(e){return e.fold((function(){return po.svalue(P.none())}),(function(e){var n=o.extract(t.concat([r]),e);return po.map(n,P.some)}))};switch(e.tag){case"required":return Wo(t,n,r,i);case"defaultedThunk":return $o(n,r,e.process,i);case"option":return Go(n,r,a);case"defaultedOptionThunk":return Ko(n,r,e.process,a);case"mergeWithThunk":return $o(n,r,w({}),(function(t){var r=_o(e.process(n),t);return i(r)}))}},Yo=function(e,t,n){for(var r={},o=[],i=0,a=n;i<a.length;i++){var c=a[i];yo(c,(function(n,i,a,c){var u=Xo(a,e,t,n,c);po.fold(u,(function(e){o.push.apply(o,e)}),(function(e){r[i]=e}))}),(function(e,n){r[e]=n(t)}))}return o.length>0?po.serror(o):po.svalue(r)},Jo=function(e){var t=function(t,n){return e().extract(t,n)},n=function(){return e().toString()};return{extract:t,toString:n}},Qo=function(e){return pe(_e(e,d))},Zo=function(e){var t=ei(e),n=J(e,(function(e,t){return yo(t,(function(t){var n;return _o(e,(n={},n[t]=!0,n))}),w(e))}),{}),r=function(e,r){var o=s(r)?[]:Qo(r),i=Y(o,(function(e){return!Oe(n,e)}));return 0===i.length?t.extract(e,r):jo(e,i)};return{extract:r,toString:t.toString}},ei=function(e){var t=function(t,n){return Yo(t,n,e)},n=function(){var t=$(e,(function(e){return yo(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:n}},ti=function(e){var t=function(t,n){var r=$(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return Ro.consolidateArr(r)},n=function(){return"array("+e.toString()+")"};return{extract:t,toString:n}},ni=function(e){var t=function(t,n){for(var r=[],o=0,i=e;o<i.length;o++){var a=i[o],c=a.extract(t,n);if(c.stype===nt.Value)return c;r.push(c)}return Ro.consolidateArr(r)},n=function(){return"oneOf("+$(e,(function(e){return e.toString()})).join(", ")+")"};return{extract:t,toString:n}},ri=function(e,t){var n=function(t,n){return ti(Uo(e)).extract(t,n)},r=function(e,r){var o=pe(r),i=n(e,o);return po.bind(i,(function(n){var o=$(n,(function(e){return ho(e,e,Co(),t)}));return ei(o).extract(e,r)}))},o=function(){return"setOf("+t.toString()+")"};return{extract:r,toString:o}},oi=function(e,t){var n=gt(t),r=function(e,t){return n().extract(e,t)},o=function(){return n().toString()};return{extract:r,toString:o}},ii=y(ti,ei),ai=w(qo),ci=function(e,t){return Uo((function(n){var r=typeof n;return e(n)?po.svalue(n):po.serror("Expected type: "+t+" but got: "+r)}))},ui=ci(g,"number"),si=ci(i,"string"),li=ci(s,"boolean"),fi=ci(m,"function"),di=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return di(e[t])}));default:return!1}},mi=Uo((function(e){return di(e)?po.svalue(e):po.serror("Expected value to be acceptable for sending via postMessage")})),gi=function(e,t,n,r){var o=Se(n,r);return o.fold((function(){return Fo(e,n,r)}),(function(n){return n.extract(e.concat(["branch: "+r]),t)}))},pi=function(e,t){var n=function(n,r){var o=Se(r,e);return o.fold((function(){return Ho(n,e)}),(function(e){return gi(n,r,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+pe(t)};return{extract:n,toString:r}},hi=function(){return ti(qo)},vi=function(e){return Uo((function(t){return e(t).fold(po.serror,po.svalue)}))},yi=function(e,t){return ri((function(t){return po.fromResult(e(t))}),t)},bi=function(e,t,n){var r=t.extract([e],n);return po.mapError(r,(function(e){return{input:n,errors:e}}))},wi=function(e,t,n){return po.toResult(bi(e,t,n))},ki=function(e){return e.fold((function(e){throw new Error(xi(e))}),k)},_i=function(e,t,n){return ki(wi(e,t,n))},xi=function(e){return"Errors: \n"+Po(e.errors).join("\n")+"\n\nInput object: "+Bo(e.input)},Ci=function(e,t){return pi(e,ye(t,ei))},zi=function(e,t){return oi(e,t)},Si=ho,Ti=vo,Oi=function(e){return vi((function(t){return V(e,t)?ro.value(t):ro.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},Ei=function(e){return Si(e,e,Co(),ai())},Ai=function(e,t){return Si(e,e,Co(),t)},Di=function(e){return Ai(e,ui)},Mi=function(e){return Ai(e,si)},Ni=function(e,t){return Si(e,e,Co(),Oi(t))},Ri=function(e){return Ai(e,li)},Bi=function(e){return Ai(e,fi)},Pi=function(e,t){return Si(e,e,To(),Uo((function(n){return po.serror("The field: "+e+" is forbidden. "+t)})))},Li=function(e,t){return Si(e,e,Co(),ei(t))},Ii=function(e,t){return Si(e,e,Co(),ii(t))},Hi=function(e,t){return Si(e,e,Co(),ti(t))},Fi=function(e){return Si(e,e,To(),ai())},ji=function(e,t){return Si(e,e,To(),t)},Vi=function(e){return ji(e,ui)},Ui=function(e){return ji(e,si)},qi=function(e){return ji(e,fi)},Wi=function(e,t){return ji(e,ti(t))},$i=function(e,t){return ji(e,ei(t))},Gi=function(e,t){return ji(e,Zo(t))},Ki=function(e,t){return Si(e,e,So(t),ai())},Xi=function(e,t,n){return Si(e,e,So(t),n)},Yi=function(e,t){return Xi(e,t,ui)},Ji=function(e,t){return Xi(e,t,si)},Qi=function(e,t,n){return Xi(e,t,Oi(n))},Zi=function(e,t){return Xi(e,t,li)},ea=function(e,t){return Xi(e,t,fi)},ta=function(e,t){return Xi(e,t,mi)},na=function(e,t,n){return Xi(e,t,ti(n))},ra=function(e,t,n){return Xi(e,t,ei(n))},oa=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},ia=function(e){if(!c(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return G(e,(function(r,o){var i=pe(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!c(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);var c=function(e){var r=pe(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=oe(t,(function(e){return V(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:c,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},aa={generate:ia};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ca,ua=function(e){var t=[],n=[];return G(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}},sa=function(e,t){var n={};return ve(e,(function(e,r){V(t,r)||(n[r]=e)})),n},la=function(e,t){var n;return n={},n[e]=t,n},fa=function(e){var t={};return G(e,(function(e){t[e.key]=e.value})),t},da=function(e,t){return sa(e,t)},ma=function(e,t){return la(e,t)},ga=function(e){return fa(e)},pa=function(e,t){return 0===e.length?ro.value(t):ro.value(_o(t,xo.apply(void 0,e)))},ha=function(e){return ro.error(ne(e))},va=function(e,t){var n=ua(e);return n.errors.length>0?ha(n.errors):pa(n.values,t)},ya=function(e){return m(e)?e:S},ba=function(e,t,n){var r=e.dom,o=ya(n);while(r.parentNode){r=r.parentNode;var i=tt.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return P.none()},wa=function(e,t,n){var r=t(e),o=ya(n);return r.orThunk((function(){return o(e)?P.none():ba(e,t,o)}))},ka=function(e,t){return sn(e.element,t.event.target)},_a={can:T,abort:S,run:h},xa=function(e){if(!Oe(e,"can")&&!Oe(e,"abort")&&!Oe(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return E(E({},_a),e)},Ca=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Q(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},za=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Q(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},Sa=function(e){return m(e)?{can:T,abort:S,run:e}:e},Ta=function(e){var t=Ca(e,(function(e){return e.can})),n=za(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(e,(function(e){e.run.apply(void 0,t)}))};return{can:t,abort:n,run:r}},Oa=w,Ea=Oa("touchstart"),Aa=Oa("touchmove"),Da=Oa("touchend"),Ma=Oa("touchcancel"),Na=Oa("mousedown"),Ra=Oa("mousemove"),Ba=Oa("mouseout"),Pa=Oa("mouseup"),La=Oa("mouseover"),Ia=Oa("focusin"),Ha=Oa("focusout"),Fa=Oa("keydown"),ja=Oa("keyup"),Va=Oa("input"),Ua=Oa("change"),qa=Oa("click"),Wa=Oa("transitioncancel"),$a=Oa("transitionend"),Ga=Oa("transitionstart"),Ka=Oa("selectstart"),Xa=function(e){return w("alloy."+e)},Ya={tap:Xa("tap")},Ja=Xa("focus"),Qa=Xa("blur.post"),Za=Xa("paste.post"),ec=Xa("receive"),tc=Xa("execute"),nc=Xa("focus.item"),rc=Ya.tap,oc=Xa("longpress"),ic=Xa("sandbox.close"),ac=Xa("typeahead.cancel"),cc=Xa("system.init"),uc=Xa("system.touchmove"),sc=Xa("system.touchend"),lc=Xa("system.scroll"),fc=Xa("system.resize"),dc=Xa("system.attached"),mc=Xa("system.detached"),gc=Xa("system.dismissRequested"),pc=Xa("system.repositionRequested"),hc=Xa("focusmanager.shifted"),vc=Xa("slotcontainer.visibility"),yc=Xa("change.tab"),bc=Xa("dismiss.tab"),wc=Xa("highlight"),kc=Xa("dehighlight"),_c=function(e,t){Sc(e,e.element,t,{})},xc=function(e,t,n){Sc(e,e.element,t,n)},Cc=function(e){_c(e,tc())},zc=function(e,t,n){Sc(e,t,n,{})},Sc=function(e,t,n,r){var o=E({target:t},r);e.getSystem().triggerEvent(n,t,o)},Tc=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)},Oc=function(e){return ga(e)},Ec=function(e,t){return{key:e,value:xa({abort:t})}},Ac=function(e,t){return{key:e,value:xa({can:t})}},Dc=function(e){return{key:e,value:xa({run:function(e,t){t.event.prevent()}})}},Mc=function(e,t){return{key:e,value:xa({run:t})}},Nc=function(e,t,n){return{key:e,value:xa({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}},Rc=function(e){return function(t){return Mc(e,t)}},Bc=function(e){return function(t){return{key:e,value:xa({run:function(e,n){ka(e,n)&&t(e,n)}})}}},Pc=function(e,t){return Mc(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){Tc(t,t.element,e,r)}))}))},Lc=function(e,t,n){var r=t.partUids[n];return Pc(e,r)},Ic=function(e,t){return Mc(e,(function(e,n){var r=n.event,o=e.getSystem().getByDom(r.target).getOrThunk((function(){var t=wa(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),S);return t.getOr(e)}));t(e,o,n)}))},Hc=function(e){return Mc(e,(function(e,t){t.cut()}))},Fc=function(e){return Mc(e,(function(e,t){t.stop()}))},jc=function(e,t){return Bc(e)(t)},Vc=Bc(dc()),Uc=Bc(mc()),qc=Bc(cc()),Wc=Rc(tc()),$c=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,kn(tt.fromDom(r))},Gc=function(e){return e.dom.innerHTML},Kc=function(e,t){var n=mn(e),r=n.dom,o=tt.fromDom(r.createDocumentFragment()),i=$c(t,r);Nr(o,i),Rr(e),Ar(e,o)},Xc=function(e){var t=tt.fromTag("div"),n=tt.fromDom(e.dom.cloneNode(!0));return Ar(t,n),Gc(t)},Yc=function(e,t){return tt.fromDom(e.dom.cloneNode(t))},Jc=function(e){return Yc(e,!1)},Qc=function(e){if(Sn(e))return"#shadow-root";var t=Jc(e);return Xc(t)},Zc=function(e){return Qc(e)},eu=function(e,t,n){return sn(t,e.element)&&!sn(t,n)},tu=Oc([Ac(Ja(),(function(e,t){var n=t.event,r=n.originator,o=n.target;return!eu(e,r,o)||(console.warn(Ja()+" did not get interpreted by the desired target. \nOriginator: "+Zc(r)+"\nTarget: "+Zc(o)+"\nCheck the "+Ja()+" event handlers"),!1)}))]),nu=Object.freeze({__proto__:null,events:tu}),ru=0,ou=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return ru++,e+"_"+r+ru+String(n)},iu=w("alloy-id-"),au=w("data-alloy-id"),cu=iu(),uu=au(),su=function(e,t){var n=ou(cu+e);return lu(t,n),n},lu=function(e,t){Object.defineProperty(e.dom,uu,{value:t,writable:!0})},fu=function(e){var t=lt(e)?e.dom[uu]:null;return P.from(t)},du=function(e){return ou(e)},mu=k,gu=function(e){var t=function(t){return"The component must be in a context to execute: "+t+(e?"\n"+Zc(e().element)+" is not in context.":"")},n=function(e){return function(){throw new Error(t(e))}},r=function(e){return function(){console.warn(t(e))}};return{debugInfo:w("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:S}},pu=gu(),hu=function(e,t,n){var r=n.toString(),o=r.indexOf(")")+1,i=r.indexOf("("),a=r.substring(i+1,o-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vu(a.slice(0,1).concat(a.slice(3)))}},e},vu=function(e){return $(e,(function(e){return qe(e,"/*")?e.substring(0,e.length-"/*".length):e}))},yu=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vu(i)}},e},bu=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:vu(i.slice(1))}},e},wu=ou("alloy-premade"),ku=function(e){return ma(wu,e)},_u=function(e){return Se(e,wu)},xu=function(e){return bu((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,D([t.getApis(),t],n,!1))}),e)},Cu={init:function(){return zu({readState:w("No State required")})}},zu=function(e){return e},Su=function(e,t){var n=$(t,(function(e){return $i(e.name(),[Ei("config"),Ki("state",Cu)])})),r=wi("component.behaviours",ei(n),e.behaviours).fold((function(t){throw new Error(xi(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),k);return{list:t,data:ye(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return w(t)}))}},Tu=function(e){return e.list},Ou=function(e){return e.data},Eu=function(e,t){var n={};return ve(e,(function(e,r){ve(e,(function(e,o){var i=Se(n,o).getOr([]);n[o]=i.concat([t(r,e)])}))})),n},Au=function(e){return{classes:l(e.classes)?[]:e.classes,attributes:l(e.attributes)?{}:e.attributes,styles:l(e.styles)?{}:e.styles}},Du=function(e,t){return E(E({},e),{attributes:E(E({},e.attributes),t.attributes),styles:E(E({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},Mu=function(e,t,n,r){var o=E({},t);G(n,(function(t){o[t.name()]=t.exhibit(e,r)}));var i=Eu(o,(function(e,t){return{name:e,modification:t}})),a=function(e){return J(e,(function(e,t){return E(E({},t.modification),e)}),{})},c=J(i.classes,(function(e,t){return t.modification.concat(e)}),[]),u=a(i.attributes),s=a(i.styles);return Au({classes:c,attributes:u,styles:s})},Nu=function(e,t,n,r){try{var o=se(n,(function(n,o){var i=n[t],a=o[t],c=r.indexOf(i),u=r.indexOf(a);if(-1===c)throw new Error("The ordering for "+e+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===u)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return c<u?-1:u<c?1:0}));return ro.value(o)}catch(i){return ro.error([i])}},Ru=function(e,t){return{handler:e,purpose:t}},Bu=function(e,t){return{cHandler:e,purpose:t}},Pu=function(e,t){return Bu(x.apply(void 0,[e.handler].concat(t)),e.purpose)},Lu=function(e){return e.cHandler},Iu=function(e,t){return{name:e,handler:t}},Hu=function(e,t){var n={};return G(e,(function(e){n[e.name()]=e.handlers(t)})),n},Fu=function(e,t,n){var r=E(E({},n),Hu(t,e));return Eu(r,Iu)},ju=function(e,t,n,r){var o=Fu(e,n,r);return Wu(o,t)},Vu=function(e){var t=Sa(e);return function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=[e,n].concat(r);t.abort.apply(void 0,i)?n.stop():t.can.apply(void 0,i)&&t.run.apply(void 0,i)}},Uu=function(e,t){return ro.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify($(t,(function(e){return e.name})),null,2)])},qu=function(e,t,n){var r=t[n];return r?Nu("Event: "+n,"name",e,r).map((function(e){var t=$(e,(function(e){return e.handler}));return Ta(t)})):Uu(n,e)},Wu=function(e,t){var n=xe(e,(function(e,n){var r=1===e.length?ro.value(e[0].handler):qu(e,t,n);return r.map((function(r){var o=Vu(r),i=e.length>1?Y(t[n],(function(t){return U(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return ma(n,Ru(o,i))}))}));return va(n,{})},$u="alloy.base.behaviour",Gu=ei([Si("dom","dom",Co(),ei([Ei("tag"),Ki("styles",{}),Ki("classes",[]),Ki("attributes",{}),Fi("value"),Fi("innerHtml")])),Ei("components"),Ei("uid"),Ki("events",{}),Ki("apis",{}),Si("eventOrder","eventOrder",Eo((ca={},ca[tc()]=["disabling",$u,"toggling","typeaheadevents"],ca[Ja()]=[$u,"focusing","keying"],ca[cc()]=[$u,"disabling","toggling","representing"],ca[Va()]=[$u,"representing","streaming","invalidating"],ca[mc()]=[$u,"representing","item-events","tooltipping"],ca[Na()]=["focusing",$u,"item-type-events"],ca[Ea()]=["focusing",$u,"item-type-events"],ca[La()]=["item-type-events","tooltipping"],ca[ec()]=["receiving","reflecting","tooltipping"],ca)),ai()),Fi("domModification")]),Ku=function(e){return wi("custom.definition",Gu,e)},Xu=function(e){return E(E({},e.dom),{uid:e.uid,domChildren:$(e.components,(function(e){return e.element}))})},Yu=function(e){return e.domModification.fold((function(){return Au({})}),Au)},Ju=function(e){return e.events},Qu=function(e,t){var n=Vn(e,t);return void 0===n||""===n?[]:n.split(" ")},Zu=function(e,t,n){var r=Qu(e,t),o=r.concat([n]);return Fn(e,t,o.join(" ")),!0},es=function(e,t,n){var r=Y(Qu(e,t),(function(e){return e!==n}));return r.length>0?Fn(e,t,r.join(" ")):Wn(e,t),!1},ts=function(e){return void 0!==e.dom.classList},ns=function(e){return Qu(e,"class")},rs=function(e,t){return Zu(e,"class",t)},os=function(e,t){return es(e,"class",t)},is=function(e,t){ts(e)?e.dom.classList.add(t):rs(e,t)},as=function(e){var t=ts(e)?e.dom.classList:ns(e);0===t.length&&Wn(e,"class")},cs=function(e,t){if(ts(e)){var n=e.dom.classList;n.remove(t)}else os(e,t);as(e)},us=function(e,t){return ts(e)&&e.dom.classList.contains(t)},ss=function(e,t){G(t,(function(t){is(e,t)}))},ls=function(e,t){G(t,(function(t){cs(e,t)}))},fs=function(e,t){return oe(t,(function(t){return us(e,t)}))},ds=function(e){return e.dom.value},ms=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},gs=function(e){var t=tt.fromTag(e.tag);jn(t,e.attributes),ss(t,e.classes),Xn(t,e.styles),e.innerHtml.each((function(e){return Kc(t,e)}));var n=e.domChildren;return Nr(t,n),e.value.each((function(e){ms(t,e)})),e.uid,lu(t,e.uid),t},ps=function(e){var t=Se(e,"behaviours").getOr({});return re(pe(t),(function(e){var n=t[e];return d(n)?[n.me]:[]}))},hs=function(e,t){return Su(e,t)},vs=function(e){var t=ps(e);return hs(e,t)},ys=function(e,t,n){var r=Xu(e),o=Yu(e),i={"alloy.base.modification":o},a=t.length>0?Mu(n,i,t,r):o;return Du(r,a)},bs=function(e,t,n){var r={"alloy.base.behaviour":Ju(e)};return ju(n,e.eventOrder,t,r).getOrDie()},ws=function(e){var t=function(){return b},n=oa(pu),r=ki(Ku(e)),o=vs(e),i=Tu(o),a=Ou(o),c=ys(r,i,a),u=gs(c),s=bs(r,i,a),l=oa(r.components),f=function(e){n.set(e)},d=function(){n.set(gu(t))},g=function(){var e=kn(u),t=re(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),ue)}));l.set(t)},p=function(t){var n=a,r=m(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},h=function(e){return m(a[e.name()])},v=function(){return r.apis},y=function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},b={uid:e.uid,getSystem:n.get,config:p,hasConfigured:h,spec:e,readState:y,getApis:v,connect:f,disconnect:d,element:u,syncComponents:g,components:l.get,events:s};return b},ks=function(e){var t=Se(e,"components").getOr([]);return $(t,Ts)},_s=function(e){var t=mu(e),n=t.events,r=A(t,["events"]),o=ks(r),i=E(E({},r),{events:E(E({},nu),n),components:o});return ro.value(ws(i))},xs=function(e){var t=tt.fromText(e);return Cs({element:t})},Cs=function(e){var t=_i("external.component",Zo([Ei("element"),Fi("uid")]),e),n=oa(gu()),r=function(e){n.set(e)},o=function(){n.set(gu((function(){return a})))},i=t.uid.getOrThunk((function(){return du("external")}));lu(t.element,i);var a={uid:i,getSystem:n.get,config:P.none,hasConfigured:S,connect:r,disconnect:o,getApis:function(){return{}},element:t.element,spec:e,readState:w("No state"),syncComponents:h,components:w([]),events:{}};return ku(a)},zs=du,Ss=function(e){return Te(e,"uid")},Ts=function(e){return _u(e).getOrThunk((function(){var t=Ss(e)?e:E({uid:zs("")},e);return _s(t).getOrDie()}))},Os=ku;function Es(e,t,n,r,o){return e(n,r)?P.some(n):m(o)&&o(n)?P.none():t(n,r,o)}var As,Ds=function(e,t,n){var r=e.dom,o=m(n)?n:S;while(r.parentNode){r=r.parentNode;var i=tt.fromDom(r);if(t(i))return P.some(i);if(o(i))break}return P.none()},Ms=function(e,t,n){var r=function(e,t){return t(e)};return Es(r,Ds,e,t,n)},Ns=function(e,t){var n=function(e){return t(tt.fromDom(e))},r=ee(e.dom.childNodes,n);return r.map(tt.fromDom)},Rs=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var o=tt.fromDom(e.childNodes[r]);if(t(o))return P.some(o);var i=n(e.childNodes[r]);if(i.isSome())return i}return P.none()};return n(e.dom)},Bs=function(e,t,n){return Ms(e,t,n).isSome()},Ps=function(e,t,n){return Ds(e,(function(e){return on(e,t)}),n)},Ls=function(e,t){return Ns(e,(function(e){return on(e,t)}))},Is=function(e,t){return un(t,e)},Hs=function(e,t,n){var r=function(e,t){return on(e,t)};return Es(r,Ps,e,t,n)},Fs=function(e){var t=Ms(e,(function(e){if(!lt(e))return!1;var t=Vn(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=Vn(e,"id"),n=En(e);return Is(n,'[aria-owns="'+t+'"]')}))},js=function(){var e=ou("aria-owns"),t=function(t){Fn(t,"aria-owns",e)},n=function(e){Wn(e,"aria-owns")};return{id:e,link:t,unlink:n}},Vs=function(e,t){return Fs(t).exists((function(t){return Us(e,t)}))},Us=function(e,t){return Bs(t,(function(t){return sn(t,e.element)}),S)||Vs(e,t)},qs="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(As||(As={}));var Ws=oa({}),$s=function(e,t){var n=[],r=(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){var o=(new Date).getTime();V(["mousemove","mouseover","mouseout",cc()],e)||console.log(e,{event:e,time:o-r,target:t.dom,sequence:$(n,(function(e){return V(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Zc(e.target)+")":e.outcome}))})}}},Gs=function(e,t,n){var r=Se(Ws.get(),e).orThunk((function(){var t=pe(Ws.get());return ge(t,(function(t){return e.indexOf(t)>-1?P.some(Ws.get()[t]):P.none()}))})).getOr(As.NORMAL);switch(r){case As.NORMAL:return n(Qs());case As.LOGGING:var o=$s(e,t),i=n(o);return o.write(),i;case As.STOP:return!0}},Ks=["alloy/data/Fields","alloy/debugging/Debugging"],Xs=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return ee(t,(function(e){return e.indexOf("alloy")>0&&!U(Ks,(function(t){return e.indexOf(t)>-1}))})).getOr(qs)}return qs},Ys={logEventCut:h,logEventStopped:h,logNoParent:h,logEventNoHandlers:h,logEventResponse:h,write:h},Js=function(e,t,n){return Gs(e,t,n)},Qs=w(Ys),Zs=w([Ei("menu"),Ei("selectedMenu")]),el=w([Ei("item"),Ei("selectedItem")]);w(ei(el().concat(Zs())));var tl=w(ei(el())),nl=Li("initSize",[Ei("numColumns"),Ei("numRows")]),rl=function(){return Ai("markers",tl())},ol=function(){return Li("markers",[Ei("backgroundMenu")].concat(Zs()).concat(el()))},il=function(e){return Li("markers",$(e,Ei))},al=function(e,t,n){return Xs(),Si(t,t,n,vi((function(e){return ro.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},cl=function(e){return al("onHandler",e,So(h))},ul=function(e){return al("onKeyboardHandler",e,So(P.none))},sl=function(e){return al("onHandler",e,Co())},ll=function(e){return al("onKeyboardHandler",e,Co())},fl=function(e,t){return Ti(e,w(t))},dl=function(e){return Ti(e,k)},ml=w(nl),gl=function(e,t,n,r,o,i,a,c){return void 0===c&&(c=!1),{x:e,y:t,bubble:n,direction:r,placement:o,restriction:i,label:a+"-"+o,alwaysFit:c}},pl=aa.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),hl=function(e,t,n,r,o,i,a,c,u){return e.fold(t,n,r,o,i,a,c,u)},vl=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},yl=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},bl=pl.southeast,wl=pl.southwest,kl=pl.northeast,_l=pl.northwest,xl=pl.south,Cl=pl.north,zl=pl.east,Sl=pl.west,Tl=function(e,t,n,r){var o=e+t;return o>r?n:o<n?r:o},Ol=function(e,t,n){return Math.min(Math.max(e,t),n)},El=function(e,t){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},Al=function(e,t){return ce(["left","right","top","bottom"],(function(n){return Se(t,n).map((function(t){return El(e,t)}))}))},Dl=function(e,t,n){var r=function(r,o){return t[r].map((function(t){var i="top"===r||"bottom"===r,a=i?n.top:n.left,c="left"===r||"top"===r?Math.max:Math.min,u=c(t,o)+a;return i?Ol(u,e.y,e.bottom):Ol(u,e.x,e.right)})).getOr(o)},o=r("left",e.x),i=r("top",e.y),a=r("right",e.right),c=r("bottom",e.bottom);return Yr(o,i,a-o,c-i)},Ml="layout",Nl=function(e){return e.x},Rl=function(e,t){return e.x+e.width/2-t.width/2},Bl=function(e,t){return e.x+e.width-t.width},Pl=function(e,t){return e.y-t.height},Ll=function(e){return e.y+e.height},Il=function(e,t){return e.y+e.height/2-t.height/2},Hl=function(e){return e.x+e.width},Fl=function(e,t){return e.x-t.width},jl=function(e,t,n){return gl(Nl(e),Ll(e),n.southeast(),bl(),"southeast",Al(e,{left:1,top:3}),Ml)},Vl=function(e,t,n){return gl(Bl(e,t),Ll(e),n.southwest(),wl(),"southwest",Al(e,{right:0,top:3}),Ml)},Ul=function(e,t,n){return gl(Nl(e),Pl(e,t),n.northeast(),kl(),"northeast",Al(e,{left:1,bottom:2}),Ml)},ql=function(e,t,n){return gl(Bl(e,t),Pl(e,t),n.northwest(),_l(),"northwest",Al(e,{right:0,bottom:2}),Ml)},Wl=function(e,t,n){return gl(Rl(e,t),Pl(e,t),n.north(),Cl(),"north",Al(e,{bottom:2}),Ml)},$l=function(e,t,n){return gl(Rl(e,t),Ll(e),n.south(),xl(),"south",Al(e,{top:3}),Ml)},Gl=function(e,t,n){return gl(Hl(e),Il(e,t),n.east(),zl(),"east",Al(e,{left:0}),Ml)},Kl=function(e,t,n){return gl(Fl(e,t),Il(e,t),n.west(),Sl(),"west",Al(e,{right:1}),Ml)},Xl=function(){return[jl,Vl,Ul,ql,$l,Wl,Gl,Kl]},Yl=function(){return[Vl,jl,ql,Ul,$l,Wl,Gl,Kl]},Jl=function(){return[Ul,ql,jl,Vl,Wl,$l]},Ql=function(){return[ql,Ul,Vl,jl,Wl,$l]},Zl=function(){return[jl,Vl,Ul,ql,$l,Wl]},ef=function(){return[Vl,jl,ql,Ul,$l,Wl]},tf=function(e,t){return t.universal?e:Y(e,(function(e){return V(t.channels,e)}))},nf=function(e){return Oc([Mc(ec(),(function(t,n){var r=e.channels,o=pe(r),i=n,a=tf(o,i);G(a,(function(e){var n=r[e],o=n.schema,a=_i("channel["+e+"] data\nReceiver: "+Zc(t.element),o,i.data);n.onReceive(t,a)}))}))])},rf=Object.freeze({__proto__:null,events:nf}),of=[Ai("channels",yi(ro.value,Zo([sl("onReceive"),Ki("schema",ai())])))],af=function(e,t,n){return Wc((function(r){n(r,e,t)}))},cf=function(e,t,n){return qc((function(r,o){n(r,e,t)}))},uf=function(e,t,n,r,o,i){var a=Zo(e),c=$i(t,[Gi("config",e)]);return df(a,c,t,n,r,o,i)},sf=function(e,t,n,r,o,i){var a=e,c=$i(t,[ji("config",e)]);return df(a,c,t,n,r,o,i)},lf=function(e,t,n){var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a=[r].concat(o);return r.config({name:w(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(a,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return hu(r,n,t)},ff=function(e){return{key:e,value:void 0}},df=function(e,t,n,r,o,i,a){var c=function(e){return Oe(e,n)?e[n]():P.none()},u=ye(o,(function(e,t){return lf(n,e,t)})),s=ye(i,(function(e,t){return yu(e,t)})),l=E(E(E({},s),u),{revoke:x(ff,n),config:function(t){var r=_i(n+"-config",e,t);return{key:n,value:{config:r,me:l,configAsRaw:gt((function(){return _i(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:w(t),exhibit:function(e,t){return Ne(c(e),Se(r,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Au({})}))},name:w(n),handlers:function(e){return c(e).map((function(e){var t=Se(r,"events").getOr((function(){return{}}));return t(e.config,e.state)})).getOr({})}});return l},mf=function(e){return ga(e)},gf=Zo([Ei("fields"),Ei("name"),Ki("active",{}),Ki("apis",{}),Ki("state",Cu),Ki("extra",{})]),pf=function(e){var t=_i("Creating behaviour: "+e.name,gf,e);return uf(t.fields,t.name,t.active,t.apis,t.extra,t.state)},hf=Zo([Ei("branchKey"),Ei("branches"),Ei("name"),Ki("active",{}),Ki("apis",{}),Ki("state",Cu),Ki("extra",{})]),vf=function(e){var t=_i("Creating behaviour: "+e.name,hf,e);return sf(Ci(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},yf=w(void 0),bf=pf({fields:of,name:"receiving",active:rf}),wf=function(e,t){return Au({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},kf=Object.freeze({__proto__:null,exhibit:wf}),_f=function(){return tt.fromDom(document)},xf=function(e){return e.dom.focus()},Cf=function(e){return e.dom.blur()},zf=function(e){var t=En(e).dom;return e.dom===t.activeElement},Sf=function(e){return void 0===e&&(e=_f()),P.from(e.dom.activeElement).map(tt.fromDom)},Tf=function(e){return Sf(En(e)).filter((function(t){return e.dom.contains(t.dom)}))},Of=function(e,t){var n=En(t),r=Sf(n).bind((function(e){var n=function(t){return sn(e,t)};return n(t)?P.some(t):Rs(t,n)})),o=e(t);return r.each((function(e){Sf(n).filter((function(t){return sn(t,e)})).fold((function(){xf(e)}),h)})),o},Ef=function(e,t,n,r,o){var i=function(e){return e+"px"};return{position:e,left:t.map(i),top:n.map(i),right:r.map(i),bottom:o.map(i)}},Af=function(e){return E(E({},e),{position:P.some(e.position)})},Df=function(e,t){Yn(e,Af(t))},Mf=aa.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Nf=function(e,t,n,r,o,i){var a=t.rect,c=a.x-n,u=a.y-r,s=a.width,l=a.height,f=o-(c+s),d=i-(u+l),m=P.some(c),g=P.some(u),p=P.some(f),h=P.some(d),v=P.none();return hl(t.direction,(function(){return Ef(e,m,g,v,v)}),(function(){return Ef(e,v,g,p,v)}),(function(){return Ef(e,m,v,v,h)}),(function(){return Ef(e,v,v,p,h)}),(function(){return Ef(e,m,g,v,v)}),(function(){return Ef(e,m,v,v,h)}),(function(){return Ef(e,m,g,v,v)}),(function(){return Ef(e,v,g,p,v)}))},Rf=function(e,t){return e.fold((function(){var e=t.rect;return Ef("absolute",P.some(e.x),P.some(e.y),P.none(),P.none())}),(function(e,n,r,o){return Nf("absolute",t,e,n,r,o)}),(function(e,n,r,o){return Nf("fixed",t,e,n,r,o)}))},Bf=function(e,t){var n=x(Gr,t),r=e.fold(n,n,(function(){var e=Lr();return Gr(t).translate(-e.left,-e.top)})),o=yr(t),i=cr(t);return Yr(r.left,r.top,o,i)},Pf=function(e,t){return t.fold((function(){return e.fold(Zr,Zr,Yr)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=Lf(e,n.x,n.y);return Yr(r.left,r.top,n.width,n.height)}))}))},Lf=function(e,t,n){var r=lr(t,n),o=function(){var e=Lr();return r.translate(-e.left,-e.top)};return e.fold(w(r),w(r),o)},If=function(e,t,n,r){return e.fold(t,n,r)};Mf.none;var Hf,Ff=Mf.relative,jf=Mf.fixed,Vf=function(e,t){return{anchorBox:e,origin:t}},Uf=function(e,t){return Vf(e,t)},qf="data-alloy-placement",Wf=function(e,t){Fn(e,qf,t)},$f=function(e){return Un(e,qf)},Gf=function(e){return Wn(e,qf)},Kf=aa.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Xf=function(e,t){var n=t.x,r=t.y,o=t.right,i=t.bottom,a=e.x,c=e.y,u=e.right,s=e.bottom,l=e.width,f=e.height,d=a>=n&&a<=o,m=c>=r&&c<=i,g=d&&m,p=u<=o&&u>=n,h=s<=i&&s>=r,v=p&&h,y=Math.min(l,a>=n?o-a:u-n),b=Math.min(f,c>=r?i-c:s-r);return{originInBounds:g,sizeInBounds:v,visibleW:y,visibleH:b}},Yf=function(e,t){var n=t.x,r=t.y,o=t.right,i=t.bottom,a=e.x,c=e.y,u=e.width,s=e.height,l=Math.max(n,o-u),f=Math.max(r,i-s),d=Ol(a,n,l),m=Ol(c,r,f),g=Math.min(d+u,o)-d,p=Math.min(m+s,i)-m;return Yr(d,m,g,p)},Jf=function(e,t,n){var r=w(t.bottom-n.y),o=w(n.bottom-t.y),i=vl(e,o,o,r),a=w(t.right-n.x),c=w(n.right-t.x),u=yl(e,c,c,a);return{maxWidth:u,maxHeight:i}},Qf=function(e,t,n,r){var o=e.bubble,i=o.offset,a=Dl(r,e.restriction,i),c=e.x+i.left,u=e.y+i.top,s=Yr(c,u,t,n),l=Xf(s,a),f=l.originInBounds,d=l.sizeInBounds,m=l.visibleW,g=l.visibleH,p=f&&d,h=p?s:Yf(s,a),v=h.width>0&&h.height>0,y=Jf(e.direction,h,r),b=y.maxWidth,w=y.maxHeight,k={rect:h,maxHeight:w,maxWidth:b,direction:e.direction,placement:e.placement,classes:{on:o.classesOn,off:o.classesOff},layout:e.label,testY:u};return p||e.alwaysFit?Kf.fit(k):Kf.nofit(k,m,g,v)},Zf=function(e,t,n,r,o,i){var a=r.width,c=r.height,u=function(t,u,s,l,f){var d=t(n,r,o,e,i),m=Qf(d,a,c,i);return m.fold(w(m),(function(e,t,n,r){var o=f===r?n>l||t>s:!f&&r;return o?m:Kf.nofit(u,s,l,f)}))},s=Q(t,(function(e,t){var n=x(u,t);return e.fold(w(e),n)}),Kf.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:bl(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return s.fold(k,k)},ed=function(e){var t=oa(P.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(P.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(P.some(e))};return{clear:r,isSet:o,get:i,set:a}},td=function(){return ed((function(e){return e.destroy()}))},nd=function(){return ed((function(e){return e.unbind()}))},rd=function(){var e=td(),t=function(t){return e.get().each(t)};return E(E({},e),{run:t})},od=function(){var e=ed(h),t=function(t){return e.get().each(t)};return E(E({},e),{on:t})},id=T,ad=function(e,t,n){return Cr(e,t,id,n)},cd=function(e,t,n){return zr(e,t,id,n)},ud=kr,sd=["top","bottom","right","left"],ld="data-alloy-transition-timer",fd=function(e,t){return fs(e,t.classes)},dd=function(e,t,n){return n.exists((function(n){var r=e.mode;return"all"===r||n[r]!==t[r]}))},md=function(e,t){var n=function(e){return parseFloat(e).toFixed(3)};return Ce(t,(function(t,r){var o=e[r].map(n),i=t.map(n);return!Ae(o,i)})).isSome()},gd=function(e){var t=function(t){var n=Jn(e,t),r=i(n)?n.split(/\s*,\s*/):[];return Y(r,Ge)},n=function(e){if(i(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return qe(e,"ms")?t:1e3*t}return 0},r=t("transition-delay"),o=t("transition-duration");return Q(o,(function(e,t,o){var i=n(r[o])+n(t);return Math.max(e,i)}),0)},pd=function(e,t){var n,r=nd(),o=nd(),i=function(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return sn(t.target,e)&&Ke(r)&&V(sd,t.raw.propertyName)},a=function(a){if(f(a)||i(a)){r.clear(),o.clear();var c=null===a||void 0===a?void 0:a.raw.type;(f(c)||c===$a())&&(clearTimeout(n),Wn(e,ld),ls(e,t.classes))}},c=function(){r.set(ad(e,$a(),a)),o.set(ad(e,Wa(),a))};if("ontransitionstart"in e.dom)var u=ad(e,Ga(),(function(e){i(e)&&(u.unbind(),c())}));else c();var s=gd(e);requestAnimationFrame((function(){n=setTimeout(a,s+17),Fn(e,ld,n)}))},hd=function(e,t){ss(e,t.classes),Un(e,ld).each((function(t){clearTimeout(parseInt(t,10)),Wn(e,ld)})),pd(e,t)},vd=function(e,t,n,r,o,i){var a=dd(r,o,i);if(a||fd(e,r)){Kn(e,"position",n.position);var c=Bf(t,e),u=Rf(t,E(E({},o),{rect:c})),s=ce(sd,(function(e){return u[e]}));md(n,s)&&(Yn(e,s),a&&hd(e,r),rr(e))}else ls(e,r.classes)},yd=function(e){return{width:yr(e),height:cr(e)}},bd=function(e,t,n,r){nr(t,"max-height"),nr(t,"max-width");var o=yd(t);return Zf(t,r.preference,e,o,n,r.bounds)},wd=function(e,t){var n=t.classes;ls(e,n.off),ss(e,n.on)},kd=function(e,t,n){var r=n.maxHeightFunction;r(e,t.maxHeight)},_d=function(e,t,n){var r=n.maxWidthFunction;r(e,t.maxWidth)},xd=function(e,t,n){var r=Rf(n.origin,t);n.transition.each((function(o){vd(e,n.origin,r,o,t,n.lastPlacement)})),Df(e,r)},Cd=function(e,t){Wf(e,t.placement)},zd=function(e,t){ur(e,Math.floor(t))},Sd=w((function(e,t){zd(e,t),Xn(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Td=w((function(e,t){zd(e,t)})),Od=function(e,t,n){return void 0===e[t]?n:e[t]},Ed=function(e,t,n,r,o,i,a,c){var u=Od(a,"maxHeightFunction",Sd()),s=Od(a,"maxWidthFunction",h),l=e.anchorBox,f=e.origin,d={bounds:Pf(f,i),origin:f,preference:r,maxHeightFunction:u,maxWidthFunction:s,lastPlacement:o,transition:c};return Ad(l,t,n,d)},Ad=function(e,t,n,r){var o=bd(e,t,n,r);return xd(t,o,r),Cd(t,o),wd(t,o),kd(t,o,r),_d(t,o,r),{layout:o.layout,placement:o.placement}},Dd=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Md=function(e,t,n,r){void 0===r&&(r=1);var o=e*r,i=t*r,a=function(e){return Se(n,e).getOr([])},c=function(e,t,n){var r=ae(Dd,n);return{offset:lr(e,t),classesOn:re(n,a),classesOff:re(r,a)}};return{southeast:function(){return c(-e,t,["top","alignLeft"])},southwest:function(){return c(e,t,["top","alignRight"])},south:function(){return c(-e/2,t,["top","alignCentre"])},northeast:function(){return c(-e,-t,["bottom","alignLeft"])},northwest:function(){return c(e,-t,["bottom","alignRight"])},north:function(){return c(-e/2,-t,["bottom","alignCentre"])},east:function(){return c(e,-t/2,["valignCentre","left"])},west:function(){return c(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return c(o,i,["top","alignLeft","inset"])},insetNorthwest:function(){return c(-o,i,["top","alignRight","inset"])},insetNorth:function(){return c(-o/2,i,["top","alignCentre","inset"])},insetSoutheast:function(){return c(o,-i,["bottom","alignLeft","inset"])},insetSouthwest:function(){return c(-o,-i,["bottom","alignRight","inset"])},insetSouth:function(){return c(-o/2,-i,["bottom","alignCentre","inset"])},insetEast:function(){return c(-o,-i/2,["valignCentre","right","inset"])},insetWest:function(){return c(o,-i/2,["valignCentre","left","inset"])}}},Nd=function(){return Md(0,0,{})},Rd=k,Bd=function(e,t){return function(n){return"rtl"===Pd(n)?t:e}},Pd=function(e){return"rtl"===Jn(e,"direction")?"rtl":"ltr"};(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})(Hf||(Hf={}));var Ld="data-alloy-vertical-dir",Id=function(e){return Bs(e,(function(e){return lt(e)&&Vn(e,"data-alloy-vertical-dir")===Hf.BottomToTop}))},Hd=function(){return $i("layouts",[Ei("onLtr"),Ei("onRtl"),Fi("onBottomLtr"),Fi("onBottomRtl")])},Fd=function(e,t,n,r,o,i,a){var c=a.map(Id).getOr(!1),u=t.layouts.map((function(t){return t.onLtr(e)})),s=t.layouts.map((function(t){return t.onRtl(e)})),l=c?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(u).getOr(o):u.getOr(n),f=c?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(s).getOr(i):s.getOr(r),d=Bd(l,f);return d(e)},jd=function(e,t,n){var r=t.hotspot,o=Bf(n,r.element),i=Fd(e.element,t,Zl(),ef(),Jl(),Ql(),P.some(t.hotspot.element));return P.some(Rd({anchorBox:o,bubble:t.bubble.getOr(Nd()),overrides:t.overrides,layouts:i,placer:P.none()}))},Vd=[Ei("hotspot"),Fi("bubble"),Ki("overrides",{}),Hd(),fl("placement",jd)],Ud=function(e,t,n){var r=Lf(n,t.x,t.y),o=Yr(r.left,r.top,t.width,t.height),i=Fd(e.element,t,Xl(),Yl(),Xl(),Yl(),P.none());return P.some(Rd({anchorBox:o,bubble:t.bubble,overrides:t.overrides,layouts:i,placer:P.none()}))},qd=[Ei("x"),Ei("y"),Ki("height",0),Ki("width",0),Ki("bubble",Nd()),Ki("overrides",{}),Hd(),fl("placement",Ud)],Wd=aa.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),$d=function(e){return e.fold(k,(function(e,t,n){return e.translate(-t,-n)}))},Gd=function(e){return e.fold(k,k)},Kd=function(e){return Q(e,(function(e,t){return e.translate(t.left,t.top)}),lr(0,0))},Xd=function(e){var t=$(e,$d);return Kd(t)},Yd=function(e){var t=$(e,Gd);return Kd(t)},Jd=Wd.screen,Qd=Wd.absolute,Zd=function(e,t,n){var r=hn(n.root).dom,o=function(t){var n=mn(t),r=mn(e.element);return sn(n,r)};return P.from(r.frameElement).map(tt.fromDom).filter(o).map(mr)},em=function(e,t,n){var r=mn(e.element),o=Lr(r),i=Zd(e,t,n).getOr(o);return Qd(i,o.left,o.top)},tm=function(e,t,n,r){var o=Jd(lr(e,t));return P.some(Kr(o,n,r))},nm=function(e,t,n,r,o){return e.map((function(e){var i=[t,e.point],a=If(r,(function(){return Yd(i)}),(function(){return Yd(i)}),(function(){return Xd(i)})),c=Xr(a.left,a.top,e.width,e.height),u=n.showAbove?Jl():Zl(),s=n.showAbove?Ql():ef(),l=Fd(o,n,u,s,u,s,P.none());return Rd({anchorBox:c,bubble:n.bubble.getOr(Nd()),overrides:n.overrides,layouts:l,placer:P.none()})}))},rm=function(e,t,n){var r=em(e,n,t);return t.node.filter(Pn).bind((function(o){var i=o.dom.getBoundingClientRect(),a=tm(i.left,i.top,i.width,i.height),c=t.node.getOr(e.element);return nm(a,r,t,n,c)}))},om=[Ei("node"),Ei("root"),Fi("bubble"),Hd(),Ki("overrides",{}),Ki("showAbove",!1),fl("placement",rm)],im="\ufeff",am=" ",cm=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},um={create:cm},sm=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),lm=function(e,t,n,r){return e.fold(t,n,r)},fm=function(e){return e.fold(k,k,k)},dm=sm.before,mm=sm.on,gm=sm.after,pm={before:dm,on:mm,after:gm,cata:lm,getStart:fm},hm=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vm=function(e){return hm.exact(e.start,e.soffset,e.finish,e.foffset)},ym=function(e){return e.match({domRange:function(e){return tt.fromDom(e.startContainer)},relative:function(e,t){return pm.getStart(e)},exact:function(e,t,n,r){return e}})},bm=hm.domRange,wm=hm.relative,km=hm.exact,_m=function(e){var t=ym(e);return hn(t)},xm=um.create,Cm={domRange:bm,relative:wm,exact:km,exactFromRange:vm,getWin:_m,range:xm},zm=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Sm=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Tm=function(e,t,n){var r=e.document.createRange();return zm(r,t),Sm(r,n),r},Om=function(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},Em=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Am=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?P.some(n).map(Em):P.none()},Dm=function(e){var t=e.getBoundingClientRect();return t.width>0||t.height>0?P.some(t).map(Em):P.none()},Mm=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Nm=function(e,t,n){return t(tt.fromDom(n.startContainer),n.startOffset,tt.fromDom(n.endContainer),n.endOffset)},Rm=function(e,t){return t.match({domRange:function(e){return{ltr:w(e),rtl:P.none}},relative:function(t,n){return{ltr:gt((function(){return Tm(e,t,n)})),rtl:gt((function(){return P.some(Tm(e,n,t))}))}},exact:function(t,n,r,o){return{ltr:gt((function(){return Om(e,t,n,r,o)})),rtl:gt((function(){return P.some(Om(e,r,o,t,n))}))}}})},Bm=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Mm.rtl(tt.fromDom(e.endContainer),e.endOffset,tt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Nm(e,Mm.ltr,n)}))}return Nm(e,Mm.ltr,n)},Pm=function(e,t){var n=Rm(e,t);return Bm(e,n)},Lm=function(e,t){var n=Pm(e,t);return n.match({ltr:function(t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},rtl:function(t,n,r,o){var i=e.document.createRange();return i.setStart(r.dom,o),i.setEnd(t.dom,n),i}})};Mm.ltr,Mm.rtl;var Im,Hm=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?P.from(t.dom.nodeValue):P.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Fm=Hm(ft,"text"),jm=function(e){return Fm.get(e)},Vm=function(e){return Fm.getOption(e)},Um=function(e){return"img"===ct(e)?1:Vm(e).fold((function(){return kn(e).length}),(function(e){return e.length}))},qm=function(e){return Vm(e).filter((function(e){return 0!==e.trim().length||e.indexOf(am)>-1})).isSome()},Wm=["img","br"],$m=function(e){var t=qm(e);return t||V(Wm,ct(e))},Gm=function(e){return Km(e,$m)},Km=function(e,t){var n=function(e){for(var r=kn(e),o=r.length-1;o>=0;o--){var i=r[o];if(t(i))return P.some(i);var a=n(i);if(a.isSome())return a}return P.none()};return n(e)},Xm=function(e,t){return cn(t,e)},Ym=function(e,t,n,r){var o=mn(e),i=o.dom.createRange();return i.setStart(e.dom,t),i.setEnd(n.dom,r),i},Jm=function(e,t,n,r){var o=Ym(e,t,n,r),i=sn(e,n)&&t===r;return o.collapsed&&!i},Qm=function(e){return P.from(e.getSelection())},Zm=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return P.some(um.create(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(n.endContainer),n.endOffset))}return P.none()},eg=function(e){if(null===e.anchorNode||null===e.focusNode)return Zm(e);var t=tt.fromDom(e.anchorNode),n=tt.fromDom(e.focusNode);return Jm(t,e.anchorOffset,n,e.focusOffset)?P.some(um.create(t,e.anchorOffset,n,e.focusOffset)):Zm(e)},tg=function(e){return Qm(e).filter((function(e){return e.rangeCount>0})).bind(eg)},ng=function(e,t){var n=Lm(e,t);return Am(n)},rg=function(e,t){var n=Lm(e,t);return Dm(n)},og=function(e,t){return{element:e,offset:t}},ig=function(e,t){var n=kn(e);if(0===n.length)return og(e,t);if(t<n.length)return og(n[t],0);var r=n[n.length-1],o=ft(r)?jm(r).length:kn(r).length;return og(r,o)},ag=function(e,t){return ft(e)?og(e,t):ig(e,t)},cg=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return tg(e)}}));return n().map((function(e){var t=ag(e.start,e.soffset),n=ag(e.finish,e.foffset);return Cm.range(t.element,t.offset,n.element,n.offset)}))},ug=function(e,t,n){var r=hn(t.root).dom,o=em(e,n,t),i=cg(r,t).bind((function(e){var t=rg(r,Cm.exactFromRange(e)).orThunk((function(){var t=tt.fromText(im);Tr(e.start,t);var n=ng(r,Cm.exact(t,0,t,1));return Br(t),n}));return t.bind((function(e){return tm(e.left,e.top,e.width,e.height)}))})),a=cg(r,t).bind((function(e){return lt(e.start)?P.some(e.start):yn(e.start)})),c=a.getOr(e.element);return nm(i,o,t,n,c)},sg=[Fi("getSelection"),Ei("root"),Fi("bubble"),Hd(),Ki("overrides",{}),Ki("showAbove",!1),fl("placement",ug)],lg="link-layout",fg=function(e){return e.x+e.width},dg=function(e,t){return e.x-t.width},mg=function(e,t){return e.y-t.height+e.height},gg=function(e){return e.y},pg=function(e,t,n){return gl(fg(e),gg(e),n.southeast(),bl(),"southeast",Al(e,{left:0,top:2}),lg)},hg=function(e,t,n){return gl(dg(e,t),gg(e),n.southwest(),wl(),"southwest",Al(e,{right:1,top:2}),lg)},vg=function(e,t,n){return gl(fg(e),mg(e,t),n.northeast(),kl(),"northeast",Al(e,{left:0,bottom:3}),lg)},yg=function(e,t,n){return gl(dg(e,t),mg(e,t),n.northwest(),_l(),"northwest",Al(e,{right:1,bottom:3}),lg)},bg=function(){return[pg,hg,vg,yg]},wg=function(){return[hg,pg,yg,vg]},kg=function(e,t,n){var r=Bf(n,t.item.element),o=Fd(e.element,t,bg(),wg(),bg(),wg(),P.none());return P.some(Rd({anchorBox:r,bubble:Nd(),overrides:t.overrides,layouts:o,placer:P.none()}))},_g=[Ei("item"),Hd(),Ki("overrides",{}),fl("placement",kg)],xg=Ci("type",{selection:sg,node:om,hotspot:Vd,submenu:_g,makeshift:qd}),Cg=[Hi("classes",si),Qi("mode","all",["all","layout","placement"])],zg=[Ki("useFixed",S),Fi("getBounds")],Sg=[Ai("anchor",xg),$i("transition",Cg)],Tg=function(){var e=document.documentElement;return jf(0,0,e.clientWidth,e.clientHeight)},Og=function(e){var t=mr(e.element),n=e.element.dom.getBoundingClientRect();return Ff(t.left,t.top,n.width,n.height)},Eg=function(e,t,n,r,o,i,a){var c=Uf(n.anchorBox,t);return Ed(c,o.element,n.bubble,n.layouts,i,r,n.overrides,a)},Ag=function(e,t,n,r,o){Dg(e,t,n,r,o,P.none())},Dg=function(e,t,n,r,o,i){var a=i.map(Jr);return Mg(e,t,n,r,o,a)},Mg=function(e,t,n,r,o,i){var a=_i("placement.info",ei(Sg),o),c=a.anchor,u=r.element,s=n.get(r.uid);Of((function(){Kn(u,"position","fixed");var o=Zn(u,"visibility");Kn(u,"visibility","hidden");var l=t.useFixed()?Tg():Og(e),f=c.placement,d=i.map(w).or(t.getBounds);f(e,c,l).each((function(t){var o=t.placer.getOr(Eg),i=o(e,l,t,d,r,s,a.transition);n.set(r.uid,i)})),o.fold((function(){nr(u,"visibility")}),(function(e){Kn(u,"visibility",e)})),Zn(u,"left").isNone()&&Zn(u,"top").isNone()&&Zn(u,"right").isNone()&&Zn(u,"bottom").isNone()&&Ee(Zn(u,"position"),"fixed")&&nr(u,"position")}),u)},Ng=function(e,t,n){return t.useFixed()?"fixed":"absolute"},Rg=function(e,t,n,r){var o=r.element;G(["position","left","right","top","bottom"],(function(e){return nr(o,e)})),Gf(o),n.clear(r.uid)},Bg=Object.freeze({__proto__:null,position:Ag,positionWithin:Dg,positionWithinBounds:Mg,getMode:Ng,reset:Rg}),Pg=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return Se(e,t)},r=function(t){d(t)?delete e[t]:e={}};return zu({readState:function(){return e},clear:r,set:t,get:n})},Lg=Object.freeze({__proto__:null,init:Pg}),Ig=pf({fields:zg,name:"positioning",active:kf,apis:Bg,state:Lg}),Hg=function(e){_c(e,mc());var t=e.components();G(t,Hg)},Fg=function(e){var t=e.components();G(t,Fg),_c(e,dc())},jg=function(e,t){Ar(e.element,t.element)},Vg=function(e){G(e.components(),(function(e){return Br(e.element)})),Rr(e.element),e.syncComponents()},Ug=function(e,t){var n=e.components();Vg(e);var r=ae(n,t);G(r,(function(t){Hg(t),e.getSystem().removeFromWorld(t)})),G(t,(function(t){t.getSystem().isConnected()?jg(e,t):(e.getSystem().addToWorld(t),jg(e,t),Pn(e.element)&&Fg(t)),e.syncComponents()}))},qg=function(e,t){Wg(e,t,Ar)},Wg=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),Pn(e.element)&&Fg(t),e.syncComponents()},$g=function(e){Hg(e),Br(e.element),e.getSystem().removeFromWorld(e)},Gg=function(e){var t=vn(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));$g(e),t.each((function(e){e.syncComponents()}))},Kg=function(e){var t=e.components();G(t,$g),Rr(e.element),e.syncComponents()},Xg=function(e,t){Jg(e,t,Ar)},Yg=function(e,t){Jg(e,t,Or)},Jg=function(e,t,n){n(e,t.element);var r=kn(t.element);G(r,(function(e){t.getByDom(e).each(Fg)}))},Qg=function(e){var t=kn(e.element);G(t,(function(t){e.getByDom(t).each(Hg)})),Br(e.element)},Zg=function(e,t,n,r){n.get().each((function(t){Kg(e)}));var o=t.getAttachPoint(e);qg(o,e);var i=e.getSystem().build(r);return qg(e,i),n.set(i),i},ep=function(e,t,n,r){var o=Zg(e,t,n,r);return t.onOpen(e,o),o},tp=function(e,t,n,r){return n.get().map((function(){return Zg(e,t,n,r)}))},np=function(e,t,n,r,o){sp(e,t),ep(e,t,n,r),o(),fp(e,t)},rp=function(e,t,n){n.get().each((function(r){Kg(e),Gg(e),t.onClose(e,r),n.clear()}))},op=function(e,t,n){return n.isOpen()},ip=function(e,t,n,r){return op(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},ap=function(e,t,n){return n.get()},cp=function(e,t,n,r){Zn(e.element,t).fold((function(){Wn(e.element,n)}),(function(t){Fn(e.element,n,t)})),Kn(e.element,t,r)},up=function(e,t,n){Un(e.element,n).fold((function(){return nr(e.element,t)}),(function(n){return Kn(e.element,t,n)}))},sp=function(e,t,n){var r=t.getAttachPoint(e);Kn(e.element,"position",Ig.getMode(r)),cp(e,"visibility",t.cloakVisibilityAttr,"hidden")},lp=function(e){return U(["top","left","right","bottom"],(function(t){return Zn(e,t).isSome()}))},fp=function(e,t,n){lp(e.element)||nr(e.element,"position"),up(e,"visibility",t.cloakVisibilityAttr)},dp=Object.freeze({__proto__:null,cloak:sp,decloak:fp,open:ep,openWhileCloaked:np,close:rp,isOpen:op,isPartOf:ip,getState:ap,setContent:tp}),mp=function(e,t){return Oc([Mc(ic(),(function(n,r){rp(n,e,t)}))])},gp=Object.freeze({__proto__:null,events:mp}),pp=[cl("onOpen"),cl("onClose"),Ei("isPartOf"),Ei("getAttachPoint"),Ki("cloakVisibilityAttr","data-precloak-visibility")],hp=function(){var e=od(),t=w("not-implemented");return zu({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})},vp=Object.freeze({__proto__:null,init:hp}),yp=pf({fields:pp,name:"sandboxing",active:gp,apis:dp,state:vp}),bp=w("dismiss.popups"),wp=w("reposition.popups"),kp=w("mouse.released"),_p=Zo([Ki("isExtraPart",S),$i("fireEventInstead",[Ki("event",gc())])]),xp=function(e){var t,n=_i("Dismissal",_p,e);return t={},t[bp()]={schema:Zo([Ei("target")]),onReceive:function(e,t){if(yp.isOpen(e)){var r=yp.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return yp.close(e)}),(function(t){return _c(e,t.event)}))}}},t},Cp=Zo([$i("fireEventInstead",[Ki("event",pc())]),Bi("doReposition")]),zp=function(e){var t,n=_i("Reposition",Cp,e);return t={},t[wp()]={onReceive:function(e){yp.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return _c(e,t.event)}))}},t},Sp=function(e,t,n){t.store.manager.onLoad(e,t,n)},Tp=function(e,t,n){t.store.manager.onUnload(e,t,n)},Op=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},Ep=function(e,t,n){return t.store.manager.getValue(e,t,n)},Ap=function(e,t,n){return n},Dp=Object.freeze({__proto__:null,onLoad:Sp,onUnload:Tp,setValue:Op,getValue:Ep,getState:Ap}),Mp=function(e,t){var n=e.resetOnDom?[Vc((function(n,r){Sp(n,e,t)})),Uc((function(n,r){Tp(n,e,t)}))]:[cf(e,t,Sp)];return Oc(n)},Np=Object.freeze({__proto__:null,events:Mp}),Rp=function(){var e=oa(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return zu({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},Bp=function(){var e=h;return zu({readState:e})},Pp=function(){var e=oa({}),t=oa({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},o=function(n){return Se(e.get(),n).orThunk((function(){return Se(t.get(),n)}))},i=function(n){var r=e.get(),o=t.get(),i={},a={};G(n,(function(e){i[e.value]=e,Se(e,"meta").each((function(t){Se(t,"text").each((function(t){a[t]=e}))}))})),e.set(E(E({},r),i)),t.set(E(E({},o),a))};return zu({readState:n,lookup:o,update:i,clear:r})},Lp=function(e){return e.store.manager.state(e)},Ip=Object.freeze({__proto__:null,memory:Rp,dataset:Pp,manual:Bp,init:Lp}),Hp=function(e,t,n,r){var o=t.store;n.update([r]),o.setValue(e,r),t.onSetValue(e,r)},Fp=function(e,t,n){var r=t.store,o=r.getDataKey(e);return n.lookup(o).getOrThunk((function(){return r.getFallbackEntry(o)}))},jp=function(e,t,n){var r=t.store;r.initialValue.each((function(r){Hp(e,t,n,r)}))},Vp=function(e,t,n){n.clear()},Up=[Fi("initialValue"),Ei("getFallbackEntry"),Ei("getDataKey"),Ei("setValue"),fl("manager",{setValue:Hp,getValue:Fp,onLoad:jp,onUnload:Vp,state:Pp})],qp=function(e,t,n){return t.store.getValue(e)},Wp=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},$p=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},Gp=[Ei("getValue"),Ki("setValue",h),Fi("initialValue"),fl("manager",{setValue:Wp,getValue:qp,onLoad:$p,onUnload:h,state:Cu.init})],Kp=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Xp=function(e,t,n){return n.get()},Yp=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Jp=function(e,t,n){n.clear()},Qp=[Fi("initialValue"),fl("manager",{setValue:Kp,getValue:Xp,onLoad:Yp,onUnload:Jp,state:Rp})],Zp=[Xi("store",{mode:"memory"},Ci("mode",{memory:Qp,manual:Gp,dataset:Up})),cl("onSetValue"),Ki("resetOnDom",!1)],eh=pf({fields:Zp,name:"representing",active:Np,apis:Dp,extra:{setValueFrom:function(e,t){var n=eh.getValue(t);eh.setValue(e,n)}},state:Ip}),th=function(e,t){return ra(e,{},$(t,(function(t){return Pi(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([Ti("dump",k)]))},nh=function(e){return e.dump},rh=function(e,t){return E(E({},mf(t)),e.dump)},oh={field:th,augment:rh,get:nh},ih="placeholder",ah=aa.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),ch=function(e){return Te(e,"uiType")},uh=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?ah.single(!0,w(n)):Se(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+pe(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},sh=function(e,t,n,r){return ch(n)&&n.uiType===ih?uh(e,t,n,r):ah.single(!1,w(n))},lh=function(e,t,n,r){var o=sh(e,t,n,r);return o.fold((function(o,i){var a=ch(n)?i(t,n.config,n.validated):i(t),c=Se(a,"components").getOr([]),u=re(c,(function(n){return lh(e,t,n,r)}));return[E(E({},a),{components:u})]}),(function(e,r){if(ch(n)){var o=r(t,n.config,n.validated),i=n.validated.preprocess.getOr(k);return i(o)}return r(t)}))},fh=function(e,t,n,r){return re(n,(function(n){return lh(e,t,n,r)}))},dh=function(e,t){var n=!1,r=function(){return n},o=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},i=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:w(e),required:i,used:r,replace:o}},mh=function(e,t,n,r){var o=ye(r,(function(e,t){return dh(t,e)})),i=fh(e,t,n,o);return ve(o,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),i},gh=ah.single,ph=ah.multiple,hh=w(ih),vh=aa.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),yh=Ki("factory",{sketch:k}),bh=Ki("schema",[]),wh=Ei("name"),kh=Si("pname","pname",zo((function(e){return"<alloy."+ou(e.name)+">"})),ai()),_h=Ti("schema",(function(){return[Fi("preprocess")]})),xh=Ki("defaults",w({})),Ch=Ki("overrides",w({})),zh=ei([yh,bh,wh,kh,xh,Ch]),Sh=ei([yh,bh,wh,xh,Ch]),Th=ei([yh,bh,wh,kh,xh,Ch]),Oh=ei([yh,_h,wh,Ei("unit"),kh,xh,Ch]),Eh=function(e){return e.fold(P.some,P.none,P.some,P.some)},Ah=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},Dh=function(e){return e.fold(k,k,k,k)},Mh=function(e,t){return function(n){var r=_i("Converting part type",t,n);return e(r)}},Nh=Mh(vh.required,zh),Rh=Mh(vh.external,Sh),Bh=Mh(vh.optional,Th),Ph=Mh(vh.group,Oh),Lh=w("entirety"),Ih=Object.freeze({__proto__:null,required:Nh,external:Rh,optional:Bh,group:Ph,asNamedPart:Eh,name:Ah,asCommon:Dh,original:Lh}),Hh=function(e,t,n,r){return _o(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},Fh=function(e,t,n){var r={},o={};return G(n,(function(e){e.fold((function(e){r[e.pname]=gh(!0,(function(t,n,r){return e.factory.sketch(Hh(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];o[e.name]=w(e.factory.sketch(Hh(t,e,n[Lh()]),n))}),(function(e){r[e.pname]=gh(!1,(function(t,n,r){return e.factory.sketch(Hh(t,e,n,r))}))}),(function(e){r[e.pname]=ph(!0,(function(t,n,r){var o=t[e.name];return $(o,(function(n){return e.factory.sketch(_o(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:w(r),externals:w(o)}},jh=function(e,t){var n={};return G(t,(function(t){Eh(t).each((function(t){var r=Vh(e,t.pname);n[t.name]=function(n){var o=_i("Part: "+t.name+" in "+e,ei(t.schema),n);return E(E({},r),{config:n,validated:o})}}))})),n},Vh=function(e,t){return{uiType:hh(),owner:e,name:t}},Uh=function(e,t,n){return{uiType:hh(),owner:e,name:t,config:n,validated:{}}},qh=function(e){return re(e,(function(e){return e.fold(P.none,P.some,P.none,P.none).map((function(e){return Li(e.name,e.schema.concat([dl(Lh())]))})).toArray()}))},Wh=function(e){return $(e,Ah)},$h=function(e,t,n){return Fh(e,t,n)},Gh=function(e,t,n){return mh(P.some(e),t,t.components,n)},Kh=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Xh=function(e,t,n){return Kh(e,t,n).getOrDie("Could not find part: "+n)},Yh=function(e,t,n){var r={},o=t.partUids,i=e.getSystem();return G(n,(function(e){r[e]=w(i.getByUid(o[e]))})),r},Jh=function(e,t){var n=e.getSystem();return ye(t.partUids,(function(e,t){return w(n.getByUid(e))}))},Qh=function(e){return pe(e.partUids)},Zh=function(e,t,n){var r={},o=t.partUids,i=e.getSystem();return G(n,(function(e){r[e]=w(i.getByUid(o[e]).getOrDie())})),r},ev=function(e,t){var n=Wh(t);return ga($(n,(function(t){return{key:t,value:e+"-"+t}})))},tv=function(e){return Si("partUids","partUids",Oo((function(t){return ev(t.uid,e)})),ai())},nv=Object.freeze({__proto__:null,generate:jh,generateOne:Uh,schemas:qh,names:Wh,substitutes:$h,components:Gh,defaultUids:ev,defaultUidsSchema:tv,getAllParts:Jh,getAllPartNames:Qh,getPart:Kh,getPartOrDie:Xh,getParts:Yh,getPartsOrDie:Zh}),rv=function(e,t){var n=e.length>0?[Li("parts",e)]:[];return n.concat([Ei("uid"),Ki("dom",{}),Ki("components",[]),dl("originalSpec"),Ki("debug.sketcher",{})]).concat(t)},ov=function(e,t,n,r,o){var i=rv(r,o);return _i(e+" [SpecSchema]",Zo(i.concat(t)),n)},iv=function(e,t,n,r){var o=uv(r),i=ov(e,t,o,[],[]);return n(i,o)},av=function(e,t,n,r,o){var i=uv(o),a=qh(n),c=tv(n),u=ov(e,t,i,a,[c]),s=$h(e,u,n),l=Gh(e,u,s.internals());return r(u,l,i,s.externals())},cv=function(e){return Te(e,"uid")},uv=function(e){return cv(e)?e:E(E({},e),{uid:du("uid")})},sv=function(e){return void 0!==e.uid},lv=Zo([Ei("name"),Ei("factory"),Ei("configFields"),Ki("apis",{}),Ki("extraApis",{})]),fv=Zo([Ei("name"),Ei("factory"),Ei("configFields"),Ei("partFields"),Ki("apis",{}),Ki("extraApis",{})]),dv=function(e){var t=_i("Sketcher for "+e.name,lv,e),n=function(e){return iv(t.name,t.configFields,t.factory,e)},r=ye(t.apis,xu),o=ye(t.extraApis,(function(e,t){return yu(e,t)}));return E(E({name:t.name,configFields:t.configFields,sketch:n},r),o)},mv=function(e){var t=_i("Sketcher for "+e.name,fv,e),n=function(e){return av(t.name,t.configFields,t.partFields,t.factory,e)},r=jh(t.name,t.partFields),o=ye(t.apis,xu),i=ye(t.extraApis,(function(e,t){return yu(e,t)}));return E(E({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:n,parts:r},o),i)},gv=function(e){return"input"===ct(e)&&"radio"!==Vn(e,"type")||"textarea"===ct(e)},pv=function(e,t,n){return t.find(e)},hv=Object.freeze({__proto__:null,getCurrent:pv}),vv=[Ei("find")],yv=pf({fields:vv,name:"composing",apis:hv}),bv=["input","button","textarea","select"],wv=function(e,t,n){var r=t.disabled()?Ov:Ev;r(e,t)},kv=function(e,t){return!0===t.useNative&&V(bv,ct(e.element))},_v=function(e){return qn(e.element,"disabled")},xv=function(e){Fn(e.element,"disabled","disabled")},Cv=function(e){Wn(e.element,"disabled")},zv=function(e){return"true"===Vn(e.element,"aria-disabled")},Sv=function(e){Fn(e.element,"aria-disabled","true")},Tv=function(e){Fn(e.element,"aria-disabled","false")},Ov=function(e,t,n){t.disableClass.each((function(t){is(e.element,t)}));var r=kv(e,t)?xv:Sv;r(e),t.onDisabled(e)},Ev=function(e,t,n){t.disableClass.each((function(t){cs(e.element,t)}));var r=kv(e,t)?Cv:Tv;r(e),t.onEnabled(e)},Av=function(e,t){return kv(e,t)?_v(e):zv(e)},Dv=function(e,t,n,r){var o=r?Ov:Ev;o(e,t)},Mv=Object.freeze({__proto__:null,enable:Ev,disable:Ov,isDisabled:Av,onLoad:wv,set:Dv}),Nv=function(e,t){return Au({classes:t.disabled()?t.disableClass.toArray():[]})},Rv=function(e,t){return Oc([Ec(tc(),(function(t,n){return Av(t,e)})),cf(e,t,wv)])},Bv=Object.freeze({__proto__:null,exhibit:Nv,events:Rv}),Pv=[ea("disabled",S),Ki("useNative",!0),Fi("disableClass"),cl("onDisabled"),cl("onEnabled")],Lv=pf({fields:Pv,name:"disabling",active:Bv,apis:Mv}),Iv=function(e,t,n,r){var o=Xm(e.element,"."+t.highlightClass);G(o,(function(n){U(r,(function(e){return e.element===n}))||(cs(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),_c(n,kc())})))}))},Hv=function(e,t,n){return Iv(e,t,n,[])},Fv=function(e,t,n,r){$v(e,t,n,r)&&(cs(r.element,t.highlightClass),t.onDehighlight(e,r),_c(r,kc()))},jv=function(e,t,n,r){Iv(e,t,n,[r]),$v(e,t,n,r)||(is(r.element,t.highlightClass),t.onHighlight(e,r),_c(r,wc()))},Vv=function(e,t,n){Xv(e,t).each((function(r){jv(e,t,n,r)}))},Uv=function(e,t,n){Yv(e,t).each((function(r){jv(e,t,n,r)}))},qv=function(e,t,n,r){Kv(e,t,n,r).fold((function(e){throw e}),(function(r){jv(e,t,n,r)}))},Wv=function(e,t,n,r){var o=ey(e,t),i=ee(o,r);i.each((function(r){jv(e,t,n,r)}))},$v=function(e,t,n,r){return us(r.element,t.highlightClass)},Gv=function(e,t,n){return Is(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Kv=function(e,t,n,r){var o=Xm(e.element,"."+t.itemClass);return P.from(o[r]).fold((function(){return ro.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)},Xv=function(e,t,n){return Is(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Yv=function(e,t,n){var r=Xm(e.element,"."+t.itemClass),o=r.length>0?P.some(r[r.length-1]):P.none();return o.bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Jv=function(e,t,n,r){var o=Xm(e.element,"."+t.itemClass),i=te(o,(function(e){return us(e,t.highlightClass)}));return i.bind((function(t){var n=Tl(t,r,0,o.length-1);return e.getSystem().getByDom(o[n]).toOptional()}))},Qv=function(e,t,n){return Jv(e,t,n,-1)},Zv=function(e,t,n){return Jv(e,t,n,1)},ey=function(e,t,n){var r=Xm(e.element,"."+t.itemClass);return De($(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},ty=Object.freeze({__proto__:null,dehighlightAll:Hv,dehighlight:Fv,highlight:jv,highlightFirst:Vv,highlightLast:Uv,highlightAt:qv,highlightBy:Wv,isHighlighted:$v,getHighlighted:Gv,getFirst:Xv,getLast:Yv,getPrevious:Qv,getNext:Zv,getCandidates:ey}),ny=[Ei("highlightClass"),Ei("itemClass"),cl("onHighlight"),cl("onDehighlight")],ry=pf({fields:ny,name:"highlighting",apis:ty}),oy=[8],iy=[9],ay=[13],cy=[27],uy=[32],sy=[37],ly=[38],fy=[39],dy=[40],my=function(e,t,n){var r=ie(e.slice(0,t)),o=ie(e.slice(t+1));return ee(r.concat(o),n)},gy=function(e,t,n){var r=ie(e.slice(0,t));return ee(r,n)},py=function(e,t,n){var r=e.slice(0,t),o=e.slice(t+1);return ee(o.concat(r),n)},hy=function(e,t,n){var r=e.slice(t+1);return ee(r,n)},vy=function(e){return function(t){var n=t.raw;return V(e,n.which)}},yy=function(e){return function(t){return oe(e,(function(e){return e(t)}))}},by=function(e){var t=e.raw;return!0===t.shiftKey},wy=function(e){var t=e.raw;return!0===t.ctrlKey},ky=C(by),_y=function(e,t){return{matches:e,classification:t}},xy=function(e,t){var n=ee(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},Cy=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return sn(t,e)}))}));r||xc(e,hc(),{prevFocus:t,newFocus:n})},zy=function(){var e=function(e){return Tf(e.element)},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var o=e(t);Cy(t,r,o)};return{get:e,set:t}},Sy=function(){var e=function(e){return ry.getHighlighted(e).map((function(e){return e.element}))},t=function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(h,(function(e){ry.highlight(t,e)}));var o=e(t);Cy(t,r,o)};return{get:e,set:t}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Im||(Im={}));var Ty=function(e,t,n,r,o){var i=function(){return e.concat([Ki("focusManager",zy()),Xi("focusInside","onFocus",vi((function(e){return V(["onFocus","onEnterOrSpace","onApi"],e)?ro.value(e):ro.error("Invalid value for focusInside")}))),fl("handler",u),fl("state",t),fl("sendFocusIn",o)])},a=function(e,t,n,r,o){var i=n(e,t,r,o);return xy(i,t.event).bind((function(n){return n(e,t,r,o)}))},c=function(e,t){var i=e.focusInside!==Im.OnFocusMode?P.none():o(e).map((function(n){return Mc(Ja(),(function(r,o){n(r,e,t),o.stop()}))})),c=function(n,r){var i=vy(uy.concat(ay))(r.event);e.focusInside===Im.OnEnterOrSpaceMode&&i&&ka(n,r)&&o(e).each((function(o){o(n,e,t),r.stop()}))},u=[Mc(Fa(),(function(r,o){a(r,o,n,e,t).fold((function(){c(r,o)}),(function(e){o.stop()}))})),Mc(ja(),(function(n,o){a(n,o,r,e,t).each((function(e){o.stop()}))}))];return Oc(i.toArray().concat(u))},u={schema:i,processKey:a,toEvents:c};return u},Oy=function(e){var t=[Fi("onEscape"),Fi("onEnter"),Ki("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ki("firstTabstop",0),Ki("useTabstopAt",T),Fi("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return Hs(t,e)})).getOr(t);return ar(n)>0},r=function(e,t){var r=Xm(e.element,t.selector),o=Y(r,(function(e){return n(t,e)}));return P.from(o[t.firstTabstop])},o=function(e,t){return t.focusManager.get(e).bind((function(e){return Hs(e,t.selector)}))},i=function(e,t){return n(e,t)&&e.useTabstopAt(t)},a=function(e,t,n){r(e,t).each((function(n){t.focusManager.set(e,n)}))},c=function(e,t,n,r,o){return o(t,n,(function(e){return i(r,e)})).fold((function(){return r.cyclic?P.some(!0):P.none()}),(function(t){return r.focusManager.set(e,t),P.some(!0)}))},u=function(e,t,n,r){var i=Xm(e.element,n.selector);return o(e,n).bind((function(t){var o=te(i,x(sn,t));return o.bind((function(t){return c(e,i,t,n,r)}))}))},s=function(e,t,n){var r=n.cyclic?my:gy;return u(e,t,n,r)},l=function(e,t,n){var r=n.cyclic?py:hy;return u(e,t,n,r)},f=function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))},d=function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))},m=w([_y(yy([by,vy(iy)]),s),_y(vy(iy),l),_y(vy(cy),d),_y(yy([ky,vy(ay)]),f)]),g=w([]);return Ty(t,Cu.init,m,g,(function(){return P.some(a)}))},Ey=Oy(Ti("cyclic",S)),Ay=Oy(Ti("cyclic",T)),Dy=function(e,t,n){return zc(e,n,tc()),P.some(!0)},My=function(e,t,n){var r=gv(n)&&vy(uy)(t.event);return r?P.none():Dy(e,t,n)},Ny=function(e,t){return P.some(!0)},Ry=[Ki("execute",My),Ki("useSpace",!1),Ki("useEnter",!0),Ki("useControlEnter",!1),Ki("useDown",!1)],By=function(e,t,n){return n.execute(e,t,e.element)},Py=function(e,t,n,r){var o=n.useSpace&&!gv(e.element)?uy:[],i=n.useEnter?ay:[],a=n.useDown?dy:[],c=o.concat(i).concat(a);return[_y(vy(c),By)].concat(n.useControlEnter?[_y(yy([wy,vy(ay)]),By)]:[])},Ly=function(e,t,n,r){return n.useSpace&&!gv(e.element)?[_y(vy(uy),Ny)]:[]},Iy=Ty(Ry,Cu.init,Py,Ly,(function(){return P.none()})),Hy=function(){var e=od(),t=function(t,n){e.set({numRows:t,numColumns:n})},n=function(){return e.get().map((function(e){return e.numRows}))},r=function(){return e.get().map((function(e){return e.numColumns}))};return zu({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:n,getNumColumns:r})},Fy=function(e){return e.state(e)},jy=Object.freeze({__proto__:null,flatgrid:Hy,init:Fy}),Vy=function(e){return function(t,n,r,o){var i=e(t.element);return $y(i,t,n,r,o)}},Uy=function(e,t){var n=Bd(e,t);return Vy(n)},qy=function(e,t){var n=Bd(t,e);return Vy(n)},Wy=function(e){return function(t,n,r,o){return $y(e,t,n,r,o)}},$y=function(e,t,n,r,o){var i=r.focusManager.get(t).bind((function(n){return e(t.element,n,r,o)}));return i.map((function(e){return r.focusManager.set(t,e),!0}))},Gy=Wy,Ky=Wy,Xy=Wy,Yy=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Jy=function(e){return!Yy(e.dom)},Qy=function(e,t){return te(e,t).map((function(t){return{index:t,candidates:e}}))},Zy=function(e,t,n){var r=function(e){return sn(e,t)},o=Xm(e,n),i=Y(o,Jy);return Qy(i,r)},eb=function(e,t){return te(e,(function(e){return sn(t,e)}))},tb=function(e,t,n,r){var o=Math.floor(t/n),i=t%n;return r(o,i).bind((function(t){var r=t.row*n+t.column;return r>=0&&r<e.length?P.some(e[r]):P.none()}))},nb=function(e,t,n,r,o){return tb(e,t,r,(function(t,i){var a=t===n-1,c=a?e.length-t*r:r,u=Tl(i,o,0,c-1);return P.some({row:t,column:u})}))},rb=function(e,t,n,r,o){return tb(e,t,r,(function(t,i){var a=Tl(t,o,0,n-1),c=a===n-1,u=c?e.length-a*r:r,s=Ol(i,0,u-1);return P.some({row:a,column:s})}))},ob=function(e,t,n,r){return nb(e,t,n,r,1)},ib=function(e,t,n,r){return nb(e,t,n,r,-1)},ab=function(e,t,n,r){return rb(e,t,n,r,-1)},cb=function(e,t,n,r){return rb(e,t,n,r,1)},ub=[Ei("selector"),Ki("execute",My),ul("onEscape"),Ki("captureTab",!1),ml()],sb=function(e,t,n){Is(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},lb=function(e,t){return t.focusManager.get(e).bind((function(e){return Hs(e,t.selector)}))},fb=function(e,t,n,r){return lb(e,n).bind((function(r){return n.execute(e,t,r)}))},db=function(e){return function(t,n,r,o){return Zy(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,o.getNumRows().getOr(r.initSize.numRows),o.getNumColumns().getOr(r.initSize.numColumns))}))}},mb=function(e,t,n){return n.captureTab?P.some(!0):P.none()},gb=function(e,t,n){return n.onEscape(e,t)},pb=db(ib),hb=db(ob),vb=db(ab),yb=db(cb),bb=w([_y(vy(sy),Uy(pb,hb)),_y(vy(fy),qy(pb,hb)),_y(vy(ly),Gy(vb)),_y(vy(dy),Ky(yb)),_y(yy([by,vy(iy)]),mb),_y(yy([ky,vy(iy)]),mb),_y(vy(cy),gb),_y(vy(uy.concat(ay)),fb)]),wb=w([_y(vy(uy),Ny)]),kb=Ty(ub,Hy,bb,wb,(function(){return P.some(sb)})),_b=function(e,t,n,r){var o=function(e){return"button"===ct(e)&&"disabled"===Vn(e,"disabled")},i=function(e,t,n){var a=Tl(t,r,0,n.length-1);return a===e?P.none():o(n[a])?i(e,a,n):P.from(n[a])};return Zy(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return i(t,t,n)}))},xb=[Ei("selector"),Ki("getInitial",P.none),Ki("execute",My),ul("onEscape"),Ki("executeOnMove",!1),Ki("allowVertical",!0)],Cb=function(e,t){return t.focusManager.get(e).bind((function(e){return Hs(e,t.selector)}))},zb=function(e,t,n){return Cb(e,n).bind((function(r){return n.execute(e,t,r)}))},Sb=function(e,t,n){t.getInitial(e).orThunk((function(){return Is(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))},Tb=function(e,t,n){return _b(e,n.selector,t,-1)},Ob=function(e,t,n){return _b(e,n.selector,t,1)},Eb=function(e){return function(t,n,r,o){return e(t,n,r,o).bind((function(){return r.executeOnMove?zb(t,n,r):P.some(!0)}))}},Ab=function(e,t,n){return n.onEscape(e,t)},Db=function(e,t,n,r){var o=sy.concat(n.allowVertical?ly:[]),i=fy.concat(n.allowVertical?dy:[]);return[_y(vy(o),Eb(Uy(Tb,Ob))),_y(vy(i),Eb(qy(Tb,Ob))),_y(vy(ay),zb),_y(vy(uy),zb),_y(vy(cy),Ab)]},Mb=w([_y(vy(uy),Ny)]),Nb=Ty(xb,Cu.init,Db,Mb,(function(){return P.some(Sb)})),Rb=function(e,t,n){return P.from(e[t]).bind((function(e){return P.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))},Bb=function(e,t,n,r){var o=e[t],i=o.length,a=Tl(n,r,0,i-1);return Rb(e,t,a)},Pb=function(e,t,n,r){var o=Tl(n,r,0,e.length-1),i=e[o].length,a=Ol(t,0,i-1);return Rb(e,o,a)},Lb=function(e,t,n,r){var o=e[t],i=o.length,a=Ol(n+r,0,i-1);return Rb(e,t,a)},Ib=function(e,t,n,r){var o=Ol(n+r,0,e.length-1),i=e[o].length,a=Ol(t,0,i-1);return Rb(e,o,a)},Hb=function(e,t,n){return Bb(e,t,n,1)},Fb=function(e,t,n){return Bb(e,t,n,-1)},jb=function(e,t,n){return Pb(e,n,t,-1)},Vb=function(e,t,n){return Pb(e,n,t,1)},Ub=function(e,t,n){return Lb(e,t,n,-1)},qb=function(e,t,n){return Lb(e,t,n,1)},Wb=function(e,t,n){return Ib(e,n,t,-1)},$b=function(e,t,n){return Ib(e,n,t,1)},Gb=[Li("selectors",[Ei("row"),Ei("cell")]),Ki("cycles",!0),Ki("previousSelector",P.none),Ki("execute",My)],Kb=function(e,t,n){var r=t.previousSelector(e).orThunk((function(){var n=t.selectors;return Is(e.element,n.cell)}));r.each((function(n){t.focusManager.set(e,n)}))},Xb=function(e,t,n){return Tf(e.element).bind((function(r){return n.execute(e,t,r)}))},Yb=function(e,t){return $(e,(function(e){return Xm(e,t.selectors.cell)}))},Jb=function(e,t){return function(n,r,o){var i=o.cycles?e:t;return Hs(r,o.selectors.row).bind((function(e){var t=Xm(e,o.selectors.cell);return eb(t,r).bind((function(t){var r=Xm(n,o.selectors.row);return eb(r,e).bind((function(e){var n=Yb(r,o);return i(n,e,t).map((function(e){return e.cell}))}))}))}))}},Qb=Jb(Fb,Ub),Zb=Jb(Hb,qb),ew=Jb(jb,Wb),tw=Jb(Vb,$b),nw=w([_y(vy(sy),Uy(Qb,Zb)),_y(vy(fy),qy(Qb,Zb)),_y(vy(ly),Gy(ew)),_y(vy(dy),Ky(tw)),_y(vy(uy.concat(ay)),Xb)]),rw=w([_y(vy(uy),Ny)]),ow=Ty(Gb,Cu.init,nw,rw,(function(){return P.some(Kb)})),iw=[Ei("selector"),Ki("execute",My),Ki("moveOnTab",!1)],aw=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},cw=function(e,t,n){Is(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},uw=function(e,t,n){return _b(e,n.selector,t,-1)},sw=function(e,t,n){return _b(e,n.selector,t,1)},lw=function(e,t,n,r){return n.moveOnTab?Xy(uw)(e,t,n,r):P.none()},fw=function(e,t,n,r){return n.moveOnTab?Xy(sw)(e,t,n,r):P.none()},dw=w([_y(vy(ly),Xy(uw)),_y(vy(dy),Xy(sw)),_y(yy([by,vy(iy)]),lw),_y(yy([ky,vy(iy)]),fw),_y(vy(ay),aw),_y(vy(uy),aw)]),mw=w([_y(vy(uy),Ny)]),gw=Ty(iw,Cu.init,dw,mw,(function(){return P.some(cw)})),pw=[ul("onSpace"),ul("onEnter"),ul("onShiftEnter"),ul("onLeft"),ul("onRight"),ul("onTab"),ul("onShiftTab"),ul("onUp"),ul("onDown"),ul("onEscape"),Ki("stopSpaceKeyup",!1),Fi("focusIn")],hw=function(e,t,n){return[_y(vy(uy),n.onSpace),_y(yy([ky,vy(ay)]),n.onEnter),_y(yy([by,vy(ay)]),n.onShiftEnter),_y(yy([by,vy(iy)]),n.onShiftTab),_y(yy([ky,vy(iy)]),n.onTab),_y(vy(ly),n.onUp),_y(vy(dy),n.onDown),_y(vy(sy),n.onLeft),_y(vy(fy),n.onRight),_y(vy(uy),n.onSpace),_y(vy(cy),n.onEscape)]},vw=function(e,t,n){return n.stopSpaceKeyup?[_y(vy(uy),Ny)]:[]},yw=Ty(pw,Cu.init,hw,vw,(function(e){return e.focusIn})),bw=Ey.schema(),ww=Ay.schema(),kw=Nb.schema(),_w=kb.schema(),xw=ow.schema(),Cw=Iy.schema(),zw=gw.schema(),Sw=yw.schema(),Tw=Object.freeze({__proto__:null,acyclic:bw,cyclic:ww,flow:kw,flatgrid:_w,matrix:xw,execution:Cw,menu:zw,special:Sw}),Ow=function(e){return Oe(e,"setGridSize")},Ew=vf({branchKey:"mode",branches:Tw,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,o){Ow(n)?n.setGridSize(r,o):console.error("Layout does not support setGridSize")}},state:jy}),Aw=function(e,t,n,r){Of((function(){var t=$(r,e.getSystem().build);Ug(e,t)}),e.element)},Dw=function(e,t,n,r){var o=e.getSystem().build(r);Wg(e,o,n)},Mw=function(e,t,n,r){Dw(e,t,Ar,r)},Nw=function(e,t,n,r){Dw(e,t,Er,r)},Rw=function(e,t,n,r){var o=Bw(e),i=ee(o,(function(e){return sn(r.element,e.element)}));i.each(Gg)},Bw=function(e,t){return e.components()},Pw=function(e,t,n,r,o){var i=Bw(e);return P.from(i[r]).map((function(i){return Rw(e,t,n,i),o.each((function(n){Dw(e,t,(function(e,t){Dr(e,t,r)}),n)})),i}))},Lw=function(e,t,n,r,o){var i=Bw(e);return te(i,r).bind((function(r){return Pw(e,t,n,r,o)}))},Iw=Object.freeze({__proto__:null,append:Mw,prepend:Nw,remove:Rw,replaceAt:Pw,replaceBy:Lw,set:Aw,contents:Bw}),Hw=pf({fields:[],name:"replacing",apis:Iw}),Fw=function(e,t){var n=Oc(t);return pf({fields:[Ei("enabled")],name:e,active:{events:w(n)}})},jw=function(e,t){var n=Fw(e,t);return{key:e,value:{config:{},me:n,configAsRaw:w({}),initialConfig:{},state:Cu}}},Vw=function(e,t){t.ignore||(xf(e.element),t.onFocus(e))},Uw=function(e,t){t.ignore||Cf(e.element)},qw=function(e){return zf(e.element)},Ww=Object.freeze({__proto__:null,focus:Vw,blur:Uw,isFocused:qw}),$w=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return Au(n)},Gw=function(e){return Oc([Mc(Ja(),(function(t,n){Vw(t,e),n.stop()}))].concat(e.stopMousedown?[Mc(Na(),(function(e,t){t.event.prevent()}))]:[]))},Kw=Object.freeze({__proto__:null,exhibit:$w,events:Gw}),Xw=[cl("onFocus"),Ki("stopMousedown",!1),Ki("ignore",!1)],Yw=pf({fields:Xw,name:"focusing",active:Kw,apis:Ww}),Jw=function(e){var t=function(){var t=oa(e),n=function(){return t.get()},r=function(e){return t.set(e)},o=function(){return t.set(e)},i=function(){return t.get()};return{get:n,set:r,clear:o,readState:i}};return{init:t}},Qw=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},Zw=function(e,t,n){t.toggleClass.each((function(t){n.get()?is(e.element,t):cs(e.element,t)}))},ek=function(e,t,n){rk(e,t,n,!n.get())},tk=function(e,t,n){n.set(!0),Zw(e,t,n),Qw(e,t,n)},nk=function(e,t,n){n.set(!1),Zw(e,t,n),Qw(e,t,n)},rk=function(e,t,n,r){var o=r?tk:nk;o(e,t,n)},ok=function(e,t,n){return n.get()},ik=function(e,t,n){rk(e,t,n,t.selected)},ak=Object.freeze({__proto__:null,onLoad:ik,toggle:ek,isOn:ok,on:tk,off:nk,set:rk}),ck=function(){return Au({})},uk=function(e,t){var n=af(e,t,ek),r=cf(e,t,ik);return Oc(ne([e.toggleOnExecute?[n]:[],[r]]))},sk=Object.freeze({__proto__:null,exhibit:ck,events:uk}),lk=function(e,t,n){Fn(e.element,"aria-pressed",n),t.syncWithExpanded&&mk(e,t,n)},fk=function(e,t,n){Fn(e.element,"aria-selected",n)},dk=function(e,t,n){Fn(e.element,"aria-checked",n)},mk=function(e,t,n){Fn(e.element,"aria-expanded",n)},gk=[Ki("selected",!1),Fi("toggleClass"),Ki("toggleOnExecute",!0),Xi("aria",{mode:"none"},Ci("mode",{pressed:[Ki("syncWithExpanded",!1),fl("update",lk)],checked:[fl("update",dk)],expanded:[fl("update",mk)],selected:[fl("update",fk)],none:[fl("update",h)]}))],pk=pf({fields:gk,name:"toggling",active:sk,apis:ak,state:Jw(!1)}),hk=function(){var e=function(e,t){t.stop(),Cc(e)};return[Mc(qa(),e),Mc(rc(),e),Hc(Ea()),Hc(Na())]},vk=function(e){var t=function(e){return Wc((function(t,n){e(t),n.stop()}))};return Oc(ne([e.map(t).toArray(),hk()]))},yk="alloy.item-hover",bk="alloy.item-focus",wk=function(e){(Tf(e.element).isNone()||Yw.isFocused(e))&&(Yw.isFocused(e)||Yw.focus(e),xc(e,yk,{item:e}))},kk=function(e){xc(e,bk,{item:e})},_k=w(yk),xk=w(bk),Ck=function(e){return{dom:e.dom,domModification:E(E({},e.domModification),{attributes:E(E(E({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:oh.augment(e.itemBehaviours,[e.toggling.fold(pk.revoke,(function(e){return pk.config(E({aria:{mode:"checked"}},e))})),Yw.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){kk(e)}}),Ew.config({mode:"execution"}),eh.config({store:{mode:"memory",initialValue:e.data}}),jw("item-type-events",D(D([],hk(),!0),[Mc(La(),wk),Mc(nc(),Yw.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}},zk=[Ei("data"),Ei("components"),Ei("dom"),Ki("hasSubmenu",!1),Fi("toggling"),oh.field("itemBehaviours",[pk,Yw,Ew,eh]),Ki("ignoreFocus",!1),Ki("domModification",{}),fl("builder",Ck),Ki("eventOrder",{})],Sk=function(e){return{dom:e.dom,components:e.components,events:Oc([Fc(nc())])}},Tk=[Ei("dom"),Ei("components"),fl("builder",Sk)],Ok=w("item-widget"),Ek=w([Nh({name:"widget",overrides:function(e){return{behaviours:mf([eh.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:h}})])}}})]),Ak=function(e){var t=$h(Ok(),e,Ek()),n=Gh(Ok(),e,t.internals()),r=function(t){return Kh(t,e,"widget").map((function(e){return Ew.focusIn(e),e}))},o=function(t,n){return gv(n.event.target)?P.none():function(){return e.autofocus?(n.setSource(t.element),P.none()):P.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:Oc([Wc((function(e,t){r(e).each((function(e){t.stop()}))})),Mc(La(),wk),Mc(nc(),(function(t,n){e.autofocus?r(t):Yw.focus(t)}))]),behaviours:oh.augment(e.widgetBehaviours,[eh.config({store:{mode:"memory",initialValue:e.data}}),Yw.config({ignore:e.ignoreFocus,onFocus:function(e){kk(e)}}),Ew.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:yf(),onLeft:o,onRight:o,onEscape:function(t,n){return Yw.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),P.none()):P.none():(Yw.focus(t),P.some(!0))}})])}},Dk=[Ei("uid"),Ei("data"),Ei("components"),Ei("dom"),Ki("autofocus",!1),Ki("ignoreFocus",!1),oh.field("widgetBehaviours",[eh,Yw,Ew]),Ki("domModification",{}),tv(Ek()),fl("builder",Ak)],Mk=Ci("type",{widget:Dk,item:zk,separator:Tk}),Nk=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},Rk=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},Bk=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},Pk=w([Ph({factory:{sketch:function(e){var t=_i("menu.spec item",Mk,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Te(t,"uid")?t:E(E({},t),{uid:du("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),Lk=w([Ei("value"),Ei("items"),Ei("dom"),Ei("components"),Ki("eventOrder",{}),th("menuBehaviours",[ry,eh,yv,Ew]),Xi("movement",{mode:"menu",moveOnTab:!0},Ci("mode",{grid:[ml(),fl("config",Nk)],matrix:[fl("config",Rk),Ei("rowSelector")],menu:[Ki("moveOnTab",!0),fl("config",Bk)]})),rl(),Ki("fakeFocus",!1),Ki("focusManager",zy()),cl("onHighlight")]),Ik=w("alloy.menu-focus"),Hk=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rh(e.menuBehaviours,[ry.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),eh.config({store:{mode:"memory",initialValue:e.value}}),yv.config({find:P.some}),Ew.config(e.movement.config(e,e.movement))]),events:Oc([Mc(xk(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){ry.highlight(e,n),t.stop(),xc(e,Ik(),{menu:e,item:n})}))})),Mc(_k(),(function(e,t){var n=t.event.item;ry.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},Fk=mv({name:"Menu",configFields:Lk(),partFields:Pk(),factory:Hk}),jk=function(e){return be(e,(function(e,t){return{k:e,v:t}}))},Vk=function(e,t,n,r){return Se(n,r).bind((function(r){return Se(e,r).bind((function(r){var o=Vk(e,t,n,r);return P.some([r].concat(o))}))})).getOr([])},Uk=function(e,t){var n={};ve(e,(function(e,t){G(e,(function(e){n[e]=t}))}));var r=t,o=jk(t),i=ye(o,(function(e,t){return[t].concat(Vk(n,r,o,t))}));return ye(n,(function(e){return Se(i,e).getOr([e])}))},qk=function(){var e=oa({}),t=oa({}),n=oa({}),r=od(),o=oa({}),i=function(){e.set({}),t.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},c=function(e,n){var r;t.set(E(E({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},u=function(i,a,c,u){r.set(i),e.set(c),t.set(a),o.set(u);var s=Uk(u,c);n.set(s)},s=function(t){return Ce(e.get(),(function(e,n){return e===t}))},l=function(e,t,n){return p(e).bind((function(r){return s(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},f=function(e,t){var o=Y(v(e).toArray(),(function(e){return p(e).isSome()}));return Se(n.get(),e).bind((function(e){var n=ie(o.concat(e)),i=re(n,(function(e,o){return l(e,t,n.slice(0,o+1)).fold((function(){return Ee(r.get(),e)?[]:[P.none()]}),(function(e){return[P.some(e)]}))}));return Me(i)}))},d=function(t){return Se(e.get(),t).map((function(e){var r=Se(n.get(),t).getOr([]);return[e].concat(r)}))},m=function(e){return Se(n.get(),e).bind((function(e){return e.length>1?P.some(e.slice(1)):P.none()}))},g=function(e){return Se(n.get(),e)},p=function(e){return h(e).bind(Wk)},h=function(e){return Se(t.get(),e)},v=function(t){return Se(e.get(),t)},y=function(e){var t=o.get();return ae(pe(t),e)},b=function(){return r.get().bind(p)},w=function(){return t.get()};return{setMenuBuilt:c,setContents:u,expand:d,refresh:g,collapse:m,lookupMenu:h,lookupItem:v,otherMenus:y,getPrimary:b,getMenus:w,clear:i,isClear:a,getTriggeringPath:f}},Wk=function(e){return"prepared"===e.type?P.some(e.menu):P.none()},$k={init:qk,extractPreparedMenu:Wk},Gk=function(e,t){var n,r=od(),o=function(t,n,r){return ye(r,(function(r,o){var i=function(){return Fk.sketch(E(E({},r),{value:o,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?Sy():zy()}))};return o===n?{type:"prepared",menu:t.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}}))},i=$k.init(),a=function(t){var n=o(t,e.data.primary,e.data.menus),r=s();return i.setContents(e.data.primary,n,e.data.expansions,r),i.getPrimary()},c=function(e){return eh.getValue(e).value},u=function(e,t,n){return ge(t,(function(e){if(!e.getSystem().isConnected())return P.none();var t=ry.getCandidates(e);return ee(t,(function(e){return c(e)===n}))}))},s=function(t){return ye(e.data.menus,(function(e,t){return re(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},l=function(e,t){ry.highlight(e,t),ry.getHighlighted(t).orThunk((function(){return ry.getFirst(t)})).each((function(t){zc(e,t.element,nc())}))},f=function(e,t){return De($(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?P.some(e.menu):P.none()}))})))},d=function(t,n,r){var o=f(n,n.otherMenus(r));G(o,(function(n){ls(n.element,[e.markers.backgroundMenu]),e.stayInDom||Hw.remove(t,n)}))},m=function(t){return r.get().getOrThunk((function(){var n={},o=Xm(t.element,"."+e.markers.item),i=Y(o,(function(e){return"true"===Vn(e,"aria-haspopup")}));return G(i,(function(e){t.getSystem().getByDom(e).each((function(e){var t=c(e);n[t]=e}))})),r.set(n),n}))},g=function(e,t){var n=m(e);ve(n,(function(e,n){var r=V(t,n);Fn(e.element,"aria-expanded",r)}))},p=function(t,n,r){return P.from(r[0]).bind((function(o){return n.lookupMenu(o).bind((function(o){if("notbuilt"===o.type)return P.none();var i=o.menu,a=f(n,r.slice(1));return G(a,(function(t){is(t.element,e.markers.backgroundMenu)})),Pn(i.element)||Hw.append(t,Os(i)),ls(i.element,[e.markers.backgroundMenu]),l(t,i),d(t,n,r),P.some(i)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return i.setMenuBuilt(t,r),r}return n.menu},y=function(t,r,o){if(void 0===o&&(o=n.HighlightSubmenu),r.hasConfigured(Lv)&&Lv.isDisabled(r))return P.some(r);var a=c(r);return i.expand(a).bind((function(a){return g(t,a),P.from(a[0]).bind((function(c){return i.lookupMenu(c).bind((function(u){var s=v(t,c,u);return Pn(s.element)||Hw.append(t,Os(s)),e.onOpenSubmenu(t,r,s,ie(a)),o===n.HighlightSubmenu?(ry.highlightFirst(s),p(t,i,a)):(ry.dehighlightAll(s),P.some(r))}))}))}))},b=function(t,n){var r=c(n);return i.collapse(r).bind((function(r){return g(t,r),p(t,i,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},w=function(e,t){var n=c(t);return i.refresh(n).bind((function(t){return g(e,t),p(e,i,t)}))},k=function(e,t){return gv(t.element)?P.none():y(e,t,n.HighlightSubmenu)},_=function(e,t){return gv(t.element)?P.none():b(e,t)},x=function(t,n){return b(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},C=function(t){return function(n,r){return Hs(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(T)}))}))}},z=Oc([Mc(Ik(),(function(e,t){var n=t.event.item;i.lookupItem(c(n)).each((function(){var n=t.event.menu;ry.highlight(e,n);var r=c(t.event.item);i.refresh(r).each((function(t){return d(e,i,t)}))}))})),Wc((function(t,r){var o=r.event.target;t.getSystem().getByDom(o).each((function(r){var o=c(r);0===o.indexOf("collapse-item")&&b(t,r),y(t,r,n.HighlightSubmenu).fold((function(){e.onExecute(t,r)}),h)}))})),Vc((function(t,n){a(t).each((function(n){Hw.append(t,Os(n)),e.onOpenMenu(t,n),e.highlightImmediately&&l(t,n)}))}))].concat(e.navigateOnHover?[Mc(_k(),(function(t,r){var o=r.event.item;w(t,o),y(t,o,n.HighlightParent),e.onHover(t,o)}))]:[])),S=function(e){return ry.getHighlighted(e).bind(ry.getHighlighted)},O=function(e){S(e).each((function(t){b(e,t)}))},A=function(e){i.getPrimary().each((function(t){l(e,t)}))},D=function(e){return P.from(e.components()[0]).filter((function(e){return"menu"===Vn(e.element,"role")}))},M=function(t){var n=i.getPrimary().bind((function(e){return S(t).bind((function(e){var n=c(e),r=ze(i.getMenus()),o=De($(r,$k.extractPreparedMenu));return i.getTriggeringPath(n,(function(e){return u(t,o,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){D(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,o=n.triggeringPath;e.onRepositionMenu(t,r,o)}))},N={collapseMenu:O,highlightPrimary:A,repositionMenus:M};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rh(e.tmenuBehaviours,[Ew.config({mode:"special",onRight:C(k),onLeft:C(_),onEscape:C(x),focusIn:function(e,t){i.getPrimary().each((function(t){zc(e,t.element,nc())}))}}),ry.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),yv.config({find:function(e){return ry.getHighlighted(e)}}),Hw.config({})]),eventOrder:e.eventOrder,apis:N,events:z}},Kk=w("collapse-item"),Xk=function(e,t,n){return{primary:e,menus:t,expansions:n}},Yk=function(e,t){return{primary:e,menus:ma(e,t),expansions:{}}},Jk=function(e){return{value:ou(Kk()),meta:{text:e}}},Qk=dv({name:"TieredMenu",configFields:[ll("onExecute"),ll("onEscape"),sl("onOpenMenu"),sl("onOpenSubmenu"),cl("onRepositionMenu"),cl("onCollapseMenu"),Ki("highlightImmediately",!0),Li("data",[Ei("primary"),Ei("menus"),Ei("expansions")]),Ki("fakeFocus",!1),cl("onHighlight"),cl("onHover"),ol(),Ei("dom"),Ki("navigateOnHover",!0),Ki("stayInDom",!1),th("tmenuBehaviours",[Ew,ry,yv,Hw]),Ki("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:Gk,extraApis:{tieredData:Xk,singleData:Yk,collapseItem:Jk}}),Zk=function(e,t,n,r,o){var i=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Zl()},onRtl:function(){return ef()}}}:{},c=function(e){return 2===e.length},u=function(e){return c(e)?a:{}};return Qk.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return yp.close(t),e.onEscape.map((function(e){return e(t)})),P.some(!0)},onExecute:function(){return P.some(!0)},onOpenMenu:function(e,t){Ig.positionWithinBounds(i().getOrDie(),t,n,o())},onOpenSubmenu:function(e,t,n,r){var o=i().getOrDie();Ig.position(o,n,{anchor:E({type:"submenu",item:t},u(r))})},onRepositionMenu:function(e,t,r){var a=i().getOrDie();Ig.positionWithinBounds(a,t,n,o()),G(r,(function(e){var t=u(e.triggeringPath);Ig.position(a,e.triggeredMenu,{anchor:E({type:"submenu",item:e.triggeringItem},t)})}))}})},e_=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return Us(e,n)}))},r=function(e,t){yp.setContent(e,t)},o=function(e,t,n){i(e,t,n,P.none())},i=function(e,t,n,r){a(e,t,n,(function(){return r.map((function(e){return Jr(e)}))}))},a=function(t,n,r,o){var i=e.lazySink(t).getOrDie();yp.openWhileCloaked(t,n,(function(){return Ig.positionWithinBounds(i,t,r,o())})),eh.setValue(t,P.some({mode:"position",config:r,getBounds:o}))},c=function(e,t,n){u(e,t,n,P.none)},u=function(t,n,r,o){var i=Zk(e,t,n,r,o);yp.open(t,i),eh.setValue(t,P.some({mode:"menu",menu:i}))},s=function(e){yp.isOpen(e)&&(eh.setValue(e,P.none()),yp.close(e))},l=function(e){return yp.getState(e)},f=function(t){yp.isOpen(t)&&eh.getValue(t).each((function(n){switch(n.mode){case"menu":yp.getState(t).each(Qk.repositionMenus);break;case"position":var r=e.lazySink(t).getOrDie();Ig.positionWithinBounds(r,t,n.config,n.getBounds());break}}))},d={setContent:r,showAt:o,showWithin:i,showWithinBounds:a,showMenuAt:c,showMenuWithinBounds:u,hide:s,getContent:l,reposition:f,isOpen:yp.isOpen};return{uid:e.uid,dom:e.dom,behaviours:rh(e.inlineBehaviours,[yp.config({isPartOf:function(e,t,r){return Us(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),eh.config({store:{mode:"memory",initialValue:P.none()}}),bf.config({channels:E(E({},xp(E({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),zp(E(E({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:f})))})]),eventOrder:e.eventOrder,apis:d}},t_=dv({name:"InlineView",configFields:[Ei("lazySink"),cl("onShow"),cl("onHide"),qi("onEscape"),th("inlineBehaviours",[yp,eh,bf]),$i("fireDismissalEventInstead",[Ki("event",gc())]),$i("fireRepositionEventInstead",[Ki("event",pc())]),Ki("getRelated",P.none),Ki("isExtraPart",S),Ki("eventOrder",P.none)],factory:e_,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,o){e.showWithin(t,n,r,o)},showWithinBounds:function(e,t,n,r,o){e.showWithinBounds(t,n,r,o)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,o){e.showMenuWithinBounds(t,n,r,o)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),n_="layout-inset",r_=function(e){return e.x},o_=function(e,t){return e.x+e.width/2-t.width/2},i_=function(e,t){return e.x+e.width-t.width},a_=function(e){return e.y},c_=function(e,t){return e.y+e.height-t.height},u_=function(e,t){return e.y+e.height/2-t.height/2},s_=function(e,t,n){return gl(i_(e,t),c_(e,t),n.insetSouthwest(),_l(),"southwest",Al(e,{right:0,bottom:3}),n_)},l_=function(e,t,n){return gl(r_(e),c_(e,t),n.insetSoutheast(),kl(),"southeast",Al(e,{left:1,bottom:3}),n_)},f_=function(e,t,n){return gl(i_(e,t),a_(e),n.insetNorthwest(),wl(),"northwest",Al(e,{right:0,top:2}),n_)},d_=function(e,t,n){return gl(r_(e),a_(e),n.insetNortheast(),bl(),"northeast",Al(e,{left:1,top:2}),n_)},m_=function(e,t,n){return gl(o_(e,t),a_(e),n.insetNorth(),xl(),"north",Al(e,{top:2}),n_)},g_=function(e,t,n){return gl(o_(e,t),c_(e,t),n.insetSouth(),Cl(),"south",Al(e,{bottom:3}),n_)},p_=function(e,t,n){return gl(i_(e,t),u_(e,t),n.insetEast(),Sl(),"east",Al(e,{right:0}),n_)},h_=function(e,t,n){return gl(r_(e),u_(e,t),n.insetWest(),zl(),"west",Al(e,{left:1}),n_)},v_=function(e){switch(e){case"north":return m_;case"northeast":return d_;case"northwest":return f_;case"south":return g_;case"southeast":return l_;case"southwest":return s_;case"east":return p_;case"west":return h_}},y_=function(e,t,n,r,o){var i=$f(r).map(v_).getOr(m_);return i(e,t,n,r,o)},b_=function(e){switch(e){case"north":return g_;case"northeast":return l_;case"northwest":return s_;case"south":return m_;case"southeast":return d_;case"southwest":return f_;case"east":return h_;case"west":return p_}},w_=function(e,t,n,r,o){var i=$f(r).map(b_).getOr(m_);return i(e,t,n,r,o)},k_=tinymce.util.Tools.resolve("tinymce.util.Delay"),__=function(e){var t=vk(e.action),n=e.dom.tag,r=function(t){return Se(e.dom,"attributes").bind((function(e){return Se(e,t)}))},o=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return E({type:e},t)}var o=r("role").getOr("button");return{role:o}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:oh.augment(e.buttonBehaviours,[Yw.config({}),Ew.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:o()},eventOrder:e.eventOrder}},x_=dv({name:"Button",factory:__,configFields:[Ki("uid",void 0),Ei("dom"),Ki("components",[]),oh.field("buttonBehaviours",[Yw,Ew]),Fi("action"),Fi("role"),Ki("eventOrder",{})]}),C_=function(e){var t=sv(e)&&Oe(e,"uid")?e.uid:du("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOptional()},o=function(){return E(E({},e),{uid:t})};return{get:n,getOpt:r,asSpec:o}},z_=tinymce.util.Tools.resolve("tinymce.util.I18n"),S_={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},T_="temporary-placeholder",O_=function(e){return function(){return Se(e,T_).getOr("!not found!")}},E_=function(e,t){var n=e.toLowerCase();if(z_.isRtl()){var r=je(n,"-rtl");return Te(t,r)?r:n}return n},A_=function(e,t){return Se(t,E_(e,t))},D_=function(e,t){var n=t();return A_(e,n).getOrThunk(O_(n))},M_=function(e,t,n){var r=t();return A_(e,r).or(n).getOrThunk(O_(r))},N_=function(e){return!!z_.isRtl()&&Te(S_,e)},R_=function(){return jw("add-focusable",[Vc((function(e){Ls(e.element,"svg").each((function(e){return Fn(e,"focusable","false")}))}))])},B_=function(e,t,n,r){var o,i,a=N_(t)?["tox-icon--flip"]:[],c=Se(n,E_(t,n)).or(r).getOrThunk(O_(n));return{dom:{tag:e.tag,attributes:null!==(o=e.attributes)&&void 0!==o?o:{},classes:e.classes.concat(a),innerHtml:c},behaviours:mf(D(D([],null!==(i=e.behaviours)&&void 0!==i?i:[],!0),[R_()],!1))}},P_=function(e,t,n,r){return void 0===r&&(r=P.none()),B_(t,e,n(),r)},L_=function(e,t,n){var r=n(),o=ee(e,(function(e){return Te(r,E_(e,r))}));return B_(t,o.getOr(T_),r,P.none())},I_={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},H_=function(e){var t=C_({dom:{tag:"p",innerHtml:e.translationProvider(e.text)},behaviours:mf([Hw.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},o=C_({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:mf([Hw.config({})])}),i=function(e,t){e.getSystem().isConnected()&&o.getOpt(e).each((function(e){Hw.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);Hw.set(r,[xs(n)])}},c={updateProgress:i,updateText:a},u=ne([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return P.from(I_[e])})).toArray()]),s=C_(x_.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[P_("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),l=L_(u,{tag:"div",classes:["tox-notification__icon"]},e.iconProvider),f={dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:mf([Hw.config({})])},d=[l,f];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:mf([Yw.config({}),jw("notification-events",[Mc(Ia(),(function(e){s.getOpt(e).each(Yw.focus)}))])]),components:d.concat(e.progress?[o.asSpec()]:[]).concat(e.closeButton?[s.asSpec()]:[]),apis:c}},F_=dv({name:"Notification",factory:H_,configFields:[Fi("level"),Ei("progress"),Ei("icon"),Ei("onAction"),Ei("text"),Ei("iconProvider"),Ei("translationProvider"),Zi("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function j_(e,t,n){var r=t.backstage.shared,o=function(e){switch(e){case"bc-bc":return g_;case"tc-tc":return m_;case"tc-bc":return Wl;case"bc-tc":default:return $l}},i=function(e){e.length>0&&G(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},a=function(t,i){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),c=function(){i(),t_.hide(s)},u=Ts(F_.sketch({text:t.text,level:V(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:P.from(t.icon),closeButton:!a,onAction:c,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),s=Ts(t_.sketch(E({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(s),t.timeout>0&&k_.setTimeout((function(){c()}),t.timeout);var l=function(){var t=Jr(tt.fromDom(e.getContentAreaContainer())),n=Zr(),r=Ol(n.x,t.x,t.right),o=Ol(n.y,t.y,t.bottom),i=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom);return P.some(Yr(r,o,i-r,a-o))};return{close:c,moveTo:function(e,t){t_.showAt(s,Os(u),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n=Os(u),i={maxHeightFunction:Td()};if("banner"!==t&&d(e)){var a=o(t),c={type:"node",root:Ln(),node:P.some(tt.fromDom(e)),overrides:i,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};t_.showWithinBounds(s,n,{anchor:c},l)}else{var f=E(E({},r.anchors.banner()),{overrides:i});t_.showWithinBounds(s,n,{anchor:f},l)}},text:function(e){F_.updateText(u,e)},settings:t,getEl:function(){return u.element.dom},progressBar:{value:function(e){F_.updateProgress(u,e)}}}},c=function(e){e.close()},u=function(e){return e.settings};return{open:a,close:c,reposition:i,getArgs:u}}var V_,U_=function(e,t){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];u(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:o}},q_=function(e,t){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},W_=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),$_=function(e,t){return e.isBlock(t)||V(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},G_=function(e,t,n,r,o){var i=W_(e,(function(t){return $_(e,t)}));return P.from(i.backwards(t,n,r,o))},K_="[data-mce-autocompleter]",X_=function(e,t){return Y_(tt.fromDom(e.selection.getNode())).getOrThunk((function(){var n=tt.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return Ar(n,tt.fromDom(t.extractContents())),t.insertNode(n.dom),vn(n).each((function(e){return e.dom.normalize()})),Gm(n).map((function(t){e.selection.setCursorLocation(t.dom,Um(t))})),n}))},Y_=function(e){return Hs(e,K_)},J_=function(e){return e.collapsed&&3===e.startContainer.nodeType},Q_=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},Z_=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},ex=function(e,t){return e.substring(t.length)},tx=function(e,t,n){var r;for(r=t-1;r>=0;r--){var o=e.charAt(r);if(Z_(o))return P.none();if(o===n)break}return P.some(r)},nx=function(e,t,n,r){if(void 0===r&&(r=0),!J_(t))return P.none();var o=function(e,t,r){return tx(r,t,n).getOr(t)},i=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return G_(e,t.startContainer,t.startOffset,o,i).bind((function(e){var o=t.cloneRange();if(o.setStart(e.container,e.offset),o.setEnd(t.endContainer,t.endOffset),o.collapsed)return P.none();var i=Q_(o),a=i.lastIndexOf(n);return 0!==a||ex(i,n).length<r?P.none():P.some({text:ex(i,n),range:o,triggerChar:n})}))},rx=function(e,t,n,r){return void 0===r&&(r=0),Y_(tt.fromDom(t.startContainer)).fold((function(){return nx(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var o=Q_(r);return P.some({range:r,text:ex(o,n),triggerChar:n})}))},ox=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){xc(e,Fa(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(ry.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(Cc),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(ry.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&Y_(tt.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},ix={setup:ox},ax=tinymce.util.Tools.resolve("tinymce.util.Promise"),cx=function(e,t){return{container:e,offset:t}},ux=function(e){return e.nodeType===at},sx=function(e){return e.nodeType===it},lx=function(e){if(ux(e))return cx(e,e.data.length);var t=e.childNodes;return t.length>0?lx(t[t.length-1]):cx(e,t.length)},fx=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?fx(n[t],0):n.length>0&&sx(e)&&n.length===t?lx(n[n.length-1]):cx(e,t)},dx=function(e,t){return G_(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!Z_(t)})).isSome()},mx=function(e){return function(t){var n=fx(t.startContainer,t.startOffset);return!dx(e,n)}},gx=function(e,t,n){return ge(n.triggerChars,(function(n){return rx(e,t,n)}))},px=function(e,t){var n=t(),r=e.selection.getRng();return gx(e.dom,r,n).bind((function(n){return hx(e,t,n)}))},hx=function(e,t,n,r){void 0===r&&(r={});var o=t(),i=e.selection.getRng(),a=i.startContainer.nodeValue,c=Y(o.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return mx(e.dom)}))(n.range,a,n.text)}));if(0===c.length)return P.none();var u=ax.all($(c,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return P.some({lookupData:u,context:n})},vx=ei([Mi("type"),Ui("text")]),yx=function(e){return wi("separatormenuitem",vx,e)},bx=ei([Ki("type","autocompleteitem"),Ki("active",!1),Ki("disabled",!1),Ki("meta",{}),Mi("value"),Ui("text"),Ui("icon")]),wx=ei([Mi("type"),Mi("ch"),Yi("minChars",1),Ki("columns",1),Yi("maxResults",10),qi("matches"),Bi("fetch"),Bi("onAction"),na("highlightOn",[],si)]),kx=function(e){return wi("Autocompleter.Separator",vx,e)},_x=function(e){return wi("Autocompleter.Item",bx,e)},xx=function(e){return wi("Autocompleter",wx,e)},Cx=[Zi("disabled",!1),Ui("tooltip"),Ui("icon"),Ui("text"),ea("onSetup",(function(){return h}))],zx=ei([Mi("type"),Bi("onAction")].concat(Cx)),Sx=function(e){return wi("toolbarbutton",zx,e)},Tx=[Zi("active",!1)].concat(Cx),Ox=ei(Tx.concat([Mi("type"),Bi("onAction")])),Ex=function(e){return wi("ToggleButton",Ox,e)},Ax=[ea("predicate",S),Qi("scope","node",["node","editor"]),Qi("position","selection",["node","selection","line"])],Dx=Cx.concat([Ki("type","contextformbutton"),Ki("primary",!1),Bi("onAction"),Ti("original",k)]),Mx=Tx.concat([Ki("type","contextformbutton"),Ki("primary",!1),Bi("onAction"),Ti("original",k)]),Nx=Cx.concat([Ki("type","contextformbutton")]),Rx=Tx.concat([Ki("type","contextformtogglebutton")]),Bx=Ci("type",{contextformbutton:Dx,contextformtogglebutton:Mx}),Px=ei([Ki("type","contextform"),ea("initValue",w("")),Ui("label"),Hi("commands",Bx),ji("launch",Ci("type",{contextformbutton:Nx,contextformtogglebutton:Rx}))].concat(Ax)),Lx=function(e){return wi("ContextForm",Px,e)},Ix=ei([Ki("type","contexttoolbar"),Mi("items")].concat(Ax)),Hx=function(e){return wi("ContextToolbar",Ix,e)},Fx=function(e){var t={};return G(e,(function(e){t[e]={}})),pe(t)},jx=function(e){var t=e.ui.registry.getAll().popups,n=ye(t,(function(e){return xx(e).fold((function(e){throw new Error(xi(e))}),k)})),r=Fx(xe(n,(function(e){return e.ch}))),o=ze(n),i=function(e){return Y(o,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:i}};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(V_||(V_={}));var Vx,Ux=V_,qx="tox-menu-nav__js",Wx="tox-collection__item",$x="tox-swatch",Gx={normal:qx,color:$x},Kx="tox-collection__item--enabled",Xx="tox-collection__group-heading",Yx="tox-collection__item-icon",Jx="tox-collection__item-label",Qx="tox-collection__item-accessory",Zx="tox-collection__item-caret",eC="tox-collection__item-checkmark",tC="tox-collection__item--active",nC="tox-collection__item-container",rC="tox-collection__item-container--column",oC="tox-collection__item-container--row",iC="tox-collection__item-container--align-right",aC="tox-collection__item-container--align-left",cC="tox-collection__item-container--valign-top",uC="tox-collection__item-container--valign-middle",sC="tox-collection__item-container--valign-bottom",lC=function(e){return Se(Gx,e).getOr(qx)},fC=function(e){return"color"===e?"tox-swatches":"tox-menu"},dC=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:fC(e),tieredMenu:"tox-tiered-menu"}},mC=function(e){var t=dC(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:lC(e)}},gC=function(e,t,n){var r=dC(n);return{tag:"div",classes:ne([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},pC=[Fk.parts.items({})],hC=function(e,t,n){var r=dC(n),o={tag:"div",classes:ne([[r.tieredMenu]])};return{dom:o,markers:mC(n)}},vC=function(e,t){return function(n){var r=W(n,t);return $(r,(function(t){return{dom:e,components:t}}))}},yC=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Fk.parts.items({preprocess:"auto"!==e?vC({tag:"div",classes:["tox-swatches__row"]},e):k})]}]}},bC=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Fk.parts.items({preprocess:vC({tag:"div",classes:["tox-collection__group"]},e)})]}},wC=function(e,t){var n=[],r=[];return G(e,(function(e,o){t(e,o)?(r.length>0&&n.push(r),r=[],Te(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),$(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},kC=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[Fk.parts.items({preprocess:function(n){return"auto"!==e&&e>1?vC({tag:"div",classes:["tox-collection__group"]},e)(n):wC(n,(function(e,n){return"separator"===t[n].type}))}})]}},_C=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Fk.parts.items({preprocess:function(t){return wC(t,(function(t,n){return"separator"===e[n].type}))}})]}},xC=function(e){return U(e,(function(e){return"icon"in e&&void 0!==e.icon}))},CC=function(e){return console.error(xi(e)),console.log(e),P.none()},zC=function(e,t,n,r,o){var i=_C(n);return{value:e,dom:i.dom,components:i.components,items:n}},SC=function(e,t,n,r,o){if("color"===o){var i=yC(r);return{value:e,dom:i.dom,components:i.components,items:n}}if("normal"===o&&"auto"===r){i=kC(r,n);return{value:e,dom:i.dom,components:i.components,items:n}}if("normal"===o&&1===r){i=kC(1,n);return{value:e,dom:i.dom,components:i.components,items:n}}if("normal"===o){i=kC(r,n);return{value:e,dom:i.dom,components:i.components,items:n}}if("listpreview"===o&&"auto"!==r){i=bC(r);return{value:e,dom:i.dom,components:i.components,items:n}}return{value:e,dom:gC(t,r,o),components:pC,items:n}},TC=[Mi("type"),Mi("src"),Ui("alt"),na("classes",[],si)],OC=ei(TC),EC=[Mi("type"),Mi("text"),Ui("name"),na("classes",["tox-collection__item-label"],si)],AC=ei(EC),DC=Jo((function(){return pi("type",{cardimage:OC,cardtext:AC,cardcontainer:MC})})),MC=ei([Mi("type"),Ji("direction","horizontal"),Ji("align","left"),Ji("valign","middle"),Hi("items",DC)]),NC=[Zi("disabled",!1),Ui("text"),Ui("shortcut"),Si("value","value",zo((function(){return ou("menuitem-value")})),ai()),Ki("meta",{})],RC=ei([Mi("type"),Ui("label"),Hi("items",DC),ea("onSetup",(function(){return h})),ea("onAction",h)].concat(NC)),BC=function(e){return wi("cardmenuitem",RC,e)},PC=ei([Mi("type"),Zi("active",!1),Ui("icon")].concat(NC)),LC=function(e){return wi("choicemenuitem",PC,e)},IC=[Mi("type"),Mi("fancytype"),ea("onAction",h)],HC=[Ki("initData",{})].concat(IC),FC=[ra("initData",{},[Zi("allowCustomColors",!0),Wi("colors",ai())])].concat(IC),jC=Ci("fancytype",{inserttable:HC,colorswatch:FC}),VC=function(e){return wi("fancymenuitem",jC,e)},UC=ei([Mi("type"),ea("onSetup",(function(){return h})),ea("onAction",h),Ui("icon")].concat(NC)),qC=function(e){return wi("menuitem",UC,e)},WC=ei([Mi("type"),Bi("getSubmenuItems"),ea("onSetup",(function(){return h})),Ui("icon")].concat(NC)),$C=function(e){return wi("nestedmenuitem",WC,e)},GC=ei([Mi("type"),Ui("icon"),Zi("active",!1),ea("onSetup",(function(){return h})),Bi("onAction")].concat(NC)),KC=function(e){return wi("togglemenuitem",GC,e)},XC=function(e,t,n){var r=Xm(e.element,"."+n);if(r.length>0){var o=te(r,(function(e){var n=e.dom.getBoundingClientRect().top,o=r[0].dom.getBoundingClientRect().top;return Math.abs(n-o)>t})).getOr(r.length);return P.some({numColumns:o,numRows:Math.ceil(r.length/o)})}return P.none()},YC=function(e,t){return mf([jw(e,t)])},JC=function(e){return YC(ou("unnamed-events"),e)},QC={namedEvents:YC,unnamedEvents:JC},ZC=ou("tooltip.exclusive"),ez=ou("tooltip.show"),tz=ou("tooltip.hide"),nz=function(e,t,n){e.getSystem().broadcastOn([ZC],{})},rz=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&Hw.set(e,r)}))},oz=Object.freeze({__proto__:null,hideAllExclusive:nz,setComponents:rz}),iz=function(e,t){var n=function(n){t.getTooltip().each((function(r){Gg(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){nz(n);var r=e.lazySink(n).getOrDie(),o=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Oc("normal"===e.mode?[Mc(La(),(function(e){_c(n,ez)})),Mc(Ba(),(function(e){_c(n,tz)}))]:[]),behaviours:mf([Hw.config({})])});t.setTooltip(o),qg(r,o),e.onShow(n,o),Ig.position(r,o,{anchor:e.anchor(n)})}};return Oc(ne([[Mc(ez,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),Mc(tz,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Mc(ec(),(function(e,t){var r=t;r.universal||V(r.channels,ZC)&&n(e)})),Uc((function(e){n(e)}))],"normal"===e.mode?[Mc(Ia(),(function(e){_c(e,ez)})),Mc(Qa(),(function(e){_c(e,tz)})),Mc(La(),(function(e){_c(e,ez)})),Mc(Ba(),(function(e){_c(e,tz)}))]:[Mc(wc(),(function(e,t){_c(e,ez)})),Mc(kc(),(function(e){_c(e,tz)}))]]))},az=Object.freeze({__proto__:null,events:iz}),cz=[Ei("lazySink"),Ei("tooltipDom"),Ki("exclusive",!0),Ki("tooltipComponents",[]),Ki("delay",300),Qi("mode","normal",["normal","follow-highlight"]),Ki("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:w([$l,Wl,jl,Ul,Vl,ql]),onRtl:w([$l,Wl,jl,Ul,Vl,ql])}}})),cl("onHide"),cl("onShow")],uz=function(){var e=od(),t=od(),n=function(){e.on(clearTimeout)},r=function(t,r){n(),e.set(setTimeout(t,r))},o=w("not-implemented");return zu({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:n,resetTimer:r,readState:o})},sz=Object.freeze({__proto__:null,init:uz}),lz=pf({fields:cz,name:"tooltipping",active:az,state:sz,apis:oz}),fz=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},dz=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),mz=tinymce.util.Tools.resolve("tinymce.EditorManager"),gz=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):mz.baseURL+"/skins/ui/"+r}return n},pz=function(e){return e.getParam("readonly",!1,"boolean")},hz=function(e){return!1===e.getParam("skin")},vz=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},yz=function(e){return e.getParam("width",dz.DOM.getStyle(e.getElement(),"width"))},bz=function(e){return P.from(e.getParam("min_width")).filter(g)},wz=function(e){return P.from(e.getParam("min_height")).filter(g)},kz=function(e){return P.from(e.getParam("max_width")).filter(g)},_z=function(e){return P.from(e.getParam("max_height")).filter(g)},xz=function(e){return P.from(e.getParam("style_formats")).filter(c)},Cz=function(e){return e.getParam("style_formats_merge",!1,"boolean")},zz=function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},Sz=function(e){return e.getParam("content_langs",void 0,"array")},Tz=function(e){return e.getParam("removed_menuitems","")},Oz=function(e){return!1!==e.getParam("menubar",!0,"boolean")},Ez=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=i(t),o=c(t)&&t.length>0;return!Dz(e)&&(o||r||n)},Az=function(e){var t=q(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=Y(t,(function(e){return"string"===typeof e}));return n.length>0?P.some(n):P.none()},Dz=function(e){return Az(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),T)};(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(Vx||(Vx={}));var Mz,Nz=function(e){return e.getParam("toolbar_mode","","string")};(function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"})(Mz||(Mz={}));var Rz,Bz=function(e){return e.getParam("toolbar_groups",{},"object")},Pz=function(e){return e.getParam("toolbar_location",Mz.auto,"string")},Lz=function(e){return Pz(e)===Mz.bottom},Iz=function(e){return e.getParam("fixed_toolbar_container","","string")},Hz=function(e){return e.getParam("fixed_toolbar_container_target")},Fz=function(e){return e.getParam("toolbar_persist",!1,"boolean")},jz=function(e){if(!e.inline)return P.none();var t=Iz(e);if(t.length>0)return Is(Ln(),t);var n=Hz(e);return d(n)?P.some(tt.fromDom(n)):P.none()},Vz=function(e){return e.inline&&jz(e).isSome()},Uz=function(e){var t=jz(e);return t.getOrThunk((function(){return An(En(tt.fromDom(e.getElement())))}))},qz=function(e){return e.inline&&!Oz(e)&&!Ez(e)&&!Dz(e)},Wz=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!Vz(e)&&!qz(e)},$z=function(e){return e.getParam("toolbar_sticky_offset",0,"number")},Gz=function(e){return e.getParam("draggable_modal",!1,"boolean")},Kz=function(e){var t=e.getParam("menu");return t?ye(t,(function(e){return E(E({},e),{items:e.items})})):{}},Xz=function(e){return e.getParam("menubar")},Yz=function(e){return e.getParam("toolbar",!0)},Jz=function(e){return e.getParam("file_picker_callback")},Qz=function(e){return e.getParam("file_picker_types")},Zz=function(e){return e.getParam("file_browser_callback_types")},eS=function(e){return!1===e.getParam("typeahead_urls")},tS=function(e){return e.getParam("anchor_top","#top")},nS=function(e){return e.getParam("anchor_bottom","#bottom")},rS=function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t},oS="silver.readonly",iS=ei([Ri("readonly")]),aS=function(e,t){var n=e.outerContainer,r=n.element;t&&(e.mothership.broadcastOn([bp()],{target:r}),e.uiMothership.broadcastOn([bp()],{target:r})),e.mothership.broadcastOn([oS],{readonly:t}),e.uiMothership.broadcastOn([oS],{readonly:t})},cS=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&aS(t,!0)})),e.on("SwitchMode",(function(){return aS(t,e.mode.isReadOnly())})),pz(e)&&e.setMode("readonly")},uS=function(){var e;return bf.config({channels:(e={},e[oS]={schema:iS,onReceive:function(e,t){Lv.set(e,t.readonly)}},e)})},sS=function(e){return Lv.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},lS=function(e){return Lv.config({disabled:e})},fS=function(e){return Lv.config({disabled:e,disableClass:"tox-tbtn--disabled"})},dS=function(e){return Lv.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},mS={item:sS,button:lS,splitButton:fS,toolbarButton:dS},gS=function(e,t){var n=e.getApi(t);return function(e){e(n)}},pS=function(e,t){return Vc((function(n){var r=gS(e,n);r((function(n){var r=e.onSetup(n);m(r)&&t.set(r)}))}))},hS=function(e,t){return Uc((function(n){return gS(e,n)(t.get())}))},vS=function(e,t){return Wc((function(n,r){gS(e,n)(e.onAction),e.triggersSubmenu||t!==Ux.CLOSE_ON_EXECUTE||(_c(n,ic()),r.stop())}))},yS=(Rz={},Rz[tc()]=["disabling","alloy.base.behaviour","toggling","item-events"],Rz),bS=De,wS=function(e,t,n,r){var o=oa(h);return{type:"item",dom:t.dom,components:bS(t.optComponents),data:e.data,eventOrder:yS,hasSubmenu:e.triggersSubmenu,itemBehaviours:mf([jw("item-events",[vS(e,n),pS(e,o),hS(e,o)]),mS.item((function(){return e.disabled||r.isDisabled()})),uS(),Hw.config({})].concat(e.itemBehaviours))}},kS=function(e){return{value:e.value,meta:E({text:e.text.getOr("")},e.meta)}},_S=tinymce.util.Tools.resolve("tinymce.Env"),xS=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=_S.mac?t:n,o=e.split("+"),i=$(o,(function(e){var t=e.toLowerCase().trim();return Te(r,t)?r[t]:e}));return _S.mac?i.join(""):i.join("+")},CS=function(e,t,n){return void 0===n&&(n=[Yx]),P_(e,{tag:"div",classes:n},t)},zS=function(e){return{dom:{tag:"div",classes:[Jx]},components:[xs(z_.translate(e))]}},SS=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},TS=function(e,t){return{dom:{tag:"div",classes:[Jx]},components:[{dom:{tag:e.tag,styles:e.styles},components:[xs(z_.translate(t))]}]}},OS=function(e){return{dom:{tag:"div",classes:[Qx],innerHtml:xS(e)}}},ES=function(e){return CS("checkmark",e,[eC])},AS=function(e){return CS("chevron-right",e,[Zx])},DS=function(e){return CS("chevron-down",e,[Zx])},MS=function(e,t){var n="vertical"===e.direction?rC:oC,r="left"===e.align?aC:iC,o=function(){switch(e.valign){case"top":return cC;case"middle":return uC;case"bottom":return sC}};return{dom:{tag:"div",classes:[nC,n,r,o()]},components:t}},NS=function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}},RS=function(e,t,n){var r="custom",o="remove",i=e.ariaLabel,a=e.value,c=e.iconContent.map((function(e){return M_(e,t.icons,n)})),u=function(){var e=$x,n=c.getOr(""),u=i.map((function(e){return{title:t.translate(e)}})).getOr({}),s={tag:"div",attributes:u,classes:[e]};return E(E({},s),a===r?{tag:"button",classes:D(D([],s.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:n}:a===o?{classes:D(D([],s.classes,!0),["tox-swatch--remove"],!1),innerHtml:n}:{attributes:E(E({},s.attributes),{"data-mce-color":a}),styles:{"background-color":a}})};return{dom:u(),optComponents:[]}},BS=function(e){var t=e.map((function(e){return{attributes:{title:z_.translate(e)}}})).getOr({});return E({tag:"div",classes:[qx,Wx]},t)},PS=function(e,t,n,r){var o={tag:"div",classes:[Yx]},i=function(e){return P_(e,o,t.icons,r)},a=function(){return P.some({dom:o})},c=n?e.iconContent.map(i).orThunk(a):P.none(),u=e.checkMark,s=P.from(e.meta).fold((function(){return zS}),(function(e){return Te(e,"style")?x(TS,e.style):zS})),l=e.htmlContent.fold((function(){return e.textContent.map(s)}),(function(e){return P.some(SS(e,[Jx]))})),f={dom:BS(e.ariaLabel),optComponents:[c,l,e.shortcutContent.map(OS),u,e.caret]};return f},LS=function(e,t,n,r){return void 0===r&&(r=P.none()),"color"===e.presets?RS(e,t,r):PS(e,t,n,r)},IS=function(e,t){return Se(e,"tooltipWorker").map((function(e){return[lz.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Td}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){lz.setComponents(t,[Cs({element:tt.fromDom(e)})])}))}})]})).getOr([])},HS=function(e){return dz.DOM.encode(e)},FS=function(e,t){var n=z_.translate(e),r=HS(n);if(t.length>0){var o=new RegExp(fz(t),"gi");return r.replace(o,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},jS=function(e,t,n,r,o,i,a,c){void 0===c&&(c=!0);var u=LS({presets:r,textContent:P.none(),htmlContent:n?e.text.map((function(e){return FS(e,t)})):P.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:P.none(),checkMark:P.none(),caret:P.none(),value:e.value},a.providers,c,e.icon);return wS({data:kS(e),disabled:e.disabled,getApi:w({}),onAction:function(t){return o(e.value,e.meta)},onSetup:w(h),triggersSubmenu:!1,itemBehaviours:IS(e.meta,a)},u,i,a.providers)},VS=function(e,t){return $(e,(function(e){switch(e.type){case"cardcontainer":return MS(e,VS(e.items,t));case"cardimage":return NS(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return V(t.cardText.highlightOn,e)})),r=n?P.from(t.cardText.matchText).getOr(""):"";return SS(FS(e.text,r),e.classes)}}))},US=function(e,t,n,r){var o=function(e){return{isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){Lv.set(e,t),G(Xm(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(Lv)&&Lv.set(e,t)}))}))}}},i={dom:BS(e.label),optComponents:[P.some({dom:{tag:"div",classes:[nC,oC]},components:VS(e.items,r)})]};return wS({data:kS(E({text:P.none()},e)),disabled:e.disabled,getApi:o,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:P.from(r.itemBehaviours).getOr([])},i,t,n.providers)},qS=function(e,t,n,r,o,i,a,c){void 0===c&&(c=!0);var u=function(e){return{setActive:function(t){pk.set(e,t)},isActive:function(){return pk.isOn(e)},isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)}}},s=LS({presets:n,textContent:t?e.text:P.none(),htmlContent:P.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:P.none(),checkMark:t?P.some(ES(a.icons)):P.none(),caret:P.none(),value:e.value},a,c);return _o(wS({data:kS(e),disabled:e.disabled,getApi:u,onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(o),h},triggersSubmenu:!1,itemBehaviours:[]},s,i,a),{toggling:{toggleClass:Kx,toggleOnExecute:!1,selected:e.active}})},WS=jh(Ok(),Ek()),$S=function(e){return{value:e}},GS=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,KS=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,XS=function(e){return GS.test(e)||KS.test(e)},YS=function(e){return Fe(e,"#").toUpperCase()},JS=function(e){return XS(e)?P.some({value:YS(e)}):P.none()},QS=function(e){var t=e.value.replace(GS,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}},ZS=function(e){var t=QS(e),n=KS.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n},eT=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},tT=function(e){var t=eT(e.red)+eT(e.green)+eT(e.blue);return $S(t)},nT=Math.min,rT=Math.max,oT=Math.round,iT=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,aT=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,cT=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},uT=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},sT=function(e){var t,n,r,o=(e.hue||0)%360,i=e.saturation/100,a=e.value/100;if(i=rT(0,nT(i,1)),a=rT(0,nT(a,1)),0===i)return t=n=r=oT(255*a),cT(t,n,r,1);var c=o/60,u=a*i,s=u*(1-Math.abs(c%2-1)),l=a-u;switch(Math.floor(c)){case 0:t=u,n=s,r=0;break;case 1:t=s,n=u,r=0;break;case 2:t=0,n=u,r=s;break;case 3:t=0,n=s,r=u;break;case 4:t=s,n=0,r=u;break;case 5:t=u,n=0,r=s;break;default:t=n=r=0}return t=oT(255*(t+l)),n=oT(255*(n+l)),r=oT(255*(r+l)),cT(t,n,r,1)},lT=function(e){var t=ZS(e),n=parseInt(t[1],16),r=parseInt(t[2],16),o=parseInt(t[3],16);return cT(n,r,o,1)},fT=function(e,t,n,r){var o=parseInt(e,10),i=parseInt(t,10),a=parseInt(n,10),c=parseFloat(r);return cT(o,i,a,c)},dT=function(e){if("transparent"===e)return P.some(cT(0,0,0,0));var t=iT.exec(e);if(null!==t)return P.some(fT(t[1],t[2],t[3],"1"));var n=aT.exec(e);return null!==n?P.some(fT(n[1],n[2],n[3],n[4])):P.none()},mT=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},gT=cT(255,0,0,1),pT=function(e){return e.fire("SkinLoaded")},hT=function(e,t){return e.fire("SkinLoadError",t)},vT=function(e){return e.fire("ResizeEditor")},yT=function(e,t){return e.fire("ResizeContent",t)},bT=function(e,t){return e.fire("ScrollContent",t)},wT=function(e,t){return e.fire("TextColorChange",t)},kT=function(e,t,n){return{hue:e,saturation:t,value:n}},_T=function(e){var t=0,n=0,r=0,o=e.red/255,i=e.green/255,a=e.blue/255,c=Math.min(o,Math.min(i,a)),u=Math.max(o,Math.max(i,a));if(c===u)return r=c,kT(0,0,100*r);var s=o===c?i-a:a===c?o-i:a-o;return t=o===c?3:a===c?1:5,t=60*(t-s/(u-c)),n=(u-c)/u,r=u,kT(Math.round(t),Math.round(100*n),Math.round(100*r))},xT=function(e){return _T(lT(e))},CT=function(e){return tT(sT(e))},zT=function(e){return JS(e).orThunk((function(){return dT(e).map(tT)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],c=r[3];return tT(cT(o,i,a,c))}))},ST=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),TT="tinymce-custom-colors";function OT(e){void 0===e&&(e=10);var t=ST.getItem(TT),n=i(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},o=r(n),a=function(t){j(o,t).each(c),o.unshift(t),o.length>e&&o.pop(),ST.setItem(TT,JSON.stringify(o))},c=function(e){o.splice(e,1)},u=function(){return o.slice(0)};return{add:a,state:u}}var ET,AT="choiceitem",DT=[{type:AT,text:"Light Green",value:"#BFEDD2"},{type:AT,text:"Light Yellow",value:"#FBEEB8"},{type:AT,text:"Light Red",value:"#F8CAC6"},{type:AT,text:"Light Purple",value:"#ECCAFA"},{type:AT,text:"Light Blue",value:"#C2E0F4"},{type:AT,text:"Green",value:"#2DC26B"},{type:AT,text:"Yellow",value:"#F1C40F"},{type:AT,text:"Red",value:"#E03E2D"},{type:AT,text:"Purple",value:"#B96AD9"},{type:AT,text:"Blue",value:"#3598DB"},{type:AT,text:"Dark Turquoise",value:"#169179"},{type:AT,text:"Orange",value:"#E67E23"},{type:AT,text:"Dark Red",value:"#BA372A"},{type:AT,text:"Dark Purple",value:"#843FA1"},{type:AT,text:"Dark Blue",value:"#236FA1"},{type:AT,text:"Light Gray",value:"#ECF0F1"},{type:AT,text:"Medium Gray",value:"#CED4D9"},{type:AT,text:"Gray",value:"#95A5A6"},{type:AT,text:"Dark Gray",value:"#7E8C8D"},{type:AT,text:"Navy Blue",value:"#34495E"},{type:AT,text:"Black",value:"#000000"},{type:AT,text:"White",value:"#ffffff"}],MT=OT(10),NT=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+zT(e[n]).value,type:"choiceitem"});return t},RT=function(e,t){return e.getParam("color_cols",t,"number")},BT=function(e){return!1!==e.getParam("custom_colors")},PT=function(e){return e.getParam("color_map")},LT=function(e){var t=PT(e);return void 0!==t?NT(t):DT},IT=function(){return $(MT.state(),(function(e){return{type:AT,text:e,value:e}}))},HT=function(e){MT.add(e)},FT="#000000",jT=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),P.from(n)},VT=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},UT=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},qT=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){VT(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){UT(e,t)}))},WT=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},$T=function(e){var t=LT(e),n=WT(t.length);return RT(e,n)},GT=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},KT=function(e,t,n,r){if("custom"===n){var o=eO(e);o((function(n){n.each((function(n){HT(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),FT)}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},XT=function(e,t){return e.concat(IT().concat(GT(t)))},YT=function(e,t){return function(n){n(XT(e,t))}},JT=function(e,t,n){var r="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(r,n)},QT=function(e,t,n,r,o){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r=jT(e,n);return r.bind((function(e){return dT(e).map((function(e){var n=tT(e).value;return Ve(t.toLowerCase(),n)}))})).getOr(!1)},columns:$T(e),fetch:YT(LT(e),BT(e)),onAction:function(t){KT(e,n,o.get(),h)},onItemAction:function(r,i){KT(e,n,i,(function(n){o.set(n),wT(e,{name:t,color:n})}))},onSetup:function(n){JT(n,t,o.get());var r=function(e){e.name===t&&JT(n,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},ZT=function(e,t,n,r){e.ui.registry.addNestedMenuItem(t,{text:r,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){KT(e,n,t.value,h)}}]}})},eO=function(e){return function(t,n){var r=!1,o=function(n){var o=n.getData(),i=o.colorpicker;r?(t(P.from(i)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",i]))},i=function(e,t){"hex-valid"===t.name&&(r=t.value)},a={colorpicker:n};e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onAction:i,onSubmit:o,onClose:h,onCancel:function(){t(P.none())}})}},tO=function(e){qT(e);var t=oa(FT),n=oa(FT);QT(e,"forecolor","forecolor","Text color",t),QT(e,"backcolor","hilitecolor","Background color",n),ZT(e,"forecolor","forecolor","Text color"),ZT(e,"backcolor","hilitecolor","Background color")},nO=function(e,t,n,r,o,i,a,c){var u=xC(t),s="color"!==o?"normal":"color",l=rO(t,n,r,s,i,a,c);return SC(e,u,l,r,o)},rO=function(e,t,n,r,o,i,a){return De($(e,(function(c){return"choiceitem"===c.type?LC(c).fold(CC,(function(u){return P.some(qS(u,1===n,r,t,i(c.value),o,a,xC(e)))})):P.none()})))},oO=function(e,t){var n=mC(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},iO=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+$x:"."+Wx}}},aO=function(e,t){var n=cO(e,t),r=t.colorinput.getColorCols(),o="color",i=nO(ou("menu-value"),n,(function(t){e.onAction({value:t})}),r,o,Ux.CLOSE_ON_EXECUTE,S,t.shared.providers),a=E(E({},i),{markers:mC(o),movement:oO(r,o)});return{type:"widget",data:{value:ou("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[WS.widget(Fk.sketch(a))]}},cO=function(e,t){var n=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold((function(){return XT(t.colorinput.getColors(),n)}),(function(e){return e.concat(GT(n))}))},uO=ou("cell-over"),sO=ou("cell-execute"),lO=function(e,t,n){var r,o=function(n){return xc(n,uO,{row:e,col:t})},i=function(n){return xc(n,sO,{row:e,col:t})},a=function(e,t){t.stop(),i(e)};return Ts({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:mf([jw("insert-table-picker-cell",[Mc(La(),Yw.focus),Mc(tc(),i),Mc(qa(),a),Mc(rc(),a)]),pk.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Yw.config({onFocus:o})])})},fO=function(e,t,n){for(var r=[],o=0;o<t;o++){for(var i=[],a=0;a<n;a++)i.push(lO(o,a,e));r.push(i)}return r},dO=function(e,t,n,r,o){for(var i=0;i<r;i++)for(var a=0;a<o;a++)pk.set(e[i][a],i<=t&&a<=n)},mO=function(e){return re(e,(function(e){return $(e,Os)}))},gO=function(e,t){return xs(t+"x"+e)},pO=function(e){var t=10,n=10,r=ou("size-label"),o=fO(r,t,n),i=gO(0,0),a=C_({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[i],behaviours:mf([Hw.config({})])});return{type:"widget",data:{value:ou("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[WS.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:mO(o).concat(a.asSpec()),behaviours:mf([jw("insert-table-picker",[Vc((function(e){Hw.set(a.get(e),[i])})),Ic(uO,(function(e,r,i){var c=i.event,u=c.row,s=c.col;dO(o,u,s,t,n),Hw.set(a.get(e),[gO(u+1,s+1)])})),Ic(sO,(function(t,n,r){var o=r.event,i=o.row,a=o.col;e.onAction({numRows:i+1,numColumns:a+1}),_c(t,ic())}))]),Ew.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},hO={inserttable:pO,colorswatch:aO},vO=function(e,t){return Se(hO,e.fancytype).map((function(n){return n(e,t)}))},yO=function(e,t,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var i=o?DS(n.icons):AS(n.icons),a=function(e){return{isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)}}},c=LS({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:P.none(),ariaLabel:e.text,caret:P.some(i),checkMark:P.none(),shortcutContent:e.shortcut},n,r);return wS({data:kS(e),getApi:a,disabled:e.disabled,onAction:h,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},c,t,n)},bO=function(e,t,n,r){void 0===r&&(r=!0);var o=function(e){return{isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)}}},i=LS({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:P.none(),ariaLabel:e.text,caret:P.none(),checkMark:P.none(),shortcutContent:e.shortcut},n,r);return wS({data:kS(e),getApi:o,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,t,n)},wO=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:E({tag:"div",classes:[Wx,Xx]},t),components:[]}},kO=function(e,t,n,r){void 0===r&&(r=!0);var o=function(e){return{setActive:function(t){pk.set(e,t)},isActive:function(){return pk.isOn(e)},isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)}}},i=LS({iconContent:e.icon,textContent:e.text,htmlContent:P.none(),ariaLabel:e.text,checkMark:P.some(ES(n.icons)),caret:P.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return _o(wS({data:kS(e),disabled:e.disabled,getApi:o,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,t,n),{toggling:{toggleClass:Kx,toggleOnExecute:!1,selected:e.active}})},_O=jS,xO=wO,CO=bO,zO=yO,SO=kO,TO=vO,OO=US;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(ET||(ET={}));var EO=function(e,t,n,r,o){var i=n.shared.providers,a=function(e){return o?E(E({},e),{shortcut:P.none(),icon:e.text.isSome()?P.none():e.icon}):e};switch(e.type){case"menuitem":return qC(e).fold(CC,(function(e){return P.some(CO(a(e),t,i,r))}));case"nestedmenuitem":return $C(e).fold(CC,(function(e){return P.some(zO(a(e),t,i,r,o))}));case"togglemenuitem":return KC(e).fold(CC,(function(e){return P.some(SO(a(e),t,i,r))}));case"separator":return yx(e).fold(CC,(function(e){return P.some(xO(e))}));case"fancymenuitem":return VC(e).fold(CC,(function(e){return TO(a(e),n)}));default:return console.error("Unknown item in general menu",e),P.none()}},AO=function(e,t,n,r,o,i,a){var c=1===r,u=!c||xC(e);return De($(e,(function(e){switch(e.type){case"separator":return kx(e).fold(CC,(function(e){return P.some(xO(e))}));case"cardmenuitem":return BC(e).fold(CC,(function(e){return P.some(OO(E(E({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),o,i,{itemBehaviours:IS(e.meta,i),cardText:{matchText:t,highlightOn:a}}))}));case"autocompleteitem":default:return _x(e).fold(CC,(function(e){return P.some(_O(e,t,c,"normal",n,o,i,u))}))}})))},DO=function(e,t,n,r,o){var i=xC(t),a=De($(t,(function(e){var t=function(e){return o?!Te(e,"text"):i},a=function(e){return EO(e,n,r,t(e),o)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(E(E({},e),{disabled:!0})):a(e)}))),c=o?zC:SC;return c(e,i,a,1,"normal")},MO=function(e){return Qk.singleData(e.value,e)},NO=function(e,t,n,r){var o=n===ET.ContentFocus?Sy():zy(),i=oO(t,r),a=mC(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:i,fakeFocus:n===ET.ContentFocus,focusManager:o,menuBehaviours:QC.unnamedEvents("auto"!==t?[]:[Vc((function(e,t){XC(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;Ew.setGridSize(e,r,n)}))}))])}},RO=function(e,t){var n=od(),r=oa(!1),o=Ts(t_.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:mf([jw("dismissAutocompleter",[Mc(gc(),(function(){return u()}))])]),lazySink:t.getSink})),i=function(){return t_.isOpen(o)},a=function(){return n.get().isSome()},c=function(){a()&&t_.hide(o)},u=function(){if(a()){var t=n.get().map((function(e){return e.element}));Y_(t.getOr(tt.fromDom(e.selection.getNode()))).each(Pr),c(),n.clear(),r.set(!1)}},s=gt((function(){return jx(e)})),l=function(n,o){var i=ge(o,(function(e){return P.from(e.columns)})).getOr(1);return re(o,(function(o){var a=o.items;return AO(a,o.matchText,(function(t,i){var a=e.selection.getRng();rx(e.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var n=e.range,a={hide:function(){u()},reload:function(e){c(),g(e)}};r.set(!0),o.onAction(a,n,t,i),r.set(!1)}))}),i,Ux.BUBBLE_TO_SANDBOX,t,o.highlightOn)}))},f=function(t){if(!a()){var o=X_(e,t.range);n.set({triggerChar:t.triggerChar,element:o,matchLength:t.text.length}),r.set(!1)}},d=function(t,n,r,i){t.matchLength=n.text.length;var a=ge(r,(function(e){return P.from(e.columns)})).getOr(1);t_.showAt(o,Fk.sketch(NO(SC("autocompleter-value",!0,i,a,"normal"),a,ET.ContentFocus,"normal")),{anchor:{type:"node",root:tt.fromDom(e.getBody()),node:P.from(t.element)}}),t_.getContent(o).each(ry.highlightFirst)},m=function(t){return n.get().map((function(n){return rx(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return hx(e,s,n,t)}))})).getOrThunk((function(){return px(e,s)}))},g=function(e){m(e).fold(u,(function(e){f(e.context),e.lookupData.then((function(t){n.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var o=l(r.triggerChar,t);o.length>0?d(n,r,t,o):r.text.length-n.matchLength>=10?u():c()}}))}))}))},p=q_((function(e){27!==e.which&&g()}),50),h={onKeypress:p,cancelIfNecessary:u,isMenuOpen:i,isActive:a,isProcessingAction:r.get,getView:function(){return t_.getContent(o)}};!1===e.hasPlugin("rtc")&&ix.setup(h,e)},BO={register:RO},PO=function(e,t,n){return Hs(e,t,n).isSome()},LO=function(e,t){var n=null,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n=setTimeout((function(){e.apply(null,r),n=null}),t)},o=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:o,schedule:r}},IO=5,HO=400,FO=function(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?P.none():P.some(t.touches[0])},jO=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>IO||r>IO},VO=function(e){var t=od(),n=oa(!1),r=LO((function(t){e.triggerEvent(oc(),t),n.set(!0)}),HO),o=function(e){return FO(e).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:e.target};r.schedule(e),n.set(!1),t.set(i)})),P.none()},i=function(e){return r.cancel(),FO(e).each((function(e){t.on((function(n){jO(e,n)&&t.clear()}))})),P.none()},a=function(o){r.cancel();var i=function(e){return sn(e.target,o.target)};return t.get().filter(i).map((function(t){return n.get()?(o.prevent(),!1):e.triggerEvent(rc(),o)}))},c=ga([{key:Ea(),value:o},{key:Aa(),value:i},{key:Da(),value:a}]),u=function(e,t){return Se(c,t).bind((function(t){return t(e)}))};return{fireIfReady:u}},UO=function(e){var t=e.raw;return t.which===oy[0]&&!V(["input","textarea"],ct(e.target))&&!PO(e.target,'[contenteditable="true"]')},qO=function(){return tn().browser.isFirefox()},WO=function(e,t){return qO()?cd(e,"focus",t):ad(e,"focusin",t)},$O=function(e,t){return qO()?cd(e,"blur",t):ad(e,"focusout",t)},GO=function(e,t){var n=E({stopBackspace:!0},t),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],o=VO(n),i=$(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return ad(e,t,(function(e){o.fireIfReady(e,t).each((function(t){t&&e.kill()}));var r=n.triggerEvent(t,e);r&&e.kill()}))})),a=od(),c=ad(e,"paste",(function(e){o.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var t=n.triggerEvent("paste",e);t&&e.kill(),a.set(setTimeout((function(){n.triggerEvent(Za(),e)}),0))})),u=ad(e,"keydown",(function(e){var t=n.triggerEvent("keydown",e);t?e.kill():n.stopBackspace&&UO(e)&&e.prevent()})),s=WO(e,(function(e){var t=n.triggerEvent("focusin",e);t&&e.kill()})),l=od(),f=$O(e,(function(e){var t=n.triggerEvent("focusout",e);t&&e.kill(),l.set(setTimeout((function(){n.triggerEvent(Qa(),e)}),0))})),d=function(){G(i,(function(e){e.unbind()})),u.unbind(),s.unbind(),f.unbind(),c.unbind(),a.on(clearTimeout),l.on(clearTimeout)};return{unbind:d}},KO=function(e,t){var n=Se(e,"target").getOr(t);return oa(n)},XO=function(e,t){var n=oa(!1),r=oa(!1),o=function(){n.set(!0)},i=function(){r.set(!0)};return{stop:o,cut:i,isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}},YO=function(e){var t=oa(!1),n=function(){t.set(!0)};return{stop:n,cut:h,isStopped:t.get,isCut:S,event:e,setSource:z("Cannot set source of a broadcasted event"),getSource:z("Cannot get source of a broadcasted event")}},JO=aa.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),QO=function(e,t,n,r,o,i){var a=e(t,r),c=XO(n,o);return a.fold((function(){return i.logEventNoHandlers(t,r),JO.complete()}),(function(e){var n=e.descHandler,r=Lu(n);return r(c),c.isStopped()?(i.logEventStopped(t,e.element,n.purpose),JO.stopped()):c.isCut()?(i.logEventCut(t,e.element,n.purpose),JO.complete()):vn(e.element).fold((function(){return i.logNoParent(t,e.element,n.purpose),JO.complete()}),(function(r){return i.logEventResponse(t,e.element,n.purpose),JO.resume(r)}))}))},ZO=function(e,t,n,r,o,i){return QO(e,t,n,r,o,i).fold(T,(function(r){return ZO(e,t,n,r,o,i)}),S)},eE=function(e,t,n,r,o){var i=KO(n,r);return QO(e,t,n,r,i,o)},tE=function(e,t,n){var r=YO(t);return G(e,(function(e){var t=e.descHandler,n=Lu(t);n(r)})),r.isStopped()},nE=function(e,t,n,r){return rE(e,t,n,n.target,r)},rE=function(e,t,n,r,o){var i=KO(n,r);return ZO(e,t,n,r,i,o)},oE=function(e,t){return{element:e,descHandler:t}},iE=function(e,t){return{id:e,descHandler:t}},aE=function(){var e={},t=function(t,n,r){ve(r,(function(r,o){var i=void 0!==e[o]?e[o]:{};i[n]=Pu(r,t),e[o]=i}))},n=function(e,t){return fu(t).bind((function(t){return Se(e,t)})).map((function(e){return oE(t,e)}))},r=function(t){return Se(e,t).map((function(e){return xe(e,(function(e,t){return iE(t,e)}))})).getOr([])},o=function(t,r,o){return Se(e,r).bind((function(e){return wa(o,(function(t){return n(e,t)}),t)}))},i=function(t){ve(e,(function(e,n){Te(e,t)&&delete e[t]}))};return{registerId:t,unregisterId:i,filterByType:r,find:o}},cE=function(){var e=aE(),t={},n=function(e){var t=e.element;return fu(t).getOrThunk((function(){return su("uid-",e.element)}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+Zc(r.element)+"\nCannot use it for: "+Zc(e.element)+"\nThe conflicting element is"+(Pn(r.element)?" ":" not ")+"already in the DOM");i(e)},o=function(o){var i=n(o);Oe(t,i)&&r(o,i);var a=[o];e.registerId(a,i,o.events),t[i]=o},i=function(n){fu(n.element).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},c=function(t,n,r){return e.find(t,n,r)},u=function(e){return Se(t,e)};return{find:c,filter:a,register:o,unregister:i,getById:u}},uE=function(e){var t=e.dom,n=t.attributes,r=A(t,["attributes"]);return{uid:e.uid,dom:E({tag:"div",attributes:E({role:"presentation"},n)},r),components:e.components,behaviours:nh(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},sE=dv({name:"Container",factory:uE,configFields:[Ki("components",[]),th("containerBehaviours",[]),Ki("events",{}),Ki("domModification",{}),Ki("eventOrder",{})]}),lE=function(e){var t=function(t){return vn(e.element).fold(T,(function(e){return sn(t,e)}))},n=cE(),r=function(e,r){return n.find(t,e,r)},o=GO(e.element,{triggerEvent:function(e,t){return Js(e,t.target,(function(n){return nE(r,e,t,n)}))}}),i={debugInfo:w("real"),triggerEvent:function(e,t,n){Js(e,t,(function(o){return rE(r,e,n,t,o)}))},triggerFocus:function(e,t){fu(e).fold((function(){xf(e)}),(function(n){Js(Ja(),e,(function(n){return eE(r,Ja(),{originator:t,kill:h,prevent:h,target:e},e,n),!1}))}))},triggerEscape:function(e,t){i.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return p(e)},getByDom:function(e){return v(e)},build:Ts,addToGui:function(e){u(e)},removeFromGui:function(e){s(e)},addToWorld:function(e){a(e)},removeFromWorld:function(e){c(e)},broadcast:function(e){d(e)},broadcastOn:function(e,t){m(e,t)},broadcastEvent:function(e,t){g(e,t)},isConnected:T},a=function(e){e.connect(i),ft(e.element)||(n.register(e),G(e.components(),a),i.triggerEvent(cc(),e.element,{target:e.element}))},c=function(e){ft(e.element)||(G(e.components(),c),n.unregister(e)),e.disconnect()},u=function(t){qg(e,t)},s=function(e){Gg(e)},l=function(){o.unbind(),Br(e.element)},f=function(e){var t=n.filter(ec());G(t,(function(t){var n=t.descHandler,r=Lu(n);r(e)}))},d=function(e){f({universal:!0,data:e})},m=function(e,t){f({universal:!1,channels:e,data:t})},g=function(e,t){var r=n.filter(e);return tE(r,t)},p=function(e){return n.getById(e).fold((function(){return ro.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),ro.value)},v=function(e){var t=fu(e).getOr("not found");return p(t)};return a(e),{root:e,element:e.element,destroy:l,add:u,remove:s,getByUid:p,getByDom:v,addToWorld:a,removeFromWorld:c,broadcast:d,broadcastOn:m,broadcastEvent:g}},fE=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:$(e.items,t.interpreter)}},dE=w([Ki("prefix","form-field"),th("fieldBehaviours",[yv,eh])]),mE=w([Bh({schema:[Ei("dom")],name:"label"}),Bh({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Ei("text")],name:"aria-descriptor"}),Nh({factory:{sketch:function(e){var t=da(e,["factory"]);return e.factory.sketch(t)}},schema:[Ei("factory")],name:"field"})]),gE=function(e,t,n,r){var o=rh(e.fieldBehaviours,[yv.config({find:function(t){return Kh(t,e,"field")}}),eh.config({store:{mode:"manual",getValue:function(e){return yv.getCurrent(e).bind(eh.getValue)},setValue:function(e,t){yv.getCurrent(e).each((function(e){eh.setValue(e,t)}))}}})]),i=Oc([Vc((function(t,n){var r=Yh(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=ou(e.prefix);r.label().each((function(e){Fn(e.element,"for",n),Fn(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=ou(e.prefix);Fn(n.element,"id",r),Fn(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return Kh(t,e,"field")},getLabel:function(t){return Kh(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:o,events:i,apis:a}},pE=mv({name:"FormField",configFields:dE(),partFields:mE(),factory:gE,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),hE=function(e,t){return Au({attributes:ga([{key:t.tabAttr,value:"true"}])})},vE=Object.freeze({__proto__:null,exhibit:hE}),yE=[Ki("tabAttr","data-alloy-tabstop")],bE=pf({fields:yE,name:"tabstopping",active:vE}),wE=tinymce.util.Tools.resolve("tinymce.html.Entities"),kE=function(e,t,n,r){var o=xE(e,t,n,r);return pE.sketch(o)},_E=function(e,t){return kE(e,t,[],[])},xE=function(e,t,n,r){return{dom:zE(n),components:e.toArray().concat([t]),fieldBehaviours:mf(r)}},CE=function(){return zE([])},zE=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},SE=function(e,t){return pE.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},TE=ou("form-component-change"),OE=ou("form-close"),EE=ou("form-cancel"),AE=ou("form-action"),DE=ou("form-submit"),ME=ou("form-block"),NE=ou("form-unblock"),RE=ou("form-tabchange"),BE=ou("form-resize"),PE=function(e,t){var n,r=e.label.map((function(e){return SE(e,t)})),o=function(e){return function(t,n){Hs(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,Vn(r,"data-collection-item-value"))}))}},i=function(n,r){var o=$(r,(function(n){var r=z_.translate(n.text),o=1===e.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",i='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},c=r.replace(/\_| \- |\-/g,(function(e){return a[e]})),u=t.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+u+'" tabindex="-1" data-collection-item-value="'+wE.encodeAllRaw(n.value)+'" title="'+c+'" aria-label="'+c+'">'+i+o+"</div>"})),i="auto"!==e.columns&&e.columns>1?W(o,e.columns):[o],a=$(i,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Kc(n.element,a.join(""))},a=o((function(n,r,o,i){r.stop(),t.isDisabled()||xc(n,AE,{name:e.name,value:i})})),c=[Mc(La(),o((function(e,t,n){xf(n)}))),Mc(qa(),a),Mc(rc(),a),Mc(Ia(),o((function(e,t,n){Is(e.element,"."+tC).each((function(e){cs(e,tC)})),is(n,tC)}))),Mc(Ha(),o((function(e){Is(e.element,"."+tC).each((function(e){cs(e,tC)}))}))),Wc(o((function(t,n,r,o){xc(t,AE,{name:e.name,value:o})})))],u=function(e,t){return $(Xm(e.element,".tox-collection__item"),t)},s=pE.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:k},behaviours:mf([Lv.config({disabled:t.isDisabled,onDisabled:function(e){u(e,(function(e){is(e,"tox-collection__item--state-disabled"),Fn(e,"aria-disabled",!0)}))},onEnabled:function(e){u(e,(function(e){cs(e,"tox-collection__item--state-disabled"),Wn(e,"aria-disabled")}))}}),uS(),Hw.config({}),eh.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){i(t,n),"auto"===e.columns&&XC(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;Ew.setGridSize(t,n,r)})),_c(t,BE)}}),bE.config({}),Ew.config(iO(e.columns,"normal")),jw("collection-events",c)]),eventOrder:(n={},n[tc()]=["disabling","alloy.base.behaviour","collection-events"],n)}),l=["tox-form__group--collection"];return kE(r,s,l,[])},LE=w([Fi("data"),Ki("inputAttributes",{}),Ki("inputStyles",{}),Ki("tag","input"),Ki("inputClasses",[]),cl("onSetValue"),Ki("styles",{}),Ki("eventOrder",{}),th("inputBehaviours",[eh,Yw]),Ki("selectOnFocus",!0)]),IE=function(e){return mf([Yw.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=ds(t);t.dom.setSelectionRange(0,n.length)}:h})])},HE=function(e){return E(E({},IE(e)),rh(e.inputBehaviours,[eh.config({store:E(E({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return ds(e.element)},setValue:function(e,t){var n=ds(e.element);n!==t&&ms(e.element,t)}}),onSetValue:e.onSetValue})]))},FE=function(e){return{tag:e.tag,attributes:E({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},jE=function(e,t){return{uid:e.uid,dom:FE(e),components:[],behaviours:HE(e),eventOrder:e.eventOrder}},VE=dv({name:"Input",configFields:LE(),factory:jE}),UE={},qE={exports:UE};(function(t,n,r,o){(function(e,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof t&&t.amd?t(o):(e="undefined"!==typeof globalThis?globalThis:e||self,e.EphoxContactWrapper=o())})(this,(function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},n={exports:{}};(function(e){(function(t){var n=setTimeout;function r(){}function o(e,t){return function(){e.apply(t,arguments)}}function i(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void u(t.promise,o)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,s(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var c=a.then;if("function"===typeof c)return void c.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(u){n(u)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},i.resolve=function(e){return e&&"object"===typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},i._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},e.exports?e.exports=i:t.Promise||(t.Promise=i)})(t)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,UE,qE);var WE,$E=qE.exports.boltExport,GE=function(e){var t=P.none(),n=[],r=function(e){return GE((function(t){o((function(n){t(e(n))}))}))},o=function(e){a()?u(e):n.push(e)},i=function(e){a()||(t=P.some(e),c(n),n=[])},a=function(){return t.isSome()},c=function(e){G(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(i),{get:o,map:r,isReady:a}},KE=function(e){return GE((function(t){t(e)}))},XE={nu:GE,pure:KE},YE=function(e){setTimeout((function(){throw e}),0)},JE=function(e){var t=function(t){e().then(t,YE)},n=function(t){return JE((function(){return e().then(t)}))},r=function(t){return JE((function(){return e().then((function(e){return t(e).toPromise()}))}))},o=function(t){return JE((function(){return e().then((function(){return t.toPromise()}))}))},i=function(){return XE.nu(t)},a=function(){var t=null;return JE((function(){return null===t&&(t=e()),t}))},c=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:c,get:t}},QE=function(e){return JE((function(){return new $E(e)}))},ZE=function(e){return JE((function(){return $E.resolve(e)}))},eA={nu:QE,pure:ZE},tA=["input","textarea"],nA=function(e){var t=ct(e);return V(tA,t)},rA=function(e,t){var n=t.getRoot(e).getOr(e.element);cs(n,t.invalidClass),t.notify.each((function(t){nA(e.element)&&Fn(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Kc(e,t.validHtml)})),t.onValid(e)}))},oA=function(e,t,n,r){var o=t.getRoot(e).getOr(e.element);is(o,t.invalidClass),t.notify.each((function(t){nA(e.element)&&Fn(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Kc(e,r)})),t.onInvalid(e,r)}))},iA=function(e,t,n){return t.validator.fold((function(){return eA.pure(ro.value(!0))}),(function(t){return t.validate(e)}))},aA=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),iA(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return oA(e,t,n,r),ro.error(r)}),(function(n){return rA(e,t),ro.value(n)})):ro.error("No longer in system")}))},cA=function(e,t){var n=t.getRoot(e).getOr(e.element);return us(n,t.invalidClass)},uA=Object.freeze({__proto__:null,markValid:rA,markInvalid:oA,query:iA,run:aA,isInvalid:cA}),sA=function(e,t){return e.validator.map((function(n){return Oc([Mc(n.onEvent,(function(n){aA(n,e,t).get(k)}))].concat(n.validateOnLoad?[Vc((function(n){aA(n,e,t).get(h)}))]:[]))})).getOr({})},lA=Object.freeze({__proto__:null,events:sA}),fA=[Ei("invalidClass"),Ki("getRoot",P.none),$i("notify",[Ki("aria","alert"),Ki("getContainer",P.none),Ki("validHtml",""),cl("onValid"),cl("onInvalid"),cl("onValidate")]),$i("validator",[Ei("validate"),Ki("onEvent","input"),Ki("validateOnLoad",!0)])],dA=pf({fields:fA,name:"invalidating",active:lA,apis:uA,extra:{validation:function(e){return function(t){var n=eh.getValue(t);return eA.pure(e(n))}}}}),mA=function(e,t,n,r){return n.getOrCreate(e,t,r)},gA=Object.freeze({__proto__:null,getCoupled:mA}),pA=[Ai("others",yi(ro.value,ai()))],hA=function(){var e={},t=function(t,n,r){var o=pe(n.others);if(o)return Se(e,r).getOrThunk((function(){var o=Se(n.others,r).getOrDie("No information found for coupled component: "+r),i=o(t),a=t.getSystem().build(i);return e[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(o,null,2))},n=w({});return zu({readState:n,getOrCreate:t})},vA=Object.freeze({__proto__:null,init:hA}),yA=pf({fields:pA,name:"coupling",apis:gA,state:vA}),bA=w("sink"),wA=w(Bh({name:bA(),overrides:w({dom:{tag:"div"},behaviours:mf([Ig.config({useFixed:T})]),events:Oc([Hc(Fa()),Hc(Na()),Hc(qa())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(WE||(WE={}));var kA,_A=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",o=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:r,hotspot:n,overrides:o}}),(function(e){return{type:r,hotspot:n,overrides:o,layouts:e}}))},xA=function(e,t,n){var r=e.fetch;return r(n).map(t)},CA=function(e,t,n,r,o,i,a){var c=xA(e,t,r),u=EA(r,e);return c.map((function(e){return e.bind((function(e){return P.from(Qk.sketch(E(E({},i.menu()),{uid:du(""),data:e,highlightImmediately:a===WE.HighlightFirst,onOpenMenu:function(e,t){var r=u().getOrDie();Ig.position(r,t,{anchor:n}),yp.decloak(o)},onOpenSubmenu:function(e,t,n){var r=u().getOrDie();Ig.position(r,n,{anchor:{type:"submenu",item:t}}),yp.decloak(o)},onRepositionMenu:function(e,t,r){var o=u().getOrDie();Ig.position(o,t,{anchor:n}),G(r,(function(e){Ig.position(o,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Yw.focus(r),yp.close(o),P.some(!0)}})))}))}))},zA=function(e,t,n,r,o,i,a){var c=_A(e,n),u=CA(e,t,c,n,r,o,a);return u.map((function(e){return e.fold((function(){yp.isOpen(r)&&yp.close(r)}),(function(e){yp.cloak(r),yp.open(r,e),i(r)})),r}))},SA=function(e,t,n,r,o,i,a){return yp.close(r),eA.pure(r)},TA=function(e,t,n,r,o,i){var a=yA.getCoupled(n,"sandbox"),c=yp.isOpen(a),u=c?SA:zA;return u(e,t,n,a,r,o,i)},OA=function(e,t,n){var r=yv.getCurrent(t).getOr(t),o=vr(e.element);n?Kn(r.element,"min-width",o+"px"):hr(r.element,o)},EA=function(e,t){return e.getSystem().getByUid(t.uid+"-"+bA()).map((function(e){return function(){return ro.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return ro.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},AA=function(e){yp.getState(e).each((function(e){Qk.repositionMenus(e)}))},DA=function(e,t,n){var r=js(),o=function(o,i){var a=_A(e,t);r.link(t.element),e.matchWidth&&OA(a.hotspot,i,e.useMinWidth),e.onOpen(a,o,i),void 0!==n&&void 0!==n.onOpen&&n.onOpen(o,i)},i=function(e,o){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,o)},a=EA(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:oh.augment(e.sandboxBehaviours,[eh.config({store:{mode:"memory",initialValue:t}}),yp.config({onOpen:o,onClose:i,isPartOf:function(e,n,r){return Us(n,r)||Us(t,r)},getAttachPoint:function(){return a().getOrDie()}}),yv.config({find:function(e){return yp.getState(e).bind((function(e){return yv.getCurrent(e)}))}}),bf.config({channels:E(E({},xp({isExtraPart:S})),zp({doReposition:AA}))})])}},MA=function(e){var t=yA.getCoupled(e,"sandbox");AA(t)},NA=function(){return[Ki("sandboxClasses",[]),oh.field("sandboxBehaviours",[yv,bf,yp,eh])]},RA=w([Ei("dom"),Ei("fetch"),cl("onOpen"),ul("onExecute"),Ki("getHotspot",P.some),Ki("getAnchorOverrides",w({})),Hd(),th("dropdownBehaviours",[pk,yA,Ew,Yw]),Ei("toggleClass"),Ki("eventOrder",{}),Fi("lazySink"),Ki("matchWidth",!1),Ki("useMinWidth",!1),Fi("role")].concat(NA())),BA=w([Rh({schema:[ol()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),wA()]),PA=function(e,t,n,r){var o,i=function(t){return Se(e.dom,"attributes").bind((function(e){return Se(e,t)}))},a=function(e){yp.getState(e).each((function(e){Qk.highlightPrimary(e)}))},c=function(t){var n=a;TA(e,k,t,r,n,WE.HighlightFirst).get(h)},u={expand:function(t){pk.isOn(t)||TA(e,k,t,r,h,WE.HighlightNone).get(h)},open:function(t){pk.isOn(t)||TA(e,k,t,r,h,WE.HighlightFirst).get(h)},isOpen:pk.isOn,close:function(t){pk.isOn(t)&&TA(e,k,t,r,h,WE.HighlightFirst).get(h)},repositionMenus:function(e){pk.isOn(e)&&MA(e)}},s=function(e,t){return Cc(e),P.some(!0)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rh(e.dropdownBehaviours,[pk.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),yA.config({others:{sandbox:function(t){return DA(e,t,{onOpen:function(){return pk.on(t)},onClose:function(){return pk.off(t)}})}}}),Ew.config({mode:"special",onSpace:s,onEnter:s,onDown:function(e,t){if(LA.isOpen(e)){var n=yA.getCoupled(e,"sandbox");a(n)}else LA.open(e);return P.some(!0)},onEscape:function(e,t){return LA.isOpen(e)?(LA.close(e),P.some(!0)):P.none()}}),Yw.config({})]),events:vk(P.some(c)),eventOrder:E(E({},e.eventOrder),(o={},o[tc()]=["disabling","toggling","alloy.base.behaviour"],o)),apis:u,domModification:{attributes:E(E({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:i("type").getOr("button")}:{})}}},LA=mv({name:"Dropdown",configFields:RA(),partFields:BA(),factory:PA,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),IA=function(){return Au({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},HA=function(){return Oc([Ec(Ka(),T)])},FA=Object.freeze({__proto__:null,events:HA,exhibit:IA}),jA=pf({fields:[],name:"unselecting",active:FA}),VA=function(e,t){return LA.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:mf([mS.button(t.providers.isDisabled),uS(),jA.config({}),bE.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return eA.nu((function(t){return e.fetch(t)})).map((function(r){return P.from(MO(_o(nO(ou("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,Ux.CLOSE_ON_EXECUTE,S,t.providers),{movement:oO(e.columns,e.presets)})))}))},parts:{menu:hC(!1,1,e.presets)}})},UA=ou("color-input-change"),qA=ou("color-swatch-change"),WA=ou("color-picker-cancel"),$A=function(e,t,n){var r=pE.parts.field({factory:VE,inputClasses:["tox-textfield"],onSetValue:function(e){return dA.run(e).get(h)},inputBehaviours:mf([Lv.config({disabled:t.providers.isDisabled}),uS(),bE.config({}),dA.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return vn(e.element)},notify:{onValid:function(e){var t=eh.getValue(e);xc(e,UA,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=eh.getValue(e);if(0===t.length)return eA.pure(ro.value(!0));var n=tt.fromTag("span");Kn(n,"background-color",t);var r=Zn(n,"background-color").fold((function(){return ro.error("blah")}),(function(e){return ro.value(t)}));return eA.pure(r)}}})]),selectOnFocus:!1}),o=e.label.map((function(e){return SE(e,t.providers)})),i=function(e,t){xc(e,qA,{value:t})},a=function(e,t){c.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return _c(e,WA)}),(function(t){i(e,t),HT(t)}))}),"#ffffff"):i(e,"remove"===t?"":t)}))},c=C_(VA({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Vl,jl,$l]},onLtr:function(){return[jl,Vl,$l]}},components:[],fetch:YT(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},t));return pE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:o.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,c.asSpec()]}]),fieldBehaviours:mf([jw("form-field-events",[Mc(UA,(function(t,n){c.getOpt(t).each((function(e){Kn(e.element,"background-color",n.event.color)})),xc(t,TE,{name:e.name})})),Mc(qA,(function(e,t){pE.getField(e).each((function(n){eh.setValue(n,t.event.value),yv.getCurrent(e).each(Yw.focus)}))})),Mc(WA,(function(e,t){pE.getField(e).each((function(t){yv.getCurrent(e).each(Yw.focus)}))}))])])})},GA=Bh({schema:[Ei("dom")],name:"label"}),KA=function(e){return Bh({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){return{events:Oc([Nc(Ea(),(function(t,n,r){return e(t,r)}),[t]),Nc(Na(),(function(t,n,r){return e(t,r)}),[t]),Nc(Ra(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})},XA=KA("top-left"),YA=KA("top"),JA=KA("top-right"),QA=KA("right"),ZA=KA("bottom-right"),eD=KA("bottom"),tD=KA("bottom-left"),nD=KA("left"),rD=Nh({name:"thumb",defaults:w({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Oc([Lc(Ea(),e,"spectrum"),Lc(Aa(),e,"spectrum"),Lc(Da(),e,"spectrum"),Lc(Na(),e,"spectrum"),Lc(Ra(),e,"spectrum"),Lc(Pa(),e,"spectrum")])}}}),oD=Nh({schema:[Ti("mouseIsDown",(function(){return oa(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))};return{behaviours:mf([Ew.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Yw.config({})]),events:Oc([Mc(Ea(),r),Mc(Aa(),r),Mc(Na(),r),Mc(Ra(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))])}}}),iD=[GA,nD,QA,YA,eD,XA,JA,tD,ZA,rD,oD],aD="slider.change.value",cD=w(aD),uD=function(e){return-1!==e.type.indexOf("touch")},sD=function(e){var t=e.event.raw;if(uD(t)){var n=t;return void 0!==n.touches&&1===n.touches.length?P.some(n.touches[0]).map((function(e){return lr(e.clientX,e.clientY)})):P.none()}var r=t;return void 0!==r.clientX?P.some(r).map((function(e){return lr(e.clientX,e.clientY)})):P.none()},lD="top",fD="right",dD="bottom",mD="left",gD=function(e){return e.model.minX},pD=function(e){return e.model.minY},hD=function(e){return e.model.minX-1},vD=function(e){return e.model.minY-1},yD=function(e){return e.model.maxX},bD=function(e){return e.model.maxY},wD=function(e){return e.model.maxX+1},kD=function(e){return e.model.maxY+1},_D=function(e,t,n){return t(e)-n(e)},xD=function(e){return _D(e,yD,gD)},CD=function(e){return _D(e,bD,pD)},zD=function(e){return xD(e)/2},SD=function(e){return CD(e)/2},TD=function(e){return e.stepSize},OD=function(e){return e.snapToGrid},ED=function(e){return e.snapStart},AD=function(e){return e.rounded},DD=function(e,t){return void 0!==e[t+"-edge"]},MD=function(e){return DD(e,mD)},ND=function(e){return DD(e,fD)},RD=function(e){return DD(e,lD)},BD=function(e){return DD(e,dD)},PD=function(e){return e.model.value.get()},LD=function(e){return{x:e}},ID=function(e){return{y:e}},HD=function(e,t){return{x:e,y:t}},FD=function(e,t){xc(e,cD(),{value:t})},jD=function(e,t){FD(e,HD(hD(t),vD(t)))},VD=function(e,t){FD(e,ID(vD(t)))},UD=function(e,t){FD(e,HD(zD(t),vD(t)))},qD=function(e,t){FD(e,HD(wD(t),vD(t)))},WD=function(e,t){FD(e,LD(wD(t)))},$D=function(e,t){FD(e,HD(wD(t),SD(t)))},GD=function(e,t){FD(e,HD(wD(t),kD(t)))},KD=function(e,t){FD(e,ID(kD(t)))},XD=function(e,t){FD(e,HD(zD(t),kD(t)))},YD=function(e,t){FD(e,HD(hD(t),kD(t)))},JD=function(e,t){FD(e,LD(hD(t)))},QD=function(e,t){FD(e,HD(hD(t),SD(t)))},ZD=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},eM=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},tM=function(e,t,n){return Math.max(t,Math.min(n,e))},nM=function(e,t,n,r,o){return o.fold((function(){var o=e-t,i=Math.round(o/r)*r;return tM(t+i,t-1,n+1)}),(function(t){var o=(e-t)%r,i=Math.round(o/r),a=Math.floor((e-t)/r),c=Math.floor((n-t)/r),u=Math.min(c,a+i),s=t+u*r;return Math.max(t,s)}))},rM=function(e,t,n){return Math.min(n,Math.max(e,t))-t},oM=function(e){var t=e.min,n=e.max,r=e.range,o=e.value,i=e.step,a=e.snap,c=e.snapStart,u=e.rounded,s=e.hasMinEdge,l=e.hasMaxEdge,f=e.minBound,d=e.maxBound,m=e.screenRange,g=s?t-1:t,p=l?n+1:n;if(o<f)return g;if(o>d)return p;var h=rM(o,f,d),v=tM(h/m*r+t,g,p);return a&&v>=t&&v<=n?nM(v,t,n,i,c):u?Math.round(v):v},iM=function(e){var t=e.min,n=e.max,r=e.range,o=e.value,i=e.hasMinEdge,a=e.hasMaxEdge,c=e.maxBound,u=e.maxOffset,s=e.centerMinEdge,l=e.centerMaxEdge;return o<t?i?0:s:o>n?a?c:l:(o-t)/r*u},aM="top",cM="right",uM="bottom",sM="left",lM="width",fM="height",dM=function(e){return e.element.dom.getBoundingClientRect()},mM=function(e,t){return e[t]},gM=function(e){var t=dM(e);return mM(t,sM)},pM=function(e){var t=dM(e);return mM(t,cM)},hM=function(e){var t=dM(e);return mM(t,aM)},vM=function(e){var t=dM(e);return mM(t,uM)},yM=function(e){var t=dM(e);return mM(t,lM)},bM=function(e){var t=dM(e);return mM(t,fM)},wM=function(e,t,n){return(e+t)/2-n},kM=function(e,t){var n=dM(e),r=dM(t),o=mM(n,sM),i=mM(n,cM),a=mM(r,sM);return wM(o,i,a)},_M=function(e,t){var n=dM(e),r=dM(t),o=mM(n,aM),i=mM(n,uM),a=mM(r,aM);return wM(o,i,a)},xM=function(e,t){xc(e,cD(),{value:t})},CM=function(e){return{x:e}},zM=function(e,t,n){var r={min:gD(t),max:yD(t),range:xD(t),value:n,step:TD(t),snap:OD(t),snapStart:ED(t),rounded:AD(t),hasMinEdge:MD(t),hasMaxEdge:ND(t),minBound:gM(e),maxBound:pM(e),screenRange:yM(e)};return oM(r)},SM=function(e,t,n){var r=zM(e,t,n),o=CM(r);return xM(e,o),r},TM=function(e,t){var n=gD(t);xM(e,CM(n))},OM=function(e,t){var n=yD(t);xM(e,CM(n))},EM=function(e,t,n){var r=e>0?eM:ZD,o=r(PD(n).x,gD(n),yD(n),TD(n));return xM(t,CM(o)),P.some(o)},AM=function(e){return function(t,n){return EM(e,t,n).map(T)}},DM=function(e){var t=sD(e);return t.map((function(e){return e.left}))},MM=function(e,t,n,r,o){var i=0,a=yM(e),c=r.bind((function(t){return P.some(kM(t,e))})).getOr(i),u=o.bind((function(t){return P.some(kM(t,e))})).getOr(a),s={min:gD(t),max:yD(t),range:xD(t),value:n,hasMinEdge:MD(t),hasMaxEdge:ND(t),minBound:gM(e),minOffset:i,maxBound:pM(e),maxOffset:a,centerMinEdge:c,centerMaxEdge:u};return iM(s)},NM=function(e,t,n,r,o,i){var a=MM(t,i,n,r,o);return gM(t)-gM(e)+a},RM=function(e,t,n,r){var o=PD(n),i=NM(e,r.getSpectrum(e),o.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=vr(t.element)/2;Kn(t.element,"left",i-a+"px")},BM=AM(-1),PM=AM(1),LM=P.none,IM=P.none,HM={"top-left":P.none(),top:P.none(),"top-right":P.none(),right:P.some(WD),"bottom-right":P.none(),bottom:P.none(),"bottom-left":P.none(),left:P.some(JD)},FM=Object.freeze({__proto__:null,setValueFrom:SM,setToMin:TM,setToMax:OM,findValueOfOffset:zM,getValueFromEvent:DM,findPositionOfValue:NM,setPositionFromValue:RM,onLeft:BM,onRight:PM,onUp:LM,onDown:IM,edgeActions:HM}),jM=function(e,t){xc(e,cD(),{value:t})},VM=function(e){return{y:e}},UM=function(e,t,n){var r={min:pD(t),max:bD(t),range:CD(t),value:n,step:TD(t),snap:OD(t),snapStart:ED(t),rounded:AD(t),hasMinEdge:RD(t),hasMaxEdge:BD(t),minBound:hM(e),maxBound:vM(e),screenRange:bM(e)};return oM(r)},qM=function(e,t,n){var r=UM(e,t,n),o=VM(r);return jM(e,o),r},WM=function(e,t){var n=pD(t);jM(e,VM(n))},$M=function(e,t){var n=bD(t);jM(e,VM(n))},GM=function(e,t,n){var r=e>0?eM:ZD,o=r(PD(n).y,pD(n),bD(n),TD(n));return jM(t,VM(o)),P.some(o)},KM=function(e){return function(t,n){return GM(e,t,n).map(T)}},XM=function(e){var t=sD(e);return t.map((function(e){return e.top}))},YM=function(e,t,n,r,o){var i=0,a=bM(e),c=r.bind((function(t){return P.some(_M(t,e))})).getOr(i),u=o.bind((function(t){return P.some(_M(t,e))})).getOr(a),s={min:pD(t),max:bD(t),range:CD(t),value:n,hasMinEdge:RD(t),hasMaxEdge:BD(t),minBound:hM(e),minOffset:i,maxBound:vM(e),maxOffset:a,centerMinEdge:c,centerMaxEdge:u};return iM(s)},JM=function(e,t,n,r,o,i){var a=YM(t,i,n,r,o);return hM(t)-hM(e)+a},QM=function(e,t,n,r){var o=PD(n),i=JM(e,r.getSpectrum(e),o.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=ar(t.element)/2;Kn(t.element,"top",i-a+"px")},ZM=P.none,eN=P.none,tN=KM(-1),nN=KM(1),rN={"top-left":P.none(),top:P.some(VD),"top-right":P.none(),right:P.none(),"bottom-right":P.none(),bottom:P.some(KD),"bottom-left":P.none(),left:P.none()},oN=Object.freeze({__proto__:null,setValueFrom:qM,setToMin:WM,setToMax:$M,findValueOfOffset:UM,getValueFromEvent:XM,findPositionOfValue:JM,setPositionFromValue:QM,onLeft:ZM,onRight:eN,onUp:tN,onDown:nN,edgeActions:rN}),iN=function(e,t){xc(e,cD(),{value:t})},aN=function(e,t){return{x:e,y:t}},cN=function(e,t,n){var r=zM(e,t,n.left),o=UM(e,t,n.top),i=aN(r,o);return iN(e,i),i},uN=function(e,t,n,r){var o=e>0?eM:ZD,i=t?PD(r).x:o(PD(r).x,gD(r),yD(r),TD(r)),a=t?o(PD(r).y,pD(r),bD(r),TD(r)):PD(r).y;return iN(n,aN(i,a)),P.some(i)},sN=function(e,t){return function(n,r){return uN(e,t,n,r).map(T)}},lN=function(e,t){var n=gD(t),r=pD(t);iN(e,aN(n,r))},fN=function(e,t){var n=yD(t),r=bD(t);iN(e,aN(n,r))},dN=function(e){return sD(e)},mN=function(e,t,n,r){var o=PD(n),i=NM(e,r.getSpectrum(e),o.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=JM(e,r.getSpectrum(e),o.y,r.getTopEdge(e),r.getBottomEdge(e),n),c=vr(t.element)/2,u=ar(t.element)/2;Kn(t.element,"left",i-c+"px"),Kn(t.element,"top",a-u+"px")},gN=sN(-1,!1),pN=sN(1,!1),hN=sN(-1,!0),vN=sN(1,!0),yN={"top-left":P.some(jD),top:P.some(UD),"top-right":P.some(qD),right:P.some($D),"bottom-right":P.some(GD),bottom:P.some(XD),"bottom-left":P.some(YD),left:P.some(QD)},bN=Object.freeze({__proto__:null,setValueFrom:cN,setToMin:lN,setToMax:fN,getValueFromEvent:dN,setPositionFromValue:mN,onLeft:gN,onRight:pN,onUp:hN,onDown:vN,edgeActions:yN}),wN=[Ki("stepSize",1),Ki("onChange",h),Ki("onChoose",h),Ki("onInit",h),Ki("onDragStart",h),Ki("onDragEnd",h),Ki("snapToGrid",!1),Ki("rounded",!0),Fi("snapStart"),Ai("model",Ci("mode",{x:[Ki("minX",0),Ki("maxX",100),Ti("value",(function(e){return oa(e.mode.minX)})),Ei("getInitialValue"),fl("manager",FM)],y:[Ki("minY",0),Ki("maxY",100),Ti("value",(function(e){return oa(e.mode.minY)})),Ei("getInitialValue"),fl("manager",oN)],xy:[Ki("minX",0),Ki("maxX",100),Ki("minY",0),Ki("maxY",100),Ti("value",(function(e){return oa({x:e.mode.minX,y:e.mode.minY})})),Ei("getInitialValue"),fl("manager",bN)]})),th("sliderBehaviours",[Ew,eh]),Ti("mouseIsDown",(function(){return oa(!1)}))],kN=function(e,t,n,r){var o,i=function(t){return Xh(t,e,"thumb")},a=function(t){return Xh(t,e,"spectrum")},c=function(t){return Kh(t,e,"left-edge")},u=function(t){return Kh(t,e,"right-edge")},s=function(t){return Kh(t,e,"top-edge")},l=function(t){return Kh(t,e,"bottom-edge")},f=e.model,d=f.manager,m=function(t,n){d.setPositionFromValue(t,n,e,{getLeftEdge:c,getRightEdge:u,getTopEdge:s,getBottomEdge:l,getSpectrum:a})},g=function(e,t){f.value.set(t);var n=i(e);m(e,n)},p=function(t,n){g(t,n);var r=i(t);return e.onChange(t,r,n),P.some(!0)},h=function(t){d.setToMin(t,e)},v=function(t){d.setToMax(t,e)},y=function(t){var n=function(){Kh(t,e,"thumb").each((function(n){var r=f.value.get();e.onChoose(t,n,r)}))},r=e.mouseIsDown.get();e.mouseIsDown.set(!1),r&&n()},b=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,i(t))},w=function(t,n){n.stop(),e.onDragEnd(t,i(t)),y(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rh(e.sliderBehaviours,[Ew.config({mode:"special",focusIn:function(t){return Kh(t,e,"spectrum").map(Ew.focusIn).map(T)}}),eh.config({store:{mode:"manual",getValue:function(e){return f.value.get()}}}),bf.config({channels:(o={},o[kp()]={onReceive:y},o)})]),events:Oc([Mc(cD(),(function(e,t){p(e,t.event.value)})),Vc((function(t,n){var r=f.getInitialValue();f.value.set(r);var o=i(t);m(t,o);var c=a(t);e.onInit(t,o,c,f.value.get())})),Mc(Ea(),b),Mc(Da(),w),Mc(Na(),b),Mc(Pa(),w)]),apis:{resetToMin:h,resetToMax:v,setValue:g,refresh:m},domModification:{styles:{position:"relative"}}}},_N=mv({name:"Slider",configFields:wN,partFields:iD,factory:kN,apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),xN=ou("rgb-hex-update"),CN=ou("slider-update"),zN=ou("palette-update"),SN=function(e,t){var n=_N.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=_N.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return _N.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:w({y:0})},components:[n,r],sliderBehaviours:mf([Yw.config({})]),onChange:function(e,t,n){xc(e,CN,{value:n})}})},TN="form",ON=[th("formBehaviours",[eh])],EN=function(e){return"<alloy.field."+e+">"},AN=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Uh(TN,EN(t),n)};return{field:t,record:w(e)}}(),n=e(t),r=t.record(),o=$(r,(function(e){return Nh({name:e,pname:EN(e)})}));return av(TN,ON,o,MN,n)},DN=function(e,t){return e.fold((function(){return ro.error(t)}),ro.value)},MN=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:rh(e.formBehaviours,[eh.config({store:{mode:"manual",getValue:function(t){var n=Jh(t,e);return ye(n,(function(e,t){return e().bind((function(e){var n=yv.getCurrent(e);return DN(n,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Zc(e.element)))})).map(eh.getValue)}))},setValue:function(t,n){ve(n,(function(n,r){Kh(t,e,r).each((function(e){yv.getCurrent(e).each((function(e){eh.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Kh(t,e,n).bind(yv.getCurrent)}}}},NN={getField:xu((function(e,t,n){return e.getField(t,n)})),sketch:AN},RN=ou("valid-input"),BN=ou("invalid-input"),PN=ou("validating-input"),LN="colorcustom.rgb.",IN=function(e,t,n,r){var o=function(n,r){return dA.config({invalidClass:t("invalid"),notify:{onValidate:function(e){xc(e,PN,{type:n})},onValid:function(e){xc(e,RN,{type:n,value:eh.getValue(e)})},onInvalid:function(e){xc(e,BN,{type:n,value:eh.getValue(e)})}},validator:{validate:function(t){var n=eh.getValue(t),o=r(n)?ro.value(!0):ro.error(e("aria.input.invalid"));return eA.pure(o)},validateOnLoad:!1}})},i=function(n,r,i,a,c){var u=e(LN+"range"),s=pE.parts.label({dom:{tag:"label",innerHtml:i,attributes:{"aria-label":a}}}),l=pE.parts.field({data:c,factory:VE,inputAttributes:E({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:mf([o(r,n),bE.config({})]),onSetValue:function(e){if(dA.isInvalid(e)){var t=dA.run(e);t.get(h)}}}),f=[s,l],d="hex"!==r?[pE.parts["aria-descriptor"]({text:u})]:[],m=f.concat(d);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},a=function(e,t){var n=tT(t);return NN.getField(e,"hex").each((function(t){Yw.isFocused(t)||eh.setValue(e,{hex:n.value})})),n},c=function(e,t){var n=t.red,r=t.green,o=t.blue;eh.setValue(e,{red:n,green:r,blue:o})},u=C_({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),s=function(e,t){u.getOpt(e).each((function(e){Kn(e.element,"background-color","#"+t.value)}))},l=function(){var o={red:oa(P.some(255)),green:oa(P.some(255)),blue:oa(P.some(255)),hex:oa(P.some("ffffff"))},l=function(e,t){var n=lT(t);c(e,n),g(n)},f=function(e){return o[e].get()},d=function(e,t){o[e].set(t)},m=function(){return f("red").bind((function(e){return f("green").bind((function(t){return f("blue").map((function(n){return cT(e,t,n,1)}))}))}))},g=function(e){var t=e.red,n=e.green,r=e.blue;d("red",P.some(t)),d("green",P.some(n)),d("blue",P.some(r))},p=function(e,t){var n=t.event;"hex"!==n.type?d(n.type,P.none()):r(e)},h=function(e,t){n(e);var r=$S(t);d("hex",P.some(t));var o=lT(r);c(e,o),g(o),xc(e,xN,{hex:r}),s(e,r)},v=function(e,t,n){var r=parseInt(n,10);d(t,P.some(r)),m().each((function(t){var n=a(e,t);xc(e,xN,{hex:n}),s(e,n)}))},y=function(e){return"hex"===e.type},b=function(e,t){var n=t.event;y(n)?h(e,n.value):v(e,n.type,n.value)},w=function(t){return{label:e(LN+t+".label"),description:e(LN+t+".description")}},k=w("red"),_=w("green"),x=w("blue"),C=w("hex");return _o(NN.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",pE.sketch(i(uT,"red",k.label,k.description,255))),n.field("green",pE.sketch(i(uT,"green",_.label,_.description,255))),n.field("blue",pE.sketch(i(uT,"blue",x.label,x.description,255))),n.field("hex",pE.sketch(i(XS,"hex",C.label,C.description,"ffffff"))),u.asSpec()],formBehaviours:mf([dA.config({invalidClass:t("form-invalid")}),jw("rgb-form-events",[Mc(RN,b),Mc(BN,p),Mc(PN,p)])])}})),{apis:{updateHex:function(e,t){eh.setValue(e,{hex:t.value}),l(e,t),s(e,t)}}})},f=dv({factory:l,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return f},HN=function(e,t){var n=_N.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=_N.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),o=function(e,t){var n=e.width,r=e.height,o=e.getContext("2d");if(null!==o){o.fillStyle=t,o.fillRect(0,0,n,r);var i=o.createLinearGradient(0,0,n,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),o.fillStyle=i,o.fillRect(0,0,n,r);var a=o.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),o.fillStyle=a,o.fillRect(0,0,n,r)}},i=function(e,t){var n=e.components()[0].element.dom,r=kT(t,100,100),i=sT(r);o(n,mT(i))},a=function(e,t){var n=_T(lT(t));_N.setValue(e,{x:n.saturation,y:100-n.value})},c=function(e){var i=w({x:0,y:0}),a=function(e,t,n){xc(e,zN,{value:n})},c=function(e,t,n,r){o(n.element.dom,mT(gT))},u=mf([yv.config({find:P.some}),Yw.config({})]);return _N.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:i},rounded:!1,components:[n,r],onChange:a,onInit:c,sliderBehaviours:u})},u=dv({factory:c,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){i(t,n)},setThumb:function(e,t,n){a(t,n)}},extraApis:{}});return u},FN=function(e,t){var n=function(n){var r=IN(e,t,n.onValidHex,n.onInvalidHex),o=HN(e,t),i=function(e){return(100-e)/100*360},a=function(e){return 100-e/360*100},c={paletteRgba:oa(gT),paletteHue:oa(0)},u=C_(SN(e,t)),s=C_(o.sketch({})),l=C_(r.sketch({})),f=function(e,t,n){s.getOpt(e).each((function(e){o.setHue(e,n)}))},d=function(e,t){l.getOpt(e).each((function(e){r.updateHex(e,t)}))},m=function(e,t,n){u.getOpt(e).each((function(e){_N.setValue(e,{y:a(n)})}))},g=function(e,t){s.getOpt(e).each((function(e){o.setThumb(e,t)}))},p=function(e,t){var n=lT(e);c.paletteRgba.set(n),c.paletteHue.set(t)},h=function(e,t,n,r){p(t,n),G(r,(function(r){r(e,t,n)}))},v=function(){var e=[d];return function(t,n){var r=n.event.value,o=c.paletteHue.get(),i=kT(o,r.x,100-r.y),a=CT(i);h(t,a,o,e)}},y=function(){var e=[f,d];return function(t,n){var r=i(n.event.value.y),o=c.paletteRgba.get(),a=_T(o),u=kT(r,a.saturation,a.value),s=CT(u);h(t,s,r,e)}},b=function(){var e=[f,m,g];return function(t,n){var r=n.event.hex,o=xT(r);h(t,r,o.hue,e)}};return{uid:n.uid,dom:n.dom,components:[s.asSpec(),u.asSpec(),l.asSpec()],behaviours:mf([jw("colour-picker-events",[Mc(xN,b()),Mc(zN,v()),Mc(CN,y())]),yv.config({find:function(e){return l.getOpt(e)}}),Ew.config({mode:"acyclic"})])}},r=dv({name:"ColourPicker",configFields:[Ei("dom"),Ki("onValidHex",h),Ki("onInvalidHex",h)],factory:n});return r},jN=function(){return yv.config({find:P.some})},VN=function(e){return yv.config({find:e.getOpt})},UN=function(e){return yv.config({find:function(t){return _n(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},qN={self:jN,memento:VN,childAt:UN},WN={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},$N=function(e){return WN[e]},GN=function(e){return $N(e)},KN=function(e){var t=function(e){return"tox-"+e},n=FN(GN,t),r=function(e){xc(e,AE,{name:"hex-valid",value:!0})},o=function(e){xc(e,AE,{name:"hex-valid",value:!1})},i=C_(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:o}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:mf([eh.config({store:{mode:"manual",getValue:function(e){var t=i.get(e),n=yv.getCurrent(t),r=n.bind((function(e){var t=eh.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(t),o=i.get(e),a=yv.getCurrent(o);a.fold((function(){console.log("Can not find form")}),(function(e){eh.setValue(e,{hex:P.from(r[1]).getOr("")}),NN.getField(e,"hex").each((function(e){_c(e,Va())}))}))}}}),qN.self()])}},XN=tinymce.util.Tools.resolve("tinymce.Resource"),YN=function(e){return Te(e,"init")},JN=function(e){var t=od(),n=C_({dom:{tag:e.tag}}),r=od();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:mf([jw("custom-editor-events",[Vc((function(o){n.getOpt(o).each((function(n){(YN(e)?e.init(n.element.dom):XN.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),eh.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),qN.self()]),components:[n.asSpec()]}},QN=tinymce.util.Tools.resolve("tinymce.util.Tools"),ZN=ei([Ki("preprocess",k),Ki("postprocess",k)]),eR=function(e,t){var n=_i("RepresentingConfigs.memento processors",ZN,t);return eh.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),o=eh.getValue(r);return n.postprocess(o)},setValue:function(t,r){var o=n.preprocess(r),i=e.get(t);eh.setValue(i,o)}}})},tR=function(e,t,n){return eh.config(_o({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},nR=function(e,t,n){return tR(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}))},rR=function(e){return nR(e,ds,ms)},oR=function(e){return nR(e,Gc,Kc)},iR=function(e){return eh.config({store:{mode:"memory",initialValue:e}})},aR={memento:eR,withElement:nR,withComp:tR,domValue:rR,domHtml:oR,memory:iR},cR="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",uR=function(e,t){var n=QN.explode(t.getSetting("images_file_types",cR,"string")),r=function(e){return U(n,(function(t){return qe(e.name.toLowerCase(),"."+t.toLowerCase())}))};return Y(me(e),r)},sR=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){G(e,(function(e){e(t,n)}))}},o=function(e,t){if(!Lv.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},i=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){eh.setValue(n,uR(r,t)),xc(n,TE,{name:e.name})},c=C_({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:mf([jw("input-file-events",[Hc(qa()),Hc(rc())])])}),u=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:mf([aR.memory([]),qN.self(),Lv.config({}),pk.config({toggleClass:"dragenter",toggleOnExecute:!1}),jw("dropzone-events",[Mc("dragenter",r([n,pk.toggle])),Mc("dragleave",r([n,pk.toggle])),Mc("dragover",n),Mc("drop",r([n,o])),Mc(Ua(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},x_.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[c.asSpec()],action:function(e){var t=c.get(e);t.element.dom.click()},buttonBehaviours:mf([bE.config({}),mS.button(t.isDisabled),uS()])})]}]}},s=e.label.map((function(e){return SE(e,t)})),l=pE.parts.field({factory:{sketch:u}});return kE(s,l,["tox-form__group--stretched"],[])},lR=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:$(e.items,t.interpreter)}},fR=ou("alloy-fake-before-tabstop"),dR=ou("alloy-fake-after-tabstop"),mR=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:mf([Yw.config({ignore:!0}),bE.config({})])}},gR=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[mR([fR]),e,mR([dR])],behaviours:mf([qN.childAt(1)])}},pR=function(e,t){xc(e,Fa(),{raw:{which:9,shiftKey:t}})},hR=function(e,t){var n=t.element;us(n,fR)?pR(e,!0):us(n,dR)&&pR(e,!1)},vR=function(e){return PO(e,["."+fR,"."+dR].join(","),S)},yR=!(tn().browser.isIE()||tn().browser.isEdge()),bR=function(e){var t=oa("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)Fn(n.element,"srcdoc",r);else{Fn(n.element,"src","javascript:''");var o=n.element.dom.contentWindow.document;o.open(),o.write(r),o.close()}t.set(r)}}},wR=function(e,t){var n=yR&&e.sandboxed,r=E(E({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),o=bR(n),i=e.label.map((function(e){return SE(e,t)})),a=function(e){return gR({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:mf([bE.config({}),Yw.config({}),aR.withComp(P.none(),o.getValue,o.setValue)])})},c=pE.parts.field({factory:{sketch:a}});return kE(i,c,["tox-form__group--stretched"],[])},kR=function(e,t){return CR(document.createElement("canvas"),e,t)},_R=function(e){var t=kR(e.width,e.height),n=xR(t);return n.drawImage(e,0,0),t},xR=function(e){return e.getContext("2d")},CR=function(e,t,n){return e.width=t,e.height=n,e},zR=function(e){return e.naturalWidth||e.width},SR=function(e){return e.naturalHeight||e.height},TR=function(e){return new $E((function(t,n){var r=URL.createObjectURL(e),o=new Image,i=function(){o.removeEventListener("load",a),o.removeEventListener("error",c)},a=function(){i(),t(o)},c=function(){i(),n("Unable to load data of type "+e.type+": "+r)};o.addEventListener("load",a),o.addEventListener("error",c),o.src=r,o.complete&&setTimeout(a,0)}))},OR=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return P.none();for(var r=n[1],o=t[1],i=1024,a=atob(o),c=a.length,u=Math.ceil(c/i),s=new Array(u),l=0;l<u;++l){for(var f=l*i,d=Math.min(f+i,c),m=new Array(d-f),g=f,p=0;g<d;++p,++g)m[p]=a[g].charCodeAt(0);s[l]=new Uint8Array(m)}return P.some(new Blob(s,{type:r}))},ER=function(e){return new $E((function(t,n){OR(e).fold((function(){n("uri is not base64: "+e)}),t)}))},AR=function(e,t,n){return t=t||"image/png",m(HTMLCanvasElement.prototype.toBlob)?new $E((function(r,o){e.toBlob((function(e){e?r(e):o()}),t,n)})):ER(e.toDataURL(t,n))},DR=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},MR=function(e){return TR(e).then((function(e){RR(e);var t=kR(zR(e),SR(e)),n=xR(t);return n.drawImage(e,0,0),t}))},NR=function(e){return new $E((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},RR=function(e){URL.revokeObjectURL(e.src)},BR=function(e,t,n){var r=t.type,o=w(r),i=function(){return $E.resolve(t)},a=w(n),c=function(){return n.split(",")[1]},u=function(t,n){return e.then((function(e){return AR(e,t,n)}))},s=function(t,n){return e.then((function(e){return DR(e,t,n)}))},l=function(e,t){return s(e,t).then((function(e){return e.split(",")[1]}))},f=function(){return e.then(_R)};return{getType:o,toBlob:i,toDataURL:a,toBase64:c,toAdjustedBlob:u,toAdjustedDataURL:s,toAdjustedBase64:l,toCanvas:f}},PR=function(e){return NR(e).then((function(t){return BR(MR(e),e,t)}))},LR=function(e,t){return AR(e,t).then((function(t){return BR($E.resolve(e),t,e.toDataURL())}))},IR=function(e){return PR(e)},HR=function(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r},FR=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},jR=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],VR=function(e,t){for(var n,r=[],o=new Array(25),i=0;i<5;i++){for(var a=0;a<5;a++)r[a]=t[a+5*i];for(a=0;a<5;a++){n=0;for(var c=0;c<5;c++)n+=e[a+5*c]*r[c];o[a+5*i]=n}}return o},UR=function(e,t){var n;return t=HR(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?jR[t]:jR[Math.floor(t)]*(1-n)+jR[Math.floor(t)+1]*n,n=127*n+127),VR(e,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])},qR=function(e,t){return t=HR(255*t,-255,255),VR(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])},WR=function(e,t,n,r){return t=HR(t,0,2),n=HR(n,0,2),r=HR(r,0,2),VR(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},$R=function(e,t){return e.toCanvas().then((function(n){return GR(n,e.getType(),t)}))},GR=function(e,t,n){var r=xR(e),o=function(e,t){for(var n,r,o,i,a=e.data,c=t[0],u=t[1],s=t[2],l=t[3],f=t[4],d=t[5],m=t[6],g=t[7],p=t[8],h=t[9],v=t[10],y=t[11],b=t[12],w=t[13],k=t[14],_=t[15],x=t[16],C=t[17],z=t[18],S=t[19],T=0;T<a.length;T+=4)n=a[T],r=a[T+1],o=a[T+2],i=a[T+3],a[T]=n*c+r*u+o*s+i*l+f,a[T+1]=n*d+r*m+o*g+i*p+h,a[T+2]=n*v+r*y+o*b+i*w+k,a[T+3]=n*_+r*x+o*C+i*z+S;return e},i=o(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(i,0,0),LR(e,t)},KR=function(e,t){return e.toCanvas().then((function(n){return XR(n,e.getType(),t)}))},XR=function(e,t,n){var r=xR(e),o=function(e,t,n){for(var r=function(e,t,n){return e>n?e=n:e<t&&(e=t),e},o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=e.data,c=t.data,u=e.width,s=e.height,l=0;l<s;l++)for(var f=0;f<u;f++){for(var d=0,m=0,g=0,p=0;p<o;p++)for(var h=0;h<o;h++){var v=r(f+h-i,0,u-1),y=r(l+p-i,0,s-1),b=4*(y*u+v),w=n[p*o+h];d+=a[b]*w,m+=a[b+1]*w,g+=a[b+2]*w}var k=4*(l*u+f);c[k]=r(d,0,255),c[k+1]=r(m,0,255),c[k+2]=r(g,0,255)}return t},i=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=o(i,a,n),r.putImageData(a,0,0),LR(e,t)},YR=function(e){var t=function(t,n,r){for(var o=xR(t),i=new Array(256),a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e},c=0;c<i.length;c++)i[c]=e(c,r);var u=a(o.getImageData(0,0,t.width,t.height),i);return o.putImageData(u,0,0),LR(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}},JR=function(e){return function(t,n){return $R(t,e(FR(),n))}},QR=function(e){return function(t){return $R(t,e)}},ZR=function(e){return function(t){return KR(t,e)}},eB=QR([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),tB=JR(qR),nB=JR(UR),rB=function(e,t,n,r){return $R(e,WR(FR(),t,n,r))},oB=ZR([0,-1,0,-1,5,-1,0,-1,0]),iB=YR((function(e,t){return 255*Math.pow(e/255,1-t)})),aB=function(e,t,n){var r=zR(e),o=SR(e),i=t/r,a=n/o,c=!1;(i<.5||i>2)&&(i=i<.5?.5:2,c=!0),(a<.5||a>2)&&(a=a<.5?.5:2,c=!0);var u=cB(e,i,a);return c?u.then((function(e){return aB(e,t,n)})):u},cB=function(e,t,n){return new $E((function(r){var o=zR(e),i=SR(e),a=Math.floor(o*t),c=Math.floor(i*n),u=kR(a,c),s=xR(u);s.drawImage(e,0,0,o,i,0,0,a,c),r(u)}))},uB=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},sB=function(e,t){return e.toCanvas().then((function(n){return lB(n,e.getType(),t)}))},lB=function(e,t,n){var r=n<0?360+n:n,o=r*Math.PI/180,i=e.width,a=e.height,c=Math.sin(o),u=Math.cos(o),s=uB(Math.abs(i*u)+Math.abs(a*c)),l=uB(Math.abs(i*c)+Math.abs(a*u)),f=kR(s,l),d=xR(f);return d.translate(s/2,l/2),d.rotate(o),d.drawImage(e,-i/2,-a/2),LR(f,t)},fB=function(e,t){return e.toCanvas().then((function(n){return dB(n,e.getType(),t)}))},dB=function(e,t,n){var r=kR(e.width,e.height),o=xR(r);return"v"===n?(o.scale(1,-1),o.drawImage(e,0,-r.height)):(o.scale(-1,1),o.drawImage(e,-r.width,0)),LR(r,t)},mB=function(e,t,n,r,o){return e.toCanvas().then((function(i){return gB(i,e.getType(),t,n,r,o)}))},gB=function(e,t,n,r,o,i){var a=kR(o,i),c=xR(a);return c.drawImage(e,-n,-r),LR(a,t)},pB=function(e,t,n){return e.toCanvas().then((function(r){return aB(r,t,n).then((function(t){return LR(t,e.getType())}))}))},hB=function(e){return eB(e)},vB=function(e){return oB(e)},yB=function(e,t){return iB(e,t)},bB=function(e,t,n,r){return rB(e,t,n,r)},wB=function(e,t){return tB(e,t)},kB=function(e,t){return nB(e,t)},_B=function(e,t){return fB(e,t)},xB=function(e,t,n,r,o){return mB(e,t,n,r,o)},CB=function(e,t,n){return pB(e,t,n)},zB=function(e,t){return sB(e,t)},SB=function(e,t,n){return P_(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)},TB=function(e,t){return SB(e,t,[])},OB=function(e,t){return SB(e,t,[Hw.config({})])},EB=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:mf([Hw.config({})])}},AB=ou("toolbar.button.execute"),DB=function(e){return Wc((function(t,n){gS(e,t)((function(n){xc(t,AB,{buttonApi:n}),e.onAction(n)}))}))},MB=(kA={},kA[tc()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],kA),NB=ou("update-menu-text"),RB=ou("update-menu-icon"),BB=function(e,t,n){var r=oa(h),o=e.text.map((function(e){return C_(EB(e,t,n.providers))})),i=e.icon.map((function(e){return C_(OB(e,n.providers.icons))})),a=function(e,t){var n=eh.getValue(e);return Yw.focus(n),xc(n,"keydown",{raw:t.event.raw}),LA.close(n),P.some(!0)},c=e.role.fold((function(){return{}}),(function(e){return{role:e}})),u=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),s=P_("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons),l=C_(LA.sketch(E(E(E({},e.uid?{uid:e.uid}:{}),c),{dom:{tag:"button",classes:[t,t+"--select"].concat($(e.classes,(function(e){return t+"--"+e}))),attributes:E({},u)},components:bS([i.map((function(e){return e.asSpec()})),o.map((function(e){return e.asSpec()})),P.some(s)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:mf(D(D([],e.dropdownBehaviours,!0),[mS.button((function(){return e.disabled||n.providers.isDisabled()})),uS(),jA.config({}),Hw.config({}),jw("dropdown-events",[pS(e,r),hS(e,r)]),jw("menubutton-update-display-text",[Mc(NB,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){Hw.set(e,[xs(n.providers.translate(t.event.text))])}))})),Mc(RB,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){Hw.set(e,[OB(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:_o(MB,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:mf([Ew.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:hC(!1,e.columns,e.presets)},fetch:function(t){return eA.nu(x(e.fetch,t))}})));return l.asSpec()},PB=function(e){return i(e)},LB=function(e){return"separator"===e.type},IB=function(e){return Te(e,"getSubmenuItems")},HB={type:"separator"},FB=function(e,t){var n=Q(e,(function(e,n){return PB(n)?""===n?e:"|"===n?e.length>0&&!LB(e[e.length-1])?e.concat([HB]):e:Te(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&LB(n[n.length-1])&&n.pop(),n},jB=function(e,t){var n=e.getSubmenuItems(),r=qB(n,t),o=_o(r.menus,ma(e.value,r.items)),i=_o(r.expansions,ma(e.value,e.value));return{item:e,menus:o,expansions:i}},VB=function(e,t){return IB(e)?jB(e,t):{item:e,menus:{},expansions:{}}},UB=function(e){if(LB(e))return e;var t=Se(e,"value").getOrThunk((function(){return ou("generated-menu-item")}));return _o({value:t},e)},qB=function(e,t){var n=FB(i(e)?e.split(" "):e,t);return J(n,(function(e,n){var r=UB(n),o=VB(r,t);return{menus:_o(e.menus,o.menus),items:[o.item].concat(e.items),expansions:_o(e.expansions,o.expansions)}}),{menus:{},expansions:{},items:[]})},WB=function(e,t,n,r){var o=ou("primary-menu"),i=qB(e,n.shared.providers.menuItems());if(0===i.items.length)return P.none();var a=DO(o,i.items,t,n,r),c=ye(i.menus,(function(e,r){return DO(r,e,t,n,!1)})),u=_o(c,ma(o,a));return P.from(Qk.tieredData(o,u,i.expansions))},$B=function(e){return{isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)},setActive:function(t){var n=e.element;t?(is(n,"tox-tbtn--enabled"),Fn(n,"aria-pressed",!0)):(cs(n,"tox-tbtn--enabled"),Wn(n,"aria-pressed"))},isActive:function(){return us(e.element,"tox-tbtn--enabled")}}},GB=function(e,t,n,r){return BB({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(WB(e,Ux.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:$B,columns:1,presets:"normal",classes:[],dropdownBehaviours:[bE.config({})]},t,n.shared)},KB=function(e,t,n){var r=function(e){return function(r){var o=!r.isActive();r.setActive(o),e.storage.set(o),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){xf(t.element),xc(t,AE,{name:e.name,value:e.storage.get()})}))}))}},o=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t($(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return E(E({type:e.type,active:!1},t),{onAction:r(e),onSetup:o(e)})})))}},XB=function(e,t,n,r,o,i){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),c=E({buttonBehaviours:mf([mS.button((function(){return e.disabled||i.isDisabled()})),uS(),bE.config({}),jw("button press",[Dc("click"),Dc("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),u=_o(c,{dom:r});return _o(u,{components:o})},YB=function(e,t,n,r){void 0===r&&(r=[]);var o=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),i={tag:"button",classes:["tox-tbtn"],attributes:o},a=e.icon.map((function(e){return TB(e,n.icons)})),c=bS([a]);return XB(e,t,r,i,c,n)},JB=function(e,t,n,r){void 0===r&&(r=[]);var o=YB(e,P.some(t),n,r);return x_.sketch(o)},QB=function(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=n.translate(e.text),a=e.icon?e.icon.map((function(e){return TB(e,n.icons)})):P.none(),c=a.isSome()?bS([a]):[],u=a.isSome()?{}:{innerHtml:i},s=D(D(D(D([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),o,!0),l=E(E({tag:"button",classes:s},u),{attributes:{title:i}});return XB(e,t,r,l,c,n)},ZB=function(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=QB(e,P.some(t),n,r,o);return x_.sketch(i)},eP=function(e,t){return function(n){"custom"===t?xc(n,AE,{name:e,value:{}}):"submit"===t?_c(n,DE):"cancel"===t?_c(n,EE):console.error("Unknown button type: ",t)}},tP=function(e,t){return"menu"===t},nP=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},rP=function(e,t,n){if(tP(e,t)){var r=function(){return a},o=e,i=E(E({},e),{onSetup:function(t){return t.setDisabled(e.disabled),h},fetch:KB(o.items,r,n)}),a=C_(GB(i,"tox-tbtn",n,P.none()));return a.asSpec()}if(nP(e,t)){var c=eP(e.name,t),u=E(E({},e),{borderless:!1});return ZB(u,c,n.shared.providers,[])}console.error("Unknown footer button type: ",t)},oP=function(e,t){var n=eP(e.name,"custom");return _E(P.none(),pE.parts.field(E({factory:x_},QB(e,P.some(n),t,[aR.memory(""),qN.self()]))))},iP=w([Ki("field1Name","field1"),Ki("field2Name","field2"),sl("onLockedChange"),il(["lockClass"]),Ki("locked",!1),oh.field("coupledFieldBehaviours",[yv,eh])]),aP=function(e,t,n){return Kh(e,t,n).bind(yv.getCurrent)},cP=function(e,t){return Nh({factory:pE,name:e,overrides:function(e){return{fieldBehaviours:mf([jw("coupled-input-behaviour",[Mc(Va(),(function(n){aP(n,e,t).each((function(t){Kh(n,e,"lock").each((function(r){pk.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},uP=w([cP("field1","field2"),cP("field2","field1"),Nh({factory:x_,schema:[Ei("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:mf([pk.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),sP=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:oh.augment(e.coupledFieldBehaviours,[yv.config({find:P.some}),eh.config({store:{mode:"manual",getValue:function(t){var n,r=Zh(t,e,["field1","field2"]);return n={},n[e.field1Name]=eh.getValue(r.field1()),n[e.field2Name]=eh.getValue(r.field2()),n},setValue:function(t,n){var r=Zh(t,e,["field1","field2"]);Oe(n,e.field1Name)&&eh.setValue(r.field1(),n[e.field1Name]),Oe(n,e.field2Name)&&eh.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Kh(t,e,"field1")},getField2:function(t){return Kh(t,e,"field2")},getLock:function(t){return Kh(t,e,"lock")}}}},lP=mv({name:"FormCoupledInputs",configFields:iP(),partFields:uP(),factory:sP,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),fP=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},dP=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),o=n[2];return ro.value({value:r,unit:o})}return ro.error(e)},mP=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Te(n,e)};return e.unit===t?P.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?P.some(e.value):P.some(e.value/n[e.unit]*n[t]):P.none()},gP=function(e){return P.none()},pP=function(e,t){return function(n){return mP(n,t).map((function(n){return{value:n*e,unit:t}}))}},hP=function(e,t){var n=dP(e).toOptional(),r=dP(t).toOptional();return Ne(n,r,(function(e,t){return mP(e,t.unit).map((function(e){return t.value/e})).map((function(e){return pP(e,t.unit)})).getOr(gP)})).getOr(gP)},vP=function(e,t){var n=gP,r=ou("ratio-event"),o=function(e){return P_(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)},i=lP.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[o("lock"),o("unlock")],buttonBehaviours:mf([Lv.config({disabled:function(){return e.disabled||t.isDisabled()}}),uS(),bE.config({})])}),a=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},c=function(n){return pE.parts.field({factory:VE,inputClasses:["tox-textfield"],inputBehaviours:mf([Lv.config({disabled:function(){return e.disabled||t.isDisabled()}}),uS(),bE.config({}),jw("size-input-events",[Mc(Ia(),(function(e,t){xc(e,r,{isField1:n})})),Mc(Ua(),(function(t,n){xc(t,TE,{name:e.name})}))])]),selectOnFocus:!1})},u=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},s=lP.parts.field1(a([pE.parts.label(u("Width")),c(!0)])),l=lP.parts.field2(a([pE.parts.label(u("Height")),c(!1)]));return lP.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[s,l,a([u("&nbsp;"),i])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){dP(eh.getValue(e)).each((function(e){n(e).each((function(e){eh.setValue(t,fP(e))}))}))},coupledFieldBehaviours:mf([Lv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){lP.getField1(e).bind(pE.getField).each(Lv.disable),lP.getField2(e).bind(pE.getField).each(Lv.disable),lP.getLock(e).each(Lv.disable)},onEnabled:function(e){lP.getField1(e).bind(pE.getField).each(Lv.enable),lP.getField2(e).bind(pE.getField).each(Lv.enable),lP.getLock(e).each(Lv.enable)}}),uS(),jw("size-input-events2",[Mc(r,(function(e,t){var r=t.event.isField1,o=r?lP.getField1(e):lP.getField2(e),i=r?lP.getField2(e):lP.getField1(e),a=o.map(eh.getValue).getOr(""),c=i.map(eh.getValue).getOr("");n=hP(a,c)}))])])})},yP=w(ou("undo")),bP=w(ou("redo")),wP=w(ou("zoom")),kP=w(ou("back")),_P=w(ou("apply")),xP=w(ou("swap")),CP=w(ou("transform")),zP=w(ou("temp-transform")),SP=w(ou("transform-apply")),TP={undo:yP,redo:bP,zoom:wP,back:kP,apply:_P,swap:xP,transform:CP,tempTransform:zP,transformApply:SP},OP=w("save-state"),EP=w("disable"),AP=w("enable"),DP={formActionEvent:AE,saveState:OP,disable:EP,enable:AP},MP=function(e,t){var n=function(e,n,r,o){return C_(ZB({name:e,text:e,disabled:r,primary:o,icon:P.none(),borderless:!1},n,t))},r=function(e,n,r,o){return C_(JB({name:e,icon:P.some(e),tooltip:P.some(n),disabled:o,primary:!1,borderless:!1},r,t))},o=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Lv)&&Lv.disable(n)}))},i=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Lv)&&Lv.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},c=h,u=function(e,t,n){xc(e,t,n)},s=function(e){return _c(e,DP.disable())},l=function(e){return _c(e,DP.enable())},f=function(e,t){s(e),u(e,TP.transform(),{transform:t}),l(e)},d=function(e,t){s(e),u(e,TP.tempTransform(),{transform:t}),l(e)},m=function(e){return function(){ae.getOpt(e).each((function(e){Hw.set(e,[oe])}))}},g=function(e,t){s(e),u(e,TP.transformApply(),{transform:t,swap:m(e)}),l(e)},p=function(){return n("Back",(function(e){return u(e,TP.back(),{swap:m(e)})}),!1,!1)},v=function(){return C_({dom:{tag:"div",classes:["tox-spacer"]},behaviours:mf([Lv.config({})])})},y=function(){return n("Apply",(function(e){return u(e,TP.apply(),{swap:m(e)})}),!0,!0)},b=function(){return function(t){var n=e.getRect();return xB(t,n.x,n.y,n.w,n.h)}},k=[p(),v(),n("Apply",(function(t){var n=b();g(t,n),e.hideCrop()}),!1,!0)],_=sE.sketch({dom:a,components:k.map((function(e){return e.asSpec()})),containerBehaviours:mf([jw("image-tools-crop-buttons-events",[Mc(DP.disable(),(function(e,t){o(k,e)})),Mc(DP.enable(),(function(e,t){i(k,e)}))])])}),x=C_(vP({name:"size",label:P.none(),constrain:!0,disabled:!1},t)),C=function(e,t){return function(n){return CB(n,e,t)}},z=[p(),v(),x,v(),n("Apply",(function(e){x.getOpt(e).each((function(t){var n=eh.getValue(t),r=parseInt(n.width,10),o=parseInt(n.height,10),i=C(r,o);g(e,i)}))}),!1,!0)],S=sE.sketch({dom:a,components:z.map((function(e){return e.asSpec()})),containerBehaviours:mf([jw("image-tools-resize-buttons-events",[Mc(DP.disable(),(function(e,t){o(z,e)})),Mc(DP.enable(),(function(e,t){i(z,e)}))])])}),T=function(e,t){return function(n){return e(n,t)}},O=T(_B,"h"),E=T(_B,"v"),A=T(zB,-90),D=T(zB,90),M=function(e,t){d(e,t)},N=[p(),v(),r("flip-horizontally","Flip horizontally",(function(e){M(e,O)}),!1),r("flip-vertically","Flip vertically",(function(e){M(e,E)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){M(e,A)}),!1),r("rotate-right","Rotate clockwise",(function(e){M(e,D)}),!1),v(),y()],R=sE.sketch({dom:a,components:N.map((function(e){return e.asSpec()})),containerBehaviours:mf([jw("image-tools-fliprotate-buttons-events",[Mc(DP.disable(),(function(e,t){o(N,e)})),Mc(DP.enable(),(function(e,t){i(N,e)}))])])}),B=function(e,n,r,o,i){var a=_N.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),c=_N.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),u=_N.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return C_(_N.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:i,getInitialValue:w({x:o})},components:[a,c,u],sliderBehaviours:mf([Yw.config({})]),onChoose:n}))},L=function(e,t,n,r,o){var i=function(e,n,r){var o=T(t,r.x/100);f(e,o)};return B(e,i,n,r,o)},I=function(e,t,n,r,o){return[p(),L(e,t,n,r,o),y()]},H=function(e,t,n,r,c){var u=I(e,t,n,r,c);return sE.sketch({dom:a,components:u.map((function(e){return e.asSpec()})),containerBehaviours:mf([jw("image-tools-filter-panel-buttons-events",[Mc(DP.disable(),(function(e,t){o(u,e)})),Mc(DP.enable(),(function(e,t){i(u,e)}))])])})},F=[p(),v(),y()],j=sE.sketch({dom:a,components:F.map((function(e){return e.asSpec()}))}),V=H("Brightness",wB,-100,0,100),U=H("Contrast",kB,-100,0,100),q=H("Gamma",yB,-100,0,100),W=function(e,t,n){return function(r){return bB(r,e,t,n)}},$=function(e){var t=function(e,t,n){var r=G.getOpt(e),o=X.getOpt(e),i=K.getOpt(e);r.each((function(t){o.each((function(n){i.each((function(r){var o=eh.getValue(t).x/100,i=eh.getValue(r).x/100,a=eh.getValue(n).x/100,c=W(o,i,a);f(e,c)}))}))}))};return B(e,t,0,100,200)},G=$("R"),K=$("G"),X=$("B"),Y=[p(),G,K,X,y()],J=sE.sketch({dom:a,components:Y.map((function(e){return e.asSpec()}))}),Q=function(e,t,n){return function(r){var o=function(){ae.getOpt(r).each((function(t){Hw.set(t,[e]),n(t)}))};u(r,TP.swap(),{transform:t,swap:o})}},Z=function(t){e.showCrop()},ee=function(t){x.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,o=n.height;eh.setValue(t,{width:r,height:o})}))},te=P.some(vB),ne=P.some(hB),re=[r("crop","Crop",Q(_,P.none(),Z),!1),r("resize","Resize",Q(S,P.none(),ee),!1),r("orientation","Orientation",Q(R,P.none(),c),!1),r("brightness","Brightness",Q(V,P.none(),c),!1),r("sharpen","Sharpen",Q(j,te,c),!1),r("contrast","Contrast",Q(U,P.none(),c),!1),r("color-levels","Color levels",Q(J,P.none(),c),!1),r("gamma","Gamma",Q(q,P.none(),c),!1),r("invert","Invert",Q(j,ne,c),!1)],oe=sE.sketch({dom:a,components:re.map((function(e){return e.asSpec()}))}),ie=sE.sketch({dom:{tag:"div"},components:[oe],containerBehaviours:mf([Hw.config({})])}),ae=C_(ie),ce=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:ce}},NP=tinymce.util.Tools.resolve("tinymce.geom.Rect"),RP=tinymce.util.Tools.resolve("tinymce.util.Observable"),BP=tinymce.util.Tools.resolve("tinymce.util.VK"),PP=function(e){var t=Math.max,n=e.documentElement,r=e.body,o=t(n.scrollWidth,r.scrollWidth),i=t(n.clientWidth,r.clientWidth),a=t(n.offsetWidth,r.offsetWidth),c=t(n.scrollHeight,r.scrollHeight),u=t(n.clientHeight,r.clientHeight),s=t(n.offsetHeight,r.offsetHeight);return{width:o<a?i:o,height:c<s?u:c}},LP=function(e){return d(e.changedTouches)},IP=function(e){if(LP(e))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]};function HP(e,t){var n,r,o,i,a,c,u,s=[],l=[],f=null!==(n=t.document)&&void 0!==n?n:document,m=null!==(r=t.root)&&void 0!==r?r:f,g=tt.fromDom(f),p=tt.fromDom(m.getElementById(null!==(o=t.handle)&&void 0!==o?o:e)),h=function(e){var n=e.raw,r=PP(f);IP(n),e.prevent(),a=n.button,c=n.screenX,u=n.screenY;var o=Jn(p,"cursor");i=tt.fromTag("div",f),Xn(i,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:o}),Ar(In(g),i),l.push(ad(g,"mousemove",v),ad(g,"touchmove",v),ad(g,"mouseup",y),ad(g,"touchend",y)),t.start(n)},v=function(e){var n=e.raw;if(IP(n),n.button!==a)return y(e);n.deltaX=n.screenX-c,n.deltaY=n.screenY-u,e.prevent(),t.drag(n)},y=function(e){IP(e.raw),G(l,(function(e){return e.unbind()})),l=[],Br(i),t.stop&&t.stop(e.raw)},b=function(){G(l.concat(s),(function(e){return e.unbind()})),l=[],s=[],d(i)&&Br(i)};return s.push(ad(p,"mousedown",h),ad(p,"touchstart",h)),{destroy:b}}var FP=0,jP=function(e,t,n,r,o){var i,a=[],c="tox-",u=c+"crid-"+FP++,s=tt.fromDom(r),l=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],f=["top","right","bottom","left"],d=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},m=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},g=function(){return m(n,e)},p=function(t,r,o,i){var a=r.x+o*t.deltaX,c=r.y+i*t.deltaY,u=Math.max(20,r.w+o*t.deltaW),s=Math.max(20,r.h+i*t.deltaH),l=e=NP.clamp({x:a,y:c,w:u,h:s},n,"move"===t.name);l=m(n,l),C.fire("updateRect",{rect:l}),k(l)},h=function(){var t=function(t){var n;return HP(u,{document:r.ownerDocument,root:En(s).dom,handle:u+"-"+t.name,start:function(){n=e},drag:function(e){p(t,n,e.deltaX,e.deltaY)}})},n=tt.fromTag("div");jn(n,{id:u,class:c+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Ar(s,n),G(f,(function(e){Is(s,"#"+u).each((function(t){var n=tt.fromTag("div");jn(n,{id:u+"-"+e,class:c+"croprect-block","data-mce-bogus":"all"}),Kn(n,"display","none"),Ar(t,n)}))})),G(l,(function(e){Is(s,"#"+u).each((function(t){var n=tt.fromTag("div");jn(n,{id:u+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),ss(n,[c+"croprect-handle",c+"croprect-handle-"+e.name]),Kn(n,"display","none"),Ar(t,n)}))})),i=$(l,t),y(e);var d=function(e){Fn(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")},m=function(t){var n;G(l,(function(e){if(Vn(t.target,"id")===u+"-"+e.name)return n=e,!1}));var r=function(e,t,r,o,i){e.stopPropagation(),e.preventDefault(),p(n,r,o,i)};switch(t.raw.keyCode){case BP.LEFT:r(t,n,e,-10,0);break;case BP.RIGHT:r(t,n,e,10,0);break;case BP.UP:r(t,n,e,0,-10);break;case BP.DOWN:r(t,n,e,0,10);break;case BP.ENTER:case BP.SPACEBAR:t.prevent(),o();break}};a.push(ad(s,"focusin",d),ad(s,"focusout",d),ad(s,"keydown",m))},v=function(e){var t=D(D([],$(l,(function(e){return"#"+u+"-"+e.name})),!0),$(f,(function(e){return"#"+u+"-"+e})),!0).join(","),n=Xm(s,t);G(n,e?function(e){return nr(e,"display")}:function(e){return Kn(e,"display","none")})},y=function(e){var n=function(e,t){Is(s,"#"+u+"-"+e).each((function(e){Xn(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))};G(l,(function(t){Is(s,"#"+u+"-"+t.name).each((function(n){Xn(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)},b=function(t){e=t,y(e)},w=function(n){t=n,y(e)},k=function(e){b(d(n,e))},_=function(t){n=t,y(e)},x=function(){G(i,(function(e){return e.destroy()})),i=[],G(a,(function(e){return e.unbind()})),a=[]};h();var C=E(E({},RP),{toggleVisibility:v,setClampRect:_,setRect:b,getInnerRect:g,setInnerRect:k,setViewPortRect:w,destroy:x});return C},VP={create:jP},UP=function(e){return new ax((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},qP=function(e){var t=C_({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=oa(1),r=rd(),o=oa({x:0,y:0,w:1,h:1}),i=oa({x:0,y:0,w:1,h:1}),a=function(e,i){g.getOpt(e).each((function(e){var a=n.get(),c=vr(e.element),u=ar(e.element),s=i.dom.naturalWidth*a,l=i.dom.naturalHeight*a,f=Math.max(0,c/2-s/2),d=Math.max(0,u/2-l/2),m={left:f.toString()+"px",top:d.toString()+"px",width:s.toString()+"px",height:l.toString()+"px",position:"absolute"};Xn(i,m),t.getOpt(e).each((function(e){Xn(e.element,m)})),r.run((function(e){var t=o.get();e.setRect({x:t.x*a+f,y:t.y*a+d,w:t.w*a,h:t.h*a}),e.setClampRect({x:f,y:d,w:s,h:l}),e.setViewPortRect({x:0,y:0,w:c,h:u})}))}))},c=function(e,t){g.getOpt(e).each((function(e){var r=vr(e.element),o=ar(e.element),i=t.dom.naturalWidth,a=t.dom.naturalHeight,c=Math.min(r/i,o/a);c>=1?n.set(1):n.set(c)}))},u=function(e,t){var n=tt.fromTag("img");return Fn(n,"src",t),UP(n.dom).then((function(){e.getSystem().isConnected()&&g.getOpt(e).map((function(e){var t=Cs({element:n});Hw.replaceAt(e,1,P.some(t));var r=i.get(),u={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};i.set(u);var s=NP.inflate(u,-20,-20);o.set(s),r.w===u.w&&r.h===u.h||c(e,n),a(e,n)}))}))},s=function(e,t){var r=n.get(),o=t>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(o),g.getOpt(e).each((function(e){var t=e.components()[1].element;a(e,t)}))},l=function(){r.run((function(e){e.toggleVisibility(!0)}))},f=function(){r.run((function(e){e.toggleVisibility(!1)}))},d=function(){return o.get()},m=sE.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:mf([jw("image-panel-crop-events",[Vc((function(e){g.getOpt(e).each((function(e){var t=e.element.dom,i=VP.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,h);i.toggleVisibility(!1),i.on("updateRect",(function(e){var t=e.rect,r=n.get(),i={x:Math.round(t.x/r),y:Math.round(t.y/r),w:Math.round(t.w/r),h:Math.round(t.h/r)};o.set(i)})),r.set(i)}))})),Uc((function(){r.clear()}))])])}],containerBehaviours:mf([Hw.config({}),jw("image-panel-events",[Vc((function(t){u(t,e)}))])])}),g=C_(m),p=function(){var e=i.get();return{width:e.w,height:e.h}};return{memContainer:g,updateSrc:u,zoom:s,showCrop:l,hideCrop:f,getRect:d,getMeasurements:p}},WP=function(e,t,n,r,o){return JB({name:e,icon:P.some(t),disabled:n,tooltip:P.some(e),primary:!1,borderless:!1},r,o)},$P=function(e,t){t?Lv.enable(e):Lv.disable(e)},GP=function(e){var t=function(e,t,o){n.getOpt(e).each((function(e){$P(e,t)})),r.getOpt(e).each((function(e){$P(e,o)}))},n=C_(WP("Undo","undo",!0,(function(e){xc(e,TP.undo(),{direction:1})}),e)),r=C_(WP("Redo","redo",!0,(function(e){xc(e,TP.redo(),{direction:1})}),e)),o=sE.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),WP("Zoom in","zoom-in",!1,(function(e){xc(e,TP.zoom(),{direction:1})}),e),WP("Zoom out","zoom-out",!1,(function(e){xc(e,TP.zoom(),{direction:-1})}),e)]});return{container:o,updateButtonUndoStates:t}};function KP(){var e=[],t=-1,n=function(n){var r=e.splice(++t);return e.push(n),{state:n,removed:r}},r=function(){if(i())return e[--t]},o=function(){if(a())return e[++t]},i=function(){return t>0},a=function(){return-1!==t&&t<e.length-1};return{data:e,add:n,undo:r,redo:o,canUndo:i,canRedo:a}}var XP,YP=function(e){var t=oa(e),n=od(),r=KP();r.add(e);var o=function(){return t.get()},i=function(e){t.set(e)},a=function(){return n.get().getOrThunk(t.get)},c=function(e){var t=u(e);return f(),n.set(t),t.url},u=function(e){return{blob:e,url:URL.createObjectURL(e)}},s=function(e){URL.revokeObjectURL(e.url)},l=function(e){QN.each(e,s)},f=function(){n.on(s),n.clear()},d=function(e){var t=u(e);i(t);var n=r.add(t).removed;return l(n),t.url},m=function(e){var t=u(e);return n.set(t),t.url},g=function(e){return n.get().fold(h,(function(t){d(t.blob),e()}))},p=function(){var e=r.undo();return i(e),e.url},v=function(){var e=r.redo();return i(e),e.url},y=function(){var e=r.canUndo(),t=r.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:o,setBlobState:i,addBlobState:d,getTempState:a,updateTempState:c,addTempState:m,applyTempState:g,destroyTempState:f,undo:p,redo:v,getHistoryStates:y}},JP=function(e,t){var n=YP(e.currentState),r=function(e,t){var n=t.event.direction;C.zoom(e,n)},o=function(e){var t=n.getHistoryStates();z.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),xc(e,DP.formActionEvent,{name:DP.saveState(),value:t.undoEnabled})},i=function(e){z.updateButtonUndoStates(e,!1,!1)},a=function(e,t){var r=n.undo();f(e,r).then((function(t){l(e),o(e)}))},c=function(e,t){var r=n.redo();f(e,r).then((function(t){l(e),o(e)}))},u=function(e){return e.toBlob()},s=function(e){xc(e,DP.formActionEvent,{name:DP.disable(),value:{}})},l=function(e){S.getApplyButton(e).each((function(e){Lv.enable(e)})),xc(e,DP.formActionEvent,{name:DP.enable(),value:{}})},f=function(e,t){return s(e),C.updateSrc(e,t)},d=function(e,t,n,r,i){s(e),IR(t).then(n).then(u).then(r).then((function(t){return f(e,t)})).then((function(){o(e),i(),l(e)})).catch((function(t){console.log(t),e.getSystem().isConnected()&&l(e)}))},m=function(e,t,r){var o=n.getBlobState().blob,i=function(e){return n.updateTempState(e)};d(e,o,t,i,r)},g=function(e,t){var r=n.getTempState().blob,o=function(e){return n.addTempState(e)};d(e,r,t,o,h)},p=function(e,t,r){var o=n.getBlobState().blob,i=function(t){var r=n.addBlobState(t);return y(e),r};d(e,o,t,i,r)},v=function(e,t){var r=function(){y(e);var n=t.event.swap;n()};n.applyTempState(r)},y=function(e){var t=n.getBlobState().url;return n.destroyTempState(),o(e),t},b=function(e){var t=y(e);f(e,t).then((function(t){l(e)}))},w=function(e,t){b(e);var n=t.event.swap;n(),C.hideCrop()},k=function(e,t){return m(e,t.event.transform,h)},_=function(e,t){return g(e,t.event.transform)},x=function(e,t){return p(e,t.event.transform,t.event.swap)},C=qP(e.currentState.url),z=GP(t),S=MP(C,t),T=function(e,t){i(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){m(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[S.memContainer.asSpec(),C.memContainer.asSpec(),z.container],behaviours:mf([eh.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),jw("image-tools-events",[Mc(TP.undo(),a),Mc(TP.redo(),c),Mc(TP.zoom(),r),Mc(TP.back(),w),Mc(TP.apply(),v),Mc(TP.transform(),k),Mc(TP.tempTransform(),_),Mc(TP.transformApply(),x),Mc(TP.swap(),T)]),qN.self()])}},QP=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=$(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:mf([qN.self(),Hw.config({}),aR.domHtml(P.none()),Ew.config({mode:"acyclic"})])}},ZP=function(e){return!Te(e,"items")},eL="data-value",tL=function(e,t,n,r){return $(n,(function(n){return ZP(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){eh.setValue(e,n.value),xc(e,TE,{name:t}),Yw.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return tL(e,t,n.items,r)}}}))},nL=function(e,t){return ge(e,(function(e){return ZP(e)?Pe(e.value===t,e):nL(e.items,t)}))},rL=function(e,t){var n=t.shared.providers,r=fe(e.items).filter(ZP),o=e.label.map((function(e){return SE(e,n)})),i=pE.parts.field({dom:{},factory:{sketch:function(n){return BB({uid:n.uid,text:r.map((function(e){return e.text})),icon:P.none(),tooltip:e.label,role:P.none(),fetch:function(n,r){var o=tL(n,e.name,e.items,eh.getValue(n));r(WB(o,Ux.CLOSE_ON_EXECUTE,t,!1))},onSetup:w(h),getApi:w({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[bE.config({}),eh.config({store:{mode:"manual",initialValue:r.map((function(e){return e.value})).getOr(""),getValue:function(e){return Vn(e.element,eL)},setValue:function(t,n){nL(e.items,n).each((function(e){Fn(t.element,eL,e.value),xc(t,NB,{text:e.text})}))}}})]},"tox-listbox",t.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[i]};return pE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([o.toArray(),[a]]),fieldBehaviours:mf([Lv.config({disabled:w(e.disabled),onDisabled:function(e){pE.getField(e).each(Lv.disable)},onEnabled:function(e){pE.getField(e).each(Lv.enable)}})])})},oL=function(e,t){return{dom:{tag:"div",classes:e.classes},components:$(e.items,t.shared.interpreter)}},iL=function(e,t){var n=$(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return ma("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:rh(e.selectBehaviours,[Yw.config({}),eh.config({store:E({mode:"manual",getValue:function(e){return ds(e.element)},setValue:function(t,n){var r=ee(e.options,(function(e){return e.value===n}));r.isSome()&&ms(t.element,n)}},r)})])}},aL=dv({name:"HtmlSelect",configFields:[Ei("options"),th("selectBehaviours",[Yw,eh]),Ki("selectClasses",[]),Ki("selectAttributes",{}),Fi("data")],factory:iL}),cL=function(e,t){var n=$(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return SE(e,t)})),o=pE.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:aL,selectBehaviours:mf([Lv.config({disabled:function(){return e.disabled||t.isDisabled()}}),bE.config({}),jw("selectbox-change",[Mc(Ua(),(function(t,n){xc(t,TE,{name:e.name})}))])])}),i=e.size>1?P.none():P.some(P_("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[o],i.toArray()])};return pE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([r.toArray(),[a]]),fieldBehaviours:mf([Lv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){pE.getField(e).each(Lv.disable)},onEnabled:function(e){pE.getField(e).each(Lv.enable)}}),uS()])})},uL=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:$(e,n)}]}},o=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},i=function(e){return{dom:{tag:"tr"},components:$(e,o)}},a=function(e){return{dom:{tag:"tbody"},components:$(e,i)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:mf([bE.config({}),Yw.config({})])}},sL=function(e,t){var n=e.label.map((function(e){return SE(e,t)})),r=[Lv.config({disabled:function(){return e.disabled||t.isDisabled()}}),uS(),Ew.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return _c(e,DE),P.some(!0)}}),jw("textfield-change",[Mc(Va(),(function(t,n){xc(t,TE,{name:e.name})})),Mc(Za(),(function(t,n){xc(t,TE,{name:e.name})}))]),bE.config({})],o=e.validation.map((function(e){return dA.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=eh.getValue(t),r=e.validator(n);return eA.pure(!0===r?ro.value(n):ro.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),i=e.placeholder.fold(w({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(w({}),(function(e){return{inputmode:e}})),c=E(E({},i),a),u=pE.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:c,inputClasses:[e.classname],inputBehaviours:mf(ne([r,o])),selectOnFocus:!1,factory:VE}),s=e.flex?["tox-form__group--stretched"]:[],l=s.concat(e.maximized?["tox-form-group--maximize"]:[]),f=[Lv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){pE.getField(e).each(Lv.disable)},onEnabled:function(e){pE.getField(e).each(Lv.enable)}}),uS()];return kE(n,u,l,f)},lL=function(e,t){return sL({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:P.none(),maximized:e.maximized},t)},fL=function(e,t){return sL({name:e.name,multiline:!0,label:e.label,inputMode:P.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:P.none(),maximized:e.maximized},t)},dL=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return Oc([Mc(e.event,r),Uc((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Mc(e,(function(){return t.cancel()}))]})).getOr([])))},mL=Object.freeze({__proto__:null,events:dL}),gL=function(e){var t=oa(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},o=function(){var e=t.get();null!==e&&e.cancel()};return zu({readState:n,setTimer:r,cancel:o})},pL=function(e){return e.stream.streams.state(e)},hL=Object.freeze({__proto__:null,throttle:gL,init:pL}),vL=function(e,t){var n=e.stream,r=q_(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},yL=[Ai("stream",Ci("mode",{throttle:[Ei("delay"),Ki("stopEvent",!0),fl("streams",{setup:vL,state:gL})]})),Ki("event","input"),Fi("cancelEvent"),sl("onStream")],bL=pf({fields:yL,name:"streaming",active:mL,state:hL}),wL=function(e,t,n){var r=eh.getValue(n);eh.setValue(t,r),_L(t)},kL=function(e,t){var n=e.element,r=ds(n),o=n.dom;"number"!==Vn(n,"type")&&t(o,r)},_L=function(e){kL(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},xL=function(e,t){kL(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},CL=function(e,t,n){if(e.selectsOver){var r=eh.getValue(t),o=e.getDisplayText(r),i=eh.getValue(n),a=e.getDisplayText(i);return 0===a.indexOf(o)?P.some((function(){wL(e,t,n),xL(t,o.length)})):P.none()}return P.none()},zL=w("alloy.typeahead.itemexecute"),SL=function(e,t,n,r){var o=function(t,n,o){e.previewing.set(!1);var i=yA.getCoupled(t,"sandbox");if(yp.isOpen(i))yv.getCurrent(i).each((function(e){ry.getHighlighted(e).fold((function(){o(e)}),(function(){Tc(i,e.element,"keydown",n)}))}));else{var c=function(e){yv.getCurrent(e).each(o)};zA(e,a(t),t,i,r,c,WE.HighlightFirst).get(h)}},i=IE(e),a=function(e){return function(t){return t.map((function(t){var n=ze(t.menus),r=re(n,(function(e){return Y(e.items,(function(e){return"item"===e.type}))})),o=eh.getState(e);return o.update($(r,(function(e){return e.data}))),t}))}},c=[Yw.config({}),eh.config({onSetValue:e.onSetValue,store:E({mode:"dataset",getDataKey:function(e){return ds(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){ms(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return ma("initialValue",e)})).getOr({}))}),bL.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var o=yA.getCoupled(t,"sandbox"),i=Yw.isFocused(t);if(i&&ds(t.element).length>=e.minChars){var c=yv.getCurrent(o).bind((function(e){return ry.getHighlighted(e).map(eh.getValue)}));e.previewing.set(!0);var u=function(t){yv.getCurrent(o).each((function(t){c.fold((function(){e.model.selectsOver&&ry.highlightFirst(t)}),(function(e){ry.highlightBy(t,(function(t){var n=eh.getValue(t);return n.value===e.value})),ry.getHighlighted(t).orThunk((function(){return ry.highlightFirst(t),P.none()}))}))}))};zA(e,a(t),t,o,r,u,WE.HighlightFirst).get(h)}},cancelEvent:ac()}),Ew.config({mode:"special",onDown:function(e,t){return o(e,t,ry.highlightFirst),P.some(!0)},onEscape:function(e){var t=yA.getCoupled(e,"sandbox");return yp.isOpen(t)?(yp.close(t),P.some(!0)):P.none()},onUp:function(e,t){return o(e,t,ry.highlightLast),P.some(!0)},onEnter:function(t){var n=yA.getCoupled(t,"sandbox"),r=yp.isOpen(n);if(r&&!e.previewing.get())return yv.getCurrent(n).bind((function(e){return ry.getHighlighted(e)})).map((function(e){return xc(t,zL(),{item:e}),!0}));var o=eh.getValue(t);return _c(t,ac()),e.onExecute(n,t,o),r&&yp.close(n),P.some(!0)}}),pk.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),yA.config({others:{sandbox:function(t){return DA(e,t,{onOpen:function(){return pk.on(t)},onClose:function(){return pk.off(t)}})}}}),jw("typeaheadevents",[Wc((function(t){var n=h;TA(e,a(t),t,r,n,WE.HighlightFirst).get(h)})),Mc(zL(),(function(t,n){var r=yA.getCoupled(t,"sandbox");wL(e.model,t,n.event.item),_c(t,ac()),e.onItemExecute(t,r,n.event.item,eh.getValue(t)),yp.close(r),_L(t)}))].concat(e.dismissOnBlur?[Mc(Qa(),(function(e){var t=yA.getCoupled(e,"sandbox");Tf(t.element).isNone()&&yp.close(t)}))]:[]))];return{uid:e.uid,dom:FE(_o(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:E(E({},i),rh(e.typeaheadBehaviours,c)),eventOrder:e.eventOrder}},TL=w([Fi("lazySink"),Ei("fetch"),Ki("minChars",5),Ki("responseTime",1e3),cl("onOpen"),Ki("getHotspot",P.some),Ki("getAnchorOverrides",w({})),Ki("layouts",P.none()),Ki("eventOrder",{}),ra("model",{},[Ki("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Ki("selectsOver",!0),Ki("populateFromBrowse",!0)]),cl("onSetValue"),ul("onExecute"),cl("onItemExecute"),Ki("inputClasses",[]),Ki("inputAttributes",{}),Ki("inputStyles",{}),Ki("matchWidth",!0),Ki("useMinWidth",!1),Ki("dismissOnBlur",!0),il(["openClass"]),Fi("initialData"),th("typeaheadBehaviours",[Yw,eh,bL,Ew,pk,yA]),Ti("previewing",(function(){return oa(!0)}))].concat(LE()).concat(NA())),OL=w([Rh({schema:[ol()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){CL(e.model,r,n).fold((function(){return ry.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&wL(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return xc(e,zL(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&wL(e.model,t,n)}))}}}})]),EL=mv({name:"Typeahead",configFields:TL(),partFields:OL(),factory:SL}),AL=function(e){var t=function(){return AL(e.toCached())},n=function(t){return AL(e.bind((function(e){return e.fold((function(e){return eA.pure(ro.error(e))}),(function(e){return t(e)}))})))},r=function(t){return AL(e.map((function(e){return e.bind(t)})))},o=function(t){return AL(e.map((function(e){return e.map(t)})))},i=function(t){return AL(e.map((function(e){return e.mapError(t)})))},a=function(t,n){return e.map((function(e){return e.fold(t,n)}))},c=function(t,n){return AL(eA.nu((function(r){var o=!1,i=setTimeout((function(){o=!0,r(ro.error(n()))}),t);e.get((function(e){o||(clearTimeout(i),r(e))}))})))};return E(E({},e),{toCached:t,bindFuture:n,bindResult:r,mapResult:o,mapError:i,foldResult:a,withTimeout:c})},DL=function(e){return AL(eA.nu(e))},ML=function(e){return AL(eA.pure(ro.value(e)))},NL=function(e){return AL(eA.pure(ro.error(e)))},RL=function(e){return AL(eA.pure(e))},BL=function(e){return AL(e.map(ro.value))},PL=function(e){return DL((function(t){e.then((function(e){t(ro.value(e))}),(function(e){t(ro.error(e))}))}))},LL={nu:DL,wrap:AL,pure:ML,value:ML,error:NL,fromResult:RL,fromFuture:BL,fromPromise:PL},IL={type:"separator"},HL=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:h}},FL=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:h}},jL=function(e){return $(e,HL)},VL=function(e,t){return Y(t,(function(t){return t.type===e}))},UL=function(e,t){return jL(VL(e,t))},qL=function(e){return UL("header",e.targets)},WL=function(e){return UL("anchor",e.targets)},$L=function(e){return P.from(e.anchorTop).map((function(e){return FL("<top>",e)})).toArray()},GL=function(e){return P.from(e.anchorBottom).map((function(e){return FL("<bottom>",e)})).toArray()},KL=function(e){return $(e,(function(e){return FL(e,e)}))},XL=function(e){return Q(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(IL,t)}),[])},YL=function(e,t){var n=e.toLowerCase();return Y(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return Ve(t.toLowerCase(),n)||Ve(e.value.toLowerCase(),n)}))},JL=function(e,t,n){var r=eh.getValue(t),o=void 0!==r.meta.text?r.meta.text:r.value,i=n.getLinkInformation();return i.fold((function(){return[]}),(function(t){var r=YL(o,KL(n.getHistory(e)));return"file"===e?XL([r,YL(o,qL(t)),YL(o,ne([$L(t),WL(t),GL(t)]))]):r}))},QL=ou("aria-invalid"),ZL=function(e,t,n){var r,o=t.shared.providers,i=function(t){var r=eh.getValue(t);n.addToHistory(r.value,e.filetype)},a=pE.parts.field({factory:EL,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":QL,type:"url"},minChars:0,responseTime:0,fetch:function(r){var o=JL(e.filetype,r,n),i=WB(o,Ux.BUBBLE_TO_SANDBOX,t,!1);return eA.pure(i)},getHotspot:function(e){return m.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(dA)&&dA.run(e).get(h)},typeaheadBehaviours:mf(ne([n.getValidationHandler().map((function(t){return dA.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){s.getOpt(e).each((function(e){Fn(e.element,"title",o.translate(t))}))}},validator:{validate:function(n){var r=eh.getValue(n);return LL.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=ro.error(e.message);n(t)}else{var r=ro.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[Lv.config({disabled:function(){return e.disabled||o.isDisabled()}}),bE.config({}),jw("urlinput-events",ne(["file"===e.filetype?[Mc(Va(),(function(t){xc(t,TE,{name:e.name})}))]:[],[Mc(Ua(),(function(t){xc(t,TE,{name:e.name}),i(t)})),Mc(Za(),(function(t){xc(t,TE,{name:e.name}),i(t)}))]]))]])),eventOrder:(r={},r[Va()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:hC(!1,1,"normal")},onExecute:function(e,t,n){xc(t,DE,{})},onItemExecute:function(t,n,r,o){i(t),xc(t,TE,{name:e.name})}}),c=e.label.map((function(e){return SE(e,o)})),u=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),P_(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:E({title:o.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))},o.icons)},s=C_(u("invalid",P.some(QL),"warning")),l=C_({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[s.asSpec()]}),f=n.getUrlPicker(e.filetype),d=ou("browser.url.event"),m=C_({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,l.asSpec()],behaviours:mf([Lv.config({disabled:function(){return e.disabled||o.isDisabled()}})])}),g=C_(ZB({name:e.name,icon:P.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return _c(e,d)}),o,[],["tox-browse-url"])),p=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[m.asSpec()],f.map((function(){return g.asSpec()})).toArray()])}},v=function(t){yv.getCurrent(t).each((function(n){var r=eh.getValue(n),o=E({fieldname:e.name},r);f.each((function(r){r(o).get((function(r){eh.setValue(n,r),xc(t,TE,{name:e.name})}))}))}))};return pE.sketch({dom:CE(),components:c.toArray().concat([p()]),fieldBehaviours:mf([Lv.config({disabled:function(){return e.disabled||o.isDisabled()},onDisabled:function(e){pE.getField(e).each(Lv.disable),g.getOpt(e).each(Lv.disable)},onEnabled:function(e){pE.getField(e).each(Lv.enable),g.getOpt(e).each(Lv.enable)}}),uS(),jw("url-input-events",[Mc(d,v)])])})},eI=function(e,t){return sE.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[x_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:D_(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){xc(t,AE,{name:"alert-banner",value:e.url})},buttonBehaviours:mf([R_()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},tI=function(e,t){var n=eh.config({store:{mode:"manual",getValue:function(e){var t=e.element.dom;return t.checked},setValue:function(e,t){var n=e.element.dom;n.checked=t}}}),r=function(e){return e.element.dom.click(),P.some(!0)},o=pE.parts.field({factory:{sketch:k},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:mf([qN.self(),Lv.config({disabled:function(){return e.disabled||t.isDisabled()}}),bE.config({}),Yw.config({}),n,Ew.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),jw("checkbox-events",[Mc(Ua(),(function(t,n){xc(t,TE,{name:e.name})}))])])}),i=pE.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:mf([jA.config({})])}),a=function(e){var n="checked"===e?"selected":"unselected";return P_(n,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},c=C_({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return pE.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[o,c.asSpec(),i],fieldBehaviours:mf([Lv.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){pE.getField(e).each(Lv.disable)},onEnabled:function(e){pE.getField(e).each(Lv.enable)}}),uS()])})},nI=function(e){return"presentation"===e.presets?sE.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):sE.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:mf([bE.config({}),Yw.config({})])})},rI=function(e){return function(t,n,r){return Se(n,"name").fold((function(){return e(n,r)}),(function(o){return t.field(o,e(n,r))}))}},oI=function(e){return function(t,n,r){var o=_o(n,{source:"dynamic"});return rI(e)(t,o,r)}},iI={bar:rI((function(e,t){return fE(e,t.shared)})),collection:rI((function(e,t){return PE(e,t.shared.providers)})),alertbanner:rI((function(e,t){return eI(e,t.shared.providers)})),input:rI((function(e,t){return lL(e,t.shared.providers)})),textarea:rI((function(e,t){return fL(e,t.shared.providers)})),label:rI((function(e,t){return QP(e,t.shared)})),iframe:oI((function(e,t){return wR(e,t.shared.providers)})),button:rI((function(e,t){return oP(e,t.shared.providers)})),checkbox:rI((function(e,t){return tI(e,t.shared.providers)})),colorinput:rI((function(e,t){return $A(e,t.shared,t.colorinput)})),colorpicker:rI(KN),dropzone:rI((function(e,t){return sR(e,t.shared.providers)})),grid:rI((function(e,t){return lR(e,t.shared)})),listbox:rI((function(e,t){return rL(e,t)})),selectbox:rI((function(e,t){return cL(e,t.shared.providers)})),sizeinput:rI((function(e,t){return vP(e,t.shared.providers)})),urlinput:rI((function(e,t){return ZL(e,t,t.urlinput)})),customeditor:rI(JN),htmlpanel:rI(nI),imagetools:rI((function(e,t){return JP(e,t.shared.providers)})),table:rI((function(e,t){return uL(e,t.shared.providers)})),panel:rI((function(e,t){return oL(e,t)}))},aI={field:function(e,t){return t}},cI=function(e,t,n){var r=_o(n,{shared:{interpreter:function(t){return uI(e,t,r)}}});return uI(e,t,r)},uI=function(e,t,n){return Se(iI,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},sI=function(e,t){var n=aI;return uI(n,e,t)},lI={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},fI=function(e,t,n){var r=12,o={maxHeightFunction:Td()},i=function(){return{type:"node",root:An(e()),node:P.from(e()),bubble:Md(r,r,lI),layouts:{onRtl:function(){return[d_]},onLtr:function(){return[f_]}},overrides:o}},a=function(){return{type:"hotspot",hotspot:t(),bubble:Md(-r,r,lI),layouts:{onRtl:function(){return[jl]},onLtr:function(){return[Vl]}},overrides:o}};return function(){return n()?i():a()}},dI=function(e,t,n){var r=function(){return{type:"node",root:An(e()),node:P.from(e()),layouts:{onRtl:function(){return[m_]},onLtr:function(){return[m_]}}}},o=function(){return{type:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[$l]},onLtr:function(){return[$l]}}}};return function(){return n()?r():o()}},mI=function(e,t){return function(){return{type:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return P.some(Cm.range(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(t.endContainer),t.endOffset))}}}},gI=function(e){return function(t){return{type:"node",root:e(),node:t}}},pI=function(e,t,n){var r=Vz(e),o=function(){return tt.fromDom(e.getBody())},i=function(){return tt.fromDom(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:fI(i,t,a),banner:dI(i,t,a),cursor:mI(e,o),node:gI(o)}},hI=function(e){return function(t,n){var r=eO(e);r(t,n)}},vI=function(e){return function(){return BT(e)}},yI=function(e){return function(){return LT(e)}},bI=function(e){return function(){return $T(e)}},wI=function(e){return{colorPicker:hI(e),hasCustomColors:vI(e),getColors:yI(e),getColorCols:bI(e)}},kI=function(e){return function(){return Gz(e)}},_I=function(e){return{isDraggableModal:kI(e)}},xI=function(e){var t=oa(Lz(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}},CI=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],zI=function(e){return Te(e,"items")},SI=function(e){return Te(e,"block")},TI=function(e){return Te(e,"inline")},OI=function(e){return Te(e,"selector")},EI=function(e){return Q(e,(function(e,t){if(zI(t)){var n=EI(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(TI(t)||SI(t)||OI(t)){var r=i(t.name)?t.name:t.title.toLowerCase(),o="custom-"+r;return{customFormats:e.customFormats.concat([{name:o,format:t}]),formats:e.formats.concat([{title:t.title,format:o,icon:t.icon}])}}return E(E({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},AI=function(e,t){var n=EI(t),r=function(t){G(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},DI=function(e){return xz(e).map((function(t){var n=AI(e,t);return Cz(e)?CI.concat(n):n})).getOr(CI)},MI=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return _o(e,r)},NI=function(e,t,n,r){var o=function(e){return MI(e,n,r)},a=function(e){var t={type:"submenu"};return _o(e,t)},c=function(t){var o=i(t.name)?t.name:ou(t.title),a="custom-"+o,c={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},u=_o(t,c);return e.formatter.register(o,u),u},u=function(e){return $(e,(function(e){var t=pe(e);if(Oe(e,"items")){var n=u(e.items);return _o(a(e),{getStyleItems:w(n)})}return Oe(e,"format")?o(e):1===t.length&&V(t,"title")?_o(e,{type:"separator"}):c(e)}))};return u(t)},RI=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?P.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):P.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[e.format]},o=oa([]),i=oa([]),a=oa([]),c=oa([]),u=oa(!1);e.on("PreInit",(function(a){var c=DI(e),u=NI(e,c,t,n);o.set(u),i.set(re(u,r))})),e.on("addStyleModifications",(function(o){var i=NI(e,o.items,t,n);a.set(i),u.set(o.replace),c.set(re(i,r))}));var s=function(){var e=u.get()?[]:o.get(),t=a.get();return e.concat(t)},l=function(){var e=u.get()?[]:i.get(),t=c.get();return e.concat(t)};return{getData:s,getFlattenedKeys:l}},BI=function(e){return d(e)&&1===e.nodeType},PI=QN.trim,LI=function(e){return function(t){if(BI(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},II=LI("true"),HI=LI("false"),FI=function(e,t,n,r,o){return{type:e,title:t,url:n,level:r,attach:o}},jI=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return II(e)}return!1},VI=function(e,t){return $(Xm(tt.fromDom(t),e),(function(e){return e.dom}))},UI=function(e){return e.innerText||e.textContent},qI=function(e){return e.id?e.id:ou("h")},WI=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},$I=function(e){return WI(e)&&KI(e)},GI=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},KI=function(e){return jI(e)&&!HI(e)},XI=function(e){return GI(e)&&KI(e)},YI=function(e){return GI(e)?parseInt(e.nodeName.substr(1),10):0},JI=function(e){var t=qI(e),n=function(){e.id=t};return FI("header",UI(e),"#"+t,YI(e),n)},QI=function(e){var t=e.id||e.name,n=UI(e);return FI("anchor",n||"#"+t,"#"+t,0,h)},ZI=function(e){return $(Y(e,XI),JI)},eH=function(e){return $(Y(e,$I),QI)},tH=function(e){var t=VI("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},nH=function(e){return PI(e.title).length>0},rH=function(e){var t=tH(e);return Y(ZI(t).concat(eH(t)),nH)},oH={find:rH},iH="tinymce-url-history",aH=5,cH=function(e){return i(e)&&/^https?/.test(e)},uH=function(e){return c(e)&&e.length<=aH&&oe(e,cH)},sH=function(e){return a(e)&&Ce(e,(function(e){return!uH(e)})).isNone()},lH=function(){var e,t=ST.getItem(iH);if(null===t)return{};try{e=JSON.parse(t)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+iH+" was not valid JSON",n),{};throw n}return sH(e)?e:(console.log("Local storage "+iH+" was not valid format",e),{})},fH=function(e){if(!sH(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));ST.setItem(iH,JSON.stringify(e))},dH=function(e){var t=lH();return Se(t,e).getOr([])},mH=function(e,t){if(cH(e)){var n=lH(),r=Se(n,t).getOr([]),o=Y(r,(function(t){return t!==e}));n[t]=[e].concat(o).slice(0,aH),fH(n)}},gH=function(e){return!!e},pH=function(e){return ye(QN.makeMap(e,/[, ]/),gH)},hH=function(e){return P.from(Jz(e)).filter(m)},vH=function(e){var t=P.some(Qz(e)).filter(gH),n=P.some(Zz(e)).filter(gH),r=t.or(n).map(pH);return hH(e).fold(S,(function(e){return r.fold(T,(function(e){return pe(e).length>0&&e}))}))},yH=function(e,t){var n=vH(e);return s(n)?n?hH(e):P.none():n[t]?hH(e):P.none()},bH=function(e,t){return yH(e,t).map((function(n){return function(r){return eA.nu((function(o){var c=function(e,t){if(!i(e))throw new Error("Expected value to be string");if(void 0!==t&&!a(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};o(n)},u=E({filetype:t,fieldname:r.fieldname},P.from(r.meta).getOr({}));n.call(e,c,r.value,u)}))}}))},wH=function(e){return P.from(e).filter(i).getOrUndefined()},kH=function(e){return eS(e)?P.none():P.some({targets:oH.find(e.getBody()),anchorTop:wH(tS(e)),anchorBottom:wH(nS(e))})},_H=function(e){return P.from(rS(e))},xH=function(e){return{getHistory:dH,addToHistory:mH,getLinkInformation:function(){return kH(e)},getValidationHandler:function(){return _H(e)},getUrlPicker:function(t){return bH(e,t)}}},CH=function(e,t,n){var r=oa(!1),o=xI(t),i={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:z_.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return sI(e,i)},anchors:pI(t,n,o.isPositionedAtTop),header:o,getSink:function(){return ro.value(e)}},urlinput:xH(t),styleselect:RI(t),colorinput:wI(t),dialog:_I(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return i},zH=function(e,t,n){var r=function(e,r){G([t,n],(function(t){t.broadcastEvent(e,r)}))},o=function(e,r){G([t,n],(function(t){t.broadcastOn([e],r)}))},i=function(e){return o(bp(),{target:e.target})},a=_f(),c=ad(a,"touchstart",i),u=ad(a,"touchmove",(function(e){return r(uc(),e)})),s=ad(a,"touchend",(function(e){return r(sc(),e)})),l=ad(a,"mousedown",i),f=ad(a,"mouseup",(function(e){0===e.raw.button&&o(kp(),{target:e.target})})),d=function(e){return o(bp(),{target:tt.fromDom(e.target)})},m=function(e){0===e.button&&o(kp(),{target:tt.fromDom(e.target)})},g=function(){G(e.editorManager.get(),(function(t){e!==t&&t.fire("DismissPopups",{relatedTarget:e})}))},p=function(e){return r(lc(),ud(e))},h=function(e){o(wp(),{}),r(fc(),ud(e))},v=function(){return o(wp(),{})},y=function(t){t.state&&o(bp(),{target:tt.fromDom(e.getContainer())})},b=function(e){o(bp(),{target:tt.fromDom(e.relatedTarget.getContainer())})};e.on("PostRender",(function(){e.on("click",d),e.on("tap",d),e.on("mouseup",m),e.on("mousedown",g),e.on("ScrollWindow",p),e.on("ResizeWindow",h),e.on("ResizeEditor",v),e.on("AfterProgressState",y),e.on("DismissPopups",b)})),e.on("remove",(function(){e.off("click",d),e.off("tap",d),e.off("mouseup",m),e.off("mousedown",g),e.off("ScrollWindow",p),e.off("ResizeWindow",h),e.off("ResizeEditor",v),e.off("AfterProgressState",y),e.off("DismissPopups",b),l.unbind(),c.unbind(),u.unbind(),s.unbind(),f.unbind()})),e.on("detach",(function(){Qg(t),Qg(n),t.destroy(),n.destroy()}))},SH=nv,TH=Ih,OH=w([Ki("shell",!1),Ei("makeItem"),Ki("setupItem",h),oh.field("listBehaviours",[Hw])]),EH=function(){return{behaviours:mf([Hw.config({})])}},AH=Bh({name:"items",overrides:EH}),DH=w([AH]),MH=w("CustomList"),NH=function(e,t,n,r){var o=function(t,n){a(t).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var o=Hw.contents(r),i=n.length,a=i-o.length,c=a>0?q(a,(function(){return e.makeItem()})):[],u=o.slice(i);G(u,(function(e){return Hw.remove(r,e)})),G(c,(function(e){return Hw.append(r,e)}));var s=Hw.contents(r);G(s,(function(r,o){e.setupItem(t,r,n[o],o)}))}))},i=e.shell?{behaviours:[Hw.config({})],components:[]}:{behaviours:[],components:t},a=function(t){return e.shell?P.some(t):Kh(t,e,"items")};return{uid:e.uid,dom:e.dom,components:i.components,behaviours:rh(e.listBehaviours,i.behaviours),apis:{setItems:o}}},RH=mv({name:MH(),configFields:OH(),partFields:DH(),factory:NH,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),BH=w([Ei("dom"),Ki("shell",!0),th("toolbarBehaviours",[Hw])]),PH=function(){return{behaviours:mf([Hw.config({})])}},LH=w([Bh({name:"groups",overrides:PH})]),IH=function(e,t,n,r){var o=function(e,t){i(e).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){Hw.set(e,t)}))},i=function(t){return e.shell?P.some(t):Kh(t,e,"groups")},a=e.shell?{behaviours:[Hw.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:rh(e.toolbarBehaviours,a.behaviours),apis:{setGroups:o},domModification:{attributes:{role:"group"}}}},HH=mv({name:"Toolbar",configFields:BH(),partFields:LH(),factory:IH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),FH=h,jH=S,VH=w([]),UH=Object.freeze({__proto__:null,setup:FH,isDocked:jH,getBehaviours:VH}),qH=function(e){var t=Ee(Zn(e,"position"),"fixed"),n=t?P.none():bn(e);return n.orThunk((function(){var t=tt.fromTag("span");return vn(e).bind((function(e){Ar(e,t);var n=bn(t);return Br(t),n}))}))},WH=function(e){return qH(e).map(mr).getOrThunk((function(){return lr(0,0)}))},$H=aa.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),GH=function(e,t){var n=e.element;is(n,t.transitionClass),cs(n,t.fadeOutClass),is(n,t.fadeInClass),t.onShow(e)},KH=function(e,t){var n=e.element;is(n,t.transitionClass),cs(n,t.fadeInClass),is(n,t.fadeOutClass),t.onHide(e)},XH=function(e,t){return e.y<t.bottom&&e.bottom>t.y},YH=function(e,t){return e.y>=t.y},JH=function(e,t){return e.bottom<=t.bottom},QH=function(e,t,n){return oe(e,(function(e){switch(e){case"bottom":return JH(t,n);case"top":return YH(t,n)}}))},ZH=function(e,t){return t.getInitialPos().map((function(t){return Yr(t.bounds.x,t.bounds.y,vr(e),ar(e))}))},eF=function(e,t,n){n.setInitialPos({style:er(e),position:Jn(e,"position")||"static",bounds:t})},tF=function(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return P.some($H.static());case"absolute":var o=qH(e).map(Jr).getOrThunk((function(){return Jr(Ln())}));return P.some($H.absolute(Ef("absolute",Se(r.style,"left").map((function(e){return t.x-o.x})),Se(r.style,"top").map((function(e){return t.y-o.y})),Se(r.style,"right").map((function(e){return o.right-t.right})),Se(r.style,"bottom").map((function(e){return o.bottom-t.bottom})))));default:return P.none()}}))},nF=function(e,t,n){return ZH(e,n).filter((function(e){return QH(n.getModes(),e,t)})).bind((function(t){return tF(e,t,n)}))},rF=function(e,t,n){var r=Jr(e);if(QH(n.getModes(),r,t))return P.none();eF(e,r,n);var o=Zr(),i=r.x-o.x,a=t.y-o.y,c=o.bottom-t.bottom,u=r.y<=t.y;return P.some($H.fixed(Ef("fixed",P.some(i),u?P.some(a):P.none(),P.none(),u?P.none():P.some(c))))},oF=function(e,t,n){var r=e.element,o=Ee(Zn(r,"position"),"fixed");return o?nF(r,t,n):rF(r,t,n)},iF=function(e,t){var n=e.element;return ZH(n,t).bind((function(e){return tF(n,e,t)}))},aF=function(e,t,n){n.setDocked(!1),G(["left","right","top","bottom","position"],(function(t){return nr(e.element,t)})),t.onUndocked(e)},cF=function(e,t,n,r){var o="fixed"===r.position;n.setDocked(o),Df(e.element,r);var i=o?t.onDocked:t.onUndocked;i(e)},uF=function(e,t,n,r,o){void 0===o&&(o=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(i){var a=XH(i,r);if(a!==n.isVisible())if(n.setVisible(a),o&&!a)ss(e.element,[t.fadeOutClass]),t.onHide(e);else{var c=a?GH:KH;c(e,t)}}))}))},sF=function(e,t,n){var r=t.lazyViewport(e),o=n.isDocked();o&&uF(e,t,n,r),oF(e,r,n).each((function(o){o.fold((function(){return aF(e,t,n)}),(function(r){return cF(e,t,n,r)}),(function(o){uF(e,t,n,r,!0),cF(e,t,n,o)}))}))},lF=function(e,t,n){var r=e.element;n.setDocked(!1),iF(e,n).each((function(r){r.fold((function(){return aF(e,t,n)}),(function(r){return cF(e,t,n,r)}),h)})),n.setVisible(!0),t.contextual.each((function(t){ls(r,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),fF(e,t,n)},fF=function(e,t,n){e.getSystem().isConnected()&&sF(e,t,n)},dF=function(e,t,n){n.isDocked()&&lF(e,t,n)},mF=function(e,t,n){return n.isDocked()},gF=function(e,t,n,r){return n.setModes(r)},pF=function(e,t,n){return n.getModes()},hF=Object.freeze({__proto__:null,refresh:fF,reset:dF,isDocked:mF,getModes:pF,setModes:gF}),vF=function(e,t){return Oc([jc($a(),(function(n,r){e.contextual.each((function(e){if(us(n.element,e.transitionClass)){ls(n.element,[e.transitionClass,e.fadeInClass]);var o=t.isVisible()?e.onShown:e.onHidden;o(n)}r.stop()}))})),Mc(lc(),(function(n,r){fF(n,e,t)})),Mc(fc(),(function(n,r){dF(n,e,t)}))])},yF=Object.freeze({__proto__:null,events:vF}),bF=[$i("contextual",[Mi("fadeInClass"),Mi("fadeOutClass"),Mi("transitionClass"),Bi("lazyContext"),cl("onShow"),cl("onShown"),cl("onHide"),cl("onHidden")]),ea("lazyViewport",Zr),na("modes",["top","bottom"],si),cl("onDocked"),cl("onUndocked")],wF=function(e){var t=oa(!1),n=oa(!0),r=od(),o=oa(e.modes),i=function(){return"docked: "+t.get()+", visible: "+n.get()+", modes: "+o.get().join(",")};return zu({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:o.get,setModes:o.set,readState:i})},kF=Object.freeze({__proto__:null,init:wF}),_F=pf({fields:bF,name:"docking",active:yF,apis:hF,state:kF}),xF=w(ou("toolbar-height-change")),CF={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},zF="tox-tinymce--toolbar-sticky-on",SF="tox-tinymce--toolbar-sticky-off",TF=function(e,t){var n=mn(t),r=n.dom.defaultView.innerHeight,o=Lr(n),i=tt.fromDom(e.elm),a=Qr(i),c=ar(i),u=a.y,s=u+c,l=mr(t),f=ar(t),d=l.top,m=d+f,g=Math.abs(d-o.top)<2,p=Math.abs(m-(o.top+r))<2;if(g&&u<m)Ir(o.left,u-f,n);else if(p&&s>d){var h=u-r+c+f;Ir(o.left,h,n)}},OF=function(e,t){return V(_F.getModes(e),t)},EF=function(e){var t=function(e){return cr(e)+(parseInt(Jn(e,"margin-top"),10)||0)+(parseInt(Jn(e,"margin-bottom"),10)||0)},n=e.element;vn(n).each((function(r){var o="padding-"+_F.getModes(e)[0];if(_F.isDocked(e)){var i=vr(r);Kn(n,"width",i+"px"),Kn(r,o,t(n)+"px")}else nr(n,"width"),nr(r,o)}))},AF=function(e,t){t?(cs(e,CF.fadeOutClass),ss(e,[CF.transitionClass,CF.fadeInClass])):(cs(e,CF.fadeInClass),ss(e,[CF.fadeOutClass,CF.transitionClass]))},DF=function(e,t){var n=tt.fromDom(e.getContainer());t?(is(n,zF),cs(n,SF)):(is(n,SF),cs(n,zF))},MF=function(e,t){var n=mn(t);Sf(n).filter((function(e){return!sn(t,e)})).filter((function(t){return sn(t,tt.fromDom(n.dom.body))||dn(e,t)})).each((function(){return xf(t)}))},NF=function(e,t){return Tf(e).orThunk((function(){return t().toOptional().bind((function(e){return Tf(e.element)}))}))},RF=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(_F.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(EF)})),e.on("SkinLoaded",(function(){n().each((function(e){_F.isDocked(e)?_F.reset(e):_F.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(_F.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){_F.refresh(t);var n=t.element;Jy(n)&&TF(e,n)}))})),e.on("PostRender",(function(){DF(e,!1)}))},BF=function(e){return e().map(_F.isDocked).getOr(!1)},PF=function(){var e;return[bf.config({channels:(e={},e[xF()]={onReceive:EF},e)})]},LF=function(e,t){var n=od(),r=t.getSink,o=function(e){r().each((function(t){return e(t.element)}))},i=function(t){e.inline||EF(t),DF(e,_F.isDocked(t)),t.getSystem().broadcastOn([wp()],{}),r().each((function(e){return e.getSystem().broadcastOn([wp()],{})}))},a=e.inline?[]:PF();return D([Yw.config({}),_F.config({contextual:E({lazyContext:function(t){var n=cr(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),o=Jr(tt.fromDom(r)),i=o.height-n,a=o.y+(OF(t,"top")?0:n);return P.some(Yr(o.x,a,o.width,i))},onShow:function(){o((function(e){return AF(e,!0)}))},onShown:function(e){o((function(e){return ls(e,[CF.transitionClass,CF.fadeInClass])})),n.get().each((function(t){MF(e.element,t),n.clear()}))},onHide:function(e){NF(e.element,r).fold(n.clear,n.set),o((function(e){return AF(e,!1)}))},onHidden:function(){o((function(e){return ls(e,[CF.transitionClass])}))}},CF),lazyViewport:function(t){var n=Zr(),r=$z(e),o=n.y+(OF(t,"top")?r:0),i=n.height-(OF(t,"bottom")?r:0);return Yr(n.x,o,n.width,i)},modes:[t.header.getDockingMode()],onDocked:i,onUndocked:i})],a,!0)},IF=Object.freeze({__proto__:null,setup:RF,isDocked:BF,getBehaviours:LF}),HF=function(e){var t=e.editor,n=e.sticky?LF:VH;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:mf(n(t,e.sharedBackstage))}},FF=ei([Mi("type"),Ai("items",ni([ii([Mi("name"),Hi("items",si)]),si]))].concat(Cx)),jF=function(e){return wi("GroupToolbarButton",FF,e)},VF=[Ui("text"),Ui("tooltip"),Ui("icon"),Bi("fetch"),ea("onSetup",(function(){return h}))],UF=ei(D([Mi("type")],VF,!0)),qF=function(e){return wi("menubutton",UF,e)},WF=ei([Mi("type"),Ui("tooltip"),Ui("icon"),Ui("text"),qi("select"),Bi("fetch"),ea("onSetup",(function(){return h})),Qi("presets","normal",["normal","color","listpreview"]),Ki("columns",1),Bi("onAction"),Bi("onItemAction")]),$F=function(e){return wi("SplitButton",WF,e)},GF=function(e,t){var n=function(e,n){var r=$(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=qF(n).mapError((function(e){return xi(e)})).getOrDie();return GB(r,"tox-mbtn",t.backstage,P.some("menuitem"))}));Hw.set(e,r)},r={focus:Ew.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:mf([Hw.config({}),jw("menubar-events",[Vc((function(t){e.onSetup(t)})),Mc(La(),(function(e,t){Is(e.element,".tox-mbtn--active").each((function(n){Hs(t.event.target,".tox-mbtn").each((function(t){sn(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){LA.expand(e),LA.close(n),Yw.focus(e)}))}))}))}))})),Mc(hc(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){LA.isOpen(n)&&(LA.expand(e),LA.close(n))}))}))}))]),Ew.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),P.some(!0)}}),bE.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},KF=dv({factory:GF,name:"silver.Menubar",configFields:[Ei("dom"),Ei("uid"),Ei("onEscape"),Ei("backstage"),Ki("onSetup",h)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),XF=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},YF=function(e){return e.dimension.property},JF=function(e,t){return e.dimension.getDimension(t)},QF=function(e,t){var n=XF(e,t);ls(n,[t.shrinkingClass,t.growingClass])},ZF=function(e,t){cs(e.element,t.openClass),is(e.element,t.closedClass),Kn(e.element,YF(t),"0px"),rr(e.element)},ej=function(e,t){cs(e.element,t.closedClass),is(e.element,t.openClass),nr(e.element,YF(t))},tj=function(e,t,n,r){n.setCollapsed(),Kn(e.element,YF(t),JF(t,e.element)),rr(e.element),QF(e,t),ZF(e,t),t.onStartShrink(e),t.onShrunk(e)},nj=function(e,t,n,r){var o=r.getOrThunk((function(){return JF(t,e.element)}));n.setCollapsed(),Kn(e.element,YF(t),o),rr(e.element);var i=XF(e,t);cs(i,t.growingClass),is(i,t.shrinkingClass),ZF(e,t),t.onStartShrink(e)},rj=function(e,t,n){var r=JF(t,e.element),o="0px"===r?tj:nj;o(e,t,n,P.some(r))},oj=function(e,t,n){var r=XF(e,t),o=us(r,t.shrinkingClass),i=JF(t,e.element);ej(e,t);var a=JF(t,e.element),c=function(){Kn(e.element,YF(t),i),rr(e.element)},u=function(){ZF(e,t)},s=o?c:u;s(),cs(r,t.shrinkingClass),is(r,t.growingClass),ej(e,t),Kn(e.element,YF(t),a),n.setExpanded(),t.onStartGrow(e)},ij=function(e,t,n){if(n.isExpanded()){nr(e.element,YF(t));var r=JF(t,e.element);Kn(e.element,YF(t),r)}},aj=function(e,t,n){n.isExpanded()||oj(e,t,n)},cj=function(e,t,n){n.isExpanded()&&rj(e,t,n)},uj=function(e,t,n){n.isExpanded()&&tj(e,t,n)},sj=function(e,t,n){return n.isExpanded()},lj=function(e,t,n){return n.isCollapsed()},fj=function(e,t,n){var r=XF(e,t);return!0===us(r,t.growingClass)},dj=function(e,t,n){var r=XF(e,t);return!0===us(r,t.shrinkingClass)},mj=function(e,t,n){return fj(e,t)||dj(e,t)},gj=function(e,t,n){var r=n.isExpanded()?rj:oj;r(e,t,n)},pj=Object.freeze({__proto__:null,refresh:ij,grow:aj,shrink:cj,immediateShrink:uj,hasGrown:sj,hasShrunk:lj,isGrowing:fj,isShrinking:dj,isTransitioning:mj,toggleGrow:gj,disableTransitions:QF}),hj=function(e,t,n){var r=t.expanded;return Au(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:ma(t.dimension.property,"0px")})},vj=function(e,t){return Oc([jc($a(),(function(n,r){var o=r.event.raw;if(o.propertyName===e.dimension.property){QF(n,e),t.isExpanded()&&nr(n.element,e.dimension.property);var i=t.isExpanded()?e.onGrown:e.onShrunk;i(n)}}))])},yj=Object.freeze({__proto__:null,exhibit:hj,events:vj}),bj=[Ei("closedClass"),Ei("openClass"),Ei("shrinkingClass"),Ei("growingClass"),Fi("getAnimationRoot"),cl("onShrunk"),cl("onStartShrink"),cl("onGrown"),cl("onStartGrow"),Ki("expanded",!1),Ai("dimension",Ci("property",{width:[fl("property","width"),fl("getDimension",(function(e){return vr(e)+"px"}))],height:[fl("property","height"),fl("getDimension",(function(e){return ar(e)+"px"}))]}))],wj=function(e){var t=oa(e.expanded),n=function(){return"expanded: "+t.get()};return zu({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:x(t.set,!1),setExpanded:x(t.set,!0),readState:n})},kj=Object.freeze({__proto__:null,init:wj}),_j=pf({fields:bj,name:"sliding",active:yj,apis:pj,state:kj}),xj="container",Cj=[th("slotBehaviours",[])],zj=function(e){return"<alloy.field."+e+">"},Sj=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Uh(xj,zj(t),n)};return{slot:t,record:w(e)}}(),n=e(t),r=t.record(),o=$(r,(function(e){return Nh({name:e,pname:zj(e)})}));return av(xj,Cj,o,Tj,n)},Tj=function(e,t){var n=function(t){return Qh(e)},r=function(t,n){return Kh(t,e,n)},o=function(t,n){return function(r,o){return Kh(r,e,o).map((function(e){return t(e,o)})).getOr(n)}},i=function(e){return function(t,n){G(n,(function(n){return e(t,n)}))}},a=function(e,t){return"true"!==Vn(e.element,"aria-hidden")},c=function(e,t){if(!a(e)){var n=e.element;nr(n,"display"),Wn(n,"aria-hidden"),xc(e,vc(),{name:t,visible:!0})}},u=function(e,t){if(a(e)){var n=e.element;Kn(n,"display","none"),Fn(n,"aria-hidden","true"),xc(e,vc(),{name:t,visible:!1})}},s=o(a,!1),l=o(u),f=i(l),d=function(e){return f(e,n())},m=o(c),g={getSlotNames:n,getSlot:r,isShowing:s,hideSlot:l,hideAllSlots:d,showSlot:m};return{uid:e.uid,dom:e.dom,components:t,behaviours:nh(e.slotBehaviours),apis:g}},Oj=ye({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return xu(e)})),Ej=E(E({},Oj),{sketch:Sj}),Aj=ei([Ui("icon"),Ui("tooltip"),ea("onShow",h),ea("onHide",h),ea("onSetup",(function(){return h}))]),Dj=function(e){return wi("sidebar",Aj,e)},Mj=function(e){var t=e.ui.registry.getAll().sidebars;G(pe(t),(function(n){var r=t[n],o=function(){return Ee(P.from(e.queryCommandValue("ToggleSidebar")),n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(o())},onSetup:function(t){var n=function(){return t.setActive(o())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},Nj=function(e){return{element:function(){return e.element.dom}}},Rj=function(e,t){var n=$(pe(t),(function(e){var n=t[e],r=ki(Dj(n));return{name:e,getApi:Nj,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return $(n,(function(t){var r=oa(h);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:QC.unnamedEvents([pS(t,r),hS(t,r),Mc(vc(),(function(e,t){var r=t.event,o=ee(n,(function(e){return e.name===r.name}));o.each((function(t){var n=r.visible?t.onShow:t.onHide;n(t.getApi(e))}))}))])})}))},Bj=function(e){return Ej.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Rj(t,e),slotBehaviours:QC.unnamedEvents([Vc((function(e){return Ej.hideAllSlots(e)}))])}}))},Pj=function(e,t){var n=yv.getCurrent(e);n.each((function(e){return Hw.set(e,[Bj(t)])}))},Lj=function(e,t){var n=yv.getCurrent(e);n.each((function(e){var n=yv.getCurrent(e);n.each((function(n){_j.hasGrown(e)?Ej.isShowing(n,t)?_j.shrink(e):(Ej.hideAllSlots(n),Ej.showSlot(n,t)):(Ej.hideAllSlots(n),Ej.showSlot(n,t),_j.grow(e))}))}))},Ij=function(e){var t=yv.getCurrent(e);return t.bind((function(e){var t=_j.isGrowing(e)||_j.hasGrown(e);if(t){var n=yv.getCurrent(e);return n.bind((function(e){return ee(Ej.getSlotNames(e),(function(t){return Ej.isShowing(e,t)}))}))}return P.none()}))},Hj=ou("FixSizeEvent"),Fj=ou("AutoSizeEvent"),jj=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:mf([bE.config({}),Yw.config({}),_j.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){var t=yv.getCurrent(e);t.each(Ej.hideAllSlots),_c(e,Fj)},onGrown:function(e){_c(e,Fj)},onStartGrow:function(e){xc(e,Hj,{width:Zn(e.element,"width").getOr("")})},onStartShrink:function(e){xc(e,Hj,{width:vr(e.element)+"px"})}}),Hw.config({}),yv.config({find:function(e){var t=Hw.contents(e);return fe(t)}})])}],behaviours:mf([qN.childAt(0),jw("sidebar-sliding-events",[Mc(Hj,(function(e,t){Kn(e.element,"width",t.event.width)})),Mc(Fj,(function(e,t){nr(e.element,"width")}))])])}},Vj=function(e,t,n,r){Fn(e.element,"aria-busy",!0);var o=t.getRoot(e).getOr(e),i=mf([Ew.config({mode:"special",onTab:function(){return P.some(!0)},onShiftTab:function(){return P.some(!0)}}),Yw.config({})]),a=r(o,i),c=o.getSystem().build(a);Hw.append(o,Os(c)),c.hasConfigured(Ew)&&t.focus&&Ew.focusIn(c),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return Hw.remove(o,c)}))},Uj=function(e,t,n){Wn(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},qj=Object.freeze({__proto__:null,block:Vj,unblock:Uj}),Wj=[ea("getRoot",P.none),Zi("focus",!0),cl("onBlock"),cl("onUnblock")],$j=function(){var e=td(),t=function(t){e.set({destroy:t})};return zu({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})},Gj=Object.freeze({__proto__:null,init:$j}),Kj=pf({fields:Wj,name:"blocking",apis:qj,state:Gj}),Xj=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return Q(t,(function(e,t){var n;return"class"===t.name?e:E(E({},e),(n={},n[t.name]=t.value,n))}),{})},Yj=function(e){return Array.prototype.slice.call(e.dom.classList,0)},Jj=function(e){var t=tt.fromHtml(e),n=kn(t),r=Xj(t),o=Yj(t),i=0===n.length?{}:{innerHtml:Gc(t)};return E({tag:ct(t),classes:o,attributes:r},i)},Qj=function(e){return function(t,n){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Jj('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},Zj=function(e){return yv.getCurrent(e).each((function(e){return xf(e.element)}))},eV=function(e,t){var n="tabindex",r="data-mce-"+n;P.from(e.iframeElement).map(tt.fromDom).each((function(e){t?(Un(e,n).each((function(t){return Fn(e,r,t)})),Fn(e,n,-1)):(Wn(e,n),Un(e,r).each((function(t){Fn(e,n,t),Wn(e,r)})))}))},tV=function(e,t,n,r){var o=t.element;if(eV(e,n),n)Kj.block(t,Qj(r)),nr(o,"display"),Wn(o,"aria-hidden"),e.hasFocus()&&Zj(t);else{var i=yv.getCurrent(t).exists((function(e){return zf(e.element)}));Kj.unblock(t),Kn(o,"display","none"),Fn(o,"aria-hidden","true"),i&&e.focus()}},nV=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:mf([Hw.config({}),Kj.config({focus:!1}),yv.config({find:function(e){return fe(e.components())}})]),components:[]}},rV=function(e){return"focusin"===e.type},oV=function(e){if(rV(e)){var t=e.composed?fe(e.composedPath()):P.from(e.target);return t.map(tt.fromDom).filter(lt).exists((function(e){return us(e,"mce-pastebin")}))}return!1},iV=function(e,t,n){var r=oa(!1),o=od(),i=function(n){r.get()&&!oV(n)&&(n.preventDefault(),Zj(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",i),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&i(e)}))}));var a=function(o){o!==r.get()&&(r.set(o),tV(e,t(),o,n.providers),e.fire("AfterProgressState",{state:o}))};e.on("ProgressState",(function(t){if(o.on(k_.clearTimeout),g(t.time)){var n=k_.setEditorTimeout(e,(function(){return a(t.state)}),t.time);o.set(n)}else a(t.state),o.clear()}))},aV=function(e,t){var n={len:0,list:[]},r=Q(e,(function(e,n){var r=t(n,e.len);return r.fold(w(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),n);return r.list},cV=function(e,t,n){return{within:e,extra:t,withinWidth:n}},uV=function(e,t,n){var r=aV(e,(function(e,t){var r=n(e);return P.some({element:e,start:t,finish:t+r,width:r})})),o=Y(r,(function(e){return e.finish<=t})),i=J(o,(function(e,t){return e+t.width}),0),a=r.slice(o.length);return{within:o,extra:a,withinWidth:i}},sV=function(e){return $(e,(function(e){return e.element}))},lV=function(e,t,n){var r=sV(e.concat(t));return cV(r,[],n)},fV=function(e,t,n,r){var o=sV(e).concat([n]);return cV(o,sV(t),r)},dV=function(e,t,n){return cV(sV(e),[],n)},mV=function(e,t,n){var r=uV(t,e,n);return 0===r.extra.length?P.some(r):P.none()},gV=function(e,t,n,r){var o=mV(e,t,n).getOrThunk((function(){return uV(t,e-n(r),n)})),i=o.within,a=o.extra,c=o.withinWidth;return 1===a.length&&a[0].width<=n(r)?lV(i,a,c):a.length>=1?fV(i,a,r,c):dV(i,a,c)},pV=function(e,t){var n=$(t,(function(e){return Os(e)}));HH.setGroups(e,n)},hV=function(e){return ge(e,(function(e){return Tf(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}))},vV=function(e,t,n){var r=t.builtGroups.get();if(0!==r.length){var o=Xh(e,t,"primary"),i=yA.getCoupled(e,"overflowGroup");Kn(o.element,"visibility","hidden");var a=r.concat([i]),c=hV(a);n([]),pV(o,a);var u=vr(o.element),s=gV(u,t.builtGroups.get(),(function(e){return vr(e.element)}),i);0===s.extra.length?(Hw.remove(o,i),n([])):(pV(o,s.within),n(s.extra)),nr(o.element,"visibility"),rr(o.element),c.each(Yw.focus)}},yV=w([th("splitToolbarBehaviours",[yA]),Ti("builtGroups",(function(){return oa([])}))]),bV=w([il(["overflowToggledClass"]),qi("getOverflowBounds"),Ei("lazySink"),Ti("overflowGroups",(function(){return oa([])}))].concat(yV())),wV=w([Nh({factory:HH,schema:BH(),name:"primary"}),Rh({schema:BH(),name:"overflow"}),Rh({name:"overflow-button"}),Rh({name:"overflow-group"})]),kV=w((function(e,t){br(e,Math.floor(t))})),_V=w([il(["toggledClass"]),Ei("lazySink"),Bi("fetch"),qi("getBounds"),$i("fireDismissalEventInstead",[Ki("event",gc())]),Hd()]),xV=w([Rh({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:mf([pk.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Rh({factory:HH,schema:BH(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:mf([Ew.config({mode:"cyclic",onEscape:function(t){return Kh(t,e,"button").each(Yw.focus),P.none()}})])}}})]),CV=function(e,t){var n=yA.getCoupled(e,"toolbarSandbox");yp.isOpen(n)?yp.close(n):yp.open(n,t.toolbar())},zV=function(e,t,n,r){var o=n.getBounds.map((function(e){return e()})),i=n.lazySink(e).getOrDie();Ig.positionWithinBounds(i,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:kV()}}},o)},SV=function(e,t,n,r,o){HH.setGroups(t,o),zV(e,t,n,r),pk.on(e)},TV=function(e,t,n){var r=js(),o=function(o,i){n.fetch().get((function(o){SV(e,i,n,t.layouts,o),r.link(e.element),Ew.focusIn(i)}))},i=function(){pk.off(e),Yw.focus(e),r.unlink(e.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:mf([Ew.config({mode:"special",onEscape:function(e){return yp.close(e),P.some(!0)}}),yp.config({onOpen:o,onClose:i,isPartOf:function(t,n,r){return Us(n,r)||Us(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),bf.config({channels:E(E({},xp(E({isExtraPart:S},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),zp({doReposition:function(){yp.getState(yA.getCoupled(e,"toolbarSandbox")).each((function(r){zV(e,r,n,t.layouts)}))}}))})])}},OV=function(e,t,n,r){return E(E({},x_.sketch(E(E({},r.button()),{action:function(e){CV(e,r)},buttonBehaviours:oh.augment({dump:r.button().buttonBehaviours},[yA.config({others:{toolbarSandbox:function(t){return TV(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){yp.getState(yA.getCoupled(t,"toolbarSandbox")).each((function(o){SV(t,o,e,n.layouts,r)}))},reposition:function(t){yp.getState(yA.getCoupled(t,"toolbarSandbox")).each((function(r){zV(t,r,e,n.layouts)}))},toggle:function(e){CV(e,r)},getToolbar:function(e){return yp.getState(yA.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return yp.isOpen(yA.getCoupled(e,"toolbarSandbox"))}}})},EV=mv({name:"FloatingToolbarButton",factory:OV,configFields:_V(),partFields:xV(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),AV=w([Ei("items"),il(["itemSelector"]),th("tgroupBehaviours",[Ew])]),DV=w([Ph({name:"items",unit:"item"})]),MV=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:rh(e.tgroupBehaviours,[Ew.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},NV=mv({name:"ToolbarGroup",configFields:AV(),partFields:DV(),factory:MV}),RV=function(e){return $(e,(function(e){return Os(e)}))},BV=function(e,t,n){vV(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){EV.setGroups(e,RV(r))}))}))},PV=function(e,t,n,r){var o=C_(EV.sketch({fetch:function(){return eA.nu((function(t){t(RV(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[Vl,jl]},onRtl:function(){return[jl,Vl]},onBottomLtr:function(){return[ql,Ul]},onBottomRtl:function(){return[Ul,ql]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:rh(e.splitToolbarBehaviours,[yA.config({others:{overflowGroup:function(){return NV.sketch(E(E({},r["overflow-group"]()),{items:[o.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set($(n,t.getSystem().build)),BV(t,o,e)},refresh:function(t){return BV(t,o,e)},toggle:function(e){o.getOpt(e).each((function(e){EV.toggle(e)}))},isOpen:function(e){return o.getOpt(e).map(EV.isOpen).getOr(!1)},reposition:function(e){o.getOpt(e).each((function(e){EV.reposition(e)}))},getOverflow:function(e){return o.getOpt(e).bind(EV.getToolbar)}},domModification:{attributes:{role:"group"}}}},LV=mv({name:"SplitFloatingToolbar",configFields:bV(),partFields:wV(),factory:PV,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),IV=w([il(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),cl("onOpened"),cl("onClosed")].concat(yV())),HV=w([Nh({factory:HH,schema:BH(),name:"primary"}),Nh({factory:HH,schema:BH(),name:"overflow",overrides:function(e){return{toolbarBehaviours:mf([_j.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Kh(t,e,"overflow-button").each((function(e){pk.off(e),Yw.focus(e)})),e.onClosed(t)},onGrown:function(t){Ew.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Kh(t,e,"overflow-button").each(pk.on)}}),Ew.config({mode:"acyclic",onEscape:function(t){return Kh(t,e,"overflow-button").each(Yw.focus),P.some(!0)}})])}}}),Rh({name:"overflow-button",overrides:function(e){return{buttonBehaviours:mf([pk.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Rh({name:"overflow-group"})]),FV=function(e,t){return Kh(e,t,"overflow").map(_j.hasGrown).getOr(!1)},jV=function(e,t){Kh(e,t,"overflow-button").bind((function(){return Kh(e,t,"overflow")})).each((function(n){VV(e,t),_j.toggleGrow(n)}))},VV=function(e,t){Kh(e,t,"overflow").each((function(n){vV(e,t,(function(e){var t=$(e,(function(e){return Os(e)}));HH.setGroups(n,t)})),Kh(e,t,"overflow-button").each((function(e){_j.hasGrown(n)&&pk.on(e)})),_j.refresh(n)}))},UV=function(e,t,n,r){var o="alloy.toolbar.toggle",i=function(t,n){var r=$(n,t.getSystem().build);e.builtGroups.set(r)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rh(e.splitToolbarBehaviours,[yA.config({others:{overflowGroup:function(e){return NV.sketch(E(E({},r["overflow-group"]()),{items:[x_.sketch(E(E({},r["overflow-button"]()),{action:function(t){_c(e,o)}}))]}))}}}),jw("toolbar-toggle-events",[Mc(o,(function(t){jV(t,e)}))])]),apis:{setGroups:function(t,n){i(t,n),VV(t,e)},refresh:function(t){return VV(t,e)},toggle:function(t){return jV(t,e)},isOpen:function(t){return FV(t,e)}},domModification:{attributes:{role:"group"}}}},qV=mv({name:"SplitSlidingToolbar",configFields:IV(),partFields:HV(),factory:UV,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),WV=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:E({tag:"div",classes:["tox-toolbar__group"]},t),components:[NV.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:mf([bE.config({}),Yw.config({})])}},$V=function(e){return NV.sketch(WV(e))},GV=function(e,t){var n=Vc((function(t){var n=$(e.initGroups,$V);HH.setGroups(t,n)}));return mf([mS.toolbarButton(e.providers.isDisabled),uS(),Ew.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),jw("toolbar-events",[n])])},KV=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":WV({title:P.none(),items:[]}),"overflow-button":YB({name:"more",icon:P.some("more-drawer"),disabled:!1,tooltip:P.some("More..."),primary:!1,borderless:!1},P.none(),e.providers)},splitToolbarBehaviours:GV(e,t)}},XV=function(e){var t=KV(e),n=4,r=LV.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return LV.sketch(E(E({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,r=Qr(t),o=pn(t),i=Qr(o),a=Math.max(o.dom.scrollHeight,i.height);return Yr(r.x+n,i.y,r.width-2*n,a)},parts:E(E({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},YV=function(e){var t=qV.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=qV.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=KV(e);return qV.sketch(E(E({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([xF()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([xF()],{type:"closed"})}}))},JV=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return HH.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===Vx.scrolling?["tox-toolbar--scrolling"]:[])},components:[HH.parts.groups({})],toolbarBehaviours:GV(e,t)})},QV=function(e,t,n){var r={getSocket:function(t){return SH.getPart(t,e,"socket")},setSidebar:function(t,n){SH.getPart(t,e,"sidebar").each((function(e){return Pj(e,n)}))},toggleSidebar:function(t,n){SH.getPart(t,e,"sidebar").each((function(e){return Lj(e,n)}))},whichSidebar:function(t){return SH.getPart(t,e,"sidebar").bind(Ij).getOrNull()},getHeader:function(t){return SH.getPart(t,e,"header")},getToolbar:function(t){return SH.getPart(t,e,"toolbar")},setToolbar:function(t,n){SH.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){SH.getPart(t,e,"multiple-toolbar").each((function(e){RH.setItems(e,n)}))},refreshToolbar:function(t){var n=SH.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){SH.getPart(t,e,"toolbar").each((function(e){Be(e.getApis().toggle,(function(t){return t(e)}))}))},isToolbarDrawerToggled:function(t){return SH.getPart(t,e,"toolbar").bind((function(e){return P.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return SH.getPart(t,e,"throbber")},focusToolbar:function(t){var n=SH.getPart(t,e,"toolbar").orThunk((function(){return SH.getPart(t,e,"multiple-toolbar")}));n.each((function(e){Ew.focusIn(e)}))},setMenubar:function(t,n){SH.getPart(t,e,"menubar").each((function(e){KF.setMenus(e,n)}))},focusMenubar:function(t){SH.getPart(t,e,"menubar").each((function(e){KF.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},ZV=TH.optional({factory:KF,name:"menubar",schema:[Ei("backstage")]}),eU=function(e){return e.type===Vx.sliding?YV:e.type===Vx.floating?XV:JV},tU=TH.optional({factory:{sketch:function(e){return RH.sketch({uid:e.uid,dom:e.dom,listBehaviours:mf([Ew.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return JV({type:e.type,uid:ou("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),P.some(!0)}})},setupItem:function(e,t,n,r){HH.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[Ei("dom"),Ei("onEscape")]}),nU=TH.optional({factory:{sketch:function(e){var t=eU(e),n={type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),P.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(n)}},name:"toolbar",schema:[Ei("dom"),Ei("onEscape"),Ei("getSink")]}),rU=TH.optional({factory:{sketch:HF},name:"header",schema:[Ei("dom")]}),oU=TH.optional({name:"socket",schema:[Ei("dom")]}),iU=TH.optional({factory:{sketch:jj},name:"sidebar",schema:[Ei("dom")]}),aU=TH.optional({factory:{sketch:nV},name:"throbber",schema:[Ei("dom")]}),cU=mv({name:"OuterContainer",factory:QV,configFields:[Ei("dom"),Ei("behaviours")],partFields:[rU,ZV,nU,tU,oU,iU,aU],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=$(n,(function(e){return $V(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=$(n,(function(e){return $(e,$V)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),uU="file edit view insert format tools table help",sU={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},lU=function(e,t,n){var r=Tz(n).split(/[ ,]/);return{text:e.title,getItems:function(){return re(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||U(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},fU=function(e){return"string"===typeof e?e.split(" "):e},dU=function(e,t){var n=E(E({},sU),t.menus),r=pe(t.menus).length>0,o=void 0===t.menubar||!0===t.menubar?fU(uU):fU(!1===t.menubar?"":t.menubar),i=Y(o,(function(e){var n=Te(sU,e);return r?n||Se(t.menus,e).exists((function(e){return Te(e,"items")})):n})),a=$(i,(function(r){var o=n[r];return lU({title:o.title,items:fU(o.items)},t,e)}));return Y(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&U(e.getItems(),t)}))},mU=function(e){var t=function(){e._skinLoaded=!0,pT(e)};return function(){e.initialized?t():e.on("init",t)}},gU=function(e,t){return function(){return hT(e,{message:t})}},pU=function(e,t,n){return new ax((function(r,o){n.load(t,r,o),e.on("remove",(function(){return n.unload(t)}))}))},hU=function(e,t){var n=t+"/skin.min.css";return pU(e,n,e.ui.styleSheetLoader)},vU=function(e,t){var n=Dn(tt.fromDom(e.getElement()));if(n){var r=t+"/skin.shadowdom.min.css";return pU(e,r,dz.DOM.styleSheetLoader)}return ax.resolve()},yU=function(e,t){var n=gz(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===hz(t)&&i(n)?ax.all([hU(t,n),vU(t,n)]).then(mU(t),gU(t,"Skin could not be loaded")):mU(t)()},bU=x(yU,!1),wU=x(yU,!0),kU=function(e,t){return function(n){var r=nd(),o=function(){n.setActive(e.formatter.match(t));var o=e.formatter.formatChanged(t,n.setActive);r.set(o)};return e.initialized?o():e.once("init",o),function(){e.off("init",o),r.clear()}}},_U=function(e,t,n){return function(r){var o=function(){return n(r)},i=function(){n(r),e.on(t,o)};return e.initialized?i():e.once("init",i),function(){e.off("init",i),e.off(t,o)}}},xU=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},CU=function(e,t){return function(){return e.execCommand(t)}},zU=function(e,t,n){var r=function(e,r,i,a){var c=t.shared.providers.translate(e.title);if("separator"===e.type)return P.some({type:"separator",text:c});if("submenu"===e.type){var u=re(e.getStyleItems(),(function(e){return o(e,r,a)}));return 0===r&&u.length<=0?P.none():P.some({type:"nestedmenuitem",text:c,disabled:u.length<=0,getSubmenuItems:function(){return re(e.getStyleItems(),(function(e){return o(e,r,a)}))}})}return P.some(E({type:"togglemenuitem",text:c,icon:e.icon,active:e.isSelected(a),disabled:i,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},o=function(e,t,o){var i="formatter"===e.type&&n.isInvalid(e);return 0===t?i?[]:r(e,t,!1,o).toArray():r(e,t,i,o).toArray()},i=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return re(e,(function(e){return o(e,r,t)}))},a=function(e,t){return function(n,r){var o=t(),a=i(o),c=WB(a,Ux.CLOSE_ON_EXECUTE,e,!1);r(c)}};return{validateItems:i,getFetch:a}},SU=function(e,t,n){var r=n.dataset,o="basic"===r.type?function(){return $(r.data,(function(e){return MI(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:zU(e,t,n),getStyleItems:o}},TU=function(e,t,n){var r=SU(e,t,n),o=r.items,i=r.getStyleItems,a=function(e){return{getComponent:w(e)}},c=_U(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return BB({text:n.icon.isSome()?P.none():n.text,icon:n.icon,tooltip:P.from(n.tooltip),role:P.none(),fetch:o.getFetch(t,i),onSetup:c,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},OU=function(e){return $(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},EU=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(XP||(XP={}));var AU,DU=function(e,t){return t===XP.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},MU=function(e,t,n,r){var o=e.getParam(t,n,"string"),i=OU(DU(o,r));return{type:"basic",data:i}},NU=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],RU=function(e){var t=function(){return ee(NU,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return P.none},o=function(e){var n=t(),r=n.fold(w("left"),(function(e){return e.title.toLowerCase()}));xc(e,RB,{icon:"align-"+r})},i=EU(NU),a=function(t){return function(){return ee(NU,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}};return{tooltip:"Align",text:P.none(),icon:P.some("align-left"),isSelectedFor:n,getCurrentValue:P.none,getPreviewFor:r,onAction:a,updateText:o,dataset:i,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},BU=function(e,t){return TU(e,t,RU(e))},PU=function(e,t){var n=SU(e,t,RU(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},LU="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",IU=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],HU=function(e){var t=e.split(/\s*,\s*/);return $(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},FU=function(e){var t=function(){var t=HU(e.toLowerCase());return oe(IU,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},jU=function(e){var t="System Font",n=function(){var n=function(e){return e?HU(e)[0]:""},r=e.queryCommandValue("FontName"),o=u.data,i=r?r.toLowerCase():"",a=ee(o,(function(e){var t=e.format;return t.toLowerCase()===i||n(t).toLowerCase()===n(i).toLowerCase()})).orThunk((function(){return Pe(FU(i),{title:t,format:i})}));return{matchOpt:a,font:r}},r=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},o=function(){var e=n().matchOpt;return e},i=function(e){return function(){return P.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},c=function(e){var t=n(),r=t.matchOpt,o=t.font,i=r.fold(w(o),(function(e){return e.title}));xc(e,NB,{text:i})},u=MU(e,"font_formats",LU,XP.SemiColon);return{tooltip:"Fonts",text:P.some(t),icon:P.none(),isSelectedFor:r,getCurrentValue:o,getPreviewFor:i,onAction:a,updateText:c,dataset:u,shouldHide:!1,isInvalid:S}},VU=function(e,t){return TU(e,t,jU(e))},UU=function(e,t){var n=SU(e,t,jU(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},qU="8pt 10pt 12pt 14pt 18pt 24pt 36pt",WU={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},$U={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},GU=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},KU=function(e,t){return/[0-9.]+px$/.test(e)?GU(72*parseInt(e,10)/96,t||0)+"pt":Se($U,e).getOr(e)},XU=function(e){return Se(WU,e).getOr("")},YU=function(e){var t=function(){var t=P.none(),n=c.data,r=e.queryCommandValue("FontSize");if(r)for(var o=function(e){var o=KU(r,e),i=XU(o);t=ee(n,(function(e){return e.format===r||e.format===o||e.format===i}))},i=3;t.isNone()&&i>=0;i--)o(i);return{matchOpt:t,size:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},o=w(P.none),i=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,o=n.size,i=r.fold(w(o),(function(e){return e.title}));xc(e,NB,{text:i})},c=MU(e,"fontsize_formats",qU,XP.Space);return{tooltip:"Font sizes",text:P.some("12pt"),icon:P.none(),isSelectedFor:n,getPreviewFor:o,getCurrentValue:r,onAction:i,updateText:a,dataset:c,shouldHide:!1,isInvalid:S}},JU=function(e,t){return TU(e,t,YU(e))},QU=function(e,t){var n=SU(e,t,YU(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},ZU=function(e,t){var n=t(),r=$(n,(function(e){return e.format}));return P.from(e.formatter.closest(r)).bind((function(e){return ee(n,(function(t){return t.format===e}))})).orThunk((function(){return Pe(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},eq="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",tq=function(e){var t="Paragraph",n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return P.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},o=function(n){var r=ZU(e,(function(){return i.data})),o=r.fold(w(t),(function(e){return e.title}));xc(n,NB,{text:o})},i=MU(e,"block_formats",eq,XP.SemiColon);return{tooltip:"Blocks",text:P.some(t),icon:P.none(),isSelectedFor:n,getCurrentValue:P.none,getPreviewFor:r,onAction:xU(e),updateText:o,dataset:i,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},nq=function(e,t){return TU(e,t,tq(e))},rq=function(e,t){var n=SU(e,t,tq(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},oq=function(e,t){var n="Paragraph",r=function(t){return function(){return e.formatter.match(t)}},o=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?P.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):P.none()}},i=function(t){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[{title:e.title,format:e.format}]},o=re(DI(e),r),i=ZU(e,w(o)),a=i.fold(w(n),(function(e){return e.title}));xc(t,NB,{text:a})};return{tooltip:"Formats",text:P.some(n),icon:P.none(),isSelectedFor:r,getCurrentValue:P.none,getPreviewFor:o,onAction:xU(e),updateText:i,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},iq=function(e,t){var n=E({type:"advanced"},t.styleselect);return TU(e,t,oq(e,n))},aq=function(e,t){var n=E({type:"advanced"},t.styleselect),r=SU(e,t,oq(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},cq=function(e,t){var n=function(n,r){e.updateState.each((function(e){var o=e(n,r);t.set(o)})),e.renderComponents.each((function(e){var o=e(r,t.get()),i=$(o,n.getSystem().build);Ug(n,i)}))};return Oc([Mc(ec(),(function(t,r){var o=r;if(!o.universal){var i=e.channel;V(o.channels,i)&&n(t,o.data)}})),Vc((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},uq=Object.freeze({__proto__:null,events:cq}),sq=function(e,t,n){return n},lq=Object.freeze({__proto__:null,getState:sq}),fq=[Ei("channel"),Fi("renderComponents"),Fi("updateState"),Fi("initialData")],dq=function(){var e=oa(P.none()),t=function(){return e.set(P.none())},n=function(){return e.get().getOr("none")};return{readState:n,get:e.get,set:e.set,clear:t}},mq=Object.freeze({__proto__:null,init:dq}),gq=pf({fields:fq,name:"reflecting",active:uq,apis:lq,state:mq}),pq=w([Ei("toggleClass"),Ei("fetch"),sl("onExecute"),Ki("getHotspot",P.some),Ki("getAnchorOverrides",w({})),Hd(),sl("onItemExecute"),Fi("lazySink"),Ei("dom"),cl("onOpen"),th("splitDropdownBehaviours",[yA,Ew,Yw]),Ki("matchWidth",!1),Ki("useMinWidth",!1),Ki("eventOrder",{}),Fi("role")].concat(NA())),hq=Nh({factory:x_,schema:[Ei("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:mf([Yw.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(Cc)},buttonBehaviours:mf([pk.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),vq=Nh({factory:x_,schema:[Ei("dom")],name:"button",defaults:function(){return{buttonBehaviours:mf([Yw.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),yq=w([hq,vq,Bh({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Ei("text")],name:"aria-descriptor"}),Rh({schema:[ol()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),wA()]),bq=function(e,t,n,r){var o,i=function(e){yv.getCurrent(e).each((function(e){ry.highlightFirst(e),Ew.focusIn(e)}))},a=function(t){var n=i;TA(e,k,t,r,n,WE.HighlightFirst).get(h)},c=function(e){return a(e),P.some(!0)},u=function(t){var n=Xh(t,e,"button");return Cc(n),P.some(!0)},s=E(E({},Oc([Vc((function(t,n){var r=Kh(t,e,"aria-descriptor");r.each((function(e){var n=ou("aria");Fn(e.element,"id",n),Fn(t.element,"aria-describedby",n)}))}))])),vk(P.some(a))),l={repositionMenus:function(e){pk.isOn(e)&&MA(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:l,eventOrder:E(E({},e.eventOrder),(o={},o[tc()]=["disabling","toggling","alloy.base.behaviour"],o)),events:s,behaviours:rh(e.splitDropdownBehaviours,[yA.config({others:{sandbox:function(t){var n=Xh(t,e,"arrow"),r={onOpen:function(){pk.on(n),pk.on(t)},onClose:function(){pk.off(n),pk.off(t)}};return DA(e,t,r)}}}),Ew.config({mode:"special",onSpace:u,onEnter:u,onDown:c}),Yw.config({}),pk.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},wq=mv({name:"SplitDropdown",configFields:pq(),partFields:yq(),factory:bq,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),kq=function(e){return{isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)}}},_q=function(e){return{setActive:function(t){pk.set(e,t)},isActive:function(){return pk.isOn(e)},isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)}}},xq=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},Cq=ou("focus-button"),zq=function(e,t,n,r,o,i){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:xq(n,i)},components:bS([e.map((function(e){return TB(e,i.icons)})),t.map((function(e){return EB(e,"tox-tbtn",i)}))]),eventOrder:(a={},a[Na()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:mf([mS.toolbarButton(i.isDisabled),uS(),jw("common-button-display-events",[Mc(Na(),(function(e,t){t.event.prevent(),_c(e,Cq)}))])].concat(r.map((function(n){return gq.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return bS([e.icon.map((function(e){return TB(e,i.icons)})),e.text.map((function(e){return EB(e,"tox-tbtn",i)}))])}})})).toArray()).concat(o.getOr([])))}},Sq=function(e,t,n,r){var o=t.shared;return EV.sketch({lazySink:o.getSink,fetch:function(){return eA.nu((function(t){t($(n(e.items),$V))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:zq(e.icon,e.text,e.tooltip,P.none(),P.none(),o.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},Tq=function(e,t,n){var r=oa(h),o=zq(e.icon,e.text,e.tooltip,P.none(),P.none(),n);return x_.sketch({dom:o.dom,components:o.components,eventOrder:MB,buttonBehaviours:mf([jw("toolbar-button-events",[DB({onAction:e.onAction,getApi:t.getApi}),pS(t,r),hS(t,r)]),mS.toolbarButton((function(){return e.disabled||n.isDisabled()})),uS()].concat(t.toolbarButtonBehaviours))})},Oq=function(e,t){return Eq(e,t,[])},Eq=function(e,t,n){return Tq(e,{toolbarButtonBehaviours:[].concat(n.length>0?[jw("toolbarButtonWith",n)]:[]),getApi:kq,onSetup:e.onSetup},t)},Aq=function(e,t){return Dq(e,t,[])},Dq=function(e,t,n){return _o(Tq(e,{toolbarButtonBehaviours:[Hw.config({}),pk.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[jw("toolbarToggleButtonWith",n)]:[]),getApi:_q,onSetup:e.onSetup},t))},Mq=function(e,t,n){return function(r){return eA.nu((function(e){return t.fetch(e)})).map((function(o){return P.from(MO(_o(nO(ou("menu-value"),o,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,Ux.CLOSE_ON_EXECUTE,t.select.getOr(S),n),{movement:oO(t.columns,t.presets),menuBehaviours:QC.unnamedEvents("auto"!==t.columns?[]:[Vc((function(e,n){XC(e,4,lC(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Ew.setGridSize(e,n,r)}))}))])})))}))}},Nq=function(e,t){var n,r=ou("channel-update-split-dropdown-display"),o=function(e){return{isDisabled:function(){return Lv.isDisabled(e)},setDisabled:function(t){return Lv.set(e,t)},setIconFill:function(t,n){Is(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Fn(e,"fill",n)}))},setIconStroke:function(t,n){Is(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Fn(e,"stroke",n)}))},setActive:function(t){Fn(e.element,"aria-pressed",t),Is(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return pk.set(e,t)}))}))},isActive:function(){return Is(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(pk.isOn)}))}}},i=oa(h),a={getApi:o,onSetup:e.onSetup};return wq.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:E({"aria-pressed":!1},xq(e.tooltip,t.providers))},onExecute:function(t){e.onAction(o(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:mf([mS.splitButton(t.providers.isDisabled),uS(),jw("split-dropdown-events",[Mc(Cq,Yw.focus),pS(a,i),hS(a,i)]),jA.config({})]),eventOrder:(n={},n[dc()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:Mq(o,e,t.providers),parts:{menu:hC(!1,e.columns,e.presets)},components:[wq.parts.button(zq(e.icon,e.text,P.none(),P.some(r),P.some([pk.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),wq.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:D_("chevron-down",t.providers.icons)},buttonBehaviours:mf([mS.splitButton(t.providers.isDisabled),uS(),R_()])}),wq.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},Rq=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Bq=function(e,t){return function(n,r,o){var i=e(n).mapError((function(e){return xi(e)})).getOrDie();return t(i,r,o)}},Pq={button:Bq(Sx,(function(e,t){return Oq(e,t.backstage.shared.providers)})),togglebutton:Bq(Ex,(function(e,t){return Aq(e,t.backstage.shared.providers)})),menubutton:Bq(qF,(function(e,t){return GB(e,"tox-tbtn",t.backstage,P.none())})),splitbutton:Bq($F,(function(e,t){return Nq(e,t.backstage.shared)})),grouptoolbarbutton:Bq(jF,(function(e,t,n){var r,o=n.ui.registry.getAll().buttons,i=function(e){return qq(n,{buttons:o,toolbar:e,allowToolbarGroups:!1},t,P.none())},a=(r={},r[Ld]=t.backstage.shared.header.isPositionedAtTop()?Hf.TopToBottom:Hf.BottomToTop,r);switch(Nz(n)){case Vx.floating:return Sq(e,t.backstage,i,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(e,t){return iq(e,t.backstage)},fontsizeSelectButton:function(e,t){return JU(e,t.backstage)},fontSelectButton:function(e,t){return VU(e,t.backstage)},formatButton:function(e,t){return nq(e,t.backstage)},alignMenuButton:function(e,t){return BU(e,t.backstage)}},Lq=function(e,t,n){return Se(Pq,e.type).fold((function(){return console.error("skipping button defined by",e),P.none()}),(function(r){return P.some(r(e,t,n))}))},Iq={styleselect:Pq.styleSelectButton,fontsizeselect:Pq.fontsizeSelectButton,fontselect:Pq.fontSelectButton,formatselect:Pq.formatButton,align:Pq.alignMenuButton},Hq=function(e){var t=$(Rq,(function(t){var n=Y(t.items,(function(t){return Te(e,t)||Te(Iq,t)}));return{name:t.name,items:n}}));return Y(t,(function(e){return e.items.length>0}))},Fq=function(e){var t=e.split("|");return $(t,(function(e){return{items:e.trim().split(" ")}}))},jq=function(e){return p(e,(function(e){return Te(e,"name")&&Te(e,"items")}))},Vq=function(e){var t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?Hq(n):i(t)?Fq(t):jq(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},Uq=function(e,t,n,r,o,i){return Se(t,n.toLowerCase()).orThunk((function(){return i.bind((function(e){return ge(e,(function(e){return Se(t,e+n.toLowerCase())}))}))})).fold((function(){return Se(Iq,n.toLowerCase()).map((function(t){return t(e,o)})).orThunk((function(){return P.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?Lq(t,o,e):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),P.none())}))},qq=function(e,t,n,r){var o=Vq(t),i=$(o,(function(o){var i=re(o.items,(function(o){return 0===o.trim().length?[]:Uq(e,t.buttons,o,t.allowToolbarGroups,n,r).toArray()}));return{title:P.from(e.translate(o.name)),items:i}}));return Y(i,(function(e){return e.items.length>0}))},Wq=function(e,t,n,r){var o=t.outerContainer,a=n.toolbar,c=n.buttons;if(p(a,i)){var u=a.map((function(t){var o={toolbar:t,buttons:c,allowToolbarGroups:n.allowToolbarGroups};return qq(e,o,{backstage:r},P.none())}));cU.setToolbars(o,u)}else cU.setToolbar(o,qq(e,n,{backstage:r},P.none()))},$q=tn(),Gq=$q.os.isiOS()&&$q.os.version.major<=12,Kq=function(e,t){var n=e.dom,r=e.getWin(),o=e.getDoc().documentElement,i=oa(lr(r.innerWidth,r.innerHeight)),a=oa(lr(o.offsetWidth,o.offsetHeight)),c=function(){var t=i.get();t.left===r.innerWidth&&t.top===r.innerHeight||(i.set(lr(r.innerWidth,r.innerHeight)),yT(e))},u=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(lr(t.offsetWidth,t.offsetHeight)),yT(e))},s=function(t){return bT(e,t)};n.bind(r,"resize",c),n.bind(r,"scroll",s);var l=cd(tt.fromDom(e.getBody()),"load",u),f=t.uiMothership.element;e.on("hide",(function(){Kn(f,"display","none")})),e.on("show",(function(){nr(f,"display")})),e.on("NodeChange",u),e.on("remove",(function(){l.unbind(),n.unbind(r,"resize",c),n.unbind(r,"scroll",s),r=null}))},Xq=function(e,t,n,r,o){var i=oa(0),a=t.outerContainer;bU(e);var c=tt.fromDom(o.targetNode),u=An(En(c));Yg(c,t.mothership),Xg(u,t.uiMothership),e.on("PostRender",(function(){Wq(e,t,n,r),i.set(e.getWin().innerWidth),cU.setMenubar(a,dU(e,n)),cU.setSidebar(a,n.sidebar),Kq(e,t)}));var s=cU.getSocket(a).getOrDie("Could not find expected socket element");if(Gq){Xn(s.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var l=U_((function(){e.fire("ScrollContent")}),20),f=ad(s.element,"scroll",l.throttle);e.on("remove",f.unbind)}cS(e,t),e.addCommand("ToggleSidebar",(function(t,n){cU.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return cU.whichSidebar(a)}));var d=Nz(e),m=function(){cU.refreshToolbar(t.outerContainer)};d!==Vx.sliding&&d!==Vx.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==i.get()&&(m(),i.set(t))}));var g={enable:function(){aS(t,!1)},disable:function(){aS(t,!0)},isDisabled:function(){return Lv.isDisabled(a)}};return{iframeContainer:s.element.dom,editorContainer:a.element.dom,api:g}},Yq=Object.freeze({__proto__:null,render:Xq}),Jq=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?P.some(parseInt(""+e,10)):P.none()},Qq=function(e){return g(e)?e+"px":e},Zq=function(e,t,n){var r=t.filter((function(t){return e<t})),o=n.filter((function(t){return e>t}));return r.or(o).getOr(e)},eW=function(e){var t=vz(e),n=wz(e),r=_z(e);return Jq(t).map((function(e){return Zq(e,n,r)}))},tW=function(e){var t=eW(e);return t.getOr(vz(e))},nW=function(e){var t=yz(e),n=bz(e),r=kz(e);return Jq(t).map((function(e){return Zq(e,n,r)}))},rW=function(e){var t=nW(e);return t.getOr(yz(e))},oW=function(e,t,n,r,o){var i=n.uiMothership,a=n.outerContainer,c=dz.DOM,u=Vz(e),s=Wz(e),l=kz(e).or(nW(e)),f=r.shared.header,d=f.isPositionedAtTop,m=Nz(e),g=m===Vx.sliding||m===Vx.floating,p=oa(!1),h=function(){return p.get()&&!e.removed},v=function(e){return g?e.fold(w(0),(function(e){return e.components().length>1?ar(e.components()[1].element):0})):0},y=function(n){switch(Pz(e)){case Mz.auto:var r=cU.getToolbar(a),o=v(r),i=ar(n.element)-o,c=Jr(t),u=c.y>i;if(u)return"top";var s=pn(t),l=Math.max(s.dom.scrollHeight,ar(s)),f=c.bottom<l-i;if(f)return"bottom";var d=Zr(),m=d.bottom<c.bottom-i;return m?"bottom":"top";case Mz.bottom:return"bottom";case Mz.top:default:return"top"}},b=function(e){var t=o.get();_F.setModes(t,[e]),f.setDockingMode(e);var n=d()?Hf.TopToBottom:Hf.BottomToTop;Fn(t.element,Ld,n)},k=function(){var e=l.getOrThunk((function(){var e=Jq(Jn(Ln(),"margin-left")).getOr(0);return vr(Ln())-mr(t).left+e}));Kn(o.get().element,"max-width",e+"px")},_=function(){var e=cU.getToolbar(a),n=v(e),r=Jr(t),i=d()?Math.max(r.y-ar(o.get().element)+n,0):r.bottom;Xn(a.element,{position:"absolute",top:Math.round(i)+"px",left:Math.round(r.x)+"px"})},x=function(){i.broadcastOn([wp()],{})},C=function(e){if(void 0===e&&(e=!1),h()){if(u||k(),g&&cU.refreshToolbar(a),u||_(),s){var t=o.get();e?_F.reset(t):_F.refresh(t)}x()}},z=function(e){if(void 0===e&&(e=!0),!u&&s&&h()){var t=f.getDockingMode(),n=y(o.get());n!==t&&(b(n),e&&C(!0))}},S=function(){p.set(!0),Kn(a.element,"display","flex"),c.addClass(e.getBody(),"mce-edit-focus"),nr(i.element,"display"),z(!1),C()},T=function(){p.set(!1),n.outerContainer&&(Kn(a.element,"display","none"),c.removeClass(e.getBody(),"mce-edit-focus")),Kn(i.element,"display","none")};return{isVisible:h,isPositionedAtTop:d,show:S,hide:T,update:C,updateMode:z,repositionPopups:x}},iW=function(e,t){var n=Jr(e);return{pos:t?n.y:n.bottom,bounds:n}},aW=function(e,t,n,r){var o=oa(iW(t,n.isPositionedAtTop())),i=function(r){var i=iW(t,n.isPositionedAtTop()),a=i.pos,c=i.bounds,u=o.get(),s=u.pos,l=u.bounds,f=c.height!==l.height||c.width!==l.width;o.set({pos:a,bounds:c}),f&&yT(e,r),n.isVisible()&&(s!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))};r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){k_.requestAnimationFrame((function(){return i(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=nd();a.set(cd(tt.fromDom(e.getBody()),"load",i)),e.on("remove",(function(){a.clear()}))},cW=function(e,t,n,r,o){var i=t.mothership,a=t.uiMothership,c=t.outerContainer,u=oa(null),s=tt.fromDom(o.targetNode),l=oW(e,s,t,r,u),f=Fz(e);wU(e);var d=function(){if(u.get())l.show();else{u.set(cU.getHeader(c).getOrDie());var o=Uz(e);Xg(o,i),Xg(o,a),Wq(e,t,n,r),cU.setMenubar(c,dU(e,n)),l.show(),aW(e,s,l,f),e.nodeChanged()}};e.on("show",d),e.on("hide",l.hide),f||(e.on("focus",d),e.on("blur",l.hide)),e.on("init",(function(){(e.hasFocus()||f)&&d()})),cS(e,t);var m={show:function(){l.show()},hide:function(){l.hide()},enable:function(){aS(t,!1)},disable:function(){aS(t,!0)},isDisabled:function(){return Lv.isDisabled(c)}};return{editorContainer:c.element.dom,api:m}},uW=Object.freeze({__proto__:null,render:cW}),sW="contexttoolbar-show",lW="contexttoolbar-hide",fW=function(e){return{hide:function(){return _c(e,ic())},getValue:function(){return eh.getValue(e)}}},dW=function(e,t){return Mc(AB,(function(n,r){var o=e.get(n),i=fW(o);t.onAction(i,r.event.buttonApi)}))},mW=function(e,t,n){var r=t.original;r.primary;var o=A(r,["primary"]),i=ki(Sx(E(E({},o),{type:"button",onAction:h})));return Eq(i,n.backstage.shared.providers,[dW(e,t)])},gW=function(e,t,n){var r=t.original;r.primary;var o=A(r,["primary"]),i=ki(Ex(E(E({},o),{type:"togglebutton",onAction:h})));return Dq(i,n.backstage.shared.providers,[dW(e,t)])},pW=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?gW(e,t,r):mW(e,t,r)},hW=function(e,t,n){var r=$(t,(function(t){return C_(pW(e,t,n))})),o=function(){return $(r,(function(e){return e.asSpec()}))},i=function(e){return ge(t,(function(t,n){return t.primary?P.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(C(Lv.isDisabled)):P.none()}))};return{asSpecs:o,findPrimary:i}},vW=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=C_(VE.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:mf([Ew.config({mode:"special",onEnter:function(e){return o.findPrimary(e).map((function(e){return Cc(e),!0}))},onLeft:function(e,t){return t.cut(),P.none()},onRight:function(e,t){return t.cut(),P.none()}})])})),o=hW(r,e.commands,t);return[{title:P.none(),items:[r.asSpec()]},{title:P.none(),items:o.asSpecs()}]},yW=function(e,t,n){return JV({type:e,uid:ou("context-toolbar"),initGroups:vW(t,n),onEscape:P.none,cyclicKeying:!0,providers:n})},bW={renderContextForm:yW,buildInitGroups:vW},wW=function(e,t,n){return void 0===n&&(n=.01),t.bottom-e.y>=n&&e.bottom-t.y>=n},kW=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=zn(tt.fromDom(e.startContainer),e.startOffset).element,r=ft(n)?vn(n):P.some(n);return r.filter(lt).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t},_W=function(e){var t=e.selection.getRng(),n=kW(t);if(e.inline){var r=Lr();return Yr(r.left+n.left,r.top+n.top,n.width,n.height)}var o=Qr(tt.fromDom(e.getBody()));return Yr(o.x+n.left,o.y+n.top,n.width,n.height)},xW=function(e,t){return t.filter(Pn).map(Qr).getOrThunk((function(){return _W(e)}))},CW=function(e,t,n){var r=Math.max(e.x+n,t.x),o=Math.min(e.right-n,t.right);return{x:r,width:o-r}},zW=function(e,t,n,r,o,i){var a=tt.fromDom(e.getContainer()),c=Is(a,".tox-editor-header").getOr(a),u=Jr(c),s=u.y>=t.bottom,l=r&&!s;if(e.inline&&l)return{y:Math.max(u.bottom+i,n.y),bottom:n.bottom};if(e.inline&&!l)return{y:n.y,bottom:Math.min(u.y-i,n.bottom)};var f="line"===o?Jr(a):t;return l?{y:Math.max(u.bottom+i,n.y),bottom:Math.min(f.bottom-i,n.bottom)}:{y:Math.max(f.y+i,n.y),bottom:Math.min(u.y-i,n.bottom)}},SW=function(e,t,n,r){void 0===r&&(r=0);var o=jr(window),i=Jr(tt.fromDom(e.getContentAreaContainer())),a=Oz(e)||Ez(e)||Dz(e),c=CW(i,o,r),u=c.x,s=c.width;if(e.inline&&!a)return Yr(u,o.y,s,o.height);var l=t.header.isPositionedAtTop(),f=zW(e,i,o,l,n,r),d=f.y,m=f.bottom;return Yr(u,d,s,m-d)},TW=12,OW={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},EW={maxHeightFunction:Td(),maxWidthFunction:kV()},AW=function(e,t){var n=e.selection.getRng(),r=zn(tt.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&sn(r.element,t)},DW=function(e,t,n){var r=Zn(e,"position");Kn(e,"position",t);var o=n(e);return r.each((function(t){return Kn(e,"position",t)})),o},MW=function(e){return"node"===e},NW=function(e,t,n,r,o){var i=_W(e),a=r.lastElement().exists((function(e){return sn(n,e)}));if(AW(e,n))return a?y_:m_;if(a)return DW(t,r.getMode(),(function(){var e=wW(i,Jr(t));return e&&!r.isReposition()?w_:y_}));var c="fixed"===r.getMode()?o.y+Lr().top:o.y,u=ar(t)+TW;return c+u<=i.y?m_:g_},RW=function(e,t,n,r){var o=function(t){return function(r,o,i,a,c){var u=NW(e,a,t,n,c),s=E(E({},r),{y:c.y,height:c.height});return E(E({},u(s,o,i,a,c)),{alwaysFit:!0})}},i=function(e){return MW(r)?[o(e)]:[]},a={onLtr:function(e){return[Wl,$l,Ul,jl,ql,Vl].concat(i(e))},onRtl:function(e){return[Wl,$l,ql,Vl,Ul,jl].concat(i(e))}},c={onLtr:function(e){return[$l,jl,Vl,Ul,ql,Wl].concat(i(e))},onRtl:function(e){return[$l,Vl,jl,ql,Ul,Wl].concat(i(e))}};return t?c:a},BW=function(e,t,n,r){return"line"===t?{bubble:Md(TW,0,OW),layouts:{onLtr:function(){return[Gl]},onRtl:function(){return[Kl]}},overrides:EW}:{bubble:Md(0,TW,OW,1/TW),layouts:RW(e,n,r,t),overrides:EW}},PW=function(e,t){var n=Y(t,(function(t){return t.predicate(e.dom)})),r=X(n,(function(e){return"contexttoolbar"===e.type})),o=r.pass,i=r.fail;return{contextToolbars:o,contextForms:i}},LW=function(e){if(e.length<=1)return e;var t=function(t){return U(e,(function(e){return e.position===t}))},n=function(t){return Y(e,(function(e){return e.position===t}))},r=t("selection"),o=t("node");if(r||o){if(o&&r){var i=n("node"),a=$(n("selection"),(function(e){return E(E({},e),{position:"node"})}));return i.concat(a)}return n(r?"selection":"node")}return n("line")},IW=function(e){if(e.length<=1)return e;var t=function(t){return ee(e,(function(e){return e.position===t}))},n=t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position}));return n.fold((function(){return[]}),(function(t){return Y(e,(function(e){return e.position===t}))}))},HW=function(e,t,n){var r=PW(e,t);if(r.contextForms.length>0)return P.some({elem:e,toolbars:[r.contextForms[0]]});var o=PW(e,n);if(o.contextForms.length>0)return P.some({elem:e,toolbars:[o.contextForms[0]]});if(r.contextToolbars.length>0||o.contextToolbars.length>0){var i=LW(r.contextToolbars.concat(o.contextToolbars));return P.some({elem:e,toolbars:i})}return P.none()},FW=function(e,t,n){return e(t)?P.none():ba(t,(function(e){if(lt(e)){var t=PW(e,n.inNodeScope),r=t.contextToolbars,o=t.contextForms,i=o.length>0?o:IW(r);return i.length>0?P.some({elem:e,toolbars:i}):P.none()}return P.none()}),e)},jW=function(e,t){var n=tt.fromDom(t.getBody()),r=function(e){return sn(e,n)},o=function(e){return!r(e)&&!dn(n,e)},i=tt.fromDom(t.selection.getNode());return o(i)?P.none():HW(i,e.inNodeScope,e.inEditorScope).orThunk((function(){return FW(r,i,e)}))},VW=function(e,t){var n={},r=[],o=[],i={},a={},c=function(e,c){var u=ki(Lx(c));n[e]=u,u.launch.map((function(n){i["form:"+e]=E(E({},c.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(u)}})})),"editor"===u.scope?o.push(u):r.push(u),a[e]=u},u=function(e,t){Hx(t).each((function(n){"editor"===t.scope?o.push(n):r.push(n),a[e]=n}))},s=pe(e);return G(s,(function(t){var n=e[t];"contextform"===n.type?c(t,n):"contexttoolbar"===n.type&&u(t,n)})),{forms:n,inNodeScope:r,inEditorScope:o,lookupTable:a,formNavigators:i}},UW=ou("forward-slide"),qW=ou("backward-slide"),WW=ou("change-slide-event"),$W="tox-pop--resizing",GW=function(e){var t=oa([]);return t_.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),t_.getContent(e).each((function(e){nr(e.element,"visibility")})),cs(e.element,$W),nr(e.element,"width")},inlineBehaviours:mf([jw("context-toolbar-events",[jc($a(),(function(e,t){"width"===t.event.raw.propertyName&&(cs(e.element,$W),nr(e.element,"width"))})),Mc(WW,(function(e,t){var n=e.element;nr(n,"width");var r=vr(n);t_.setContent(e,t.event.contents),is(n,$W);var o=vr(n);Kn(n,"width",r+"px"),t_.getContent(e).each((function(e){t.event.focus.bind((function(e){return xf(e),Tf(n)})).orThunk((function(){return Ew.focusIn(e),Sf(En(n))}))})),k_.setTimeout((function(){Kn(e.element,"width",o+"px")}),0)})),Mc(UW,(function(e,n){t_.getContent(e).each((function(n){t.set(t.get().concat([{bar:n,focus:Sf(En(e.element))}]))})),xc(e,WW,{contents:n.event.forwardContents,focus:P.none()})})),Mc(qW,(function(e,n){de(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),xc(e,WW,{contents:Os(n.bar),focus:n.focus})}))}))]),Ew.config({mode:"special",onEscape:function(n){return de(t.get()).fold((function(){return e.onEscape()}),(function(e){return _c(n,qW),P.some(!0)}))}})]),lazySink:function(){return ro.value(e.sink)}})},KW="tox-pop--transition",XW=function(e,t,n,r){var o=r.backstage,i=o.shared,a=tn().deviceType.isTouch,c=od(),u=od(),s=od(),l=Ts(GW({sink:n,onEscape:function(){return e.focus(),P.some(!0)}})),f=function(){var t=s.get().getOr("node"),n=MW(t)?1:0;return SW(e,i,t,n)},d=function(){return!e.removed&&!(a()&&o.isContextMenuOpen())},m=function(e){return Ee(Ne(e,c.get(),sn),!0)},g=function(){if(d()){var t=f(),n=Ee(s.get(),"node")?xW(e,c.get()):_W(e);return t.height<=0||!wW(n,t)}return!0},p=function(){c.clear(),u.clear(),s.clear(),t_.hide(l)},v=function(){if(t_.isOpen(l)){var e=l.element;nr(e,"display"),g()?Kn(e,"display","none"):(u.set(0),t_.reposition(l))}},y=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:mf([Ew.config({mode:"acyclic"}),jw("pop-dialog-wrap-events",[Vc((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Ew.focusIn(t)}))})),Uc((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},b=gt((function(){return VW(t,(function(e){var t=_([e]);xc(l,UW,{forwardContents:y(t)})}))})),w=function(t,n){return qq(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},r,P.some(["form:"]))},k=function(e,t){return bW.buildInitGroups(e,t)},_=function(t){var n=e.ui.registry.getAll().buttons,r=b(),o=E(E({},n),r.formNavigators),a=Nz(e)===Vx.scrolling?Vx.scrolling:Vx.default,c=ne($(t,(function(e){return"contexttoolbar"===e.type?w(o,e):k(e,i.providers)})));return JV({type:a,uid:ou("context-toolbar"),initGroups:c,onEscape:P.none,cyclicKeying:!0,providers:i.providers})},x=function(t,r){var o="node"===t?i.anchors.node(r):i.anchors.cursor(),s=BW(e,t,a(),{lastElement:c.get,isReposition:function(){return Ee(u.get(),0)},getMode:function(){return Ig.getMode(n)}});return _o(o,s)},C=function(e,t){if(z.cancel(),d()){var r=_(e),o=e[0].position,i=x(o,t);s.set(o),u.set(1);var a=l.element;nr(a,"display"),m(t)||(cs(a,KW),Ig.reset(n,l)),t_.showWithinBounds(l,y(r),{anchor:i,transition:{classes:[KW],mode:"placement"}},(function(){return P.some(f())})),t.fold(c.clear,c.set),g()&&Kn(a,"display","none")}},z=q_((function(){if(e.hasFocus()&&!e.removed)if(us(l.element,KW))z.throttle();else{var t=b();jW(t,e).fold(p,(function(e){C(e.toolbars,P.some(e.elem))}))}}),17);e.on("init",(function(){e.on("remove",p),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),e.on("click keyup focus SetContent",z.throttle),e.on(lW,p),e.on(sW,(function(t){var n=b();Se(n.lookupTable,t.toolbarKey).each((function(n){C([n],Pe(t.target!==e,t.target)),t_.getContent(l).each(Ew.focusIn)}))})),e.on("focusout",(function(t){k_.setEditorTimeout(e,(function(){Tf(n.element).isNone()&&Tf(l.element).isNone()&&p()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&p()})),e.on("AfterProgressState",(function(t){t.state?p():e.hasFocus()&&z.throttle()})),e.on("NodeChange",(function(e){Tf(l.element).fold(z.throttle,h)}))}))},YW=function(e){var t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];G(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:CU(e,t.cmd),onSetup:kU(e,t.name)})})),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:CU(e,"JustifyNone")})},JW={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},QW=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",o=function(e){return"(?:"+e+")?"},i=["Infinity",e+r+o(e)+o(n),r+e+o(n),e+o(n)].join("|"),a="[+-]?(?:"+i+")";return new RegExp("^("+a+")(.*)$")}(),ZW=function(e,t){return U(t,(function(t){return U(JW[t],(function(t){return e===t}))}))},e$=function(e,t){var n=P.from(QW.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return ZW(r,t)?P.some({value:n,unit:r}):P.none()}))},t$=function(e,t){return e$(e,t).map((function(e){var t=e.value,n=e.unit;return t+n}))},n$=function(e,t){var n=function(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),o=od();return $(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(i){var a=function(e){e&&(o.on((function(e){return e.setActive(!1)})),o.set(i)),i.setActive(e)};a(Ee(r,t.hash(n)));var c=t.watcher(e,n,a);return function(){o.clear(),c()}},onAction:function(){return t.setCurrent(e,n)}}}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},r$={name:"lineheight",text:"Line height",icon:"line-height",getOptions:zz,hash:function(e){return t$(e,["fixed","relative","empty"]).getOr(e)},display:k,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return P.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},o$=function(e){var t=P.from(Sz(e));return t.map((function(t){return{name:"language",text:"Language",icon:"language",getOptions:w(t),hash:function(e){return l(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){var t=tt.fromDom(e.selection.getNode());return wa(t,(function(e){return P.some(e).filter(lt).bind((function(e){var t=Un(e,"lang");return t.map((function(t){var n=Un(e,"data-mce-lang").getOrUndefined();return{code:t,customCode:n,title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(t){var n=nd();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),n.clear}}}))},i$=function(e){n$(e,r$),o$(e).each((function(t){return n$(e,t)}))},a$=function(e,t){PU(e,t),UU(e,t),aq(e,t),rq(e,t),QU(e,t)},c$=function(e){return _U(e,"NodeChange",(function(t){t.setDisabled(!e.queryCommandState("outdent"))}))},u$=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:c$(e),onAction:CU(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:CU(e,"indent")})},s$=function(e){u$(e)},l$=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},f$=function(e){QN.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:kU(e,t.name),onAction:l$(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:kU(e,n),onAction:l$(e,n)})}},d$=function(e){QN.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:CU(e,t.action)})}))},m$=function(e){QN.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:CU(e,t.action),onSetup:kU(e,t.name)})}))},g$=function(e){f$(e),d$(e),m$(e)},p$=function(e){QN.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:CU(e,t.action)})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:l$(e,"code")})},h$=function(e){g$(e),p$(e)},v$=function(e,t){return _U(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))},y$=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:v$(e,"hasUndo"),onAction:CU(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:v$(e,"hasRedo"),onAction:CU(e,"redo")})},b$=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:v$(e,"hasUndo"),onAction:CU(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:v$(e,"hasRedo"),onAction:CU(e,"redo")})},w$=function(e){y$(e),b$(e)},k$=function(e){return _U(e,"VisualAid",(function(t){t.setActive(e.hasVisual)}))},_$=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:k$(e),onAction:CU(e,"mceToggleVisualAid")})},x$=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:CU(e,"mceToggleVisualAid")})},C$=function(e){x$(e),_$(e)},z$=function(e,t){YW(e),h$(e),a$(e,t),w$(e),tO(e),C$(e),s$(e),i$(e)},S$=function(e,t){return{type:"makeshift",x:e,y:t}},T$=function(e,t,n){return S$(e.x+t,e.y+n)},O$=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},E$=function(e){if(O$(e)){var t=e.touches[0];return S$(t.pageX,t.pageY)}return S$(e.pageX,e.pageY)},A$=function(e){if(O$(e)){var t=e.touches[0];return S$(t.clientX,t.clientY)}return S$(e.clientX,e.clientY)},D$=function(e,t){var n=dz.DOM.getPos(e);return T$(t,n.x,n.y)},M$=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?E$(t):D$(e.getContentAreaContainer(),A$(t)):N$(e)},N$=function(e){return{type:"selection",root:tt.fromDom(e.selection.getNode())}},R$=function(e){return{type:"node",node:P.some(tt.fromDom(e.selection.getNode())),root:tt.fromDom(e.getBody())}},B$=function(e,t,n){switch(n){case"node":return R$(e);case"point":return M$(e,t);case"selection":return N$(e)}},P$=function(e,t,n,r,o,i){var a=n(),c=B$(e,t,i);WB(a,Ux.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),t_.showMenuAt(o,{anchor:c},{menu:{markers:mC("normal")},data:e})}))},L$={onLtr:function(){return[$l,jl,Vl,Ul,ql,Wl,m_,g_,d_,l_,f_,s_]},onRtl:function(){return[$l,Vl,jl,ql,Ul,Wl,m_,g_,f_,s_,d_,l_]}},I$=12,H$={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},F$=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],o=n.getRng(),i=ng(e.getWin(),Cm.domRange(o));return i.exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))},j$=function(e){var t=e.selection.getRng(),n=function(){k_.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),i()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var o=function(){return i()};e.once("longpresscancel",o);var i=function(){e.off("touchend",n),e.off("longpresscancel",o),e.off("mousedown",r)}},V$=function(e,t,n){var r=B$(e,t,n),o="point"===n?I$:0;return E({bubble:Md(0,o,H$),layouts:L$,overrides:{maxWidthFunction:kV(),maxHeightFunction:Td()}},r)},U$=function(e,t,n,r,o,i,a){var c=V$(e,t,i);WB(n,Ux.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),t_.showMenuWithinBounds(o,{anchor:c},{menu:{markers:mC("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return P.some(SW(e,r.shared,"node"===i?"node":"selection"))})),e.fire(lW)}))},q$=function(e,t,n,r,o,i){var a=tn(),c=a.os.isiOS(),u=a.os.isOSX(),s=a.os.isAndroid(),l=a.deviceType.isTouch(),f=function(){return!(s||c||u&&l)},d=function(){var a=n();U$(e,t,a,r,o,i,f())};if((u||c)&&"node"!==i){var m=function(){j$(e),d()};F$(e,t)?m():(e.once("selectionchange",m),e.once("touchend",(function(){return e.off("selectionchange",m)})))}else d()},W$=function(e){return"string"===typeof e?e.split(/[ ,]/):e},$$=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},G$=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return P.from(e.getParam(t)).map(W$).getOrThunk((function(){return Y(W$(n),(function(e){return Te(r,e)}))}))},K$=function(e){return!1===e.getParam("contextmenu")},X$=function(e){return G$(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},Y$=function(e){return e.getParam("contextmenu_avoid_overlap","","string")},J$=function(e){return i(e)?"|"===e:"separator"===e.type},Q$={type:"separator"},Z$=function(e){var t=function(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}};if(i(e))return e;switch(e.type){case"separator":return Q$;case"submenu":return E(E({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return i(t)?t:$(t,Z$)}});default:return E(E({type:"menuitem"},t(e)),{onAction:v(e.onAction)})}},eG=function(e,t){if(0===t.length)return e;var n=de(e).filter((function(e){return!J$(e)})),r=n.fold((function(){return[]}),(function(e){return[Q$]}));return e.concat(r).concat(t).concat([Q$])},tG=function(e,t,n){var r=Q(t,(function(t,r){return Se(e,r.toLowerCase()).map((function(e){var r=e.update(n);if(i(r))return eG(t,r.split(" "));if(r.length>0){var o=$(r,Z$);return eG(t,o)}return t})).getOrThunk((function(){return t.concat([r])}))}),[]);return r.length>0&&J$(r[r.length-1])&&r.pop(),r},nG=function(e,t){return t.ctrlKey&&!$$(e)},rG=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},oG=function(e,t){return rG(e,t)?e.selection.getStart(!0):t.target},iG=function(e,t){var n=Y$(e),r=rG(e,t)?"selection":"point";if(Ge(n)){var o=oG(e,t),i=PO(tt.fromDom(o),n);return i?"node":r}return r},aG=function(e,t,n){var r=tn(),o=r.deviceType.isTouch,i=Ts(t_.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:mf([jw("dismissContextMenu",[Mc(gc(),(function(t,n){yp.close(t),e.focus()}))])])})),a=function(e){return t_.hide(i)},c=function(t){if($$(e)&&t.preventDefault(),!nG(e,t)&&!K$(e)){var r=iG(e,t),a=function(){var n=oG(e,t),r=e.ui.registry.getAll(),o=X$(e);return tG(r.contextMenus,o,n)},c=o()?q$:P$;c(e,t,a,n,i,r)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(o()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",c)}))},cG=aa.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),uG=function(e){return function(t){return t.translate(-e.left,-e.top)}},sG=function(e){return function(t){return t.translate(e.left,e.top)}},lG=function(e){return function(t,n){return Q(e,(function(e,t){return t(e)}),lr(t,n))}},fG=function(e,t,n){return e.fold(lG([sG(n),uG(t)]),lG([uG(t)]),lG([]))},dG=function(e,t,n){return e.fold(lG([sG(n)]),lG([]),lG([sG(t)]))},mG=function(e,t,n){return e.fold(lG([]),lG([uG(n)]),lG([sG(t),uG(n)]))},gG=function(e,t,n,r,o,i){var a=dG(e,o,i),c=dG(t,o,i);return Math.abs(a.left-c.left)<=n&&Math.abs(a.top-c.top)<=r},pG=function(e,t,n,r,o,i){var a=dG(e,o,i),c=dG(t,o,i),u=Math.abs(a.left-c.left),s=Math.abs(a.top-c.top);return lr(u,s)},hG=function(e,t,n){var r=e.fold((function(e,t){return{position:P.some("absolute"),left:P.some(e+"px"),top:P.some(t+"px")}}),(function(e,t){return{position:P.some("absolute"),left:P.some(e-n.left+"px"),top:P.some(t-n.top+"px")}}),(function(e,t){return{position:P.some("fixed"),left:P.some(e+"px"),top:P.some(t+"px")}}));return E({right:P.none(),bottom:P.none()},r)},vG=function(e,t,n){return e.fold((function(e,r){return bG(e+t,r+n)}),(function(e,r){return wG(e+t,r+n)}),(function(e,r){return kG(e+t,r+n)}))},yG=function(e,t,n,r){var o=function(e,o){return function(i,a){var c=e(t,n,r);return o(i.getOr(c.left),a.getOr(c.top))}};return e.fold(o(mG,bG),o(dG,wG),o(fG,kG))},bG=cG.offset,wG=cG.absolute,kG=cG.fixed,_G=function(e,t){var n=Vn(e,t);return l(n)?NaN:parseInt(n,10)},xG=function(e,t){var n=e.element,r=_G(n,t.leftAttr),o=_G(n,t.topAttr);return isNaN(r)||isNaN(o)?P.none():P.some(lr(r,o))},CG=function(e,t,n){var r=e.element;Fn(r,t.leftAttr,n.left+"px"),Fn(r,t.topAttr,n.top+"px")},zG=function(e,t){var n=e.element;Wn(n,t.leftAttr),Wn(n,t.topAttr)},SG=function(e,t,n,r){return xG(e,t).fold((function(){return n}),(function(e){return kG(e.left+r.left,e.top+r.top)}))},TG=function(e,t,n,r,o,i){var a=SG(e,t,n,r),c=t.mustSnap?AG(e,t,a,o,i):DG(e,t,a,o,i),u=fG(a,o,i);return CG(e,t,u),c.fold((function(){return{coord:kG(u.left,u.top),extra:P.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},OG=function(e,t){zG(e,t)},EG=function(e,t,n,r){return ge(e,(function(e){var o=e.sensor,i=gG(t,o,e.range.left,e.range.top,n,r);return i?P.some({output:yG(e.output,t,n,r),extra:e.extra}):P.none()}))},AG=function(e,t,n,r,o){var i=t.getSnapPoints(e),a=EG(i,n,r,o);return a.orThunk((function(){var e=Q(i,(function(e,t){var i=t.sensor,a=pG(n,i,t.range.left,t.range.top,r,o);return e.deltas.fold((function(){return{deltas:P.some(a),snap:P.some(t)}}),(function(n){var r=(a.left+a.top)/2,o=(n.left+n.top)/2;return r<=o?{deltas:P.some(a),snap:P.some(t)}:e}))}),{deltas:P.none(),snap:P.none()});return e.snap.map((function(e){return{output:yG(e.output,n,r,o),extra:e.extra}}))}))},DG=function(e,t,n,r,o){var i=t.getSnapPoints(e);return EG(i,n,r,o)},MG=function(e,t,n){return{coord:yG(e.output,e.output,t,n),extra:e.extra}},NG=function(e,t,n,r){var o=t.getTarget(e.element);if(t.repositionTarget){var i=mn(e.element),a=Lr(i),c=WH(o),u=MG(r,a,c),s=hG(u.coord,a,c);Yn(o,s)}},RG=Object.freeze({__proto__:null,snapTo:NG}),BG="data-initial-z-index",PG=function(e){vn(e.element).filter(lt).each((function(e){Un(e,BG).fold((function(){return nr(e,"z-index")}),(function(t){return Kn(e,"z-index",t)})),Wn(e,BG)}))},LG=function(e){vn(e.element).filter(lt).each((function(t){Zn(t,"z-index").each((function(e){Fn(t,BG,e)})),Kn(t,"z-index",Jn(e.element,"z-index"))}))},IG=function(e,t){e.getSystem().addToGui(t),LG(t)},HG=function(e){PG(e),e.getSystem().removeFromGui(e)},FG=function(e,t,n){return e.getSystem().build(sE.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},jG=$i("snaps",[Ei("getSnapPoints"),cl("onSensor"),Ei("leftAttr"),Ei("topAttr"),Ki("lazyViewport",Zr),Ki("mustSnap",!1)]),VG=[Ki("useFixed",S),Ei("blockerClass"),Ki("getTarget",k),Ki("onDrag",h),Ki("repositionTarget",!0),Ki("onDrop",h),ea("getBounds",Zr),jG],UG=function(e){return Re(Zn(e,"left"),Zn(e,"top"),Zn(e,"position"),(function(e,t,n){var r="fixed"===n?kG:bG;return r(parseInt(e,10),parseInt(t,10))})).getOrThunk((function(){var t=mr(e);return wG(t.left,t.top)}))},qG=function(e,t,n,r,o){var i=o.bounds,a=dG(t,n,r),c=Ol(a.left,i.x,i.x+i.width-o.width),u=Ol(a.top,i.y,i.y+i.height-o.height),s=wG(c,u);return t.fold((function(){var e=mG(s,n,r);return bG(e.left,e.top)}),w(s),(function(){var e=fG(s,n,r);return kG(e.left,e.top)}))},WG=function(e,t,n,r,o,i,a){var c=t.fold((function(){var e=vG(n,i.left,i.top),t=fG(e,r,o);return kG(t.left,t.top)}),(function(t){var a=TG(e,t,n,i,r,o);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return qG(e,c,r,o,a)},$G=function(e,t,n,r){var o=t.getTarget(e.element);if(t.repositionTarget){var i=mn(e.element),a=Lr(i),c=WH(o),u=UG(o),s=WG(e,t.snaps,u,a,c,r,n),l=hG(s,a,c);Yn(o,l)}t.onDrag(e,o,r)},GG=function(e,t){return{bounds:e.getBounds(),height:cr(t.element),width:yr(t.element)}},KG=function(e,t,n,r,o){var i=n.update(r,o),a=n.getStartData().getOrThunk((function(){return GG(t,e)}));i.each((function(n){$G(e,t,a,n)}))},XG=function(e,t,n,r){t.each(HG),n.snaps.each((function(t){OG(e,t)}));var o=n.getTarget(e.element);r.reset(),n.onDrop(e,o)},YG=function(e){return function(t,n){var r=function(e){n.setStartData(GG(t,e))};return Oc(D([Mc(lc(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}},JG=function(e){return Oc([Mc(Na(),e.forceDrop),Mc(Pa(),e.drop),Mc(Ra(),(function(t,n){e.move(n.event)})),Mc(Ba(),e.delayDrop)])},QG=function(e){return P.from(lr(e.x,e.y))},ZG=function(e,t){return lr(t.left-e.left,t.top-e.top)},eK=Object.freeze({__proto__:null,getData:QG,getDelta:ZG}),tK=function(e,t,n){return[Mc(Na(),(function(r,o){var i=o.event.raw;if(0===i.button){o.stop();var a=function(){return XG(r,P.some(s),e,t)},c=LO(a,200),u={drop:a,delayDrop:c.schedule,forceDrop:a,move:function(n){c.cancel(),KG(r,e,t,eK,n)}},s=FG(r,e.blockerClass,JG(u)),l=function(){n(r),IG(r,s)};l()}}))]},nK=D(D([],VG,!0),[fl("dragger",{handlers:YG(tK)})],!1),rK=function(e){return Oc([Mc(Ea(),e.forceDrop),Mc(Da(),e.drop),Mc(Ma(),e.drop),Mc(Aa(),(function(t,n){e.move(n.event)}))])},oK=function(e){var t=e[0];return P.some(lr(t.clientX,t.clientY))},iK=function(e){var t=e.raw,n=t.touches;return 1===n.length?oK(n):P.none()},aK=function(e,t){return lr(t.left-e.left,t.top-e.top)},cK=Object.freeze({__proto__:null,getData:iK,getDelta:aK}),uK=function(e,t,n){var r=od(),o=function(n){XG(n,r.get(),e,t),r.clear()};return[Mc(Ea(),(function(i,a){a.stop();var c=function(){return o(i)},u={drop:c,delayDrop:h,forceDrop:c,move:function(n){KG(i,e,t,cK,n)}},s=FG(i,e.blockerClass,rK(u));r.set(s);var l=function(){n(i),IG(i,s)};l()})),Mc(Aa(),(function(n,r){r.stop(),KG(n,e,t,cK,r.event)})),Mc(Da(),(function(e,t){t.stop(),o(e)})),Mc(Ma(),o)]},sK=D(D([],VG,!0),[fl("dragger",{handlers:YG(uK)})],!1),lK=function(e,t,n){return D(D([],tK(e,t,n),!0),uK(e,t,n),!0)},fK=D(D([],VG,!0),[fl("dragger",{handlers:YG(lK)})],!1),dK=nK,mK=sK,gK=fK,pK=Object.freeze({__proto__:null,mouse:dK,touch:mK,mouseOrTouch:gK}),hK=function(){var e=P.none(),t=P.none(),n=function(){e=P.none(),t=P.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=P.some(n),r},o=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},i=function(e){t=P.some(e)},a=function(){return t},c=w({});return zu({readState:c,reset:n,update:o,getStartData:a,setStartData:i})},vK=Object.freeze({__proto__:null,init:hK}),yK=vf({branchKey:"mode",branches:pK,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:P.from(e.extra)}}},state:vK,apis:RG}),bK=40,wK=bK/2,kK=function(e,t,n,r,o,i){return e.fold((function(){return yK.snap({sensor:wG(n-wK,r-wK),range:lr(o,i),output:wG(P.some(n),P.some(r)),extra:{td:t}})}),(function(e){var o=n-wK,i=r-wK,a=bK,c=bK,u=e.element.dom.getBoundingClientRect();return yK.snap({sensor:wG(o,i),range:lr(a,c),output:wG(P.some(n-u.width/2),P.some(r-u.height/2)),extra:{td:t}})}))},_K=function(e,t,n){var r=function(e,t){return e.exists((function(e){return sn(e,t)}))};return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,o){var i=o.td;r(t.get(),i)||(t.set(i),n(i))},mustSnap:!0}},xK=function(e){return C_(x_.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:mf([yK.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),jA.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},CK=function(e,t){var n=oa([]),r=oa([]),o=oa(!1),i=od(),a=od(),c=function(e){var n=Qr(e);return kK(m.getOpt(t),e,n.x,n.y,n.width,n.height)},u=function(){return $(n.get(),(function(e){return c(e)}))},s=function(e){var n=Qr(e);return kK(g.getOpt(t),e,n.right,n.bottom,n.width,n.height)},l=function(){return $(r.get(),(function(e){return s(e)}))},f=_K(u,i,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),d=_K(l,a,(function(t){i.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),m=xK(f),g=xK(d),p=Ts(m.asSpec()),h=Ts(g.asSpec()),v=function(t,n,r,o){var i=n.dom.getBoundingClientRect();nr(t.element,"display");var a=hn(tt.fromDom(e.getBody())).dom.innerHeight,c=r(i),u=o(i,a);(c||u)&&Kn(t.element,"display","none")},y=function(e,t,n,r){var o=n(t);yK.snapTo(e,o);var i=function(e){return e[r]<0},a=function(e,t){return e[r]>t};v(e,t,i,a)},b=function(e){return y(p,e,c,"top")},w=function(){return i.get().each(b)},k=function(e){return y(h,e,s,"bottom")},_=function(){return a.get().each(k)};tn().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){o.get()||(qg(t,p),qg(t,h),o.set(!0)),i.set(e.start),a.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),b(e.start),k(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){w(),_()})),e.on("TableSelectionClear",(function(){o.get()&&(Gg(p),Gg(h),o.set(!1)),i.clear(),a.clear()})))},zK=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},SK=function(e,t,n){t.delimiter||(t.delimiter="»");var r=function(r){var o=r||[],i=$(o,(function(t,r){return x_.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:mf([mS.button(n.isDisabled),uS()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return Q(i.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[i[0]])},o=function(t){var n=[],r=t.length;while(r-- >0){var o=t[r];if(1===o.nodeType&&!zK(o)){var i=e.fire("ResolveName",{name:o.nodeName.toLowerCase(),target:o});if(i.isDefaultPrevented()||n.push({name:i.name,element:o}),i.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:mf([Ew.config({mode:"flow",selector:"div[role=button]"}),Lv.config({disabled:n.isDisabled}),uS(),bE.config({}),Hw.config({}),jw("elementPathEvents",[Vc((function(t,n){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Ew.focusIn(t)})),e.on("NodeChange",(function(e){var n=o(e.parents);n.length>0?Hw.set(t,r(n)):Hw.set(t,[])}))}))])]),components:[]}};(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(AU||(AU={}));var TK=function(e,t,n,r,o){var i={};return i.height=Zq(r+t.top,wz(e),_z(e)),n===AU.Both&&(i.width=Zq(o+t.left,bz(e),kz(e))),i},OK=function(e,t,n){var r=tt.fromDom(e.getContainer()),o=TK(e,t,n,ar(r),vr(r));ve(o,(function(e,t){return Kn(r,t,Qq(e))})),vT(e)},EK=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?AU.None:"both"===n?AU.Both:AU.Vertical},AK=function(e,t,n,r){var o=20,i=lr(n*o,r*o);return OK(e,i,t),P.some(!0)},DK=function(e,t){var n=EK(e);return n===AU.None?P.none():P.some(P_("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},behaviours:[yK.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,o){return OK(e,o,n)},blockerClass:"tox-blocker"}),Ew.config({mode:"special",onLeft:function(){return AK(e,n,-1,0)},onRight:function(){return AK(e,n,1,0)},onUp:function(){return AK(e,n,0,-1)},onDown:function(){return AK(e,n,0,1)}}),bE.config({}),Yw.config({})]},t.icons))},MK=function(e,t){var n,r=function(e,n,r){return Hw.set(e,[xs(t.translate(["{0} "+r,n[r]]))])};return x_.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:mf([mS.button(t.isDisabled),uS(),bE.config({}),Hw.config({}),eh.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),jw("wordcount-events",[Wc((function(e){var t=eh.getValue(e),n="words"===t.mode?"characters":"words";eh.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),Vc((function(t){e.on("wordCountUpdate",(function(e){var n=eh.getValue(t).mode;eh.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[tc()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},NK=function(e,t){var n=function(){var e=z_.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(){var r=[];return e.getParam("elementpath",!0,"boolean")&&r.push(SK(e,{},t)),e.hasPlugin("wordcount")&&r.push(MK(e,t)),e.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]},o=function(){var n=r(),o=DK(e,t);return n.concat(o.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:o()}},RK=function(e){var t,n=e.inline,r=n?uW:Yq,o=Wz(e)?IF:UH,i=P.none(),a=tn(),c=a.browser.isIE(),u=c?["tox-platform-ie"]:[],s=a.deviceType.isTouch(),l="tox-platform-touch",f=s?[l]:[],d=Lz(e),m=Uz(e),g=z_.isRtl()?{attributes:{dir:"rtl"}}:{},p={attributes:(t={},t[Ld]=d?Hf.BottomToTop:Hf.TopToBottom,t)},v=function(){return i.bind(cU.getHeader)},y=function(){return o.isDocked(v)},b=function(){Kn(Q.element,"width",document.body.clientWidth+"px")},w=function(){var e=sn(Ln(),m)&&"grid"===Jn(m,"display"),t={dom:E({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(u).concat(f)},g),behaviours:mf([Ig.config({useFixed:function(){return y()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:Oc([Mc(fc(),b)])};return _o(t,e?n:{})},k=Ts(w()),_=function(){return ro.value(k)},x=C_({dom:{tag:"div",classes:["tox-anchorbar"]}}),C=function(){return i.bind((function(e){return x.getOpt(e)})).getOrDie("Could not find a anchor bar element")},z=function(){return i.bind((function(e){return cU.getToolbar(e)})).getOrDie("Could not find more toolbar element")},S=function(){return i.bind((function(e){return cU.getThrobber(e)})).getOrDie("Could not find throbber element")},T=CH(k,e,C),O=cU.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:T,onEscape:function(){e.focus()}}),A=Nz(e),D=cU.parts.toolbar(E({dom:{tag:"div",classes:["tox-toolbar"]},getSink:_,providers:T.shared.providers,onEscape:function(){e.focus()},type:A,lazyToolbar:z,lazyHeader:function(){return v().getOrDie("Could not find header element")}},p)),M=cU.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:T.shared.providers,onEscape:function(){e.focus()},type:A}),N=cU.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),R=cU.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),B=cU.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:T}),L=e.getParam("statusbar",!0,"boolean"),I=L&&!n?P.some(NK(e,T.shared.providers)):P.none(),H={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[N,R]},F=Dz(e),j=Ez(e),V=Oz(e),U=function(){return F?[M]:j?[D]:[]},q=cU.parts.header({dom:E({tag:"div",classes:["tox-editor-header"]},p),components:ne([V?[O]:[],U(),Vz(e)?[]:[x.asSpec()]]),sticky:Wz(e),editor:e,sharedBackstage:T.shared}),W=ne([d?[]:[q],n?[]:[H],d?[q]:[]]),$={dom:{tag:"div",classes:["tox-editor-container"]},components:W},G=ne([[$],n?[]:I.toArray(),[B]]),K=qz(e),X=E(E({role:"application"},z_.isRtl()?{dir:"rtl"}:{}),K?{"aria-hidden":"true"}:{}),Y=Ts(cU.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(d?["tox-tinymce--toolbar-bottom"]:[]).concat(f).concat(u),styles:E({visibility:"hidden"},K?{opacity:"0",border:"0"}:{}),attributes:X},components:G,behaviours:mf([uS(),Lv.config({disableClass:"tox-tinymce--disabled"}),Ew.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));i=P.some(Y),e.shortcuts.add("alt+F9","focus menubar",(function(){cU.focusMenubar(Y)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){cU.focusToolbar(Y)})),e.addCommand("ToggleToolbarDrawer",(function(){cU.toggleToolbarDrawer(Y)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return cU.isToolbarDrawerToggled(Y)}));var J=lE(Y),Q=lE(k);zH(e,J,Q);var Z=function(){var e={broadcastAll:Q.broadcast,broadcastOn:Q.broadcastOn,register:h};return{channels:e}},ee=function(){var t=Qq(tW(e)),n=Qq(rW(e));return e.inline||(tr("div","width",n)&&Kn(Y.element,"width",n),tr("div","height",t)?Kn(Y.element,"height",t):Kn(Y.element,"height","200px")),t},te=function(){o.setup(e,T.shared,v),z$(e,T),aG(e,_,T),Mj(e),iV(e,S,T.shared),ye(Bz(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,i=t.menuItems,a=t.contextToolbars,c=t.sidebars,u=Az(e),s={menuItems:i,menus:Kz(e),menubar:Xz(e),toolbar:u.getOrThunk((function(){return Yz(e)})),allowToolbarGroups:A===Vx.floating,buttons:n,sidebar:c};XW(e,a,k,{backstage:T}),CK(e,k);var l=e.getElement(),f=ee(),d={mothership:J,uiMothership:Q,outerContainer:Y},m={targetNode:l,height:f};return r.render(e,d,s,T,m)};return{mothership:J,uiMothership:Q,backstage:T,renderUI:te,getUi:Z}},BK=function(e,t){var n=P.from(Vn(e,"id")).fold((function(){var e=ou("dialog-describe");return Fn(t,"id",e),e}),k);Fn(e,"aria-describedby",n)},PK=function(e,t){var n=Un(e,"id").fold((function(){var e=ou("dialog-label");return Fn(t,"id",e),e}),k);Fn(e,"aria-labelledby",n)},LK=w([Ei("lazySink"),Fi("dragBlockClass"),ea("getBounds",Zr),Ki("useTabstopAt",T),Ki("eventOrder",{}),th("modalBehaviours",[Ew]),ul("onExecute"),ll("onEscape")]),IK={sketch:k},HK=w([Bh({name:"draghandle",overrides:function(e,t){return{behaviours:mf([yK.config({mode:"mouse",getTarget:function(e){return Ps(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Nh({schema:[Ei("dom")],name:"title"}),Nh({factory:IK,schema:[Ei("dom")],name:"close"}),Nh({factory:IK,schema:[Ei("dom")],name:"body"}),Bh({factory:IK,schema:[Ei("dom")],name:"footer"}),Rh({factory:{sketch:function(e,t){return E(E({},e),{dom:t.dom,components:t.components})}},schema:[Ki("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ki("components",[])],name:"blocker"})]),FK=function(e,t,n,r){var o,i=od(),a=function(t){i.set(t);var n=e.lazySink(t).getOrDie(),o=r.blocker(),a=n.getSystem().build(E(E({},o),{components:o.components.concat([Os(t)]),behaviours:mf([Yw.config({}),jw("dialog-blocker-events",[jc(Ia(),(function(){Ew.focusIn(t)}))])])}));qg(n,a),Ew.focusIn(t)},c=function(e){i.clear(),vn(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Gg(e)}))}))},u=function(t){return Xh(t,e,"body")},s=function(t){return Xh(t,e,"footer")},l=function(e,t){Kj.block(e,t)},f=function(e){Kj.unblock(e)},d=ou("modal-events"),m=E(E({},e.eventOrder),(o={},o[dc()]=[d].concat(e.eventOrder["alloy.system.attached"]||[]),o));return{uid:e.uid,dom:e.dom,components:t,apis:{show:a,hide:c,getBody:u,getFooter:s,setIdle:f,setBusy:l},eventOrder:m,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:rh(e.modalBehaviours,[Hw.config({}),Ew.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),Kj.config({getRoot:i.get}),jw(d,[Vc((function(t){PK(t.element,Xh(t,e,"title").element),BK(t.element,Xh(t,e,"body").element)}))])])}},jK=mv({name:"ModalDialog",configFields:LK(),partFields:HK(),factory:FK,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),VK=ei([Mi("type"),Mi("name")].concat(NC)),UK=li,qK=[Si("name","name",zo((function(){return ou("button-name")})),si),Ui("icon"),Qi("align","end",["start","end"]),Zi("primary",!1),Zi("disabled",!1)],WK=D(D([],qK,!0),[Mi("text")],!1),$K=D([Ni("type",["submit","cancel","custom"])],WK,!0),GK=D([Ni("type",["menu"]),Ui("text"),Ui("tooltip"),Ui("icon"),Hi("items",VK)],qK,!0),KK=Ci("type",{submit:$K,cancel:$K,custom:$K,menu:GK}),XK=[Mi("type"),Mi("text"),Ni("level",["info","warn","error","success"]),Mi("icon"),Ki("url","")],YK=ei(XK),JK=function(e){return[Mi("type"),e]},QK=[Mi("type"),Mi("text"),Zi("disabled",!1),Zi("primary",!1),Si("name","name",zo((function(){return ou("button-name")})),si),Ui("icon"),Zi("borderless",!1)],ZK=ei(QK),eX=[Mi("type"),Mi("name"),Mi("label"),Zi("disabled",!1)],tX=ei(eX),nX=li,rX=[Mi("type"),Mi("name")],oX=rX.concat([Ui("label")]),iX=oX.concat([Ki("columns","auto")]),aX=ei(iX),cX=ii([Mi("value"),Mi("text"),Mi("icon")]),uX=oX,sX=ei(uX),lX=si,fX=oX,dX=ei(fX),mX=si,gX=rX.concat([Ji("tag","textarea"),Mi("scriptId"),Mi("scriptUrl"),ta("settings",void 0)]),pX=rX.concat([Ji("tag","textarea"),Bi("init")]),hX=vi((function(e){return wi("customeditor.old",Zo(pX),e).orThunk((function(){return wi("customeditor.new",Zo(gX),e)}))})),vX=si,yX=oX,bX=ei(yX),wX=hi(),kX=function(e){return[Mi("type"),Di("columns"),e]},_X=[Mi("type"),Mi("html"),Qi("presets","presentation",["presentation","document"])],xX=ei(_X),CX=oX.concat([Zi("sandboxed",!0)]),zX=ei(CX),SX=si,TX=oX.concat([Ai("currentState",ei([Ei("blob"),Mi("url")]))]),OX=ei(TX),EX=oX.concat([Ui("inputMode"),Ui("placeholder"),Zi("maximized",!1),Zi("disabled",!1)]),AX=ei(EX),DX=si,MX=function(e){return[Mi("type"),Mi("label"),e]},NX=[Mi("text"),Mi("value")],RX=[Mi("text"),Hi("items",zi("items",(function(){return BX})))],BX=ni([ei(NX),ei(RX)]),PX=oX.concat([Hi("items",BX),Zi("disabled",!1)]),LX=ei(PX),IX=si,HX=oX.concat([Ii("items",[Mi("text"),Mi("value")]),Yi("size",1),Zi("disabled",!1)]),FX=ei(HX),jX=si,VX=oX.concat([Zi("constrain",!0),Zi("disabled",!1)]),UX=ei(VX),qX=ei([Mi("width"),Mi("height")]),WX=[Mi("type"),Hi("header",si),Hi("cells",ti(si))],$X=ei(WX),GX=oX.concat([Ui("placeholder"),Zi("maximized",!1),Zi("disabled",!1)]),KX=ei(GX),XX=si,YX=oX.concat([Qi("filetype","file",["image","media","file"]),Ki("disabled",!1)]),JX=ei(YX),QX=ei([Mi("value"),Ki("meta",{})]),ZX=function(e){return Si("items","items",Co(),ti(vi((function(t){return wi("Checking item of "+e,eY,t).fold((function(e){return ro.error(xi(e))}),(function(e){return ro.value(e)}))}))))},eY=Jo((function(){return pi("type",{alertbanner:YK,bar:ei(JK(ZX("bar"))),button:ZK,checkbox:tX,colorinput:sX,colorpicker:dX,dropzone:bX,grid:ei(kX(ZX("grid"))),iframe:zX,input:AX,listbox:LX,selectbox:FX,sizeinput:UX,textarea:KX,urlinput:JX,customeditor:hX,htmlpanel:xX,imagetools:OX,collection:aX,label:ei(MX(ZX("label"))),table:$X,panel:nY})})),tY=[Mi("type"),Ki("classes",[]),Hi("items",eY)],nY=ei(tY),rY=[Si("name","name",zo((function(){return ou("tab-name")})),si),Mi("title"),Hi("items",eY)],oY=[Mi("type"),Ii("tabs",rY)],iY=ei(oY),aY=WK,cY=KK,uY=ei([Mi("title"),Ai("body",pi("type",{panel:nY,tabpanel:iY})),Ji("size","normal"),Hi("buttons",cY),Ki("initialData",{}),ea("onAction",h),ea("onChange",h),ea("onSubmit",h),ea("onClose",h),ea("onCancel",h),Ki("onTabChange",h)]),sY=function(e){return wi("dialog",uY,e)},lY=ei(D([Ni("type",["cancel","custom"])],aY,!0)),fY=ei([Mi("title"),Mi("url"),Vi("height"),Vi("width"),Wi("buttons",lY),ea("onAction",h),ea("onCancel",h),ea("onClose",h),ea("onMessage",h)]),dY=function(e){return wi("dialog",fY,e)},mY=function(e){return a(e)?[e].concat(re(ze(e),mY)):c(e)?re(e,mY):[]},gY=function(e){return i(e.type)&&i(e.name)},pY={checkbox:nX,colorinput:lX,colorpicker:mX,dropzone:wX,input:DX,iframe:SX,sizeinput:qX,selectbox:jX,listbox:IX,size:qX,textarea:XX,urlinput:QX,customeditor:vX,collection:cX,togglemenuitem:UK},hY=function(e){return P.from(pY[e.type])},vY=function(e){return Y(mY(e),gY)},yY=function(e){var t=vY(e),n=re(t,(function(e){return hY(e).fold((function(){return[]}),(function(t){return[Ai(e.name,t)]}))}));return ei(n)},bY=function(e){var t=ki(sY(e)),n=yY(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},wY={open:function(e,t){var n=bY(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=ki(dY(t));return e(n)},redial:function(e){return bY(e)}},kY=function(e){var t=[],n={};return ve(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?ro.error(t):ro.value(n)},_Y=function(e,t){var n=C_(NN.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:$(e.items,(function(e){return cI(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:mf([Ew.config({mode:"acyclic",useTabstopAt:C(vR)}),qN.memento(n),aR.memento(n,{postprocess:function(e){return kY(e).fold((function(e){return console.error(e),{}}),k)}})])}},xY=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:vk(e.action),behaviours:rh(e.tabButtonBehaviours,[Yw.config({}),Ew.config({mode:"execution",useSpace:!0,useEnter:!0}),eh.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},CY=dv({name:"TabButton",configFields:[Ki("uid",void 0),Ei("value"),Si("dom","dom",Oo((function(){return{attributes:{role:"tab",id:ou("aria"),"aria-selected":"false"}}})),ai()),Fi("action"),Ki("domModification",{}),th("tabButtonBehaviours",[Yw,Ew,eh]),Ei("view")],factory:xY}),zY=w([Ei("tabs"),Ei("dom"),Ki("clickToDismiss",!1),th("tabbarBehaviours",[ry,Ew]),il(["tabClass","selectedClass"])]),SY=Ph({factory:CY,name:"tabs",unit:"tab",overrides:function(e){var t=function(e,t){ry.dehighlight(e,t),xc(e,bc(),{tabbar:e,button:t})},n=function(e,t){ry.highlight(e,t),xc(e,yc(),{tabbar:e,button:t})};return{action:function(r){var o=r.getSystem().getByUid(e.uid).getOrDie(),i=ry.isHighlighted(o,r),a=function(){return i&&e.clickToDismiss?t:i?h:n}();a(o,r)},domModification:{classes:[e.markers.tabClass]}}}}),TY=w([SY]),OY=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:rh(e.tabbarBehaviours,[ry.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){Fn(t.element,"aria-selected","true")},onDehighlight:function(e,t){Fn(t.element,"aria-selected","false")}}),Ew.config({mode:"flow",getInitial:function(e){return ry.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},EY=mv({name:"Tabbar",configFields:zY(),partFields:TY(),factory:OY}),AY=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:rh(e.tabviewBehaviours,[Hw.config({})]),domModification:{attributes:{role:"tabpanel"}}}},DY=dv({name:"Tabview",configFields:[th("tabviewBehaviours",[Hw])],factory:AY}),MY=w([Ki("selectFirst",!0),cl("onChangeTab"),cl("onDismissTab"),Ki("tabs",[]),th("tabSectionBehaviours",[])]),NY=Nh({factory:EY,schema:[Ei("dom"),Li("markers",[Ei("tabClass"),Ei("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),RY=Nh({factory:DY,name:"tabview"}),BY=w([NY,RY]),PY=function(e,t,n,r){var o=function(t){var n=eh.getValue(t);Kh(t,e,"tabview").each((function(r){var o=ee(e.tabs,(function(e){return e.value===n}));o.each((function(n){var o=n.view();Un(t.element,"id").each((function(e){Fn(r.element,"aria-labelledby",e)})),Hw.set(r,o),e.onChangeTab(r,t,o)}))}))},i=function(t,n){Kh(t,e,"tabbar").each((function(e){n(e).each(Cc)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:nh(e.tabSectionBehaviours),events:Oc(ne([e.selectFirst?[Vc((function(e,t){i(e,ry.getFirst)}))]:[],[Mc(yc(),(function(e,t){var n=t.event.button;o(n)})),Mc(bc(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Kh(t,e,"tabview").map((function(e){return Hw.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=ry.getCandidates(e),r=ee(n,(function(e){return eh.getValue(e)===t}));return r.filter((function(t){return!ry.isHighlighted(e,t)}))};i(e,n)}}}},LY=mv({name:"TabSection",configFields:MY(),partFields:BY(),factory:PY,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),IY=function(e,t,n){return $(e,(function(r,o){Hw.set(n,e[o].view());var i=t.dom.getBoundingClientRect();return Hw.set(n,[]),i.height}))},HY=function(e){return fe(se(e,(function(e,t){return e>t?-1:e<t?1:0})))},FY=function(e,t,n){var r,o=pn(e).dom,i=Ps(e,".tox-dialog-wrap").getOr(e),a="fixed"===Jn(i,"position");r=a?Math.max(o.clientHeight,window.innerHeight):Math.max(o.offsetHeight,o.scrollHeight);var c=ar(t),u=t.dom.offsetLeft>=n.dom.offsetLeft+vr(n),s=u?Math.max(ar(n),c):c,l=parseInt(Jn(e,"margin-top"),10)||0,f=parseInt(Jn(e,"margin-bottom"),10)||0,d=ar(e)+l+f,m=d-s;return r-m},jY=function(e,t){fe(e).each((function(e){return LY.showTab(t,e.value)}))},VY=function(e,t){Kn(e,"height",t+"px"),tn().browser.isIE()?nr(e,"flex-basis"):Kn(e,"flex-basis",t+"px")},UY=function(e,t,n){Ps(e,'[role="dialog"]').each((function(e){Is(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Kn(t,"height","0"),Kn(t,"flex-basis","0"),Math.min(n,FY(e,t,r))})).each((function(e){VY(t,e)}))}))}))},qY=function(e){return Is(e,'[role="tabpanel"]')},WY=function(e){var t=function(){var t=od(),n=[Vc((function(n){var r=n.element;qY(r).each((function(o){Kn(o,"visibility","hidden"),n.getSystem().getByDom(o).toOptional().each((function(n){var r=IY(e,o,n),i=HY(r);i.fold(t.clear,t.set)})),UY(r,o,t),nr(o,"visibility"),jY(e,n),k_.requestAnimationFrame((function(){UY(r,o,t)}))}))})),Mc(fc(),(function(e){var n=e.element;qY(n).each((function(e){UY(n,e,t)}))})),Mc(BE,(function(e,n){var r=e.element;qY(r).each((function(e){var n=Sf(En(e));Kn(e,"visibility","hidden");var o=Zn(e,"height").map((function(e){return parseInt(e,10)}));nr(e,"height"),nr(e,"flex-basis");var i=e.dom.getBoundingClientRect().height,a=o.forall((function(e){return i>e}));a?(t.set(i),UY(r,e,t)):o.each((function(t){VY(e,t)})),nr(e,"visibility"),n.each(xf)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},$Y="send-data-to-section",GY="send-data-to-view",KY=function(e,t){var n=oa({}),r=function(e){var t=eh.getValue(e),r=kY(t).getOr({}),o=n.get(),i=_o(o,r);n.set(i)},o=function(e){var t=n.get();eh.setValue(e,t)},i=oa(null),a=$(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[NN.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:$(e.items,(function(e){return cI(n,e,t)})),formBehaviours:mf([Ew.config({mode:"acyclic",useTabstopAt:C(vR)}),jw("TabView.form.events",[Vc(o),Uc(r)]),bf.config({channels:ga([{key:$Y,value:{onReceive:r}},{key:GY,value:{onReceive:o}}])})])}}))]}}})),c=WY(a).smartTabHeight;return LY.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=eh.getValue(t);xc(e,RE,{name:r,oldName:i.get()}),i.set(r)},tabs:a,components:[LY.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[EY.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:mf([bE.config({})])}),LY.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:c.selectFirst,tabSectionBehaviours:mf([jw("tabpanel",c.extraEvents),Ew.config({mode:"acyclic"}),yv.config({find:function(e){return fe(LY.getViewItems(e))}}),eh.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([$Y],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([GY],{})}}})])})},XY=ou("update-dialog"),YY=ou("update-title"),JY=ou("update-body"),QY=ou("update-footer"),ZY=ou("body-send-message"),eJ=function(e,t,n,r){var o=function(e){switch(e.body.type){case"tabpanel":return[KY(e.body,n)];default:return[_Y(e.body,n)]}},i=function(e,t){return P.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:E(E({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:mf([qN.childAt(0),gq.config({channel:JY,updateState:i,renderComponents:o,initialData:e})])}},tJ=function(e,t,n,r){return eJ(e,P.some(t),n,r)},nJ=function(e,t){var n=eJ(e,P.none(),t,!1);return jK.parts.body(n)},rJ=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[gR({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:mf([bE.config({}),Yw.config({})])})]}],behaviours:mf([Ew.config({mode:"acyclic",useTabstopAt:C(vR)})])};return jK.parts.body(t)},oJ=_S.deviceType.isTouch(),iJ=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},aJ=function(e,t){return jK.parts.close(x_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:mf([bE.config({})])}))},cJ=function(){return jK.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},uJ=function(e,t){return jK.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Jj("<p>"+t.translate(e)+"</p>")}]}]})},sJ=function(e){return jK.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},lJ=function(e,t){return[sE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),sE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},fJ=function(e){var t,n="tox-dialog",r=n+"-wrap",o=r+"__backdrop",i=n+"__disable-scroll";return jK.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),P.some(!0)},useTabstopAt:function(e){return!vR(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:E({position:"relative"},e.extraStyles)},components:D([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:Jj('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:oJ?[o,o+"--opaque"]:[o]}}]}},dragBlockClass:r,modalBehaviours:mf(D([Yw.config({}),jw("dialog-events",e.dialogEvents.concat([jc(Ia(),(function(e,t){Ew.focusIn(e)}))])),jw("scroll-lock",[Vc((function(){is(Ln(),i)})),Uc((function(){cs(Ln(),i)}))])],e.extraBehaviours,!0)),eventOrder:E((t={},t[tc()]=["dialog-events"],t[dc()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[mc()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},dJ=function(e){return x_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[P_("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){_c(e,EE)}})},mJ=function(e,t,n){var r=function(e){return[xs(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:E({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:mf([gq.config({channel:YY,renderComponents:r})])}},gJ=function(){return{dom:Jj('<div class="tox-dialog__draghandle"></div>')}},pJ=function(e,t,n){return sE.sketch({dom:Jj('<div class="tox-dialog__header"></div>'),components:[mJ(e,P.some(t),n),gJ(),dJ(n)],containerBehaviours:mf([yK.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Hs(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},hJ=function(e,t){var n=jK.parts.title(mJ(e,P.none(),t)),r=jK.parts.draghandle(gJ()),o=jK.parts.close(dJ(t)),i=[n].concat(e.draggable?[r]:[]).concat([o]);return sE.sketch({dom:Jj('<div class="tox-dialog__header"></div>'),components:i})},vJ=function(e,t){return hJ({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},yJ=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:Jj('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},bJ=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){jK.setBusy(e(),(function(e,r){return yJ(n.message,r,t)}))},onUnblock:function(){jK.setIdle(e())}}},wJ=function(e,t,n,r){var o,i=function(e,t){return P.some(t)};return Ts(fJ(E(E({},e),{lazySink:r.shared.getSink,extraBehaviours:D([gq.config({channel:XY,updateState:i,initialData:t}),aR.memory({})],e.extraBehaviours,!0),onEscape:function(e){_c(e,EE)},dialogEvents:n,eventOrder:(o={},o[ec()]=[gq.name(),bf.name()],o[dc()]=["scroll-lock",gq.name(),"messages","dialog-events","alloy.base.behaviour"],o[mc()]=["alloy.base.behaviour","dialog-events","messages",gq.name(),"scroll-lock"],o)})))},kJ=function(e){var t=function(e){var t=$(e.items,(function(e){var t=oa(!1);return E(E({},e),{storage:t})}));return E(E({},e),{items:t})};return $(e,(function(e){return"menu"===e.type?t(e):e}))},_J=function(e){return Q(e,(function(e,t){if("menu"===t.type){var n=t;return Q(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},xJ=function(e,t){return[Ic(Ia(),hR),e(OE,(function(e,n){t.onClose(),n.onClose()})),e(EE,(function(e,t,n,r){t.onCancel(e),_c(r,OE)})),Mc(NE,(function(e,n){return t.onUnblock()})),Mc(ME,(function(e,n){return t.onBlock(n.event)}))]},CJ=function(e,t){var n=function(t,n){return Mc(t,(function(t,o){r(t,(function(r,i){n(e(),r,o.event,t)}))}))},r=function(e,t){gq.getState(e).get().each((function(n){t(n,e)}))};return D(D([],xJ(n,t),!0),[n(AE,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},zJ=function(e,t,n){var r=function(t,n){return Mc(t,(function(t,r){o(t,(function(o,i){n(e(),o,r.event,t)}))}))},o=function(e,t){gq.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return D(D([],xJ(r,t),!0),[r(DE,(function(e,t){return t.onSubmit(e)})),r(TE,(function(e,t,n){t.onChange(e,{name:n.name})})),r(AE,(function(e,t,r,o){var i=function(){return Ew.focusIn(o)},a=function(e){return qn(e,"disabled")||Un(e,"aria-disabled").exists((function(e){return"true"===e}))},c=En(o.element),u=Sf(c);t.onAction(e,{name:r.name,value:r.value}),Sf(c).fold(i,(function(e){a(e)||u.exists((function(t){return dn(e,t)&&a(t)}))?i():n().toOptional().filter((function(t){return!dn(t.element,e)})).each(i)}))})),r(RE,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Uc((function(t){var n=e();eh.setValue(t,n.getData())}))],!1)},SJ={initUrlDialog:CJ,initDialog:zJ},TJ=function(e,t){return rP(e,e.type,t)},OJ=function(e,t,n){return ee(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},EJ=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=X(n,(function(e){return"start"===e.align})),o=function(e,t){return sE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:$(t,(function(e){return e.memento.asSpec()}))})},i=o("start",r.pass),a=o("end",r.fail);return[i,a]},AJ=function(e,t){var n=function(e,n){var r=$(n.buttons,(function(e){var n=C_(TJ(e,t));return{name:e.name,align:e.align,memento:n}})),o=function(e,t){return OJ(e,r,t)};return P.some({lookupByName:o,footerButtons:r})};return{dom:Jj('<div class="tox-dialog__footer"></div>'),components:[],behaviours:mf([gq.config({channel:QY,initialData:e,updateState:n,renderComponents:EJ})])}},DJ=function(e,t){return AJ(e,t)},MJ=function(e,t){return jK.parts.footer(AJ(e,t))},NJ=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=yv.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return NN.getField(r,t).fold((function(){var n=e.getFooter(),o=gq.getState(n);return o.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return P.some(e)}))}return P.none()},RJ=function(e,t){var n=e.getRoot();return gq.getState(n).get().map((function(e){return ki(wi("data",e.dataValidator,t))})).getOr(t)},BJ=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},o=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,o=eh.getValue(r),i=ye(n,(function(e){return e.get()}));return E(E({},o),i)},a=function(t){r((function(r){var o=p.getData(),i=E(E({},o),t),a=RJ(e,i),c=e.getFormWrapper();eh.setValue(c,a),ve(n,(function(e,t){Te(i,t)&&e.set(i[t])}))}))},c=function(t){NJ(e,t).each(Lv.disable)},u=function(t){NJ(e,t).each(Lv.enable)},s=function(t){NJ(e,t).each(Yw.focus)},l=function(e){if(!i(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){xc(t,ME,{message:e})}))},f=function(){r((function(e){_c(e,NE)}))},d=function(t){r((function(n){var r=e.getBody(),o=gq.getState(r);o.get().exists((function(e){return e.isTabPanel()}))&&yv.getCurrent(r).each((function(e){LY.showTab(e,t)}))}))},m=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([XY],r),n.getSystem().broadcastOn([YY],r.internalDialog),n.getSystem().broadcastOn([JY],r.internalDialog),n.getSystem().broadcastOn([QY],r.internalDialog),p.setData(r.initialData)}))},g=function(){r((function(e){_c(e,OE)}))},p={getData:o,setData:a,disable:c,enable:u,focus:s,block:l,unblock:f,showTab:d,redial:m,close:g};return p},PJ=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},LJ=function(e,t,n){var r=vJ(e.internalDialog.title,n),o=nJ({body:e.internalDialog.body},n),i=kJ(e.internalDialog.buttons),a=_J(i),c=MJ({buttons:i},n),u=SJ.initDialog((function(){return m}),bJ((function(){return f}),n.shared.providers,t),n.shared.getSink),s=PJ(e.internalDialog.size),l={header:r,body:o,footer:P.some(c),extraClasses:s,extraBehaviours:[],extraStyles:{}},f=wJ(l,e,u,n),d=function(){var e=function(){var e=jK.getBody(f);return yv.getCurrent(e).getOr(e)};return{getRoot:w(f),getBody:function(){return jK.getBody(f)},getFooter:function(){return jK.getFooter(f)},getFormWrapper:e}}(),m=BJ(d,t.redial,a);return{dialog:f,instanceApi:m}},IJ=function(e,t,n,r){var o,i,a=ou("dialog-label"),c=ou("dialog-content"),u=function(e,t){return P.some(t)},s=C_(pJ({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),l=C_(tJ({body:e.internalDialog.body},c,n,r)),f=kJ(e.internalDialog.buttons),d=_J(f),m=C_(DJ({buttons:f},n)),g=SJ.initDialog((function(){return h}),{onBlock:function(e){Kj.block(p,(function(t,r){return yJ(e.message,r,n.shared.providers)}))},onUnblock:function(){Kj.unblock(p)},onClose:function(){return t.closeWindow()}},n.shared.getSink),p=Ts({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(o={role:"dialog"},o["aria-labelledby"]=a,o["aria-describedby"]=c,o)},eventOrder:(i={},i[ec()]=[gq.name(),bf.name()],i[tc()]=["execute-on-form"],i[dc()]=["reflecting","execute-on-form"],i),behaviours:mf([Ew.config({mode:"cyclic",onEscape:function(e){return _c(e,OE),P.some(!0)},useTabstopAt:function(e){return!vR(e)&&("button"!==ct(e)||"disabled"!==Vn(e,"disabled"))}}),gq.config({channel:XY,updateState:u,initialData:e}),Yw.config({}),jw("execute-on-form",g.concat([jc(Ia(),(function(e,t){Ew.focusIn(e)}))])),Kj.config({getRoot:function(){return P.some(p)}}),Hw.config({}),aR.memory({})]),components:[s.asSpec(),l.asSpec(),m.asSpec()]}),h=BJ({getRoot:w(p),getFooter:function(){return m.get(p)},getBody:function(){return l.get(p)},getFormWrapper:function(){var e=l.get(p);return yv.getCurrent(e).getOr(e)}},t.redial,d);return{dialog:p,instanceApi:h}},HJ=tinymce.util.Tools.resolve("tinymce.util.URI"),FJ=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!i(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){xc(t,ME,{message:e})}))},r=function(){t((function(e){_c(e,NE)}))},o=function(){t((function(e){_c(e,OE)}))},a=function(e){t((function(t){t.getSystem().broadcastOn([ZY],e)}))};return{block:n,unblock:r,close:o,sendMessage:a}},jJ=["insertContent","setContent","execCommand","close","block","unblock"],VJ=function(e){return a(e)&&-1!==jJ.indexOf(e.mceAction)},UJ=function(e){return!VJ(e)&&a(e)&&Te(e,"mceAction")},qJ=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!s(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},WJ=function(e,t,n,r){var o,i=vJ(e.title,r),a=rJ(e),c=e.buttons.bind((function(e){return 0===e.length?P.none():P.some(MJ({buttons:e},r))})),u=SJ.initUrlDialog((function(){return v}),bJ((function(){return h}),r.shared.providers,t)),s=E(E({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),l=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],f=new HJ(e.url,{base_uri:new HJ(window.location.href)}),d=f.protocol+"://"+f.host+(f.port?":"+f.port:""),m=nd(),g=[jw("messages",[Vc((function(){var t=ad(tt.fromDom(window),"message",(function(t){if(f.isSameOrigin(new HJ(t.raw.origin))){var r=t.raw.data;VJ(r)?qJ(n,v,r):UJ(r)&&e.onMessage(v,r)}}));m.set(t)})),Uc(m.clear)]),bf.config({channels:(o={},o[ZY]={onReceive:function(e,t){Is(e.element,"iframe").each((function(e){var n=e.dom.contentWindow;n.postMessage(t,d)}))}},o)})],p={header:i,body:a,footer:c,extraClasses:l,extraBehaviours:g,extraStyles:s},h=wJ(p,e,u,r),v=FJ(h);return{dialog:h,instanceApi:v}},$J=function(e){var t=e.backstage.shared,n=function(n,r){var o=function(){jK.hide(u),r()},i=C_(rP({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:P.none()},"cancel",e.backstage)),a=cJ(),c=aJ(o,t.providers),u=Ts(fJ({lazySink:function(){return t.getSink()},header:iJ(a,c),body:uJ(n,t.providers),footer:P.some(sJ(lJ([],[i.asSpec()]))),onEscape:o,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Mc(EE,o)],eventOrder:{}}));jK.show(u);var s=i.get(u);Yw.focus(s)};return{open:n}},GJ=function(e){var t=e.backstage.shared,n=function(n,r){var o=function(e){jK.hide(s),r(e)},i=C_(rP({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:P.none()},"submit",e.backstage)),a=rP({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:P.none()},"cancel",e.backstage),c=cJ(),u=aJ((function(){return o(!1)}),t.providers),s=Ts(fJ({lazySink:function(){return t.getSink()},header:iJ(c,u),body:uJ(n,t.providers),footer:P.some(sJ(lJ([],[a,i.asSpec()]))),onEscape:function(){return o(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Mc(EE,(function(){return o(!1)})),Mc(DE,(function(){return o(!0)}))],eventOrder:{}}));jK.show(s);var l=i.get(s);Yw.focus(l)};return{open:n}},KJ=function(e,t){return ki(wi("data",t,e))},XJ=function(e){return PO(e,".tox-alert-dialog")||PO(e,".tox-confirm-dialog")},YJ=function(e,t,n){return t&&n?[]:[_F.config({contextual:{lazyContext:function(){return P.some(Jr(tt.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},JJ=function(e){var t=e.backstage,n=e.editor,r=Wz(n),o=$J(e),i=GJ(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?l(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?l(e,t.shared.anchors.cursor(),r,n.ariaAttrs):s(e,r)},c=function(e,t){return u(e,t)},u=function(e,r){var o=function(e){var o=WJ(e,{closeWindow:function(){jK.hide(o.dialog),r(o.instanceApi)}},n,t);return jK.show(o.dialog),o.instanceApi};return wY.openUrl(o,e)},s=function(e,n){var r=function(e,r,o){var i=r,a={dataValidator:o,initialData:i,internalDialog:e},c=LJ(a,{redial:wY.redial,closeWindow:function(){jK.hide(c.dialog),n(c.instanceApi)}},t);return jK.show(c.dialog),c.instanceApi.setData(i),c.instanceApi};return wY.open(r,e)},l=function(e,o,i,a){var c=function(e,c,u){var s=KJ(c,u),l=od(),f=t.shared.header.isPositionedAtTop(),d={dataValidator:u,initialData:s,internalDialog:e},m=function(){return l.on((function(e){t_.reposition(e),_F.refresh(e)}))},g=IJ(d,{redial:wY.redial,closeWindow:function(){l.on(t_.hide),n.off("ResizeEditor",m),l.clear(),i(g.instanceApi)}},t,a),p=Ts(t_.sketch(E(E({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},f?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:mf(D([jw("window-manager-inline-events",[Mc(gc(),(function(e,t){_c(g.dialog,EE)}))])],YJ(n,r,f),!0)),isExtraPart:function(e,t){return XJ(t)}})));return l.set(p),t_.showWithin(p,Os(g.dialog),{anchor:o},P.some(Ln())),r&&f||(_F.refresh(p),n.on("ResizeEditor",m)),g.instanceApi.setData(s),Ew.focusIn(g.dialog),g.instanceApi};return wY.open(c,e)},f=function(e,t){i.open(e,(function(e){t(e)}))},d=function(e,t){o.open(e,(function(){t()}))},m=function(e){e.close()};return{open:a,openUrl:c,alert:d,close:m,confirm:f}};function QJ(){O.add("silver",(function(e){var t=RK(e),n=t.uiMothership,r=t.backstage,o=t.renderUI,i=t.getUi;BO.register(e,r.shared);var a=JJ({editor:e,backstage:r});return{renderUI:o,getWindowManagerImpl:w(a),getNotificationManagerImpl:function(){return j_(e,{backstage:r},n)},ui:i()}}))}QJ()})()}).call(this,n("c8ba"))},"0335":function(e,t,n){n("0f58")},"07d1":function(e,t,n){n("94ce")},"080b":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){return e.getParam("pagebreak_separator","\x3c!-- pagebreak --\x3e")},r=function(e){return e.getParam("pagebreak_split_block",!1)},o="mce-pagebreak",i=function(e){var n='<img src="'+t.transparentSrc+'" class="'+o+'" data-mce-resize="false" data-mce-placeholder />';return e?"<p>"+n+"</p>":n},a=function(e){var t=n(e),a=function(){return r(e)},c=new RegExp(t.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,(function(e){return"\\"+e})),"gi");e.on("BeforeSetContent",(function(e){e.content=e.content.replace(c,i(a()))})),e.on("PreInit",(function(){e.serializer.addNodeFilter("img",(function(n){var r,i,c=n.length;while(c--)if(r=n[c],i=r.attr("class"),i&&-1!==i.indexOf(o)){var u=r.parent;if(e.schema.getBlockElements()[u.name]&&a()){u.type=3,u.value=t,u.raw=!0,r.remove();continue}r.type=3,r.value=t,r.raw=!0}}))}))},c=function(e){e.addCommand("mcePageBreak",(function(){e.insertContent(i(r(e)))}))},u=function(e){e.on("ResolveName",(function(t){"IMG"===t.target.nodeName&&e.dom.hasClass(t.target,o)&&(t.name="pagebreak")}))},s=function(e){var t=function(){return e.execCommand("mcePageBreak")};e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:t}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:t})};function l(){e.add("pagebreak",(function(e){c(e),s(e),a(e),u(e)}))}l()})()},"0902":function(e,t,n){n("88b64")},"0a9d":function(e,t,n){n("69a4")},"0aa0c":function(e,t,n){n("3b47")},"0d68":function(e,t,n){n("030f")},"0efa":function(e,t,n){n("4bdc")},"0f58":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},o=n("string"),i=r("function"),a=function(){},c=function(e){return function(){return e}},u=function(e){return e};function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var l=c(!1),f=c(!0),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=tinymce.util.Tools.resolve("tinymce.util.XHR"),g=function(e){return e.getParam("template_cdate_classes","cdate")},p=function(e){return e.getParam("template_mdate_classes","mdate")},h=function(e){return e.getParam("template_selected_content_classes","selcontent")},v=function(e){return e.getParam("template_preview_replace_values")},y=function(e){return e.getParam("content_style","","string")},b=function(e){return e.getParam("content_css_cors",!1,"boolean")},w=function(e){return e.getParam("template_replace_values")},k=function(e){return e.getParam("templates")},_=function(e){return e.getParam("template_cdate_format",e.translate("%Y-%m-%d"))},x=function(e){return e.getParam("template_mdate_format",e.translate("%Y-%m-%d"))},C=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},z=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:C(e)},S=function(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},T=function(e,t,n){void 0===n&&(n=new Date);var r="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),o="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),i="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),a="January February March April May June July August September October November December".split(" ");return t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",S(n.getMonth()+1,2)),t=t.replace("%d",S(n.getDate(),2)),t=t.replace("%H",""+S(n.getHours(),2)),t=t.replace("%M",""+S(n.getMinutes(),2)),t=t.replace("%S",""+S(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",n.getHours()<12?"AM":"PM"),t=t.replace("%B",""+e.translate(a[n.getMonth()])),t=t.replace("%b",""+e.translate(i[n.getMonth()])),t=t.replace("%A",""+e.translate(o[n.getDay()])),t=t.replace("%a",""+e.translate(r[n.getDay()])),t=t.replace("%%","%"),t},O=function(e,t){return function(){var n=k(e);i(n)?n(t):o(n)?m.send({url:n,success:function(e){t(JSON.parse(e))}}):t(n)}},E=function(e,t){return d.each(t,(function(t,n){i(t)&&(t=t(n)),e=e.replace(new RegExp("\\{\\$"+n+"\\}","g"),t)})),e},A=function(e,t){var n=e.dom,r=w(e);d.each(n.select("*",t),(function(e){d.each(r,(function(t,r){n.hasClass(e,r)&&i(t)&&t(e)}))}))},D=function(e,t){return new RegExp("\\b"+t+"\\b","g").test(e.className)},M=function(e,t,n){var r=e.dom,o=e.selection.getContent();n=E(n,w(e));var i=r.create("div",null,n),a=r.select(".mceTmpl",i);a&&a.length>0&&(i=r.create("div",null),i.appendChild(a[0].cloneNode(!0))),d.each(r.select("*",i),(function(t){D(t,g(e).replace(/\s+/g,"|"))&&(t.innerHTML=T(e,_(e))),D(t,p(e).replace(/\s+/g,"|"))&&(t.innerHTML=T(e,x(e))),D(t,h(e).replace(/\s+/g,"|"))&&(t.innerHTML=o)})),A(e,i),e.execCommand("mceInsertContent",!1,i.innerHTML),e.addVisual()},N=function(){return R},R=function(){var e=function(e){return e()},t=u,n={fold:function(e,t){return e()},isSome:l,isNone:f,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:t,orThunk:e,map:N,each:a,bind:N,exists:l,forall:f,filter:function(){return N()},toArray:function(){return[]},toString:c("none()")};return n}(),B=function(e){var t=c(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:f,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return B(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:R},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},P=function(e){return null===e||void 0===e?R:B(e)},L={some:B,none:N,from:P},I=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},H=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return L.some(i);if(n(i,r))break}return L.none()},F=function(e,t){return H(e,t,l)},j=tinymce.util.Tools.resolve("tinymce.Env"),V=tinymce.util.Tools.resolve("tinymce.util.Promise"),U=Object.hasOwnProperty,q=function(e,t){return W(e,t)?L.from(e[t]):L.none()},W=function(e,t){return U.call(e,t)},$={'"':"&quot;","<":"&lt;",">":"&gt;","&":"&amp;","'":"&#039;"},G=function(e){return e.replace(/["'<>&]/g,(function(e){return q($,e).getOr(e)}))},K=function(e,t){if(-1===t.indexOf("<html>")){var n="",r=y(e),o=b(e)?' crossorigin="anonymous"':"";d.each(e.contentCSS,(function(t){n+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'"'+o+">"})),r&&(n+='<style type="text/css">'+r+"</style>");var i=z(e),a=e.dom.encode,c=j.mac?"e.metaKey":"e.ctrlKey && !e.altKey",u='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+c+")) {e.preventDefault();}}}, false);<\/script> ",s=e.getBody().dir,l=s?' dir="'+a(s)+'"':"";t='<!DOCTYPE html><html><head><base href="'+a(e.documentBaseURI.getURI())+'">'+n+u+'</head><body class="'+a(i)+'"'+l+">"+t+"</body></html>"}return E(t,v(e))},X=function(e,t){var n=function(){if(!t||0===t.length){var n=e.translate("No templates defined.");return e.notificationManager.open({text:n,type:"info"}),L.none()}return L.from(d.map(t,(function(e,t){var n=function(e){return void 0!==e.url};return{selected:0===t,text:e.title,value:{url:n(e)?L.from(e.url):L.none(),content:n(e)?L.none():L.from(e.content),description:e.description}}})))},r=function(e){return I(e,(function(e){return{text:e.text,value:e.text}}))},o=function(e,t){return F(e,(function(e){return e.text===t}))},i=function(t){e.windowManager.alert("Could not load the specified template.",(function(){return t.focus("template")}))},a=function(e){return new V((function(t,n){e.value.url.fold((function(){return t(e.value.content.getOr(""))}),(function(e){return m.send({url:e,success:function(e){t(e)},error:function(e){n(e)}})}))}))},c=function(e,t){return function(n,r){if("template"===r.name){var c=n.getData().template;o(e,c).each((function(e){n.block("Loading..."),a(e).then((function(r){t(n,e,r)})).catch((function(){t(n,e,""),n.disable("save"),i(n)}))}))}}},u=function(t){return function(n){var r=n.getData();o(t,r.template).each((function(t){a(t).then((function(t){e.execCommand("mceInsertTemplate",!1,t),n.close()})).catch((function(){n.disable("save"),i(n)}))}))}},s=function(t){var n=r(t),o=function(e,n){return{title:"Insert Template",size:"large",body:{type:"panel",items:e},initialData:n,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:u(t),onChange:c(t,s)}},s=function(t,r,i){var a=K(e,i),c=[{type:"selectbox",name:"template",label:"Templates",items:n},{type:"htmlpanel",html:'<p aria-live="polite">'+G(r.value.description)+"</p>"},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],u={template:r.text,preview:a};t.unblock(),t.redial(o(c,u)),t.focus("template")},l=e.windowManager.open(o([],{template:"",preview:""}));l.block("Loading..."),a(t[0]).then((function(e){s(l,t[0],e)})).catch((function(){s(l,t[0],""),l.disable("save"),i(l)}))},l=n();l.each(s)},Y=function(e){return function(t){X(e,t)}},J=function(e){e.addCommand("mceInsertTemplate",s(M,e)),e.addCommand("mceTemplate",O(e,Y(e)))},Q=function(e){e.on("PreProcess",(function(t){var n=e.dom,r=x(e);d.each(n.select("div",t.node),(function(t){n.hasClass(t,"mceTmpl")&&(d.each(n.select("*",t),(function(t){n.hasClass(t,p(e).replace(/\s+/g,"|"))&&(t.innerHTML=T(e,r))})),A(e,t))}))}))},Z=function(e){var t=function(){return e.execCommand("mceTemplate")};e.ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:t}),e.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:t})};function ee(){e.add("template",(function(e){Z(e),J(e),Q(e)}))}ee()})()},"169f":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("allow_html_in_named_anchor",!1,"boolean")},o="a:not([href])",i=function(e){return!e},a=function(e){var t=e.getAttribute("id")||e.getAttribute("name");return t||""},c=function(e){return e&&"a"===e.nodeName.toLowerCase()},u=function(e){return c(e)&&!e.getAttribute("href")&&""!==a(e)},s=function(e){return u(e)&&!e.firstChild},l=function(e){var r=e.dom;t(r).walk(e.selection.getRng(),(function(e){n.each(e,(function(e){s(e)&&r.remove(e,!1)}))}))},f=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},d=function(e){return e.dom.getParent(e.selection.getStart(),o)},m=function(e){var t=d(e);return t?a(t):""},g=function(e,t){e.undoManager.transact((function(){r(e)||e.selection.collapse(!0),e.selection.isCollapsed()?e.insertContent(e.dom.createHTML("a",{id:t})):(l(e),e.formatter.remove("namedAnchor",null,null,!0),e.formatter.apply("namedAnchor",{value:t}),e.addVisual())}))},p=function(e,t,n){n.removeAttribute("name"),n.id=t,e.addVisual(),e.undoManager.add()},h=function(e,t){var n=d(e);n?p(e,t,n):g(e,t),e.focus()},v=function(e,t){return f(t)?(h(e,t),!0):(e.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1)},y=function(e){var t=m(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:function(t){v(e,t.getData().id)&&t.close()}})},b=function(e){e.addCommand("mceAnchor",(function(){y(e)}))},w=function(e){return e&&i(e.attr("href"))&&!i(e.attr("id")||e.attr("name"))},k=function(e){return w(e)&&!e.firstChild},_=function(e){return function(t){for(var n=0;n<t.length;n++){var r=t[n];k(r)&&r.attr("contenteditable",e)}}},x=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("a",_("false")),e.serializer.addNodeFilter("a",_(null))}))},C=function(e){e.formatter.register("namedAnchor",{inline:"a",selector:o,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:function(e,t,n){return u(e)}})},z=function(e){e.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:function(){return e.execCommand("mceAnchor")},onSetup:function(t){return e.selection.selectorChangedWithUnbind("a:not([href])",t.setActive).unbind}}),e.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:function(){return e.execCommand("mceAnchor")}})};function S(){e.add("anchor",(function(e){x(e),b(e),z(e),e.on("PreInit",(function(){C(e)}))}))}S()})()},"16f1":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){return e.fire("insertCustomChar",{chr:t})},n=function(e,n){var r=t(e,n).chr;e.execCommand("mceInsertContent",!1,r)},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return r(t)===e}},i=function(e){return function(t){return e===t}},a=o("array"),c=i(null),u=function(){},s=function(e){return function(){return e}},l=function(e){return e},f=s(!1),d=s(!0),m=function(){return g},g=function(){var e=function(e){return e()},t=l,n={fold:function(e,t){return e()},isSome:f,isNone:d,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:t,orThunk:e,map:m,each:u,bind:m,exists:f,forall:d,filter:function(){return m()},toArray:function(){return[]},toString:s("none()")};return n}(),p=function(e){var t=s(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:d,isNone:f,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return p(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},h=function(e){return null===e||void 0===e?g:p(e)},v={some:p,none:m,from:h},y=Array.prototype.push,b=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},w=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},k=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return v.some(i);if(n(i,r))break}return v.none()},_=function(e,t){return k(e,t,f)},x=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);y.apply(t,e[n])}return t},C=function(e,t){return x(b(e,t))},z=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){return e.getParam("charmap")},T=function(e){return e.getParam("charmap_append")},O=z.isArray,E="User Defined",A=function(){return[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[402,"function / florin"],[8747,"integral"],[8721,"n-ary sumation"],[8734,"infinity"],[8730,"square root"],[8764,"similar to"],[8773,"approximately equal to"],[8776,"almost equal to"],[8800,"not equal to"],[8801,"identical to"],[8712,"element of"],[8713,"not an element of"],[8715,"contains as member"],[8719,"n-ary product"],[8743,"logical and"],[8744,"logical or"],[172,"not sign"],[8745,"intersection"],[8746,"union"],[8706,"partial differential"],[8704,"for all"],[8707,"there exists"],[8709,"diameter"],[8711,"backward difference"],[8727,"asterisk operator"],[8733,"proportional to"],[8736,"angle"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Symbols",characters:[[8501,"alef symbol"],[982,"pi symbol"],[8476,"real part symbol"],[978,"upsilon - hook symbol"],[8472,"Weierstrass p"],[8465,"imaginary part"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8629,"carriage return"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8756,"therefore"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8853,"circled plus"],[8855,"circled times"],[8869,"perpendicular"],[8901,"dot operator"],[8968,"left ceiling"],[8969,"right ceiling"],[8970,"left floor"],[8971,"right floor"],[9001,"left-pointing angle bracket"],[9002,"right-pointing angle bracket"],[9674,"lozenge"],[9824,"black spade suit"],[9827,"black club suit"],[9829,"black heart suit"],[9830,"black diamond suit"],[8194,"en space"],[8195,"em space"],[8201,"thin space"],[8204,"zero width non-joiner"],[8205,"zero width joiner"],[8206,"left-to-right mark"],[8207,"right-to-left mark"]]}]},D=function(e){return z.grep(e,(function(e){return O(e)&&2===e.length}))},M=function(e){return O(e)?D(e):"function"===typeof e?e():[]},N=function(e,t){var n=S(e);n&&(t=[{name:E,characters:M(n)}]);var r=T(e);if(r){var o=z.grep(t,(function(e){return e.name===E}));return o.length?(o[0].characters=[].concat(o[0].characters).concat(M(r)),t):t.concat({name:E,characters:M(r)})}return t},R=function(e){var t=N(e,A());return t.length>1?[{name:"All",characters:C(t,(function(e){return e.characters}))}].concat(t):t},B=function(e){var t=function(){return R(e)},r=function(t){n(e,t)};return{getCharMap:t,insertChar:r}},P=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},L=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},I=String.fromCodePoint,H=function(e,t){return-1!==e.indexOf(t)},F=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(I)return I.apply(void 0,e);for(var n=[],r=0,o="",i=0,a=e.length;i!==a;++i){var c=+e[i];if(!(c<1114111&&c>>>0===c))throw RangeError("Invalid code point: "+c);c<=65535?r=n.push(c):(c-=65536,r=n.push(55296+(c>>10),c%1024+56320)),r>=16383&&(o+=String.fromCharCode.apply(null,n),n.length=0)}return o+String.fromCharCode.apply(null,n)},j=function(e,t,n){return!!H(F(e).toLowerCase(),n)||(H(t.toLowerCase(),n)||H(t.toLowerCase().replace(/\s+/g,""),n))},V=function(e,t){var n=[],r=t.toLowerCase();return w(e.characters,(function(e){j(e[0],e[1],r)&&n.push(e)})),b(n,(function(e){return{text:e[1],value:F(e[0]),icon:F(e[0])}}))},U="pattern",q=function(e,t){var r=function(){return[{label:"Search",type:"input",name:U},{type:"collection",name:"results"}]},o=function(){return b(t,(function(e){return{title:e.name,name:e.name,items:r()}}))},i=function(){return{type:"panel",items:r()}},a=function(){return{type:"tabpanel",tabs:o()}},c=1===t.length?P(E):P("All"),u=function(e,n){_(t,(function(e){return e.name===c.get()})).each((function(t){var r=V(t,n);e.setData({results:r})}))},s=40,l=L((function(e){var t=e.getData().pattern;u(e,t)}),s),f=1===t.length?i():a(),d={pattern:"",results:V(t[0],"")},m={title:"Special Character",size:"normal",body:f,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:d,onAction:function(t,r){"results"===r.name&&(n(e,r.value),t.close())},onTabChange:function(e,t){c.set(t.newTabName),l.throttle(e)},onChange:function(e,t){t.name===U&&l.throttle(e)}},g=e.windowManager.open(m);g.focus(U)},W=function(e,t){e.addCommand("mceShowCharmap",(function(){q(e,t)}))},$=tinymce.util.Tools.resolve("tinymce.util.Promise"),G=function(e,t){e.ui.registry.addAutocompleter("charmap",{ch:":",columns:"auto",minChars:2,fetch:function(e,n){return new $((function(n,r){n(V(t,e))}))},onAction:function(t,n,r){e.selection.setRng(n),e.insertContent(r),t.hide()}})},K=function(e){e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:function(){return e.execCommand("mceShowCharmap")}}),e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:function(){return e.execCommand("mceShowCharmap")}})};function X(){e.add("charmap",(function(e){var t=R(e);return W(e,t),K(e),G(e,t[0]),B(e)}))}X()})()},2401:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},o=n("string"),i=n("object"),a=n("array"),c=r("boolean"),u=r("function"),s=r("number"),l=function(){},f=function(e){return function(){return e}},d=function(e){return e},m=function(e,t){return e===t},g=function(e){return function(t){return!e(t)}},p=f(!1),h=f(!0),v=function(){return y},y=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:p,isNone:h,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:v,each:l,bind:v,exists:p,forall:h,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),b=function(e){var t=f(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:h,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},w=function(e){return null===e||void 0===e?y:b(e)},k={some:b,none:v,from:w},_=Array.prototype.slice,x=Array.prototype.push,C=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},z=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},S=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},T=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],o=[],i=0,a=e.length;i<a;i++){var c=e[i],u=t(c);u!==n&&(r.push(o),o=[]),n=u,o.push(c)}return 0!==o.length&&r.push(o),r},O=function(e,t,n){return z(e,(function(e,r){n=t(n,e,r)})),n},E=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return k.some(i);if(n(i,r))break}return k.none()},A=function(e,t){return E(e,t,p)},D=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},M=function(e,t){return D(C(e,t))},N=function(e){var t=_.call(e,0);return t.reverse(),t},R=function(e,t){return t>=0&&t<e.length?k.some(e[t]):k.none()},B=function(e){return R(e,0)},P=function(e){return R(e,e.length-1)},L=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)};function H(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var F=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},j=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!s&&!u&&!l;return{isiPad:f(o),isiPhone:f(i),isTablet:f(u),isPhone:f(s),isTouch:f(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:f(l),isDesktop:f(d)}},V=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},U=function(e,t){var n=V(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return $(r(1),r(2))},q=function(e,t){var n=String(t).toLowerCase();return 0===e.length?W():U(e,n)},W=function(){return $(0,0)},$=function(e,t){return{major:e,minor:t}},G={nu:$,detect:q,unknown:W},K=function(e,t){return L(t.brands,(function(t){var n=t.brand.toLowerCase();return A(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:G.nu(parseInt(t.version,10),0)}}))}))},X=function(e,t){var n=String(t).toLowerCase();return A(e,(function(e){return e.search(n)}))},Y=function(e,t){return X(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},J=function(e,t){return X(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Q=function(e,t){return-1!==e.indexOf(t)},Z=function(e){return function(t){return t.replace(e,"")}},ee=Z(/^\s+|\s+$/g),te=function(e){return e.length>0},ne=function(e){return!te(e)},re=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,oe=function(e){return function(t){return Q(t,e)}},ie=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Q(e,"edge/")&&Q(e,"chrome")&&Q(e,"safari")&&Q(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,re],search:function(e){return Q(e,"chrome")&&!Q(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Q(e,"msie")||Q(e,"trident")}},{name:"Opera",versionRegexes:[re,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:oe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:oe("firefox")},{name:"Safari",versionRegexes:[re,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Q(e,"safari")||Q(e,"mobile/"))&&Q(e,"applewebkit")}}],ae=[{name:"Windows",search:oe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Q(e,"iphone")||Q(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:oe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:oe("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:oe("linux"),versionRegexes:[]},{name:"Solaris",search:oe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:oe("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:oe("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ce={browsers:f(ie),oses:f(ae)},ue="Edge",se="Chrome",le="IE",fe="Opera",de="Firefox",me="Safari",ge=function(){return pe({current:void 0,version:G.unknown()})},pe=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ue),isChrome:r(se),isIE:r(le),isOpera:r(fe),isFirefox:r(de),isSafari:r(me)}},he={unknown:ge,nu:pe,edge:f(ue),chrome:f(se),ie:f(le),opera:f(fe),firefox:f(de),safari:f(me)},ve="Windows",ye="iOS",be="Android",we="Linux",ke="OSX",_e="Solaris",xe="FreeBSD",Ce="ChromeOS",ze=function(){return Se({current:void 0,version:G.unknown()})},Se=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ve),isiOS:r(ye),isAndroid:r(be),isOSX:r(ke),isLinux:r(we),isSolaris:r(_e),isFreeBSD:r(xe),isChromeOS:r(Ce)}},Te={unknown:ze,nu:Se,windows:f(ve),ios:f(ye),android:f(be),linux:f(we),osx:f(ke),solaris:f(_e),freebsd:f(xe),chromeos:f(Ce)},Oe=function(e,t,n){var r=ce.browsers(),o=ce.oses(),i=t.bind((function(e){return K(r,e)})).orThunk((function(){return Y(r,e)})).fold(he.unknown,he.nu),a=J(o,e).fold(Te.unknown,Te.nu),c=j(a,i,e,n);return{browser:i,os:a,deviceType:c}},Ee={detect:Oe},Ae=function(e){return window.matchMedia(e).matches},De=F((function(){return Ee.detect(navigator.userAgent,k.from(navigator.userAgentData),Ae)})),Me=function(){return De()},Ne=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Re=function(e,t){return Ne(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Be=1,Pe=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return He(r.childNodes[0])},Le=function(e,t){var n=t||document,r=n.createElement(e);return He(r)},Ie=function(e,t){var n=t||document,r=n.createTextNode(e);return He(r)},He=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Fe=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(He)},je={fromHtml:Pe,fromTag:Le,fromText:Ie,fromDom:He,fromPoint:Fe},Ve=function(e,t){var n=e.dom;if(n.nodeType!==Be)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ue=function(e,t){return e.dom===t.dom},qe=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},We=function(e,t){return Re(e.dom,t.dom)},$e=function(e,t){return Me().browser.isIE()?We(e,t):qe(e,t)},Ge=Ve,Ke=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Xe=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Ye=tinymce.util.Tools.resolve("tinymce.util.VK"),Je=Object.keys,Qe=function(e,t){for(var n=Je(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},Ze=function(e){return function(t,n){e[n]=t}},et=function(e,t,n,r){var o={};return Qe(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},tt=function(e,t){var n={};return et(e,t,Ze(n),l),n};"undefined"!==typeof window?window:Function("return this;")();var nt=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rt=function(e){return e.dom.nodeType},ot=function(e){return function(t){return rt(t)===e}},it=ot(Be),at=function(e){return function(t){return it(t)&&nt(t)===e}},ct=function(e,t,n){if(!(o(n)||c(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ut=function(e,t){var n=e.dom;Qe(t,(function(e,t){ct(n,t,e)}))},st=function(e){return O(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},lt=function(e){return k.from(e.dom.parentNode).map(je.fromDom)},ft=function(e){return C(e.dom.childNodes,je.fromDom)},dt=function(e,t){var n=e.dom.childNodes;return k.from(n[t]).map(je.fromDom)},mt=function(e){return dt(e,0)},gt=function(e){return dt(e,e.dom.childNodes.length-1)},pt=function(e,t){var n=lt(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ht=function(e,t){e.dom.appendChild(t.dom)},vt=function(e,t){z(t,(function(t){pt(e,t)}))},yt=function(e,t){z(t,(function(t){ht(e,t)}))},bt=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},wt=function(e,t){return je.fromDom(e.dom.cloneNode(t))},kt=function(e){return wt(e,!0)},_t=function(e,t){var n=je.fromTag(t),r=st(e);return ut(n,r),n},xt=function(e,t){var n=_t(e,t);pt(e,n);var r=ft(e);return yt(n,r),bt(e),n},Ct=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),zt=tinymce.util.Tools.resolve("tinymce.util.Tools"),St=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},Tt=function(e){return function(t){return t&&e.test(t.nodeName)}},Ot=function(e){return e&&3===e.nodeType},Et=Tt(/^(OL|UL|DL)$/),At=Tt(/^(OL|UL)$/),Dt=St("ol"),Mt=Tt(/^(LI|DT|DD)$/),Nt=Tt(/^(DT|DD)$/),Rt=Tt(/^(TH|TD)$/),Bt=St("br"),Pt=function(e){return e.parentNode.firstChild===e},Lt=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},It=function(e,t){return e&&e.nodeName in t},Ht=function(e,t){return!!Bt(t)&&(e.isBlock(t.nextSibling)&&!Bt(t.previousSibling))},Ft=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},jt=function(e,t){return e.isChildOf(t,e.getRoot())},Vt=function(e){return e.getParam("lists_indent_on_tab",!0)},Ut=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},qt=function(e){return e.getParam("forced_root_block_attrs",{})},Wt=function(e,t){var n,r,o,i=e.dom,a=e.schema.getBlockElements(),c=i.createFragment(),u=Ut(e);if(u&&(r=i.create(u),r.tagName===u.toUpperCase()&&i.setAttribs(r,qt(e)),It(t.firstChild,a)||c.appendChild(r)),t)while(n=t.firstChild){var s=n.nodeName;o||"SPAN"===s&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),It(n,a)?(c.appendChild(n),r=null):u?(r||(r=i.create(u),c.appendChild(r)),r.appendChild(n)):c.appendChild(n)}return u?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):c.appendChild(i.create("br")),c},$t=Ct.DOM,Gt=function(e,t,n){var r=function(e){zt.each(o,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),$t.remove(e)},o=$t.select('span[data-mce-type="bookmark"]',t),i=Wt(e,n),a=$t.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var c=a.extractContents(),u=c.firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&e.dom.isEmpty(u)){$t.remove(u);break}e.dom.isEmpty(c)||$t.insertAfter(c,t),$t.insertAfter(i,t),Ft(e.dom,n.parentNode)&&r(n.parentNode),$t.remove(n),Ft(e.dom,t)&&$t.remove(t)},Kt=at("dd"),Xt=at("dt"),Yt=function(e,t){Kt(t)?xt(t,"dt"):Xt(t)&&lt(t).each((function(n){return Gt(e,n.dom,t.dom)}))},Jt=function(e){Xt(e)&&xt(e,"dd")},Qt=function(e,t,n){z(n,"Indent"===t?Jt:function(t){return Yt(e,t)})},Zt=function(e,t){if(Ot(e))return{container:e,offset:t};var n=Ke.getNode(e,t);return Ot(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Ot(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Ot(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},en=function(e){var t=e.cloneRange(),n=Zt(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Zt(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},tn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",ln(e,n))},rn=function(e,t){return e&&1===t.length&&t[0]===e},on=function(e){return S(e.querySelectorAll("ol,ul,dl"),Et)},an=function(e){var t=nn(e),n=e.selection.getSelectedBlocks();return rn(t,n)?on(t):S(n,(function(e){return Et(e)&&t!==e}))},cn=function(e,t){var n=zt.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",ln(e,t));return n||t}));return tn.unique(n)},un=function(e){var t=e.selection.getSelectedBlocks();return S(cn(e,t),Mt)},sn=function(e){return S(un(e),Nt)},ln=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},fn=function(e,t){var n=e.dom.getParents(t,"ol,ul",ln(e,t));return P(n)},dn=function(e){var t=fn(e,e.selection.getStart()),n=S(e.selection.getSelectedBlocks(),At);return t.toArray().concat(n)},mn=function(e){var t=dn(e);return gn(e,t)},gn=function(e,t){var n=C(t,(function(t){return fn(e,t).getOr(t)}));return tn.unique(n)},pn=function(e,t,n){return void 0===n&&(n=m),e.exists((function(e){return n(e,t)}))},hn=function(e,t,n){return e.isSome()&&t.isSome()?k.some(n(e.getOrDie(),t.getOrDie())):k.none()},vn=function(e,t){var n=t||document,r=n.createDocumentFragment();return z(e,(function(e){r.appendChild(e.dom)})),je.fromDom(r)},yn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},bn=function(e){return void 0!==e.style&&u(e.style.getPropertyValue)},wn=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);bn(e)&&e.style.setProperty(t,n)},kn=function(e,t,n){var r=e.dom;wn(r,t,n)},_n=function(e,t){ht(e.item,t.list)},xn=function(e){for(var t=1;t<e.length;t++)_n(e[t-1],e[t])},Cn=function(e,t){hn(P(e),B(t),_n)},zn=function(e,t){var n={list:je.fromTag(t,e),item:je.fromTag("li",e)};return ht(n.list,n.item),n},Sn=function(e,t,n){for(var r=[],o=0;o<n;o++)r.push(zn(e,t.listType));return r},Tn=function(e,t){for(var n=0;n<e.length-1;n++)kn(e[n].item,"list-style-type","none");P(e).each((function(e){ut(e.list,t.listAttributes),ut(e.item,t.itemAttributes),yt(e.item,t.content)}))},On=function(e,t){nt(e.list)!==t.listType&&(e.list=xt(e.list,t.listType)),ut(e.list,t.listAttributes)},En=function(e,t,n){var r=je.fromTag("li",e);return ut(r,t),yt(r,n),r},An=function(e,t){ht(e.list,t),e.item=t},Dn=function(e,t,n){var r=t.slice(0,n.depth);return P(r).each((function(t){var r=En(e,n.itemAttributes,n.content);An(t,r),On(t,n)})),r},Mn=function(e,t,n){var r=Sn(e,n,n.depth-t.length);return xn(r),Tn(r,n),Cn(t,r),t.concat(r)},Nn=function(e,t){var n=O(t,(function(t,n){return n.depth>t.length?Mn(e,t,n):Dn(e,t,n)}),[]);return B(n).map((function(e){return e.list}))},Rn=function(e){return Ge(e,"OL,UL")},Bn=function(e){return mt(e).exists(Rn)},Pn=function(e){return gt(e).exists(Rn)},Ln=function(e){return e.depth>0},In=function(e){return e.isSelected},Hn=function(e){var t=ft(e),n=Pn(e)?t.slice(0,-1):t;return C(n,kt)},Fn=function(e,t,n){return lt(e).filter(it).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:Hn(e),itemAttributes:st(e),listAttributes:st(r),listType:nt(r)}}))},jn=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},Vn=function(e,t){e.listType=t.listType,e.listAttributes=I({},t.listAttributes)},Un=function(e){e.listAttributes=tt(e.listAttributes,(function(e,t){return"start"!==t}))},qn=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},o=function(e){return e.depth<n};return E(N(e.slice(0,t)),r,o).orThunk((function(){return E(e.slice(t+1),r,o)}))},Wn=function(e){return z(e,(function(t,n){qn(e,n).fold((function(){t.dirty&&Un(t)}),(function(e){return Vn(t,e)}))})),e},$n=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Gn=function(e,t,n,r){return mt(r).filter(Rn).fold((function(){t.each((function(e){Ue(e.start,r)&&n.set(!0)}));var o=Fn(r,e,n.get());t.each((function(e){Ue(e.end,r)&&n.set(!1)}));var i=gt(r).filter(Rn).map((function(r){return Kn(e,t,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Kn(e,t,n,r)}))},Kn=function(e,t,n,r){return M(ft(r),(function(r){var o=Rn(r)?Kn:Gn,i=e+1;return o(i,t,n,r)}))},Xn=function(e,t){var n=$n(!1),r=0;return C(e,(function(e){return{sourceList:e,entries:Kn(r,t,n,e)}}))},Yn=function(e,t){var n=Wn(t);return C(n,(function(t){var n=vn(t.content);return je.fromDom(Wt(e,n.dom))}))},Jn=function(e,t){var n=Wn(t);return Nn(e.contentDocument,n).toArray()},Qn=function(e,t){return M(T(t,Ln),(function(t){var n=B(t).exists(Ln);return n?Jn(e,t):Yn(e,t)}))},Zn=function(e,t){z(S(e,In),(function(e){return jn(t,e)}))},er=function(e){var t=C(un(e),je.fromDom);return hn(A(t,g(Bn)),A(N(t),g(Bn)),(function(e,t){return{start:e,end:t}}))},tr=function(e,t,n){var r=Xn(t,er(e));z(r,(function(t){Zn(t.entries,n);var r=Qn(e,t.entries);z(r,(function(t){yn(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),vt(t.sourceList,r),bt(t.sourceList)}))},nr=function(e,t){var n=C(mn(e),je.fromDom),r=C(sn(e),je.fromDom),o=!1;if(n.length||r.length){var i=e.selection.getBookmark();tr(e,n,t),Qt(e,t,r),e.selection.moveToBookmark(i),e.selection.setRng(en(e.selection.getRng())),e.nodeChanged(),o=!0}return o},rr=function(e){return nr(e,"Indent")},or=function(e){return nr(e,"Outdent")},ir=function(e){return nr(e,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),cr=Ct.DOM,ur=function(e){var t={},n=function(n){var r=e[n?"startContainer":"endContainer"],o=e[n?"startOffset":"endOffset"];if(1===r.nodeType){var i=cr.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),n?r.insertBefore(i,r.childNodes[o]):cr.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=o};return n(!0),e.collapsed||n(),t},sr=function(e){var t=function(t){var n,r=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1},o=n=e[t?"startContainer":"endContainer"],i=e[t?"startOffset":"endOffset"];o&&(1===o.nodeType&&(i=r(o),o=o.parentNode,cr.remove(n),!o.hasChildNodes()&&cr.isBlock(o)&&o.appendChild(cr.create("br"))),e[t?"startContainer":"endContainer"]=o,e[t?"startOffset":"endOffset"]=i)};t(!0),t();var n=cr.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),en(n)},lr=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},fr=function(e){return/\btox\-/.test(e.className)},dr=function(e,t,n){var r=function(e){var r=E(e.parents,Et,Rt).filter((function(e){return e.nodeName===t&&!fr(e)})).isSome();n(r)},o=e.dom.getParents(e.selection.getNode());return r({parents:o}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},mr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},gr=function(e,t){zt.each(t,(function(t,n){e.setAttribute(n,t)}))},pr=function(e,t,n){gr(t,n["list-attributes"]),zt.each(e.select("li",t),(function(e){gr(e,n["list-item-attributes"])}))},hr=function(e,t,n){mr(e,t,n),pr(e,t,n)},vr=function(e,t,n){zt.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},yr=function(e,t,n,r){var o=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Bt(o.nextSibling)&&(o=o.nextSibling);while(o.parentNode!==r){if(Lt(e,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},br=function(e,t,n){for(var r,o=[],i=e.dom,a=yr(e,t,!0,n),c=yr(e,t,!1,n),u=[],s=a;s;s=s.nextSibling)if(u.push(s),s===c)break;return zt.each(u,(function(t){if(Lt(e,t))return o.push(t),void(r=null);if(i.isBlock(t)||Bt(t))return Bt(t)&&i.remove(t),void(r=null);var a=t.nextSibling;ar.isBookmarkNode(t)&&(Et(a)||Lt(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=i.create("p"),t.parentNode.insertBefore(r,t),o.push(r)),r.appendChild(t))})),o},wr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),o=n?n["list-style-type"]:"";return o=null===o?"":o,r===o},kr=function(e,t,n){var r=e.selection.getRng(),o="LI",i=ln(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(o="DT");var c=ur(r),u=br(e,r,i);zt.each(u,(function(r){var i,c=r.previousSibling,u=r.parentNode;Mt(u)||(c&&Et(c)&&c.nodeName===t&&wr(a,c,n)?(i=c,r=a.rename(r,o),c.appendChild(r)):(i=a.create(t),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),vr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),hr(a,i,n),Sr(e.dom,i))})),e.selection.setRng(sr(c))}},_r=function(e,t){return e&&t&&Et(e)&&e.nodeName===t.nodeName},xr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),o=e.getStyle(n,"list-style-type",!0);return r===o},Cr=function(e,t){return e.className===t.className},zr=function(e,t,n){return _r(t,n)&&xr(e,t,n)&&Cr(t,n)},Sr=function(e,t){var n,r;if(n=t.nextSibling,zr(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,zr(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Tr=function(e,t,n,r){if(t.nodeName!==n){var o=e.dom.rename(t,n);hr(e.dom,o,r),yn(e,lr(n),o)}else hr(e.dom,t,r),yn(e,lr(n),t)},Or=function(e,t,n,r,o){var i=Et(t);if(i&&t.nodeName===r&&!Er(o))ir(e);else{kr(e,r,o);var a=ur(e.selection.getRng()),c=i?H([t],n,!0):n;zt.each(c,(function(t){Tr(e,t,r,o)})),e.selection.setRng(sr(a))}},Er=function(e){return"list-style-type"in e},Ar=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Er(r)||fr(t)){var o=ur(e.selection.getRng());hr(e.dom,t,r);var i=e.dom.rename(t,n);Sr(e.dom,i),e.selection.setRng(sr(o)),kr(e,n,r),yn(e,lr(n),i)}else ir(e);else kr(e,n,r),yn(e,lr(n),t)},Dr=function(e,t,n){var r=nn(e),o=an(e),a=i(n)?n:{};o.length>0?Or(e,r,o,t,a):Ar(e,r,t,a)},Mr=Ct.DOM,Nr=function(e,t){var n=t.parentNode;if("LI"===n.nodeName&&n.firstChild===t){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(t),Ft(e,n)&&Mr.remove(n)):Mr.setStyle(n,"listStyleType","none")}if(Et(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(t)}},Rr=function(e,t){var n=zt.grep(e.select("ol,ul",t));zt.each(n,(function(t){Nr(e,t)}))},Br=function(e,t,n,r){var o=t.startContainer,i=t.startOffset;if(Ot(o)&&(n?i<o.data.length:i>0))return o;var a=e.schema.getNonEmptyElements();1===o.nodeType&&(o=Ke.getNode(o,i));var c=new Xe(o,r);n&&Ht(e.dom,o)&&c.next();while(o=c[n?"next":"prev2"]()){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(Ot(o)&&o.data.length>0)return o}},Pr=function(e,t){var n=t.childNodes;return 1===n.length&&!Et(n[0])&&e.isBlock(n[0])},Lr=function(e,t){Pr(e,t)&&e.remove(t.firstChild,!0)},Ir=function(e,t,n){var r,o=Pr(e,n)?n.firstChild:n;if(Lr(e,t),!Ft(e,t,!0))while(r=t.firstChild)o.appendChild(r)},Hr=function(e,t,n){var r,o=t.parentNode;if(jt(e,t)&&jt(e,n)){Et(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Bt(o.previousSibling)&&e.remove(o.previousSibling);var i=n.lastChild;i&&Bt(i)&&t.hasChildNodes()&&e.remove(i),Ft(e,n,!0)&&e.$(n).empty(),Ir(e,t,n),r&&n.appendChild(r);var a=$e(je.fromDom(n),je.fromDom(t)),c=a?e.getParents(t,Et,n):[];e.remove(t),z(c,(function(t){Ft(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},Fr=function(e,t,n){e.dom.$(n).empty(),Hr(e.dom,t,n),e.selection.setCursorLocation(n,0)},jr=function(e,t,n,r){var o=e.dom;if(o.isEmpty(r))Fr(e,n,r);else{var i=ur(t);Hr(o,n,r),e.selection.setRng(sr(i))}},Vr=function(e,t,n,r){var o=ur(t);Hr(e.dom,n,r);var i=sr(o);e.selection.setRng(i)},Ur=function(e,t){var n=e.dom,r=e.selection,o=r.getStart(),i=ln(e,o),a=n.getParent(r.getStart(),"LI",i);if(a){var c=a.parentNode;if(c===e.getBody()&&Ft(n,c))return!0;var u=en(r.getRng()),s=n.getParent(Br(e,u,t,i),"LI",i);if(s&&s!==a)return e.undoManager.transact((function(){t?jr(e,u,s,a):Pt(a)?or(e):Vr(e,u,a,s)})),!0;if(!s&&!t&&0===u.startOffset&&0===u.endOffset)return e.undoManager.transact((function(){ir(e)})),!0}return!1},qr=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Wr=function(e,t){var n=e.dom,r=e.selection.getStart(),o=ln(e,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=en(e.selection.getRng()),c=n.getParent(Br(e,a,t,o),"LI",o);if(c)return e.undoManager.transact((function(){qr(n,i,o),Sr(n,c.parentNode),e.selection.select(c,!0),e.selection.collapse(t)})),!0}return!1},$r=function(e,t){return Ur(e,t)||Wr(e,t)},Gr=function(e){var t=e.selection.getStart(),n=ln(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||un(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),Rr(e.dom,e.getBody())})),!0)},Kr=function(e,t){return e.selection.isCollapsed()?$r(e,t):Gr(e)},Xr=function(e){e.on("keydown",(function(t){t.keyCode===Ye.BACKSPACE?Kr(e,!1)&&t.preventDefault():t.keyCode===Ye.DELETE&&Kr(e,!0)&&t.preventDefault()}))},Yr=function(e){return{backspaceDelete:function(t){Kr(e,t)}}},Jr=function(e,t){var n=nn(e);e.undoManager.transact((function(){i(t.styles)&&e.dom.setStyles(n,t.styles),i(t.attrs)&&Qe(t.attrs,(function(t,r){return e.dom.setAttrib(n,r,t)}))}))},Qr=function(e){var t=N(ee(e).split("")),n=C(t,(function(e,t){var n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n}));return O(n,(function(e,t){return e+t}),0)},Zr=function(e){if(e--,e<0)return"";var t=e%26,n=Math.floor(e/26),r=Zr(n),o=String.fromCharCode("A".charCodeAt(0)+t);return r+o},eo=function(e){return/^[A-Z]+$/.test(e)},to=function(e){return/^[a-z]+$/.test(e)},no=function(e){return/^[0-9]+$/.test(e)},ro=function(e){return no(e)?2:eo(e)?0:to(e)?1:ne(e)?3:4},oo=function(e){switch(ro(e)){case 2:return k.some({listStyleType:k.none(),start:e});case 0:return k.some({listStyleType:k.some("upper-alpha"),start:Qr(e).toString()});case 1:return k.some({listStyleType:k.some("lower-alpha"),start:Qr(e).toString()});case 3:return k.some({listStyleType:k.none(),start:""});case 4:return k.none()}},io=function(e){var t=parseInt(e.start,10);return pn(e.listStyleType,"upper-alpha")?Zr(t):pn(e.listStyleType,"lower-alpha")?Zr(t).toLowerCase():e.start},ao=function(e){var t=nn(e);Dt(t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:io({start:e.dom.getAttrib(t,"start","1"),listStyleType:k.some(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=t.getData();oo(n.start).each((function(t){e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})})),t.close()}})},co=function(e,t){return function(){var n=nn(e);return n&&n.nodeName===t}},uo=function(e){e.addCommand("mceListProps",(function(){ao(e)}))},so=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?rr(e):"outdent"===n&&or(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Dr(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Dr(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Dr(e,"DL",n)})),e.addCommand("RemoveList",(function(){ir(e)})),uo(e),e.addCommand("mceListUpdate",(function(t,n){i(n)&&Jr(e,n)})),e.addQueryStateHandler("InsertUnorderedList",co(e,"UL")),e.addQueryStateHandler("InsertOrderedList",co(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",co(e,"DL"))},lo=function(e){e.on("keydown",(function(t){t.keyCode!==Ye.TAB||Ye.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?or(e):rr(e))&&t.preventDefault()}))}))},fo=function(e){Vt(e)&&lo(e),Xr(e)},mo=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return dr(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return dr(e,"UL",t.setActive)}}))},go=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return e.execCommand("mceListProps")},onSetup:function(t){return dr(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=nn(e,t);return Dt(n)?["listprops"]:[]}})};function po(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)?(fo(e),so(e)):uo(e),mo(e),go(e),Yr(e)}))}po()})()},"24e8":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},n=function(e,t){return-1!==e.indexOf(t)},r=function(e,n){return t(e,n,0)},o=tinymce.util.Tools.resolve("tinymce.Env"),i=function(){return/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-+~=.,%()\/\w]*[-+~=%()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g},a=new RegExp("^"+i().source+"$","i"),c=function(e){return e.getParam("autolink_pattern",a)},u=function(e){return e.getParam("default_link_target",!1)},s=function(e){return e.getParam("link_default_protocol","http","string")},l=function(e){return/^[(\[{ \u00a0]$/.test(e)},f=function(e){return 3===e.nodeType},d=function(e){return 1===e.nodeType},m=function(e){return k(e,-1)},g=function(e){return k(e,0)},p=function(e){return k(e,-1)},h=function(e,t){if(t<0&&(t=0),f(e)){var n=e.data.length;t>n&&(t=n)}return t},v=function(e,t,n){!d(t)||t.hasChildNodes()?e.setStart(t,h(t,n)):e.setStartBefore(t)},y=function(e,t,n){!d(t)||t.hasChildNodes()?e.setEnd(t,h(t,n)):e.setEndAfter(t)},b=function(e){return/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e)},w=function(e){return/[?!,.;:]/.test(e)},k=function(e,t){var o,i,a,d,m,g,p,h=c(e),k=u(e);if(null===e.dom.getParent(e.selection.getNode(),"a[href]")){var _=e.selection.getRng().cloneRange();if(_.startOffset<5){if(m=_.endContainer.previousSibling,!m){if(!_.endContainer.firstChild||!_.endContainer.firstChild.nextSibling)return;m=_.endContainer.firstChild.nextSibling}if(g=m.length,v(_,m,g),y(_,m,g),_.endOffset<5)return;o=_.endOffset,i=m}else{if(i=_.endContainer,!f(i)&&i.firstChild){while(!f(i)&&i.firstChild)i=i.firstChild;f(i)&&(v(_,i,0),y(_,i,i.nodeValue.length))}o=1===_.endOffset?2:_.endOffset-1-t}var x=o;do{v(_,i,o>=2?o-2:0),y(_,i,o>=1?o-1:0),o-=1,p=_.toString()}while(!l(p)&&o-2>=0);l(_.toString())?(v(_,i,o),y(_,i,x),o+=1):0===_.startOffset?(v(_,i,0),y(_,i,x)):(v(_,i,o),y(_,i,x)),d=_.toString(),w(d.charAt(d.length-1))&&y(_,i,x-1),d=_.toString().trim();var C=d.match(h),z=s(e);if(C){var S=C[0];r(S,"www.")?S=z+"://"+S:n(S,"@")&&!b(S)&&(S="mailto:"+S),a=e.selection.getBookmark(),e.selection.setRng(_),e.execCommand("createlink",!1,S),!1!==k&&e.dom.setAttrib(e.selection.getNode(),"target",k),e.selection.moveToBookmark(a),e.nodeChanged()}}},_=function(e){var t;e.on("keydown",(function(t){if(13===t.keyCode)return p(e)})),o.browser.isIE()?e.on("focus",(function(){if(!t){t=!0;try{e.execCommand("AutoUrlDetect",!1,!0)}catch(n){}}})):(e.on("keypress",(function(t){if(41===t.keyCode||93===t.keyCode||125===t.keyCode)return m(e)})),e.on("keyup",(function(t){if(32===t.keyCode)return g(e)})))};function x(){e.add("autolink",(function(e){_(e)}))}x()})()},2519:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return r(t)===e}},i=function(e){return function(t){return typeof t===e}},a=o("string"),c=o("array"),u=i("boolean"),s=i("number"),l=function(){},f=function(e){return function(){return e}},d=function(e){return e},m=f(!1),g=f(!0),p="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",h=f(p),v=function(){return y},y=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:v,each:l,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),b=function(e){var t=f(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},w=function(e){return null===e||void 0===e?y:b(e)},k={some:b,none:v,from:w},_=h,x=tinymce.util.Tools.resolve("tinymce.Env"),C=tinymce.util.Tools.resolve("tinymce.util.Tools"),z=Array.prototype.slice,S=Array.prototype.push,T=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},O=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},E=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},A=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],o=[],i=0,a=e.length;i<a;i++){var c=e[i],u=t(c);u!==n&&(r.push(o),o=[]),n=u,o.push(c)}return 0!==o.length&&r.push(o),r},D=function(e,t,n){return O(e,(function(e,r){n=t(n,e,r)})),n},M=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);S.apply(t,e[n])}return t},N=function(e,t){return M(T(e,t))},R=function(e,t){var n=z.call(e,0);return n.sort(t),n},B=Object.hasOwnProperty,P=function(e,t){return B.call(e,t)};"undefined"!==typeof window?window:Function("return this;")();var L=9,I=11,H=1,F=3,j=function(e){return e.dom.nodeType},V=function(e){return function(t){return j(t)===e}},U=V(F),q=function(e,t,n){if(!(a(n)||u(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},W=function(e,t,n){q(e.dom,t,n)},$=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},G=function(e,t){return $(e,t,Node.DOCUMENT_POSITION_PRECEDING)},K=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return J(r.childNodes[0])},X=function(e,t){var n=t||document,r=n.createElement(e);return J(r)},Y=function(e,t){var n=t||document,r=n.createTextNode(e);return J(r)},J=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Q=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(J)},Z={fromHtml:K,fromTag:X,fromText:Y,fromDom:J,fromPoint:Q},ee=function(e){return e.nodeType!==H&&e.nodeType!==L&&e.nodeType!==I||0===e.childElementCount},te=function(e,t){var n=void 0===t?document:t.dom;return ee(n)?[]:T(n.querySelectorAll(e),Z.fromDom)},ne=function(e){return k.from(e.dom.parentNode).map(Z.fromDom)},re=function(e){return T(e.dom.childNodes,Z.fromDom)},oe=function(e,t){return{element:e,offset:t}},ie=function(e,t){var n=re(e);return n.length>0&&t<n.length?oe(n[t],0):oe(e,t)},ae=function(e,t){var n=ne(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ce=function(e,t){e.dom.appendChild(t.dom)},ue=function(e,t){ae(e,t),ce(t,e)},se=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?k.from(t.dom.nodeValue):k.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},le=se(U,"text"),fe=function(e){return le.get(e)},de=function(e,t){return te(t,e)},me=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ge=function(e,t){return e.isBlock(t)||P(e.schema.getShortEndedElements(),t.nodeName)},pe=function(e,t){return"false"===e.getContentEditable(t)},he=function(e,t){return"true"===e.getContentEditable(t)&&"false"===e.getContentEditableParent(t.parentNode)},ve=function(e,t){return!e.isBlock(t)&&P(e.schema.getWhiteSpaceElements(),t.nodeName)},ye=function(e,t){return ge(e,t)||pe(e,t)||ve(e,t)||he(e,t)},be=function(e){return 3===e.nodeType},we=function(){return{sOffset:0,fOffset:0,elements:[]}},ke=function(e,t){return ie(Z.fromDom(e),t)},_e=function(e,t,n,r,o,i){void 0===i&&(i=!0);var a=i?t(!1):n;while(a){var c=pe(e,a);if(c||ve(e,a)){var u=c?r.cef(a):r.boundary(a);if(u)break;a=t(!0)}else{if(ge(e,a)){if(r.boundary(a))break}else be(a)&&r.text(a);if(a===o)break;a=t(!1)}}},xe=function(e,t,n,r,o){if(!ye(e,n)){var i=e.getParent(r,e.isBlock),a=new me(n,i),c=o?a.next.bind(a):a.prev.bind(a);_e(e,c,n,{boundary:g,cef:g,text:function(e){o?t.fOffset+=e.length:t.sOffset+=e.length,t.elements.push(Z.fromDom(e))}})}},Ce=function(e,t,n,r,o,i){void 0===i&&(i=!0);var a=new me(n,t),c=[],u=we();xe(e,u,n,t,!1);var s=function(){return u.elements.length>0&&(c.push(u),u=we()),!1};return _e(e,a.next.bind(a),n,{boundary:s,cef:function(e){return s(),o&&c.push.apply(c,o.cef(e)),!1},text:function(e){u.elements.push(Z.fromDom(e)),o&&o.text(e,u)}},r,i),r&&xe(e,u,r,t,!0),s(),c},ze=function(e,t){var n=ke(t.startContainer,t.startOffset),r=n.element.dom,o=ke(t.endContainer,t.endOffset),i=o.element.dom;return Ce(e,t.commonAncestorContainer,r,i,{text:function(e,t){e===i?t.fOffset+=e.length-o.offset:e===r&&(t.sOffset+=n.offset)},cef:function(t){var n=N(de(Z.fromDom(t),"*[contenteditable=true]"),(function(t){var n=t.dom;return Ce(e,n,n)}));return R(n,(function(e,t){return G(e.elements[0].dom,t.elements[0].dom)?1:-1}))}},!1)},Se=function(e,t){return t.collapsed?[]:ze(e,t)},Te=function(e,t){var n=e.createRng();return n.selectNode(t),Se(e,n)},Oe=function(e,t){return N(t,(function(t){return Te(e,t)}))},Ee=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);var o=t.regex;o.lastIndex=n;var i,a=[];while(i=o.exec(e)){var c=i[t.matchIndex],u=i.index+i[0].indexOf(c),s=u+c.length;if(s>r)break;a.push({start:u,finish:s}),o.lastIndex=s}return a},Ae=function(e,t){var n=D(e,(function(e,n){var r=fe(n),o=e.last,i=o+r.length,a=N(t,(function(e,t){return e.start<i&&e.finish>o?[{element:n,start:Math.max(o,e.start)-o,finish:Math.min(i,e.finish)-o,matchId:t}]:[]}));return{results:e.results.concat(a),last:i}}),{results:[],last:0}).results;return A(n,(function(e){return e.matchId}))},De=function(e,t){return N(t,(function(t){var n=t.elements,r=T(n,fe).join(""),o=Ee(r,e,t.sOffset,r.length-t.fOffset);return Ae(n,o)}))},Me=function(e,t){E(e,(function(e,n){E(e,(function(e){var r=Z.fromDom(t.cloneNode(!1));W(r,"data-mce-index",n);var o=e.element.dom;if(o.length===e.finish&&0===e.start)ue(e.element,r);else{o.length!==e.finish&&o.splitText(e.finish);var i=o.splitText(e.start);ue(Z.fromDom(i),r)}}))}))},Ne=function(e,t,n,r){var o=Te(e,n),i=De(t,o);return Me(i,r),i.length},Re=function(e,t,n,r){var o=n.getBookmark(),i=e.select("td[data-mce-selected],th[data-mce-selected]"),a=i.length>0?Oe(e,i):Se(e,n.getRng()),c=De(t,a);return Me(c,r),n.moveToBookmark(o),c.length},Be=function(e){var t=e.getAttribute("data-mce-index");return"number"===typeof t?""+t:t},Pe=function(e,t,n,r){var o=e.dom.create("span",{"data-mce-bogus":1});o.className="mce-match-marker";var i=e.getBody();return Ge(e,t,!1),r?Re(e.dom,n,e.selection,o):Ne(e.dom,n,i,o)},Le=function(e){var t=e.parentNode;e.firstChild&&t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)},Ie=function(e,t){var n=[],r=C.toArray(e.getBody().getElementsByTagName("span"));if(r.length)for(var o=0;o<r.length;o++){var i=Be(r[o]);null!==i&&i.length&&(i===t.toString()&&n.push(r[o]))}return n},He=function(e,t,n){var r=t.get(),o=r.index,i=e.dom;n=!1!==n,n?o+1===r.count?o=0:o++:o-1===-1?o=r.count-1:o--,i.removeClass(Ie(e,r.index),"mce-match-marker-selected");var a=Ie(e,o);return a.length?(i.addClass(Ie(e,o),"mce-match-marker-selected"),e.selection.scrollIntoView(a[0]),o):-1},Fe=function(e,t){var n=t.parentNode;e.remove(t),e.isEmpty(n)&&e.remove(n)},je=function(e,t){var n=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(/\s/g,"[^\\S\\r\\n\\uFEFF]"),r="("+n+")";return t?"(?:^|\\s|"+_()+")"+r+"(?=$|\\s|"+_()+")":r},Ve=function(e,t,n,r,o,i){var a=e.selection,c=je(n,o),u=a.isForward(),s={regex:new RegExp(c,r?"g":"gi"),matchIndex:1},l=Pe(e,t,s,i);if(x.browser.isSafari()&&a.setRng(a.getRng(),u),l){var f=He(e,t,!0);t.set({index:f,count:l,text:n,matchCase:r,wholeWord:o,inSelection:i})}return l},Ue=function(e,t){var r=He(e,t,!0);t.set(n(n({},t.get()),{index:r}))},qe=function(e,t){var r=He(e,t,!1);t.set(n(n({},t.get()),{index:r}))},We=function(e){var t=Be(e);return null!==t&&t.length>0},$e=function(e,t,r,o,i){var a,c=t.get(),u=c.index,s=u;o=!1!==o;for(var l=e.getBody(),f=C.grep(C.toArray(l.getElementsByTagName("span")),We),d=0;d<f.length;d++){var m=Be(f[d]),g=a=parseInt(m,10);if(i||g===c.index){r.length?(f[d].firstChild.nodeValue=r,Le(f[d])):Fe(e.dom,f[d]);while(f[++d]){if(g=parseInt(Be(f[d]),10),g!==a){d--;break}Fe(e.dom,f[d])}o&&s--}else a>u&&f[d].setAttribute("data-mce-index",String(a-1))}return t.set(n(n({},c),{count:i?0:c.count-1,index:s})),o?Ue(e,t):qe(e,t),!i&&t.get().count>0},Ge=function(e,t,r){for(var o,i,a=t.get(),c=C.toArray(e.getBody().getElementsByTagName("span")),u=0;u<c.length;u++){var s=Be(c[u]);null!==s&&s.length&&(s===a.index.toString()&&(o||(o=c[u].firstChild),i=c[u].firstChild),Le(c[u]))}if(t.set(n(n({},a),{index:-1,count:0,text:""})),o&&i){var l=e.dom.createRng();return l.setStart(o,0),l.setEnd(i,i.data.length),!1!==r&&e.selection.setRng(l),l}},Ke=function(e,t){return t.get().count>1},Xe=function(e,t){return t.get().count>1},Ye=function(e,t){var n=function(n){return Ge(e,t,n)},r=function(n,r,o,i){return void 0===i&&(i=!1),Ve(e,t,n,r,o,i)},o=function(){return Ue(e,t)},i=function(){return qe(e,t)},a=function(n,r,o){return $e(e,t,n,r,o)};return{done:n,find:r,next:o,prev:i,replace:a}},Je=function(t){var n=e(k.none()),r=function(){return n.get().each(t)},o=function(){r(),n.set(k.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},c=function(e){r(),n.set(k.some(e))};return{clear:o,isSet:i,get:a,set:c}},Qe=function(){var e=Je(l),t=function(t){return e.get().each(t)};return n(n({},e),{on:t})},Ze=function(e,t){var r=Qe();e.undoManager.add();var o=C.trim(e.selection.getContent({format:"text"})),i=function(n){var r=Ke(e,t)?n.enable:n.disable;r("next");var o=Xe(e,t)?n.enable:n.disable;o("prev")},a=function(e){var r=e.getData(),o=t.get();t.set(n(n({},o),{matchCase:r.matchcase,wholeWord:r.wholewords,inSelection:r.inselection}))},c=function(e,t){var n=["replace","replaceall","prev","next"],r=t?e.disable:e.enable;O(n,r)},u=function(t){e.windowManager.alert("Could not find the specified string.",(function(){t.focus("findtext")}))},s=function(e,t){x.browser.isSafari()&&x.deviceType.isTouch()&&("find"===t||"replace"===t||"replaceall"===t)&&e.focus(t)},l=function(n){Ge(e,t,!1),c(n,!0),i(n)},f=function(n){var r=n.getData(),o=t.get();if(r.findtext.length){if(o.text===r.findtext&&o.matchCase===r.matchcase&&o.wholeWord===r.wholewords)Ue(e,t);else{var a=Ve(e,t,r.findtext,r.matchcase,r.wholewords,r.inselection);a<=0&&u(n),c(n,0===a)}i(n)}else l(n)},d=t.get(),m={findtext:o,replacetext:"",wholewords:d.wholeWord,matchcase:d.matchCase,inselection:d.inSelection},g={title:"Find and Replace",size:"normal",body:{type:"panel",items:[{type:"bar",items:[{type:"input",name:"findtext",placeholder:"Find",maximized:!0,inputMode:"search"},{type:"button",name:"prev",text:"Previous",icon:"action-prev",disabled:!0,borderless:!0},{type:"button",name:"next",text:"Next",icon:"action-next",disabled:!0,borderless:!0}]},{type:"input",name:"replacetext",placeholder:"Replace with",inputMode:"search"}]},buttons:[{type:"menu",name:"options",icon:"preferences",tooltip:"Preferences",align:"start",items:[{type:"togglemenuitem",name:"matchcase",text:"Match case"},{type:"togglemenuitem",name:"wholewords",text:"Find whole words only"},{type:"togglemenuitem",name:"inselection",text:"Find in selection"}]},{type:"custom",name:"find",text:"Find",primary:!0},{type:"custom",name:"replace",text:"Replace",disabled:!0},{type:"custom",name:"replaceall",text:"Replace all",disabled:!0}],initialData:m,onChange:function(e,n){"findtext"===n.name&&t.get().count>0&&l(e)},onAction:function(n,r){var o=n.getData();switch(r.name){case"find":f(n);break;case"replace":$e(e,t,o.replacetext)?i(n):l(n);break;case"replaceall":$e(e,t,o.replacetext,!0,!0),l(n);break;case"prev":qe(e,t),i(n);break;case"next":Ue(e,t),i(n);break;case"matchcase":case"wholewords":case"inselection":a(n),l(n);break}s(n,r.name)},onSubmit:function(e){f(e),s(e,"find")},onClose:function(){e.focus(),Ge(e,t),e.undoManager.add()}};r.set(e.windowManager.open(g,{inline:"toolbar"}))},et=function(e,t){e.addCommand("SearchReplace",(function(){Ze(e,t)}))},tt=function(e,t){return function(){Ze(e,t)}},nt=function(e,t){e.ui.registry.addMenuItem("searchreplace",{text:"Find and replace...",shortcut:"Meta+F",onAction:tt(e,t),icon:"search"}),e.ui.registry.addButton("searchreplace",{tooltip:"Find and replace",onAction:tt(e,t),icon:"search"}),e.shortcuts.add("Meta+F","",tt(e,t))};function rt(){t.add("searchreplace",(function(t){var n=e({index:-1,count:0,text:"",matchCase:!1,wholeWord:!1,inSelection:!1});return et(t,n),nt(t,n),Ye(t,n)}))}rt()})()},"2b07":function(e,t,n){n("dbbc")},"2fec":function(e,t,n){n("24e8")},3154:function(e,t,n){n("f034")},"365e":function(e,t,n){n("cf08")},3699:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},o=r("string"),i=r("object"),a=r("array"),c=function(e){return null===e||void 0===e},u=function(e){return!c(e)},s=function(){},l=function(e){return function(){return e}},f=function(e){return e},d=l(!1),m=l(!0),g=function(){return p},p=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:d,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:l(null),getOrUndefined:l(void 0),or:t,orThunk:e,map:g,each:s,bind:g,exists:d,forall:m,filter:function(){return g()},toArray:function(){return[]},toString:l("none()")};return n}(),h=function(e){var t=l(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:m,isNone:d,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return h(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:p},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},v=function(e){return null===e||void 0===e?p:h(e)},y={some:h,none:g,from:v},b=Array.prototype.push,w=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},k=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);b.apply(t,e[n])}return t},_=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},x=Object.keys,C=Object.hasOwnProperty,z=function(e,t){for(var n=x(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},S=function(e,t){return T(e,t)?y.from(e[t]):y.none()},T=function(e,t){return C.call(e,t)},O=function(e){return e.getParam("media_scripts")},E=function(e){return e.getParam("audio_template_callback")},A=function(e){return e.getParam("video_template_callback")},D=function(e){return e.getParam("media_live_embeds",!0)},M=function(e){return e.getParam("media_filter_html",!0)},N=function(e){return e.getParam("media_url_resolver")},R=function(e){return e.getParam("media_alt_source",!0)},B=function(e){return e.getParam("media_poster",!0)},P=function(e){return e.getParam("media_dimensions",!0)},L=tinymce.util.Tools.resolve("tinymce.util.Tools"),I=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),H=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),F=function(e,t){if(e)for(var n=0;n<e.length;n++)if(-1!==t.indexOf(e[n].filter))return e[n]},j=I.DOM,V=function(e){return e.replace(/px$/,"")},U=function(e){var t=e.map.style,n=t?j.parseStyle(t):{};return{type:"ephox-embed-iri",source:e.map["data-ephox-embed-iri"],altsource:"",poster:"",width:S(n,"max-width").map(V).getOr(""),height:S(n,"max-height").map(V).getOr("")}},q=function(e,t){var n=_(!1),r={};return H({validate:!1,allow_conditional_comments:!0,start:function(t,o){if(n.get());else if(T(o.map,"data-ephox-embed-iri"))n.set(!0),r=U(o);else{if(r.source||"param"!==t||(r.source=o.map.movie),"iframe"!==t&&"object"!==t&&"embed"!==t&&"video"!==t&&"audio"!==t||(r.type||(r.type=t),r=L.extend(o.map,r)),"script"===t){var i=F(e,o.map.src);if(!i)return;r={type:"script",source:o.map.src,width:String(i.width),height:String(i.height)}}"source"===t&&(r.source?r.altsource||(r.altsource=o.map.src):r.source=o.map.src),"img"!==t||r.poster||(r.poster=o.map.src)}}}).parse(t),r.source=r.source||r.src||r.data,r.altsource=r.altsource||"",r.poster=r.poster||"",r},W=function(e){var t={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},n=e.toLowerCase().split(".").pop(),r=t[n];return r||""},$=tinymce.util.Tools.resolve("tinymce.html.Schema"),G=tinymce.util.Tools.resolve("tinymce.html.Writer"),K=I.DOM,X=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},Y=function(e,t){z(t,(function(t,n){var r=""+t;if(e.map[n]){var o=e.length;while(o--){var i=e[o];i.name===n&&(r?(e.map[n]=r,i.value=r):(delete e.map[n],e.splice(o,1)))}}else r&&(e.push({name:n,value:r}),e.map[n]=r)}))},J=function(e,t){var n=t.map.style,r=n?K.parseStyle(n):{};r["max-width"]=X(e.width),r["max-height"]=X(e.height),Y(t,{style:K.serializeStyle(r)})},Q=["source","altsource"],Z=function(e,t,n){var r,o=G(),i=_(!1),a=0;return H({validate:!1,allow_conditional_comments:!0,comment:function(e){o.comment(e)},cdata:function(e){o.cdata(e)},text:function(e,t){o.text(e,t)},start:function(e,c,u){if(i.get());else if(T(c.map,"data-ephox-embed-iri"))i.set(!0),J(t,c);else{switch(e){case"video":case"object":case"embed":case"img":case"iframe":void 0!==t.height&&void 0!==t.width&&Y(c,{width:t.width,height:t.height});break}if(n)switch(e){case"video":Y(c,{poster:t.poster,src:""}),t.altsource&&Y(c,{src:""});break;case"iframe":Y(c,{src:t.source});break;case"source":if(a<2&&(Y(c,{src:t[Q[a]],type:t[Q[a]+"mime"]}),!t[Q[a]]))return;a++;break;case"img":if(!t.poster)return;r=!0;break}}o.start(e,c,u)},end:function(e){if(!i.get()){if("video"===e&&n)for(var c=0;c<2;c++)if(t[Q[c]]){var u=[];u.map={},a<=c&&(Y(u,{src:t[Q[c]],type:t[Q[c]+"mime"]}),o.start("source",u,!0))}if(t.poster&&"object"===e&&n&&!r){var s=[];s.map={},Y(s,{src:t.poster,width:t.width,height:t.height}),o.start("img",s,!0)}}o.end(e)}},$({})).parse(e),o.getContent()},ee=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&amp;byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],te=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},ne=function(e,t){for(var n=te(t),r=e.regex.exec(t),o=n+e.url,i=function(e){o=o.replace("$"+e,(function(){return r[e]?r[e]:""}))},a=0;a<r.length;a++)i(a);return o.replace(/\?$/,"")},re=function(e){var t=ee.filter((function(t){return t.regex.test(e)}));return t.length>0?L.extend({},t[0],{url:ne(t[0],e)}):null},oe=function(e){var t=e.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"},ie=function(e){var t='<object data="'+e.source+'" width="'+e.width+'" height="'+e.height+'" type="application/x-shockwave-flash">';return e.poster&&(t+='<img src="'+e.poster+'" width="'+e.width+'" height="'+e.height+'" />'),t+="</object>",t},ae=function(e,t){return t?t(e):'<audio controls="controls" src="'+e.source+'">'+(e.altsource?'\n<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</audio>"},ce=function(e,t){return t?t(e):'<video width="'+e.width+'" height="'+e.height+'"'+(e.poster?' poster="'+e.poster+'"':"")+' controls="controls">\n<source src="'+e.source+'"'+(e.sourcemime?' type="'+e.sourcemime+'"':"")+" />\n"+(e.altsource?'<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</video>"},ue=function(e){return'<script src="'+e.source+'"><\/script>'},se=function(e,t){var n=L.extend({},t);if(!n.source&&(L.extend(n,q(O(e),n.embed)),!n.source))return"";n.altsource||(n.altsource=""),n.poster||(n.poster=""),n.source=e.convertURL(n.source,"source"),n.altsource=e.convertURL(n.altsource,"source"),n.sourcemime=W(n.source),n.altsourcemime=W(n.altsource),n.poster=e.convertURL(n.poster,"poster");var r=re(n.source);if(r&&(n.source=r.url,n.type=r.type,n.allowfullscreen=r.allowFullscreen,n.width=n.width||String(r.w),n.height=n.height||String(r.h)),n.embed)return Z(n.embed,n,!0);var o=F(O(e),n.source);o&&(n.type="script",n.width=String(o.width),n.height=String(o.height));var i=E(e),a=A(e);return n.width=n.width||"300",n.height=n.height||"150",L.each(n,(function(t,r){n[r]=e.dom.encode(""+t)})),"iframe"===n.type?oe(n):"application/x-shockwave-flash"===n.sourcemime?ie(n):-1!==n.sourcemime.indexOf("audio")?ae(n,i):"script"===n.type?ue(n):ce(n,a)},le=function(e){return e.hasAttribute("data-mce-object")||e.hasAttribute("data-ephox-embed-iri")},fe=function(e){e.on("click keyup touchend",(function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")})),e.on("ObjectSelected",(function(e){var t=e.target.getAttribute("data-mce-object");"script"===t&&e.preventDefault()})),e.on("ObjectResized",(function(e){var t=e.target;if(t.getAttribute("data-mce-object")){var n=t.getAttribute("data-mce-html");n&&(n=unescape(n),t.setAttribute("data-mce-html",escape(Z(n,{width:String(e.width),height:String(e.height)}))))}}))},de=tinymce.util.Tools.resolve("tinymce.util.Promise"),me={},ge=function(e,t,n){return new de((function(r,o){var i=function(n){return n.html&&(me[e.source]=n),r({url:e.source,html:n.html?n.html:t(e)})};me[e.source]?i(me[e.source]):n({url:e.source},i,o)}))},pe=function(e,t){return de.resolve({html:t(e),url:e.source})},he=function(e){return function(t){return se(e,t)}},ve=function(e,t){var n=N(e);return n?ge(t,he(e),n):pe(t,he(e))},ye=function(e){return T(me,e)},be=function(e,t){return S(t,e).bind((function(e){return S(e,"meta")}))},we=function(e,t,n){return function(r){var o,a=function(){return S(e,r)},c=function(){return S(t,r)},u=function(e){return S(e,"value").bind((function(e){return e.length>0?y.some(e):y.none()}))},s=function(){return a().bind((function(e){return i(e)?u(e).orThunk(c):c().orThunk((function(){return y.from(e)}))}))},l=function(){return c().orThunk((function(){return a().bind((function(e){return i(e)?u(e):y.from(e)}))}))};return o={},o[r]=(r===n?s():l()).getOr(""),o}},ke=function(e,t){var n={};return S(e,"dimensions").each((function(e){w(["width","height"],(function(r){S(t,r).orThunk((function(){return S(e,r)})).each((function(e){return n[r]=e}))}))})),n},_e=function(e,n){var r=n?be(n,e).getOr({}):{},o=we(e,r,n);return t(t(t(t(t({},o("source")),o("altsource")),o("poster")),o("embed")),ke(e,r))},xe=function(e){var n=t(t({},e),{source:{value:S(e,"source").getOr("")},altsource:{value:S(e,"altsource").getOr("")},poster:{value:S(e,"poster").getOr("")}});return w(["width","height"],(function(t){S(e,t).each((function(e){var r=n.dimensions||{};r[t]=e,n.dimensions=r}))})),n},Ce=function(e){return function(t){var n=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:n})}},ze=function(e,t){return q(O(e),t)},Se=function(e){var n=e.selection.getNode(),r=le(n)?e.serializer.serialize(n,{selection:!0}):"";return t({embed:r},q(O(e),r))},Te=function(e,n){return function(r){if(o(r.url)&&r.url.trim().length>0){var i=r.html,a=ze(n,i),c=t(t({},a),{source:r.url,embed:i});e.setData(xe(c))}}},Oe=function(e,t){for(var n=e.dom.select("*[data-mce-object]"),r=0;r<t.length;r++)for(var o=n.length-1;o>=0;o--)t[r]===n[o]&&n.splice(o,1);e.selection.select(n[0])},Ee=function(e,t){var n=e.dom.select("*[data-mce-object]");e.insertContent(t),Oe(e,n),e.nodeChanged()},Ae=function(e,t,n){t.embed=Z(t.embed,t),t.embed&&(e.source===t.source||ye(t.source))?Ee(n,t.embed):ve(n,t).then((function(e){Ee(n,e.html)})).catch(Ce(n))},De=function(e){var n=Se(e),r=_(n),o=xe(n),i=function(t,n){var r=_e(n.getData(),"source");t.source!==r.source&&(Te(v,e)({url:r.source,html:""}),ve(e,r).then(Te(v,e)).catch(Ce(e)))},a=function(t){var n=_e(t.getData()),r=ze(e,n.embed);t.setData(xe(r))},c=function(n,r){var o=_e(n.getData(),r),i=se(e,o);n.setData(xe(t(t({},o),{embed:i})))},u=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],s=P(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:k([u,s])},f={type:"textarea",name:"embed",label:"Paste your embed code below:"},d={title:"Embed",items:[f]},m=[];R(e)&&m.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),B(e)&&m.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var g={title:"Advanced",name:"advanced",items:m},p=[l,d];m.length>0&&p.push(g);var h={type:"tabpanel",tabs:p},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:h,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=_e(t.getData());Ae(r.get(),n,e),t.close()},onChange:function(e,t){switch(t.name){case"source":i(r.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":c(e,t.name);break}r.set(_e(e.getData()))},initialData:o})},Me=function(e){var t=function(){De(e)};return{showDialog:t}},Ne=function(e){var t=function(){De(e)};e.addCommand("mceMedia",t)},Re=tinymce.util.Tools.resolve("tinymce.html.Node"),Be=tinymce.util.Tools.resolve("tinymce.Env"),Pe=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Le=function(e,t){if(!1===M(e))return t;var n,r=G();return H({validate:!1,allow_conditional_comments:!1,comment:function(e){n||r.comment(e)},cdata:function(e){n||r.cdata(e)},text:function(e,t){n||r.text(e,t)},start:function(t,o,i){if(n=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=o.length-1;a>=0;a--){var c=o[a].name;0===c.indexOf("on")&&(delete o.map[c],o.splice(a,1)),"style"===c&&(o[a].value=e.dom.serializeStyle(e.dom.parseStyle(o[a].value),t))}r.start(t,o,i),n=!1}},end:function(e){n||r.end(e)}},$({})).parse(t),r.getContent()},Ie=function(e){var t=e.name;return"iframe"===t||"video"===t||"audio"===t},He=function(e,t,n,r){void 0===r&&(r=null);var o=e.attr(n);return u(o)?o:T(t,n)?null:r},Fe=function(e,t,n){var r="img"===t.name||"video"===e.name,o=r?"300":null,i="audio"===e.name?"30":"150",a=r?i:null;t.attr({width:He(e,n,"width",o),height:He(e,n,"height",a)})},je=function(e,t,n,r){var o=Pe({forced_root_block:!1,validate:!1},e.schema).parse(r,{context:t});while(o.firstChild)n.append(o.firstChild)},Ve=function(e,t){var n=t.name,r=new Re("img",1);return r.shortEnded=!0,qe(e,t,r),Fe(t,r,{}),r.attr({style:t.attr("style"),src:Be.transparentSrc,"data-mce-object":n,class:"mce-object mce-object-"+n}),r},Ue=function(e,t){var n=t.name,r=new Re("span",1);r.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":n,class:"mce-preview-object mce-object-"+n}),qe(e,t,r);var o=e.dom.parseStyle(t.attr("style")),i=new Re(n,1);if(Fe(t,i,o),i.attr({src:t.attr("src"),style:t.attr("style"),class:t.attr("class")}),"iframe"===n)i.attr({allowfullscreen:t.attr("allowfullscreen"),frameborder:"0"});else{var a=["controls","crossorigin","currentTime","loop","muted","poster","preload"];w(a,(function(e){i.attr(e,t.attr(e))}));var c=r.attr("data-mce-html");u(c)&&je(e,n,i,unescape(c))}var s=new Re("span",1);return s.attr("class","mce-shim"),r.append(i),r.append(s),r},qe=function(e,t,n){var r=t.attributes,o=r.length;while(o--){var i=r[o].name,a=r[o].value;"width"!==i&&"height"!==i&&"style"!==i&&("data"!==i&&"src"!==i||(a=e.convertURL(a,i)),n.attr("data-mce-p-"+i,a))}var c=t.firstChild&&t.firstChild.value;c&&(n.attr("data-mce-html",escape(Le(e,c))),n.firstChild=null)},We=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},$e=function(e){while(e=e.parent)if(e.attr("data-ephox-embed-iri")||We(e))return!0;return!1},Ge=function(e){return function(t){var n,r,o=t.length;while(o--)n=t[o],n.parent&&(n.parent.attr("data-mce-object")||("script"!==n.name||(r=F(O(e),n.attr("src")),r))&&(r&&(r.width&&n.attr("width",r.width.toString()),r.height&&n.attr("height",r.height.toString())),Ie(n)&&D(e)&&Be.ceFalse?$e(n)||n.replace(Ue(e,n)):$e(n)||n.replace(Ve(e,n))))}},Ke=function(e){e.on("preInit",(function(){var t=e.schema.getSpecialElements();L.each("video audio iframe object".split(" "),(function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")}));var n=e.schema.getBoolAttrs();L.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),(function(e){n[e]={}})),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Ge(e)),e.serializer.addAttributeFilter("data-mce-object",(function(t,n){var r,o,i,a,c,u,s,l,f=t.length;while(f--)if(r=t[f],r.parent){s=r.attr(n),o=new Re(s,1),"audio"!==s&&"script"!==s&&(l=r.attr("class"),l&&-1!==l.indexOf("mce-preview-object")?o.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):o.attr({width:r.attr("width"),height:r.attr("height")})),o.attr({style:r.attr("style")}),a=r.attributes,i=a.length;while(i--){var d=a[i].name;0===d.indexOf("data-mce-p-")&&o.attr(d.substr(11),a[i].value)}"script"===s&&o.attr("type","text/javascript"),c=r.attr("data-mce-html"),c&&(u=new Re("#text",3),u.raw=!0,u.value=Le(e,unescape(c)),o.append(u)),r.replace(o)}}))})),e.on("SetContent",(function(){e.$("span.mce-preview-object").each((function(t,n){var r=e.$(n);0===r.find("span.mce-shim").length&&r.append('<span class="mce-shim"></span>')}))}))},Xe=function(e){e.on("ResolveName",(function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)}))},Ye=function(e){var t=function(){return e.execCommand("mceMedia")};e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:t,onSetup:function(t){var n=e.selection;return t.setActive(le(n.getNode())),n.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",t.setActive).unbind}}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:t})};function Je(){e.add("media",(function(e){return Ne(e),Ye(e),Xe(e),Ke(e),fe(e),Me(e)}))}Je()})()},"3aea":function(e,t,n){n("3699")},"3b47":function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){var t=function(t){var n=e.get();n[t.name]=t,e.set(n)};return{addTab:t}},r=function(e,t){e.addCommand("mceHelp",t)},o=function(e,t){e.ui.registry.addButton("help",{icon:"help",tooltip:"Help",onAction:t}),e.ui.registry.addMenuItem("help",{text:"Help",icon:"help",shortcut:"Alt+0",onAction:t})},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(){},c=function(e){return function(){return e}},u=function(e){return e},s=c(!1),l=c(!0),f=function(){return d},d=function(){var e=function(e){return e()},t=u,n={fold:function(e,t){return e()},isSome:s,isNone:l,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:t,orThunk:e,map:f,each:a,bind:f,exists:s,forall:l,filter:function(){return f()},toArray:function(){return[]},toString:c("none()")};return n}(),m=function(e){var t=c(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:l,isNone:s,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:d},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},g=function(e){return null===e||void 0===e?d:m(e)},p={some:m,none:f,from:g},h=Array.prototype.indexOf,v=function(e,t){return h.call(e,t)},y=function(e,t){return v(e,t)>-1},b=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},w=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},k=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return p.some(i);if(n(i,r))break}return p.none()},_=function(e,t){return k(e,t,s)},x=Object.keys,C=Object.hasOwnProperty,z=function(e,t){return S(e,t)?p.from(e[t]):p.none()},S=function(e,t){return C.call(e,t)},T=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},O=function(e){return p.from(e.getParam("help_tabs"))},E=function(e){return e.getParam("forced_plugins")},A="<h1>Editor UI keyboard navigation</h1>\n\n<h2>Activating keyboard navigation</h2>\n\n<p>The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable. As such, there are multiple ways to activate keyboard navigation:</p>\n<ul>\n <li>Focus the menubar: Alt + F9 (Windows) or &#x2325;F9 (MacOS)</li>\n <li>Focus the toolbar: Alt + F10 (Windows) or &#x2325;F10 (MacOS)</li>\n <li>Focus the footer: Alt + F11 (Windows) or &#x2325;F11 (MacOS)</li>\n</ul>\n\n<p>Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline. </p>\n\n<h2>Moving between UI sections</h2>\n\n<p>When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:</p>\n<ul>\n <li>the menubar</li>\n <li>each group of the toolbar </li>\n <li>the sidebar</li>\n <li>the element path in the footer </li>\n <li>the wordcount toggle button in the footer </li>\n <li>the branding link in the footer </li>\n <li>the editor resize handle in the footer</li>\n</ul>\n\n<p>Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.</p>\n\n<h2>Moving within UI sections</h2>\n\n<p>Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:</p>\n<ul>\n <li>moving between menus in the menubar</li>\n <li>moving between buttons in a toolbar group</li>\n <li>moving between items in the element path</li>\n</ul>\n\n<p>In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group. </p>\n\n<h1>Executing buttons</h1>\n\n<p>To execute a button, navigate the selection to the desired button and hit space or enter.</p>\n\n<h1>Opening, navigating and closing menus</h1>\n\n<p>When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.</p>\n\n<p>To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.</p>\n\n<h1>Context toolbars and menus</h1>\n\n<p>To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or &#x2303;F9 (MacOS).</p>\n\n<p>Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.</p>\n\n<h1>Dialog navigation</h1>\n\n<p>There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.</p>\n\n<p>When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.</p>\n\n<p>When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab’s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.</p>",D=function(){var e={type:"htmlpanel",presets:"document",html:A};return{name:"keyboardnav",title:"Keyboard Navigation",items:[e]}},M=tinymce.util.Tools.resolve("tinymce.Env"),N=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl ",access:"Shift + Alt "},r=M.mac?t:n,o=e.split("+"),i=b(o,(function(e){var t=e.toLowerCase().trim();return S(r,t)?r[t]:e}));return M.mac?i.join("").replace(/\s/,""):i.join("+")},R=[{shortcuts:["Meta + B"],action:"Bold"},{shortcuts:["Meta + I"],action:"Italic"},{shortcuts:["Meta + U"],action:"Underline"},{shortcuts:["Meta + A"],action:"Select all"},{shortcuts:["Meta + Y","Meta + Shift + Z"],action:"Redo"},{shortcuts:["Meta + Z"],action:"Undo"},{shortcuts:["Access + 1"],action:"Heading 1"},{shortcuts:["Access + 2"],action:"Heading 2"},{shortcuts:["Access + 3"],action:"Heading 3"},{shortcuts:["Access + 4"],action:"Heading 4"},{shortcuts:["Access + 5"],action:"Heading 5"},{shortcuts:["Access + 6"],action:"Heading 6"},{shortcuts:["Access + 7"],action:"Paragraph"},{shortcuts:["Access + 8"],action:"Div"},{shortcuts:["Access + 9"],action:"Address"},{shortcuts:["Alt + 0"],action:"Open help dialog"},{shortcuts:["Alt + F9"],action:"Focus to menubar"},{shortcuts:["Alt + F10"],action:"Focus to toolbar"},{shortcuts:["Alt + F11"],action:"Focus to element path"},{shortcuts:["Ctrl + F9"],action:"Focus to contextual toolbar"},{shortcuts:["Shift + Enter"],action:"Open popup menu for split buttons"},{shortcuts:["Meta + K"],action:"Insert link (if link plugin activated)"},{shortcuts:["Meta + S"],action:"Save (if save plugin activated)"},{shortcuts:["Meta + F"],action:"Find (if searchreplace plugin activated)"},{shortcuts:["Meta + Shift + F"],action:"Switch to or from fullscreen mode"}],B=function(){var e=b(R,(function(e){var t=b(e.shortcuts,N).join(" or ");return[e.action,t]})),t={type:"table",header:["Action","Shortcut"],cells:e};return{name:"shortcuts",title:"Handy Shortcuts",items:[t]}},P=tinymce.util.Tools.resolve("tinymce.util.I18n"),L=b([{key:"advlist",name:"Advanced List"},{key:"anchor",name:"Anchor"},{key:"autolink",name:"Autolink"},{key:"autoresize",name:"Autoresize"},{key:"autosave",name:"Autosave"},{key:"bbcode",name:"BBCode"},{key:"charmap",name:"Character Map"},{key:"code",name:"Code"},{key:"codesample",name:"Code Sample"},{key:"colorpicker",name:"Color Picker"},{key:"directionality",name:"Directionality"},{key:"emoticons",name:"Emoticons"},{key:"fullpage",name:"Full Page"},{key:"fullscreen",name:"Full Screen"},{key:"help",name:"Help"},{key:"hr",name:"Horizontal Rule"},{key:"image",name:"Image"},{key:"imagetools",name:"Image Tools"},{key:"importcss",name:"Import CSS"},{key:"insertdatetime",name:"Insert Date/Time"},{key:"legacyoutput",name:"Legacy Output"},{key:"link",name:"Link"},{key:"lists",name:"Lists"},{key:"media",name:"Media"},{key:"nonbreaking",name:"Nonbreaking"},{key:"noneditable",name:"Noneditable"},{key:"pagebreak",name:"Page Break"},{key:"paste",name:"Paste"},{key:"preview",name:"Preview"},{key:"print",name:"Print"},{key:"quickbars",name:"Quick Toolbars"},{key:"save",name:"Save"},{key:"searchreplace",name:"Search and Replace"},{key:"spellchecker",name:"Spell Checker"},{key:"tabfocus",name:"Tab Focus"},{key:"table",name:"Table"},{key:"template",name:"Template"},{key:"textcolor",name:"Text Color"},{key:"textpattern",name:"Text Pattern"},{key:"toc",name:"Table of Contents"},{key:"visualblocks",name:"Visual Blocks"},{key:"visualchars",name:"Visual Characters"},{key:"wordcount",name:"Word Count"},{key:"a11ychecker",name:"Accessibility Checker",type:"premium"},{key:"advcode",name:"Advanced Code Editor",type:"premium"},{key:"advtable",name:"Advanced Tables",type:"premium"},{key:"autocorrect",name:"Autocorrect",type:"premium"},{key:"casechange",name:"Case Change",type:"premium"},{key:"checklist",name:"Checklist",type:"premium"},{key:"export",name:"Export",type:"premium"},{key:"mediaembed",name:"Enhanced Media Embed",type:"premium"},{key:"formatpainter",name:"Format Painter",type:"premium"},{key:"linkchecker",name:"Link Checker",type:"premium"},{key:"mentions",name:"Mentions",type:"premium"},{key:"pageembed",name:"Page Embed",type:"premium"},{key:"permanentpen",name:"Permanent Pen",type:"premium"},{key:"powerpaste",name:"PowerPaste",type:"premium"},{key:"rtc",name:"Real-Time Collaboration",type:"premium"},{key:"tinymcespellchecker",name:"Spell Checker Pro",type:"premium"},{key:"tinycomments",name:"Tiny Comments",type:"premium",slug:"comments"},{key:"tinydrive",name:"Tiny Drive",type:"premium"}],(function(e){return i(i({},e),{type:e.type||"opensource",slug:e.slug||e.key})})),I=function(e){var t=function(){var e=w(L,(function(e){var t=e.key,n=e.type;return"autocorrect"!==t&&"premium"===n})),t=b(e,(function(e){return"<li>"+P.translate(e.name)+"</li>"})).join("");return'<div data-mce-tabstop="1" tabindex="-1"><p><b>'+P.translate("Premium plugins:")+"</b></p><ul>"+t+'<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">'+P.translate("Learn more...")+"</a></li></ul></div>"},n=function(e){return'<a href="'+e.url+'" target="_blank" rel="noopener">'+e.name+"</a>"},r=function(e,t){return _(L,(function(e){return e.key===t})).fold((function(){var r=e.plugins[t].getMetadata;return"function"===typeof r?n(r()):t}),(function(e){var t="premium"===e.type?e.name+"*":e.name;return n({name:t,url:"https://www.tiny.cloud/docs/plugins/"+e.type+"/"+e.slug})}))},o=function(e){var t=x(e.plugins),n=E(e);return void 0===n?t:w(t,(function(e){return!y(n,e)}))},i=function(e){var t=o(e),n=b(t,(function(t){return"<li>"+r(e,t)+"</li>"})),i=n.length,a=n.join(""),c="<p><b>"+P.translate(["Plugins installed ({0}):",i])+"</b></p><ul>"+a+"</ul>";return c},a=function(e){return null==e?"":'<div data-mce-tabstop="1" tabindex="-1">'+i(e)+"</div>"},c={type:"htmlpanel",presets:"document",html:[a(e),t()].join("")};return{name:"plugins",title:"Plugins",items:[c]}},H=tinymce.util.Tools.resolve("tinymce.EditorManager"),F=function(){var e=function(e,t){return 0===e.indexOf("@")?"X.X.X":e+"."+t},t=e(H.majorVersion,H.minorVersion),n='<a href="https://www.tiny.cloud/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE '+t+"</a>",r={type:"htmlpanel",html:"<p>"+P.translate(["You are using {0}",n])+"</p>",presets:"document"};return{name:"versions",title:"Version",items:[r]}},j=function(e,t){var n={},r=b(e,(function(e){return"string"===typeof e?(S(t,e)&&(n[e]=t[e]),e):(n[e.name]=e,e.name)}));return{tabs:n,names:r}},V=function(e){var t=x(e),n=t.indexOf("versions");return-1!==n&&(t.splice(n,1),t.push("versions")),{tabs:e,names:t}},U=function(e,t){var n,r=B(),o=D(),a=I(e),c=F(),u=i((n={},n[r.name]=r,n[o.name]=o,n[a.name]=a,n[c.name]=c,n),t.get());return O(e).fold((function(){return V(u)}),(function(e){return j(e,u)}))},q=function(e,t){return function(){var n=U(e,t),r=n.tabs,o=n.names,i=b(o,(function(e){return z(r,e)})),a=T(i),c={type:"tabpanel",tabs:a};e.windowManager.open({title:"Help",size:"medium",body:c,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}};function W(){t.add("help",(function(t){var i=e({}),a=n(i),c=q(t,i);return o(t,c),r(t,c),t.shortcuts.add("Alt+0","Open help dialog","mceHelp"),a}))}W()})()},4237:function(e,t,n){n("be7f")},"4bd0":function(e,t,n){n("a376")},"4bdc":function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){e.fire("VisualBlocks",{state:t})},r=function(e,t,r){var o=e.dom;o.toggleClass(e.getBody(),"mce-visualblocks"),r.set(!r.get()),n(e,r.get())},o=function(e,t,n){e.addCommand("mceVisualBlocks",(function(){r(e,t,n)}))},i=function(e){return e.getParam("visualblocks_default_state",!1,"boolean")},a=function(e,t,n){e.on("PreviewFormats AfterPreviewFormats",(function(t){n.get()&&e.dom.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)})),e.on("init",(function(){i(e)&&r(e,t,n)}))},c=function(e,t){return function(n){n.setActive(t.get());var r=function(e){return n.setActive(e.state)};return e.on("VisualBlocks",r),function(){return e.off("VisualBlocks",r)}}},u=function(e,t){var n=function(){return e.execCommand("mceVisualBlocks")};e.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:n,onSetup:c(e,t)}),e.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:n,onSetup:c(e,t)})};function s(){t.add("visualblocks",(function(t,n){var r=e(!1);o(t,n,r),u(t,r),a(t,n,r)}))}s()})()},"4cb4":function(e,t){window.tinymce.Resource.add("tinymce.plugins.emoticons",{grinning:{keywords:["face","smile","happy","joy",":D","grin"],char:"😀",fitzpatrick_scale:!1,category:"people"},grimacing:{keywords:["face","grimace","teeth"],char:"😬",fitzpatrick_scale:!1,category:"people"},grin:{keywords:["face","happy","smile","joy","kawaii"],char:"😁",fitzpatrick_scale:!1,category:"people"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"😂",fitzpatrick_scale:!1,category:"people"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],char:"🤣",fitzpatrick_scale:!1,category:"people"},partying:{keywords:["face","celebration","woohoo"],char:"🥳",fitzpatrick_scale:!1,category:"people"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"😃",fitzpatrick_scale:!1,category:"people"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"😄",fitzpatrick_scale:!1,category:"people"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"😅",fitzpatrick_scale:!1,category:"people"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"😆",fitzpatrick_scale:!1,category:"people"},innocent:{keywords:["face","angel","heaven","halo"],char:"😇",fitzpatrick_scale:!1,category:"people"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"😉",fitzpatrick_scale:!1,category:"people"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"😊",fitzpatrick_scale:!1,category:"people"},slightly_smiling_face:{keywords:["face","smile"],char:"🙂",fitzpatrick_scale:!1,category:"people"},upside_down_face:{keywords:["face","flipped","silly","smile"],char:"🙃",fitzpatrick_scale:!1,category:"people"},relaxed:{keywords:["face","blush","massage","happiness"],char:"☺️",fitzpatrick_scale:!1,category:"people"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"😋",fitzpatrick_scale:!1,category:"people"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],char:"😌",fitzpatrick_scale:!1,category:"people"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"😍",fitzpatrick_scale:!1,category:"people"},smiling_face_with_three_hearts:{keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"🥰",fitzpatrick_scale:!1,category:"people"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😘",fitzpatrick_scale:!1,category:"people"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"😗",fitzpatrick_scale:!1,category:"people"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],char:"😙",fitzpatrick_scale:!1,category:"people"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😚",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"😜",fitzpatrick_scale:!1,category:"people"},zany:{keywords:["face","goofy","crazy"],char:"🤪",fitzpatrick_scale:!1,category:"people"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"🤨",fitzpatrick_scale:!1,category:"people"},monocle:{keywords:["face","stuffy","wealthy"],char:"🧐",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],char:"😝",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"😛",fitzpatrick_scale:!1,category:"people"},money_mouth_face:{keywords:["face","rich","dollar","money"],char:"🤑",fitzpatrick_scale:!1,category:"people"},nerd_face:{keywords:["face","nerdy","geek","dork"],char:"🤓",fitzpatrick_scale:!1,category:"people"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],char:"😎",fitzpatrick_scale:!1,category:"people"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],char:"🤩",fitzpatrick_scale:!1,category:"people"},clown_face:{keywords:["face"],char:"🤡",fitzpatrick_scale:!1,category:"people"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],char:"🤠",fitzpatrick_scale:!1,category:"people"},hugs:{keywords:["face","smile","hug"],char:"🤗",fitzpatrick_scale:!1,category:"people"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],char:"😏",fitzpatrick_scale:!1,category:"people"},no_mouth:{keywords:["face","hellokitty"],char:"😶",fitzpatrick_scale:!1,category:"people"},neutral_face:{keywords:["indifference","meh",":|","neutral"],char:"😐",fitzpatrick_scale:!1,category:"people"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],char:"😑",fitzpatrick_scale:!1,category:"people"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"😒",fitzpatrick_scale:!1,category:"people"},roll_eyes:{keywords:["face","eyeroll","frustrated"],char:"🙄",fitzpatrick_scale:!1,category:"people"},thinking:{keywords:["face","hmmm","think","consider"],char:"🤔",fitzpatrick_scale:!1,category:"people"},lying_face:{keywords:["face","lie","pinocchio"],char:"🤥",fitzpatrick_scale:!1,category:"people"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],char:"🤭",fitzpatrick_scale:!1,category:"people"},shushing:{keywords:["face","quiet","shhh"],char:"🤫",fitzpatrick_scale:!1,category:"people"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"🤬",fitzpatrick_scale:!1,category:"people"},exploding_head:{keywords:["face","shocked","mind","blown"],char:"🤯",fitzpatrick_scale:!1,category:"people"},flushed:{keywords:["face","blush","shy","flattered"],char:"😳",fitzpatrick_scale:!1,category:"people"},disappointed:{keywords:["face","sad","upset","depressed",":("],char:"😞",fitzpatrick_scale:!1,category:"people"},worried:{keywords:["face","concern","nervous",":("],char:"😟",fitzpatrick_scale:!1,category:"people"},angry:{keywords:["mad","face","annoyed","frustrated"],char:"😠",fitzpatrick_scale:!1,category:"people"},rage:{keywords:["angry","mad","hate","despise"],char:"😡",fitzpatrick_scale:!1,category:"people"},pensive:{keywords:["face","sad","depressed","upset"],char:"😔",fitzpatrick_scale:!1,category:"people"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],char:"😕",fitzpatrick_scale:!1,category:"people"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],char:"🙁",fitzpatrick_scale:!1,category:"people"},frowning_face:{keywords:["face","sad","upset","frown"],char:"☹",fitzpatrick_scale:!1,category:"people"},persevere:{keywords:["face","sick","no","upset","oops"],char:"😣",fitzpatrick_scale:!1,category:"people"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],char:"😖",fitzpatrick_scale:!1,category:"people"},tired_face:{keywords:["sick","whine","upset","frustrated"],char:"😫",fitzpatrick_scale:!1,category:"people"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"😩",fitzpatrick_scale:!1,category:"people"},pleading:{keywords:["face","begging","mercy"],char:"🥺",fitzpatrick_scale:!1,category:"people"},triumph:{keywords:["face","gas","phew","proud","pride"],char:"😤",fitzpatrick_scale:!1,category:"people"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],char:"😮",fitzpatrick_scale:!1,category:"people"},scream:{keywords:["face","munch","scared","omg"],char:"😱",fitzpatrick_scale:!1,category:"people"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],char:"😨",fitzpatrick_scale:!1,category:"people"},cold_sweat:{keywords:["face","nervous","sweat"],char:"😰",fitzpatrick_scale:!1,category:"people"},hushed:{keywords:["face","woo","shh"],char:"😯",fitzpatrick_scale:!1,category:"people"},frowning:{keywords:["face","aw","what"],char:"😦",fitzpatrick_scale:!1,category:"people"},anguished:{keywords:["face","stunned","nervous"],char:"😧",fitzpatrick_scale:!1,category:"people"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],char:"😢",fitzpatrick_scale:!1,category:"people"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],char:"😥",fitzpatrick_scale:!1,category:"people"},drooling_face:{keywords:["face"],char:"🤤",fitzpatrick_scale:!1,category:"people"},sleepy:{keywords:["face","tired","rest","nap"],char:"😪",fitzpatrick_scale:!1,category:"people"},sweat:{keywords:["face","hot","sad","tired","exercise"],char:"😓",fitzpatrick_scale:!1,category:"people"},hot:{keywords:["face","feverish","heat","red","sweating"],char:"🥵",fitzpatrick_scale:!1,category:"people"},cold:{keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"🥶",fitzpatrick_scale:!1,category:"people"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],char:"😭",fitzpatrick_scale:!1,category:"people"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],char:"😵",fitzpatrick_scale:!1,category:"people"},astonished:{keywords:["face","xox","surprised","poisoned"],char:"😲",fitzpatrick_scale:!1,category:"people"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],char:"🤐",fitzpatrick_scale:!1,category:"people"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"🤢",fitzpatrick_scale:!1,category:"people"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],char:"🤧",fitzpatrick_scale:!1,category:"people"},vomiting:{keywords:["face","sick"],char:"🤮",fitzpatrick_scale:!1,category:"people"},mask:{keywords:["face","sick","ill","disease"],char:"😷",fitzpatrick_scale:!1,category:"people"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],char:"🤒",fitzpatrick_scale:!1,category:"people"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],char:"🤕",fitzpatrick_scale:!1,category:"people"},woozy:{keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"🥴",fitzpatrick_scale:!1,category:"people"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],char:"😴",fitzpatrick_scale:!1,category:"people"},zzz:{keywords:["sleepy","tired","dream"],char:"💤",fitzpatrick_scale:!1,category:"people"},poop:{keywords:["hankey","shitface","fail","turd","shit"],char:"💩",fitzpatrick_scale:!1,category:"people"},smiling_imp:{keywords:["devil","horns"],char:"😈",fitzpatrick_scale:!1,category:"people"},imp:{keywords:["devil","angry","horns"],char:"👿",fitzpatrick_scale:!1,category:"people"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"👹",fitzpatrick_scale:!1,category:"people"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"👺",fitzpatrick_scale:!1,category:"people"},skull:{keywords:["dead","skeleton","creepy","death"],char:"💀",fitzpatrick_scale:!1,category:"people"},ghost:{keywords:["halloween","spooky","scary"],char:"👻",fitzpatrick_scale:!1,category:"people"},alien:{keywords:["UFO","paul","weird","outer_space"],char:"👽",fitzpatrick_scale:!1,category:"people"},robot:{keywords:["computer","machine","bot"],char:"🤖",fitzpatrick_scale:!1,category:"people"},smiley_cat:{keywords:["animal","cats","happy","smile"],char:"😺",fitzpatrick_scale:!1,category:"people"},smile_cat:{keywords:["animal","cats","smile"],char:"😸",fitzpatrick_scale:!1,category:"people"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],char:"😹",fitzpatrick_scale:!1,category:"people"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],char:"😻",fitzpatrick_scale:!1,category:"people"},smirk_cat:{keywords:["animal","cats","smirk"],char:"😼",fitzpatrick_scale:!1,category:"people"},kissing_cat:{keywords:["animal","cats","kiss"],char:"😽",fitzpatrick_scale:!1,category:"people"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],char:"🙀",fitzpatrick_scale:!1,category:"people"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"😿",fitzpatrick_scale:!1,category:"people"},pouting_cat:{keywords:["animal","cats"],char:"😾",fitzpatrick_scale:!1,category:"people"},palms_up:{keywords:["hands","gesture","cupped","prayer"],char:"🤲",fitzpatrick_scale:!0,category:"people"},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],char:"🙌",fitzpatrick_scale:!0,category:"people"},clap:{keywords:["hands","praise","applause","congrats","yay"],char:"👏",fitzpatrick_scale:!0,category:"people"},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"👋",fitzpatrick_scale:!0,category:"people"},call_me_hand:{keywords:["hands","gesture"],char:"🤙",fitzpatrick_scale:!0,category:"people"},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"👎",fitzpatrick_scale:!0,category:"people"},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],char:"👊",fitzpatrick_scale:!0,category:"people"},fist:{keywords:["fingers","hand","grasp"],char:"✊",fitzpatrick_scale:!0,category:"people"},fist_left:{keywords:["hand","fistbump"],char:"🤛",fitzpatrick_scale:!0,category:"people"},fist_right:{keywords:["hand","fistbump"],char:"🤜",fitzpatrick_scale:!0,category:"people"},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"✌",fitzpatrick_scale:!0,category:"people"},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],char:"👌",fitzpatrick_scale:!0,category:"people"},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],char:"✋",fitzpatrick_scale:!0,category:"people"},raised_back_of_hand:{keywords:["fingers","raised","backhand"],char:"🤚",fitzpatrick_scale:!0,category:"people"},open_hands:{keywords:["fingers","butterfly","hands","open"],char:"👐",fitzpatrick_scale:!0,category:"people"},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],char:"💪",fitzpatrick_scale:!0,category:"people"},pray:{keywords:["please","hope","wish","namaste","highfive"],char:"🙏",fitzpatrick_scale:!0,category:"people"},foot:{keywords:["kick","stomp"],char:"🦶",fitzpatrick_scale:!0,category:"people"},leg:{keywords:["kick","limb"],char:"🦵",fitzpatrick_scale:!0,category:"people"},handshake:{keywords:["agreement","shake"],char:"🤝",fitzpatrick_scale:!1,category:"people"},point_up:{keywords:["hand","fingers","direction","up"],char:"☝",fitzpatrick_scale:!0,category:"people"},point_up_2:{keywords:["fingers","hand","direction","up"],char:"👆",fitzpatrick_scale:!0,category:"people"},point_down:{keywords:["fingers","hand","direction","down"],char:"👇",fitzpatrick_scale:!0,category:"people"},point_left:{keywords:["direction","fingers","hand","left"],char:"👈",fitzpatrick_scale:!0,category:"people"},point_right:{keywords:["fingers","hand","direction","right"],char:"👉",fitzpatrick_scale:!0,category:"people"},fu:{keywords:["hand","fingers","rude","middle","flipping"],char:"🖕",fitzpatrick_scale:!0,category:"people"},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],char:"🖐",fitzpatrick_scale:!0,category:"people"},love_you:{keywords:["hand","fingers","gesture"],char:"🤟",fitzpatrick_scale:!0,category:"people"},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"🤘",fitzpatrick_scale:!0,category:"people"},crossed_fingers:{keywords:["good","lucky"],char:"🤞",fitzpatrick_scale:!0,category:"people"},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],char:"🖖",fitzpatrick_scale:!0,category:"people"},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"✍",fitzpatrick_scale:!0,category:"people"},selfie:{keywords:["camera","phone"],char:"🤳",fitzpatrick_scale:!0,category:"people"},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],char:"💅",fitzpatrick_scale:!0,category:"people"},lips:{keywords:["mouth","kiss"],char:"👄",fitzpatrick_scale:!1,category:"people"},tooth:{keywords:["teeth","dentist"],char:"🦷",fitzpatrick_scale:!1,category:"people"},tongue:{keywords:["mouth","playful"],char:"👅",fitzpatrick_scale:!1,category:"people"},ear:{keywords:["face","hear","sound","listen"],char:"👂",fitzpatrick_scale:!0,category:"people"},nose:{keywords:["smell","sniff"],char:"👃",fitzpatrick_scale:!0,category:"people"},eye:{keywords:["face","look","see","watch","stare"],char:"👁",fitzpatrick_scale:!1,category:"people"},eyes:{keywords:["look","watch","stalk","peek","see"],char:"👀",fitzpatrick_scale:!1,category:"people"},brain:{keywords:["smart","intelligent"],char:"🧠",fitzpatrick_scale:!1,category:"people"},bust_in_silhouette:{keywords:["user","person","human"],char:"👤",fitzpatrick_scale:!1,category:"people"},busts_in_silhouette:{keywords:["user","person","human","group","team"],char:"👥",fitzpatrick_scale:!1,category:"people"},speaking_head:{keywords:["user","person","human","sing","say","talk"],char:"🗣",fitzpatrick_scale:!1,category:"people"},baby:{keywords:["child","boy","girl","toddler"],char:"👶",fitzpatrick_scale:!0,category:"people"},child:{keywords:["gender-neutral","young"],char:"🧒",fitzpatrick_scale:!0,category:"people"},boy:{keywords:["man","male","guy","teenager"],char:"👦",fitzpatrick_scale:!0,category:"people"},girl:{keywords:["female","woman","teenager"],char:"👧",fitzpatrick_scale:!0,category:"people"},adult:{keywords:["gender-neutral","person"],char:"🧑",fitzpatrick_scale:!0,category:"people"},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"👨",fitzpatrick_scale:!0,category:"people"},woman:{keywords:["female","girls","lady"],char:"👩",fitzpatrick_scale:!0,category:"people"},blonde_woman:{keywords:["woman","female","girl","blonde","person"],char:"👱‍♀️",fitzpatrick_scale:!0,category:"people"},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],char:"👱",fitzpatrick_scale:!0,category:"people"},bearded_person:{keywords:["person","bewhiskered"],char:"🧔",fitzpatrick_scale:!0,category:"people"},older_adult:{keywords:["human","elder","senior","gender-neutral"],char:"🧓",fitzpatrick_scale:!0,category:"people"},older_man:{keywords:["human","male","men","old","elder","senior"],char:"👴",fitzpatrick_scale:!0,category:"people"},older_woman:{keywords:["human","female","women","lady","old","elder","senior"],char:"👵",fitzpatrick_scale:!0,category:"people"},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],char:"👲",fitzpatrick_scale:!0,category:"people"},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],char:"🧕",fitzpatrick_scale:!0,category:"people"},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],char:"👳‍♀️",fitzpatrick_scale:!0,category:"people"},man_with_turban:{keywords:["male","indian","hinduism","arabs"],char:"👳",fitzpatrick_scale:!0,category:"people"},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"👮‍♀️",fitzpatrick_scale:!0,category:"people"},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],char:"👮",fitzpatrick_scale:!0,category:"people"},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"👷‍♀️",fitzpatrick_scale:!0,category:"people"},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"👷",fitzpatrick_scale:!0,category:"people"},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],char:"💂‍♀️",fitzpatrick_scale:!0,category:"people"},guardsman:{keywords:["uk","gb","british","male","guy","royal"],char:"💂",fitzpatrick_scale:!0,category:"people"},female_detective:{keywords:["human","spy","detective","female","woman"],char:"🕵️‍♀️",fitzpatrick_scale:!0,category:"people"},male_detective:{keywords:["human","spy","detective"],char:"🕵",fitzpatrick_scale:!0,category:"people"},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"👩‍⚕️",fitzpatrick_scale:!0,category:"people"},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"👨‍⚕️",fitzpatrick_scale:!0,category:"people"},woman_farmer:{keywords:["rancher","gardener","woman","human"],char:"👩‍🌾",fitzpatrick_scale:!0,category:"people"},man_farmer:{keywords:["rancher","gardener","man","human"],char:"👨‍🌾",fitzpatrick_scale:!0,category:"people"},woman_cook:{keywords:["chef","woman","human"],char:"👩‍🍳",fitzpatrick_scale:!0,category:"people"},man_cook:{keywords:["chef","man","human"],char:"👨‍🍳",fitzpatrick_scale:!0,category:"people"},woman_student:{keywords:["graduate","woman","human"],char:"👩‍🎓",fitzpatrick_scale:!0,category:"people"},man_student:{keywords:["graduate","man","human"],char:"👨‍🎓",fitzpatrick_scale:!0,category:"people"},woman_singer:{keywords:["rockstar","entertainer","woman","human"],char:"👩‍🎤",fitzpatrick_scale:!0,category:"people"},man_singer:{keywords:["rockstar","entertainer","man","human"],char:"👨‍🎤",fitzpatrick_scale:!0,category:"people"},woman_teacher:{keywords:["instructor","professor","woman","human"],char:"👩‍🏫",fitzpatrick_scale:!0,category:"people"},man_teacher:{keywords:["instructor","professor","man","human"],char:"👨‍🏫",fitzpatrick_scale:!0,category:"people"},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],char:"👩‍🏭",fitzpatrick_scale:!0,category:"people"},man_factory_worker:{keywords:["assembly","industrial","man","human"],char:"👨‍🏭",fitzpatrick_scale:!0,category:"people"},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"👩‍💻",fitzpatrick_scale:!0,category:"people"},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"👨‍💻",fitzpatrick_scale:!0,category:"people"},woman_office_worker:{keywords:["business","manager","woman","human"],char:"👩‍💼",fitzpatrick_scale:!0,category:"people"},man_office_worker:{keywords:["business","manager","man","human"],char:"👨‍💼",fitzpatrick_scale:!0,category:"people"},woman_mechanic:{keywords:["plumber","woman","human","wrench"],char:"👩‍🔧",fitzpatrick_scale:!0,category:"people"},man_mechanic:{keywords:["plumber","man","human","wrench"],char:"👨‍🔧",fitzpatrick_scale:!0,category:"people"},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","woman","human"],char:"👩‍🔬",fitzpatrick_scale:!0,category:"people"},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],char:"👨‍🔬",fitzpatrick_scale:!0,category:"people"},woman_artist:{keywords:["painter","woman","human"],char:"👩‍🎨",fitzpatrick_scale:!0,category:"people"},man_artist:{keywords:["painter","man","human"],char:"👨‍🎨",fitzpatrick_scale:!0,category:"people"},woman_firefighter:{keywords:["fireman","woman","human"],char:"👩‍🚒",fitzpatrick_scale:!0,category:"people"},man_firefighter:{keywords:["fireman","man","human"],char:"👨‍🚒",fitzpatrick_scale:!0,category:"people"},woman_pilot:{keywords:["aviator","plane","woman","human"],char:"👩‍✈️",fitzpatrick_scale:!0,category:"people"},man_pilot:{keywords:["aviator","plane","man","human"],char:"👨‍✈️",fitzpatrick_scale:!0,category:"people"},woman_astronaut:{keywords:["space","rocket","woman","human"],char:"👩‍🚀",fitzpatrick_scale:!0,category:"people"},man_astronaut:{keywords:["space","rocket","man","human"],char:"👨‍🚀",fitzpatrick_scale:!0,category:"people"},woman_judge:{keywords:["justice","court","woman","human"],char:"👩‍⚖️",fitzpatrick_scale:!0,category:"people"},man_judge:{keywords:["justice","court","man","human"],char:"👨‍⚖️",fitzpatrick_scale:!0,category:"people"},woman_superhero:{keywords:["woman","female","good","heroine","superpowers"],char:"🦸‍♀️",fitzpatrick_scale:!0,category:"people"},man_superhero:{keywords:["man","male","good","hero","superpowers"],char:"🦸‍♂️",fitzpatrick_scale:!0,category:"people"},woman_supervillain:{keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"🦹‍♀️",fitzpatrick_scale:!0,category:"people"},man_supervillain:{keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"🦹‍♂️",fitzpatrick_scale:!0,category:"people"},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],char:"🤶",fitzpatrick_scale:!0,category:"people"},santa:{keywords:["festival","man","male","xmas","father christmas"],char:"🎅",fitzpatrick_scale:!0,category:"people"},sorceress:{keywords:["woman","female","mage","witch"],char:"🧙‍♀️",fitzpatrick_scale:!0,category:"people"},wizard:{keywords:["man","male","mage","sorcerer"],char:"🧙‍♂️",fitzpatrick_scale:!0,category:"people"},woman_elf:{keywords:["woman","female"],char:"🧝‍♀️",fitzpatrick_scale:!0,category:"people"},man_elf:{keywords:["man","male"],char:"🧝‍♂️",fitzpatrick_scale:!0,category:"people"},woman_vampire:{keywords:["woman","female"],char:"🧛‍♀️",fitzpatrick_scale:!0,category:"people"},man_vampire:{keywords:["man","male","dracula"],char:"🧛‍♂️",fitzpatrick_scale:!0,category:"people"},woman_zombie:{keywords:["woman","female","undead","walking dead"],char:"🧟‍♀️",fitzpatrick_scale:!1,category:"people"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],char:"🧟‍♂️",fitzpatrick_scale:!1,category:"people"},woman_genie:{keywords:["woman","female"],char:"🧞‍♀️",fitzpatrick_scale:!1,category:"people"},man_genie:{keywords:["man","male"],char:"🧞‍♂️",fitzpatrick_scale:!1,category:"people"},mermaid:{keywords:["woman","female","merwoman","ariel"],char:"🧜‍♀️",fitzpatrick_scale:!0,category:"people"},merman:{keywords:["man","male","triton"],char:"🧜‍♂️",fitzpatrick_scale:!0,category:"people"},woman_fairy:{keywords:["woman","female"],char:"🧚‍♀️",fitzpatrick_scale:!0,category:"people"},man_fairy:{keywords:["man","male"],char:"🧚‍♂️",fitzpatrick_scale:!0,category:"people"},angel:{keywords:["heaven","wings","halo"],char:"👼",fitzpatrick_scale:!0,category:"people"},pregnant_woman:{keywords:["baby"],char:"🤰",fitzpatrick_scale:!0,category:"people"},breastfeeding:{keywords:["nursing","baby"],char:"🤱",fitzpatrick_scale:!0,category:"people"},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],char:"👸",fitzpatrick_scale:!0,category:"people"},prince:{keywords:["boy","man","male","crown","royal","king"],char:"🤴",fitzpatrick_scale:!0,category:"people"},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],char:"👰",fitzpatrick_scale:!0,category:"people"},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],char:"🤵",fitzpatrick_scale:!0,category:"people"},running_woman:{keywords:["woman","walking","exercise","race","running","female"],char:"🏃‍♀️",fitzpatrick_scale:!0,category:"people"},running_man:{keywords:["man","walking","exercise","race","running"],char:"🏃",fitzpatrick_scale:!0,category:"people"},walking_woman:{keywords:["human","feet","steps","woman","female"],char:"🚶‍♀️",fitzpatrick_scale:!0,category:"people"},walking_man:{keywords:["human","feet","steps"],char:"🚶",fitzpatrick_scale:!0,category:"people"},dancer:{keywords:["female","girl","woman","fun"],char:"💃",fitzpatrick_scale:!0,category:"people"},man_dancing:{keywords:["male","boy","fun","dancer"],char:"🕺",fitzpatrick_scale:!0,category:"people"},dancing_women:{keywords:["female","bunny","women","girls"],char:"👯",fitzpatrick_scale:!1,category:"people"},dancing_men:{keywords:["male","bunny","men","boys"],char:"👯‍♂️",fitzpatrick_scale:!1,category:"people"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"👫",fitzpatrick_scale:!1,category:"people"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"👬",fitzpatrick_scale:!1,category:"people"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],char:"👭",fitzpatrick_scale:!1,category:"people"},bowing_woman:{keywords:["woman","female","girl"],char:"🙇‍♀️",fitzpatrick_scale:!0,category:"people"},bowing_man:{keywords:["man","male","boy"],char:"🙇",fitzpatrick_scale:!0,category:"people"},man_facepalming:{keywords:["man","male","boy","disbelief"],char:"🤦‍♂️",fitzpatrick_scale:!0,category:"people"},woman_facepalming:{keywords:["woman","female","girl","disbelief"],char:"🤦‍♀️",fitzpatrick_scale:!0,category:"people"},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],char:"🤷",fitzpatrick_scale:!0,category:"people"},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],char:"🤷‍♂️",fitzpatrick_scale:!0,category:"people"},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],char:"💁",fitzpatrick_scale:!0,category:"people"},tipping_hand_man:{keywords:["male","boy","man","human","information"],char:"💁‍♂️",fitzpatrick_scale:!0,category:"people"},no_good_woman:{keywords:["female","girl","woman","nope"],char:"🙅",fitzpatrick_scale:!0,category:"people"},no_good_man:{keywords:["male","boy","man","nope"],char:"🙅‍♂️",fitzpatrick_scale:!0,category:"people"},ok_woman:{keywords:["women","girl","female","pink","human","woman"],char:"🙆",fitzpatrick_scale:!0,category:"people"},ok_man:{keywords:["men","boy","male","blue","human","man"],char:"🙆‍♂️",fitzpatrick_scale:!0,category:"people"},raising_hand_woman:{keywords:["female","girl","woman"],char:"🙋",fitzpatrick_scale:!0,category:"people"},raising_hand_man:{keywords:["male","boy","man"],char:"🙋‍♂️",fitzpatrick_scale:!0,category:"people"},pouting_woman:{keywords:["female","girl","woman"],char:"🙎",fitzpatrick_scale:!0,category:"people"},pouting_man:{keywords:["male","boy","man"],char:"🙎‍♂️",fitzpatrick_scale:!0,category:"people"},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"🙍",fitzpatrick_scale:!0,category:"people"},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"🙍‍♂️",fitzpatrick_scale:!0,category:"people"},haircut_woman:{keywords:["female","girl","woman"],char:"💇",fitzpatrick_scale:!0,category:"people"},haircut_man:{keywords:["male","boy","man"],char:"💇‍♂️",fitzpatrick_scale:!0,category:"people"},massage_woman:{keywords:["female","girl","woman","head"],char:"💆",fitzpatrick_scale:!0,category:"people"},massage_man:{keywords:["male","boy","man","head"],char:"💆‍♂️",fitzpatrick_scale:!0,category:"people"},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],char:"🧖‍♀️",fitzpatrick_scale:!0,category:"people"},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],char:"🧖‍♂️",fitzpatrick_scale:!0,category:"people"},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"💑",fitzpatrick_scale:!1,category:"people"},couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👩‍❤️‍👩",fitzpatrick_scale:!1,category:"people"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👨‍❤️‍👨",fitzpatrick_scale:!1,category:"people"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"💏",fitzpatrick_scale:!1,category:"people"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👩‍❤️‍💋‍👩",fitzpatrick_scale:!1,category:"people"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👨‍❤️‍💋‍👨",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"👪",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],char:"👨‍👩‍👧",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_man_man_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_boy:{keywords:["home","parent","people","human","child"],char:"👩‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl:{keywords:["home","parent","people","human","child"],char:"👩‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],char:"👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],char:"👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],char:"👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_man_boy:{keywords:["home","parent","people","human","child"],char:"👨‍👦",fitzpatrick_scale:!1,category:"people"},family_man_girl:{keywords:["home","parent","people","human","child"],char:"👨‍👧",fitzpatrick_scale:!1,category:"people"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],char:"👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],char:"👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],char:"👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},yarn:{keywords:["ball","crochet","knit"],char:"🧶",fitzpatrick_scale:!1,category:"people"},thread:{keywords:["needle","sewing","spool","string"],char:"🧵",fitzpatrick_scale:!1,category:"people"},coat:{keywords:["jacket"],char:"🧥",fitzpatrick_scale:!1,category:"people"},labcoat:{keywords:["doctor","experiment","scientist","chemist"],char:"🥼",fitzpatrick_scale:!1,category:"people"},womans_clothes:{keywords:["fashion","shopping_bags","female"],char:"👚",fitzpatrick_scale:!1,category:"people"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],char:"👕",fitzpatrick_scale:!1,category:"people"},jeans:{keywords:["fashion","shopping"],char:"👖",fitzpatrick_scale:!1,category:"people"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"👔",fitzpatrick_scale:!1,category:"people"},dress:{keywords:["clothes","fashion","shopping"],char:"👗",fitzpatrick_scale:!1,category:"people"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"👙",fitzpatrick_scale:!1,category:"people"},kimono:{keywords:["dress","fashion","women","female","japanese"],char:"👘",fitzpatrick_scale:!1,category:"people"},lipstick:{keywords:["female","girl","fashion","woman"],char:"💄",fitzpatrick_scale:!1,category:"people"},kiss:{keywords:["face","lips","love","like","affection","valentines"],char:"💋",fitzpatrick_scale:!1,category:"people"},footprints:{keywords:["feet","tracking","walking","beach"],char:"👣",fitzpatrick_scale:!1,category:"people"},flat_shoe:{keywords:["ballet","slip-on","slipper"],char:"🥿",fitzpatrick_scale:!1,category:"people"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],char:"👠",fitzpatrick_scale:!1,category:"people"},sandal:{keywords:["shoes","fashion","flip flops"],char:"👡",fitzpatrick_scale:!1,category:"people"},boot:{keywords:["shoes","fashion"],char:"👢",fitzpatrick_scale:!1,category:"people"},mans_shoe:{keywords:["fashion","male"],char:"👞",fitzpatrick_scale:!1,category:"people"},athletic_shoe:{keywords:["shoes","sports","sneakers"],char:"👟",fitzpatrick_scale:!1,category:"people"},hiking_boot:{keywords:["backpacking","camping","hiking"],char:"🥾",fitzpatrick_scale:!1,category:"people"},socks:{keywords:["stockings","clothes"],char:"🧦",fitzpatrick_scale:!1,category:"people"},gloves:{keywords:["hands","winter","clothes"],char:"🧤",fitzpatrick_scale:!1,category:"people"},scarf:{keywords:["neck","winter","clothes"],char:"🧣",fitzpatrick_scale:!1,category:"people"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],char:"👒",fitzpatrick_scale:!1,category:"people"},tophat:{keywords:["magic","gentleman","classy","circus"],char:"🎩",fitzpatrick_scale:!1,category:"people"},billed_hat:{keywords:["cap","baseball"],char:"🧢",fitzpatrick_scale:!1,category:"people"},rescue_worker_helmet:{keywords:["construction","build"],char:"⛑",fitzpatrick_scale:!1,category:"people"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"🎓",fitzpatrick_scale:!1,category:"people"},crown:{keywords:["king","kod","leader","royalty","lord"],char:"👑",fitzpatrick_scale:!1,category:"people"},school_satchel:{keywords:["student","education","bag","backpack"],char:"🎒",fitzpatrick_scale:!1,category:"people"},luggage:{keywords:["packing","travel"],char:"🧳",fitzpatrick_scale:!1,category:"people"},pouch:{keywords:["bag","accessories","shopping"],char:"👝",fitzpatrick_scale:!1,category:"people"},purse:{keywords:["fashion","accessories","money","sales","shopping"],char:"👛",fitzpatrick_scale:!1,category:"people"},handbag:{keywords:["fashion","accessory","accessories","shopping"],char:"👜",fitzpatrick_scale:!1,category:"people"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],char:"💼",fitzpatrick_scale:!1,category:"people"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"👓",fitzpatrick_scale:!1,category:"people"},dark_sunglasses:{keywords:["face","cool","accessories"],char:"🕶",fitzpatrick_scale:!1,category:"people"},goggles:{keywords:["eyes","protection","safety"],char:"🥽",fitzpatrick_scale:!1,category:"people"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"💍",fitzpatrick_scale:!1,category:"people"},closed_umbrella:{keywords:["weather","rain","drizzle"],char:"🌂",fitzpatrick_scale:!1,category:"people"},dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},cat:{keywords:["animal","meow","nature","pet","kitten"],char:"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],char:"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},hamster:{keywords:["animal","nature"],char:"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],char:"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},fox_face:{keywords:["animal","nature","face"],char:"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},bear:{keywords:["animal","nature","wild"],char:"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},panda_face:{keywords:["animal","nature","panda"],char:"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},koala:{keywords:["animal","nature"],char:"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],char:"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},lion:{keywords:["animal","nature"],char:"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},pig:{keywords:["animal","oink","nature"],char:"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},pig_nose:{keywords:["animal","oink"],char:"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},frog:{keywords:["animal","nature","croak","toad"],char:"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},squid:{keywords:["animal","nature","ocean","sea"],char:"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],char:"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},shrimp:{keywords:["animal","ocean","nature","seafood"],char:"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey_face:{keywords:["animal","nature","circus"],char:"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},gorilla:{keywords:["animal","nature","circus"],char:"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},see_no_evil:{keywords:["monkey","animal","nature","haha"],char:"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},hear_no_evil:{keywords:["animal","monkey","nature"],char:"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],char:"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey:{keywords:["animal","nature","banana","circus"],char:"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},chicken:{keywords:["animal","cluck","nature","bird"],char:"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},penguin:{keywords:["animal","nature"],char:"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},bird:{keywords:["animal","nature","fly","tweet","spring"],char:"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},baby_chick:{keywords:["animal","chicken","bird"],char:"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],char:"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},hatched_chick:{keywords:["animal","chicken","baby","bird"],char:"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},duck:{keywords:["animal","nature","bird","mallard"],char:"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},eagle:{keywords:["animal","nature","bird"],char:"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},owl:{keywords:["animal","nature","bird","hoot"],char:"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},bat:{keywords:["animal","nature","blind","vampire"],char:"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},wolf:{keywords:["animal","nature","wild"],char:"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},boar:{keywords:["animal","nature"],char:"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},horse:{keywords:["animal","brown","nature"],char:"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},unicorn:{keywords:["animal","nature","mystical"],char:"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],char:"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},bug:{keywords:["animal","insect","nature","worm"],char:"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},butterfly:{keywords:["animal","insect","nature","caterpillar"],char:"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},snail:{keywords:["slow","animal","shell"],char:"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},beetle:{keywords:["animal","insect","nature","ladybug"],char:"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},ant:{keywords:["animal","insect","nature","bug"],char:"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},grasshopper:{keywords:["animal","cricket","chirp"],char:"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},spider:{keywords:["animal","arachnid"],char:"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},scorpion:{keywords:["animal","arachnid"],char:"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},crab:{keywords:["animal","crustacean"],char:"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},snake:{keywords:["animal","evil","nature","hiss","python"],char:"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},lizard:{keywords:["animal","nature","reptile"],char:"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},turtle:{keywords:["animal","slow","nature","tortoise"],char:"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],char:"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},fish:{keywords:["animal","food","nature"],char:"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},blowfish:{keywords:["animal","nature","food","sea","ocean"],char:"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},whale:{keywords:["animal","nature","sea","ocean"],char:"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},whale2:{keywords:["animal","nature","sea","ocean"],char:"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],char:"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},leopard:{keywords:["animal","nature"],char:"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},zebra:{keywords:["animal","nature","stripes","safari"],char:"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger2:{keywords:["animal","nature","roar"],char:"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},water_buffalo:{keywords:["animal","nature","ox","cow"],char:"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},ox:{keywords:["animal","cow","beef"],char:"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},deer:{keywords:["animal","nature","horns","venison"],char:"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},dromedary_camel:{keywords:["animal","hot","desert","hump"],char:"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},camel:{keywords:["animal","nature","hot","desert","hump"],char:"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},giraffe:{keywords:["animal","nature","spots","safari"],char:"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},elephant:{keywords:["animal","nature","nose","th","circus"],char:"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},rhinoceros:{keywords:["animal","nature","horn"],char:"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},goat:{keywords:["animal","nature"],char:"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},ram:{keywords:["animal","sheep","nature"],char:"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},sheep:{keywords:["animal","nature","wool","shipit"],char:"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},racehorse:{keywords:["animal","gamble","luck"],char:"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},pig2:{keywords:["animal","nature"],char:"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},rat:{keywords:["animal","mouse","rodent"],char:"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse2:{keywords:["animal","nature","rodent"],char:"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},rooster:{keywords:["animal","nature","chicken"],char:"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},turkey:{keywords:["animal","bird"],char:"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},dove:{keywords:["animal","bird"],char:"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],char:"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},poodle:{keywords:["dog","animal","101","nature","pet"],char:"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},cat2:{keywords:["animal","meow","pet","cats"],char:"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],char:"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],char:"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],char:"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},raccoon:{keywords:["animal","nature"],char:"🦝",fitzpatrick_scale:!1,category:"animals_and_nature"},llama:{keywords:["animal","nature","alpaca"],char:"🦙",fitzpatrick_scale:!1,category:"animals_and_nature"},hippopotamus:{keywords:["animal","nature"],char:"🦛",fitzpatrick_scale:!1,category:"animals_and_nature"},kangaroo:{keywords:["animal","nature","australia","joey","hop","marsupial"],char:"🦘",fitzpatrick_scale:!1,category:"animals_and_nature"},badger:{keywords:["animal","nature","honey"],char:"🦡",fitzpatrick_scale:!1,category:"animals_and_nature"},swan:{keywords:["animal","nature","bird"],char:"🦢",fitzpatrick_scale:!1,category:"animals_and_nature"},peacock:{keywords:["animal","nature","peahen","bird"],char:"🦚",fitzpatrick_scale:!1,category:"animals_and_nature"},parrot:{keywords:["animal","nature","bird","pirate","talk"],char:"🦜",fitzpatrick_scale:!1,category:"animals_and_nature"},lobster:{keywords:["animal","nature","bisque","claws","seafood"],char:"🦞",fitzpatrick_scale:!1,category:"animals_and_nature"},mosquito:{keywords:["animal","nature","insect","malaria"],char:"🦟",fitzpatrick_scale:!1,category:"animals_and_nature"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon:{keywords:["animal","myth","nature","chinese","green"],char:"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],char:"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},cactus:{keywords:["vegetable","plant","nature"],char:"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],char:"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},evergreen_tree:{keywords:["plant","nature"],char:"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},deciduous_tree:{keywords:["plant","nature"],char:"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},seedling:{keywords:["plant","nature","grass","lawn","spring"],char:"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],char:"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],char:"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},tanabata_tree:{keywords:["plant","nature","branch","summer"],char:"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],char:"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],char:"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},ear_of_rice:{keywords:["nature","plant"],char:"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],char:"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},sunflower:{keywords:["nature","plant","fall"],char:"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},rose:{keywords:["flowers","valentines","love","spring"],char:"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},wilted_flower:{keywords:["plant","nature","flower"],char:"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},tulip:{keywords:["flowers","plant","nature","summer","spring"],char:"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},blossom:{keywords:["nature","flowers","yellow"],char:"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},cherry_blossom:{keywords:["nature","plant","spring","flower"],char:"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},bouquet:{keywords:["flowers","nature","spring"],char:"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},mushroom:{keywords:["plant","vegetable"],char:"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},chestnut:{keywords:["food","squirrel"],char:"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],char:"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},shell:{keywords:["nature","sea","beach"],char:"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},spider_web:{keywords:["animal","insect","arachnid","silk"],char:"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_americas:{keywords:["globe","world","USA","international"],char:"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_africa:{keywords:["globe","world","international"],char:"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_asia:{keywords:["globe","world","east","international"],char:"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_with_face:{keywords:["nature","morning","sky"],char:"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],char:"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},star:{keywords:["night","yellow"],char:"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},star2:{keywords:["night","sparkle","awesome","good","magic"],char:"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},dizzy:{keywords:["star","sparkle","shoot","magic"],char:"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},comet:{keywords:["space"],char:"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],char:"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_small_cloud:{keywords:["weather"],char:"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],char:"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_large_cloud:{keywords:["weather"],char:"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_rain_cloud:{keywords:["weather"],char:"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud:{keywords:["weather","sky"],char:"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_rain:{keywords:["weather"],char:"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],char:"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning:{keywords:["weather","thunder"],char:"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},zap:{keywords:["thunder","weather","lightning bolt","fast"],char:"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},fire:{keywords:["hot","cook","flame"],char:"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},boom:{keywords:["bomb","explode","explosion","collision","blown"],char:"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],char:"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_snow:{keywords:["weather"],char:"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},wind_face:{keywords:["gust","air"],char:"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},tornado:{keywords:["weather","cyclone","twister"],char:"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},fog:{keywords:["weather"],char:"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},open_umbrella:{keywords:["weather","spring"],char:"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},umbrella:{keywords:["rainy","weather","spring"],char:"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},droplet:{keywords:["water","drip","faucet","spring"],char:"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},sweat_drops:{keywords:["water","drip","oops"],char:"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],char:"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},green_apple:{keywords:["fruit","nature"],char:"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},apple:{keywords:["fruit","mac","school"],char:"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},pear:{keywords:["fruit","nature","food"],char:"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},tangerine:{keywords:["food","fruit","nature","orange"],char:"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},lemon:{keywords:["fruit","nature"],char:"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},banana:{keywords:["fruit","food","monkey"],char:"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},watermelon:{keywords:["fruit","food","picnic","summer"],char:"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},grapes:{keywords:["fruit","food","wine"],char:"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},strawberry:{keywords:["fruit","food","nature"],char:"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},melon:{keywords:["fruit","nature","food"],char:"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},cherries:{keywords:["food","fruit"],char:"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},peach:{keywords:["fruit","nature","food"],char:"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},pineapple:{keywords:["fruit","nature","food"],char:"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},coconut:{keywords:["fruit","nature","food","palm"],char:"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},kiwi_fruit:{keywords:["fruit","food"],char:"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},mango:{keywords:["fruit","food","tropical"],char:"🥭",fitzpatrick_scale:!1,category:"food_and_drink"},avocado:{keywords:["fruit","food"],char:"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},broccoli:{keywords:["fruit","food","vegetable"],char:"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},tomato:{keywords:["fruit","vegetable","nature","food"],char:"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},eggplant:{keywords:["vegetable","nature","food","aubergine"],char:"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},cucumber:{keywords:["fruit","food","pickle"],char:"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},carrot:{keywords:["vegetable","food","orange"],char:"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},hot_pepper:{keywords:["food","spicy","chilli","chili"],char:"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},potato:{keywords:["food","tuber","vegatable","starch"],char:"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},corn:{keywords:["food","vegetable","plant"],char:"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},leafy_greens:{keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"🥬",fitzpatrick_scale:!1,category:"food_and_drink"},sweet_potato:{keywords:["food","nature"],char:"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},peanuts:{keywords:["food","nut"],char:"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},honey_pot:{keywords:["bees","sweet","kitchen"],char:"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},croissant:{keywords:["food","bread","french"],char:"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},bread:{keywords:["food","wheat","breakfast","toast"],char:"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},baguette_bread:{keywords:["food","bread","french"],char:"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},bagel:{keywords:["food","bread","bakery","schmear"],char:"🥯",fitzpatrick_scale:!1,category:"food_and_drink"},pretzel:{keywords:["food","bread","twisted"],char:"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},cheese:{keywords:["food","chadder"],char:"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},egg:{keywords:["food","chicken","breakfast"],char:"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},bacon:{keywords:["food","breakfast","pork","pig","meat"],char:"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],char:"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},meat_on_bone:{keywords:["good","food","drumstick"],char:"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},bone:{keywords:["skeleton"],char:"🦴",fitzpatrick_scale:!1,category:"food_and_drink"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],char:"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],char:"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},fries:{keywords:["chips","snack","fast food"],char:"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],char:"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},hotdog:{keywords:["food","frankfurter"],char:"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},pizza:{keywords:["food","party"],char:"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},sandwich:{keywords:["food","lunch","bread"],char:"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},canned_food:{keywords:["food","soup"],char:"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},spaghetti:{keywords:["food","italian","noodle"],char:"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},taco:{keywords:["food","mexican"],char:"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},burrito:{keywords:["food","mexican"],char:"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},green_salad:{keywords:["food","healthy","lettuce"],char:"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],char:"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},ramen:{keywords:["food","japanese","noodle","chopsticks"],char:"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},stew:{keywords:["food","meat","soup"],char:"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},fortune_cookie:{keywords:["food","prophecy"],char:"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},sushi:{keywords:["food","fish","japanese","rice"],char:"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},bento:{keywords:["food","japanese","box"],char:"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},curry:{keywords:["food","spicy","hot","indian"],char:"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},rice_ball:{keywords:["food","japanese"],char:"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},rice:{keywords:["food","china","asian"],char:"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},rice_cracker:{keywords:["food","japanese"],char:"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},oden:{keywords:["food","japanese"],char:"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},shaved_ice:{keywords:["hot","dessert","summer"],char:"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},ice_cream:{keywords:["food","hot","dessert"],char:"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},icecream:{keywords:["food","hot","dessert","summer"],char:"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},pie:{keywords:["food","dessert","pastry"],char:"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},cake:{keywords:["food","dessert"],char:"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},cupcake:{keywords:["food","dessert","bakery","sweet"],char:"🧁",fitzpatrick_scale:!1,category:"food_and_drink"},moon_cake:{keywords:["food","autumn"],char:"🥮",fitzpatrick_scale:!1,category:"food_and_drink"},birthday:{keywords:["food","dessert","cake"],char:"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},custard:{keywords:["dessert","food"],char:"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},candy:{keywords:["snack","dessert","sweet","lolly"],char:"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},lollipop:{keywords:["food","snack","candy","sweet"],char:"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],char:"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},popcorn:{keywords:["food","movie theater","films","snack"],char:"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],char:"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],char:"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},milk_glass:{keywords:["beverage","drink","cow"],char:"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],char:"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},champagne:{keywords:["drink","wine","bottle","celebration"],char:"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},tea:{keywords:["drink","bowl","breakfast","green","british"],char:"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},cup_with_straw:{keywords:["drink","soda"],char:"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},coffee:{keywords:["beverage","caffeine","latte","espresso"],char:"☕",fitzpatrick_scale:!1,category:"food_and_drink"},baby_bottle:{keywords:["food","container","milk"],char:"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},salt:{keywords:["condiment","shaker"],char:"🧂",fitzpatrick_scale:!1,category:"food_and_drink"},spoon:{keywords:["cutlery","kitchen","tableware"],char:"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},fork_and_knife:{keywords:["cutlery","kitchen"],char:"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},takeout_box:{keywords:["food","leftovers"],char:"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},chopsticks:{keywords:["food"],char:"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},soccer:{keywords:["sports","football"],char:"⚽",fitzpatrick_scale:!1,category:"activity"},basketball:{keywords:["sports","balls","NBA"],char:"🏀",fitzpatrick_scale:!1,category:"activity"},football:{keywords:["sports","balls","NFL"],char:"🏈",fitzpatrick_scale:!1,category:"activity"},baseball:{keywords:["sports","balls"],char:"⚾",fitzpatrick_scale:!1,category:"activity"},softball:{keywords:["sports","balls"],char:"🥎",fitzpatrick_scale:!1,category:"activity"},tennis:{keywords:["sports","balls","green"],char:"🎾",fitzpatrick_scale:!1,category:"activity"},volleyball:{keywords:["sports","balls"],char:"🏐",fitzpatrick_scale:!1,category:"activity"},rugby_football:{keywords:["sports","team"],char:"🏉",fitzpatrick_scale:!1,category:"activity"},flying_disc:{keywords:["sports","frisbee","ultimate"],char:"🥏",fitzpatrick_scale:!1,category:"activity"},"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"🎱",fitzpatrick_scale:!1,category:"activity"},golf:{keywords:["sports","business","flag","hole","summer"],char:"⛳",fitzpatrick_scale:!1,category:"activity"},golfing_woman:{keywords:["sports","business","woman","female"],char:"🏌️‍♀️",fitzpatrick_scale:!1,category:"activity"},golfing_man:{keywords:["sports","business"],char:"🏌",fitzpatrick_scale:!0,category:"activity"},ping_pong:{keywords:["sports","pingpong"],char:"🏓",fitzpatrick_scale:!1,category:"activity"},badminton:{keywords:["sports"],char:"🏸",fitzpatrick_scale:!1,category:"activity"},goal_net:{keywords:["sports"],char:"🥅",fitzpatrick_scale:!1,category:"activity"},ice_hockey:{keywords:["sports"],char:"🏒",fitzpatrick_scale:!1,category:"activity"},field_hockey:{keywords:["sports"],char:"🏑",fitzpatrick_scale:!1,category:"activity"},lacrosse:{keywords:["sports","ball","stick"],char:"🥍",fitzpatrick_scale:!1,category:"activity"},cricket:{keywords:["sports"],char:"🏏",fitzpatrick_scale:!1,category:"activity"},ski:{keywords:["sports","winter","cold","snow"],char:"🎿",fitzpatrick_scale:!1,category:"activity"},skier:{keywords:["sports","winter","snow"],char:"⛷",fitzpatrick_scale:!1,category:"activity"},snowboarder:{keywords:["sports","winter"],char:"🏂",fitzpatrick_scale:!0,category:"activity"},person_fencing:{keywords:["sports","fencing","sword"],char:"🤺",fitzpatrick_scale:!1,category:"activity"},women_wrestling:{keywords:["sports","wrestlers"],char:"🤼‍♀️",fitzpatrick_scale:!1,category:"activity"},men_wrestling:{keywords:["sports","wrestlers"],char:"🤼‍♂️",fitzpatrick_scale:!1,category:"activity"},woman_cartwheeling:{keywords:["gymnastics"],char:"🤸‍♀️",fitzpatrick_scale:!0,category:"activity"},man_cartwheeling:{keywords:["gymnastics"],char:"🤸‍♂️",fitzpatrick_scale:!0,category:"activity"},woman_playing_handball:{keywords:["sports"],char:"🤾‍♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_handball:{keywords:["sports"],char:"🤾‍♂️",fitzpatrick_scale:!0,category:"activity"},ice_skate:{keywords:["sports"],char:"⛸",fitzpatrick_scale:!1,category:"activity"},curling_stone:{keywords:["sports"],char:"🥌",fitzpatrick_scale:!1,category:"activity"},skateboard:{keywords:["board"],char:"🛹",fitzpatrick_scale:!1,category:"activity"},sled:{keywords:["sleigh","luge","toboggan"],char:"🛷",fitzpatrick_scale:!1,category:"activity"},bow_and_arrow:{keywords:["sports"],char:"🏹",fitzpatrick_scale:!1,category:"activity"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],char:"🎣",fitzpatrick_scale:!1,category:"activity"},boxing_glove:{keywords:["sports","fighting"],char:"🥊",fitzpatrick_scale:!1,category:"activity"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],char:"🥋",fitzpatrick_scale:!1,category:"activity"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],char:"🚣‍♀️",fitzpatrick_scale:!0,category:"activity"},rowing_man:{keywords:["sports","hobby","water","ship"],char:"🚣",fitzpatrick_scale:!0,category:"activity"},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],char:"🧗‍♀️",fitzpatrick_scale:!0,category:"activity"},climbing_man:{keywords:["sports","hobby","man","male","rock"],char:"🧗‍♂️",fitzpatrick_scale:!0,category:"activity"},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"🏊‍♀️",fitzpatrick_scale:!0,category:"activity"},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],char:"🏊",fitzpatrick_scale:!0,category:"activity"},woman_playing_water_polo:{keywords:["sports","pool"],char:"🤽‍♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_water_polo:{keywords:["sports","pool"],char:"🤽‍♂️",fitzpatrick_scale:!0,category:"activity"},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♀️",fitzpatrick_scale:!0,category:"activity"},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♂️",fitzpatrick_scale:!0,category:"activity"},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"🏄‍♀️",fitzpatrick_scale:!0,category:"activity"},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],char:"🏄",fitzpatrick_scale:!0,category:"activity"},bath:{keywords:["clean","shower","bathroom"],char:"🛀",fitzpatrick_scale:!0,category:"activity"},basketball_woman:{keywords:["sports","human","woman","female"],char:"⛹️‍♀️",fitzpatrick_scale:!0,category:"activity"},basketball_man:{keywords:["sports","human"],char:"⛹",fitzpatrick_scale:!0,category:"activity"},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],char:"🏋️‍♀️",fitzpatrick_scale:!0,category:"activity"},weight_lifting_man:{keywords:["sports","training","exercise"],char:"🏋",fitzpatrick_scale:!0,category:"activity"},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],char:"🚴‍♀️",fitzpatrick_scale:!0,category:"activity"},biking_man:{keywords:["sports","bike","exercise","hipster"],char:"🚴",fitzpatrick_scale:!0,category:"activity"},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],char:"🚵‍♀️",fitzpatrick_scale:!0,category:"activity"},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],char:"🚵",fitzpatrick_scale:!0,category:"activity"},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],char:"🏇",fitzpatrick_scale:!0,category:"activity"},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],char:"🕴",fitzpatrick_scale:!0,category:"activity"},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],char:"🏆",fitzpatrick_scale:!1,category:"activity"},running_shirt_with_sash:{keywords:["play","pageant"],char:"🎽",fitzpatrick_scale:!1,category:"activity"},medal_sports:{keywords:["award","winning"],char:"🏅",fitzpatrick_scale:!1,category:"activity"},medal_military:{keywords:["award","winning","army"],char:"🎖",fitzpatrick_scale:!1,category:"activity"},"1st_place_medal":{keywords:["award","winning","first"],char:"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],char:"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],char:"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:{keywords:["sports","cause","support","awareness"],char:"🎗",fitzpatrick_scale:!1,category:"activity"},rosette:{keywords:["flower","decoration","military"],char:"🏵",fitzpatrick_scale:!1,category:"activity"},ticket:{keywords:["event","concert","pass"],char:"🎫",fitzpatrick_scale:!1,category:"activity"},tickets:{keywords:["sports","concert","entrance"],char:"🎟",fitzpatrick_scale:!1,category:"activity"},performing_arts:{keywords:["acting","theater","drama"],char:"🎭",fitzpatrick_scale:!1,category:"activity"},art:{keywords:["design","paint","draw","colors"],char:"🎨",fitzpatrick_scale:!1,category:"activity"},circus_tent:{keywords:["festival","carnival","party"],char:"🎪",fitzpatrick_scale:!1,category:"activity"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹‍♀️",fitzpatrick_scale:!0,category:"activity"},man_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹‍♂️",fitzpatrick_scale:!0,category:"activity"},microphone:{keywords:["sound","music","PA","sing","talkshow"],char:"🎤",fitzpatrick_scale:!1,category:"activity"},headphones:{keywords:["music","score","gadgets"],char:"🎧",fitzpatrick_scale:!1,category:"activity"},musical_score:{keywords:["treble","clef","compose"],char:"🎼",fitzpatrick_scale:!1,category:"activity"},musical_keyboard:{keywords:["piano","instrument","compose"],char:"🎹",fitzpatrick_scale:!1,category:"activity"},drum:{keywords:["music","instrument","drumsticks","snare"],char:"🥁",fitzpatrick_scale:!1,category:"activity"},saxophone:{keywords:["music","instrument","jazz","blues"],char:"🎷",fitzpatrick_scale:!1,category:"activity"},trumpet:{keywords:["music","brass"],char:"🎺",fitzpatrick_scale:!1,category:"activity"},guitar:{keywords:["music","instrument"],char:"🎸",fitzpatrick_scale:!1,category:"activity"},violin:{keywords:["music","instrument","orchestra","symphony"],char:"🎻",fitzpatrick_scale:!1,category:"activity"},clapper:{keywords:["movie","film","record"],char:"🎬",fitzpatrick_scale:!1,category:"activity"},video_game:{keywords:["play","console","PS4","controller"],char:"🎮",fitzpatrick_scale:!1,category:"activity"},space_invader:{keywords:["game","arcade","play"],char:"👾",fitzpatrick_scale:!1,category:"activity"},dart:{keywords:["game","play","bar","target","bullseye"],char:"🎯",fitzpatrick_scale:!1,category:"activity"},game_die:{keywords:["dice","random","tabletop","play","luck"],char:"🎲",fitzpatrick_scale:!1,category:"activity"},chess_pawn:{keywords:["expendable"],char:"♟",fitzpatrick_scale:!1,category:"activity"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"🎰",fitzpatrick_scale:!1,category:"activity"},jigsaw:{keywords:["interlocking","puzzle","piece"],char:"🧩",fitzpatrick_scale:!1,category:"activity"},bowling:{keywords:["sports","fun","play"],char:"🎳",fitzpatrick_scale:!1,category:"activity"},red_car:{keywords:["red","transportation","vehicle"],char:"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},taxi:{keywords:["uber","vehicle","cars","transportation"],char:"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},blue_car:{keywords:["transportation","vehicle"],char:"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},bus:{keywords:["car","vehicle","transportation"],char:"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},trolleybus:{keywords:["bart","transportation","vehicle"],char:"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},racing_car:{keywords:["sports","race","fast","formula","f1"],char:"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},ambulance:{keywords:["health","911","hospital"],char:"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},fire_engine:{keywords:["transportation","cars","vehicle"],char:"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},minibus:{keywords:["vehicle","car","transportation"],char:"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},truck:{keywords:["cars","transportation"],char:"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],char:"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},tractor:{keywords:["vehicle","car","farming","agriculture"],char:"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},kick_scooter:{keywords:["vehicle","kick","razor"],char:"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},motorcycle:{keywords:["race","sports","fast"],char:"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},bike:{keywords:["sports","bicycle","exercise","hipster"],char:"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},motor_scooter:{keywords:["vehicle","vespa","sasha"],char:"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],char:"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_bus:{keywords:["vehicle","transportation"],char:"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_automobile:{keywords:["car","vehicle","transportation"],char:"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_taxi:{keywords:["vehicle","cars","uber"],char:"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},aerial_tramway:{keywords:["transportation","vehicle","ski"],char:"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_cableway:{keywords:["transportation","vehicle","ski"],char:"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},suspension_railway:{keywords:["vehicle","transportation"],char:"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},railway_car:{keywords:["transportation","vehicle"],char:"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},train:{keywords:["transportation","vehicle","carriage","public","travel"],char:"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},monorail:{keywords:["transportation","vehicle"],char:"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_side:{keywords:["transportation","vehicle"],char:"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],char:"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},light_rail:{keywords:["transportation","vehicle"],char:"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_railway:{keywords:["transportation","vehicle"],char:"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},steam_locomotive:{keywords:["transportation","vehicle","train"],char:"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},train2:{keywords:["transportation","vehicle"],char:"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],char:"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},tram:{keywords:["transportation","vehicle"],char:"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},station:{keywords:["transportation","vehicle","public"],char:"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},flying_saucer:{keywords:["transportation","vehicle","ufo"],char:"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},helicopter:{keywords:["transportation","vehicle","fly"],char:"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],char:"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},airplane:{keywords:["vehicle","transportation","flight","fly"],char:"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},flight_departure:{keywords:["airport","flight","landing"],char:"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},flight_arrival:{keywords:["airport","flight","boarding"],char:"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],char:"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},motor_boat:{keywords:["ship"],char:"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},speedboat:{keywords:["ship","transportation","vehicle","summer"],char:"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},ferry:{keywords:["boat","ship","yacht"],char:"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},passenger_ship:{keywords:["yacht","cruise","ferry"],char:"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],char:"💺",fitzpatrick_scale:!1,category:"travel_and_places"},canoe:{keywords:["boat","paddle","water","ship"],char:"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},anchor:{keywords:["ship","ferry","sea","boat"],char:"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},construction:{keywords:["wip","progress","caution","warning"],char:"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},fuelpump:{keywords:["gas station","petroleum"],char:"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},busstop:{keywords:["transportation","wait"],char:"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},vertical_traffic_light:{keywords:["transportation","driving"],char:"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},traffic_light:{keywords:["transportation","signal"],char:"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},checkered_flag:{keywords:["contest","finishline","race","gokart"],char:"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},ship:{keywords:["transportation","titanic","deploy"],char:"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},ferris_wheel:{keywords:["photo","carnival","londoneye"],char:"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},roller_coaster:{keywords:["carnival","playground","photo","fun"],char:"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},carousel_horse:{keywords:["photo","carnival"],char:"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},building_construction:{keywords:["wip","working","progress"],char:"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},foggy:{keywords:["photo","mountain"],char:"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},tokyo_tower:{keywords:["photo","japanese"],char:"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},factory:{keywords:["building","industry","pollution","smoke"],char:"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},fountain:{keywords:["photo","summer","water","fresh"],char:"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],char:"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},mountain:{keywords:["photo","nature","environment"],char:"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],char:"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],char:"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},volcano:{keywords:["photo","nature","disaster"],char:"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},japan:{keywords:["nation","country","japanese","asia"],char:"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},camping:{keywords:["photo","outdoors","tent"],char:"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},tent:{keywords:["photo","camping","outdoors"],char:"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},national_park:{keywords:["photo","environment","nature"],char:"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},motorway:{keywords:["road","cupertino","interstate","highway"],char:"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},railway_track:{keywords:["train","transportation"],char:"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise:{keywords:["morning","view","vacation","photo"],char:"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise_over_mountains:{keywords:["view","vacation","photo"],char:"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},desert:{keywords:["photo","warm","saharah"],char:"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],char:"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},desert_island:{keywords:["photo","tropical","mojito"],char:"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunrise:{keywords:["photo","good morning","dawn"],char:"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunset:{keywords:["photo","evening","sky","buildings"],char:"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},cityscape:{keywords:["photo","night life","urban"],char:"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},night_with_stars:{keywords:["evening","city","downtown"],char:"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},bridge_at_night:{keywords:["photo","sanfrancisco"],char:"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},milky_way:{keywords:["photo","space","stars"],char:"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},stars:{keywords:["night","photo"],char:"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},sparkler:{keywords:["stars","night","shine"],char:"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},fireworks:{keywords:["photo","festival","carnival","congratulations"],char:"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},houses:{keywords:["buildings","photo"],char:"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},european_castle:{keywords:["building","royalty","history"],char:"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},japanese_castle:{keywords:["photo","building"],char:"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},stadium:{keywords:["photo","place","sports","concert","venue"],char:"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},statue_of_liberty:{keywords:["american","newyork"],char:"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},house:{keywords:["building","home"],char:"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},house_with_garden:{keywords:["home","plant","nature"],char:"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},derelict_house:{keywords:["abandon","evict","broken","building"],char:"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},office:{keywords:["building","bureau","work"],char:"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},department_store:{keywords:["building","shopping","mall"],char:"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},post_office:{keywords:["building","envelope","communication"],char:"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},european_post_office:{keywords:["building","email"],char:"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},hospital:{keywords:["building","health","surgery","doctor"],char:"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},bank:{keywords:["building","money","sales","cash","business","enterprise"],char:"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},hotel:{keywords:["building","accomodation","checkin"],char:"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},convenience_store:{keywords:["building","shopping","groceries"],char:"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},school:{keywords:["building","student","education","learn","teach"],char:"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},love_hotel:{keywords:["like","affection","dating"],char:"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],char:"💒",fitzpatrick_scale:!1,category:"travel_and_places"},classical_building:{keywords:["art","culture","history"],char:"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},church:{keywords:["building","religion","christ"],char:"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},mosque:{keywords:["islam","worship","minaret"],char:"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},synagogue:{keywords:["judaism","worship","temple","jewish"],char:"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},kaaba:{keywords:["mecca","mosque","islam"],char:"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},shinto_shrine:{keywords:["temple","japan","kyoto"],char:"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},watch:{keywords:["time","accessories"],char:"⌚",fitzpatrick_scale:!1,category:"objects"},iphone:{keywords:["technology","apple","gadgets","dial"],char:"📱",fitzpatrick_scale:!1,category:"objects"},calling:{keywords:["iphone","incoming"],char:"📲",fitzpatrick_scale:!1,category:"objects"},computer:{keywords:["technology","laptop","screen","display","monitor"],char:"💻",fitzpatrick_scale:!1,category:"objects"},keyboard:{keywords:["technology","computer","type","input","text"],char:"⌨",fitzpatrick_scale:!1,category:"objects"},desktop_computer:{keywords:["technology","computing","screen"],char:"🖥",fitzpatrick_scale:!1,category:"objects"},printer:{keywords:["paper","ink"],char:"🖨",fitzpatrick_scale:!1,category:"objects"},computer_mouse:{keywords:["click"],char:"🖱",fitzpatrick_scale:!1,category:"objects"},trackball:{keywords:["technology","trackpad"],char:"🖲",fitzpatrick_scale:!1,category:"objects"},joystick:{keywords:["game","play"],char:"🕹",fitzpatrick_scale:!1,category:"objects"},clamp:{keywords:["tool"],char:"🗜",fitzpatrick_scale:!1,category:"objects"},minidisc:{keywords:["technology","record","data","disk","90s"],char:"💽",fitzpatrick_scale:!1,category:"objects"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],char:"💾",fitzpatrick_scale:!1,category:"objects"},cd:{keywords:["technology","dvd","disk","disc","90s"],char:"💿",fitzpatrick_scale:!1,category:"objects"},dvd:{keywords:["cd","disk","disc"],char:"📀",fitzpatrick_scale:!1,category:"objects"},vhs:{keywords:["record","video","oldschool","90s","80s"],char:"📼",fitzpatrick_scale:!1,category:"objects"},camera:{keywords:["gadgets","photography"],char:"📷",fitzpatrick_scale:!1,category:"objects"},camera_flash:{keywords:["photography","gadgets"],char:"📸",fitzpatrick_scale:!1,category:"objects"},video_camera:{keywords:["film","record"],char:"📹",fitzpatrick_scale:!1,category:"objects"},movie_camera:{keywords:["film","record"],char:"🎥",fitzpatrick_scale:!1,category:"objects"},film_projector:{keywords:["video","tape","record","movie"],char:"📽",fitzpatrick_scale:!1,category:"objects"},film_strip:{keywords:["movie"],char:"🎞",fitzpatrick_scale:!1,category:"objects"},telephone_receiver:{keywords:["technology","communication","dial"],char:"📞",fitzpatrick_scale:!1,category:"objects"},phone:{keywords:["technology","communication","dial","telephone"],char:"☎️",fitzpatrick_scale:!1,category:"objects"},pager:{keywords:["bbcall","oldschool","90s"],char:"📟",fitzpatrick_scale:!1,category:"objects"},fax:{keywords:["communication","technology"],char:"📠",fitzpatrick_scale:!1,category:"objects"},tv:{keywords:["technology","program","oldschool","show","television"],char:"📺",fitzpatrick_scale:!1,category:"objects"},radio:{keywords:["communication","music","podcast","program"],char:"📻",fitzpatrick_scale:!1,category:"objects"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],char:"🎙",fitzpatrick_scale:!1,category:"objects"},level_slider:{keywords:["scale"],char:"🎚",fitzpatrick_scale:!1,category:"objects"},control_knobs:{keywords:["dial"],char:"🎛",fitzpatrick_scale:!1,category:"objects"},compass:{keywords:["magnetic","navigation","orienteering"],char:"🧭",fitzpatrick_scale:!1,category:"objects"},stopwatch:{keywords:["time","deadline"],char:"⏱",fitzpatrick_scale:!1,category:"objects"},timer_clock:{keywords:["alarm"],char:"⏲",fitzpatrick_scale:!1,category:"objects"},alarm_clock:{keywords:["time","wake"],char:"⏰",fitzpatrick_scale:!1,category:"objects"},mantelpiece_clock:{keywords:["time"],char:"🕰",fitzpatrick_scale:!1,category:"objects"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],char:"⏳",fitzpatrick_scale:!1,category:"objects"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"⌛",fitzpatrick_scale:!1,category:"objects"},satellite:{keywords:["communication","future","radio","space"],char:"📡",fitzpatrick_scale:!1,category:"objects"},battery:{keywords:["power","energy","sustain"],char:"🔋",fitzpatrick_scale:!1,category:"objects"},electric_plug:{keywords:["charger","power"],char:"🔌",fitzpatrick_scale:!1,category:"objects"},bulb:{keywords:["light","electricity","idea"],char:"💡",fitzpatrick_scale:!1,category:"objects"},flashlight:{keywords:["dark","camping","sight","night"],char:"🔦",fitzpatrick_scale:!1,category:"objects"},candle:{keywords:["fire","wax"],char:"🕯",fitzpatrick_scale:!1,category:"objects"},fire_extinguisher:{keywords:["quench"],char:"🧯",fitzpatrick_scale:!1,category:"objects"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],char:"🗑",fitzpatrick_scale:!1,category:"objects"},oil_drum:{keywords:["barrell"],char:"🛢",fitzpatrick_scale:!1,category:"objects"},money_with_wings:{keywords:["dollar","bills","payment","sale"],char:"💸",fitzpatrick_scale:!1,category:"objects"},dollar:{keywords:["money","sales","bill","currency"],char:"💵",fitzpatrick_scale:!1,category:"objects"},yen:{keywords:["money","sales","japanese","dollar","currency"],char:"💴",fitzpatrick_scale:!1,category:"objects"},euro:{keywords:["money","sales","dollar","currency"],char:"💶",fitzpatrick_scale:!1,category:"objects"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"💷",fitzpatrick_scale:!1,category:"objects"},moneybag:{keywords:["dollar","payment","coins","sale"],char:"💰",fitzpatrick_scale:!1,category:"objects"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],char:"💳",fitzpatrick_scale:!1,category:"objects"},gem:{keywords:["blue","ruby","diamond","jewelry"],char:"💎",fitzpatrick_scale:!1,category:"objects"},balance_scale:{keywords:["law","fairness","weight"],char:"⚖",fitzpatrick_scale:!1,category:"objects"},toolbox:{keywords:["tools","diy","fix","maintainer","mechanic"],char:"🧰",fitzpatrick_scale:!1,category:"objects"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],char:"🔧",fitzpatrick_scale:!1,category:"objects"},hammer:{keywords:["tools","build","create"],char:"🔨",fitzpatrick_scale:!1,category:"objects"},hammer_and_pick:{keywords:["tools","build","create"],char:"⚒",fitzpatrick_scale:!1,category:"objects"},hammer_and_wrench:{keywords:["tools","build","create"],char:"🛠",fitzpatrick_scale:!1,category:"objects"},pick:{keywords:["tools","dig"],char:"⛏",fitzpatrick_scale:!1,category:"objects"},nut_and_bolt:{keywords:["handy","tools","fix"],char:"🔩",fitzpatrick_scale:!1,category:"objects"},gear:{keywords:["cog"],char:"⚙",fitzpatrick_scale:!1,category:"objects"},brick:{keywords:["bricks"],char:"🧱",fitzpatrick_scale:!1,category:"objects"},chains:{keywords:["lock","arrest"],char:"⛓",fitzpatrick_scale:!1,category:"objects"},magnet:{keywords:["attraction","magnetic"],char:"🧲",fitzpatrick_scale:!1,category:"objects"},gun:{keywords:["violence","weapon","pistol","revolver"],char:"🔫",fitzpatrick_scale:!1,category:"objects"},bomb:{keywords:["boom","explode","explosion","terrorism"],char:"💣",fitzpatrick_scale:!1,category:"objects"},firecracker:{keywords:["dynamite","boom","explode","explosion","explosive"],char:"🧨",fitzpatrick_scale:!1,category:"objects"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],char:"🔪",fitzpatrick_scale:!1,category:"objects"},dagger:{keywords:["weapon"],char:"🗡",fitzpatrick_scale:!1,category:"objects"},crossed_swords:{keywords:["weapon"],char:"⚔",fitzpatrick_scale:!1,category:"objects"},shield:{keywords:["protection","security"],char:"🛡",fitzpatrick_scale:!1,category:"objects"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],char:"🚬",fitzpatrick_scale:!1,category:"objects"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"☠",fitzpatrick_scale:!1,category:"objects"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"⚰",fitzpatrick_scale:!1,category:"objects"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],char:"⚱",fitzpatrick_scale:!1,category:"objects"},amphora:{keywords:["vase","jar"],char:"🏺",fitzpatrick_scale:!1,category:"objects"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],char:"🔮",fitzpatrick_scale:!1,category:"objects"},prayer_beads:{keywords:["dhikr","religious"],char:"📿",fitzpatrick_scale:!1,category:"objects"},nazar_amulet:{keywords:["bead","charm"],char:"🧿",fitzpatrick_scale:!1,category:"objects"},barber:{keywords:["hair","salon","style"],char:"💈",fitzpatrick_scale:!1,category:"objects"},alembic:{keywords:["distilling","science","experiment","chemistry"],char:"⚗",fitzpatrick_scale:!1,category:"objects"},telescope:{keywords:["stars","space","zoom","science","astronomy"],char:"🔭",fitzpatrick_scale:!1,category:"objects"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],char:"🔬",fitzpatrick_scale:!1,category:"objects"},hole:{keywords:["embarrassing"],char:"🕳",fitzpatrick_scale:!1,category:"objects"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],char:"💊",fitzpatrick_scale:!1,category:"objects"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"💉",fitzpatrick_scale:!1,category:"objects"},dna:{keywords:["biologist","genetics","life"],char:"🧬",fitzpatrick_scale:!1,category:"objects"},microbe:{keywords:["amoeba","bacteria","germs"],char:"🦠",fitzpatrick_scale:!1,category:"objects"},petri_dish:{keywords:["bacteria","biology","culture","lab"],char:"🧫",fitzpatrick_scale:!1,category:"objects"},test_tube:{keywords:["chemistry","experiment","lab","science"],char:"🧪",fitzpatrick_scale:!1,category:"objects"},thermometer:{keywords:["weather","temperature","hot","cold"],char:"🌡",fitzpatrick_scale:!1,category:"objects"},broom:{keywords:["cleaning","sweeping","witch"],char:"🧹",fitzpatrick_scale:!1,category:"objects"},basket:{keywords:["laundry"],char:"🧺",fitzpatrick_scale:!1,category:"objects"},toilet_paper:{keywords:["roll"],char:"🧻",fitzpatrick_scale:!1,category:"objects"},label:{keywords:["sale","tag"],char:"🏷",fitzpatrick_scale:!1,category:"objects"},bookmark:{keywords:["favorite","label","save"],char:"🔖",fitzpatrick_scale:!1,category:"objects"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],char:"🚽",fitzpatrick_scale:!1,category:"objects"},shower:{keywords:["clean","water","bathroom"],char:"🚿",fitzpatrick_scale:!1,category:"objects"},bathtub:{keywords:["clean","shower","bathroom"],char:"🛁",fitzpatrick_scale:!1,category:"objects"},soap:{keywords:["bar","bathing","cleaning","lather"],char:"🧼",fitzpatrick_scale:!1,category:"objects"},sponge:{keywords:["absorbing","cleaning","porous"],char:"🧽",fitzpatrick_scale:!1,category:"objects"},lotion_bottle:{keywords:["moisturizer","sunscreen"],char:"🧴",fitzpatrick_scale:!1,category:"objects"},key:{keywords:["lock","door","password"],char:"🔑",fitzpatrick_scale:!1,category:"objects"},old_key:{keywords:["lock","door","password"],char:"🗝",fitzpatrick_scale:!1,category:"objects"},couch_and_lamp:{keywords:["read","chill"],char:"🛋",fitzpatrick_scale:!1,category:"objects"},sleeping_bed:{keywords:["bed","rest"],char:"🛌",fitzpatrick_scale:!0,category:"objects"},bed:{keywords:["sleep","rest"],char:"🛏",fitzpatrick_scale:!1,category:"objects"},door:{keywords:["house","entry","exit"],char:"🚪",fitzpatrick_scale:!1,category:"objects"},bellhop_bell:{keywords:["service"],char:"🛎",fitzpatrick_scale:!1,category:"objects"},teddy_bear:{keywords:["plush","stuffed"],char:"🧸",fitzpatrick_scale:!1,category:"objects"},framed_picture:{keywords:["photography"],char:"🖼",fitzpatrick_scale:!1,category:"objects"},world_map:{keywords:["location","direction"],char:"🗺",fitzpatrick_scale:!1,category:"objects"},parasol_on_ground:{keywords:["weather","summer"],char:"⛱",fitzpatrick_scale:!1,category:"objects"},moyai:{keywords:["rock","easter island","moai"],char:"🗿",fitzpatrick_scale:!1,category:"objects"},shopping:{keywords:["mall","buy","purchase"],char:"🛍",fitzpatrick_scale:!1,category:"objects"},shopping_cart:{keywords:["trolley"],char:"🛒",fitzpatrick_scale:!1,category:"objects"},balloon:{keywords:["party","celebration","birthday","circus"],char:"🎈",fitzpatrick_scale:!1,category:"objects"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],char:"🎏",fitzpatrick_scale:!1,category:"objects"},ribbon:{keywords:["decoration","pink","girl","bowtie"],char:"🎀",fitzpatrick_scale:!1,category:"objects"},gift:{keywords:["present","birthday","christmas","xmas"],char:"🎁",fitzpatrick_scale:!1,category:"objects"},confetti_ball:{keywords:["festival","party","birthday","circus"],char:"🎊",fitzpatrick_scale:!1,category:"objects"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"🎉",fitzpatrick_scale:!1,category:"objects"},dolls:{keywords:["japanese","toy","kimono"],char:"🎎",fitzpatrick_scale:!1,category:"objects"},wind_chime:{keywords:["nature","ding","spring","bell"],char:"🎐",fitzpatrick_scale:!1,category:"objects"},crossed_flags:{keywords:["japanese","nation","country","border"],char:"🎌",fitzpatrick_scale:!1,category:"objects"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],char:"🏮",fitzpatrick_scale:!1,category:"objects"},red_envelope:{keywords:["gift"],char:"🧧",fitzpatrick_scale:!1,category:"objects"},email:{keywords:["letter","postal","inbox","communication"],char:"✉️",fitzpatrick_scale:!1,category:"objects"},envelope_with_arrow:{keywords:["email","communication"],char:"📩",fitzpatrick_scale:!1,category:"objects"},incoming_envelope:{keywords:["email","inbox"],char:"📨",fitzpatrick_scale:!1,category:"objects"},"e-mail":{keywords:["communication","inbox"],char:"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:{keywords:["email","like","affection","envelope","valentines"],char:"💌",fitzpatrick_scale:!1,category:"objects"},postbox:{keywords:["email","letter","envelope"],char:"📮",fitzpatrick_scale:!1,category:"objects"},mailbox_closed:{keywords:["email","communication","inbox"],char:"📪",fitzpatrick_scale:!1,category:"objects"},mailbox:{keywords:["email","inbox","communication"],char:"📫",fitzpatrick_scale:!1,category:"objects"},mailbox_with_mail:{keywords:["email","inbox","communication"],char:"📬",fitzpatrick_scale:!1,category:"objects"},mailbox_with_no_mail:{keywords:["email","inbox"],char:"📭",fitzpatrick_scale:!1,category:"objects"},package:{keywords:["mail","gift","cardboard","box","moving"],char:"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:{keywords:["instrument","music"],char:"📯",fitzpatrick_scale:!1,category:"objects"},inbox_tray:{keywords:["email","documents"],char:"📥",fitzpatrick_scale:!1,category:"objects"},outbox_tray:{keywords:["inbox","email"],char:"📤",fitzpatrick_scale:!1,category:"objects"},scroll:{keywords:["documents","ancient","history","paper"],char:"📜",fitzpatrick_scale:!1,category:"objects"},page_with_curl:{keywords:["documents","office","paper"],char:"📃",fitzpatrick_scale:!1,category:"objects"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],char:"📑",fitzpatrick_scale:!1,category:"objects"},receipt:{keywords:["accounting","expenses"],char:"🧾",fitzpatrick_scale:!1,category:"objects"},bar_chart:{keywords:["graph","presentation","stats"],char:"📊",fitzpatrick_scale:!1,category:"objects"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"📈",fitzpatrick_scale:!1,category:"objects"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"📉",fitzpatrick_scale:!1,category:"objects"},page_facing_up:{keywords:["documents","office","paper","information"],char:"📄",fitzpatrick_scale:!1,category:"objects"},date:{keywords:["calendar","schedule"],char:"📅",fitzpatrick_scale:!1,category:"objects"},calendar:{keywords:["schedule","date","planning"],char:"📆",fitzpatrick_scale:!1,category:"objects"},spiral_calendar:{keywords:["date","schedule","planning"],char:"🗓",fitzpatrick_scale:!1,category:"objects"},card_index:{keywords:["business","stationery"],char:"📇",fitzpatrick_scale:!1,category:"objects"},card_file_box:{keywords:["business","stationery"],char:"🗃",fitzpatrick_scale:!1,category:"objects"},ballot_box:{keywords:["election","vote"],char:"🗳",fitzpatrick_scale:!1,category:"objects"},file_cabinet:{keywords:["filing","organizing"],char:"🗄",fitzpatrick_scale:!1,category:"objects"},clipboard:{keywords:["stationery","documents"],char:"📋",fitzpatrick_scale:!1,category:"objects"},spiral_notepad:{keywords:["memo","stationery"],char:"🗒",fitzpatrick_scale:!1,category:"objects"},file_folder:{keywords:["documents","business","office"],char:"📁",fitzpatrick_scale:!1,category:"objects"},open_file_folder:{keywords:["documents","load"],char:"📂",fitzpatrick_scale:!1,category:"objects"},card_index_dividers:{keywords:["organizing","business","stationery"],char:"🗂",fitzpatrick_scale:!1,category:"objects"},newspaper_roll:{keywords:["press","headline"],char:"🗞",fitzpatrick_scale:!1,category:"objects"},newspaper:{keywords:["press","headline"],char:"📰",fitzpatrick_scale:!1,category:"objects"},notebook:{keywords:["stationery","record","notes","paper","study"],char:"📓",fitzpatrick_scale:!1,category:"objects"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],char:"📕",fitzpatrick_scale:!1,category:"objects"},green_book:{keywords:["read","library","knowledge","study"],char:"📗",fitzpatrick_scale:!1,category:"objects"},blue_book:{keywords:["read","library","knowledge","learn","study"],char:"📘",fitzpatrick_scale:!1,category:"objects"},orange_book:{keywords:["read","library","knowledge","textbook","study"],char:"📙",fitzpatrick_scale:!1,category:"objects"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],char:"📔",fitzpatrick_scale:!1,category:"objects"},ledger:{keywords:["notes","paper"],char:"📒",fitzpatrick_scale:!1,category:"objects"},books:{keywords:["literature","library","study"],char:"📚",fitzpatrick_scale:!1,category:"objects"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],char:"📖",fitzpatrick_scale:!1,category:"objects"},safety_pin:{keywords:["diaper"],char:"🧷",fitzpatrick_scale:!1,category:"objects"},link:{keywords:["rings","url"],char:"🔗",fitzpatrick_scale:!1,category:"objects"},paperclip:{keywords:["documents","stationery"],char:"📎",fitzpatrick_scale:!1,category:"objects"},paperclips:{keywords:["documents","stationery"],char:"🖇",fitzpatrick_scale:!1,category:"objects"},scissors:{keywords:["stationery","cut"],char:"✂️",fitzpatrick_scale:!1,category:"objects"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],char:"📐",fitzpatrick_scale:!1,category:"objects"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"📏",fitzpatrick_scale:!1,category:"objects"},abacus:{keywords:["calculation"],char:"🧮",fitzpatrick_scale:!1,category:"objects"},pushpin:{keywords:["stationery","mark","here"],char:"📌",fitzpatrick_scale:!1,category:"objects"},round_pushpin:{keywords:["stationery","location","map","here"],char:"📍",fitzpatrick_scale:!1,category:"objects"},triangular_flag_on_post:{keywords:["mark","milestone","place"],char:"🚩",fitzpatrick_scale:!1,category:"objects"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],char:"🏳",fitzpatrick_scale:!1,category:"objects"},black_flag:{keywords:["pirate"],char:"🏴",fitzpatrick_scale:!1,category:"objects"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"🏳️‍🌈",fitzpatrick_scale:!1,category:"objects"},closed_lock_with_key:{keywords:["security","privacy"],char:"🔐",fitzpatrick_scale:!1,category:"objects"},lock:{keywords:["security","password","padlock"],char:"🔒",fitzpatrick_scale:!1,category:"objects"},unlock:{keywords:["privacy","security"],char:"🔓",fitzpatrick_scale:!1,category:"objects"},lock_with_ink_pen:{keywords:["security","secret"],char:"🔏",fitzpatrick_scale:!1,category:"objects"},pen:{keywords:["stationery","writing","write"],char:"🖊",fitzpatrick_scale:!1,category:"objects"},fountain_pen:{keywords:["stationery","writing","write"],char:"🖋",fitzpatrick_scale:!1,category:"objects"},black_nib:{keywords:["pen","stationery","writing","write"],char:"✒️",fitzpatrick_scale:!1,category:"objects"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"📝",fitzpatrick_scale:!1,category:"objects"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],char:"✏️",fitzpatrick_scale:!1,category:"objects"},crayon:{keywords:["drawing","creativity"],char:"🖍",fitzpatrick_scale:!1,category:"objects"},paintbrush:{keywords:["drawing","creativity","art"],char:"🖌",fitzpatrick_scale:!1,category:"objects"},mag:{keywords:["search","zoom","find","detective"],char:"🔍",fitzpatrick_scale:!1,category:"objects"},mag_right:{keywords:["search","zoom","find","detective"],char:"🔎",fitzpatrick_scale:!1,category:"objects"},heart:{keywords:["love","like","valentines"],char:"❤️",fitzpatrick_scale:!1,category:"symbols"},orange_heart:{keywords:["love","like","affection","valentines"],char:"🧡",fitzpatrick_scale:!1,category:"symbols"},yellow_heart:{keywords:["love","like","affection","valentines"],char:"💛",fitzpatrick_scale:!1,category:"symbols"},green_heart:{keywords:["love","like","affection","valentines"],char:"💚",fitzpatrick_scale:!1,category:"symbols"},blue_heart:{keywords:["love","like","affection","valentines"],char:"💙",fitzpatrick_scale:!1,category:"symbols"},purple_heart:{keywords:["love","like","affection","valentines"],char:"💜",fitzpatrick_scale:!1,category:"symbols"},black_heart:{keywords:["evil"],char:"🖤",fitzpatrick_scale:!1,category:"symbols"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],char:"💔",fitzpatrick_scale:!1,category:"symbols"},heavy_heart_exclamation:{keywords:["decoration","love"],char:"❣",fitzpatrick_scale:!1,category:"symbols"},two_hearts:{keywords:["love","like","affection","valentines","heart"],char:"💕",fitzpatrick_scale:!1,category:"symbols"},revolving_hearts:{keywords:["love","like","affection","valentines"],char:"💞",fitzpatrick_scale:!1,category:"symbols"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],char:"💓",fitzpatrick_scale:!1,category:"symbols"},heartpulse:{keywords:["like","love","affection","valentines","pink"],char:"💗",fitzpatrick_scale:!1,category:"symbols"},sparkling_heart:{keywords:["love","like","affection","valentines"],char:"💖",fitzpatrick_scale:!1,category:"symbols"},cupid:{keywords:["love","like","heart","affection","valentines"],char:"💘",fitzpatrick_scale:!1,category:"symbols"},gift_heart:{keywords:["love","valentines"],char:"💝",fitzpatrick_scale:!1,category:"symbols"},heart_decoration:{keywords:["purple-square","love","like"],char:"💟",fitzpatrick_scale:!1,category:"symbols"},peace_symbol:{keywords:["hippie"],char:"☮",fitzpatrick_scale:!1,category:"symbols"},latin_cross:{keywords:["christianity"],char:"✝",fitzpatrick_scale:!1,category:"symbols"},star_and_crescent:{keywords:["islam"],char:"☪",fitzpatrick_scale:!1,category:"symbols"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"🕉",fitzpatrick_scale:!1,category:"symbols"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"☸",fitzpatrick_scale:!1,category:"symbols"},star_of_david:{keywords:["judaism"],char:"✡",fitzpatrick_scale:!1,category:"symbols"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],char:"🔯",fitzpatrick_scale:!1,category:"symbols"},menorah:{keywords:["hanukkah","candles","jewish"],char:"🕎",fitzpatrick_scale:!1,category:"symbols"},yin_yang:{keywords:["balance"],char:"☯",fitzpatrick_scale:!1,category:"symbols"},orthodox_cross:{keywords:["suppedaneum","religion"],char:"☦",fitzpatrick_scale:!1,category:"symbols"},place_of_worship:{keywords:["religion","church","temple","prayer"],char:"🛐",fitzpatrick_scale:!1,category:"symbols"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],char:"⛎",fitzpatrick_scale:!1,category:"symbols"},aries:{keywords:["sign","purple-square","zodiac","astrology"],char:"♈",fitzpatrick_scale:!1,category:"symbols"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],char:"♉",fitzpatrick_scale:!1,category:"symbols"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],char:"♊",fitzpatrick_scale:!1,category:"symbols"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],char:"♋",fitzpatrick_scale:!1,category:"symbols"},leo:{keywords:["sign","purple-square","zodiac","astrology"],char:"♌",fitzpatrick_scale:!1,category:"symbols"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],char:"♍",fitzpatrick_scale:!1,category:"symbols"},libra:{keywords:["sign","purple-square","zodiac","astrology"],char:"♎",fitzpatrick_scale:!1,category:"symbols"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"♏",fitzpatrick_scale:!1,category:"symbols"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],char:"♐",fitzpatrick_scale:!1,category:"symbols"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],char:"♑",fitzpatrick_scale:!1,category:"symbols"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],char:"♒",fitzpatrick_scale:!1,category:"symbols"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],char:"♓",fitzpatrick_scale:!1,category:"symbols"},id:{keywords:["purple-square","words"],char:"🆔",fitzpatrick_scale:!1,category:"symbols"},atom_symbol:{keywords:["science","physics","chemistry"],char:"⚛",fitzpatrick_scale:!1,category:"symbols"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"🈳",fitzpatrick_scale:!1,category:"symbols"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],char:"🈹",fitzpatrick_scale:!1,category:"symbols"},radioactive:{keywords:["nuclear","danger"],char:"☢",fitzpatrick_scale:!1,category:"symbols"},biohazard:{keywords:["danger"],char:"☣",fitzpatrick_scale:!1,category:"symbols"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],char:"📴",fitzpatrick_scale:!1,category:"symbols"},vibration_mode:{keywords:["orange-square","phone"],char:"📳",fitzpatrick_scale:!1,category:"symbols"},u6709:{keywords:["orange-square","chinese","have","kanji"],char:"🈶",fitzpatrick_scale:!1,category:"symbols"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"🈚",fitzpatrick_scale:!1,category:"symbols"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],char:"🈸",fitzpatrick_scale:!1,category:"symbols"},u55b6:{keywords:["japanese","opening hours","orange-square"],char:"🈺",fitzpatrick_scale:!1,category:"symbols"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"🈷️",fitzpatrick_scale:!1,category:"symbols"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],char:"✴️",fitzpatrick_scale:!1,category:"symbols"},vs:{keywords:["words","orange-square"],char:"🆚",fitzpatrick_scale:!1,category:"symbols"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"🉑",fitzpatrick_scale:!1,category:"symbols"},white_flower:{keywords:["japanese","spring"],char:"💮",fitzpatrick_scale:!1,category:"symbols"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],char:"🉐",fitzpatrick_scale:!1,category:"symbols"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"㊙️",fitzpatrick_scale:!1,category:"symbols"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],char:"㊗️",fitzpatrick_scale:!1,category:"symbols"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],char:"🈴",fitzpatrick_scale:!1,category:"symbols"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],char:"🈵",fitzpatrick_scale:!1,category:"symbols"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"🈲",fitzpatrick_scale:!1,category:"symbols"},a:{keywords:["red-square","alphabet","letter"],char:"🅰️",fitzpatrick_scale:!1,category:"symbols"},b:{keywords:["red-square","alphabet","letter"],char:"🅱️",fitzpatrick_scale:!1,category:"symbols"},ab:{keywords:["red-square","alphabet"],char:"🆎",fitzpatrick_scale:!1,category:"symbols"},cl:{keywords:["alphabet","words","red-square"],char:"🆑",fitzpatrick_scale:!1,category:"symbols"},o2:{keywords:["alphabet","red-square","letter"],char:"🅾️",fitzpatrick_scale:!1,category:"symbols"},sos:{keywords:["help","red-square","words","emergency","911"],char:"🆘",fitzpatrick_scale:!1,category:"symbols"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"⛔",fitzpatrick_scale:!1,category:"symbols"},name_badge:{keywords:["fire","forbid"],char:"📛",fitzpatrick_scale:!1,category:"symbols"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],char:"🚫",fitzpatrick_scale:!1,category:"symbols"},x:{keywords:["no","delete","remove","cancel","red"],char:"❌",fitzpatrick_scale:!1,category:"symbols"},o:{keywords:["circle","round"],char:"⭕",fitzpatrick_scale:!1,category:"symbols"},stop_sign:{keywords:["stop"],char:"🛑",fitzpatrick_scale:!1,category:"symbols"},anger:{keywords:["angry","mad"],char:"💢",fitzpatrick_scale:!1,category:"symbols"},hotsprings:{keywords:["bath","warm","relax"],char:"♨️",fitzpatrick_scale:!1,category:"symbols"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],char:"🚷",fitzpatrick_scale:!1,category:"symbols"},do_not_litter:{keywords:["trash","bin","garbage","circle"],char:"🚯",fitzpatrick_scale:!1,category:"symbols"},no_bicycles:{keywords:["cyclist","prohibited","circle"],char:"🚳",fitzpatrick_scale:!1,category:"symbols"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:{keywords:["18","drink","pub","night","minor","circle"],char:"🔞",fitzpatrick_scale:!1,category:"symbols"},no_mobile_phones:{keywords:["iphone","mute","circle"],char:"📵",fitzpatrick_scale:!1,category:"symbols"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"❗",fitzpatrick_scale:!1,category:"symbols"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],char:"❕",fitzpatrick_scale:!1,category:"symbols"},question:{keywords:["doubt","confused"],char:"❓",fitzpatrick_scale:!1,category:"symbols"},grey_question:{keywords:["doubts","gray","huh","confused"],char:"❔",fitzpatrick_scale:!1,category:"symbols"},bangbang:{keywords:["exclamation","surprise"],char:"‼️",fitzpatrick_scale:!1,category:"symbols"},interrobang:{keywords:["wat","punctuation","surprise"],char:"⁉️",fitzpatrick_scale:!1,category:"symbols"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"💯",fitzpatrick_scale:!1,category:"symbols"},low_brightness:{keywords:["sun","afternoon","warm","summer"],char:"🔅",fitzpatrick_scale:!1,category:"symbols"},high_brightness:{keywords:["sun","light"],char:"🔆",fitzpatrick_scale:!1,category:"symbols"},trident:{keywords:["weapon","spear"],char:"🔱",fitzpatrick_scale:!1,category:"symbols"},fleur_de_lis:{keywords:["decorative","scout"],char:"⚜",fitzpatrick_scale:!1,category:"symbols"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],char:"〽️",fitzpatrick_scale:!1,category:"symbols"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],char:"⚠️",fitzpatrick_scale:!1,category:"symbols"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"🚸",fitzpatrick_scale:!1,category:"symbols"},beginner:{keywords:["badge","shield"],char:"🔰",fitzpatrick_scale:!1,category:"symbols"},recycle:{keywords:["arrow","environment","garbage","trash"],char:"♻️",fitzpatrick_scale:!1,category:"symbols"},u6307:{keywords:["chinese","point","green-square","kanji"],char:"🈯",fitzpatrick_scale:!1,category:"symbols"},chart:{keywords:["green-square","graph","presentation","stats"],char:"💹",fitzpatrick_scale:!1,category:"symbols"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],char:"❇️",fitzpatrick_scale:!1,category:"symbols"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],char:"✳️",fitzpatrick_scale:!1,category:"symbols"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],char:"❎",fitzpatrick_scale:!1,category:"symbols"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"✅",fitzpatrick_scale:!1,category:"symbols"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],char:"💠",fitzpatrick_scale:!1,category:"symbols"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"🌀",fitzpatrick_scale:!1,category:"symbols"},loop:{keywords:["tape","cassette"],char:"➿",fitzpatrick_scale:!1,category:"symbols"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],char:"🌐",fitzpatrick_scale:!1,category:"symbols"},m:{keywords:["alphabet","blue-circle","letter"],char:"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],char:"🏧",fitzpatrick_scale:!1,category:"symbols"},sa:{keywords:["japanese","blue-square","katakana"],char:"🈂️",fitzpatrick_scale:!1,category:"symbols"},passport_control:{keywords:["custom","blue-square"],char:"🛂",fitzpatrick_scale:!1,category:"symbols"},customs:{keywords:["passport","border","blue-square"],char:"🛃",fitzpatrick_scale:!1,category:"symbols"},baggage_claim:{keywords:["blue-square","airport","transport"],char:"🛄",fitzpatrick_scale:!1,category:"symbols"},left_luggage:{keywords:["blue-square","travel"],char:"🛅",fitzpatrick_scale:!1,category:"symbols"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],char:"♿",fitzpatrick_scale:!1,category:"symbols"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],char:"🚭",fitzpatrick_scale:!1,category:"symbols"},wc:{keywords:["toilet","restroom","blue-square"],char:"🚾",fitzpatrick_scale:!1,category:"symbols"},parking:{keywords:["cars","blue-square","alphabet","letter"],char:"🅿️",fitzpatrick_scale:!1,category:"symbols"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"🚰",fitzpatrick_scale:!1,category:"symbols"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"🚹",fitzpatrick_scale:!1,category:"symbols"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"🚺",fitzpatrick_scale:!1,category:"symbols"},baby_symbol:{keywords:["orange-square","child"],char:"🚼",fitzpatrick_scale:!1,category:"symbols"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],char:"🚻",fitzpatrick_scale:!1,category:"symbols"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],char:"🚮",fitzpatrick_scale:!1,category:"symbols"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"🎦",fitzpatrick_scale:!1,category:"symbols"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"📶",fitzpatrick_scale:!1,category:"symbols"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],char:"🈁",fitzpatrick_scale:!1,category:"symbols"},ng:{keywords:["blue-square","words","shape","icon"],char:"🆖",fitzpatrick_scale:!1,category:"symbols"},ok:{keywords:["good","agree","yes","blue-square"],char:"🆗",fitzpatrick_scale:!1,category:"symbols"},up:{keywords:["blue-square","above","high"],char:"🆙",fitzpatrick_scale:!1,category:"symbols"},cool:{keywords:["words","blue-square"],char:"🆒",fitzpatrick_scale:!1,category:"symbols"},new:{keywords:["blue-square","words","start"],char:"🆕",fitzpatrick_scale:!1,category:"symbols"},free:{keywords:["blue-square","words"],char:"🆓",fitzpatrick_scale:!1,category:"symbols"},zero:{keywords:["0","numbers","blue-square","null"],char:"0️⃣",fitzpatrick_scale:!1,category:"symbols"},one:{keywords:["blue-square","numbers","1"],char:"1️⃣",fitzpatrick_scale:!1,category:"symbols"},two:{keywords:["numbers","2","prime","blue-square"],char:"2️⃣",fitzpatrick_scale:!1,category:"symbols"},three:{keywords:["3","numbers","prime","blue-square"],char:"3️⃣",fitzpatrick_scale:!1,category:"symbols"},four:{keywords:["4","numbers","blue-square"],char:"4️⃣",fitzpatrick_scale:!1,category:"symbols"},five:{keywords:["5","numbers","blue-square","prime"],char:"5️⃣",fitzpatrick_scale:!1,category:"symbols"},six:{keywords:["6","numbers","blue-square"],char:"6️⃣",fitzpatrick_scale:!1,category:"symbols"},seven:{keywords:["7","numbers","blue-square","prime"],char:"7️⃣",fitzpatrick_scale:!1,category:"symbols"},eight:{keywords:["8","blue-square","numbers"],char:"8️⃣",fitzpatrick_scale:!1,category:"symbols"},nine:{keywords:["blue-square","numbers","9"],char:"9️⃣",fitzpatrick_scale:!1,category:"symbols"},keycap_ten:{keywords:["numbers","10","blue-square"],char:"🔟",fitzpatrick_scale:!1,category:"symbols"},asterisk:{keywords:["star","keycap"],char:"*⃣",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],char:"🔢",fitzpatrick_scale:!1,category:"symbols"},eject_button:{keywords:["blue-square"],char:"⏏️",fitzpatrick_scale:!1,category:"symbols"},arrow_forward:{keywords:["blue-square","right","direction","play"],char:"▶️",fitzpatrick_scale:!1,category:"symbols"},pause_button:{keywords:["pause","blue-square"],char:"⏸",fitzpatrick_scale:!1,category:"symbols"},next_track_button:{keywords:["forward","next","blue-square"],char:"⏭",fitzpatrick_scale:!1,category:"symbols"},stop_button:{keywords:["blue-square"],char:"⏹",fitzpatrick_scale:!1,category:"symbols"},record_button:{keywords:["blue-square"],char:"⏺",fitzpatrick_scale:!1,category:"symbols"},play_or_pause_button:{keywords:["blue-square","play","pause"],char:"⏯",fitzpatrick_scale:!1,category:"symbols"},previous_track_button:{keywords:["backward"],char:"⏮",fitzpatrick_scale:!1,category:"symbols"},fast_forward:{keywords:["blue-square","play","speed","continue"],char:"⏩",fitzpatrick_scale:!1,category:"symbols"},rewind:{keywords:["play","blue-square"],char:"⏪",fitzpatrick_scale:!1,category:"symbols"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],char:"🔀",fitzpatrick_scale:!1,category:"symbols"},repeat:{keywords:["loop","record"],char:"🔁",fitzpatrick_scale:!1,category:"symbols"},repeat_one:{keywords:["blue-square","loop"],char:"🔂",fitzpatrick_scale:!1,category:"symbols"},arrow_backward:{keywords:["blue-square","left","direction"],char:"◀️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],char:"🔼",fitzpatrick_scale:!1,category:"symbols"},arrow_down_small:{keywords:["blue-square","direction","bottom"],char:"🔽",fitzpatrick_scale:!1,category:"symbols"},arrow_double_up:{keywords:["blue-square","direction","top"],char:"⏫",fitzpatrick_scale:!1,category:"symbols"},arrow_double_down:{keywords:["blue-square","direction","bottom"],char:"⏬",fitzpatrick_scale:!1,category:"symbols"},arrow_right:{keywords:["blue-square","next"],char:"➡️",fitzpatrick_scale:!1,category:"symbols"},arrow_left:{keywords:["blue-square","previous","back"],char:"⬅️",fitzpatrick_scale:!1,category:"symbols"},arrow_up:{keywords:["blue-square","continue","top","direction"],char:"⬆️",fitzpatrick_scale:!1,category:"symbols"},arrow_down:{keywords:["blue-square","direction","bottom"],char:"⬇️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],char:"↗️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],char:"↘️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],char:"↙️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],char:"↖️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],char:"↕️",fitzpatrick_scale:!1,category:"symbols"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],char:"↔️",fitzpatrick_scale:!1,category:"symbols"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],char:"🔄",fitzpatrick_scale:!1,category:"symbols"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],char:"↪️",fitzpatrick_scale:!1,category:"symbols"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],char:"↩️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_up:{keywords:["blue-square","direction","top"],char:"⤴️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],char:"⤵️",fitzpatrick_scale:!1,category:"symbols"},hash:{keywords:["symbol","blue-square","twitter"],char:"#️⃣",fitzpatrick_scale:!1,category:"symbols"},information_source:{keywords:["blue-square","alphabet","letter"],char:"ℹ️",fitzpatrick_scale:!1,category:"symbols"},abc:{keywords:["blue-square","alphabet"],char:"🔤",fitzpatrick_scale:!1,category:"symbols"},abcd:{keywords:["blue-square","alphabet"],char:"🔡",fitzpatrick_scale:!1,category:"symbols"},capital_abcd:{keywords:["alphabet","words","blue-square"],char:"🔠",fitzpatrick_scale:!1,category:"symbols"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"🔣",fitzpatrick_scale:!1,category:"symbols"},musical_note:{keywords:["score","tone","sound"],char:"🎵",fitzpatrick_scale:!1,category:"symbols"},notes:{keywords:["music","score"],char:"🎶",fitzpatrick_scale:!1,category:"symbols"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"〰️",fitzpatrick_scale:!1,category:"symbols"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],char:"➰",fitzpatrick_scale:!1,category:"symbols"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],char:"✔️",fitzpatrick_scale:!1,category:"symbols"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],char:"🔃",fitzpatrick_scale:!1,category:"symbols"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],char:"➕",fitzpatrick_scale:!1,category:"symbols"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],char:"➖",fitzpatrick_scale:!1,category:"symbols"},heavy_division_sign:{keywords:["divide","math","calculation"],char:"➗",fitzpatrick_scale:!1,category:"symbols"},heavy_multiplication_x:{keywords:["math","calculation"],char:"✖️",fitzpatrick_scale:!1,category:"symbols"},infinity:{keywords:["forever"],char:"♾",fitzpatrick_scale:!1,category:"symbols"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],char:"💲",fitzpatrick_scale:!1,category:"symbols"},currency_exchange:{keywords:["money","sales","dollar","travel"],char:"💱",fitzpatrick_scale:!1,category:"symbols"},copyright:{keywords:["ip","license","circle","law","legal"],char:"©️",fitzpatrick_scale:!1,category:"symbols"},registered:{keywords:["alphabet","circle"],char:"®️",fitzpatrick_scale:!1,category:"symbols"},tm:{keywords:["trademark","brand","law","legal"],char:"™️",fitzpatrick_scale:!1,category:"symbols"},end:{keywords:["words","arrow"],char:"🔚",fitzpatrick_scale:!1,category:"symbols"},back:{keywords:["arrow","words","return"],char:"🔙",fitzpatrick_scale:!1,category:"symbols"},on:{keywords:["arrow","words"],char:"🔛",fitzpatrick_scale:!1,category:"symbols"},top:{keywords:["words","blue-square"],char:"🔝",fitzpatrick_scale:!1,category:"symbols"},soon:{keywords:["arrow","words"],char:"🔜",fitzpatrick_scale:!1,category:"symbols"},ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"☑️",fitzpatrick_scale:!1,category:"symbols"},radio_button:{keywords:["input","old","music","circle"],char:"🔘",fitzpatrick_scale:!1,category:"symbols"},white_circle:{keywords:["shape","round"],char:"⚪",fitzpatrick_scale:!1,category:"symbols"},black_circle:{keywords:["shape","button","round"],char:"⚫",fitzpatrick_scale:!1,category:"symbols"},red_circle:{keywords:["shape","error","danger"],char:"🔴",fitzpatrick_scale:!1,category:"symbols"},large_blue_circle:{keywords:["shape","icon","button"],char:"🔵",fitzpatrick_scale:!1,category:"symbols"},small_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔸",fitzpatrick_scale:!1,category:"symbols"},small_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔹",fitzpatrick_scale:!1,category:"symbols"},large_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔶",fitzpatrick_scale:!1,category:"symbols"},large_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔷",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle:{keywords:["shape","direction","up","top"],char:"🔺",fitzpatrick_scale:!1,category:"symbols"},black_small_square:{keywords:["shape","icon"],char:"▪️",fitzpatrick_scale:!1,category:"symbols"},white_small_square:{keywords:["shape","icon"],char:"▫️",fitzpatrick_scale:!1,category:"symbols"},black_large_square:{keywords:["shape","icon","button"],char:"⬛",fitzpatrick_scale:!1,category:"symbols"},white_large_square:{keywords:["shape","icon","stone","button"],char:"⬜",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle_down:{keywords:["shape","direction","bottom"],char:"🔻",fitzpatrick_scale:!1,category:"symbols"},black_medium_square:{keywords:["shape","button","icon"],char:"◼️",fitzpatrick_scale:!1,category:"symbols"},white_medium_square:{keywords:["shape","stone","icon"],char:"◻️",fitzpatrick_scale:!1,category:"symbols"},black_medium_small_square:{keywords:["icon","shape","button"],char:"◾",fitzpatrick_scale:!1,category:"symbols"},white_medium_small_square:{keywords:["shape","stone","icon","button"],char:"◽",fitzpatrick_scale:!1,category:"symbols"},black_square_button:{keywords:["shape","input","frame"],char:"🔲",fitzpatrick_scale:!1,category:"symbols"},white_square_button:{keywords:["shape","input"],char:"🔳",fitzpatrick_scale:!1,category:"symbols"},speaker:{keywords:["sound","volume","silence","broadcast"],char:"🔈",fitzpatrick_scale:!1,category:"symbols"},sound:{keywords:["volume","speaker","broadcast"],char:"🔉",fitzpatrick_scale:!1,category:"symbols"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],char:"🔊",fitzpatrick_scale:!1,category:"symbols"},mute:{keywords:["sound","volume","silence","quiet"],char:"🔇",fitzpatrick_scale:!1,category:"symbols"},mega:{keywords:["sound","speaker","volume"],char:"📣",fitzpatrick_scale:!1,category:"symbols"},loudspeaker:{keywords:["volume","sound"],char:"📢",fitzpatrick_scale:!1,category:"symbols"},bell:{keywords:["sound","notification","christmas","xmas","chime"],char:"🔔",fitzpatrick_scale:!1,category:"symbols"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],char:"🔕",fitzpatrick_scale:!1,category:"symbols"},black_joker:{keywords:["poker","cards","game","play","magic"],char:"🃏",fitzpatrick_scale:!1,category:"symbols"},mahjong:{keywords:["game","play","chinese","kanji"],char:"🀄",fitzpatrick_scale:!1,category:"symbols"},spades:{keywords:["poker","cards","suits","magic"],char:"♠️",fitzpatrick_scale:!1,category:"symbols"},clubs:{keywords:["poker","cards","magic","suits"],char:"♣️",fitzpatrick_scale:!1,category:"symbols"},hearts:{keywords:["poker","cards","magic","suits"],char:"♥️",fitzpatrick_scale:!1,category:"symbols"},diamonds:{keywords:["poker","cards","magic","suits"],char:"♦️",fitzpatrick_scale:!1,category:"symbols"},flower_playing_cards:{keywords:["game","sunset","red"],char:"🎴",fitzpatrick_scale:!1,category:"symbols"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],char:"💭",fitzpatrick_scale:!1,category:"symbols"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],char:"🗯",fitzpatrick_scale:!1,category:"symbols"},speech_balloon:{keywords:["bubble","words","message","talk","chatting"],char:"💬",fitzpatrick_scale:!1,category:"symbols"},left_speech_bubble:{keywords:["words","message","talk","chatting"],char:"🗨",fitzpatrick_scale:!1,category:"symbols"},clock1:{keywords:["time","late","early","schedule"],char:"🕐",fitzpatrick_scale:!1,category:"symbols"},clock2:{keywords:["time","late","early","schedule"],char:"🕑",fitzpatrick_scale:!1,category:"symbols"},clock3:{keywords:["time","late","early","schedule"],char:"🕒",fitzpatrick_scale:!1,category:"symbols"},clock4:{keywords:["time","late","early","schedule"],char:"🕓",fitzpatrick_scale:!1,category:"symbols"},clock5:{keywords:["time","late","early","schedule"],char:"🕔",fitzpatrick_scale:!1,category:"symbols"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],char:"🕕",fitzpatrick_scale:!1,category:"symbols"},clock7:{keywords:["time","late","early","schedule"],char:"🕖",fitzpatrick_scale:!1,category:"symbols"},clock8:{keywords:["time","late","early","schedule"],char:"🕗",fitzpatrick_scale:!1,category:"symbols"},clock9:{keywords:["time","late","early","schedule"],char:"🕘",fitzpatrick_scale:!1,category:"symbols"},clock10:{keywords:["time","late","early","schedule"],char:"🕙",fitzpatrick_scale:!1,category:"symbols"},clock11:{keywords:["time","late","early","schedule"],char:"🕚",fitzpatrick_scale:!1,category:"symbols"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],char:"🕛",fitzpatrick_scale:!1,category:"symbols"},clock130:{keywords:["time","late","early","schedule"],char:"🕜",fitzpatrick_scale:!1,category:"symbols"},clock230:{keywords:["time","late","early","schedule"],char:"🕝",fitzpatrick_scale:!1,category:"symbols"},clock330:{keywords:["time","late","early","schedule"],char:"🕞",fitzpatrick_scale:!1,category:"symbols"},clock430:{keywords:["time","late","early","schedule"],char:"🕟",fitzpatrick_scale:!1,category:"symbols"},clock530:{keywords:["time","late","early","schedule"],char:"🕠",fitzpatrick_scale:!1,category:"symbols"},clock630:{keywords:["time","late","early","schedule"],char:"🕡",fitzpatrick_scale:!1,category:"symbols"},clock730:{keywords:["time","late","early","schedule"],char:"🕢",fitzpatrick_scale:!1,category:"symbols"},clock830:{keywords:["time","late","early","schedule"],char:"🕣",fitzpatrick_scale:!1,category:"symbols"},clock930:{keywords:["time","late","early","schedule"],char:"🕤",fitzpatrick_scale:!1,category:"symbols"},clock1030:{keywords:["time","late","early","schedule"],char:"🕥",fitzpatrick_scale:!1,category:"symbols"},clock1130:{keywords:["time","late","early","schedule"],char:"🕦",fitzpatrick_scale:!1,category:"symbols"},clock1230:{keywords:["time","late","early","schedule"],char:"🕧",fitzpatrick_scale:!1,category:"symbols"},afghanistan:{keywords:["af","flag","nation","country","banner"],char:"🇦🇫",fitzpatrick_scale:!1,category:"flags"},aland_islands:{keywords:["Åland","islands","flag","nation","country","banner"],char:"🇦🇽",fitzpatrick_scale:!1,category:"flags"},albania:{keywords:["al","flag","nation","country","banner"],char:"🇦🇱",fitzpatrick_scale:!1,category:"flags"},algeria:{keywords:["dz","flag","nation","country","banner"],char:"🇩🇿",fitzpatrick_scale:!1,category:"flags"},american_samoa:{keywords:["american","ws","flag","nation","country","banner"],char:"🇦🇸",fitzpatrick_scale:!1,category:"flags"},andorra:{keywords:["ad","flag","nation","country","banner"],char:"🇦🇩",fitzpatrick_scale:!1,category:"flags"},angola:{keywords:["ao","flag","nation","country","banner"],char:"🇦🇴",fitzpatrick_scale:!1,category:"flags"},anguilla:{keywords:["ai","flag","nation","country","banner"],char:"🇦🇮",fitzpatrick_scale:!1,category:"flags"},antarctica:{keywords:["aq","flag","nation","country","banner"],char:"🇦🇶",fitzpatrick_scale:!1,category:"flags"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],char:"🇦🇬",fitzpatrick_scale:!1,category:"flags"},argentina:{keywords:["ar","flag","nation","country","banner"],char:"🇦🇷",fitzpatrick_scale:!1,category:"flags"},armenia:{keywords:["am","flag","nation","country","banner"],char:"🇦🇲",fitzpatrick_scale:!1,category:"flags"},aruba:{keywords:["aw","flag","nation","country","banner"],char:"🇦🇼",fitzpatrick_scale:!1,category:"flags"},australia:{keywords:["au","flag","nation","country","banner"],char:"🇦🇺",fitzpatrick_scale:!1,category:"flags"},austria:{keywords:["at","flag","nation","country","banner"],char:"🇦🇹",fitzpatrick_scale:!1,category:"flags"},azerbaijan:{keywords:["az","flag","nation","country","banner"],char:"🇦🇿",fitzpatrick_scale:!1,category:"flags"},bahamas:{keywords:["bs","flag","nation","country","banner"],char:"🇧🇸",fitzpatrick_scale:!1,category:"flags"},bahrain:{keywords:["bh","flag","nation","country","banner"],char:"🇧🇭",fitzpatrick_scale:!1,category:"flags"},bangladesh:{keywords:["bd","flag","nation","country","banner"],char:"🇧🇩",fitzpatrick_scale:!1,category:"flags"},barbados:{keywords:["bb","flag","nation","country","banner"],char:"🇧🇧",fitzpatrick_scale:!1,category:"flags"},belarus:{keywords:["by","flag","nation","country","banner"],char:"🇧🇾",fitzpatrick_scale:!1,category:"flags"},belgium:{keywords:["be","flag","nation","country","banner"],char:"🇧🇪",fitzpatrick_scale:!1,category:"flags"},belize:{keywords:["bz","flag","nation","country","banner"],char:"🇧🇿",fitzpatrick_scale:!1,category:"flags"},benin:{keywords:["bj","flag","nation","country","banner"],char:"🇧🇯",fitzpatrick_scale:!1,category:"flags"},bermuda:{keywords:["bm","flag","nation","country","banner"],char:"🇧🇲",fitzpatrick_scale:!1,category:"flags"},bhutan:{keywords:["bt","flag","nation","country","banner"],char:"🇧🇹",fitzpatrick_scale:!1,category:"flags"},bolivia:{keywords:["bo","flag","nation","country","banner"],char:"🇧🇴",fitzpatrick_scale:!1,category:"flags"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],char:"🇧🇶",fitzpatrick_scale:!1,category:"flags"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"🇧🇦",fitzpatrick_scale:!1,category:"flags"},botswana:{keywords:["bw","flag","nation","country","banner"],char:"🇧🇼",fitzpatrick_scale:!1,category:"flags"},brazil:{keywords:["br","flag","nation","country","banner"],char:"🇧🇷",fitzpatrick_scale:!1,category:"flags"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"🇮🇴",fitzpatrick_scale:!1,category:"flags"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"🇻🇬",fitzpatrick_scale:!1,category:"flags"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],char:"🇧🇳",fitzpatrick_scale:!1,category:"flags"},bulgaria:{keywords:["bg","flag","nation","country","banner"],char:"🇧🇬",fitzpatrick_scale:!1,category:"flags"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],char:"🇧🇫",fitzpatrick_scale:!1,category:"flags"},burundi:{keywords:["bi","flag","nation","country","banner"],char:"🇧🇮",fitzpatrick_scale:!1,category:"flags"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],char:"🇨🇻",fitzpatrick_scale:!1,category:"flags"},cambodia:{keywords:["kh","flag","nation","country","banner"],char:"🇰🇭",fitzpatrick_scale:!1,category:"flags"},cameroon:{keywords:["cm","flag","nation","country","banner"],char:"🇨🇲",fitzpatrick_scale:!1,category:"flags"},canada:{keywords:["ca","flag","nation","country","banner"],char:"🇨🇦",fitzpatrick_scale:!1,category:"flags"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],char:"🇮🇨",fitzpatrick_scale:!1,category:"flags"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],char:"🇰🇾",fitzpatrick_scale:!1,category:"flags"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],char:"🇨🇫",fitzpatrick_scale:!1,category:"flags"},chad:{keywords:["td","flag","nation","country","banner"],char:"🇹🇩",fitzpatrick_scale:!1,category:"flags"},chile:{keywords:["flag","nation","country","banner"],char:"🇨🇱",fitzpatrick_scale:!1,category:"flags"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],char:"🇨🇳",fitzpatrick_scale:!1,category:"flags"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],char:"🇨🇽",fitzpatrick_scale:!1,category:"flags"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"🇨🇨",fitzpatrick_scale:!1,category:"flags"},colombia:{keywords:["co","flag","nation","country","banner"],char:"🇨🇴",fitzpatrick_scale:!1,category:"flags"},comoros:{keywords:["km","flag","nation","country","banner"],char:"🇰🇲",fitzpatrick_scale:!1,category:"flags"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],char:"🇨🇬",fitzpatrick_scale:!1,category:"flags"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"🇨🇩",fitzpatrick_scale:!1,category:"flags"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],char:"🇨🇰",fitzpatrick_scale:!1,category:"flags"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],char:"🇨🇷",fitzpatrick_scale:!1,category:"flags"},croatia:{keywords:["hr","flag","nation","country","banner"],char:"🇭🇷",fitzpatrick_scale:!1,category:"flags"},cuba:{keywords:["cu","flag","nation","country","banner"],char:"🇨🇺",fitzpatrick_scale:!1,category:"flags"},curacao:{keywords:["curaçao","flag","nation","country","banner"],char:"🇨🇼",fitzpatrick_scale:!1,category:"flags"},cyprus:{keywords:["cy","flag","nation","country","banner"],char:"🇨🇾",fitzpatrick_scale:!1,category:"flags"},czech_republic:{keywords:["cz","flag","nation","country","banner"],char:"🇨🇿",fitzpatrick_scale:!1,category:"flags"},denmark:{keywords:["dk","flag","nation","country","banner"],char:"🇩🇰",fitzpatrick_scale:!1,category:"flags"},djibouti:{keywords:["dj","flag","nation","country","banner"],char:"🇩🇯",fitzpatrick_scale:!1,category:"flags"},dominica:{keywords:["dm","flag","nation","country","banner"],char:"🇩🇲",fitzpatrick_scale:!1,category:"flags"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],char:"🇩🇴",fitzpatrick_scale:!1,category:"flags"},ecuador:{keywords:["ec","flag","nation","country","banner"],char:"🇪🇨",fitzpatrick_scale:!1,category:"flags"},egypt:{keywords:["eg","flag","nation","country","banner"],char:"🇪🇬",fitzpatrick_scale:!1,category:"flags"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],char:"🇸🇻",fitzpatrick_scale:!1,category:"flags"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],char:"🇬🇶",fitzpatrick_scale:!1,category:"flags"},eritrea:{keywords:["er","flag","nation","country","banner"],char:"🇪🇷",fitzpatrick_scale:!1,category:"flags"},estonia:{keywords:["ee","flag","nation","country","banner"],char:"🇪🇪",fitzpatrick_scale:!1,category:"flags"},ethiopia:{keywords:["et","flag","nation","country","banner"],char:"🇪🇹",fitzpatrick_scale:!1,category:"flags"},eu:{keywords:["european","union","flag","banner"],char:"🇪🇺",fitzpatrick_scale:!1,category:"flags"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"🇫🇰",fitzpatrick_scale:!1,category:"flags"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],char:"🇫🇴",fitzpatrick_scale:!1,category:"flags"},fiji:{keywords:["fj","flag","nation","country","banner"],char:"🇫🇯",fitzpatrick_scale:!1,category:"flags"},finland:{keywords:["fi","flag","nation","country","banner"],char:"🇫🇮",fitzpatrick_scale:!1,category:"flags"},fr:{keywords:["banner","flag","nation","france","french","country"],char:"🇫🇷",fitzpatrick_scale:!1,category:"flags"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],char:"🇬🇫",fitzpatrick_scale:!1,category:"flags"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],char:"🇵🇫",fitzpatrick_scale:!1,category:"flags"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],char:"🇹🇫",fitzpatrick_scale:!1,category:"flags"},gabon:{keywords:["ga","flag","nation","country","banner"],char:"🇬🇦",fitzpatrick_scale:!1,category:"flags"},gambia:{keywords:["gm","flag","nation","country","banner"],char:"🇬🇲",fitzpatrick_scale:!1,category:"flags"},georgia:{keywords:["ge","flag","nation","country","banner"],char:"🇬🇪",fitzpatrick_scale:!1,category:"flags"},de:{keywords:["german","nation","flag","country","banner"],char:"🇩🇪",fitzpatrick_scale:!1,category:"flags"},ghana:{keywords:["gh","flag","nation","country","banner"],char:"🇬🇭",fitzpatrick_scale:!1,category:"flags"},gibraltar:{keywords:["gi","flag","nation","country","banner"],char:"🇬🇮",fitzpatrick_scale:!1,category:"flags"},greece:{keywords:["gr","flag","nation","country","banner"],char:"🇬🇷",fitzpatrick_scale:!1,category:"flags"},greenland:{keywords:["gl","flag","nation","country","banner"],char:"🇬🇱",fitzpatrick_scale:!1,category:"flags"},grenada:{keywords:["gd","flag","nation","country","banner"],char:"🇬🇩",fitzpatrick_scale:!1,category:"flags"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],char:"🇬🇵",fitzpatrick_scale:!1,category:"flags"},guam:{keywords:["gu","flag","nation","country","banner"],char:"🇬🇺",fitzpatrick_scale:!1,category:"flags"},guatemala:{keywords:["gt","flag","nation","country","banner"],char:"🇬🇹",fitzpatrick_scale:!1,category:"flags"},guernsey:{keywords:["gg","flag","nation","country","banner"],char:"🇬🇬",fitzpatrick_scale:!1,category:"flags"},guinea:{keywords:["gn","flag","nation","country","banner"],char:"🇬🇳",fitzpatrick_scale:!1,category:"flags"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],char:"🇬🇼",fitzpatrick_scale:!1,category:"flags"},guyana:{keywords:["gy","flag","nation","country","banner"],char:"🇬🇾",fitzpatrick_scale:!1,category:"flags"},haiti:{keywords:["ht","flag","nation","country","banner"],char:"🇭🇹",fitzpatrick_scale:!1,category:"flags"},honduras:{keywords:["hn","flag","nation","country","banner"],char:"🇭🇳",fitzpatrick_scale:!1,category:"flags"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],char:"🇭🇰",fitzpatrick_scale:!1,category:"flags"},hungary:{keywords:["hu","flag","nation","country","banner"],char:"🇭🇺",fitzpatrick_scale:!1,category:"flags"},iceland:{keywords:["is","flag","nation","country","banner"],char:"🇮🇸",fitzpatrick_scale:!1,category:"flags"},india:{keywords:["in","flag","nation","country","banner"],char:"🇮🇳",fitzpatrick_scale:!1,category:"flags"},indonesia:{keywords:["flag","nation","country","banner"],char:"🇮🇩",fitzpatrick_scale:!1,category:"flags"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"🇮🇷",fitzpatrick_scale:!1,category:"flags"},iraq:{keywords:["iq","flag","nation","country","banner"],char:"🇮🇶",fitzpatrick_scale:!1,category:"flags"},ireland:{keywords:["ie","flag","nation","country","banner"],char:"🇮🇪",fitzpatrick_scale:!1,category:"flags"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],char:"🇮🇲",fitzpatrick_scale:!1,category:"flags"},israel:{keywords:["il","flag","nation","country","banner"],char:"🇮🇱",fitzpatrick_scale:!1,category:"flags"},it:{keywords:["italy","flag","nation","country","banner"],char:"🇮🇹",fitzpatrick_scale:!1,category:"flags"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],char:"🇨🇮",fitzpatrick_scale:!1,category:"flags"},jamaica:{keywords:["jm","flag","nation","country","banner"],char:"🇯🇲",fitzpatrick_scale:!1,category:"flags"},jp:{keywords:["japanese","nation","flag","country","banner"],char:"🇯🇵",fitzpatrick_scale:!1,category:"flags"},jersey:{keywords:["je","flag","nation","country","banner"],char:"🇯🇪",fitzpatrick_scale:!1,category:"flags"},jordan:{keywords:["jo","flag","nation","country","banner"],char:"🇯🇴",fitzpatrick_scale:!1,category:"flags"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],char:"🇰🇿",fitzpatrick_scale:!1,category:"flags"},kenya:{keywords:["ke","flag","nation","country","banner"],char:"🇰🇪",fitzpatrick_scale:!1,category:"flags"},kiribati:{keywords:["ki","flag","nation","country","banner"],char:"🇰🇮",fitzpatrick_scale:!1,category:"flags"},kosovo:{keywords:["xk","flag","nation","country","banner"],char:"🇽🇰",fitzpatrick_scale:!1,category:"flags"},kuwait:{keywords:["kw","flag","nation","country","banner"],char:"🇰🇼",fitzpatrick_scale:!1,category:"flags"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],char:"🇰🇬",fitzpatrick_scale:!1,category:"flags"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"🇱🇦",fitzpatrick_scale:!1,category:"flags"},latvia:{keywords:["lv","flag","nation","country","banner"],char:"🇱🇻",fitzpatrick_scale:!1,category:"flags"},lebanon:{keywords:["lb","flag","nation","country","banner"],char:"🇱🇧",fitzpatrick_scale:!1,category:"flags"},lesotho:{keywords:["ls","flag","nation","country","banner"],char:"🇱🇸",fitzpatrick_scale:!1,category:"flags"},liberia:{keywords:["lr","flag","nation","country","banner"],char:"🇱🇷",fitzpatrick_scale:!1,category:"flags"},libya:{keywords:["ly","flag","nation","country","banner"],char:"🇱🇾",fitzpatrick_scale:!1,category:"flags"},liechtenstein:{keywords:["li","flag","nation","country","banner"],char:"🇱🇮",fitzpatrick_scale:!1,category:"flags"},lithuania:{keywords:["lt","flag","nation","country","banner"],char:"🇱🇹",fitzpatrick_scale:!1,category:"flags"},luxembourg:{keywords:["lu","flag","nation","country","banner"],char:"🇱🇺",fitzpatrick_scale:!1,category:"flags"},macau:{keywords:["macao","flag","nation","country","banner"],char:"🇲🇴",fitzpatrick_scale:!1,category:"flags"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],char:"🇲🇰",fitzpatrick_scale:!1,category:"flags"},madagascar:{keywords:["mg","flag","nation","country","banner"],char:"🇲🇬",fitzpatrick_scale:!1,category:"flags"},malawi:{keywords:["mw","flag","nation","country","banner"],char:"🇲🇼",fitzpatrick_scale:!1,category:"flags"},malaysia:{keywords:["my","flag","nation","country","banner"],char:"🇲🇾",fitzpatrick_scale:!1,category:"flags"},maldives:{keywords:["mv","flag","nation","country","banner"],char:"🇲🇻",fitzpatrick_scale:!1,category:"flags"},mali:{keywords:["ml","flag","nation","country","banner"],char:"🇲🇱",fitzpatrick_scale:!1,category:"flags"},malta:{keywords:["mt","flag","nation","country","banner"],char:"🇲🇹",fitzpatrick_scale:!1,category:"flags"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],char:"🇲🇭",fitzpatrick_scale:!1,category:"flags"},martinique:{keywords:["mq","flag","nation","country","banner"],char:"🇲🇶",fitzpatrick_scale:!1,category:"flags"},mauritania:{keywords:["mr","flag","nation","country","banner"],char:"🇲🇷",fitzpatrick_scale:!1,category:"flags"},mauritius:{keywords:["mu","flag","nation","country","banner"],char:"🇲🇺",fitzpatrick_scale:!1,category:"flags"},mayotte:{keywords:["yt","flag","nation","country","banner"],char:"🇾🇹",fitzpatrick_scale:!1,category:"flags"},mexico:{keywords:["mx","flag","nation","country","banner"],char:"🇲🇽",fitzpatrick_scale:!1,category:"flags"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"🇫🇲",fitzpatrick_scale:!1,category:"flags"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],char:"🇲🇩",fitzpatrick_scale:!1,category:"flags"},monaco:{keywords:["mc","flag","nation","country","banner"],char:"🇲🇨",fitzpatrick_scale:!1,category:"flags"},mongolia:{keywords:["mn","flag","nation","country","banner"],char:"🇲🇳",fitzpatrick_scale:!1,category:"flags"},montenegro:{keywords:["me","flag","nation","country","banner"],char:"🇲🇪",fitzpatrick_scale:!1,category:"flags"},montserrat:{keywords:["ms","flag","nation","country","banner"],char:"🇲🇸",fitzpatrick_scale:!1,category:"flags"},morocco:{keywords:["ma","flag","nation","country","banner"],char:"🇲🇦",fitzpatrick_scale:!1,category:"flags"},mozambique:{keywords:["mz","flag","nation","country","banner"],char:"🇲🇿",fitzpatrick_scale:!1,category:"flags"},myanmar:{keywords:["mm","flag","nation","country","banner"],char:"🇲🇲",fitzpatrick_scale:!1,category:"flags"},namibia:{keywords:["na","flag","nation","country","banner"],char:"🇳🇦",fitzpatrick_scale:!1,category:"flags"},nauru:{keywords:["nr","flag","nation","country","banner"],char:"🇳🇷",fitzpatrick_scale:!1,category:"flags"},nepal:{keywords:["np","flag","nation","country","banner"],char:"🇳🇵",fitzpatrick_scale:!1,category:"flags"},netherlands:{keywords:["nl","flag","nation","country","banner"],char:"🇳🇱",fitzpatrick_scale:!1,category:"flags"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],char:"🇳🇨",fitzpatrick_scale:!1,category:"flags"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],char:"🇳🇿",fitzpatrick_scale:!1,category:"flags"},nicaragua:{keywords:["ni","flag","nation","country","banner"],char:"🇳🇮",fitzpatrick_scale:!1,category:"flags"},niger:{keywords:["ne","flag","nation","country","banner"],char:"🇳🇪",fitzpatrick_scale:!1,category:"flags"},nigeria:{keywords:["flag","nation","country","banner"],char:"🇳🇬",fitzpatrick_scale:!1,category:"flags"},niue:{keywords:["nu","flag","nation","country","banner"],char:"🇳🇺",fitzpatrick_scale:!1,category:"flags"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],char:"🇳🇫",fitzpatrick_scale:!1,category:"flags"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"🇲🇵",fitzpatrick_scale:!1,category:"flags"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],char:"🇰🇵",fitzpatrick_scale:!1,category:"flags"},norway:{keywords:["no","flag","nation","country","banner"],char:"🇳🇴",fitzpatrick_scale:!1,category:"flags"},oman:{keywords:["om_symbol","flag","nation","country","banner"],char:"🇴🇲",fitzpatrick_scale:!1,category:"flags"},pakistan:{keywords:["pk","flag","nation","country","banner"],char:"🇵🇰",fitzpatrick_scale:!1,category:"flags"},palau:{keywords:["pw","flag","nation","country","banner"],char:"🇵🇼",fitzpatrick_scale:!1,category:"flags"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"🇵🇸",fitzpatrick_scale:!1,category:"flags"},panama:{keywords:["pa","flag","nation","country","banner"],char:"🇵🇦",fitzpatrick_scale:!1,category:"flags"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],char:"🇵🇬",fitzpatrick_scale:!1,category:"flags"},paraguay:{keywords:["py","flag","nation","country","banner"],char:"🇵🇾",fitzpatrick_scale:!1,category:"flags"},peru:{keywords:["pe","flag","nation","country","banner"],char:"🇵🇪",fitzpatrick_scale:!1,category:"flags"},philippines:{keywords:["ph","flag","nation","country","banner"],char:"🇵🇭",fitzpatrick_scale:!1,category:"flags"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],char:"🇵🇳",fitzpatrick_scale:!1,category:"flags"},poland:{keywords:["pl","flag","nation","country","banner"],char:"🇵🇱",fitzpatrick_scale:!1,category:"flags"},portugal:{keywords:["pt","flag","nation","country","banner"],char:"🇵🇹",fitzpatrick_scale:!1,category:"flags"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],char:"🇵🇷",fitzpatrick_scale:!1,category:"flags"},qatar:{keywords:["qa","flag","nation","country","banner"],char:"🇶🇦",fitzpatrick_scale:!1,category:"flags"},reunion:{keywords:["réunion","flag","nation","country","banner"],char:"🇷🇪",fitzpatrick_scale:!1,category:"flags"},romania:{keywords:["ro","flag","nation","country","banner"],char:"🇷🇴",fitzpatrick_scale:!1,category:"flags"},ru:{keywords:["russian","federation","flag","nation","country","banner"],char:"🇷🇺",fitzpatrick_scale:!1,category:"flags"},rwanda:{keywords:["rw","flag","nation","country","banner"],char:"🇷🇼",fitzpatrick_scale:!1,category:"flags"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],char:"🇧🇱",fitzpatrick_scale:!1,category:"flags"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"🇸🇭",fitzpatrick_scale:!1,category:"flags"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"🇰🇳",fitzpatrick_scale:!1,category:"flags"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],char:"🇱🇨",fitzpatrick_scale:!1,category:"flags"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"🇵🇲",fitzpatrick_scale:!1,category:"flags"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"🇻🇨",fitzpatrick_scale:!1,category:"flags"},samoa:{keywords:["ws","flag","nation","country","banner"],char:"🇼🇸",fitzpatrick_scale:!1,category:"flags"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],char:"🇸🇲",fitzpatrick_scale:!1,category:"flags"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],char:"🇸🇹",fitzpatrick_scale:!1,category:"flags"},saudi_arabia:{keywords:["flag","nation","country","banner"],char:"🇸🇦",fitzpatrick_scale:!1,category:"flags"},senegal:{keywords:["sn","flag","nation","country","banner"],char:"🇸🇳",fitzpatrick_scale:!1,category:"flags"},serbia:{keywords:["rs","flag","nation","country","banner"],char:"🇷🇸",fitzpatrick_scale:!1,category:"flags"},seychelles:{keywords:["sc","flag","nation","country","banner"],char:"🇸🇨",fitzpatrick_scale:!1,category:"flags"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],char:"🇸🇱",fitzpatrick_scale:!1,category:"flags"},singapore:{keywords:["sg","flag","nation","country","banner"],char:"🇸🇬",fitzpatrick_scale:!1,category:"flags"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"🇸🇽",fitzpatrick_scale:!1,category:"flags"},slovakia:{keywords:["sk","flag","nation","country","banner"],char:"🇸🇰",fitzpatrick_scale:!1,category:"flags"},slovenia:{keywords:["si","flag","nation","country","banner"],char:"🇸🇮",fitzpatrick_scale:!1,category:"flags"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],char:"🇸🇧",fitzpatrick_scale:!1,category:"flags"},somalia:{keywords:["so","flag","nation","country","banner"],char:"🇸🇴",fitzpatrick_scale:!1,category:"flags"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],char:"🇿🇦",fitzpatrick_scale:!1,category:"flags"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"🇬🇸",fitzpatrick_scale:!1,category:"flags"},kr:{keywords:["south","korea","nation","flag","country","banner"],char:"🇰🇷",fitzpatrick_scale:!1,category:"flags"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],char:"🇸🇸",fitzpatrick_scale:!1,category:"flags"},es:{keywords:["spain","flag","nation","country","banner"],char:"🇪🇸",fitzpatrick_scale:!1,category:"flags"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],char:"🇱🇰",fitzpatrick_scale:!1,category:"flags"},sudan:{keywords:["sd","flag","nation","country","banner"],char:"🇸🇩",fitzpatrick_scale:!1,category:"flags"},suriname:{keywords:["sr","flag","nation","country","banner"],char:"🇸🇷",fitzpatrick_scale:!1,category:"flags"},swaziland:{keywords:["sz","flag","nation","country","banner"],char:"🇸🇿",fitzpatrick_scale:!1,category:"flags"},sweden:{keywords:["se","flag","nation","country","banner"],char:"🇸🇪",fitzpatrick_scale:!1,category:"flags"},switzerland:{keywords:["ch","flag","nation","country","banner"],char:"🇨🇭",fitzpatrick_scale:!1,category:"flags"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"🇸🇾",fitzpatrick_scale:!1,category:"flags"},taiwan:{keywords:["tw","flag","nation","country","banner"],char:"🇹🇼",fitzpatrick_scale:!1,category:"flags"},tajikistan:{keywords:["tj","flag","nation","country","banner"],char:"🇹🇯",fitzpatrick_scale:!1,category:"flags"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"🇹🇿",fitzpatrick_scale:!1,category:"flags"},thailand:{keywords:["th","flag","nation","country","banner"],char:"🇹🇭",fitzpatrick_scale:!1,category:"flags"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],char:"🇹🇱",fitzpatrick_scale:!1,category:"flags"},togo:{keywords:["tg","flag","nation","country","banner"],char:"🇹🇬",fitzpatrick_scale:!1,category:"flags"},tokelau:{keywords:["tk","flag","nation","country","banner"],char:"🇹🇰",fitzpatrick_scale:!1,category:"flags"},tonga:{keywords:["to","flag","nation","country","banner"],char:"🇹🇴",fitzpatrick_scale:!1,category:"flags"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],char:"🇹🇹",fitzpatrick_scale:!1,category:"flags"},tunisia:{keywords:["tn","flag","nation","country","banner"],char:"🇹🇳",fitzpatrick_scale:!1,category:"flags"},tr:{keywords:["turkey","flag","nation","country","banner"],char:"🇹🇷",fitzpatrick_scale:!1,category:"flags"},turkmenistan:{keywords:["flag","nation","country","banner"],char:"🇹🇲",fitzpatrick_scale:!1,category:"flags"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"🇹🇨",fitzpatrick_scale:!1,category:"flags"},tuvalu:{keywords:["flag","nation","country","banner"],char:"🇹🇻",fitzpatrick_scale:!1,category:"flags"},uganda:{keywords:["ug","flag","nation","country","banner"],char:"🇺🇬",fitzpatrick_scale:!1,category:"flags"},ukraine:{keywords:["ua","flag","nation","country","banner"],char:"🇺🇦",fitzpatrick_scale:!1,category:"flags"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],char:"🇦🇪",fitzpatrick_scale:!1,category:"flags"},uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"🇬🇧",fitzpatrick_scale:!1,category:"flags"},england:{keywords:["flag","english"],char:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",fitzpatrick_scale:!1,category:"flags"},scotland:{keywords:["flag","scottish"],char:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",fitzpatrick_scale:!1,category:"flags"},wales:{keywords:["flag","welsh"],char:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",fitzpatrick_scale:!1,category:"flags"},us:{keywords:["united","states","america","flag","nation","country","banner"],char:"🇺🇸",fitzpatrick_scale:!1,category:"flags"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],char:"🇻🇮",fitzpatrick_scale:!1,category:"flags"},uruguay:{keywords:["uy","flag","nation","country","banner"],char:"🇺🇾",fitzpatrick_scale:!1,category:"flags"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],char:"🇺🇿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],char:"🇻🇺",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦",fitzpatrick_scale:!1,category:"flags"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"🇻🇪",fitzpatrick_scale:!1,category:"flags"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],char:"🇻🇳",fitzpatrick_scale:!1,category:"flags"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],char:"🇼🇫",fitzpatrick_scale:!1,category:"flags"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],char:"🇪🇭",fitzpatrick_scale:!1,category:"flags"},yemen:{keywords:["ye","flag","nation","country","banner"],char:"🇾🇪",fitzpatrick_scale:!1,category:"flags"},zambia:{keywords:["zm","flag","nation","country","banner"],char:"🇿🇲",fitzpatrick_scale:!1,category:"flags"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],char:"🇿🇼",fitzpatrick_scale:!1,category:"flags"},united_nations:{keywords:["un","flag","banner"],char:"🇺🇳",fitzpatrick_scale:!1,category:"flags"},pirate_flag:{keywords:["skull","crossbones","flag","banner"],char:"🏴‍☠️",fitzpatrick_scale:!1,category:"flags"}})},"4ea8":function(e,t,n){n("cdd9")},"62e5":function(e,t,n){n("2519")},"64d8":function(e,t,n){n("ef1f")},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("content_style","","string")},o=function(e){return e.getParam("content_css_cors",!1,"boolean")},i=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},a=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:i(e)},c=function(e){var t=e.getParam("body_id","","hash");return t[e.id]||t},u=function(e){var t=e.getParam("body_id","tinymce","string");return-1===t.indexOf("=")?t:c(e)},s=function(e){var i="",c=e.dom.encode,s=r(e);i+='<base href="'+c(e.documentBaseURI.getURI())+'">';var l=o(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,(function(t){i+='<link type="text/css" rel="stylesheet" href="'+c(e.documentBaseURI.toAbsolute(t))+'"'+l+">"})),s&&(i+='<style type="text/css">'+s+"</style>");var f=u(e),d=a(e),m=t.mac?"e.metaKey":"e.ctrlKey && !e.altKey",g='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+m+")) {e.preventDefault();}}}, false);<\/script> ",p=e.getBody().dir,h=p?' dir="'+c(p)+'"':"",v="<!DOCTYPE html><html><head>"+i+'</head><body id="'+c(f)+'" class="mce-content-body '+c(d)+'"'+h+">"+e.getContent()+g+"</body></html>";return v},l=function(e){var t=s(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},f=function(e){e.addCommand("mcePreview",(function(){l(e)}))},d=function(e){var t=function(){return e.execCommand("mcePreview")};e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})};function m(){e.add("preview",(function(e){f(e),d(e)}))}m()})()},"69e4":function(e,t,n){n("d169")},"7c4f":function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return!!e.hasPlugin("powerpaste",!0)&&("undefined"!==typeof window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)},r=function(e){return{clipboard:e}},o=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return o(t)===e}},a=function(e){return function(t){return typeof t===e}},c=i("array"),u=function(e){return null===e||void 0===e},s=function(e){return!u(e)},l=a("function"),f=function(){},d=function(e){return function(){return e}},m=function(e){return e},g=d(!1),p=d(!0),h=function(){return v},v=function(){var e=function(e){return e()},t=m,n={fold:function(e,t){return e()},isSome:g,isNone:p,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:h,each:f,bind:h,exists:g,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:p,isNone:g,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},b=function(e){return null===e||void 0===e?v:y(e)},w={some:y,none:h,from:b},k=Array.prototype.slice,_=Array.prototype.push,x=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},C=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},z=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},S=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},T=function(e,t,n){return z(e,(function(e,r){n=t(n,e,r)})),n},O=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t},E=function(e,t){return O(C(e,t))},A=l(Array.from)?Array.from:function(e){return k.call(e)},D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},M=function(t){var n=e(w.none()),r=function(){return n.get().each(t)},o=function(){r(),n.set(w.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},c=function(e){r(),n.set(w.some(e))};return{clear:o,isSet:i,get:a,set:c}},N=function(){var e=M(f),t=function(t){return e.get().each(t)};return D(D({},e),{on:t})},R=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},B=function(e,t){return R(e,t,0)},P=function(e,t){return R(e,t,e.length-t.length)},L=function(e,t){return t<=0?"":new Array(t+1).join(e)},I=tinymce.util.Tools.resolve("tinymce.Env"),H=tinymce.util.Tools.resolve("tinymce.util.Delay"),F=tinymce.util.Tools.resolve("tinymce.util.Promise"),j=tinymce.util.Tools.resolve("tinymce.util.VK"),V=function(e,t,n,r){return e.fire("PastePreProcess",{content:t,internal:n,wordContent:r})},U=function(e,t,n,r){return e.fire("PastePostProcess",{node:t,internal:n,wordContent:r})},q=function(e,t){return e.fire("PastePlainTextToggle",{state:t})},W=function(e,t){return e.fire("paste",{ieFake:t})},$=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return e.getParam("paste_block_drop",!1)},K=function(e){return e.getParam("paste_data_images",!1)},X=function(e){return e.getParam("paste_filter_drop",!0)},Y=function(e){return e.getParam("paste_preprocess")},J=function(e){return e.getParam("paste_postprocess")},Q=function(e){return e.getParam("paste_webkit_styles")},Z=function(e){return e.getParam("paste_remove_styles_if_webkit",!0)},ee=function(e){return e.getParam("paste_merge_formats",!0)},te=function(e){return e.getParam("smart_paste",!0)},ne=function(e){return e.getParam("paste_as_text",!1)},re=function(e){return e.getParam("paste_retain_style_properties")},oe=function(e){var t="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return e.getParam("paste_word_valid_elements",t)},ie=function(e){return e.getParam("paste_convert_word_fake_lists",!0)},ae=function(e){return e.getParam("paste_enable_default_filters",!0)},ce=function(e){return e.getParam("validate")},ue=function(e){return e.getParam("allow_html_data_urls",!1,"boolean")},se=function(e){return e.getParam("paste_data_images",!1,"boolean")},le=function(e){return e.getParam("images_dataimg_filter")},fe=function(e){return e.getParam("images_reuse_filename")},de=function(e){return e.getParam("forced_root_block")},me=function(e){return e.getParam("forced_root_block_attrs")},ge=function(e){return e.getParam("paste_tab_spaces",4,"number")},pe=function(e){var t="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return $.explode(e.getParam("images_file_types",t,"string"))},he="x-tinymce/html",ve="\x3c!-- "+he+" --\x3e",ye=function(e){return ve+e},be=function(e){return e.replace(ve,"")},we=function(e){return-1!==e.indexOf(ve)},ke=d(he),_e=Object.hasOwnProperty,xe=function(e,t){return _e.call(e,t)},Ce=tinymce.util.Tools.resolve("tinymce.html.Entities"),ze=function(e){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e)},Se=function(e){return e.replace(/\r?\n/g,"<br>")},Te=function(e,t){var n=[],r="<"+e;if("object"===typeof t){for(var o in t)xe(t,o)&&n.push(o+'="'+Ce.encodeAllRaw(t[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"},Oe=function(e,t,n){var r=e.split(/\n\n/),o=Te(t,n),i="</"+t+">",a=$.map(r,(function(e){return e.split(/\n/).join("<br />")})),c=function(e){return o+e+i};return 1===a.length?a[0]:$.map(a,c).join("")},Ee=function(e,t,n){return t?Oe(e,!0===t?"p":t,n):Se(e)},Ae=tinymce.util.Tools.resolve("tinymce.html.DomParser"),De=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Me=" ",Ne=tinymce.util.Tools.resolve("tinymce.html.Node"),Re=tinymce.util.Tools.resolve("tinymce.html.Schema"),Be=function(e){return e.constructor===RegExp},Pe=function(e,t){return $.each(t,(function(t){e=Be(t)?e.replace(t,""):e.replace(t[0],t[1])})),e},Le=function(e){var t=Re(),n=Ae({},t),r="",o=t.getShortEndedElements(),i=$.makeMap("script noscript style textarea video audio iframe object"," "),a=t.getBlockElements(),c=function(e){var t=e.name,n=e;if("br"!==t){if("wbr"!==t)if(o[t]&&(r+=" "),i[t])r+=" ";else{if(3===e.type&&(r+=e.value),!e.shortEnded&&(e=e.firstChild))do{c(e)}while(e=e.next);a[t]&&n.next&&(r+="\n","p"===t&&(r+="\n"))}}else r+="\n"};return e=Pe(e,[/<!\[[^\]]+\]>/g]),c(n.parse(e)),r},Ie=function(e){var t=function(e,t,n){return t||n?Me:" "};return e=Pe(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,t],/<br class="Apple-interchange-newline">/g,/<br>$/i]),e},He=function(e){var t=0;return function(){return e+t++}},Fe=function(e){var t=e.toLowerCase(),n={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return $.hasOwn(n,t)?"image/"+n[t]:"image/"+t},je=function(e){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(e)||/class="OutlineElement/.test(e)||/id="?docs\-internal\-guid\-/.test(e)},Ve=function(e){var t=!1,n=[/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return e=e.replace(/^[\u00a0 ]+/,""),$.each(n,(function(n){if(n.test(e))return t=!0,!1})),t},Ue=function(e){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(e)},qe=function(e){var t,n,r=1,o=function(e){var t="";if(3===e.type)return e.value;if(e=e.firstChild)do{t+=o(e)}while(e=e.next);return t},i=function(e,t){if(3===e.type&&t.test(e.value))return e.value=e.value.replace(t,""),!1;if(e=e.firstChild)do{if(!i(e,t))return!1}while(e=e.next);return!0},a=function(e){if(e._listIgnore)e.remove();else if(e=e.firstChild)do{a(e)}while(e=e.next)},c=function(e,o,c){var u=e._listLevel||r;u!==r&&(u<r?t&&(t=t.parent.parent):(n=t,t=null)),t&&t.name===o?t.append(e):(n=n||t,t=new Ne(o,1),c>1&&t.attr("start",""+c),e.wrap(t)),e.name="li",u>r&&n&&n.lastChild.append(t),r=u,a(e),i(e,/^\u00a0+/),i(e,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(e,/^\u00a0+/)},u=[],s=e.firstChild;while("undefined"!==typeof s&&null!==s)if(u.push(s),s=s.walk(),null!==s)while("undefined"!==typeof s&&s.parent!==e)s=s.walk();for(var l=0;l<u.length;l++)if(e=u[l],"p"===e.name&&e.firstChild){var f=o(e);if(Ue(f)){c(e,"ul");continue}if(Ve(f)){var d=/([0-9]+)\./.exec(f),m=1;d&&(m=parseInt(d[1],10)),c(e,"ol",m);continue}if(e._listLevel){c(e,"ul",1);continue}t=null}else n=t,t=null},We=function(e,t,n,r){var o={},i=e.dom.parseStyle(r);$.each(i,(function(i,a){switch(a){case"mso-list":var c=/\w+ \w+([0-9]+)/i.exec(r);c&&(n._listLevel=parseInt(c[1],10)),/Ignore/i.test(i)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==i&&(o[a]=i));case"mso-element":if(/^(comment|comment-list)$/i.test(i))return void n.remove();break}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===re(e)||t&&t[a])&&(o[a]=i):n.remove()})),/(bold)/i.test(o["font-weight"])&&(delete o["font-weight"],n.wrap(new Ne("b",1))),/(italic)/i.test(o["font-style"])&&(delete o["font-style"],n.wrap(new Ne("i",1)));var a=e.dom.serializeStyle(o,n.name);return a||null},$e=function(e,t){var n,r=re(e);r&&(n=$.makeMap(r.split(/[, ]/))),t=Pe(t,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi,Me],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(e,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join(Me):""}]]);var o=oe(e),i=Re({valid_elements:o,valid_children:"-li[p]"});$.each(i.elements,(function(e){e.attributes.class||(e.attributes.class={},e.attributesOrder.push("class")),e.attributes.style||(e.attributes.style={},e.attributesOrder.push("style"))}));var a=Ae({},i);a.addAttributeFilter("style",(function(t){var r,o=t.length;while(o--)r=t[o],r.attr("style",We(e,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&t.remove(),t.attr("class",null)})),a.addNodeFilter("del",(function(e){var t=e.length;while(t--)e[t].remove()})),a.addNodeFilter("a",(function(e){var t,n,r,o=e.length;while(o--)if(t=e[o],n=t.attr("href"),r=t.attr("name"),n&&-1!==n.indexOf("#_msocom_"))t.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){t.unwrap();continue}t.attr({href:n,name:r})}else t.unwrap()}));var c=a.parse(t);return ie(e)&&qe(c),t=De({validate:ce(e)},i).serialize(c),t},Ge=function(e,t){return ae(e)?$e(e,t):t},Ke=function(e,t){var n=Ae({},e.schema);n.addNodeFilter("meta",(function(e){$.each(e,(function(e){e.remove()}))}));var r=n.parse(t,{forced_root_block:!1,isRootContent:!0});return De({validate:ce(e)},e.schema).serialize(r)},Xe=function(e,t){return{content:e,cancelled:t}},Ye=function(e,t,n,r){var o=e.dom.create("div",{style:"display:none"},t),i=U(e,o,n,r);return Xe(i.node.innerHTML,i.isDefaultPrevented())},Je=function(e,t,n,r){var o=V(e,t,n,r),i=Ke(e,o.content);return e.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?Ye(e,i,n,r):Xe(i,o.isDefaultPrevented())},Qe=function(e,t,n){var r=je(t),o=r?Ge(e,t):t;return Je(e,o,n,r)},Ze=function(e,t){return e.insertContent(t,{merge:ee(e),paste:!0}),!0},et=function(e){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(e)},tt=function(e,t){return et(t)&&x(pe(e),(function(e){return P(t.toLowerCase(),"."+e.toLowerCase())}))},nt=function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.insertContent('<img src="'+t+'">')})),!0},rt=function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.execCommand("mceInsertLink",!1,t)})),!0},ot=function(e,t,n){return!(!1!==e.selection.isCollapsed()||!et(t))&&rt(e,t,n)},it=function(e,t,n){return!!tt(e,t)&&nt(e,t,n)},at=function(e,t){$.each([ot,it,Ze],(function(n){return!0!==n(e,t,Ze)}))},ct=function(e,t,n){n||!1===te(e)?Ze(e,t):at(e,t)},ut=function(e){return-1!==" \f\t\v".indexOf(e)},st=function(e){return"\n"===e||"\r"===e},lt=function(e,t){return t<e.length&&t>=0&&st(e[t])},ft=function(e,t){var n=L(" ",ge(e)),r=t.replace(/\t/g,n),o=T(r,(function(e,t){return ut(t)||t===Me?e.pcIsSpace||""===e.str||e.str.length===r.length-1||lt(r,e.str.length+1)?{pcIsSpace:!1,str:e.str+Me}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:st(t),str:e.str+t}}),{pcIsSpace:!1,str:""});return o.str},dt=function(e,t,n,r){var o=Qe(e,t,n);!1===o.cancelled&&ct(e,o.content,r)},mt=function(e,t,n){var r=n||we(t);dt(e,be(t),r,!1)},gt=function(e,t){var n=e.dom.encode(t).replace(/\r\n/g,"\n"),r=ft(e,n),o=Ee(r,de(e),me(e));dt(e,o,!1,!0)},pt=function(e){var t={},n="data:text/mce-internal,";if(e){if(e.getData){var r=e.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(t["text/plain"]=r)}if(e.types)for(var o=0;o<e.types.length;o++){var i=e.types[o];try{t[i]=e.getData(i)}catch(a){t[i]=""}}}return t},ht=function(e,t){return pt(t.clipboardData||e.getDoc().dataTransfer)},vt=function(e,t){return t in e&&e[t].length>0},yt=function(e){return vt(e,"text/html")||vt(e,"text/plain")},bt=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(e);return t?{type:t[1],data:decodeURIComponent(t[2])}:{type:null,data:null}},wt=function(e,t){var n=le(e);return!n||n(t)},kt=function(e,t){var n=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return s(n)?e.dom.encode(n[1]):null},_t=He("mceclip"),xt=function(e,t){var n=bt(t.uri),r=n.data,o=n.type,i=_t(),a=t.blob,c=new Image;if(c.src=t.uri,wt(e,c)){var u=e.editorUpload.blobCache,l=void 0,f=u.getByData(r,o);if(f)l=f;else{var d=fe(e)&&s(a.name),m=d?kt(e,a.name):i,g=d?a.name:void 0;l=u.create(i,a,r,m,g),u.add(l)}mt(e,'<img src="'+l.blobUri()+'">',!1)}else mt(e,'<img src="'+t.uri+'">',!1)},Ct=function(e){return"paste"===e.type},zt=function(e){return s(e.getAsFile)},St=function(e){return F.all(C(e,(function(e){return new F((function(t){var n=zt(e)?e.getAsFile():e,r=new window.FileReader;r.onload=function(){t({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},Tt=function(e){var t=pe(e);return function(e){return B(e.type,"image/")&&x(t,(function(t){return Fe(t)===e.type}))}},Ot=function(e,t){var n=t.items?E(A(t.items),(function(e){return"file"===e.kind?[e.getAsFile()]:[]})):[],r=t.files?A(t.files):[];return S(n.length>0?n:r,Tt(e))},Et=function(e,t,n){var r=Ct(t)?t.clipboardData:t.dataTransfer;if(se(e)&&r){var o=Ot(e,r);if(o.length>0)return t.preventDefault(),St(o).then((function(t){n&&e.selection.setRng(n),z(t,(function(t){xt(e,t)}))})),!0}return!1},At=function(e){var t=e.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&t&&t.items&&0===t.items.length},Dt=function(e){return j.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode},Mt=function(e,t,n){var r,o=N(),i=N();e.on("keyup",i.clear),e.on("keydown",(function(n){var a=function(e){Dt(e)&&!e.isDefaultPrevented()&&t.remove()};if(Dt(n)&&!n.isDefaultPrevented()){if(r=n.shiftKey&&86===n.keyCode,r&&I.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),I.ie&&r)return n.preventDefault(),void W(e,!0);t.remove(),t.create(),e.once("keyup",a),e.once("paste",(function(){e.off("keyup",a)}))}}));var a=function(e,n,r,o,i){var a;vt(n,"text/html")?a=n["text/html"]:(a=t.getHtml(),i=i||we(a),t.isDefaultContent(a)&&(o=!0)),a=Ie(a),t.remove();var c=!1===i&&ze(a),u=et(a);(!a.length||c&&!u)&&(o=!0),(o||u)&&(a=vt(n,"text/plain")&&c?n["text/plain"]:Le(a)),t.isDefaultContent(a)?r||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?gt(e,a):mt(e,a,i)},c=function(){return t.getLastRng()||e.selection.getRng()};e.on("paste",(function(u){var s=o.isSet()||i.isSet();s&&o.clear();var l=ht(e,u),f="text"===n.get()||r,d=vt(l,ke());r=!1,u.isDefaultPrevented()||At(u)?t.remove():yt(l)||!Et(e,u,c())?(s||u.preventDefault(),!I.ie||s&&!u.ieFake||vt(l,"text/html")||(t.create(),e.dom.bind(t.getEl(),"paste",(function(e){e.stopPropagation()})),e.getDoc().execCommand("Paste",!1,null),l["text/html"]=t.getHtml()),vt(l,"text/html")?(u.preventDefault(),d||(d=we(l["text/html"])),a(e,l,s,f,d)):H.setEditorTimeout(e,(function(){a(e,l,s,f,d)}),0)):t.remove()}))},Nt=function(e,t,n){var r;Mt(e,t,n),e.parser.addNodeFilter("img",(function(t,n,o){var i=function(e){return e.data&&!0===e.data.paste},a=function(e){e.attr("data-mce-object")||r===I.transparentSrc||e.remove()},c=function(e){return 0===e.indexOf("webkit-fake-url")},u=function(e){return 0===e.indexOf("data:")};if(!se(e)&&i(o)){var s=t.length;while(s--)r=t[s].attr("src"),r&&(c(r)||!ue(e)&&u(r))&&a(t[s])}}))},Rt=function(e){return I.ie&&e.inline?document.body:e.getBody()},Bt=function(e){return Rt(e)!==e.getBody()},Pt=function(e,t,n){Bt(e)&&e.dom.bind(t,"paste keyup",(function(t){Ut(e,n)||e.fire("paste")}))},Lt=function(e,t,n){var r=e.dom,o=e.getBody();t.set(e.selection.getRng());var i=e.dom.add(Rt(e),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(I.ie||I.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(e){e.stopPropagation()})),Pt(e,i,n),i.focus(),e.selection.select(i,!0)},It=function(e,t){if(Ht(e)){var n=void 0,r=t.get();while(n=e.dom.get("mcepastebin"))e.dom.remove(n),e.dom.unbind(n);r&&e.selection.setRng(r)}t.set(null)},Ht=function(e){return e.dom.get("mcepastebin")},Ft=function(e){var t=function(t,n){t.appendChild(n),e.dom.remove(n,!0)},n=$.grep(Rt(e).childNodes,(function(e){return"mcepastebin"===e.id})),r=n.shift();$.each(n,(function(e){t(r,e)}));for(var o=e.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=e.dom.create("div");r.insertBefore(a,o[i]),t(a,o[i])}return r?r.innerHTML:""},jt=function(e,t){return t===e},Vt=function(e){return e&&"mcepastebin"===e.id},Ut=function(e,t){var n=Ht(e);return Vt(n)&&jt(t,n.innerHTML)},qt=function(t){var n=e(null),r="%MCEPASTEBIN%";return{create:function(){return Lt(t,n,r)},remove:function(){return It(t,n)},getEl:function(){return Ht(t)},getHtml:function(){return Ft(t)},getLastRng:n.get,isDefault:function(){return Ut(t,r)},isDefaultContent:function(e){return jt(r,e)}}},Wt=function(e,t){var n=qt(e);return e.on("PreInit",(function(){return Nt(e,n,t)})),{pasteFormat:t,pasteHtml:function(t,n){return mt(e,t,n)},pasteText:function(t){return gt(e,t)},pasteImageData:function(t,n){return Et(e,t,n)},getDataTransferItems:pt,hasHtmlOrText:yt,hasContentType:vt}},$t=function(e,t){"text"===t.pasteFormat.get()?(t.pasteFormat.set("html"),q(e,!1)):(t.pasteFormat.set("text"),q(e,!0)),e.focus()},Gt=function(e,t){e.addCommand("mceTogglePlainTextPaste",(function(){$t(e,t)})),e.addCommand("mceInsertClipboardContent",(function(e,n){n.content&&t.pasteHtml(n.content,n.internal),n.text&&t.pasteText(n.text)}))},Kt=function(e){return!1===I.iOS&&"function"===typeof(null===e||void 0===e?void 0:e.setData)},Xt=function(e,t,n){if(!Kt(e))return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",n),e.setData(ke(),t),!0}catch(r){return!1}},Yt=function(e,t,n,r){Xt(e.clipboardData,t.html,t.text)?(e.preventDefault(),r()):n(t.html,r)},Jt=function(e){return function(t,n){var r=ye(t),o=e.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=e.dom.create("div",{contenteditable:"true"},r);e.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),e.dom.add(e.getBody(),o);var a=e.selection.getRng();i.focus();var c=e.dom.createRng();c.selectNodeContents(i),e.selection.setRng(c),H.setTimeout((function(){e.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Qt=function(e){return{html:e.selection.getContent({contextual:!0}),text:e.selection.getContent({format:"text"})}},Zt=function(e){return!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody())},en=function(e){return!e.selection.isCollapsed()||Zt(e)},tn=function(e){return function(t){en(e)&&Yt(t,Qt(e),Jt(e),(function(){if(I.browser.isChrome()||I.browser.isFirefox()){var t=e.selection.getRng();H.setEditorTimeout(e,(function(){e.selection.setRng(t),e.execCommand("Delete")}),0)}else e.execCommand("Delete")}))}},nn=function(e){return function(t){en(e)&&Yt(t,Qt(e),Jt(e),f)}},rn=function(e){e.on("cut",tn(e)),e.on("copy",nn(e))},on=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),an=function(e,t){return on.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc())},cn=function(e){var t=e["text/plain"];return!!t&&0===t.indexOf("file://")},un=function(e,t){e.focus(),e.selection.setRng(t)},sn=function(e,t,n){G(e)&&e.on("dragend dragover draggesture dragdrop drop drag",(function(e){e.preventDefault(),e.stopPropagation()})),K(e)||e.on("drop",(function(e){var t=e.dataTransfer;t&&t.files&&t.files.length>0&&e.preventDefault()})),e.on("drop",(function(r){var o=an(e,r);if(!r.isDefaultPrevented()&&!n.get()){var i=t.getDataTransferItems(r.dataTransfer),a=t.hasContentType(i,ke());if((t.hasHtmlOrText(i)&&!cn(i)||!t.pasteImageData(r,o))&&o&&X(e)){var c=i["mce-internal"]||i["text/html"]||i["text/plain"];c&&(r.preventDefault(),H.setEditorTimeout(e,(function(){e.undoManager.transact((function(){i["mce-internal"]&&e.execCommand("Delete"),un(e,o),c=Ie(c),i["text/html"]?t.pasteHtml(c,a):t.pasteText(c)}))})))}}})),e.on("dragstart",(function(e){n.set(!0)})),e.on("dragover dragend",(function(t){K(e)&&!1===n.get()&&(t.preventDefault(),un(e,an(e,t))),"dragend"===t.type&&n.set(!1)}))},ln=function(e){var t=e.plugins.paste,n=Y(e);n&&e.on("PastePreProcess",(function(e){n.call(t,t,e)}));var r=J(e);r&&e.on("PastePostProcess",(function(e){r.call(t,t,e)}))},fn=function(e,t){e.on("PastePreProcess",(function(n){n.content=t(e,n.content,n.internal,n.wordContent)}))},dn=function(e,t){e.on("PastePostProcess",(function(n){t(e,n.node)}))},mn=function(e,t){if(!je(t))return t;var n=[];$.each(e.schema.getBlockElements(),(function(e,t){n.push(t)}));var r=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return t=Pe(t,[[r,"$1"]]),t=Pe(t,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),t},gn=function(e,t,n,r){if(r||n)return t;var o,i=Q(e);if(!1===Z(e)||"all"===i)return t;if(i&&(o=i.split(/[, ]/)),o){var a=e.dom,c=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(e,t,n,r){var i=a.parseStyle(a.decode(n)),u={};if("none"===o)return t+r;for(var s=0;s<o.length;s++){var l=i[o[s]],f=a.getStyle(c,o[s],!0);/color/.test(o[s])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(u[o[s]]=l)}var d=a.serializeStyle(u,"span");return d?t+' style="'+d+'"'+r:t+r}))}else t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t=t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(e,t,n,r){return t+' style="'+n+'"'+r})),t},pn=function(e,t){e.$("a",t).find("font,u").each((function(t,n){e.dom.remove(n,!0)}))},hn=function(e){I.webkit&&fn(e,gn),I.ie&&(fn(e,mn),dn(e,pn))},vn=function(e,t){return function(n){n.setActive("text"===t.pasteFormat.get());var r=function(e){return n.setActive(e.state)};return e.on("PastePlainTextToggle",r),function(){return e.off("PastePlainTextToggle",r)}}},yn=function(e,t){var n=function(){return e.execCommand("mceTogglePlainTextPaste")};e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:vn(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:vn(e,t)})};function bn(){t.add("paste",(function(t){if(!1===n(t)){var o=e(!1),i=e(ne(t)?"text":"html"),a=Wt(t,i);return hn(t),yn(t,a),Gt(t,a),ln(t),rn(t),sn(t,a,o),r(a)}}))}bn()})()},"840a":function(e,t,n){n("d4c32")},"84ec":function(e,t,n){n("2401")},"88b64":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t,n){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";e.execCommand(r,!1,!1===n?null:{"list-style-type":n})},n=function(e){e.addCommand("ApplyUnorderedListStyle",(function(n,r){t(e,"UL",r["list-style-type"])})),e.addCommand("ApplyOrderedListStyle",(function(n,r){t(e,"OL",r["list-style-type"])}))},r=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=function(e){var t=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},i=function(e){var t=e.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},a=function(){},c=function(e){return function(){return e}},u=function(e){return e},s=c(!1),l=c(!0),f=function(){return d},d=function(){var e=function(e){return e()},t=u,n={fold:function(e,t){return e()},isSome:s,isNone:l,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:t,orThunk:e,map:f,each:a,bind:f,exists:s,forall:l,filter:function(){return f()},toArray:function(){return[]},toString:c("none()")};return n}(),m=function(e){var t=c(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:l,isNone:s,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:d},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},g=function(e){return null===e||void 0===e?d:m(e)},p={some:m,none:f,from:g},h=function(e,t){return e.$.contains(e.getBody(),t)},v=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},y=function(e){return function(t){return t&&/^(OL|UL|DL)$/.test(t.nodeName)&&h(e,t)}},b=function(e){var t=e.dom.getParent(e.selection.getNode(),"ol,ul"),n=e.dom.getStyle(t,"listStyleType");return p.from(n)},w=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return n}return-1},k=function(e){return e.replace(/\-/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}))},_=function(e,t,n){var o=w(t.parents,v),i=-1!==o?t.parents.slice(0,o):t.parents,a=r.grep(i,y(e));return a.length>0&&a[0].nodeName===n},x=function(e,t){return function(n){var r=function(r){n.setActive(_(e,r,t))};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},C=function(e,n,o,i,a,c){e.ui.registry.addSplitButton(n,{tooltip:o,icon:"OL"===a?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(e){var t=r.map(c,(function(e){var t="OL"===a?"num":"bull",n="disc"===e||"decimal"===e?"default":e,r="default"===e?"":e,o=k(e);return{type:"choiceitem",value:r,icon:"list-"+t+"-"+n,text:o}}));e(t)},onAction:function(){return e.execCommand(i)},onItemAction:function(n,r){t(e,a,r)},select:function(t){var n=b(e);return n.map((function(e){return t===e})).getOr(!1)},onSetup:x(e,a)})},z=function(e,t,n,r,o,i){e.ui.registry.addToggleButton(t,{active:!1,tooltip:n,icon:"OL"===o?"ordered-list":"unordered-list",onSetup:x(e,o),onAction:function(){return e.execCommand(r)}})},S=function(e,t,n,r,o,i){i.length>1?C(e,t,n,r,o,i):z(e,t,n,r,o)},T=function(e){S(e,"numlist","Numbered list","InsertOrderedList","OL",o(e)),S(e,"bullist","Bullet list","InsertUnorderedList","UL",i(e))};function O(){e.add("advlist",(function(e){e.hasPlugin("lists")?(T(e),n(e)):console.error("Please use the Lists plugin together with the Advanced List plugin.")}))}O()})()},9434:function(e,t,n){n("e8b0")},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},o=t("string"),i=t("object"),a=t("array"),c=r(null),u=n("boolean"),s=r(void 0),l=function(e){return null===e||void 0===e},f=function(e){return!l(e)},d=n("function"),m=n("number"),g=function(){},p=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},h=function(e,t){return function(n){return e(t(n))}},v=function(e){return function(){return e}},y=function(e){return e},b=function(e,t){return e===t};function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var k=function(e){return function(t){return!e(t)}},_=function(e){return function(){throw new Error(e)}},x=v(!1),C=v(!0),z=function(){return S},S=function(){var e=function(e){return e()},t=y,n={fold:function(e,t){return e()},isSome:x,isNone:C,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:z,each:g,bind:z,exists:x,forall:C,filter:function(){return z()},toArray:function(){return[]},toString:v("none()")};return n}(),T=function(e){var t=v(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:C,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return T(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:S},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},O=function(e){return null===e||void 0===e?S:T(e)},E={some:T,none:z,from:O},A=Array.prototype.slice,D=Array.prototype.indexOf,M=Array.prototype.push,N=function(e,t){return D.call(e,t)},R=function(e,t){return N(e,t)>-1},B=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},P=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},L=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},I=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},H=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},F=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],c=t(a,o)?n:r;c.push(a)}return{pass:n,fail:r}},j=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},V=function(e,t,n){return H(e,(function(e,r){n=t(n,e,r)})),n},U=function(e,t,n){return I(e,(function(e,r){n=t(n,e,r)})),n},q=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return E.some(i);if(n(i,r))break}return E.none()},W=function(e,t){return q(e,t,x)},$=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return E.some(n)}return E.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);M.apply(t,e[n])}return t},K=function(e,t){return G(L(e,t))},X=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},Y=function(e){var t=A.call(e,0);return t.reverse(),t},J=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},Q=function(e){return[e]},Z=function(e,t){var n=A.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?E.some(e[t]):E.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return E.none()},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oe.apply(this,arguments)};function ie(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},ce=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:v(o),isiPhone:v(i),isTablet:v(u),isPhone:v(s),isTouch:v(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(l),isDesktop:v(f)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},se=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return de(r(1),r(2))},le=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():se(e,n)},fe=function(){return de(0,0)},de=function(e,t){return{major:e,minor:t}},me={nu:de,detect:le,unknown:fe},ge=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return W(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:me.nu(parseInt(t.version,10),0)}}))}))},pe=function(e,t){var n=String(t).toLowerCase();return W(e,(function(e){return e.search(n)}))},he=function(e,t){return pe(e,t).map((function(e){var n=me.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ve=function(e,t){return pe(e,t).map((function(e){var n=me.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=function(e,t){return e.substring(t)},be=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},we=function(e,t){return _e(e,t)?ye(e,t.length):e},ke=function(e,t){return-1!==e.indexOf(t)},_e=function(e,t){return be(e,t,0)},xe=function(e,t){return be(e,t,e.length-t.length)},Ce=function(e){return function(t){return t.replace(e,"")}},ze=Ce(/^\s+|\s+$/g),Se=function(e){return e.length>0},Te=function(e){return!Se(e)},Oe=function(e){var t=parseFloat(e);return isNaN(t)?E.none():E.some(t)},Ee=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ae=function(e){return function(t){return ke(t,e)}},De=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ke(e,"edge/")&&ke(e,"chrome")&&ke(e,"safari")&&ke(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ee],search:function(e){return ke(e,"chrome")&&!ke(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ke(e,"msie")||ke(e,"trident")}},{name:"Opera",versionRegexes:[Ee,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ae("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ae("firefox")},{name:"Safari",versionRegexes:[Ee,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ke(e,"safari")||ke(e,"mobile/"))&&ke(e,"applewebkit")}}],Me=[{name:"Windows",search:Ae("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ke(e,"iphone")||ke(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ae("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ae("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ae("linux"),versionRegexes:[]},{name:"Solaris",search:Ae("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ae("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ae("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ne={browsers:v(De),oses:v(Me)},Re="Edge",Be="Chrome",Pe="IE",Le="Opera",Ie="Firefox",He="Safari",Fe=function(){return je({current:void 0,version:me.unknown()})},je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Re),isChrome:r(Be),isIE:r(Pe),isOpera:r(Le),isFirefox:r(Ie),isSafari:r(He)}},Ve={unknown:Fe,nu:je,edge:v(Re),chrome:v(Be),ie:v(Pe),opera:v(Le),firefox:v(Ie),safari:v(He)},Ue="Windows",qe="iOS",We="Android",$e="Linux",Ge="OSX",Ke="Solaris",Xe="FreeBSD",Ye="ChromeOS",Je=function(){return Qe({current:void 0,version:me.unknown()})},Qe=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ue),isiOS:r(qe),isAndroid:r(We),isOSX:r(Ge),isLinux:r($e),isSolaris:r(Ke),isFreeBSD:r(Xe),isChromeOS:r(Ye)}},Ze={unknown:Je,nu:Qe,windows:v(Ue),ios:v(qe),android:v(We),linux:v($e),osx:v(Ge),solaris:v(Ke),freebsd:v(Xe),chromeos:v(Ye)},et=function(e,t,n){var r=Ne.browsers(),o=Ne.oses(),i=t.bind((function(e){return ge(r,e)})).orThunk((function(){return he(r,e)})).fold(Ve.unknown,Ve.nu),a=ve(o,e).fold(Ze.unknown,Ze.nu),c=ce(a,i,e,n);return{browser:i,os:a,deviceType:c}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,E.from(navigator.userAgentData),nt)})),ot=function(){return rt()},it=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return it(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},ct=8,ut=9,st=11,lt=1,ft=3,dt=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return pt(r.childNodes[0])},mt=function(e,t){var n=t||document,r=n.createElement(e);return pt(r)},gt=function(e,t){var n=t||document,r=n.createTextNode(e);return pt(r)},pt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},ht=function(e,t,n){return E.from(e.dom.elementFromPoint(t,n)).map(pt)},vt={fromHtml:dt,fromTag:mt,fromText:gt,fromDom:pt,fromPoint:ht},yt=function(e,t){var n=e.dom;if(n.nodeType!==lt)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},bt=function(e){return e.nodeType!==lt&&e.nodeType!==ut&&e.nodeType!==st||0===e.childElementCount},wt=function(e,t){var n=void 0===t?document:t.dom;return bt(n)?[]:L(n.querySelectorAll(e),vt.fromDom)},kt=function(e,t){var n=void 0===t?document:t.dom;return bt(n)?E.none():E.from(n.querySelector(e)).map(vt.fromDom)},_t=function(e,t){return e.dom===t.dom},xt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Ct=function(e,t){return at(e.dom,t.dom)},zt=function(e,t){return ot().browser.isIE()?Ct(e,t):xt(e,t)},St=yt,Tt=Object.keys,Ot=Object.hasOwnProperty,Et=function(e,t){for(var n=Tt(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},At=function(e,t){return Dt(e,(function(e,n){return{k:n,v:t(e,n)}}))},Dt=function(e,t){var n={};return Et(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},Mt=function(e){return function(t,n){e[n]=t}},Nt=function(e,t,n,r){var o={};return Et(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},Rt=function(e,t){var n={};return Nt(e,t,Mt(n),g),n},Bt=function(e,t){var n=[];return Et(e,(function(e,r){n.push(t(e,r))})),n},Pt=function(e){return Bt(e,y)},Lt=function(e){return Tt(e).length},It=function(e,t){return Ht(e,t)?E.from(e[t]):E.none()},Ht=function(e,t){return Ot.call(e,t)},Ft=function(e,t){return Ht(e,t)&&void 0!==e[t]&&null!==e[t]},jt=function(e){for(var t in e)if(Ot.call(e,t))return!1;return!0},Vt=["tfoot","thead","tbody","colgroup"],Ut=function(e){return R(Vt,e)},qt=function(e,t){return{rows:e,columns:t}},Wt=function(e,t){return{row:e,column:t}},$t=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Kt=function(e,t,n,r,o,i){return{element:e,rowspan:t,colspan:n,row:r,column:o,isLocked:i}},Xt=function(e,t,n){return{element:e,cells:t,section:n}},Yt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Jt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Qt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Zt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===ct||"#comment"===nn(e)},cn=on(lt),un=on(ft),sn=on(ut),ln=on(st),fn=function(e){return function(t){return cn(t)&&nn(t)===e}},dn=function(e){return vt.fromDom(e.dom.ownerDocument)},mn=function(e){return sn(e)?e:dn(e)},gn=function(e){return vt.fromDom(mn(e).dom.defaultView)},pn=function(e){return E.from(e.dom.parentNode).map(vt.fromDom)},hn=function(e){return E.from(e.dom.parentElement).map(vt.fromDom)},vn=function(e,t){var n=d(t)?t:x,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=vt.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},yn=function(e){return E.from(e.dom.previousSibling).map(vt.fromDom)},bn=function(e){return E.from(e.dom.nextSibling).map(vt.fromDom)},wn=function(e){return L(e.dom.childNodes,vt.fromDom)},kn=function(e,t){var n=e.dom.childNodes;return E.from(n[t]).map(vt.fromDom)},_n=function(e){return kn(e,0)},xn=function(e){return ln(e)&&f(e.dom.host)},Cn=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),zn=v(Cn),Sn=Cn?function(e){return vt.fromDom(e.dom.getRootNode())}:mn,Tn=function(e){var t=Sn(e);return xn(t)?E.some(t):E.none()},On=function(e){return vt.fromDom(e.dom.host)},En=function(e){if(zn()&&f(e.target)){var t=vt.fromDom(e.target);if(cn(t)&&An(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return E.from(e.target)},An=function(e){return f(e.dom.shadowRoot)},Dn=function(e){var t=un(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Tn(vt.fromDom(t)).fold((function(){return n.body.contains(t)}),h(Dn,On))},Mn=function(){return Nn(vt.fromDom(document))},Nn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return vt.fromDom(t)},Rn=function(e,t,n){return j(vn(e,n),t)},Bn=function(e,t){return j(wn(e),t)},Pn=function(e,t){var n=[];return I(wn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Pn(e,t))})),n},Ln=function(e,t,n){return Rn(e,(function(e){return yt(e,t)}),n)},In=function(e,t){return Bn(e,(function(e){return yt(e,t)}))},Hn=function(e,t){return wt(t,e)};function Fn(e,t,n,r,o){return e(n,r)?E.some(n):d(o)&&o(n)?E.none():t(n,r,o)}var jn=function(e,t,n){var r=e.dom,o=d(n)?n:x;while(r.parentNode){r=r.parentNode;var i=vt.fromDom(r);if(t(i))return E.some(i);if(o(i))break}return E.none()},Vn=function(e,t,n){var r=function(e,t){return t(e)};return Fn(r,jn,e,t,n)},Un=function(e,t){var n=function(e){return t(vt.fromDom(e))},r=W(e.dom.childNodes,n);return r.map(vt.fromDom)},qn=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var o=vt.fromDom(e.childNodes[r]);if(t(o))return E.some(o);var i=n(e.childNodes[r]);if(i.isSome())return i}return E.none()};return n(e.dom)},Wn=function(e,t,n){return jn(e,(function(e){return yt(e,t)}),n)},$n=function(e,t){return Un(e,(function(e){return yt(e,t)}))},Gn=function(e,t){return kt(t,e)},Kn=function(e,t,n){var r=function(e,t){return yt(e,t)};return Fn(r,Wn,e,t,n)},Xn=function(e,t,n){if(!(o(n)||u(n)||m(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Yn=function(e,t,n){Xn(e.dom,t,n)},Jn=function(e,t){var n=e.dom;Et(t,(function(e,t){Xn(n,t,e)}))},Qn=function(e,t){Et(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Xn(e.dom,n,t)}))}))},Zn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return E.from(Zn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return U(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=b),e.exists((function(e){return n(e,t)}))},or=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},ir=function(e,t,n){return e.isSome()&&t.isSome()?E.some(n(e.getOrDie(),t.getOrDie())):E.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):E.none()},cr=function(e){return e.bind(y)},ur=function(e,t){return e?E.some(t):E.none()},sr=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},lr=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);sr(e)&&e.style.setProperty(t,n)},fr=function(e,t){sr(e)&&e.style.removeProperty(t)},dr=function(e,t,n){var r=e.dom;lr(r,t,n)},mr=function(e,t){var n=e.dom;Et(t,(function(e,t){lr(n,t,e)}))},gr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Dn(e)?o:pr(n,t)},pr=function(e,t){return sr(e)?e.style.getPropertyValue(t):""},hr=function(e,t){var n=e.dom,r=pr(n,t);return E.from(r).filter((function(e){return e.length>0}))},vr=function(e,t){var n=e.dom;fr(n,t),rr(er(e,"style").map(ze),"")&&tr(e,"style")},yr=function(e,t){var n=e.dom,r=t.dom;sr(n)&&sr(r)&&(r.style.cssText=n.style.cssText)},br=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},wr=function(e,t){return br(e,t,1)},kr=function(e){return fn("col")(e)?br(e,"span",1)>1:wr(e,"colspan")>1},_r=function(e){return wr(e,"rowspan")>1},xr=function(e,t){return parseInt(gr(e,t),10)},Cr=v(10),zr=v(10),Sr=function(e,t){return Tr(e,t,C)},Tr=function(e,t,n){return K(wn(e),(function(e){return yt(e,t)?n(e)?[e]:[]:Tr(e,t,n)}))},Or=function(e,t,n){if(void 0===n&&(n=x),n(t))return E.none();if(R(e,nn(t)))return E.some(t);var r=function(e){return yt(e,"table")||n(e)};return Wn(t,e.join(","),r)},Er=function(e,t){return Or(["td","th"],e,t)},Ar=function(e){return Sr(e,"th,td")},Dr=function(e){return yt(e,"colgroup")?In(e,"col"):K(Rr(e),(function(e){return In(e,"col")}))},Mr=function(e,t){return Kn(e,"table",t)},Nr=function(e){return Sr(e,"tr")},Rr=function(e){return Mr(e).fold(v([]),(function(e){return In(e,"colgroup")}))},Br=function(e,t){return L(e,(function(e){if("colgroup"===nn(e)){var n=L(Dr(e),(function(e){var t=br(e,"span",1);return $t(e,1,t)}));return Xt(e,n,"colgroup")}n=L(Ar(e),(function(e){var t=br(e,"rowspan",1),n=br(e,"colspan",1);return $t(e,t,n)}));return Xt(e,n,t(e))}))},Pr=function(e){return pn(e).map((function(e){var t=nn(e);return Ut(t)?t:"tbody"})).getOr("tbody")},Lr=function(e){var t=Nr(e),n=Rr(e),r=ie(ie([],n,!0),t,!0);return Br(r,Pr)},Ir=function(e,t){return Br(e,(function(){return t}))},Hr=function(e,t,n){var r=e.cells,o=r.slice(0,t),i=r.slice(t),a=o.concat(n).concat(i);return Vr(e,a)},Fr=function(e,t,n){return Hr(e,t,[n])},jr=function(e,t,n){var r=e.cells;r[t]=n},Vr=function(e,t){return Qt(e.element,t,e.section,e.isNew)},Ur=function(e,t){var n=e.cells,r=L(n,t);return Qt(e.element,r,e.section,e.isNew)},qr=function(e,t){return e.cells[t]},Wr=function(e,t){return qr(e,t).element},$r=function(e){return e.cells.length},Gr=function(e){var t=F(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Kr=function(e,t,n){var r=L(e.cells,n);return Qt(t(e.element),r,e.section,!0)},Xr="data-snooker-locked-cols",Yr=function(e){return er(e,Xr).bind((function(e){return E.from(e.match(/\d+/g))})).map((function(e){return J(e,C)}))},Jr=function(e){var t=U(Gr(e).rows,(function(e,t){return I(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Bt(t,(function(e,t){return parseInt(t,10)}));return Z(n)},Qr=function(e,t){return e+","+t},Zr=function(e,t,n){return E.from(e.access[Qr(t,n)])},eo=function(e,t,n){var r=to(e,(function(e){return n(t,e.element)}));return r.length>0?E.some(r[0]):E.none()},to=function(e,t){var n=K(e.all,(function(e){return e.cells}));return j(n,t)},no=function(e){var t={},n=0;return I(e.cells,(function(e){var r=e.colspan;P(r,(function(o){var i=n+o;t[i]=en(e.element,r,i)})),n+=r})),t},ro=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Mr),o=r.bind(Yr).getOr({}),i=0,a=0,c=0,u=F(e,(function(e){return"colgroup"===e.section})),s=u.pass,l=u.fail;I(l,(function(e){var r=[];I(e.cells,(function(e){var n=0;while(void 0!==t[Qr(c,n)])n++;for(var i=Ft(o,n.toString()),u=Kt(e.element,e.rowspan,e.colspan,c,n,i),s=0;s<e.colspan;s++)for(var l=0;l<e.rowspan;l++){var f=c+l,d=n+s,m=Qr(f,d);t[m]=u,a=Math.max(a,d+1)}r.push(u)})),i++,n.push(Xt(e.element,r,e.section)),c++}));var f=ne(s).map((function(e){var t=no(e),n=tn(e.element,Pt(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=f.columns,m=f.colgroups,g=qt(i,a);return{grid:g,access:t,all:n,columns:d,colgroups:m}},oo=function(e){var t=Lr(e);return ro(t)},io=function(e){return K(e.all,(function(e){return e.cells}))},ao=function(e){return Pt(e.columns)},co=function(e){return Tt(e.columns).length>0},uo=function(e,t){return E.from(e.columns[t])},so={fromTable:oo,generate:ro,getAt:Zr,findItem:eo,filterItems:to,justCells:io,justColumns:ao,hasColumns:co,getColumnAt:uo},lo=function(e,t){var n=t.column,r=t.column+t.colspan-1,o=t.row,i=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&o<=e.finishRow&&i>=e.startRow},fo=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},mo=function(e,t){for(var n=!0,r=w(fo,t),o=t.startRow;o<=t.finishRow;o++)for(var i=t.startCol;i<=t.finishCol;i++)n=n&&so.getAt(e,o,i).exists(r);return n?E.some(t):E.none()},go=function(e,t){return Zt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},po=function(e,t,n){var r=so.findItem(e,t,_t),o=so.findItem(e,n,_t);return r.bind((function(e){return o.map((function(t){return go(e,t)}))}))},ho=function(e,t,n){return po(e,t,n).bind((function(t){return mo(e,t)}))},vo=function(e,t,n,r){return so.findItem(e,t,_t).bind((function(t){var o=n>0?t.row+t.rowspan-1:t.row,i=r>0?t.column+t.colspan-1:t.column,a=so.getAt(e,o+n,i+r);return a.map((function(e){return e.element}))}))},yo=function(e,t,n){return po(e,t,n).map((function(t){var n=so.filterItems(e,w(lo,t));return L(n,(function(e){return e.element}))}))},bo=function(e,t){var n=function(e,t){return zt(t,e)};return so.findItem(e,t,n).map((function(e){return e.element}))},wo=function(e,t,n){return Mr(e).bind((function(r){var o=Co(r);return vo(o,e,t,n)}))},ko=function(e,t,n){var r=Co(e);return yo(r,t,n)},_o=function(e,t,n,r,o){var i=Co(e),a=_t(e,n)?E.some(t):bo(i,t),c=_t(e,o)?E.some(r):bo(i,r);return a.bind((function(e){return c.bind((function(t){return yo(i,e,t)}))}))},xo=function(e,t,n){var r=Co(e);return ho(r,t,n)},Co=so.fromTable,zo=function(e,t){var n=pn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},So=function(e,t){var n=bn(e);n.fold((function(){var n=pn(e);n.each((function(e){Oo(e,t)}))}),(function(e){zo(e,t)}))},To=function(e,t){var n=_n(e);n.fold((function(){Oo(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Oo=function(e,t){e.dom.appendChild(t.dom)},Eo=function(e,t,n){kn(e,n).fold((function(){Oo(e,t)}),(function(e){zo(e,t)}))},Ao=function(e,t){zo(e,t),Oo(t,e)},Do=function(e,t){I(t,(function(t){zo(e,t)}))},Mo=function(e,t){I(t,(function(n,r){var o=0===r?e:t[r-1];So(o,n)}))},No=function(e,t){I(t,(function(t){Oo(e,t)}))},Ro=function(e){e.dom.textContent="",I(wn(e),(function(e){Bo(e)}))},Bo=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Po=function(e){var t=wn(e);t.length>0&&Do(e,t),Bo(e)},Lo=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?E.from(t.dom.nodeValue):E.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Io=Lo(un,"text"),Ho=function(e){return Io.get(e)},Fo=function(e){return Io.getOption(e)},jo=function(e,t){return Io.set(e,t)},Vo=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Uo(){var e=function(e){return vt.fromDom(e.dom.cloneNode(!1))},t=function(e){return mn(e).dom},n=function(e){return!!cn(e)&&("body"===nn(e)||R(Vo,nn(e)))},r=function(e){return!!cn(e)&&R(["br","img","hr","input"],nn(e))},o=function(e){return cn(e)&&"false"===Zn(e,"contenteditable")},i=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Jn(t,n)},c=function(e){var t=nn(e);return R(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},u=function(e){return cn(e)?er(e,"lang"):E.none()};return{up:v({selector:Wn,closest:Kn,predicate:jn,all:vn}),down:v({selector:Hn,predicate:Pn}),styles:v({get:gr,getRaw:hr,set:dr,remove:vr}),attrs:v({get:Zn,set:Yn,remove:tr,copyTo:a}),insert:v({before:zo,after:So,afterAll:Mo,append:Oo,appendAll:No,prepend:To,wrap:Ao}),remove:v({unwrap:Po,remove:Bo}),create:v({nu:vt.fromTag,clone:e,text:vt.fromText}),query:v({comparePosition:i,prevSibling:yn,nextSibling:bn}),property:v({children:wn,name:nn,parent:pn,document:t,isText:un,isComment:an,isElement:cn,isSpecial:c,getLanguage:u,getText:Ho,setText:jo,isBoundary:n,isEmptyTag:r,isNonEditable:o}),eq:_t,is:St}}var qo=function(e,t,n,r){var o=n[0],i=n.slice(1);return r(e,t,o,i)},Wo=function(e,t,n){return n.length>0?qo(e,t,n,$o):E.none()},$o=function(e,t,n,r){var o=t(e,n);return V(r,(function(n,r){var o=t(e,r);return Go(e,n,o)}),o)},Go=function(e,t,n){return t.bind((function(t){return n.filter(w(e.eq,t))}))},Ko=function(e,t){return w(e.eq,t)},Xo=function(e,t,n,r){void 0===r&&(r=x);var o=[t].concat(e.up().all(t)),i=[n].concat(e.up().all(n)),a=function(e){var t=$(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},c=a(o),u=a(i),s=W(c,(function(t){return B(u,Ko(e,t))}));return{firstpath:c,secondpath:u,shared:s}},Yo=Wo,Jo=Xo,Qo=Uo(),Zo=function(e,t){return Yo(Qo,(function(t,n){return e(n)}),t)},ei=function(e,t,n){return Jo(Qo,e,t,n)},ti=function(e){return Wn(e,"table")},ni=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||_t(t,e)}};return _t(e,t)?E.some({boxes:E.some([e]),start:e,finish:t}):ti(e).bind((function(o){return ti(t).bind((function(i){if(_t(o,i))return E.some({boxes:ko(o,e,t),start:e,finish:t});if(zt(o,i)){var a=Ln(t,"td,th",r(o)),c=a.length>0?a[a.length-1]:t;return E.some({boxes:_o(o,e,o,t,i),start:e,finish:c})}if(zt(i,o)){a=Ln(e,"td,th",r(i));var u=a.length>0?a[a.length-1]:e;return E.some({boxes:_o(i,e,o,t,i),start:e,finish:u})}return ei(e,t).shared.bind((function(a){return Kn(a,"table",n).bind((function(n){var a=Ln(t,"td,th",r(n)),c=a.length>0?a[a.length-1]:t,u=Ln(e,"td,th",r(n)),s=u.length>0?u[u.length-1]:e;return E.some({boxes:_o(n,e,o,t,i),start:s,finish:c})}))}))}))}))},ri=function(e,t){var n=Hn(e,t);return n.length>0?E.some(n):E.none()},oi=function(e,t){return W(e,(function(e){return yt(e,t)}))},ii=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Zo(ti,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},ai=function(e,t){return Wn(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return ni(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ci=function(e,t,n,r,o){return oi(e,o).bind((function(e){return wo(e,t,n).bind((function(e){return ai(e,r)}))}))},ui=function(e,t){return ri(e,t)},si=function(e,t,n){return ii(e,t,n).bind((function(t){var n=function(t){return _t(e,t)},r="thead,tfoot,tbody,table",o=Wn(t.first,r,n),i=Wn(t.last,r,n);return o.bind((function(e){return i.bind((function(n){return _t(e,n)?xo(t.table,t.first,t.last):E.none()}))}))}))},li=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return I(e,(function(r,o){var i=Tt(r);if(1!==i.length)throw new Error("one and only one name per case");var c=i[0],u=r[c];if(void 0!==n[c])throw new Error("duplicate key detected:"+c);if("cata"===c)throw new Error("cannot have a case named cata (sorry)");if(!a(u))throw new Error("case arguments must be an array");t.push(c),n[c]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+c+". Expected "+u.length+" ("+u+"), got "+i);var a=function(e){var r=Tt(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=X(t,(function(e){return R(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[c].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:a,log:function(e){console.log(e,{constructors:t,constructor:c,params:n})}}}})),n},fi={generate:li},di=fi.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),mi=function(e,t,n,r){return e.fold(t,n,r)},gi=di.none,pi=di.multiple,hi=di.single,vi=function(e,t,n){var r=function(){return ui(e(),n).fold((function(){return t().fold(gi,hi)}),(function(e){return pi(e)}))};return{get:r}},yi=tinymce.util.Tools.resolve("tinymce.PluginManager"),bi=function(e,t){return vt.fromDom(e.dom.cloneNode(t))},wi=function(e){return bi(e,!1)},ki=function(e){return bi(e,!0)},_i=function(e,t){var n=vt.fromTag(t),r=nr(e);return Jn(n,r),n},xi=function(e,t){var n=_i(e,t),r=wn(ki(e));return No(n,r),n},Ci=function(e,t){var n=_i(e,t);zo(e,n);var r=wn(e);return No(n,r),Bo(e),n},zi=function(e,t){var n=function(t,n){if(!m(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;sr(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=gr(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return U(t,(function(t,n){var r=gr(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},Si=function(){var e=ot().browser;return e.isIE()||e.isEdge()},Ti=function(e,t){return Oe(e).getOr(t)},Oi=function(e,t,n){return Ti(gr(e,t),n)},Ei=function(e){return gr(e,"box-sizing")},Ai=function(e,t,n,r){var o=Oi(e,"padding-"+n,0),i=Oi(e,"padding-"+r,0),a=Oi(e,"border-"+n+"-width",0),c=Oi(e,"border-"+r+"-width",0);return t-o-i-a-c},Di=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Ai(e,r,"top","bottom")},Mi=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Ai(e,r,"left","right")},Ni=function(e){return Si()?Di(e,Ei(e)):Oi(e,"height",e.dom.offsetHeight)},Ri=function(e){return Si()?Mi(e,Ei(e)):Oi(e,"width",e.dom.offsetWidth)},Bi=function(e){return Mi(e,"content-box")},Pi=zi("width",(function(e){return e.dom.offsetWidth})),Li=function(e){return Pi.get(e)},Ii=function(e){return Pi.getOuter(e)},Hi=Bi,Fi=Ri,ji=function(e,t){void 0===t&&(t=C);var n=e.grid,r=P(n.columns,y),o=P(n.rows,y);return L(r,(function(n){var r=function(){return K(o,(function(t){return so.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},i=function(e){return 1===e.colspan&&t(e.element)},a=function(){return so.getAt(e,0,n)};return Vi(r,i,a)}))},Vi=function(e,t,n){var r=e(),o=W(r,t),i=o.orThunk((function(){return E.from(r[0]).orThunk(n)}));return i.map((function(e){return e.element}))},Ui=function(e){var t=e.grid,n=P(t.rows,y),r=P(t.columns,y);return L(n,(function(t){var n=function(){return K(r,(function(n){return so.getAt(e,t,n).filter((function(e){return e.row===t})).fold(v([]),(function(e){return[e]}))}))},o=function(e){return 1===e.rowspan},i=function(){return so.getAt(e,t,0)};return Vi(n,o,i)}))},qi=function(e,t){if(t<0||t>=e.length-1)return E.none();var n=e[t].fold((function(){var n=Y(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Wi=function(e,t){return function(n){return"rtl"===$i(n)?t:e}},$i=function(e){return"rtl"===gr(e,"direction")?"rtl":"ltr"},Gi=zi("height",(function(e){var t=e.dom;return Dn(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ki=function(e){return Gi.get(e)},Xi=function(e){return Gi.getOuter(e)},Yi=Ni,Ji=function(e,t){var n=function(n,r){return Ji(e+n,t+r)};return{left:e,top:t,translate:n}},Qi=Ji,Zi=function(e){var t=e.getBoundingClientRect();return Qi(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Qi(n.offsetLeft,n.offsetTop);var i=ea(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),c=ea(o.clientTop,n.clientTop),u=ea(o.clientLeft,n.clientLeft);return na(e).translate(a-u,i-c)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Qi(r.offsetLeft,r.offsetTop):Dn(e)?Zi(t):Qi(0,0)},ra=function(e,t){return{row:e,y:t}},oa=function(e,t){return{col:e,x:t}},ia=function(e){var t=ta(e);return t.left+Ii(e)},aa=function(e){return ta(e).left},ca=function(e,t){return oa(e,aa(t))},ua=function(e,t){return oa(e,ia(t))},sa=function(e){return ta(e).top},la=function(e,t){return ra(e,sa(t))},fa=function(e,t){return ra(e,sa(t)+Xi(t))},da=function(e,t,n){if(0===n.length)return[];var r=L(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),o=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([o])},ma=function(e){return-e},ga={delta:y,positions:function(e){return da(la,fa,e)},edge:sa},pa={delta:y,edge:aa,positions:function(e){return da(ca,ua,e)}},ha={delta:ma,edge:ia,positions:function(e){return da(ua,ca,e)}},va=Wi(pa,ha),ya={delta:function(e,t){return va(t).delta(e,t)},positions:function(e,t){return va(t).positions(e,t)},edge:function(e){return va(e).edge(e)}},ba={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},wa=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",o=function(e){return"(?:"+e+")?"},i=["Infinity",e+r+o(e)+o(n),r+e+o(n),e+o(n)].join("|"),a="[+-]?(?:"+i+")";return new RegExp("^("+a+")(.*)$")}(),ka=function(e,t){return B(t,(function(t){return B(ba[t],(function(t){return e===t}))}))},_a=function(e,t){var n=E.from(wa.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return ka(r,t)?E.some({value:n,unit:r}):E.none()}))},xa=/(\d+(\.\d+)?)%/,Ca=/(\d+(\.\d+)?)px|em/,za=fn("col"),Sa=function(e,t,n){var r=hn(e).getOrThunk((function(){return Nn(dn(e))}));return t(e)/n(r)*100},Ta=function(e,t){dr(e,"width",t+"px")},Oa=function(e,t){dr(e,"width",t+"%")},Ea=function(e,t){dr(e,"height",t+"px")},Aa=function(e){return Yi(e)+"px"},Da=function(e,t,n,r){var o=Mr(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,o),o},Ma=function(e,t,n,r){var o=parseFloat(e);return xe(e,"%")&&"table"!==nn(t)?Da(t,o,n,r):o},Na=function(e){var t=Aa(e);return t?Ma(t,e,Ki,Ea):Ki(e)},Ra=function(e,t,n){var r=n(e),o=wr(e,t);return r/o},Ba=function(e,t){return hr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},Pa=function(e){return Ba(e,"width")},La=function(e){return Ba(e,"height")},Ia=function(e){return Sa(e,Li,Hi)},Ha=function(e){return za(e)?Li(e):Fi(e)},Fa=function(e){return Ra(e,"rowspan",Na)},ja=function(e){var t=Pa(e);return t.bind((function(e){return _a(e,["fixed","relative","empty"])}))},Va=function(e,t,n){dr(e,"width",t+n)},Ua=function(e){return Li(e)+"px"},qa=function(e){return Sa(e,Li,Hi)+"%"},Wa=function(e){return Pa(e).exists((function(e){return xa.test(e)}))},$a=function(e){return Pa(e).exists((function(e){return Ca.test(e)}))},Ga=function(e){return Pa(e).isNone()},Ka=v(xa),Xa=fn("col"),Ya=function(e){return Pa(e).getOrThunk((function(){return Ha(e)+"px"}))},Ja=function(e){return La(e).getOrThunk((function(){return Fa(e)+"px"}))},Qa=function(e){return L(so.justColumns(e),(function(e){return E.from(e.element)}))},Za=function(e){var t=ot().browser,n=t.isChrome()||t.isFirefox();return!Xa(e)||n},ec=function(e,t,n,r,o,i){return e.filter(r).fold((function(){return i(qi(n,t))}),(function(e){return o(e)}))},tc=function(e,t,n,r){var o=ji(e),i=so.hasColumns(e)?Qa(e):o,a=[E.some(ya.edge(t))].concat(L(ya.positions(o,t),(function(e){return e.map((function(e){return e.x}))}))),c=k(kr);return L(i,(function(e,t){return ec(e,t,a,c,(function(e){if(Za(e))return n(e);var i=ar(o[t],y);return ec(i,t,a,c,(function(e){return r(E.some(Li(e)))}),r)}),r)}))},nc=function(e){return e.map((function(e){return e+"px"})).getOr("")},rc=function(e,t){return tc(e,t,Ya,nc)},oc=function(e,t,n){return tc(e,t,Ia,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},ic=function(e,t,n){return tc(e,t,Ha,(function(e){return e.getOrThunk(n.minCellWidth)}))},ac=function(e,t,n,r,o){var i=Ui(e),a=[E.some(n.edge(t))].concat(L(n.positions(i,t),(function(e){return e.map((function(e){return e.y}))})));return L(i,(function(e,t){return ec(e,t,a,k(_r),r,o)}))},cc=function(e,t,n){return ac(e,t,n,Fa,(function(e){return e.getOrThunk(zr)}))},uc=function(e,t,n){return ac(e,t,n,Ja,nc)},sc=function(e,t){return function(){return Dn(e)?t(e):parseFloat(hr(e,"width").getOr("0"))}},lc=function(e){var t=sc(e,Li),n=v(0),r=function(t,n){return ic(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:v([0]),minCellWidth:n,setElementWidth:g,adjustTableWidth:g,isRelative:!0,label:"none"}},fc=function(e){var t=sc(e,(function(e){return parseFloat(qa(e))})),n=sc(e,Li),r=function(e){return e/n()*100},o=function(e,t){return[100-e]},i=function(){return Cr()/n()*100},a=function(n){var r=t(),o=n/100*r,i=r+o;Oa(e,i)},c=function(t,n){return oc(t,e,n)};return{width:t,pixelWidth:n,getWidths:c,getCellDelta:r,singleColumnWidth:o,minCellWidth:i,setElementWidth:Oa,adjustTableWidth:a,isRelative:!0,label:"percent"}},dc=function(e){var t=sc(e,Li),n=y,r=function(e,t){var n=Math.max(Cr(),e+t);return[n-e]},o=function(n){var r=t()+n;Ta(e,r)},i=function(t,n){return ic(t,e,n)};return{width:t,pixelWidth:t,getWidths:i,getCellDelta:n,singleColumnWidth:r,minCellWidth:Cr,setElementWidth:Ta,adjustTableWidth:o,isRelative:!1,label:"pixel"}},mc=function(e,t){var n=Ka().exec(t);return null!==n?fc(e):dc(e)},gc=function(e){var t=Pa(e);return t.fold((function(){return lc(e)}),(function(t){return mc(e,t)}))},pc={getTableSize:gc,pixelSize:dc,percentageSize:fc,noneSize:lc},hc=function(e,t,n,r,o,i){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:o,selectedCells:i}},vc=function(e,t){var n=e.grid.columns,r=e.grid.rows,o=r,i=n,a=0,c=0,u=[],s=[];return Et(e.access,(function(e){if(u.push(e),t(e)){s.push(e);var n=e.row,r=n+e.rowspan-1,l=e.column,f=l+e.colspan-1;n<o?o=n:r>a&&(a=r),l<i?i=l:f>c&&(c=f)}})),hc(o,i,a,c,u,s)},yc=function(e,t,n){var r=e[n].element,o=vt.fromTag("td");Oo(o,vt.fromTag("br"));var i=t?Oo:To;i(r,o)},bc=function(e,t,n,r){for(var o=t.grid.columns,i=t.grid.rows,a=0;a<i;a++)for(var c=!1,u=0;u<o;u++)if(!(a<n.minRow||a>n.maxRow||u<n.minCol||u>n.maxCol)){var s=so.getAt(t,a,u).filter(r).isNone();s?yc(e,c,a):c=!0}},wc=function(e,t,n,r){Et(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Bo(e.element)}));var o=j(Sr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));I(o,Bo),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||I(Sr(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Xr),tr(e,"data-snooker-col-series");var i=pc.getTableSize(e);i.adjustTableWidth(r)},kc=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var o=ic(t,e,n),i=U(o,(function(e,t){return e+t}),0),a=U(o.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),c=a/i*n.pixelWidth(),u=c-n.pixelWidth();return n.getCellDelta(u)},_c=function(e,t){var n=function(e){return yt(e.element,t)},r=ki(e),o=Lr(r),i=pc.getTableSize(e),a=so.generate(o),c=vc(a,n),u="th:not("+t+"),td:not("+t+")",s=Tr(r,"th,td",(function(e){return yt(e,u)}));I(s,Bo),bc(o,a,c,n);var l=so.fromTable(e),f=kc(e,l,i,c);return wc(r,c,a,f),r},xc=" ",Cc=function(e){return"img"===nn(e)?1:Fo(e).fold((function(){return wn(e).length}),(function(e){return e.length}))},zc=function(e){return Fo(e).filter((function(e){return 0!==e.trim().length||e.indexOf(xc)>-1})).isSome()},Sc=["img","br"],Tc=function(e){var t=zc(e);return t||R(Sc,nn(e))},Oc=function(e){return qn(e,Tc)},Ec=function(e){return Ac(e,Tc)},Ac=function(e,t){var n=function(e){for(var r=wn(e),o=r.length-1;o>=0;o--){var i=r[o];if(t(i))return E.some(i);var a=n(i);if(a.isSome())return a}return E.none()};return n(e)},Dc={scope:["row","col"]},Mc=function(e){return function(){var t=vt.fromTag("td",e.dom);return Oo(t,vt.fromTag("br",e.dom)),t}},Nc=function(e){return function(){return vt.fromTag("col",e.dom)}},Rc=function(e){return function(){return vt.fromTag("colgroup",e.dom)}},Bc=function(e){return function(){return vt.fromTag("tr",e.dom)}},Pc=function(e,t,n){var r=xi(e,t);return Et(n,(function(e,t){null===e?tr(r,t):Yn(r,t,e)})),r},Lc=function(e){return e},Ic=function(e,t,n){var r=Oc(e);return r.map((function(r){var o=n.join(","),i=Ln(r,o,(function(t){return _t(t,e)}));return V(i,(function(e,t){var n=wi(t);return tr(n,"contenteditable"),Oo(e,n),n}),t)})).getOr(t)},Hc=function(e,t){Et(Dc,(function(n,r){return er(e,r).filter((function(e){return R(n,e)})).each((function(e){return Yn(t,r,e)}))}))},Fc=function(e,t,n){var r=function(e,t){yr(e.element,t),vr(t,"height"),1!==e.colspan&&vr(t,"width")},o=function(o){var i=vt.fromTag(nn(o.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),c=a.length>0?Ic(o.element,i,a):i;return Oo(c,vt.fromTag("br")),r(o,i),Hc(o.element,i),e(o.element,i),i},i=function(n){var o=vt.fromTag(nn(n.element),t.dom);return r(n,o),e(n.element,o),o};return{col:i,colgroup:Rc(t),row:Bc(t),cell:o,replace:Pc,colGap:Nc(t),gap:Mc(t)}},jc=function(e){return{col:Nc(e),colgroup:Rc(e),row:Bc(e),cell:Mc(e),replace:Lc,colGap:Nc(e),gap:Mc(e)}},Vc=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,wn(vt.fromDom(r))},Uc=function(e){return L(e,vt.fromDom)},qc=function(e){return e.nodeName.toLowerCase()},Wc=function(e){return vt.fromDom(e.getBody())},$c=function(e){return e.getBoundingClientRect().width},Gc=function(e){return e.getBoundingClientRect().height},Kc=function(e){return function(t){return _t(t,Wc(e))}},Xc=function(e){return e?e.replace(/px$/,""):""},Yc=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Jc=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};I(Ar(e),t),I(Dr(e),t),I(Nr(e),t)},Qc=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return E.from(n).filter(Se)},Zc=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},eu=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tu=function(e){return vt.fromDom(e.selection.getStart())},nu=function(e){return vt.fromDom(e.selection.getEnd())},ru=function(e){return mi(e.get(),v([]),y,Q)},ou=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=ru(e);return r.length>0&&X(r,n)?E.some(r):E.none()},iu=function(e,t,n){return mi(t.get(),E.none,(function(t){return t.length<=1?E.none():si(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),E.none)},au="data-mce-selected",cu="td["+au+"],th["+au+"]",uu="["+au+"]",su="data-mce-first-selected",lu="td["+su+"],th["+su+"]",fu="data-mce-last-selected",du="td["+fu+"],th["+fu+"]",mu=uu,gu={selected:au,selectedSelector:cu,firstSelected:su,firstSelectedSelector:lu,lastSelected:fu,lastSelectedSelector:du},pu=function(e){return{element:e,mergable:E.none(),unmergable:E.none(),selection:[e]}},hu=function(e,t,n){return{element:n,mergable:iu(t,e,gu),unmergable:ou(e),selection:ru(e)}},vu=function(e,t,n){return{element:e,clipboard:t,generators:n}},yu=function(e,t,n,r){return{selection:ru(e),clipboard:n,generators:r}},bu=function(e){return Mr(e).bind((function(e){return ui(e,gu.firstSelectedSelector)})).fold(v(e),(function(e){return e[0]}))},wu=function(e){return function(t,n){var r=nn(t),o="col"===r||"colgroup"===r?bu(t):t;return Kn(o,e,n)}},ku=wu("th,td,caption"),_u=wu("th,td"),xu=function(e){return ru(e)},Cu=function(e,t){var n=_u(e),r=n.bind((function(e){return Mr(e)})).map((function(e){return Nr(e)}));return ir(n,r,(function(e,n){return j(n,(function(n){return B(Uc(n.dom.cells),(function(n){return"1"===Zn(n,t)||_t(n,e)}))}))})).getOr([])},zu=function(e){return Mr(e[0]).map((function(e){var t=_c(e,mu);return Jc(t),[t]}))},Su=function(e,t){return L(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Tu=function(e){return L(e,(function(e){return e.dom.innerText})).join("")},Ou=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),zu(t).each((function(t){n.content="text"===n.format?Tu(t):Su(e,t)}))};!0===n.selection&&mi(t.get(),g,r,g)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var o=xu(t);te(o).each((function(t){Mr(t).each((function(o){var i=j(Vc(r.content),(function(e){return"meta"!==nn(e)})),a=fn("table");if(1===i.length&&a(i[0])){r.preventDefault();var c=vt.fromDom(e.getDoc()),u=jc(c),s=vu(t,i[0],u);n.pasteCells(o,s).each((function(){e.focus()}))}}))}))}}))},Eu=fi.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Au=oe({},Eu),Du=function(e,t){return 0===e.length?Au.none():1===e.length?Au.only(0):0===t?Au.left(0,1):t===e.length-1?Au.right(t-1,t):t>0&&t<e.length-1?Au.middle(t-1,t,t+1):Au.none()},Mu=function(e,t,n,r,o){var i=e.slice(0),a=Du(e,t),c=v(L(i,v(0))),u=function(e){return r.singleColumnWidth(i[e],n)},s=function(e,t){return o.calcLeftEdgeDeltas(i,e,t,n,r.minCellWidth(),r.isRelative)},l=function(e,t,a){return o.calcMiddleDeltas(i,e,t,a,n,r.minCellWidth(),r.isRelative)},f=function(e,t){return o.calcRightEdgeDeltas(i,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(c,u,s,l,f)},Nu=function(e,t,n){for(var r=0,o=e;o<t;o++)r+=void 0!==n[o]?n[o]:0;return r},Ru=function(e,t){var n=so.justCells(e);return L(n,(function(e){var n=Nu(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Bu=function(e,t){var n=so.justColumns(e);return L(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},Pu=function(e,t){var n=so.justCells(e);return L(n,(function(e){var n=Nu(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Lu=function(e,t){return L(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Iu=function(e){return V(e,(function(e,t){return e+t}),0)},Hu=function(e,t){return so.hasColumns(e)?Bu(e,t):Ru(e,t)},Fu=function(e,t,n){var r=Hu(e,t);I(r,(function(e){n.setElementWidth(e.element,e.width)}))},ju=function(e,t,n,r,o){var i=so.fromTable(e),a=o.getCellDelta(t),c=o.getWidths(i,o),u=n===i.grid.columns-1,s=r.clampTableDelta(c,n,a,o.minCellWidth(),u),l=Mu(c,n,s,o,r),f=L(l,(function(e,t){return e+c[t]}));Fu(i,f,o),r.resizeTable(o.adjustTableWidth,s,u)},Vu=function(e,t,n,r){var o=so.fromTable(e),i=cc(o,e,r),a=L(i,(function(e,r){return n===r?Math.max(t+e,zr()):e})),c=Pu(o,a),u=Lu(o,a);I(u,(function(e){Ea(e.element,e.height)})),I(c,(function(e){Ea(e.element,e.height)}));var s=Iu(a);Ea(e,s)},Uu=function(e,t,n,r,o){var i=so.generate(t),a=r.getWidths(i,r),c=r.pixelWidth(),u=o.calcRedestributedWidths(a,c,n.pixelDelta,r.isRelative),s=u.newSizes,l=u.delta;Fu(i,s,r),r.adjustTableWidth(l)},qu=function(e,t,n,r){var o=so.generate(t),i=r.getWidths(o,r);Fu(o,i,r)},Wu=function(e){return L(e,v(0))},$u=function(e,t,n,r,o){return o(e.slice(0,t)).concat(r).concat(o(e.slice(n)))},Gu=function(e){return function(t,n,r,o){if(e(r)){var i=Math.max(o,t[n]-Math.abs(r)),a=Math.abs(i-t[n]);return r>=0?a:-a}return r}},Ku=Gu((function(e){return e<0})),Xu=Gu(C),Yu=function(){var e=function(e,t,n,r,o){var i=Ku(e,t,r,o);return $u(e,t,n+1,[i,0],Wu)},t=function(e,t,n,r){var o=(100+n)/100,i=Math.max(r,(e[t]+n)/o);return L(e,(function(e,n){var r=n===t?i:e/o;return r-e}))},n=function(n,r,o,i,a,c){return c?t(n,r,i,a):e(n,r,o,i,a)},r=function(e,t,r,o,i,a,c){return n(e,r,o,i,a,c)},o=function(e,t){return e(t)},i=function(e,n,r,o,i,a){if(a)return t(e,r,o,i);var c=Ku(e,r,o,i);return Wu(e.slice(0,r)).concat([c])},a=function(e,t,n,r){if(r){var o=t+n,i=o/t,a=L(e,(function(e){return e/i}));return{delta:100*i-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:o,clampTableDelta:Ku,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:i,calcRedestributedWidths:a}},Ju=function(){var e=function(e,t,n,r,o){var i=r>=0?n:t,a=Xu(e,i,r,o);return $u(e,t,n+1,[a,-a],Wu)},t=function(t,n,r,o,i,a){return e(t,r,o,i,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,o,i){if(i)return Wu(e);var a=r/e.length;return L(e,v(a))},o=function(e,t,n,r,o){if(o){if(n>=0)return n;var i=U(e,(function(e,t){return e+t-r}),0);return Math.max(-i,n)}return Ku(e,t,n,r)},i=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:o,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:i}},Qu=function(e,t){var n=E.from(e.dom.documentElement).map(vt.fromDom).getOr(e);return{parent:v(n),view:v(e),origin:v(Qi(0,0)),isResizable:t}},Zu=function(e,t,n){var r=function(){return ta(t)};return{parent:v(t),view:v(e),origin:r,isResizable:n}},es=function(e,t,n){return{parent:v(t),view:v(e),origin:v(Qi(0,0)),isResizable:n}},ts={only:Qu,detached:Zu,body:es},ns=fi.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),rs=function(e,t,n){var r=n.substring(0,n.length-e.length),o=parseFloat(r);return r===o.toString()?t(o):ns.invalid(n)},os=function(e){return xe(e,"%")?rs("%",ns.percent,e):xe(e,"px")?rs("px",ns.pixels,e):ns.invalid(e)},is=oe(oe({},ns),{from:os}),as=function(e,t){return L(e,(function(e){var n=is.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},cs=function(e,t,n){var r=n/t;return L(e,(function(e){var t=is.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},us=function(e,t){var n=e.fold((function(){return v("")}),(function(e){var n=e/t;return v(n+"px")}),(function(){var e=100/t;return v(e+"%")}));return P(t,n)},ss=function(e,t,n){return e.fold((function(){return t}),(function(e){return cs(t,n,e)}),(function(e){return as(t,n)}))},ls=function(e,t,n){var r=is.from(n),o=X(e,(function(e){return"0px"===e}))?us(r,e.length):ss(r,e,t);return gs(o)},fs=function(e,t){return 0===e.length?t:V(e,(function(e,t){return is.from(t).fold(v(0),y,y)+e}),0)},ds=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},ms=function(e,t){return is.from(e).fold(v(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},gs=function(e){if(0===e.length)return e;var t=V(e,(function(e,t){var n=is.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return ds(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([ms(n[n.length-1],Math.round(t.remainder))])},ps=is.from,hs=function(e,t,n){I(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),o=fs(r,Cr());dr(t.element,"width",o+n)}))},vs=function(e,t,n){I(t,(function(t,r){var o=fs([e[r]],Cr());dr(t.element,"width",o+n)}))},ys=function(e,t,n,r){I(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),o=fs(n,zr());dr(t.element,"height",o+r)})),I(t,(function(t,n){dr(t.element,"height",e[n])}))},bs=function(e){return ps(e).fold(v("px"),v("px"),v("%"))},ws=function(e,t,n){var r=so.fromTable(e),o=r.all,i=so.justCells(r),a=so.justColumns(r);t.each((function(t){var n=bs(t),o=Li(e),c=rc(r,e),u=ls(c,o,t);so.hasColumns(r)?vs(u,a,n):hs(u,i,n),dr(e,"width",t)})),n.each((function(t){var n=bs(t),a=Ki(e),c=uc(r,e,ga),u=ls(c,a,t);ys(u,o,i,n),dr(e,"height",t)}))},ks=Wa,_s=$a,xs=Ga,Cs=function(e){var t=so.fromTable(e);return t.grid},zs=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=j(t,(function(t){return t!==e}))},o=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};I(e,(function(e,t){o[e]=n[t]})),I(t,(function(e){e(o)}))};return{bind:n,unbind:r,trigger:o}},Ss=function(e){var t=At(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=At(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},Ts=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},Os=function(e){return e.slice(0).sort()},Es=function(e,t){throw new Error("All required keys ("+Os(e).join(", ")+") were not specified. Specified keys were: "+Os(t).join(", ")+".")},As=function(e){throw new Error("Unsupported keys for object: "+Os(e).join(", "))},Ds=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");I(t,(function(t){if(!o(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Ms=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Os(e).join(", ")+") were not.")},Ns=function(e){var t=Os(e),n=W(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Rs=function(e,t){return Bs(e,t,{validate:d,label:"function"})},Bs=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Ds("required",t),Ns(t),function(r){var o=Tt(r),i=X(t,(function(e){return R(o,e)}));i||Es(t,o),e(t,o);var a=j(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Ms(a,n.label),r}},Ps=function(e,t){var n=j(t,(function(t){return!R(e,t)}));n.length>0&&As(n)},Ls=function(e){return Rs(Ps,e)},Is=Ls(["compare","extract","mutate","sink"]),Hs=Ls(["element","start","stop","destroy"]),Fs=Ls(["forceDrop","drop","move","delayDrop"]),js=function(){var e=E.none(),t=function(){e=E.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=E.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){o.trigger.move(e)}))}))},o=Ss({move:zs(["info"])});return{onEvent:r,reset:t,events:o.registry}},Vs=function(){var e=Ss({move:zs(["info"])});return{onEvent:g,reset:g,events:e.registry}},Us=function(){var e=Vs(),t=js(),n=e,r=function(){n.reset(),n=t},o=function(){n.reset(),n=e},i=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:o,isOn:a,onEvent:i,events:t.events}},qs=function(e,t,n){var r=!1,o=Ss({start:zs([]),stop:zs([])}),i=Us(),a=function(){m.stop(),i.isOn()&&(i.off(),o.trigger.stop())},c=Ts(a,200),u=function(e){m.start(e),i.on(),o.trigger.start()},s=function(e){c.cancel(),i.onEvent(e,t)};i.events.move.bind((function(n){t.mutate(e,n.info)}));var l=function(){r=!0},f=function(){r=!1},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},m=t.sink(Fs({forceDrop:a,drop:d(a),move:d(s),delayDrop:d(c.throttle)}),n),g=function(){m.destroy()};return{element:m.element,go:u,on:l,off:f,destroy:g,events:o.registry}},Ws=function(e,t,n,r,o,i,a){return{target:e,x:t,y:n,stop:r,prevent:o,kill:i,raw:a}},$s=function(e){var t=vt.fromDom(En(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=p(r,n);return Ws(t,e.clientX,e.clientY,n,r,o,e)},Gs=function(e,t){return function(n){e(n)&&t($s(n))}},Ks=function(e,t,n,r,o){var i=Gs(n,r);return e.dom.addEventListener(t,i,o),{unbind:w(Ys,e,t,i,o)}},Xs=function(e,t,n,r){return Ks(e,t,n,r,!1)},Ys=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Js=C,Qs=function(e,t,n){return Xs(e,t,Js,n)},Zs=$s,el=function(e,t){var n=Zn(e,t);return void 0===n||""===n?[]:n.split(" ")},tl=function(e,t,n){var r=el(e,t),o=r.concat([n]);return Yn(e,t,o.join(" ")),!0},nl=function(e,t,n){var r=j(el(e,t),(function(e){return e!==n}));return r.length>0?Yn(e,t,r.join(" ")):tr(e,t),!1},rl=function(e){return void 0!==e.dom.classList},ol=function(e){return el(e,"class")},il=function(e,t){return tl(e,"class",t)},al=function(e,t){return nl(e,"class",t)},cl=function(e,t){rl(e)?e.dom.classList.add(t):il(e,t)},ul=function(e){var t=rl(e)?e.dom.classList:ol(e);0===t.length&&tr(e,"class")},sl=function(e,t){if(rl(e)){var n=e.dom.classList;n.remove(t)}else al(e,t);ul(e)},ll=function(e,t){return rl(e)&&e.dom.classList.contains(t)},fl=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},dl=fl("ephox-dragster"),ml=dl.resolve,gl=function(e){var t=oe({layerClass:ml("blocker")},e),n=vt.fromTag("div");Yn(n,"role","presentation"),mr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),cl(n,ml("blocker")),cl(n,t.layerClass);var r=v(n),o=function(){Bo(n)};return{element:r,destroy:o}},pl=function(e,t){return Qi(t.left-e.left,t.top-e.top)},hl=function(e){return E.some(Qi(e.x,e.y))},vl=function(e,t){e.mutate(t.left,t.top)},yl=function(e,t){var n=gl(t),r=Qs(n.element(),"mousedown",e.forceDrop),o=Qs(n.element(),"mouseup",e.drop),i=Qs(n.element(),"mousemove",e.move),a=Qs(n.element(),"mouseout",e.delayDrop),c=function(){n.destroy(),o.unbind(),i.unbind(),a.unbind(),r.unbind()},u=function(e){Oo(e,n.element())},s=function(){Bo(n.element())};return Hs({element:n.element,start:u,stop:s,destroy:c})},bl=Is({compare:pl,extract:hl,sink:yl,mutate:vl}),wl=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:bl;return qs(e,n,t)},kl=function(e){return Kn(e,"[contenteditable]")},_l=function(e,t){return void 0===t&&(t=!1),!ot().browser.isIE()&&Dn(e)?e.dom.isContentEditable:kl(e).fold(v(t),(function(e){return"true"===xl(e)}))},xl=function(e){return e.dom.contentEditable},Cl=fl("ephox-snooker"),zl=Cl.resolve,Sl=function(){var e=Ss({drag:zs(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Tl=function(){var e=Ss({drag:zs(["xDelta","yDelta","target"])}),t=E.none(),n=Sl();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=E.some(e)},o=function(){return t};return{assign:r,get:o,mutate:n.mutate,events:e.registry}},Ol=function(e,t,n,r,o){var i=vt.fromTag("div");return mr(i,{position:"absolute",left:t-r/2+"px",top:n+"px",height:o+"px",width:r+"px"}),Jn(i,{"data-column":e,role:"presentation"}),i},El=function(e,t,n,r,o){var i=vt.fromTag("div");return mr(i,{position:"absolute",left:t+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),Jn(i,{"data-row":e,role:"presentation"}),i},Al=zl("resizer-bar"),Dl=zl("resizer-rows"),Ml=zl("resizer-cols"),Nl=7,Rl=function(e,t){return K(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Bl=function(e,t){var n=[];return P(e.grid.columns,(function(r){var o=so.getColumnAt(e,r).map((function(e){return e.element}));o.forall(t)&&n.push(r)})),j(n,(function(n){var r=so.filterItems(e,(function(e){return e.column===n}));return X(r,(function(e){return t(e.element)}))}))},Pl=function(e){var t=Hn(e.parent(),"."+Al);I(t,Bo)},Ll=function(e,t,n){var r=e.origin();I(t,(function(t){t.each((function(t){var o=n(r,t);cl(o,Al),Oo(e.parent(),o)}))}))},Il=function(e,t,n,r){Ll(e,t,(function(e,t){var o=Ol(t.col,t.x-e.left,n.top-e.top,Nl,r);return cl(o,Ml),o}))},Hl=function(e,t,n,r){Ll(e,t,(function(e,t){var o=El(t.row,n.left-e.left,t.y-e.top,r,Nl);return cl(o,Dl),o}))},Fl=function(e,t,n,r,o){var i=ta(n),a=t.isResizable,c=r.length>0?ga.positions(r,n):[],u=c.length>0?Rl(e,a):[],s=j(c,(function(e,t){return B(u,(function(e){return t===e}))}));Hl(t,s,i,Ii(n));var l=o.length>0?ya.positions(o,n):[],f=l.length>0?Bl(e,a):[],d=j(l,(function(e,t){return B(f,(function(e){return t===e}))}));Il(t,d,i,Xi(n))},jl=function(e,t){if(Pl(e),e.isResizable(t)){var n=so.fromTable(t),r=Ui(n),o=ji(n);Fl(n,e,t,r,o)}},Vl=function(e,t){var n=Hn(e.parent(),"."+Al);I(n,t)},Ul=function(e){Vl(e,(function(e){dr(e,"display","none")}))},ql=function(e){Vl(e,(function(e){dr(e,"display","block")}))},Wl=function(e){return ll(e,Dl)},$l=function(e){return ll(e,Ml)},Gl=zl("resizer-bar-dragging"),Kl=function(e){var t=Tl(),n=wl(t,{}),r=E.none(),o=function(e,t){return E.from(Zn(e,t))};t.events.drag.bind((function(e){o(e.target,"data-row").each((function(t){var n=xr(e.target,"top");dr(e.target,"top",n+e.yDelta+"px")})),o(e.target,"data-column").each((function(t){var n=xr(e.target,"left");dr(e.target,"left",n+e.xDelta+"px")}))}));var i=function(e,t){var n=xr(e,t),r=br(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){o(t,"data-row").each((function(e){var r=i(t,"top");tr(t,"data-initial-top"),m.trigger.adjustHeight(n,r,parseInt(e,10))})),o(t,"data-column").each((function(e){var r=i(t,"left");tr(t,"data-initial-left"),m.trigger.adjustWidth(n,r,parseInt(e,10))})),jl(e,n)}))}))}));var a=function(r,o){m.trigger.startAdjust(),t.assign(r),Yn(r,"data-initial-"+o,xr(r,o)),cl(r,Gl),dr(r,"opacity","0.2"),n.go(e.parent())},c=Qs(e.parent(),"mousedown",(function(e){Wl(e.target)&&a(e.target,"top"),$l(e.target)&&a(e.target,"left")})),u=function(t){return _t(t,e.view())},s=function(e){return Kn(e,"table",u).filter(_l)},l=Qs(e.view(),"mouseover",(function(t){s(t.target).fold((function(){Dn(t.target)&&Pl(e)}),(function(t){r=E.some(t),jl(e,t)}))})),f=function(){c.unbind(),l.unbind(),n.destroy(),Pl(e)},d=function(t){jl(e,t)},m=Ss({adjustHeight:zs(["table","delta","row"]),adjustWidth:zs(["table","delta","column"]),startAdjust:zs([])});return{destroy:f,refresh:d,on:n.on,off:n.off,hideBars:w(Ul,e),showBars:w(ql,e),events:m.registry}},Xl=function(e,t,n){var r=ga,o=ya,i=Kl(e),a=Ss({beforeResize:zs(["table","type"]),afterResize:zs(["table","type"]),startDrag:zs([])});return i.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);Vu(t,n,e.row,r),a.trigger.afterResize(t,"row")})),i.events.startAdjust.bind((function(e){a.trigger.startDrag()})),i.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var i=o.delta(e.delta,r),c=n(r);ju(r,i,e.column,t,c),a.trigger.afterResize(r,"col")})),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:a.registry}},Yl={create:Xl},Jl=function(e,t){return e.fire("newrow",{node:t})},Ql=function(e,t){return e.fire("newcell",{node:t})},Zl=function(e,t,n,r,o){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:o})},ef=function(e,t,n,r,o){e.fire("ObjectResized",{target:t,width:n,height:r,origin:o})},tf=function(e,t,n,r,o){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:o})},nf=function(e){e.fire("TableSelectionClear")},rf=function(e,t,n){e.fire("TableModified",oe(oe({},n),{table:t}))},of={structure:!1,style:!0},af={structure:!0,style:!1},cf={structure:!0,style:!0},uf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",sf={"border-collapse":"collapse",width:"100%"},lf=P(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ff=L(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),df=function(e){var t;if(Nf(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),o=Hi(vt.fromDom(r));return oe(oe({},sf),{width:o+"px"})}return Rf(e)?Rt(sf,(function(e,t){return"width"!==t})):sf},mf={border:"1"},gf="preservetable",pf=function(e){return e.getParam("table_sizing_mode","auto")},hf=function(e){return e.getParam("table_responsive_width")},vf=function(e){return e.getParam("table_border_widths",lf,"array")},yf=function(e){return e.getParam("table_border_styles",ff,"array")},bf=function(e){return e.getParam("table_default_attributes",mf,"object")},wf=function(e){return e.getParam("table_default_styles",df(e),"object")},kf=function(e){return e.getParam("table_resize_bars",!0,"boolean")},_f=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},xf=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},Cf=function(e){return e.getParam("table_row_advtab",!0,"boolean")},zf=function(e){return e.getParam("table_advtab",!0,"boolean")},Sf=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Tf=function(e){return e.getParam("table_grid",!0,"boolean")},Of=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Ef=function(e){return e.getParam("table_cell_class_list",[],"array")},Af=function(e){return e.getParam("table_row_class_list",[],"array")},Df=function(e){return e.getParam("table_class_list",[],"array")},Mf=function(e){return"relative"===pf(e)||!0===hf(e)},Nf=function(e){return"fixed"===pf(e)||!1===hf(e)},Rf=function(e){return"responsive"===pf(e)},Bf=function(e){return e.getParam("table_toolbar",uf)},Pf=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Lf=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return R(r,n)?n:t},If=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",gf,"string");return W(t,(function(e){return e===n})).getOr(gf)},Hf=function(e){return"preservetable"===If(e)},Ff=function(e){return"resizetable"===If(e)},jf=function(e){var t=e.getParam("table_clone_elements");return o(t)?E.some(t.split(/[ ,]/)):Array.isArray(t)?E.some(t):E.none()},Vf=function(e){var t=e.getParam("object_resizing",!0);return o(t)?"table"===t:t},Uf=function(e){return e.getParam("table_background_color_map",[],"array")},qf=function(e){return e.getParam("table_border_color_map",[],"array")},Wf=function(e,t){return Mf(e)?pc.percentageSize(t):Nf(e)?pc.pixelSize(t):pc.getTableSize(t)},$f=function(e){tr(e,"width")},Gf=function(e){var t=qa(e);ws(e,E.some(t),E.none()),$f(e)},Kf=function(e){var t=Ua(e);ws(e,E.some(t),E.none()),$f(e)},Xf=function(e){vr(e,"width");var t=Dr(e),n=t.length>0?t:Ar(e);I(n,(function(e){vr(e,"width"),$f(e)})),$f(e)},Yf=Gf,Jf=Kf,Qf=Xf,Zf=function(e){var t=so.fromTable(e);so.hasColumns(t)||I(Ar(e),(function(e){var t=gr(e,"width");dr(e,"width",t),tr(e,"width")}))},ed=function(){var e=vt.fromTag("div");return mr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Oo(Mn(),e),e},td=function(e,t){return e.inline?ts.body(Wc(e),ed(),t):ts.only(vt.fromDom(e.getDoc()),t)},nd=function(e,t){e.inline&&Bo(t.parent())},rd="bar-",od=function(e){return"false"!==Zn(e,"data-mce-resize")},id=function(e){var t,n,r=E.none(),o=E.none(),i=E.none(),a=function(e){return"TABLE"===e.nodeName},c=function(){return o},u=function(){return i.getOr(ts.only(vt.fromDom(e.getBody()),od))},s=function(t){return Wf(e,t)},l=function(){return Hf(e)?Ju():Yu()},f=function(e){return Cs(e).columns},d=function(r,o,i){var a=xe(o,"e");if(""===n&&Yf(r),i!==t&&""!==n){dr(r,"width",n);var c=l(),u=s(r),d=Hf(e)||a?f(r)-1:0;ju(r,i-t,d,c,u)}else if(Zc(n)){var m=parseFloat(n.replace("%","")),g=i*m/t;dr(r,"width",g+"%")}eu(n)&&Zf(r)},m=function(){o.each((function(e){e.destroy()})),i.each((function(t){nd(e,t)}))};return e.on("init",(function(){var t=td(e,od);if(i=E.some(t),Vf(e)&&kf(e)){var n=l(),a=Yl.create(t,n,s);a.on(),a.events.startDrag.bind((function(t){r=E.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Zl(e,n,$c(n),Gc(n),rd+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,o=n.dom;Jc(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ef(e,o,$c(o),Gc(o),rd+t.type),e.undoManager.add()})),o=E.some(a)}})),e.on("ObjectResizeStart",(function(r){var o=r.target;if(a(o)){var i=vt.fromDom(o);I(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+If(e)+"-columns")})),!_s(i)&&Nf(e)?Jf(i):!ks(i)&&Mf(e)&&Yf(i),xs(i)&&_e(r.origin,rd)&&Yf(i),t=r.width,n=Rf(e)?"":Qc(e,o).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=vt.fromDom(n),o=t.origin;_e(o,"corner-")&&d(r,o,t.width),Jc(r),rf(e,r.dom,of)}})),e.on("SwitchMode",(function(){c().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:c,lazyWire:u,destroy:m}},ad=function(e,t){return{element:e,offset:t}},cd=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return cd(e,t,n).orThunk((function(){return E.some(t)}))})):E.none()},ud=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},sd=function(e,t){var n=cd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return ad(n,ud(e,n));var r=e.property().children(n);return r.length>0?sd(e,r[r.length-1]):ad(n,ud(e,n))},ld=sd,fd=Uo(),dd=function(e){return ld(fd,e)},md=function(e,t){var n=wr(e,"colspan");if(1===n){var r=ja(e);r.each((function(n){var r=n.value/2;Va(e,r,n.unit),Va(t,r,n.unit)}))}},gd=fn("th"),pd=function(e){return X(e,(function(e){return gd(e.element)}))},hd=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},vd=function(e){var t="thead"===e.section,n=rr(yd(e.cells),"th");return t||n?{type:"header",subType:hd(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},yd=function(e){var t=j(e,(function(e){return gd(e.element)}));return 0===t.length?E.some("td"):t.length===e.length?E.some("th"):E.none()},bd=function(e){var t=L(e,(function(e){return vd(e).type})),n=R(t,"header"),r=R(t,"footer");if(n||r){var o=R(t,"body");return!n||o||r?n||o||!r?E.none():E.some("footer"):E.some("header")}return E.some("body")},wd=function(e){return re(e.all,(function(e){var t=vd(e);return"header"===t.type?E.from(t.subType):E.none()}))},kd=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},_d=function(e,t){return e.section!==t?Qt(e.element,e.cells,t,e.isNew):e},xd=function(){return{transformRow:_d,transformCell:function(e,t,n){var r=n(e.element,t),o="td"!==nn(r)?Ci(r,"td"):r;return Jt(o,e.isNew,e.isLocked)}}},Cd=function(){return{transformRow:_d,transformCell:kd}},zd=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return _d(e,n)},transformCell:kd}},Sd=function(){return{transformRow:y,transformCell:kd}},Td=function(e,t){var n=so.fromTable(e),r=wd(n).getOr(t);switch(r){case"section":return xd();case"sectionCells":return Cd();case"cells":return zd()}},Od={getTableSectionType:Td,section:xd,sectionCells:Cd,cells:zd,fallback:Sd},Ed=function(e,t,n,r){n===r?tr(e,t):Yn(e,t,n)},Ad=function(e,t,n){ne(In(e,t)).fold((function(){return To(e,n)}),(function(e){return So(e,n)}))},Dd=function(e,t){var n=$n(e,t).getOrThunk((function(){var n=vt.fromTag(t,dn(e).dom);return"thead"===t?Ad(e,"caption,colgroup",n):"colgroup"===t?Ad(e,"caption",n):Oo(e,n),n}));return Ro(n),n},Md=function(e,t){var n=[],r=[],o=function(e){return L(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Ro(t),I(e.cells,(function(e){e.isNew&&r.push(e.element),Ed(e.element,"colspan",e.colspan,1),Ed(e.element,"rowspan",e.rowspan,1),Oo(t,e.element)})),t}))},i=function(e){return K(e,(function(e){return L(e.cells,(function(e){return Ed(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Dd(e,n),a="colgroup"===n?i:o,c=a(t);No(r,c)},c=function(t){$n(e,t).each(Bo)},u=function(e,t){e.length>0?a(e,t):c(t)},s=[],l=[],f=[],d=[];return I(t,(function(e){switch(e.section){case"thead":s.push(e);break;case"tbody":l.push(e);break;case"tfoot":f.push(e);break;case"colgroup":d.push(e);break}})),u(d,"colgroup"),u(s,"thead"),u(l,"tbody"),u(f,"tfoot"),{newRows:n,newCells:r}},Nd=function(e){return L(e,(function(e){var t=wi(e.element);return I(e.cells,(function(e){var n=ki(e.element);Ed(n,"colspan",e.colspan,1),Ed(n,"rowspan",e.rowspan,1),Oo(t,n)})),t}))},Rd=function(e,t){return L(e,(function(e){return qr(e,t)}))},Bd=function(e,t){return e[t]},Pd=function(e,t){if(0===e.length)return 0;var n=e[0],r=$(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},Ld=function(e,t,n,r){var o=Bd(e,t),i="colgroup"===o.section,a=Pd(o.cells.slice(n),r),c=i?1:Pd(Rd(e.slice(t),n),r);return{colspan:a,rowspan:c}},Id=function(e,t){var n=L(e,(function(e){return L(e.cells,x)})),r=function(e,t,r,o){for(var i=e;i<e+r;i++)for(var a=t;a<t+o;a++)n[i][a]=!0};return L(e,(function(o,i){var a=K(o.cells,(function(o,a){if(!1===n[i][a]){var c=Ld(e,i,a,t);return r(i,a,c.rowspan,c.colspan),[Gt(o.element,c.rowspan,c.colspan,o.isNew)]}return[]}));return Yt(o.element,a,o.section,o.isNew)}))},Hd=function(e,t,n){var r=[];I(e.colgroups,(function(o){for(var i=[],a=0;a<e.grid.columns;a++){var c=so.getColumnAt(e,a).map((function(e){return Jt(e.element,n,!1)})).getOrThunk((function(){return Jt(t.colGap(),!0,!1)}));i.push(c)}r.push(Qt(o.element,i,"colgroup",n))}));for(var o=0;o<e.grid.rows;o++){for(var i=[],a=0;a<e.grid.columns;a++){var c=so.getAt(e,o,a).map((function(e){return Jt(e.element,n,e.isLocked)})).getOrThunk((function(){return Jt(t.gap(),!0,!1)}));i.push(c)}var u=e.all[o],s=Qt(u.element,i,u.section,n);r.push(s)}return r},Fd=function(e,t){return Hd(e,t,!1)},jd=function(e){return Id(e,_t)},Vd=function(e,t){return re(e.all,(function(e){return W(e.cells,(function(e){return _t(t,e.element)}))}))},Ud=function(e,t,n){var r=L(t.selection,(function(t){return Er(t).bind((function(t){return Vd(e,t)})).filter(n)})),o=or(r);return ur(o.length>0,o)},qd=function(e,t,n,r,o){return function(i,a,c,u,s){var l=so.fromTable(a),f=E.from(null===s||void 0===s?void 0:s.section).getOrThunk(Od.fallback),d=t(l,c).map((function(t){var n=Fd(l,u),r=e(n,t,_t,o(u),f),i=Jr(r.grid),a=jd(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:i}}));return d.bind((function(e){var t=Md(a,e.grid),o=E.from(null===s||void 0===s?void 0:s.sizing).getOrThunk((function(){return pc.getTableSize(a)})),c=E.from(null===s||void 0===s?void 0:s.resize).getOrThunk(Ju);return n(a,e.grid,e.info,{sizing:o,resize:c,section:f}),r(a),jl(i,a),tr(a,Xr),e.lockedColumns.length>0&&Yn(a,Xr,e.lockedColumns.join(",")),E.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Wd=function(e,t){return Er(t.element).bind((function(n){return Vd(e,n).map((function(e){var n=oe(oe({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},$d=function(e,t){return Ud(e,t,C).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gd=function(e,t){return t.mergable},Kd=function(e,t){return t.unmergable},Xd=function(e,t){return Ud(e,t,C)},Yd=function(e,t){return Ud(e,t,(function(e){return!e.isLocked}))},Jd=function(e,t){return Vd(e,t).exists((function(e){return!e.isLocked}))},Qd=function(e,t){return X(t,(function(t){return Jd(e,t)}))},Zd=function(e,t){return Gd(e,t).filter((function(t){return Qd(e,t.cells)}))},em=function(e,t){return Kd(e,t).filter((function(t){return Qd(e,t)}))},tm=function(e,t,n,r){var o=Gr(e).rows;if(0===o.length)return e;for(var i=t.startRow;i<=t.finishRow;i++)for(var a=t.startCol;a<=t.finishCol;a++){var c=o[i],u=qr(c,a).isLocked;jr(c,a,Jt(r(),!1,u))}return e},nm=function(e,t,n,r){for(var o=Gr(e).rows,i=!0,a=0;a<o.length;a++)for(var c=0;c<$r(o[0]);c++){var u=o[a],s=qr(u,c),l=s.element,f=n(l,t);!0===f&&!1===i?jr(u,c,Jt(r(),!0,s.isLocked)):!0===f&&(i=!1)}return e},rm=function(e,t){return U(e,(function(e,n){return B(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},om=function(e,t,n,r){return t>0&&t<e[0].cells.length&&I(e,(function(e){var o=e.cells[t-1],i=e.cells[t],a=n(i.element,o.element);a&&jr(e,t,Jt(r(),!0,i.isLocked))})),e},im=function(e,t,n,r){var o=Gr(e).rows;if(t>0&&t<o.length){var i=o[t-1].cells,a=rm(i,n);I(a,(function(e){for(var i=E.none(),a=t;a<o.length;a++)for(var c=function(t){var c=o[a],u=qr(c,t),s=n(u.element,e.element);s&&(i.isNone()&&(i=E.some(r())),i.each((function(e){jr(c,t,Jt(e,!0,u.isLocked))})))},u=0;u<$r(o[0]);u++)c(u)}))}return e},am=function(e){var t=function(t){return am(e)},n=function(t){return am(e)},r=function(t){return am(t(e))},o=function(t){return am(e)},i=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},u=function(t){return t(e)},s=function(t){return t(e)},l=function(){return E.some(e)};return{isValue:C,isError:x,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:t,orThunk:n,fold:c,map:r,mapError:o,each:i,bind:a,exists:u,forall:s,toOptional:l}},cm=function(e){var t=function(e){return e()},n=function(){return _(String(e))()},r=y,o=function(e){return e()},i=function(t){return cm(e)},a=function(t){return cm(t(e))},c=function(t){return cm(e)},u=function(t,n){return t(e)};return{isValue:x,isError:C,getOr:y,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:u,map:i,mapError:a,each:g,bind:c,exists:x,forall:C,toOptional:E.none}},um=function(e,t){return e.fold((function(){return cm(t)}),am)},sm={value:am,error:cm,fromOption:um},lm=function(e,t,n){if(e.row>=t.length||e.column>$r(t[0]))return sm.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),o=r[0].cells.slice(e.column),i=$r(n[0]),a=n.length;return sm.value({rowDelta:r.length-a,colDelta:o.length-i})},fm=function(e,t){var n=$r(e[0]),r=$r(t[0]);return{rowDelta:0,colDelta:n-r}},dm=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},mm=function(e,t,n,r){var o="colgroup"===t.section?n.col:n.cell;return P(e,(function(e){return Jt(o(),!0,r(e))}))},gm=function(e,t,n,r){var o=e[e.length-1];return e.concat(P(t,(function(){var e="colgroup"===o.section?n.colgroup:n.row,t=Kr(o,e,y),i=mm(t.cells.length,t,n,(function(e){return Ht(r,e.toString())}));return Vr(t,i)})))},pm=function(e,t,n,r){return L(e,(function(e){var o=mm(t,e,n,x);return Hr(e,r,o)}))},hm=function(e,t,n){return L(e,(function(e){return U(n,(function(n,r){var o=mm(1,e,t,C)[0];return Fr(n,r,o)}),e)}))},vm=function(e,t,n){var r=t.colDelta<0?pm:y,o=t.rowDelta<0?gm:y,i=Jr(e),a=$r(e[0]),c=B(i,(function(e){return e===a-1})),u=r(e,Math.abs(t.colDelta),n,c?a-1:a),s=Jr(u);return o(u,Math.abs(t.rowDelta),n,J(s,C))},ym=function(e,t,n,r){var o=qr(e[t],n),i=w(r,o.element),a=e[t];return e.length>1&&$r(a)>1&&(n>0&&i(Wr(a,n-1))||n<a.cells.length-1&&i(Wr(a,n+1))||t>0&&i(Wr(e[t-1],n))||t<e.length-1&&i(Wr(e[t+1],n)))},bm=function(e,t,n,r,o,i){for(var a=e.row,c=e.column,u=n.length,s=$r(n[0]),l=a+u,f=c+s+i.length,d=J(i,C),m=a;m<l;m++)for(var g=0,p=c;p<f;p++)if(d[p])g++;else{ym(t,m,p,o)&&nm(t,Wr(t[m],p),o,r.cell);var h=p-c-g,v=qr(n[m-a],h),y=v.element,b=r.replace(y);jr(t[m],p,Jt(b,!0,v.isLocked))}return t},wm=function(e,t,n){var r=$r(t[0]),o=Gr(t).cols.length+e.row,i=P(r-e.column,(function(t){return t+e.column})),a=W(i,(function(e){return X(n,(function(t){return t!==e}))})).getOr(r-1);return{row:o,column:a}},km=function(e,t,n){return j(n,(function(n){return n>=e.column&&n<=$r(t[0])+e.column}))},_m=function(e,t,n,r,o){var i=Jr(t),a=wm(e,t,i),c=Gr(n).rows,u=km(a,c,i),s=lm(a,t,c);return s.map((function(e){var n=oe(oe({},e),{colDelta:e.colDelta-u.length}),i=vm(t,n,r),s=Jr(i),l=km(a,c,s);return bm(a,i,c,r,o,l)}))},xm=function(e,t,n,r,o){om(t,e,o,r.cell);var i=dm(n,t),a=vm(n,i,r),c=dm(t,a),u=vm(t,c,r);return L(u,(function(t,n){return Hr(t,e,a[n].cells)}))},Cm=function(e,t,n,r,o){im(t,e,o,r.cell);var i=Jr(t),a=fm(t,n),c=oe(oe({},a),{colDelta:a.colDelta-i.length}),u=vm(t,c,r),s=Gr(u),l=s.cols,f=s.rows,d=Jr(u),m=fm(n,t),g=oe(oe({},m),{colDelta:m.colDelta+d.length}),p=hm(n,r,d),h=vm(p,g,r);return l.concat(f.slice(0,e)).concat(h).concat(f.slice(e,f.length))},zm=function(e,t,n,r){return Kr(e,(function(e){return r(e,n)}),t)},Sm=function(e,t,n,r,o){var i=Gr(e),a=i.rows,c=i.cols,u=a.slice(0,t),s=a.slice(t),l=zm(a[n],(function(e,n){var i=t>0&&t<a.length&&r(Wr(a[t-1],n),Wr(a[t],n)),c=i?qr(a[t],n):Jt(o(e.element,r),!0,e.isLocked);return c}),r,o);return c.concat(u).concat([l]).concat(s)},Tm=function(e,t,n,r,o,i,a){if("colgroup"!==n&&r)return qr(e,t);var c=qr(e,o);return Jt(a(c.element,i),!0,!1)},Om=function(e,t,n,r,o){return L(e,(function(e){var i=t>0&&t<$r(e)&&r(Wr(e,t-1),Wr(e,t)),a=Tm(e,t,e.section,i,n,r,o);return Fr(e,t,a)}))},Em=function(e,t){return K(e,(function(e){var n=e.cells,r=V(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Qt(e.element,r,e.section,e.isNew)]:[]}))},Am=function(e,t,n){var r=Gr(e),o=r.rows,i=r.cols;return i.concat(o.slice(0,t)).concat(o.slice(n+1))},Dm=function(e,t,n,r){return void 0!==Wr(e[t],n)&&t>0&&r(Wr(e[t-1],n),Wr(e[t],n))},Mm=function(e,t,n){return t>0&&n(Wr(e,t-1),Wr(e,t))},Nm=function(e,t,n,r){return Dm(e,t,n,r)||Mm(e[t],n,r)},Rm=function(e,t){var n=X(t,y)&&pd(e.cells);return n?C:function(e,n,r){var o=nn(e.element);return!("th"===o&&t[r])}},Bm=function(e,t){var n=X(t,y)&&pd(e);return n?C:function(e,n,r){var o=nn(e.element);return!("th"===o&&t[n])}},Pm=function(e,t,n,r){var o=function(e){return"row"===e?_r(t):kr(t)},i=function(e){return o(e)?e+"group":e};if(e)return gd(t)?i(n):null;if(r&&gd(t)){var a="row"===n?"col":"row";return i(a)}return null},Lm=function(e,t){return function(n,r,o){return E.some(Pm(e,n.element,"col",t[o]))}},Im=function(e,t){return function(n,r){return E.some(Pm(e,n.element,"row",t[r]))}},Hm=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Fm=function(e,t,n,r,o,i,a){var c=function(e){return B(t,(function(t){return n(e.element,t.element)}))};return L(e,(function(e,t){return Ur(e,(function(e,u){if(c(e)){var s=a(e,t,u)?o(e,n,r):e;return i(s,t,u).each((function(e){Qn(s.element,{scope:E.from(e)})})),s}return e}))}))},jm=function(e,t,n){return K(e,(function(r,o){return Nm(e,o,t,n)?[]:[qr(r,t)]}))},Vm=function(e,t,n){var r=e[t];return K(r.cells,(function(r,o){return Nm(e,t,o,n)?[]:[r]}))},Um=function(e,t,n,r,o){var i=Gr(e).rows,a=K(t,(function(e){return jm(i,e,r)})),c=L(e,(function(e){return pd(e.cells)})),u=Bm(a,c),s=Im(n,c);return Fm(e,a,r,o,Hm,s,u)},qm=function(e,t,n,r,o,i,a){var c=Gr(e),u=c.cols,s=c.rows,l=s[t[0]],f=K(t,(function(e){return Vm(s,e,o)})),d=L(l.cells,(function(e,t){return pd(jm(s,t,o))})),m=ie([],s,!0);I(t,(function(e){m[e]=a.transformRow(s[e],n)}));var g=u.concat(m),p=Rm(l,d),h=Lm(r,d);return Fm(g,f,o,i,a.transformCell,h,p)},Wm=function(e,t,n,r){var o=Gr(e).rows,i=L(t,(function(e){return qr(o[e.row],e.column)}));return Fm(e,i,n,r,Hm,E.none,C)},$m=function(e){var t=function(e,t){var n=B(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return U(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gm=fn("col"),Km=fn("colgroup"),Xm=function(e){return"tr"===nn(e)||Km(e)},Ym=function(e){var t=br(e,"colspan",1),n=br(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Jm=function(e,t){void 0===t&&(t=Ym);var n=function(t){return Gm(t.element)?e.col(t):e.cell(t)},r=function(t){return Km(t.element)?e.colgroup(t):e.row(t)},o=function(e){if(Xm(e))return r({element:e});var o=n(t(e));return i=E.some({item:e,replacement:o}),o},i=E.none(),a=function(e,t){return i.fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.replacement:o(e)}))};return{getOrInit:a}},Qm=function(e){return function(t){var n=[],r=function(e,t){return W(n,(function(n){return t(n.item,e)}))},o=function(r){var o="td"===e?{scope:null}:{},i=t.replace(r,e,o);return n.push({item:r,sub:i}),i},i=function(e,t){return Xm(e)||Gm(e)?e:r(e,t).fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.sub:o(e)}))};return{replaceOrInit:i}}},Zm=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},eg=function(e){var t=function(t){var n=Zm(t);return n.each((function(e){return Yn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return vr(r,"width"),vr(t,"width"),n.each((function(e){return Yn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=or(L(e,Zm));if(0===t.length)return E.none();var n=t[0],r=["row","col"],o=B(t,(function(e){return e!==n&&R(r,e)}));return o?E.none():E.from(n)};return vr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Yn(e[0],"scope",t+"group")})),v(e[0])};return{unmerge:t,merge:n}},tg={modification:Jm,transform:Qm,merging:eg},ng=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rg=function(e,t){var n=e.property().name(t);return R(["ol","ul"],n)},og=function(e,t){var n=e.property().name(t);return R(ng,n)},ig=function(e,t){return R(["br","img","hr","input"],e.property().name(t))},ag=Uo(),cg=function(e){return og(ag,e)},ug=function(e){return rg(ag,e)},sg=function(e){return ig(ag,e)},lg=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return X(e,(function(e){return t(e)||un(e)&&0===Ho(e).trim().length}))},r=function(e){return"li"===nn(e)||jn(e,ug).isSome()},o=function(e){return bn(e).map((function(e){return!!cg(e)||!!sg(e)&&"img"!==nn(e)})).getOr(!1)},i=function(e){return Ec(e).bind((function(n){var i=o(n);return pn(n).map((function(o){return!0===i||r(o)||t(n)||cg(o)&&!_t(e,o)?[]:[vt.fromTag("br")]}))})).getOr([])},a=function(){var t=K(e,(function(e){var t=wn(e);return n(t)?[]:t.concat(i(e))}));return 0===t.length?[vt.fromTag("br")]:t},c=a();Ro(e[0]),No(e[0],c)},fg=function(e){return _l(e,!0)},dg=function(e){var t=Ar(e);0===t.length&&Bo(e)},mg=function(e,t){return{grid:e,cursor:t}},gg=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return ur(fg(t),t)}))}))},pg=function(e,t,n){var r,o,i=Gr(e).rows;return E.from(null===(o=null===(r=i[t])||void 0===r?void 0:r.cells[n])||void 0===o?void 0:o.element).filter(fg).orThunk((function(){return gg(i)}))},hg=function(e,t,n){var r=pg(e,t,n);return mg(e,r)},vg=function(e){var t=function(e,t){var n=B(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return U(e,t,[]).sort((function(e,t){return e.row-t.row}))},yg=function(e,t,n,r){var o=t[0].row,i=vg(t),a=V(i,(function(e,t){var i=Sm(e.grid,o,t.row+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return hg(a,o,t[0].column)},bg=function(e,t,n,r){var o=vg(t),i=o[o.length-1],a=i.row+i.rowspan,c=V(o,(function(e,t){return Sm(e,a,t.row,n,r.getOrInit)}),e);return hg(c,a,t[0].column)},wg=function(e,t,n,r){var o=t.details,i=$m(o),a=i[0].column,c=V(i,(function(e,t){var o=Om(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return hg(c,o[0].row,a)},kg=function(e,t,n,r){var o=t.details,i=o[o.length-1],a=i.column+i.colspan,c=$m(o),u=V(c,(function(e,t){return Om(e,a,t.column,n,r.getOrInit)}),e);return hg(u,o[0].row,a)},_g=function(e,t,n,r){var o=$m(t),i=L(o,(function(e){return e.column})),a=Um(e,i,!0,n,r.replaceOrInit);return hg(a,t[0].row,t[0].column)},xg=function(e,t,n,r){var o=Wm(e,t,n,r.replaceOrInit);return hg(o,t[0].row,t[0].column)},Cg=function(e,t,n,r){var o=$m(t),i=L(o,(function(e){return e.column})),a=Um(e,i,!1,n,r.replaceOrInit);return hg(a,t[0].row,t[0].column)},zg=function(e,t,n,r){var o=Wm(e,t,n,r.replaceOrInit);return hg(o,t[0].row,t[0].column)},Sg=function(e,t){return function(n,r,o,i,a){var c=vg(r),u=L(c,(function(e){return e.row})),s=qm(n,u,e,t,o,i.replaceOrInit,a);return hg(s,r[0].row,r[0].column)}},Tg=Sg("thead",!0),Og=Sg("tbody",!1),Eg=Sg("tfoot",!1),Ag=function(e,t,n,r){var o=$m(t.details),i=Em(e,L(o,(function(e){return e.column}))),a=i.length>0?i[0].cells.length-1:0;return hg(i,o[0].row,Math.min(o[0].column,a))},Dg=function(e,t,n,r){var o=vg(t),i=Am(e,o[0].row,o[o.length-1].row),a=i.length>0?i.length-1:0;return hg(i,Math.min(t[0].row,a),t[0].column)},Mg=function(e,t,n,r){var o=t.cells;lg(o);var i=tm(e,t.bounds,n,r.merge(o));return mg(i,E.from(o[0]))},Ng=function(e,t,n,r){var o=function(e,t){return nm(e,t,n,r.unmerge(t))},i=V(t,o,e);return mg(i,E.from(t[0]))},Rg=function(e,t,n,r){var o=function(e,t){var n=so.fromTable(e);return Hd(n,t,!0)},i=o(t.clipboard,t.generators),a=Wt(t.row,t.column),c=_m(a,e,i,t.generators,n);return c.fold((function(){return mg(e,E.some(t.element))}),(function(e){return hg(e,t.row,t.column)}))},Bg=function(e,t,n){var r=Ir(e,n.section),o=so.generate(r);return Hd(o,t,!0)},Pg=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[0].column,a=o[t.cells[0].row],c=Bg(t.clipboard,t.generators,a),u=xm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Lg=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=o[t.cells[0].row],c=Bg(t.clipboard,t.generators,a),u=xm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Ig=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[0].row,a=o[i],c=Bg(t.clipboard,t.generators,a),u=Cm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Hg=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=o[t.cells[0].row],c=Bg(t.clipboard,t.generators,a),u=Cm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Fg=function(e,t){var n=so.fromTable(e),r=Xd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,o=t.column+t.colspan,i=G(L(n.all,(function(e){return j(e.cells,(function(e){return e.column>=r&&e.column<o}))})));return yd(i)})).getOr("")},jg=function(e,t){var n=so.fromTable(e),r=Xd(n,t);return r.bind(yd).getOr("")},Vg=function(e,t){var n=so.fromTable(e),r=Xd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,o=t.row+t.rowspan,i=n.all.slice(r,o);return bd(i)})).getOr("")},Ug=function(e,t,n,r){return qu(e,t,n,r.sizing)},qg=function(e,t,n,r){return Uu(e,t,n,r.sizing,r.resize)},Wg=function(e,t){return B(t,(function(e){return 0===e.column&&e.isLocked}))},$g=function(e,t){return B(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gg=function(e,t){var n=ji(e),r=$m(t);return U(r,(function(e,t){var r=n[t.column],o=r.map(Ii).getOr(0);return e+o}),0)},Kg=function(e){return function(t,n){return Xd(t,n).filter((function(n){var r=e?Wg:$g;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gg(t,e)}}))}},Xg=function(e,t){return Yd(e,t).map((function(t){return{details:t,pixelDelta:-Gg(e,t)}}))},Yg=function(e){return function(t,n){return $d(t,n).filter((function(n){var r=e?Wg:$g;return!r(t,n.cells)}))}},Jg=tg.transform("th"),Qg=tg.transform("td"),Zg=qd(yg,Xd,g,g,tg.modification),ep=qd(bg,Xd,g,g,tg.modification),tp=qd(wg,Kg(!0),qg,g,tg.modification),np=qd(kg,Kg(!1),qg,g,tg.modification),rp=qd(Ag,Xg,qg,dg,tg.modification),op=qd(Dg,Xd,g,dg,tg.modification),ip=qd(_g,Yd,g,g,Jg),ap=qd(Cg,Yd,g,g,Qg),cp=qd(Tg,Yd,g,g,Jg),up=qd(Og,Yd,g,g,Qg),sp=qd(Eg,Yd,g,g,Qg),lp=qd(xg,Yd,g,g,Jg),fp=qd(zg,Yd,g,g,Qg),dp=qd(Mg,Zd,Ug,g,tg.merging),mp=qd(Ng,em,Ug,g,tg.merging),gp=qd(Rg,Wd,Ug,g,tg.modification),pp=qd(Pg,Yg(!0),g,g,tg.modification),hp=qd(Lg,Yg(!1),g,g,tg.modification),vp=qd(Ig,$d,g,g,tg.modification),yp=qd(Hg,$d,g,g,tg.modification),bp=Fg,wp=jg,kp=Vg,_p=function(e,t,n){var r=function(e){return"table"===nn(Wc(e))},o=function(t){return!1===r(e)||Cs(t).rows>1},i=function(t){return!1===r(e)||Cs(t).columns>1},a=jf(e),c=Ff(e)?g:md,u=function(t){switch(Lf(e)){case"section":return Od.section();case"sectionCells":return Od.sectionCells();case"cells":return Od.cells();default:return Od.getTableSectionType(t,"section")}},s=function(n,r){return r.cursor.fold((function(){var r=Ar(n);return te(r).filter(Dn).map((function(r){t.clear(n);var o=e.dom.createRng();return o.selectNode(r.dom),e.selection.setRng(o),Yn(r,"data-mce-selected","1"),o}))}),(function(r){var o=dd(r),i=e.dom.createRng();return i.setStart(o.element.dom,o.offset),i.setEnd(o.element.dom,o.offset),e.selection.setRng(i),t.clear(n),E.some(i)}))},l=function(t,n,r,o,i){return function(c,l,f){void 0===f&&(f=!1),Jc(c);var d=o(),m=vt.fromDom(e.getDoc()),g=Fc(r,m,a),p={sizing:Wf(e,c),resize:Ff(e)?Yu():Ju(),section:u(c)};return n(c)?t(d,c,l,g,p).bind((function(t){I(t.newRows,(function(t){Jl(e,t.dom)})),I(t.newCells,(function(t){Ql(e,t.dom)}));var n=s(c,t);return Dn(c)&&(Jc(c),f||rf(e,c.dom,i)),n.map((function(e){return{rng:e,effect:i}}))})):E.none()}},f=l(op,o,g,n,af),d=l(rp,i,g,n,af),m=l(Zg,C,g,n,af),p=l(ep,C,g,n,af),h=l(tp,C,c,n,af),v=l(np,C,c,n,af),y=l(dp,C,g,n,af),b=l(mp,C,g,n,af),w=l(pp,C,g,n,af),k=l(hp,C,g,n,af),_=l(vp,C,g,n,af),x=l(yp,C,g,n,af),z=l(gp,C,g,n,cf),S=l(lp,C,g,n,af),T=l(fp,C,g,n,af),O=l(ip,C,g,n,af),A=l(ap,C,g,n,af),D=l(cp,C,g,n,af),M=l(up,C,g,n,af),N=l(sp,C,g,n,af),R=wp,B=bp,P=kp;return{deleteRow:f,deleteColumn:d,insertRowsBefore:m,insertRowsAfter:p,insertColumnsBefore:h,insertColumnsAfter:v,mergeCells:y,unmergeCells:b,pasteColsBefore:w,pasteColsAfter:k,pasteRowsBefore:_,pasteRowsAfter:x,pasteCells:z,makeCellsHeader:S,unmakeCellsHeader:T,makeColumnsHeader:O,unmakeColumnsHeader:A,makeRowsHeader:D,makeRowsBody:M,makeRowsFooter:N,getTableRowType:P,getTableCellType:R,getTableColType:B}},xp={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Cp=function(){return vt.fromTag("th")},zp=function(){return vt.fromTag("td")},Sp=function(){return vt.fromTag("col")},Tp=function(e,t,n,r){for(var o=vt.fromTag("tr"),i=0;i<e;i++){var a=r<t||i<n?Cp():zp();i<n&&Yn(a,"scope","row"),r<t&&Yn(a,"scope","col"),Oo(a,vt.fromTag("br")),Oo(o,a)}return o},Op=function(e){var t=vt.fromTag("colgroup");return P(e,(function(){return Oo(t,Sp())})),t},Ep=function(e,t,n,r){return P(e,(function(e){return Tp(t,n,r,e)}))},Ap=function(e,t,n,r,o,i){void 0===i&&(i=xp);var a=vt.fromTag("table"),c="cells"!==o;mr(a,i.styles),Jn(a,i.attributes),i.colGroups&&Oo(a,Op(t));var u=Math.min(e,n);if(c&&n>0){var s=vt.fromTag("thead");Oo(a,s);var l="sectionCells"===o?u:0,f=Ep(n,t,l,r);No(s,f)}var d=vt.fromTag("tbody");Oo(a,d);var m=c?e-u:e,g=c?0:n,p=Ep(m,t,g,r);return No(d,p),a},Dp=function(e){return e.dom.innerHTML},Mp=function(e){var t=vt.fromTag("div"),n=vt.fromDom(e.dom.cloneNode(!0));return Oo(t,n),Dp(t)},Np=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Rp=function(e,t){Gn(t,"td,th").each(w(Np,e))},Bp=function(e,t){I(Hn(t,"tr"),(function(t){Jl(e,t.dom),I(Hn(t,"th,td"),(function(t){Ql(e,t.dom)}))}))},Pp=function(e){return o(e)&&-1!==e.indexOf("%")},Lp=function(e,t,n,r,o){var i=wf(e),a={styles:i,attributes:bf(e),colGroups:Pf(e)};return e.undoManager.ignore((function(){var i=Ap(n,t,o,r,Lf(e),a);Yn(i,"data-mce-id","__mce");var c=Mp(i);e.insertContent(c),e.addVisual()})),Gn(Wc(e),'table[data-mce-id="__mce"]').map((function(t){return Nf(e)?Jf(t):Rf(e)?Qf(t):(Mf(e)||Pp(i.width))&&Yf(t),Jc(t),tr(t,"data-mce-id"),Bp(e,t),Rp(e,t),t.dom})).getOr(null)},Ip=function(e,t,n,r,o){void 0===r&&(r={});var i=function(e){return m(e)&&e>0};if(i(t)&&i(n)){var a=r.headerRows||0,c=r.headerColumns||0;return Lp(e,n,t,c,a)}return console.error(o),null},Hp=function(e){return function(){return e().fold((function(){return[]}),(function(e){return L(e,(function(e){return e.dom}))}))}},Fp=function(e){return function(t){var n=t.length>0?E.some(Uc(t)):E.none();e(n)}},jp=function(e){return function(t,n,r){void 0===r&&(r={});var o=Ip(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),o}},Vp=function(e,t,n,r){return{insertTable:jp(e),setClipboardRows:Fp(t.setRows),getClipboardRows:Hp(t.getRows),setClipboardCols:Fp(t.setColumns),getClipboardCols:Hp(t.getColumns),resizeHandler:n,selectionTargets:r}},Up=function(e,t,n){var r=br(e,t,1);1===n||r<=1?tr(e,t):Yn(e,t,Math.min(n,r))},qp=function(e,t,n){if(so.hasColumns(e)){var r=j(so.justColumns(e),(function(e){return e.column>=t&&e.column<n})),o=L(r,(function(e){var r=ki(e.element);return Up(r,"span",n-t),r})),i=vt.fromTag("colgroup");return No(i,o),[i]}return[]},Wp=function(e,t,n){return L(e.all,(function(e){var r=j(e.cells,(function(e){return e.column>=t&&e.column<n})),o=L(r,(function(e){var r=ki(e.element);return Up(r,"colspan",n-t),r})),i=vt.fromTag("tr");return No(i,o),i}))},$p=function(e,t){var n=so.fromTable(e),r=Yd(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,o=t.column+t.colspan,i=qp(n,r,o),a=Wp(n,r,o);return ie(ie([],i,!0),a,!0)}))},Gp=function(e,t,n){var r=so.fromTable(e),o=Xd(r,t);return o.bind((function(e){var t=Hd(r,n,!1),o=Gr(t).rows,i=o.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=K(i,(function(e){var t=j(e.cells,(function(e){return!e.isLocked}));return t.length>0?[oe(oe({},e),{cells:t})]:[]})),c=jd(a);return ur(c.length>0,c)})).map((function(e){return Nd(e)}))},Kp=tinymce.util.Tools.resolve("tinymce.util.Tools"),Xp=function(e,t,n){var r,o=e.select("td,th",t),i=function(t,r){for(var o=0;o<r.length;o++){var i=e.getStyle(r[o],n);if("undefined"===typeof t&&(t=i),t!==i)return""}return t};return i(r,o)},Yp=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Jp=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Qp=function(e,t){Kp.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Zp=function(e,t){Kp.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},eh=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],th=function(e){return{value:e}},nh=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rh=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,oh=function(e){return nh.test(e)||rh.test(e)},ih=function(e){return we(e,"#").toUpperCase()},ah=function(e){return oh(e)?E.some({value:ih(e)}):E.none()},ch=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},uh=function(e){var t=ch(e.red)+ch(e.green)+ch(e.blue);return th(t)},sh=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,lh=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,fh=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},dh=function(e,t,n,r){var o=parseInt(e,10),i=parseInt(t,10),a=parseInt(n,10),c=parseFloat(r);return fh(o,i,a,c)},mh=function(e){if("transparent"===e)return E.some(fh(0,0,0,0));var t=sh.exec(e);if(null!==t)return E.some(dh(t[1],t[2],t[3],"1"));var n=lh.exec(e);return null!==n?E.some(dh(n[1],n[2],n[3],n[4])):E.none()},gh=function(e){return ah(e).orThunk((function(){return mh(e).map(uh)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],c=r[3];return uh(fh(o,i,a,c))}))},ph=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},hh=function(e){var t=ph(E.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(E.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(E.some(e))};return{clear:r,isSet:o,get:i,set:a}},vh=function(){return hh((function(e){return e.unbind()}))},yh=function(){var e=hh(g),t=function(t){return e.get().each(t)};return oe(oe({},e),{on:t})},bh=function(e,t,n,r){return function(o){var i=vh(),a=Te(r),c=function(){var c=xu(t),u=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(o.setActive(!B(c,u)),i.set(e.formatter.formatChanged(n,(function(e){return o.setActive(!e)}),!0))):(o.setActive(X(c,u)),i.set(e.formatter.formatChanged(n,o.setActive,!1,{value:r})))};return e.initialized?c():e.on("init",c),i.clear}},wh=function(e){return Ft(e,"menu")},kh=function(e){return L(e,(function(e){var t=e.text||e.title;return wh(e)?{text:t,items:kh(e.menu)}:{text:t,value:e.value}}))},_h=function(e,t,n,r,o){return L(n,(function(n){var i=n.text||n.title;return wh(n)?{type:"nestedmenuitem",text:i,getSubmenuItems:function(){return _h(e,t,n.menu,r,o)}}:{text:i,type:"togglemenuitem",onAction:function(){return o(n.value)},onSetup:bh(e,t,r,n.value)}}))},xh=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},Ch=function(e){return K(e,(function(e){return wh(e)?[oe(oe({},e),{menu:Ch(e.menu)})]:Se(e.value)?[e]:[]}))},zh=function(e,t,n,r,o){return function(i){return i(_h(e,t,n,r,o))}},Sh=function(e,t,n){var r=L(t,(function(e){return{text:e.title,value:"#"+gh(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,o="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=o,r))}}]},Th=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Oh=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Eh=function(e){var t=kh(Ef(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},Ah=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:eh}],Dh=function(e){return Ah.concat(Eh(e).toArray())},Mh=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(kh(yf(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],o={name:"borderwidth",type:"input",label:"Border width"},i="cell"===t?[o].concat(r):r;return{title:"Advanced",name:"advanced",items:i}},Nh=function(e){return function(t,n){var r=t.dom,o=function(t,o){e&&!o||r.setAttrib(n,t,o)},i=function(t,o){e&&!o||r.setStyle(n,t,o)},a=function(r,o){e&&!o||(""===o?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:o},n))};return{setAttrib:o,setStyle:i,setFormat:a}}},Rh={normal:Nh(!1),ifTruthy:Nh(!0)},Bh=function(e){return function(t){return _e(t,"rgb")?e.toHex(t):t}},Ph=function(e,t){var n=vt.fromDom(t);return{borderwidth:hr(n,"border-width").getOr(""),borderstyle:hr(n,"border-style").getOr(""),bordercolor:hr(n,"border-color").map(Bh(e)).getOr(""),backgroundcolor:hr(n,"background-color").map(Bh(e)).getOr("")}},Lh=function(e){var t=e[0],n=e.slice(1);return I(n,(function(e){I(Tt(t),(function(n){Et(e,(function(e,r){var o=t[n];""!==o&&n===r&&o!==e&&(t[n]="")}))}))})),t},Ih=function(e,t,n,r){return W(e,(function(e){return!s(n.formatter.matchNode(r,t+e))})).getOr("")},Hh=w(Ih,["left","center","right"],"align"),Fh=w(Ih,["top","middle","bottom"],"valign"),jh=function(e,t){var n=wf(e),r=bf(e),o=function(e){return{borderstyle:It(n,"border-style").getOr(""),bordercolor:Bh(e)(It(n,"border-color").getOr("")),backgroundcolor:Bh(e)(It(n,"background-color").getOr(""))}},i={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Of(e)&&t?{border:t}:It(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},c=t?o(e.dom):{},u=function(){var e=It(n,"border-spacing").or(It(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=It(n,"border-padding").or(It(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return oe(oe({},e),t)},s=oe(oe(oe(oe(oe(oe({},i),n),r),c),a()),u());return s},Vh=function(e){return Mr(vt.fromDom(e)).map((function(t){var n={selection:Uc(e.cells)};return kp(t,n)})).getOr("")},Uh=function(e,t,n){var r=function(t,n){var r=hr(vt.fromDom(n),"border-width");return Of(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Xp(e.dom,n,"border-width")||Xp(e.dom,n,"border")},o=e.dom,i=Of(e)?o.getStyle(t,"border-spacing")||o.getAttrib(t,"cellspacing"):o.getAttrib(t,"cellspacing")||o.getStyle(t,"border-spacing"),a=Of(e)?Xp(o,t,"padding")||o.getAttrib(t,"cellpadding"):o.getAttrib(t,"cellpadding")||Xp(o,t,"padding");return oe({width:o.getStyle(t,"width")||o.getAttrib(t,"width"),height:o.getStyle(t,"height")||o.getAttrib(t,"height"),cellspacing:i,cellpadding:a,border:r(o,t),caption:!!o.select("caption",t)[0],class:o.getAttrib(t,"class",""),align:Hh(e,t)},n?Ph(o,t):{})},qh=function(e,t,n){var r=e.dom;return oe({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:Vh(t),align:Hh(e,t)},n?Ph(r,t):{})},Wh=function(e,t,n,r){var o=e.dom,i=r.getOr(t),a=function(e,t){return o.getStyle(e,t)||o.getAttrib(e,t)};return oe({width:a(i,"width"),height:a(t,"height"),scope:o.getAttrib(t,"scope"),celltype:qc(t),class:o.getAttrib(t,"class",""),halign:Hh(e,t),valign:Fh(e,t)},n?Ph(o,t):{})},$h=function(e,t){var n=so.fromTable(e),r=so.justCells(n),o=j(r,(function(e){return B(t,(function(t){return _t(e.element,t)}))}));return L(o,(function(e){return{element:e.element.dom,column:so.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gh=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Yc(n.height)),t.setStyle("width",Yc(n.width))},Kh=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Yc(t.borderwidth))},Xh=function(e,t,n){var r=1===t.length;I(t,(function(t){var o=t.element,i=r?Rh.normal(e,o):Rh.ifTruthy(e,o),a=t.column.map((function(t){return r?Rh.normal(e,t):Rh.ifTruthy(e,t)})).getOr(i);Gh(i,a,n),xf(e)&&Kh(i,n),r&&(Qp(e,o),Zp(e,o)),n.halign&&Yp(e,o,n.halign),n.valign&&Jp(e,o,n.valign)}))},Yh=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Jh=function(e,t,n,r){var o=Rt(r,(function(e,t){return n[t]!==e}));Lt(o)>0&&t.length>=1&&Mr(t[0]).each((function(n){var i=$h(n,t),a=Lt(Rt(o,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,c=Ht(o,"celltype");(a||Ht(o,"scope"))&&Xh(e,i,r),c&&Yh(e,r),rf(e,n.dom,{structure:c,style:a})}))},Qh=function(e,t,n,r){var o=r.getData();r.close(),e.undoManager.transact((function(){Jh(e,t,n,o),e.focus()}))},Zh=function(e,t){var n=Mr(t[0]).map((function(n){return L($h(n,t),(function(t){return Wh(e,t.element,xf(e),t.column)}))}));return Lh(n.getOrDie())},ev=function(e,t){var n=xu(t);if(0!==n.length){var r=Zh(e,n),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:Dh(e)},Mh(e,"cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Dh(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:xf(e)?o:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(Qh,e,n,r)})}},tv=function(e){var t=kh(Af(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},nv=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rv=function(e){return nv.concat(tv(e).toArray())},ov=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Yc(t.height))},iv=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},av=function(e,t,n,r){var o=1===t.length;I(t,(function(t){var i=o?Rh.normal(e,t):Rh.ifTruthy(e,t);ov(i,n),Cf(e)&&iv(i,n),n.align!==r.align&&(Qp(e,t),Yp(e,t,n.align))}))},cv=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},uv=function(e,t,n,r){var o=Rt(r,(function(e,t){return n[t]!==e}));if(Lt(o)>0){var i=Ht(o,"type"),a=!i||Lt(o)>1;a&&av(e,t,r,n),i&&cv(e,r),Mr(vt.fromDom(t[0])).each((function(t){return rf(e,t.dom,{structure:i,style:a})}))}},sv=function(e,t,n,r){var o=r.getData();r.close(),e.undoManager.transact((function(){uv(e,t,n,o),e.focus()}))},lv=function(e){var t=Cu(tu(e),gu.selected);if(0!==t.length){var n=L(t,(function(t){return qh(e,t.dom,Cf(e))})),r=Lh(n),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:rv(e)},Mh(e,"row")]},i={type:"panel",items:[{type:"grid",columns:2,items:rv(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:Cf(e)?o:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(sv,e,L(t,(function(e){return e.dom})),r)})}},fv=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],o=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],i=Sf(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],c=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(o).concat(i).concat(a).concat(c)},dv=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)o(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var i=0;i<t.children.length;i++)dv(e,t.children[i],n,r)},mv=function(e,t,n){var r=e.dom,o={},i={};if(o.class=n.class,i.height=Yc(n.height),r.getAttrib(t,"width")&&!Of(e)?o.width=Xc(n.width):i.width=Yc(n.width),Of(e)?(i["border-width"]=Yc(n.border),i["border-spacing"]=Yc(n.cellspacing)):(o.border=n.border,o.cellpadding=n.cellpadding,o.cellspacing=n.cellspacing),Of(e)&&t.children)for(var a=0;a<t.children.length;a++)dv(r,t.children[a],{"border-width":Yc(n.border),padding:Yc(n.cellpadding)}),zf(e)&&dv(r,t.children[a],{"border-color":n.bordercolor});zf(e)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),o.style=r.serializeStyle(oe(oe({},wf(e)),i)),r.setAttribs(t,oe(oe({},bf(e)),o))},gv=function(e,t,n,r){var o=e.dom,i=r.getData(),a=Rt(i,(function(e,t){return n[t]!==e}));r.close(),""===i.class&&delete i.class,e.undoManager.transact((function(){if(!t){var n=parseInt(i.cols,10)||1,r=parseInt(i.rows,10)||1;t=Lp(e,n,r,0,0)}if(Lt(a)>0){mv(e,t,i);var c=o.select("caption",t)[0];(c&&!i.caption||!c&&i.caption)&&e.execCommand("mceTableToggleCaption"),""===i.align?Qp(e,t):Yp(e,t,i.align)}if(e.focus(),e.addVisual(),Lt(a)>0){var u=Ht(a,"caption"),s=!u||Lt(a)>1;rf(e,t,{structure:u,style:s})}}))},pv=function(e,t){var n,r=e.dom,o=jh(e,zf(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?o=Uh(e,n,zf(e)):zf(e)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor="")):(o.cols="1",o.rows="1",zf(e)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor=""));var i=kh(Df(e));i.length>0&&o.class&&(o.class=o.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:fv(e,i,t)},c=function(){return{type:"panel",items:[a]}},u=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Mh(e,"table")]}},s=zf(e)?u():c();e.windowManager.open({title:"Table Properties",size:"normal",body:s,onSubmit:w(gv,e,n,o),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o})},hv=function(e){return ku(tu(e),Kc(e))},vv=function(e){return _u(tu(e),Kc(e))},yv=function(e,t,n,r,a){var c=Kc(e),u=function(){return hv(e).each((function(t){Mr(t,c).filter(k(c)).each((function(t){var n=vt.fromText("");if(So(t,n),Bo(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},s=function(t){return hv(e).each((function(n){var r=Rf(e)||Nf(e)||Mf(e);r||Mr(n,c).each((function(n){"relative"!==t||ks(n)?"fixed"!==t||_s(n)?"responsive"!==t||xs(n)||Qf(n):Jf(n):Yf(n),Jc(n),rf(e,n.dom,af)}))}))},l=function(e){return Mr(e,c)},f=function(t){return vv(e).bind((function(e){return l(e).map((function(n){return t(n,e)}))}))},d=function(t,n){f((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rf(e,t.dom,of)}))},m=function(t,n){f((function(t){var o=xu(r),i=X(o,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=i?e.formatter.remove:e.formatter.apply;I(o,(function(e){return a("tablecellclass",{value:n},e.dom)})),rf(e,t.dom,of)}))},p=function(){hv(e).each((function(t){Mr(t,c).each((function(n){$n(n,"caption").fold((function(){var t=vt.fromTag("caption");Oo(t,vt.fromText("Caption")),Eo(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){fn("caption")(t)&&kt("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Bo(r)})),rf(e,n.dom,af)}))}))},h=function(t){e.focus()},v=function(e,t){return void 0===t&&(t=!1),f((function(n,o){var i=hu(r,n,o);e(n,i,t).each(h)}))},y=function(){return f((function(t,n){var o=hu(r,t,n),i=Fc(g,vt.fromDom(e.getDoc()),E.none());return Gp(t,o,i)}))},b=function(){return f((function(e,t){var n=hu(r,e,t);return $p(e,n)}))},_=function(t,n){return n().each((function(n){var o=L(n,(function(e){return ki(e)}));f((function(n,i){var a=jc(vt.fromDom(e.getDoc())),c=yu(r,i,o,a);t(n,c).each(h)}))}))},x=function(e){return function(t,n){return It(n,"type").each((function(t){v(e(t),n.no_events)}))}};Et({mceTableSplitCells:function(){return v(t.unmergeCells)},mceTableMergeCells:function(){return v(t.mergeCells)},mceTableInsertRowBefore:function(){return v(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return v(t.insertRowsAfter)},mceTableInsertColBefore:function(){return v(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return v(t.insertColumnsAfter)},mceTableDeleteCol:function(){return v(t.deleteColumn)},mceTableDeleteRow:function(){return v(t.deleteRow)},mceTableCutCol:function(){return b().each((function(e){a.setColumns(e),v(t.deleteColumn)}))},mceTableCutRow:function(){return y().each((function(e){a.setRows(e),v(t.deleteRow)}))},mceTableCopyCol:function(){return b().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return y().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return _(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return _(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return _(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return _(t.pasteRowsAfter,a.getRows)},mceTableDelete:u,mceTableCellToggleClass:m,mceTableToggleClass:d,mceTableToggleCaption:p,mceTableSizingMode:function(e,t){return s(t)},mceTableCellType:x((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:x((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:x((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Et({mceTableProps:w(pv,e,!1),mceTableRowProps:w(lv,e),mceTableCellProps:w(ev,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){i(n)&&Tt(n).length>0?Ip(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):pv(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(i(n)){var c=xu(r);if(0!==c.length){var u=Rt(n,(function(t,n){return e.formatter.has(a(n))&&o(t)}));jt(u)||(Et(u,(function(t,n){I(c,(function(r){Rh.normal(e,r.dom).setFormat(a(n),t)}))})),l(c[0]).each((function(t){return rf(e,t.dom,of)})))}}}))},bv=function(e,t,n){var r=Kc(e),o=function(t){return _u(tu(e)).bind((function(e){return Mr(e,r).map((function(r){var o=hu(n,r,e);return t(r,o)}))})).getOr("")};Et({mceTableRowType:function(){return o(t.getTableRowType)},mceTableCellType:function(){return o(t.getTableCellType)},mceTableColType:function(){return o(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},wv=function(){var e=yh(),t=yh();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},kv={remove_similar:!0,inherit:!1},_v=oe({selector:"td,th"},kv),xv={tablecellbackgroundcolor:oe({styles:{backgroundColor:"%value"}},_v),tablecellverticalalign:oe({styles:{"vertical-align":"%value"}},_v),tablecellbordercolor:oe({styles:{borderColor:"%value"}},_v),tablecellclass:oe({classes:["%value"]},_v),tableclass:oe({selector:"table",classes:["%value"]},kv),tablecellborderstyle:oe({styles:{borderStyle:"%value"}},_v),tablecellborderwidth:oe({styles:{borderWidth:"%value"}},_v)},Cv=function(e){e.formatter.register(xv)},zv=fi.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Sv=function(e){return void 0===e&&(e=void 0),zv.none(e)},Tv=oe(oe({},zv),{none:Sv}),Ov=function(e,t,n,r,o){void 0===o&&(o=C);var i=1===r;if(!i&&n<=0)return Tv.first(e[0]);if(i&&n>=e.length-1)return Tv.last(e[e.length-1]);var a=n+r,c=e[a];return o(c)?Tv.middle(t,c):Ov(e,t,a,r,o)},Ev=function(e,t){return Mr(e,t).bind((function(t){var n=Ar(t),r=$(n,(function(t){return _t(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Av=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Tv.none(e)}),(function(n){return Ov(n.all,e,n.index,1,t)}))},Dv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Tv.none()}),(function(n){return Ov(n.all,e,n.index,-1,t)}))},Mv=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Nv={create:Mv},Rv=fi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Bv=function(e,t,n,r){return e.fold(t,n,r)},Pv=function(e){return e.fold(y,y,y)},Lv=Rv.before,Iv=Rv.on,Hv=Rv.after,Fv={before:Lv,on:Iv,after:Hv,cata:Bv,getStart:Pv},jv=fi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Vv=function(e){return jv.exact(e.start,e.soffset,e.finish,e.foffset)},Uv=function(e){return e.match({domRange:function(e){return vt.fromDom(e.startContainer)},relative:function(e,t){return Fv.getStart(e)},exact:function(e,t,n,r){return e}})},qv=jv.domRange,Wv=jv.relative,$v=jv.exact,Gv=function(e){var t=Uv(e);return gn(t)},Kv=Nv.create,Xv={domRange:qv,relative:Wv,exact:$v,exactFromRange:Vv,getWin:Gv,range:Kv},Yv=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Jv=function(e,t){var n=e.document.createRange();return Qv(n,t),n},Qv=function(e,t){return e.selectNodeContents(t.dom)},Zv=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},ey=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},ty=function(e,t,n){var r=e.document.createRange();return Zv(r,t),ey(r,n),r},ny=function(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},ry=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},oy=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?E.some(n).map(ry):E.none()},iy=fi.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ay=function(e,t,n){return t(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},cy=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:E.none}},relative:function(t,n){return{ltr:ae((function(){return ty(e,t,n)})),rtl:ae((function(){return E.some(ty(e,n,t))}))}},exact:function(t,n,r,o){return{ltr:ae((function(){return ny(e,t,n,r,o)})),rtl:ae((function(){return E.some(ny(e,r,o,t,n))}))}}})},uy=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return iy.rtl(vt.fromDom(e.endContainer),e.endOffset,vt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ay(e,iy.ltr,n)}))}return ay(e,iy.ltr,n)},sy=function(e,t){var n=cy(e,t);return uy(e,n)},ly=function(e,t){var n=sy(e,t);return n.match({ltr:function(t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},rtl:function(t,n,r,o){var i=e.document.createRange();return i.setStart(r.dom,o),i.setEnd(t.dom,n),i}})};iy.ltr,iy.rtl;var fy=function(e,t,n,r,o){if(0===o)return 0;if(t===r)return o-1;for(var i=r,a=1;a<o;a++){var c=e(a),u=Math.abs(t-c.left);if(n<=c.bottom){if(n<c.top||u>i)return a-1;i=u}}return 0},dy=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},my=function(e,t,n,r,o){var i=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=i(e);return t.getBoundingClientRect()},c=Ho(t).length,u=fy(a,n,r,o.right,c);return i(u)},gy=function(e,t,n,r){var o=e.dom.createRange();o.selectNode(t.dom);var i=o.getClientRects(),a=re(i,(function(e){return dy(e,n,r)?E.some(e):E.none()}));return a.map((function(o){return my(e,t,n,r,o)}))},py=function(e,t,n,r){var o=e.dom.createRange(),i=wn(t);return re(i,(function(t){return o.selectNode(t.dom),dy(o.getBoundingClientRect(),n,r)?hy(e,t,n,r):E.none()}))},hy=function(e,t,n,r){return un(t)?gy(e,t,n,r):py(e,t,n,r)},vy=function(e,t,n,r){var o=e.dom.createRange();o.selectNode(t.dom);var i=o.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),c=Math.max(i.top,Math.min(i.bottom,r));return hy(e,t,a,c)},yy=!0,by=!1,wy=function(e,t){return t-e.left<e.right-t?yy:by},ky=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},_y=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var o=r.getBoundingClientRect(),i=wy(o,n),a=i===yy?Oc:Ec;return a(t).map((function(t){return ky(e,t,i)}))},xy=function(e,t,n){var r=t.dom.getBoundingClientRect(),o=wy(r,n);return E.some(ky(e,t,o))},Cy=function(e,t,n){var r=0===wn(t).length?xy:_y;return r(e,t,n)},zy=function(e,t,n){var r,o;return E.from(null===(o=(r=e.dom).caretPositionFromPoint)||void 0===o?void 0:o.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return E.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),E.some(n)}))},Sy=function(e,t,n){var r,o;return E.from(null===(o=(r=e.dom).caretRangeFromPoint)||void 0===o?void 0:o.call(r,t,n))},Ty=function(e,t,n,r){var o=e.dom.createRange();o.selectNode(t.dom);var i=o.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),c=Math.max(i.top,Math.min(i.bottom,r));return vy(e,t,a,c)},Oy=function(e,t,n){return vt.fromPoint(e,t,n).bind((function(r){var o=function(){return Cy(e,r,t)};return 0===wn(r).length?o():Ty(e,r,t,n).orThunk(o)}))},Ey=function(){return document.caretPositionFromPoint?zy:document.caretRangeFromPoint?Sy:Oy}(),Ay=function(e,t,n){var r=vt.fromDom(e.document);return Ey(r,t,n).map((function(e){return Nv.create(vt.fromDom(e.startContainer),e.startOffset,vt.fromDom(e.endContainer),e.endOffset)}))},Dy=function(e,t){var n=nn(e);return"input"===n?Fv.after(e):R(["br","img"],n)?0===t?Fv.before(e):Fv.after(e):Fv.on(e,t)},My=function(e,t){var n=e.fold(Fv.before,Dy,Fv.after),r=t.fold(Fv.before,Dy,Fv.after);return Xv.relative(n,r)},Ny=function(e,t,n,r){var o=Dy(e,t),i=Dy(n,r);return Xv.relative(o,i)},Ry=function(e){return e.match({domRange:function(e){var t=vt.fromDom(e.startContainer),n=vt.fromDom(e.endContainer);return Ny(t,e.startOffset,n,e.endOffset)},relative:My,exact:Ny})},By=function(e,t,n,r){var o=dn(e),i=o.dom.createRange();return i.setStart(e.dom,t),i.setEnd(n.dom,r),i},Py=function(e,t,n,r){var o=By(e,t,n,r),i=_t(e,n)&&t===r;return o.collapsed&&!i},Ly=function(e){return E.from(e.getSelection())},Iy=function(e,t){Ly(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},Hy=function(e,t,n,r,o){var i=ny(e,t,n,r,o);Iy(e,i)},Fy=function(e,t,n,r,o,i){t.collapse(n.dom,r),t.extend(o.dom,i)},jy=function(e,t){return sy(e,t).match({ltr:function(t,n,r,o){Hy(e,t,n,r,o)},rtl:function(t,n,r,o){Ly(e).each((function(i){if(i.setBaseAndExtent)i.setBaseAndExtent(t.dom,n,r.dom,o);else if(i.extend)try{Fy(e,i,t,n,r,o)}catch(a){Hy(e,r,o,t,n)}else Hy(e,r,o,t,n)}))}})},Vy=function(e,t,n,r,o){var i=Ny(t,n,r,o);jy(e,i)},Uy=function(e,t,n){var r=My(t,n);jy(e,r)},qy=function(e){var t=Xv.getWin(e).dom,n=function(e,n,r,o){return ny(t,e,n,r,o)},r=Ry(e);return sy(t,r).match({ltr:n,rtl:n})},Wy=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return E.some(Nv.create(vt.fromDom(t.startContainer),t.startOffset,vt.fromDom(n.endContainer),n.endOffset))}return E.none()},$y=function(e){if(null===e.anchorNode||null===e.focusNode)return Wy(e);var t=vt.fromDom(e.anchorNode),n=vt.fromDom(e.focusNode);return Py(t,e.anchorOffset,n,e.focusOffset)?E.some(Nv.create(t,e.anchorOffset,n,e.focusOffset)):Wy(e)},Gy=function(e,t,n){void 0===n&&(n=!0);var r=n?Jv:Yv,o=r(e,t);Iy(e,o)},Ky=function(e){return Ly(e).filter((function(e){return e.rangeCount>0})).bind($y)},Xy=function(e){return Ky(e).map((function(e){return Xv.exact(e.start,e.soffset,e.finish,e.foffset)}))},Yy=function(e,t){var n=ly(e,t);return oy(n)},Jy=function(e,t,n){return Ay(e,t,n)},Qy=function(e){Ly(e).each((function(e){return e.removeAllRanges()}))},Zy=tinymce.util.Tools.resolve("tinymce.util.VK"),eb=function(e,t,n){return rb(e,t,Av(n,_l))},tb=function(e,t,n){return rb(e,t,Dv(n,_l))},nb=function(e,t){var n=Xv.exact(t,0,t,0);return qy(n)},rb=function(e,t,n){return n.fold(E.none,E.none,(function(t,n){return Oc(n).map((function(t){return nb(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),eb(e,t,n)}))},ob=["table","li","dl"],ib=function(e,t,n){if(e.keyCode===Zy.TAB){var r=Wc(t),o=function(e){var t=nn(e);return _t(e,r)||R(ob,t)},i=t.selection.getRng(),a=vt.fromDom(e.shiftKey?i.startContainer:i.endContainer);Er(a,o).each((function(r){e.preventDefault(),Mr(r,o).each(n.clear),t.selection.collapse(e.shiftKey);var i=e.shiftKey?tb:eb,a=i(t,o,r);a.each((function(e){t.selection.setRng(e)}))}))}},ab=function(e,t){return{selection:e,kill:t}},cb={create:ab},ub=function(e,t,n,r){return{start:Fv.on(e,t),finish:Fv.on(n,r)}},sb={create:ub},lb=function(e,t){var n=ly(e,t);return Nv.create(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},fb=sb.create,db=function(e,t,n,r,o,i,a){return _t(n,o)&&r===i?E.none():Kn(n,"td,th",t).bind((function(n){return Kn(o,"td,th",t).bind((function(r){return mb(e,t,n,r,a)}))}))},mb=function(e,t,n,r,o){return _t(n,r)?E.none():ni(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(o(e,r,t.start,t.finish),E.some(cb.create(E.some(fb(n,0,n,Cc(n))),!0))):E.none()}))},gb=function(e,t,n,r,o){var i=function(e){return o.clearBeforeUpdate(n),o.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ci(r,e,t,o.firstSelectedSelector,o.lastSelectedSelector).map(i)},pb=function(e,t){return{item:e,mode:t}},hb=function(e,t,n,r){return void 0===r&&(r=vb),e.property().parent(t).map((function(e){return pb(e,r)}))},vb=function(e,t,n,r){return void 0===r&&(r=yb),n.sibling(e,t).map((function(e){return pb(e,r)}))},yb=function(e,t,n,r){void 0===r&&(r=yb);var o=e.property().children(t),i=n.first(o);return i.map((function(e){return pb(e,r)}))},bb=[{current:hb,next:vb,fallback:E.none()},{current:vb,next:yb,fallback:E.some(hb)},{current:yb,next:yb,fallback:E.some(vb)}],wb=function(e,t,n,r,o){void 0===o&&(o=bb);var i=W(o,(function(e){return e.current===n}));return i.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return wb(e,t,n,r)}))}))}))},kb=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?E.some(e[e.length-1]):E.none()};return{sibling:e,first:t}},_b=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?E.some(e[0]):E.none()};return{sibling:e,first:t}},xb={left:kb,right:_b},Cb=function(e,t,n,r,o,i){var a=wb(e,t,r,o);return a.bind((function(t){return i(t.item)?E.none():n(t.item)?E.some(t.item):Cb(e,t.item,n,t.mode,o,i)}))},zb=function(e,t,n,r){return Cb(e,t,n,vb,xb.left(),r)},Sb=function(e,t,n,r){return Cb(e,t,n,vb,xb.right(),r)},Tb=function(e){return function(t){return 0===e.property().children(t).length}},Ob=function(e,t,n){return Ab(e,t,Tb(e),n)},Eb=function(e,t,n){return Db(e,t,Tb(e),n)},Ab=zb,Db=Sb,Mb=Uo(),Nb=function(e,t){return Ob(Mb,e,t)},Rb=function(e,t){return Eb(Mb,e,t)},Bb=function(e,t,n){return Ab(Mb,e,t,n)},Pb=function(e,t,n){return Db(Mb,e,t,n)},Lb=function(e,t,n){return jn(e,t,n).isSome()},Ib=fi.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Hb=function(e,t,n){var r=e.getRect(t),o=e.getRect(n);return o.right>r.left&&o.left<r.right},Fb=function(e){return Kn(e,"tr")},jb=function(e,t,n,r,o,i,a){return Kn(r,"td,th",a).bind((function(n){return Kn(t,"td,th",a).map((function(t){return _t(n,t)?_t(r,n)&&Cc(n)===o?i(t):Ib.none("in same cell"):Zo(Fb,[n,t]).fold((function(){return Hb(e,t,n)?Ib.success():i(t)}),(function(e){return i(t)}))}))})).getOr(Ib.none("default"))},Vb=function(e,t,n,r,o){return e.fold(t,n,r,o)},Ub=oe(oe({},Ib),{verify:jb,cata:Vb}),qb=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},Wb=function(e){return pn(e).bind((function(t){var n=wn(t);return $b(n,e).map((function(r){return qb(t,n,e,r)}))}))},$b=function(e,t){return $(e,w(_t,t))},Gb=function(e){return"br"===nn(e)},Kb=function(e,t,n){return t(e,n).bind((function(e){return un(e)&&0===Ho(e).trim().length?Kb(e,t,n):E.some(e)}))},Xb=function(e,t,n){return n.traverse(t).orThunk((function(){return Kb(t,n.gather,e)})).map(n.relative)},Yb=function(e,t){return kn(e,t).filter(Gb).orThunk((function(){return kn(e,t-1).filter(Gb)}))},Jb=function(e,t,n,r){return Yb(t,n).bind((function(t){return r.traverse(t).fold((function(){return Kb(t,r.gather,e).map(r.relative)}),(function(e){return Wb(e).map((function(e){return Fv.on(e.parent,e.index)}))}))}))},Qb=function(e,t,n,r){var o=Gb(t)?Xb(e,t,r):Jb(e,t,n,r);return o.map((function(e){return{start:e,finish:e}}))},Zb=function(e){return Ub.cata(e,(function(e){return E.none()}),(function(){return E.none()}),(function(e){return E.some(ad(e,0))}),(function(e){return E.some(ad(e,Cc(e)))}))},ew=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},tw=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},nw=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},rw=function(e){return e.top},ow=function(e){return e.bottom},iw=function(e,t,n){return n>=0&&n<Cc(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):E.none()},aw=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},cw=function(e,t){return E.some(e.getRect(t))},uw=function(e,t,n){return cn(t)?cw(e,t).map(aw):un(t)?iw(e,t,n).map(aw):E.none()},sw=function(e,t){return cn(t)?cw(e,t).map(aw):un(t)?e.getRangedRect(t,0,t,Cc(t)).map(aw):E.none()},lw=5,fw=100,dw=fi.generate([{none:[]},{retry:["caret"]}]),mw=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},gw=function(e,t,n){return Vn(t,cg).fold(x,(function(t){return sw(e,t).exists((function(e){return mw(n,e)}))}))},pw=function(e,t,n,r,o){var i=ew(o,lw);return Math.abs(n.bottom-r.bottom)<1||n.top>o.bottom?dw.retry(i):n.top===o.bottom?dw.retry(ew(o,1)):gw(e,t,o)?dw.retry(nw(i,lw,0)):dw.none()},hw=function(e,t,n,r,o){var i=tw(o,lw);return Math.abs(n.top-r.top)<1||n.bottom<o.top?dw.retry(i):n.bottom===o.top?dw.retry(tw(o,1)):gw(e,t,o)?dw.retry(nw(i,lw,0)):dw.none()},vw={point:rw,adjuster:hw,move:tw,gather:Nb},yw={point:ow,adjuster:pw,move:ew,gather:Rb},bw=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},ww=function(e,t,n,r,o){return kw(e,t,n,t.move(r,lw),o)},kw=function(e,t,n,r,o){return 0===o?E.some(r):bw(e,r.left,t.point(r))?ww(e,t,n,r,o-1):e.situsFromPoint(r.left,t.point(r)).bind((function(i){return i.start.fold(E.none,(function(i){return sw(e,i).bind((function(a){return t.adjuster(e,i,a,n,r).fold(E.none,(function(r){return kw(e,t,n,r,o-1)}))})).orThunk((function(){return E.some(r)}))}),E.none)}))},_w=function(e,t){return e.situsFromPoint(t.left,t.bottom+lw)},xw=function(e,t){return e.situsFromPoint(t.left,t.top-lw)},Cw=function(e,t,n){return e.point(t)>n.getInnerHeight()?E.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?E.some(-e.point(t)):E.none()},zw=function(e,t,n){var r=e.move(n,lw),o=kw(t,e,n,r,fw).getOr(r);return Cw(e,o,t).fold((function(){return t.situsFromPoint(o.left,e.point(o))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(o.left,e.point(o)-n)}))},Sw={tryUp:w(zw,vw),tryDown:w(zw,yw),ieTryUp:xw,ieTryDown:_w,getJumpSize:v(lw)},Tw=20,Ow=function(e,t,n){return e.getSelection().bind((function(r){return Qb(t,r.finish,r.foffset,n).fold((function(){return E.some(ad(r.finish,r.foffset))}),(function(o){var i=e.fromSitus(o),a=Ub.verify(e,r.finish,r.foffset,i.finish,i.foffset,n.failure,t);return Zb(a)}))}))},Ew=function(e,t,n,r,o,i){return 0===i?E.none():Mw(e,t,n,r,o).bind((function(a){var c=e.fromSitus(a),u=Ub.verify(e,n,r,c.finish,c.foffset,o.failure,t);return Ub.cata(u,(function(){return E.none()}),(function(){return E.some(a)}),(function(a){return _t(n,a)&&0===r?Aw(e,n,r,tw,o):Ew(e,t,a,0,o,i-1)}),(function(a){return _t(n,a)&&r===Cc(a)?Aw(e,n,r,ew,o):Ew(e,t,a,Cc(a),o,i-1)}))}))},Aw=function(e,t,n,r,o){return uw(e,t,n).bind((function(t){return Dw(e,o,r(t,Sw.getJumpSize()))}))},Dw=function(e,t,n){var r=ot().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):E.none()},Mw=function(e,t,n,r,o){return uw(e,n,r).bind((function(t){return Dw(e,o,t)}))},Nw=function(e,t,n){return Ow(e,t,n).bind((function(r){return Ew(e,t,r.element,r.offset,n,Tw).map(e.fromSitus)}))},Rw=function(e,t){return Lb(e,(function(e){return pn(e).exists((function(e){return _t(e,t)}))}))},Bw=function(e,t,n,r,o){return Kn(r,"td,th",t).bind((function(r){return Kn(r,"table",t).bind((function(i){return Rw(o,i)?Nw(e,t,n).bind((function(e){return Kn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):E.none()}))}))},Pw=function(e,t,n,r,o,i){return ot().browser.isIE()?E.none():i(r,t).orThunk((function(){return Bw(e,t,n,r,o).map((function(e){var t=e.range;return cb.create(E.some(fb(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Lw=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=Hn(n,"tr");return _t(e,r[0])?Bb(n,(function(e){return Ec(e).isSome()}),t).map((function(e){var t=Cc(e);return cb.create(E.some(fb(e,t,e,t)),!0)})):E.none()}))}))},Iw=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=Hn(n,"tr");return _t(e,r[r.length-1])?Pb(n,(function(e){return Oc(e).isSome()}),t).map((function(e){return cb.create(E.some(fb(e,0,e,0)),!0)})):E.none()}))}))},Hw=function(e,t,n,r,o,i,a){return Bw(e,n,r,o,i).bind((function(e){return mb(t,n,e.start,e.finish,a)}))},Fw=function(e,t){return Kn(e,"td,th",t)},jw=function(e,t,n,r){var o=yh(),i=o.clear,a=function(i){o.on((function(o){r.clearBeforeUpdate(t),Fw(i.target,n).each((function(a){ni(o,a,n).each((function(n){var o=n.boxes.getOr([]);if(1===o.length){var c=o[0],u="false"===xl(c),s=rr(kl(i.target),c,_t);u&&s&&(r.selectRange(t,o,c,c),e.selectContents(c))}else o.length>1&&(r.selectRange(t,o,n.start,n.finish),e.selectContents(a))}))}))}))},c=function(e){r.clear(t),Fw(e.target,n).each(o.set)},u=function(e){a(e)},s=function(e){a(e),i()};return{clearstate:i,mousedown:c,mouseover:u,mouseup:s}},Vw={traverse:bn,gather:Rb,relative:Fv.before,otherRetry:Sw.tryDown,ieRetry:Sw.ieTryDown,failure:Ub.failedDown},Uw={traverse:yn,gather:Nb,relative:Fv.before,otherRetry:Sw.tryUp,ieRetry:Sw.ieTryUp,failure:Ub.failedUp},qw=function(e){return function(t){return t===e}},Ww=qw(38),$w=qw(40),Gw=function(e){return e>=37&&e<=40},Kw={isBackward:qw(37),isForward:qw(39)},Xw={isBackward:qw(39),isForward:qw(37)},Yw=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Qi(n,r)},Jw=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollBy(e,t)},Qw=function(e){var t=function(t,n){return vt.fromPoint(vt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,o){var i=Xv.exact(t,n,r,o);return Yy(e,i)},o=function(){return Xy(e).map((function(t){return lb(e,t)}))},i=function(t){var n=Xv.relative(t.start,t.finish);return lb(e,n)},a=function(t,n){return Jy(e,t,n).map((function(e){return sb.create(e.start,e.soffset,e.finish,e.foffset)}))},c=function(){Qy(e)},u=function(t){void 0===t&&(t=!1),Xy(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var o=t?n:r;Uy(e,o,o)}),(function(n,r,o,i){var a=t?n:o,c=t?r:i;Vy(e,a,c,a,c)}))}))},s=function(t){Gy(e,t,!1)},l=function(t){Gy(e,t)},f=function(t){Vy(e,t.start,t.soffset,t.finish,t.foffset)},d=function(t,n){Uy(e,t,n)},m=function(){return e.innerHeight},g=function(){var t=Yw(vt.fromDom(e.document));return t.top},p=function(t,n){Jw(t,n,vt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:o,fromSitus:i,situsFromPoint:a,clearSelection:c,collapseSelection:u,setSelection:f,setRelativeSelection:d,selectNode:s,selectContents:l,getInnerHeight:m,getScrollY:g,scrollBy:p}},Zw=function(e,t){return{rows:e,cols:t}},ek=function(e,t,n,r){var o=Qw(e),i=jw(o,t,n,r);return{clearstate:i.clearstate,mousedown:i.mousedown,mouseover:i.mouseover,mouseup:i.mouseup}},tk=function(e,t,n,r){var o=Qw(e),i=function(){return r.clear(t),E.none()},a=function(e,a,c,u,s,l){var f=e.raw,d=f.which,m=!0===f.shiftKey,g=ri(t,r.selectedSelector).fold((function(){return Gw(d)&&!m&&r.clearBeforeUpdate(t),$w(d)&&m?w(Hw,o,t,n,Vw,u,a,r.selectRange):Ww(d)&&m?w(Hw,o,t,n,Uw,u,a,r.selectRange):$w(d)?w(Pw,o,n,Vw,u,a,Iw):Ww(d)?w(Pw,o,n,Uw,u,a,Lw):E.none}),(function(e){var n=function(n){return function(){var i=re(n,(function(n){return gb(n.rows,n.cols,t,e,r)}));return i.fold((function(){return ii(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=$w(d)||l.isForward(d)?Fv.after:Fv.before;return o.setRelativeSelection(Fv.on(e.first,0),n(e.table)),r.clear(t),cb.create(E.none(),!0)}))}),(function(e){return E.some(cb.create(E.none(),!0))}))}};return $w(d)&&m?n([Zw(1,0)]):Ww(d)&&m?n([Zw(-1,0)]):l.isBackward(d)&&m?n([Zw(0,-1),Zw(-1,0)]):l.isForward(d)&&m?n([Zw(0,1),Zw(1,0)]):Gw(d)&&!m?i:E.none}));return g()},c=function(e,o,i,a,c){return ri(t,r.selectedSelector).fold((function(){var u=e.raw,s=u.which,l=!0===u.shiftKey;return l&&Gw(s)?db(t,n,o,i,a,c,r.selectRange):E.none()}),E.none)};return{keydown:a,keyup:c}},nk=function(e,t,n,r){var o=Qw(e);return function(e,i){r.clearBeforeUpdate(t),ni(e,i,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),o.selectContents(i),o.collapseSelection()}))}},rk=function(e,t){I(t,(function(t){sl(e,t)}))},ok=function(e){return function(t){cl(t,e)}},ik=function(e){return function(t){rk(t,e)}},ak=function(e){var t=ok(e.selected),n=ik([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=Hn(t,e.selectedSelector);I(r,n)},o=function(n,o,i,a){r(n),I(o,t),cl(i,e.firstSelected),cl(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:o,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},ck=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},o=function(t){Yn(t,e.selected,"1")},i=function(e){a(e),n()},a=function(t){var n=Hn(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);I(n,r)},c=function(n,r,a,c){i(n),I(r,o),Yn(a,e.firstSelected,"1"),Yn(c,e.lastSelected,"1"),t(r,a,c)};return{clearBeforeUpdate:a,clear:i,selectRange:c,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},uk={byClass:ak,byAttr:ck},sk=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=jd(n);return K(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return L(n,(function(e){return e.element}))}))},lk=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=jd(n);return K(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return L(n,(function(e){return e.element}))}))},fk=function(e,t,n){var r=so.fromTable(e),o=Xd(r,t);return o.map((function(e){var t=Hd(r,n,!1),o=sk(t,e),i=lk(t,e);return{upOrLeftCells:o,downOrRightCells:i}}))},dk=tinymce.util.Tools.resolve("tinymce.Env"),mk=function(e){return!1===ll(vt.fromDom(e.target),"ephox-snooker-resizer-bar")};function gk(e,t,n){var r=function(t,r,o){n.targets().each((function(n){var i=Mr(r);i.each((function(i){var a=jf(e),c=Fc(g,vt.fromDom(e.getDoc()),a),u=fk(i,n,c);tf(e,t,r,o,u)}))}))},o=function(){return nf(e)},i=uk.byAttr(gu,r,o);return e.on("init",(function(n){var r=e.getWin(),o=Wc(e),a=Kc(e),c=function(){var t=e.selection,n=vt.fromDom(t.getStart()),r=vt.fromDom(t.getEnd()),a=Zo(Mr,[n,r]);a.fold((function(){return i.clear(o)}),g)},u=ek(r,o,a,i),s=tk(r,o,a,i),l=nk(r,o,a,i),f=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return l(e.start,e.finish)}));var d=function(t,n){f(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Xv.relative(t.start,t.finish),o=ly(r,n);e.selection.setRng(o)})))},m=function(t){var n=Zs(t);if(n.raw.shiftKey&&Gw(n.raw.which)){var r=e.selection.getRng(),o=vt.fromDom(r.startContainer),i=vt.fromDom(r.endContainer);s.keyup(n,o,r.startOffset,i,r.endOffset).each((function(e){d(n,e)}))}},p=function(n){var r=Zs(n);t().each((function(e){return e.hideBars()}));var o=e.selection.getRng(),i=vt.fromDom(o.startContainer),a=vt.fromDom(o.endContainer),c=Wi(Kw,Xw)(vt.fromDom(e.selection.getStart()));s.keydown(r,i,o.startOffset,a,o.endOffset,c).each((function(e){d(r,e)})),t().each((function(e){return e.showBars()}))},h=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!dk.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},y=function(e){u.clearstate()},b=function(e){h(e)&&mk(e)&&u.mousedown(Zs(e))},w=function(e){v(e)&&mk(e)&&u.mouseover(Zs(e))},k=function(e){h(e)&&mk(e)&&u.mouseup(Zs(e))},_=function(){var e=ph(vt.fromDom(o)),t=ph(0),n=function(n){var r=vt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var o=e.get(),i=t.get();_t(o,r)&&n.timeStamp-i<300&&(n.preventDefault(),l(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},x=_();e.on("dragstart",y),e.on("mousedown",b),e.on("mouseover",w),e.on("mouseup",k),e.on("touchend",x.touchEnd),e.on("keyup",m),e.on("keydown",p),e.on("NodeChange",c)})),{clear:i.clear}}var pk=function(e,t){return $n(e,t).isSome()},hk=function(e,t){var n=ph(E.none()),r=ph([]),o=E.none(),i=fn("caption"),a=function(e){return o.forall((function(t){return!t[e]}))},c=function(){return ku(tu(e),Kc(e))},u=function(){return ku(nu(e),Kc(e))},s=function(){return c().bind((function(e){return cr(ir(Mr(e),u().bind(Mr),(function(n,r){return _t(n,r)?i(e)?E.some(pu(e)):E.some(hu(t,n,e)):E.none()})))}))},l=function(e){var t=Mr(e.element);return t.map((function(t){var n=so.fromTable(t),r=Xd(n,e).getOr([]),o=U(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Zd(n,e).isSome(),unmergeable:em(n,e).isSome(),locked:o}}))},f=function(){n.set(ae(s)()),o=n.get().bind(l),I(r.get(),(function(e){return e()}))},d=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(j(r.get(),(function(t){return t!==e})))}},m=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},g=function(e,t,r){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},p=function(e){return o.exists((function(t){return t.locked[e]}))},h=function(e){return m(e,(function(e){return!1}))},v=function(e){return m(e,(function(e){return i(e.element)}))},y=function(e){return function(t){return m(t,(function(t){return i(t.element)||p(e)}))}},b=function(e){return function(t){return m(t,(function(t){return i(t.element)||e().isNone()}))}},w=function(e,t){return function(n){return m(n,(function(n){return i(n.element)||e().isNone()||p(t)}))}},k=function(e){return m(e,(function(e){return a("mergeable")}))},_=function(e){return m(e,(function(e){return a("unmergeable")}))},C=function(t){return g(t,x,(function(t){var n=Mr(t.element,Kc(e));return n.exists((function(e){return pk(e,"caption")}))}))},z=function(t,n){return function(r){return g(r,(function(e){return i(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},S=z("mceTableRowType","header"),T=z("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",f),{onSetupTable:h,onSetupCellOrRow:v,onSetupColumn:y,onSetupPasteable:b,onSetupPasteableColumn:w,onSetupMergeable:k,onSetupUnmergeable:_,resetTargets:f,onSetupTableWithCaption:C,onSetupTableRowHeaders:S,onSetupTableColumnHeaders:T,targets:n.get}},vk=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var o=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:o("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:o("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:o("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:o("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:o("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:o("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:o("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:o("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:o("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:o("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:o("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:o("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:o("mceInsertTable"),icon:"table"});var i=Ch(Df(e));0!==i.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:zh(e,t,i,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Ch(Ef(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:zh(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:zh(e,t,eh,"tablecellverticalalign",xh(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:zh(e,t,vf(e),"tablecellborderwidth",xh(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:zh(e,t,yf(e),"tablecellborderstyle",xh(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:o("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Sh(e,Uf(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Sh(e,qf(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Th(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Oh(e),onSetup:n.onSetupTableColumnHeaders})},yk=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Bf(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},bk=function(e,t,n,r){var o=function(t){return function(){return e.execCommand(t)}},i=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:o("mceTableProps")},c={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:o("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:o("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:o("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:o("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:o("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var u={type:"nestedmenuitem",text:"Row",getSubmenuItems:v("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:o("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:o("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:o("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var s={type:"nestedmenuitem",text:"Column",getSubmenuItems:v("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:o("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:o("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:o("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:v("tablecellprops tablemergecells tablesplitcells")};!1===Tf(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:o("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:o("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",c),e.ui.registry.addNestedMenuItem("row",u),e.ui.registry.addNestedMenuItem("column",s),e.ui.registry.addNestedMenuItem("cell",l),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(v(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=Ch(Df(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return _h(e,t,f,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var d=Ch(Ef(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return _h(e,t,d,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return _h(e,t,eh,"tablecellverticalalign",xh(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return _h(e,t,vf(e),"tablecellborderwidth",xh(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return _h(e,t,yf(e),"tablecellborderstyle",xh(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:o("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Sh(e,Uf(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Sh(e,qf(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Th(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Oh(e),onSetup:n.onSetupTableColumnHeaders})},wk=function(e){var t=vi((function(){return Wc(e)}),(function(){return _u(tu(e),Kc(e))}),gu.selectedSelector),n=hk(e,t),r=id(e),o=gk(e,r.lazyResize,n),i=_p(e,o,r.lazyWire),a=wv();return yv(e,i,o,t,a),bv(e,i,t),Ou(e,t,i),bk(e,t,n,a),vk(e,t,n,a),yk(e),e.on("PreInit",(function(){e.serializer.addTempAttr(gu.firstSelected),e.serializer.addTempAttr(gu.lastSelected),Cv(e)})),_f(e)&&e.on("keydown",(function(t){ib(t,e,o)})),e.on("remove",(function(){r.destroy()})),Vp(e,a,r,n)};function kk(){yi.add("table",wk)}kk()})()},a376:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},n=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},r=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},o=function(e){var t=r(e);return t.length>0?t[0]:n(e)},i=function(e){return e.getParam("insertdatetime_element",!1)},a="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),u="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),s="January February March April May June July August September October November December".split(" "),l=function(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},f=function(e,t,n){return void 0===n&&(n=new Date),t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",l(n.getMonth()+1,2)),t=t.replace("%d",l(n.getDate(),2)),t=t.replace("%H",""+l(n.getHours(),2)),t=t.replace("%M",""+l(n.getMinutes(),2)),t=t.replace("%S",""+l(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",n.getHours()<12?"AM":"PM"),t=t.replace("%B",""+e.translate(s[n.getMonth()])),t=t.replace("%b",""+e.translate(u[n.getMonth()])),t=t.replace("%A",""+e.translate(c[n.getDay()])),t=t.replace("%a",""+e.translate(a[n.getDay()])),t=t.replace("%%","%"),t},d=function(e,t,n,r){var o=e.dom.create("time",{datetime:n},r);t.parentNode.insertBefore(o,t),e.dom.remove(t),e.selection.select(o,!0),e.selection.collapse(!1)},m=function(e,t){if(i(e)){var n=f(e,t),r=void 0;r=/%[HMSIp]/.test(t)?f(e,"%Y-%m-%dT%H:%M"):f(e,"%Y-%m-%d");var o=e.dom.getParent(e.selection.getStart(),"time");o?d(e,o,r,n):e.insertContent('<time datetime="'+r+'">'+n+"</time>")}else e.insertContent(f(e,t))},g=function(e){e.addCommand("mceInsertDate",(function(n,r){m(e,null!==r&&void 0!==r?r:t(e))})),e.addCommand("mceInsertTime",(function(t,r){m(e,null!==r&&void 0!==r?r:n(e))}))},p=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},h=tinymce.util.Tools.resolve("tinymce.util.Tools"),v=function(e){var t=r(e),n=p(o(e)),i=function(t){return e.execCommand("mceInsertDate",!1,t)};e.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===n.get()},fetch:function(n){n(h.map(t,(function(t){return{type:"choiceitem",text:f(e,t),value:t}})))},onAction:function(e){i(n.get())},onItemAction:function(e,t){n.set(t),i(t)}});var a=function(e){return function(){n.set(e),i(e)}};e.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return h.map(t,(function(t){return{type:"menuitem",text:f(e,t),onAction:a(t)}}))}})};function y(){e.add("insertdatetime",(function(e){g(e),v(e)}))}y()})()},bc54:function(e,t,n){n("7c4f")},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},o=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},a=r("string"),c=r("array"),u=i(null),s=o("boolean"),l=o("function"),f=function(){},d=function(e){return function(){return e}},m=function(e){return e},g=function(e,t){return e===t},p=d(!1),h=d(!0),v=function(){return y},y=function(){var e=function(e){return e()},t=m,n={fold:function(e,t){return e()},isSome:p,isNone:h,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:f,bind:v,exists:p,forall:h,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(e){var t=d(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:h,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},w=function(e){return null===e||void 0===e?y:b(e)},k={some:b,none:v,from:w},_=Array.prototype.indexOf,x=Array.prototype.push,C=function(e,t){return _.call(e,t)},z=function(e,t){return C(e,t)>-1},S=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},T=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},O=function(e,t,n){return T(e,(function(e,r){n=t(n,e,r)})),n},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},A=function(e,t){return E(S(e,t))},D=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},M=function(e,t,n){return void 0===n&&(n=g),e.exists((function(e){return n(e,t)}))},N=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},R=function(e,t){return e?k.some(t):k.none()},B=function(e){var t=e.getParam("link_assume_external_targets",!1);return s(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},P=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},L=function(e){return e.getParam("link_list")},I=function(e){return e.getParam("default_link_target")},H=function(e){return e.getParam("target_list",!0)},F=function(e){return e.getParam("rel_list",[],"array")},j=function(e){return e.getParam("link_class_list",[],"array")},V=function(e){return e.getParam("link_title",!0,"boolean")},U=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},q=function(e){return e.getParam("link_quicklink",!1,"boolean")},W=function(e){return e.getParam("link_default_protocol","http","string")},$=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},K=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},X=function(e,t){var n=[];return $.each(e,(function(e){var r=K(e);if(void 0!==e.menu){var o=X(e.menu,t);n.push({text:r,items:o})}else{var i=t(e);n.push({text:r,value:i})}})),n},Y=function(e){return void 0===e&&(e=G),function(t){return k.from(t).map((function(t){return X(t,e)}))}},J=function(e){return Y(G)(e)},Q=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Z={sanitize:J,sanitizeWith:Y,createUi:Q,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},oe=function(e){return function(t,n){e[n]=t}},ie=function(e,t,n,r){var o={};return re(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},ae=function(e,t){var n={};return ie(e,t,oe(n),f),n},ce=function(e,t){return ne.call(e,t)},ue=function(e,t){return ce(e,t)&&void 0!==e[t]&&null!==e[t]},se=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),le=tinymce.util.Tools.resolve("tinymce.util.URI"),fe=function(e){return e&&"a"===e.nodeName.toLowerCase()},de=function(e){return fe(e)&&!!pe(e)},me=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new se(n.firstChild,n),o=[],i=n.firstChild;do{t(i)&&o.push(i)}while(i=r.next());return o},ge=function(e){return/^\w+:/i.test(e)},pe=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},he=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],o=function(e){return $.trim(e.sort().join(" "))},i=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===$.inArray(n,e)}))},c=t?i(r):a(r);return c.length>0?o(c):""},ve=function(e){return e.replace(/\uFEFF/g,"")},ye=function(e,t){return t=t||e.selection.getNode(),xe(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},be=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},we=function(e){return $.grep(e,de).length>0},ke=function(e){return me(e,de).length>0},_e=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!fe(e)&&!ce(t,e.nodeName.toLowerCase())},r=me(e.selection.getRng(),n);return 0===r.length},xe=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},Ce=function(e){var t=["title","rel","class","target"];return O(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},ze=function(e,t){return"http"!==t&&"https"!==t||ge(e)?e:t+"://"+e},Se=function(e,t){var n=ee({},t);if(!(F(e).length>0)&&!1===U(e)){var r=he(n.rel,"_blank"===n.target);n.rel=r||null}return k.from(n.target).isNone()&&!1===H(e)&&(n.target=I(e)),n.href=ze(n.href,B(e)),n},Te=function(e,t,n,r){n.each((function(e){ce(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Oe=function(e,t,n,r){xe(t)?Le(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},Ee=function(e,t,n){var r=e.selection.getNode(),o=ye(e,r),i=Se(e,Ce(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),o?(e.focus(),Te(e,o,n.text,i)):Oe(e,r,n.text,i)}))},Ae=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),o=n.getRng().cloneRange(),i=t.getParent(o.startContainer,"a[href]",e.getBody()),a=t.getParent(o.endContainer,"a[href]",e.getBody());i&&o.setStartBefore(i),a&&o.setEndAfter(a),n.setRng(o),e.execCommand("unlink"),n.moveToBookmark(r)},De=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();xe(t)?Pe(e,t):Ae(e),e.focus()}))},Me=function(e){var t=e.class,n=e.href,r=e.rel,o=e.target,i=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:o.getOrNull(),text:i.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===u(e)}))},Ne=function(e,t){var n=t.href;return ee(ee({},t),{href:le.isDomSafe(n,"a",e.settings)?n:""})},Re=function(e,t,n){var r=Ne(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Me(r)):Ee(e,t,r)},Be=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):De(e)},Pe=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Le=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var o=e.dom.create("a",n);r.parentNode.insertBefore(o,r),o.appendChild(r)}},Ie=function(e){return ue(e,"items")},He=function(e,t){return D(t,(function(t){return Ie(t)?He(e,t.items):R(t.value===e,t)}))},Fe=function(e,t,n,r){var o=r[t],i=e.length>0;return void 0!==o?He(o,n).map((function(t){return{url:{value:t.value,meta:{text:i?e:t.text,attach:f}},text:i?e:t.text}})):k.none()},je=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:k.none()},Ve=function(e,t){var n={text:e.text,title:e.title},r=function(e){return R(n.title.length<=0,k.from(e.meta.title).getOr(""))},o=function(e){return R(n.text.length<=0,k.from(e.meta.text).getOr(e.value))},i=function(e){var t=o(e.url),n=r(e.url);return t.isSome()||n.isSome()?k.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):k.none()},a=function(e,r){var o=je(t,r.name).getOr([]);return Fe(n.text,r.name,o,e)},c=function(e,t){var r=t.name;return"url"===r?i(e()):z(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],k.none()):k.none()};return{onChange:c}},Ue={init:Ve,getDelta:Fe},qe=tinymce.util.Tools.resolve("tinymce.util.Delay"),We=tinymce.util.Tools.resolve("tinymce.util.Promise"),$e=function(e,t,n){var r=e.selection.getRng();qe.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?k.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):k.none()},Ke=function(e,t){return function(n){var r=n.href,o=1===e&&!ge(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return o?k.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):k.none()}},Xe=function(e,t){return D([Ge,Ke(B(e),W(e))],(function(e){return e(t)})).fold((function(){return We.resolve(t)}),(function(n){return new We((function(r){$e(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Ye={preprocess:Xe},Je=function(e){var t=e.dom.select("a:not([href])"),n=A(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?k.some([{text:"None",value:""}].concat(n)):k.none()},Qe={getAnchors:Je},Ze=function(e){var t=j(e);return t.length>0?Z.sanitize(t):k.none()},et={getClasses:Ze},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return k.some(JSON.parse(e))}catch(t){return k.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=L(e);return new We((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(k.none())}}):l(n)?n((function(t){return e(k.some(t))})):e(k.from(n))})).then((function(e){return e.bind(Z.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},ot={getLinks:rt},it=function(e,t){var n=F(e);if(n.length>0){var r=M(t,"_blank"),o=!1===U(e),i=function(e){return he(Z.getValue(e),r)},a=o?Z.sanitizeWith(i):Z.sanitize;return a(n)}return k.none()},at={getRels:it},ct=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ut=function(e){var t=H(e);return c(t)?Z.sanitize(t).orThunk((function(){return k.some(ct)})):!1===t?k.none():k.some(ct)},st={getTargets:ut},lt=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?k.some(r):k.none()},ft=function(e,t){var n=e.dom,r=_e(e),o=r?k.some(be(e.selection,t)):k.none(),i=t?k.some(n.getAttrib(t,"href")):k.none(),a=t?k.from(n.getAttrib(t,"target")):k.none(),c=lt(n,t,"rel"),u=lt(n,t,"class"),s=lt(n,t,"title");return{url:i,text:o,title:s,target:a,rel:c,linkClass:u}},dt=function(e,t){return ot.getLinks(e).then((function(n){var r=ft(e,t);return{anchor:r,catalogs:{targets:st.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Qe.getAnchors(e),link:n},optNode:k.from(t),flags:{titleEnabled:V(e)}}}))},mt={collect:dt},gt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Be(e),void n.close();var o=function(e){return k.from(r[e]).filter((function(n){return!M(t.anchor[e],n)}))},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),class:o("linkClass"),title:o("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:f};Ye.preprocess(e,i).then((function(t){Re(e,a,t)})),n.close()}},pt=function(e){var t=ye(e);return mt.collect(e,t)},ht=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],o=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),i=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=k.from(I(n)),c=ht(e,a),u=e.catalogs,s=Ue.init(c,u),l={type:"panel",items:E([r,o,i,N([u.anchor.map(Z.createUi("anchor","Anchors")),u.rels.map(Z.createUi("rel","Rel")),u.targets.map(Z.createUi("target","Open link in...")),u.link.map(Z.createUi("link","Link list")),u.classes.map(Z.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:l,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:c,onChange:function(e,t){var n=t.name;s.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},yt=function(e){var t=pt(e);t.then((function(t){var n=gt(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},bt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},wt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),bt(t,n)},kt=function(e,t){return e.dom.getParent(t,"a[href]")},_t=function(e){return kt(e,e.selection.getStart())},xt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},Ct=function(e,t){if(t){var n=pe(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else wt(t.href)}},zt=function(e){return function(){yt(e)}},St=function(e){return function(){Ct(e,_t(e))}},Tt=function(e){e.on("click",(function(n){var r=kt(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),Ct(e,r))})),e.on("keydown",(function(t){var n=_t(e);n&&13===t.keyCode&&xt(t)&&(t.preventDefault(),Ct(e,n))}))},Ot=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Et=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==ye(e,e.selection.getNode()))};return n(),Ot(e,n)}},At=function(e){return function(t){var n=function(){return t.setDisabled(null===ye(e,e.selection.getNode()))};return n(),Ot(e,n)}},Dt=function(e){return function(t){var n=function(t){return we(t)||ke(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Ot(e,(function(e){return t.setDisabled(!n(e.parents))}))}},Mt=function(e){e.addCommand("mceLink",(function(){q(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):zt(e)()}))},Nt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Rt=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:zt(e),onSetup:Et(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:St(e),onSetup:At(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Be(e)},onSetup:Dt(e)})},Bt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:St(e),onSetup:At(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:zt(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Be(e)},onSetup:Dt(e)})},Pt=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return we(e.dom.getParents(r,"a"))?t:n}})},Lt=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!ye(e,n)),f},r=function(t){var n=ye(e),r=_e(e);if(!n&&r){var o=be(e.selection,n);return k.some(o.length>0?o:t)}return k.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Et(e)},label:"Link",predicate:function(t){return!!ye(e,t)&&P(e)},initValue:function(){var t=ye(e);return t?pe(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!ye(e,n)),Et(e)(t)},onAction:function(n){var o=n.getValue(),i=r(o),a={href:o,attach:f};Re(e,a,{href:o,text:i,title:k.none(),rel:k.none(),target:k.none(),class:k.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Be(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){St(e)(),t.hide()}}]})};function It(){e.add("link",(function(e){Rt(e),Bt(e),Pt(e),Lt(e),Tt(e),Mt(e),Nt(e)}))}It()})()},c361:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=e.getParam("nonbreaking_force_tab",0);return"boolean"===typeof t?!0===t?3:0:t},n=function(e){return e.getParam("nonbreaking_wrap",!0,"boolean")},r=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},o=function(e){return!!e.plugins.visualchars&&e.plugins.visualchars.isEnabled()},i=function(e,t){var i=function(){return o(e)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"},a=function(){return'<span class="'+i()+'" contenteditable="false">'+r("&nbsp;",t)+"</span>"},c=n(e),u=c||e.plugins.visualchars?a():r("&nbsp;",t);e.undoManager.transact((function(){return e.insertContent(u)}))},a=function(e){e.addCommand("mceNonBreaking",(function(){i(e,1)}))},c=tinymce.util.Tools.resolve("tinymce.util.VK"),u=function(e){var n=t(e);n>0&&e.on("keydown",(function(t){if(t.keyCode===c.TAB&&!t.isDefaultPrevented()){if(t.shiftKey)return;t.preventDefault(),t.stopImmediatePropagation(),i(e,n)}}))},s=function(e){var t=function(){return e.execCommand("mceNonBreaking")};e.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:t}),e.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:t})};function l(){e.add("nonbreaking",(function(e){a(e),s(e),u(e)}))}l()})()},c3d7:function(e,t,n){n("16f1")},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},o=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},a=r("string"),c=r("object"),u=r("array"),s=i(null),l=o("boolean"),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},m=o("function"),g=o("number"),p=function(){},h=function(e){return function(){return e}},v=function(e){return e},y=h(!1),b=h(!0),w=function(){return k},k=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:y,isNone:b,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:t,orThunk:e,map:w,each:p,bind:w,exists:y,forall:b,filter:function(){return w()},toArray:function(){return[]},toString:h("none()")};return n}(),_=function(e){var t=h(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:b,isNone:y,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return _(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:k},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},x=function(e){return null===e||void 0===e?k:_(e)},C={some:_,none:w,from:x},z=Object.keys,S=Object.hasOwnProperty,T=function(e,t){for(var n=z(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},O=function(e){return function(t,n){e[n]=t}},E=function(e,t,n,r){var o={};return T(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},A=function(e,t){var n={};return E(e,t,O(n),p),n},D=function(e,t){return S.call(e,t)},M=function(e,t){return D(e,t)&&void 0!==e[t]&&null!==e[t]},N=Array.prototype.push,R=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!u(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);N.apply(t,e[n])}return t},B=function(e,t){return t>=0&&t<e.length?C.some(e[t]):C.none()},P=function(e){return B(e,0)},L=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return C.none()};"undefined"!==typeof window?window:Function("return this;")();var I=function(e,t,n){if(!(a(n)||l(n)||g(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},H=function(e,t,n){I(e.dom,t,n)},F=function(e,t){e.dom.removeAttribute(t)},j=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return q(r.childNodes[0])},V=function(e,t){var n=t||document,r=n.createElement(e);return q(r)},U=function(e,t){var n=t||document,r=n.createTextNode(e);return q(r)},q=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},W=function(e,t,n){return C.from(e.dom.elementFromPoint(t,n)).map(q)},$={fromHtml:j,fromTag:V,fromText:U,fromDom:q,fromPoint:W},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),K=tinymce.util.Tools.resolve("tinymce.util.Promise"),X=tinymce.util.Tools.resolve("tinymce.util.URI"),Y=tinymce.util.Tools.resolve("tinymce.util.XHR"),J=function(e){return e.getParam("image_dimensions",!0,"boolean")},Q=function(e){return e.getParam("image_advtab",!1,"boolean")},Z=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},oe=function(e){return e.getParam("image_caption",!1,"boolean")},ie=function(e){return e.getParam("image_list",!1)},ae=function(e){return d(e.getParam("images_upload_url"))},ce=function(e){return d(e.getParam("images_upload_handler"))},ue=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},se=function(e){return e.getParam("automatic_uploads",!0,"boolean")},le=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},fe=function(e){return new K((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=le(n.width,n.clientWidth),t=le(n.height,n.clientHeight),o={width:e,height:t};r(K.resolve(o))},n.onerror=function(){r(K.reject("Failed to get image dimensions for: "+e))};var o=n.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",document.body.appendChild(n),n.src=e}))},de=function(e){return e&&(e=e.replace(/px$/,"")),e},me=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},ge=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},pe=function(e,t){var n=ie(e);a(n)?Y.send({url:n,success:function(e){t(JSON.parse(e))}}):m(n)?n(t):t(n)},he=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!J(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new K((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},ye=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},be=function(e,t){return X.isDomSafe(t,"img",e.settings)},we=G.DOM,ke=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?de(e.style.marginLeft):""},_e=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?de(e.style.marginTop):""},xe=function(e){return e.style.borderWidth?de(e.style.borderWidth):""},Ce=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},ze=function(e,t){return e.style[t]?e.style[t]:""},Se=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Te=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Oe=function(e){var t=we.create("figure",{class:"image"});we.insertAfter(t,e),t.appendChild(e),t.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ee=function(e){var t=e.parentNode;we.insertAfter(e,t),we.remove(t)},Ae=function(e){Se(e)?Ee(e):Oe(e)},De=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Me=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=me(r),De(e,t)):Te(e,n,r)}},Ne=function(e,t){return e.style[t]?de(e.style[t]):Ce(e,t)},Re=function(e,t){var n=me(t);e.style.marginLeft=n,e.style.marginRight=n},Be=function(e,t){var n=me(t);e.style.marginTop=n,e.style.marginBottom=n},Pe=function(e,t){var n=me(t);e.style.borderWidth=n},Le=function(e,t){e.style.borderStyle=t},Ie=function(e){return ze(e,"borderStyle")},He=function(e){return"FIGURE"===e.nodeName},Fe=function(e){return"IMG"===e.nodeName},je=function(e){return 0===we.getAttrib(e,"alt").length&&"presentation"===we.getAttrib(e,"role")},Ve=function(e){return je(e)?"":Ce(e,"alt")},Ue=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},qe=function(e,t){var n=document.createElement("img");return Te(n,"style",t.style),(ke(n)||""!==t.hspace)&&Re(n,t.hspace),(_e(n)||""!==t.vspace)&&Be(n,t.vspace),(xe(n)||""!==t.border)&&Pe(n,t.border),(Ie(n)||""!==t.borderStyle)&&Le(n,t.borderStyle),e(n.getAttribute("style"))},We=function(e,n){var r=document.createElement("img");if(Je(e,t(t({},n),{caption:!1}),r),Ke(r,n.alt,n.isDecorative),n.caption){var o=we.create("figure",{class:"image"});return o.appendChild(r),o.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return r},$e=function(e,t){return{src:Ce(t,"src"),alt:Ve(t),title:Ce(t,"title"),width:Ne(t,"width"),height:Ne(t,"height"),class:Ce(t,"class"),style:e(Ce(t,"style")),caption:Se(t),hspace:ke(t),vspace:_e(t),border:xe(t),borderStyle:ze(t,"borderStyle"),isDecorative:je(t)}},Ge=function(e,t,n,r,o){n[r]!==t[r]&&o(e,r,n[r])},Ke=function(e,t,n){if(n){we.setAttrib(e,"role","presentation");var r=$.fromDom(e);H(r,"alt","")}else{if(s(t)){r=$.fromDom(e);F(r,"alt")}else{r=$.fromDom(e);H(r,"alt",t)}"presentation"===we.getAttrib(e,"role")&&we.setAttrib(e,"role","")}},Xe=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ke(e,n.alt,n.isDecorative)},Ye=function(e,t){return function(n,r,o){e(n,o),De(n,t)}},Je=function(e,t,n){var r=$e(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Ae(e)})),Ge(n,r,t,"src",Te),Ge(n,r,t,"title",Te),Ge(n,r,t,"width",Me("width",e)),Ge(n,r,t,"height",Me("height",e)),Ge(n,r,t,"class",Te),Ge(n,r,t,"style",Ye((function(e,t){return Te(e,"style",t)}),e)),Ge(n,r,t,"hspace",Ye(Re,e)),Ge(n,r,t,"vspace",Ye(Be,e)),Ge(n,r,t,"border",Ye(Pe,e)),Ge(n,r,t,"borderStyle",Ye(Le,e)),Xe(n,r,t)},Qe=function(e,t){var n=e.dom.styles.parse(t),r=ge(n),o=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(o)},Ze=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||ye(t))?null:t},et=function(e,t){var n=e.dom,r=A(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),o=n.getParent(t.parentNode,(function(e){return M(r,e.nodeName)}),e.getBody());return o?n.split(o,t):t},tt=function(e){var t=Ze(e);return t?$e((function(t){return Qe(e,t)}),t):Ue()},nt=function(e,t){var n=We((function(t){return Qe(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),He(r)){var o=et(e,r);e.selection.select(o)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},ot=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},it=function(e,t){var n=Ze(e);if(Je((function(t){return Qe(e,t)}),t,n),rt(e,n),He(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),he(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:be(e,r)?r:""})},ct=function(e,n){var r=Ze(e);if(r){var o=$e((function(t){return Qe(e,t)}),r),i=t(t({},o),n),a=at(e,i);i.src?it(e,a):ot(e,r)}else n.src&&nt(e,t(t({},Ue()),n))},ut=function(e,t){var n=c(e)&&c(t);return n?lt(e,t):t},st=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)D(i,a)&&(r[a]=e(r[a],i[a]))}return r}},lt=st(ut),ft=function(e){return e.length>0},dt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),mt=tinymce.util.Tools.resolve("tinymce.util.Tools"),gt=function(e){return a(e.value)?e.value:""},pt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},ht=function(e,t){var n=[];return mt.each(e,(function(e){var r=pt(e);if(void 0!==e.menu){var o=ht(e.menu,t);n.push({text:r,items:o})}else{var i=t(e);n.push({text:r,value:i})}})),n},vt=function(e){return void 0===e&&(e=gt),function(t){return t?C.from(t).map((function(t){return ht(t,e)})):C.none()}},yt=function(e){return vt(gt)(e)},bt=function(e){return D(e,"items")},wt=function(e,t){return L(e,(function(e){return bt(e)?wt(e.items,t):e.value===t?C.some(e):C.none()}))},kt=function(e,t){return e.bind((function(e){return wt(e,t)}))},_t={sanitizer:vt,sanitize:yt,findEntry:kt},xt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Ct={makeTab:xt},zt=function(e){var t=_t.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new K((function(n){pe(e,(function(e){n(t(e).map((function(e){return R([[{text:"None",value:""}],e])})))}))})),r=_t.sanitize(te(e)),o=Q(e),i=Z(e),c=ae(e),u=ce(e),s=tt(e),l=ne(e),f=re(e),d=J(e),m=oe(e),g=ue(e),p=se(e),h=C.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:s,imageList:e,classList:r,hasAdvTab:o,hasUploadTab:i,hasUploadUrl:c,hasUploadHandler:u,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:m,prependURL:h,hasAccessibilityOptions:g,automaticUploads:p}}))},St=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),o={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},i={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},c={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},l=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return R([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[c]:[],e.hasDescription?[o]:[],e.hasImageTitle?[i]:[],e.hasDimensions?[a]:[],[t(t({},l(e.classList.isSome()&&e.hasImageCaption)),{items:R([u.toArray(),e.hasImageCaption?[s]:[]])})]])},Tt=function(e){return{title:"General",name:"general",items:St(e)}},Ot={makeTab:Tt,makeItems:St},Et=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},At={makeTab:Et},Dt=function(e){return{prevImage:_t.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Mt=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Nt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Rt=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?C.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?C.some(e+t):C.none()}))},Bt=function(e,t){var n=t.getData();Rt(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Pt=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&_t.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&l(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Lt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var o=lt({},n);Pt(e,o,r),t.setData(o)}},It=function(e,t,n,r){var o=r.getData(),i=o.src.value,a=o.src.meta||{};a.width||a.height||!t.hasDimensions||(ft(i)?e.imageSize(i).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},Ht=function(e,t,n){var r=n.getData(),o=_t.findEntry(e.imageList,r.src.value);t.prevImage=o,n.setData({images:o.map((function(e){return e.value})).getOr("")})},Ft=function(e,t,n,r){Bt(t,r),Lt(t,r),It(e,t,n,r),Ht(t,n,r)},jt=function(e,t,n,r){var o=r.getData(),i=_t.findEntry(t.imageList,o.images);i.each((function(e){var t=""===o.alt||n.prevImage.map((function(e){return e.text===o.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=i,Ft(e,t,n,r)},Vt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?de(String(e["margin-top"])):""},Ut=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?de(String(e["margin-right"])):""},qt=function(e){return e["border-width"]?de(String(e["border-width"])):""},Wt=function(e){return e["border-style"]?String(e["border-style"]):""},$t=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=ge(e(n.style)),o=lt({},n);return o.vspace=Vt(r),o.hspace=Ut(r),o.border=qt(r),o.borderstyle=Wt(r),o.style=$t(e,t,r),o},Kt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Xt=function(e,t,n){var r=lt(Mt(t.image),n.getData()),o=qe(e.normalizeCss,Nt(r,!1));n.setData({style:o})},Yt=function(e,t,n,r){var o=r.getData();r.block("Uploading image"),P(o.fileinput).fold((function(){r.unblock()}),(function(o){var i=URL.createObjectURL(o),a=function(){r.unblock(),URL.revokeObjectURL(i)},c=function(o){r.setData({src:{value:o,meta:{}}}),r.showTab("general"),Ft(e,t,n,r)};ve(o).then((function(n){var u=e.createBlobCache(o,i,n);t.automaticUploads?e.uploadImage(u).then((function(e){c(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(u),c(u.blobUri()),r.unblock())}))}))},Jt=function(e,t,n){return function(r,o){"src"===o.name?Ft(e,t,n,r):"images"===o.name?jt(e,t,n,r):"alt"===o.name?n.prevAlt=r.getData().alt:"style"===o.name?Kt(e,r):"vspace"===o.name||"hspace"===o.name||"border"===o.name||"borderstyle"===o.name?Xt(e,t,r):"fileinput"===o.name?Yt(e,t,n,r):"isDecorative"===o.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Qt=function(e){return function(){e.open=!1}},Zt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:R([[Ot.makeTab(e)],e.hasAdvTab?[Ct.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[At.makeTab(e)]:[]])};return t}var n={type:"panel",items:Ot.makeItems(e)};return n},en=function(e){return function(t){var n=Dt(t);return{title:"Insert/Edit Image",size:"normal",body:Zt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Mt(t.image),onSubmit:e.onSubmit(t),onChange:Jt(e,t,n),onClose:Qt(n)}}},tn=function(e){return function(t){return function(n){var r=lt(Mt(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Nt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return be(e,t)?fe(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):K.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},cn=function(e){return function(t){return Qe(e,t)}},un=function(e){return function(t){return e.dom.parseStyle(t)}},sn=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},ln=function(e){return function(t){return dt(e).upload([t],!1).then((function(e){return 0===e.length?K.reject("Failed to upload image"):!1===e[0].status?K.reject(e[0].error.message):e[0]}))}},fn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:cn(e),parseStyle:un(e),serializeStyle:sn(e),uploadImage:ln(e)},n=function(){zt(e).then(en(t)).then(e.windowManager.open)};return{open:n}},dn=function(e){e.addCommand("mceImage",fn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return ct(e,n)}))}))},mn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},gn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var o=t[n];mn(o)&&(o.attr("contenteditable",e?"false":null),mt.each(o.getAll("figcaption"),r))}}},pn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",gn(!0)),e.serializer.addNodeFilter("figure",gn(!1))}))},hn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(e).open,onSetup:function(t){return t.setActive(d(Ze(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return He(e)||Fe(e)&&!ye(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){pn(e),hn(e),dn(e)}))}vn()})()},cf08:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){var t=function(){return e.get()};return{isEnabled:t}},r=function(e,t){return e.fire("VisualChars",{state:t})},o=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return o(t)===e}},a=function(e){return function(t){return typeof t===e}},c=i("string"),u=a("boolean"),s=a("number"),l=function(){},f=function(e){return function(){return e}},d=function(e){return e},m=f(!1),g=f(!0),p=function(){return h},h=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:p,each:l,bind:p,exists:m,forall:g,filter:function(){return p()},toArray:function(){return[]},toString:f("none()")};return n}(),v=function(e){var t=f(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return v(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:h},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},y=function(e){return null===e||void 0===e?h:v(e)},b={some:v,none:p,from:y},w=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},k=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},_=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},x=Object.keys,C=function(e,t){for(var n=x(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}};"undefined"!==typeof window?window:Function("return this;")();var z=3,S=function(e){return e.dom.nodeType},T=function(e){return e.dom.nodeValue},O=function(e){return function(t){return S(t)===e}},E=O(z),A=function(e,t,n){if(!(c(n)||u(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},D=function(e,t,n){A(e.dom,t,n)},M=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},N=function(e,t){e.dom.removeAttribute(t)},R=function(e,t){var n=M(e,t);return void 0===n||""===n?[]:n.split(" ")},B=function(e,t,n){var r=R(e,t),o=r.concat([n]);return D(e,t,o.join(" ")),!0},P=function(e,t,n){var r=_(R(e,t),(function(e){return e!==n}));return r.length>0?D(e,t,r.join(" ")):N(e,t),!1},L=function(e){return void 0!==e.dom.classList},I=function(e){return R(e,"class")},H=function(e,t){return B(e,"class",t)},F=function(e,t){return P(e,"class",t)},j=function(e,t){L(e)?e.dom.classList.add(t):H(e,t)},V=function(e){var t=L(e)?e.dom.classList:I(e);0===t.length&&N(e,"class")},U=function(e,t){if(L(e)){var n=e.dom.classList;n.remove(t)}else F(e,t);V(e)},q=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return G(r.childNodes[0])},W=function(e,t){var n=t||document,r=n.createElement(e);return G(r)},$=function(e,t){var n=t||document,r=n.createTextNode(e);return G(r)},G=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},K=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(G)},X={fromHtml:q,fromTag:W,fromText:$,fromDom:G,fromPoint:K},Y={" ":"nbsp","­":"shy"},J=function(e,t){var n="";return C(e,(function(e,t){n+=t})),new RegExp("["+n+"]",t?"g":"")},Q=function(e){var t="";return C(e,(function(e){t&&(t+=","),t+="span.mce-"+e})),t},Z=J(Y),ee=J(Y,!0),te=Q(Y),ne="mce-nbsp",re=function(e){return'<span data-mce-bogus="1" class="mce-'+Y[e]+'">'+e+"</span>"},oe=function(e){var t=T(e);return E(e)&&void 0!==t&&Z.test(t)},ie=function(e,t){var n=[],r=e.dom,o=w(r.childNodes,X.fromDom);return k(o,(function(e){t(e)&&(n=n.concat([e])),n=n.concat(ie(e,t))})),n},ae=function(e,t){while(e.parentNode){if(e.parentNode===t)return e;e=e.parentNode}},ce=function(e){return e.replace(ee,re)},ue=function(e){return"span"===e.nodeName.toLowerCase()&&e.classList.contains("mce-nbsp-wrap")},se=function(e,t){var n=ie(X.fromDom(t),oe);k(n,(function(t){var n=t.dom.parentNode;if(ue(n))j(X.fromDom(n),ne);else{var r=ce(e.dom.encode(T(t))),o=e.dom.create("div",null,r),i=void 0;while(i=o.lastChild)e.dom.insertAfter(i,t.dom);e.dom.remove(t.dom)}}))},le=function(e,t){var n=e.dom.select(te,t);k(n,(function(t){ue(t)?U(X.fromDom(t),ne):e.dom.remove(t,!0)}))},fe=function(e){var t=e.getBody(),n=e.selection.getBookmark(),r=ae(e.selection.getNode(),t);r=void 0!==r?r:t,le(e,r),se(e,r),e.selection.moveToBookmark(n)},de=function(e,t){r(e,t.get());var n=e.getBody();!0===t.get()?se(e,n):le(e,n)},me=function(e,t){t.set(!t.get());var n=e.selection.getBookmark();de(e,t),e.selection.moveToBookmark(n)},ge=function(e,t){e.addCommand("mceVisualChars",(function(){me(e,t)}))},pe=function(e){return e.getParam("visualchars_default_state",!1)},he=function(e){return!1!==e.getParam("forced_root_block")},ve=function(e,t){e.on("init",(function(){de(e,t)}))},ye=tinymce.util.Tools.resolve("tinymce.util.Delay"),be=function(e,t){var n=ye.debounce((function(){fe(e)}),300);he(e)&&e.on("keydown",(function(r){!0===t.get()&&(13===r.keyCode?fe(e):n())})),e.on("remove",n.stop)},we=function(e,t){return function(n){n.setActive(t.get());var r=function(e){return n.setActive(e.state)};return e.on("VisualChars",r),function(){return e.off("VisualChars",r)}}},ke=function(e,t){var n=function(){return e.execCommand("mceVisualChars")};e.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:n,onSetup:we(e,t)}),e.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",icon:"visualchars",onAction:n,onSetup:we(e,t)})};function _e(){t.add("visualchars",(function(t){var r=e(pe(t));return ge(t,r),ke(t,r),be(t,r),ve(t,r),n(r)}))}_e()})()},d169:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return function(t){return e===t}},n=t(null),r=function(){},o=function(e){return function(){return e}},i=function(e){return e},a=o(!1),c=o(!0),u=function(){return s},s=function(){var e=function(e){return e()},t=i,n={fold:function(e,t){return e()},isSome:a,isNone:c,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:t,orThunk:e,map:u,each:r,bind:u,exists:a,forall:c,filter:function(){return u()},toArray:function(){return[]},toString:o("none()")};return n}(),l=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:c,isNone:a,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return l(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},f=function(e){return null===e||void 0===e?s:l(e)},d={some:l,none:u,from:f},m=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},g=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},p=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},h=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},v=function(e,t){var r=null,o=function(){n(r)||(clearTimeout(r),r=null)},i=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];o(),r=setTimeout((function(){r=null,e.apply(null,n)}),t)};return{cancel:o,throttle:i}},y=function(e,t){e.insertContent(t)},b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)},w=Object.keys,k=Object.hasOwnProperty,_=function(e,t){for(var n=w(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},x=function(e,t){return C(e,(function(e,n){return{k:n,v:t(e,n)}}))},C=function(e,t){var n={};return _(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},z=function(e,t){return k.call(e,t)},S=function(e,t){return t},T=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)z(i,a)&&(r[a]=e(r[a],i[a]))}return r}},O=T(S),E=function(e){var t=h(d.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(d.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(d.some(e))};return{clear:r,isSet:o,get:i,set:a}},A=function(){var e=E(r),t=function(t){return e.get().each(t)};return b(b({},e),{on:t})},D=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},M=function(e,t){return-1!==e.indexOf(t)},N=function(e,t){return D(e,t,0)},R=tinymce.util.Tools.resolve("tinymce.Resource"),B=tinymce.util.Tools.resolve("tinymce.util.Delay"),P=tinymce.util.Tools.resolve("tinymce.util.Promise"),L="tinymce.plugins.emoticons",I=function(e){return e.getParam("emoticons_database","emojis","string")},H=function(e,t){var n=I(e);return e.getParam("emoticons_database_url",t+"/js/"+n+e.suffix+".js","string")},F=function(e){return e.getParam("emoticons_database_id",L,"string")},j=function(e){return e.getParam("emoticons_append",{},"object")},V=function(e){return e.getParam("emoticons_images_url","https://twemoji.maxcdn.com/v/13.0.1/72x72/","string")},U="All",q={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},W=function(e,t){return z(e,t)?e[t]:t},$=function(e){var t=j(e);return x(t,(function(e){return b({keywords:[],category:"user"},e)}))},G=function(e,t,n){var r=A(),o=A(),i=V(e),a=function(e){return N(e.char,"<img")?e.char.replace(/src="([^"]+)"/,(function(e,t){return'src="'+i+t+'"'})):e.char},c=function(e){var t={},n=[];_(e,(function(e,r){var o={title:r,keywords:e.keywords,char:a(e),category:W(q,e.category)},i=void 0!==t[o.category]?t[o.category]:[];t[o.category]=i.concat([o]),n.push(o)})),r.set(t),o.set(n)};e.on("init",(function(){R.load(n,t).then((function(t){var n=$(e);c(O(t,n))}),(function(e){console.log("Failed to load emoticons: "+e),r.set({}),o.set([])}))}));var u=function(e){return e===U?s():r.get().bind((function(t){return d.from(t[e])})).getOr([])},s=function(){return o.get().getOr([])},l=function(){return[U].concat(w(r.get().getOr({})))},f=function(){return m()?P.resolve(!0):new P((function(e,n){var r=15,o=B.setInterval((function(){m()?(B.clearInterval(o),e(!0)):(r--,r<0&&(console.log("Could not load emojis from url: "+t),B.clearInterval(o),n(!1)))}),100)}))},m=function(){return r.isSet()&&o.isSet()};return{listCategories:l,hasLoaded:m,waitForLoad:f,listAll:s,listCategory:u}},K=function(e,t){return M(e.title.toLowerCase(),t)||m(e.keywords,(function(e){return M(e.toLowerCase(),t)}))},X=function(e,t,n){for(var r=[],o=t.toLowerCase(),i=n.fold((function(){return a}),(function(e){return function(t){return t>=e}})),c=0;c<e.length;c++)if((0===t.length||K(e[c],o))&&(r.push({value:e[c].char,text:e[c].title,icon:e[c].char}),i(r.length)))break;return r},Y="pattern",J=function(e,t){var n={pattern:"",results:X(t.listAll(),"",d.some(300))},r=h(U),o=function(e){var n=e.getData(),o=r.get(),i=t.listCategory(o),a=X(i,n[Y],o===U?d.some(300):d.none());e.setData({results:a})},i=v((function(e){o(e)}),200),a={label:"Search",type:"input",name:Y},c={type:"collection",name:"results"},u=function(){var o={type:"tabpanel",tabs:g(t.listCategories(),(function(e){return{title:e,name:e,items:[a,c]}}))};return{title:"Emoticons",size:"normal",body:o,initialData:n,onTabChange:function(e,t){r.set(t.newTabName),i.throttle(e)},onChange:i.throttle,onAction:function(t,n){"results"===n.name&&(y(e,n.value),t.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}},s=e.windowManager.open(u());s.focus(Y),t.hasLoaded()||(s.block("Loading emoticons..."),t.waitForLoad().then((function(){s.redial(u()),i.throttle(s),s.focus(Y),s.unblock()})).catch((function(e){s.redial({title:"Emoticons",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"<p>Could not load emoticons</p>"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),s.focus(Y),s.unblock()})))},Q=function(e,t){e.addCommand("mceEmoticons",(function(){return J(e,t)}))},Z=function(e){e.on("PreInit",(function(){e.parser.addAttributeFilter("data-emoticon",(function(e){p(e,(function(e){e.attr("data-mce-resize","false"),e.attr("data-mce-placeholder","1")}))}))}))},ee=function(e,t){e.ui.registry.addAutocompleter("emoticons",{ch:":",columns:"auto",minChars:2,fetch:function(e,n){return t.waitForLoad().then((function(){var r=t.listAll();return X(r,e,d.some(n))}))},onAction:function(t,n,r){e.selection.setRng(n),e.insertContent(r),t.hide()}})},te=function(e){var t=function(){return e.execCommand("mceEmoticons")};e.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:t}),e.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:t})};function ne(){e.add("emoticons",(function(e,t){var n=H(e,t),r=F(e),o=G(e,n,r);Q(e,o),te(e),ee(e,o),Z(e)}))}ne()})()},d2dc:function(e,t,n){n("169f")},d4c32:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){e.addCommand("mcePrint",(function(){t.browser.isIE()?e.getDoc().execCommand("print",!1,null):e.getWin().print()}))},r=function(e){var t=function(){return e.execCommand("mcePrint")};e.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:t}),e.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:t})};function o(){e.add("print",(function(e){n(e),r(e),e.addShortcut("Meta+P","","mcePrint")}))}o()})()},dbbc:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){e.addCommand("InsertHorizontalRule",(function(){e.execCommand("mceInsertContent",!1,"<hr />")}))},n=function(e){var t=function(){return e.execCommand("InsertHorizontalRule")};e.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:t}),e.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:t})};function r(){e.add("hr",(function(e){t(e),n(e)}))}r()})()},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},o=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},i=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},c=a((function(e,t){return e===t})),u=c,s=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e.eq(t[o],n[o]))return!1;return!0}))},l=function(e,t){return i(s(e),(function(e){return o(e,t)}))},f=function(e){return a((function(t,n){var r=Object.keys(t),o=Object.keys(n);if(!l(u).eq(r,o))return!1;for(var i=r.length,a=0;a<i;a++){var c=r[a];if(!e.eq(t[c],n[c]))return!1}return!0}))},d=a((function(e,t){if(e===t)return!0;var o=n(e),i=n(t);return o===i&&(r(o)?e===t:"array"===o?s(d).eq(e,t):"object"===o&&f(d).eq(e,t))})),m=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},g=function(e){return function(t){return m(t)===e}},p=function(e){return function(t){return typeof t===e}},h=function(e){return function(t){return e===t}},v=g("string"),y=g("object"),b=g("array"),w=h(null),k=p("boolean"),_=h(void 0),x=function(e){return null===e||void 0===e},C=function(e){return!x(e)},z=p("function"),S=p("number"),T=function(){},O=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},E=function(e,t){return function(n){return e(t(n))}},A=function(e){return function(){return e}},D=function(e){return e},M=function(e,t){return e===t};function N(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var R=function(e){return function(t){return!e(t)}},B=function(e){return function(){throw new Error(e)}},P=function(e){return e()},L=function(e){e()},I=A(!1),H=A(!0),F=function(){return j},j=function(){var e=function(e){return e()},t=D,n={fold:function(e,t){return e()},isSome:I,isNone:H,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:A(null),getOrUndefined:A(void 0),or:t,orThunk:e,map:F,each:T,bind:F,exists:I,forall:H,filter:function(){return F()},toArray:function(){return[]},toString:A("none()")};return n}(),V=function(e){var t=A(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:H,isNone:I,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return V(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:j},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},U=function(e){return null===e||void 0===e?j:V(e)},q={some:V,none:F,from:U},W=Array.prototype.slice,$=Array.prototype.indexOf,G=Array.prototype.push,K=function(e,t){return $.call(e,t)},X=function(e,t){var n=K(e,t);return-1===n?q.none():q.some(n)},Y=function(e,t){return K(e,t)>-1},J=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},Q=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],c=t(a,o)?n:r;c.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){return Z(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return q.some(i);if(n(i,r))break}return q.none()},ae=function(e,t){return ie(e,t,I)},ce=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return q.some(n)}return q.none()},ue=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!b(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);G.apply(t,e[n])}return t},se=function(e,t){return ue(Q(e,t))},le=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},fe=function(e){var t=W.call(e,0);return t.reverse(),t},de=function(e,t){return ne(e,(function(e){return!Y(t,e)}))},me=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},ge=function(e,t){var n=W.call(e,0);return n.sort(t),n},pe=function(e,t){return t>=0&&t<e.length?q.some(e[t]):q.none()},he=function(e){return pe(e,0)},ve=function(e){return pe(e,e.length-1)},ye=z(Array.from)?Array.from:function(e){return W.call(e)},be=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return q.none()},we=Object.keys,ke=Object.hasOwnProperty,_e=function(e,t){for(var n=we(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},xe=function(e,t){return Ce(e,(function(e,n){return{k:n,v:t(e,n)}}))},Ce=function(e,t){var n={};return _e(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},ze=function(e){return function(t,n){e[n]=t}},Se=function(e,t,n,r){var o={};return _e(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},Te=function(e,t){var n={},r={};return Se(e,t,ze(n),ze(r)),{t:n,f:r}},Oe=function(e,t){var n={};return Se(e,t,ze(n),T),n},Ee=function(e,t){var n=[];return _e(e,(function(e,r){n.push(t(e,r))})),n},Ae=function(e){return Ee(e,D)},De=function(e,t){return Me(e,t)?q.from(e[t]):q.none()},Me=function(e,t){return ke.call(e,t)},Ne=function(e,t){return Me(e,t)&&void 0!==e[t]&&null!==e[t]},Re=function(e,t,n){return void 0===n&&(n=d),f(n).eq(e,t)},Be=Array.isArray,Pe=function(e){if(Be(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Le=function(e,t,n){var r,o;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Me(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Ie=function(e,t){var n=[];return Le(e,(function(r,o){n.push(t(r,o,e))})),n},He=function(e,t){var n=[];return Le(e,(function(r,o){t&&!t(r,o,e)||n.push(r)})),n},Fe=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},je=function(e,t,n,r){for(var o=_(n)?e[0]:n,i=0;i<e.length;i++)o=t.call(r,o,e[i],i);return o},Ve=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},Ue=function(e){return e[e.length-1]},qe=function(){return qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};function We(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function $e(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Ge=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},Ke=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:A(o),isiPhone:A(i),isTablet:A(u),isPhone:A(s),isTouch:A(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:A(l),isDesktop:A(f)}},Xe=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Ye=function(e,t){var n=Xe(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Ze(r(1),r(2))},Je=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Qe():Ye(e,n)},Qe=function(){return Ze(0,0)},Ze=function(e,t){return{major:e,minor:t}},et={nu:Ze,detect:Je,unknown:Qe},tt=function(e,t){return be(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ct=function(e,t){return st(e,t)?it(e,t.length):e},ut=function(e,t){return-1!==e.indexOf(t)},st=function(e,t){return at(e,t,0)},lt=function(e){return function(t){return t.replace(e,"")}},ft=lt(/^\s+|\s+$/g),dt=lt(/^\s+/g),mt=lt(/\s+$/g),gt=function(e){return e.length>0},pt=function(e){return!gt(e)},ht=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return ut(t,e)}},yt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ht],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[ht,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[ht,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],bt=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],wt={browsers:A(yt),oses:A(bt)},kt="Edge",_t="Chrome",xt="IE",Ct="Opera",zt="Firefox",St="Safari",Tt=function(){return Ot({current:void 0,version:et.unknown()})},Ot=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(kt),isChrome:r(_t),isIE:r(xt),isOpera:r(Ct),isFirefox:r(zt),isSafari:r(St)}},Et={unknown:Tt,nu:Ot,edge:A(kt),chrome:A(_t),ie:A(xt),opera:A(Ct),firefox:A(zt),safari:A(St)},At="Windows",Dt="iOS",Mt="Android",Nt="Linux",Rt="OSX",Bt="Solaris",Pt="FreeBSD",Lt="ChromeOS",It=function(){return Ht({current:void 0,version:et.unknown()})},Ht=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(At),isiOS:r(Dt),isAndroid:r(Mt),isOSX:r(Rt),isLinux:r(Nt),isSolaris:r(Bt),isFreeBSD:r(Pt),isChromeOS:r(Lt)}},Ft={unknown:It,nu:Ht,windows:A(At),ios:A(Dt),android:A(Mt),linux:A(Nt),osx:A(Rt),solaris:A(Bt),freebsd:A(Pt),chromeos:A(Lt)},jt=function(e,t,n){var r=wt.browsers(),o=wt.oses(),i=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Et.unknown,Et.nu),a=ot(o,e).fold(Ft.unknown,Ft.nu),c=Ke(a,i,e,n);return{browser:i,os:a,deviceType:c}},Vt={detect:jt},Ut=function(e){return window.matchMedia(e).matches},qt=Ge((function(){return Vt.detect(navigator.userAgent,q.from(navigator.userAgentData),Ut)})),Wt=function(){return qt()},$t=navigator.userAgent,Gt=Wt(),Kt=Gt.browser,Xt=Gt.os,Yt=Gt.deviceType,Jt=/WebKit/.test($t)&&!Kt.isEdge(),Qt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Zt=-1!==$t.indexOf("Windows Phone"),en={opera:Kt.isOpera(),webkit:Jt,ie:!(!Kt.isIE()&&!Kt.isEdge())&&Kt.version.major,gecko:Kt.isFirefox(),mac:Xt.isOSX()||Xt.isiOS(),iOS:Yt.isiPad()||Yt.isiPhone(),android:Xt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Kt.isIE()?document.documentMode||7:10,fileApi:Qt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Kt.isIE(),desktop:Yt.isDesktop(),windowsPhone:Zt,browser:{current:Kt.current,version:Kt.version,isChrome:Kt.isChrome,isEdge:Kt.isEdge,isFirefox:Kt.isFirefox,isIE:Kt.isIE,isOpera:Kt.isOpera,isSafari:Kt.isSafari},os:{current:Xt.current,version:Xt.version,isAndroid:Xt.isAndroid,isChromeOS:Xt.isChromeOS,isFreeBSD:Xt.isFreeBSD,isiOS:Xt.isiOS,isLinux:Xt.isLinux,isOSX:Xt.isOSX,isSolaris:Xt.isSolaris,isWindows:Xt.isWindows},deviceType:{isDesktop:Yt.isDesktop,isiPad:Yt.isiPad,isiPhone:Yt.isiPhone,isPhone:Yt.isPhone,isTablet:Yt.isTablet,isTouch:Yt.isTouch,isWebView:Yt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!Be(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=Me,cn=function(e,t,n){var r,o,i,a=this,c=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var u=e[3].match(/(^|\.)(\w+)$/i)[2],s=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[u]){if("static"===e[2])return s[u]=t,void(this.onCreate&&this.onCreate(e[2],e[3],s[u]));t[u]||(t[u]=function(){},c=1),s[u]=t[u],a.extend(s[u].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],i=s[u],s[u]=c?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},s[u].prototype[u]=s[u],a.each(r,(function(e,t){s[u].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?s[u].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==u&&(s[u].prototype[t]=e)}))),a.each(t.static,(function(e,t){s[u][t]=e}))}},un=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var o=t[r];for(var i in o)if(Me(o,i)){var a=o[i];void 0!==a&&(e[i]=a)}}return e},sn=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Le(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;sn(e,t,n,r)})))},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},fn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},dn=function(e,t){return!e||rn(e,"array")?e:Ie(e.split(t||","),nn)},mn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},gn={trim:nn,isArray:Be,is:rn,toArray:Pe,makeMap:on,each:Le,map:Ie,grep:He,inArray:Fe,hasOwn:an,extend:un,create:cn,walk:sn,createNS:ln,resolve:fn,explode:dn,_addCacheSuffix:mn},pn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return yn(r.childNodes[0])},hn=function(e,t){var n=t||document,r=n.createElement(e);return yn(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return yn(r)},yn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},bn=function(e,t,n){return q.from(e.dom.elementFromPoint(t,n)).map(yn)},wn={fromHtml:pn,fromTag:hn,fromText:vn,fromDom:yn,fromPoint:bn},kn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},_n=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},xn=function(e,t){return _n(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Cn=8,zn=9,Sn=11,Tn=1,On=3,En=function(e,t){var n=e.dom;if(n.nodeType!==Tn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},An=function(e){return e.nodeType!==Tn&&e.nodeType!==zn&&e.nodeType!==Sn||0===e.childElementCount},Dn=function(e,t){var n=void 0===t?document:t.dom;return An(n)?[]:Q(n.querySelectorAll(e),wn.fromDom)},Mn=function(e,t){var n=void 0===t?document:t.dom;return An(n)?q.none():q.from(n.querySelector(e)).map(wn.fromDom)},Nn=function(e,t){return e.dom===t.dom},Rn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Bn=function(e,t){return xn(e.dom,t.dom)},Pn=function(e,t){return Wt().browser.isIE()?Bn(e,t):Rn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var Ln=function(e){var t=e.dom.nodeName;return t.toLowerCase()},In=function(e){return e.dom.nodeType},Hn=function(e){return function(t){return In(t)===e}},Fn=function(e){return In(e)===Cn||"#comment"===Ln(e)},jn=Hn(Tn),Vn=Hn(On),Un=Hn(zn),qn=Hn(Sn),Wn=function(e){return function(t){return jn(t)&&Ln(t)===e}},$n=function(e){return wn.fromDom(e.dom.ownerDocument)},Gn=function(e){return Un(e)?e:$n(e)},Kn=function(e){return wn.fromDom(Gn(e).dom.documentElement)},Xn=function(e){return wn.fromDom(Gn(e).dom.defaultView)},Yn=function(e){return q.from(e.dom.parentNode).map(wn.fromDom)},Jn=function(e,t){var n=z(t)?t:I,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=wn.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},Qn=function(e){var t=function(t){return ne(t,(function(t){return!Nn(e,t)}))};return Yn(e).map(rr).map(t).getOr([])},Zn=function(e){return q.from(e.dom.previousSibling).map(wn.fromDom)},er=function(e){return q.from(e.dom.nextSibling).map(wn.fromDom)},tr=function(e){return fe(kn(e,Zn))},nr=function(e){return kn(e,er)},rr=function(e){return Q(e.dom.childNodes,wn.fromDom)},or=function(e,t){var n=e.dom.childNodes;return q.from(n[t]).map(wn.fromDom)},ir=function(e){return or(e,0)},ar=function(e){return or(e,e.dom.childNodes.length-1)},cr=function(e){return e.dom.childNodes.length},ur=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return wn.fromDom(t)},sr=function(e){return qn(e)&&C(e.dom.host)},lr=z(Element.prototype.attachShadow)&&z(Node.prototype.getRootNode),fr=A(lr),dr=lr?function(e){return wn.fromDom(e.dom.getRootNode())}:Gn,mr=function(e){return sr(e)?e:ur(Gn(e))},gr=function(e){var t=dr(e);return sr(t)?q.some(t):q.none()},pr=function(e){return wn.fromDom(e.dom.host)},hr=function(e){if(fr()&&C(e.target)){var t=wn.fromDom(e.target);if(jn(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return he(n)}}return q.from(e.target)},vr=function(e){return C(e.dom.shadowRoot)},yr=function(e,t){var n=Yn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},br=function(e,t){var n=er(e);n.fold((function(){var n=Yn(e);n.each((function(e){kr(e,t)}))}),(function(e){yr(e,t)}))},wr=function(e,t){var n=ir(e);n.fold((function(){kr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},kr=function(e,t){e.dom.appendChild(t.dom)},_r=function(e,t){yr(e,t),kr(t,e)},xr=function(e,t){Z(t,(function(t){yr(e,t)}))},Cr=function(e,t){Z(t,(function(t){kr(e,t)}))},zr=function(e){e.dom.textContent="",Z(rr(e),(function(e){Sr(e)}))},Sr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Tr=function(e){var t=rr(e);t.length>0&&xr(e,t),Sr(e)},Or=function(e){var t=Vn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return gr(wn.fromDom(t)).fold((function(){return n.body.contains(t)}),E(Or,pr))},Er=function(e,t){var n=function(n,r){return Er(e+n,t+r)};return{left:e,top:t,translate:n}},Ar=Er,Dr=function(e){var t=e.getBoundingClientRect();return Ar(t.left,t.top)},Mr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Nr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Ar(n.offsetLeft,n.offsetTop);var i=Mr(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Mr(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),c=Mr(o.clientTop,n.clientTop),u=Mr(o.clientLeft,n.clientLeft);return Rr(e).translate(a-u,i-c)},Rr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Ar(r.offsetLeft,r.offsetTop):Or(e)?Dr(t):Ar(0,0)},Br=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Ar(n,r)},Pr=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(e,t)},Lr=function(e,t){var n=Wt().browser.isSafari();n&&z(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Ir=function(e){var t=void 0===e?window:e;return Wt().browser.isFirefox()?q.none():q.from(t["visualViewport"])},Hr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Fr=function(e){var t=void 0===e?window:e,n=t.document,r=Br(wn.fromDom(n));return Ir(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Hr(r.left,r.top,n,o)}),(function(e){return Hr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},jr=function(e){return function(t){return!!t&&t.nodeType===e}},Vr=function(e){return!!e&&!Object.getPrototypeOf(e)},Ur=jr(1),qr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return Y(t,n)}return!1}},Wr=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Ur(t))for(var r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null),i=o?o.getPropertyValue(e):null;if(i===n[r])return!0}return!1}},$r=function(e){return function(t){return Ur(t)&&t.hasAttribute(e)}},Gr=function(e,t){return function(n){return Ur(n)&&n.getAttribute(e)===t}},Kr=function(e){return Ur(e)&&e.hasAttribute("data-mce-bogus")},Xr=function(e){return Ur(e)&&"all"===e.getAttribute("data-mce-bogus")},Yr=function(e){return Ur(e)&&"TABLE"===e.tagName},Jr=function(e){return function(t){if(Ur(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Qr=qr(["textarea","input"]),Zr=jr(3),eo=jr(8),to=jr(9),no=jr(11),ro=qr(["br"]),oo=qr(["img"]),io=Jr("true"),ao=Jr("false"),co=qr(["td","th"]),uo=qr(["video","audio","object","embed"]),so=function(e,t,n){return void 0===n&&(n=M),e.exists((function(e){return n(e,t)}))},lo=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},fo=function(e,t,n){return e.isSome()&&t.isSome()?q.some(n(e.getOrDie(),t.getOrDie())):q.none()},mo=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?q.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):q.none()},go=function(e,t){return e?q.some(t):q.none()},po=function(e){return void 0!==e.style&&z(e.style.getPropertyValue)},ho=function(e,t,n){if(!(v(n)||k(n)||S(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},vo=function(e,t,n){ho(e.dom,t,n)},yo=function(e,t){var n=e.dom;_e(t,(function(e,t){ho(n,t,e)}))},bo=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},wo=function(e,t){return q.from(bo(e,t))},ko=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},_o=function(e,t){e.dom.removeAttribute(t)},xo=function(e){return oe(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},Co=function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);po(e)&&e.style.setProperty(t,n)},zo=function(e,t){var n=e.dom;_e(t,(function(e,t){Co(n,t,e)}))},So=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Or(e)?o:To(n,t)},To=function(e,t){return po(e)?e.style.getPropertyValue(t):""},Oo=function(e,t){var n=e.dom,r=To(n,t);return q.from(r).filter((function(e){return e.length>0}))},Eo=function(e){var t={},n=e.dom;if(po(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},Ao=function(e){return e.dom.offsetWidth},Do=Wt().browser,Mo=function(e){return ae(e,jn)},No=function(e){return Do.isFirefox()&&"table"===Ln(e)?Mo(rr(e)).filter((function(e){return"caption"===Ln(e)})).bind((function(e){return Mo(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,o=e.dom.offsetHeight;return n<=r?-o:0}))})).getOr(0):0},Ro=function(e,t){return e.children&&Y(e.children,t)},Bo=function(e,t,n){var r=0,o=0,i=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===So(wn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(i.documentElement.scrollLeft||e.scrollLeft)-i.documentElement.clientLeft,o=a.top+(i.documentElement.scrollTop||e.scrollTop)-i.documentElement.clientTop,{x:r,y:o}}var c=t;while(c&&c!==n&&c.nodeType&&!Ro(c,n)){var u=c;r+=u.offsetLeft||0,o+=u.offsetTop||0,c=u.offsetParent}c=t.parentNode;while(c&&c!==n&&c.nodeType&&!Ro(c,n))r-=c.scrollLeft||0,o-=c.scrollTop||0,c=c.parentNode;o+=No(wn.fromDom(t))}return{x:r,y:o}},Po={},Lo={exports:Po};(function(e,n,r,o){(function(t,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof e&&e.amd?e(o):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=o())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function o(e,t){return function(){e.apply(t,arguments)}}function i(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void u(t.promise,o)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,s(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var c=a.then;if("function"===typeof c)return void c.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(u){n(u)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},i.resolve=function(e){return e&&"object"===typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},i._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},t.exports?t.exports=i:e.Promise||(e.Promise=i)})(e)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,Po,Lo);var Io=Lo.exports.boltExport,Ho=function(e){var t=q.none(),n=[],r=function(e){return Ho((function(t){o((function(n){t(e(n))}))}))},o=function(e){a()?u(e):n.push(e)},i=function(e){a()||(t=q.some(e),c(n),n=[])},a=function(){return t.isSome()},c=function(e){Z(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(i),{get:o,map:r,isReady:a}},Fo=function(e){return Ho((function(t){t(e)}))},jo={nu:Ho,pure:Fo},Vo=function(e){setTimeout((function(){throw e}),0)},Uo=function(e){var t=function(t){e().then(t,Vo)},n=function(t){return Uo((function(){return e().then(t)}))},r=function(t){return Uo((function(){return e().then((function(e){return t(e).toPromise()}))}))},o=function(t){return Uo((function(){return e().then((function(){return t.toPromise()}))}))},i=function(){return jo.nu(t)},a=function(){var t=null;return Uo((function(){return null===t&&(t=e()),t}))},c=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:c,get:t}},qo=function(e){return Uo((function(){return new Io(e)}))},Wo=function(e){return Uo((function(){return Io.resolve(e)}))},$o={nu:qo,pure:Wo},Go=function(e,t){return t((function(t){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=e.length&&t(n)}};0===e.length?t([]):Z(e,(function(e,t){e.get(o(t))}))}))},Ko=function(e){return Go(e,$o.nu)},Xo=function(e){var t=function(t){return Xo(e)},n=function(t){return Xo(e)},r=function(t){return Xo(t(e))},o=function(t){return Xo(e)},i=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},u=function(t){return t(e)},s=function(t){return t(e)},l=function(){return q.some(e)};return{isValue:H,isError:I,getOr:A(e),getOrThunk:A(e),getOrDie:A(e),or:t,orThunk:n,fold:c,map:r,mapError:o,each:i,bind:a,exists:u,forall:s,toOptional:l}},Yo=function(e){var t=function(e){return e()},n=function(){return B(String(e))()},r=D,o=function(e){return e()},i=function(t){return Yo(e)},a=function(t){return Yo(t(e))},c=function(t){return Yo(e)},u=function(t,n){return t(e)};return{isValue:I,isError:H,getOr:D,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:u,map:i,mapError:a,each:T,bind:c,exists:I,forall:H,toOptional:q.none}},Jo=function(e,t){return e.fold((function(){return Yo(t)}),Xo)},Qo={value:Xo,error:Yo,fromOption:Jo},Zo=function(e){if(!b(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Z(e,(function(r,o){var i=we(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!b(c))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+i);var u=function(e){var r=we(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=le(t,(function(e){return Y(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:u,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},ei={generate:Zo};ei.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ti=function(e){return e.fold(D,D)};function ni(e,t,n,r,o){return e(n,r)?q.some(n):z(o)&&o(n)?q.none():t(n,r,o)}var ri,oi,ii,ai,ci,ui,si,li,fi,di,mi,gi,pi,hi,vi,yi,bi,wi,ki,_i=function(e,t,n){var r=e.dom,o=z(n)?n:I;while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r);if(t(i))return q.some(i);if(o(i))break}return q.none()},xi=function(e,t,n){var r=function(e,t){return t(e)};return ni(r,_i,e,t,n)},Ci=function(e,t){var n=e.dom;return n.parentNode?zi(wn.fromDom(n.parentNode),(function(n){return!Nn(e,n)&&t(n)})):q.none()},zi=function(e,t){var n=function(e){return t(wn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(wn.fromDom)},Si=function(e,t,n){return _i(e,(function(e){return En(e,t)}),n)},Ti=function(e,t){return Mn(t,e)},Oi=function(e,t,n){var r=function(e,t){return En(e,t)};return ni(r,Si,e,t,n)},Ei=window.Promise?window.Promise:Io,Ai=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],o=function(e){window.setTimeout(e,0)},i=0;i<r.length&&!n;i++)n=window[r[i]+"RequestAnimationFrame"];n||(n=o),n(e,t)},Di=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Mi=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Ni=function(e){return clearTimeout(e)},Ri=function(e){return clearInterval(e)},Bi=function(e,t){var n,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=Di((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Pi={requestAnimationFrame:function(e,t){ri?ri.then(e):ri=new Ei((function(e){t||(t=document.body),Ai(e,t)})).then(e)},setTimeout:Di,setInterval:Mi,setEditorTimeout:function(e,t,n){return Di((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Mi((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Bi,throttle:Bi,clearInterval:Ri,clearTimeout:Ni},Li=function(e,t){void 0===t&&(t={});var n=0,r={},o=wn.fromDom(e),i=Gn(o),a=t.maxLoadTime||5e3,c=function(e){t.referrerPolicy=e},u=function(e){kr(mr(o),e)},s=function(e){var t=mr(o);Ti(t,"#"+e).each(Sr)},l=function(e){return De(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,o,c){var s,f=gn._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var m=function(e,t){var n=e.length;while(n--)e[n]();d.status=t,d.passed=[],d.failed=[],s&&(s.onload=null,s.onerror=null,s=null)},g=function(){return m(d.passed,2)},p=function(){return m(d.failed,3)},h=function(e,t){e()||(Date.now()-b<a?Pi.setTimeout(t):p())},v=function(){h((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],o=r.ownerNode;if(o&&o.id===s.id)return g(),!0}return!1}),v)};if(o&&d.passed.push(o),c&&d.failed.push(c),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var y=wn.fromTag("link",i.dom);yo(y,{rel:"stylesheet",type:"text/css",id:d.id});var b=Date.now();t.contentCssCors&&vo(y,"crossOrigin","anonymous"),t.referrerPolicy&&vo(y,"referrerpolicy",t.referrerPolicy),s=y.dom,s.onload=v,s.onerror=p,u(y),vo(y,"href",f)}else p();else g()},d=function(e){return $o.nu((function(t){f(e,O(t,A(Qo.value(e))),O(t,A(Qo.error(e))))}))},m=function(e,t,n){Ko(Q(e,d)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(ti)):t(r.pass.map(ti))}))},g=function(e){var t=gn._addCacheSuffix(e);De(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],s(e.id))}))},p=function(e){Z(e,(function(e){g(e)}))};return{load:f,loadAll:m,unload:g,unloadAll:p,_setReferrerPolicy:c}},Ii=function(){var e=new WeakMap,t=function(t,n){var r=dr(t),o=r.dom;return q.from(e.get(o)).getOrThunk((function(){var t=Li(o,n);return e.set(o,t),t}))};return{forElement:t}},Hi=Ii(),Fi=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n],o)return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n],o)return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if(i=e.parentNode,i&&i!==this.rootNode)return i}},e}(),ji=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Vi=["td","th"],Ui=["thead","tbody","tfoot"],qi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Wi=["h1","h2","h3","h4","h5","h6"],$i=["li","dd","dt"],Gi=["ul","ol","dl"],Ki=["pre","script","textarea","style"],Xi=function(e){var t;return function(n){return t=t||me(e,H),Me(t,Ln(n))}},Yi=Xi(Wi),Ji=Xi(ji),Qi=function(e){return"table"===Ln(e)},Zi=function(e){return jn(e)&&!Ji(e)},ea=function(e){return jn(e)&&"br"===Ln(e)},ta=Xi(qi),na=Xi(Gi),ra=Xi($i),oa=Xi(Ui),ia=Xi(Vi),aa=Xi(Ki),ca=function(e,t,n){return Si(e,t,n).isSome()},ua="\ufeff",sa=" ",la=function(e){return e===ua},fa=function(e){return e.replace(/\uFEFF/g,"")},da=ua,ma=la,ga=fa,pa=Ur,ha=Zr,va=function(e){return ha(e)&&(e=e.parentNode),pa(e)&&e.hasAttribute("data-mce-caret")},ya=function(e){return ha(e)&&ma(e.data)},ba=function(e){return va(e)||ya(e)},wa=function(e){return e.firstChild!==e.lastChild||!ro(e.firstChild)},ka=function(e,t){var n=e.ownerDocument,r=n.createTextNode(da),o=e.parentNode;if(t){i=e.previousSibling;if(ha(i)){if(ba(i))return i;if(Ta(i))return i.splitText(i.data.length-1)}o.insertBefore(r,e)}else{var i=e.nextSibling;if(ha(i)){if(ba(i))return i;if(Sa(i))return i.splitText(1),i}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r},_a=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset())===da||e.isAtStart()&&ya(t.previousSibling))},xa=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset()-1)===da||e.isAtEnd()&&ya(t.nextSibling))},Ca=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},za=function(e,t,n){var r=t.ownerDocument,o=r.createElement(e);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(Ca());var i=t.parentNode;return n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},Sa=function(e){return ha(e)&&e.data[0]===da},Ta=function(e){return ha(e)&&e.data[e.data.length-1]===da},Oa=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Kr(n)&&n.parentNode.removeChild(n)},Ea=function(e){return e&&e.hasAttribute("data-mce-caret")?(Oa(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Aa=function(e){return va(e.startContainer)},Da=io,Ma=ao,Na=ro,Ra=Zr,Ba=qr(["script","style","textarea"]),Pa=qr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),La=qr(["table"]),Ia=ba,Ha=function(e){return!Ia(e)&&(Ra(e)?!Ba(e.parentNode):Pa(e)||Na(e)||La(e)||ja(e))},Fa=function(e){return Ur(e)&&"true"===e.getAttribute("unselectable")},ja=function(e){return!1===Fa(e)&&Ma(e)},Va=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(ja(e))return!1;if(Da(e))return!0}return!0},Ua=function(e){return!!ja(e)&&!0!==oe(ye(e.getElementsByTagName("*")),(function(e,t){return e||Da(t)}),!1)},qa=function(e){return Pa(e)||Ua(e)},Wa=function(e,t){return Ha(e)&&Va(e,t)},$a=/^[ \t\r\n]*$/,Ga=function(e){return $a.test(e)},Ka=function(e,t){var n=wn.fromDom(t),r=wn.fromDom(e);return ca(r,"pre,code",N(Nn,n))},Xa=function(e,t){return Zr(e)&&Ga(e.data)&&!1===Ka(e,t)},Ya=function(e){return Ur(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Ja=function(e,t){return Ha(e)&&!1===Xa(e,t)||Ya(e)||Qa(e)},Qa=$r("data-mce-bookmark"),Za=$r("data-mce-bogus"),ec=Gr("data-mce-bogus","all"),tc=function(e,t){var n=0;if(Ja(e,e))return!1;var r=e.firstChild;if(!r)return!0;var o=new Fi(r,e);do{if(t){if(ec(r)){r=o.next(!0);continue}if(Za(r)){r=o.next();continue}}if(ro(r))n++,r=o.next();else{if(Ja(r,e))return!1;r=o.next()}}while(r);return n<=1},nc=function(e,t){return void 0===t&&(t=!0),tc(e.dom,t)},rc=function(e){return"span"===e.nodeName.toLowerCase()},oc=function(e,t){return C(e)&&(Ja(e,t)||Zi(wn.fromDom(e)))},ic=function(e,t){var n=new Fi(e,t).prev(!1),r=new Fi(e,t).next(!1),o=_(n)||oc(n,t),i=_(r)||oc(r,t);return o&&i},ac=function(e){return rc(e)&&"bookmark"===e.getAttribute("data-mce-type")},cc=function(e,t){return Zr(e)&&e.data.length>0&&ic(e,t)},uc=function(e){return!!Ur(e)&&e.childNodes.length>0},sc=function(e){return no(e)||to(e)},lc=function(e,t,n){var r=n||t;if(Ur(t)&&ac(t))return t;for(var o=t.childNodes,i=o.length-1;i>=0;i--)lc(e,o[i],r);if(Ur(t)){var a=t.childNodes;1===a.length&&ac(a[0])&&t.parentNode.insertBefore(a[0],t)}return sc(t)||Ja(t,r)||uc(t)||cc(t,r)||e.remove(t),t},fc=gn.makeMap,dc=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mc=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gc=/[<>&\"\']/g,pc=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,hc={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},vc={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},yc={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},bc=function(e){var t=wn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},wc=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),vc[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}},kc=wc("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),_c=function(e,t){return e.replace(t?dc:mc,(function(e){return vc[e]||e}))},xc=function(e){return(""+e).replace(gc,(function(e){return vc[e]||e}))},Cc=function(e,t){return e.replace(t?dc:mc,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vc[e]||"&#"+e.charCodeAt(0)+";"}))},zc=function(e,t,n){return n=n||kc,e.replace(t?dc:mc,(function(e){return vc[e]||n[e]||e}))},Sc=function(e,t){var n=wc(t)||kc,r=function(e,t){return e.replace(t?dc:mc,(function(e){return void 0!==vc[e]?vc[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},o=function(e,t){return zc(e,t,n)},i=fc(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:zc:i.numeric?Cc:_c},Tc=function(e){return e.replace(pc,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):hc[t]||String.fromCharCode(t)):yc[e]||kc[e]||bc(e)}))},Oc={encodeRaw:_c,encodeAllRaw:xc,encodeNumeric:Cc,encodeNamed:zc,getEncodeFunc:Sc,decode:Tc},Ec={},Ac={},Dc=gn.makeMap,Mc=gn.each,Nc=gn.extend,Rc=gn.explode,Bc=gn.inArray,Pc=function(e,t){return e=gn.trim(e),e?e.split(t||" "):[]},Lc=function(e,t){var n=Dc(e," ",Dc(e.toUpperCase()," "));return Nc(n,t)},Ic=function(e){return Lc("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},Hc=function(e){var t,n,r,o,i,a,c={},u=function(e,n,r){var o,i,a,u=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};r=r||[],n=n||"","string"===typeof r&&(r=Pc(r));var s=Pc(e);o=s.length;while(o--)i=Pc([t,n].join(" ")),a={attributes:u(i),attributesOrder:i,children:u(r,Ac)},c[s[o]]=a},s=function(e,t){var n,r,o,i,a=Pc(e);n=a.length;var u=Pc(t);while(n--)for(r=c[a[n]],o=0,i=u.length;o<i;o++)r.attributes[u[o]]={},r.attributesOrder.push(u[o])};return Ec[e]?Ec[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Mc(Pc(a),(function(e){u(e,"",r)})),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),Mc(Pc(i),(function(e){u(e,"",o)}))),o=o||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),u("address dt dd div caption","",o),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),u("blockquote","cite",o),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",o),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",o),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",o),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),u("param","name value"),u("map","name",[o,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",o),u("th","colspan rowspan headers scope abbr",o),u("form","accept-charset action autocomplete enctype method name novalidate target",o),u("fieldset","disabled form name",[o,"legend"].join(" ")),u("label","form for",r),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[o,"li"].join(" ")),u("noscript","",o),"html4"!==e&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",o),u("mark rt rp summary bdi","",r),u("canvas","width height",o),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",o),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[o,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",o),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[o,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(s("script","language xml:space"),s("style","xml:space"),s("object","declare classid code codebase codetype archive standby align border hspace vspace"),s("embed","align name hspace vspace"),s("param","valuetype type"),s("a","charset name rev shape coords"),s("br","clear"),s("applet","codebase archive code object alt name width height align hspace vspace"),s("img","name longdesc align border hspace vspace"),s("iframe","longdesc frameborder marginwidth marginheight scrolling align"),s("font basefont","size color face"),s("input","usemap align"),s("select"),s("textarea"),s("h1 h2 h3 h4 h5 h6 div p legend caption","align"),s("ul","type compact"),s("li","type"),s("ol dl menu dir","compact"),s("pre","width xml:space"),s("hr","align noshade size width"),s("isindex","prompt"),s("table","summary width frame rules cellspacing cellpadding align bgcolor"),s("col","width align char charoff valign"),s("colgroup","width align char charoff valign"),s("thead","align char charoff valign"),s("tr","align char charoff valign bgcolor"),s("th","axis align char charoff valign nowrap bgcolor width height"),s("form","accept"),s("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),s("tfoot","align char charoff valign"),s("tbody","align char charoff valign"),s("area","nohref"),s("body","background bgcolor text link vlink alink")),"html4"!==e&&(s("input button select textarea","autofocus"),s("input textarea","placeholder"),s("a","download"),s("link script img","crossorigin"),s("img","loading"),s("iframe","sandbox seamless allowfullscreen loading")),Mc(Pc("a form meter progress dfn"),(function(e){c[e]&&delete c[e].children[e]})),delete c.caption.children.table,delete c.script,Ec[e]=c,c)},Fc=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Mc(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Dc(e,/[, ]/):Rc(e,/[, ]/)}))),n},jc=function(e){var t={},n={},r=[],o={},i={},a=function(t,n,r){var o=e[t];return o?o=Dc(o,/[, ]/,Dc(o.toUpperCase(),/[, ]/)):(o=Ec[t],o||(o=Lc(n,r),Ec[t]=o)),o};e=e||{};var c=Hc(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var u=Fc(e.valid_styles),s=Fc(e.invalid_styles,"map"),l=Fc(e.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),m=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),g=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),p="td th iframe video audio object script code",h=a("non_empty_elements",p+" pre",m),v=a("move_caret_before_on_enter_elements",p+" table",m),y=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),b=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",y),w=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Mc((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){i[e]=new RegExp("</"+e+"[^>]*>","gi")}));var k=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},_=function(e){var n,o,i,a,c,u,s,l,f,d,m,g,p,h,v,y,b,w,_=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,x=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,C=/[*?+]/;if(e){var z=Pc(e,",");for(t["@"]&&(y=t["@"].attributes,b=t["@"].attributesOrder),n=0,o=z.length;n<o;n++)if(c=_.exec(z[n]),c){if(h=c[1],f=c[2],v=c[3],l=c[5],g={},p=[],u={attributes:g,attributesOrder:p},"#"===h&&(u.paddEmpty=!0),"-"===h&&(u.removeEmpty=!0),"!"===c[4]&&(u.removeEmptyAttrs=!0),y&&(_e(y,(function(e,t){g[t]=e})),p.push.apply(p,b)),l)for(l=Pc(l,"|"),i=0,a=l.length;i<a;i++)if(c=x.exec(l[i]),c){if(s={},m=c[1],d=c[2].replace(/[\\:]:/g,":"),h=c[3],w=c[4],"!"===m&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(d),s.required=!0),"-"===m){delete g[d],p.splice(Bc(p,d),1);continue}h&&("="===h&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:d,value:w}),s.defaultValue=w),":"===h&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:d,value:w}),s.forcedValue=w),"<"===h&&(s.validValues=Dc(w,"?"))),C.test(d)?(u.attributePatterns=u.attributePatterns||[],s.pattern=k(d),u.attributePatterns.push(s)):(g[d]||p.push(d),g[d]=s)}y||"@"!==f||(y=g,b=p),v&&(u.outputName=f,t[v]=u),C.test(f)?(u.pattern=k(f),r.push(u)):t[f]=u}}},x=function(e){t={},r=[],_(e),Mc(c,(function(e,t){n[t]=e.children}))},C=function(e){var r=/^(~)?(.+)$/;e&&(Ec.text_block_elements=Ec.block_elements=null,Mc(Pc(e,","),(function(e){var i=r.exec(e),a="~"===i[1],c=a?"span":"div",u=i[2];if(n[u]=n[c],o[u]=c,a||(b[u.toUpperCase()]={},b[u]={}),!t[u]){var s=t[c];s=Nc({},s),delete s.removeEmptyAttrs,delete s.removeEmpty,t[u]=s}Mc(n,(function(e,t){e[c]&&(n[t]=e=Nc({},n[t]),e[u]=e[c])}))})))},z=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Ec[e.schema]=null,t&&Mc(Pc(t,","),(function(e){var t,o,i=r.exec(e);i&&(o=i[1],t=o?n[i[2]]:n[i[2]]={"#comment":{}},t=n[i[2]],Mc(Pc(i[3],"|"),(function(e){"-"===o?delete t[e]:t[e]={}})))}))},S=function(e){var n,o=t[e];if(o)return o;n=r.length;while(n--)if(o=r[n],o.pattern.test(e))return o};e.valid_elements?x(e.valid_elements):(Mc(c,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Mc(Pc("strong/b em/i"),(function(e){var n=Pc(e,"/");t[n[1]].outputName=n[0]})),Mc(w,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),Mc(Pc("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Mc(Pc("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Mc(Pc("span"),(function(e){t[e].removeEmptyAttrs=!0}))),C(e.custom_elements),z(e.valid_children),_(e.extended_valid_elements),z("+ol[ul|ol],+ul[ul|ol]"),Mc({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,n){t[n]&&(t[n].parentsRequired=Pc(e))})),e.invalid_elements&&Mc(Rc(e.invalid_elements),(function(e){t[e]&&delete t[e]})),S("span")||_("span[!data-mce-type|*]");var T=A(u),O=A(s),E=A(l),D=A(g),M=A(b),N=A(y),R=A(w),B=A(m),P=A(d),L=A(h),I=A(v),H=A(f),F=A(i),j=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},V=function(e,t){var n,r,o=S(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},U=A(o);return{children:n,elements:t,getValidStyles:T,getValidClasses:E,getBlockElements:M,getInvalidStyles:O,getShortEndedElements:B,getTextBlockElements:N,getTextInlineElements:R,getBoolAttrs:D,getElementRule:S,getSelfClosingElements:P,getNonEmptyElements:L,getMoveCaretBeforeOnEnterElements:I,getWhiteSpaceElements:H,getSpecialElements:F,isValidChild:j,isValid:V,getCustomElements:U,addValidElements:_,setValidElements:x,addCustomElements:C,addValidChildren:z}},Vc=function(e,t,n,r){var o=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+o(t)+o(n)+o(r)},Uc=function(e,t){var n,r,o,i=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,c=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,l={},f=ua;e=e||{},t&&(r=t.getValidStyles(),o=t.getInvalidStyles());var d=("\\\" \\' \\; \\: ; : "+f).split(" ");for(n=0;n<d.length;n++)l[d[n]]=f+n,l[f+n]=d[n];return{toHex:function(e){return e.replace(a,Vc)},parse:function(t){var r,o,d,m,g={},p=e.url_converter,h=e.url_converter_scope||i,v=function(e,t,r){var o=g[e+"-top"+t];if(o){var i=g[e+"-right"+t];if(i){var a=g[e+"-bottom"+t];if(a){var c=g[e+"-left"+t];if(c){var u=[o,i,a,c];n=u.length-1;while(n--)if(u[n]!==u[n+1])break;n>-1&&r||(g[e+t]=-1===n?u[0]:u.join(" "),delete g[e+"-top"+t],delete g[e+"-right"+t],delete g[e+"-bottom"+t],delete g[e+"-left"+t])}}}}},y=function(e){var t,n=g[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return g[e]=n[0],!0}},b=function(e,t,n,r){y(t)&&y(n)&&y(r)&&(g[e]=g[t]+" "+g[n]+" "+g[r],delete g[t],delete g[n],delete g[r])},w=function(e){return m=!0,l[e]},k=function(e,t){return m&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},_=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},x=function(e){return e.replace(/\\[0-9a-f]+/gi,_)},C=function(t,n,r,o,i,a){if(i=i||a,i)return i=k(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=k(n||r||o),!e.allow_script_urls){var c=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(c))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(c))return""}return p&&(n=p.call(h,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,w).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,w)}));while(r=u.exec(t))if(u.lastIndex=r.index+r[0].length,o=r[1].replace(s,"").toLowerCase(),d=r[2].replace(s,""),o&&d){if(o=x(o),d=x(d),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(d)))continue;"font-weight"===o&&"700"===d?d="bold":"color"!==o&&"background-color"!==o||(d=d.toLowerCase()),d=d.replace(a,Vc),d=d.replace(c,C),g[o]=m?k(d,!0):d}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),b("border","border-width","border-style","border-color"),"medium none"===g.border&&delete g.border,"none"===g["border-image"]&&delete g["border-image"]}return g},serialize:function(e,t){var n="",i=function(t){var o,i=r[t];if(i)for(var a=0,c=i.length;a<c;a++)t=i[a],o=e[t],o&&(n+=(n.length>0?" ":"")+t+": "+o+";")},a=function(e,t){var n=o["*"];return(!n||!n[e])&&(n=o[t],!(n&&n[e]))};return t&&r?(i("*"),i(t)):_e(e,(function(e,r){!e||o&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},qc={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Wc=function(e){return e instanceof Event||z(e.initEvent)},$c=function(e){return e.isDefaultPrevented===H||e.isDefaultPrevented===I},Gc=function(e){return x(e.preventDefault)||Wc(e)},Kc=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)Me(qc,r)||(n[r]=e[r]);return C(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Xc=function(e,t,n,r){var o,i=Kc(t,r);return i.type=e,x(i.target)&&(i.target=null!==(o=i.srcElement)&&void 0!==o?o:n),Gc(t)&&(i.preventDefault=function(){i.defaultPrevented=!0,i.isDefaultPrevented=H,z(t.preventDefault)?t.preventDefault():Wc(t)&&(t.returnValue=!1)},i.stopPropagation=function(){i.cancelBubble=!0,i.isPropagationStopped=H,z(t.stopPropagation)?t.stopPropagation():Wc(t)&&(t.cancelBubble=!0)},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=H,i.stopPropagation()},$c(i)||(i.isDefaultPrevented=!0===i.defaultPrevented?H:I,i.isPropagationStopped=!0===i.cancelBubble?H:I,i.isImmediatePropagationStopped=I)),i},Yc="mce-data-",Jc=/^(?:mouse|contextmenu)|click/,Qc=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Zc=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},eu=function(e){return C(e)&&Jc.test(e.type)},tu=function(e,t){var n=Xc(e.type,e,document,t);if(eu(e)&&_(e.pageX)&&!_(e.clientX)){var r=n.target.ownerDocument||document,o=r.documentElement,i=r.body,a=n;a.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),a.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)}return _(n.metaKey)&&(n.metaKey=!1),n},nu=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Zc(e,"DOMContentLoaded",a),Zc(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o)),e=null};i()?a():Qc(e,"DOMContentLoaded",a),n.domLoaded||Qc(e,"load",a)}},ru=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Yc+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var o,i,a,c,u,s,l,f=this,d=window,m=function(e){f.executeHandlers(tu(e||d.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?o=e[f.expando]:(o=f.count++,e[f.expando]=o,f.events[o]={}),r=r||e;var g=t.split(" ");a=g.length;while(a--)c=g[a],s=m,u=l=!1,"DOMContentLoaded"===c&&(c="ready"),f.domLoaded&&"ready"===c&&"complete"===e.readyState?n.call(r,tu({type:c})):(f.hasMouseEnterLeave||(u=f.mouseEnterLeave[c],u&&(s=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=tu(e||d.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))})),f.hasFocusIn||"focusin"!==c&&"focusout"!==c||(l=!0,u="focusin"===c?"focus":"blur",s=function(e){e=tu(e||d.event),e.type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),i=f.events[o][c],i?"ready"===c&&f.domLoaded?n(tu({type:c})):i.push({func:n,scope:r}):(f.events[o][c]=i=[{func:n,scope:r}],i.fakeName=u,i.capture=l,i.nativeHandler=s,"ready"===c?nu(e,s,f):Qc(e,u||c,s,l)));return e=i=null,n}},e.prototype.unbind=function(e,t,n){var r,o,i,a,c;if(!e||3===e.nodeType||8===e.nodeType)return this;var u=e[this.expando];if(u){if(c=this.events[u],t){var s=t.split(" ");o=s.length;while(o--)if(a=s[o],r=c[a],r){if(n){i=r.length;while(i--)if(r[i].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,i).concat(r.slice(i+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,c[a]=r}}n&&0!==r.length||(delete c[a],Zc(e,r.fakeName||a,r.nativeHandler,r.capture))}}else _e(c,(function(t,n){Zc(e,t.fakeName||n,t.nativeHandler,t.capture)})),c={};for(a in c)if(Me(c,a))return this;delete this.events[u];try{delete e[this.expando]}catch(m){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=tu({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(o,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!o.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),ou="sizzle"+-new Date,iu=window.document,au=0,cu=0,uu=Vu(),su=Vu(),lu=Vu(),fu=function(e,t){return e===t&&(mi=!0),0},du="undefined",mu=1<<31,gu={}.hasOwnProperty,pu=[],hu=pu.pop,vu=pu.push,yu=pu.push,bu=pu.slice,wu=pu.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},ku="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_u="[\\x20\\t\\r\\n\\f]",xu="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Cu="\\["+_u+"*("+xu+")(?:"+_u+"*([*^$|!~]?=)"+_u+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+xu+"))|)"+_u+"*\\]",zu=":("+xu+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Cu+")*)|.*)\\)|)",Su=new RegExp("^"+_u+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_u+"+$","g"),Tu=new RegExp("^"+_u+"*,"+_u+"*"),Ou=new RegExp("^"+_u+"*([>+~]|"+_u+")"+_u+"*"),Eu=new RegExp("="+_u+"*([^\\]'\"]*?)"+_u+"*\\]","g"),Au=new RegExp(zu),Du=new RegExp("^"+xu+"$"),Mu={ID:new RegExp("^#("+xu+")"),CLASS:new RegExp("^\\.("+xu+")"),TAG:new RegExp("^("+xu+"|[*])"),ATTR:new RegExp("^"+Cu),PSEUDO:new RegExp("^"+zu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_u+"*(even|odd|(([+-]|)(\\d*)n|)"+_u+"*(?:([+-]|)"+_u+"*(\\d+)|))"+_u+"*\\)|)","i"),bool:new RegExp("^(?:"+ku+")$","i"),needsContext:new RegExp("^"+_u+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_u+"*((?:-\\d)?\\d*)"+_u+"*\\)|)(?=[^-]|$)","i")},Nu=/^(?:input|select|textarea|button)$/i,Ru=/^h\d$/i,Bu=/^[^{]+\{\s*\[native \w/,Pu=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Lu=/[+~]/,Iu=/'|\\/g,Hu=new RegExp("\\\\([\\da-f]{1,6}"+_u+"?|("+_u+")|.)","ig"),Fu=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{yu.apply(pu=bu.call(iu.childNodes),iu.childNodes),pu[iu.childNodes.length].nodeType}catch(vj){yu={apply:pu.length?function(e,t){vu.apply(e,bu.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var ju=function(e,t,n,r){var o,i,a,c,u,s,l,f,d,m;if((t?t.ownerDocument||t:iu)!==pi&&gi(t),t=t||pi,n=n||[],!e||"string"!==typeof e)return n;if(1!==(c=t.nodeType)&&9!==c)return[];if(vi&&!r){if(o=Pu.exec(e))if(a=o[1]){if(9===c){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&ki(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return yu.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&oi.getElementsByClassName)return yu.apply(n,t.getElementsByClassName(a)),n}if(oi.qsa&&(!yi||!yi.test(e))){if(f=l=ou,d=t,m=9===c&&e,1===c&&"object"!==t.nodeName.toLowerCase()){s=ui(e),(l=t.getAttribute("id"))?f=l.replace(Iu,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=s.length;while(u--)s[u]=f+Yu(s[u]);d=Lu.test(e)&&Ku(t.parentNode)||t,m=s.join(",")}if(m)try{return yu.apply(n,d.querySelectorAll(m)),n}catch(g){}finally{l||t.removeAttribute("id")}}}return li(e.replace(Su,"$1"),t,n,r)};function Vu(){var e=[];function t(n,r){return e.push(n+" ")>ii.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Uu(e){return e[ou]=!0,e}function qu(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||mu)-(~e.sourceIndex||mu);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function Wu(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 Gu(e){return Uu((function(t){return t=+t,Uu((function(n,r){var o,i=e([],n.length,t),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function Ku(e){return e&&typeof e.getElementsByTagName!==du&&e}function Xu(){}function Yu(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ju(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=cu++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var c,u,s=[au,i];if(a){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||o){if(u=t[ou]||(t[ou]={}),(c=u[r])&&c[0]===au&&c[1]===i)return s[2]=c[2];if(u[r]=s,s[2]=e(t,n,a))return!0}}}function Qu(e){return e.length>1?function(t,n,r){var o=e.length;while(o--)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Zu(e,t,n){for(var r=0,o=t.length;r<o;r++)ju(e,t[r],n);return n}function es(e,t,n,r,o){for(var i,a=[],c=0,u=e.length,s=null!=t;c<u;c++)(i=e[c])&&(n&&!n(i,r,o)||(a.push(i),s&&t.push(c)));return a}function ts(e,t,n,r,o,i){return r&&!r[ou]&&(r=ts(r)),o&&!o[ou]&&(o=ts(o,i)),Uu((function(i,a,c,u){var s,l,f,d=[],m=[],g=a.length,p=i||Zu(t||"*",c.nodeType?[c]:c,[]),h=!e||!i&&t?p:es(p,d,e,c,u),v=n?o||(i?e:g||r)?[]:a:h;if(n&&n(h,v,c,u),r){s=es(v,m),r(s,[],c,u),l=s.length;while(l--)(f=s[l])&&(v[m[l]]=!(h[m[l]]=f))}if(i){if(o||e){if(o){s=[],l=v.length;while(l--)(f=v[l])&&s.push(h[l]=f);o(null,v=[],s,u)}l=v.length;while(l--)(f=v[l])&&(s=o?wu.call(i,f):d[l])>-1&&(i[s]=!(a[s]=f))}}else v=es(v===a?v.splice(g,v.length):v),o?o(null,a,v,u):yu.apply(a,v)}))}function ns(e){for(var t,n,r,o=e.length,i=ii.relative[e[0].type],a=i||ii.relative[" "],c=i?1:0,u=Ju((function(e){return e===t}),a,!0),s=Ju((function(e){return wu.call(t,e)>-1}),a,!0),l=[function(e,n,r){var o=!i&&(r||n!==fi)||((t=n).nodeType?u(e,n,r):s(e,n,r));return t=null,o}];c<o;c++)if(n=ii.relative[e[c].type])l=[Ju(Qu(l),n)];else{if(n=ii.filter[e[c].type].apply(null,e[c].matches),n[ou]){for(r=++c;r<o;r++)if(ii.relative[e[r].type])break;return ts(c>1&&Qu(l),c>1&&Yu(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(Su,"$1"),n,c<r&&ns(e.slice(c,r)),r<o&&ns(e=e.slice(r)),r<o&&Yu(e))}l.push(n)}return Qu(l)}function rs(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,c,u){var s,l,f,d=0,m="0",g=o&&[],p=[],h=fi,v=o||r&&ii.find.TAG("*",u),y=au+=null==h?1:Math.random()||.1,b=v.length;for(u&&(fi=i!==pi&&i);m!==b&&null!=(s=v[m]);m++){if(r&&s){l=0;while(f=e[l++])if(f(s,i,a)){c.push(s);break}u&&(au=y)}n&&((s=!f&&s)&&d--,o&&g.push(s))}if(d+=m,n&&m!==d){l=0;while(f=t[l++])f(g,p,i,a);if(o){if(d>0)while(m--)g[m]||p[m]||(p[m]=hu.call(c));p=es(p)}yu.apply(c,p),u&&!o&&p.length>0&&d+t.length>1&&ju.uniqueSort(c)}return u&&(au=y,fi=h),g};return n?Uu(o):o}oi=ju.support={},ci=ju.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},gi=ju.setDocument=function(e){var t,n=e?e.ownerDocument||e:iu,r=n.defaultView;function o(e){try{return e.top}catch(t){}return null}return n!==pi&&9===n.nodeType&&n.documentElement?(pi=n,hi=n.documentElement,vi=!ci(n),r&&r!==o(r)&&(r.addEventListener?r.addEventListener("unload",(function(){gi()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){gi()}))),oi.attributes=!0,oi.getElementsByTagName=!0,oi.getElementsByClassName=Bu.test(n.getElementsByClassName),oi.getById=!0,ii.find.ID=function(e,t){if(typeof t.getElementById!==du&&vi){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},ii.filter.ID=function(e){var t=e.replace(Hu,Fu);return function(e){return e.getAttribute("id")===t}},ii.find.TAG=oi.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==du)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[o++])1===n.nodeType&&r.push(n);return r}return i},ii.find.CLASS=oi.getElementsByClassName&&function(e,t){if(vi)return t.getElementsByClassName(e)},bi=[],yi=[],oi.disconnectedMatch=!0,yi=yi.length&&new RegExp(yi.join("|")),bi=bi.length&&new RegExp(bi.join("|")),t=Bu.test(hi.compareDocumentPosition),ki=t||Bu.test(hi.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)while(t=t.parentNode)if(t===e)return!0;return!1},fu=t?function(e,t){if(e===t)return mi=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!oi.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===iu&&ki(iu,e)?-1:t===n||t.ownerDocument===iu&&ki(iu,t)?1:di?wu.call(di,e)-wu.call(di,t):0:4&r?-1:1)}:function(e,t){if(e===t)return mi=!0,0;var r,o=0,i=e.parentNode,a=t.parentNode,c=[e],u=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:di?wu.call(di,e)-wu.call(di,t):0;if(i===a)return qu(e,t);r=e;while(r=r.parentNode)c.unshift(r);r=t;while(r=r.parentNode)u.unshift(r);while(c[o]===u[o])o++;return o?qu(c[o],u[o]):c[o]===iu?-1:u[o]===iu?1:0},n):pi},ju.matches=function(e,t){return ju(e,null,null,t)},ju.matchesSelector=function(e,t){if((e.ownerDocument||e)!==pi&&gi(e),t=t.replace(Eu,"='$1']"),oi.matchesSelector&&vi&&(!bi||!bi.test(t))&&(!yi||!yi.test(t)))try{var n=wi.call(e,t);if(n||oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(vj){}return ju(t,pi,null,[e]).length>0},ju.contains=function(e,t){return(e.ownerDocument||e)!==pi&&gi(e),ki(e,t)},ju.attr=function(e,t){(e.ownerDocument||e)!==pi&&gi(e);var n=ii.attrHandle[t.toLowerCase()],r=n&&gu.call(ii.attrHandle,t.toLowerCase())?n(e,t,!vi):void 0;return void 0!==r?r:oi.attributes||!vi?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ju.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ju.uniqueSort=function(e){var t,n=[],r=0,o=0;if(mi=!oi.detectDuplicates,di=!oi.sortStable&&e.slice(0),e.sort(fu),mi){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)e.splice(n[r],1)}return di=null,e},ai=ju.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ai(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=ai(t);return n},ii=ju.selectors={cacheLength:50,createPseudo:Uu,match:Mu,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(Hu,Fu),e[3]=(e[3]||e[4]||e[5]||"").replace(Hu,Fu),"~="===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]||ju.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]&&ju.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Mu.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Au.test(n)&&(t=ui(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(Hu,Fu).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=uu[e+" "];return t||(t=new RegExp("(^|"+_u+")"+e+"("+_u+"|$)"))&&uu(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==du&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ju.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),c="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var s,l,f,d,m,g,p=i!==a?"nextSibling":"previousSibling",h=t.parentNode,v=c&&t.nodeName.toLowerCase(),y=!u&&!c;if(h){if(i){while(p){f=t;while(f=f[p])if(c?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;g=p="only"===e&&!g&&"nextSibling"}return!0}if(g=[a?h.firstChild:h.lastChild],a&&y){l=h[ou]||(h[ou]={}),s=l[e]||[],m=s[0]===au&&s[1],d=s[0]===au&&s[2],f=m&&h.childNodes[m];while(f=++m&&f&&f[p]||(d=m=0)||g.pop())if(1===f.nodeType&&++d&&f===t){l[e]=[au,m,d];break}}else if(y&&(s=(t[ou]||(t[ou]={}))[e])&&s[0]===au)d=s[1];else while(f=++m&&f&&f[p]||(d=m=0)||g.pop())if((c?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(y&&((f[ou]||(f[ou]={}))[e]=[au,d]),f===t))break;return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=ii.pseudos[e]||ii.setFilters[e.toLowerCase()]||ju.error("unsupported pseudo: "+e);return r[ou]?r(t):r.length>1?(n=[e,e,"",t],ii.setFilters.hasOwnProperty(e.toLowerCase())?Uu((function(e,n){var o,i=r(e,t),a=i.length;while(a--)o=wu.call(e,i[a]),e[o]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Uu((function(e){var t=[],n=[],r=si(e.replace(Su,"$1"));return r[ou]?Uu((function(e,t,n,o){var i,a=r(e,null,o,[]),c=e.length;while(c--)(i=a[c])&&(e[c]=!(t[c]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:Uu((function(e){return function(t){return ju(e,t).length>0}})),contains:Uu((function(e){return e=e.replace(Hu,Fu),function(t){return(t.textContent||t.innerText||ai(t)).indexOf(e)>-1}})),lang:Uu((function(e){return Du.test(e||"")||ju.error("unsupported lang: "+e),e=e.replace(Hu,Fu).toLowerCase(),function(t){var n;do{if(n=vi?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(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===hi},focus:function(e){return e===pi.activeElement&&(!pi.hasFocus||pi.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!ii.pseudos.empty(e)},header:function(e){return Ru.test(e.nodeName)},input:function(e){return Nu.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:Gu((function(){return[0]})),last:Gu((function(e,t){return[t-1]})),eq:Gu((function(e,t,n){return[n<0?n+t:n]})),even:Gu((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Gu((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Gu((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Gu((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},ii.pseudos.nth=ii.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(e){ii.pseudos[e]=Wu(e)})),Z(["submit","reset"],(function(e){ii.pseudos[e]=$u(e)})),Xu.prototype=ii.filters=ii.pseudos,ii.setFilters=new Xu,ui=ju.tokenize=function(e,t){var n,r,o,i,a,c,u,s=su[e+" "];if(s)return t?0:s.slice(0);a=e,c=[],u=ii.preFilter;while(a){for(i in n&&!(r=Tu.exec(a))||(r&&(a=a.slice(r[0].length)||a),c.push(o=[])),n=!1,(r=Ou.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(Su," ")}),a=a.slice(n.length)),ii.filter)ii.filter.hasOwnProperty(i)&&(!(r=Mu[i].exec(a))||u[i]&&!(r=u[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?ju.error(e):su(e,c).slice(0)},si=ju.compile=function(e,t){var n,r=[],o=[],i=lu[e+" "];if(!i){t||(t=ui(e)),n=t.length;while(n--)i=ns(t[n]),i[ou]?r.push(i):o.push(i);i=lu(e,rs(o,r)),i.selector=e}return i},li=ju.select=function(e,t,n,r){var o,i,a,c,u,s="function"===typeof e&&e,l=!r&&ui(e=s.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&oi.getById&&9===t.nodeType&&vi&&ii.relative[i[1].type]){if(t=(ii.find.ID(a.matches[0].replace(Hu,Fu),t)||[])[0],!t)return n;s&&(t=t.parentNode),e=e.slice(i.shift().value.length)}o=Mu.needsContext.test(e)?0:i.length;while(o--){if(a=i[o],ii.relative[c=a.type])break;if((u=ii.find[c])&&(r=u(a.matches[0].replace(Hu,Fu),Lu.test(i[0].type)&&Ku(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&Yu(i),!e)return yu.apply(n,r),n;break}}}return(s||si(e,l))(r,t,!vi,n,Lu.test(e)&&Ku(t.parentNode)||t),n},oi.sortStable=ou.split("").sort(fu).join("")===ou,oi.detectDuplicates=!!mi,gi(),oi.sortDetached=!0;var os=document,is=Array.prototype.push,as=Array.prototype.slice,cs=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,us=ru.Event,ss=gn.makeMap("children,contents,next,prev"),ls=function(e){return"undefined"!==typeof e},fs=function(e){return"string"===typeof e},ds=function(e){return e&&e===e.window},ms=function(e,t){t=t||os;var n,r=t.createElement("div"),o=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)o.appendChild(n);return o},gs=function(e,t,n,r){var o;if(fs(t))t=ms(t,Es(e[0]));else if(t.length&&!t.nodeType){if(t=Ns.makeArray(t),r)for(o=t.length-1;o>=0;o--)gs(e,t[o],n,r);else for(o=0;o<t.length;o++)gs(e,t[o],n,r);return e}if(t.nodeType){o=e.length;while(o--)n.call(e[o],t)}return e},ps=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},hs=function(e,t,n){var r,o;return t=Ns(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)})),e},vs=gn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),ys=gn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),bs={for:"htmlFor",class:"className",readonly:"readOnly"},ws={float:"cssFloat"},ks={},_s={},xs=function(e,t){return new Ns.fn.init(e,t)},Cs=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},zs=/^\s*|\s*$/g,Ss=function(e){return null===e||void 0===e?"":(""+e).replace(zs,"")},Ts=function(e,t){var n,r,o,i;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n;o++)if(i=e[o],!1===t.call(i,o,i))break;return e},Os=function(e,t){var n=[];return Ts(e,(function(e,r){t(r,e)&&n.push(r)})),n},Es=function(e){return e?9===e.nodeType?e:e.ownerDocument:os};xs.fn=xs.prototype={constructor:xs,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return Ns(e).attr(t);o.context=t=document}if(fs(e)){if(o.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:cs.exec(e),!n)return Ns(t).find(e);if(n[1]){r=ms(e,Es(t)).firstChild;while(r)is.call(o,r),r=r.nextSibling}else{if(r=Es(t).getElementById(n[2]),!r)return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return gn.toArray(this)},add:function(e,t){var n,r,o=this;if(fs(e))return o.add(Ns(e));if(!1!==t)for(n=Ns.unique(o.toArray().concat(Ns.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else is.apply(o,Ns.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"===typeof e)Ts(e,(function(e,t){r.attr(e,t)}));else{if(!ls(t)){if(r[0]&&1===r[0].nodeType){if(n=ks[e],n&&n.get)return n.get(r[0],e);if(ys[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=ks[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=bs[e]||e,"object"===typeof e)Ts(e,(function(e,t){n.prop(e,t)}));else{if(!ls(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,o=this,i=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)Ts(e,(function(e,t){o.css(e,t)}));else if(ls(t))e=i(e),"number"!==typeof t||vs[e]||(t=t.toString()+"px"),o.each((function(){var n=this.style;if(r=_s[e],r&&r.set)r.set(this,t);else{try{this.style[ws[e]||e]=t}catch(o){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=o[0],r=_s[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(c){return}}return o},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],us.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(ls(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Ns(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(ls(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return gs(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return gs(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?gs(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?gs(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Ns(e).append(this),this},prependTo:function(e){return Ns(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return hs(this,e)},wrapAll:function(e){return hs(this,e,!0)},wrapInner:function(e){return this.each((function(){Ns(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Ns(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Ns(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Ts(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var o=ps(r,e);if(o!==t){var i=r.className;o?r.className=Ss((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e}}))),n},hasClass:function(e){return ps(this[0],e)},each:function(e){return Ts(this,e)},on:function(e,t){return this.each((function(){us.bind(this,e,t)}))},off:function(e,t){return this.each((function(){us.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?us.fire(this,e.type,e):us.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Ns(as.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Ns.find(e,this[t],r);return Ns(r)},filter:function(e){return Ns("function"===typeof e?Os(this.toArray(),(function(t,n){return e(n,t)})):Ns.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Ns&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Ns(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Ns(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(o=t.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:is,sort:Array.prototype.sort,splice:Array.prototype.splice},gn.extend(xs,{extend:gn.extend,makeArray:function(e){return ds(e)||e.nodeType?[e]:gn.toArray(e)},inArray:Cs,isArray:gn.isArray,each:Ts,trim:Ss,grep:Os,find:ju,expr:ju.selectors,unique:ju.uniqueSort,text:ju.getText,contains:ju.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Ns.find.matchesSelector(t[0],e)?[t[0]]:[]:Ns.find.matches(e,t),t}});var As=function(e,t,n){var r=[],o=e[t];"string"!==typeof n&&n instanceof Ns&&(n=n[0]);while(o&&9!==o.nodeType){if(void 0!==n){if(o===n)break;if("string"===typeof n&&Ns(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Ds=function(e,t,n,r){var o=[];for(r instanceof Ns&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Ns(e).is(r))break}o.push(e)}return o},Ms=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Ts({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return As(e,"parentNode")},next:function(e){return Ms(e,"nextSibling",1)},prev:function(e){return Ms(e,"previousSibling",1)},children:function(e){return Ds(e.firstChild,"nextSibling",1)},contents:function(e){return gn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){xs.fn[e]=function(n){var r=this,o=[];r.each((function(){var e=t.call(o,this,n,o);e&&(Ns.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(ss[e]||(o=Ns.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Ns(o);return n?i.filter(n):i}})),Ts({parentsUntil:function(e,t){return As(e,"parentNode",t)},nextUntil:function(e,t){return Ds(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ds(e,"previousSibling",1,t).slice(1)}},(function(e,t){xs.fn[e]=function(n,r){var o=this,i=[];o.each((function(){var e=t.call(i,this,n,i);e&&(Ns.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(i=Ns.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var a=Ns(i);return r?a.filter(r):a}})),xs.fn.is=function(e){return!!e&&this.filter(e).length>0},xs.fn.init.prototype=xs.fn,xs.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Ns.extend(n,this),n},xs.attrHooks=ks,xs.cssHooks=_s;var Ns=xs,Rs=gn.each,Bs=gn.grep,Ps=en.ie,Ls=/^([a-z0-9],?)+$/i,Is=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(i.href=i.src=o),i},Hs=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Fs=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o},js=function(e,t){void 0===t&&(t={});var n={},r=window,o={},i=0,a=!0,c=!0,u=Hi.forElement(wn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),s=[],l=t.schema?t.schema:jc({}),f=Uc({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),d=t.ownEvents?new ru:ru.Event,m=l.getBlockElements(),g=Ns.overrideDefaults((function(){return{context:e,element:De.getRoot()}})),p=function(e){if("string"===typeof e)return!!m[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!m[e.nodeName])}return!1},h=function(t){return t&&e&&v(t)?e.getElementById(t):t},y=function(e){return g("string"===typeof e?h(e):e)},b=function(e,t,n){var r,o,i=y(e);return i.length&&(r=Me[t],o=r&&r.get?r.get(i,t):i.attr(t)),"undefined"===typeof o&&(o=n||""),o},w=function(e){var t=h(e);return t?t.attributes:[]},k=function(e,n,r){""===r&&(r=null);var o=y(e),i=o.attr(n);if(o.length){var a=Me[n];a&&a.set?a.set(o,r,n):o.attr(n,r),i!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:o,attrName:n,attrValue:r})}},_=function(t,n){if(!Ps||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Rs(w(t),(function(e){k(r,e.nodeName,b(t,e.nodeName))})),r},C=function(){return t.root_element||e.body},z=function(e){var t=Fr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},S=function(t,n){return Bo(e.body,h(t),n)},O=function(e,n,r){var o=v(n)?y(e).css(n,r):y(e).css(n);t.update_styles&&Hs(f,o)},E=function(e,n){var r=y(e).css(n);t.update_styles&&Hs(f,r)},D=function(e,t,n){var r=y(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},M=function(e){var t,n;return e=h(e),t=D(e,"width"),n=D(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},N=function(e){e=h(e);var t=S(e),n=M(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},R=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Ls.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return ju(t,i[0].ownerDocument||i[0],null,i).length>0},B=function(e,t,n,r){var o,i=[],a=h(e);r=void 0===r,n=n||("BODY"!==C().nodeName?C().parentNode:null),gn.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return R(e,o)});while(a){if(a===n||x(a.nodeType)||to(a)||no(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},P=function(e,t,n){var r=B(e,t,n,!1);return r&&r.length>0?r[0]:null},L=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return R(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},I=function(e,t){return L(e,t,"nextSibling")},H=function(e,t){return L(e,t,"previousSibling")},F=function(n,r){return ju(n,h(r)||t.root_element||e,[])},j=function(e,t,n){var r,o="string"===typeof e?h(e):e;if(!o)return!1;if(gn.isArray(o)&&(o.length||0===o.length))return r=[],Rs(o,(function(e,o){e&&r.push(t.call(n,"string"===typeof e?h(e):e,o))})),r;var i=n||this;return t.call(i,o)},V=function(e,t){y(e).each((function(e,n){Rs(t,(function(e,t){k(n,t,e)}))}))},U=function(e,t){var n=y(e);Ps?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Ns("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},q=function(t,n,r,o,i){return j(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return V(a,r),o&&("string"!==typeof o&&o.nodeType?a.appendChild(o):"string"===typeof o&&U(a,o)),i?a:t.appendChild(a)}))},W=function(t,n,r){return q(e.createElement(t),t,n,r,!0)},$=Oc.decode,G=Oc.encodeAllRaw,K=function(e,t,n){var r,o="";for(r in o+="<"+e,t)Ne(t,r)&&(o+=" "+r+'="'+G(t[r])+'"');return"undefined"!==typeof n?o+">"+n+"</"+e+">":o+" />"},X=function(t){var n,r=e.createElement("div"),o=e.createDocumentFragment();o.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)o.appendChild(n);return o.removeChild(r),o},Y=function(e,t){var n=y(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},J=function(e){return j(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},Q=function(e){return f.parse(e)},ee=function(e,t){return f.serialize(e,t)},te=function(t){var r,o;if(De!==js.DOM&&e===document){if(n[t])return;n[t]=!0}o=e.getElementById("mceDefaultStyles"),o||(o=e.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Z(e.split(","),(function(e){o[e]=!0,u.load(e,T)}))},re=function(e,t,n){y(e).toggleClass(t,n).each((function(){""===this.className&&Ns(this).attr("class",null)}))},oe=function(e,t){y(e).addClass(t)},ie=function(e,t){re(e,t,!1)},ae=function(e,t){return y(e).hasClass(t)},ce=function(e){y(e).show()},ue=function(e){y(e).hide()},se=function(e){return"none"===y(e).css("display")},le=function(e){return(e||"mce_")+i++},fe=function(e){var t="string"===typeof e?h(e):e;return Ur(t)?t.outerHTML:Ns("<div></div>").append(Ns(t).clone()).html()},de=function(e,t){y(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}Y(Ns(this).html(t),!0)}))},me=function(e,t){var n=h(t);return j(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},ge=function(e,t,n){return j(t,(function(t){return gn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Rs(Bs(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},pe=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=W(t),Rs(w(e),(function(t){k(n,t.nodeName,b(e,t.nodeName))})),ge(n,e,!0)),n||e},he=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return f.toHex(gn.trim(e))},ye=function(e){if(Ur(e)){var t="a"===e.nodeName.toLowerCase()&&!b(e,"href")&&b(e,"id");if(b(e,"name")||b(e,"data-mce-bookmark")||t)return!0}return!1},be=function(e,t){var n,r,o=0;if(ye(e))return!1;if(e=e.firstChild,e){var i=new Fi(e,e.parentNode),a=l?l.getWhiteSpaceElements():{};t=t||(l?l.getNonEmptyElements():null);do{if(n=e.nodeType,Ur(e)){var c=e.getAttribute("data-mce-bogus");if(c){e=i.next("all"===c);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){o++,e=i.next();continue}return!1}if(ye(e))return!1}if(8===n)return!1;if(3===n&&!Ga(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ga(e.nodeValue))return!1;e=i.next()}while(e)}return o<=1},we=function(){return e.createRange()},ke=function(e,t,n){var r,o,i,a=we();if(e&&t)return a.setStart(e.parentNode,Fs(e)),a.setEnd(t.parentNode,Fs(t)),r=a.extractContents(),a=we(),a.setStart(t.parentNode,Fs(t)+1),a.setEnd(e.parentNode,Fs(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(lc(De,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(lc(De,o),e),Y(e),n||t},xe=function(n,o,i,a){if(gn.isArray(n)){var c=n.length,u=[];while(c--)u[c]=xe(n[c],o,i,a);return u}!t.collect||n!==e&&n!==r||s.push([n,o,i,a]);var l=d.bind(n,o,i,a||De);return l},Ce=function(t,n,o){if(gn.isArray(t)){var i=t.length,a=[];while(i--)a[i]=Ce(t[i],n,o);return a}if(s.length>0&&(t===e||t===r)){i=s.length;while(i--){var c=s[i];t!==c[0]||n&&n!==c[1]||o&&o!==c[2]||d.unbind(c[0],c[1],c[2])}}return d.unbind(t,n,o)},ze=function(e,t,n){return d.fire(e,t,n)},Se=function(e){if(e&&Ur(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Te=function(e){for(var t=C(),n=null;e&&e!==t;e=e.parentNode)if(n=Se(e),null!==n)break;return n},Oe=function(){if(s.length>0){var e=s.length;while(e--){var t=s[e];d.unbind(t[0],t[1],t[2])}}_e(o,(function(e,t){u.unload(t),delete o[t]})),ju.setDocument&&ju.setDocument()},Ee=function(e,t){if(Ps){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Ae=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},De={doc:e,settings:t,win:r,files:o,stdMode:a,boxModel:c,styleSheetLoader:u,boundEvents:s,styles:f,schema:l,events:d,isBlock:p,$:g,$$:y,root:null,clone:_,getRoot:C,getViewPort:z,getRect:N,getSize:M,getParent:P,getParents:B,get:h,getNext:I,getPrev:H,select:F,is:R,add:q,create:W,createHTML:K,createFragment:X,remove:Y,setStyle:O,getStyle:D,setStyles:E,removeAllAttribs:J,setAttrib:k,setAttribs:V,getAttrib:b,getPos:S,parseStyle:Q,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:oe,removeClass:ie,hasClass:ae,toggleClass:re,show:ce,hide:ue,isHidden:se,uniqueId:le,setHTML:U,getOuterHTML:fe,setOuterHTML:de,decode:$,encode:G,insertAfter:me,replace:ge,rename:pe,findCommonAncestor:he,toHex:ve,run:j,getAttribs:w,isEmpty:be,createRng:we,nodeIndex:Fs,split:ke,bind:xe,unbind:Ce,fire:ze,getContentEditable:Se,getContentEditableParent:Te,destroy:Oe,isChildOf:Ee,dumpRng:Ae},Me=Is(f,t,A(De));return De};js.DOM=js(document),js.nodeIndex=Fs;var Vs=js.DOM,Us=gn.each,qs=gn.grep,Ws=0,$s=1,Gs=2,Ks=3,Xs=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,o=Vs,i=function(){o.remove(u),r&&(r.onerror=r.onload=r=null)},a=function(){i(),t()},c=function(){i(),z(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},u=o.uniqueId();r=document.createElement("script"),r.id=u,r.type="text/javascript",r.src=gn._addCacheSuffix(e),this.settings.referrerPolicy&&o.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=c,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Gs},e.prototype.markDone=function(e){this.states[e]=Gs},e.prototype.add=function(e,t,n,r){var o=this.states[e];this.queue.push(e),void 0===o&&(this.states[e]=Ws),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var o=this,i=[],a=function(e,t){Us(o.scriptLoadedCallbacks[t],(function(t){z(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0};o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var c=function(){var t=qs(e);if(e.length=0,Us(t,(function(e){o.states[e]!==Gs?o.states[e]!==Ks?o.states[e]!==$s&&(o.states[e]=$s,o.loading++,o.loadScript(e,(function(){o.states[e]=Gs,o.loading--,a("success",e),c()}),(function(){o.states[e]=Ks,o.loading--,i.push(e),a("failure",e),c()}))):a("failure",e):a("success",e)})),!o.loading){var n=o.queueLoadedCallbacks.slice(0);o.queueLoadedCallbacks.length=0,Us(n,(function(e){0===i.length?z(e.success)&&e.success.call(e.scope):z(e.failure)&&e.failure.call(e.scope,i)}))}};c()},e.ScriptLoader=new e,e}(),Ys=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Js=function(e){return y(e)&&Me(e,"raw")},Qs=function(e){return b(e)&&e.length>1},Zs={},el=Ys("en"),tl=function(){return De(Zs,el.get())},nl=function(){return xe(Zs,(function(e){return qe({},e)}))},rl=function(e){e&&el.set(e)},ol=function(){return el.get()},il=function(e,t){var n=Zs[e];n||(Zs[e]=n={}),_e(t,(function(e,t){n[t.toLowerCase()]=e}))},al=function(e){var t=tl().getOr({}),n=function(e){return z(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},o=function(e){var r=n(e);return De(t,r.toLowerCase()).map(n).getOr(r)},i=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Js(e))return n(e.raw);if(Qs(e)){var a=e.slice(1),c=o(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Me(a,t)?n(a[t]):e}));return i(c)}return i(o(e))},cl=function(){return tl().bind((function(e){return De(e,"_dir")})).exists((function(e){return"rtl"===e}))},ul=function(e){return Me(Zs,e)},sl={getData:nl,setCode:rl,getCode:ol,add:il,translate:al,isRtl:cl,hasCode:ul},ll=function(){var e=[],t={},n={},r=[],o=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Z(n,(function(e){return e.callback()}))},i=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},c=function(e,n){!1!==ll.languageLoad&&g(e,(function(){var r=sl.getCode(),o=","+(n||"")+",";!r||n&&-1===o.indexOf(","+r+",")||Xs.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},u=function(t,r,i){var a=r;return e.push(a),n[t]={instance:a,dependencies:i},o(t,"added"),a},s=function(e){delete t[e],delete n[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(e,n){var r=t[e];Z(n,(function(e){Xs.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var o=a(e);Z(o,(function(e){var n=l(t,e);m(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Xs))},m=function(e,r,i,a,c){if(!t[e]){var u="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=ll.baseURL+"/"+u),t[e]=u.substring(0,u.lastIndexOf("/"));var s=function(){o(e,"loaded"),d(e,r,i,a)};n[e]?s():Xs.ScriptLoader.add(u,s,a,c)}},g=function(e,o,i){void 0===i&&(i="added"),Me(n,e)&&"added"===i||Me(t,e)&&"loaded"===i?o():r.push({name:e,state:i,callback:o})};return{items:e,urls:t,lookup:n,_listeners:r,get:i,dependencies:a,requireLangPack:c,add:u,remove:s,createUrl:l,addComponents:f,load:m,waitFor:g}};ll.languageLoad=!0,ll.baseURL="",ll.PluginManager=ll(),ll.ThemeManager=ll();var fl=function(e){var t=Ys(q.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(q.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(q.some(e))};return{clear:r,isSet:o,get:i,set:a}},dl=function(){var e=fl(T),t=function(t){return e.get().each(t)};return qe(qe({},e),{on:t})},ml=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];w(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:o}},gl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},pl=function(e,t){var n=bo(e,t);return void 0===n||""===n?[]:n.split(" ")},hl=function(e,t,n){var r=pl(e,t),o=r.concat([n]);return vo(e,t,o.join(" ")),!0},vl=function(e,t,n){var r=ne(pl(e,t),(function(e){return e!==n}));return r.length>0?vo(e,t,r.join(" ")):_o(e,t),!1},yl=function(e){return void 0!==e.dom.classList},bl=function(e){return pl(e,"class")},wl=function(e,t){return hl(e,"class",t)},kl=function(e,t){return vl(e,"class",t)},_l=function(e,t){yl(e)?e.dom.classList.add(t):wl(e,t)},xl=function(e){var t=yl(e)?e.dom.classList:bl(e);0===t.length&&_o(e,"class")},Cl=function(e,t){if(yl(e)){var n=e.dom.classList;n.remove(t)}else kl(e,t);xl(e)},zl=function(e,t){return yl(e)&&e.dom.classList.contains(t)},Sl=function(e,t){var n=[];return Z(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Sl(e,t))})),n},Tl=function(e,t){return Dn(t,e)},Ol=A("mce-annotation"),El=A("data-mce-annotation"),Al=A("data-mce-annotation-uid"),Dl=function(e,t){var n=e.selection.getRng(),r=wn.fromDom(n.startContainer),o=wn.fromDom(e.getBody()),i=t.fold((function(){return"."+Ol()}),(function(e){return"["+El()+'="'+e+'"]'})),a=or(r,n.startOffset).getOr(r),c=Oi(a,i,(function(e){return Nn(e,o)})),u=function(e,t){return ko(e,t)?q.some(bo(e,t)):q.none()};return c.bind((function(t){return u(t,""+Al()).bind((function(n){return u(t,""+El()).map((function(t){var r=Nl(e,n);return{uid:n,name:t,elements:r}}))}))}))},Ml=function(e){return jn(e)&&zl(e,Ol())},Nl=function(e,t){var n=wn.fromDom(e.getBody());return Tl(n,"["+Al()+'="'+t+'"]')},Rl=function(e,t){var n=wn.fromDom(e.getBody()),r=Tl(n,"["+El()+'="'+t+'"]'),o={};return Z(r,(function(e){var t=bo(e,Al()),n=De(o,t).getOr([]);o[t]=n.concat([e])})),o},Bl=function(e,t){var n=Ys({}),r=function(){return{listeners:[],previous:dl()}},o=function(e,t){i(e,(function(e){return t(e),e}))},i=function(e,t){var o=n.get(),i=De(o,e).getOrThunk(r),a=t(i);o[e]=a,n.set(o)},a=function(e,t,n){o(e,(function(r){Z(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:Q(n,(function(e){return e.dom}))})}))}))},c=function(e){o(e,(function(t){Z(t.listeners,(function(t){return t(!1,e)}))}))},u=gl((function(){var t=n.get(),r=ge(we(t));Z(r,(function(t){i(t,(function(n){var r=n.previous.get();return Dl(e,q.some(t)).fold((function(){r.isSome()&&(c(t),n.previous.clear())}),(function(e){var t=e.uid,o=e.name,i=e.elements;so(r,t)||(a(o,t,i),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){u.cancel()})),e.on("NodeChange",(function(){u.throttle()}));var s=function(e,t){i(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:s}},Pl=function(e,t){var n=function(e){return q.from(e.attr(El())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Z(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Ll=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return De(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Il=0,Hl=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Il++,e+"_"+r+Il+String(n)},Fl=function(e,t){Z(t,(function(t){_l(e,t)}))},jl=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(wn.fromDom(r))},Vl=function(e){return Q(e,wn.fromDom)},Ul=function(e){return e.dom.innerHTML},ql=function(e,t){var n=$n(e),r=n.dom,o=wn.fromDom(r.createDocumentFragment()),i=jl(t,r);Cr(o,i),zr(e),kr(e,o)},Wl=function(e,t){return wn.fromDom(e.dom.cloneNode(t))},$l=function(e){return Wl(e,!1)},Gl=function(e){return Wl(e,!0)},Kl=function(e,t,n){void 0===n&&(n=I);var r=new Fi(e,t),o=function(e){var t;do{t=r[e]()}while(t&&!Zr(t)&&!n(t));return q.from(t).filter(Zr)};return{current:function(){return q.from(r.current()).filter(Zr)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},Xl=function(e,t){var n=t||function(t){return e.isBlock(t)||ro(t)||ao(t)},r=function(e,t,n,o){if(Zr(e)){var i=o(e,t,e.data);if(-1!==i)return q.some({container:e,offset:i})}return n().bind((function(e){return r(e.container,e.offset,n,o)}))},o=function(e,t,o,i){var a=Kl(e,i,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),o).getOrNull()},i=function(e,t,o,i){var a=Kl(e,i,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),o).getOrNull()};return{backwards:o,forwards:i}},Yl=Math.round,Jl=function(e){return e?{left:Yl(e.left),top:Yl(e.top),bottom:Yl(e.bottom),right:Yl(e.right),width:Yl(e.width),height:Yl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Ql=function(e,t){return e=Jl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Zl=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ef=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},tf=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ef(t.top-e.bottom,e,t)},nf=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ef(t.bottom-e.top,e,t)},rf=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},of=function(e,t,n){return Math.min(Math.max(e,t),n)},af=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},cf=function(e,t){if(Ur(e)&&e.hasChildNodes()){var n=e.childNodes,r=of(t,0,n.length-1);return n[r]}return e},uf=function(e,t){return t<0&&Ur(e)&&e.hasChildNodes()?void 0:cf(e,t)},sf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),lf=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&sf.test(e)},ff=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},df=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},mf=Ur,gf=Ha,pf=Wr("display","block table"),hf=Wr("float","left right"),vf=df(mf,gf,R(hf)),yf=R(Wr("white-space","pre pre-line pre-wrap")),bf=Zr,wf=ro,kf=js.nodeIndex,_f=uf,xf=function(e){return"createRange"in e?e.createRange():js.DOM.createRng()},Cf=function(e){return e&&/[\r\n\t ]/.test(e)},zf=function(e){return!!e.setStart&&!!e.setEnd},Sf=function(e){var t=e.startContainer,n=e.startOffset;if(Cf(e.toString())&&yf(t.parentNode)&&Zr(t)){var r=t.data;if(Cf(r[n-1])||Cf(r[n+1]))return!0}return!1},Tf=function(e){var t=e.ownerDocument,n=xf(t),r=t.createTextNode(sa),o=e.parentNode;o.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var i=Jl(n.getBoundingClientRect());return o.removeChild(r),i},Of=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Zr(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Af(i)}return null},Ef=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Af=function(e){var t,n=e.getClientRects();return t=n.length>0?Jl(n[0]):Jl(e.getBoundingClientRect()),!zf(e)&&wf(e)&&Ef(t)?Tf(e):Ef(t)&&zf(e)?Of(e):t},Df=function(e,t){var n=Ql(e,t);return n.width=1,n.right=n.left+1,n},Mf=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Zl(e,t[t.length-1])||t.push(e))},r=function(e,r){var o=xf(e.ownerDocument);if(r<e.data.length){if(lf(e.data[r]))return t;if(lf(e.data[r-1])&&(o.setStart(e,r),o.setEnd(e,r+1),!Sf(o)))return n(Df(Af(o),!1)),t}r>0&&(o.setStart(e,r-1),o.setEnd(e,r),Sf(o)||n(Df(Af(o),!1))),r<e.data.length&&(o.setStart(e,r),o.setEnd(e,r+1),Sf(o)||n(Df(Af(o),!0)))},o=e.container(),i=e.offset();if(bf(o))return r(o,i),t;if(mf(o))if(e.isAtEnd()){var a=_f(o,i);bf(a)&&r(a,a.data.length),vf(a)&&!wf(a)&&n(Df(Af(a),!1))}else{a=_f(o,i);if(bf(a)&&r(a,0),vf(a)&&e.isAtEnd())return n(Df(Af(a),!1)),t;var c=_f(e.container(),e.offset()-1);vf(c)&&!wf(c)&&(pf(c)||pf(a)||!vf(a))&&n(Df(Af(c),!1)),vf(a)&&n(Df(Af(a),!0))}return t},Nf=function(e,t,n){var r=function(){return bf(e),0===t},o=function(){return bf(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n=xf(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Mf(Nf(e,t))),n},c=function(){return a().length>0},u=function(n){return n&&e===n.container()&&t===n.offset()},s=function(n){return _f(e,n?t-1:t)};return{container:A(e),offset:A(t),toRange:i,getClientRects:a,isVisible:c,isAtStart:r,isAtEnd:o,isEqual:u,getNode:s}};Nf.fromRangeStart=function(e){return Nf(e.startContainer,e.startOffset)},Nf.fromRangeEnd=function(e){return Nf(e.endContainer,e.endOffset)},Nf.after=function(e){return Nf(e.parentNode,kf(e)+1)},Nf.before=function(e){return Nf(e.parentNode,kf(e))},Nf.isAbove=function(e,t){return fo(he(t.getClientRects()),ve(e.getClientRects()),tf).getOr(!1)},Nf.isBelow=function(e,t){return fo(ve(t.getClientRects()),he(e.getClientRects()),nf).getOr(!1)},Nf.isAtStart=function(e){return!!e&&e.isAtStart()},Nf.isAtEnd=function(e){return!!e&&e.isAtEnd()},Nf.isTextPosition=function(e){return!!e&&Zr(e.container())},Nf.isElementPosition=function(e){return!1===Nf.isTextPosition(e)};var Rf,Bf=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},Pf=function(e,t,n){t.insertNode(n),Bf(e,n.previousSibling),Bf(e,n.nextSibling)},Lf=function(e,t,n){var r=q.from(n.firstChild),o=q.from(n.lastChild);t.insertNode(n),r.each((function(t){return Bf(e,t.previousSibling)})),o.each((function(t){return Bf(e,t.nextSibling)}))},If=function(e,t,n){no(n)?Lf(e,t,n):Pf(e,t,n)},Hf=Zr,Ff=Kr,jf=js.nodeIndex,Vf=function(e){var t=e.parentNode;return Ff(t)?Vf(t):t},Uf=function(e){return e?je(e.childNodes,(function(e,t){return Ff(t)&&"BR"!==t.nodeName?e=e.concat(Uf(t)):e.push(t),e}),[]):[]},qf=function(e,t){while(e=e.previousSibling){if(!Hf(e))break;t+=e.data.length}return t},Wf=function(e){return function(t){return e===t}},$f=function(e){var t,n;t=Uf(Vf(e)),n=Ve(t,Wf(e),e),t=t.slice(0,n+1);var r=je(t,(function(e,n,r){return Hf(n)&&Hf(t[r-1])&&e++,e}),0);return t=He(t,qr([e.nodeName])),n=Ve(t,Wf(e),e),n-r},Gf=function(e){var t;return t=Hf(e)?"text()":e.nodeName.toLowerCase(),t+"["+$f(e)+"]"},Kf=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Xf=function(e,t){var n,r,o,i,a,c=[];return n=t.container(),r=t.offset(),Hf(n)?o=qf(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),c.push(Gf(n)),a=Kf(e,n),a=He(a,R(Kr)),c=c.concat(Ie(a,(function(e){return Gf(e)}))),c.reverse().join("/")+","+o},Yf=function(e,t,n){var r=Uf(e);return r=He(r,(function(e,t){return!Hf(e)||!Hf(r[t-1])})),r=He(r,qr([t])),r[n]},Jf=function(e,t){var n,r=e,o=0;while(Hf(r)){if(n=r.data.length,t>=o&&t<=o+n){e=r,t-=o;break}if(!Hf(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Hf(e)&&t>e.data.length&&(t=e.data.length),Nf(e,t)},Qf=function(e,t){var n;if(!t)return null;var r=t.split(","),o=r[0].split("/");n=r.length>1?r[1]:"before";var i=je(o,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Yf(e,n[1],parseInt(n[2],10))):null}),e);return i?Hf(i)?Jf(i,parseInt(n,10)):(n="after"===n?jf(i)+1:jf(i),Nf(i.parentNode,n)):null},Zf=ao,ed=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Zr(r);r=r.previousSibling)o+=e(r.data).length;return o},td=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],c=r[o?"startOffset":"endOffset"],u=[],s=0,l=e.getRoot();for(Zr(a)?u.push(n?ed(t,a,c):c):(i=a.childNodes,c>=i.length&&i.length&&(s=1,c=Math.max(0,i.length-1)),u.push(e.nodeIndex(i[c],n)+s));a&&a!==l;a=a.parentNode)u.push(e.nodeIndex(a,n));return u},nd=function(e,t,n,r){var o=t.dom,i={};return i.start=td(o,e,n,r,!0),t.isCollapsed()||(i.end=td(o,e,n,r,!1)),Aa(r)&&(i.isFakeCaret=!0),i},rd=function(e,t,n){var r=0;return gn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},od=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],Ur(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(t?r:r-1,o.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},id=function(e){return od(e,!0),od(e,!1),e},ad=function(e,t){var n;if(Ur(e)&&(e=cf(e,t),Zf(e)))return e;if(ba(e)){if(Zr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Zf(n))return n;if(n=e.nextSibling,Zf(n))return n}},cd=function(e){return ad(e.startContainer,e.startOffset)||ad(e.endContainer,e.endOffset)},ud=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Zf(r)||"IMG"===o)return{name:o,index:rd(n.dom,o,r)};var a=cd(i);return a?(o=a.tagName,{name:o,index:rd(n.dom,o,a)}):nd(e,n,t,i)},sd=function(e){var t=e.getRng();return{start:Xf(e.dom.getRoot(),Nf.fromRangeStart(t)),end:Xf(e.dom.getRoot(),Nf.fromRangeEnd(t))}},ld=function(e){return{rng:e.getRng()}},fd=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},dd=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),c=a.nodeName;if("IMG"===c)return{name:c,index:rd(n,c,a)};var u=id(r.cloneRange());if(!i){u.collapse(!1);var s=fd(n,o+"_end",t);If(n,u,s)}r=id(r),r.collapse(!0);var l=fd(n,o+"_start",t);return If(n,r,l),e.moveToBookmark({id:o,keep:!0}),{id:o}},md=function(e,t,n){return 2===t?ud(ga,n,e):3===t?sd(e):t?ld(e):dd(e,!1)},gd=N(ud,D,!0),pd=js.DOM,hd="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",vd=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return De(o,e.id).getOr(n)}return r},yd=function(e){return e.getParam("iframe_attrs",{})},bd=function(e){return e.getParam("doctype","<!DOCTYPE html>")},wd=function(e){return e.getParam("document_base_url","")},kd=function(e){return vd(e,"body_id","tinymce")},_d=function(e){return vd(e,"body_class","")},xd=function(e){return e.getParam("content_security_policy","")},Cd=function(e){return e.getParam("br_in_pre",!0)},zd=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Sd=function(e){return e.getParam("forced_root_block_attrs",{})},Td=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Od=function(e){return e.getParam("no_newline_selector","")},Ed=function(e){return e.getParam("keep_styles",!0)},Ad=function(e){return e.getParam("end_container_on_empty_block",!1)},Dd=function(e){return gn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Md=function(e){return gn.explode(e.getParam("font_size_classes",""))},Nd=function(e){return e.getParam("images_dataimg_filter",H,"function")},Rd=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Bd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Pd=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Ld=function(e){return e.getParam("icons","","string")},Id=function(e){return e.getParam("icons_url","","string")},Hd=function(e){return e.getParam("images_upload_url","","string")},Fd=function(e){return e.getParam("images_upload_base_path","","string")},jd=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Vd=function(e){return e.getParam("images_upload_handler",null,"function")},Ud=function(e){return e.getParam("content_css_cors",!1,"boolean")},qd=function(e){return e.getParam("referrer_policy","","string")},Wd=function(e){return e.getParam("language","en","string")},$d=function(e){return e.getParam("language_url","","string")},Gd=function(e){return e.getParam("indent_use_margin",!1)},Kd=function(e){return e.getParam("indentation","40px","string")},Xd=function(e){var t=e.getParam("content_css");return v(t)?Q(t.split(","),ft):b(t)?t:!1===t||e.inline?[]:["default"]},Yd=function(e){var t=e.getParam("font_css",[]);return b(t)?t:Q(t.split(","),ft)},Jd=function(e){return e.getParam("directionality",sl.isRtl()?"rtl":void 0)},Qd=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Zd=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},em=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},tm=function(e){return e.getParam("placeholder",pd.getAttrib(e.getElement(),"placeholder"),"string")},nm=function(e){return e.getParam("event_root")},rm=function(e){return e.getParam("service_message")},om=function(e){return e.getParam("theme")},im=function(e){return e.getParam("validate")},am=function(e){return!1!==e.getParam("inline_boundaries")},cm=function(e){return e.getParam("formats")},um=function(e){var t=e.getParam("preview_styles",hd);return v(t)?t:""},sm=function(e){return e.getParam("format_empty_lines",!1,"boolean")},lm=function(e){return e.getParam("custom_ui_selector","","string")},fm=function(e){return e.getParam("theme_url")},dm=function(e){return e.getParam("inline")},mm=function(e){return e.getParam("hidden_input")},gm=function(e){return e.getParam("submit_patch")},pm=function(e){return"xml"===e.getParam("encoding")},hm=function(e){return e.getParam("add_form_submit_trigger")},vm=function(e){return e.getParam("add_unload_trigger")},ym=function(e){return""!==zd(e)},bm=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},wm=function(e){return e.getParam("disable_nodechange")},km=function(e){return e.getParam("readonly")},_m=function(e){return e.getParam("content_css_cors")},xm=function(e){return e.getParam("plugins","","string")},Cm=function(e){return e.getParam("external_plugins")},zm=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Sm=function(e){return e.getParam("visual",!0,"boolean")},Tm=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Om=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Em=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Am=Ur,Dm=Zr,Mm=function(e){var t=e.parentNode;t&&t.removeChild(e)},Nm=function(e){var t=ga(e);return{count:e.length-t.length,text:t}},Rm=function(e){var t;while(-1!==(t=e.data.lastIndexOf(da)))e.deleteData(t,1)},Bm=function(e,t){return jm(e),t},Pm=function(e,t){var n=Nm(e.data.substr(0,t.offset())),r=Nm(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Rm(e),Nf(e,t.offset()-n.count)):t},Lm=function(e,t){var n=t.container(),r=X(ye(n.childNodes),e).map((function(e){return e<t.offset()?Nf(n,t.offset()-1):t})).getOr(t);return jm(e),r},Im=function(e,t){return Dm(e)&&t.container()===e?Pm(e,t):Bm(e,t)},Hm=function(e,t){return t.container()===e.parentNode?Lm(e,t):Bm(e,t)},Fm=function(e,t){return Nf.isTextPosition(t)?Im(e,t):Hm(e,t)},jm=function(e){Am(e)&&ba(e)&&(wa(e)?e.removeAttribute("data-mce-caret"):Mm(e)),Dm(e)&&(Rm(e),0===e.data.length&&Mm(e))},Vm=Wt().browser,Um=ao,qm=uo,Wm=co,$m="*[contentEditable=false],video,audio,embed,object",Gm=function(e,t,n){var r,o,i=Ql(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,o=e.scrollTop||a.scrollTop}else{var c=e.getBoundingClientRect();r=e.scrollLeft-c.left,o=e.scrollTop-c.top}i.left+=r,i.right+=r,i.top+=o,i.bottom+=o,i.width=1;var u=t.offsetWidth-t.clientWidth;return u>0&&(n&&(u*=-1),i.left+=u,i.right+=u),i},Km=function(e){for(var t=Tl(wn.fromDom(e),$m),n=0;n<t.length;n++){var r=t[n].dom,o=r.previousSibling;if(Ta(o)){var i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(i.length-1,1)}if(o=r.nextSibling,Sa(o)){i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(0,1)}}},Xm=function(e,t,n,r){var o,i,a=dl(),c=zd(e),u=c.length>0?c:"p",s=function(e,r){var o;if(l(),Wm(r))return null;if(!n(r))return i=ka(r,e),o=r.ownerDocument.createRange(),Jm(i.nextSibling)?(o.setStart(i,0),o.setEnd(i,0)):(o.setStart(i,1),o.setEnd(i,1)),o;i=za(u,r,e);var c=Gm(t,r,e);Ns(i).css("top",c.top);var s=Ns('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(qe({},c)).appendTo(t)[0];return a.set({caret:s,element:r,before:e}),e&&Ns(s).addClass("mce-visual-caret-before"),f(),o=r.ownerDocument.createRange(),o.setStart(i,0),o.setEnd(i,0),o},l=function(){Km(t),i&&(jm(i),i=null),a.on((function(e){Ns(e.caret).remove(),a.clear()})),o&&(Pi.clearInterval(o),o=void 0)},f=function(){o=Pi.setInterval((function(){r()?Ns("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Ns("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.on((function(e){var n=Gm(t,e.element,e.before);Ns(e.caret).css(qe({},n))}))},m=function(){return Pi.clearInterval(o)},g=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:s,hide:l,getCss:g,reposition:d,destroy:m}},Ym=function(){return Vm.isIE()||Vm.isEdge()||Vm.isFirefox()},Jm=function(e){return Um(e)||qm(e)},Qm=function(e){return Jm(e)||Yr(e)&&Ym()},Zm=ao,eg=uo,tg=Wr("display","block table table-cell table-caption list-item"),ng=ba,rg=va,og=Ur,ig=Ha,ag=function(e){return e>0},cg=function(e){return e<0},ug=function(e,t){var n;while(n=e(t))if(!rg(n))return n;return null},sg=function(e,t,n,r,o){var i=new Fi(e,r),a=Zm(e)||rg(e);if(cg(t)){if(a&&(e=ug(i.prev.bind(i),!0),n(e)))return e;while(e=ug(i.prev.bind(i),o))if(n(e))return e}if(ag(t)){if(a&&(e=ug(i.next.bind(i),!0),n(e)))return e;while(e=ug(i.next.bind(i),o))if(n(e))return e}return null},lg=function(e,t){while(e&&e!==t){if(tg(e))return e;e=e.parentNode}return null},fg=function(e,t,n){return lg(e.container(),n)===lg(t.container(),n)},dg=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return og(n)?n.childNodes[r+e]:null},mg=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},gg=function(e,t,n){return lg(t,e)===lg(n,e)},pg=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var o=n[r];if(ng(o)&&(o=o[r]),Zm(o)||eg(o)){if(gg(t,o,n))return o;break}if(ig(o))break;n=n.parentNode}return null},hg=N(mg,!0),vg=N(mg,!1),yg=function(e,t,n){var r,o=N(pg,!0,t),i=N(pg,!1,t),a=n.startContainer,c=n.startOffset;if(va(a)){og(a)||(a=a.parentNode);var u=a.getAttribute("data-mce-caret");if("before"===u&&(r=a.nextSibling,Qm(r)))return hg(r);if("after"===u&&(r=a.previousSibling,Qm(r)))return vg(r)}if(!n.collapsed)return n;if(Zr(a)){if(ng(a)){if(1===e){if(r=i(a),r)return hg(r);if(r=o(a),r)return vg(r)}if(-1===e){if(r=o(a),r)return vg(r);if(r=i(a),r)return hg(r)}return n}if(Ta(a)&&c>=a.data.length-1)return 1===e&&(r=i(a),r)?hg(r):n;if(Sa(a)&&c<=1)return-1===e&&(r=o(a),r)?vg(r):n;if(c===a.data.length)return r=i(a),r?hg(r):n;if(0===c)return r=o(a),r?vg(r):n}return n},bg=function(e,t){return q.from(dg(e?0:-1,t)).filter(Zm)},wg=function(e,t,n){var r=yg(e,t,n);return-1===e?Nf.fromRangeStart(r):Nf.fromRangeEnd(r)},kg=function(e){return q.from(e.getNode()).map(wn.fromDom)},_g=function(e){return q.from(e.getNode(!0)).map(wn.fromDom)},xg=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Cg=function(e,t){var n=fg(e,t);return!(n||!ro(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Rf||(Rf={}));var zg=ao,Sg=Zr,Tg=Ur,Og=ro,Eg=Ha,Ag=qa,Dg=Wa,Mg=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Ng=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Rg=function(e,t){if(ag(e)){if(Eg(t.previousSibling)&&!Sg(t.previousSibling))return Nf.before(t);if(Sg(t))return Nf(t,0)}if(cg(e)){if(Eg(t.nextSibling)&&!Sg(t.nextSibling))return Nf.after(t);if(Sg(t))return Nf(t,t.data.length)}return cg(e)?Og(t)?Nf.before(t):Nf.after(t):Nf.before(t)},Bg=function(e,t){var n=t.nextSibling;return n&&Eg(n)?Sg(n)?Nf(n,0):Nf.before(n):Pg(Rf.Forwards,Nf.after(t),e)},Pg=function(e,t,n){var r,o,i,a;if(!Tg(n)||!t)return null;if(t.isEqual(Nf.after(n))&&n.lastChild){if(a=Nf.after(n.lastChild),cg(e)&&Eg(n.lastChild)&&Tg(n.lastChild))return Og(n.lastChild)?Nf.before(n.lastChild):a}else a=t;var c=a.container(),u=a.offset();if(Sg(c)){if(cg(e)&&u>0)return Nf(c,--u);if(ag(e)&&u<c.length)return Nf(c,++u);r=c}else{if(cg(e)&&u>0&&(o=Ng(c,u-1),Eg(o)))return!Ag(o)&&(i=sg(o,e,Dg,o),i)?Sg(i)?Nf(i,i.data.length):Nf.after(i):Sg(o)?Nf(o,o.data.length):Nf.before(o);if(ag(e)&&u<c.childNodes.length&&(o=Ng(c,u),Eg(o)))return Og(o)?Bg(n,o):!Ag(o)&&(i=sg(o,e,Dg,o),i)?Sg(i)?Nf(i,0):Nf.before(i):Sg(o)?Nf(o,0):Nf.after(o);r=o||a.getNode()}if((ag(e)&&a.isAtEnd()||cg(e)&&a.isAtStart())&&(r=sg(r,e,H,n,!0),Dg(r,n)))return Rg(e,r);o=sg(r,e,Dg,n);var s=Ue(ne(Mg(c,n),zg));return!s||o&&s.contains(o)?o?Rg(e,o):null:(a=ag(e)?Nf.after(s):Nf.before(s),a)},Lg=function(e){return{next:function(t){return Pg(Rf.Forwards,t,e)},prev:function(t){return Pg(Rf.Backwards,t,e)}}},Ig=function(e,t,n){var r=e?Nf.before(n):Nf.after(n);return Wg(e,t,r)},Hg=function(e){return ro(e)?Nf.before(e):Nf.after(e)},Fg=function(e){return Nf.isTextPosition(e)?0===e.offset():Ha(e.getNode())},jg=function(e){if(Nf.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Ha(e.getNode(!0))},Vg=function(e,t){return!Nf.isTextPosition(e)&&!Nf.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Ug=function(e){return!Nf.isTextPosition(e)&&ro(e.getNode())},qg=function(e,t,n){return e?!Vg(t,n)&&!Ug(t)&&jg(t)&&Fg(n):!Vg(n,t)&&Fg(t)&&jg(n)},Wg=function(e,t,n){var r=Lg(t);return q.from(e?r.next(n):r.prev(n))},$g=function(e,t,n){return Wg(e,t,n).bind((function(r){return fg(n,r,t)&&qg(e,n,r)?Wg(e,t,r):q.some(r)}))},Gg=function(e,t,n,r){return $g(e,t,n).bind((function(n){return r(n)?Gg(e,t,n,r):q.some(n)}))},Kg=function(e,t){var n=e?t.firstChild:t.lastChild;return Zr(n)?q.some(Nf(n,e?0:n.data.length)):n?Ha(n)?q.some(e?Nf.before(n):Hg(n)):Ig(e,t,n):q.none()},Xg=N(Wg,!0),Yg=N(Wg,!1),Jg=N(Kg,!0),Qg=N(Kg,!1),Zg="_mce_caret",ep=function(e){return Ur(e)&&e.id===Zg},tp=function(e,t){while(t&&t!==e){if(t.id===Zg)return t;t=t.parentNode}return null},np=function(e){return v(e.start)},rp=function(e){return Me(e,"rng")},op=function(e){return Me(e,"id")},ip=function(e){return Me(e,"name")},ap=function(e){return gn.isArray(e.start)},cp=function(e,t){return Ur(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},up=function(e,t){var n,r=e.createRng();return n=Qf(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Qf(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},sp=function(e,t){var n=e.ownerDocument.createTextNode(da);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},lp=function(e){return!1===e.hasChildNodes()},fp=function(e,t){return Qg(e).fold(I,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},dp=function(e,t,n){return!(!lp(t)||!tp(e,t))&&(sp(t,n),!0)},mp=function(e,t,n,r){var o,i,a,c,u=n[t?"start":"end"],s=e.getRoot();if(u){for(a=u[0],i=s,o=u.length-1;o>=1;o--){if(c=i.childNodes,dp(s,i,r))return!0;if(u[o]>c.length-1)return!!dp(s,i,r)||fp(i,r);i=c[u[o]]}3===i.nodeType&&(a=Math.min(u[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(u[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},gp=function(e){return Zr(e)&&e.data.length>0},pp=function(e,t,n){var r,o,i,a,c,u,s=e.get(n.id+"_"+t),l=n.keep;if(s){if(r=s.parentNode,"start"===t?(l?s.hasChildNodes()?(r=s.firstChild,o=1):gp(s.nextSibling)?(r=s.nextSibling,o=0):gp(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)+1):o=e.nodeIndex(s),c=r,u=o):(l?s.hasChildNodes()?(r=s.firstChild,o=1):gp(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)):o=e.nodeIndex(s),c=r,u=o),!l){a=s.previousSibling,i=s.nextSibling,gn.each(gn.grep(s.childNodes),(function(e){Zr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(s=e.get(n.id+"_"+t))e.remove(s,!0);a&&i&&a.nodeType===i.nodeType&&Zr(a)&&!en.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),c=a,u=o)}return q.some(Nf(c,u))}return q.none()},hp=function(e,t){var n=e.createRng();return mp(e,!0,t,n)&&mp(e,!1,t,n)?q.some(n):q.none()},vp=function(e,t){var n=pp(e,"start",t),r=pp(e,"end",t);return fo(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(cp(e,t.container()),t.offset()),r.setEnd(cp(e,n.container()),n.offset()),r}))},yp=function(e,t){return q.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},bp=function(e,t){var n=e.dom;if(t){if(ap(t))return hp(n,t);if(np(t))return q.some(up(n,t));if(op(t))return vp(n,t);if(ip(t))return yp(n,t);if(rp(t))return q.some(t.rng)}return q.none()},wp=function(e,t,n){return md(e,t,n)},kp=function(e,t){bp(e,t).each((function(t){e.setRng(t)}))},_p=function(e){return Ur(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},xp=function(e){return function(t){return e===t}},Cp=xp(sa),zp=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Sp=function(e){return!zp(e)&&!Cp(e)},Tp=function(e){return!!e.nodeType},Op=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Ep=function(e,t,n){var r=n.startOffset,o=n.startContainer;if((o!==n.endContainer||!Op(o.childNodes[r]))&&Ur(o)){var i=o.childNodes,a=void 0;r<i.length?(o=i[r],a=new Fi(o,e.getParent(o,e.isBlock))):(o=i[i.length-1],a=new Fi(o,e.getParent(o,e.isBlock)),a.next(!0));for(var c=a.current();c;c=a.next())if(Zr(c)&&!Np(c))return n.setStart(c,0),void t.setRng(n)}},Ap=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Ur(e)||!Np(e))return e}},Dp=function(e,t){return Tp(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Mp=function(e,t,n){return e.schema.isValidChild(t,n)},Np=function(e,t){if(void 0===t&&(t=!1),C(e)&&Zr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ga(n)}return!1},Rp=function(e){return C(e)&&Zr(e)&&0===e.length},Bp=function(e,t){return z(e)?e=e(t):C(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Pp=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Lp=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Ip=function(e,t,n){return Lp(e,e.getStyle(t,n),n)},Hp=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Fp=function(e,t,n){return e.getParents(t,n,e.getRoot())},jp=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return J(["styles","attributes"],(function(n){return De(e,n).exists((function(e){var n=b(e)?e:Ae(e);return J(n,t)}))}))};return J(e.formatter.get(t),n)},Vp=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],o=function(e){return Oe(e,(function(e,t){return J(r,(function(e){return e===t}))}))};return J(e.formatter.get(t),(function(t){var r=o(t);return J(e.formatter.get(n),(function(e){var t=o(e);return Re(r,t)}))}))},Up=function(e){return Ne(e,"block")},qp=function(e){return Ne(e,"selector")},Wp=function(e){return Ne(e,"inline")},$p=function(e){return qp(e)&&Wp(e)&&so(De(e,"mixed"),!0)},Gp=function(e){return qp(e)&&!1!==e.expand&&!Wp(e)},Kp=_p,Xp=Fp,Yp=Np,Jp=Dp,Qp=function(e){return ro(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Zp=function(e,t){var n=t;while(n){if(Ur(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},eh=function(e,t,n,r){for(var o=t.data,i=n;e?i>=0:i<o.length;e?i--:i++)if(r(o.charAt(i)))return e?i+1:i;return-1},th=function(e,t,n){return eh(e,t,n,(function(e){return Cp(e)||zp(e)}))},nh=function(e,t,n){return eh(e,t,n,Sp)},rh=function(e,t,n,r,o,i){var a,c=e.getParent(n,e.isBlock)||t,u=function(t,n,r){var i=Xl(e),u=o?i.backwards:i.forwards;return q.from(u(t,n,(function(e,t){return Kp(e.parentNode)?-1:(a=e,r(o,e,t))}),c))},s=u(n,r,th);return s.bind((function(e){return i?u(e.container,e.offset+(o?-1:0),nh):q.some(e)})).orThunk((function(){return a?q.some({container:a,offset:o?0:a.length}):q.none()}))},oh=function(e,t,n,r,o){Zr(r)&&pt(r.data)&&r[o]&&(r=r[o]);for(var i=Xp(e,r),a=0;a<i.length;a++)for(var c=0;c<t.length;c++){var u=t[c];if((!C(u.collapsed)||u.collapsed===n.collapsed)&&(qp(u)&&e.is(i[a],u.selector)))return i[a]}return r},ih=function(e,t,n,r){var o=n,i=e.dom,a=i.getRoot(),c=t[0];if(Up(c)&&(o=c.wrapper?null:i.getParent(n,c.block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(Zr(n)?n.parentNode:n,(function(t){return t!==a&&Jp(e,t)}),u)}if(o&&Up(c)&&c.wrapper&&(o=Xp(i,o,"ul,ol").reverse()[0]||o),!o){o=n;while(o[r]&&!i.isBlock(o[r]))if(o=o[r],Pp(o,"br"))break}return o||n},ah=function(e,t,n,r){var o=n.parentNode;return!C(n[r])&&(!(o!==t&&!x(o)&&!e.isBlock(o))||ah(e,t,o,r))},ch=function(e,t,n,r,o){var i=n,a=o?"previousSibling":"nextSibling",c=e.getRoot();if(Zr(n)&&!Yp(n)&&(o?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(i))return i;for(var u=i[a];u;u=u[a]){var s=Zr(u)&&!ah(e,c,u,a);if(!Kp(u)&&!Qp(u)&&!Yp(u,s))return i}if(i===c||i.parentNode===c){n=i;break}i=i.parentNode}return n},uh=function(e){return Kp(e.parentNode)||Kp(e)},sh=function(e,t,n,r){void 0===r&&(r=!1);var o=t.startContainer,i=t.startOffset,a=t.endContainer,c=t.endOffset,u=e.dom,s=n[0];if(Ur(o)&&o.hasChildNodes()&&(o=cf(o,i),Zr(o)&&(i=0)),Ur(a)&&a.hasChildNodes()&&(a=cf(a,t.collapsed?c:c-1),Zr(a)&&(c=a.nodeValue.length)),o=Zp(u,o),a=Zp(u,a),uh(o)&&(o=Kp(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,Zr(o)&&(i=t.collapsed?o.length:0)),uh(a)&&(a=Kp(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Zr(a)&&(c=t.collapsed?0:a.length)),t.collapsed){var l=rh(u,e.getBody(),o,i,!0,r);l.each((function(e){var t=e.container,n=e.offset;o=t,i=n}));var f=rh(u,e.getBody(),a,c,!1,r);f.each((function(e){var t=e.container,n=e.offset;a=t,c=n}))}return(Wp(s)||s.block_expand)&&(Wp(s)&&Zr(o)&&0!==i||(o=ch(u,n,o,i,!0)),Wp(s)&&Zr(a)&&c!==a.nodeValue.length||(a=ch(u,n,a,c,!1))),Gp(s)&&(o=oh(u,n,t,o,"previousSibling"),a=oh(u,n,t,a,"nextSibling")),(Up(s)||qp(s))&&(o=ih(e,n,o,"previousSibling"),a=ih(e,n,a,"nextSibling"),Up(s)&&(u.isBlock(o)||(o=ch(u,n,o,i,!0)),u.isBlock(a)||(a=ch(u,n,a,c,!1)))),Ur(o)&&(i=u.nodeIndex(o),o=o.parentNode),Ur(a)&&(c=u.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:c}},lh=function(e,t,n){var r=t.startOffset,o=cf(t.startContainer,r),i=t.endOffset,a=cf(t.endContainer,i-1),c=function(e){var t=e[0];Zr(t)&&t===o&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===i&&e.length>0&&n===a&&Zr(n)&&e.splice(e.length-1,1),e},u=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},s=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},l=function(e,t,r){for(var o=r?"nextSibling":"previousSibling",i=e,a=i.parentNode;i&&i!==t;i=a){a=i.parentNode;var s=u(i===e?i:i[o],o);s.length&&(r||s.reverse(),n(c(s)))}};if(o===a)return n(c([o]));var f=e.findCommonAncestor(o,a);if(e.isChildOf(o,a))return l(o,f,!0);if(e.isChildOf(a,o))return l(a,f);var d=s(o,f)||o,m=s(a,f)||a;l(o,d,!0);var g=u(d===o?d:d.nextSibling,"nextSibling",m===a?m.nextSibling:m);g.length&&n(c(g)),l(a,m)},fh=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},dh=function(e){return se(e,(function(e){var t=af(e);return t?[wn.fromDom(t)]:[]}))},mh=function(e){return fh(e).length>1},gh=function(e){return ne(dh(e),ia)},ph=function(e){return Tl(e,"td[data-mce-selected],th[data-mce-selected]")},hh=function(e,t){var n=ph(t);return n.length>0?n:gh(e)},vh=function(e){return hh(fh(e.selection.getSel()),wn.fromDom(e.getBody()))},yh=function(e,t){return Si(e,"table",t)},bh=function(e){var t=e.startContainer,n=e.startOffset;return Zr(t)?0===n?q.some(wn.fromDom(t)):q.none():q.from(t.childNodes[n]).map(wn.fromDom)},wh=function(e){var t=e.endContainer,n=e.endOffset;return Zr(t)?n===t.data.length?q.some(wn.fromDom(t)):q.none():q.from(t.childNodes[n-1]).map(wn.fromDom)},kh=function(e){return ir(e).fold(A([e]),(function(t){return[e].concat(kh(t))}))},_h=function(e){return ar(e).fold(A([e]),(function(t){return"br"===Ln(t)?Zn(t).map((function(t){return[e].concat(_h(t))})).getOr([]):[e].concat(_h(t))}))},xh=function(e,t){return fo(bh(t),wh(t),(function(t,n){var r=ae(kh(e),N(Nn,t)),o=ae(_h(e),N(Nn,n));return r.isSome()&&o.isSome()})).getOr(!1)},Ch=function(e,t,n,r){var o=n,i=new Fi(n,o),a=Oe(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!Y(["td","th","table"],t.toLowerCase())}));do{if(Zr(n)&&0!==gn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},zh=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Sh=function(e,t){var n=vh(e);n.length>0?Z(n,(function(n){var r=n.dom,o=e.dom.createRng();o.setStartBefore(r),o.setEndAfter(r),t(o,!0)})):t(e.selection.getRng(),!1)},Th=function(e,t,n){var r=dd(e,t);n(r),e.moveToBookmark(r)},Oh=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?q.from(t.dom.nodeValue):q.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Eh=Oh(Vn,"text"),Ah=function(e){return Eh.get(e)},Dh=function(e){return Vn(e)&&Ah(e)===da},Mh=function(e,t,n,r){return Yn(t).fold((function(){return"skipping"}),(function(o){return"br"===r||Dh(t)?"valid":Ml(t)?"existing":ep(t.dom)?"caret":Mp(e,n,r)&&Mp(e,Ln(o),n)?"valid":"invalid-child"}))},Nh=function(e,t){var n=sh(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Rh=function(e,t,n,r){var o=t.uid,i=void 0===o?Hl("mce-annotation"):o,a=We(t,["uid"]),c=wn.fromTag("span",e);_l(c,Ol()),vo(c,""+Al(),i),vo(c,""+El(),n);var u=r(i,a),s=u.attributes,l=void 0===s?{}:s,f=u.classes,d=void 0===f?[]:f;return yo(c,l),Fl(c,d),c},Bh=function(e,t,n,r,o){var i=[],a=Rh(e.getDoc(),o,n,r),c=dl(),u=function(){c.clear()},s=function(){return c.get().getOrThunk((function(){var e=$l(a);return i.push(e),c.set(e),e}))},l=function(e){Z(e,f)},f=function(t){var n=Mh(e,t,"span",Ln(t));switch(n){case"invalid-child":u();var r=rr(t);l(r),u();break;case"valid":var o=s();_r(t,o);break}},d=function(e){var t=Q(e,wn.fromDom);l(t)};return lh(e.dom,t,(function(e){u(),d(e)})),i},Ph=function(e,t,n,r){e.undoManager.transact((function(){var o=e.selection,i=o.getRng(),a=vh(e).length>0;if(i.collapsed&&!a&&Nh(e,i),o.getRng().collapsed&&!a){var c=Rh(e.getDoc(),r,t,n.decorate);ql(c,sa),o.getRng().insertNode(c.dom),o.select(c.dom)}else Th(o,!1,(function(){Sh(e,(function(o){Bh(e,o,t,n.decorate,r)}))}))}))},Lh=function(e){var t=Ll();Pl(e,t);var n=Bl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Ph(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Dl(e,q.some(t)).each((function(e){var t=e.elements;Z(t,Tr)}))},getAll:function(t){var n=Rl(e,t);return xe(n,(function(e){return Q(e,(function(e){return e.dom}))}))}}},Ih=function(e){return{getBookmark:N(wp,e),moveToBookmark:N(kp,e)}};Ih.isBookmarkNode=_p;var Hh=function(e,t){while(t&&t!==e){if(io(t)||ao(t))return t;t=t.parentNode}return null},Fh=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Ur(r))return J(r.getClientRects(),(function(n){return rf(n,e,t)}))}return J(n.getClientRects(),(function(n){return rf(n,e,t)}))},jh=function(e,t){return e.fire("PreProcess",t)},Vh=function(e,t){return e.fire("PostProcess",t)},Uh=function(e){return e.fire("remove")},qh=function(e){return e.fire("detach")},Wh=function(e,t){return e.fire("SwitchMode",{mode:t})},$h=function(e,t,n,r,o){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:o})},Gh=function(e,t,n,r,o){e.fire("ObjectResized",{target:t,width:n,height:r,origin:o})},Kh=function(e){return e.fire("PreInit")},Xh=function(e){return e.fire("PostRender")},Yh=function(e){return e.fire("Init")},Jh=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Qh=function(e,t,n){return e.fire(t,n)},Zh=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},ev=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tv.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},nv=ao,rv=function(e,t){var n,r,o,i,a,c,u,s,l,f,d,m,g,p,h,v,y,b="data-mce-selected",w=t.dom,k=gn.each,_=t.getDoc(),x=document,z=Math.abs,S=Math.round,T=t.getBody(),O={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},E=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},A=function(e){return uo(e)||w.hasClass(e,"mce-preview-object")},D=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return E(e.target)&&!Fh(n.clientX,n.clientY,t)}return E(e.target)&&!Fh(e.clientX,e.clientY,t)},M=function(e){var n=e.target;D(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},N=function(e){return w.is(e,"figure.image")?[e.querySelector("img")]:w.hasClass(e,"mce-preview-object")&&C(e.firstElementChild)?[e,e.firstElementChild]:[e]},R=function(e){var n=Zd(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(w.hasClass(e,"mce-preview-object")?En(wn.fromDom(e.firstElementChild),n):En(wn.fromDom(e),n))))},B=function(e){return A(e)?w.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},P=function(e,n,r){if(C(r)){var o=N(e);Z(o,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?w.setStyle(e,n,r):w.setAttrib(e,n,""+r)}))}},L=function(e,t,n){P(e,"width",t),P(e,"height",n)},I=function(e){var a,b,k,_,x;a=e.screenX-c,b=e.screenY-u,p=a*i[2]+f,h=b*i[3]+d,p=p<5?5:p,h=h<5?5:h,k=(E(n)||A(n))&&!1!==em(t)?!tv.modifierPressed(e):tv.modifierPressed(e),k&&(z(a)>z(b)?(h=S(p*m),p=S(h/m)):(p=S(h/m),h=S(p*m))),L(r,p,h),_=i.startPos.x+a,x=i.startPos.y+b,_=_>0?_:0,x=x>0?x:0,w.setStyles(o,{left:_,top:x,display:"block"}),o.innerHTML=p+" &times; "+h,i[2]<0&&r.clientWidth<=p&&w.setStyle(r,"left",s+(f-p)),i[3]<0&&r.clientHeight<=h&&w.setStyle(r,"top",l+(d-h)),a=T.scrollWidth-v,b=T.scrollHeight-y,a+b!==0&&w.setStyles(o,{left:_-a,top:x-b}),g||($h(t,n,f,d,"corner-"+i.name),g=!0)},H=function(){var e=g;g=!1,e&&(P(n,"width",p),P(n,"height",h)),w.unbind(_,"mousemove",I),w.unbind(_,"mouseup",H),x!==_&&(w.unbind(x,"mousemove",I),w.unbind(x,"mouseup",H)),w.remove(r),w.remove(o),w.remove(a),F(n),e&&(Gh(t,n,p,h,"corner-"+i.name),w.setAttrib(n,"style",w.getAttrib(n,"style"))),t.nodeChanged()},F=function(e){q();var s=w.getPos(e,T),l=s.x,g=s.y,C=e.getBoundingClientRect(),z=C.width||C.right-C.left,S=C.height||C.bottom-C.top;n!==e&&(j(),n=e,p=h=0);var E=t.fire("ObjectSelected",{target:e}),A=w.getAttrib(n,b,"1");R(e)&&!E.isDefaultPrevented()?k(O,(function(e,t){var s,p=function(s){var p=N(n)[0];c=s.screenX,u=s.screenY,f=p.clientWidth,d=p.clientHeight,m=d/f,i=e,i.name=t,i.startPos={x:z*e[0]+l,y:S*e[1]+g},v=T.scrollWidth,y=T.scrollHeight,a=w.add(T,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),w.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=B(n),w.addClass(r,"mce-clonedresizable"),w.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",w.setStyles(r,{left:l,top:g,margin:0}),L(r,z,S),r.removeAttribute(b),T.appendChild(r),w.bind(_,"mousemove",I),w.bind(_,"mouseup",H),x!==_&&(w.bind(x,"mousemove",I),w.bind(x,"mouseup",H)),o=w.add(T,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" &times; "+d)};s=w.get("mceResizeHandle"+t),s&&w.remove(s),s=w.add(T,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(s.contentEditable=!1),w.bind(s,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),p(e)})),e.elm=s,w.setStyles(s,{left:z*e[0]+l-s.offsetWidth/2,top:S*e[1]+g-s.offsetHeight/2})})):j(),w.getAttrib(n,b)||n.setAttribute(b,A)},j=function(){q(),n&&n.removeAttribute(b),_e(O,(function(e,t){var n=w.get("mceResizeHandle"+t);n&&(w.unbind(n),w.remove(n))}))},V=function(n){var r,o,i=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};g||t.removed||(k(w.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(b)})),o="mousedown"===n.type?n.target:e.getNode(),o=w.$(o).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],i(o,T)&&(W(),r=e.getStart(!0),i(r,o)&&i(e.getEnd(!0),o))?F(o):j())},U=function(e){return nv(Hh(t.getBody(),e))},q=function(){_e(O,(function(e){e.elm&&(w.unbind(e.elm),delete e.elm)}))},W=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(W(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||U(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Pi.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(U(e.target)||uo(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};w.bind(T,"mscontrolselect",e),t.on("remove",(function(){return w.unbind(T,"mscontrolselect",e)}))}var r=Pi.throttle((function(e){t.composing||V(e)}));t.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",j),t.on("contextmenu longpress",M,!0)})),t.on("remove",q);var $=function(){n=r=a=null};return{isResizable:R,showResizeRect:F,hideResizeRect:j,updateResizeRect:V,destroy:$}},ov=function(e){return io(e)||ao(e)},iv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},av=function(e,t,n){var r,o=n.elementFromPoint(e,t),i=n.body.createTextRange();if(o&&"HTML"!==o.tagName||(o=n.body),i.moveToElementText(o),r=gn.toArray(i.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(a){}}return null},cv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ao(iv(n,t,ov))?null:e},uv=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(e,t),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(i.caretRangeFromPoint)r=i.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=av(e,t,n)}return cv(r,n.body)}return r},sv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},lv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},fv=function(e,t,n){return null!==lv(e,t,n)},dv=function(e,t,n){return fv(e,t,(function(e){return e.nodeName===n}))},mv=function(e){return e&&"TABLE"===e.nodeName},gv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},pv=function(e,t){return ba(e)&&!1===fv(e,t,ep)},hv=function(e,t,n){var r=new Fi(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ro(t))return!0},vv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},yv=function(e,t){while(t&&t!==e){if(ao(t))return!0;t=t.parentNode}return!1},bv=function(e,t,n,r,o){var i,a,c=e.getRoot(),u=e.schema.getNonEmptyElements(),s=e.getParent(o.parentNode,e.isBlock)||c;if(r&&ro(o)&&t&&e.isEmpty(s))return q.some(Nf(o.parentNode,e.nodeIndex(o)));var l=new Fi(o,s);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||pv(a,c))return q.none();if(Zr(a)&&a.nodeValue.length>0)return!1===dv(a,c,"A")?q.some(Nf(a,r?a.nodeValue.length:0)):q.none();if(e.isBlock(a)||u[a.nodeName.toLowerCase()])return q.none();i=a}return n&&i?q.some(Nf(i,0)):q.none()},wv=function(e,t,n,r){var o,i,a,c,u=e.getRoot(),s=!1;o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"];var l=Ur(o)&&i===o.childNodes.length,f=e.schema.getNonEmptyElements();if(c=n,ba(o))return q.none();if(Ur(o)&&i>o.childNodes.length-1&&(c=!1),to(o)&&(o=u,i=0),o===u){if(c&&(a=o.childNodes[i>0?i-1:0],a)){if(ba(a))return q.none();if(f[a.nodeName]||mv(a))return q.none()}if(o.hasChildNodes()){if(i=Math.min(!c&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Zr(o)&&l?o.data.length:0,!t&&o===u.lastChild&&mv(o))return q.none();if(yv(u,o)||ba(o))return q.none();if(o.hasChildNodes()&&!1===mv(o)){a=o;var d=new Fi(o,u);do{if(ao(a)||ba(a)){s=!1;break}if(Zr(a)&&a.nodeValue.length>0){i=c?0:a.nodeValue.length,o=a,s=!0;break}if(f[a.nodeName.toLowerCase()]&&!gv(a)){i=e.nodeIndex(a),o=a.parentNode,c||i++,s=!0;break}}while(a=c?d.next():d.prev())}}}return t&&(Zr(o)&&0===i&&bv(e,l,t,!0,o).each((function(e){o=e.container(),i=e.offset(),s=!0})),Ur(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!ro(a)||vv(a,"A")||hv(e,a,!1)||hv(e,a,!0)||bv(e,l,t,!0,a).each((function(e){o=e.container(),i=e.offset(),s=!0})))),c&&!t&&Zr(o)&&i===o.nodeValue.length&&bv(e,l,t,!1,o).each((function(e){o=e.container(),i=e.offset(),s=!0})),s?q.some(Nf(o,i)):q.none()},kv=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=Nf.fromRangeStart(t);return wv(e,n,!0,r).each((function(e){n&&Nf.isAbove(o,e)||r.setStart(e.container(),e.offset())})),n||wv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),sv(t,r)?q.none():q.some(r)},_v=function(e,t){return e.splitText(t)},xv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Zr(t)?n>0&&n<t.nodeValue.length&&(r=_v(t,n),t=r.previousSibling,o>n?(o-=n,t=r=_v(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(Zr(t)&&n>0&&n<t.nodeValue.length&&(t=_v(t,n),n=0),Zr(r)&&o>0&&o<r.nodeValue.length&&(r=_v(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},Cv=function(e){var t=function(t,n){return lh(e,t,n)},n=xv,r=function(t){return kv(e,t).fold(I,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};Cv.compareRanges=sv,Cv.getCaretRangeFromPoint=uv,Cv.getSelectedNode=af,Cv.getNode=cf;var zv,Sv=function(e,t){var n=function(t,n){if(!S(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;po(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=So(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return oe(t,(function(t,n){var r=So(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},Tv=Sv("height",(function(e){var t=e.dom;return Or(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ov=function(e){return Tv.get(e)},Ev=function(e,t){var n=e.view(t);return n.fold(A([]),(function(t){var n=e.owner(t),r=Ev(e,n);return[t].concat(r)}))},Av=function(e,t){var n=t.owner(e);return Ev(t,n)},Dv=function(e){var t,n=e.dom===document?q.none():q.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(wn.fromDom)},Mv=function(e){return Gn(e)},Nv=Object.freeze({__proto__:null,view:Dv,owner:Mv}),Rv=function(e){var t=wn.fromDom(document),n=Br(t),r=Av(e,Nv),o=Rr(e),i=re(r,(function(e,t){var n=Rr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Ar(i.left+o.left+n.left,i.top+o.top+n.top)},Bv=function(e){return"textarea"===Ln(e)},Pv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Lv=function(e,t){e.fire("AfterScrollIntoView",t)},Iv=function(e,t){var n=rr(e);if(0===n.length||Bv(e))return{element:e,offset:t};if(t<n.length&&!Bv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Bv(r)?{element:e,offset:t}:"img"===Ln(r)?{element:r,offset:1}:Vn(r)?{element:r,offset:Ah(r).length}:{element:r,offset:rr(r).length}},Hv=function(e,t){var n=Nr(e),r=Ov(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},Fv=function(e,t){var n=Iv(e,t),r=wn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+da+"</span>");return yr(n.element,r),Hv(r,(function(){return Sr(r)}))},jv=function(e){return Hv(wn.fromDom(e),T)},Vv=function(e,t,n,r){$v(e,(function(o,i){return qv(e,t,n,r)}),n)},Uv=function(e,t,n,r,o){var i={elm:r.element.dom,alignToTop:o};if(!Pv(e,i)){var a=Br(t).top;n(t,a,r,o),Lv(e,i)}},qv=function(e,t,n,r){var o=wn.fromDom(e.getBody()),i=wn.fromDom(e.getDoc());Ao(o);var a=Fv(wn.fromDom(n.startContainer),n.startOffset);Uv(e,i,t,a,r),a.cleanup()},Wv=function(e,t,n,r){var o=wn.fromDom(e.getDoc());Uv(e,o,n,jv(t),r)},$v=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(wn.fromDom(r),wn.fromDom(i));var c=e.dom.createRng();c.setStart(r,o),c.setEnd(i,a),e.selection.setRng(n)},Gv=function(e,t,n,r){var o=e.pos;if(n)Pr(o.left,o.top,r);else{var i=o.top-t+e.height;Pr(o.left,i,r)}},Kv=function(e,t,n,r,o){var i=n+t,a=r.pos.top,c=r.bottom,u=c-a>=n;if(a<t)Gv(r,n,!1!==o,e);else if(a>i){var s=u?!1!==o:!0===o;Gv(r,n,s,e)}else c>i&&!u&&Gv(r,n,!0===o,e)},Xv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Kv(e,t,o,n,r)},Yv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Kv(e,t,o,n,r);var i=Rv(n.element),a=Fr(window);i.top<a.y?Lr(n.element,!1!==r):i.top>a.bottom&&Lr(n.element,!0===r)},Jv=function(e,t,n){return Vv(e,Xv,t,n)},Qv=function(e,t,n){return Wv(e,t,Xv,n)},Zv=function(e,t,n){return Vv(e,Yv,t,n)},ey=function(e,t,n){return Wv(e,t,Yv,n)},ty=function(e,t,n){var r=e.inline?Qv:ey;r(e,t,n)},ny=function(e,t,n){var r=e.inline?Jv:Zv;r(e,t,n)},ry=function(){return wn.fromDom(document)},oy=function(e){return e.dom.focus()},iy=function(e){var t=dr(e).dom;return e.dom===t.activeElement},ay=function(e){return void 0===e&&(e=ry()),q.from(e.dom.activeElement).map(wn.fromDom)},cy=function(e){return ay(dr(e)).filter((function(t){return e.dom.contains(t.dom)}))},uy=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},sy={create:uy},ly=ei.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fy=function(e,t,n,r){return e.fold(t,n,r)},dy=function(e){return e.fold(D,D,D)},my=ly.before,gy=ly.on,py=ly.after,hy={before:my,on:gy,after:py,cata:fy,getStart:dy},vy=ei.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),yy=function(e){return vy.exact(e.start,e.soffset,e.finish,e.foffset)},by=function(e){return e.match({domRange:function(e){return wn.fromDom(e.startContainer)},relative:function(e,t){return hy.getStart(e)},exact:function(e,t,n,r){return e}})},wy=vy.domRange,ky=vy.relative,_y=vy.exact,xy=function(e){var t=by(e);return Xn(t)},Cy=sy.create,zy={domRange:wy,relative:ky,exact:_y,exactFromRange:yy,getWin:xy,range:Cy},Sy=Wt().browser,Ty=function(e,t){var n=Vn(t)?Ah(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Oy=function(e){return zy.range(e.start,Ty(e.soffset,e.start),e.finish,Ty(e.foffset,e.finish))},Ey=function(e,t){return!Vr(t.dom)&&(Pn(e,t)||Nn(e,t))},Ay=function(e){return function(t){return Ey(e,t.start)&&Ey(e,t.finish)}},Dy=function(e){return!0===e.inline||Sy.isIE()},My=function(e){return zy.range(wn.fromDom(e.startContainer),e.startOffset,wn.fromDom(e.endContainer),e.endOffset)},Ny=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?q.from(t.getRangeAt(0)):q.none();return n.map(My)},Ry=function(e){var t=Xn(e);return Ny(t.dom).filter(Ay(e))},By=function(e,t){return q.from(t).filter(Ay(e)).map(Oy)},Py=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),q.some(t)}catch(n){return q.none()}},Ly=function(e){var t=Dy(e)?Ry(wn.fromDom(e.getBody())):q.none();e.bookmark=t.isSome()?t:e.bookmark},Iy=function(e,t){var n=wn.fromDom(e.getBody()),r=Dy(e)?q.from(t):q.none(),o=r.map(My).filter(Ay(n));e.bookmark=o.isSome()?o:e.bookmark},Hy=function(e){var t=e.bookmark?e.bookmark:q.none();return t.bind((function(t){return By(wn.fromDom(e.getBody()),t)})).bind(Py)},Fy=function(e){Hy(e).each((function(t){return e.selection.setRng(t)}))},jy=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},Vy={isEditorUIElement:jy},Uy=function(e){return"nodechange"===e.type&&e.selectionChange},qy=function(e,t){var n=function(){t.throttle()};js.DOM.bind(document,"mouseup",n),e.on("remove",(function(){js.DOM.unbind(document,"mouseup",n)}))},Wy=function(e){e.on("focusout",(function(){Ly(e)}))},$y=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Gy=function(e,t){var n=Wt().browser;n.isIE()?Wy(e):$y(e,t),e.on("keyup NodeChange",(function(t){Uy(t)||Ly(e)}))},Ky=function(e){var t=ml((function(){Ly(e)}),0);e.on("init",(function(){e.inline&&qy(e,t),Gy(e,t)})),e.on("remove",(function(){t.cancel()}))},Xy=js.DOM,Yy=function(e){return Vy.isEditorUIElement(e)},Jy=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Qy=function(e,t){var n=lm(e),r=Xy.getParent(t,(function(t){return Yy(t)||!!n&&e.dom.is(t,n)}));return null!==r},Zy=function(e){try{var t=dr(wn.fromDom(e.getElement()));return ay(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},eb=function(e,t){var n=t.editor;Ky(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Pi.setEditorTimeout(n,(function(){var t=e.focusedEditor;Qy(n,Zy(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),zv||(zv=function(t){var n=e.activeEditor;n&&hr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Qy(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Xy.bind(document,"focusin",zv))},tb=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Xy.unbind(document,"focusin",zv),zv=null)},nb=function(e){e.on("AddEditor",N(eb,e)),e.on("RemoveEditor",N(tb,e))},rb=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},ob=function(e){return e.collapsed?q.from(cf(e.startContainer,e.startOffset)).map(wn.fromDom):q.none()},ib=function(e,t){return ob(t).bind((function(t){return oa(t)?q.some(t):!1===Pn(e,t)?q.some(e):q.none()}))},ab=function(e,t){ib(wn.fromDom(e.getBody()),t).bind((function(e){return Jg(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},cb=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},ub=function(e){return iy(e)||cy(e).isSome()},sb=function(e){return e.iframeElement&&iy(wn.fromDom(e.iframeElement))},lb=function(e){var t=e.getBody();return t&&ub(wn.fromDom(t))},fb=function(e){var t=dr(wn.fromDom(e.getElement()));return ay(t).filter((function(t){return!Jy(t.dom)&&Qy(e,t.dom)})).isSome()},db=function(e){return e.inline?lb(e):sb(e)},mb=function(e){return db(e)||fb(e)},gb=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===db(e)&&Hy(e).each((function(t){e.selection.setRng(t),r=t}));var o=rb(e,t.getNode());if(e.$.contains(n,o))return cb(o),ab(e,r),void pb(e);e.inline||(en.opera||cb(n),e.getWin().focus()),(en.gecko||e.inline)&&(cb(n),ab(e,r)),pb(e)},pb=function(e){return e.editorManager.setActive(e)},hb=function(e,t){e.removed||(t?pb(e):gb(e))},vb=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return q.from(i).map(wn.fromDom).map((function(e){return r&&t.collapsed?e:or(e,o(e,a)).getOr(e)})).bind((function(e){return jn(e)?q.some(e):Yn(e).filter(jn)})).map((function(e){return e.dom})).getOr(e)},yb=function(e,t,n){return vb(e,t,!0,n,(function(e,t){return Math.min(cr(e),t)}))},bb=function(e,t,n){return vb(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},wb=function(e,t){var n=e;while(e&&Zr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},kb=function(e,t){var n,r,o;if(!t)return e;r=t.startContainer,o=t.endContainer;var i=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?wb(r.nextSibling,!0):r.parentNode,o=0===a?wb(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n},_b=function(e,t,n,r){var o,i=[],a=e.getRoot();if(n=e.getParent(n||yb(a,t,t.collapsed),e.isBlock),r=e.getParent(r||bb(a,t,t.collapsed),e.isBlock),n&&n!==a&&i.push(n),n&&r&&n!==r){o=n;var c=new Fi(n,a);while((o=c.next())&&o!==r)e.isBlock(o)&&i.push(o)}return r&&n!==r&&r!==a&&i.push(r),i},xb=function(e,t,n){return q.from(t).map((function(t){var r=e.nodeIndex(t),o=e.createRng();return o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),n&&(Ch(e,o,t,!0),Ch(e,o,t,!1)),o}))},Cb=function(e,t){return Q(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},zb={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Sb=function(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o],i)return i}},Tb=function(e){if(!Ga(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Ob=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Eb=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,zb[t]||1);return n&&_e(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&_e(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var o=n.length;while(o--)if(n[o].name===e)return n.splice(o,1),r}return r}if(e in n.map){o=n.length;while(o--)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var o=[];o.map={};for(var i=0,a=t.length;i<a;i++){var c=t[i];"id"!==c.name&&(o[o.length]={name:c.name,value:c.value},o.map[c.name]=c.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Sb(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Sb(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,o=r.firstChild;if(Ob(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(Ob(o))return!1}if(8===o.type)return!1;if(3===o.type&&!Tb(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Ga(o.value))return!1;if(n&&n(o))return!1}while(o=Sb(o,r));return!0},e.prototype.walk=function(e){return Sb(this,null,e)},e}(),Ab=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],o={},i=Hl("img"),a=0,c=0;while(t=n.exec(e)){var u=t[0],s=i+"_"+c++;o[s]=u,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(s),a=t.index+u.length}var l=new RegExp(i+"_[0-9]+","g");return 0===a?{prefix:i,uris:o,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:i,uris:o,html:r.join(""),re:l})},Db=function(e,t){return e.replace(t.re,(function(e){return De(t.uris,e).getOr(e)}))},Mb=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?q.some({type:t[1],data:decodeURIComponent(t[2])}):q.none()},Nb=gn.each,Rb=gn.trim,Bb="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Pb={ftp:21,http:80,https:443,mailto:25},Lb=["img","video"],Ib=function(e,t){return C(e)?!e:!C(t)||!Y(Lb,t)},Hb=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?Ib(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},Fb=function(){function e(t,n){t=Rb(t),this.settings=n||{};var r=this.settings.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))o.source=t;else{var i=0===t.indexOf("//");if(0!==t.indexOf("/")||i||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+o.toAbsPath(a,t);else{var c=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+o.toAbsPath(a,c[1])+c[2]}}t=t.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);Nb(Bb,(function(e,t){var n=u[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n})),r&&(o.protocol||(o.protocol=r.protocol),o.userInfo||(o.userInfo=r.userInfo),o.port||"mce_host"!==o.host||(o.port=r.port),o.host&&"mce_host"!==o.host||(o.host=r.host),o.source=""),i&&(o.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Oc.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(o){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!Hb(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Pb[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,o=0,i="",a=e.substring(0,e.lastIndexOf("/")).split("/"),c=t.split("/");if(a.length>=c.length)for(n=0,r=a.length;n<r;n++)if(n>=c.length||a[n]!==c[n]){o=n+1;break}if(a.length<c.length)for(n=0,r=c.length;n<r;n++)if(n>=a.length||a[n]!==c[n]){o=n+1;break}if(1===o)return t;for(n=0,r=a.length-(o-1);n<r;n++)i+="../";for(n=o-1,r=c.length;n<r;n++)i+=n!==o-1?"/"+c[n]:c[n];return i},e.prototype.toAbsPath=function(e,t){var n,r,o=0,i=[],a=/\/$/.test(t)?"/":"",c=e.split("/"),u=t.split("/");for(Nb(c,(function(e){e&&i.push(e)})),c=i,n=u.length-1,i=[];n>=0;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?o>0?o--:i.push(u[n]):o++);return n=c.length-o,r=n<=0?fe(i).join("/"):c.slice(0,n).join("/")+"/"+fe(i).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),jb=gn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),Vb=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Ub=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,o=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),a=1,c=n;while(0!==a){r.lastIndex=c;while(1){var u=r.exec(t);if(null===u)return c;if("!"===u[1]){c=st(u[2],"--")?Wb(t,!1,u.index+"!--".length):Wb(t,!0,u.index+1);break}o.lastIndex=r.lastIndex;var s=o.exec(t);if(!w(s)&&s.index===r.lastIndex){"/"===u[1]?a-=1:Me(i,u[2])||(a+=1),c=r.lastIndex+s[0].length;break}}}return c},qb=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},Wb=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&qb(r,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/g;a.lastIndex=n;var c=a.exec(e);return c?c.index+c[0].length:r.length},$b=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null},Gb=function(e,t){var n;void 0===t&&(t=jc()),e=e||{};var r=null!==(n=e.document)&&void 0!==n?n:document,o=r.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:T,a=e.cdata?e.cdata:T,c=e.text?e.text:T,u=e.start?e.start:T,s=e.end?e.end:T,l=e.pi?e.pi:T,f=e.doctype?e.doctype:T,d=function(n,d){void 0===d&&(d="html");var m,g,p,h,v,y,b,w,k,_,x,C,z,S,T,O,E,A,D,M,N=n.html,R=0,B=[],P=0,L=Oc.decode,I=gn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),H="html"===d?0:1,F=function(e){var t,n;t=B.length;while(t--)if(B[t].name===e)break;if(t>=0){for(n=B.length-1;n>=t;n--)e=B[n],e.valid&&s(e.name);B.length=t}},j=function(e,t){return c(Db(e,n),t)},V=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Db(t,n)))},U=function(e){return Db(e,n)},q=function(e,t){var n=e||"",r=!st(n,"--"),o=Wb(N,r,t);return e=N.substr(t,o-t),V(r?n+e:e),o+1},W=function(t,n,i,a,c){if(n=n.toLowerCase(),i=U(n in Y?n:L(i||a||c||"")),J&&!w&&!1===Vb(n)){var u=S[n];if(!u&&T){var s=T.length;while(s--)if(u=T[s],u.pattern.test(n))break;-1===s&&(u=null)}if(!u)return;if(u.validValues&&!(i in u.validValues))return}var l="name"===n||"id"===n;l&&t in jb&&(i in r||i in o)||I[n]&&!Fb.isDomSafe(i,t,e)||w&&(n in I||0===n.indexOf("on"))||(h.map[n]=i,h.push({name:n,value:i}))},$=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,K=t.getShortEndedElements(),X=e.self_closing_elements||t.getSelfClosingElements(),Y=t.getBoolAttrs(),J=e.validate,Q=e.remove_internals,Z=e.fix_self_closing,ee=t.getSpecialElements(),te=N+">";while(m=$.exec(te)){var ne=m[0];if(R<m.index&&j(L(N.substr(R,m.index-R))),g=m[7])g=g.toLowerCase(),":"===g.charAt(0)&&(g=g.substr(1)),F(g);else if(g=m[8]){if(m.index+ne.length>N.length){j(L(N.substr(m.index))),R=m.index+ne.length;continue}g=g.toLowerCase(),":"===g.charAt(0)&&(g=g.substr(1)),k=g in K,Z&&X[g]&&B.length>0&&B[B.length-1].name===g&&F(g);var re=$b(G,m[9]);if(null!==re){if("all"===re){R=Ub(t,N,$.lastIndex),$.lastIndex=R;continue}x=!1}if(!J||(_=t.getElementRule(g))){if(x=!0,J&&(S=_.attributes,T=_.attributePatterns),(z=m[9])?(w=-1!==z.indexOf("data-mce-type"),w&&Q&&(x=!1),h=[],h.map={},z.replace(G,(function(e,t,n,r,o){return W(g,t,n,r,o),""}))):(h=[],h.map={}),J&&!w){if(O=_.attributesRequired,E=_.attributesDefault,A=_.attributesForced,D=_.removeEmptyAttrs,D&&!h.length&&(x=!1),A){v=A.length;while(v--)C=A[v],b=C.name,M=C.value,"{$uid}"===M&&(M="mce_"+P++),h.map[b]=M,h.push({name:b,value:M})}if(E){v=E.length;while(v--)C=E[v],b=C.name,b in h.map||(M=C.value,"{$uid}"===M&&(M="mce_"+P++),h.map[b]=M,h.push({name:b,value:M}))}if(O){v=O.length;while(v--)if(O[v]in h.map)break;-1===v&&(x=!1)}if(C=h.map["data-mce-bogus"]){if("all"===C){R=Ub(t,N,$.lastIndex),$.lastIndex=R;continue}x=!1}}x&&u(g,h,k)}else x=!1;if(p=ee[g]){p.lastIndex=R=m.index+ne.length,(m=p.exec(N))?(x&&(y=N.substr(R,m.index-R)),R=m.index+m[0].length):(y=N.substr(R),R=N.length),x&&(y.length>0&&j(y,!0),s(g)),$.lastIndex=R;continue}k||(z&&z.indexOf("/")===z.length-1?x&&s(g):B.push({name:g,valid:x}))}else if(g=m[1])V(g);else if(g=m[2]){var oe=1===H||e.preserve_cdata||B.length>0&&t.isValidChild(B[B.length-1].name,"#cdata");if(!oe){R=q("",m.index+2),$.lastIndex=R;continue}a(g)}else if(g=m[3])f(g);else{if((g=m[4])||"<!"===ne){R=q(g,m.index+ne.length),$.lastIndex=R;continue}if(g=m[5]){if(1!==H){R=q("?",m.index+2),$.lastIndex=R;continue}l(g,m[6])}}R=m.index+ne.length}for(R<N.length&&j(L(N.substr(R))),v=B.length-1;v>=0;v--)g=B[v],g.valid&&s(g.name)},m=function(e,t){void 0===t&&(t="html"),d(Ab(e),t)};return{parse:m}};Gb.findEndTag=Ub;var Kb=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Xb=function(e,t){var n,r=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,o=e.schema,i=Kb(e.getTempAttrs(),t),a=o.getShortEndedElements();while(n=r.exec(i)){var c=r.lastIndex,u=n[0].length,s=void 0;s=a[n[1]]?c:Gb.findEndTag(o,i,c),i=i.substring(0,c-u)+i.substring(s),r.lastIndex=c-u}return ga(i)},Yb=Xb,Jb=function(e,t){var n=zd(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Qb=function(e,t){return qe(qe({},e),{format:t,get:!0,getInner:!0})},Zb=function(e,t,n,r){var o,i=Qb(t,n),a=t.no_events?i:e.fire("BeforeGetContent",i);return o="raw"===a.format?gn.trim(Yb(e.serializer,r.innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":ga(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):Jb(e,e.serializer.serialize(r,a)),Y(["text","tree"],a.format)||aa(wn.fromDom(r))?a.content=o:a.content=gn.trim(o),a.no_events?a.content:e.fire("GetContent",a).content},ew=function(e,t,n){return q.from(e.getBody()).fold(A("tree"===t.format?new Eb("body",11):""),(function(r){return Zb(e,t,n,r)}))},tw=gn.each,nw=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return tw(e.getAttribs(t),(function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))})),n},o=function(e,t){var n,r;for(r in e)if(Me(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(Me(t,r))return!1;return!0};return!!o(r(t),r(n))&&(!!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!_p(t)&&!_p(n)))};return{compare:t}},rw=gn.makeMap,ow=function(e){var t=[];e=e||{};var n=e.indent,r=rw(e.indent_before||""),o=rw(e.indent_after||""),i=Oc.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,c,u){var s,l,f,d;if(n&&r[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n")),t.push("<",e),c)for(s=0,l=c.length;s<l;s++)f=c[s],t.push(" ",f.name,'="',i(f.value,!0),'"');t[t.length]=!u||a?">":" />",u&&n&&o[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&o[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:i(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",i(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},iw=function(e,t){void 0===t&&(t=jc());var n=ow(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var o=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=i[e.type];if(r)r(e);else{var c=e.name,u=e.shortEnded,s=e.attributes;if(o&&s&&s.length>1){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,m=f.attributesOrder.length;d<m;d++){var g=f.attributesOrder[d];if(g in s.map){var p=s.map[g];l.map[g]=p,l.push({name:g,value:p})}}for(d=0,m=s.length;d<m;d++){g=s[d].name;if(!(g in l.map)){p=s.map[g];l.map[g]=p,l.push({name:g,value:p})}}s=l}}if(n.start(e.name,s,u),!u){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(c)}}};return 1!==r.type||e.inner?i[11](r):a(r),n.getContent()};return{serialize:r}},aw=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Z(e,(function(e){aw.add(e)}))})();var cw=["font","text-decoration","text-emphasis"],uw=function(e,t){return we(e.parseStyle(e.getAttrib(t,"style")))},sw=function(e){return aw.has(e)},lw=function(e,t){return le(uw(e,t),(function(e){return!sw(e)}))},fw=function(e){return ne(e,(function(e){return J(cw,(function(t){return st(e,t)}))}))},dw=function(e,t,n){var r=uw(e,t),o=uw(e,n),i=function(r){var o=e.getStyle(t,r),i=e.getStyle(n,r);return gt(o)&&gt(i)&&o!==i};return J(r,(function(e){var t=function(t){return J(t,(function(t){return t===e}))};if(!t(o)&&t(cw)){var n=fw(o);return J(n,i)}return i(e)}))},mw=function(e,t,n){return q.from(n.container()).filter(Zr).exists((function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))}))},gw=N(mw,!0,zp),pw=N(mw,!1,zp),hw=function(e){var t=e.container();return Zr(t)&&(0===t.data.length||ma(t.data)&&Ih.isBookmarkNode(t.parentNode))},vw=function(e,t){return function(n){return q.from(dg(e?0:-1,n)).filter(t).isSome()}},yw=function(e){return oo(e)&&"block"===So(wn.fromDom(e),"display")},bw=function(e){return ao(e)&&!Xr(e)},ww=vw(!0,yw),kw=vw(!1,yw),_w=vw(!0,uo),xw=vw(!1,uo),Cw=vw(!0,Yr),zw=vw(!1,Yr),Sw=vw(!0,bw),Tw=vw(!1,bw),Ow=function(e){var t=[],n=e.dom;while(n)t.push(wn.fromDom(n)),n=n.lastChild;return t},Ew=function(e){var t=Tl(e,"br"),n=ne(Ow(e).slice(-1),ea);t.length===n.length&&Z(n,Sr)},Aw=function(e){zr(e),kr(e,wn.fromHtml('<br data-mce-bogus="1">'))},Dw=function(e){ar(e).each((function(t){Zn(t).each((function(n){Ji(e)&&ea(t)&&Ji(n)&&Sr(t)}))}))},Mw=function(e){return e.slice(0,-1)},Nw=function(e,t,n){return Pn(t,e)?Mw(Jn(e,(function(e){return n(e)||Nn(e,t)}))):[]},Rw=function(e,t){return Nw(e,t,I)},Bw=function(e,t){return[e].concat(Rw(e,t))},Pw=function(e,t,n){return Gg(e,t,n,hw)},Lw=function(e,t){return ae(Bw(wn.fromDom(t.container()),e),Ji)},Iw=function(e,t,n){return Pw(e,t.dom,n).forall((function(e){return Lw(t,n).fold((function(){return!1===fg(e,n,t.dom)}),(function(r){return!1===fg(e,n,t.dom)&&Pn(r,wn.fromDom(e.container()))}))}))},Hw=function(e,t,n){return Lw(t,n).fold((function(){return Pw(e,t.dom,n).forall((function(e){return!1===fg(e,n,t.dom)}))}),(function(t){return Pw(e,t.dom,n).isNone()}))},Fw=N(Hw,!1),jw=N(Hw,!0),Vw=N(Iw,!1),Uw=N(Iw,!0),qw=function(e){return kg(e).exists(ea)},Ww=function(e,t,n){var r=ne(Bw(wn.fromDom(n.container()),t),Ji),o=he(r).getOr(t);return Wg(e,o.dom,n).filter(qw)},$w=function(e,t){return kg(t).exists(ea)||Ww(!0,e,t).isSome()},Gw=function(e,t){return _g(t).exists(ea)||Ww(!1,e,t).isSome()},Kw=N(Ww,!1),Xw=N(Ww,!0),Yw=function(e){return Nf.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Jw=function(e,t){var n=ne(Bw(wn.fromDom(t.container()),e),Ji);return he(n).getOr(e)},Qw=function(e,t){return Yw(t)?pw(t):pw(t)||Yg(Jw(e,t).dom,t).exists(pw)},Zw=function(e,t){return Yw(t)?gw(t):gw(t)||Xg(Jw(e,t).dom,t).exists(gw)},ek=function(e){return Y(["pre","pre-wrap"],e)},tk=function(e){return kg(e).bind((function(e){return xi(e,jn)})).exists((function(e){return ek(So(e,"white-space"))}))},nk=function(e,t){return Yg(e.dom,t).isNone()},rk=function(e,t){return Xg(e.dom,t).isNone()},ok=function(e,t){return nk(e,t)||rk(e,t)||Fw(e,t)||jw(e,t)||Gw(e,t)||$w(e,t)},ik=function(e,t){return!tk(t)&&(ok(e,t)||Qw(e,t)||Zw(e,t))},ak=function(e,t){return!tk(t)&&(Fw(e,t)||Vw(e,t)||Gw(e,t)||Qw(e,t))},ck=function(e){var t=e.container(),n=e.offset();return Zr(t)&&n<t.data.length?Nf(t,n+1):e},uk=function(e,t){return!tk(t)&&(jw(e,t)||Uw(e,t)||$w(e,t)||Zw(e,t))},sk=function(e,t){return ak(e,t)||uk(e,ck(t))},lk=function(e,t){return Cp(e.charAt(t))},fk=function(e){var t=e.container();return Zr(t)&&ut(t.data,sa)},dk=function(e){var t=e.split("");return Q(t,(function(e,n){return Cp(e)&&n>0&&n<t.length-1&&Sp(t[n-1])&&Sp(t[n+1])?" ":e})).join("")},mk=function(e,t){var n=t.data,r=Nf(t,0);return!(!lk(n,0)||sk(e,r))&&(t.data=" "+n.slice(1),!0)},gk=function(e){var t=e.data,n=dk(t);return n!==t&&(e.data=n,!0)},pk=function(e,t){var n=t.data,r=Nf(t,n.length-1);return!(!lk(n,n.length-1)||sk(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},hk=function(e,t){return q.some(t).filter(fk).bind((function(t){var n=t.container(),r=mk(e,n)||gk(n)||pk(e,n);return r?q.some(t):q.none()}))},vk=function(e){var t=wn.fromDom(e.getBody());e.selection.isCollapsed()&&hk(t,Nf.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},yk=function(e,t,n){var r=oe(e,(function(r,o){return zp(o)||Cp(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+sa}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}}),{previousCharIsSpace:!1,str:""});return r.str},bk=function(e,t,n){if(0!==n){var r=wn.fromDom(e),o=_i(r,Ji).getOr(r),i=e.data.slice(t,t+n),a=t+n>=e.data.length&&uk(o,Nf(e,e.data.length)),c=0===t&&ak(o,Nf(e,0));e.replaceData(t,n,yk(i,c,a))}},wk=function(e,t){var n=e.data.slice(t),r=n.length-dt(n).length;bk(e,t,r)},kk=function(e,t){var n=e.data.slice(0,t),r=n.length-mt(n).length;bk(e,t-r,r)},_k=function(e,t,n,r){void 0===r&&(r=!0);var o=mt(e.data).length,i=r?e:t,a=r?t:e;return r?i.appendData(a.data):i.insertData(0,a.data),Sr(wn.fromDom(a)),n&&wk(i,o),i},xk=function(e,t){var n=e.container(),r=e.offset();return!1===Nf.isTextPosition(e)&&n===t.parentNode&&r>Nf.before(t).offset()},Ck=function(e,t){return xk(t,e)?Nf(t.container(),t.offset()-1):t},zk=function(e){return Zr(e)?Nf(e,0):Nf.before(e)},Sk=function(e){return Zr(e)?Nf(e,e.data.length):Nf.after(e)},Tk=function(e){return Ha(e.previousSibling)?q.some(Sk(e.previousSibling)):e.previousSibling?Qg(e.previousSibling):q.none()},Ok=function(e){return Ha(e.nextSibling)?q.some(zk(e.nextSibling)):e.nextSibling?Jg(e.nextSibling):q.none()},Ek=function(e,t){var n=Nf.before(t.previousSibling?t.previousSibling:t.parentNode);return Yg(e,n).fold((function(){return Xg(e,Nf.after(t))}),q.some)},Ak=function(e,t){return Xg(e,Nf.after(t)).fold((function(){return Yg(e,Nf.before(t))}),q.some)},Dk=function(e,t){return Tk(t).orThunk((function(){return Ok(t)})).orThunk((function(){return Ek(e,t)}))},Mk=function(e,t){return Ok(t).orThunk((function(){return Tk(t)})).orThunk((function(){return Ak(e,t)}))},Nk=function(e,t,n){return e?Mk(t,n):Dk(t,n)},Rk=function(e,t,n){return Nk(e,t,n).map(N(Ck,n))},Bk=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Pk=function(e){return function(t){return t.dom===e}},Lk=function(e,t){return t&&Me(e.schema.getBlockElements(),Ln(t))},Ik=function(e){if(nc(e)){var t=wn.fromHtml('<br data-mce-bogus="1">');return zr(e),kr(e,t),q.some(Nf.before(t.dom))}return q.none()},Hk=function(e,t,n){var r=Zn(e).filter(Vn),o=er(e).filter(Vn);return Sr(e),mo(r,o,t,(function(e,t,r){var o=e.dom,i=t.dom,a=o.data.length;return _k(o,i,n),r.container()===i?Nf(o,a):r})).orThunk((function(){return n&&(r.each((function(e){return kk(e.dom,e.dom.length)})),o.each((function(e){return wk(e.dom,0)}))),t}))},Fk=function(e,t){return Me(e.schema.getTextInlineElements(),Ln(t))},jk=function(e,t,n,r){void 0===r&&(r=!0);var o=Rk(t,e.getBody(),n.dom),i=_i(n,N(Lk,e),Pk(e.getBody())),a=Hk(n,o,Fk(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(Ik).fold((function(){r&&Bk(e,t,a)}),(function(n){r&&Bk(e,t,q.some(n))}))},Vk=function(e){return function(t){return Nn(e,t)}},Uk=function(e){return Tl(e,"td,th")},qk=function(e,t){var n=function(e){return yh(wn.fromDom(e),t)},r=n(e.startContainer),o=n(e.endContainer),i=r.isSome(),a=o.isSome(),c=fo(r,o,Nn).getOr(!1),u=!c&&i&&a;return{startTable:r,endTable:o,isStartInTable:i,isEndInTable:a,isSameTable:c,isMultiTable:u}},Wk=function(e,t){return{start:e,end:t}},$k=function(e,t,n){return{rng:e,table:t,cells:n}},Gk=ei.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Kk=function(e,t){return Oi(wn.fromDom(e),"td,th",t)},Xk=function(e){return!Nn(e.start,e.end)},Yk=function(e,t){return yh(e.start,t).bind((function(n){return yh(e.end,t).bind((function(e){return go(Nn(n,e),n)}))}))},Jk=function(e,t){return!Xk(e)&&Yk(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},Qk=function(e,t){var n=Kk(e.startContainer,t),r=Kk(e.endContainer,t);return fo(n,r,Wk)},Zk=function(e){return function(t){return yh(t,e).bind((function(e){return ve(Uk(e)).map((function(e){return Wk(t,e)}))}))}},e_=function(e){return function(t){return yh(t,e).bind((function(e){return he(Uk(e)).map((function(e){return Wk(e,t)}))}))}},t_=function(e){return function(t){return Yk(t,e).map((function(e){return $k(t,e,Uk(e))}))}},n_=function(e,t,n,r){if(n.collapsed||!e.forall(Xk))return q.none();if(t.isSameTable){var o=e.bind(t_(r));return q.some({start:o,end:o})}var i=Kk(n.startContainer,r),a=Kk(n.endContainer,r),c=i.bind(Zk(r)).bind(t_(r)),u=a.bind(e_(r)).bind(t_(r));return q.some({start:c,end:u})},r_=function(e,t){return ce(e,(function(e){return Nn(e,t)}))},o_=function(e){return fo(r_(e.cells,e.rng.start),r_(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},i_=function(e,t,n){return e.exists((function(e){return Jk(e,n)&&xh(e.start,t)}))},a_=function(e,t){var n=t.startTable,r=t.endTable,o=e.cloneRange();return n.each((function(e){return o.setStartAfter(e.dom)})),r.each((function(e){return o.setEndBefore(e.dom)})),o},c_=function(e,t,n,r){return n_(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,o=o_(e).getOr([]);if(r&&e.cells.length===o.length)return q.some(Gk.fullTable(e.table));if(o.length>0){if(r)return q.some(Gk.partialTable(o,q.none()));var i=a_(n,t);return q.some(Gk.partialTable(o,q.some(qe(qe({},t),{rng:i}))))}return q.none()}))},u_=function(e,t,n,r){return n_(e,t,n,r).bind((function(e){var r=e.start,o=e.end,i=r.bind(o_).getOr([]),a=o.bind(o_).getOr([]);if(i.length>0&&a.length>0){var c=a_(n,t);return q.some(Gk.multiTable(i,a,c))}return q.none()}))},s_=function(e,t){var n=Vk(e),r=Qk(t,n),o=qk(t,n);return i_(r,t,n)?r.map((function(e){return Gk.singleCellTable(t,e.start)})):o.isMultiTable?u_(r,o,t,n):c_(r,o,t,n)},l_=function(e){var t=Fn(e)?Zn(e):ar(e);return t.bind(l_).orThunk((function(){return q.some(e)}))},f_=function(e){return Z(e,(function(e){_o(e,"contenteditable"),Aw(e)}))},d_=function(e,t){return q.from(e.dom.getParent(t,e.dom.isBlock)).map(wn.fromDom)},m_=function(e,t,n){n.each((function(n){t?Sr(n):(Aw(n),e.selection.setCursorLocation(n.dom,0))}))},g_=function(e,t,n,r){var o=n.cloneRange();r?(o.setStart(n.startContainer,n.startOffset),o.setEndAfter(t.dom.lastChild)):(o.setStartBefore(t.dom.firstChild),o.setEnd(n.endContainer,n.endOffset)),y_(e,o,t,!1)},p_=function(e){var t=vh(e),n=wn.fromDom(e.selection.getNode());co(n.dom)&&nc(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&J(t,(function(e){return Nn(e,n)}))&&vo(n,"data-mce-selected","1")},h_=function(e,t,n){var r=e.selection.getRng(),o=n.bind((function(n){var o=n.rng,i=n.isStartInTable,a=d_(e,i?o.endContainer:o.startContainer);o.deleteContents(),m_(e,i,a.filter(nc));var c=i?t[0]:t[t.length-1];return g_(e,c,r,i),nc(c)?q.none():q.some(i?t.slice(1):t.slice(0,-1))})).getOr(t);return f_(o),p_(e),!0},v_=function(e,t,n,r){var o=e.selection.getRng(),i=t[0],a=n[n.length-1];g_(e,i,o,!0),g_(e,a,o,!1);var c=nc(i)?t:t.slice(1),u=nc(a)?n:n.slice(0,-1);return f_(c.concat(u)),r.deleteContents(),p_(e),!0},y_=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var o=l_(n).getOr(n),i=wn.fromDom(e.dom.getParent(o.dom,e.dom.isBlock));if(nc(i)&&(Aw(i),r&&e.selection.setCursorLocation(i.dom,0)),!Nn(n,i)){var a=so(Yn(i),n)?[]:Qn(i);Z(a.concat(rr(n)),(function(e){Nn(e,i)||Pn(e,i)||!nc(e)||Sr(e)}))}return!0},b_=function(e,t){return jk(e,!1,t),!0},w_=function(e,t,n){return s_(t,n).map((function(t){return t.fold(N(y_,e),N(b_,e),N(h_,e),N(v_,e))}))},k_=function(e,t){return T_(e,t)},__=function(e,t,n,r){return z_(t,r).fold((function(){return w_(e,t,n)}),(function(t){return k_(e,t)})).getOr(!1)},x_=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.selection.getRng();return 0!==n.length?h_(e,n,q.none()):__(e,r,o,t)},C_=function(e,t){return ae(Bw(t,e),ia)},z_=function(e,t){return ae(Bw(t,e),Wn("caption"))},S_=function(e,t,n,r,o){return $g(n,e.getBody(),o).bind((function(e){return C_(t,wn.fromDom(e.getNode())).map((function(e){return!1===Nn(e,r)}))}))},T_=function(e,t){return Aw(t),e.selection.setCursorLocation(t.dom,0),q.some(!0)},O_=function(e,t,n,r){return Jg(e.dom).bind((function(o){return Qg(e.dom).map((function(e){return t?n.isEqual(o)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(o)}))})).getOr(!0)},E_=function(e,t){return T_(e,t)},A_=function(e,t,n){return z_(e,wn.fromDom(n.getNode())).map((function(e){return!1===Nn(e,t)}))},D_=function(e,t,n,r,o){return $g(n,e.getBody(),o).bind((function(i){return O_(r,n,o,i)?E_(e,r):A_(t,r,i)})).or(q.some(!0))},M_=function(e,t,n,r){var o=Nf.fromRangeStart(e.selection.getRng());return C_(n,r).bind((function(r){return nc(r)?T_(e,r):S_(e,n,t,r,o)})).getOr(!1)},N_=function(e,t,n,r){var o=Nf.fromRangeStart(e.selection.getRng());return nc(r)?T_(e,r):D_(e,n,t,r,o)},R_=function(e,t){return e?Cw(t):zw(t)},B_=function(e,t){var n=Nf.fromRangeStart(e.selection.getRng());return R_(t,n)||Wg(t,e.getBody(),n).exists((function(e){return R_(t,e)}))},P_=function(e,t,n){var r=wn.fromDom(e.getBody());return z_(r,n).fold((function(){return M_(e,t,r,n)||B_(e,t)}),(function(n){return N_(e,t,r,n).getOr(!1)}))},L_=function(e,t){var n=wn.fromDom(e.selection.getStart(!0)),r=vh(e);return e.selection.isCollapsed()&&0===r.length?P_(e,t,n):x_(e,n,r)},I_=function(e,t,n,r){var o=document.createRange();return o.setStart(e,t),o.setEnd(n,r),o},H_=function(e){var t=Nf.fromRangeStart(e),n=Nf.fromRangeEnd(e),r=e.commonAncestorContainer;return Wg(!1,r,n).map((function(o){return!fg(t,n,r)&&fg(t,o,r)?I_(t.container(),t.offset(),o.container(),o.offset()):e})).getOr(e)},F_=function(e){return e.collapsed?e:H_(e)},j_=function(e){return e.firstChild&&e.firstChild===e.lastChild},V_=function(e){return"br"===e.name||e.value===sa},U_=function(e,t){var n=e.getBlockElements();return n[t.name]&&j_(t)&&V_(t.firstChild)},q_=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||U_(e,t))},W_=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),q_(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},$_=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},G_=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return $_(o)},K_=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},X_=function(e){return e.data===sa||ro(e)},Y_=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&X_(e.firstChild)},J_=function(e){return!e.firstChild||Y_(e)},Q_=function(e){return e.length>0&&J_(e[e.length-1])?e.slice(0,-1):e},Z_=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},ex=function(e,t){return!!Z_(e,t)},tx=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},nx=function(e,t){var n=Nf.before(e),r=Lg(t),o=r.next(n);return o?o.toRange():null},rx=function(e,t){var n=Nf.after(e),r=Lg(t),o=r.prev(n);return o?o.toRange():null},ox=function(e,t,n,r){var o=tx(e,r),i=e.parentNode;return i.insertBefore(o[0],e),gn.each(t,(function(t){i.insertBefore(t,e)})),i.insertBefore(o[1],e),i.removeChild(e),rx(t[t.length-1],n)},ix=function(e,t,n){var r=e.parentNode;return gn.each(t,(function(t){r.insertBefore(t,e)})),nx(e,n)},ax=function(e,t,n,r){return r.insertAfter(t.reverse(),e),rx(t[0],n)},cx=function(e,t,n,r){var o=G_(t,e,r),i=Z_(t,n.startContainer),a=Q_(K_(o.firstChild)),c=1,u=2,s=t.getRoot(),l=function(e){var r=Nf.fromRangeStart(n),o=Lg(t.getRoot()),a=e===c?o.prev(r):o.next(r);return!a||Z_(t,a.getNode())!==i};return l(c)?ix(i,a,s):l(u)?ax(i,a,s,t):ox(i,a,s,n)},ux=function(e,t,n){var r=wn.fromDom(e.getRoot());return n=ak(r,Nf.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=uk(r,Nf.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},sx=co,lx=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,sx);return n===r&&xh(wn.fromDom(n),t)}return!1},fx=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},dx=function(e,t){q.from(e.getParent(t,"td,th")).map(wn.fromDom).each(Dw)},mx=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=nw(r);gn.each(r.select("*[data-mce-fragment]"),(function(e){var t=C(n[e.nodeName.toLowerCase()]);if(t&&lw(r,e))for(var a=e.parentNode;C(a)&&a!==o;a=a.parentNode){var c=dw(r,e,a);if(c)break;if(i.compare(a,e)){r.remove(e,!0);break}}}))}},gx=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},px=function(e){gn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},hx=function(e){return!!e.getAttribute("data-mce-fragment")},vx=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},yx=function(e,t){var n,r=e.dom,o=e.selection;if(t){o.scrollIntoView(t);var i=Hh(e.getBody(),t);if("false"===r.getContentEditable(i))return r.remove(t),void o.select(i);var a=r.createRng(),c=t.previousSibling;if(Zr(c)){if(a.setStart(c,c.nodeValue.length),!en.ie){var u=t.nextSibling;Zr(u)&&(c.appendData(u.data),u.parentNode.removeChild(u))}}else a.setStartBefore(t),a.setEndBefore(t);var s=function(t){var n=Nf.fromRangeStart(t),r=Lg(e.getBody());if(n=r.next(n),n)return n.toRange()},l=r.getParent(t,r.isBlock);r.remove(t),l&&r.isEmpty(l)&&(e.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),sx(l)||hx(l)||!(n=s(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),o.setRng(a)}},bx=function(e){var t=e.dom,n=F_(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,sx);lx(t,n,r)?y_(e,n,wn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},wx=function(e,t,n){var r,o,i,a=e.selection,c=e.dom;/^ | $/.test(t)&&(t=ux(c,a.getRng(),t));var u=e.parser,s=n.merge,l=iw({validate:im(e)},e.schema),f='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',d=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(d.isDefaultPrevented())e.fire("SetContent",{content:d.content,format:"html",selection:!0,paste:n.paste});else{t=d.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f),o=a.getRng();var m=o.startContainer||(o.parentElement?o.parentElement():null),g=e.getBody();m===g&&a.isCollapsed()&&c.isBlock(g.firstChild)&&vx(e,g.firstChild)&&c.isEmpty(g.firstChild)&&(o=c.createRng(),o.setStart(g.firstChild,0),o.setEnd(g.firstChild,0),a.setRng(o)),a.isCollapsed()||bx(e),r=a.getNode();var p={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},h=u.parse(t,p);if(!0===n.paste&&W_(e.schema,h)&&ex(c,r))return o=cx(l,c,a.getRng(),h),a.setRng(o),void e.fire("SetContent",d);if(gx(h),i=h.lastChild,"mce_marker"===i.attr("id")){var v=i;for(i=i.prev;i;i=i.walk(!0))if(3===i.type||!c.isBlock(i.name)){e.schema.isValidChild(i.parent.name,"span")&&i.parent.insert(v,i,"br"===i.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),p.invalid){e.selection.setContent(f),r=a.getNode();var y=e.getBody();9===r.nodeType?r=i=y:i=r;while(i!==y)r=i,i=i.parentNode;t=r===y?y.innerHTML:c.getOuterHTML(r),t=l.serialize(u.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return l.serialize(h)})))),r===y?c.setHTML(y,t):c.setOuterHTML(r,t)}else t=l.serialize(h),fx(e,t,r);mx(e,s),yx(e,c.get("mce_marker")),px(e.getBody()),dx(c,a.getStart()),e.fire("SetContent",d),e.addVisual()}},kx=function(e,t){t(e),e.firstChild&&kx(e.firstChild,t),e.next&&kx(e.next,t)},_x=function(e,t,n){var r={},o={},i=[];for(var a in n.firstChild&&kx(n.firstChild,(function(n){Z(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Z(t,(function(e){"string"===typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}))})),r)Me(r,a)&&i.push(r[a]);for(var c in o)Me(o,c)&&i.push(o[c]);return i},xx=function(e,t,n){var r=_x(e,t,n);Z(r,(function(e){Z(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},Cx="html",zx=function(e){return e instanceof Eb},Sx=function(e){db(e)&&Jg(e.getBody()).each((function(t){var n=t.getNode(),r=Yr(n)?Jg(n).getOr(t):t;e.selection.setRng(r.toRange())}))},Tx=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&Sx(e)},Ox=function(e,t,n,r){if(0===n.length||/^\s+$/.test(n)){var o='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+o+"</li>");var i=zd(e);i&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=e.dom.createHTML(i,Sd(e),n)):n||(n='<br data-mce-bogus="1">'),Tx(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=iw({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(wn.fromDom(t))?n:gn.trim(n),Tx(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},Ex=function(e,t,n,r){xx(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=iw({validate:e.validate},e.schema).serialize(n);return r.content=aa(wn.fromDom(t))?o:gn.trim(o),Tx(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},Ax=function(e,t){return qe(qe({format:Cx},e),{set:!0,content:zx(t)?"":t})},Dx=function(e,t,n){var r=Ax(n,t),o=n.no_events?r:e.fire("BeforeSetContent",r);return zx(t)||(t=o.content),q.from(e.getBody()).fold(A(t),(function(n){return zx(t)?Ex(e,n,t,o):Ox(e,n,t,o)}))},Mx=function(e,t){return Ci(e,t).isSome()},Nx=function(e){return z(e)?e:I},Rx=function(e,t,n){var r=e.dom,o=Nx(n);while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return q.none()},Bx=function(e,t,n){var r=t(e),o=Nx(n);return r.orThunk((function(){return o(e)?q.none():Rx(e,t,o)}))},Px=Pp,Lx=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o];if(qp(i)&&!1===i.inherit&&e.dom.is(t,i.selector))return!0}return!1},Ix=function(e,t,n,r,o){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!Lx(e,t,n)||(t.parentNode===i||!!jx(e,t,n,r,!0))})),!!jx(e,t,n,r,o))},Hx=function(e,t,n){return!!Px(t,n.inline)||(!!Px(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},Fx=function(e,t,n,r,o,i){var a=n[r];if(z(n.onmatch))return n.onmatch(t,n,r);if(a)if(_(a.length)){for(var c in a)if(Me(a,c)){var u="attributes"===r?e.getAttrib(t,c):Ip(e,t,c),s=Bp(a[c],i),l=x(u)||pt(u);if(l&&x(s))continue;if(o&&l&&!n.exact)return!1;if((!o||n.exact)&&!Px(u,Lp(e,s,c)))return!1}}else for(var f=0;f<a.length;f++)if("attributes"===r?e.getAttrib(t,a[f]):Ip(e,t,a[f]))return!0;return!0},jx=function(e,t,n,r,o){var i=e.formatter.get(n),a=e.dom;if(i&&t)for(var c=0;c<i.length;c++){var u=i[c];if(Hx(e.dom,t,u)&&Fx(a,t,u,"attributes",o,r)&&Fx(a,t,u,"styles",o,r)){var s=u.classes;if(s)for(var l=0;l<s.length;l++)if(!e.dom.hasClass(t,Bp(s[l],r)))return;return u}}},Vx=function(e,t,n,r,o){if(r)return Ix(e,r,t,n,o);if(r=e.selection.getNode(),Ix(e,r,t,n,o))return!0;var i=e.selection.getStart();return!(i===r||!Ix(e,i,t,n,o))},Ux=function(e,t,n){var r=[],o={},i=e.selection.getStart();return e.dom.getParent(i,(function(i){for(var a=0;a<t.length;a++){var c=t[a];!o[c]&&jx(e,i,c,n)&&(o[c]=!0,r.push(c))}}),e.dom.getRoot()),r},qx=function(e,t){var n=function(t){return Nn(t,wn.fromDom(e.getBody()))},r=function(t,n){return jx(e,t.dom,n)?q.some(n):q.none()};return q.from(e.selection.getStart(!0)).bind((function(e){return Bx(wn.fromDom(e),(function(e){return be(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},Wx=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var o=e.selection.getStart(),i=Fp(r,o),a=n.length-1;a>=0;a--){var c=n[a];if(!qp(c)||C(c.defaultBlock))return!0;for(var u=i.length-1;u>=0;u--)if(r.is(i[u],c.selector))return!0}return!1},$x=function(e,t,n){return oe(n,(function(n,r){var o=jp(e,r);return e.formatter.matchNode(t,r,{},o)?n.concat([r]):n}),[])},Gx=da,Kx="_mce_caret",Xx=function(e,t){return e.importNode(t,!0)},Yx=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==Gx||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},Jx=function(e){return Yx(e).length>0},Qx=function(e){if(e){var t=new Fi(e,e);for(e=t.current();e;e=t.next())if(Zr(e))return e}return null},Zx=function(e){var t=wn.fromTag("span");return yo(t,{id:Kx,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&kr(t,wn.fromText(Gx)),t},eC=function(e){var t=Qx(e);return t&&t.nodeValue.charAt(0)===Gx&&t.deleteData(0,1),t},tC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(Jx(t))jk(e,!1,wn.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),c=i.startContainer,u=i.startOffset,s=i.endContainer,l=i.endOffset,f=eC(t);r.remove(t,!0),c===f&&u>0&&i.setStart(f,u-1),s===f&&l>0&&i.setEnd(f,l-1),a&&r.isEmpty(a)&&Aw(wn.fromDom(a)),o.setRng(i)}},nC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)tC(e,t,n);else if(t=tp(e.getBody(),o.getStart()),!t)while(t=r.get(Kx))tC(e,t,!1)},rC=function(e,t,n){var r=e.dom,o=r.getParent(n,N(Dp,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(Ew(wn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},oC=function(e,t){return e.appendChild(t),t},iC=function(e,t){var n=re(e,(function(e,t){return oC(e,t.cloneNode(!1))}),t);return oC(n,n.ownerDocument.createTextNode(Gx))},aC=function(e,t,n,r,o,i){var a=e.formatter,c=e.dom,u=ne(we(a.get()),(function(e){return e!==r&&!ut(e,"removeformat")})),s=$x(e,n,u),l=ne(s,(function(t){return!Vp(e,t,r)}));if(l.length>0){var f=n.cloneNode(!1);return c.add(t,f),a.remove(r,o,f,i),c.remove(f),q.some(f)}return q.none()},cC=function(e,t,n){var r,o,i=e.selection,a=i.getRng(),c=a.startOffset,u=a.startContainer,s=u.nodeValue;r=tp(e.getBody(),i.getStart()),r&&(o=Qx(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(s&&c>0&&c<s.length&&l.test(s.charAt(c))&&l.test(s.charAt(c-1))){var f=i.getBookmark();a.collapse(!0);var d=sh(e,a,e.formatter.get(t));d=xv(d),e.formatter.apply(t,n,d),i.moveToBookmark(f)}else r&&o.nodeValue===Gx||(r=Xx(e.getDoc(),Zx(!0).dom),o=r.firstChild,a.insertNode(r),c=1),e.formatter.apply(t,n,r),i.setCursorLocation(o,c)},uC=function(e,t,n,r){var o,i,a,c=e.dom,u=e.selection,s=[],l=u.getRng(),f=l.startContainer,d=l.startOffset;i=f,3===f.nodeType&&(d!==f.nodeValue.length&&(o=!0),i=i.parentNode);while(i){if(jx(e,i,t,n,r)){a=i;break}i.nextSibling&&(o=!0),s.push(i),i=i.parentNode}if(a)if(o){var m=u.getBookmark();l.collapse(!0);var g=sh(e,l,e.formatter.get(t),!0);g=xv(g),e.formatter.remove(t,n,g,r),u.moveToBookmark(m)}else{var p=tp(e.getBody(),a),h=Zx(!1).dom;rC(e,h,null!==p?p:a);var v=aC(e,h,a,t,n,r),y=iC(s.concat(v.toArray()),h);tC(e,p,!1),u.setCursorLocation(y,1),c.isEmpty(a)&&c.remove(a)}},sC=function(e,t){var n=e.selection,r=e.getBody();nC(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==Gx||nC(e,tp(r,n.getStart())),37!==t&&39!==t||nC(e,tp(r,n.getStart()))},lC=function(e){e.on("mouseup keydown",(function(t){sC(e,t.keyCode)}))},fC=function(e,t){var n=Zx(!1),r=iC(t,n.dom);return yr(wn.fromDom(e),n),Sr(wn.fromDom(e)),Nf(r,0)},dC=function(e,t){var n=e.schema.getTextInlineElements();return Me(n,Ln(t))&&!ep(t.dom)&&!Kr(t.dom)},mC=function(e){return ep(e.dom)&&Jx(e.dom)},gC={},pC=He,hC=Le,vC=function(e,t){var n=gC[e];n||(gC[e]=[]),gC[e].push(t)},yC=function(e,t){hC(gC[e],(function(e){e(t)}))};vC("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return i(e.previousSibling)&&-1!==Fe(t,e.previousSibling)},o=function(e,t){Ns(t).remove(),Ns(e).append("<br><br>").append(t.childNodes)},i=qr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),hC(pC(pC(t,i),r),(function(e){o(e.previousSibling,e)})))}));var bC=gn.each,wC=function(e){return Ur(e)&&!_p(e)&&!ep(e)&&!Kr(e)},kC=function(e,t){for(var n=e;n;n=n[t]){if(Zr(n)&&gt(n.data))return e;if(Ur(n)&&!_p(n))return n}return e},_C=function(e,t,n){var r=nw(e);if(t&&n&&(t=kC(t,"previousSibling"),n=kC(n,"nextSibling"),r.compare(t,n))){for(var o=t.nextSibling;o&&o!==n;){var i=o;o=o.nextSibling,t.appendChild(i)}return e.remove(n),gn.each(gn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},xC=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var o=_C(e,Ap(r),r);_C(e,o,Ap(o,!0))}},CC=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";bC(e.select(r,n),(function(n){wC(n)&&bC(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},zC=function(e,t,n){bC(e.childNodes,(function(e){wC(e)&&(t(e)&&n(e),e.hasChildNodes()&&zC(e,t,n))}))},SC=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},TC=function(e,t){return function(n){return!(!n||!Ip(e,n,t))}},OC=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),SC(e,r)}},EC=ei.generate([{keep:[]},{rename:["name"]},{removed:[]}]),AC=/^(src|href|style)$/,DC=gn.each,MC=Pp,NC=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},RC=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},BC=function(e,t,n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(Ur(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return Zr(r)&&n&&o>=r.nodeValue.length&&(r=new Fi(r,e.getBody()).next()||r),Zr(r)&&!n&&0===o&&(r=new Fi(r,e.getBody()).prev()||r),r},PC=function(e,t){var n=t?"firstChild":"lastChild";if(NC(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},LC=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},IC=function(e,t,n,r,o){var i=wn.fromDom(t),a=wn.fromDom(e.create(r,o)),c=n?nr(i):tr(i);return Cr(a,c),n?(yr(i,a),wr(a,i)):(br(i,a),kr(a,i)),a.dom},HC=function(e,t,n){return!(!Wp(n)||!MC(t,n.inline))||(!(!Up(n)||!MC(t,n.block))||(qp(n)?Ur(t)&&e.is(t,n.selector):void 0))},FC=function(e,t){return t.links&&"A"===e.nodeName},jC=function(e,t,n,r){var o=Ap(t,n,r);return x(o)||"BR"===o.nodeName||e.isBlock(o)},VC=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=zd(e);Up(n)&&(a?o===i.getRoot()&&(n.list_block&&MC(t,n.list_block)||Z(ye(t.childNodes),(function(t){Mp(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=LC(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):i.isBlock(t)&&!i.isBlock(o)&&(jC(i,t,!1)||jC(i,t.firstChild,!0,!0)||t.insertBefore(i.create("br"),t.firstChild),jC(i,t,!0)||jC(i,t.lastChild,!1,!0)||t.appendChild(i.create("br")))),$p(n)&&!MC(n.inline,t)||i.remove(t,!0)},UC=function(e,t,n,r,o){var i,a=e.dom;if(!HC(a,r,t)&&!FC(r,t))return EC.keep();var c=r;if(Wp(t)&&"all"===t.remove&&b(t.preserve_attributes)){var u=ne(a.getAttribs(c),(function(e){return Y(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(c),Z(u,(function(e){return a.setAttrib(c,e.name,e.value)})),u.length>0)return EC.rename("span")}if("all"!==t.remove){DC(t.styles,(function(e,r){e=Lp(a,Bp(e,n),r+""),S(r)&&(r=e,o=null),(t.remove_similar||!o||MC(Ip(a,o,r),e))&&a.setStyle(c,r,""),i=!0})),i&&""===a.getAttrib(c,"style")&&(c.removeAttribute("style"),c.removeAttribute("data-mce-style")),DC(t.attributes,(function(e,r){var i;if(e=Bp(e,n),S(r)&&(r=e,o=null),t.remove_similar||!o||MC(a.getAttrib(o,r),e)){if("class"===r&&(e=a.getAttrib(c,r),e&&(i="",Z(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)})),i)))return void a.setAttrib(c,r,i);if(AC.test(r)&&c.removeAttribute("data-mce-"+r),"style"===r&&qr(["li"])(c)&&"none"===a.getStyle(c,"list-style-type"))return c.removeAttribute(r),void a.setStyle(c,"list-style-type","none");"class"===r&&c.removeAttribute("className"),c.removeAttribute(r)}})),DC(t.classes,(function(e){e=Bp(e,n),o&&!a.hasClass(o,e)||a.removeClass(c,e)}));for(var s=a.getAttribs(c),l=0;l<s.length;l++){var f=s[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return EC.keep()}}return"none"!==t.remove?(VC(e,c,t),EC.removed()):EC.keep()},qC=function(e,t,n,r,o){return UC(e,t,n,r,o).fold(I,(function(t){return e.dom.rename(r,t),!0}),H)},WC=function(e,t,n,r,o){var i;return Z(Fp(e.dom,t.parentNode).reverse(),(function(t){if(!i&&"_start"!==t.id&&"_end"!==t.id){var a=jx(e,t,n,r,o);a&&!1!==a.split&&(i=t)}})),i},$C=function(e,t,n,r){return UC(e,t,n,r,r).fold(A(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),A(null))},GC=function(e,t,n,r,o,i,a,c){var u,s,l,f=e.dom;if(n){for(var d=n.parentNode,m=r.parentNode;m&&m!==d;m=m.parentNode){u=f.clone(m,!1);for(var g=0;g<t.length;g++)if(u=$C(e,t[g],c,u),null===u)break;u&&(s&&u.appendChild(s),l||(l=u),s=u)}!i||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),s&&(o.parentNode.insertBefore(s,o),l.appendChild(o),Wp(a)&&xC(f,a,c,s))}return r},KC=function(e,t,n,r,o){var i=e.formatter.get(t),a=i[0],c=!0,u=e.dom,s=e.selection,l=function(r){var c=WC(e,r,t,n,o);return GC(e,i,c,r,r,!0,a,n)},f=function(e){return _p(e)&&Ur(e)&&("_start"===e.id||"_end"===e.id)},d=function(t){return J(i,(function(r){return qC(e,r,n,t,t)}))},m=function(t){var n=!0,r=!1;Ur(t)&&u.getContentEditable(t)&&(n=c,c="true"===u.getContentEditable(t),r=!0);var o=ye(t.childNodes);if(c&&!r){var s=d(t),l=s||J(i,(function(e){return Hx(u,t,e)})),f=t.parentNode;!l&&C(f)&&Gp(a)&&d(f)}if(a.deep&&o.length){for(var g=0;g<o.length;g++)m(o[g]);r&&(c=n)}var p=["underline","line-through","overline"];Z(p,(function(n){Ur(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Hp(u,t.parentNode)===n&&qC(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},g=function(e){var t=u.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return f(n)&&(n=n[e?"firstChild":"lastChild"]),Zr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),u.remove(t,!0),n},p=function(t){var n,r,o=sh(e,t,i,t.collapsed);if(a.split){if(o=xv(o),n=BC(e,o,!0),r=BC(e,o),n!==r){if(n=PC(n,!0),r=PC(r,!1),RC(u,n,r)){var c=q.from(n.firstChild).getOr(n);return l(IC(u,c,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(RC(u,r,n)){c=q.from(r.lastChild).getOr(r);return l(IC(u,c,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1)}n=LC(u,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=LC(u,r,"span",{id:"_end","data-mce-type":"bookmark"});var s=u.createRng();s.setStartAfter(n),s.setEndBefore(r),lh(u,s,(function(e){Z(e,(function(e){_p(e)||_p(e.parentNode)||l(e)}))})),l(n),l(r),n=g(!0),r=g()}else n=r=l(n);o.startContainer=n.parentNode?n.parentNode:n,o.startOffset=u.nodeIndex(n),o.endContainer=r.parentNode?r.parentNode:r,o.endOffset=u.nodeIndex(r)+1}lh(u,o,(function(e){Z(e,m)}))};if(r){if(Tp(r)){var h=u.createRng();h.setStartBefore(r),h.setEndAfter(r),p(h)}else p(r);ev(e,t,r,n)}else if("false"!==u.getContentEditable(s.getNode()))s.isCollapsed()&&Wp(a)&&!vh(e).length?uC(e,t,n,o):(Th(s,!0,(function(){Sh(e,p)})),Wp(a)&&Vx(e,t,n,s.getStart())&&Ep(u,s,s.getRng()),e.nodeChanged()),ev(e,t,r,n);else{r=s.getNode();for(var v=0;v<i.length;v++)if(i[v].ceFalseOverride&&qC(e,i[v],n,r,r))break;ev(e,t,r,n)}},XC=gn.each,YC=function(e,t,n,r){var o=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Hp(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(gn.walk(r,o,"childNodes"),o(r))},JC=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&zC(r,TC(e,"fontSize"),OC(e,"backgroundColor",Bp(t.styles.backgroundColor,n)))},QC=function(e,t,n,r){!Wp(t)||"sub"!==t.inline&&"sup"!==t.inline||(zC(r,TC(e,"fontSize"),OC(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},ZC=function(e,t,n,r){XC(t,(function(t){Wp(t)&&XC(e.dom.select(t.inline,r),(function(r){wC(r)&&qC(e,t,n,r,t.exact?r:null)})),CC(e.dom,t,r)}))},ez=function(e,t,n,r,o){jx(e,o.parentNode,n,r)&&qC(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,(function(i){if(jx(e,i,n,r))return qC(e,t,r,o),!0}))},tz=gn.each,nz=function(e){return Ur(e)&&!_p(e)&&!ep(e)&&!Kr(e)},rz=function(e,t,n,r){if(sm(e)&&Wp(t)){var o=Ic(e.schema),i=Mx(wn.fromDom(n),(function(e){return ep(e.dom)}));return Ne(o,r)&&nc(wn.fromDom(n.parentNode),!1)&&!i}return!1},oz=function(e,t,n,r){var o=e.formatter.get(t),i=o[0],a=!r&&e.selection.isCollapsed(),c=e.dom,u=e.selection,s=function(e,t){if(void 0===t&&(t=i),z(t.onformat)&&t.onformat(e,t,n,r),tz(t.styles,(function(t,r){c.setStyle(e,r,Bp(t,n))})),t.styles){var o=c.getAttrib(e,"style");o&&c.setAttrib(e,"data-mce-style",o)}tz(t.attributes,(function(t,r){c.setAttrib(e,r,Bp(t,n))})),tz(t.classes,(function(t){t=Bp(t,n),c.hasClass(e,t)||c.addClass(e,t)}))},l=function(e,t){var n=!1;return tz(e,(function(e){return!!qp(e)&&(C(e.collapsed)&&e.collapsed!==a?void 0:c.is(t,e.selector)&&!ep(t)?(s(t,e),n=!0,!1):void 0)})),n},f=function(e){if(v(e)){var t=c.create(e);return s(t),t}return null},d=function(r,a,c){var u=[],d=!0,m=i.inline||i.block,g=f(m);lh(r,a,(function(a){var f,p=function(a){var h=!1,v=d,y=a.nodeName.toLowerCase(),b=a.parentNode,w=b.nodeName.toLowerCase();if(Ur(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),h=!0),ro(a)&&!rz(e,i,a,w))return f=null,void(Up(i)&&r.remove(a));if(Up(i)&&i.wrapper&&jx(e,a,t,n))f=null;else{if(d&&!h&&Up(i)&&!i.wrapper&&Dp(e,y)&&Mp(e,w,m)){var k=r.rename(a,m);return s(k),u.push(k),void(f=null)}if(qp(i)){var _=l(o,a);if(!_&&C(b)&&Gp(i)&&(_=l(o,b)),!Wp(i)||_)return void(f=null)}!d||h||!Mp(e,m,y)||!Mp(e,w,m)||!c&&Zr(a)&&ma(a.data)||ep(a)||Wp(i)&&r.isBlock(a)?(f=null,Z(ye(a.childNodes),p),h&&(d=v),f=null):(f||(f=r.clone(g,!1),a.parentNode.insertBefore(f,a),u.push(f)),f.appendChild(a))}};Z(a,p)})),!0===i.links&&Z(u,(function(e){var t=function(e){"A"===e.nodeName&&s(e,i),Z(ye(e.childNodes),t)};t(e)})),Z(u,(function(a){var c=function(e){var t=0;return Z(e.childNodes,(function(e){Rp(e)||_p(e)||t++})),t},l=function(e){var t=ae(e.childNodes,nz).filter((function(e){return Hx(r,e,i)}));return t.map((function(t){var n=r.clone(t,!1);return s(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},f=c(a);!(u.length>1)&&r.isBlock(a)||0!==f?(Wp(i)||Up(i)&&i.wrapper)&&(i.exact||1!==f||(a=l(a)),ZC(e,o,n,a),ez(e,i,t,n,a),JC(r,i,n,a),YC(r,i,n,a),QC(r,i,n,a),xC(r,i,n,a)):r.remove(a,!0)}))};if("false"!==c.getContentEditable(u.getNode())){if(i){if(r)if(Tp(r)){if(!l(o,r)){var m=c.createRng();m.setStartBefore(r),m.setEndAfter(r),d(c,sh(e,m,o),!0)}}else d(c,r,!0);else if(a&&Wp(i)&&!vh(e).length)cC(e,t,n);else{var g=u.getNode(),p=o[0];e.settings.forced_root_block||!p.defaultBlock||c.getParent(g,c.isBlock)||oz(e,p.defaultBlock),u.setRng(F_(u.getRng())),Th(u,!0,(function(){Sh(e,(function(t,n){var r=n?t:sh(e,t,o);d(c,r,!1)}))})),Ep(c,u,u.getRng()),e.nodeChanged()}yC(t,e)}Zh(e,t,r,n)}else{r=u.getNode();for(var h=0,y=o.length;h<y;h++){var b=o[h];if(b.ceFalseOverride&&qp(b)&&c.is(r,b.selector)){s(r,b);break}}Zh(e,t,r,n)}},iz=function(e){return Me(e,"vars")},az=function(e,t){e.set({}),t.on("NodeChange",(function(n){lz(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=q.from(n.node).map((function(e){return Tp(e)?e:e.startContainer})).bind((function(e){return Ur(e)?q.some(e):q.from(e.parentElement)})).getOrThunk((function(){return cz(t)}));lz(t,r,e.get())}))},cz=function(e){return e.selection.getStart()},uz=function(e,t,n,r,o){var i=function(t){var i=e.formatter.matchNode(t,n,null!==o&&void 0!==o?o:{},r);return!_(i)},a=function(t){return!!Lx(e,t,n)||!r&&C(e.formatter.matchNode(t,n,o,!0))};return ie(t,i,a)},sz=function(e,t){var n=null!==t&&void 0!==t?t:cz(e);return ne(Fp(e.dom,n),(function(e){return Ur(e)&&!Kr(e)}))},lz=function(e,t,n){var r=sz(e,t);_e(n,(function(n,o){var i=function(n){var i=uz(e,r,o,n.similar,iz(n)?n.vars:void 0),a=i.isSome();if(n.state.get()!==a){n.state.set(a);var c=i.getOr(t);iz(n)?n.callback(a,{node:c,format:o,parents:r}):Z(n.callbacks,(function(e){return e(a,{node:c,format:o,parents:r})}))}};Z([n.withSimilar,n.withoutSimilar],i),Z(n.withVars,i)}))},fz=function(e,t,n,r,o,i){var a=t.get();Z(n.split(","),(function(t){var n=De(a,t).getOrThunk((function(){var e={withSimilar:{state:Ys(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ys(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),c=function(){var n=sz(e);return uz(e,n,t,o,i).isSome()};if(_(i)){var u=o?n.withSimilar:n.withoutSimilar;u.callbacks.push(r),1===u.callbacks.length&&u.state.set(c())}else n.withVars.push({state:Ys(c()),similar:o,vars:i,callback:r})})),t.set(a)},dz=function(e,t,n){var r=e.get();Z(t.split(","),(function(e){return De(r,e).each((function(t){r[e]={withSimilar:qe(qe({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:qe(qe({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},mz=function(e,t,n,r,o,i){return null===t.get()&&az(t,e),fz(e,t,n,r,o,i),{unbind:function(){return dz(t,n,r)}}},gz=function(e,t,n,r){var o=e.formatter.get(t);!Vx(e,t,n,r)||"toggle"in o[0]&&!o[0].toggle?oz(e,t,n,r):KC(e,t,n,r)},pz=function(e,t){var n=t||document,r=n.createDocumentFragment();return Z(e,(function(e){r.appendChild(e.dom)})),wn.fromDom(r)},hz=function(e,t,n){return{element:e,width:t,rows:n}},vz=function(e,t){return{element:e,cells:t}},yz=function(e,t){return{x:e,y:t}},bz=function(e,t){var n=parseInt(bo(e,t),10);return isNaN(n)?1:n},wz=function(e,t,n,r,o){for(var i=bz(o,"rowspan"),a=bz(o,"colspan"),c=e.rows,u=n;u<n+i;u++){c[u]||(c[u]=vz(Gl(r),[]));for(var s=t;s<t+a;s++){var l=c[u].cells;l[s]=u===n&&s===t?o:$l(o)}}},kz=function(e,t,n){var r=e.rows,o=r[n]?r[n].cells:[];return!!o[t]},_z=function(e,t,n){while(kz(e,t,n))t++;return t},xz=function(e){return oe(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},Cz=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var o=n[r].cells,i=0;i<o.length;i++)if(Nn(o[i],t))return q.some(yz(i,r));return q.none()},zz=function(e,t,n,r,o){for(var i=[],a=e.rows,c=n;c<=o;c++){var u=a[c].cells,s=t<r?u.slice(t,r+1):u.slice(r,t+1);i.push(vz(a[c].element,s))}return i},Sz=function(e,t,n){var r=t.x,o=t.y,i=n.x,a=n.y,c=o<a?zz(e,r,o,i,a):zz(e,r,a,i,o);return hz(e.element,xz(c),c)},Tz=function(e,t){var n=$l(e.element),r=wn.fromTag("tbody");return Cr(r,t),kr(n,r),n},Oz=function(e){return Q(e.rows,(function(e){var t=Q(e.cells,(function(e){var t=Gl(e);return _o(t,"colspan"),_o(t,"rowspan"),t})),n=$l(e.element);return Cr(n,t),n}))},Ez=function(e){var t=hz($l(e),0,[]);return Z(Tl(e,"tr"),(function(e,n){Z(Tl(e,"td,th"),(function(r,o){wz(t,_z(t,o,n),n,e,r)}))})),hz(t.element,xz(t.rows),t.rows)},Az=function(e){return Tz(e,Oz(e))},Dz=function(e,t,n){return Cz(e,t).bind((function(t){return Cz(e,n).map((function(n){return Sz(e,t,n)}))}))},Mz=function(e){return ae(e,(function(e){return"ul"===Ln(e)||"ol"===Ln(e)}))},Nz=function(e,t){return ae(e,(function(e){return"li"===Ln(e)&&xh(e,t)})).fold(A([]),(function(t){return Mz(e).map((function(e){var t=wn.fromTag(Ln(e)),n=Oe(Eo(e),(function(e,t){return st(t,"list-style")}));return zo(t,n),[wn.fromTag("li"),t]})).getOr([])}))},Rz=function(e,t){var n=oe(t,(function(e,t){return kr(t,e),t}),e);return t.length>0?pz([n]):n},Bz=function(e){return ra(e)?Yn(e).filter(na).fold(A([]),(function(t){return[e,t]})):na(e)?[e]:[]},Pz=function(e,t){var n=wn.fromDom(t.commonAncestorContainer),r=Bw(n,e),o=ne(r,(function(e){return Zi(e)||Yi(e)})),i=Nz(r,t),a=o.concat(i.length?i:Bz(n));return Q(a,$l)},Lz=function(){return pz([])},Iz=function(e,t){return Rz(wn.fromDom(t.cloneContents()),Pz(e,t))},Hz=function(e,t){return Si(t,"table",N(Nn,e))},Fz=function(e,t){return Hz(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],o=Ez(e);return Dz(o,n,r).map((function(e){return pz([Az(e)])}))})).getOrThunk(Lz)},jz=function(e,t){return t.length>0&&t[0].collapsed?Lz():Iz(e,t[0])},Vz=function(e,t){var n=hh(t,e);return n.length>0?Fz(e,n):jz(e,t)},Uz=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},qz=function(e,t){return t>=0&&t<e.length&&zp(e.charAt(t))},Wz=function(e,t){var n=ga(e.innerText);return t?Uz(n):n},$z=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},Gz=function(e){return q.from(e.selection.getRng()).map((function(t){var n=q.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),o=$z(n),i=en.browser.isIE()&&"pre"!==o,a=e.dom.add(r,o,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),c=Wz(a,i),u=ga(a.textContent);if(e.dom.remove(a),qz(u,0)||qz(u,u.length-1)){var s=n.getOr(r),l=Wz(s,i),f=l.indexOf(c);if(-1===f)return c;var d=qz(l,f-1),m=qz(l,f+c.length);return(d?" ":"")+c+(m?" ":"")}return c})).getOr("")},Kz=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),o=e.selection.getSel(),i=Cb(e,fh(o)),a=t.contextual?Vz(wn.fromDom(e.getBody()),i).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},Xz=function(e,t){return qe(qe({},e),{format:t,get:!0,selection:!0})},Yz=function(e,t,n){void 0===n&&(n={});var r=Xz(n,t),o=e.fire("BeforeGetContent",r);if(o.isDefaultPrevented())return e.fire("GetContent",o),o.content;if("text"===o.format)return Gz(e);o.getInner=!0;var i=Kz(e,o);return"tree"===o.format?i:(o.content=e.selection.isCollapsed()?"":i,e.fire("GetContent",o),o.content)},Jz=0,Qz=1,Zz=2,eS=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,o,i,c){var s=u(n,r,o,i);if(null===s||s.start===r&&s.diag===r-i||s.end===n&&s.diag===n-o){var l=n,f=o;while(l<r||f<i)l<r&&f<i&&e[l]===t[f]?(c.push([Jz,e[l]]),++l,++f):r-n>i-o?(c.push([Zz,e[l]]),++l):(c.push([Qz,t[f]]),++f)}else{a(n,s.start,o,s.start-s.diag,c);for(var d=s.start;d<s.end;++d)c.push([Jz,e[d]]);a(s.end,r,s.end-s.diag,i,c)}},c=function(n,r,o,a){var c=n;while(c-r<a&&c<o&&e[c]===t[c-r])++c;return i(n,c,r)},u=function(n,i,a,u){var s=i-n,l=u-a;if(0===s||0===l)return null;var f,d,m,g,p,h=s-l,v=l+s,y=(v%2===0?v:v+1)/2;for(r[1+y]=n,o[1+y]=i+1,f=0;f<=y;++f){for(d=-f;d<=f;d+=2){m=d+y,d===-f||d!==f&&r[m-1]<r[m+1]?r[m]=r[m+1]:r[m]=r[m-1]+1,g=r[m],p=g-n+a-d;while(g<i&&p<u&&e[g]===t[p])r[m]=++g,++p;if(h%2!==0&&h-f<=d&&d<=h+f&&o[m-h]<=r[m])return c(o[m-h],d+n-a,i,u)}for(d=h-f;d<=h+f;d+=2){m=d+y-h,d===h-f||d!==h+f&&o[m+1]<=o[m-1]?o[m]=o[m+1]-1:o[m]=o[m-1],g=o[m]-1,p=g-n+a-d;while(g>=n&&p>=a&&e[g]===t[p])o[m]=g--,p--;if(h%2===0&&-f<=d&&d<=f&&o[m]<=r[m+h])return c(o[m],d+n-a,i,u)}}},s=[];return a(0,e.length,0,t.length,s),s},tS=function(e){return Ur(e)?e.outerHTML:Zr(e)?Oc.encodeRaw(e.data,!1):eo(e)?"\x3c!--"+e.data+"--\x3e":""},nS=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},rS=function(e,t,n){var r=nS(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},oS=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},iS=function(e,t){var n=0;Z(e,(function(e){e[0]===Jz?n++:e[0]===Qz?(rS(t,e[1],n),n++):e[0]===Zz&&oS(t,n)}))},aS=function(e){return ne(Q(ye(e.childNodes),tS),(function(e){return e.length>0}))},cS=function(e,t){var n=Q(ye(t.childNodes),tS);return iS(eS(n,e),t),t},uS=Ge((function(){return document.implementation.createHTMLDocument("undo")})),sS=function(e){return-1!==e.indexOf("</iframe>")},lS=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},fS=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},dS=function(e){var t=aS(e.getBody()),n=se(t,(function(t){var n=Xb(e.serializer,t);return n.length>0?[n]:[]})),r=n.join("");return sS(r)?lS(n):fS(r)},mS=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?cS(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!C(r)||!ap(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},gS=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},pS=function(e){var t=wn.fromTag("body",uS());return ql(t,gS(e)),Z(Tl(t,"*[data-mce-bogus]"),Tr),Ul(t)},hS=function(e,t){return gS(e)===gS(t)},vS=function(e,t){return pS(e)===pS(t)},yS=function(e,t){return!(!e||!t)&&(!!hS(e,t)||vS(e,t))},bS=function(e){return 0===e.get()},wS=function(e,t,n){bS(n)&&(e.typing=t)},kS=function(e,t){e.typing&&(wS(e,!1,t),e.add())},_S=function(e){e.typing&&(e.typing=!1,e.add())},xS=function(e,t,n){bS(t)&&n.set(gd(e.selection))},CS=function(e,t,n,r,o,i,a){var c=dS(e);if(i=i||{},i=gn.extend(i,c),!1===bS(r)||e.removed)return null;var u=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&yS(u,i))return null;t.data[n.get()]&&o.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var s=bm(e);if(s&&t.data.length>s){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=gd(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:u,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),i},zS=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},SS=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];mS(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},TS=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],mS(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},OS=function(e,t,n,r){var o;return t.typing&&(t.add(),t.typing=!1,wS(t,!1,n)),r.get()>0&&(r.set(r.get()-1),o=t.data[r.get()],mS(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},ES=function(e){e.clear(),e.add()},AS=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!yS(dS(e),t.data[0])},DS=function(e,t){return t.get()<e.data.length-1&&!e.typing},MS=function(e,t,n){return kS(e,t),e.beforeChange(),e.ignore(n),e.add()},NS=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},RS=function(e,t){var n=e.dom,r=C(t)?t:e.getBody();_(e.hasVisual)&&(e.hasVisual=Sm(e)),Z(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Tm(e),o=n.getAttrib(t,"border");o&&"0"!==o||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var i=n.getAttrib(t,"name")||t.id,a=Om(e);i&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},BS=function(e){return{undoManager:{beforeChange:function(t,n){return xS(e,t,n)},add:function(t,n,r,o,i,a){return CS(e,t,n,r,o,i,a)},undo:function(t,n,r){return OS(e,t,n,r)},redo:function(t,n){return TS(e,t,n)},clear:function(t,n){return zS(e,t,n)},reset:function(e){return ES(e)},hasUndo:function(t,n){return AS(e,t,n)},hasRedo:function(e,t){return DS(e,t)},transact:function(e,t,n){return MS(e,t,n)},ignore:function(e,t){return NS(e,t)},extra:function(t,n,r,o){return SS(e,t,n,r,o)}},formatter:{match:function(t,n,r,o){return Vx(e,t,n,r,o)},matchAll:function(t,n){return Ux(e,t,n)},matchNode:function(t,n,r,o){return jx(e,t,n,r,o)},canApply:function(t){return Wx(e,t)},closest:function(t){return qx(e,t)},apply:function(t,n,r){return oz(e,t,n,r)},remove:function(t,n,r,o){return KC(e,t,n,r,o)},toggle:function(t,n,r){return gz(e,t,n,r)},formatChanged:function(t,n,r,o,i){return mz(e,t,n,r,o,i)}},editor:{getContent:function(t,n){return ew(e,t,n)},setContent:function(t,n){return Dx(e,t,n)},insertContent:function(t,n){return wx(e,t,n)},addVisual:function(t){return RS(e,t)}},selection:{getContent:function(t,n){return Yz(e,t,n)}},raw:{getModel:function(){return q.none()}}}},PS=function(e){var t=function(e){return y(e)?e:{}},n=e.undoManager,r=e.formatter,o=e.editor,i=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,o){return n.extra(r,o)}},formatter:{match:function(e,n,o,i){return r.match(e,t(n),i)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,o){return r.apply(e,t(n))},remove:function(e,n,o,i){return r.remove(e,t(n))},toggle:function(e,n,o){return r.toggle(e,t(n))},formatChanged:function(e,t,n,o,i){return r.formatChanged(t,n,o,i)}},editor:{getContent:function(e,t){return o.getContent(e)},setContent:function(e,t){return o.setContent(e,t)},insertContent:function(e,t){return o.insertContent(e)},addVisual:o.addVisual},selection:{getContent:function(e,t){return i.getContent(t)}},raw:{getModel:function(){return q.some(a.getRawModel())}}}},LS=function(){var e=A(null),t=A("");return{undoManager:{beforeChange:T,add:e,undo:e,redo:e,clear:T,reset:T,hasUndo:I,hasRedo:I,transact:e,ignore:T,extra:T},formatter:{match:I,matchAll:A([]),matchNode:A(void 0),canApply:I,closest:t,apply:T,remove:T,toggle:T,formatChanged:A({unbind:T})},editor:{getContent:t,setContent:t,insertContent:T,addVisual:T},selection:{getContent:t},raw:{getModel:A(q.none())}}},IS=function(e){return Me(e.plugins,"rtc")},HS=function(e){return De(e.plugins,"rtc").bind((function(e){return q.from(e.setup)}))},FS=function(e){var t=e;return HS(e).fold((function(){return t.rtcInstance=BS(e),q.none()}),(function(e){return t.rtcInstance=LS(),q.some((function(){return e().then((function(e){return t.rtcInstance=PS(e),e.rtc.isRemote}))}))}))},jS=function(e){return e.rtcInstance?e.rtcInstance:BS(e)},VS=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},US=function(e,t,n){VS(e).undoManager.beforeChange(t,n)},qS=function(e,t,n,r,o,i,a){return VS(e).undoManager.add(t,n,r,o,i,a)},WS=function(e,t,n,r){return VS(e).undoManager.undo(t,n,r)},$S=function(e,t,n){return VS(e).undoManager.redo(t,n)},GS=function(e,t,n){VS(e).undoManager.clear(t,n)},KS=function(e,t){VS(e).undoManager.reset(t)},XS=function(e,t,n){return VS(e).undoManager.hasUndo(t,n)},YS=function(e,t,n){return VS(e).undoManager.hasRedo(t,n)},JS=function(e,t,n,r){return VS(e).undoManager.transact(t,n,r)},QS=function(e,t,n){VS(e).undoManager.ignore(t,n)},ZS=function(e,t,n,r,o){VS(e).undoManager.extra(t,n,r,o)},eT=function(e,t,n,r,o){return VS(e).formatter.match(t,n,r,o)},tT=function(e,t,n){return VS(e).formatter.matchAll(t,n)},nT=function(e,t,n,r,o){return VS(e).formatter.matchNode(t,n,r,o)},rT=function(e,t){return VS(e).formatter.canApply(t)},oT=function(e,t){return VS(e).formatter.closest(t)},iT=function(e,t,n,r){VS(e).formatter.apply(t,n,r)},aT=function(e,t,n,r,o){VS(e).formatter.remove(t,n,r,o)},cT=function(e,t,n,r){VS(e).formatter.toggle(t,n,r)},uT=function(e,t,n,r,o,i){return VS(e).formatter.formatChanged(t,n,r,o,i)},sT=function(e,t,n){return jS(e).editor.getContent(t,n)},lT=function(e,t,n){return jS(e).editor.setContent(t,n)},fT=function(e,t,n){return jS(e).editor.insertContent(t,n)},dT=function(e,t,n){return VS(e).selection.getContent(t,n)},mT=function(e,t){return VS(e).editor.addVisual(t)},gT=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return dT(e,n,t)},pT=function(e){return 0===e.dom.length?(Sr(e),q.none()):q.some(e)},hT=function(e,t){return e.filter((function(e){return Ih.isBookmarkNode(e.dom)})).bind(t?er:Zn)},vT=function(e,t,n,r){var o=e.dom,i=t.dom,a=r?o.length:i.length;r?(_k(o,i,!1,!r),n.setStart(i,a)):(_k(i,o,!1,!r),n.setEnd(i,a))},yT=function(e,t){Yn(e).each((function(n){var r=e.dom;t&&ak(n,Nf(r,0))?wk(r,0):!t&&uk(n,Nf(r,r.length))&&kk(r,r.length)}))},bT=function(e,t,n,r){e.bind((function(e){var o=r?kk:wk;return o(e.dom,r?e.dom.length:0),t.filter(Vn).map((function(t){return vT(e,t,n,r)}))})).orThunk((function(){var e=hT(t,r).or(t).filter(Vn);return e.map((function(e){return yT(e,r)}))}))},wT=function(e,t){var n=q.from(t.firstChild).map(wn.fromDom),r=q.from(t.lastChild).map(wn.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(Zn).filter(Vn).bind(pT),i=r.bind(er).filter(Vn).bind(pT);bT(o,n,e,!0),bT(i,r,e,!1),e.collapse(!1)},kT=function(e,t){return qe(qe({format:"html"},e),{set:!0,selection:!0,content:t})},_T=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),o=r?{context:r.nodeName.toLowerCase()}:{},i=e.parser.parse(t.content,qe(qe({isRootContent:!0,forced_root_block:!1},o),t));return iw({validate:e.validate},e.schema).serialize(i)}return t.content},xT=function(e,t,n){void 0===n&&(n={});var r=kT(n,t),o=r;if(!r.no_events){var i=e.fire("BeforeSetContent",r);if(i.isDefaultPrevented())return void e.fire("SetContent",i);o=i}o.content=_T(e,o);var a=e.selection.getRng();wT(a,a.createContextualFragment(o.content)),e.selection.setRng(a),ny(e,a),o.no_events||e.fire("SetContent",o)},CT=function(e,t,n){if(e&&Me(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function zT(e,t){var n,r,o=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},i=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=i(t),c={};gn.each(n,(function(e,t){o(t,a).each((function(n){r[t]||(Z(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),c[t]=e}))})),gn.each(r,(function(e,n){c[n]||(delete r[n],gn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),o(e,i(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){CT(n,e,a),CT(r,e,a)}}}}}var ST=function(e){return!!e.select},TT=function(e){return!(!e||!e.ownerDocument)&&Pn(wn.fromDom(e.ownerDocument),wn.fromDom(e))},OT=function(e){return!!e&&(!!ST(e)||TT(e.startContainer)&&TT(e.endContainer))},ET=function(e,t,n,r){var o,i,a=zT(e,r).selectorChangedWithUnbind,c=function(t,n){var o=e.createRng();C(t)&&C(n)?(o.setStart(t,n),o.setEnd(t,n),b(o),h(!1)):(Ch(e,o,r.getBody(),!0),b(o))},u=function(e){return gT(r,e)},s=function(e,t){return xT(r,e,t)},l=function(e){return yb(r.getBody(),y(),e)},f=function(e){return bb(r.getBody(),y(),e)},d=function(e,t){return N.getBookmark(e,t)},m=function(e){return N.moveToBookmark(e)},g=function(t,n){return xb(e,t,n).each(b),t},p=function(){var e=y(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},h=function(e){var t=y();t.collapse(!!e),b(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},y=function(){var n,a,c,u=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},s=t.document;if(void 0!==r.bookmark&&!1===db(r)){var l=Hy(r);if(l.isSome())return l.map((function(e){return Cb(r,[e])[0]})).getOr(s.createRange())}try{(n=v())&&!Vr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():s.createRange(),a=Cb(r,[a])[0])}catch(f){}return a||(a=s.createRange?s.createRange():s.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(c=e.getRoot(),a.setStart(c,0),a.setEnd(c,0)),o&&i&&(0===u(a.START_TO_START,a,o)&&0===u(a.END_TO_END,a,o)?a=i:(o=null,i=null)),a},b=function(e,t){var n;if(OT(e)){var a=ST(e)?e:null;if(a){i=null;try{a.select()}catch(s){}}else{var c=v(),u=r.fire("SetSelectionRange",{range:e,forward:t});if(e=u.range,c){i=e;try{c.removeAllRanges(),c.addRange(e)}catch(s){}!1===t&&c.extend&&(c.collapse(e.endContainer,e.endOffset),c.extend(e.startContainer,e.startOffset)),o=c.rangeCount>0?c.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!c.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(c.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),c.anchorNode===e.startContainer&&c.focusNode===e.endContainer||c.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},w=function(t){return s(e.getOuterHTML(t)),t},k=function(){return kb(r.getBody(),y())},_=function(t,n){return _b(e,y(),t,n)},x=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||Vr(n)||Vr(r))return!0;var o=e.createRng();o.setStart(n,t.anchorOffset),o.collapse(!0);var i=e.createRng();return i.setStart(r,t.focusOffset),i.collapse(!0),o.compareBoundaryPoints(o.START_TO_START,i)<=0},z=function(){var t=y(),n=v();if(!mh(n)&&zh(r)){var o=kv(e,t);return o.each((function(e){b(e,x())})),o.getOr(t)}return t},S=function(e,t){return a(e,t),M},T=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},O=function(e,t){C(e)?ty(r,e,t):ny(r,y(),t)},E=function(e,t){return b(uv(e,t,r.getDoc()))},A=function(){var e=y();return e.collapsed?Nf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},D=function(){t=o=i=null,R.destroy()},M={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:h,setCursorLocation:c,getContent:u,setContent:s,getBookmark:d,moveToBookmark:m,select:g,isCollapsed:p,isForward:x,setNode:w,getNode:k,getSel:v,setRng:b,getRng:y,getStart:l,getEnd:f,getSelectedBlocks:_,normalize:z,selectorChanged:S,selectorChangedWithUnbind:a,getScrollContainer:T,scrollIntoView:O,placeCaretAt:E,getBoundingClientRect:A,destroy:D},N=Ih(M),R=rv(M,r);return M.bookmarkManager=N,M.controlSelection=R,M},AT=function(e,t){Z(t,(function(t){e.attr(t,null)}))},DT=function(e,t,n){e.addNodeFilter("font",(function(e){Z(e,(function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),a=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),AT(e,["color","face","size"])}))}))},MT=function(e,t){e.addNodeFilter("strike",(function(e){Z(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},NT=function(e,t){var n=Uc();t.convert_fonts_to_spans&&DT(e,n,gn.explode(t.font_size_legacy_values)),MT(e,n)},RT=function(e,t){t.inline_styles&&NT(e,t)},BT=function(e){return new Ei((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===o.status?t(o.response):r()},o.onerror=r,o.send()}catch(i){r()}}))},PT=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},LT=function(e,t){var n;try{n=atob(t)}catch(vj){return q.none()}for(var r=new Uint8Array(n.length),o=0;o<r.length;o++)r[o]=n.charCodeAt(o);return q.some(new Blob([r],{type:e}))},IT=function(e){return new Ei((function(t){var n=PT(e),r=n.type,o=n.data;LT(r,o).fold((function(){return t(new Blob([]))}),t)}))},HT=function(e){return 0===e.indexOf("blob:")?BT(e):0===e.indexOf("data:")?IT(e):null},FT=function(e){return new Ei((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},jT=0,VT=function(e){return(e||"blobid")+jT++},UT=function(e,t,n,r){var o,i;if(0===t.src.indexOf("blob:"))return i=e.getByUri(t.src),void(i?n({image:t,blobInfo:i}):HT(t.src).then((function(r){FT(r).then((function(a){o=PT(a).data,i=e.create(VT(),r,o),e.add(i),n({image:t,blobInfo:i})}))}),(function(e){r(e)})));var a=PT(t.src),c=a.data,u=a.type;o=c,i=e.getByData(o,u),i?n({image:t,blobInfo:i}):HT(t.src).then((function(r){i=e.create(VT(),r,o),e.add(i),n({image:t,blobInfo:i})}),(function(e){r(e)}))},qT=function(e){return e?ye(e.getElementsByTagName("img")):[]},WT=function(e,t){var n={},r=function(r,o){o||(o=H);var i=ne(qT(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t)))))})),a=Q(i,(function(e){if(void 0!==n[e.src])return new Ei((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Ei((function(n,r){UT(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Ei.all(a)};return{findAll:r}},$T=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new Eb("br",1)).shortEnded=!0:r.empty().append(new Eb("#text",3)).value=sa},GT=function(e){return KT(e,"#text")&&e.firstChild.value===sa},KT=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},XT=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},YT=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return XT(e,t)}))},JT=function(e,t){return e&&(Me(t,e.name)||"br"===e.name)},QT=function(e){return C(e.attr("data-mce-bogus"))},ZT=function(e){return e.attr("src")===en.transparentSrc||C(e.attr("data-mce-placeholder"))},eO=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),_e(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},tO=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");ZT(e)||QT(e)||Mb(r).filter((function(){return eO(e,t)})).bind((function(e){var t=e.type,r=e.data;return q.from(n.getByData(r,t)).orThunk((function(){return LT(t,r).map((function(e){var t=n.create(VT(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Z(e,r)}))},nO=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,o){var i,a,c,u,s,l,f,d,m=e.length,g=gn.extend({},n.getBlockElements()),p=n.getNonEmptyElements(),h=n.getWhiteSpaceElements();for(g.body=1,i=0;i<m;i++)if(a=e[i],c=a.parent,g[a.parent.name]&&a===c.lastChild){s=a.prev;while(s){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){"br"===l&&(a=null);break}s=s.prev}a&&(a.remove(),YT(n,p,h,c)&&(f=n.getElementRule(c.name),f&&(f.removeEmpty?c.remove():f.paddEmpty&&$T(t,o,g,c))))}else{u=a;while(c&&c.firstChild===u&&c.lastChild===u){if(u=c,g[c.name])break;c=c.parent}u===c&&!0!==t.padd_empty_with_br&&(d=new Eb("#text",3),d.value=sa,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},o=function(e){var t=e?gn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var i=e[n];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",o(i.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,o,i=e.length;while(i--)if(o=e[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,t=o.lastChild;do{n=t.prev,r.insert(t,o),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new Eb("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var o=e[r],i=o.attr("class").split(" "),a="",c=0;c<i.length;c++){var u=i[c],s=!1,l=t["*"];l&&l[u]&&(s=!0),l=t[o.name],!s&&l&&l[u]&&(s=!0),s&&(a&&(a+=" "),a+=u)}a.length||(a=null),o.attr("class",a)}})),tO(e,t)},rO=gn.makeMap,oO=gn.each,iO=gn.explode,aO=gn.extend,cO=function(e,t){void 0===t&&(t=jc());var n={},r=[],o={},i={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=rO("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),o=t.getWhiteSpaceElements(),i=t.getTextBlockElements(),a=t.getSpecialElements(),u=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),o=0,i=r;o<i.length;o++){var c=i[o];t.isValidChild(n.name,c.name)||u(c,n)}e.unwrap()}},s=0;s<e.length;s++){var l=e[s],f=void 0,d=void 0,m=void 0;if(l.parent&&!l.fixed)if(i[l.name]&&"li"===l.parent.name){var g=l.next;while(g){if(!i[g.name])break;g.name="li",g.fixed=!0,l.parent.insert(g,l.parent),g=g.next}l.unwrap()}else{var p=[l];for(f=l.parent;f&&!t.isValidChild(f.name,l.name)&&!n[f.name];f=f.parent)p.push(f);if(f&&p.length>1)if(t.isValidChild(f.name,l.name)){p.reverse(),d=c(p[0].clone());for(var h=d,v=0;v<p.length-1;v++){t.isValidChild(h.name,p[v].name)?(m=c(p[v].clone()),h.append(m)):m=h;for(var y=p[v].firstChild;y&&y!==p[v+1];){var b=y.next;m.append(y),y=b}h=m}YT(t,r,o,d)?f.insert(l,p[0],!0):(f.insert(d,p[0],!0),f.insert(l,d)),f=p[0],(YT(t,r,o,f)||KT(f,"br"))&&f.empty().remove()}else u(l);else if(l.parent){if("li"===l.name){g=l.prev;if(g&&("ul"===g.name||"ol"===g.name)){g.append(l);continue}if(g=l.next,g&&("ul"===g.name||"ol"===g.name)){g.insert(l,g.firstChild,!0);continue}l.wrap(c(new Eb("ul",1)));continue}t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)?l.wrap(c(new Eb("div",1))):u(l)}}}},c=function(e){var t=e.name;if(t in n){var a=o[t];a?a.push(e):o[t]=[e]}var c=r.length;while(c--){var u=r[c].name;if(u in e.attributes.map){a=i[u];a?a.push(e):i[u]=[e]}}return e},u=function(e,t){oO(iO(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},s=function(){var e=[];for(var t in n)Me(n,t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){oO(iO(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(c,u){var s,l,f,d,m,g,p,h,v=[],y=function(e){return!1===e?"":!0===e?"p":e};u=u||{},o={},i={};var b=aO(rO("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=Ic(t),k=t.getNonEmptyElements(),_=t.children,x=e.validate,z="forced_root_block"in u?u.forced_root_block:e.forced_root_block,S=y(z),T=t.getWhiteSpaceElements(),O=/^[ \t\r\n]+/,E=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,D=/^[ \t\r\n]+$/,M=Me(T,u.context)||Me(T,e.root_name),N=function(){var n=H.firstChild,r=null,o=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(O,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(E,"")))};if(t.isValidChild(H.name,S.toLowerCase())){while(n){var i=n.next;3===n.type||1===n.type&&"p"!==n.name&&!b[n.name]&&!n.attr("data-mce-type")?(r||(r=R(S,1),r.attr(e.forced_root_block_attrs),H.insert(r,n)),r.append(n)):(o(r),r=null),n=i}o(r)}},R=function(e,t){var r,i=new Eb(e,t);return e in n&&(r=o[e],r?r.push(i):o[e]=[i]),i},B=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var o=r.value.replace(E,"");if(o.length>0)return void(r.value=o);var i=r.next;if(i){if(3===i.type&&i.value.length){r=r.prev;continue}if(!n[i.name]&&"script"!==i.name&&"style"!==i.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},P=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},L=function(e){var n=e;while(C(n)){if(n.name in w)return YT(t,k,T,n);n=n.parent}return!1},I=Gb({validate:x,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:P(t.getSelfClosingElements()),cdata:function(e){h.append(R("#cdata",4)).value=e},text:function(e,t){var n;M||(e=e.replace(A," "),JT(h.lastChild,b)&&(e=e.replace(O,""))),0!==e.length&&(n=R("#text",3),n.raw=!!t,h.append(n).value=e)},comment:function(e){h.append(R("#comment",8)).value=e},pi:function(e,t){h.append(R(e,7)).value=t,B(h)},doctype:function(e){var t=h.append(R("#doctype",10));t.value=e,B(h)},start:function(e,n,o){var a=x?t.getElementRule(e):{};if(a){var c=R(a.outputName||e,1);c.attributes=n,c.shortEnded=o,h.append(c);var u=_[h.name];u&&_[c.name]&&!u[c.name]&&v.push(c);var s=r.length;while(s--){var l=r[s].name;l in n.map&&(g=i[l],g?g.push(c):i[l]=[c])}b[e]&&B(c),o||(h=c),!M&&T[e]&&(M=!0)}},end:function(n){var r,o,i,a=x?t.getElementRule(n):{};if(a){if(b[n]&&!M){if(r=h.firstChild,r&&3===r.type)if(o=r.value.replace(O,""),o.length>0)r.value=o,r=r.next;else{i=r.next,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.next,(0===o.length||D.test(o))&&(r.remove(),r=i),r=i}if(r=h.lastChild,r&&3===r.type)if(o=r.value.replace(E,""),o.length>0)r.value=o,r=r.prev;else{i=r.prev,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.prev,(0===o.length||D.test(o))&&(r.remove(),r=i),r=i}}M&&T[n]&&(M=!1);var c=YT(t,k,T,h),s=h.parent;a.paddInEmptyBlock&&c&&L(h)?$T(e,u,b,h):a.removeEmpty&&c?b[h.name]?h.empty().remove():h.unwrap():a.paddEmpty&&(GT(h)||c)&&$T(e,u,b,h),h=s}}},t),H=h=new Eb(u.context||e.root_name,11);if(I.parse(c,u.format),x&&v.length&&(u.context?u.invalid=!0:a(v)),S&&("body"===H.name||u.isRootContent)&&N(),!u.invalid){for(p in o)if(Me(o,p)){g=n[p],s=o[p],d=s.length;while(d--)s[d].parent||s.splice(d,1);for(l=0,f=g.length;l<f;l++)g[l](s,p,u)}for(l=0,f=r.length;l<f;l++)if(g=r[l],g.name in i){s=i[g.name],d=s.length;while(d--)s[d].parent||s.splice(d,1);for(d=0,m=g.callbacks.length;d<m;d++)g.callbacks[d](s,g.name,u)}}return H},m={schema:t,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:u,getNodeFilters:s,filterNode:c,parse:d};return nO(m,e),RT(m,e),m},uO=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var o="data-mce-"+r,i=t.url_converter,a=t.url_converter_scope,c=e.length;while(c--){var u=e[c],s=u.attr(o);void 0!==s?(u.attr(r,s.length>0?s:null),u.attr(o,null)):(s=u.attr(r),"style"===r?s=n.serializeStyle(n.parseStyle(s),u.name):i&&(s=i.call(a,s,r,u.name)),u.attr(r,s.length>0?s:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var o=e[r];if("bookmark"===o.attr("data-mce-type")&&!n.cleanup){var i=q.from(o.firstChild).exists((function(e){return!ma(e.value)}));i?o.unwrap():o.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Oc.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},o=e.length;while(o--){var i=e[o],a=i.firstChild?i.firstChild.value:"";if("script"===n){var c=i.attr("type");c&&i.attr("type","mce-no/type"===c?null:c.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var o=e[r];t.preserve_cdata&&0===o.value.indexOf("[CDATA[")?(o.name="#cdata",o.type=4,o.value=n.decode(o.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===o.value.indexOf("mce:protected ")&&(o.name="#text",o.type=3,o.raw=!0,o.value=unescape(o.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Z(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},sO=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},lO=function(e,t,n){var r,o=e.dom,i=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var c=a.createHTMLDocument("");gn.each("BODY"===i.nodeName?i.childNodes:[i],(function(e){c.body.appendChild(c.importNode(e,!0))})),i="BODY"!==i.nodeName?c.body.firstChild:c.body,r=o.doc,o.doc=c}return jh(e,qe(qe({},n),{node:i})),r&&(o.doc=r),i},fO=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},dO=function(e,t,n){return fO(e,n)?lO(e,t,n):t},mO=function(e,t,n){-1===gn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},gO=function(e,t,n){if(!t.no_events&&e){var r=Vh(e,qe(qe({},t),{content:n}));return r.content}return n},pO=function(e,t,n){var r=ga(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(wn.fromDom(t))?r:gn.trim(r)},hO=function(e,t,n){var r=n.selection?qe({forced_root_block:!1},n):n,o=e.parse(t,r);return sO(o),o},vO=function(e,t,n){var r=iw(e,t);return r.serialize(n)},yO=function(e,t,n,r,o){var i=vO(t,n,r);return gO(e,o,i)},bO=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:js.DOM,o=t&&t.schema?t.schema:jc(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var i=cO(e,o);uO(i,e,r);var a=function(n,a){void 0===a&&(a={});var c=qe({format:"html"},a),u=dO(t,n,c),s=pO(r,u,c),l=hO(i,s,c);return"tree"===c.format?l:yO(t,e,o,l,c)};return{schema:o,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:a,addRules:o.addValidElements,setRules:o.setValidElements,addTempAttr:N(mO,i,n),getTempAttrs:A(n),getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters}},wO=function(e,t){var n=bO(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},kO="html",_O=function(e,t){void 0===t&&(t={});var n=t.format?t.format:kO;return sT(e,t,n)},xO=function(e,t,n){return void 0===n&&(n={}),lT(e,t,n)},CO=js.DOM,zO=function(e){CO.setStyle(e.id,"display",e.orgDisplay)},SO=function(e){return q.from(e).each((function(e){return e.destroy()}))},TO=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},OO=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),CO.unbind(t,"submit reset",e.formEventDelegate))},EO=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&CO.remove(o.nextSibling),Uh(e),e.editorManager.remove(e),!e.inline&&r&&zO(e),qh(e),CO.remove(e.getContainer()),SO(t),SO(n),e.destroy()}},AO=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),SO(n),SO(r)),OO(e),TO(e),e.destroyed=!0):e.remove())},DO=function(e,t){var n=y(e)&&y(t);return n?NO(e,t):t},MO=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)Me(i,a)&&(r[a]=e(r[a],i[a]))}return r}},NO=MO(DO),RO="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),BO="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),PO="imagetools,toc".split(","),LO=function(e){var t=ne(RO,(function(t){return Me(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),ge(t)},IO=function(e){var t=gn.makeMap(e.plugins," "),n=function(e){return Me(t,e)},r=$e($e([],ne(BO,n),!0),se(PO,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return ge(r)},HO=function(e,t){var n=LO(e),r=IO(t),o=r.length>0,i=n.length>0,a="mobile"===t.theme;if(o||i||a){var c="\n- ",u=a?"\n\nThemes:"+c+"mobile":"",s=o?"\n\nPlugins:"+c+r.join(c):"",l=i?"\n\nSettings:"+c+n.join(c):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+u+s+l)}},FO=function(e,t){return{sections:A(e),settings:A(t)}},jO=Wt().deviceType,VO=jO.isTouch(),UO=jO.isPhone(),qO=jO.isTablet(),WO=["lists","autolink","autosave"],$O={table_grid:!1,object_resizing:!1,resize:!1},GO=function(e){var t=b(e)?e.join(" "):e,n=Q(v(t)?t.split(" "):[],ft);return ne(n,(function(e){return e.length>0}))},KO=function(e){return ne(e,N(Y,WO))},XO=function(e,t){var n=Te(t,(function(t,n){return Y(e,n)}));return FO(n.t,n.f)},YO=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=De(r,t).getOr({});return gn.extend({},n,o)},JO=function(e,t){return Me(e.sections(),t)},QO=function(e,t,n){var r=e.sections();return JO(e,t)&&r[t].theme===n},ZO=function(e,t){return JO(e,t)?e.sections()[t]:{}},eE=function(e,t){return De(e,"toolbar_mode").orThunk((function(){return De(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},tE=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:eE(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return qe(qe({},i),r?$O:{})},nE=function(e,t){var n={resize:!1,toolbar_mode:eE(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return qe(qe(qe({},$O),n),t?r:{})},rE=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?gn.extend({},e.external_plugins,n):n},oE=function(e,t){return[].concat(GO(e)).concat(GO(t))},iE=function(e,t,n,r){return e&&QO(t,"mobile","mobile")?KO(r):e&&JO(t,"mobile")?r:n},aE=function(e,t,n,r){var o=GO(n.forced_plugins),i=GO(r.plugins),a=ZO(t,"mobile"),c=a.plugins?GO(a.plugins):i,u=iE(e,t,i,c),s=oE(o,u);if(en.browser.isIE()&&Y(s,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return gn.extend(r,{plugins:s.join(" ")})},cE=function(e,t){return e&&JO(t,"mobile")},uE=function(e,t,n,r,o){var i=e?{mobile:nE(o.mobile||{},t)}:{},a=XO(["mobile"],NO(i,o)),c=gn.extend(n,r,a.settings(),cE(e,a)?YO(a,"mobile"):{},{validate:!0,external_plugins:rE(r,a.settings())});return aE(e,a,r,c)},sE=function(e,t,n,r,o){var i=tE(o,t,n,VO,e),a=uE(UO||qO,UO,i,r,o);return!1!==a.deprecation_warnings&&HO(o,a),a},lE=function(e,t,n){return q.from(t.settings[n]).filter(e)},fE=function(e){var t={};return"string"===typeof e?Z(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[gn.trim(n[0])]=gn.trim(n[1]):t[gn.trim(n[0])]=gn.trim(n[0])})):t=e,t},dE=function(e){return function(t){return b(t)&&le(t,e)}},mE=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?fE(o):"string"===r?lE(v,e,t).getOr(n):"number"===r?lE(S,e,t).getOr(n):"boolean"===r?lE(k,e,t).getOr(n):"object"===r?lE(y,e,t).getOr(n):"array"===r?lE(b,e,t).getOr(n):"string[]"===r?lE(dE(v),e,t).getOr(n):"function"===r?lE(z,e,t).getOr(n):o},gE=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Me(e,t)};return{add:t,get:n,has:r}},pE=gE(),hE=function(e,t){var n=t.dom;return n[e]},vE=function(e,t){return parseInt(So(t,e),10)},yE=N(hE,"clientWidth"),bE=N(hE,"clientHeight"),wE=N(vE,"margin-top"),kE=N(vE,"margin-left"),_E=function(e){return e.dom.getBoundingClientRect()},xE=function(e,t,n){var r=yE(e),o=bE(e);return t>=0&&n>=0&&t<=r&&n<=o},CE=function(e,t,n,r){var o=_E(t),i=e?o.left+t.dom.clientLeft+kE(t):0,a=e?o.top+t.dom.clientTop+wE(t):0,c=n-i,u=r-a;return{x:c,y:u}},zE=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.inline?r:Kn(r),i=CE(e.inline,o,t,n);return xE(o,i.x,i.y)},SE=function(e){return q.from(e).map(wn.fromDom)},TE=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return SE(t).map(Or).getOr(!1)},OE=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},EE=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():OE()},r=function(){return q.from(t[0])},o=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},i=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},c=function(e){ce(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},u=function(u,s){if(void 0===s&&(s=!0),!e.removed&&TE(e))return s&&e.fire("BeforeOpenNotification",{notification:u}),ae(t,(function(e){return o(n().getArgs(e),u)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(u,(function(){c(t),i(),r().fold((function(){return e.focus()}),(function(e){return oy(wn.fromDom(e.getEl()))}))}));return a(t),i(),e.fire("OpenNotification",{notification:qe({},t)}),t}))},s=function(){r().each((function(e){n().close(e),c(e),i()}))},l=A(t),f=function(e){e.on("SkinLoaded",(function(){var t=rm(e);t&&u({text:t,type:"warning",timeout:0},!1),i()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Pi.requestAnimationFrame(i)})),e.on("remove",(function(){Z(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:u,close:s,getNotifications:l}},AE=ll.PluginManager,DE=ll.ThemeManager;function ME(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var NE=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():ME()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},o=function(t){e.fire("OpenWindow",{dialog:t})},i=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),o(e)},c=function(n){i(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},u=function(){return q.from(t[t.length-1])},s=function(t){e.editorManager.setActive(e),Ly(e);var n=t();return a(n),n},l=function(e,t){return s((function(){return n().open(e,t,c)}))},f=function(e){return s((function(){return n().openUrl(e,c)}))},d=function(e,t,o){var i=n();i.alert(e,r(o||i,t))},m=function(e,t,o){var i=n();i.confirm(e,r(o||i,t))},g=function(){u().each((function(e){n().close(e),c(e)}))};return e.on("remove",(function(){Z(t,(function(e){n().close(e)}))})),{open:l,openUrl:f,alert:d,confirm:m,close:g}},RE=function(e,t){e.notificationManager.open({type:"error",text:t})},BE=function(e,t){e._skinLoaded?RE(e,t):e.on("SkinLoaded",(function(){RE(e,t)}))},PE=function(e,t){BE(e,sl.translate(["Failed to upload image: {0}",t]))},LE=function(e,t,n){Qh(e,t,{message:n}),console.error(n)},IE=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},HE=function(e,t,n){LE(e,"PluginLoadError",IE("plugin",t,n))},FE=function(e,t,n){LE(e,"IconsLoadError",IE("icons",t,n))},jE=function(e,t,n){LE(e,"LanguageLoadError",IE("language",t,n))},VE=function(e,t,n){var r=sl.translate(["Failed to initialize plugin: {0}",t]);Qh(e,"PluginLoadError",{message:r}),UE(r,n),BE(e,r)},UE=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,$e([e],t,!1)):r.log.apply(r,$e([e],t,!1)))},qE=function(e){return/^[a-z0-9\-]+$/i.test(e)},WE=function(e){return GE(e,Xd(e))},$E=function(e){return GE(e,Yd(e))},GE=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=!0===e.inline;return Q(t,(function(t){return qE(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)}))},KE=function(e){e.contentCSS=e.contentCSS.concat(WE(e),$E(e))},XE=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},o=function(e){return e in n},i=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!o(t)&&n[t].status===e},c=function(e){return!!o(e)&&n[e].status===t},u=function(t){n[t]=r(e,null)},s=function(e,o){n[e]=r(t,o)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:c,markPending:u,markUploaded:s,removeFailed:l,destroy:f}},YE=0,JE=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},QE=function(e){return e+YE+++JE()},ZE=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,o,i){if(v(e)){var a=e;return r({id:a,name:o,filename:i,blob:t,base64:n})}if(y(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||QE("blobid"),r=e.name||n,o=e.blob;return{id:A(n),name:A(r),filename:A(e.filename||r+"."+t(o.type)),blob:A(o),base64:A(e.base64),blobUri:A(e.blobUri||URL.createObjectURL(o)),uri:A(e.uri)}},o=function(t){a(t.id())||e.push(t)},i=function(t){return ae(e,t).getOrUndefined()},a=function(e){return i((function(t){return t.id()===e}))},c=function(e){return i((function(t){return t.blobUri()===e}))},u=function(e,t){return i((function(n){return n.base64()===e&&n.blob().type===t}))},s=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},l=function(){Z(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:o,get:a,getByUri:c,getByData:u,findFirst:i,removeByUri:s,destroy:l}},eA=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},o=function(e,n,o,i){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){i(e.loaded/e.total*100)},a.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)o("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):o("Invalid JSON: "+a.responseText)}};var c=new FormData;c.append("file",e.blob(),e.filename()),a.send(c)},i=function(){return new Ei((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},u=function(e,t){gn.each(n[e],(function(e){e(t)})),delete n[e]},s=function(t,n,r){return e.markPending(t.blobUri()),new Ei((function(o){var i,s;try{var l=function(){i&&(i.close(),s=T)},f=function(n){l(),e.markUploaded(t.blobUri(),n),u(t.blobUri(),a(t,n)),o(a(t,n))},d=function(n,r){var i=r||{};l(),e.removeFailed(t.blobUri()),u(t.blobUri(),c(t,n,i)),o(c(t,n,i))};s=function(e){e<0||e>100||q.from(i).orThunk((function(){return q.from(r).map(P)})).each((function(t){i=t,t.progressBar.value(e)}))},n(t,f,d,s)}catch(m){o(c(t,m.message,{}))}}))},l=function(e){return e===o},f=function(e){var t=e.blobUri();return new Ei((function(e){n[t]=n[t]||[],n[t].push(e)}))},d=function(n,r){return n=gn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Ei.all(gn.map(n,(function(n){return e.isPending(n.blobUri())?f(n):s(n,t.handler,r)})))},m=function(e,n){return!t.url&&l(t.handler)?i():d(e,n)};return!1===z(t.handler)&&(t.handler=o),{upload:m}},tA=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},nA=function(e,t){return eA(t,{url:Hd(e),basePath:Fd(e),credentials:jd(e),handler:Vd(e)})},rA=function(e){var t=XE(),n=nA(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?tA(e):void 0)}}},oA=function(e){var t=Ys(null);e.on("change AddUndo",(function(e){t.set(qe({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!yS(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:pe(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},iA=function(e){var t,n,r=ZE(),o=XE(),i=[],a=oA(e),c=function(t){return function(n){return e.selection?t(n):[]}},u=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},s=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},l=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=s(e,'src="'+t+'"',r),e=s(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},f=function(t,n){Z(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=Q(e.fragments,(function(e){return l(e,t,n)})):e.content=l(e.content,t,n)}))},d=function(t,n){var r=e.convertURL(n,"src");f(t.src,n),e.$(t).attr({src:Bd(e)?u(n):n,"data-mce-src":r})},m=function(n){return t||(t=nA(e,o)),v().then(c((function(o){var i=Q(o,(function(e){return e.blobInfo}));return t.upload(i,tA(e)).then(c((function(t){var i=[],c=Q(t,(function(t,n){var a=o[n].blobInfo,c=o[n].image;return t.status&&Pd(e)?(r.removeByUri(c.src),IS(e)||d(c,t.url)):t.error&&(t.error.options.remove&&(f(c.getAttribute("src"),en.transparentSrc),i.push(c)),PE(e,t.error.message)),{element:c,status:t.status,uploadUri:t.url,blobInfo:a}}));return c.length>0&&a.fireIfChanged(),i.length>0&&(IS(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Z(i,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(c),c})))})))},g=function(t){if(Rd(e))return m(t)},p=function(t){if(!1===le(i,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Nd(e);return n(t)}return!0},h=function(e){i.push(e)},v=function(){return n||(n=WT(o,r)),n.findAll(e.getBody(),p).then(c((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(BE(e,t),!1)})),IS(e)||Z(t,(function(e){f(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},y=function(){r.destroy(),o.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var i=o.getResultUri(n);if(i)return'src="'+i+'"';var a=r.getByUri(n);if(a||(a=oe(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var c=a.blob();return'src="data:'+c.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Rd(e)?g():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Z(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=o.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:h,uploadImages:m,uploadImagesAuto:g,scanForImages:v,destroy:y}},aA=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Ur(e)&&e.hasAttribute("href")},onformat:function(t,n,r){gn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return gn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},cA=function(e){var t={},n=function(e){return C(e)?t[e]:t},r=function(e){return Me(t,e)},o=function(e,n){e&&(v(e)?(b(n)||(n=[n]),Z(n,(function(e){_(e.deep)&&(e.deep=!qp(e)),_(e.split)&&(e.split=!qp(e)||Wp(e)),_(e.remove)&&qp(e)&&!Wp(e)&&(e.remove="none"),qp(e)&&Wp(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):_e(e,(function(e,t){o(t,e)})))},i=function(e){return e&&t[e]&&delete t[e],t};return o(aA(e.dom)),o(cm(e)),{get:n,has:r,register:o,unregister:i}},uA=gn.each,sA=js.DOM,lA=function(e,t){var n,r,o,i=t&&t.schema||jc({}),a=function(e,t){t.classes.length&&sA.addClass(e,t.classes.join(" ")),sA.setAttribs(e,t.attrs)},c=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=sA.create(r.name);return a(t,r),t},u=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=i.getElementRule(n),o=r&&r.parentsRequired;return!(!o||!o.length)&&(t&&-1!==gn.inArray(o,t)?t:o[0])},s=function(e,t,n){var r,o,i=t.length>0&&t[0],a=i&&i.name,l=u(e,a);if(l)a===l?(o=t[0],t=t.slice(1)):o=l;else if(i)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=c(o),r.appendChild(e)),n&&(r||(r=sA.create("div"),r.appendChild(e)),gn.each(n,(function(t){var n=c(t);r.insertBefore(n,e)}))),s(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=c(r),o=sA.create("div"),o.appendChild(s(n,e.slice(1),r.siblings)),o):""},fA=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=gn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==gn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},dA=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),gn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=gn.map(e.split(/(?:~\+|~|\+)/),fA),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},mA=function(e,t){var n,r,o,i="",a=um(e);if(""===a)return"";var c=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var u=De(t,"preview");if(so(u,!1))return"";a=u.getOr(a)}n=t.block||t.inline||"span";var s=dA(t.selector);s.length?(s[0].name||(s[0].name=n),n=t.selector,r=lA(s,e)):r=lA([n],e);var l=sA.select(n,r)[0]||r.firstChild;return uA(t.styles,(function(e,t){var n=c(e);n&&sA.setStyle(l,t,n)})),uA(t.attributes,(function(e,t){var n=c(e);n&&sA.setAttrib(l,t,n)})),uA(t.classes,(function(e){var t=c(e);sA.hasClass(l,t)||sA.addClass(l,t)})),e.fire("PreviewFormats"),sA.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),o=sA.getStyle(e.getBody(),"fontSize",!0),o=/px$/.test(o)?parseInt(o,10):0,uA(a.split(" "),(function(t){var n=sA.getStyle(l,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=sA.getStyle(e.getBody(),t,!0),"#ffffff"!==sA.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==sA.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===o)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*o+"px"}"border"===t&&n&&(i+="padding:0 2px;"),i+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),sA.remove(r),i},gA=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},pA=function(e){var t=cA(e),n=Ys(null);return gA(e),lC(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){iT(e,t,n,r)},remove:function(t,n,r,o){aT(e,t,n,r,o)},toggle:function(t,n,r){cT(e,t,n,r)},match:function(t,n,r,o){return eT(e,t,n,r,o)},closest:function(t){return oT(e,t)},matchAll:function(t,n){return tT(e,t,n)},matchNode:function(t,n,r,o){return nT(e,t,n,r,o)},canApply:function(t){return rT(e,t)},formatChanged:function(t,r,o,i){return uT(e,n,t,r,o,i)},getCssText:N(mA,e)}},hA=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},vA=function(e,t,n){var r=Ys(!1),o=function(e){wS(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;hA(r)||(kS(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;hA(t)||o(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",o),e.on("dragend",o),e.on("keyup",(function(n){var i=n.keyCode;n.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),46!==i&&8!==i||e.nodeChanged(),r.get()&&t.typing&&!1===yS(dS(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var i=e.keyCode;if(!e.isDefaultPrevented())if(i>=33&&i<=36||i>=37&&i<=40||45===i)t.typing&&o(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(i<16||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),wS(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&o(e)}));var i=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},c=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(i(e)||a(e)||c(e))&&o(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},yA=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},bA=function(e){var t=dl(),n=Ys(0),r=Ys(0),o={data:[],typing:!1,beforeChange:function(){US(e,n,t)},add:function(i,a){return qS(e,o,r,n,t,i,a)},undo:function(){return WS(e,o,n,r)},redo:function(){return $S(e,r,o.data)},clear:function(){GS(e,o,r)},reset:function(){KS(e,o)},hasUndo:function(){return XS(e,o,r)},hasRedo:function(){return YS(e,o,r)},transact:function(t){return JS(e,o,n,t)},ignore:function(t){QS(e,n,t)},extra:function(t,n){ZS(e,o,r,t,n)}};return IS(e)||vA(e,o,n),yA(e),o},wA=[9,27,tv.HOME,tv.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tv.DOWN,tv.UP,tv.LEFT,tv.RIGHT].concat(en.browser.isFirefox()?[224]:[]),kA="data-mce-placeholder",_A=function(e){return"keydown"===e.type||"keyup"===e.type},xA=function(e){var t=e.keyCode;return t===tv.BACKSPACE||t===tv.DELETE},CA=function(e){if(_A(e)){var t=e.keyCode;return!xA(e)&&(tv.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||Y(wA,t))}return!1},zA=function(e){return _A(e)&&!(xA(e)||"keyup"===e.type&&229===e.keyCode)},SA=function(e,t,n){if(nc(wn.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return!o||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(o):n===o.nodeName.toLowerCase())}return!1},TA=function(e){var t=e.dom,n=zd(e),r=tm(e),o=function(i,a){if(!CA(i)){var c=e.getBody(),u=!zA(i)&&SA(t,c,n),s=""!==t.getAttrib(c,kA);(s!==u||a)&&(t.setAttrib(c,kA,u?r:null),t.setAttrib(c,"aria-placeholder",u?r:null),Jh(e,u),e.on(u?"keydown":"keyup",o),e.off(u?"keyup":"keydown",o))}};r&&e.on("init",(function(t){o(t,!0),e.on("change SetContent ExecCommand",o),e.on("paste",(function(t){return Pi.setEditorTimeout(e,(function(){return o(t)}))}))}))},OA=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,EA=function(e){return OA.test(e)},AA=function(e,t){return En(wn.fromDom(t),Qd(e))},DA=function(e){return"rtl"===js.DOM.getStyle(e,"direction",!0)||EA(e.textContent)},MA=function(e,t,n){return ne(js.DOM.getParents(n.container(),"*",t),e)},NA=function(e,t,n){var r=MA(e,t,n);return q.from(r[r.length-1])},RA=function(e,t,n){var r=lg(t,e),o=lg(n,e);return r&&r===o},BA=function(e){return _a(e)||xa(e)},PA=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ya(n)?Zr(n.nextSibling)?Nf(n.nextSibling,0):Nf.after(n):_a(t)?Nf(n,r+1):t:ya(n)?Zr(n.previousSibling)?Nf(n.previousSibling,n.previousSibling.data.length):Nf.before(n):xa(t)?Nf(n,r-1):t},LA=N(PA,!0),IA=N(PA,!1),HA=function(e){return function(t){return Nn(e,wn.fromDom(t.dom.parentNode))}},FA=function(e){return ta(e)||ra(e)},jA=function(e,t){return Pn(e,t)?xi(t,FA,HA(e)):q.none()},VA=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},UA=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),VA(e))},qA=function(e,t,n){return fo(Jg(n),Qg(n),(function(r,o){var i=PA(!0,r),a=PA(!1,o),c=PA(!1,t);return e?Xg(n,c).exists((function(e){return e.isEqual(a)&&t.isEqual(i)})):Yg(n,c).exists((function(e){return e.isEqual(i)&&t.isEqual(a)}))})).getOr(!0)},WA=function(e,t){return{block:e,position:t}},$A=function(e,t){return{from:e,to:t}},GA=function(e,t){var n=wn.fromDom(e),r=wn.fromDom(t.container());return jA(n,r).map((function(e){return WA(e,t)}))},KA=function(e){return!1===Nn(e.from.block,e.to.block)},XA=function(e){return Yn(e.from.block).bind((function(t){return Yn(e.to.block).filter((function(e){return Nn(t,e)}))})).isSome()},YA=function(e){return!1===ao(e.from.block.dom)&&!1===ao(e.to.block.dom)},JA=function(e,t,n){return ro(n.position.getNode())&&!1===nc(n.block)?Kg(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Wg(t,e,r).bind((function(t){return GA(e,t)})):q.some(n)})).getOr(n):n},QA=function(e,t,n){var r=GA(e,Nf.fromRangeStart(n)),o=r.bind((function(n){return Wg(t,e,n.position).bind((function(n){return GA(e,n).map((function(n){return JA(e,t,n)}))}))}));return fo(r,o,$A).filter((function(e){return KA(e)&&XA(e)&&YA(e)}))},ZA=function(e,t,n){return n.collapsed?QA(e,t,n):q.none()},eD=function(e){var t=rr(e);return ce(t,Ji).fold(A(t),(function(e){return t.slice(0,e)}))},tD=function(e){var t=eD(e);return Z(t,Sr),t},nD=function(e,t){var n=Bw(t,e);return ae(n.reverse(),(function(e){return nc(e)})).each(Sr)},rD=function(e){return 0===ne(tr(e),(function(e){return!nc(e)})).length},oD=function(e,t,n,r){if(nc(n))return Aw(n),Jg(n.dom);rD(r)&&nc(t)&&yr(r,wn.fromTag("br"));var o=Yg(n.dom,Nf.before(r.dom));return Z(tD(t),(function(e){yr(r,e)})),nD(e,t),o},iD=function(e,t,n){if(nc(n))return Sr(n),nc(t)&&Aw(t),Jg(t.dom);var r=Qg(n.dom);return Z(tD(t),(function(e){kr(n,e)})),nD(e,t),r},aD=function(e,t){var n=Bw(t,e);return q.from(n[n.length-1])},cD=function(e,t){return Pn(t,e)?aD(t,e):q.none()},uD=function(e,t){Kg(e,t.dom).map((function(e){return e.getNode()})).map(wn.fromDom).filter(ea).each(Sr)},sD=function(e,t,n){return uD(!0,t),uD(!1,n),cD(t,n).fold(N(iD,e,t,n),N(oD,e,t,n))},lD=function(e,t,n,r){return t?sD(e,r,n):sD(e,n,r)},fD=function(e,t){var n=wn.fromDom(e.getBody()),r=ZA(n.dom,t,e.selection.getRng()).bind((function(e){return lD(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},dD=function(e,t){var n=t.getRng();return fo(jA(e,wn.fromDom(n.startContainer)),jA(e,wn.fromDom(n.endContainer)),(function(r,o){return!1===Nn(r,o)&&(n.deleteContents(),lD(e,!0,r,o).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},mD=function(e,t){var n=wn.fromDom(t),r=N(Nn,e);return _i(n,ia,r).isSome()},gD=function(e,t){return mD(e,t.startContainer)||mD(e,t.endContainer)},pD=function(e,t){var n=Yg(e.dom,Nf.fromRangeStart(t)).isNone(),r=Xg(e.dom,Nf.fromRangeEnd(t)).isNone();return!gD(e,t)&&n&&r},hD=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},vD=function(e){var t=wn.fromDom(e.getBody()),n=e.selection.getRng();return pD(t,n)?hD(e):dD(t,e.selection)},yD=function(e,t){return!e.selection.isCollapsed()&&vD(e)},bD=io,wD=ao,kD=function(e,t,n,r,o){return q.from(t._selectionOverrides.showCaret(e,n,r,o))},_D=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},xD=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?q.none():q.some(_D(t))},CD=function(e,t,n){var r=yg(1,e.getBody(),t),o=Nf.fromRangeStart(r),i=o.getNode();if(Jm(i))return kD(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Jm(a))return kD(1,e,a,!1,!1);var c=e.dom.getParent(o.getNode(),(function(e){return wD(e)||bD(e)}));return Jm(c)?kD(1,e,c,!1,n):q.none()},zD=function(e,t,n){return t.collapsed?CD(e,t,n).getOr(t):t},SD=function(e){return Sw(e)||_w(e)},TD=function(e){return Tw(e)||xw(e)},OD=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},ED=function(e,t,n,r,o,i){return kD(r,e,i.getNode(!o),o,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();o?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),OD(e.dom,n),!0},AD=function(e,t){var n=e.selection.getRng();if(!Zr(n.commonAncestorContainer))return!1;var r=t?Rf.Forwards:Rf.Backwards,o=Lg(e.getBody()),i=N(xg,t?o.next:o.prev),a=t?SD:TD,c=wg(r,e.getBody(),n),u=PA(t,i(c));if(!u||!Cg(c,u))return!1;if(a(u))return ED(e,n,c.getNode(),r,t,u);var s=i(u);return!!(s&&a(s)&&Cg(u,s))&&ED(e,n,c.getNode(),r,t,s)},DD=function(e,t){return AD(e,t)},MD=function(e){return ia(wn.fromDom(e))||ra(wn.fromDom(e))},ND=ei.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),RD=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Ur(n)&&n.getAttribute("data-mce-caret")===r},BD=function(e,t,n,r){var o=function(t){return Zi(wn.fromDom(t))&&!fg(n,r,e)};return bg(!t,n).fold((function(){return bg(t,r).fold(I,o)}),o)},PD=function(e,t,n,r){var o=r.getNode(!1===t);return jA(wn.fromDom(e),wn.fromDom(n.getNode())).map((function(e){return nc(e)?ND.remove(e.dom):ND.moveToElement(o)})).orThunk((function(){return q.some(ND.moveToElement(o))}))},LD=function(e,t,n){return Wg(t,e,n).bind((function(r){return MD(r.getNode())||BD(e,t,n,r)?q.none():t&&ao(r.getNode())||!1===t&&ao(r.getNode(!0))?PD(e,t,n,r):t&&Tw(n)||!1===t&&Sw(n)?q.some(ND.moveToPosition(r)):q.none()}))},ID=function(e,t){return e&&ao(t.nextSibling)?q.some(ND.moveToElement(t.nextSibling)):!1===e&&ao(t.previousSibling)?q.some(ND.moveToElement(t.previousSibling)):q.none()},HD=function(e,t,n){return n.fold((function(e){return q.some(ND.remove(e))}),(function(e){return q.some(ND.moveToElement(e))}),(function(n){return fg(t,n,e)?q.none():q.some(ND.moveToPosition(n))}))},FD=function(e,t,n){return RD(t,n)?ID(t,n.getNode(!1===t)).fold((function(){return LD(e,t,n)}),q.some):LD(e,t,n).bind((function(t){return HD(e,n,t)}))},jD=function(e,t,n){var r=yg(t?1:-1,e,n),o=Nf.fromRangeStart(r),i=wn.fromDom(e);return!1===t&&Tw(o)?q.some(ND.remove(o.getNode(!0))):t&&Sw(o)?q.some(ND.remove(o.getNode())):!1===t&&Sw(o)&&Gw(i,o)?Kw(i,o).map((function(e){return ND.remove(e.getNode())})):t&&Tw(o)&&$w(i,o)?Xw(i,o).map((function(e){return ND.remove(e.getNode())})):FD(e,t,o)},VD=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),jk(e,t,wn.fromDom(n)),!0}},UD=function(e,t){return function(n){var r=t?Nf.before(n):Nf.after(n);return e.selection.setRng(r.toRange()),!0}},qD=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},WD=function(e,t){return q.from(Hh(e.getBody(),t))},$D=function(e,t){var n=e.selection.getNode();return WD(e,n).filter(ao).fold((function(){return jD(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(VD(e,t),UD(e,t),qD(e))}))}),H)},GD=function(e){Z(Tl(e,".mce-offscreen-selection"),Sr)},KD=function(e,t){var n=e.selection.getNode();if(ao(n)&&!co(n)){var r=WD(e,n.parentNode).filter(ao);return r.fold((function(){return GD(wn.fromDom(e.getBody())),jk(e,t,wn.fromDom(e.selection.getNode())),UA(e),!0}),H)}return!1},XD=function(e){var t=e.dom,n=e.selection,r=Hh(e.getBody(),n.getNode());if(io(r)&&t.isBlock(r)&&t.isEmpty(r)){var o=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(o),n.setRng(Nf.before(o).toRange())}return!0},YD=function(e,t){return e.selection.isCollapsed()?$D(e,t):KD(e,t)},JD=function(e,t){var n=Nf.fromRangeStart(e.selection.getRng());return Wg(t,e.getBody(),n).filter((function(e){return t?ww(e):kw(e)})).bind((function(e){return q.from(dg(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},QD=function(e,t){return!!e.selection.isCollapsed()&&JD(e,t)},ZD=Zr,eM=function(e){return ZD(e)&&e.data[0]===da},tM=function(e){return ZD(e)&&e.data[e.data.length-1]===da},nM=function(e){return e.ownerDocument.createTextNode(da)},rM=function(e){if(ZD(e.previousSibling))return tM(e.previousSibling)||e.previousSibling.appendData(da),e.previousSibling;if(ZD(e))return eM(e)||e.insertData(0,da),e;var t=nM(e);return e.parentNode.insertBefore(t,e),t},oM=function(e){if(ZD(e.nextSibling))return eM(e.nextSibling)||e.nextSibling.insertData(0,da),e.nextSibling;if(ZD(e))return tM(e)||e.appendData(da),e;var t=nM(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},iM=function(e,t){return e?rM(t):oM(t)},aM=N(iM,!0),cM=N(iM,!1),uM=function(e,t){return Zr(e.container())?iM(t,e.container()):iM(t,e.getNode())},sM=function(e,t){var n=t.get();return n&&e.container()===n&&ya(n)},lM=function(e,t){return t.fold((function(t){jm(e.get());var n=aM(t);return e.set(n),q.some(Nf(n,n.length-1))}),(function(t){return Jg(t).map((function(t){if(sM(t,e))return Nf(e.get(),1);jm(e.get());var n=uM(t,!0);return e.set(n),Nf(n,1)}))}),(function(t){return Qg(t).map((function(t){if(sM(t,e))return Nf(e.get(),e.get().length-1);jm(e.get());var n=uM(t,!1);return e.set(n),Nf(n,n.length-1)}))}),(function(t){jm(e.get());var n=cM(t);return e.set(n),q.some(Nf(n,1))}))},fM=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return q.none()},dM=ei.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),mM=function(e,t){var n=lg(t,e);return n||e},gM=function(e,t,n){var r=LA(n),o=mM(t,r.container());return NA(e,o,r).fold((function(){return Xg(o,r).bind(N(NA,e,o)).map((function(e){return dM.before(e)}))}),q.none)},pM=function(e,t){return null===tp(e,t)},hM=function(e,t,n){return NA(e,t,n).filter(N(pM,t))},vM=function(e,t,n){var r=IA(n);return hM(e,t,r).bind((function(e){var t=Yg(e,r);return t.isNone()?q.some(dM.start(e)):q.none()}))},yM=function(e,t,n){var r=LA(n);return hM(e,t,r).bind((function(e){var t=Xg(e,r);return t.isNone()?q.some(dM.end(e)):q.none()}))},bM=function(e,t,n){var r=IA(n),o=mM(t,r.container());return NA(e,o,r).fold((function(){return Yg(o,r).bind(N(NA,e,o)).map((function(e){return dM.after(e)}))}),q.none)},wM=function(e){return!1===DA(_M(e))},kM=function(e,t,n){var r=fM([gM,vM,yM,bM],[e,t,n]);return r.filter(wM)},_M=function(e){return e.fold(D,D,D,D)},xM=function(e){return e.fold(A("before"),A("start"),A("end"),A("after"))},CM=function(e){return e.fold(dM.before,dM.before,dM.after,dM.after)},zM=function(e){return e.fold(dM.start,dM.start,dM.end,dM.end)},SM=function(e,t){return xM(e)===xM(t)&&_M(e)===_M(t)},TM=function(e,t,n,r,o,i){return fo(NA(t,n,r),NA(t,n,o),(function(t,r){return t!==r&&RA(n,t,r)?dM.after(e?t:r):i})).getOr(i)},OM=function(e,t){return e.fold(H,(function(e){return!SM(e,t)}))},EM=function(e,t,n,r,o){var i=PA(e,o),a=Wg(e,n,i).map(N(PA,e)),c=a.fold((function(){return r.map(CM)}),(function(o){return kM(t,n,o).map(N(TM,e,t,n,i,o)).filter(N(OM,r))}));return c.filter(wM)},AM=function(e,t){return e?t.fold(O(q.some,dM.start),q.none,O(q.some,dM.after),q.none):t.fold(q.none,O(q.some,dM.before),q.none,O(q.some,dM.end))},DM=function(e,t,n,r){var o=PA(e,r),i=kM(t,n,o);return kM(t,n,o).bind(N(AM,e)).orThunk((function(){return EM(e,t,n,i,r)}))};N(DM,!1),N(DM,!0);var MM,NM=function(e){return z(e.selection.getSel().modify)},RM=function(e,t,n){var r=e?1:-1;return t.setRng(Nf(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},BM=function(e,t){var n=t.selection.getRng(),r=e?Nf.fromRangeEnd(n):Nf.fromRangeStart(n);return!!NM(t)&&(e&&_a(r)?RM(!0,t.selection,r):!(e||!xa(r))&&RM(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(MM||(MM={}));var PM,LM=function(e,t){return e===Rf.Backwards?fe(t):t},IM=function(e,t,n){return e===Rf.Forwards?t.next(n):t.prev(n)},HM=function(e,t,n,r){return ro(r.getNode(t===Rf.Forwards))?MM.Br:!1===fg(n,r)?MM.Block:MM.Wrap},FM=function(e,t,n,r){var o=Lg(n),i=r,a=[];while(i){var c=IM(t,o,i);if(!c)break;if(ro(c.getNode(!1)))return t===Rf.Forwards?{positions:LM(t,a).concat([c]),breakType:MM.Br,breakAt:q.some(c)}:{positions:LM(t,a),breakType:MM.Br,breakAt:q.some(c)};if(c.isVisible()){if(e(i,c)){var u=HM(n,t,i,c);return{positions:LM(t,a),breakType:u,breakAt:q.some(c)}}a.push(c),i=c}else i=c}return{positions:LM(t,a),breakType:MM.Eol,breakAt:q.none()}},jM=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var o=t(n,r).positions;return e===Rf.Backwards?o.concat(r):[r].concat(o)})).getOr([])},VM=function(e,t){return oe(e,(function(e,n){return e.fold((function(){return q.some(n)}),(function(r){return fo(he(r.getClientRects()),he(n.getClientRects()),(function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return a<=i?n:r})).or(e)}))}),q.none())},UM=function(e,t){return he(t.getClientRects()).bind((function(t){return VM(e,t.left)}))},qM=N(FM,Nf.isAbove,-1),WM=N(FM,Nf.isBelow,1),$M=N(jM,-1,qM),GM=N(jM,1,WM),KM=function(e,t){return qM(e,t).breakAt.isNone()},XM=function(e,t){return WM(e,t).breakAt.isNone()},YM=function(e){return Jg(e).map((function(t){return[t].concat(WM(e,t).positions)})).getOr([])},JM=function(e){return Qg(e).map((function(t){return qM(e,t).positions.concat(t)})).getOr([])},QM=function(e){var t=function(t){return Q(t,(function(t){var n=Jl(t);return n.node=e,n}))};if(Ur(e))return t(e.getClientRects());if(Zr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},ZM=function(e){return se(e,QM)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(PM||(PM={}));var eN,tN,nN=function(e,t,n,r){while(r=sg(r,e,Wa,t))if(n(r))return},rN=function(e,t,n,r,o,i){var a=0,c=[],u=function(r){var i=ZM([r]);-1===e&&(i=i.reverse());for(var u=0;u<i.length;u++){var l=i[u];if(!n(l,s)){if(c.length>0&&t(l,Ue(c))&&a++,l.line=a,o(l))return!0;c.push(l)}}},s=Ue(i.getClientRects());if(!s)return c;var l=i.getNode();return u(l),nN(e,r,u,l),c},oN=function(e,t){return t.line>e},iN=function(e,t){return t.line===e},aN=N(rN,PM.Up,tf,nf),cN=N(rN,PM.Down,nf,tf),uN=function(e,t,n,r){var o,i,a,c,u=Lg(t),s=[],l=0,f=function(e){return Ue(e.getClientRects())};1===e?(o=u.next,i=nf,a=tf,c=Nf.after(r)):(o=u.prev,i=tf,a=nf,c=Nf.before(r));var d=f(c);do{if(c.isVisible()){var m=f(c);if(!a(m,d)){s.length>0&&i(m,Ue(s))&&l++;var g=Jl(m);if(g.position=c,g.line=l,n(g))return s;s.push(g)}}}while(c=o(c));return s},sN=function(e){return function(t){return oN(e,t)}},lN=function(e){return function(t){return iN(e,t)}},fN=ao,dN=sg,mN=function(e,t){return Math.abs(e.left-t)},gN=function(e,t){return Math.abs(e.right-t)},pN=function(e,t){return e>=t.left&&e<=t.right},hN=function(e,t){return e>=t.top&&e<=t.bottom},vN=function(e){return Ne(e,"node")},yN=function(e,t,n){return void 0===n&&(n=H),je(e,(function(e,r){if(pN(t,r))return n(r)?r:e;if(pN(t,e))return n(e)?e:r;var o=Math.min(mN(e,t),gN(e,t)),i=Math.min(mN(r,t),gN(r,t));return i===o&&vN(r)&&fN(r.node)||i<o?r:e}))},bN=function(e,t,n,r,o){var i=dN(r,e,Wa,t,!o);do{if(!i||n(i))return}while(i=dN(i,e,Wa,t))},wN=function(e,t,n){void 0===n&&(n=!0);var r=[],o=function(e,n){var o=ne(ZM([n]),(function(n){return!e(n,t)}));return r=r.concat(o),0===o.length};return r.push(t),bN(PM.Up,e,N(o,tf),t.node,n),bN(PM.Down,e,N(o,nf),t.node,n),r},kN=function(e){return ne(ye(e.getElementsByTagName("*")),Qm)},_N=function(e,t){return{node:e.node,before:mN(e,t)<gN(e,t)}},xN=function(e,t,n){var r=ZM(kN(e)),o=ne(r,N(hN,n)),i=function(e){return!Yr(e.node)&&!uo(e.node)},a=yN(o,t,i);if(a){var c=i(a);if(a=yN(wN(e,a,c),t,i),a&&Qm(a.node))return _N(a,t)}return null},CN=function(e,t){e.selection.setRng(t),ny(e,e.selection.getRng())},zN=function(e,t,n){return q.some(zD(e,t,n))},SN=function(e,t,n,r,o,i){var a=t===Rf.Forwards,c=Lg(e.getBody()),u=N(xg,a?c.next:c.prev),s=a?r:o;if(!n.collapsed){var l=af(n);if(i(l))return kD(t,e,l,t===Rf.Backwards,!1)}var f=wg(t,e.getBody(),n);if(s(f))return xD(e,f.getNode(!a));var d=PA(a,u(f)),m=Aa(n);if(!d)return m?q.some(n):q.none();if(s(d))return kD(t,e,d.getNode(!a),a,!1);var g=u(d);return g&&s(g)&&Cg(d,g)?kD(t,e,g.getNode(!a),a,!1):m?zN(e,d.toRange(),!1):q.none()},TN=function(e,t,n,r,o,i){var a=wg(t,e.getBody(),n),c=Ue(a.getClientRects()),u=t===PM.Down;if(!c)return q.none();var s,l=u?cN:aN,f=l(e.getBody(),sN(1),a),d=ne(f,lN(1)),m=c.left,g=yN(d,m);if(g&&i(g.node)){var p=Math.abs(m-g.left),h=Math.abs(m-g.right);return kD(t,e,g.node,p<h,!1)}if(s=r(a)?a.getNode():o(a)?a.getNode(!0):af(n),s){var v=uN(t,e.getBody(),sN(1),s),y=yN(ne(v,lN(1)),m);if(y)return zN(e,y.position.toRange(),!1);if(y=Ue(ne(v,lN(0))),y)return zN(e,y.position.toRange(),!1)}return 0===d.length?ON(e,u).filter(u?o:r).map((function(t){return zD(e,t.toRange(),!1)})):q.none()},ON=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var o=Nf.fromRangeEnd(n),i=WM(r,o);return ve(i.positions)}o=Nf.fromRangeStart(n),i=qM(r,o);return he(i.positions)},EN=function(e,t,n){return ON(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},AN=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},DN=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},MN=function(e,t,n){return lM(t,n).map((function(t){return AN(e,t),n}))},NN=function(e,t,n){var r=e.getBody(),o=Nf.fromRangeStart(e.selection.getRng()),i=N(AA,e),a=DM(n,i,r,o);return a.bind((function(n){return MN(e,t,n)}))},RN=function(e,t,n){var r=Q(Tl(wn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),o=ne(r,e),i=ne(n,e);Z(de(o,i),N(DN,!1)),Z(de(i,o),N(DN,!0))},BN=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Nf.fromRangeStart(e.selection.getRng());Nf.isTextPosition(n)&&!1===BA(n)&&(AN(e,Fm(t.get(),n)),t.set(null))}},PN=function(e,t,n,r){if(t.selection.isCollapsed()){var o=ne(r,e);Z(o,(function(r){var o=Nf.fromRangeStart(t.selection.getRng());kM(e,t.getBody(),o).bind((function(e){return MN(t,n,e)}))}))}},LN=function(e,t,n){return!!am(e)&&NN(e,t,n).isSome()},IN=function(e,t,n){return!!am(t)&&BM(e,t)},HN=function(e){var t=Ys(null),n=N(AA,e);return e.on("NodeChange",(function(r){!am(e)||en.browser.isIE()&&r.initial||(RN(n,e.dom,r.parents),BN(e,t),PN(n,e,t,r.parents))})),t},FN=N(IN,!0),jN=N(IN,!1),VN=function(e,t,n){if(am(e)){var r=ON(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Nf.fromRangeEnd(n):Nf.fromRangeStart(n)}));return kM(N(AA,e),e.getBody(),r).exists((function(t){var r=CM(t);return lM(n,r).exists((function(t){return AN(e,t),!0}))}))}return!1},UN=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},qN=function(e){return fo(Jg(e),Qg(e),(function(t,n){var r=PA(!0,t),o=PA(!1,n);return Xg(e,r).forall((function(e){return e.isEqual(o)}))})).getOr(!0)},WN=function(e,t){return function(n){return lM(t,n).exists((function(t){return AN(e,t),!0}))}},$N=function(e,t,n,r){var o=e.getBody(),i=N(AA,e);e.undoManager.ignore((function(){e.selection.setRng(UN(n,r)),e.execCommand("Delete"),kM(i,o,Nf.fromRangeStart(e.selection.getRng())).map(zM).map(WN(e,t))})),e.nodeChanged()},GN=function(e,t){var n=lg(t,e);return n||e},KN=function(e,t,n,r){var o=GN(e.getBody(),r.container()),i=N(AA,e),a=kM(i,o,r);return a.bind((function(e){return n?e.fold(A(q.some(zM(e))),q.none,A(q.some(CM(e))),q.none):e.fold(q.none,A(q.some(CM(e))),q.none,A(q.some(zM(e))))})).map(WN(e,t)).getOrThunk((function(){var c=$g(n,o,r),u=c.bind((function(e){return kM(i,o,e)}));return fo(a,u,(function(){return NA(i,o,r).exists((function(t){return!!qN(t)&&(jk(e,n,wn.fromDom(t)),!0)}))})).orThunk((function(){return u.bind((function(o){return c.map((function(o){return n?$N(e,t,r,o):$N(e,t,o,r),!0}))}))})).getOr(!1)}))},XN=function(e,t,n){if(e.selection.isCollapsed()&&am(e)){var r=Nf.fromRangeStart(e.selection.getRng());return KN(e,t,n,r)}return!1},YN=function(e,t){var n=Bw(t,e);return ce(n,Ji).fold(A(n),(function(e){return n.slice(0,e)}))},JN=function(e){return 1===cr(e)},QN=function(e,t,n,r){var o=N(dC,t),i=Q(ne(r,o),(function(e){return e.dom}));if(0===i.length)jk(t,e,n);else{var a=fC(n.dom,i);t.selection.setRng(a.toRange())}},ZN=function(e,t){var n=wn.fromDom(e.getBody()),r=wn.fromDom(e.selection.getStart()),o=ne(YN(n,r),JN);return ve(o).exists((function(n){var r=Nf.fromRangeStart(e.selection.getRng());return!(!qA(t,r,n.dom)||mC(n))&&(QN(t,e,n,o),!0)}))},eR=function(e,t){return!!e.selection.isCollapsed()&&ZN(e,t)},tR=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),jk(e,t,wn.fromDom(n)),!0},nR=function(e,t){var n=t?_w:xw,r=t?Rf.Forwards:Rf.Backwards,o=wg(r,e.getBody(),e.selection.getRng());return n(o)?tR(e,t,o.getNode(!t)):q.from(PA(t,o)).filter((function(e){return n(e)&&Cg(o,e)})).exists((function(n){return tR(e,t,n.getNode(!t))}))},rR=function(e,t){var n=e.selection.getNode();return!!uo(n)&&tR(e,t,n)},oR=function(e,t){return e.selection.isCollapsed()?nR(e,t):rR(e,t)},iR=function(e){return xi(e,(function(e){return io(e.dom)||ao(e.dom)})).exists((function(e){return io(e.dom)}))},aR=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},cR=function(e,t){var n=e||Qi(t)?"margin":"padding",r="rtl"===So(t,"direction")?"-right":"-left";return n+r},uR=function(e,t,n,r,o,i){var a=cR(n,wn.fromDom(i));if("outdent"===t){var c=Math.max(0,aR(i.style[a])-r);e.setStyle(i,a,c?c+o:"")}else{c=aR(i.style[a])+r+o;e.setStyle(i,a,c)}},sR=function(e,t){return le(t,(function(t){var n=cR(Gd(e),t),r=Oo(t,n).map(aR).getOr(0),o=e.dom.getContentEditable(t.dom);return"false"!==o&&r>0}))},lR=function(e){var t=mR(e);return!e.mode.isReadOnly()&&(t.length>1||sR(e,t))},fR=function(e){return na(e)||ra(e)},dR=function(e){return Yn(e).exists(fR)},mR=function(e){return ne(Vl(e.selection.getSelectedBlocks()),(function(e){return!fR(e)&&!dR(e)&&iR(e)}))},gR=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=Kd(e),a=/[a-z%]+$/i.exec(i)[0],c=parseInt(i,10),u=Gd(e),s=zd(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==s||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),Z(mR(e),(function(e){uR(n,t,u,c,a,e.dom)}))},pR=function(e,t){if(e.selection.isCollapsed()&&lR(e)){var n=e.dom,r=e.selection.getRng(),o=Nf.fromRangeStart(r),i=n.getParent(r.startContainer,n.isBlock);if(null!==i&&Fw(wn.fromDom(i),o))return gR(e,"outdent"),!0}return!1},hR=function(e,t){e.getDoc().execCommand(t,!1,null)},vR=function(e,t){pR(e)||YD(e,!1)||DD(e,!1)||XN(e,t,!1)||fD(e,!1)||L_(e)||QD(e,!1)||oR(e,!1)||yD(e)||eR(e,!1)||(hR(e,"Delete"),UA(e))},yR=function(e,t){YD(e,!0)||DD(e,!0)||XN(e,t,!0)||fD(e,!0)||L_(e)||QD(e,!0)||oR(e,!0)||yD(e)||eR(e,!0)||hR(e,"ForwardDelete")},bR=function(e,t){e.addCommand("delete",(function(){vR(e,t)})),e.addCommand("forwardDelete",(function(){yR(e,t)}))},wR=5,kR=400,_R=function(e){return void 0===e.touches||1!==e.touches.length?q.none():q.some(e.touches[0])},xR=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>wR||r>wR},CR=function(e){var t=dl(),n=Ys(!1),r=gl((function(t){e.fire("longpress",qe(qe({},t),{type:"longpress"})),n.set(!0)}),kR);e.on("touchstart",(function(e){_R(e).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(i)}))}),!0),e.on("touchmove",(function(o){r.cancel(),_R(o).each((function(r){t.on((function(o){xR(r,o)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(o){r.cancel(),"touchcancel"!==o.type&&t.get().filter((function(e){return e.target.isEqualNode(o.target)})).each((function(){n.get()?o.preventDefault():e.fire("tap",qe(qe({},o),{type:"tap"}))}))}),!0)},zR=function(e,t){return Me(e,t.nodeName)},SR=function(e,t){return!!Zr(t)||!!Ur(t)&&(!zR(e,t)&&!_p(t))},TR=function(e,t,n){return J(Rw(wn.fromDom(n),wn.fromDom(t)),(function(t){return zR(e,t.dom)}))},OR=function(e,t){if(Zr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||zR(e,t.nextSibling)))return!0}return!1},ER=function(e){var t,n,r,o=e.dom,i=e.selection,a=e.schema,c=a.getBlockElements(),u=i.getStart(),s=e.getBody(),l=zd(e);if(u&&Ur(u)&&l){var f=s.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!TR(c,s,u)){var d=i.getRng(),m=d.startContainer,g=d.startOffset,p=d.endContainer,h=d.endOffset,v=db(e);u=s.firstChild;while(u)if(SR(c,u)){if(OR(c,u)){n=u,u=u.nextSibling,o.remove(n);continue}t||(t=o.create(l,Sd(e)),u.parentNode.insertBefore(t,u),r=!0),n=u,u=u.nextSibling,t.appendChild(n)}else t=null,u=u.nextSibling;r&&v&&(d.setStart(m,g),d.setEnd(p,h),i.setRng(d),e.nodeChanged())}}},AR=function(e){zd(e)&&e.on("NodeChange",N(ER,e))},DR=function(e){return Ti(wn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},MR=function(e){e.selection.setRng(e.selection.getRng())},NR=function(e,t){t.hasAttribute("data-mce-caret")&&(Ea(t),MR(e),e.selection.scrollIntoView(t))},RR=function(e,t){var n=DR(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void NR(e,n)):void(wa(n)&&(NR(e,n),e.undoManager.add()))},BR=function(e){e.on("keyup compositionstart",N(RR,e))},PR=ao,LR=function(e,t,n){return SN(t,e,n,Sw,Tw,PR)},IR=function(e,t,n){var r=function(e){return Sw(e)||Cw(e)},o=function(e){return Tw(e)||zw(e)};return TN(t,e,n,r,o,PR)},HR=function(e){var t=e.dom.create(zd(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},FR=function(e,t,n){var r=Lg(e.getBody()),o=N(xg,1===t?r.next:r.prev);if(n.collapsed&&ym(e)){var i=e.dom.getParent(n.startContainer,"PRE");if(!i)return;var a=o(Nf.fromRangeStart(n));if(!a){var c=HR(e);1===t?e.$(i).after(c):e.$(i).before(c),e.selection.select(c,!0),e.selection.collapse()}}},jR=function(e,t){var n=t?Rf.Forwards:Rf.Backwards,r=e.selection.getRng();return LR(n,e,r).orThunk((function(){return FR(e,n,r),q.none()}))},VR=function(e,t){var n=t?1:-1,r=e.selection.getRng();return IR(n,e,r).orThunk((function(){return FR(e,n,r),q.none()}))},UR=function(e,t){return jR(e,t).exists((function(t){return CN(e,t),!0}))},qR=function(e,t){return VR(e,t).exists((function(t){return CN(e,t),!0}))},WR=function(e,t){var n=t?Tw:Sw;return EN(e,t,n)},$R=function(e){return Y(["figcaption"],Ln(e))},GR=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},KR=function(e,t,n){n?kr(e,t):wr(e,t)},XR=function(e,t){var n=wn.fromTag("br");return KR(e,n,t),GR(n)},YR=function(e,t,n,r){var o=wn.fromTag(n),i=wn.fromTag("br");return yo(o,r),kr(o,i),KR(e,o,t),GR(i)},JR=function(e,t,n,r){return""===t?XR(e,r):YR(e,r,t,n)},QR=function(e,t){var n=N(Nn,t);return xi(wn.fromDom(e.container()),Ji,n).filter($R)},ZR=function(e,t,n){return t?XM(e.dom,n):KM(e.dom,n)},eB=function(e,t){var n=wn.fromDom(e.getBody()),r=Nf.fromRangeStart(e.selection.getRng()),o=zd(e),i=Sd(e);return QR(r,n).exists((function(){if(ZR(n,t,r)){var a=JR(n,o,i,t);return e.selection.setRng(a),!0}return!1}))},tB=function(e,t){return!!e.selection.isCollapsed()&&eB(e,t)},nB=function(e){return Q(e,(function(e){return qe({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:T},e)}))},rB=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},oB=function(e,t){return se(nB(e),(function(e){return rB(e,t)?[e]:[]}))},iB=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},aB=function(e,t){return ae(oB(e,t),(function(e){return e.action()}))},cB=function(e,t){var n=t?Rf.Forwards:Rf.Backwards,r=e.selection.getRng();return SN(e,n,r,_w,xw,uo).exists((function(t){return CN(e,t),!0}))},uB=function(e,t){var n=t?1:-1,r=e.selection.getRng();return TN(e,n,r,_w,xw,uo).exists((function(t){return CN(e,t),!0}))},sB=function(e,t){var n=t?xw:_w;return EN(e,t,n)},lB=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},fB=function(e,t){return se(t,(function(t){var n=lB(Jl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},dB=function(e,t,n){return oe(e,(function(e,r){return e.fold((function(){return q.some(r)}),(function(e){var o=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),i=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return q.some(i<o?r:e)}))}),q.none())},mB=function(e,t,n,r,o){var i=Tl(wn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(fB(e,i),(function(e){return t(e,o)}));return dB(a,r,o).map((function(e){return e.cell}))},gB=function(e){return e.bottom},pB=function(e){return e.top},hB=function(e,t){return e.y<t},vB=function(e,t){return e.y>t},yB=N(mB,gB,hB),bB=N(mB,pB,vB),wB=function(e,t){return he(t.getClientRects()).bind((function(t){return yB(e,t.left,t.top)})).bind((function(e){return UM(JM(e),t)}))},kB=function(e,t){return ve(t.getClientRects()).bind((function(t){return bB(e,t.left,t.top)})).bind((function(e){return UM(YM(e),t)}))},_B=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},xB=function(e){return e.breakType===MM.Wrap&&0===e.positions.length},CB=function(e){return e.breakType===MM.Br&&1===e.positions.length},zB=function(e,t,n){var r=e(t,n);return xB(r)||!ro(n.getNode())&&CB(r)?!_B(e,t,r):r.breakAt.isNone()},SB=N(zB,qM),TB=N(zB,WM),OB=function(e,t,n){var r=Nf.fromRangeStart(t);return Kg(!e,n).exists((function(e){return e.isEqual(r)}))},EB=function(e,t,n,r){var o=e.selection.getRng(),i=t?1:-1;return!(!Ym()||!OB(t,o,n))&&(kD(i,e,n,!t,!1).each((function(t){CN(e,t)})),!0)},AB=function(e,t,n){return wB(t,n).orThunk((function(){return he(n.getClientRects()).bind((function(n){return VM($M(e,Nf.before(t)),n.left)}))})).getOr(Nf.before(t))},DB=function(e,t,n){return kB(t,n).orThunk((function(){return he(n.getClientRects()).bind((function(n){return VM(GM(e,Nf.after(t)),n.left)}))})).getOr(Nf.after(t))},MB=function(e,t){var n=t.getNode(e);return Ur(n)&&"TABLE"===n.nodeName?q.some(n):q.none()},NB=function(e,t,n,r){var o=zd(t);o?t.undoManager.transact((function(){var r=wn.fromTag(o);yo(r,Sd(t)),kr(r,wn.fromTag("br")),e?br(wn.fromDom(n),r):yr(wn.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom,0),i.setEnd(r.dom,0),CN(t,i)})):CN(t,r.toRange())},RB=function(e,t,n){var r=MB(!!t,n),o=!1===t;r.fold((function(){return CN(e,n.toRange())}),(function(r){return Kg(o,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return CN(e,n.toRange())}),(function(o){return NB(t,e,r,n)}))}))},BB=function(e,t,n,r){var o=e.selection.getRng(),i=Nf.fromRangeStart(o),a=e.getBody();if(!t&&SB(r,i)){var c=AB(a,n,i);return RB(e,t,c),!0}if(t&&TB(r,i)){c=DB(a,n,i);return RB(e,t,c),!0}return!1},PB=function(e,t,n){return q.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return q.from(e.dom.getParent(r,"table")).map((function(o){return n(e,t,o,r)}))})).getOr(!1)},LB=function(e,t){return PB(e,t,EB)},IB=function(e,t){return PB(e,t,BB)},HB=function(e,t,n){var r=Wt().os;aB([{keyCode:tv.RIGHT,action:iB(UR,e,!0)},{keyCode:tv.LEFT,action:iB(UR,e,!1)},{keyCode:tv.UP,action:iB(qR,e,!1)},{keyCode:tv.DOWN,action:iB(qR,e,!0)},{keyCode:tv.RIGHT,action:iB(LB,e,!0)},{keyCode:tv.LEFT,action:iB(LB,e,!1)},{keyCode:tv.UP,action:iB(IB,e,!1)},{keyCode:tv.DOWN,action:iB(IB,e,!0)},{keyCode:tv.RIGHT,action:iB(cB,e,!0)},{keyCode:tv.LEFT,action:iB(cB,e,!1)},{keyCode:tv.UP,action:iB(uB,e,!1)},{keyCode:tv.DOWN,action:iB(uB,e,!0)},{keyCode:tv.RIGHT,action:iB(LN,e,t,!0)},{keyCode:tv.LEFT,action:iB(LN,e,t,!1)},{keyCode:tv.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:iB(FN,e,t)},{keyCode:tv.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:iB(jN,e,t)},{keyCode:tv.UP,action:iB(tB,e,!1)},{keyCode:tv.DOWN,action:iB(tB,e,!0)}],n).each((function(e){n.preventDefault()}))},FB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&HB(e,t,n)}))},jB=function(e,t,n){aB([{keyCode:tv.BACKSPACE,action:iB(pR,e,!1)},{keyCode:tv.BACKSPACE,action:iB(YD,e,!1)},{keyCode:tv.DELETE,action:iB(YD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(DD,e,!1)},{keyCode:tv.DELETE,action:iB(DD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(XN,e,t,!1)},{keyCode:tv.DELETE,action:iB(XN,e,t,!0)},{keyCode:tv.BACKSPACE,action:iB(L_,e,!1)},{keyCode:tv.DELETE,action:iB(L_,e,!0)},{keyCode:tv.BACKSPACE,action:iB(QD,e,!1)},{keyCode:tv.DELETE,action:iB(QD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(oR,e,!1)},{keyCode:tv.DELETE,action:iB(oR,e,!0)},{keyCode:tv.BACKSPACE,action:iB(yD,e,!1)},{keyCode:tv.DELETE,action:iB(yD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(fD,e,!1)},{keyCode:tv.DELETE,action:iB(fD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(eR,e,!1)},{keyCode:tv.DELETE,action:iB(eR,e,!0)}],n).each((function(e){n.preventDefault()}))},VB=function(e,t){aB([{keyCode:tv.BACKSPACE,action:iB(XD,e)},{keyCode:tv.DELETE,action:iB(XD,e)}],t)},UB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&jB(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&VB(e,t)}))},qB=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},WB=function(e,t){var n,r=t,o=e.dom,i=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=qB(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(o.doc.createTextNode(sa),t.firstChild)}var c=o.createRng();if(t.normalize(),t.hasChildNodes()){var u=new Fi(t,t);while(n=u.current()){if(Zr(n)){c.setStart(n,0),c.setEnd(n,0);break}if(i[n.nodeName.toLowerCase()]){c.setStartBefore(n),c.setEndBefore(n);break}r=n,n=u.next()}n||(c.setStart(r,0),c.setEnd(r,0))}else ro(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(c.setStartBefore(t),c.setEndBefore(t)):(c.setStartAfter(t),c.setEndAfter(t)):(c.setStart(t,0),c.setEnd(t,0));e.selection.setRng(c),ny(e,c)}},$B=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},GB=function(e){return q.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},KB=function(e){return GB(e).fold(A(""),(function(e){return e.nodeName.toUpperCase()}))},XB=function(e){return GB(e).filter((function(e){return ra(wn.fromDom(e))})).isSome()},YB=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},JB=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},QB=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},ZB=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},eP=function(e){return ZB(e)&&ZB(e.parentNode)},tP=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},nP=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Ur(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},rP=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){eP(n)&&(o="LI");var c=o?t(o):i.create("BR");if(nP(n,r,!0)&&nP(n,r,!1))if(QB(n,"LI")){var u=tP(n);i.insertAfter(c,u),JB(n)?i.remove(u):i.remove(n)}else i.replace(c,n);else if(nP(n,r,!0))QB(n,"LI")?(i.insertAfter(c,tP(n)),c.appendChild(i.doc.createTextNode(" ")),c.appendChild(n)):n.parentNode.insertBefore(c,n),i.remove(r);else if(nP(n,r,!1))i.insertAfter(c,tP(n)),i.remove(r);else{n=tP(n);var s=a.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();"LI"===o&&YB(l,"LI")?(c=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(c,n)),i.remove(r)}WB(e,c)}},oP=function(e){Z(Sl(wn.fromDom(e),Vn),(function(e){var t=e.dom;t.nodeValue=ga(t.nodeValue)}))},iP=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},aP=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},cP=function(e){e.innerHTML='<br data-mce-bogus="1">'},uP=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},sP=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},lP=function(e,t,n){var r,o=n,i=[];if(o){while(o=o.firstChild){if(e.isBlock(o))return;Ur(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}r=i.length;while(r--)o=i[r],(!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue||iP(e,o))&&e.remove(o)}},fP=function(e,t,n){return!1===Zr(t)?n:e?1===n&&t.data.charAt(n-1)===da?0:n:n===t.data.length-1&&t.data.charAt(n)===da?t.data.length:n},dP=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,fP(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,fP(!1,e.endContainer,e.endOffset)),t},mP=function(e){do{Zr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},gP=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},pP=function(e,t,n){var r=e.dom;q.from(n.style).map(r.parseStyle).each((function(e){var n=Eo(wn.fromDom(t)),o=qe(qe({},n),e);r.setStyles(t,o)}));var o=q.from(n.class).map((function(e){return e.split(/\s+/)})),i=q.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));fo(o,i,(function(e,n){var o=ne(n,(function(t){return!Y(e,t)})),i=$e($e([],e,!0),o,!0);r.setAttrib(t,"class",i.join(" "))}));var a=["style","class"],c=Oe(n,(function(e,t){return!Y(a,t)}));r.setAttribs(t,c)},hP=function(e,t){var n=zd(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Sd(e);pP(e,t,r)}},vP=function(e,t,n,r,o){var i,a,c,u,s,l,f=t||"P",d=e.dom,m=gP(d,r);if(a=d.getParent(r,d.isBlock),!a||!sP(d,a)){if(a=a||m,l=a===e.getBody()||aP(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),hP(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;u=r;while(u.parentNode!==a)u=u.parentNode;while(u&&!d.isBlock(u))c=u,u=u.previousSibling;if(c&&e.schema.isValidChild(l,f.toLowerCase())){i=d.create(f),hP(e,i),c.parentNode.insertBefore(i,c),u=c;while(u&&!d.isBlock(u))s=u.nextSibling,i.appendChild(u),u=s;n.setStart(r,o),n.setEnd(r,o)}}return r},yP=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},bP=function(e,t){var n,r,o,i,a,c,u,s,l,f,d=e.dom,m=e.schema,g=m.getNonEmptyElements(),p=e.selection.getRng(),h=function(t){var n,o,a,c=r,u=m.getTextInlineElements();if(n=t||"TABLE"===s||"HR"===s?d.create(t||l):i.cloneNode(!1),a=n,!1===Ed(e))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(u[c.nodeName]){if(ep(c)||_p(c))continue;o=c.cloneNode(!1),d.setAttrib(o,"id",""),n.hasChildNodes()?(o.appendChild(n.firstChild),n.appendChild(o)):(a=o,n.appendChild(o))}}while((c=c.parentNode)&&c!==k);return hP(e,n),cP(a),n},v=function(e){var t,n,a=fP(e,r,o);if(Zr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===i&&f&&!e)return!0;if(e&&Ur(r)&&r===i.firstChild)return!0;if(uP(r,"TABLE")||uP(r,"HR"))return f&&!e||!f&&e;var c=new Fi(r,i);Zr(r)&&(e&&0===a?c.prev():e||a!==r.nodeValue.length||c.next());while(t=c.current()){if(Ur(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),g[n]&&"br"!==n))return!1}else if(Zr(t)&&!Ga(t.nodeValue))return!1;e?c.prev():c.next()}return!0},y=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(s)&&"HGROUP"!==_?h(l):h(),Ad(e)&&sP(d,u)&&d.isEmpty(i)?a=d.split(u,i):d.insertAfter(a,i),WB(e,a)};kv(d,p).each((function(e){p.setStart(e.startContainer,e.startOffset),p.setEnd(e.endContainer,e.endOffset)})),r=p.startContainer,o=p.startOffset,l=zd(e);var b=!(!t||!t.shiftKey),w=!(!t||!t.ctrlKey);Ur(r)&&r.hasChildNodes()&&(f=o>r.childNodes.length-1,r=r.childNodes[Math.min(o,r.childNodes.length-1)]||r,o=f&&Zr(r)?r.nodeValue.length:0);var k=gP(d,r);if(k){(l&&!b||!l&&b)&&(r=vP(e,l,p,r,o)),i=d.getParent(r,d.isBlock),u=i?d.getParent(i.parentNode,d.isBlock):null,s=i?i.nodeName.toUpperCase():"";var _=u?u.nodeName.toUpperCase():"";"LI"!==_||w||(i=u,u=u.parentNode,s=_),/^(LI|DT|DD)$/.test(s)&&d.isEmpty(i)?rP(e,h,u,i,l):l&&i===e.getBody()||(l=l||"P",va(i)?(a=Ea(i),d.isEmpty(i)&&cP(i),hP(e,a),WB(e,a)):v()?y():v(!0)?(a=i.parentNode.insertBefore(h(),i),WB(e,uP(i,"HR")?a:i)):(n=dP(p).cloneRange(),n.setEndAfter(i),c=n.extractContents(),oP(c),mP(c),a=c.firstChild,d.insertAfter(c,i),lP(d,g,a),yP(d,i),d.isEmpty(i)&&cP(i),a.normalize(),d.isEmpty(a)?(d.remove(a),y()):(hP(e,a),WB(e,a))),d.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},wP=function(e,t,n){var r,o=new Fi(t,n),i=e.getNonEmptyElements();while(r=o.next())if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},kP=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),ny(e,r)},_P=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();kv(i,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var c=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var s=c>u.childNodes.length-1;u=u.childNodes[Math.min(c,u.childNodes.length-1)]||u,c=s&&3===u.nodeType?u.nodeValue.length:0}var l=i.getParent(u,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",m=!(!t||!t.ctrlKey);"LI"!==d||m||(l=f),u&&3===u.nodeType&&c>=u.nodeValue.length&&(wP(e.schema,u,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),If(i,a,n),kP(e,n,r),e.undoManager.add()},xP=function(e,t){var n=wn.fromTag("br");yr(wn.fromDom(t),n),e.undoManager.add()},CP=function(e,t){SP(e.getBody(),t)||br(wn.fromDom(t),wn.fromTag("br"));var n=wn.fromTag("br");br(wn.fromDom(t),n),kP(e,n.dom,!1),e.undoManager.add()},zP=function(e){return ro(e.getNode())},SP=function(e,t){return!!zP(Nf.after(t))||Xg(e,Nf.after(t)).map((function(e){return ro(e.getNode())})).getOr(!1)},TP=function(e){return e&&"A"===e.nodeName&&"href"in e},OP=function(e){return e.fold(I,TP,TP,I)},EP=function(e){var t=N(AA,e),n=Nf.fromRangeStart(e.selection.getRng());return kM(t,e.getBody(),n).filter(OP)},AP=function(e,t){t.fold(T,N(xP,e),N(CP,e),T)},DP=function(e,t){var n=EP(e);n.isSome()?n.each(N(AP,e)):_P(e,t)},MP=function(e,t){return GB(e).filter((function(e){return t.length>0&&En(wn.fromDom(e),t)})).isSome()},NP=function(e){return MP(e,Td(e))},RP=function(e){return MP(e,Od(e))},BP=ei.generate([{br:[]},{block:[]},{none:[]}]),PP=function(e,t){return RP(e)},LP=function(e){return function(t,n){var r=""===zd(t);return r===e}},IP=function(e){return function(t,n){return XB(t)===e}},HP=function(e,t){return function(n,r){var o=KB(n)===e.toUpperCase();return o===t}},FP=function(e){return HP("pre",e)},jP=function(){return HP("summary",!0)},VP=function(e){return function(t,n){return Cd(t)===e}},UP=function(e,t){return NP(e)},qP=function(e,t){return t},WP=function(e){var t=zd(e),n=$B(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},$P=function(e,t){return function(n,r){var o=oe(e,(function(e,t){return e&&t(n,r)}),!0);return o?q.some(t):q.none()}},GP=function(e,t){return fM([$P([PP],BP.none()),$P([jP()],BP.br()),$P([FP(!0),VP(!1),qP],BP.br()),$P([FP(!0),VP(!1)],BP.block()),$P([FP(!0),VP(!0),qP],BP.block()),$P([FP(!0),VP(!0)],BP.br()),$P([IP(!0),qP],BP.br()),$P([IP(!0)],BP.block()),$P([LP(!0),qP,WP],BP.block()),$P([LP(!0)],BP.br()),$P([UP],BP.br()),$P([LP(!1),qP],BP.br()),$P([WP],BP.block())],[e,!(!t||!t.shiftKey)]).getOr(BP.none())},KP=function(e,t){GP(e,t).fold((function(){DP(e,t)}),(function(){bP(e,t)}),T)},XP=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),_S(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),KP(e,t)})))},YP=function(e){e.on("keydown",(function(t){t.keyCode===tv.ENTER&&XP(e,t)}))},JP=function(e,t,n){aB([{keyCode:tv.END,action:iB(WR,e,!0)},{keyCode:tv.HOME,action:iB(WR,e,!1)},{keyCode:tv.END,action:iB(sB,e,!0)},{keyCode:tv.HOME,action:iB(sB,e,!1)},{keyCode:tv.END,action:iB(VN,e,!0,t)},{keyCode:tv.HOME,action:iB(VN,e,!1,t)}],n).each((function(e){n.preventDefault()}))},QP=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&JP(e,t,n)}))},ZP=Wt().browser,eL=function(e){var t=ml((function(){e.composing||vk(e)}),0);ZP.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},tL=function(e){eL(e),e.on("input",(function(t){!1===t.isComposing&&vk(e)}))},nL=Wt(),rL=function(e,t,n){aB([{keyCode:tv.PAGE_UP,action:iB(VN,e,!1,t)},{keyCode:tv.PAGE_DOWN,action:iB(VN,e,!0,t)}],n)},oL=function(e){return e.stopImmediatePropagation()},iL=function(e){return e.keyCode===tv.PAGE_UP||e.keyCode===tv.PAGE_DOWN},aL=function(e,t,n){n&&!e.get()?t.on("NodeChange",oL,!0):!n&&e.get()&&t.off("NodeChange",oL),e.set(n)},cL=function(e,t){if(!nL.os.isOSX()){var n=Ys(!1);e.on("keydown",(function(t){iL(t)&&aL(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&rL(e,t,r),iL(r)&&n.get()&&(aL(n,e,!1),e.nodeChanged())}))}},uL=function(e,t){var n=t.container(),r=t.offset();return Zr(n)?(n.insertData(r,e),q.some(Nf(n,r+e.length))):kg(t).map((function(n){var r=wn.fromText(e);return t.isAtEnd()?br(n,r):yr(n,r),Nf(r.dom,e.length)}))},sL=N(uL,sa),lL=N(uL," "),fL=function(e){return function(t){return t.fold((function(t){return Yg(e.dom,Nf.before(t))}),(function(e){return Jg(e)}),(function(e){return Qg(e)}),(function(t){return Xg(e.dom,Nf.after(t))}))}},dL=function(e,t){return function(n){return ik(e,n)?sL(t):lL(t)}},mL=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},gL=function(e){var t=Nf.fromRangeStart(e.selection.getRng()),n=wn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=N(AA,e),o=Nf.fromRangeStart(e.selection.getRng());return kM(r,e.getBody(),o).bind(fL(n)).bind(dL(n,t)).exists(mL(e))}return!1},pL=function(e,t){aB([{keyCode:tv.SPACEBAR,action:iB(gL,e)}],t).each((function(e){t.preventDefault()}))},hL=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&pL(e,t)}))},vL=function(e){var t=HN(e);return BR(e),FB(e,t),UB(e,t),YP(e),hL(e),tL(e),QP(e,t),cL(e,t),t},yL=function(e){return IS(e)?Ys(null):vL(e)},bL=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&sv(o,t)||e.fire("SelectionChange"),t=o})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||zh(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&zh(e)&&("IMG"===e.selection.getNode().nodeName?Pi.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!wm(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=o.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),wL=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},kL=function(e){e.parser.addNodeFilter("details",(function(e){Z(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Z(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},_L=function(e){wL(e),kL(e)},xL=function(e){return Ur(e)&&ta(wn.fromDom(e))},CL=function(e){var t=e.selection.getRng(),n=Nf.fromRangeStart(t),r=Nf.fromRangeEnd(t);if(Nf.isElementPosition(n)){var o=n.container();xL(o)&&Jg(o).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Nf.isElementPosition(r)){o=n.container();xL(o)&&Qg(o).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(F_(t))},zL=function(e){e.on("click",(function(t){t.detail>=3&&CL(e)}))},SL=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+o.pageYOffset-r.clientTop,left:t.left+o.pageXOffset-r.clientLeft}},TL=function(e){return e.inline?SL(e.getBody()):{left:0,top:0}},OL=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},EL=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},o={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:o},AL=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=SL(e.getContentAreaContainer()),r=EL(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},DL=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},ML=function(e,t){return DL(TL(e),OL(e),AL(e,t))},NL=ao,RL=io,BL=function(e,t){return NL(t)&&t!==e},PL=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!NL(t)},LL=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},IL=function(e,t,n,r){var o=e.dom,i=t.cloneNode(!0);o.setStyles(i,{width:n,height:r}),o.setAttrib(i,"data-mce-selected",null);var a=o.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return o.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),o.setStyles(i,{margin:0,boxSizing:"border-box"}),a.appendChild(i),a},HL=function(e,t){e.parentNode!==t&&t.appendChild(e)},FL=function(e,t,n,r,o,i){var a=0,c=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>o&&(a=t.pageX+n-o),t.pageY+r>i&&(c=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-c+"px"},jL=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},VL=function(e){return 0===e.button},UL=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},qL=function(e,t){return function(n){if(VL(n)){var r=ae(t.dom.getParents(n.target),ff(NL,RL)).getOr(null);if(BL(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?i.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?i.scrollHeight:a.offsetHeight)-2,relX:n.pageX-o.x,relY:n.pageY-o.y,width:r.offsetWidth,height:r.offsetHeight,ghost:IL(t,r,r.offsetWidth,r.offsetHeight)})}}}},WL=function(e,t){var n=Pi.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&o>10){var i=t.fire("dragstart",{target:e.element});if(i.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=UL(e,ML(t,r));HL(e.ghost,t.getBody()),FL(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},$L=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},GL=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(PL(t,$L(t.selection),e.element)){var r=LL(e.element),o=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||t.undoManager.transact((function(){jL(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),XL(e)}},KL=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),XL(e)}},XL=function(e){e.on((function(e){jL(e.ghost)})),e.clear()},YL=function(e){var t=dl(),n=js.DOM,r=document,o=qL(t,e),i=WL(t,e),a=GL(t,e),c=KL(t,e);e.on("mousedown",o),e.on("mousemove",i),e.on("mouseup",a),n.bind(r,"mousemove",i),n.bind(r,"mouseup",c),e.on("remove",(function(){n.unbind(r,"mousemove",i),n.unbind(r,"mouseup",c)})),e.on("keydown",(function(e){e.keyCode===tv.ESC&&c()}))},JL=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(NL(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},QL=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(Y(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&BE(e,"Dropped file type is not supported"))}},n=function(n){Qy(e,n.target)&&t(n)},r=function(){var r=js.DOM,o=e.dom,i=document,a=e.inline?e.getBody():e.getDoc(),c=["drop","dragover"];Z(c,(function(e){r.bind(i,e,n),o.bind(a,e,t)})),e.on("remove",(function(){Z(c,(function(e){r.unbind(i,e,n),o.unbind(a,e,t)}))}))};e.on("init",(function(){Pi.setEditorTimeout(e,r,0)}))},ZL=function(e){YL(e),JL(e),zm(e)&&QL(e)},eI=function(e){var t=ml((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=zD(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},tI=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(uo(n)){var r=Hh(e.getBody(),n),o=ao(r)?r:n;e.selection.getNode()!==o&&xD(e,o).each((function(t){return e.selection.setRng(t)}))}}))}))},nI=io,rI=ao,oI=function(e,t){return Hh(e.getBody(),t)},iI=function(e){var t,n=e.selection,r=e.dom,o=r.isBlock,i=e.getBody(),a=Xm(e,i,o,(function(){return db(e)})),c="sel-"+r.uniqueId(),u="data-mce-selected",s=function(e){return r.hasClass(e,"mce-offscreen-selection")},l=function(e){return e!==i&&(rI(e)||uo(e))&&r.isChildOf(e,i)},f=function(e){return Sw(e)||Tw(e)||_w(e)||xw(e)},d=function(){var e=r.get(c);return e?e.getElementsByTagName("*")[0]:e},m=function(e){e&&n.setRng(e)},g=n.getRng,p=function(t,r,o,i){void 0===i&&(i=!0);var c=e.fire("ShowCaret",{target:r,direction:t,before:o});return c.isDefaultPrevented()?null:(i&&n.scrollIntoView(r,-1===t),a.show(o,r))},h=function(e){e.hasAttribute("data-mce-caret")&&(Ea(e),m(g()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=g();n.collapsed&&zE(e,t.clientX,t.clientY)&&CD(e,n,!1).each(m)})),e.on("click",(function(t){var o=oI(e,t.target);o&&(rI(o)&&(t.preventDefault(),e.focus()),nI(o)&&r.isChildOf(o,n.getNode())&&z())})),e.on("blur NewBlock",z),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var c=function(e){var t=e.firstChild;if(x(t))return!1;var n=Nf.before(t);if(ro(n.getNode())&&1===e.childNodes.length)return!f(n);var r=Lg(e),o=r.next(n);return o&&!f(o)},u=function(e,t){var n=r.getParent(e,o),i=r.getParent(t,o);return n===i},h=function(t,n){var i=r.getParent(t,o),a=r.getParent(n,o);return!x(i)&&(!(t===a||!r.isChildOf(i,a)||!1!==rI(oI(e,i)))||!r.isChildOf(a,i)&&!u(i,a)&&c(i))};e.on("tap",(function(t){var n=t.target,r=oI(e,n);rI(r)?(t.preventDefault(),xD(e,r).each(C)):l(n)&&xD(e,n).each(C)}),!0),e.on("mousedown",(function(t){var o=t.target;if((o===i||"HTML"===o.nodeName||r.isChildOf(o,i))&&!1!==zE(e,t.clientX,t.clientY)){var a=oI(e,o);if(a)rI(a)?(t.preventDefault(),xD(e,a).each(C)):(z(),nI(a)&&t.shiftKey||Fh(t.clientX,t.clientY,n.getRng())||(T(),n.placeCaretAt(t.clientX,t.clientY)));else if(l(o))xD(e,o).each(C);else if(!1===Qm(o)){z(),T();var c=xN(i,t.clientX,t.clientY);if(c&&!h(o,c.node)){t.preventDefault();var u=p(1,c.node,c.before,!1);m(u),e.getBody().focus()}}}})),e.on("keypress",(function(e){tv.modifierPressed(e)||rI(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=w(e.range);var t=C(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;b(t)||v(n)||T(),s(n)||z()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=d();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),ZL(e),eI(e),tI(e)},y=function(e){return ba(e)||Sa(e)||Ta(e)},b=function(e){return y(e.startContainer)||y(e.endContainer)},w=function(t){var n=e.schema.getShortEndedElements(),o=r.createRng(),i=t.startContainer,a=t.startOffset,c=t.endContainer,u=t.endOffset;return Me(n,i.nodeName.toLowerCase())?0===a?o.setStartBefore(i):o.setStartAfter(i):o.setStart(i,a),Me(n,c.nodeName.toLowerCase())?0===u?o.setEndBefore(c):o.setEndAfter(c):o.setEnd(c,u),o},k=function(t,o,i){var a=e.$,u=Ti(wn.fromDom(e.getBody()),"#"+c).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===u.length&&(u=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",c),u.appendTo(e.getBody()));var s=r.createRng();o===i&&en.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(o),s.setStartAfter(u[0].firstChild.firstChild),s.setEndAfter(o)):(u.empty().append(sa).append(o).append(sa),s.setStart(u[0].firstChild,1),s.setEnd(u[0].lastChild,0)),u.css({top:r.getPos(t,e.getBody()).y}),u[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(s),s},_=function(n){var o=n.cloneNode(!0),i=e.fire("ObjectSelected",{target:n,targetClone:o});if(i.isDefaultPrevented())return null;var a=k(n,i.targetClone,o),c=wn.fromDom(n);return Z(Tl(wn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Nn(c,e)||_o(e,u)})),r.getAttrib(n,u)||n.setAttribute(u,"1"),t=n,T(),a},C=function(e,t){if(!e)return null;if(e.collapsed){if(!b(e)){var n=t?1:-1,o=wg(n,i,e),a=o.getNode(!t);if(Qm(a))return p(n,a,!!t&&!o.isAtEnd(),!1);var c=o.getNode(t);if(Qm(c))return p(n,c,!t&&!o.isAtEnd(),!1)}return null}var u=e.startContainer,s=e.startOffset,f=e.endOffset;if(3===u.nodeType&&0===s&&rI(u.parentNode)&&(u=u.parentNode,s=r.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(f===s+1&&u===e.endContainer){var d=u.childNodes[s];if(l(d))return _(d)}return null},z=function(){t&&t.removeAttribute(u),Ti(wn.fromDom(e.getBody()),"#"+c).each(Sr),t=null},S=function(){a.destroy(),t=null},T=function(){a.hide()};return en.ceFalse&&!IS(e)&&v(),{showCaret:p,showBlockCaretContainer:h,hideFakeCaret:T,destroy:S}},aI=function(e){var t=gn.each,n=tv.BACKSPACE,r=tv.DELETE,o=e.dom,i=e.selection,a=e.parser,c=en.gecko,u=en.ie,s=en.webkit,l="data:text/mce-internal,",f=u?"Text":"URL",d=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},m=function(e){return e.isDefaultPrevented()},g=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&i.select(t.target),n=e.selection.getContent(),n.length>0&&(r=l+escape(e.id)+","+escape(n),t.dataTransfer.setData(f,r)))},p=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(f),t&&t.indexOf(l)>=0)?(t=t.substr(l.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},h=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=o.create("body"),n=e.cloneContents();return t.appendChild(n),i.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),i=o.createRng();i.selectNode(e.getBody());var a=t(i);return r===a};e.on("keydown",(function(t){var i,c,u=t.keyCode;if(!m(t)&&(u===r||u===n)){if(i=e.selection.isCollapsed(),c=e.getBody(),i&&!o.isEmpty(c))return;if(!i&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),c.firstChild&&o.isBlock(c.firstChild)?e.selection.setCursorLocation(c.firstChild,0):e.selection.setCursorLocation(c,0),e.nodeChanged()}}))},y=function(){e.shortcuts.add("meta+a",null,"SelectAll")},b=function(){e.inline||o.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=i.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ba(n.startContainer))return;i.placeCaretAt(t.clientX,t.clientY)}else i.setRng(n)}))},w=function(){e.on("keydown",(function(t){if(!m(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(i.isCollapsed()&&0===i.getRng().startOffset){var r=i.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return o.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(o.remove(a),t.preventDefault())}}}))},k=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!m(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Pi.setEditorTimeout(e,(function(){n.focus()}))}}))},_=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==o.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&o.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),i.select(n))}))},x=function(){var n=function(){var n=o.getAttribs(i.getStart().cloneNode(!1));return function(){var r=i.getStart();r!==e.getBody()&&(o.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!i.isCollapsed()&&o.getParent(i.getStart(),o.isBlock)!==o.getParent(i.getEnd(),o.isBlock)};e.on("keypress",(function(t){var o;if(!m(t)&&(8===t.keyCode||46===t.keyCode)&&r())return o=n(),e.getDoc().execCommand("delete",!1,null),o(),t.preventDefault(),!1})),o.bind(e.getDoc(),"cut",(function(t){var o;!m(t)&&r()&&(o=n(),Pi.setEditorTimeout(e,(function(){o()})))}))},C=function(){e.on("keydown",(function(e){if(!m(e)&&e.keyCode===n&&i.isCollapsed()&&0===i.getRng().startOffset){var t=i.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},z=function(){e.on("keydown",(function(t){var n,r;if(!m(t)&&t.keyCode===tv.BACKSPACE){n=i.getRng();var a=n.startContainer,c=n.startOffset,u=o.getRoot();if(r=a,n.collapsed&&0===c){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==u)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=o.createRng(),n.setStart(a,0),n.setEnd(a,0),i.setRng(n))}}}))},S=function(){var t=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),Zd(e)||d("enableObjectResizing",!1)};km(e)||e.on("BeforeExecCommand mousedown",t)},O=function(){var n=function(){t(o.select("a"),(function(e){var t=e.parentNode,n=o.getRoot();if(t.lastChild===e){while(t&&!o.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}o.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},E=function(){zd(e)&&e.on("init",(function(){d("DefaultParagraphSeparator",zd(e))}))},A=function(){e.on("keyup focusin mouseup",(function(e){tv.modifierPressed(e)||i.normalize()}),!0)},D=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},M=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},N=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},R=function(){en.mac&&e.on("keydown",(function(t){if(tv.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},B=function(){d("AutoUrlDetect",!1)},P=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},L=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},I=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},H=function(){e.on("dragstart",(function(e){g(e)})),e.on("drop",(function(t){if(!m(t)){var n=p(t);if(n&&n.id!==e.id){t.preventDefault();var r=uv(t.x,t.y,e.getDoc());i.setRng(r),h(n.html,!0)}}}))},F=T,j=function(){if(!c||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},V=function(){s&&(b(),_(),L(),y(),en.iOS&&(M(),N(),P())),c&&(k(),S(),D(),R())},U=function(){z(),v(),en.windowsPhone||A(),s&&(b(),_(),E(),L(),C(),I(),en.iOS?(M(),N(),P()):y()),en.ie>=11&&(N(),C()),en.ie&&(y(),B(),H()),c&&(w(),k(),x(),S(),O(),D(),R(),C())};return IS(e)?V():U(),{refreshContentEditable:F,isHidden:j}},cI=js.DOM,uI=function(e,t){var n=wn.fromDom(e.getBody()),r=mr(dr(n)),o=wn.fromTag("style");vo(o,"type","text/css"),kr(o,wn.fromText(t)),kr(r,o),e.on("remove",(function(){Sr(o)}))},sI=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},lI=function(e){return Oe(e,(function(e){return!1===_(e)}))},fI=function(e){var t=e.settings;return lI({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},dI=function(e){var t=e.settings,n=e.editorUpload.blobCache;return lI({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:sI(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},mI=function(e){var t=e.settings;return qe(qe(qe({},dI(e)),fI(e)),lI({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},gI=function(e){var t=cO(dI(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,o,i=t.length,a=e.dom,c="data-mce-"+n;while(i--)if(r=t[i],o=r.attr(n),o&&!r.attr(c)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=a.serializeStyle(a.parseStyle(o),r.name),o.length||(o=null),r.attr(c,o),r.attr(n,o)):"tabindex"===n?(r.attr(c,o),r.attr(n,null)):r.attr(c,e.convertURL(o,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var o=t[n];o.isEmpty(r)&&0===o.getAll("br").length&&(o.append(new Eb("br",1)).shortEnded=!0)}})),t},pI=function(e){e.settings.auto_focus&&Pi.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},hI=function(e){var t=e.dom.getRoot();e.inline||zh(e)&&e.selection.getStart(!0)!==t||Jg(t).each((function(t){var n=t.getNode(),r=Yr(n)?Jg(n).getOr(t):t;en.browser.isIE()?Iy(e,r.toRange()):e.selection.setRng(r.toRange())}))},vI=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Yh(e),e.focus(!0),hI(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),pI(e)},yI=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},bI=function(e,t,n){var r=[new Ei((function(n,r){return yI(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Ei((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},wI=function(e){var t=yI(e),n=Yd(e),r=e.contentCSS,o=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},i=function(){e.removed?o():e.on("remove",o)};if(e.contentStyles.length>0){var a="";gn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var c=Ei.all(bI(e,r,n)).then(i).catch(i);return e.settings.content_style&&uI(e,e.settings.content_style),c},kI=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Kh(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,cI.setAttrib(r,"spellcheck","false")),e.quirks=aI(e),Xh(e);var o=Jd(e);void 0!==o&&(r.dir=o),t.protect&&e.on("BeforeSetContent",(function(e){gn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},_I=function(e){IS(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},xI=function(e){!0!==e.removed&&(_I(e),vI(e))},CI=function(e,t){var n=e.settings,r=e.getElement(),o=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(o.open(),o.write(e.iframeHTML),o.close()),e.inline&&(cI.addClass(r,"mce-content-body"),e.contentDocument=o=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var i=e.getBody();i.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===cI.getStyle(i,"position",!0)&&(i.style.position="relative"),i.contentEditable=e.getParam("content_editable_state",!0)),i.disabled=!1,e.editorUpload=iA(e),e.schema=jc(fI(e)),e.dom=js(o,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Ud(e),referrerPolicy:qd(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=gI(e),e.serializer=wO(mI(e),e),e.selection=ET(e.dom,e.getWin(),e.serializer,e),e.annotator=Lh(e),e.formatter=pA(e),e.undoManager=bA(e),e._nodeChangeDispatcher=new bL(e),e._selectionOverrides=iI(e),CR(e),_L(e),IS(e)||zL(e);var a=yL(e);bR(e,a),AR(e),TA(e);var c=FS(e);kI(e),c.fold((function(){wI(e).then((function(){return xI(e)}))}),(function(t){e.setProgressState(!0),wI(e).then((function(){t().then((function(t){e.setProgressState(!1),xI(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),xI(e)}))}))}))},zI=js.DOM,SI=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=QE("mce");e[n]=function(){CI(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return zI.setAttrib(t,"src",r),!0}return!1},TI=function(e,t,n,r){var o=wn.fromTag("iframe");return yo(o,r),yo(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),_l(o,"tox-edit-area__iframe"),o},OI=function(e){var t=bd(e)+"<html><head>";wd(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=kd(e),r=_d(e),o=e.translate(Em(e));return xd(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+xd(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+o+'"><br></body></html>',t},EI=function(e,t){var n=e.translate("Rich Text Area"),r=TI(e.id,n,t.height,yd(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var o=SI(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=OI(e),zI.add(t.iframeContainer,r),o},AI=function(e,t){var n=EI(e,t);t.editorContainer&&(zI.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=zI.isHidden(t.editorContainer)),e.getElement().style.display="none",zI.setAttrib(e.id,"aria-hidden","true"),n||CI(e)},DI=js.DOM,MI=function(e,t,n){var r=AE.get(n),o=AE.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=gn.trim(n),r&&-1===gn.inArray(t,n)){if(gn.each(AE.dependencies(n),(function(n){MI(e,t,n)})),e.plugins[n])return;try{var i=new r(e,o,e.$);e.plugins[n]=i,i.init&&(i.init(e,o),t.push(n))}catch(vj){VE(e,n,vj)}}},NI=function(e){return e.replace(/^\-/,"")},RI=function(e){var t=[];gn.each(xm(e).split(/[ ,]/),(function(n){MI(e,t,NI(n))}))},BI=function(e){var t=gn.trim(Ld(e)),n=e.ui.registry.getAll().icons,r=qe(qe({},pE.get("default").icons),pE.get(t).icons);_e(r,(function(t,r){Me(n,r)||e.ui.registry.addIcon(r,t)}))},PI=function(e){var t=om(e);if(v(t)){e.settings.theme=NI(t);var n=DE.get(t);e.theme=new n(e,DE.urls[t]),e.theme.init&&e.theme.init(e,DE.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},LI=function(e){return e.theme.renderUI()},II=function(e){var t=e.getElement(),n=om(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},HI=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},FI=function(e){var t=DI.create("div");return DI.insertAfter(t,e),HI(t)},jI=function(e){var t=e.getElement();return e.inline?HI(null):FI(t)},VI=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(om(e))?LI(e):z(om(e))?II(e):jI(e)},UI=function(e,t){var n={show:q.from(t.show).getOr(T),hide:q.from(t.hide).getOr(T),disable:q.from(t.disable).getOr(T),isDisabled:q.from(t.isDisabled).getOr(I),enable:function(){e.mode.isReadOnly()||q.from(t.enable).map(L)}};e.ui=qe(qe({},e.ui),n)},qI=function(e){e.fire("ScriptsLoaded"),BI(e),PI(e),RI(e);var t=VI(e);UI(e,q.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,KE(e),e.inline?CI(e):AI(e,n)},WI=js.DOM,$I=function(e){return"-"===e.charAt(0)},GI=function(e,t){var n=Wd(t),r=$d(t);if(!1===sl.hasCode(n)&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,T,void 0,(function(){jE(t,o,n)}))}},KI=function(e,t,n,r){var o=om(t);if(v(o)){if(!$I(o)&&!Me(DE.urls,o)){var i=fm(t);i?DE.load(o,t.documentBaseURI.toAbsolute(i)):DE.load(o,"themes/"+o+"/theme"+n+".js")}e.loadQueue((function(){DE.waitFor(o,r)}))}else r()},XI=function(e){return q.from(Id(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:q.none()}}))},YI=function(e,t,n){return q.from(t).filter((function(e){return e.length>0&&!pE.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:q.some(t)}}))},JI=function(e,t,n){var r=YI(t,"default",n),o=XI(t).orThunk((function(){return YI(t,Ld(t),"")}));Z(lo([r,o]),(function(n){e.add(n.url,T,void 0,(function(){FE(t,n.url,n.name.getOrUndefined())}))}))},QI=function(e,t){gn.each(Cm(e),(function(t,n){AE.load(n,t,T,void 0,(function(){HE(e,t,n)})),e.settings.plugins+=" "+n})),gn.each(xm(e).split(/[ ,]/),(function(n){if(n=gn.trim(n),n&&!AE.urls[n])if($I(n)){n=n.substr(1,n.length);var r=AE.dependencies(n);gn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},o=AE.createUrl(r,n);AE.load(o.resource,o,T,void 0,(function(){HE(e,o.prefix+o.resource+o.suffix,o.resource)}))}))}else{var o={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};AE.load(n,o,T,void 0,(function(){HE(e,o.prefix+o.resource+o.suffix,n)}))}}))},ZI=function(e,t){var n=Xs.ScriptLoader;KI(n,e,t,(function(){GI(n,e),JI(n,e,t),QI(e,t),n.loadQueue((function(){e.removed||qI(e)}),e,(function(){e.removed||qI(e)}))}))},eH=function(e,t){return Hi.forElement(e,{contentCssCors:_m(t),referrerPolicy:qd(t)})},tH=function(e){var t=e.id;sl.setCode(Wd(e));var n=function(){WI.unbind(window,"ready",n),e.render()};if(ru.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=wn.fromDom(e.getElement()),o=xo(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return _o(r,e.name)})),yo(r,o)})),e.ui.styleSheetLoader=eH(r,e),dm(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var i=e.getElement().form||WI.getParent(t,"form");i&&(e.formElement=i,mm(e)&&!Qr(e.getElement())&&(WI.insertAfter(WI.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},WI.bind(i,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!gm(e)||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=NE(e),e.notificationManager=EE(e),pm(e)&&e.on("GetContent",(function(e){e.save&&(e.content=WI.encode(e.content))})),hm(e)&&e.on("submit",(function(){e.initialized&&e.save()})),vm(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),ZI(e,e.suffix)}}else WI.bind(window,"ready",n)},nH=function(e,t){return mT(e,t)},rH={"font-size":"size","font-family":"face"},oH=function(e,t,n){var r=function(t){return Oo(t,e).orThunk((function(){return"font"===Ln(t)?De(rH,e).bind((function(e){return wo(t,e)})):q.none()}))},o=function(e){return Nn(wn.fromDom(t),e)};return Bx(wn.fromDom(n),(function(e){return r(e)}),o)},iH=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},aH=function(e,t){return q.from(js.DOM.getStyle(t,e,!0))},cH=function(e){return function(t,n){return q.from(n).map(wn.fromDom).filter(jn).bind((function(n){return oH(e,t,n.dom).or(aH(e,n.dom))})).getOr("")}},uH=cH("font-size"),sH=O(iH,cH("font-family")),lH=function(e){return Jg(e.getBody()).map((function(e){var t=e.container();return Zr(t)?t.parentNode:t}))},fH=function(e){return q.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?q.none():q.from(e.selection.getStart(!0))}))},dH=function(e,t){return fH(e).orThunk(N(lH,e)).map(wn.fromDom).filter(jn).bind(t)},mH=function(e,t){return dH(e,E(q.some,t))},gH=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Dd(e),o=Md(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},pH=function(e){var t=e.split(/\s*,\s*/);return Q(t,(function(e){return-1===e.indexOf(" ")||st(e,'"')||st(e,"'")?e:"'"+e+"'"})).join(",")},hH=function(e,t){var n=gH(e,t);e.formatter.toggle("fontname",{value:pH(n)}),e.nodeChanged()},vH=function(e){return mH(e,(function(t){return sH(e.getBody(),t.dom)})).getOr("")},yH=function(e,t){e.formatter.toggle("fontsize",{value:gH(e,t)}),e.nodeChanged()},bH=function(e){return mH(e,(function(t){return uH(e.getBody(),t.dom)})).getOr("")},wH=function(e){return mH(e,(function(t){var n=wn.fromDom(e.getBody()),r=Bx(t,(function(e){return Oo(e,"line-height")}),N(Nn,n)),o=function(){var e=parseFloat(So(t,"line-height")),n=parseFloat(So(t,"font-size"));return String(e/n)};return r.getOrThunk(o)})).getOr("")},kH=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},_H=function(e){if("string"!==typeof e){var t=gn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},xH=function(e,t){var n=_H(t);fT(e,n.content,n.details)},CH=gn.each,zH=gn.map,SH=gn.inArray,TH=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Fy(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var c=e.toLowerCase();if(o=a.commands.exec[c])return o(c,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(CH(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),i=!0,!1})),i)return i;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{i=a.editor.getDoc().execCommand(e,t,n)}catch(u){}return!!i&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;CH(e,(function(e,r){CH(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":T,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){hb(e,r)},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),CH("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var o=e.dom.getParent(e.selection.getNode(),"ol,ul");o&&(r=o.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,o),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){hH(e,r)},FontSize:function(t,n,r){yH(e,r)},LineHeight:function(t,n,r){kH(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){xH(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){KP(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){gR(e,t)},mceRepaint:T,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var o=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),io);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return DP(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),o=zH(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==SH(o,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return lR(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return vH(e)}),this),t.addQueryValueHandler("FontSize",(function(){return bH(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return wH(e)}),this)},e}(),OH="data-mce-contenteditable",EH=function(e,t,n){zl(e,t)&&!1===n?Cl(e,t):n&&_l(e,t)},AH=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},DH=function(e,t){e.dom.contentEditable=t?"true":"false"},MH=function(e){Z(Tl(e,'*[contenteditable="true"]'),(function(e){vo(e,OH,"true"),DH(e,!1)}))},NH=function(e){Z(Tl(e,"*["+OH+'="true"]'),(function(e){_o(e,OH),DH(e,!0)}))},RH=function(e){q.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},BH=function(e){e.selection.setRng(e.selection.getRng())},PH=function(e,t){var n=wn.fromDom(e.getBody());EH(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),RH(e),e.readonly=!0,DH(n,!1),MH(n)):(e.readonly=!1,DH(n,!0),NH(n),AH(e,"StyleWithCSS",!1),AH(e,"enableInlineTableEditing",!1),AH(e,"enableObjectResizing",!1),mb(e)&&e.focus(),BH(e),e.nodeChanged())},LH=function(e){return e.readonly},IH=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){LH(e)&&Z(t,(function(e){e.attr(OH,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(OH,(function(t){LH(e)&&Z(t,(function(e){e.attr("contenteditable",e.attr(OH))}))})),e.serializer.addTempAttr(OH)},HH=function(e){e.serializer?IH(e):e.on("PreInit",(function(){IH(e)}))},FH=function(e){return"click"===e.type},jH=function(e,t){var n=function(t){return Nn(t,wn.fromDom(e.getBody()))};return Oi(t,"a",n).bind((function(e){return wo(e,"href")}))},VH=function(e,t){if(FH(t)&&!tv.metaKeyPressed(t)){var n=wn.fromDom(t.target);jH(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+ct(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},UH=function(e){e.on("ShowCaret",(function(t){LH(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){LH(e)&&t.preventDefault()}))},qH=gn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),WH=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||I}return e.isNative=function(e){return!!qH[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Xc(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var o=this.bindings[n];if(o)for(var i=0,a=o.length;i<a;i++){var c=o[i];if(!c.removed){if(c.once&&this.off(n,c.func),r.isImmediatePropagationStopped())return r;if(!1===c.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=I),t){var o={func:t,removed:!1};r&&gn.extend(o,r);var i=e.toLowerCase().split(" "),a=i.length;while(a--){var c=i[a],u=this.bindings[c];u||(u=[],this.toggleEvent(c,!0)),u=n?$e([o],u,!0):$e($e([],u,!0),[o],!1),this.bindings[c]=u}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),o=r.length;while(o--){var i=r[o],a=this.bindings[i];if(!i)return _e(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var c=te(a,(function(e){return e.func===t}));a=c.fail,this.bindings[i]=a,Z(c.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[i])}}}else _e(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),$H=function(e){return e._eventDispatcher||(e._eventDispatcher=new WH({scope:e,toggleEvent:function(t,n){WH.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},GH={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=$H(r).fire(e,t);if(!1!==n&&r.parent){var i=r.parent();while(i&&!o.isPropagationStopped())i.fire(e,o,!1),i=i.parent()}return o},on:function(e,t,n){return $H(this).on(e,t,n)},off:function(e,t){return $H(this).off(e,t)},once:function(e,t){return $H(this).once(e,t)},hasEventListeners:function(e){return $H(this).has(e)}},KH=js.DOM,XH=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=nm(e);return n?(e.eventRoot||(e.eventRoot=KH.select(n)[0]),e.eventRoot):e.getBody()},YH=function(e){return!e.hidden&&!LH(e)},JH=function(e,t,n){YH(e)?e.fire(t,n):LH(e)&&VH(e,n)},QH=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=XH(e,t);if(nm(e)){if(eN||(eN={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||eN&&(_e(eN,(function(t,n){e.dom.unbind(XH(e,n))})),eN=null)}))),eN[t])return;n=function(n){var r=n.target,o=e.editorManager.get(),i=o.length;while(i--){var a=o[i].getBody();(a===r||KH.isChildOf(r,a))&&JH(o[i],t,n)}},eN[t]=n,KH.bind(r,t,n)}else n=function(n){JH(e,t,n)},KH.bind(r,t,n),e.delegates[t]=n}},ZH=qe(qe({},GH),{bindPendingEventDelegates:function(){var e=this;gn.each(e._pendingNativeEvents,(function(t){QH(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?QH(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(XH(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(_e(e.delegates,(function(t,n){e.dom.unbind(XH(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),eF=["design","readonly"],tF=function(e,t,n,r){var o=n[t.get()],i=n[r];try{i.activate()}catch(vj){return void console.error("problem while activating editor mode "+r+":",vj)}o.deactivate(),o.editorReadOnly!==i.editorReadOnly&&PH(e,i.editorReadOnly),t.set(r),Wh(e,r)},nF=function(e,t,n,r){if(r!==n.get()){if(!Me(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?tF(e,n,t,r):e.on("init",(function(){return tF(e,n,t,r)}))}},rF=function(e,t,n){var r;if(Y(eF,t))throw new Error("Cannot override default mode "+t);return qe(qe({},e),(r={},r[t]=qe(qe({},n),{deactivate:function(){try{n.deactivate()}catch(vj){console.error("problem while deactivating editor mode "+t+":",vj)}}}),r))},oF=function(e){var t=Ys("design"),n=Ys({design:{activate:T,deactivate:T,editorReadOnly:!1},readonly:{activate:T,deactivate:T,editorReadOnly:!0}});return HH(e),UH(e),{isReadOnly:function(){return LH(e)},set:function(r){return nF(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(rF(n.get(),e,t))}}},iF=gn.each,aF=gn.explode,cF={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},uF=gn.makeMap("alt,ctrl,shift,meta,access"),sF=function(e){var t,n={};iF(aF(e.toLowerCase(),"+"),(function(e){e in uF?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=cF[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in uF)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},lF=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(iF(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var o=this,i=o.normalizeCommandFunc(n);return iF(aF(gn.trim(e)),(function(e){var n=o.createShortcut(e,t,i,r);o.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:gn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var o=gn.map(aF(e,">"),sF);return o[o.length-1]=gn.extend(o[o.length-1],{func:n,scope:r||this.editor}),gn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),fF=function(){var e={},t={},n={},r={},o={},i={},a={},c=function(e,t){return function(n,r){return e[n.toLowerCase()]=qe(qe({},r),{type:t})}},u=function(e,t){return r[e.toLowerCase()]=t};return{addButton:c(e,"button"),addGroupToolbarButton:c(e,"grouptoolbarbutton"),addToggleButton:c(e,"togglebutton"),addMenuButton:c(e,"menubutton"),addSplitButton:c(e,"splitbutton"),addMenuItem:c(t,"menuitem"),addNestedMenuItem:c(t,"nestedmenuitem"),addToggleMenuItem:c(t,"togglemenuitem"),addAutocompleter:c(n,"autocompleter"),addContextMenu:c(o,"contextmenu"),addContextToolbar:c(i,"contexttoolbar"),addContextForm:c(i,"contextform"),addSidebar:c(a,"sidebar"),addIcon:u,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},dF=function(){var e=fF();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},mF=js.DOM,gF=gn.extend,pF=gn.each,hF=gn.resolve,vF=en.ie,yF=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,gF(this,ZH),this.settings=sE(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Xs.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),js.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ll.languageLoad=this.settings.language_load,ll.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new Fb(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new lF(this),this.editorCommands=new TH(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:dF(),styleSheetLoader:void 0,show:T,hide:T,enable:T,disable:T,isDisabled:I};var o=this,i=oF(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ns.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){tH(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return db(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this,i=o.settings[e];if(i)return o.callbackLookup&&(r=o.callbackLookup[e])&&(i=r.func,r=r.scope),"string"===typeof i&&(r=i.replace(/\.\w+$/,""),r=r?hF(r):0,i=hF(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[e]={func:i,scope:r}),i.apply(r||o,t)},e.prototype.translate=function(e){return sl.translate(e)},e.prototype.getParam=function(e,t,n){return mE(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=Y(xm(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==AE.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(mF.show(e.getContainer()),mF.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(vF&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(mF.hide(e.getContainer()),mF.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var o=Qr(r)?r.value:r.innerHTML;return t=n.setContent(o,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=o,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Qr(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=mF.getParent(r.id,"form"))&&pF(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return xO(this,e,t)},e.prototype.getContent=function(e){return _O(this,e)},e.prototype.insertContent=function(e,t){t&&(e=gF({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?xO(this,this.startContent,{format:"raw"}):xO(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=mF.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=mF.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,o=r.settings;return o.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!o.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:o.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,o.remove_script_host),e)},e.prototype.addVisual=function(e){nH(this,e)},e.prototype.remove=function(){EO(this)},e.prototype.destroy=function(e){AO(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),bF=js.DOM,wF=gn.explode,kF=gn.each,_F=gn.extend,xF=0,CF=!1,zF=[],SF=[],TF=function(e){return"length"!==e},OF=function(e){var t=e.type;kF(NF.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},EF=function(e){e!==CF&&(e?Ns(window).on("resize scroll",OF):Ns(window).off("resize scroll",OF),CF=e)},AF=function(e){var t=SF;delete zF[e.id];for(var n=0;n<zF.length;n++)if(zF[n]===e){zF.splice(n,1);break}return SF=ne(SF,(function(t){return e!==t})),NF.activeEditor===e&&(NF.activeEditor=SF.length>0?SF[0]:null),NF.focusedEditor===e&&(NF.focusedEditor=null),t.length!==SF.length},DF=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(AF(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},MF="CSS1Compat"!==document.compatMode,NF=qe(qe({},GH),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ns,majorVersion:"5",minorVersion:"10.5",releaseDate:"2022-05-25",editors:zF,i18n:sl,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=Fb.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)e=o.base||o.baseURL,r=o.suffix;else{for(var i=document.getElementsByTagName("script"),a=0;a<i.length;a++){var c=i[a].src||"";if(""!==c){var u=c.substring(c.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(c)){-1!==u.indexOf(".min")&&(r=".min"),e=c.substring(0,c.lastIndexOf("/"));break}}}if(!e&&document.currentScript){c=document.currentScript.src;-1!==c.indexOf(".min")&&(r=".min"),e=c.substring(0,c.lastIndexOf("/"))}}n.baseURL=new Fb(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new Fb(n.baseURL),n.suffix=r,nb(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&_e(r,(function(e,t){ll.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=gn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),o=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},i=function(e){var t=e.id;return t||(t=De(e,"name").filter((function(e){return!bF.get(e)})).getOrThunk(bF.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},c=function(e,t){return t.constructor===RegExp?t.test(e.className):bF.hasClass(e,t)},u=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return UE("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(MF)return UE("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return kF(e.types,(function(e){t=t.concat(bF.select(e.selector))})),t;if(e.selector)return bF.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&kF(wF(n),(function(e){var n=bF.get(e);n?t.push(n):kF(document.forms,(function(n){kF(n.elements,(function(n){n.name===e&&(e="mce_editor_"+xF++,bF.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":kF(bF.select("textarea"),(function(n){e.editor_deselector&&c(n,e.editor_deselector)||e.editor_selector&&!c(n,e.editor_selector)||t.push(n)}));break}return t},s=function(e){t=e},l=function(){var t,r=0,c=[],f=function(e,o,i){var a=new yF(e,o,n);c.push(a),a.on("init",(function(){++r===t.length&&s(c)})),a.targetElm=a.targetElm||i,a.render()};bF.unbind(window,"ready",l),a("onpageload"),t=Ns.unique(u(e)),e.types?kF(e.types,(function(n){gn.each(t,(function(t){return!bF.is(t,n.selector)||(f(i(t),_F({},e,n),t),!1)}))})):(gn.each(t,(function(e){DF(n.get(e.id))})),t=gn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?s([]):kF(t,(function(t){o(e,t)?UE("Could not initialize inline editor on invalid inline target element",t):f(i(t),e,t)})))};return n.settings=e,bF.bind(window,"ready",l),new Ei((function(e){t?e(t):s=function(t){e(t)}}))},get:function(e){return 0===arguments.length?SF.slice(0):v(e)?ae(SF,(function(t){return t.id===e})).getOr(null):S(e)&&SF[e]?SF[e]:null},add:function(e){var t=this,n=zF[e.id];return n===e||(null===t.get(e.id)&&(TF(e.id)&&(zF[e.id]=e),zF.push(e),SF.push(e)),EF(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),tN||(tN=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",tN))),e},createEditor:function(e,t){return this.add(new yF(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,w(r.get(n.id))?null:(AF(n)&&r.fire("RemoveEditor",{editor:n}),0===SF.length&&window.removeEventListener("beforeunload",tN),n.remove(),EF(SF.length>0),n);kF(bF.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=SF.length-1;t>=0;t--)r.remove(SF[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new yF(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){kF(SF,(function(e){e.save()}))},addI18n:function(e,t){sl.add(e,t)},translate:function(e){return sl.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new Fb(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new Fb(this.baseURL)}});NF.setup();var RF,BF,PF=Math.min,LF=Math.max,IF=Math.round,HF=function(e,t,n){var r=t.x,o=t.y,i=e.w,a=e.h,c=t.w,u=t.h,s=(n||"").split("");return"b"===s[0]&&(o+=u),"r"===s[1]&&(r+=c),"c"===s[0]&&(o+=IF(u/2)),"c"===s[1]&&(r+=IF(c/2)),"b"===s[3]&&(o-=a),"r"===s[4]&&(r-=i),"c"===s[3]&&(o-=IF(a/2)),"c"===s[4]&&(r-=IF(i/2)),qF(r,o,i,a)},FF=function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if(o=HF(e,t,r[i]),o.x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},jF=function(e,t,n){return qF(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},VF=function(e,t){var n=LF(e.x,t.x),r=LF(e.y,t.y),o=PF(e.x+e.w,t.x+t.w),i=PF(e.y+e.h,t.y+t.h);return o-n<0||i-r<0?null:qF(n,r,o-n,i-r)},UF=function(e,t,n){var r=e.x,o=e.y,i=e.x+e.w,a=e.y+e.h,c=t.x+t.w,u=t.y+t.h,s=LF(0,t.x-r),l=LF(0,t.y-o),f=LF(0,i-c),d=LF(0,a-u);return r+=s,o+=l,n&&(i+=s,a+=l,r-=f,o-=d),i-=f,a-=d,qF(r,o,i-r,a-o)},qF=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},WF=function(e){return qF(e.left,e.top,e.width,e.height)},$F={inflate:jF,relativePosition:HF,findBestRelativePosition:FF,intersect:VF,clamp:UF,create:qF,fromClientRect:WF},GF=function(e,t,n){void 0===n&&(n=1e3);var r=!1,o=null,i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==o&&(clearTimeout(o),o=null),e.apply(null,t))}},a=i(e),c=i(t),u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==o||(o=setTimeout((function(){return c.apply(null,e)}),n))};return{start:u,resolve:a,reject:c}},KF=function(){var e={},t={},n=function(n,r){var o='Script at URL "'+r+'" failed to load',i='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Ei((function(e,a){var c=GF(e,a);t[n]=c.resolve,Xs.ScriptLoader.loadScript(r,(function(){return c.start(i)}),(function(){return c.reject(o)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Ei.resolve(r)};return{load:n,add:r}},XF=KF(),YF=gn.each,JF=gn.extend,QF=function(){};QF.extend=RF=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!BF&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},o=function(){return this},i=function(e,t){return function(){var r=this,o=r._super;r._super=n[e];var i=t.apply(r,arguments);return r._super=o,i}};BF=!0;var a=new t;return BF=!1,e.Mixins&&(YF(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&YF(e.Methods.split(","),(function(t){e[t]=o})),e.Properties&&YF(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&YF(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=JF({},n.Defaults,e.Defaults)),_e(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=i(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=RF,r};var ZF,ej=Math.min,tj=Math.max,nj=Math.round,rj=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i;r=0,o=0,i=0,e/=255,t/=255,n/=255;var a=ej(e,ej(t,n)),c=tj(e,tj(t,n));if(a===c)return i=a,{h:0,s:0,v:100*i};var u=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-u/(c-a)),o=(c-a)/c,i=c,{h:nj(r),s:nj(100*o),v:nj(100*i)}},a=function(e,t,i){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=tj(0,ej(t,1)),i=tj(0,ej(i,1)),0!==t){var a=e/60,c=i*t,u=c*(1-Math.abs(a%2-1)),s=i-c;switch(Math.floor(a)){case 0:n=c,r=u,o=0;break;case 1:n=u,r=c,o=0;break;case 2:n=0,r=c,o=u;break;case 3:n=0,r=u,o=c;break;case 4:n=u,r=0,o=c;break;case 5:n=c,r=0,o=u;break;default:n=r=o=0}n=nj(255*(n+s)),r=nj(255*(r+s)),o=nj(255*(o+s))}else n=r=o=nj(255*i)},c=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(o)},u=function(){return{r:n,g:r,b:o}},s=function(){return i(n,r,o)},l=function(e){var i;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&a(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,t};return e&&l(e),t.toRgb=u,t.toHsv=s,t.toHex=c,t.parse=l,t},oj=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},ij={serialize:oj,parse:function(e){try{return JSON.parse(e)}catch(t){}}},aj={callbacks:{},count:0,send:function(e){var t=this,n=js.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},cj=qe(qe({},GH),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Pi.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",cj.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&gn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=cj.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Pi.setTimeout(r,10)}}),uj=gn.extend,sj=function(){function e(e){this.settings=uj({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=uj(this.settings,e);r.success=function(e,o){e=ij.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=ij.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",cj.send(r)},e}(),lj=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var fj="__storage_test__";ZF=window.localStorage,ZF.setItem(fj,fj),ZF.removeItem(fj)}catch(vj){ZF=lj()}var dj=ZF,mj={geom:{Rect:$F},util:{Promise:Ei,Delay:Pi,Tools:gn,VK:tv,URI:Fb,Class:QF,EventDispatcher:WH,Observable:GH,I18n:sl,XHR:cj,JSON:ij,JSONRequest:sj,JSONP:aj,LocalStorage:dj,Color:rj,ImageUploader:rA},dom:{EventUtils:ru,Sizzle:ju,DomQuery:Ns,TreeWalker:Fi,TextSeeker:Xl,DOMUtils:js,ScriptLoader:Xs,RangeUtils:Cv,Serializer:wO,StyleSheetLoader:Li,ControlSelection:rv,BookmarkManager:Ih,Selection:ET,Event:ru.Event},html:{Styles:Uc,Entities:Oc,Node:Eb,Schema:jc,SaxParser:Gb,DomParser:cO,Writer:ow,Serializer:iw},Env:en,AddOnManager:ll,Annotator:Lh,Formatter:pA,UndoManager:bA,EditorCommands:TH,WindowManager:NE,NotificationManager:EE,EditorObservable:ZH,Shortcuts:lF,Editor:yF,FocusManager:Vy,EditorManager:NF,DOM:js.DOM,ScriptLoader:Xs.ScriptLoader,PluginManager:AE,ThemeManager:DE,IconManager:pE,Resource:XF,trim:gn.trim,isArray:gn.isArray,is:gn.is,toArray:gn.toArray,makeMap:gn.makeMap,each:gn.each,map:gn.map,grep:gn.grep,inArray:gn.inArray,extend:gn.extend,create:gn.create,walk:gn.walk,createNS:gn.createNS,resolve:gn.resolve,explode:gn.explode,_addCacheSuffix:gn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},gj=gn.extend(NF,mj),pj=function(t){try{e.exports=t}catch(n){}},hj=function(e){window.tinymce=e,window.tinyMCE=e};hj(gj),pj(gj)})()}).call(this,n("c8ba"))},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},r="\ufeff",o=function(e){return e.replace(/\uFEFF/g,"")},i=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",c={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f…\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤-\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},u={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},s=[new RegExp(c.aletter),new RegExp(c.midnumlet),new RegExp(c.midletter),new RegExp(c.midnum),new RegExp(c.numeric),new RegExp(c.cr),new RegExp(c.lf),new RegExp(c.newline),new RegExp(c.extend),new RegExp(c.format),new RegExp(c.katakana),new RegExp(c.extendnumlet),new RegExp("@")],l="",f=new RegExp("^"+c.punctuation+"$"),d=/^\s+$/,m=s,g=u.OTHER,p=function(e){for(var t=g,n=m.length,r=0;r<n;++r){var o=m[r];if(o&&o.test(e)){t=r;break}}return t},h=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},v=function(e){var t=h(p);return i(e,t)},y=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===u.ALETTER&&r===u.ALETTER)return!1;var o=e[t+2];if(n===u.ALETTER&&(r===u.MIDLETTER||r===u.MIDNUMLET||r===u.AT)&&o===u.ALETTER)return!1;var i=e[t-1];return(n!==u.MIDLETTER&&n!==u.MIDNUMLET&&r!==u.AT||r!==u.ALETTER||i!==u.ALETTER)&&((n!==u.NUMERIC&&n!==u.ALETTER||r!==u.NUMERIC&&r!==u.ALETTER)&&((n!==u.MIDNUM&&n!==u.MIDNUMLET||r!==u.NUMERIC||i!==u.NUMERIC)&&((n!==u.NUMERIC||r!==u.MIDNUM&&r!==u.MIDNUMLET||o!==u.NUMERIC)&&(n!==u.EXTEND&&n!==u.FORMAT&&i!==u.EXTEND&&i!==u.FORMAT&&r!==u.EXTEND&&r!==u.FORMAT&&((n!==u.CR||r!==u.LF)&&(n===u.NEWLINE||n===u.CR||n===u.LF||(r===u.NEWLINE||r===u.CR||r===u.LF||(n!==u.KATAKANA||r!==u.KATAKANA)&&((r!==u.EXTENDNUMLET||n!==u.ALETTER&&n!==u.NUMERIC&&n!==u.KATAKANA&&n!==u.EXTENDNUMLET)&&((n!==u.EXTENDNUMLET||r!==u.ALETTER&&r!==u.NUMERIC&&r!==u.KATAKANA)&&n!==u.AT)))))))))},b=l,w=d,k=f,_=function(e){return"http"===e||"https"===e},x=function(e,t){var n;for(n=t;n<e.length;n++)if(w.test(e[n]))break;return n},C=function(e,t){var n=x(e,t+1),r=e.slice(t+1,n).join(b);return"://"===r.substr(0,3)?n:t},z=function(e,t,n,r){for(var o=[],i=[],a=0;a<n.length;++a)if(i.push(e[a]),y(n,a)){var c=t[a];if((r.includeWhitespace||!w.test(c))&&(r.includePunctuation||!k.test(c))){var u=a-i.length+1,s=a+1,l=t.slice(u,s).join(b);if(_(l)){var f=C(t,a),d=e.slice(s,f);Array.prototype.push.apply(i,d),a=f}o.push(i)}i=[]}return o},S=function(){return{includeWhitespace:!1,includePunctuation:!1}},T=function(e,t,o){o=n(n({},S()),o);for(var i=[],a=[],c=0;c<e.length;c++){var u=t(e[c]);u!==r&&(i.push(e[c]),a.push(u))}var s=v(a);return z(i,a,s,o)},O=T,E=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),A=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),i=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],c="",u=new E(e,e);while(e=u.next())3===e.nodeType?c+=o(e.data):i(e)&&c.length&&(a.push(c),c="");return c.length&&a.push(c),a},D=function(e){return e.replace(/\u200B/g,"")},M=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},N=function(e,n){var r=D(A(e,n).join("\n"));return O(r.split(""),t).length},R=function(e,t){var n=A(e,t).join("");return M(n)},B=function(e,t){var n=A(e,t).join("").replace(/\s/g,"");return M(n)},P=function(e,t){return function(){return t(e.getBody(),e.schema)}},L=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},I=function(e){return P(e,N)},H=function(e){return{body:{getWordCount:I(e),getCharacterCount:P(e,R),getCharacterCountWithoutSpaces:P(e,B)},selection:{getWordCount:L(e,N),getCharacterCount:L(e,R),getCharacterCountWithoutSpaces:L(e,B)},getCount:I(e)}},F=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},j=function(e,t){e.addCommand("mceWordCount",(function(){return F(e,t)}))},V=tinymce.util.Tools.resolve("tinymce.util.Delay"),U=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},q=function(e,t){U(e,t)},W=function(e,t,n){var r=V.debounce((function(){return q(e,t)}),n);e.on("init",(function(){q(e,t),V.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",r)}),0)}))},$=function(e){var t=function(){return e.execCommand("mceWordCount")};e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:t}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:t})};function G(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=H(e);return j(e,n),$(e),W(e,n,t),n}))}G()})()},ebac:function(e,t,n){n("080b")},ec27:function(e,t,n){n("fc39")},eda9:function(e,t,n){n("c361")},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r=function(e){var r=n(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){t(e,n.getData().code),n.close()}})},o=function(e){e.addCommand("mceCodeEditor",(function(){r(e)}))},i=function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};function a(){e.add("code",(function(e){return o(e),i(e),{}}))}a()})()},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return r(t)===e}},i=function(e){return function(t){return typeof t===e}},a=o("string"),c=o("array"),u=i("boolean"),s=function(e){return null===e||void 0===e},l=function(e){return!s(e)},f=i("function"),d=i("number"),m=function(){},g=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},p=function(e,t){return function(n){return e(t(n))}},h=function(e){return function(){return e}},v=function(e){return e};function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var b=h(!1),w=h(!0),k=function(){return _},_=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:b,isNone:w,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:t,orThunk:e,map:k,each:m,bind:k,exists:b,forall:w,filter:function(){return k()},toArray:function(){return[]},toString:h("none()")};return n}(),x=function(e){var t=h(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:w,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return x(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},C=function(e){return null===e||void 0===e?_:x(e)},z={some:x,none:k,from:C},S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)},T=function(t){var n=e(z.none()),r=function(){return n.get().each(t)},o=function(){r(),n.set(z.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},c=function(e){r(),n.set(z.some(e))};return{clear:o,isSet:i,get:a,set:c}},O=function(){return T((function(e){return e.unbind()}))},E=function(){var e=T(m),t=function(t){return e.get().each(t)};return S(S({},e),{on:t})},A=Array.prototype.push,D=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},M=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},N=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},R=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return z.some(i);if(n(i,r))break}return z.none()},B=function(e,t){return R(e,t,b)},P=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);A.apply(t,e[n])}return t},L=function(e,t){return P(D(e,t))},I=function(e,t){return t>=0&&t<e.length?z.some(e[t]):z.none()},H=function(e){return I(e,0)},F=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return z.none()},j=Object.keys,V=function(e,t){for(var n=j(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},U=function(e,t){return-1!==e.indexOf(t)},q=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},W=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return K(r.childNodes[0])},$=function(e,t){var n=t||document,r=n.createElement(e);return K(r)},G=function(e,t){var n=t||document,r=n.createTextNode(e);return K(r)},K=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},X=function(e,t,n){return z.from(e.dom.elementFromPoint(t,n)).map(K)},Y={fromHtml:W,fromTag:$,fromText:G,fromDom:K,fromPoint:X};"undefined"!==typeof window?window:Function("return this;")();var J=9,Q=11,Z=1,ee=3,te=function(e){return e.dom.nodeType},ne=function(e){return function(t){return te(t)===e}},re=ne(Z),oe=ne(ee),ie=ne(J),ae=ne(Q),ce=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},ue=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:h(o),isiPhone:h(i),isTablet:h(u),isPhone:h(s),isTouch:h(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:h(l),isDesktop:h(f)}},se=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},le=function(e,t){var n=se(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return me(r(1),r(2))},fe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?de():le(e,n)},de=function(){return me(0,0)},me=function(e,t){return{major:e,minor:t}},ge={nu:me,detect:fe,unknown:de},pe=function(e,t){return F(t.brands,(function(t){var n=t.brand.toLowerCase();return B(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:ge.nu(parseInt(t.version,10),0)}}))}))},he=function(e,t){var n=String(t).toLowerCase();return B(e,(function(e){return e.search(n)}))},ve=function(e,t){return he(e,t).map((function(e){var n=ge.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=function(e,t){return he(e,t).map((function(e){var n=ge.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,we=function(e){return function(t){return U(t,e)}},ke=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return U(e,"edge/")&&U(e,"chrome")&&U(e,"safari")&&U(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,be],search:function(e){return U(e,"chrome")&&!U(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return U(e,"msie")||U(e,"trident")}},{name:"Opera",versionRegexes:[be,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:we("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:we("firefox")},{name:"Safari",versionRegexes:[be,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(U(e,"safari")||U(e,"mobile/"))&&U(e,"applewebkit")}}],_e=[{name:"Windows",search:we("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return U(e,"iphone")||U(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:we("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:we("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:we("linux"),versionRegexes:[]},{name:"Solaris",search:we("sunos"),versionRegexes:[]},{name:"FreeBSD",search:we("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:we("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xe={browsers:h(ke),oses:h(_e)},Ce="Edge",ze="Chrome",Se="IE",Te="Opera",Oe="Firefox",Ee="Safari",Ae=function(){return De({current:void 0,version:ge.unknown()})},De=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ce),isChrome:r(ze),isIE:r(Se),isOpera:r(Te),isFirefox:r(Oe),isSafari:r(Ee)}},Me={unknown:Ae,nu:De,edge:h(Ce),chrome:h(ze),ie:h(Se),opera:h(Te),firefox:h(Oe),safari:h(Ee)},Ne="Windows",Re="iOS",Be="Android",Pe="Linux",Le="OSX",Ie="Solaris",He="FreeBSD",Fe="ChromeOS",je=function(){return Ve({current:void 0,version:ge.unknown()})},Ve=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ne),isiOS:r(Re),isAndroid:r(Be),isOSX:r(Le),isLinux:r(Pe),isSolaris:r(Ie),isFreeBSD:r(He),isChromeOS:r(Fe)}},Ue={unknown:je,nu:Ve,windows:h(Ne),ios:h(Re),android:h(Be),linux:h(Pe),osx:h(Le),solaris:h(Ie),freebsd:h(He),chromeos:h(Fe)},qe=function(e,t,n){var r=xe.browsers(),o=xe.oses(),i=t.bind((function(e){return pe(r,e)})).orThunk((function(){return ve(r,e)})).fold(Me.unknown,Me.nu),a=ye(o,e).fold(Ue.unknown,Ue.nu),c=ue(a,i,e,n);return{browser:i,os:a,deviceType:c}},We={detect:qe},$e=function(e){return window.matchMedia(e).matches},Ge=ce((function(){return We.detect(navigator.userAgent,z.from(navigator.userAgentData),$e)})),Ke=function(){return Ge()},Xe=function(e,t){var n=e.dom;if(n.nodeType!==Z)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ye=function(e){return e.nodeType!==Z&&e.nodeType!==J&&e.nodeType!==Q||0===e.childElementCount},Je=function(e,t){var n=void 0===t?document:t.dom;return Ye(n)?[]:D(n.querySelectorAll(e),Y.fromDom)},Qe=function(e,t){return e.dom===t.dom},Ze=function(e){return Y.fromDom(e.dom.ownerDocument)},et=function(e){return ie(e)?e:Ze(e)},tt=function(e){return z.from(e.dom.parentNode).map(Y.fromDom)},nt=function(e,t){var n=f(t)?t:b,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=Y.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},rt=function(e){var t=function(t){return N(t,(function(t){return!Qe(e,t)}))};return tt(e).map(ot).map(t).getOr([])},ot=function(e){return D(e.dom.childNodes,Y.fromDom)},it=function(e){return ae(e)&&l(e.dom.host)},at=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),ct=h(at),ut=at?function(e){return Y.fromDom(e.dom.getRootNode())}:et,st=function(e){var t=ut(e);return it(t)?z.some(t):z.none()},lt=function(e){return Y.fromDom(e.dom.host)},ft=function(e){if(ct()&&l(e.target)){var t=Y.fromDom(e.target);if(re(t)&&dt(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return H(n)}}return z.from(e.target)},dt=function(e){return l(e.dom.shadowRoot)},mt=function(e){var t=oe(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return st(Y.fromDom(t)).fold((function(){return n.body.contains(t)}),p(mt,lt))},gt=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Y.fromDom(t)},pt=function(e,t,n){if(!(a(n)||u(n)||d(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ht=function(e,t,n){pt(e.dom,t,n)},vt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},yt=function(e,t){e.dom.removeAttribute(t)},bt=function(e,t,n){if(!a(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);q(e)&&e.style.setProperty(t,n)},wt=function(e,t){var n=e.dom;V(t,(function(e,t){bt(n,t,e)}))},kt=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||mt(e)?o:_t(n,t)},_t=function(e,t){return q(e)?e.style.getPropertyValue(t):""},xt=function(e,t,n,r,o,i,a){return{target:e,x:t,y:n,stop:r,prevent:o,kill:i,raw:a}},Ct=function(e){var t=Y.fromDom(ft(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=g(r,n);return xt(t,e.clientX,e.clientY,n,r,o,e)},zt=function(e,t){return function(n){e(n)&&t(Ct(n))}},St=function(e,t,n,r,o){var i=zt(n,r);return e.dom.addEventListener(t,i,o),{unbind:y(Ot,e,t,i,o)}},Tt=function(e,t,n,r){return St(e,t,n,r,!1)},Ot=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Et=w,At=function(e,t,n){return Tt(e,t,Et,n)},Dt=function(e,t){var n=function(n,r){return Dt(e+n,t+r)};return{left:e,top:t,translate:n}},Mt=Dt,Nt=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Mt(n,r)},Rt=function(e){var t=void 0===e?window:e;return Ke().browser.isFirefox()?z.none():z.from(t["visualViewport"])},Bt=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Pt=function(e){var t=void 0===e?window:e,n=t.document,r=Nt(Y.fromDom(n));return Rt(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Bt(r.left,r.top,n,o)}),(function(e){return Bt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Lt=function(e,t,n){return Rt(n).map((function(n){var r=function(e){return t(Ct(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:m}}))},It=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Ht=tinymce.util.Tools.resolve("tinymce.Env"),Ft=tinymce.util.Tools.resolve("tinymce.util.Delay"),jt=function(e,t){e.fire("FullscreenStateChanged",{state:t})},Vt=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Ut=function(e){var t=Y.fromDom(e.getElement());return st(t).map(lt).getOrThunk((function(){return gt(Ze(t))}))},qt=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},Wt=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},$t=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Gt=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},Kt=function(e){return e.dom===qt(Ze(e).dom)},Xt=function(e,t,n){return N(nt(e,n),t)},Yt=function(e,t){return N(rt(e),t)},Jt=function(e){return Je(e)},Qt=function(e,t,n){return Xt(e,(function(e){return Xe(e,t)}),n)},Zt=function(e,t){return Yt(e,(function(e){return Xe(e,t)}))},en="data-ephox-mobile-fullscreen-style",tn="display:none!important;",nn="position:absolute!important;",rn="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",on="background-color:rgb(255,255,255)!important;",an=Ht.os.isAndroid(),cn=function(e){var t=kt(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":on},un=function(e,t,n){var r=function(e){return Zt(e,"*:not(.tox-silver-sink)")},o=function(t){return function(n){var r=vt(n,"style"),o=void 0===r?"no-styles":r.trim();o!==t&&(ht(n,en,o),wt(n,e.parseStyle(t)))}},i=Qt(t,"*"),a=L(i,r),c=cn(n);M(a,o(tn)),M(i,o(nn+rn+c));var u=!0===an?"":nn;o(u+rn+c)(t)},sn=function(e){var t=Jt("["+en+"]");M(t,(function(t){var n=vt(t,en);"no-styles"!==n?wt(t,e.parseStyle(n)):yt(t,"style"),yt(t,en)}))},ln=It.DOM,fn=function(){return Pt(window)},dn=function(e){return window.scrollTo(e.x,e.y)},mn=Rt().fold((function(){return{bind:m,unbind:m}}),(function(e){var t=E(),n=O(),r=O(),o=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},i=function(){window.requestAnimationFrame((function(){t.on((function(t){return wt(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=Ft.throttle((function(){o(),i()}),50),c=function(e){t.set(e),a(),n.set(Lt("resize",a)),r.set(Lt("scroll",a))},u=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:c,unbind:u}})),gn=function(e,t){var n=document.body,r=document.documentElement,o=e.getContainer(),i=Y.fromDom(o),a=Ut(e),c=t.get(),u=Y.fromDom(e.getBody()),s=Ht.deviceType.isTouch(),l=o.style,f=e.iframeElement,d=f.style,m=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(o,"tox-fullscreen"),st(i).map((function(e){return lt(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},g=function(){s&&sn(e.dom),m(ln.removeClass),mn.unbind(),z.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(c)c.fullscreenChangeHandler.unbind(),Vt(e)&&Kt(a)&&Gt(Ze(a)),d.width=c.iframeWidth,d.height=c.iframeHeight,l.width=c.containerWidth,l.height=c.containerHeight,l.top=c.containerTop,l.left=c.containerLeft,g(),dn(c.scrollPos),t.set(null),jt(e,!1),e.off("remove",g);else{var p=At(Ze(a),Wt(),(function(n){Vt(e)&&(Kt(a)||null===t.get()||gn(e,t))})),h={scrollPos:fn(),containerWidth:l.width,containerHeight:l.height,containerTop:l.top,containerLeft:l.left,iframeWidth:d.width,iframeHeight:d.height,fullscreenChangeHandler:p};s&&un(e.dom,i,u),d.width=d.height="100%",l.width=l.height="",m(ln.addClass),mn.bind(i),e.on("remove",g),t.set(h),Vt(e)&&$t(a),jt(e,!0)}},pn=function(e,t){e.addCommand("mceFullScreen",(function(){gn(e,t)}))},hn=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},vn=function(e,t){var n=function(){return e.execCommand("mceFullScreen")};e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:n,onSetup:hn(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:n,onSetup:hn(e,t)})};function yn(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(pn(t,r),vn(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}yn()})()},fc39:function(e,t){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})}}]);